@kedem/okdb 2.1.2 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/algorithm-worker-thread.js +1 -1
- package/bin/okdb.js +1 -1
- package/docs/embeddings.md +3 -3
- package/docs/querying.md +20 -0
- package/docs/views.md +32 -32
- 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/types/environment.d.ts +4 -2
- package/types/features/views.d.ts +38 -4
- package/types/index.d.ts +4 -2
- package/types/options.d.ts +25 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x24af3f=_0x5df3;(function(_0x4cb39a,_0x1ecc8c){const _0x4f5260=_0x5df3,_0x4e03e8=_0x4cb39a();while(!![]){try{const _0x5429ad=parseInt(_0x4f5260(0x1a8))/0x1*(-parseInt(_0x4f5260(0x289))/0x2)+-parseInt(_0x4f5260(0x1a2))/0x3+parseInt(_0x4f5260(0x1f5))/0x4*(-parseInt(_0x4f5260(0x305))/0x5)+-parseInt(_0x4f5260(0x32e))/0x6+-parseInt(_0x4f5260(0x1e2))/0x7*(-parseInt(_0x4f5260(0x1c2))/0x8)+parseInt(_0x4f5260(0x373))/0x9*(-parseInt(_0x4f5260(0x1cd))/0xa)+parseInt(_0x4f5260(0x36f))/0xb;if(_0x5429ad===_0x1ecc8c)break;else _0x4e03e8['push'](_0x4e03e8['shift']());}catch(_0x3b2e45){_0x4e03e8['push'](_0x4e03e8['shift']());}}}(_0x17bb,0x530cb));var require$$0$5=require(_0x24af3f(0x320)),require$$1$1=require(_0x24af3f(0x311)),require$$1=require(_0x24af3f(0x2bb)),require$$0$3=require('os'),require$$2=require(_0x24af3f(0x369)),require$$0=require(_0x24af3f(0x244)),require$$0$2=require(_0x24af3f(0x2c5)),require$$0$1=require('fs'),require$$0$4=require(_0x24af3f(0x1ee));function getDefaultExportFromCjs(_0x7264c){const _0x32c753=_0x24af3f;return _0x7264c&&_0x7264c['__esModule']&&Object['prototype'][_0x32c753(0x36d)]['call'](_0x7264c,_0x32c753(0x279))?_0x7264c[_0x32c753(0x279)]:_0x7264c;}var okdbHttpWorkerChild$1={},okdbEnums,hasRequiredOkdbEnums;function requireOkdbEnums(){const _0x4dc4d4=_0x24af3f;if(hasRequiredOkdbEnums)return okdbEnums;hasRequiredOkdbEnums=0x1;const _0x3c517b={'PUT':_0x4dc4d4(0x1dc),'REMOVE':_0x4dc4d4(0x39b),'INDEX_DROP':_0x4dc4d4(0x371),'INDEX_REGISTER':_0x4dc4d4(0x187),'INDEX_RESET':'resetIndex','TYPE_REGISTER':'registerType','TYPE_DROP':_0x4dc4d4(0x189),'FTS_REGISTER':_0x4dc4d4(0x2fa),'FTS_DROP':_0x4dc4d4(0x381),'FTS_RESET':'resetFts','SCHEMA_SET':'setSchema','SCHEMA_DROP':_0x4dc4d4(0x190),'TTL_SET':_0x4dc4d4(0x345),'TTL_CLEAR':'clearTtl'},_0x52ffd8={'SYSTEM_READY':_0x4dc4d4(0x1b1),'SYSTEM_STOPPED':_0x4dc4d4(0x29d),'SYSTEM_CLOCK_CHANGE':'system:clock_change','SYSTEM_POKE':_0x4dc4d4(0x227),'SYSTEM_DRAIN':_0x4dc4d4(0x284),'SYSTEM_TYPE_DROP':_0x4dc4d4(0x380),'SYSTEM_PROC':_0x4dc4d4(0x1d7),'SYSTEM_BUS_STATE_CHANGE':'system:bus_state_change','ITEM_CREATE':_0x4dc4d4(0x19d),'ITEM_UPDATE':_0x4dc4d4(0x30e),'ITEM_REMOVE':_0x4dc4d4(0x3b2),'INDEX_RESET':_0x4dc4d4(0x297),'INDEX_READY':'index:ready','INDEX_PROGRESS':_0x4dc4d4(0x2b1),'VIEW_PROGRESS':'view:progress','INDEX_DROP':_0x4dc4d4(0x390),'INDEX_REGISTERED':_0x4dc4d4(0x27c),'FTS_REGISTERED':'fts:registered','FTS_DROP':_0x4dc4d4(0x2a2),'FTS_RESET':_0x4dc4d4(0x192),'SCHEMA_SET':_0x4dc4d4(0x2ea),'SCHEMA_DROP':_0x4dc4d4(0x1f2),'UNIQUE_VIOLATION':'unique:violation','UNIQUE_VIOLATION_RESOLVED':_0x4dc4d4(0x376),'REF_VIOLATION':'ref:violation','REF_VIOLATION_RESOLVED':_0x4dc4d4(0x20e),'SYNC_APPLY':_0x4dc4d4(0x257),'TXN_START':'txn:start','TXN_END':'txn:end','TXN_ROLLBACK':_0x4dc4d4(0x2ce),'TYPE_REGISTERED':_0x4dc4d4(0x341),'TYPE_DROP':_0x4dc4d4(0x1a0),'ENV_OPENED':_0x4dc4d4(0x37d),'ENV_REMOVED':_0x4dc4d4(0x383),'SYSTEM_ENV_RELEASE':_0x4dc4d4(0x1a3),'TTL_EXPIRED':_0x4dc4d4(0x348),'TTL_SET':_0x4dc4d4(0x334),'TTL_CLEAR':'ttl:clear','LICENSE_INVALID':'license:invalid','LICENSE_ADDED':_0x4dc4d4(0x1f3),'LICENSE_ACTIVATED':_0x4dc4d4(0x31e),'LICENSE_REMOVED':_0x4dc4d4(0x24e)},_0xef4c05={'CREATING':'creating','RESETTING':_0x4dc4d4(0x2b0),'READY':_0x4dc4d4(0x38a),'DROPPING':_0x4dc4d4(0x34b),'WAITING':_0x4dc4d4(0x3ac)},_0x31b495={'CREATED':_0x4dc4d4(0x208),'STARTING':'starting','STARTED':_0x4dc4d4(0x393),'STOPPING':_0x4dc4d4(0x223),'STOPPED':_0x4dc4d4(0x1ae)},_0x35388c={'CREATING':_0x4dc4d4(0x2aa),'READY':_0x4dc4d4(0x38a),'HALTED':_0x4dc4d4(0x207),'STOPPED':_0x4dc4d4(0x1ae),'RESETTING':_0x4dc4d4(0x2b0)},_0x1b9bae=Object[_0x4dc4d4(0x307)]({'POKE':'bus:poke','DRAIN':_0x4dc4d4(0x247),'TYPE_DROP':_0x4dc4d4(0x204),'PROC':_0x4dc4d4(0x382),'ENV_RELEASE':_0x4dc4d4(0x33f)});return okdbEnums={'BUS_EVENTS':_0x1b9bae,'CHANGE_ACTIONS':_0x3c517b,'EVENTS':_0x52ffd8,'INDEX_STATE':_0xef4c05,'OKDB_STATE':_0x31b495,'VIEW_STATE':_0x35388c},okdbEnums;}var okdbLoopMonitor,hasRequiredOkdbLoopMonitor;function requireOkdbLoopMonitor(){const _0x111874=_0x24af3f;if(hasRequiredOkdbLoopMonitor)return okdbLoopMonitor;hasRequiredOkdbLoopMonitor=0x1;const {monitorEventLoopDelay:_0x149321,performance:_0x2692d3}=require$$0,_0x3d63a7=process.env.OKDB_LOOP_LAG==='1'||process.env.OKDB_LOOP_LAG==='true',_0x200265=Number(process.env.OKDB_LOOP_LAG_MS)||0x7d0,_0x2b3600=process.env.OKDB_LOOP_LAG_ALL==='1',_0x5b7475=Number(process.env.OKDB_LOOP_LAG_MIN_MS)||0x64;class _0x2385d0{constructor(){const _0x2718ff=_0x5df3;this[_0x2718ff(0x2c6)]=_0x3d63a7,this[_0x2718ff(0x20d)]=new Map(),this['_h']=null,this[_0x2718ff(0x386)]=null,this[_0x2718ff(0x2a9)]=![],this[_0x2718ff(0x28b)]=(_0x1fc0de,_0x315245)=>process[_0x2718ff(0x1b3)][_0x2718ff(0x368)](_0x1fc0de+(_0x315245?'\x20'+JSON[_0x2718ff(0x27a)](_0x315245):'')+'\x0a');}['now'](){const _0x2bbc75=_0x5df3;return _0x2692d3[_0x2bbc75(0x353)]();}['setLogger'](_0xa9e8f0){const _0x21035e=_0x5df3;if(typeof _0xa9e8f0===_0x21035e(0x22c))this[_0x21035e(0x28b)]=_0xa9e8f0;}[_0x111874(0x209)](_0x1aa285,_0x30ac3a,_0x41f3b4){const _0x4db4be=_0x111874;if(!this[_0x4db4be(0x2c6)])return;let _0x53539a=this[_0x4db4be(0x20d)]['get'](_0x1aa285);!_0x53539a&&(_0x53539a={'ms':0x0,'count':0x0,'maxMs':0x0,'maxExtra':''},this['_buckets'][_0x4db4be(0x2b3)](_0x1aa285,_0x53539a)),_0x53539a['ms']+=_0x30ac3a,_0x53539a[_0x4db4be(0x309)]+=0x1,_0x30ac3a>_0x53539a[_0x4db4be(0x275)]&&(_0x53539a[_0x4db4be(0x275)]=_0x30ac3a,_0x53539a['maxExtra']=_0x41f3b4||'');}[_0x111874(0x2b4)](_0x55b330){const _0x3cb63a=_0x111874;if(!this['enabled']||this[_0x3cb63a(0x2a9)])return;this[_0x3cb63a(0x2a9)]=!![];if(_0x55b330)this[_0x3cb63a(0x28b)]=_0x55b330;this['_h']=_0x149321({'resolution':0xa}),this['_h'][_0x3cb63a(0x3aa)](),this[_0x3cb63a(0x386)]=setInterval(()=>this[_0x3cb63a(0x2d6)](),_0x200265);if(this['_timer'][_0x3cb63a(0x36e)])this[_0x3cb63a(0x386)][_0x3cb63a(0x36e)]();}[_0x111874(0x22a)](_0x1fd3bf){const _0xce976f=_0x111874;if(!this[_0xce976f(0x1f9)])this[_0xce976f(0x1f9)]=new Set();this[_0xce976f(0x1f9)][_0xce976f(0x281)](_0x1fd3bf);if(!this[_0xce976f(0x2a9)])this[_0xce976f(0x260)]();}['offWindow'](_0x34a0c0){const _0x5c64fe=_0x111874;this[_0x5c64fe(0x1f9)]?.['delete'](_0x34a0c0);}['_startAdmission'](){const _0x1f2a85=_0x111874;if(this['_admissionStarted'])return;this[_0x1f2a85(0x354)]=!![];!this['_h']&&(this['_h']=_0x149321({'resolution':0xa}),this['_h'][_0x1f2a85(0x3aa)]());const _0x40b979=_0x200265;this[_0x1f2a85(0x38c)]=setInterval(()=>{const _0x2ea680=_0x1f2a85,_0x5c96b5=this['_h'];if(!_0x5c96b5)return;const _0x85abe=_0x5c96b5[_0x2ea680(0x37f)](0x63)/0xf4240,_0x482505=_0x5c96b5[_0x2ea680(0x1fd)]/0xf4240,_0x335e7a=_0x5c96b5[_0x2ea680(0x346)]/0xf4240;_0x5c96b5[_0x2ea680(0x2ee)]();if(this[_0x2ea680(0x1f9)])for(const _0x1eec19 of this[_0x2ea680(0x1f9)]){try{_0x1eec19({'p99Ms':_0x85abe,'maxMs':_0x482505,'meanMs':_0x335e7a,'reportMs':_0x40b979});}catch{}}},_0x40b979);if(this[_0x1f2a85(0x38c)][_0x1f2a85(0x36e)])this['_admissionTimer']['unref']();}[_0x111874(0x2d6)](){const _0x22f5f6=_0x111874,_0x11b683=this['_h'],_0x566fd5=_0x11b683['max']/0xf4240,_0x5991de=_0x11b683[_0x22f5f6(0x37f)](0x63)/0xf4240,_0x45c70d=_0x11b683['mean']/0xf4240;_0x11b683['reset']();const _0xc94d94=[...this[_0x22f5f6(0x20d)][_0x22f5f6(0x3a6)]()][_0x22f5f6(0x28d)](([_0x523c8c,_0x69d9d0])=>({'label':_0x523c8c,..._0x69d9d0}))['sort']((_0x1d619d,_0xe7b0ea)=>_0xe7b0ea['ms']-_0x1d619d['ms'])['slice'](0x0,0x8);this['_buckets'][_0x22f5f6(0x1bc)]();const _0x557585=_0xc94d94[_0x22f5f6(0x2f5)]((_0x27937e,_0x1ff1b1)=>_0x27937e+_0x1ff1b1['ms'],0x0),_0x2de35d=_0xc94d94[_0x22f5f6(0x28d)](_0x4fc215=>_0x4fc215[_0x22f5f6(0x231)]+'='+_0x4fc215['ms'][_0x22f5f6(0x38b)](0x0)+_0x22f5f6(0x211)+_0x4fc215['count']+(_0x4fc215[_0x22f5f6(0x275)]>0x5?'(worst\x20'+_0x4fc215[_0x22f5f6(0x275)][_0x22f5f6(0x38b)](0x0)+'ms'+(_0x4fc215['maxExtra']?'\x20'+_0x4fc215[_0x22f5f6(0x28a)]:'')+')':''));(_0x2b3600||_0x566fd5>=_0x5b7475)&&this[_0x22f5f6(0x28b)](_0x22f5f6(0x1a5)+_0x200265+_0x22f5f6(0x28f)+_0x566fd5[_0x22f5f6(0x38b)](0x0)+'ms\x20p99='+_0x5991de[_0x22f5f6(0x38b)](0x0)+_0x22f5f6(0x32a)+_0x45c70d[_0x22f5f6(0x38b)](0x0)+_0x22f5f6(0x337)+_0x557585['toFixed'](0x0)+'ms'+(_0x2de35d[_0x22f5f6(0x2d8)]?_0x22f5f6(0x310)+_0x2de35d[_0x22f5f6(0x258)]('\x20\x20'):''),{'feature':_0x22f5f6(0x2ff)});if(this[_0x22f5f6(0x1f9)])for(const _0x3184aa of this[_0x22f5f6(0x1f9)]){try{_0x3184aa({'p99Ms':_0x5991de,'maxMs':_0x566fd5,'meanMs':_0x45c70d,'reportMs':_0x200265});}catch{}}}[_0x111874(0x224)](){const _0x3e7887=_0x111874;if(this['_timer'])clearInterval(this['_timer']);if(this['_h'])this['_h'][_0x3e7887(0x1f0)]();this[_0x3e7887(0x386)]=null,this['_h']=null,this[_0x3e7887(0x2a9)]=![];}}const _0x154c79=new _0x2385d0();if(_0x154c79['enabled'])_0x154c79[_0x111874(0x2b4)]();return okdbLoopMonitor={'LOOP':_0x154c79},okdbLoopMonitor;}function _0x17bb(){const _0x50a005=['processor:progress','lifecycle','cluster:','isPrimary','openDB','INDEX_READY','_clusterOrphanWatch','ms\x20mean=','draining','_heartbeatTimer','cpuUsage','2836554kHaVOg','[okdb-cluster]\x20worker\x20pid=','processor:resumed','_inflight','filter','INDEX_RESET','ttl:set','_coordinator','~processes:desired','ms\x20busy=','_committed','disconnect','info','_removeRowAsync','emit','isWanted','find','bus:env_release','parkedNow','type:registered','has','_collectWriterFacet','\x20pid=','setTtl','mean','processors','ttl:expired','_kind','connected','dropping','okdb-http-worker-child.js','workers','pid','_migrateVocab','process','view','nodeKey','now','_admissionStarted','ttlMs','deregisterSelf','_onItem','.log','stopHeartbeat','uncaughtException','\x0a===\x20OKDB_DIAG\x20STALL:\x20swap\x20drain\x20held\x20','ingest','_drain','_adminRelay','delete','_bpWaiters','compact','\x20\x20(write\x20ring\x20empty\x20—\x20was\x20OKDB_DIAG\x20set\x20before\x20any\x20write?)','prependListener','_holderDead','supervisorKey','user','_nodeDbFor','write','crypto','cpuPct','removeNode','meta','hasOwnProperty','unref','23016620UyBwIx','resetReadTxn','dropIndex','_processStartedAt','36198zykWRH','get','_baselines','unique:violation_resolved','attach','inst:','http','_isWriter','once','indexOf','env:opened','_changefeed','percentile','system:type_drop','dropFts','bus:proc','env:removed','embedded','attachFeed','_timer','_selfKey','flushLmdb','writerStatus','ready','toFixed','_admissionTimer','_maybePublish','exit','\x20@\x20','index:drop','_activateProcesses','noteListenAddr','started','flushDebounce','ms\x20env=','_cursors','registry\x20heartbeat\x20skipped\x20(writer=','startedAt','_dedupeMax','split','remove','_lastCpuUsage','getRange','selfKey',':want','error','[okdb-cluster]\x20change-feed\x20init\x20failed:\x20','ENV_CLOSING_RETRY','slot','memoryUsage','1ofN:','entries','_desired','_clusterWorkerAttached','caps','enable','fast','waiting','hostname','holder','inspect','_wantDb','_outstanding','item:remove','respawnTimer','2.1.2','_onTick','listNodes','ITEM_UPDATE','http\x20worker\x20child\x20failed:\x20','off','clearThreadStats','registerIndex','_key','dropType','_flushTimer','standalone','setDesired','isEnabled','REMOVE','_draining','dropSchema','heartbeatMs','fts:reset','assign','node/','_rowKey','cursorKey','heapTotal','_acquiredAt','expiresAt','allSettled','execArgv','dedupeMax','item:create','_children','transaction','type:drop','message','1368105VjifpG','system:env_release','_singletonLock','loop-lag\x20','randomUUID','listDesired','13kYZPzg','listening','_bpParkedTotal','copy','procmode/','_groupByProcess','stopped','cpus','fn-runner','system:ready','_onPoke','stderr','sandbox','_caps','_dedupeKey','catch','_nodeDb','\x20worker(s)\x20still\x20serving','resolve','repeat','clear','uptime','fanout','FTS_REGISTERED','ESRCH','processing','270680WHPogo','SWAP','inflightAgesMs','parse','[okdb-cluster]\x20slot=','_publishFailWarned','open','cli','rowKey','_putRowAsync','__okdbSlot','760gMtDoP','_onStop','level','okdb-diag.','_hbTimer','includes','_lock','_drainOne','okdb-writer:\x20env\x20closing\x20—\x20retry','deaths','system:proc','\x20statusEnv=','win32','__okdbCluster','_collectSingletonClaims','put','busy','singletonClaims',',\x20signal=','_heartbeatInFlight',')\x20—\x20this\x20process\x20will\x20not\x20appear\x20in\x20the\x20process\x20census','49WHQhjl','VIEW_PROGRESS','values','registerType','external','_wantDbHandle','\x20worker\x20slot=','_rootDb','queue-worker','functions','tierList','_statusEnv','node:events','_nodeDead','disable','raw-put','schema:drop','license:added','splice','938356VrYISf','slice','getProcess','isConnected','_windowCbs','INDEX_REGISTERED','code','_markSeen','max','updatedAt','[okdb-cluster]\x20recommissioned\x20worker\x20slot=','mode','single','push','\x20oldestPendingMs=','bus:type_drop','isDead','consecutiveFailures','halted','created','note','\x20phase=','warn','\x20===','_buckets','ref:violation_resolved','drain\x20state\x20(envs\x20with\x20a\x20non-zero\x20drain):','mkdirSync','ms/','isHeld','_putRowSync','value','ORPHAN\x20(env-closed\x20write,\x20unhandledRejection)','isActive','_lastCpuPct','_cmd','slotKey','status','\x20\x20#','processor','flushed','number','processorId','getCmd','_threadStats','removeSync','stopping','stop','processor:paused','host','system:poke','abs','_versionSkewWarned','onWindow','_isStale','function','error:\x20',');\x20','send','_supervisorKey','label','_lockDb','_startHeartbeat','feed:','engines','_buildChildRow','removeSupervisedChild','size','all','processorsView','_flushDebounce','load','_handleInProcess','INDEX_PROGRESS','startsWith','ms\x20(attempt\x20','_highWater','oldestPendingMs','ITEM_REMOVE','node:perf_hooks','_getType','decommissioned','bus:drain','childTransaction','unclaimed','system','toISOString','_systemEnv','recordWrite','license:removed','_lastCpuWindowMs','next','putSync','round','extend','--test','\x0a\x20\x20\x20\x20\x20\x20','events','sync:apply','join','_enqueuedAt','running','stats','kill','[okdb-cluster]\x20primary\x20pid=','\x20HTTP\x20server(s)\x20on\x20port\x20','_quantum','_startAdmission','_isReader','name','markClosed','_handlePoke','decommissioning','_servingEngines','release','SYSTEM_PROC','rss','_seen','\x0a===\x20OKDB_DIAG\x20','~processes:cmd','\x20parkedNow=','_pending','close','role','[okdb-cluster]\x20','\x20\x20env=','publishOwnRow','list','maxMs','sync','SYNC_COMMITS','log','default','stringify','ppid','index:registered','\x20—\x20set\x20OKDB_DIAG_STACK=1\x20to\x20name\x20the\x20call\x20site','envsOpen','quantum','putNode','add','bumpCmd','kind','system:drain','depth','_scheduleFlush','recent\x20writes\x20(newest\x20first)','committed','80006rLwAMX','maxExtra','_log','namespace','map','_role','ms\x20max=','getDesired','\x20(durable\x20desired-state)','keys','beforeWrite','dumpedAt','\x20died\x20','\x20times\x20in\x20','index:reset','decommission','data','instances','listenAddr','exports','system:stopped','processes','registry\x20publish\x20failing:\x20','processor:error','confirm','fts:drop','commitP99Ms','threads','building','publishChildRow','change','children','_started','creating','_desiredOverlay','acquiredAt','_envs','set\x20OKDB_DIAG=1\x20(and\x20OKDB_DIAG_STACK=1\x20to\x20name\x20write\x20sites)','floor','resetting','index:progress','seq','set','start','online','options','processor:retry','ms\x20on\x20env=','setOwnMeta','okdb-http-worker-child:\x20OKDB_HTTP_CHILD\x20env\x20config\x20missing','path','SIGKILL','claims','state','okdb-http-worker-child:\x20rootPath\x20and\x20port\x20required','createEnvironment','async','sort','_participate','version','perf_hooks','enabled','min','--inspect','appendFileSync','ORPHAN\x20(env-closed\x20write)','epoch','_refreshDesiredSnapshot','_buildOwnRow','txn:rollback','http-server','type','dead','shift','ITEM_CREATE','primary','_closed','_report','_buildProcessingFacet','length','mixed\x20versions\x20on\x20one\x20store\x20are\x20unsafe\x20across\x20storage\x20migrations;\x20align\x20versions\x20before\x20upgrading\x20further.','processor:ready','stack','reap','_lastCpuAt','env','process\x20','\x20ipc\x20error:\x20','from','_instanceId','_sandbox','processKey','then','\x20in\x20','_publishNow','claimGated','_onProcEvent','schema:set','object','_durs','_startedAt','reset','startHeartbeat',')\x20exited\x20','_done','addSupervisedChild','node','runtimeProcessesView','reduce','listen','participate','getChanges','~lock','registerFts','--print','event','_lastPublishAt','afterWrite','loop-lag','_writer','\x20worker(s)\x20remaining','okdb','_ownMeta','_db','5RRhotu','string','freeze','commit','count','SYSTEM_POKE','\x20forked\x20','getClock','tryAcquire','item:update','transactionSync','\x20│\x20','cluster','_listenAddr','_singletonLocks','_enableChangelog','SYSTEM_STOPPED','worker','updateSupervisedChildStats','hasDesired','_ensureDesired','heapUsed','_released','--watch','_nodeDbCache','license:activated','cpuWindowMs','./okdb','FTS_DROP','fork'];_0x17bb=function(){return _0x50a005;};return _0x17bb();}var okdbWriter={'exports':{}},okdbDiag,hasRequiredOkdbDiag;function requireOkdbDiag(){if(hasRequiredOkdbDiag)return okdbDiag;hasRequiredOkdbDiag=0x1;const _0x2daff2=require$$0$1,_0x3c31e2=require$$1;let _0x5d48db,_0x44522a,_0x4bf118,_0x133cb5,_0x5c28b4,_0x416290,_0x2f4cd8,_0x47f1c9=![];const _0x216139=new Set();let _0x260ead=null;const _0x552eba=new Map();function _0x5a8162(){const _0x34204b=_0x5df3;if(_0x5d48db!==undefined)return _0x5d48db;_0x5d48db=process.env.OKDB_DIAG==='1';if(!_0x5d48db)return![];_0x44522a=process.env.OKDB_DIAG_STACK==='1',_0x133cb5=Math[_0x34204b(0x1fd)](0x10,Number(process.env.OKDB_DIAG_RING)||0x100),_0x4bf118=new Array(_0x133cb5),_0x5c28b4=0x0,_0x416290=0x0,_0x2f4cd8=process.env.OKDB_DIAG_DIR||null;if(_0x2f4cd8)try{_0x2daff2[_0x34204b(0x210)](_0x2f4cd8,{'recursive':!![]});}catch{}return!![];}function _0xedb912(){return _0x5d48db===undefined?_0x5a8162():_0x5d48db;}function _0x29471e(_0x52d47c,_0x2c9188){const _0x1d0cd2=_0x5df3;if(_0x5d48db===undefined?!_0x5a8162():!_0x5d48db)return;let _0x546946;if(_0x44522a){const _0xe93842=new Error()[_0x1d0cd2(0x2db)]||'';_0x546946=_0xe93842[_0x1d0cd2(0x39a)]('\x0a')[_0x1d0cd2(0x1f6)](0x3)[_0x1d0cd2(0x28d)](_0x5bcdd7=>_0x5bcdd7['trim']())[_0x1d0cd2(0x332)](Boolean)[_0x1d0cd2(0x1f6)](0x0,0x8);}_0x4bf118[_0x5c28b4]={'seq':_0x416290++,'t':Date[_0x1d0cd2(0x353)](),'env':_0x52d47c,'kind':_0x2c9188||_0x1d0cd2(0x308),'stack':_0x546946},_0x5c28b4=(_0x5c28b4+0x1)%_0x133cb5;}function _0x926dad(_0x5f58dc){const _0xcee69b=_0x5df3,_0x2e1c12=[];for(let _0xb4299c=0x0;_0xb4299c<_0x133cb5;_0xb4299c++){const _0x1027d8=_0x4bf118[(_0x5c28b4-0x1-_0xb4299c+_0x133cb5*0x2)%_0x133cb5];if(!_0x1027d8)continue;_0x2e1c12[_0xcee69b(0x202)](_0x1027d8);if(_0x2e1c12['length']>=_0x5f58dc)break;}return _0x2e1c12;}function _0x4d89a2(_0x4df45f){const _0x566966=_0x5df3;try{process['stderr'][_0x566966(0x368)](_0x4df45f+'\x0a');}catch{}if(_0x2f4cd8)try{_0x2daff2[_0x566966(0x2c9)](_0x3c31e2[_0x566966(0x258)](_0x2f4cd8,_0x566966(0x1d0)+process[_0x566966(0x34e)]+_0x566966(0x358)),_0x4df45f+'\x0a');}catch{}}function _0x244490(_0x9e9315){const _0x29e0f6=_0x5df3,_0x594fdf=_0x926dad(_0x9e9315);if(!_0x594fdf[_0x29e0f6(0x2d8)])return _0x29e0f6(0x362);const _0x3a1bae=Date[_0x29e0f6(0x353)]();return _0x594fdf[_0x29e0f6(0x28d)](_0x4c5e3d=>{const _0x23cc28=_0x29e0f6,_0x208e8a=_0x23cc28(0x21b)+_0x4c5e3d[_0x23cc28(0x2b2)]+'\x20-'+(_0x3a1bae-_0x4c5e3d['t'])+_0x23cc28(0x395)+_0x4c5e3d[_0x23cc28(0x2de)]+'\x20'+_0x4c5e3d[_0x23cc28(0x283)];return _0x4c5e3d[_0x23cc28(0x2db)]&&_0x4c5e3d[_0x23cc28(0x2db)]['length']?_0x208e8a+_0x23cc28(0x255)+_0x4c5e3d[_0x23cc28(0x2db)][_0x23cc28(0x258)](_0x23cc28(0x255)):_0x208e8a;})['join']('\x0a');}function _0x570d5f(_0x355c8b,_0x183355){const _0x375da3=_0x5df3,_0x309279=_0x375da3(0x26b)+_0x355c8b+_0x375da3(0x38f)+new Date()[_0x375da3(0x24b)]()+_0x375da3(0x344)+process[_0x375da3(0x34e)]+'\x20===',_0xbacde=[_0x309279,_0x375da3(0x22d)+(_0x183355&&_0x183355[_0x375da3(0x2db)]?_0x183355[_0x375da3(0x2db)]['split']('\x0a')[0x0]:_0x183355),_0x375da3(0x287)+(_0x44522a?'':_0x375da3(0x27d))+':',_0x244490(0x18),_0x4fac0c(),'='[_0x375da3(0x1bb)](_0x309279[_0x375da3(0x2d8)]-0x1)];_0x4d89a2(_0xbacde[_0x375da3(0x258)]('\x0a'));}function _0x1d557c(_0x362b4c){const _0x360ac8=_0x5df3;if(!_0xedb912())return;const _0x75803b=String(_0x362b4c&&_0x362b4c[_0x360ac8(0x1a1)]||_0x362b4c||''),_0x5174b9=/already closed|environment is already|invalid read txn|reset an invalid/i['test'](_0x75803b);_0x570d5f(_0x5174b9?_0x360ac8(0x2ca):_0x360ac8(0x35a),_0x362b4c);if(process.env.OKDB_DIAG_SURVIVE==='1'&&_0x5174b9)return;try{console[_0x360ac8(0x3a0)](_0x362b4c&&_0x362b4c[_0x360ac8(0x2db)]?_0x362b4c['stack']:_0x362b4c);}catch{}process[_0x360ac8(0x38e)](0x1);}function _0x4c7ea7(_0x433f14){const _0x3e7f18=_0x5df3;if(!_0xedb912())return;const _0x39a5fb=String(_0x433f14&&_0x433f14[_0x3e7f18(0x1a1)]||_0x433f14||'');/already closed|environment is already|invalid read txn|reset an invalid/i['test'](_0x39a5fb)&&_0x570d5f(_0x3e7f18(0x215),_0x433f14);}function _0x4fac0c(){const _0x3079d8=_0x5df3,_0x48f95e=[_0x3079d8(0x20f)];let _0x7f8093=![];for(const _0x129b52 of _0x216139){const _0xf3a7d6=_0x129b52&&_0x129b52[_0x3079d8(0x2ad)];if(!_0xf3a7d6)continue;for(const [_0x5b710a,_0x4f0e5f]of _0xf3a7d6){const _0x5aa492=_0x4f0e5f&&_0x4f0e5f[_0x3079d8(0x335)]&&_0x4f0e5f[_0x3079d8(0x335)]['view'];if(!_0x5aa492)continue;let _0x2111e5,_0x18c63c;try{_0x2111e5=Atomics[_0x3079d8(0x23c)](_0x5aa492,0x0),_0x18c63c=Atomics[_0x3079d8(0x23c)](_0x5aa492,0x1);}catch{continue;}if(_0x2111e5===0x0)continue;_0x7f8093=!![];const _0x17067e=_0x2111e5>0x0?_0x3079d8(0x1c3):_0x3079d8(0x1ab),_0x32a4a2=Date[_0x3079d8(0x353)]()-Math[_0x3079d8(0x228)](_0x2111e5)*0x3e8,_0x11d194=((()=>{const _0xced5e9=_0x3079d8;try{return _0x4f0e5f['_writer']&&_0x4f0e5f[_0xced5e9(0x300)][_0xced5e9(0x21a)]?_0x4f0e5f[_0xced5e9(0x300)][_0xced5e9(0x21a)]():null;}catch{return null;}})());_0x48f95e[_0x3079d8(0x202)](_0x3079d8(0x272)+_0x5b710a+_0x3079d8(0x20a)+_0x17067e+'\x20drainAge='+_0x32a4a2+'ms\x20activeWriters='+_0x18c63c+(_0x11d194?'\x20writer{depth='+_0x11d194[_0x3079d8(0x285)]+_0x3079d8(0x203)+_0x11d194['oldestPendingMs']+_0x3079d8(0x26d)+_0x11d194[_0x3079d8(0x340)]+'}':''));}}if(!_0x7f8093)_0x48f95e[_0x3079d8(0x202)]('\x20\x20(no\x20env\x20draining)');return _0x48f95e[_0x3079d8(0x258)]('\x0a');}function _0x351391(){const _0x3fb0a8=_0x5df3;if(!_0xedb912())return;const _0x2a0a42=Math[_0x3fb0a8(0x1fd)](0x3e8,Number(process.env.OKDB_DIAG_STALL_MS)||0x1f40),_0x279e91=Date[_0x3fb0a8(0x353)]();for(const _0x17f4c2 of _0x216139){const _0x45f884=_0x17f4c2&&_0x17f4c2[_0x3fb0a8(0x2ad)];if(!_0x45f884)continue;for(const [_0x274e92,_0x22ecfe]of _0x45f884){const _0x4c9f1c=_0x22ecfe&&_0x22ecfe[_0x3fb0a8(0x335)]&&_0x22ecfe['_coordinator'][_0x3fb0a8(0x351)];if(!_0x4c9f1c)continue;let _0x563f96;try{_0x563f96=Atomics['load'](_0x4c9f1c,0x0);}catch{continue;}const _0x1592ad=_0x17f4c2[_0x3fb0a8(0x2bb)]+'|'+_0x274e92;if(_0x563f96<=0x0){_0x552eba[_0x3fb0a8(0x35f)](_0x1592ad);continue;}const _0xa2da14=_0x279e91-_0x563f96*0x3e8,_0xd4cf5f=_0x552eba[_0x3fb0a8(0x374)](_0x1592ad);if(_0xa2da14<_0x2a0a42)continue;if(_0xd4cf5f&&_0x279e91-_0xd4cf5f[_0x3fb0a8(0x294)]<_0x2a0a42)continue;_0x552eba[_0x3fb0a8(0x2b3)](_0x1592ad,{'firstTs':_0xd4cf5f?_0xd4cf5f['firstTs']:_0x563f96,'dumpedAt':_0x279e91});const _0x440074=_0x3fb0a8(0x35b)+_0xa2da14+_0x3fb0a8(0x2b8)+_0x274e92+'\x20@\x20'+new Date()['toISOString']()+_0x3fb0a8(0x344)+process[_0x3fb0a8(0x34e)]+_0x3fb0a8(0x20c);_0x4d89a2([_0x440074,_0x4fac0c(),'='['repeat'](_0x440074[_0x3fb0a8(0x2d8)]-0x1)]['join']('\x0a'));}}}function _0x1f282a(){const _0x43d4a7=_0x5df3;if(!_0xedb912()||_0x47f1c9)return;_0x47f1c9=!![],process['prependListener'](_0x43d4a7(0x35a),_0x1d557c),process[_0x43d4a7(0x363)]('unhandledRejection',_0x4c7ea7);const _0x11acd3=Math[_0x43d4a7(0x1fd)](0xfa,Number(process.env.OKDB_DIAG_WATCH_MS)||0x7d0);_0x260ead=setInterval(_0x351391,_0x11acd3);if(_0x260ead['unref'])_0x260ead['unref']();}function _0x1d34a0(_0xd7df14){const _0x3dc037=_0x5df3;if(!_0xedb912()||!_0xd7df14)return;_0x216139[_0x3dc037(0x281)](_0xd7df14),_0x1f282a();}function _0x1a75a6(_0x4e49aa){const _0x5c623f=_0x5df3;_0x216139[_0x5c623f(0x35f)](_0x4e49aa);}function _0x3ceb19(){const _0x2afab4=_0x5df3;if(!_0xedb912())return{'enabled':![],'hint':_0x2afab4(0x2ae)};return{'enabled':!![],'stackCapture':!!_0x44522a,'recentWrites':_0x926dad(0x10),'drain':_0x4fac0c()};}return okdbDiag={'isEnabled':_0xedb912,'recordWrite':_0x29471e,'installDiag':_0x1f282a,'registerOkdb':_0x1d34a0,'unregisterOkdb':_0x1a75a6,'snapshot':_0x3ceb19},okdbDiag;}var hasRequiredOkdbWriter;function requireOkdbWriter(){const _0x18cfbe=_0x24af3f;if(hasRequiredOkdbWriter)return okdbWriter[_0x18cfbe(0x29c)];hasRequiredOkdbWriter=0x1;const {performance:_0x5c6726}=require$$0$2,_0x434b6a=requireOkdbDiag(),_0x5a99c=process.env.OKDB_COMMIT_MODE===_0x18cfbe(0x276);class _0x500f45{constructor(_0x90e9c){const _0x2c8950=_0x18cfbe;this['env']=_0x90e9c,this[_0x2c8950(0x331)]=new Set(),this[_0x2c8950(0x259)]=new Map(),this[_0x2c8950(0x338)]=0x0,this['_durs']=[],this[_0x2c8950(0x2f1)]=[],this[_0x2c8950(0x241)]=Math[_0x2c8950(0x1fd)](0x0,Number(process.env.OKDB_WRITER_HIGH_WATER??0x400)),this[_0x2c8950(0x3b1)]=0x0,this[_0x2c8950(0x360)]=[],this[_0x2c8950(0x1aa)]=0x0;}async[_0x18cfbe(0x19f)](_0x30b9b2,_0x2da728){const _0x49542b=_0x18cfbe;if(_0x434b6a[_0x49542b(0x18d)]())_0x434b6a[_0x49542b(0x24d)](this[_0x49542b(0x2de)]?.[_0x49542b(0x262)],_0x2da728);if(this[_0x49542b(0x2d5)]){const _0x56dc65=new Error(_0x49542b(0x1d5));_0x56dc65[_0x49542b(0x1fb)]=_0x49542b(0x3a2);throw _0x56dc65;}if(this[_0x49542b(0x241)]>0x0){let _0x49bb35=![];while(this[_0x49542b(0x3b1)]>=this[_0x49542b(0x241)]&&!this[_0x49542b(0x2d5)]){!_0x49bb35&&(_0x49bb35=!![],this[_0x49542b(0x1aa)]++),await new Promise(_0x569a98=>this['_bpWaiters'][_0x49542b(0x202)](_0x569a98));}if(this[_0x49542b(0x2d5)]){const _0x424f08=new Error(_0x49542b(0x1d5));_0x424f08['code']=_0x49542b(0x3a2);throw _0x424f08;}}this[_0x49542b(0x3b1)]++;const _0x12a279=this[_0x49542b(0x2de)][_0x49542b(0x335)];if(_0x12a279)await _0x12a279[_0x49542b(0x293)]();if(this[_0x49542b(0x2d5)]){if(_0x12a279)_0x12a279['afterWrite']();this[_0x49542b(0x3b1)]--;if(this[_0x49542b(0x360)][_0x49542b(0x2d8)]&&this['_outstanding']<this['_highWater'])this[_0x49542b(0x360)]['shift']()();const _0x14d9d9=new Error(_0x49542b(0x1d5));_0x14d9d9[_0x49542b(0x1fb)]='ENV_CLOSING_RETRY';throw _0x14d9d9;}const _0x337354=_0x5c6726['now']();if(_0x5a99c)try{const _0x2ae5fb=this[_0x49542b(0x2de)]['db'][_0x49542b(0x30f)](_0x30b9b2);this[_0x49542b(0x338)]++;if(this[_0x49542b(0x2ec)][_0x49542b(0x202)](_0x5c6726['now']()-_0x337354)>0x100)this[_0x49542b(0x2ec)][_0x49542b(0x2d2)]();if(this[_0x49542b(0x2f1)][_0x49542b(0x202)](_0x5c6726[_0x49542b(0x353)]())>0x800)this['_done'][_0x49542b(0x2d2)]();return _0x2ae5fb;}finally{this['_outstanding']--;if(this[_0x49542b(0x360)]['length']&&this[_0x49542b(0x3b1)]<this['_highWater'])this[_0x49542b(0x360)][_0x49542b(0x2d2)]()();if(_0x12a279)_0x12a279[_0x49542b(0x2fe)]();}const _0xc30d6c=this['env']['db'][_0x49542b(0x248)](_0x30b9b2);this['_inflight'][_0x49542b(0x281)](_0xc30d6c),this[_0x49542b(0x259)][_0x49542b(0x2b3)](_0xc30d6c,_0x337354);const _0x257f3a=()=>{const _0x41633a=_0x49542b;this[_0x41633a(0x331)][_0x41633a(0x35f)](_0xc30d6c),this[_0x41633a(0x259)][_0x41633a(0x35f)](_0xc30d6c),this['_committed']++,this['_outstanding']--;this['_bpWaiters'][_0x41633a(0x2d8)]&&this[_0x41633a(0x3b1)]<this[_0x41633a(0x241)]&&this['_bpWaiters']['shift']()();if(this[_0x41633a(0x2ec)][_0x41633a(0x202)](_0x5c6726['now']()-_0x337354)>0x100)this[_0x41633a(0x2ec)][_0x41633a(0x2d2)]();if(this['_done'][_0x41633a(0x202)](_0x5c6726[_0x41633a(0x353)]())>0x800)this['_done'][_0x41633a(0x2d2)]();};_0xc30d6c[_0x49542b(0x2e5)](_0x257f3a,_0x257f3a);try{return await _0xc30d6c;}finally{if(_0x12a279)_0x12a279[_0x49542b(0x2fe)]();}}[_0x18cfbe(0x21a)](){const _0x2dcb18=_0x18cfbe,_0x2e44a0=_0x5c6726['now']();let _0x33597b=0x0;for(const _0x122968 of this['_enqueuedAt'][_0x2dcb18(0x1e4)]()){const _0x1bb259=_0x2e44a0-_0x122968;if(_0x1bb259>_0x33597b)_0x33597b=_0x1bb259;}let _0xd633cb=0x0;for(let _0x533bc1=this['_done']['length']-0x1;_0x533bc1>=0x0;_0x533bc1--){if(_0x2e44a0-this[_0x2dcb18(0x2f1)][_0x533bc1]>0x3e8)break;_0xd633cb++;}let _0x11fd92=0x0;if(this[_0x2dcb18(0x2ec)]['length']){const _0x4be68b=[...this[_0x2dcb18(0x2ec)]][_0x2dcb18(0x2c2)]((_0x6f199f,_0xa7cd7d)=>_0x6f199f-_0xa7cd7d);_0x11fd92=_0x4be68b[Math['min'](_0x4be68b[_0x2dcb18(0x2d8)]-0x1,Math[_0x2dcb18(0x2af)](_0x4be68b['length']*0.99))];}return{'depth':this[_0x2dcb18(0x331)][_0x2dcb18(0x238)],'oldestPendingMs':Math['round'](_0x33597b),'committed':this[_0x2dcb18(0x338)],'commitsPerSec':_0xd633cb,'commitP99Ms':Math[_0x2dcb18(0x252)](_0x11fd92),'parkedNow':this['_bpWaiters'][_0x2dcb18(0x2d8)],'parkedTotal':this[_0x2dcb18(0x1aa)],'highWater':this[_0x2dcb18(0x241)]};}[_0x18cfbe(0x1c4)](){const _0x249476=_0x18cfbe,_0x4f98c5=_0x5c6726[_0x249476(0x353)]();return[...this['_enqueuedAt'][_0x249476(0x1e4)]()][_0x249476(0x28d)](_0x24242e=>Math[_0x249476(0x252)](_0x4f98c5-_0x24242e))['sort']((_0x2961e4,_0x3d4046)=>_0x3d4046-_0x2961e4);}[_0x18cfbe(0x263)](){const _0x7d22de=_0x18cfbe;this[_0x7d22de(0x2d5)]=!![];for(const _0x29d1ed of this[_0x7d22de(0x360)][_0x7d22de(0x1f4)](0x0))_0x29d1ed();}async['drain'](){const _0x3adf92=_0x18cfbe;let _0x29ac37=0x0;while(this[_0x3adf92(0x331)][_0x3adf92(0x238)]&&_0x29ac37++<0x3e8){await Promise[_0x3adf92(0x19a)]([...this[_0x3adf92(0x331)]]);}}async['put'](_0x14b031,_0x37ff82,_0x408793,_0xf8a836){const _0x1232c9=_0x18cfbe;return this[_0x1232c9(0x19f)](()=>{const _0x5350ad=_0x1232c9;if(_0xf8a836===undefined)_0x14b031['putSync'](_0x37ff82,_0x408793);else _0x14b031[_0x5350ad(0x251)](_0x37ff82,_0x408793,_0xf8a836);},_0x1232c9(0x1f1));}async[_0x18cfbe(0x39b)](_0x2048d7,_0x2064a9){const _0x46d06e=_0x18cfbe;return this[_0x46d06e(0x19f)](()=>_0x2048d7['removeSync'](_0x2064a9),'raw-remove');}}async function _0xcfd164(_0x1653d5,_0x1ee94d){const _0x153d14=_0x18cfbe;if(_0x1ee94d==null)_0x1ee94d=Math[_0x153d14(0x1fd)](0x3e8,Number(process.env.OKDB_FLUSH_BEFORE_CLOSE_MS)||0x1d4c0);try{const _0x436132=_0x1653d5?.[_0x153d14(0x21d)];if(!_0x436132||typeof _0x436132[_0x153d14(0x2e5)]!==_0x153d14(0x22c))return;await Promise['race']([Promise[_0x153d14(0x1ba)](_0x436132)[_0x153d14(0x1b7)](()=>{}),new Promise(_0x286cdc=>{const _0x5af94d=_0x153d14,_0x525151=setTimeout(_0x286cdc,_0x1ee94d);if(_0x525151[_0x5af94d(0x36e)])_0x525151[_0x5af94d(0x36e)]();})]);}catch{}}function _0x449c83(_0xf7b397){const _0x35e1cf=_0x18cfbe;if(_0x5a99c)return Promise['resolve']();const _0x3ab2de=_0xf7b397?.[_0x35e1cf(0x288)];return _0x3ab2de&&typeof _0x3ab2de[_0x35e1cf(0x2e5)]===_0x35e1cf(0x22c)?_0x3ab2de:Promise[_0x35e1cf(0x1ba)]();}return okdbWriter[_0x18cfbe(0x29c)]=_0x500f45,okdbWriter['exports'][_0x18cfbe(0x388)]=_0xcfd164,okdbWriter[_0x18cfbe(0x29c)][_0x18cfbe(0x288)]=_0x449c83,okdbWriter[_0x18cfbe(0x29c)][_0x18cfbe(0x277)]=_0x5a99c,okdbWriter[_0x18cfbe(0x29c)];}var okdbLock,hasRequiredOkdbLock;function requireOkdbLock(){const _0x4bf4de=_0x24af3f;if(hasRequiredOkdbLock)return okdbLock;hasRequiredOkdbLock=0x1;const _0x42cc65=require$$0$3,{SYNC_COMMITS:_0x365f91}=requireOkdbWriter(),_0x35c186=_0x4bf4de(0x2f9);class _0x19e39a{constructor(_0x20924e,_0x3c5f4a,_0xd490a0){const _0x440271=_0x4bf4de;this[_0x440271(0x1d3)]=_0x20924e,this[_0x440271(0x188)]=_0x3c5f4a,this['_acquiredAt']=_0xd490a0,this[_0x440271(0x31b)]=![],this['_heartbeatTimer']=null,this[_0x440271(0x1e0)]=null;}[_0x4bf4de(0x212)](){const _0x2d1e37=_0x4bf4de;if(this[_0x2d1e37(0x31b)])return![];try{const _0x35ed91=this['_lock']['_db']()[_0x2d1e37(0x374)](this[_0x2d1e37(0x188)]);if(!_0x35ed91||_0x35ed91[_0x2d1e37(0x2ac)]!==this[_0x2d1e37(0x198)])return![];const _0x4c127e=_0x35ed91[_0x2d1e37(0x1fe)]??_0x35ed91['acquiredAt'];if(_0x4c127e+_0x35ed91[_0x2d1e37(0x355)]<Date[_0x2d1e37(0x353)]())return![];return!![];}catch{return!this['_released'];}}[_0x4bf4de(0x3ae)](){const _0x33000f=_0x4bf4de;if(this[_0x33000f(0x31b)])return null;try{return this[_0x33000f(0x1d3)][_0x33000f(0x304)]()[_0x33000f(0x374)](this[_0x33000f(0x188)])??null;}catch{return null;}}async[_0x4bf4de(0x253)](_0x4a2337){const _0x19f507=_0x4bf4de;if(this[_0x19f507(0x31b)])return;try{const _0x26649c=this[_0x19f507(0x1d3)]['_db']()[_0x19f507(0x374)](this[_0x19f507(0x188)]);if(!_0x26649c||_0x26649c[_0x19f507(0x2ac)]!==this[_0x19f507(0x198)])return;if(_0x365f91)this[_0x19f507(0x1d3)][_0x19f507(0x304)]()[_0x19f507(0x251)](this[_0x19f507(0x188)],{..._0x26649c,'ttlMs':_0x26649c[_0x19f507(0x355)]+_0x4a2337});else await this[_0x19f507(0x1d3)][_0x19f507(0x304)]()['put'](this[_0x19f507(0x188)],{..._0x26649c,'ttlMs':_0x26649c[_0x19f507(0x355)]+_0x4a2337});}catch{}}async[_0x4bf4de(0x267)](){const _0x2c2342=_0x4bf4de;if(this[_0x2c2342(0x31b)])return;if(this[_0x2c2342(0x1e0)])try{await this[_0x2c2342(0x1e0)];}catch{}clearInterval(this[_0x2c2342(0x32c)]),this[_0x2c2342(0x32c)]=null,this[_0x2c2342(0x31b)]=!![];try{const _0x9550c5=this['_lock'][_0x2c2342(0x304)]()[_0x2c2342(0x374)](this[_0x2c2342(0x188)]);if(_0x9550c5&&_0x9550c5[_0x2c2342(0x2ac)]===this[_0x2c2342(0x198)]){if(_0x365f91)this[_0x2c2342(0x1d3)]['_db']()['removeSync'](this[_0x2c2342(0x188)]);else await this[_0x2c2342(0x1d3)][_0x2c2342(0x304)]()[_0x2c2342(0x39b)](this['_key']);}}catch{}}['_startHeartbeat'](_0x3751ae,_0x56ac25){const _0x2acb91=_0x4bf4de,_0x5e66ba=_0x56ac25??Math[_0x2acb91(0x2af)](_0x3751ae/0x3);this[_0x2acb91(0x32c)]=setInterval(()=>{const _0x308372=_0x2acb91;if(this[_0x308372(0x31b)])return;this[_0x308372(0x1e0)]=((async()=>{const _0xe8fbc0=_0x308372;try{const _0x4e89f3=this[_0xe8fbc0(0x1d3)]['_db']()[_0xe8fbc0(0x374)](this[_0xe8fbc0(0x188)]);if(!_0x4e89f3||_0x4e89f3['acquiredAt']!==this[_0xe8fbc0(0x198)]){this[_0xe8fbc0(0x31b)]=!![],clearInterval(this[_0xe8fbc0(0x32c)]),this[_0xe8fbc0(0x32c)]=null;return;}if(_0x365f91)this[_0xe8fbc0(0x1d3)]['_db']()[_0xe8fbc0(0x251)](this[_0xe8fbc0(0x188)],{..._0x4e89f3,'updatedAt':Date['now']()});else await this[_0xe8fbc0(0x1d3)][_0xe8fbc0(0x304)]()[_0xe8fbc0(0x1dc)](this['_key'],{..._0x4e89f3,'updatedAt':Date[_0xe8fbc0(0x353)]()});}catch{}this[_0xe8fbc0(0x1e0)]=null;})());},_0x5e66ba);if(this[_0x2acb91(0x32c)]['unref'])this[_0x2acb91(0x32c)][_0x2acb91(0x36e)]();}}class _0x55192f{constructor(_0x4ad7d1,{namespace:_0x8a8ac6,ttlMs:ttlMs=0x7530,heartbeatMs:heartbeatMs=null}={}){const _0x1cbfda=_0x4bf4de;this['_rawDb']=_0x4ad7d1,this['namespace']=_0x8a8ac6,this[_0x1cbfda(0x355)]=ttlMs,this[_0x1cbfda(0x191)]=heartbeatMs,this[_0x1cbfda(0x232)]=null;}[_0x4bf4de(0x304)](){const _0x3a11e4=_0x4bf4de;return!this[_0x3a11e4(0x232)]&&(this['_lockDb']=this['_rawDb'][_0x3a11e4(0x327)](_0x35c186,{'dupSort':![]})),this[_0x3a11e4(0x232)];}[_0x4bf4de(0x3b0)](){const _0xab8d52=_0x4bf4de;return!this[_0xab8d52(0x1e7)]&&(this[_0xab8d52(0x1e7)]=this['_rawDb']['openDB'](_0x35c186+_0xab8d52(0x39f),{'dupSort':![]})),this[_0xab8d52(0x1e7)];}[_0x4bf4de(0x188)](_0x56f5c3){const _0x13f8a2=_0x4bf4de;return this[_0x13f8a2(0x28c)]+':'+_0x56f5c3;}['signalWant'](_0x130008){const _0x147a95=_0x4bf4de;try{_0x365f91?this[_0x147a95(0x3b0)]()['putSync'](this[_0x147a95(0x188)](_0x130008),Date[_0x147a95(0x353)]()):this[_0x147a95(0x3b0)]()[_0x147a95(0x1dc)](this[_0x147a95(0x188)](_0x130008),Date['now']())?.['catch']?.(()=>{});}catch{}}[_0x4bf4de(0x33d)](_0x1d3b47,_0x581a24=0x3e8){const _0x449bca=_0x4bf4de;try{const _0x313292=this[_0x449bca(0x3b0)]()['get'](this[_0x449bca(0x188)](_0x1d3b47));return typeof _0x313292===_0x449bca(0x21e)&&Date['now']()-_0x313292<_0x581a24;}catch{return![];}}[_0x4bf4de(0x22b)](_0x19d9de){const _0x1eab43=_0x4bf4de,_0x497dbf=_0x19d9de[_0x1eab43(0x1fe)]??_0x19d9de[_0x1eab43(0x2ac)];return _0x497dbf+_0x19d9de[_0x1eab43(0x355)]<Date[_0x1eab43(0x353)]();}static[_0x4bf4de(0x364)](_0x11070e){const _0x1d4215=_0x4bf4de,_0x3c880a=_0x11070e?.[_0x1d4215(0x3ae)];if(!_0x3c880a||typeof _0x3c880a[_0x1d4215(0x34e)]!=='number')return![];if(_0x3c880a[_0x1d4215(0x3ad)]!==_0x42cc65[_0x1d4215(0x3ad)]())return![];if(_0x3c880a['pid']===process['pid'])return![];try{return process[_0x1d4215(0x25c)](_0x3c880a['pid'],0x0),![];}catch(_0x4567b7){return _0x4567b7[_0x1d4215(0x1fb)]==='ESRCH';}}async[_0x4bf4de(0x30d)](_0xd9e609,_0x1819fa={},_0x3328b0={}){const _0x3d914f=_0x4bf4de,_0x262f0a=this[_0x3d914f(0x188)](_0xd9e609),_0x535200=_0x3328b0[_0x3d914f(0x355)]??this['ttlMs'],_0x50c442=Date[_0x3d914f(0x353)](),_0x4ab55c={'holder':{'pid':process[_0x3d914f(0x34e)],'hostname':_0x42cc65[_0x3d914f(0x3ad)](),..._0x1819fa},'acquiredAt':_0x50c442,'updatedAt':_0x50c442,'ttlMs':_0x535200};let _0x4c312f=![],_0x25b3b1=null;try{const _0x4cd1fa=()=>{const _0x3a6e97=_0x3d914f,_0x4ec53d=this[_0x3a6e97(0x304)]()['get'](_0x262f0a);if(_0x4ec53d&&!this[_0x3a6e97(0x22b)](_0x4ec53d)&&!_0x55192f[_0x3a6e97(0x364)](_0x4ec53d)){const _0x59645b=_0x1819fa[_0x3a6e97(0x21f)]!=null&&_0x4ec53d[_0x3a6e97(0x3ae)][_0x3a6e97(0x34e)]===process[_0x3a6e97(0x34e)]&&_0x4ec53d[_0x3a6e97(0x3ae)][_0x3a6e97(0x21f)]===_0x1819fa['processorId'];if(!_0x59645b){_0x4c312f=![],_0x25b3b1=_0x4ec53d;return;}_0x4ab55c[_0x3a6e97(0x2ac)]<=_0x4ec53d[_0x3a6e97(0x2ac)]&&(_0x4ab55c['acquiredAt']=_0x4ec53d['acquiredAt']+0x1,_0x4ab55c[_0x3a6e97(0x1fe)]=_0x4ab55c[_0x3a6e97(0x2ac)]);}this[_0x3a6e97(0x304)]()[_0x3a6e97(0x1dc)](_0x262f0a,_0x4ab55c),_0x4c312f=!![],_0x25b3b1=_0x4ab55c;};if(_0x365f91)this[_0x3d914f(0x304)]()[_0x3d914f(0x30f)](_0x4cd1fa);else await this[_0x3d914f(0x304)]()[_0x3d914f(0x248)](_0x4cd1fa);}catch{return{'acquired':![],'handle':null,'current':null};}if(!_0x4c312f)return{'acquired':![],'handle':null,'current':_0x25b3b1};const _0x5948c8=new _0x19e39a(this,_0x262f0a,_0x4ab55c[_0x3d914f(0x2ac)]);return _0x5948c8[_0x3d914f(0x233)](_0x535200,this[_0x3d914f(0x191)]),{'acquired':!![],'handle':_0x5948c8,'current':_0x25b3b1};}[_0x4bf4de(0x3af)](_0x5ea255){const _0x4dc96d=_0x4bf4de;try{return this[_0x4dc96d(0x304)]()[_0x4dc96d(0x374)](this[_0x4dc96d(0x188)](_0x5ea255))??null;}catch{return null;}}[_0x4bf4de(0x274)](){const _0xf26ee=_0x4bf4de,_0x1f2f53=this[_0xf26ee(0x28c)]+':',_0x59bbd8=[];try{for(const {key:_0xdd0e3f,value:_0x10f266}of this[_0xf26ee(0x304)]()['getRange']({'start':_0x1f2f53,'end':_0x1f2f53+'\xff'})){typeof _0xdd0e3f===_0xf26ee(0x306)&&_0xdd0e3f[_0xf26ee(0x23f)](_0x1f2f53)&&_0x59bbd8['push']({'id':_0xdd0e3f[_0xf26ee(0x1f6)](_0x1f2f53['length']),'entry':_0x10f266});}}catch{}return _0x59bbd8;}static['listAll'](_0x9e0108){const _0x215dc2=_0x4bf4de,_0x578445=[];try{const _0x2da8c1=_0x9e0108[_0x215dc2(0x327)](_0x35c186,{'dupSort':![]});for(const {key:_0x26f155,value:_0x391bf8}of _0x2da8c1[_0x215dc2(0x39d)]({})){if(typeof _0x26f155!==_0x215dc2(0x306))continue;const _0x24c46a=_0x26f155[_0x215dc2(0x37c)](':');if(_0x24c46a<0x1)continue;_0x578445['push']({'namespace':_0x26f155[_0x215dc2(0x1f6)](0x0,_0x24c46a),'id':_0x26f155[_0x215dc2(0x1f6)](_0x24c46a+0x1),'entry':_0x391bf8});}}catch{}return _0x578445;}}return okdbLock={'OKDBLock':_0x55192f},okdbLock;}function _0x5df3(_0x34a4ae,_0x52de06){_0x34a4ae=_0x34a4ae-0x180;const _0x17bb45=_0x17bb();let _0x5df359=_0x17bb45[_0x34a4ae];return _0x5df359;}var version=_0x24af3f(0x180),require$$6={'version':version},okdbProcessRegistry,hasRequiredOkdbProcessRegistry;function requireOkdbProcessRegistry(){const _0x4451d0=_0x24af3f;if(hasRequiredOkdbProcessRegistry)return okdbProcessRegistry;hasRequiredOkdbProcessRegistry=0x1;const _0x49589f=require$$0$3,_0x4d9f44=require$$1$1,_0x28971e=require$$2,{LOOP:_0x3ae377}=requireOkdbLoopMonitor(),{OKDBLock:_0x3b7fe6}=requireOkdbLock(),{SYNC_COMMITS:_0xc823f8}=requireOkdbWriter(),_0x5af0dc='~processes',_0x213036=_0x4451d0(0x2f3),_0x565ece=_0x4451d0(0x336),_0x440793=_0x4451d0(0x26c),_0x3440c9=(_0x4731ef,_0x336c8f)=>_0x4731ef+':'+_0x336c8f,_0x4da6de=(_0x4ce4d7,_0x181e3b)=>_0x4ce4d7+'::'+_0x181e3b,_0x5dfe88=(_0x5ea556,_0x3df399)=>_0x5ea556+'/'+_0x3df399,_0x33f46c=(_0x5ae875,_0x13e287)=>_0x5ae875+'#'+_0x13e287,_0x9f1bb3=_0x498a93=>{const _0xdc8044=_0x4451d0;if(_0x498a93?.['processKey'])return _0x498a93[_0xdc8044(0x2e4)];const _0x26cfb4=_0x498a93?.[_0xdc8044(0x352)];return typeof _0x26cfb4===_0xdc8044(0x306)&&_0x26cfb4[_0xdc8044(0x1d2)]('#')?_0x26cfb4['slice'](0x0,_0x26cfb4['indexOf']('#')):_0x26cfb4;},_0x555a3e=Number(process.env.OKDB_WORKERS_HEARTBEAT_MS)||0x2710,_0x55e38e=Number(process.env.OKDB_WORKERS_PUBLISH_MS)||0x3e8,_0xd26b41=_0x555a3e*0x3,_0x11a1f1=Number(process.env.OKDB_PID_REUSE_HORIZON_MS)||Math[_0x4451d0(0x1fd)](0x927c0,_0xd26b41*0x14),_0x6a5762=[_0x4451d0(0x323),_0x4451d0(0x2da),_0x4451d0(0x2b7),_0x4451d0(0x2a0),_0x4451d0(0x225),_0x4451d0(0x330)];let _0x18f260=null;function _0x18ffde(){const _0x23ac5d=_0x4451d0;if(_0x18f260==null)_0x18f260=Math[_0x23ac5d(0x252)]((Date[_0x23ac5d(0x353)]()-process['uptime']()*0x3e8)/0x3e8)*0x3e8;return _0x18f260;}function _0x5c2c0b(_0x437179){const _0x35a85e=_0x4451d0;if(process.env.OKDB_PROCESS_KILL===_0x35a85e(0x185))return![];if(_0x437179?.[_0x35a85e(0x2b6)]?.[_0x35a85e(0x29e)]&&typeof _0x437179['options'][_0x35a85e(0x29e)]==='object'&&_0x437179[_0x35a85e(0x2b6)][_0x35a85e(0x29e)][_0x35a85e(0x25c)]===![])return![];return!![];}function _0x501db6(_0x32756f,_0x56f2b4){const _0x2a6806=_0x4451d0,_0x276129=!!_0x56f2b4?.['processors'];switch(_0x32756f){case _0x2a6806(0x2d4):return{'controllable':_0x276129,'decommissionable':![],'killable':!![],'killConfirm':'cluster-wide'};case _0x2a6806(0x1c9):case _0x2a6806(0x18b):return{'controllable':_0x276129,'decommissionable':![],'killable':!![],'killConfirm':_0x2a6806(0x2a1)};case _0x2a6806(0x384):return{'controllable':![],'decommissionable':![],'killable':![]};case _0x2a6806(0x2cf):case _0x2a6806(0x1ea):case _0x2a6806(0x1b0):case'worker':return{'controllable':![],'decommissionable':!![],'killable':!![],'killConfirm':'force'};default:return{'controllable':![],'decommissionable':![],'killable':![]};}}class _0x1dc7cd{constructor(_0x5ba7a2){const _0x47c726=_0x4451d0;this['okdb']=_0x5ba7a2,this['_statusEnv']=null,this[_0x47c726(0x3a7)]=null,this['_desiredOverlay']=new Map(),this[_0x47c726(0x218)]=null,this['_isWriter']=![],this[_0x47c726(0x261)]=![],this[_0x47c726(0x372)]=_0x18ffde(),this[_0x47c726(0x387)]=_0x3440c9(process[_0x47c726(0x34e)],this['_processStartedAt']),this['_instanceId']=_0x28971e[_0x47c726(0x1a6)]()[_0x47c726(0x1f6)](0x0,0x8),this[_0x47c726(0x195)]=_0x33f46c(this[_0x47c726(0x387)],this[_0x47c726(0x2e2)]),this[_0x47c726(0x2ed)]=Date[_0x47c726(0x353)](),this[_0x47c726(0x349)]=null,this[_0x47c726(0x230)]=null,this[_0x47c726(0x312)]=null,this[_0x47c726(0x1d1)]=null,this[_0x47c726(0x2e9)]=null,this[_0x47c726(0x181)]=null,this[_0x47c726(0x2fd)]=0x0,this[_0x47c726(0x303)]={},this[_0x47c726(0x19e)]=new Map(),this[_0x47c726(0x39c)]=process['cpuUsage'](),this[_0x47c726(0x2dd)]=Date[_0x47c726(0x353)](),this[_0x47c726(0x217)]=0x0,this[_0x47c726(0x221)]=new Map();}get[_0x4451d0(0x39e)](){const _0x11b457=_0x4451d0;return this[_0x11b457(0x387)];}get[_0x4451d0(0x1ca)](){const _0x25e34e=_0x4451d0;return this[_0x25e34e(0x195)];}[_0x4451d0(0x1b5)](_0x51944b,_0x278aca){const _0x20ce1e=_0x4451d0,_0x549330=_0x501db6(_0x51944b,_0x278aca);if(_0x549330['killable']&&!_0x5c2c0b(this[_0x20ce1e(0x302)]))return{..._0x549330,'killable':![],'killConfirm':undefined};return _0x549330;}[_0x4451d0(0x216)](){const _0x27067f=_0x4451d0;return!!this[_0x27067f(0x1ed)];}[_0x4451d0(0x2b9)](_0x11745b){const _0x575e27=_0x4451d0;Object[_0x575e27(0x193)](this['_ownMeta'],_0x11745b||{});}[_0x4451d0(0x392)](_0x1a4ce1){const _0x4cf6f2=_0x4451d0;if(_0x1a4ce1)this[_0x4cf6f2(0x312)]=_0x1a4ce1;}['register'](_0x4eb221={}){const _0x4ad818=_0x4451d0;return this['okdb'][_0x4ad818(0x391)](_0x4eb221);}['processingStatusView'](){const _0x1ff6d3=_0x4451d0,_0x1e6cb8={};let _0x4dcfed=0x0,_0x52fb6b=0x0;const _0x28a88c=new Set();for(const _0x260205 of this['listNodes']()){_0x52fb6b++;const _0x5aeeb4=_0x260205[_0x1ff6d3(0x1c1)];if(!_0x5aeeb4)continue;if(_0x5aeeb4[_0x1ff6d3(0x2f7)])_0x4dcfed++;for(const _0x2d9344 of _0x5aeeb4[_0x1ff6d3(0x347)]||[]){if(![_0x1ff6d3(0x201),_0x1ff6d3(0x1be)][_0x1ff6d3(0x1d2)](_0x2d9344[_0x1ff6d3(0x200)]))continue;(_0x2d9344[_0x1ff6d3(0x2be)]===_0x1ff6d3(0x2b5)||_0x2d9344['state']===_0x1ff6d3(0x2a5))&&_0x2d9344[_0x1ff6d3(0x196)]&&_0x28a88c['add']((_0x2d9344[_0x1ff6d3(0x2de)]||_0x1ff6d3(0x279))+':'+_0x2d9344[_0x1ff6d3(0x196)]);const _0x51f108=_0x2d9344[_0x1ff6d3(0x2de)]||'default';(_0x1e6cb8[_0x51f108]||=[])[_0x1ff6d3(0x202)]({..._0x2d9344,'env':_0x51f108,'owner':{'pid':_0x260205[_0x1ff6d3(0x34e)]??null,'kind':_0x260205[_0x1ff6d3(0x283)]??null}});}}for(const [_0x2ac182,_0x496845]of Object['entries'](_0x1e6cb8)){for(const _0x252f1e of _0x496845){if(_0x252f1e[_0x1ff6d3(0x200)]===_0x1ff6d3(0x201)&&!_0x252f1e[_0x1ff6d3(0x2e8)]){const _0x78821e=_0x2ac182+':'+(_0x252f1e['cursorKey']??'');if(!_0x28a88c['has'](_0x78821e))_0x252f1e[_0x1ff6d3(0x249)]=!![];}}}return{'envs':_0x1e6cb8,'policy':null,'participation':{'participating':_0x4dcfed,'total':_0x52fb6b},'source':_0x1ff6d3(0x34d)};}[_0x4451d0(0x23a)](){const _0x5dc945=_0x4451d0,_0x1e3784=_0xb2e71d=>{const _0x4ac2d5=_0x5df3;if(_0xb2e71d[_0x4ac2d5(0x2be)]===_0x4ac2d5(0x2b5)||_0xb2e71d[_0x4ac2d5(0x2be)]===_0x4ac2d5(0x2a5)||_0xb2e71d['state']===_0x4ac2d5(0x3a0))return 0x3;if(_0xb2e71d['claimGated'])return 0x1;return 0x2;},_0x299701=new Map();for(const _0x4b231b of this[_0x5dc945(0x182)]()){for(const _0x1eab8a of _0x4b231b[_0x5dc945(0x1c1)]?.[_0x5dc945(0x347)]||[]){const _0x4aef61={..._0x1eab8a,'owner':{'pid':_0x4b231b[_0x5dc945(0x34e)]??null,'kind':_0x4b231b[_0x5dc945(0x283)]??null,'host':_0x4b231b[_0x5dc945(0x226)]??null}},_0x39f9f1=_0x1eab8a[_0x5dc945(0x200)]===_0x5dc945(0x201)?_0x5dc945(0x3a5)+(_0x1eab8a[_0x5dc945(0x2de)]??'')+'::'+(_0x1eab8a[_0x5dc945(0x196)]??_0x1eab8a['type']??_0x1eab8a['id']):_0x5dc945(0x378)+(_0x4b231b['nodeKey']??_0x4b231b[_0x5dc945(0x2e4)]??'')+'::'+(_0x1eab8a[_0x5dc945(0x2de)]??'')+'::'+_0x1eab8a['id'],_0x1a2e00=_0x299701['get'](_0x39f9f1);if(!_0x1a2e00||_0x1e3784(_0x4aef61)>_0x1e3784(_0x1a2e00))_0x299701['set'](_0x39f9f1,_0x4aef61);}}return[..._0x299701['values']()];}['clusterStatusView'](){const _0x173be6=_0x4451d0,_0x186f7b=Date[_0x173be6(0x353)](),_0x4ba328=this[_0x173be6(0x182)](),_0x3a95b7=_0x55a032=>Math[_0x173be6(0x1fd)](0x0,Math[_0x173be6(0x252)]((_0x186f7b-(_0x55a032[_0x173be6(0x398)]||_0x186f7b))/0x3e8)),_0x20a1ec=_0x4ba328['find'](_0x4f1566=>_0x4f1566['kind']===_0x173be6(0x2d4)),_0x3f70a3=_0x4ba328['filter'](_0x5b10a0=>_0x5b10a0[_0x173be6(0x283)]==='http-server');if(_0x20a1ec||_0x3f70a3['length'])return{'primary':_0x20a1ec?{'pid':_0x20a1ec['pid'],'uptime':_0x3a95b7(_0x20a1ec)}:null,'workers':_0x3f70a3[_0x173be6(0x28d)](_0x364f0d=>({'pid':_0x364f0d[_0x173be6(0x34e)],'uptime':_0x3a95b7(_0x364f0d)})),'workersConfigured':_0x20a1ec?.['meta']?.['workersConfigured']??_0x3f70a3['length'],'mode':'cluster'};const _0x561e54=_0x4ba328[_0x173be6(0x33e)](_0x35c593=>_0x35c593[_0x173be6(0x283)]===_0x173be6(0x1c9)||_0x35c593['kind']==='standalone'||_0x35c593['kind']===_0x173be6(0x384)),_0x319ce5=_0x561e54?{'pid':_0x561e54[_0x173be6(0x34e)],'uptime':_0x3a95b7(_0x561e54)}:{'pid':process['pid'],'uptime':Math[_0x173be6(0x1fd)](0x0,Math[_0x173be6(0x252)](process['uptime']()))};return{'primary':_0x319ce5,'workers':[_0x319ce5],'workersConfigured':0x1,'mode':_0x173be6(0x201)};}['nodesView'](){const _0x2a35c1=_0x4451d0;return this[_0x2a35c1(0x1ad)]();}['treeView'](){const _0x426dc0=_0x4451d0,_0x5e1a38=new Map();for(const _0x251918 of this['_groupByProcess']())_0x5e1a38['set'](_0x251918['processKey'],{..._0x251918,'children':[]});const _0x66ff59=[];for(const _0x1b9f90 of _0x5e1a38['values']()){const _0x49a685=_0x1b9f90[_0x426dc0(0x365)]?_0x5e1a38[_0x426dc0(0x374)](_0x1b9f90[_0x426dc0(0x365)]):null;if(_0x49a685&&_0x49a685!==_0x1b9f90)_0x49a685[_0x426dc0(0x2a8)][_0x426dc0(0x202)](_0x1b9f90);else _0x66ff59[_0x426dc0(0x202)](_0x1b9f90);}const _0x59506b=(_0x5c6d15,_0x457ba9)=>_0x5c6d15['kind']===_0x457ba9[_0x426dc0(0x283)]?(_0x5c6d15[_0x426dc0(0x34e)]||0x0)-(_0x457ba9['pid']||0x0):(_0x5c6d15[_0x426dc0(0x283)]??'')<(_0x457ba9[_0x426dc0(0x283)]??'')?-0x1:0x1,_0x4fee0a=_0x1c8878=>{const _0x28b18d=_0x426dc0;_0x1c8878['sort'](_0x59506b);for(const _0x2c2afa of _0x1c8878)if(_0x2c2afa[_0x28b18d(0x2a8)][_0x28b18d(0x2d8)])_0x4fee0a(_0x2c2afa[_0x28b18d(0x2a8)]);};return _0x4fee0a(_0x66ff59),_0x66ff59;}[_0x4451d0(0x1f7)](_0x57e93d){const _0x1e4296=_0x4451d0;return this[_0x1e4296(0x1ad)]()['find'](_0xf8e9b0=>_0xf8e9b0['processKey']===_0x57e93d)??null;}['_groupByProcess'](_0x2fcaed=Date[_0x4451d0(0x353)]()){const _0x2d3b04=_0x4451d0,_0x674cd1=new Map();for(const _0x33eb92 of this[_0x2d3b04(0x182)]()){const _0x38573f=_0x9f1bb3(_0x33eb92);let _0x1726a5=_0x674cd1[_0x2d3b04(0x374)](_0x38573f);!_0x1726a5&&(_0x1726a5={'processKey':_0x38573f,'nodeKey':_0x38573f,'pid':_0x33eb92[_0x2d3b04(0x34e)],'ppid':_0x33eb92['ppid']??null,'host':_0x33eb92['host']??null,'kind':_0x33eb92['kind'],'role':null,'supervisorKey':_0x33eb92[_0x2d3b04(0x365)]??null,'slot':_0x33eb92[_0x2d3b04(0x3a3)]??null,'slotKey':_0x33eb92[_0x2d3b04(0x219)]??null,'caps':_0x33eb92[_0x2d3b04(0x3a9)]??null,'lifecycle':_0x33eb92[_0x2d3b04(0x324)]??null,'uptime':Math[_0x2d3b04(0x1fd)](0x0,Math[_0x2d3b04(0x252)]((_0x2fcaed-(_0x33eb92[_0x2d3b04(0x398)]||_0x2fcaed))/0x3e8)),'startedAt':_0x33eb92['startedAt']??null,'meta':_0x33eb92[_0x2d3b04(0x36c)]??null,'listenAddr':null,'processing':null,'engines':null,'singletonClaims':null,'stats':null,'instances':[]},_0x674cd1['set'](_0x38573f,_0x1726a5));_0x1726a5[_0x2d3b04(0x29a)][_0x2d3b04(0x202)]({'instanceId':_0x33eb92['instanceId']??null,'role':_0x33eb92[_0x2d3b04(0x270)]??null,'listenAddr':_0x33eb92[_0x2d3b04(0x29b)]??null,'lifecycle':_0x33eb92[_0x2d3b04(0x324)]??null,'processing':_0x33eb92[_0x2d3b04(0x1c1)]??null});if(!_0x1726a5[_0x2d3b04(0x270)]&&_0x33eb92[_0x2d3b04(0x270)])_0x1726a5[_0x2d3b04(0x270)]=_0x33eb92[_0x2d3b04(0x270)];if(!_0x1726a5[_0x2d3b04(0x29b)]&&_0x33eb92[_0x2d3b04(0x29b)])_0x1726a5[_0x2d3b04(0x29b)]=_0x33eb92[_0x2d3b04(0x29b)];if(!_0x1726a5[_0x2d3b04(0x1c1)]&&_0x33eb92[_0x2d3b04(0x1c1)])_0x1726a5[_0x2d3b04(0x1c1)]=_0x33eb92[_0x2d3b04(0x1c1)];if(!_0x1726a5['engines']&&_0x33eb92[_0x2d3b04(0x235)])_0x1726a5['engines']=_0x33eb92['engines'];if(!_0x1726a5[_0x2d3b04(0x1de)]&&_0x33eb92[_0x2d3b04(0x1de)])_0x1726a5[_0x2d3b04(0x1de)]=_0x33eb92[_0x2d3b04(0x1de)];if(_0x1726a5[_0x2d3b04(0x3a9)]==null&&_0x33eb92['caps'])_0x1726a5[_0x2d3b04(0x3a9)]=_0x33eb92[_0x2d3b04(0x3a9)];if(_0x33eb92[_0x2d3b04(0x25b)]&&(!_0x1726a5[_0x2d3b04(0x25b)]||(_0x33eb92[_0x2d3b04(0x25b)]['at']??0x0)>(_0x1726a5['stats']['at']??0x0)))_0x1726a5[_0x2d3b04(0x25b)]=_0x33eb92[_0x2d3b04(0x25b)];}return[..._0x674cd1['values']()];}[_0x4451d0(0x2f4)](){const _0x3e2839=_0x4451d0,_0x1501db=[],_0x146ca9={'rss':0x0,'heapUsed':0x0,'processes':0x0,'threads':{'count':0x0,'sandbox':0x0,'busy':0x0}};for(const _0x5cdda8 of this[_0x3e2839(0x1ad)]()){_0x1501db[_0x3e2839(0x202)]({'processKey':_0x5cdda8[_0x3e2839(0x2e4)],'kind':_0x5cdda8['kind'],'pid':_0x5cdda8['pid'],'supervisorKey':_0x5cdda8[_0x3e2839(0x365)],'meta':_0x5cdda8['meta']??null,'uptime':_0x5cdda8[_0x3e2839(0x1bd)],'stats':_0x5cdda8['stats']??null}),_0x146ca9[_0x3e2839(0x29e)]++;if(_0x5cdda8[_0x3e2839(0x25b)]){_0x146ca9['rss']+=_0x5cdda8[_0x3e2839(0x25b)]['rss']||0x0,_0x146ca9[_0x3e2839(0x31a)]+=(_0x5cdda8['stats'][_0x3e2839(0x31a)]||0x0)+(_0x5cdda8[_0x3e2839(0x25b)][_0x3e2839(0x2a4)]?.['heapUsed']||0x0);const _0x5d6979=_0x5cdda8['stats']['threads'];_0x5d6979&&(_0x146ca9[_0x3e2839(0x2a4)][_0x3e2839(0x309)]+=_0x5d6979[_0x3e2839(0x309)]||0x0,_0x146ca9[_0x3e2839(0x2a4)][_0x3e2839(0x1b4)]+=_0x5d6979[_0x3e2839(0x1b4)]||0x0,_0x146ca9['threads'][_0x3e2839(0x1dd)]+=_0x5d6979[_0x3e2839(0x1dd)]||0x0);}}return{'totals':_0x146ca9,'nodes':_0x1501db};}async['open']({writer:writer=![],reader:reader=![],kind:kind=null,supervisorKey:supervisorKey=null,listenAddr:listenAddr=null}={}){const _0x4e15b1=_0x4451d0;this[_0x4e15b1(0x37a)]=this[_0x4e15b1(0x37a)]||!!writer,this[_0x4e15b1(0x261)]=this[_0x4e15b1(0x261)]||!!reader,this[_0x4e15b1(0x349)]=kind||this[_0x4e15b1(0x349)]||(_0x4d9f44['isWorker']?'http-server':_0x4e15b1(0x1c9)),this[_0x4e15b1(0x230)]=supervisorKey??this['_supervisorKey'],this[_0x4e15b1(0x312)]=listenAddr??this[_0x4e15b1(0x312)],this['_ensureDesired'](),await this[_0x4e15b1(0x34f)]();if(!writer&&!reader)return null;if(!this[_0x4e15b1(0x1ed)]){const _0x425c16=await this[_0x4e15b1(0x302)][_0x4e15b1(0x2c0)](_0x5af0dc,{'sync':![],'durability':_0x4e15b1(0x3ab)});if(!_0x425c16['hasType'](_0x213036))await _0x425c16[_0x4e15b1(0x1e5)](_0x213036);this['_statusEnv']=_0x425c16;}return this[_0x4e15b1(0x1ed)];}[_0x4451d0(0x1b8)](){const _0x58f332=_0x4451d0;return this['_nodeDbFor']!==this[_0x58f332(0x1ed)]&&(this[_0x58f332(0x367)]=this[_0x58f332(0x1ed)],this[_0x58f332(0x31d)]=this['_statusEnv'][_0x58f332(0x245)](_0x213036)[_0x58f332(0x299)]),this[_0x58f332(0x31d)];}[_0x4451d0(0x1cb)](_0x174f2c){const _0x37ef78=_0x4451d0;if(_0xc823f8)return this[_0x37ef78(0x1b8)]()[_0x37ef78(0x251)](_0x174f2c[_0x37ef78(0x352)],_0x174f2c,0x1);const _0x380ebb=this['_nodeDb']()[_0x37ef78(0x1dc)](_0x174f2c['nodeKey'],_0x174f2c,0x1);if(_0x380ebb&&typeof _0x380ebb[_0x37ef78(0x2e5)]===_0x37ef78(0x22c))_0x380ebb[_0x37ef78(0x2e5)](undefined,()=>{});return _0x380ebb;}[_0x4451d0(0x213)](_0x5a5060){const _0x47276f=_0x4451d0;return this['_nodeDb']()[_0x47276f(0x251)](_0x5a5060[_0x47276f(0x352)],_0x5a5060,0x1);}[_0x4451d0(0x33b)](_0x113290){const _0x568250=_0x4451d0;if(_0xc823f8)try{return this[_0x568250(0x1b8)]()['removeSync'](_0x113290);}catch{return![];}const _0x4ce189=this[_0x568250(0x1b8)]()[_0x568250(0x39b)](_0x113290);if(_0x4ce189&&typeof _0x4ce189['then']===_0x568250(0x22c))_0x4ce189[_0x568250(0x2e5)](undefined,()=>{});return _0x4ce189;}async[_0x4451d0(0x280)](_0x2e5e1b){const _0x133c87=_0x4451d0;if(!this[_0x133c87(0x1ed)]||!this[_0x133c87(0x37a)]||!_0x2e5e1b?.['nodeKey'])return;return this[_0x133c87(0x1cb)](_0x2e5e1b);}async[_0x4451d0(0x36b)](_0x609ee8){const _0x148892=_0x4451d0;if(!this['_statusEnv']||!this[_0x148892(0x37a)]||!_0x609ee8)return;const _0x5c36ac=_0x609ee8[_0x148892(0x1d2)]('#'),_0x286333=[];for(const {key:_0x49fd69}of this[_0x148892(0x1ed)][_0x148892(0x39d)](_0x213036)){if(_0x49fd69===_0x609ee8||!_0x5c36ac&&typeof _0x49fd69===_0x148892(0x306)&&_0x49fd69[_0x148892(0x23f)](_0x609ee8+'#'))_0x286333[_0x148892(0x202)](_0x49fd69);}for(const _0xf3921f of _0x286333){try{this[_0x148892(0x1b8)]()[_0x148892(0x222)](_0xf3921f);}catch{}}}['_nodeDead'](_0xdc5f63){const _0x25007a=_0x4451d0;if(typeof _0xdc5f63?.['pid']!==_0x25007a(0x21e))return![];if(_0xdc5f63[_0x25007a(0x226)]!==_0x49589f[_0x25007a(0x3ad)]())return![];if(_0xdc5f63[_0x25007a(0x34e)]===process[_0x25007a(0x34e)])return![];if(_0xdc5f63['expiresAt']!=null&&_0xdc5f63[_0x25007a(0x199)]<Date[_0x25007a(0x353)]()-_0x11a1f1)return!![];try{return process[_0x25007a(0x25c)](_0xdc5f63['pid'],0x0),![];}catch(_0x32b50e){return _0x32b50e[_0x25007a(0x1fb)]===_0x25007a(0x1c0);}}[_0x4451d0(0x182)](){const _0x39fad9=_0x4451d0;if(!this[_0x39fad9(0x1ed)])return[];try{this[_0x39fad9(0x1ed)]['db']?.[_0x39fad9(0x370)]?.();}catch{}const _0x174b7e=Date['now'](),_0x582989=_0x49589f[_0x39fad9(0x3ad)](),_0x4402c4=[];for(const {value:_0x15e981}of this[_0x39fad9(0x1ed)][_0x39fad9(0x39d)](_0x213036)){if(!_0x15e981)continue;let _0x16c0d3=null;_0x15e981[_0x39fad9(0x226)]===_0x582989&&typeof _0x15e981['pid']===_0x39fad9(0x21e)&&(_0x16c0d3=!this['_nodeDead'](_0x15e981));if(_0x16c0d3===![])continue;const _0x3464cd=_0x15e981[_0x39fad9(0x199)]==null||_0x15e981[_0x39fad9(0x199)]>=_0x174b7e;if(_0x16c0d3===!![]||_0x3464cd)_0x4402c4['push'](_0x15e981);}return _0x4402c4;}async[_0x4451d0(0x2dc)](_0x2c2066=0x0){const _0x52e4bf=_0x4451d0;if(!this['_statusEnv']||!this['_isWriter'])return;const _0x592a2a=Date[_0x52e4bf(0x353)]()-_0x2c2066,_0x58efdd=new Set(),_0x46e5c0=[],_0x54b628=_0x49589f[_0x52e4bf(0x3ad)](),_0x15c482=require$$6[_0x52e4bf(0x2c4)];for(const {key:_0x545e2b,value:_0x89e9c5}of this[_0x52e4bf(0x1ed)][_0x52e4bf(0x39d)](_0x213036)){if(!_0x89e9c5)continue;const _0x3bf8cd=_0x89e9c5[_0x52e4bf(0x226)]===_0x54b628&&typeof _0x89e9c5[_0x52e4bf(0x34e)]===_0x52e4bf(0x21e),_0xd0ad9a=_0x3bf8cd?this[_0x52e4bf(0x1ef)](_0x89e9c5):_0x89e9c5['expiresAt']!=null&&_0x89e9c5['expiresAt']<_0x592a2a;if(_0xd0ad9a)_0x46e5c0[_0x52e4bf(0x202)](_0x545e2b);else{_0x58efdd[_0x52e4bf(0x281)](_0x9f1bb3(_0x89e9c5)??_0x545e2b);if(_0x89e9c5['version']&&_0x89e9c5[_0x52e4bf(0x2c4)]!==_0x15c482){if(!this[_0x52e4bf(0x229)])this[_0x52e4bf(0x229)]=new Set();!this[_0x52e4bf(0x229)]['has'](_0x89e9c5['version'])&&(this[_0x52e4bf(0x229)]['add'](_0x89e9c5[_0x52e4bf(0x2c4)]),this[_0x52e4bf(0x302)][_0x52e4bf(0x278)]?.['warn']?.(_0x52e4bf(0x2df)+(_0x89e9c5[_0x52e4bf(0x34e)]??'?')+'\x20on\x20this\x20data\x20path\x20runs\x20okdb\x20'+_0x89e9c5[_0x52e4bf(0x2c4)]+'\x20while\x20this\x20process\x20runs\x20'+_0x15c482+'\x20—\x20'+_0x52e4bf(0x2d9),{'feature':'migrations'}));}}}for(const _0x4adce3 of _0x46e5c0)this[_0x52e4bf(0x33b)](_0x4adce3);if(this[_0x52e4bf(0x319)]()){const _0x1eeb87=[];for(const {key:_0x320a6e}of this['listDesired'](_0x52e4bf(0x2f3))){if(!_0x58efdd[_0x52e4bf(0x342)](_0x320a6e)){if(_0xc823f8)try{this['_desired'][_0x52e4bf(0x222)]('node/'+_0x320a6e);}catch{}else _0x1eeb87[_0x52e4bf(0x202)](this[_0x52e4bf(0x3a7)][_0x52e4bf(0x39b)](_0x52e4bf(0x194)+_0x320a6e));}}if(_0x1eeb87[_0x52e4bf(0x2d8)])await Promise[_0x52e4bf(0x19a)](_0x1eeb87);}}[_0x4451d0(0x2ef)](_0x4c038c=null){const _0xf9d9b6=_0x4451d0;if(this[_0xf9d9b6(0x1d1)])return;if(!this['_isWriter']||!this[_0xf9d9b6(0x1ed)]){this[_0xf9d9b6(0x302)]?.[_0xf9d9b6(0x278)]?.[_0xf9d9b6(0x20b)]?.(_0xf9d9b6(0x397)+this[_0xf9d9b6(0x37a)]+_0xf9d9b6(0x1d8)+!!this[_0xf9d9b6(0x1ed)]+_0xf9d9b6(0x1e1),{'feature':'processes'});return;}this[_0xf9d9b6(0x181)]=_0x4c038c,this[_0xf9d9b6(0x2e9)]=()=>this[_0xf9d9b6(0x38d)]();for(const _0x489753 of _0x6a5762)this[_0xf9d9b6(0x302)][_0xf9d9b6(0x256)]['on'](_0x489753,this['_onProcEvent']);this['_publishNow']();const _0x5545bb=Number(process.env.OKDB_WORKERS_HEARTBEAT_MS)||_0x555a3e;this[_0xf9d9b6(0x1d1)]=setInterval(()=>{const _0x280564=_0xf9d9b6;if(this[_0x280564(0x181)])try{this['_onTick']();}catch{}this['_publishNow'](),this['reap']()[_0x280564(0x1b7)](()=>{});},_0x5545bb);if(this[_0xf9d9b6(0x1d1)]['unref'])this[_0xf9d9b6(0x1d1)]['unref']();}['_maybePublish'](){const _0x562f90=_0x4451d0;if(!this[_0x562f90(0x37a)]||!this['_statusEnv'])return;if(Date[_0x562f90(0x353)]()-this[_0x562f90(0x2fd)]<_0x55e38e)return;this[_0x562f90(0x2e7)]();}[_0x4451d0(0x2e7)](){const _0x2dfc21=_0x4451d0;if(!this['_isWriter']||!this[_0x2dfc21(0x1ed)])return;this[_0x2dfc21(0x2fd)]=Date['now']();try{const _0x5b7880=[this[_0x2dfc21(0x2cd)]()];for(const _0x38a587 of this['_children']['values']())_0x5b7880[_0x2dfc21(0x202)](this['_buildChildRow'](_0x38a587));const _0x2d9223=_0x3ae377[_0x2dfc21(0x2c6)]?_0x3ae377['now']():0x0;for(const _0x4ecad5 of _0x5b7880){try{this['_putRowSync'](_0x4ecad5),this[_0x2dfc21(0x1c7)]=![];}catch(_0x440e1e){!this['_publishFailWarned']&&(this[_0x2dfc21(0x1c7)]=!![],this[_0x2dfc21(0x302)]?.[_0x2dfc21(0x278)]?.[_0x2dfc21(0x20b)]?.(_0x2dfc21(0x29f)+_0x440e1e['message'],{'feature':_0x2dfc21(0x29e)}));}}if(_0x3ae377['enabled'])_0x3ae377[_0x2dfc21(0x209)]('registry-publish',_0x3ae377[_0x2dfc21(0x353)]()-_0x2d9223,'rows='+_0x5b7880[_0x2dfc21(0x2d8)]+'\x20sync');}catch(_0x3544d2){!this[_0x2dfc21(0x1c7)]&&(this[_0x2dfc21(0x1c7)]=!![],this[_0x2dfc21(0x302)]?.['log']?.[_0x2dfc21(0x20b)]?.(_0x2dfc21(0x29f)+_0x3544d2[_0x2dfc21(0x1a1)],{'feature':_0x2dfc21(0x29e)}));}}async[_0x4451d0(0x359)](){const _0x4309e0=_0x4451d0;if(this['_onProcEvent']){for(const _0x2ec607 of _0x6a5762){try{this[_0x4309e0(0x302)][_0x4309e0(0x256)][_0x4309e0(0x185)](_0x2ec607,this[_0x4309e0(0x2e9)]);}catch{}}this['_onProcEvent']=null;}this['_hbTimer']&&(clearInterval(this['_hbTimer']),this[_0x4309e0(0x1d1)]=null);try{if(this[_0x4309e0(0x1ed)]&&this[_0x4309e0(0x37a)])await this[_0x4309e0(0x36b)](this[_0x4309e0(0x195)]);}catch{}}async[_0x4451d0(0x356)](){const _0x19b6f9=_0x4451d0;if(!this[_0x19b6f9(0x1ed)]||!this['_isWriter'])return;try{await this[_0x19b6f9(0x36b)](this[_0x19b6f9(0x195)]);}catch{}try{const _0x58ee8c=[];for(const {value:_0x38e0a2}of this[_0x19b6f9(0x1ed)][_0x19b6f9(0x39d)](_0x213036)){if(_0x38e0a2?.[_0x19b6f9(0x27b)]===process[_0x19b6f9(0x34e)]&&_0x38e0a2[_0x19b6f9(0x352)])_0x58ee8c[_0x19b6f9(0x202)](_0x38e0a2[_0x19b6f9(0x352)]);}for(const _0x385fb9 of _0x58ee8c){try{await this[_0x19b6f9(0x36b)](_0x385fb9);}catch{}}}catch{}}async[_0x4451d0(0x273)](){const _0x2c124c=_0x4451d0;return this[_0x2c124c(0x280)](this[_0x2c124c(0x2cd)]());}async[_0x4451d0(0x2a6)](_0x221716){const _0x3338a7=_0x4451d0;if(!this[_0x3338a7(0x1ed)]||!this[_0x3338a7(0x37a)])return;return this[_0x3338a7(0x280)](this['_buildChildRow'](_0x221716));}[_0x4451d0(0x236)]({pid:_0x4e6428,startedAt:_0x5daa2a,kind:_0x531609,supervisorKey:_0x118cc1,slot:slot=null,slotKey:slotKey=null,role:role={},listenAddr:listenAddr=null,processing:processing=null,lifecycle:lifecycle=_0x4451d0(0x25a),meta:meta=null,stats:stats=null}){const _0x380970=_0x4451d0,_0x506d2c=Date['now'](),_0x272867=_0x3440c9(_0x4e6428,_0x5daa2a);return{'nodeKey':_0x33f46c(_0x272867,'0'),'processKey':_0x272867,'instanceId':'0','pid':_0x4e6428,'startedAt':_0x5daa2a,'ppid':process[_0x380970(0x34e)],'host':_0x49589f[_0x380970(0x3ad)](),'supervisorKey':_0x118cc1,'slot':slot,'slotKey':slotKey,'kind':_0x531609,'role':role,'listenAddr':listenAddr,'heartbeatAt':_0x506d2c,'expiresAt':_0x506d2c+_0xd26b41,'caps':this[_0x380970(0x1b5)](_0x531609,role),'lifecycle':{'state':lifecycle,'desiredVersionApplied':null},'processing':processing,'meta':meta,'stats':stats};}async[_0x4451d0(0x2f2)](_0x2ce191){const _0x5c3517=_0x4451d0;if(!_0x2ce191?.[_0x5c3517(0x34e)])return null;const _0x1bda21=_0x3440c9(_0x2ce191[_0x5c3517(0x34e)],_0x2ce191[_0x5c3517(0x398)]);this[_0x5c3517(0x19e)]['set'](_0x1bda21,{..._0x2ce191,'supervisorKey':_0x2ce191['supervisorKey']??this[_0x5c3517(0x387)]});if(this[_0x5c3517(0x37a)])await this[_0x5c3517(0x2a6)](this[_0x5c3517(0x19e)][_0x5c3517(0x374)](_0x1bda21))[_0x5c3517(0x1b7)]?.(()=>{});return _0x1bda21;}[_0x4451d0(0x237)](_0x4f5197){const _0x4c1d4=_0x4451d0;if(!_0x4f5197)return;return this[_0x4c1d4(0x19e)][_0x4c1d4(0x35f)](_0x4f5197),this[_0x4c1d4(0x36b)](_0x4f5197);}['_sampleOwnStats'](){const _0x1b5f6f=_0x4451d0,_0x396db4=Date[_0x1b5f6f(0x353)](),_0x132f3b=process[_0x1b5f6f(0x32d)](),_0x33d993=(_0x396db4-this[_0x1b5f6f(0x2dd)])*0x3e8;if(_0x33d993>=0x3d090){const _0x2eb0b3=_0x132f3b[_0x1b5f6f(0x366)]-this['_lastCpuUsage'][_0x1b5f6f(0x366)]+(_0x132f3b[_0x1b5f6f(0x24a)]-this['_lastCpuUsage'][_0x1b5f6f(0x24a)]),_0xc1bad8=_0x49589f[_0x1b5f6f(0x1af)]()[_0x1b5f6f(0x2d8)]||0x1;this['_lastCpuPct']=Math[_0x1b5f6f(0x2c7)](0x64,Math[_0x1b5f6f(0x252)](_0x2eb0b3/(_0x33d993*_0xc1bad8)*0x64)),this[_0x1b5f6f(0x24f)]=Math[_0x1b5f6f(0x252)](_0x33d993/0x3e8),this['_lastCpuUsage']=_0x132f3b,this[_0x1b5f6f(0x2dd)]=_0x396db4;}const _0x4db5ec=process[_0x1b5f6f(0x3a4)](),_0x286a5a=this['_threadStats']['size'];let _0x3909df=0x0;if(_0x286a5a>0x0){const _0x3fdd91=[this['okdb'],...this[_0x1b5f6f(0x302)][_0x1b5f6f(0x2ad)]?.[_0x1b5f6f(0x1e4)]?.()??[]];for(const _0x3f54dc of _0x3fdd91){const _0x33dfac=_0x3f54dc[_0x1b5f6f(0x1eb)]?.[_0x1b5f6f(0x2e3)];if(_0x33dfac)_0x3909df+=_0x33dfac['liveThreadStats'][_0x1b5f6f(0x1dd)];}}let _0x55206f=null;const _0x38ac96=_0x286a5a;if(_0x38ac96>0x0){let _0x3d04e6=0x0;for(const _0x12118e of this[_0x1b5f6f(0x221)]['values']())_0x3d04e6+=_0x12118e['heapUsed']||0x0;_0x55206f={'count':_0x38ac96,'heapUsed':_0x3d04e6,'sandbox':_0x286a5a,'busy':_0x3909df};}return{'rss':_0x4db5ec['rss'],'heapUsed':_0x4db5ec['heapUsed'],'heapTotal':_0x4db5ec[_0x1b5f6f(0x197)],'external':_0x4db5ec[_0x1b5f6f(0x1e6)],'cpuPct':this[_0x1b5f6f(0x217)],'cpuWindowMs':this['_lastCpuWindowMs']??null,'threads':_0x55206f,'at':_0x396db4};}['reportThreadStats'](_0x30aed5,_0x1725b5){const _0x280a03=_0x4451d0;if(!_0x30aed5||!_0x1725b5)return;this['_threadStats'][_0x280a03(0x2b3)](_0x30aed5,_0x1725b5);}[_0x4451d0(0x186)](_0x415788){const _0x380d74=_0x4451d0;this[_0x380d74(0x221)][_0x380d74(0x35f)](_0x415788);}[_0x4451d0(0x317)](_0x2665ac,_0x7e09bb,_0xfb68c6=undefined){const _0x3f787a=_0x4451d0,_0x4d161f=this[_0x3f787a(0x19e)][_0x3f787a(0x374)](_0x2665ac);if(!_0x4d161f||!_0x7e09bb)return;if(_0xfb68c6!==undefined)_0x4d161f['processing']=_0xfb68c6;_0x4d161f[_0x3f787a(0x25b)]={'rss':_0x7e09bb[_0x3f787a(0x269)]??null,'heapUsed':_0x7e09bb[_0x3f787a(0x31a)]??null,'heapTotal':_0x7e09bb['heapTotal']??null,'external':_0x7e09bb[_0x3f787a(0x1e6)]??null,'cpuPct':_0x7e09bb[_0x3f787a(0x36a)]??null,'cpuWindowMs':_0x7e09bb[_0x3f787a(0x31f)]??null,'threads':_0x7e09bb[_0x3f787a(0x2a4)]??null,'claims':_0x7e09bb[_0x3f787a(0x2bd)]??null,'envsOpen':_0x7e09bb[_0x3f787a(0x27e)]??null,'at':Date[_0x3f787a(0x353)]()};}['_buildOwnRow'](){const _0x3f1f63=_0x4451d0,_0x2ab0ae=Date[_0x3f1f63(0x353)](),_0x42fafb=this[_0x3f1f63(0x302)][_0x3f1f63(0x28e)]||{},_0x46384b=this[_0x3f1f63(0x349)]||_0x3f1f63(0x1c9);return{'nodeKey':this[_0x3f1f63(0x195)],'processKey':this[_0x3f1f63(0x387)],'instanceId':this[_0x3f1f63(0x2e2)],'pid':process[_0x3f1f63(0x34e)],'startedAt':this['_processStartedAt'],'instanceStartedAt':this[_0x3f1f63(0x2ed)],'ppid':typeof process[_0x3f1f63(0x27b)]===_0x3f1f63(0x21e)?process[_0x3f1f63(0x27b)]:null,'host':_0x49589f['hostname'](),'supervisorKey':this[_0x3f1f63(0x230)]??null,'version':require$$6['version'],'kind':_0x46384b,'role':{'engines':!!_0x42fafb[_0x3f1f63(0x235)],'processors':!!_0x42fafb[_0x3f1f63(0x347)],'compaction':_0x42fafb['compaction'],'http':_0x42fafb[_0x3f1f63(0x379)]},'listenAddr':this[_0x3f1f63(0x312)]??null,'heartbeatAt':_0x2ab0ae,'expiresAt':_0x2ab0ae+_0xd26b41,'caps':this[_0x3f1f63(0x1b5)](_0x46384b,_0x42fafb),'lifecycle':{'state':_0x3f1f63(0x25a),'desiredVersionApplied':null},'meta':{...this[_0x3f1f63(0x303)]},'processing':_0x42fafb[_0x3f1f63(0x347)]?this['_buildProcessingFacet']():null,'engines':_0x42fafb['engines']?[...this[_0x3f1f63(0x302)][_0x3f1f63(0x266)]??[]]:null,'singletonClaims':this[_0x3f1f63(0x1db)](),'stats':this['_sampleOwnStats'](),'writers':this[_0x3f1f63(0x343)]()};}[_0x4451d0(0x343)](){const _0x296b42=_0x4451d0,_0x13778e={};try{for(const [_0x57fa9c,_0x2727af]of this['okdb'][_0x296b42(0x2ad)]){try{const _0x4180a1=_0x2727af[_0x296b42(0x389)]?.();if(!_0x4180a1)continue;if(!_0x4180a1['depth']&&!_0x4180a1[_0x296b42(0x288)]&&!(_0x4180a1[_0x296b42(0x340)]??0x0)&&!_0x4180a1[_0x296b42(0x32b)])continue;_0x13778e[_0x57fa9c]={'depth':_0x4180a1[_0x296b42(0x285)],'oldestPendingMs':_0x4180a1[_0x296b42(0x242)],'committed':_0x4180a1[_0x296b42(0x288)],'commitsPerSec':_0x4180a1['commitsPerSec'],'commitP99Ms':_0x4180a1[_0x296b42(0x2a3)],'parkedNow':_0x4180a1[_0x296b42(0x340)]??0x0,'draining':!!_0x4180a1[_0x296b42(0x32b)]};}catch{}}}catch{}return Object[_0x296b42(0x292)](_0x13778e)[_0x296b42(0x2d8)]?_0x13778e:null;}[_0x4451d0(0x1db)](){const _0x2d3566=_0x4451d0,_0x28c618=process[_0x2d3566(0x34e)],_0x190a3d=Date[_0x2d3566(0x353)](),_0x4ea4f3=_0x47aca9=>{const _0x2b543c=_0x2d3566;if(!_0x47aca9)return[];const _0x1e5c16=[];try{for(const {id:_0x3d0def,entry:_0x42bcc4}of _0x47aca9['list']()){if(_0x42bcc4?.['holder']?.[_0x2b543c(0x34e)]!==_0x28c618)continue;const _0x38ebb3=_0x42bcc4['updatedAt']??_0x42bcc4[_0x2b543c(0x2ac)]??0x0;if(_0x38ebb3+(_0x42bcc4[_0x2b543c(0x355)]??0x0)<_0x190a3d)continue;_0x1e5c16[_0x2b543c(0x202)](_0x3d0def);}}catch{}return _0x1e5c16;},_0x4cac2e=_0x4ea4f3(this[_0x2d3566(0x1a4)](_0x2d3566(0x361))),_0x1cb29c=_0x4ea4f3(this['_singletonLock'](_0x2d3566(0x276)));if(!_0x4cac2e[_0x2d3566(0x2d8)]&&!_0x1cb29c[_0x2d3566(0x2d8)])return null;return{'compact':_0x4cac2e,'replicate':_0x1cb29c};}[_0x4451d0(0x1a4)](_0x5b1c10){const _0x54374c=_0x4451d0;if(!this[_0x54374c(0x302)]?.['_rootDb'])return null;if(!this[_0x54374c(0x313)])this['_singletonLocks']=new Map();let _0x52f67d=this[_0x54374c(0x313)]['get'](_0x5b1c10);if(!_0x52f67d)try{_0x52f67d=new _0x3b7fe6(this['okdb'][_0x54374c(0x1e9)],{'namespace':_0x5b1c10}),this[_0x54374c(0x313)][_0x54374c(0x2b3)](_0x5b1c10,_0x52f67d);}catch{return null;}return _0x52f67d;}[_0x4451d0(0x2d7)](){const _0x51a964=_0x4451d0,_0x29d2de=[];try{for(const [_0x53cbb2,_0x5417fe]of this['okdb'][_0x51a964(0x2ad)]){if(_0x53cbb2[_0x51a964(0x23f)]('~'))continue;for(const _0x4d3b34 of _0x5417fe[_0x51a964(0x21c)][_0x51a964(0x1ec)]())_0x29d2de[_0x51a964(0x202)]({..._0x4d3b34,'env':_0x53cbb2});}}catch{}return{'participate':this[_0x51a964(0x302)][_0x51a964(0x347)]?.[_0x51a964(0x2c3)]??![],'processors':_0x29d2de};}['_ensureDesired'](){const _0x1486ba=_0x4451d0;if(this[_0x1486ba(0x3a7)])return!![];const _0x3392cd=this[_0x1486ba(0x302)][_0x1486ba(0x1e9)];if(!_0x3392cd)return![];return this[_0x1486ba(0x3a7)]=_0x3392cd[_0x1486ba(0x327)](_0x565ece,{'dupSort':![]}),this[_0x1486ba(0x218)]=_0x3392cd[_0x1486ba(0x327)](_0x440793,{'dupSort':![]}),!![];}async[_0x4451d0(0x34f)](){const _0x597eaf=_0x4451d0;if(!this[_0x597eaf(0x319)]())return;const _0x58a433='__vocab/version',_0xdd67d3=0x1,_0x27c6c5=this[_0x597eaf(0x3a7)]['get'](_0x58a433)??0x0;if(_0x27c6c5>=_0xdd67d3)return;const _0x372925=_0x38c196=>{const _0xbd9410=_0x597eaf;if(_0x38c196===_0xbd9410(0x316))return _0xbd9410(0x201);if(_0x38c196===_0xbd9410(0x2c1))return _0xbd9410(0x1be);return _0x38c196;};await this[_0x597eaf(0x302)]['_systemEnv'][_0x597eaf(0x300)]['transaction'](()=>{const _0x2af6cb=_0x597eaf;for(const _0x457f87 of[_0x2af6cb(0x1ac),'procmodeack/']){for(const {key:_0x54cae5,value:_0x16e38c}of this[_0x2af6cb(0x3a7)][_0x2af6cb(0x39d)]({'start':_0x457f87,'end':_0x457f87+'\xff'})){if(typeof _0x54cae5!==_0x2af6cb(0x306)||!_0x54cae5['startsWith'](_0x457f87))break;const _0x5b2bb6=_0x372925(_0x16e38c[_0x2af6cb(0x200)]);if(_0x5b2bb6!==_0x16e38c[_0x2af6cb(0x200)])this['_desired'][_0x2af6cb(0x1dc)](_0x54cae5,{..._0x16e38c,'mode':_0x5b2bb6});}}this[_0x2af6cb(0x3a7)][_0x2af6cb(0x1dc)](_0x58a433,_0xdd67d3);});}[_0x4451d0(0x318)](){const _0x13f362=_0x4451d0;return!!this[_0x13f362(0x3a7)];}[_0x4451d0(0x290)](_0x2cd75f,_0x3c9408){const _0x52d003=_0x4451d0;if(!this['_ensureDesired']())return null;const _0x1769d9=_0x2cd75f+'/'+_0x3c9408;return this[_0x52d003(0x2cc)](),this['_desiredOverlay'][_0x52d003(0x374)](_0x1769d9)??this['_desired']['get'](_0x1769d9)??null;}[_0x4451d0(0x2cc)](){const _0x11e962=_0x4451d0;if(!_0xc823f8)return;try{this[_0x11e962(0x302)]['_systemEnv']?.['db']?.[_0x11e962(0x370)]?.();}catch{}}async[_0x4451d0(0x18c)](_0x3c61e7,_0x560457,_0x47b4cc){const _0x4f25a2=_0x4451d0;if(!this[_0x4f25a2(0x319)]())return null;const _0x50d091=_0x3c61e7+'/'+_0x560457;this['_refreshDesiredSnapshot']();const _0x35e830=this[_0x4f25a2(0x2ab)][_0x4f25a2(0x374)](_0x50d091)??this[_0x4f25a2(0x3a7)][_0x4f25a2(0x374)](_0x50d091)??{'version':0x0},_0x51a965=(_0x35e830[_0x4f25a2(0x2c4)]||0x0)+0x1,_0x595882={..._0x35e830,..._0x47b4cc,'version':_0x51a965,'updatedAt':Date[_0x4f25a2(0x353)]()};this[_0x4f25a2(0x2ab)][_0x4f25a2(0x2b3)](_0x50d091,_0x595882);try{await this[_0x4f25a2(0x302)][_0x4f25a2(0x24c)]['_writer']['transaction'](()=>{const _0x3441f5=_0x4f25a2;this['_desired'][_0x3441f5(0x1dc)](_0x50d091,_0x595882);});}finally{if(this['_desiredOverlay']['get'](_0x50d091)===_0x595882)this[_0x4f25a2(0x2ab)][_0x4f25a2(0x35f)](_0x50d091);}return _0x51a965;}[_0x4451d0(0x1a7)](_0x9ab071){const _0x199aa6=_0x4451d0;if(!this[_0x199aa6(0x319)]())return[];this['_refreshDesiredSnapshot']();const _0x8f4ef1=_0x9ab071+'/',_0x18466b=[];for(const {key:_0x267963,value:_0x44a5d8}of this[_0x199aa6(0x3a7)][_0x199aa6(0x39d)]({'start':_0x8f4ef1,'end':_0x8f4ef1+'\xff'})){if(typeof _0x267963!==_0x199aa6(0x306)||!_0x267963[_0x199aa6(0x23f)](_0x8f4ef1))break;_0x18466b['push']({'key':_0x267963[_0x199aa6(0x1f6)](_0x8f4ef1[_0x199aa6(0x2d8)]),'value':_0x44a5d8});}return _0x18466b;}[_0x4451d0(0x220)](_0x4285bb){const _0x2825f0=_0x4451d0;if(!this[_0x2825f0(0x319)]())return null;return this[_0x2825f0(0x218)][_0x2825f0(0x374)](_0x4285bb)??null;}async[_0x4451d0(0x282)](_0x5602ad,_0x275829,_0x4736da={}){const _0x5d2077=_0x4451d0;if(!this[_0x5d2077(0x319)]())return null;let _0x31dd25;return await this[_0x5d2077(0x302)][_0x5d2077(0x24c)][_0x5d2077(0x300)]['transaction'](()=>{const _0x45bf92=_0x5d2077,_0x537991=this[_0x45bf92(0x218)][_0x45bf92(0x374)](_0x5602ad)||{'epoch':0x0};_0x31dd25=(_0x537991[_0x45bf92(0x2cb)]||0x0)+0x1,this[_0x45bf92(0x218)][_0x45bf92(0x1dc)](_0x5602ad,{..._0x537991,..._0x4736da,'cmd':_0x275829,'epoch':_0x31dd25,'updatedAt':Date[_0x45bf92(0x353)]()});}),_0x31dd25;}}return okdbProcessRegistry={'OKDBProcessRegistry':_0x1dc7cd,'nodeKey':_0x3440c9,'logicalKey':_0x4da6de,'slotKey':_0x5dfe88,'PROCESS_ENV':_0x5af0dc,'NODE_TYPE':_0x213036},okdbProcessRegistry;}var okdbChangefeed,hasRequiredOkdbChangefeed;function requireOkdbChangefeed(){const _0x171fd7=_0x24af3f;if(hasRequiredOkdbChangefeed)return okdbChangefeed;hasRequiredOkdbChangefeed=0x1;const _0x2ff0e9=require$$0$4,{EVENTS:_0x1ebd9c,CHANGE_ACTIONS:_0x380a0f}=requireOkdbEnums(),{LOOP:_0x11db2c}=requireOkdbLoopMonitor(),_0x21dc78=Number(process.env.OKDB_CHANGEFEED_QUANTUM)||0x3e8,_0x29f725=0x5,_0x17c427=0x2710;class _0x444ac3 extends _0x2ff0e9{constructor(_0x2f20df,_0x39556a={}){const _0x4f2c85=_0x5df3;super(),this[_0x4f2c85(0x302)]=_0x2f20df,this['_quantum']=_0x39556a[_0x4f2c85(0x27f)]??_0x21dc78,this[_0x4f2c85(0x23b)]=_0x39556a[_0x4f2c85(0x394)]??_0x29f725,this['_dedupeMax']=_0x39556a[_0x4f2c85(0x19c)]??_0x17c427,this[_0x4f2c85(0x2a9)]=![],this['_cursors']=new Map(),this[_0x4f2c85(0x375)]=new Map(),this['_pending']=new Map(),this[_0x4f2c85(0x18a)]=null,this[_0x4f2c85(0x18f)]=![],this[_0x4f2c85(0x26a)]=new Set(),this[_0x4f2c85(0x357)]=_0x37b65d=>this[_0x4f2c85(0x23d)](_0x37b65d),this[_0x4f2c85(0x1b2)]=_0x510202=>this[_0x4f2c85(0x264)](_0x510202),this['_onStop']=()=>this['stop']();}[_0x171fd7(0x2b4)](){const _0x54ddf3=_0x171fd7;if(this[_0x54ddf3(0x2a9)])return;this[_0x54ddf3(0x2a9)]=!![];for(const [_0x5b0208,_0x36bcb3]of this['okdb'][_0x54ddf3(0x2ad)]){if(_0x5b0208[_0x54ddf3(0x23f)]('~'))continue;try{_0x36bcb3['_enableChangelog']();}catch{}}for(const [_0x12dc98,_0x241c6b]of this[_0x54ddf3(0x302)]['_envs']){if(_0x12dc98[_0x54ddf3(0x23f)]('~'))continue;try{this['_baselines']['set'](_0x12dc98,_0x241c6b[_0x54ddf3(0x30c)]()||0x0);}catch{}}const {events:_0x34ec85}=this[_0x54ddf3(0x302)];_0x34ec85['on'](_0x1ebd9c['ITEM_CREATE'],this[_0x54ddf3(0x357)]),_0x34ec85['on'](_0x1ebd9c[_0x54ddf3(0x183)],this[_0x54ddf3(0x357)]),_0x34ec85['on'](_0x1ebd9c[_0x54ddf3(0x243)],this[_0x54ddf3(0x357)]),_0x34ec85['on'](_0x1ebd9c['SYSTEM_POKE'],this[_0x54ddf3(0x1b2)]),_0x34ec85[_0x54ddf3(0x37b)](_0x1ebd9c[_0x54ddf3(0x315)],this[_0x54ddf3(0x1ce)]);}['stop'](){const _0x2cf671=_0x171fd7;if(!this[_0x2cf671(0x2a9)])return;this[_0x2cf671(0x2a9)]=![];const {events:_0x60412b}=this[_0x2cf671(0x302)];_0x60412b[_0x2cf671(0x185)](_0x1ebd9c[_0x2cf671(0x2d3)],this[_0x2cf671(0x357)]),_0x60412b['off'](_0x1ebd9c[_0x2cf671(0x183)],this[_0x2cf671(0x357)]),_0x60412b[_0x2cf671(0x185)](_0x1ebd9c[_0x2cf671(0x243)],this[_0x2cf671(0x357)]),_0x60412b[_0x2cf671(0x185)](_0x1ebd9c[_0x2cf671(0x30a)],this[_0x2cf671(0x1b2)]);try{_0x60412b[_0x2cf671(0x185)](_0x1ebd9c[_0x2cf671(0x315)],this[_0x2cf671(0x1ce)]);}catch{}this[_0x2cf671(0x18a)]&&(clearTimeout(this['_flushTimer']),this[_0x2cf671(0x18a)]=null),this[_0x2cf671(0x26e)][_0x2cf671(0x1bc)](),this[_0x2cf671(0x396)]['clear'](),this[_0x2cf671(0x375)]['clear'](),this[_0x2cf671(0x26a)][_0x2cf671(0x1bc)]();}[_0x171fd7(0x1b6)](_0x442948,_0x13d5eb,_0x12a922,_0x154c1b){return _0x442948+'\x00'+_0x13d5eb+'\x00'+_0x12a922+'\x00'+_0x154c1b;}['_markSeen'](_0x20daa0,_0x2662f4,_0x4ccc47,_0x35509a){const _0x265f8a=_0x171fd7,_0x5a5441=this[_0x265f8a(0x1b6)](_0x20daa0,_0x2662f4,_0x4ccc47,_0x35509a);if(this[_0x265f8a(0x26a)][_0x265f8a(0x342)](_0x5a5441))return![];this[_0x265f8a(0x26a)][_0x265f8a(0x281)](_0x5a5441);if(this[_0x265f8a(0x26a)][_0x265f8a(0x238)]>this[_0x265f8a(0x399)]){const _0x2e8163=this[_0x265f8a(0x26a)][_0x265f8a(0x1e4)]()[_0x265f8a(0x250)]()[_0x265f8a(0x214)];this[_0x265f8a(0x26a)][_0x265f8a(0x35f)](_0x2e8163);}return!![];}[_0x171fd7(0x23d)](_0x233a1f){const _0x543379=_0x171fd7;if(!this['_started']||!_0x233a1f)return;const {env:_0x4ad50a,type:_0x527eee,key:_0x2b882e,clock:_0x3f4cc3,origin:_0x4f1075,action:_0x37c43d,newValue:_0x31bcfd,oldValue:_0x3d4909}=_0x233a1f;if(_0x4ad50a==null||_0x527eee==null||_0x2b882e==null)return;if(typeof _0x4ad50a===_0x543379(0x306)&&_0x4ad50a[_0x543379(0x23f)]('~'))return;if(typeof _0x527eee===_0x543379(0x306)&&_0x527eee[_0x543379(0x23f)]('~'))return;if(!this['_markSeen'](_0x4ad50a,_0x527eee,_0x2b882e,_0x3f4cc3))return;const _0x797081=_0x37c43d===_0x380a0f[_0x543379(0x18e)]?_0x543379(0x39b):_0x543379(0x1dc);this[_0x543379(0x33c)](_0x543379(0x2a7),{'env':_0x4ad50a,'type':_0x527eee,'key':_0x2b882e,'op':_0x797081,'clock':_0x3f4cc3,'origin':_0x4f1075,'value':_0x797081===_0x543379(0x39b)?null:_0x31bcfd,'prevValue':_0x3d4909});}[_0x171fd7(0x264)](_0x308ff9){const _0x3b3ec1=_0x171fd7;if(!this[_0x3b3ec1(0x2a9)])return;if(!_0x308ff9||typeof _0x308ff9[_0x3b3ec1(0x2de)]!==_0x3b3ec1(0x306)||typeof _0x308ff9[_0x3b3ec1(0x2d0)]!==_0x3b3ec1(0x306))return;const {env:_0x2f649f,type:_0x315219}=_0x308ff9;if(_0x2f649f[_0x3b3ec1(0x23f)]('~')||_0x315219[_0x3b3ec1(0x23f)]('~'))return;this[_0x3b3ec1(0x26e)][_0x3b3ec1(0x2b3)](_0x2f649f+'\x00'+_0x315219,{'env':_0x2f649f,'type':_0x315219}),this['_scheduleFlush']();}['_scheduleFlush'](){const _0x3cd710=_0x171fd7;if(this['_flushTimer'])return;const _0x44c472=()=>{const _0x2f88d3=_0x5df3;this[_0x2f88d3(0x18a)]=null,this[_0x2f88d3(0x35d)]()[_0x2f88d3(0x1b7)](()=>{});};this['_flushTimer']=setTimeout(_0x44c472,this[_0x3cd710(0x23b)]>0x0?this['_flushDebounce']:0x0);}async[_0x171fd7(0x35d)](){const _0x163f5d=_0x171fd7;if(this[_0x163f5d(0x18f)]){this[_0x163f5d(0x286)]();return;}this['_draining']=!![];try{const _0x3b9256=[...this['_pending']['values']()];this['_pending'][_0x163f5d(0x1bc)]();let _0x4bcf20=![];for(const {env:_0x8b722,type:_0x120d5a}of _0x3b9256){try{const _0x308a27=await this[_0x163f5d(0x1d4)](_0x8b722,_0x120d5a);if(_0x308a27)_0x4bcf20=!![];}catch{this[_0x163f5d(0x26e)][_0x163f5d(0x2b3)](_0x8b722+'\x00'+_0x120d5a,{'env':_0x8b722,'type':_0x120d5a}),_0x4bcf20=!![];}}if(_0x4bcf20||this[_0x163f5d(0x26e)][_0x163f5d(0x238)]>0x0)this[_0x163f5d(0x286)]();}finally{this[_0x163f5d(0x18f)]=![];}}async[_0x171fd7(0x1d4)](_0x1011b0,_0x39b7ee){const _0x33b0f8=_0x171fd7,_0x1a1c9f=await this[_0x33b0f8(0x302)]['_openEnvLazy'](_0x1011b0),_0x21087b=_0x1011b0+'\x00'+_0x39b7ee;!this[_0x33b0f8(0x396)][_0x33b0f8(0x342)](_0x21087b)&&(!this[_0x33b0f8(0x375)]['has'](_0x1011b0)&&(_0x1a1c9f[_0x33b0f8(0x314)](),this[_0x33b0f8(0x375)]['set'](_0x1011b0,_0x1a1c9f['getClock']()||0x0)),this['_cursors'][_0x33b0f8(0x2b3)](_0x21087b,this[_0x33b0f8(0x375)][_0x33b0f8(0x374)](_0x1011b0)));const _0x1949ff=this[_0x33b0f8(0x396)]['get'](_0x21087b),_0x374562=_0x1a1c9f[_0x33b0f8(0x30c)](_0x39b7ee)||0x0;if(_0x374562<=_0x1949ff)return![];const _0x26f37c=_0x1949ff+this['_quantum'],_0x1c591b=Math[_0x33b0f8(0x2c7)](_0x374562,_0x26f37c),_0x212c3a=_0x11db2c[_0x33b0f8(0x2c6)]?_0x11db2c[_0x33b0f8(0x353)]():0x0,_0x4f9973=Array[_0x33b0f8(0x2e1)](_0x1a1c9f[_0x33b0f8(0x2f8)](_0x39b7ee,_0x1949ff+0x1,_0x1c591b));let _0x4c4e03=_0x1949ff;for(const _0x4d481b of _0x4f9973){const {clock:_0x2e57cf,key:_0x206e45,action:_0x37ea75,origin:_0x111f04}=_0x4d481b;if(_0x2e57cf>_0x4c4e03)_0x4c4e03=_0x2e57cf;if(_0x206e45==null)continue;if(!this[_0x33b0f8(0x1fc)](_0x1011b0,_0x39b7ee,_0x206e45,_0x2e57cf))continue;let _0x163421,_0x2df0b7;if(_0x37ea75===_0x380a0f['REMOVE'])_0x163421='remove',_0x2df0b7=null;else{const _0x23fc28=_0x1a1c9f[_0x33b0f8(0x374)](_0x39b7ee,_0x206e45);_0x23fc28==null?(_0x163421=_0x33b0f8(0x39b),_0x2df0b7=null):(_0x163421=_0x33b0f8(0x1dc),_0x2df0b7=_0x23fc28);}this[_0x33b0f8(0x33c)]('change',{'env':_0x1011b0,'type':_0x39b7ee,'key':_0x206e45,'op':_0x163421,'clock':_0x2e57cf,'origin':_0x111f04,'value':_0x2df0b7});}if(_0x11db2c[_0x33b0f8(0x2c6)])_0x11db2c[_0x33b0f8(0x209)](_0x33b0f8(0x234)+_0x1011b0+':'+_0x39b7ee,_0x11db2c[_0x33b0f8(0x353)]()-_0x212c3a,'n='+_0x4f9973[_0x33b0f8(0x2d8)]);return this[_0x33b0f8(0x396)][_0x33b0f8(0x2b3)](_0x21087b,Math[_0x33b0f8(0x1fd)](_0x4c4e03,_0x1c591b)),_0x1a1c9f['getClock'](_0x39b7ee)>_0x1c591b;}['status'](){const _0x2ea574=_0x171fd7;return{'started':this['_started'],'quantum':this[_0x2ea574(0x25f)],'flushDebounce':this['_flushDebounce'],'cursors':Object['fromEntries']([...this[_0x2ea574(0x396)]['entries']()][_0x2ea574(0x28d)](([_0x279a1d,_0x4562b7])=>[_0x279a1d['replace']('\x00',':'),_0x4562b7])),'pending':this[_0x2ea574(0x26e)]['size'],'seen':this[_0x2ea574(0x26a)]['size']};}}return _0x444ac3['CHANGEFEED_QUANTUM']=_0x21dc78,okdbChangefeed={'OKDBChangefeed':_0x444ac3},okdbChangefeed;}var okdbCluster,hasRequiredOkdbCluster;function requireOkdbCluster(){const _0x40d8a0=_0x24af3f;if(hasRequiredOkdbCluster)return okdbCluster;hasRequiredOkdbCluster=0x1;const _0x5e96ec=require$$1$1,_0x4e7019=require$$1,{EVENTS:_0x2aa535}=requireOkdbEnums(),_0x347e78=require$$0$3,{slotKey:_0x54d73c}=requireOkdbProcessRegistry(),_0x21cc89=0xfa,_0x424dbe=0xfa0,_0x1ceab0=0x5,_0x160d59=0x2710,_0x51dba2=0xbb8,_0x478057=0x7d0,_0x186481=_0x40d8a0(0x1da),_0x3b21e0='ephemeral',_0x5be760=_0x40d8a0(0x278),_0x27e42a=_0x40d8a0(0x25b),_0x6b2cee=[_0x2aa535[_0x40d8a0(0x1e3)],_0x2aa535[_0x40d8a0(0x1bf)],_0x2aa535[_0x40d8a0(0x321)],_0x2aa535['FTS_RESET'],_0x2aa535[_0x40d8a0(0x23e)],_0x2aa535[_0x40d8a0(0x328)],_0x2aa535[_0x40d8a0(0x333)],_0x2aa535[_0x40d8a0(0x1fa)],_0x40d8a0(0x2da),'processor:progress','processor:error',_0x40d8a0(0x225),_0x40d8a0(0x330),_0x40d8a0(0x2b7)],_0x2b2c5a=Number(process.env.OKDB_CLUSTER_STATUS_MS)||0x7d0;function _0x3a08ca({workers:_0x5630e6,makeOkdb:_0x218d16,port:_0x4e81cb,primaryOkdb:_0x151a51,childEntry:childEntry=![],workerEnv:workerEnv=null}={}){const _0x533439=_0x40d8a0;if(_0x5e96ec[_0x533439(0x326)])return childEntry&&_0x5e96ec['setupPrimary']({'exec':_0x4e7019[_0x533439(0x258)](__dirname,_0x533439(0x34c)),'args':[],'execArgv':((()=>{const _0x42309e=_0x533439,_0x252ae3=[];for(let _0xbce29=0x0;_0xbce29<process[_0x42309e(0x19b)][_0x42309e(0x2d8)];_0xbce29++){const _0x5c0f37=process['execArgv'][_0xbce29];if(_0x5c0f37[_0x42309e(0x23f)](_0x42309e(0x254))||_0x5c0f37['startsWith'](_0x42309e(0x31c))||_0x5c0f37[_0x42309e(0x23f)](_0x42309e(0x2c8)))continue;if(_0x5c0f37==='-e'||_0x5c0f37==='--eval'||_0x5c0f37==='-p'||_0x5c0f37===_0x42309e(0x2fb)){_0xbce29++;continue;}_0x252ae3[_0x42309e(0x202)](_0x5c0f37);}return _0x252ae3;})())}),_0x3cc145({'workers':_0x5630e6,'port':_0x4e81cb,'primaryOkdb':_0x151a51,'workerEnv':workerEnv});return _0x2731f6({'makeOkdb':_0x218d16,'port':_0x4e81cb});}function _0x3cc145({workers:_0x3fe9f5,port:_0x284077,primaryOkdb:_0x2d7c62,workerEnv:_0x599f49}){const _0x58a705=_0x40d8a0,_0x5152e7=new Map(),_0x18376e=new Map();let _0x5b1f86=![];const _0x16153f=_0x262482=>_0x262482?.[_0x58a705(0x1cc)],_0x5e2d76=_0x524b02=>{const _0x21e22a=_0x58a705,_0x32b66c=_0x5e96ec[_0x21e22a(0x322)]({...process.env,..._0x599f49||{},'OKDB_CLUSTER_SLOT':String(_0x524b02)});return _0x32b66c[_0x21e22a(0x1cc)]=_0x524b02,_0x5152e7[_0x21e22a(0x2b3)](_0x32b66c[_0x21e22a(0x350)][_0x21e22a(0x34e)],{'worker':_0x32b66c,'startedAt':Date['now'](),'slot':_0x524b02}),_0x32b66c['on']('error',_0x4b2cc4=>{const _0x4355c6=_0x21e22a;console['log']('[okdb-cluster]\x20worker\x20pid='+_0x32b66c['process']['pid']+_0x4355c6(0x2e0)+(_0x4b2cc4?.['message']??_0x4b2cc4));}),_0x32b66c['on'](_0x21e22a(0x2b5),()=>_0x1470f8()),_0x32b66c;},_0x1d0fd4=_0x1f22f9=>{const _0x35c09a=_0x58a705;for(const {worker:_0x28ee91}of _0x5152e7[_0x35c09a(0x1e4)]()){if(_0x28ee91[_0x35c09a(0x205)]()||!_0x28ee91[_0x35c09a(0x1f8)]())continue;try{_0x28ee91['send'](_0x1f22f9);}catch{}}};_0x2d7c62?.[_0x58a705(0x391)]?.({'kind':_0x58a705(0x2d4),'listenAddr':':'+_0x284077})[_0x58a705(0x1b7)](()=>{}),_0x2d7c62?.[_0x58a705(0x29e)]?.['setOwnMeta']?.({'workersConfigured':_0x3fe9f5});const _0x2c0584={'engines':!![],'processors':!![],'compaction':!![],'http':!![]},_0x1470f8=()=>{const _0xa635cf=_0x58a705,_0x395e05=_0x2d7c62?.[_0xa635cf(0x29e)];if(!_0x395e05||!_0x395e05[_0xa635cf(0x37a)])return;const _0x30ef40=_0x395e05[_0xa635cf(0x39e)];for(const {worker:_0x15c30a,startedAt:_0x1f88f5,slot:_0x3ddd1b,stats:_0x50dfc1,processing:_0x24a097}of _0x5152e7[_0xa635cf(0x1e4)]()){if(_0x15c30a[_0xa635cf(0x205)]())continue;const _0x3395f4=_0x395e05[_0xa635cf(0x318)]?.()&&_0x395e05['getDesired']('slot',_0xc6df5a(_0x3ddd1b))?.[_0xa635cf(0x298)]===!![];_0x395e05[_0xa635cf(0x2a6)]({'pid':_0x15c30a[_0xa635cf(0x350)][_0xa635cf(0x34e)],'startedAt':_0x1f88f5,'kind':_0xa635cf(0x2cf),'supervisorKey':_0x30ef40,'slot':_0x3ddd1b,'slotKey':_0xc6df5a(_0x3ddd1b),'role':_0x2c0584,'listenAddr':':'+_0x284077,'lifecycle':_0x3395f4?_0xa635cf(0x265):_0xa635cf(0x25a),'processing':_0x24a097??null,'stats':_0x50dfc1??null})['catch'](()=>{});}},_0xc6df5a=_0x283799=>_0x54d73c(_0x58a705(0x325)+_0x284077,_0x283799),_0x45f4ff=_0x4b28e6=>{const _0x434827=_0x58a705,_0x4bede0=_0x2d7c62?.[_0x434827(0x29e)];if(!_0x4bede0?.[_0x434827(0x318)]?.())return![];return _0x4bede0['getDesired'](_0x434827(0x3a3),_0xc6df5a(_0x4b28e6))?.[_0x434827(0x298)]===!![];};for(let _0x419991=0x0;_0x419991<_0x3fe9f5;_0x419991++){const _0x56148d=_0x45f4ff(_0x419991);_0x18376e[_0x58a705(0x2b3)](_0x419991,{'deaths':[],'consecutiveFailures':0x0,'dead':_0x56148d,'respawnTimer':null}),_0x56148d?console[_0x58a705(0x278)](_0x58a705(0x1c6)+_0x419991+'\x20stays\x20down\x20on\x20boot\x20(durable\x20decommission)'):_0x5e2d76(_0x419991);}const _0x3d0bfd=()=>{const _0x29b01e=_0x58a705,_0x23e3e6=_0x2d7c62?.[_0x29b01e(0x29e)];if(!_0x23e3e6?.[_0x29b01e(0x37a)]||!_0x23e3e6[_0x29b01e(0x318)]?.())return;for(const [_0x3acae2,_0x5629b6]of _0x18376e[_0x29b01e(0x3a6)]()){const _0x3f618d=_0x23e3e6[_0x29b01e(0x290)](_0x29b01e(0x3a3),_0xc6df5a(_0x3acae2)),_0x394328=_0x3f618d?.['decommission']===!![],_0x254011=_0x3f618d?.[_0x29b01e(0x25c)]===!![];if(_0x394328&&!_0x5629b6[_0x29b01e(0x2d1)]){_0x5629b6[_0x29b01e(0x2d1)]=!![];_0x5629b6['respawnTimer']&&(clearTimeout(_0x5629b6[_0x29b01e(0x3b3)]),_0x5629b6['respawnTimer']=null);for(const {worker:_0x15f8a7}of _0x5152e7[_0x29b01e(0x1e4)]()){if(_0x16153f(_0x15f8a7)!==_0x3acae2||_0x15f8a7[_0x29b01e(0x205)]())continue;try{if(_0x254011)_0x15f8a7[_0x29b01e(0x350)][_0x29b01e(0x25c)](_0x29b01e(0x2bc));else _0x15f8a7[_0x29b01e(0x1f8)]()&&_0x15f8a7[_0x29b01e(0x339)]();}catch{}}console['log'](_0x29b01e(0x271)+(_0x254011?'hard-killed':_0x29b01e(0x246))+_0x29b01e(0x1e8)+_0x3acae2+_0x29b01e(0x291));}else{if(!_0x394328&&_0x5629b6[_0x29b01e(0x2d1)]&&_0x3f618d){_0x5629b6[_0x29b01e(0x2d1)]=![],_0x5629b6[_0x29b01e(0x1d6)]=[],_0x5629b6[_0x29b01e(0x206)]=0x0;const _0x29e143=[..._0x5152e7[_0x29b01e(0x1e4)]()]['some'](({worker:_0x363c5d})=>_0x16153f(_0x363c5d)===_0x3acae2&&!_0x363c5d[_0x29b01e(0x205)]());!_0x29e143&&!_0x5b1f86&&(_0x5e2d76(_0x3acae2),console[_0x29b01e(0x278)](_0x29b01e(0x1ff)+_0x3acae2));}}}},_0x2207cf=()=>{try{_0x3d0bfd();}catch{}};_0x2d7c62?.[_0x58a705(0x256)]?.['on']?.(_0x2aa535['SYSTEM_PROC'],_0x2207cf);const _0x3de86d=[];if(_0x2d7c62?.['events']?.['on'])for(const _0x3fe6b1 of _0x6b2cee){const _0x247d6c=_0x58b1a9=>{_0x1d0fd4({[_0x186481]:_0x3b21e0,'event':_0x3fe6b1,'data':_0x58b1a9??{}});};_0x2d7c62[_0x58a705(0x256)]['on'](_0x3fe6b1,_0x247d6c),_0x3de86d[_0x58a705(0x202)]({'event':_0x3fe6b1,'handler':_0x247d6c});}const _0x3691d0=setInterval(()=>{_0x3d0bfd(),_0x1470f8();},_0x2b2c5a);_0x3691d0[_0x58a705(0x36e)]?.();const _0x53b3d1=(_0x4dc78d,_0x1d55b5)=>{const _0x467e3d=_0x58a705;if(!_0x1d55b5||typeof _0x1d55b5!==_0x467e3d(0x2eb)||_0x1d55b5[_0x186481]!==_0x5be760)return;if(!_0x2d7c62?.['log']?.[_0x467e3d(0x35c)])return;const _0x422290=_0x1d55b5['entry']||{};_0x2d7c62[_0x467e3d(0x278)][_0x467e3d(0x35c)]({..._0x422290,'msg':'[w'+_0x1d55b5[_0x467e3d(0x3a3)]+']\x20'+(_0x422290['msg']??''),'meta':{..._0x422290[_0x467e3d(0x36c)]||{},'worker':_0x1d55b5[_0x467e3d(0x3a3)],'workerPid':_0x1d55b5[_0x467e3d(0x34e)]}});};_0x5e96ec['on'](_0x58a705(0x1a1),_0x53b3d1);const _0x31d417=(_0x79c87a,_0x39f4f6)=>{const _0x139cac=_0x58a705;if(!_0x39f4f6||typeof _0x39f4f6!==_0x139cac(0x2eb)||_0x39f4f6[_0x186481]!==_0x27e42a)return;const _0x40957f=_0x5152e7[_0x139cac(0x374)](_0x79c87a[_0x139cac(0x350)]['pid']);if(_0x40957f){_0x40957f[_0x139cac(0x25b)]={..._0x39f4f6['stats'],'at':Date[_0x139cac(0x353)]()};if(_0x39f4f6['processing']!==undefined)_0x40957f['processing']=_0x39f4f6['processing'];}};_0x5e96ec['on'](_0x58a705(0x1a1),_0x31d417),_0x5e96ec['on'](_0x58a705(0x38e),(_0x231138,_0x4c920e,_0x25ddf3)=>{const _0x50bb7a=_0x58a705,_0xee0714=_0x231138[_0x50bb7a(0x350)][_0x50bb7a(0x34e)],_0x5a0020=_0x16153f(_0x231138),_0x371179=_0x5152e7[_0x50bb7a(0x374)](_0xee0714);if(_0x371179&&_0x2d7c62?.['processes'])_0x2d7c62['processes'][_0x50bb7a(0x36b)](_0xee0714+':'+_0x371179[_0x50bb7a(0x398)])['catch'](()=>{});_0x5152e7[_0x50bb7a(0x35f)](_0xee0714),console[_0x50bb7a(0x278)](_0x50bb7a(0x32f)+_0xee0714+'\x20(slot='+(_0x5a0020??'?')+_0x50bb7a(0x2f0)+('(code='+_0x4c920e+_0x50bb7a(0x1df)+(_0x25ddf3??'none')+_0x50bb7a(0x22e)+_0x5152e7[_0x50bb7a(0x238)]+_0x50bb7a(0x301))),_0x1470f8();if(_0x5b1f86||_0x5a0020==null)return;const _0x4051e2=_0x18376e['get'](_0x5a0020);if(!_0x4051e2||_0x4051e2[_0x50bb7a(0x2d1)])return;const _0x19deb7=Date[_0x50bb7a(0x353)]();_0x4051e2[_0x50bb7a(0x1d6)][_0x50bb7a(0x202)](_0x19deb7),_0x4051e2[_0x50bb7a(0x1d6)]=_0x4051e2[_0x50bb7a(0x1d6)][_0x50bb7a(0x332)](_0x3c7d23=>_0x19deb7-_0x3c7d23<=_0x160d59);if(_0x4051e2[_0x50bb7a(0x1d6)]['length']>=_0x1ceab0){_0x4051e2[_0x50bb7a(0x2d1)]=!![],console[_0x50bb7a(0x3a0)]('[okdb-cluster]\x20CRASH-LOOP:\x20worker\x20slot='+_0x5a0020+_0x50bb7a(0x295)+_0x4051e2[_0x50bb7a(0x1d6)][_0x50bb7a(0x2d8)]+_0x50bb7a(0x296)+(_0x160d59+'ms\x20—\x20giving\x20up\x20on\x20this\x20slot;\x20'+_0x5152e7[_0x50bb7a(0x238)]+_0x50bb7a(0x1b9)));return;}_0x4051e2['consecutiveFailures']++;const _0x19ffc0=Math[_0x50bb7a(0x2c7)](_0x424dbe,_0x21cc89*0x2**(_0x4051e2[_0x50bb7a(0x206)]-0x1));console[_0x50bb7a(0x278)]('[okdb-cluster]\x20respawning\x20worker\x20slot='+_0x5a0020+_0x50bb7a(0x2e6)+_0x19ffc0+_0x50bb7a(0x240)+_0x4051e2[_0x50bb7a(0x206)]+')'),_0x4051e2[_0x50bb7a(0x3b3)]=setTimeout(()=>{const _0x302dbc=_0x50bb7a;_0x4051e2['respawnTimer']=null;if(_0x5b1f86||_0x4051e2[_0x302dbc(0x2d1)])return;const _0x526a22=_0x5e2d76(_0x5a0020);_0x526a22[_0x302dbc(0x37b)](_0x302dbc(0x1a9),()=>{const _0x2e54aa=_0x302dbc;if(_0x18376e[_0x2e54aa(0x374)](_0x5a0020)===_0x4051e2)_0x4051e2[_0x2e54aa(0x206)]=0x0;});},_0x19ffc0),_0x4051e2[_0x50bb7a(0x3b3)][_0x50bb7a(0x36e)]?.();});const _0x81661a=[..._0x5152e7[_0x58a705(0x292)]()];console[_0x58a705(0x278)](_0x58a705(0x25d)+process['pid']+_0x58a705(0x30b)+_0x3fe9f5+_0x58a705(0x25e)+_0x284077+':\x20'+('['+_0x81661a['join'](',\x20')+']'));const _0x2751c7={'_isClusterController':!![],'port':_0x284077,'primaryOkdb':_0x2d7c62??null,'status'(){const _0x6e5573=_0x58a705;return{'clustered':!![],'primaryPid':process[_0x6e5573(0x34e)],'port':_0x284077,'primaryRole':_0x2d7c62?.[_0x6e5573(0x270)]??null,'processorPid':null,'supervisorPid':process[_0x6e5573(0x34e)],'workers':[..._0x5152e7[_0x6e5573(0x1e4)]()][_0x6e5573(0x28d)](({worker:_0x2d4b64})=>({'pid':_0x2d4b64[_0x6e5573(0x350)][_0x6e5573(0x34e)],'id':_0x2d4b64['id'],'dead':_0x2d4b64[_0x6e5573(0x205)]()}))};},async 'close'(){const _0x59aa3e=_0x58a705;_0x5b1f86=!![];for(const _0x841a44 of _0x18376e[_0x59aa3e(0x1e4)]()){_0x841a44[_0x59aa3e(0x2d1)]=!![],_0x841a44[_0x59aa3e(0x3b3)]&&(clearTimeout(_0x841a44[_0x59aa3e(0x3b3)]),_0x841a44[_0x59aa3e(0x3b3)]=null);}clearInterval(_0x3691d0),_0x5e96ec['off']('message',_0x53b3d1),_0x5e96ec[_0x59aa3e(0x185)](_0x59aa3e(0x1a1),_0x31d417),_0x2d7c62?.[_0x59aa3e(0x256)]?.['off']?.(_0x2aa535[_0x59aa3e(0x268)],_0x2207cf);if(_0x2d7c62?.[_0x59aa3e(0x256)]?.[_0x59aa3e(0x185)])for(const {event:_0x5318c0,handler:_0x1b89c6}of _0x3de86d){try{_0x2d7c62[_0x59aa3e(0x256)][_0x59aa3e(0x185)](_0x5318c0,_0x1b89c6);}catch{}}_0x3de86d['length']=0x0;const _0x480870=[..._0x5152e7[_0x59aa3e(0x1e4)]()]['map'](({worker:_0x1c8c1f})=>_0x1c8c1f);if(_0x480870[_0x59aa3e(0x2d8)]===0x0)return;await Promise[_0x59aa3e(0x239)](_0x480870['map'](_0x3c8b39=>new Promise(_0x400caf=>{const _0x19e772=_0x59aa3e;if(_0x3c8b39[_0x19e772(0x205)]()){_0x400caf();return;}let _0xafd9fa=![];const _0x26ca6f=()=>{if(_0xafd9fa)return;_0xafd9fa=!![];if(_0x44b922)clearTimeout(_0x44b922);_0x400caf();};_0x3c8b39[_0x19e772(0x37b)]('exit',_0x26ca6f);const _0x44b922=setTimeout(()=>{const _0x1abae3=_0x19e772;try{_0x3c8b39[_0x1abae3(0x350)][_0x1abae3(0x25c)]();}catch{}},_0x51dba2+0x1f4);_0x44b922[_0x19e772(0x36e)]?.();try{_0x3c8b39[_0x19e772(0x339)]();}catch{try{_0x3c8b39['process'][_0x19e772(0x25c)]();}catch{}}})));}};return _0x2751c7;}async function _0x2731f6({makeOkdb:_0x43996a,port:_0x4abf5f}){const _0x405c59=_0x40d8a0,_0x7cf0bb=await _0x43996a();return _0x5effc1(_0x7cf0bb),_0x7cf0bb['http'][_0x405c59(0x2f6)](_0x4abf5f);}function _0x5effc1(_0x18bdc8){const _0x4cde23=_0x40d8a0;if(!_0x18bdc8||_0x18bdc8['_clusterWorkerAttached'])return;_0x18bdc8[_0x4cde23(0x3a8)]=!![];try{const {OKDBChangefeed:_0x1a3ba4}=requireOkdbChangefeed(),_0x1ad6ac=_0x18bdc8[_0x4cde23(0x35e)];if(_0x1ad6ac&&typeof _0x1ad6ac['attachFeed']===_0x4cde23(0x22c)){const _0x288f69=new _0x1a3ba4(_0x18bdc8);_0x288f69[_0x4cde23(0x2b4)](),_0x1ad6ac[_0x4cde23(0x385)](_0x288f69),_0x18bdc8[_0x4cde23(0x37e)]=_0x288f69;}}catch(_0x73ac34){_0x18bdc8[_0x4cde23(0x278)]?.[_0x4cde23(0x20b)]?.(_0x4cde23(0x3a1)+(_0x73ac34?.[_0x4cde23(0x1a1)]??_0x73ac34),{'feature':'cluster'});}const _0x437e5f=_0x5f302b=>{const _0x260fe2=_0x4cde23;if(!_0x5f302b||typeof _0x5f302b!==_0x260fe2(0x2eb)||_0x5f302b[_0x186481]==null)return;if(_0x5f302b[_0x186481]===_0x3b21e0)try{_0x18bdc8[_0x260fe2(0x35e)]?.['pushEphemeral']?.(_0x5f302b[_0x260fe2(0x2fc)],_0x5f302b['data']);}catch{}};process['on']('message',_0x437e5f),_0x18bdc8['_clusterOnMessage']=_0x437e5f;{let _0x5130b5=process['cpuUsage'](),_0x49c73d=Date[_0x4cde23(0x353)]();const _0x48473c=()=>{const _0x1b36b9=_0x4cde23;if(typeof process[_0x1b36b9(0x22f)]!=='function'||!process[_0x1b36b9(0x34a)])return;const _0x23cef1=Date['now'](),_0x4e2833=process[_0x1b36b9(0x32d)](),_0x5827bb=(_0x23cef1-_0x49c73d)*0x3e8,_0xb537d=_0x4e2833[_0x1b36b9(0x366)]-_0x5130b5[_0x1b36b9(0x366)]+(_0x4e2833[_0x1b36b9(0x24a)]-_0x5130b5[_0x1b36b9(0x24a)]),_0x55803d=_0x5827bb>0x0?Math[_0x1b36b9(0x2c7)](0x64,Math[_0x1b36b9(0x252)](_0xb537d/(_0x5827bb*(_0x347e78[_0x1b36b9(0x1af)]()[_0x1b36b9(0x2d8)]||0x1))*0x64)):0x0;_0x5130b5=_0x4e2833,_0x49c73d=_0x23cef1;const _0x171d2f=process[_0x1b36b9(0x3a4)]();let _0x587e7b=null;try{_0x587e7b=_0x18bdc8[_0x1b36b9(0x270)]?.[_0x1b36b9(0x347)]?_0x18bdc8[_0x1b36b9(0x29e)]?.[_0x1b36b9(0x2d7)]?.()??null:null;}catch{}try{process[_0x1b36b9(0x22f)]({[_0x186481]:_0x27e42a,'stats':{'rss':_0x171d2f[_0x1b36b9(0x269)],'heapUsed':_0x171d2f[_0x1b36b9(0x31a)],'heapTotal':_0x171d2f['heapTotal'],'external':_0x171d2f['external'],'cpuPct':_0x55803d,'cpuWindowMs':Math[_0x1b36b9(0x252)](_0x5827bb/0x3e8)||null},'processing':_0x587e7b});}catch{}},_0x5c1f63=Math[_0x4cde23(0x1fd)](0x3e8,Number(process.env.OKDB_STATS_INTERVAL_MS)||0x1388),_0x3a6fd2=setInterval(_0x48473c,_0x5c1f63);_0x3a6fd2[_0x4cde23(0x36e)]?.(),_0x48473c();for(const _0x36e74b of[_0x4cde23(0x225),_0x4cde23(0x330)]){_0x18bdc8[_0x4cde23(0x256)]?.['on']?.(_0x36e74b,()=>{try{_0x48473c();}catch{}});}}let _0x354bb2=![];const _0x2762c0=async _0x4ba329=>{const _0x46a913=_0x4cde23;if(_0x354bb2)return;_0x354bb2=!![];const _0x1345a3=setTimeout(()=>process['exit'](_0x4ba329),_0x51dba2);_0x1345a3[_0x46a913(0x36e)]?.();try{await _0x18bdc8[_0x46a913(0x26f)]?.();}catch{}process[_0x46a913(0x38e)](_0x4ba329);};process['on'](_0x4cde23(0x339),()=>_0x2762c0(0x0));if(process['platform']!==_0x4cde23(0x1d9)){const _0x23078c=setInterval(()=>{const _0x420136=_0x4cde23;if(process[_0x420136(0x27b)]===0x1)_0x2762c0(0x0);},_0x478057);_0x23078c['unref']?.(),_0x18bdc8[_0x4cde23(0x329)]=_0x23078c;}}return okdbCluster={'runClustered':_0x3a08ca,'attachWorkerCluster':_0x5effc1},okdbCluster;}var hasRequiredOkdbHttpWorkerChild;function requireOkdbHttpWorkerChild(){const _0x7b58f6=_0x24af3f;if(hasRequiredOkdbHttpWorkerChild)return okdbHttpWorkerChild$1;hasRequiredOkdbHttpWorkerChild=0x1;const _0x409104=require$$0$5,{attachWorkerCluster:_0x3164fb}=requireOkdbCluster();async function _0x3d53d3(){const _0x3cd68a=_0x5df3,_0x5f52ff=process.env.OKDB_HTTP_CHILD;if(!_0x5f52ff)throw new Error(_0x3cd68a(0x2ba));const {rootPath:_0x4c35b2,port:_0x2a7c18,options:options={},logLevel:logLevel=_0x3cd68a(0x33a)}=JSON[_0x3cd68a(0x1c5)](_0x5f52ff);if(!_0x4c35b2||!_0x2a7c18)throw new Error(_0x3cd68a(0x2bf));const _0x4111d7=new _0x409104(_0x4c35b2,{...options,'engines':![],'processors':![],'compaction':![]});_0x4111d7[_0x3cd68a(0x278)]['detachConsole']?.();const _0x462f5e=process.env.OKDB_CLUSTER_SLOT??'?',_0x2e8c72={'debug':0x0,'info':0x1,'warn':0x2,'error':0x3},_0x36e441=_0x2e8c72[logLevel]??_0x2e8c72[_0x3cd68a(0x33a)];_0x4111d7['log'][_0x3cd68a(0x377)](_0x12030f=>{const _0xb7edb0=_0x3cd68a;if((_0x2e8c72[_0x12030f[_0xb7edb0(0x1cf)]]??0x1)<_0x36e441)return;try{process[_0xb7edb0(0x22f)]?.({'__okdbCluster':_0xb7edb0(0x278),'slot':_0x462f5e,'pid':process[_0xb7edb0(0x34e)],'entry':_0x12030f});}catch{}}),await _0x4111d7[_0x3cd68a(0x1c8)](),_0x3164fb(_0x4111d7),await _0x4111d7[_0x3cd68a(0x379)][_0x3cd68a(0x2f6)](_0x2a7c18);}return _0x3d53d3()[_0x7b58f6(0x1b7)](_0x9b7db3=>{const _0x26c2a0=_0x7b58f6;try{process[_0x26c2a0(0x22f)]?.({'__okdbCluster':_0x26c2a0(0x278),'slot':process.env.OKDB_CLUSTER_SLOT??'?','pid':process[_0x26c2a0(0x34e)],'entry':{'level':'error','msg':_0x26c2a0(0x184)+(_0x9b7db3?.[_0x26c2a0(0x1a1)]??_0x9b7db3)}});}catch{}process[_0x26c2a0(0x38e)](0x1);}),okdbHttpWorkerChild$1;}var okdbHttpWorkerChildExports=requireOkdbHttpWorkerChild(),okdbHttpWorkerChild=getDefaultExportFromCjs(okdbHttpWorkerChildExports);module[_0x24af3f(0x29c)]=okdbHttpWorkerChild;
|
|
1
|
+
'use strict';const _0x1d447a=_0x39df;(function(_0x34c672,_0x23cb22){const _0x42555b=_0x39df,_0x1c90ad=_0x34c672();while(!![]){try{const _0x11d6fb=parseInt(_0x42555b(0x290))/0x1*(parseInt(_0x42555b(0x233))/0x2)+parseInt(_0x42555b(0x24f))/0x3*(-parseInt(_0x42555b(0x326))/0x4)+-parseInt(_0x42555b(0x152))/0x5+parseInt(_0x42555b(0x110))/0x6*(-parseInt(_0x42555b(0x255))/0x7)+-parseInt(_0x42555b(0x140))/0x8*(parseInt(_0x42555b(0x141))/0x9)+-parseInt(_0x42555b(0x146))/0xa+parseInt(_0x42555b(0x1c4))/0xb;if(_0x11d6fb===_0x23cb22)break;else _0x1c90ad['push'](_0x1c90ad['shift']());}catch(_0x4b3a1d){_0x1c90ad['push'](_0x1c90ad['shift']());}}}(_0x44de,0xab5f2));var require$$0$5=require(_0x1d447a(0x274)),require$$1$1=require(_0x1d447a(0x2eb)),require$$1=require(_0x1d447a(0x24a)),require$$0$3=require('os'),require$$2=require(_0x1d447a(0x30e)),require$$0=require(_0x1d447a(0x2c2)),require$$0$2=require(_0x1d447a(0x227)),require$$0$1=require('fs'),require$$0$4=require('node:events');function getDefaultExportFromCjs(_0x46f16d){const _0x22e569=_0x1d447a;return _0x46f16d&&_0x46f16d[_0x22e569(0x294)]&&Object['prototype']['hasOwnProperty'][_0x22e569(0x22d)](_0x46f16d,_0x22e569(0x206))?_0x46f16d[_0x22e569(0x206)]:_0x46f16d;}function _0x44de(){const _0xee9c63=['function','\x0a===\x20OKDB_DIAG\x20','updateSupervisedChildStats','processor:retry','_committed','draining','fromEntries','commit','listNodes','reset','register','clearThreadStats','[okdb-cluster]\x20respawning\x20worker\x20slot=','heapUsed','uncaughtException','schema:set','_released','then','\x20stays\x20down\x20on\x20boot\x20(durable\x20decommission)','index:drop','_outstanding','event','perf_hooks','liveThreadStats','worker','removeSupervisedChild','system:ready','_scheduleFlush','call','stopped','\x20—\x20set\x20OKDB_DIAG_STACK=1\x20to\x20name\x20the\x20call\x20site','_flushDebounce','threads','halted','112624hcEMcz','version','workersConfigured','resetting','_pending','node/','registerType','freeze','code','registerFts','user','ms\x20activeWriters=','processes','nodesView','_nodeDb','_lastCpuAt','enable','_baselines','type:drop','_lock','FTS_RESET','set','_isWriter','path','_windowCbs','pushEphemeral','rows=','setLogger','3189Vdbfeh','includes','busy','events','index:progress','processKey','6982871yvjYnX','name','_report','_caps','flushLmdb','cursorKey','processorsView','disable','_desired','role','system:type_drop','\x20@\x20','_isStale','_cmd','supervisorKey','_lastCpuWindowMs',',\x20signal=','send','singletonClaims','error','\x20parkedNow=','enabled','writerStatus','isActive','_onProcEvent','expiresAt','firstTs','namespace','isEnabled','stack','entry','./okdb','label','ITEM_CREATE','raw-put','processor:ready','ESRCH','stop','_onPoke','meta','entries','_acquiredAt','--print','_holderDead','resetReadTxn','cpus','system','\x20HTTP\x20server(s)\x20on\x20port\x20','beforeWrite','setOwnMeta','\x20(slot=','count','acquiredAt','_dedupeMax','test','list','recordWrite','_durs','decommissioning','7NCrgik','engines','system:drain','remove','__esModule','_bpParkedTotal','_adminRelay','startedAt','isWorker','ttl:expired','inst:','processingStatusView','procmode/','_onStop','queue-worker','bumpCmd','INDEX_READY','_started','_isReader','_markSeen','clusterStatusView','primary','SYSTEM_PROC','okdb-http-worker-child:\x20rootPath\x20and\x20port\x20required','_inflight','~processes:cmd','_listenAddr','min','raw-remove','_openEnvLazy','_key','object','_servingEngines','(worst\x20','write','change','listen','processor','ORPHAN\x20(env-closed\x20write,\x20unhandledRejection)','standalone','slot','compact','status','putNode','log','nodeKey','addSupervisedChild','_statusEnv','map','ppid','node:perf_hooks','dropping','decommission','pid','\x20drainAge=','online','warn','stringify','flushDebounce','clear','2.2.0','_lockDb','license:removed','(code=','sync','type','_removeRowAsync','connected','abs','_lastCpuUsage','depth','consecutiveFailures','ingest','--test','single','_desiredOverlay','deregisterSelf','getClock','fts:registered','\x20\x20#','_maybePublish','shift','ms\x20—\x20giving\x20up\x20on\x20this\x20slot;\x20','maxMs','epoch','processor:paused','hasDesired','has','holder','onWindow','add','cluster','heapTotal','reap','participate','level','markClosed','kill','next','\x20worker\x20slot=','\x20\x20(write\x20ring\x20empty\x20—\x20was\x20OKDB_DIAG\x20set\x20before\x20any\x20write?)','compaction','bus:env_release','allSettled','_clusterOrphanWatch','listDesired','inspect','_cursors','maxExtra','okdb','setSchema','prependListener','dumpedAt','item:update','setupPrimary','_buildProcessingFacet','number','_selfKey','isConnected','txn:rollback','max','CHANGEFEED_QUANTUM','emit','ENV_CLOSING_RETRY','dedupeMax','env:opened','crypto','openDB','_coordinator','running','_timer','kind','createEnvironment','_highWater','updatedAt','system:proc','_supervisorKey','committed','_threadStats','ITEM_REMOVE','listAll','\x0a\x20\x20\x20\x20\x20\x20','childTransaction','bus:poke','hostname','exit','_onItem','[okdb-cluster]\x20worker\x20pid=','embedded','REMOVE','4428hbSPee','_seen','ms\x20(attempt\x20','_instanceId','cluster:','dead','view:progress','values','\x20phase=','_envs','now','processor:error','\x20worker(s)\x20remaining','fanout','rowKey','_children','procmodeack/',':want','_startAdmission','_startedAt','_log','loop-lag\x20','release','indexOf','6NoTPeI','seq','_sampleOwnStats','ms\x20mean=','_groupByProcess','disconnect','delete','\x20(durable\x20desired-state)','memoryUsage','publishChildRow','_admissionTimer','_activateProcesses','_dedupeKey','_singletonLocks','starting','catch','_nodeDead','isDead','slotKey','_closed','okdb-diag.','value','registry\x20heartbeat\x20skipped\x20(writer=','processor:progress','percentile','repeat','\x20writer{depth=','message','string','slice',');\x20','exports','setDesired','_kind','txn:start','ITEM_UPDATE','__vocab/version','fast','_lastCpuPct','started',')\x20—\x20this\x20process\x20will\x20not\x20appear\x20in\x20the\x20process\x20census','open','_sandbox','getCmd','_publishNow','get','_onTick','offWindow','2500944fwGrRR','9NnyAmC','getDesired','listenAddr','ms\x20on\x20env=','all','1352640Oeskgo','flushed','replace','drain\x20state\x20(envs\x20with\x20a\x20non-zero\x20drain):','FTS_REGISTERED','attachFeed','process','resetFts','SYSTEM_STOPPED','license:activated','hasType','off','1393915mgxqmD','item:create','_handlePoke','process\x20','host','parkedNow','removeNode','cpuWindowMs','[okdb-cluster]\x20slot=','treeView','deaths','reduce','http-server','\x20—\x20','[okdb-cluster]\x20CRASH-LOOP:\x20worker\x20slot=','_refreshDesiredSnapshot','external','_bpWaiters','registry\x20publish\x20failing:\x20','getRange','parse','VIEW_PROGRESS','INDEX_RESET','respawnTimer','keys','1ofN:','sandbox','filter','transactionSync','_startHeartbeat','transaction','sort','_publishFailWarned','inflightAgesMs','randomUUID','join','mode','_collectWriterFacet','from','migrations','\x20forked\x20','ms\x20max=','children','stderr','cluster-wide','type:registered','_role','__okdbCluster','unclaimed','_done','_buckets','_quantum','http','~processes:desired','FTS_DROP','created','publishOwnRow','cli','some','waiting','round','resolve','_versionSkewWarned','trim','bus:type_drop','toFixed','building','_ownMeta','_hbTimer','copy','_rowKey','true','fts:reset','fn-runner','load','ORPHAN\x20(env-closed\x20write)','ready','note','processors','_putRowSync','env','appendFileSync','heartbeatMs','SYSTEM_POKE','none','_collectSingletonClaims',')\x20exited\x20','registerIndex','isPrimary','race','_db','item:remove','putSync','_draining','mkdirSync','_drain','--inspect','win32','data','once','push','oldestPendingMs','_processStartedAt','error:\x20','SYNC_COMMITS','system:env_release','noteListenAddr','_ensureDesired','rss','_changefeed','_buildOwnRow','_writer','\x20oldestPendingMs=','_rawDb','35295843JKjTNz','__okdbSlot','\x20===','start','_admissionStarted','_nodeDbFor','killable','bus:proc','\x20│\x20','_flushTimer','isHeld','_migrateVocab','view','index:reset','_heartbeatInFlight','node','cpuPct','cpuUsage','unique:violation_resolved','split','_participate','_rootDb','_buildChildRow','http\x20worker\x20child\x20failed:\x20','quantum','\x20\x20(no\x20env\x20draining)','extend','okdb-writer:\x20env\x20closing\x20—\x20retry','find','index:registered','creating','processorId','~processes','length','removeSync','put','toISOString','[okdb-cluster]\x20','\x20sync','stats','info','okdb-http-worker-child:\x20OKDB_HTTP_CHILD\x20env\x20config\x20missing','_heartbeatTimer','_enqueuedAt','startHeartbeat','_drainOne','processor:resumed','stopHeartbeat','recent\x20writes\x20(newest\x20first)','_clusterWorkerAttached','ms\x20busy=','floor','unref','isWanted','processing','_wantDb','~lock','selfKey','uptime','close','ttlMs','dropIndex','stopping','\x20on\x20this\x20data\x20path\x20runs\x20okdb\x20','lifecycle','caps','default','resetIndex','\x20in\x20','size','system:bus_state_change','--watch','\x20statusEnv=','state','_lastPublishAt','_singletonLock','startsWith'];_0x44de=function(){return _0xee9c63;};return _0x44de();}var okdbHttpWorkerChild$1={},okdbEnums,hasRequiredOkdbEnums;function requireOkdbEnums(){const _0xa327b1=_0x1d447a;if(hasRequiredOkdbEnums)return okdbEnums;hasRequiredOkdbEnums=0x1;const _0x23ec7b={'PUT':'put','REMOVE':_0xa327b1(0x293),'INDEX_DROP':_0xa327b1(0x201),'INDEX_REGISTER':_0xa327b1(0x1a9),'INDEX_RESET':_0xa327b1(0x207),'TYPE_REGISTER':_0xa327b1(0x239),'TYPE_DROP':'dropType','FTS_REGISTER':_0xa327b1(0x23c),'FTS_DROP':'dropFts','FTS_RESET':_0xa327b1(0x14d),'SCHEMA_SET':_0xa327b1(0x2fe),'SCHEMA_DROP':'dropSchema','TTL_SET':'setTtl','TTL_CLEAR':'clearTtl'},_0x5435fb={'SYSTEM_READY':_0xa327b1(0x22b),'SYSTEM_STOPPED':'system:stopped','SYSTEM_CLOCK_CHANGE':'system:clock_change','SYSTEM_POKE':'system:poke','SYSTEM_DRAIN':_0xa327b1(0x292),'SYSTEM_TYPE_DROP':_0xa327b1(0x25f),'SYSTEM_PROC':_0xa327b1(0x317),'SYSTEM_BUS_STATE_CHANGE':_0xa327b1(0x20a),'ITEM_CREATE':_0xa327b1(0x153),'ITEM_UPDATE':_0xa327b1(0x301),'ITEM_REMOVE':_0xa327b1(0x1ad),'INDEX_RESET':_0xa327b1(0x1d1),'INDEX_READY':'index:ready','INDEX_PROGRESS':_0xa327b1(0x253),'VIEW_PROGRESS':_0xa327b1(0x32c),'INDEX_DROP':_0xa327b1(0x224),'INDEX_REGISTERED':_0xa327b1(0x1e1),'FTS_REGISTERED':_0xa327b1(0x2de),'FTS_DROP':'fts:drop','FTS_RESET':_0xa327b1(0x19a),'SCHEMA_SET':_0xa327b1(0x220),'SCHEMA_DROP':'schema:drop','UNIQUE_VIOLATION':'unique:violation','UNIQUE_VIOLATION_RESOLVED':_0xa327b1(0x1d6),'REF_VIOLATION':'ref:violation','REF_VIOLATION_RESOLVED':'ref:violation_resolved','SYNC_APPLY':'sync:apply','TXN_START':_0xa327b1(0x132),'TXN_END':'txn:end','TXN_ROLLBACK':_0xa327b1(0x307),'TYPE_REGISTERED':_0xa327b1(0x17f),'TYPE_DROP':_0xa327b1(0x245),'ENV_OPENED':_0xa327b1(0x30d),'ENV_REMOVED':'env:removed','SYSTEM_ENV_RELEASE':_0xa327b1(0x1bb),'TTL_EXPIRED':_0xa327b1(0x299),'TTL_SET':'ttl:set','TTL_CLEAR':'ttl:clear','LICENSE_INVALID':'license:invalid','LICENSE_ADDED':'license:added','LICENSE_ACTIVATED':_0xa327b1(0x14f),'LICENSE_REMOVED':_0xa327b1(0x2ce)},_0x2a717d={'CREATING':_0xa327b1(0x1e2),'RESETTING':_0xa327b1(0x236),'READY':'ready','DROPPING':_0xa327b1(0x2c3),'WAITING':_0xa327b1(0x18d)},_0x503abb={'CREATED':_0xa327b1(0x189),'STARTING':_0xa327b1(0x11e),'STARTED':_0xa327b1(0x137),'STOPPING':_0xa327b1(0x202),'STOPPED':_0xa327b1(0x22e)},_0x265d2f={'CREATING':_0xa327b1(0x1e2),'READY':_0xa327b1(0x19e),'HALTED':_0xa327b1(0x232),'STOPPED':_0xa327b1(0x22e),'RESETTING':'resetting'},_0xe7b45f=Object[_0xa327b1(0x23a)]({'POKE':_0xa327b1(0x31f),'DRAIN':'bus:drain','TYPE_DROP':_0xa327b1(0x192),'PROC':_0xa327b1(0x1cb),'ENV_RELEASE':_0xa327b1(0x2f6)});return okdbEnums={'BUS_EVENTS':_0xe7b45f,'CHANGE_ACTIONS':_0x23ec7b,'EVENTS':_0x5435fb,'INDEX_STATE':_0x2a717d,'OKDB_STATE':_0x503abb,'VIEW_STATE':_0x265d2f},okdbEnums;}var okdbLoopMonitor,hasRequiredOkdbLoopMonitor;function requireOkdbLoopMonitor(){const _0xd5b191=_0x1d447a;if(hasRequiredOkdbLoopMonitor)return okdbLoopMonitor;hasRequiredOkdbLoopMonitor=0x1;const {monitorEventLoopDelay:_0x1dc8e3,performance:_0x4f5dd9}=require$$0,_0x4b25ff=process.env.OKDB_LOOP_LAG==='1'||process.env.OKDB_LOOP_LAG===_0xd5b191(0x199),_0x17a189=Number(process.env.OKDB_LOOP_LAG_MS)||0x7d0,_0x107cc6=process.env.OKDB_LOOP_LAG_ALL==='1',_0x172cc6=Number(process.env.OKDB_LOOP_LAG_MIN_MS)||0x64;class _0x24af83{constructor(){const _0x551671=_0xd5b191;this[_0x551671(0x26a)]=_0x4b25ff,this[_0x551671(0x184)]=new Map(),this['_h']=null,this[_0x551671(0x312)]=null,this[_0x551671(0x2a1)]=![],this[_0x551671(0x33a)]=(_0x527917,_0x4636c7)=>process[_0x551671(0x17d)]['write'](_0x527917+(_0x4636c7?'\x20'+JSON[_0x551671(0x2c9)](_0x4636c7):'')+'\x0a');}[_0xd5b191(0x330)](){const _0x2a168a=_0xd5b191;return _0x4f5dd9[_0x2a168a(0x330)]();}[_0xd5b191(0x24e)](_0x48f949){const _0x180734=_0xd5b191;if(typeof _0x48f949===_0x180734(0x211))this['_log']=_0x48f949;}['note'](_0x32b061,_0x4e1aa9,_0x23e7d8){const _0x3fb022=_0xd5b191;if(!this[_0x3fb022(0x26a)])return;let _0x12248d=this['_buckets'][_0x3fb022(0x13d)](_0x32b061);!_0x12248d&&(_0x12248d={'ms':0x0,'count':0x0,'maxMs':0x0,'maxExtra':''},this[_0x3fb022(0x184)][_0x3fb022(0x248)](_0x32b061,_0x12248d)),_0x12248d['ms']+=_0x4e1aa9,_0x12248d['count']+=0x1,_0x4e1aa9>_0x12248d[_0x3fb022(0x2e3)]&&(_0x12248d[_0x3fb022(0x2e3)]=_0x4e1aa9,_0x12248d[_0x3fb022(0x2fc)]=_0x23e7d8||'');}[_0xd5b191(0x1c7)](_0x4fb210){const _0x1f16b4=_0xd5b191;if(!this['enabled']||this[_0x1f16b4(0x2a1)])return;this[_0x1f16b4(0x2a1)]=!![];if(_0x4fb210)this['_log']=_0x4fb210;this['_h']=_0x1dc8e3({'resolution':0xa}),this['_h'][_0x1f16b4(0x243)](),this['_timer']=setInterval(()=>this[_0x1f16b4(0x257)](),_0x17a189);if(this['_timer']['unref'])this[_0x1f16b4(0x312)]['unref']();}[_0xd5b191(0x2e9)](_0x459ffc){const _0x16db63=_0xd5b191;if(!this['_windowCbs'])this[_0x16db63(0x24b)]=new Set();this[_0x16db63(0x24b)][_0x16db63(0x2ea)](_0x459ffc);if(!this[_0x16db63(0x2a1)])this['_startAdmission']();}[_0xd5b191(0x13f)](_0x532c46){const _0x502c93=_0xd5b191;this[_0x502c93(0x24b)]?.[_0x502c93(0x116)](_0x532c46);}[_0xd5b191(0x338)](){const _0xe6f221=_0xd5b191;if(this[_0xe6f221(0x1c8)])return;this[_0xe6f221(0x1c8)]=!![];!this['_h']&&(this['_h']=_0x1dc8e3({'resolution':0xa}),this['_h'][_0xe6f221(0x243)]());const _0x52ff1e=_0x17a189;this[_0xe6f221(0x11a)]=setInterval(()=>{const _0x54ea16=_0xe6f221,_0x312a47=this['_h'];if(!_0x312a47)return;const _0x19cb2f=_0x312a47['percentile'](0x63)/0xf4240,_0x4f5781=_0x312a47[_0x54ea16(0x308)]/0xf4240,_0x1415f5=_0x312a47['mean']/0xf4240;_0x312a47[_0x54ea16(0x21a)]();if(this['_windowCbs'])for(const _0x1603da of this[_0x54ea16(0x24b)]){try{_0x1603da({'p99Ms':_0x19cb2f,'maxMs':_0x4f5781,'meanMs':_0x1415f5,'reportMs':_0x52ff1e});}catch{}}},_0x52ff1e);if(this[_0xe6f221(0x11a)]['unref'])this[_0xe6f221(0x11a)][_0xe6f221(0x1f8)]();}[_0xd5b191(0x257)](){const _0x53e370=_0xd5b191,_0x55ebef=this['_h'],_0x22d73f=_0x55ebef[_0x53e370(0x308)]/0xf4240,_0x3905a5=_0x55ebef[_0x53e370(0x128)](0x63)/0xf4240,_0xf95f4f=_0x55ebef['mean']/0xf4240;_0x55ebef['reset']();const _0x591404=[...this[_0x53e370(0x184)][_0x53e370(0x27d)]()][_0x53e370(0x2c0)](([_0x48b1d6,_0x2ca91c])=>({'label':_0x48b1d6,..._0x2ca91c}))[_0x53e370(0x171)]((_0x2becc2,_0x448761)=>_0x448761['ms']-_0x2becc2['ms'])[_0x53e370(0x12d)](0x0,0x8);this[_0x53e370(0x184)][_0x53e370(0x2cb)]();const _0x3b7826=_0x591404[_0x53e370(0x15d)]((_0x3207b0,_0x2fed4c)=>_0x3207b0+_0x2fed4c['ms'],0x0),_0x54a4f5=_0x591404[_0x53e370(0x2c0)](_0x278b12=>_0x278b12[_0x53e370(0x275)]+'='+_0x278b12['ms'][_0x53e370(0x193)](0x0)+'ms/'+_0x278b12[_0x53e370(0x288)]+(_0x278b12[_0x53e370(0x2e3)]>0x5?_0x53e370(0x2b1)+_0x278b12[_0x53e370(0x2e3)]['toFixed'](0x0)+'ms'+(_0x278b12[_0x53e370(0x2fc)]?'\x20'+_0x278b12[_0x53e370(0x2fc)]:'')+')':''));(_0x107cc6||_0x22d73f>=_0x172cc6)&&this[_0x53e370(0x33a)](_0x53e370(0x10d)+_0x17a189+_0x53e370(0x17b)+_0x22d73f[_0x53e370(0x193)](0x0)+'ms\x20p99='+_0x3905a5[_0x53e370(0x193)](0x0)+_0x53e370(0x113)+_0xf95f4f[_0x53e370(0x193)](0x0)+_0x53e370(0x1f6)+_0x3b7826[_0x53e370(0x193)](0x0)+'ms'+(_0x54a4f5[_0x53e370(0x1e5)]?_0x53e370(0x1cc)+_0x54a4f5['join']('\x20\x20'):''),{'feature':'loop-lag'});if(this[_0x53e370(0x24b)])for(const _0x1e3c62 of this[_0x53e370(0x24b)]){try{_0x1e3c62({'p99Ms':_0x3905a5,'maxMs':_0x22d73f,'meanMs':_0xf95f4f,'reportMs':_0x17a189});}catch{}}}[_0xd5b191(0x27a)](){const _0x5d7a47=_0xd5b191;if(this[_0x5d7a47(0x312)])clearInterval(this[_0x5d7a47(0x312)]);if(this['_h'])this['_h'][_0x5d7a47(0x25c)]();this[_0x5d7a47(0x312)]=null,this['_h']=null,this[_0x5d7a47(0x2a1)]=![];}}const _0x16dda7=new _0x24af83();if(_0x16dda7[_0xd5b191(0x26a)])_0x16dda7[_0xd5b191(0x1c7)]();return okdbLoopMonitor={'LOOP':_0x16dda7},okdbLoopMonitor;}var okdbWriter={'exports':{}},okdbDiag,hasRequiredOkdbDiag;function requireOkdbDiag(){if(hasRequiredOkdbDiag)return okdbDiag;hasRequiredOkdbDiag=0x1;const _0x4150c4=require$$0$1,_0x263117=require$$1;let _0x5eb94a,_0x355510,_0xd0a99e,_0x2df054,_0x50018a,_0x12856d,_0x41696f,_0x1fe615=![];const _0xb0837d=new Set();let _0x49af10=null;const _0x3c57b8=new Map();function _0x9abecd(){const _0x531f1f=_0x39df;if(_0x5eb94a!==undefined)return _0x5eb94a;_0x5eb94a=process.env.OKDB_DIAG==='1';if(!_0x5eb94a)return![];_0x355510=process.env.OKDB_DIAG_STACK==='1',_0x2df054=Math[_0x531f1f(0x308)](0x10,Number(process.env.OKDB_DIAG_RING)||0x100),_0xd0a99e=new Array(_0x2df054),_0x50018a=0x0,_0x12856d=0x0,_0x41696f=process.env.OKDB_DIAG_DIR||null;if(_0x41696f)try{_0x4150c4[_0x531f1f(0x1b0)](_0x41696f,{'recursive':!![]});}catch{}return!![];}function _0x55c164(){return _0x5eb94a===undefined?_0x9abecd():_0x5eb94a;}function _0x33a6d0(_0x2253aa,_0x50d9f6){const _0x247271=_0x39df;if(_0x5eb94a===undefined?!_0x9abecd():!_0x5eb94a)return;let _0x1a8471;if(_0x355510){const _0x3414e4=new Error()[_0x247271(0x272)]||'';_0x1a8471=_0x3414e4['split']('\x0a')['slice'](0x3)[_0x247271(0x2c0)](_0x35f5a5=>_0x35f5a5[_0x247271(0x191)]())[_0x247271(0x16d)](Boolean)[_0x247271(0x12d)](0x0,0x8);}_0xd0a99e[_0x50018a]={'seq':_0x12856d++,'t':Date[_0x247271(0x330)](),'env':_0x2253aa,'kind':_0x50d9f6||_0x247271(0x218),'stack':_0x1a8471},_0x50018a=(_0x50018a+0x1)%_0x2df054;}function _0x487b35(_0x52a0f4){const _0x3a25cb=_0x39df,_0x3aba00=[];for(let _0x13b1a7=0x0;_0x13b1a7<_0x2df054;_0x13b1a7++){const _0x18c147=_0xd0a99e[(_0x50018a-0x1-_0x13b1a7+_0x2df054*0x2)%_0x2df054];if(!_0x18c147)continue;_0x3aba00['push'](_0x18c147);if(_0x3aba00[_0x3a25cb(0x1e5)]>=_0x52a0f4)break;}return _0x3aba00;}function _0x4e003c(_0x5c25f4){const _0x52cd2c=_0x39df;try{process[_0x52cd2c(0x17d)][_0x52cd2c(0x2b2)](_0x5c25f4+'\x0a');}catch{}if(_0x41696f)try{_0x4150c4[_0x52cd2c(0x1a3)](_0x263117[_0x52cd2c(0x175)](_0x41696f,_0x52cd2c(0x124)+process[_0x52cd2c(0x2c5)]+'.log'),_0x5c25f4+'\x0a');}catch{}}function _0x19a519(_0x2ea86f){const _0xb3b914=_0x39df,_0x550839=_0x487b35(_0x2ea86f);if(!_0x550839[_0xb3b914(0x1e5)])return _0xb3b914(0x2f4);const _0x394443=Date[_0xb3b914(0x330)]();return _0x550839[_0xb3b914(0x2c0)](_0x289ecb=>{const _0x8c2d02=_0xb3b914,_0x504085=_0x8c2d02(0x2df)+_0x289ecb[_0x8c2d02(0x111)]+'\x20-'+(_0x394443-_0x289ecb['t'])+'ms\x20env='+_0x289ecb[_0x8c2d02(0x1a2)]+'\x20'+_0x289ecb['kind'];return _0x289ecb[_0x8c2d02(0x272)]&&_0x289ecb[_0x8c2d02(0x272)][_0x8c2d02(0x1e5)]?_0x504085+_0x8c2d02(0x31d)+_0x289ecb['stack']['join'](_0x8c2d02(0x31d)):_0x504085;})[_0xb3b914(0x175)]('\x0a');}function _0x1de1a4(_0x4f8d82,_0xca8b0e){const _0x2af7f0=_0x39df,_0x56f74c=_0x2af7f0(0x212)+_0x4f8d82+_0x2af7f0(0x260)+new Date()['toISOString']()+'\x20pid='+process['pid']+_0x2af7f0(0x1c6),_0x23fbc3=[_0x56f74c,_0x2af7f0(0x1b9)+(_0xca8b0e&&_0xca8b0e[_0x2af7f0(0x272)]?_0xca8b0e[_0x2af7f0(0x272)][_0x2af7f0(0x1d7)]('\x0a')[0x0]:_0xca8b0e),_0x2af7f0(0x1f4)+(_0x355510?'':_0x2af7f0(0x22f))+':',_0x19a519(0x18),_0x54e6da(),'='[_0x2af7f0(0x129)](_0x56f74c[_0x2af7f0(0x1e5)]-0x1)];_0x4e003c(_0x23fbc3['join']('\x0a'));}function _0x414713(_0xd53b1c){const _0x41710d=_0x39df;if(!_0x55c164())return;const _0x3dcbd5=String(_0xd53b1c&&_0xd53b1c['message']||_0xd53b1c||''),_0x177c1f=/already closed|environment is already|invalid read txn|reset an invalid/i[_0x41710d(0x28b)](_0x3dcbd5);_0x1de1a4(_0x177c1f?_0x41710d(0x19d):_0x41710d(0x21f),_0xd53b1c);if(process.env.OKDB_DIAG_SURVIVE==='1'&&_0x177c1f)return;try{console[_0x41710d(0x268)](_0xd53b1c&&_0xd53b1c[_0x41710d(0x272)]?_0xd53b1c[_0x41710d(0x272)]:_0xd53b1c);}catch{}process['exit'](0x1);}function _0x71956d(_0x125e08){const _0x18e8fa=_0x39df;if(!_0x55c164())return;const _0x441f5c=String(_0x125e08&&_0x125e08[_0x18e8fa(0x12b)]||_0x125e08||'');/already closed|environment is already|invalid read txn|reset an invalid/i['test'](_0x441f5c)&&_0x1de1a4(_0x18e8fa(0x2b6),_0x125e08);}function _0x54e6da(){const _0x1bd6a0=_0x39df,_0x2f1dec=[_0x1bd6a0(0x149)];let _0x31c533=![];for(const _0x34cbfc of _0xb0837d){const _0x164728=_0x34cbfc&&_0x34cbfc[_0x1bd6a0(0x32f)];if(!_0x164728)continue;for(const [_0x37b963,_0x2ba548]of _0x164728){const _0x590eed=_0x2ba548&&_0x2ba548[_0x1bd6a0(0x310)]&&_0x2ba548['_coordinator'][_0x1bd6a0(0x1d0)];if(!_0x590eed)continue;let _0x5069c9,_0x480d34;try{_0x5069c9=Atomics[_0x1bd6a0(0x19c)](_0x590eed,0x0),_0x480d34=Atomics[_0x1bd6a0(0x19c)](_0x590eed,0x1);}catch{continue;}if(_0x5069c9===0x0)continue;_0x31c533=!![];const _0x43c092=_0x5069c9>0x0?'SWAP':_0x1bd6a0(0x197),_0x3f9b22=Date[_0x1bd6a0(0x330)]()-Math[_0x1bd6a0(0x2d4)](_0x5069c9)*0x3e8,_0x44ca78=((()=>{const _0x3c1289=_0x1bd6a0;try{return _0x2ba548['_writer']&&_0x2ba548[_0x3c1289(0x1c1)][_0x3c1289(0x2ba)]?_0x2ba548[_0x3c1289(0x1c1)][_0x3c1289(0x2ba)]():null;}catch{return null;}})());_0x2f1dec['push']('\x20\x20env='+_0x37b963+_0x1bd6a0(0x32e)+_0x43c092+_0x1bd6a0(0x2c6)+_0x3f9b22+_0x1bd6a0(0x23e)+_0x480d34+(_0x44ca78?_0x1bd6a0(0x12a)+_0x44ca78[_0x1bd6a0(0x2d6)]+_0x1bd6a0(0x1c2)+_0x44ca78[_0x1bd6a0(0x1b7)]+_0x1bd6a0(0x269)+_0x44ca78[_0x1bd6a0(0x157)]+'}':''));}}if(!_0x31c533)_0x2f1dec[_0x1bd6a0(0x1b6)](_0x1bd6a0(0x1dd));return _0x2f1dec['join']('\x0a');}function _0x7be6e9(){const _0x1f07fe=_0x39df;if(!_0x55c164())return;const _0x4524ad=Math[_0x1f07fe(0x308)](0x3e8,Number(process.env.OKDB_DIAG_STALL_MS)||0x1f40),_0x712173=Date[_0x1f07fe(0x330)]();for(const _0x341642 of _0xb0837d){const _0x5db2f5=_0x341642&&_0x341642[_0x1f07fe(0x32f)];if(!_0x5db2f5)continue;for(const [_0x669ec,_0x2fd32f]of _0x5db2f5){const _0x2a5406=_0x2fd32f&&_0x2fd32f[_0x1f07fe(0x310)]&&_0x2fd32f['_coordinator'][_0x1f07fe(0x1d0)];if(!_0x2a5406)continue;let _0xa351d4;try{_0xa351d4=Atomics['load'](_0x2a5406,0x0);}catch{continue;}const _0x636599=_0x341642['path']+'|'+_0x669ec;if(_0xa351d4<=0x0){_0x3c57b8['delete'](_0x636599);continue;}const _0x2ccaa4=_0x712173-_0xa351d4*0x3e8,_0x45eb8e=_0x3c57b8[_0x1f07fe(0x13d)](_0x636599);if(_0x2ccaa4<_0x4524ad)continue;if(_0x45eb8e&&_0x712173-_0x45eb8e[_0x1f07fe(0x300)]<_0x4524ad)continue;_0x3c57b8[_0x1f07fe(0x248)](_0x636599,{'firstTs':_0x45eb8e?_0x45eb8e[_0x1f07fe(0x26f)]:_0xa351d4,'dumpedAt':_0x712173});const _0x4ffd81='\x0a===\x20OKDB_DIAG\x20STALL:\x20swap\x20drain\x20held\x20'+_0x2ccaa4+_0x1f07fe(0x144)+_0x669ec+'\x20@\x20'+new Date()[_0x1f07fe(0x1e8)]()+'\x20pid='+process[_0x1f07fe(0x2c5)]+_0x1f07fe(0x1c6);_0x4e003c([_0x4ffd81,_0x54e6da(),'='['repeat'](_0x4ffd81[_0x1f07fe(0x1e5)]-0x1)][_0x1f07fe(0x175)]('\x0a'));}}}function _0xb78cb6(){const _0x516b39=_0x39df;if(!_0x55c164()||_0x1fe615)return;_0x1fe615=!![],process[_0x516b39(0x2ff)](_0x516b39(0x21f),_0x414713),process[_0x516b39(0x2ff)]('unhandledRejection',_0x71956d);const _0x27d066=Math[_0x516b39(0x308)](0xfa,Number(process.env.OKDB_DIAG_WATCH_MS)||0x7d0);_0x49af10=setInterval(_0x7be6e9,_0x27d066);if(_0x49af10[_0x516b39(0x1f8)])_0x49af10[_0x516b39(0x1f8)]();}function _0x1b01c8(_0x325792){const _0x501825=_0x39df;if(!_0x55c164()||!_0x325792)return;_0xb0837d[_0x501825(0x2ea)](_0x325792),_0xb78cb6();}function _0x524632(_0x5d7786){const _0x32bd46=_0x39df;_0xb0837d[_0x32bd46(0x116)](_0x5d7786);}function _0x3b26c5(){if(!_0x55c164())return{'enabled':![],'hint':'set\x20OKDB_DIAG=1\x20(and\x20OKDB_DIAG_STACK=1\x20to\x20name\x20write\x20sites)'};return{'enabled':!![],'stackCapture':!!_0x355510,'recentWrites':_0x487b35(0x10),'drain':_0x54e6da()};}return okdbDiag={'isEnabled':_0x55c164,'recordWrite':_0x33a6d0,'installDiag':_0xb78cb6,'registerOkdb':_0x1b01c8,'unregisterOkdb':_0x524632,'snapshot':_0x3b26c5},okdbDiag;}var hasRequiredOkdbWriter;function requireOkdbWriter(){const _0x3ca037=_0x1d447a;if(hasRequiredOkdbWriter)return okdbWriter[_0x3ca037(0x12f)];hasRequiredOkdbWriter=0x1;const {performance:_0x25bcd1}=require$$0$2,_0x4062f3=requireOkdbDiag(),_0x1b43fe=process.env.OKDB_COMMIT_MODE==='sync';class _0x421d62{constructor(_0x200ae0){const _0x137999=_0x3ca037;this['env']=_0x200ae0,this['_inflight']=new Set(),this[_0x137999(0x1ef)]=new Map(),this[_0x137999(0x215)]=0x0,this['_durs']=[],this[_0x137999(0x183)]=[],this[_0x137999(0x315)]=Math[_0x137999(0x308)](0x0,Number(process.env.OKDB_WRITER_HIGH_WATER??0x400)),this[_0x137999(0x225)]=0x0,this[_0x137999(0x163)]=[],this[_0x137999(0x295)]=0x0;}async['transaction'](_0x3f57e0,_0x1b061d){const _0x368c90=_0x3ca037;if(_0x4062f3[_0x368c90(0x271)]())_0x4062f3[_0x368c90(0x28d)](this[_0x368c90(0x1a2)]?.[_0x368c90(0x256)],_0x1b061d);if(this[_0x368c90(0x123)]){const _0x42ceaa=new Error(_0x368c90(0x1df));_0x42ceaa[_0x368c90(0x23b)]='ENV_CLOSING_RETRY';throw _0x42ceaa;}if(this['_highWater']>0x0){let _0x52d55e=![];while(this[_0x368c90(0x225)]>=this[_0x368c90(0x315)]&&!this[_0x368c90(0x123)]){!_0x52d55e&&(_0x52d55e=!![],this['_bpParkedTotal']++),await new Promise(_0x255108=>this['_bpWaiters'][_0x368c90(0x1b6)](_0x255108));}if(this['_closed']){const _0x58a8d3=new Error(_0x368c90(0x1df));_0x58a8d3[_0x368c90(0x23b)]=_0x368c90(0x30b);throw _0x58a8d3;}}this[_0x368c90(0x225)]++;const _0x58991c=this['env']['_coordinator'];if(_0x58991c)await _0x58991c[_0x368c90(0x285)]();if(this['_closed']){if(_0x58991c)_0x58991c['afterWrite']();this[_0x368c90(0x225)]--;if(this['_bpWaiters'][_0x368c90(0x1e5)]&&this[_0x368c90(0x225)]<this[_0x368c90(0x315)])this[_0x368c90(0x163)][_0x368c90(0x2e1)]()();const _0x51e625=new Error(_0x368c90(0x1df));_0x51e625[_0x368c90(0x23b)]=_0x368c90(0x30b);throw _0x51e625;}const _0x34d9f5=_0x25bcd1[_0x368c90(0x330)]();if(_0x1b43fe)try{const _0xff24b2=this[_0x368c90(0x1a2)]['db'][_0x368c90(0x16e)](_0x3f57e0);this['_committed']++;if(this['_durs'][_0x368c90(0x1b6)](_0x25bcd1[_0x368c90(0x330)]()-_0x34d9f5)>0x100)this[_0x368c90(0x28e)][_0x368c90(0x2e1)]();if(this['_done'][_0x368c90(0x1b6)](_0x25bcd1[_0x368c90(0x330)]())>0x800)this[_0x368c90(0x183)][_0x368c90(0x2e1)]();return _0xff24b2;}finally{this[_0x368c90(0x225)]--;if(this[_0x368c90(0x163)][_0x368c90(0x1e5)]&&this['_outstanding']<this['_highWater'])this[_0x368c90(0x163)]['shift']()();if(_0x58991c)_0x58991c['afterWrite']();}const _0x8f067a=this[_0x368c90(0x1a2)]['db'][_0x368c90(0x31e)](_0x3f57e0);this[_0x368c90(0x2a8)][_0x368c90(0x2ea)](_0x8f067a),this[_0x368c90(0x1ef)]['set'](_0x8f067a,_0x34d9f5);const _0x7ab6fb=()=>{const _0xe78689=_0x368c90;this[_0xe78689(0x2a8)][_0xe78689(0x116)](_0x8f067a),this[_0xe78689(0x1ef)]['delete'](_0x8f067a),this[_0xe78689(0x215)]++,this[_0xe78689(0x225)]--;this[_0xe78689(0x163)][_0xe78689(0x1e5)]&&this['_outstanding']<this[_0xe78689(0x315)]&&this['_bpWaiters']['shift']()();if(this[_0xe78689(0x28e)][_0xe78689(0x1b6)](_0x25bcd1[_0xe78689(0x330)]()-_0x34d9f5)>0x100)this[_0xe78689(0x28e)][_0xe78689(0x2e1)]();if(this[_0xe78689(0x183)][_0xe78689(0x1b6)](_0x25bcd1[_0xe78689(0x330)]())>0x800)this[_0xe78689(0x183)][_0xe78689(0x2e1)]();};_0x8f067a['then'](_0x7ab6fb,_0x7ab6fb);try{return await _0x8f067a;}finally{if(_0x58991c)_0x58991c['afterWrite']();}}[_0x3ca037(0x2ba)](){const _0xfeb65b=_0x3ca037,_0x3d623b=_0x25bcd1[_0xfeb65b(0x330)]();let _0x4a756f=0x0;for(const _0x21af5a of this['_enqueuedAt'][_0xfeb65b(0x32d)]()){const _0x591fd1=_0x3d623b-_0x21af5a;if(_0x591fd1>_0x4a756f)_0x4a756f=_0x591fd1;}let _0x32734c=0x0;for(let _0xc3ed8e=this[_0xfeb65b(0x183)][_0xfeb65b(0x1e5)]-0x1;_0xc3ed8e>=0x0;_0xc3ed8e--){if(_0x3d623b-this[_0xfeb65b(0x183)][_0xc3ed8e]>0x3e8)break;_0x32734c++;}let _0x2b177=0x0;if(this['_durs']['length']){const _0xead554=[...this[_0xfeb65b(0x28e)]][_0xfeb65b(0x171)]((_0x2c884b,_0x58b92f)=>_0x2c884b-_0x58b92f);_0x2b177=_0xead554[Math[_0xfeb65b(0x2ab)](_0xead554[_0xfeb65b(0x1e5)]-0x1,Math[_0xfeb65b(0x1f7)](_0xead554[_0xfeb65b(0x1e5)]*0.99))];}return{'depth':this[_0xfeb65b(0x2a8)][_0xfeb65b(0x209)],'oldestPendingMs':Math['round'](_0x4a756f),'committed':this[_0xfeb65b(0x215)],'commitsPerSec':_0x32734c,'commitP99Ms':Math['round'](_0x2b177),'parkedNow':this[_0xfeb65b(0x163)][_0xfeb65b(0x1e5)],'parkedTotal':this[_0xfeb65b(0x295)],'highWater':this['_highWater']};}[_0x3ca037(0x173)](){const _0x387780=_0x3ca037,_0x30f149=_0x25bcd1[_0x387780(0x330)]();return[...this['_enqueuedAt'][_0x387780(0x32d)]()][_0x387780(0x2c0)](_0x292061=>Math[_0x387780(0x18e)](_0x30f149-_0x292061))[_0x387780(0x171)]((_0x20b173,_0xb4f25)=>_0xb4f25-_0x20b173);}[_0x3ca037(0x2f0)](){const _0x2f87bf=_0x3ca037;this[_0x2f87bf(0x123)]=!![];for(const _0x33f5c1 of this[_0x2f87bf(0x163)]['splice'](0x0))_0x33f5c1();}async['drain'](){const _0x2b8b95=_0x3ca037;let _0x44e9ec=0x0;while(this[_0x2b8b95(0x2a8)]['size']&&_0x44e9ec++<0x3e8){await Promise[_0x2b8b95(0x2f7)]([...this['_inflight']]);}}async[_0x3ca037(0x1e7)](_0x5f30bc,_0x5f05d1,_0x28f50b,_0x46bde6){const _0x2b9a1e=_0x3ca037;return this[_0x2b9a1e(0x170)](()=>{const _0x2c5240=_0x2b9a1e;if(_0x46bde6===undefined)_0x5f30bc[_0x2c5240(0x1ae)](_0x5f05d1,_0x28f50b);else _0x5f30bc[_0x2c5240(0x1ae)](_0x5f05d1,_0x28f50b,_0x46bde6);},_0x2b9a1e(0x277));}async['remove'](_0x4e34d4,_0x316c51){const _0x1babab=_0x3ca037;return this[_0x1babab(0x170)](()=>_0x4e34d4[_0x1babab(0x1e6)](_0x316c51),_0x1babab(0x2ac));}}async function _0x2491cd(_0x53f0f0,_0x3c7b97){const _0x389651=_0x3ca037;if(_0x3c7b97==null)_0x3c7b97=Math['max'](0x3e8,Number(process.env.OKDB_FLUSH_BEFORE_CLOSE_MS)||0x1d4c0);try{const _0x39729e=_0x53f0f0?.[_0x389651(0x147)];if(!_0x39729e||typeof _0x39729e[_0x389651(0x222)]!=='function')return;await Promise[_0x389651(0x1ab)]([Promise['resolve'](_0x39729e)[_0x389651(0x11f)](()=>{}),new Promise(_0x405084=>{const _0x52381c=_0x389651,_0x45ac6e=setTimeout(_0x405084,_0x3c7b97);if(_0x45ac6e[_0x52381c(0x1f8)])_0x45ac6e[_0x52381c(0x1f8)]();})]);}catch{}}function _0x45d985(_0x534b1a){const _0x370d40=_0x3ca037;if(_0x1b43fe)return Promise[_0x370d40(0x18f)]();const _0x43ee31=_0x534b1a?.[_0x370d40(0x319)];return _0x43ee31&&typeof _0x43ee31['then']===_0x370d40(0x211)?_0x43ee31:Promise[_0x370d40(0x18f)]();}return okdbWriter[_0x3ca037(0x12f)]=_0x421d62,okdbWriter[_0x3ca037(0x12f)][_0x3ca037(0x259)]=_0x2491cd,okdbWriter['exports'][_0x3ca037(0x319)]=_0x45d985,okdbWriter[_0x3ca037(0x12f)][_0x3ca037(0x1ba)]=_0x1b43fe,okdbWriter[_0x3ca037(0x12f)];}function _0x39df(_0x3e837d,_0x390f00){_0x3e837d=_0x3e837d-0x10d;const _0x44def8=_0x44de();let _0x39df7e=_0x44def8[_0x3e837d];return _0x39df7e;}var okdbLock,hasRequiredOkdbLock;function requireOkdbLock(){const _0x4d3431=_0x1d447a;if(hasRequiredOkdbLock)return okdbLock;hasRequiredOkdbLock=0x1;const _0x4efae8=require$$0$3,{SYNC_COMMITS:_0x2ca26b}=requireOkdbWriter(),_0x5656ae=_0x4d3431(0x1fc);class _0x5d7784{constructor(_0x4bdb72,_0x11070a,_0x7d42ea){const _0x5cf8f4=_0x4d3431;this[_0x5cf8f4(0x246)]=_0x4bdb72,this[_0x5cf8f4(0x2ae)]=_0x11070a,this[_0x5cf8f4(0x27e)]=_0x7d42ea,this['_released']=![],this['_heartbeatTimer']=null,this['_heartbeatInFlight']=null;}[_0x4d3431(0x1ce)](){const _0x3a807b=_0x4d3431;if(this[_0x3a807b(0x221)])return![];try{const _0x558d21=this[_0x3a807b(0x246)]['_db']()['get'](this[_0x3a807b(0x2ae)]);if(!_0x558d21||_0x558d21[_0x3a807b(0x289)]!==this[_0x3a807b(0x27e)])return![];const _0x5ce1c9=_0x558d21['updatedAt']??_0x558d21[_0x3a807b(0x289)];if(_0x5ce1c9+_0x558d21[_0x3a807b(0x200)]<Date[_0x3a807b(0x330)]())return![];return!![];}catch{return!this['_released'];}}['holder'](){const _0x26d7b4=_0x4d3431;if(this['_released'])return null;try{return this[_0x26d7b4(0x246)]['_db']()[_0x26d7b4(0x13d)](this['_key'])??null;}catch{return null;}}async[_0x4d3431(0x1de)](_0x2213e7){const _0x397148=_0x4d3431;if(this[_0x397148(0x221)])return;try{const _0x2768ae=this[_0x397148(0x246)][_0x397148(0x1ac)]()['get'](this[_0x397148(0x2ae)]);if(!_0x2768ae||_0x2768ae[_0x397148(0x289)]!==this[_0x397148(0x27e)])return;if(_0x2ca26b)this[_0x397148(0x246)][_0x397148(0x1ac)]()[_0x397148(0x1ae)](this['_key'],{..._0x2768ae,'ttlMs':_0x2768ae[_0x397148(0x200)]+_0x2213e7});else await this[_0x397148(0x246)]['_db']()[_0x397148(0x1e7)](this['_key'],{..._0x2768ae,'ttlMs':_0x2768ae[_0x397148(0x200)]+_0x2213e7});}catch{}}async[_0x4d3431(0x10e)](){const _0x294473=_0x4d3431;if(this[_0x294473(0x221)])return;if(this['_heartbeatInFlight'])try{await this[_0x294473(0x1d2)];}catch{}clearInterval(this[_0x294473(0x1ee)]),this[_0x294473(0x1ee)]=null,this[_0x294473(0x221)]=!![];try{const _0x274625=this['_lock']['_db']()[_0x294473(0x13d)](this[_0x294473(0x2ae)]);if(_0x274625&&_0x274625[_0x294473(0x289)]===this['_acquiredAt']){if(_0x2ca26b)this['_lock'][_0x294473(0x1ac)]()[_0x294473(0x1e6)](this['_key']);else await this[_0x294473(0x246)][_0x294473(0x1ac)]()['remove'](this[_0x294473(0x2ae)]);}}catch{}}[_0x4d3431(0x16f)](_0x46d719,_0x209c5f){const _0x5e0197=_0x4d3431,_0x4917e4=_0x209c5f??Math['floor'](_0x46d719/0x3);this[_0x5e0197(0x1ee)]=setInterval(()=>{const _0x12ceb6=_0x5e0197;if(this['_released'])return;this[_0x12ceb6(0x1d2)]=((async()=>{const _0x3f44c8=_0x12ceb6;try{const _0x4c759e=this[_0x3f44c8(0x246)][_0x3f44c8(0x1ac)]()[_0x3f44c8(0x13d)](this[_0x3f44c8(0x2ae)]);if(!_0x4c759e||_0x4c759e[_0x3f44c8(0x289)]!==this[_0x3f44c8(0x27e)]){this[_0x3f44c8(0x221)]=!![],clearInterval(this[_0x3f44c8(0x1ee)]),this['_heartbeatTimer']=null;return;}if(_0x2ca26b)this[_0x3f44c8(0x246)][_0x3f44c8(0x1ac)]()[_0x3f44c8(0x1ae)](this['_key'],{..._0x4c759e,'updatedAt':Date[_0x3f44c8(0x330)]()});else await this['_lock'][_0x3f44c8(0x1ac)]()[_0x3f44c8(0x1e7)](this[_0x3f44c8(0x2ae)],{..._0x4c759e,'updatedAt':Date['now']()});}catch{}this[_0x3f44c8(0x1d2)]=null;})());},_0x4917e4);if(this[_0x5e0197(0x1ee)][_0x5e0197(0x1f8)])this[_0x5e0197(0x1ee)][_0x5e0197(0x1f8)]();}}class _0x2f8681{constructor(_0x425d8c,{namespace:_0x2ee420,ttlMs:ttlMs=0x7530,heartbeatMs:heartbeatMs=null}={}){const _0x19f3b4=_0x4d3431;this['_rawDb']=_0x425d8c,this[_0x19f3b4(0x270)]=_0x2ee420,this['ttlMs']=ttlMs,this[_0x19f3b4(0x1a4)]=heartbeatMs,this[_0x19f3b4(0x2cd)]=null;}[_0x4d3431(0x1ac)](){const _0x17204e=_0x4d3431;return!this['_lockDb']&&(this['_lockDb']=this[_0x17204e(0x1c3)]['openDB'](_0x5656ae,{'dupSort':![]})),this[_0x17204e(0x2cd)];}['_wantDb'](){const _0x1b301e=_0x4d3431;return!this['_wantDbHandle']&&(this['_wantDbHandle']=this[_0x1b301e(0x1c3)][_0x1b301e(0x30f)](_0x5656ae+_0x1b301e(0x337),{'dupSort':![]})),this['_wantDbHandle'];}[_0x4d3431(0x2ae)](_0x2fdb69){const _0x34f945=_0x4d3431;return this[_0x34f945(0x270)]+':'+_0x2fdb69;}['signalWant'](_0x1d3ca0){const _0x473dd5=_0x4d3431;try{_0x2ca26b?this['_wantDb']()['putSync'](this[_0x473dd5(0x2ae)](_0x1d3ca0),Date[_0x473dd5(0x330)]()):this[_0x473dd5(0x1fb)]()[_0x473dd5(0x1e7)](this[_0x473dd5(0x2ae)](_0x1d3ca0),Date[_0x473dd5(0x330)]())?.[_0x473dd5(0x11f)]?.(()=>{});}catch{}}[_0x4d3431(0x1f9)](_0x559ca9,_0x5f23a6=0x3e8){const _0x56da91=_0x4d3431;try{const _0x542885=this['_wantDb']()[_0x56da91(0x13d)](this[_0x56da91(0x2ae)](_0x559ca9));return typeof _0x542885==='number'&&Date[_0x56da91(0x330)]()-_0x542885<_0x5f23a6;}catch{return![];}}['_isStale'](_0x4b50b2){const _0x52126a=_0x4d3431,_0x3a513f=_0x4b50b2['updatedAt']??_0x4b50b2[_0x52126a(0x289)];return _0x3a513f+_0x4b50b2[_0x52126a(0x200)]<Date[_0x52126a(0x330)]();}static['_holderDead'](_0x4476ea){const _0x892024=_0x4d3431,_0x36e882=_0x4476ea?.[_0x892024(0x2e8)];if(!_0x36e882||typeof _0x36e882[_0x892024(0x2c5)]!==_0x892024(0x304))return![];if(_0x36e882[_0x892024(0x320)]!==_0x4efae8['hostname']())return![];if(_0x36e882[_0x892024(0x2c5)]===process[_0x892024(0x2c5)])return![];try{return process[_0x892024(0x2f1)](_0x36e882[_0x892024(0x2c5)],0x0),![];}catch(_0x4cd96c){return _0x4cd96c[_0x892024(0x23b)]===_0x892024(0x279);}}async['tryAcquire'](_0x247bd2,_0xea35aa={},_0x436f4a={}){const _0x11c7f5=_0x4d3431,_0xf611b5=this['_key'](_0x247bd2),_0x380ae5=_0x436f4a['ttlMs']??this[_0x11c7f5(0x200)],_0x51aab4=Date[_0x11c7f5(0x330)](),_0x1b6811={'holder':{'pid':process[_0x11c7f5(0x2c5)],'hostname':_0x4efae8[_0x11c7f5(0x320)](),..._0xea35aa},'acquiredAt':_0x51aab4,'updatedAt':_0x51aab4,'ttlMs':_0x380ae5};let _0x3ff87e=![],_0x499a6a=null;try{const _0x13e961=()=>{const _0x35a0d3=_0x11c7f5,_0x136f5a=this[_0x35a0d3(0x1ac)]()['get'](_0xf611b5);if(_0x136f5a&&!this[_0x35a0d3(0x261)](_0x136f5a)&&!_0x2f8681[_0x35a0d3(0x280)](_0x136f5a)){const _0x552aef=_0xea35aa['processorId']!=null&&_0x136f5a['holder'][_0x35a0d3(0x2c5)]===process[_0x35a0d3(0x2c5)]&&_0x136f5a['holder'][_0x35a0d3(0x1e3)]===_0xea35aa[_0x35a0d3(0x1e3)];if(!_0x552aef){_0x3ff87e=![],_0x499a6a=_0x136f5a;return;}_0x1b6811['acquiredAt']<=_0x136f5a['acquiredAt']&&(_0x1b6811[_0x35a0d3(0x289)]=_0x136f5a[_0x35a0d3(0x289)]+0x1,_0x1b6811[_0x35a0d3(0x316)]=_0x1b6811[_0x35a0d3(0x289)]);}this[_0x35a0d3(0x1ac)]()[_0x35a0d3(0x1e7)](_0xf611b5,_0x1b6811),_0x3ff87e=!![],_0x499a6a=_0x1b6811;};if(_0x2ca26b)this[_0x11c7f5(0x1ac)]()[_0x11c7f5(0x16e)](_0x13e961);else await this['_db']()[_0x11c7f5(0x31e)](_0x13e961);}catch{return{'acquired':![],'handle':null,'current':null};}if(!_0x3ff87e)return{'acquired':![],'handle':null,'current':_0x499a6a};const _0x223b78=new _0x5d7784(this,_0xf611b5,_0x1b6811[_0x11c7f5(0x289)]);return _0x223b78[_0x11c7f5(0x16f)](_0x380ae5,this[_0x11c7f5(0x1a4)]),{'acquired':!![],'handle':_0x223b78,'current':_0x499a6a};}[_0x4d3431(0x2fa)](_0x526ae7){const _0x40aa0d=_0x4d3431;try{return this[_0x40aa0d(0x1ac)]()[_0x40aa0d(0x13d)](this[_0x40aa0d(0x2ae)](_0x526ae7))??null;}catch{return null;}}[_0x4d3431(0x28c)](){const _0x217e6f=_0x4d3431,_0x52f669=this[_0x217e6f(0x270)]+':',_0x5e3f6f=[];try{for(const {key:_0x277de6,value:_0x2cf1f2}of this['_db']()[_0x217e6f(0x165)]({'start':_0x52f669,'end':_0x52f669+'\xff'})){typeof _0x277de6===_0x217e6f(0x12c)&&_0x277de6[_0x217e6f(0x210)](_0x52f669)&&_0x5e3f6f[_0x217e6f(0x1b6)]({'id':_0x277de6[_0x217e6f(0x12d)](_0x52f669[_0x217e6f(0x1e5)]),'entry':_0x2cf1f2});}}catch{}return _0x5e3f6f;}static[_0x4d3431(0x31c)](_0x765420){const _0x1db7f7=_0x4d3431,_0x371a74=[];try{const _0x9b6be3=_0x765420['openDB'](_0x5656ae,{'dupSort':![]});for(const {key:_0x123215,value:_0x42639e}of _0x9b6be3[_0x1db7f7(0x165)]({})){if(typeof _0x123215!=='string')continue;const _0x1b30a6=_0x123215['indexOf'](':');if(_0x1b30a6<0x1)continue;_0x371a74[_0x1db7f7(0x1b6)]({'namespace':_0x123215[_0x1db7f7(0x12d)](0x0,_0x1b30a6),'id':_0x123215[_0x1db7f7(0x12d)](_0x1b30a6+0x1),'entry':_0x42639e});}}catch{}return _0x371a74;}}return okdbLock={'OKDBLock':_0x2f8681},okdbLock;}var version=_0x1d447a(0x2cc),require$$6={'version':version},okdbProcessRegistry,hasRequiredOkdbProcessRegistry;function requireOkdbProcessRegistry(){const _0x30fb52=_0x1d447a;if(hasRequiredOkdbProcessRegistry)return okdbProcessRegistry;hasRequiredOkdbProcessRegistry=0x1;const _0x44cbf8=require$$0$3,_0x2b0db5=require$$1$1,_0x5bf850=require$$2,{LOOP:_0x342044}=requireOkdbLoopMonitor(),{OKDBLock:_0x2ea6cc}=requireOkdbLock(),{SYNC_COMMITS:_0x1a9718}=requireOkdbWriter(),_0x15390f=_0x30fb52(0x1e4),_0x389b5b=_0x30fb52(0x1d3),_0x51b9fa=_0x30fb52(0x187),_0x33da17=_0x30fb52(0x2a9),_0x1371d8=(_0x3c9714,_0x303bd0)=>_0x3c9714+':'+_0x303bd0,_0xd01e71=(_0x5c76cb,_0x1efad1)=>_0x5c76cb+'::'+_0x1efad1,_0x13a6dd=(_0x5ec90e,_0x41ef15)=>_0x5ec90e+'/'+_0x41ef15,_0x587fa0=(_0x11a68a,_0x13a6fd)=>_0x11a68a+'#'+_0x13a6fd,_0x327e98=_0x2460ac=>{const _0x229194=_0x30fb52;if(_0x2460ac?.[_0x229194(0x254)])return _0x2460ac[_0x229194(0x254)];const _0x1dac39=_0x2460ac?.[_0x229194(0x2bd)];return typeof _0x1dac39===_0x229194(0x12c)&&_0x1dac39[_0x229194(0x250)]('#')?_0x1dac39['slice'](0x0,_0x1dac39[_0x229194(0x10f)]('#')):_0x1dac39;},_0x3fb8ea=Number(process.env.OKDB_WORKERS_HEARTBEAT_MS)||0x2710,_0x27d9a3=Number(process.env.OKDB_WORKERS_PUBLISH_MS)||0x3e8,_0xbb41e6=_0x3fb8ea*0x3,_0x1869b5=Number(process.env.OKDB_PID_REUSE_HORIZON_MS)||Math[_0x30fb52(0x308)](0x927c0,_0xbb41e6*0x14),_0x53ea89=[_0x30fb52(0x127),_0x30fb52(0x278),_0x30fb52(0x214),_0x30fb52(0x331),_0x30fb52(0x2e5),_0x30fb52(0x1f2)];let _0x343910=null;function _0x340f90(){const _0x58b5f5=_0x30fb52;if(_0x343910==null)_0x343910=Math[_0x58b5f5(0x18e)]((Date[_0x58b5f5(0x330)]()-process[_0x58b5f5(0x1fe)]()*0x3e8)/0x3e8)*0x3e8;return _0x343910;}function _0x40fbb8(_0x2b34a6){const _0x127a67=_0x30fb52;if(process.env.OKDB_PROCESS_KILL===_0x127a67(0x151))return![];if(_0x2b34a6?.['options']?.['processes']&&typeof _0x2b34a6['options'][_0x127a67(0x23f)]===_0x127a67(0x2af)&&_0x2b34a6['options'][_0x127a67(0x23f)][_0x127a67(0x2f1)]===![])return![];return!![];}function _0x577e06(_0x293669,_0x2edf05){const _0x5a8d70=_0x30fb52,_0x1e9f22=!!_0x2edf05?.[_0x5a8d70(0x1a0)];switch(_0x293669){case _0x5a8d70(0x2a5):return{'controllable':_0x1e9f22,'decommissionable':![],'killable':!![],'killConfirm':_0x5a8d70(0x17e)};case'cli':case _0x5a8d70(0x2b7):return{'controllable':_0x1e9f22,'decommissionable':![],'killable':!![],'killConfirm':'confirm'};case _0x5a8d70(0x324):return{'controllable':![],'decommissionable':![],'killable':![]};case'http-server':case _0x5a8d70(0x29e):case _0x5a8d70(0x19b):case _0x5a8d70(0x229):return{'controllable':![],'decommissionable':!![],'killable':!![],'killConfirm':'force'};default:return{'controllable':![],'decommissionable':![],'killable':![]};}}class _0x7a12dc{constructor(_0x2f082a){const _0x4c4e57=_0x30fb52;this[_0x4c4e57(0x2fd)]=_0x2f082a,this[_0x4c4e57(0x2bf)]=null,this[_0x4c4e57(0x25d)]=null,this[_0x4c4e57(0x2db)]=new Map(),this[_0x4c4e57(0x262)]=null,this[_0x4c4e57(0x249)]=![],this[_0x4c4e57(0x2a2)]=![],this[_0x4c4e57(0x1b8)]=_0x340f90(),this[_0x4c4e57(0x305)]=_0x1371d8(process['pid'],this[_0x4c4e57(0x1b8)]),this[_0x4c4e57(0x329)]=_0x5bf850[_0x4c4e57(0x174)]()[_0x4c4e57(0x12d)](0x0,0x8),this['_rowKey']=_0x587fa0(this[_0x4c4e57(0x305)],this[_0x4c4e57(0x329)]),this['_startedAt']=Date['now'](),this['_kind']=null,this[_0x4c4e57(0x318)]=null,this[_0x4c4e57(0x2aa)]=null,this[_0x4c4e57(0x196)]=null,this['_onProcEvent']=null,this[_0x4c4e57(0x13e)]=null,this[_0x4c4e57(0x20e)]=0x0,this[_0x4c4e57(0x195)]={},this[_0x4c4e57(0x335)]=new Map(),this[_0x4c4e57(0x2d5)]=process[_0x4c4e57(0x1d5)](),this[_0x4c4e57(0x242)]=Date[_0x4c4e57(0x330)](),this[_0x4c4e57(0x136)]=0x0,this[_0x4c4e57(0x31a)]=new Map();}get[_0x30fb52(0x1fd)](){const _0x5cb012=_0x30fb52;return this[_0x5cb012(0x305)];}get[_0x30fb52(0x334)](){const _0x5ce58f=_0x30fb52;return this[_0x5ce58f(0x198)];}[_0x30fb52(0x258)](_0x29a3db,_0x2f400c){const _0x57d2ab=_0x30fb52,_0x4eca7f=_0x577e06(_0x29a3db,_0x2f400c);if(_0x4eca7f[_0x57d2ab(0x1ca)]&&!_0x40fbb8(this[_0x57d2ab(0x2fd)]))return{..._0x4eca7f,'killable':![],'killConfirm':undefined};return _0x4eca7f;}[_0x30fb52(0x26c)](){const _0x31f010=_0x30fb52;return!!this[_0x31f010(0x2bf)];}[_0x30fb52(0x286)](_0x1901b6){Object['assign'](this['_ownMeta'],_0x1901b6||{});}[_0x30fb52(0x1bc)](_0x4c9a7){const _0x14b319=_0x30fb52;if(_0x4c9a7)this[_0x14b319(0x2aa)]=_0x4c9a7;}[_0x30fb52(0x21b)](_0x3617ac={}){const _0x2a9004=_0x30fb52;return this[_0x2a9004(0x2fd)][_0x2a9004(0x11b)](_0x3617ac);}[_0x30fb52(0x29b)](){const _0x5258d0=_0x30fb52,_0x236c70={};let _0x51c999=0x0,_0x477db2=0x0;const _0x4a22cd=new Set();for(const _0x1abb96 of this[_0x5258d0(0x219)]()){_0x477db2++;const _0x5d4af6=_0x1abb96[_0x5258d0(0x1fa)];if(!_0x5d4af6)continue;if(_0x5d4af6[_0x5258d0(0x2ee)])_0x51c999++;for(const _0x2502c0 of _0x5d4af6[_0x5258d0(0x1a0)]||[]){if(![_0x5258d0(0x2da),'fanout'][_0x5258d0(0x250)](_0x2502c0[_0x5258d0(0x176)]))continue;(_0x2502c0[_0x5258d0(0x20d)]===_0x5258d0(0x2c7)||_0x2502c0[_0x5258d0(0x20d)]===_0x5258d0(0x194))&&_0x2502c0[_0x5258d0(0x25a)]&&_0x4a22cd[_0x5258d0(0x2ea)]((_0x2502c0[_0x5258d0(0x1a2)]||_0x5258d0(0x206))+':'+_0x2502c0[_0x5258d0(0x25a)]);const _0x29aa9b=_0x2502c0[_0x5258d0(0x1a2)]||_0x5258d0(0x206);(_0x236c70[_0x29aa9b]||=[])[_0x5258d0(0x1b6)]({..._0x2502c0,'env':_0x29aa9b,'owner':{'pid':_0x1abb96[_0x5258d0(0x2c5)]??null,'kind':_0x1abb96[_0x5258d0(0x313)]??null}});}}for(const [_0x13610f,_0x287163]of Object[_0x5258d0(0x27d)](_0x236c70)){for(const _0x14c59b of _0x287163){if(_0x14c59b['mode']==='single'&&!_0x14c59b['claimGated']){const _0x9ed93=_0x13610f+':'+(_0x14c59b[_0x5258d0(0x25a)]??'');if(!_0x4a22cd[_0x5258d0(0x2e7)](_0x9ed93))_0x14c59b[_0x5258d0(0x182)]=!![];}}}return{'envs':_0x236c70,'policy':null,'participation':{'participating':_0x51c999,'total':_0x477db2},'source':'workers'};}[_0x30fb52(0x25b)](){const _0x24304b=_0x30fb52,_0x3b416c=_0x4bc6cf=>{const _0x11e735=_0x39df;if(_0x4bc6cf['state']==='online'||_0x4bc6cf[_0x11e735(0x20d)]==='building'||_0x4bc6cf[_0x11e735(0x20d)]===_0x11e735(0x268))return 0x3;if(_0x4bc6cf['claimGated'])return 0x1;return 0x2;},_0x4bbccd=new Map();for(const _0x3b9d0e of this[_0x24304b(0x219)]()){for(const _0x430198 of _0x3b9d0e[_0x24304b(0x1fa)]?.[_0x24304b(0x1a0)]||[]){const _0xdbcdd9={..._0x430198,'owner':{'pid':_0x3b9d0e[_0x24304b(0x2c5)]??null,'kind':_0x3b9d0e[_0x24304b(0x313)]??null,'host':_0x3b9d0e[_0x24304b(0x156)]??null}},_0x3075ee=_0x430198[_0x24304b(0x176)]===_0x24304b(0x2da)?_0x24304b(0x16b)+(_0x430198['env']??'')+'::'+(_0x430198[_0x24304b(0x25a)]??_0x430198['type']??_0x430198['id']):_0x24304b(0x29a)+(_0x3b9d0e[_0x24304b(0x2bd)]??_0x3b9d0e[_0x24304b(0x254)]??'')+'::'+(_0x430198['env']??'')+'::'+_0x430198['id'],_0x2aaafc=_0x4bbccd['get'](_0x3075ee);if(!_0x2aaafc||_0x3b416c(_0xdbcdd9)>_0x3b416c(_0x2aaafc))_0x4bbccd[_0x24304b(0x248)](_0x3075ee,_0xdbcdd9);}}return[..._0x4bbccd[_0x24304b(0x32d)]()];}[_0x30fb52(0x2a4)](){const _0x3228c2=_0x30fb52,_0x1f061c=Date['now'](),_0xcaeae8=this[_0x3228c2(0x219)](),_0xc712c0=_0x351da4=>Math[_0x3228c2(0x308)](0x0,Math[_0x3228c2(0x18e)]((_0x1f061c-(_0x351da4[_0x3228c2(0x297)]||_0x1f061c))/0x3e8)),_0xef8e47=_0xcaeae8['find'](_0x24daca=>_0x24daca[_0x3228c2(0x313)]===_0x3228c2(0x2a5)),_0x309d35=_0xcaeae8[_0x3228c2(0x16d)](_0x4f06a4=>_0x4f06a4['kind']===_0x3228c2(0x15e));if(_0xef8e47||_0x309d35['length'])return{'primary':_0xef8e47?{'pid':_0xef8e47[_0x3228c2(0x2c5)],'uptime':_0xc712c0(_0xef8e47)}:null,'workers':_0x309d35[_0x3228c2(0x2c0)](_0x4e6e7c=>({'pid':_0x4e6e7c[_0x3228c2(0x2c5)],'uptime':_0xc712c0(_0x4e6e7c)})),'workersConfigured':_0xef8e47?.['meta']?.[_0x3228c2(0x235)]??_0x309d35[_0x3228c2(0x1e5)],'mode':_0x3228c2(0x2eb)};const _0x2bf245=_0xcaeae8[_0x3228c2(0x1e0)](_0x2368cc=>_0x2368cc['kind']===_0x3228c2(0x18b)||_0x2368cc[_0x3228c2(0x313)]==='standalone'||_0x2368cc[_0x3228c2(0x313)]===_0x3228c2(0x324)),_0x4f61be=_0x2bf245?{'pid':_0x2bf245['pid'],'uptime':_0xc712c0(_0x2bf245)}:{'pid':process[_0x3228c2(0x2c5)],'uptime':Math[_0x3228c2(0x308)](0x0,Math[_0x3228c2(0x18e)](process[_0x3228c2(0x1fe)]()))};return{'primary':_0x4f61be,'workers':[_0x4f61be],'workersConfigured':0x1,'mode':_0x3228c2(0x2da)};}[_0x30fb52(0x240)](){const _0x2ebb9b=_0x30fb52;return this[_0x2ebb9b(0x114)]();}[_0x30fb52(0x15b)](){const _0x242c5a=_0x30fb52,_0x46aa6d=new Map();for(const _0x219db3 of this['_groupByProcess']())_0x46aa6d[_0x242c5a(0x248)](_0x219db3[_0x242c5a(0x254)],{..._0x219db3,'children':[]});const _0xab267c=[];for(const _0x2a8909 of _0x46aa6d['values']()){const _0x580f94=_0x2a8909['supervisorKey']?_0x46aa6d[_0x242c5a(0x13d)](_0x2a8909[_0x242c5a(0x263)]):null;if(_0x580f94&&_0x580f94!==_0x2a8909)_0x580f94[_0x242c5a(0x17c)][_0x242c5a(0x1b6)](_0x2a8909);else _0xab267c[_0x242c5a(0x1b6)](_0x2a8909);}const _0x413f92=(_0x1c110b,_0x2c985b)=>_0x1c110b['kind']===_0x2c985b[_0x242c5a(0x313)]?(_0x1c110b[_0x242c5a(0x2c5)]||0x0)-(_0x2c985b['pid']||0x0):(_0x1c110b[_0x242c5a(0x313)]??'')<(_0x2c985b[_0x242c5a(0x313)]??'')?-0x1:0x1,_0x506085=_0x1d5962=>{const _0xaa1103=_0x242c5a;_0x1d5962[_0xaa1103(0x171)](_0x413f92);for(const _0x809dfc of _0x1d5962)if(_0x809dfc[_0xaa1103(0x17c)][_0xaa1103(0x1e5)])_0x506085(_0x809dfc['children']);};return _0x506085(_0xab267c),_0xab267c;}['getProcess'](_0x7bf349){const _0x51dd2e=_0x30fb52;return this[_0x51dd2e(0x114)]()[_0x51dd2e(0x1e0)](_0x4a8cf7=>_0x4a8cf7[_0x51dd2e(0x254)]===_0x7bf349)??null;}[_0x30fb52(0x114)](_0x2bc349=Date[_0x30fb52(0x330)]()){const _0x3870f1=_0x30fb52,_0x1f8087=new Map();for(const _0x2bcf9a of this['listNodes']()){const _0x147c4e=_0x327e98(_0x2bcf9a);let _0x1b9264=_0x1f8087[_0x3870f1(0x13d)](_0x147c4e);!_0x1b9264&&(_0x1b9264={'processKey':_0x147c4e,'nodeKey':_0x147c4e,'pid':_0x2bcf9a[_0x3870f1(0x2c5)],'ppid':_0x2bcf9a[_0x3870f1(0x2c1)]??null,'host':_0x2bcf9a[_0x3870f1(0x156)]??null,'kind':_0x2bcf9a[_0x3870f1(0x313)],'role':null,'supervisorKey':_0x2bcf9a[_0x3870f1(0x263)]??null,'slot':_0x2bcf9a[_0x3870f1(0x2b8)]??null,'slotKey':_0x2bcf9a[_0x3870f1(0x122)]??null,'caps':_0x2bcf9a[_0x3870f1(0x205)]??null,'lifecycle':_0x2bcf9a[_0x3870f1(0x204)]??null,'uptime':Math[_0x3870f1(0x308)](0x0,Math[_0x3870f1(0x18e)]((_0x2bc349-(_0x2bcf9a[_0x3870f1(0x297)]||_0x2bc349))/0x3e8)),'startedAt':_0x2bcf9a['startedAt']??null,'meta':_0x2bcf9a[_0x3870f1(0x27c)]??null,'listenAddr':null,'processing':null,'engines':null,'singletonClaims':null,'stats':null,'instances':[]},_0x1f8087['set'](_0x147c4e,_0x1b9264));_0x1b9264['instances'][_0x3870f1(0x1b6)]({'instanceId':_0x2bcf9a['instanceId']??null,'role':_0x2bcf9a['role']??null,'listenAddr':_0x2bcf9a[_0x3870f1(0x143)]??null,'lifecycle':_0x2bcf9a[_0x3870f1(0x204)]??null,'processing':_0x2bcf9a[_0x3870f1(0x1fa)]??null});if(!_0x1b9264['role']&&_0x2bcf9a[_0x3870f1(0x25e)])_0x1b9264[_0x3870f1(0x25e)]=_0x2bcf9a[_0x3870f1(0x25e)];if(!_0x1b9264[_0x3870f1(0x143)]&&_0x2bcf9a[_0x3870f1(0x143)])_0x1b9264[_0x3870f1(0x143)]=_0x2bcf9a['listenAddr'];if(!_0x1b9264[_0x3870f1(0x1fa)]&&_0x2bcf9a['processing'])_0x1b9264['processing']=_0x2bcf9a[_0x3870f1(0x1fa)];if(!_0x1b9264[_0x3870f1(0x291)]&&_0x2bcf9a[_0x3870f1(0x291)])_0x1b9264[_0x3870f1(0x291)]=_0x2bcf9a[_0x3870f1(0x291)];if(!_0x1b9264[_0x3870f1(0x267)]&&_0x2bcf9a[_0x3870f1(0x267)])_0x1b9264[_0x3870f1(0x267)]=_0x2bcf9a[_0x3870f1(0x267)];if(_0x1b9264['caps']==null&&_0x2bcf9a['caps'])_0x1b9264[_0x3870f1(0x205)]=_0x2bcf9a[_0x3870f1(0x205)];if(_0x2bcf9a[_0x3870f1(0x1eb)]&&(!_0x1b9264[_0x3870f1(0x1eb)]||(_0x2bcf9a[_0x3870f1(0x1eb)]['at']??0x0)>(_0x1b9264[_0x3870f1(0x1eb)]['at']??0x0)))_0x1b9264[_0x3870f1(0x1eb)]=_0x2bcf9a[_0x3870f1(0x1eb)];}return[..._0x1f8087[_0x3870f1(0x32d)]()];}['runtimeProcessesView'](){const _0x3583cb=_0x30fb52,_0x271300=[],_0x5245ad={'rss':0x0,'heapUsed':0x0,'processes':0x0,'threads':{'count':0x0,'sandbox':0x0,'busy':0x0}};for(const _0x273917 of this['_groupByProcess']()){_0x271300['push']({'processKey':_0x273917[_0x3583cb(0x254)],'kind':_0x273917[_0x3583cb(0x313)],'pid':_0x273917[_0x3583cb(0x2c5)],'supervisorKey':_0x273917[_0x3583cb(0x263)],'meta':_0x273917[_0x3583cb(0x27c)]??null,'uptime':_0x273917[_0x3583cb(0x1fe)],'stats':_0x273917['stats']??null}),_0x5245ad[_0x3583cb(0x23f)]++;if(_0x273917[_0x3583cb(0x1eb)]){_0x5245ad[_0x3583cb(0x1be)]+=_0x273917[_0x3583cb(0x1eb)]['rss']||0x0,_0x5245ad[_0x3583cb(0x21e)]+=(_0x273917['stats'][_0x3583cb(0x21e)]||0x0)+(_0x273917['stats']['threads']?.[_0x3583cb(0x21e)]||0x0);const _0x4df2c8=_0x273917[_0x3583cb(0x1eb)][_0x3583cb(0x231)];_0x4df2c8&&(_0x5245ad['threads'][_0x3583cb(0x288)]+=_0x4df2c8[_0x3583cb(0x288)]||0x0,_0x5245ad[_0x3583cb(0x231)]['sandbox']+=_0x4df2c8[_0x3583cb(0x16c)]||0x0,_0x5245ad[_0x3583cb(0x231)]['busy']+=_0x4df2c8['busy']||0x0);}}return{'totals':_0x5245ad,'nodes':_0x271300};}async[_0x30fb52(0x139)]({writer:writer=![],reader:reader=![],kind:kind=null,supervisorKey:supervisorKey=null,listenAddr:listenAddr=null}={}){const _0x32e104=_0x30fb52;this['_isWriter']=this[_0x32e104(0x249)]||!!writer,this[_0x32e104(0x2a2)]=this[_0x32e104(0x2a2)]||!!reader,this[_0x32e104(0x131)]=kind||this['_kind']||(_0x2b0db5[_0x32e104(0x298)]?_0x32e104(0x15e):'cli'),this[_0x32e104(0x318)]=supervisorKey??this[_0x32e104(0x318)],this[_0x32e104(0x2aa)]=listenAddr??this[_0x32e104(0x2aa)],this[_0x32e104(0x1bd)](),await this[_0x32e104(0x1cf)]();if(!writer&&!reader)return null;if(!this[_0x32e104(0x2bf)]){const _0x377804=await this['okdb'][_0x32e104(0x314)](_0x15390f,{'sync':![],'durability':_0x32e104(0x135)});if(!_0x377804[_0x32e104(0x150)](_0x389b5b))await _0x377804[_0x32e104(0x239)](_0x389b5b);this[_0x32e104(0x2bf)]=_0x377804;}return this[_0x32e104(0x2bf)];}[_0x30fb52(0x241)](){const _0x3e81a0=_0x30fb52;return this[_0x3e81a0(0x1c9)]!==this[_0x3e81a0(0x2bf)]&&(this[_0x3e81a0(0x1c9)]=this['_statusEnv'],this['_nodeDbCache']=this[_0x3e81a0(0x2bf)]['_getType'](_0x389b5b)[_0x3e81a0(0x1b4)]),this['_nodeDbCache'];}['_putRowAsync'](_0x30b57e){const _0x158331=_0x30fb52;if(_0x1a9718)return this[_0x158331(0x241)]()[_0x158331(0x1ae)](_0x30b57e['nodeKey'],_0x30b57e,0x1);const _0x2e3ee2=this[_0x158331(0x241)]()[_0x158331(0x1e7)](_0x30b57e[_0x158331(0x2bd)],_0x30b57e,0x1);if(_0x2e3ee2&&typeof _0x2e3ee2['then']==='function')_0x2e3ee2['then'](undefined,()=>{});return _0x2e3ee2;}[_0x30fb52(0x1a1)](_0x180f4e){const _0x43afdd=_0x30fb52;return this[_0x43afdd(0x241)]()[_0x43afdd(0x1ae)](_0x180f4e[_0x43afdd(0x2bd)],_0x180f4e,0x1);}[_0x30fb52(0x2d2)](_0xa8a4a3){const _0x127f18=_0x30fb52;if(_0x1a9718)try{return this[_0x127f18(0x241)]()[_0x127f18(0x1e6)](_0xa8a4a3);}catch{return![];}const _0x12893f=this[_0x127f18(0x241)]()[_0x127f18(0x293)](_0xa8a4a3);if(_0x12893f&&typeof _0x12893f[_0x127f18(0x222)]===_0x127f18(0x211))_0x12893f['then'](undefined,()=>{});return _0x12893f;}async[_0x30fb52(0x2bb)](_0x3d9ec2){const _0x4216a6=_0x30fb52;if(!this['_statusEnv']||!this[_0x4216a6(0x249)]||!_0x3d9ec2?.[_0x4216a6(0x2bd)])return;return this['_putRowAsync'](_0x3d9ec2);}async[_0x30fb52(0x158)](_0x35c6be){const _0x1919e5=_0x30fb52;if(!this[_0x1919e5(0x2bf)]||!this[_0x1919e5(0x249)]||!_0x35c6be)return;const _0x42499e=_0x35c6be[_0x1919e5(0x250)]('#'),_0x3ee4a5=[];for(const {key:_0x16580c}of this[_0x1919e5(0x2bf)][_0x1919e5(0x165)](_0x389b5b)){if(_0x16580c===_0x35c6be||!_0x42499e&&typeof _0x16580c===_0x1919e5(0x12c)&&_0x16580c[_0x1919e5(0x210)](_0x35c6be+'#'))_0x3ee4a5[_0x1919e5(0x1b6)](_0x16580c);}for(const _0x42410c of _0x3ee4a5){try{this['_nodeDb']()['removeSync'](_0x42410c);}catch{}}}[_0x30fb52(0x120)](_0x1516a3){const _0x36de79=_0x30fb52;if(typeof _0x1516a3?.[_0x36de79(0x2c5)]!==_0x36de79(0x304))return![];if(_0x1516a3[_0x36de79(0x156)]!==_0x44cbf8[_0x36de79(0x320)]())return![];if(_0x1516a3[_0x36de79(0x2c5)]===process['pid'])return![];if(_0x1516a3['expiresAt']!=null&&_0x1516a3['expiresAt']<Date[_0x36de79(0x330)]()-_0x1869b5)return!![];try{return process['kill'](_0x1516a3['pid'],0x0),![];}catch(_0x30c837){return _0x30c837[_0x36de79(0x23b)]===_0x36de79(0x279);}}[_0x30fb52(0x219)](){const _0x2e6244=_0x30fb52;if(!this[_0x2e6244(0x2bf)])return[];try{this[_0x2e6244(0x2bf)]['db']?.[_0x2e6244(0x281)]?.();}catch{}const _0x334652=Date[_0x2e6244(0x330)](),_0x52d4bf=_0x44cbf8[_0x2e6244(0x320)](),_0x4887d5=[];for(const {value:_0x2cfebf}of this[_0x2e6244(0x2bf)][_0x2e6244(0x165)](_0x389b5b)){if(!_0x2cfebf)continue;let _0x4b3349=null;_0x2cfebf['host']===_0x52d4bf&&typeof _0x2cfebf[_0x2e6244(0x2c5)]===_0x2e6244(0x304)&&(_0x4b3349=!this[_0x2e6244(0x120)](_0x2cfebf));if(_0x4b3349===![])continue;const _0x597be8=_0x2cfebf['expiresAt']==null||_0x2cfebf['expiresAt']>=_0x334652;if(_0x4b3349===!![]||_0x597be8)_0x4887d5['push'](_0x2cfebf);}return _0x4887d5;}async[_0x30fb52(0x2ed)](_0x382c2d=0x0){const _0x336b53=_0x30fb52;if(!this[_0x336b53(0x2bf)]||!this[_0x336b53(0x249)])return;const _0xe59f8a=Date[_0x336b53(0x330)]()-_0x382c2d,_0x3f28ef=new Set(),_0xdd0eab=[],_0x2e96da=_0x44cbf8[_0x336b53(0x320)](),_0x51bd22=require$$6[_0x336b53(0x234)];for(const {key:_0x36a968,value:_0x345f59}of this[_0x336b53(0x2bf)][_0x336b53(0x165)](_0x389b5b)){if(!_0x345f59)continue;const _0x4780bf=_0x345f59[_0x336b53(0x156)]===_0x2e96da&&typeof _0x345f59[_0x336b53(0x2c5)]===_0x336b53(0x304),_0x5f1cb3=_0x4780bf?this[_0x336b53(0x120)](_0x345f59):_0x345f59[_0x336b53(0x26e)]!=null&&_0x345f59[_0x336b53(0x26e)]<_0xe59f8a;if(_0x5f1cb3)_0xdd0eab[_0x336b53(0x1b6)](_0x36a968);else{_0x3f28ef[_0x336b53(0x2ea)](_0x327e98(_0x345f59)??_0x36a968);if(_0x345f59[_0x336b53(0x234)]&&_0x345f59[_0x336b53(0x234)]!==_0x51bd22){if(!this[_0x336b53(0x190)])this['_versionSkewWarned']=new Set();!this[_0x336b53(0x190)][_0x336b53(0x2e7)](_0x345f59[_0x336b53(0x234)])&&(this[_0x336b53(0x190)][_0x336b53(0x2ea)](_0x345f59[_0x336b53(0x234)]),this[_0x336b53(0x2fd)][_0x336b53(0x2bc)]?.[_0x336b53(0x2c8)]?.(_0x336b53(0x155)+(_0x345f59[_0x336b53(0x2c5)]??'?')+_0x336b53(0x203)+_0x345f59[_0x336b53(0x234)]+'\x20while\x20this\x20process\x20runs\x20'+_0x51bd22+_0x336b53(0x15f)+'mixed\x20versions\x20on\x20one\x20store\x20are\x20unsafe\x20across\x20storage\x20migrations;\x20align\x20versions\x20before\x20upgrading\x20further.',{'feature':_0x336b53(0x179)}));}}}for(const _0x2cf76d of _0xdd0eab)this[_0x336b53(0x2d2)](_0x2cf76d);if(this[_0x336b53(0x1bd)]()){const _0x465eea=[];for(const {key:_0x22d199}of this['listDesired'](_0x336b53(0x1d3))){if(!_0x3f28ef['has'](_0x22d199)){if(_0x1a9718)try{this[_0x336b53(0x25d)][_0x336b53(0x1e6)]('node/'+_0x22d199);}catch{}else _0x465eea[_0x336b53(0x1b6)](this[_0x336b53(0x25d)][_0x336b53(0x293)](_0x336b53(0x238)+_0x22d199));}}if(_0x465eea[_0x336b53(0x1e5)])await Promise[_0x336b53(0x2f7)](_0x465eea);}}[_0x30fb52(0x1f0)](_0x406a3b=null){const _0x5bd6a3=_0x30fb52;if(this[_0x5bd6a3(0x196)])return;if(!this['_isWriter']||!this[_0x5bd6a3(0x2bf)]){this['okdb']?.[_0x5bd6a3(0x2bc)]?.[_0x5bd6a3(0x2c8)]?.(_0x5bd6a3(0x126)+this['_isWriter']+_0x5bd6a3(0x20c)+!!this[_0x5bd6a3(0x2bf)]+_0x5bd6a3(0x138),{'feature':_0x5bd6a3(0x23f)});return;}this[_0x5bd6a3(0x13e)]=_0x406a3b,this[_0x5bd6a3(0x26d)]=()=>this[_0x5bd6a3(0x2e0)]();for(const _0x285f12 of _0x53ea89)this[_0x5bd6a3(0x2fd)][_0x5bd6a3(0x252)]['on'](_0x285f12,this[_0x5bd6a3(0x26d)]);this[_0x5bd6a3(0x13c)]();const _0x1184c4=Number(process.env.OKDB_WORKERS_HEARTBEAT_MS)||_0x3fb8ea;this['_hbTimer']=setInterval(()=>{const _0x1620f9=_0x5bd6a3;if(this[_0x1620f9(0x13e)])try{this[_0x1620f9(0x13e)]();}catch{}this[_0x1620f9(0x13c)](),this[_0x1620f9(0x2ed)]()[_0x1620f9(0x11f)](()=>{});},_0x1184c4);if(this[_0x5bd6a3(0x196)][_0x5bd6a3(0x1f8)])this[_0x5bd6a3(0x196)][_0x5bd6a3(0x1f8)]();}[_0x30fb52(0x2e0)](){const _0x340127=_0x30fb52;if(!this['_isWriter']||!this[_0x340127(0x2bf)])return;if(Date[_0x340127(0x330)]()-this[_0x340127(0x20e)]<_0x27d9a3)return;this[_0x340127(0x13c)]();}[_0x30fb52(0x13c)](){const _0x29e355=_0x30fb52;if(!this[_0x29e355(0x249)]||!this[_0x29e355(0x2bf)])return;this['_lastPublishAt']=Date[_0x29e355(0x330)]();try{const _0xef1a09=[this['_buildOwnRow']()];for(const _0x1ed508 of this[_0x29e355(0x335)][_0x29e355(0x32d)]())_0xef1a09[_0x29e355(0x1b6)](this[_0x29e355(0x1da)](_0x1ed508));const _0x2e3e09=_0x342044[_0x29e355(0x26a)]?_0x342044[_0x29e355(0x330)]():0x0;for(const _0x4535ab of _0xef1a09){try{this[_0x29e355(0x1a1)](_0x4535ab),this[_0x29e355(0x172)]=![];}catch(_0x23831e){!this['_publishFailWarned']&&(this[_0x29e355(0x172)]=!![],this['okdb']?.[_0x29e355(0x2bc)]?.[_0x29e355(0x2c8)]?.(_0x29e355(0x164)+_0x23831e[_0x29e355(0x12b)],{'feature':_0x29e355(0x23f)}));}}if(_0x342044['enabled'])_0x342044[_0x29e355(0x19f)]('registry-publish',_0x342044[_0x29e355(0x330)]()-_0x2e3e09,_0x29e355(0x24d)+_0xef1a09['length']+_0x29e355(0x1ea));}catch(_0x386bed){!this[_0x29e355(0x172)]&&(this[_0x29e355(0x172)]=!![],this[_0x29e355(0x2fd)]?.[_0x29e355(0x2bc)]?.['warn']?.(_0x29e355(0x164)+_0x386bed[_0x29e355(0x12b)],{'feature':_0x29e355(0x23f)}));}}async[_0x30fb52(0x1f3)](){const _0x30aeb3=_0x30fb52;if(this['_onProcEvent']){for(const _0x58f3bb of _0x53ea89){try{this[_0x30aeb3(0x2fd)][_0x30aeb3(0x252)][_0x30aeb3(0x151)](_0x58f3bb,this['_onProcEvent']);}catch{}}this[_0x30aeb3(0x26d)]=null;}this['_hbTimer']&&(clearInterval(this[_0x30aeb3(0x196)]),this['_hbTimer']=null);try{if(this['_statusEnv']&&this['_isWriter'])await this[_0x30aeb3(0x158)](this[_0x30aeb3(0x198)]);}catch{}}async[_0x30fb52(0x2dc)](){const _0x16fb31=_0x30fb52;if(!this[_0x16fb31(0x2bf)]||!this[_0x16fb31(0x249)])return;try{await this[_0x16fb31(0x158)](this[_0x16fb31(0x198)]);}catch{}try{const _0x4aebb7=[];for(const {value:_0x48ad5e}of this[_0x16fb31(0x2bf)][_0x16fb31(0x165)](_0x389b5b)){if(_0x48ad5e?.[_0x16fb31(0x2c1)]===process['pid']&&_0x48ad5e['nodeKey'])_0x4aebb7[_0x16fb31(0x1b6)](_0x48ad5e[_0x16fb31(0x2bd)]);}for(const _0x4e66ab of _0x4aebb7){try{await this[_0x16fb31(0x158)](_0x4e66ab);}catch{}}}catch{}}async[_0x30fb52(0x18a)](){const _0x5850af=_0x30fb52;return this[_0x5850af(0x2bb)](this[_0x5850af(0x1c0)]());}async['publishChildRow'](_0xb63759){const _0x252b16=_0x30fb52;if(!this['_statusEnv']||!this[_0x252b16(0x249)])return;return this[_0x252b16(0x2bb)](this[_0x252b16(0x1da)](_0xb63759));}[_0x30fb52(0x1da)]({pid:_0x8d2fa7,startedAt:_0x5300f9,kind:_0x38fb45,supervisorKey:_0x32e10e,slot:slot=null,slotKey:slotKey=null,role:role={},listenAddr:listenAddr=null,processing:processing=null,lifecycle:lifecycle=_0x30fb52(0x311),meta:meta=null,stats:stats=null}){const _0x4af825=_0x30fb52,_0x265f08=Date['now'](),_0x2e7331=_0x1371d8(_0x8d2fa7,_0x5300f9);return{'nodeKey':_0x587fa0(_0x2e7331,'0'),'processKey':_0x2e7331,'instanceId':'0','pid':_0x8d2fa7,'startedAt':_0x5300f9,'ppid':process[_0x4af825(0x2c5)],'host':_0x44cbf8[_0x4af825(0x320)](),'supervisorKey':_0x32e10e,'slot':slot,'slotKey':slotKey,'kind':_0x38fb45,'role':role,'listenAddr':listenAddr,'heartbeatAt':_0x265f08,'expiresAt':_0x265f08+_0xbb41e6,'caps':this[_0x4af825(0x258)](_0x38fb45,role),'lifecycle':{'state':lifecycle,'desiredVersionApplied':null},'processing':processing,'meta':meta,'stats':stats};}async[_0x30fb52(0x2be)](_0x1432db){const _0x25672f=_0x30fb52;if(!_0x1432db?.[_0x25672f(0x2c5)])return null;const _0x33bf2f=_0x1371d8(_0x1432db[_0x25672f(0x2c5)],_0x1432db['startedAt']);this[_0x25672f(0x335)][_0x25672f(0x248)](_0x33bf2f,{..._0x1432db,'supervisorKey':_0x1432db[_0x25672f(0x263)]??this[_0x25672f(0x305)]});if(this['_isWriter'])await this[_0x25672f(0x119)](this[_0x25672f(0x335)][_0x25672f(0x13d)](_0x33bf2f))[_0x25672f(0x11f)]?.(()=>{});return _0x33bf2f;}[_0x30fb52(0x22a)](_0x79dba0){const _0x2fd241=_0x30fb52;if(!_0x79dba0)return;return this[_0x2fd241(0x335)][_0x2fd241(0x116)](_0x79dba0),this['removeNode'](_0x79dba0);}[_0x30fb52(0x112)](){const _0x462ff3=_0x30fb52,_0x3f5849=Date[_0x462ff3(0x330)](),_0x1c5f11=process[_0x462ff3(0x1d5)](),_0x4a3b2e=(_0x3f5849-this[_0x462ff3(0x242)])*0x3e8;if(_0x4a3b2e>=0x3d090){const _0x582dea=_0x1c5f11[_0x462ff3(0x23d)]-this[_0x462ff3(0x2d5)]['user']+(_0x1c5f11[_0x462ff3(0x283)]-this[_0x462ff3(0x2d5)][_0x462ff3(0x283)]),_0x30cc1f=_0x44cbf8[_0x462ff3(0x282)]()[_0x462ff3(0x1e5)]||0x1;this[_0x462ff3(0x136)]=Math['min'](0x64,Math[_0x462ff3(0x18e)](_0x582dea/(_0x4a3b2e*_0x30cc1f)*0x64)),this[_0x462ff3(0x264)]=Math[_0x462ff3(0x18e)](_0x4a3b2e/0x3e8),this[_0x462ff3(0x2d5)]=_0x1c5f11,this[_0x462ff3(0x242)]=_0x3f5849;}const _0x301966=process[_0x462ff3(0x118)](),_0x3faa1a=this[_0x462ff3(0x31a)][_0x462ff3(0x209)];let _0xf902e5=0x0;if(_0x3faa1a>0x0){const _0x5a32aa=[this[_0x462ff3(0x2fd)],...this['okdb'][_0x462ff3(0x32f)]?.[_0x462ff3(0x32d)]?.()??[]];for(const _0x291cc2 of _0x5a32aa){const _0x2fd0a5=_0x291cc2['functions']?.[_0x462ff3(0x13a)];if(_0x2fd0a5)_0xf902e5+=_0x2fd0a5[_0x462ff3(0x228)][_0x462ff3(0x251)];}}let _0xb53e43=null;const _0x30d974=_0x3faa1a;if(_0x30d974>0x0){let _0x49a54e=0x0;for(const _0x67395b of this[_0x462ff3(0x31a)][_0x462ff3(0x32d)]())_0x49a54e+=_0x67395b[_0x462ff3(0x21e)]||0x0;_0xb53e43={'count':_0x30d974,'heapUsed':_0x49a54e,'sandbox':_0x3faa1a,'busy':_0xf902e5};}return{'rss':_0x301966['rss'],'heapUsed':_0x301966[_0x462ff3(0x21e)],'heapTotal':_0x301966[_0x462ff3(0x2ec)],'external':_0x301966[_0x462ff3(0x162)],'cpuPct':this[_0x462ff3(0x136)],'cpuWindowMs':this[_0x462ff3(0x264)]??null,'threads':_0xb53e43,'at':_0x3f5849};}['reportThreadStats'](_0x526190,_0x49fbc6){if(!_0x526190||!_0x49fbc6)return;this['_threadStats']['set'](_0x526190,_0x49fbc6);}[_0x30fb52(0x21c)](_0x125666){const _0x3d86ac=_0x30fb52;this[_0x3d86ac(0x31a)][_0x3d86ac(0x116)](_0x125666);}[_0x30fb52(0x213)](_0x242715,_0x35af90,_0x596022=undefined){const _0x540e0e=_0x30fb52,_0x4f19f7=this['_children'][_0x540e0e(0x13d)](_0x242715);if(!_0x4f19f7||!_0x35af90)return;if(_0x596022!==undefined)_0x4f19f7[_0x540e0e(0x1fa)]=_0x596022;_0x4f19f7[_0x540e0e(0x1eb)]={'rss':_0x35af90[_0x540e0e(0x1be)]??null,'heapUsed':_0x35af90[_0x540e0e(0x21e)]??null,'heapTotal':_0x35af90['heapTotal']??null,'external':_0x35af90[_0x540e0e(0x162)]??null,'cpuPct':_0x35af90[_0x540e0e(0x1d4)]??null,'cpuWindowMs':_0x35af90[_0x540e0e(0x159)]??null,'threads':_0x35af90[_0x540e0e(0x231)]??null,'claims':_0x35af90['claims']??null,'envsOpen':_0x35af90['envsOpen']??null,'at':Date[_0x540e0e(0x330)]()};}[_0x30fb52(0x1c0)](){const _0x5b559a=_0x30fb52,_0x5d23ca=Date[_0x5b559a(0x330)](),_0x6d651f=this[_0x5b559a(0x2fd)][_0x5b559a(0x180)]||{},_0x6a9f5=this[_0x5b559a(0x131)]||_0x5b559a(0x18b);return{'nodeKey':this[_0x5b559a(0x198)],'processKey':this[_0x5b559a(0x305)],'instanceId':this[_0x5b559a(0x329)],'pid':process[_0x5b559a(0x2c5)],'startedAt':this[_0x5b559a(0x1b8)],'instanceStartedAt':this[_0x5b559a(0x339)],'ppid':typeof process[_0x5b559a(0x2c1)]==='number'?process[_0x5b559a(0x2c1)]:null,'host':_0x44cbf8['hostname'](),'supervisorKey':this[_0x5b559a(0x318)]??null,'version':require$$6[_0x5b559a(0x234)],'kind':_0x6a9f5,'role':{'engines':!!_0x6d651f['engines'],'processors':!!_0x6d651f[_0x5b559a(0x1a0)],'compaction':_0x6d651f[_0x5b559a(0x2f5)],'http':_0x6d651f[_0x5b559a(0x186)]},'listenAddr':this[_0x5b559a(0x2aa)]??null,'heartbeatAt':_0x5d23ca,'expiresAt':_0x5d23ca+_0xbb41e6,'caps':this[_0x5b559a(0x258)](_0x6a9f5,_0x6d651f),'lifecycle':{'state':'running','desiredVersionApplied':null},'meta':{...this[_0x5b559a(0x195)]},'processing':_0x6d651f['processors']?this[_0x5b559a(0x303)]():null,'engines':_0x6d651f['engines']?[...this[_0x5b559a(0x2fd)][_0x5b559a(0x2b0)]??[]]:null,'singletonClaims':this[_0x5b559a(0x1a7)](),'stats':this[_0x5b559a(0x112)](),'writers':this[_0x5b559a(0x177)]()};}[_0x30fb52(0x177)](){const _0x232498=_0x30fb52,_0x4be379={};try{for(const [_0x360d65,_0x5420b0]of this[_0x232498(0x2fd)][_0x232498(0x32f)]){try{const _0x4dbede=_0x5420b0[_0x232498(0x26b)]?.();if(!_0x4dbede)continue;if(!_0x4dbede['depth']&&!_0x4dbede[_0x232498(0x319)]&&!(_0x4dbede[_0x232498(0x157)]??0x0)&&!_0x4dbede[_0x232498(0x216)])continue;_0x4be379[_0x360d65]={'depth':_0x4dbede['depth'],'oldestPendingMs':_0x4dbede[_0x232498(0x1b7)],'committed':_0x4dbede['committed'],'commitsPerSec':_0x4dbede['commitsPerSec'],'commitP99Ms':_0x4dbede['commitP99Ms'],'parkedNow':_0x4dbede[_0x232498(0x157)]??0x0,'draining':!!_0x4dbede[_0x232498(0x216)]};}catch{}}}catch{}return Object[_0x232498(0x16a)](_0x4be379)[_0x232498(0x1e5)]?_0x4be379:null;}[_0x30fb52(0x1a7)](){const _0x3f4fb9=_0x30fb52,_0x553533=process[_0x3f4fb9(0x2c5)],_0x269872=Date['now'](),_0x283fc8=_0x43d02e=>{const _0x37f52e=_0x3f4fb9;if(!_0x43d02e)return[];const _0x588326=[];try{for(const {id:_0x397185,entry:_0x29c6cc}of _0x43d02e[_0x37f52e(0x28c)]()){if(_0x29c6cc?.['holder']?.['pid']!==_0x553533)continue;const _0x4ddc06=_0x29c6cc['updatedAt']??_0x29c6cc[_0x37f52e(0x289)]??0x0;if(_0x4ddc06+(_0x29c6cc[_0x37f52e(0x200)]??0x0)<_0x269872)continue;_0x588326[_0x37f52e(0x1b6)](_0x397185);}}catch{}return _0x588326;},_0x459960=_0x283fc8(this[_0x3f4fb9(0x20f)](_0x3f4fb9(0x2b9))),_0x2c34b2=_0x283fc8(this[_0x3f4fb9(0x20f)](_0x3f4fb9(0x2d0)));if(!_0x459960[_0x3f4fb9(0x1e5)]&&!_0x2c34b2[_0x3f4fb9(0x1e5)])return null;return{'compact':_0x459960,'replicate':_0x2c34b2};}['_singletonLock'](_0x49a2a9){const _0x1c768f=_0x30fb52;if(!this[_0x1c768f(0x2fd)]?.['_rootDb'])return null;if(!this[_0x1c768f(0x11d)])this[_0x1c768f(0x11d)]=new Map();let _0x5532af=this[_0x1c768f(0x11d)][_0x1c768f(0x13d)](_0x49a2a9);if(!_0x5532af)try{_0x5532af=new _0x2ea6cc(this[_0x1c768f(0x2fd)][_0x1c768f(0x1d9)],{'namespace':_0x49a2a9}),this[_0x1c768f(0x11d)][_0x1c768f(0x248)](_0x49a2a9,_0x5532af);}catch{return null;}return _0x5532af;}[_0x30fb52(0x303)](){const _0x38e975=_0x30fb52,_0x2539c2=[];try{for(const [_0x367364,_0x1a34c0]of this[_0x38e975(0x2fd)][_0x38e975(0x32f)]){if(_0x367364[_0x38e975(0x210)]('~'))continue;for(const _0x1fc0fa of _0x1a34c0[_0x38e975(0x2b5)]['tierList']())_0x2539c2[_0x38e975(0x1b6)]({..._0x1fc0fa,'env':_0x367364});}}catch{}return{'participate':this[_0x38e975(0x2fd)][_0x38e975(0x1a0)]?.[_0x38e975(0x1d8)]??![],'processors':_0x2539c2};}[_0x30fb52(0x1bd)](){const _0x4a47a4=_0x30fb52;if(this[_0x4a47a4(0x25d)])return!![];const _0x193b97=this[_0x4a47a4(0x2fd)][_0x4a47a4(0x1d9)];if(!_0x193b97)return![];return this['_desired']=_0x193b97[_0x4a47a4(0x30f)](_0x51b9fa,{'dupSort':![]}),this['_cmd']=_0x193b97[_0x4a47a4(0x30f)](_0x33da17,{'dupSort':![]}),!![];}async[_0x30fb52(0x1cf)](){const _0x8e0611=_0x30fb52;if(!this[_0x8e0611(0x1bd)]())return;const _0xfa3049=_0x8e0611(0x134),_0x2ea6b7=0x1,_0x255997=this[_0x8e0611(0x25d)][_0x8e0611(0x13d)](_0xfa3049)??0x0;if(_0x255997>=_0x2ea6b7)return;const _0x8bd7a=_0x4084e5=>{const _0x40ff3c=_0x8e0611;if(_0x4084e5==='worker')return _0x40ff3c(0x2da);if(_0x4084e5==='async')return _0x40ff3c(0x333);return _0x4084e5;};await this[_0x8e0611(0x2fd)]['_systemEnv']['_writer'][_0x8e0611(0x170)](()=>{const _0x1b9ffe=_0x8e0611;for(const _0x5e6d13 of[_0x1b9ffe(0x29c),_0x1b9ffe(0x336)]){for(const {key:_0x42824e,value:_0x57e269}of this[_0x1b9ffe(0x25d)][_0x1b9ffe(0x165)]({'start':_0x5e6d13,'end':_0x5e6d13+'\xff'})){if(typeof _0x42824e!=='string'||!_0x42824e['startsWith'](_0x5e6d13))break;const _0x40bf48=_0x8bd7a(_0x57e269['mode']);if(_0x40bf48!==_0x57e269[_0x1b9ffe(0x176)])this['_desired'][_0x1b9ffe(0x1e7)](_0x42824e,{..._0x57e269,'mode':_0x40bf48});}}this[_0x1b9ffe(0x25d)][_0x1b9ffe(0x1e7)](_0xfa3049,_0x2ea6b7);});}[_0x30fb52(0x2e6)](){return!!this['_desired'];}['getDesired'](_0x75b7c5,_0xf8febb){const _0x5c69e9=_0x30fb52;if(!this[_0x5c69e9(0x1bd)]())return null;const _0xeca801=_0x75b7c5+'/'+_0xf8febb;return this[_0x5c69e9(0x161)](),this[_0x5c69e9(0x2db)][_0x5c69e9(0x13d)](_0xeca801)??this[_0x5c69e9(0x25d)]['get'](_0xeca801)??null;}[_0x30fb52(0x161)](){const _0x24cd28=_0x30fb52;if(!_0x1a9718)return;try{this['okdb']['_systemEnv']?.['db']?.[_0x24cd28(0x281)]?.();}catch{}}async[_0x30fb52(0x130)](_0x3ac012,_0x4f0fa6,_0x469ab9){const _0xffb3cf=_0x30fb52;if(!this[_0xffb3cf(0x1bd)]())return null;const _0x5100fa=_0x3ac012+'/'+_0x4f0fa6;this[_0xffb3cf(0x161)]();const _0x5d7790=this[_0xffb3cf(0x2db)][_0xffb3cf(0x13d)](_0x5100fa)??this[_0xffb3cf(0x25d)][_0xffb3cf(0x13d)](_0x5100fa)??{'version':0x0},_0x4f8830=(_0x5d7790[_0xffb3cf(0x234)]||0x0)+0x1,_0x436b67={..._0x5d7790,..._0x469ab9,'version':_0x4f8830,'updatedAt':Date[_0xffb3cf(0x330)]()};this[_0xffb3cf(0x2db)]['set'](_0x5100fa,_0x436b67);try{await this[_0xffb3cf(0x2fd)]['_systemEnv'][_0xffb3cf(0x1c1)][_0xffb3cf(0x170)](()=>{const _0x5e5ee4=_0xffb3cf;this[_0x5e5ee4(0x25d)][_0x5e5ee4(0x1e7)](_0x5100fa,_0x436b67);});}finally{if(this[_0xffb3cf(0x2db)]['get'](_0x5100fa)===_0x436b67)this[_0xffb3cf(0x2db)][_0xffb3cf(0x116)](_0x5100fa);}return _0x4f8830;}[_0x30fb52(0x2f9)](_0x581d55){const _0x217f58=_0x30fb52;if(!this[_0x217f58(0x1bd)]())return[];this[_0x217f58(0x161)]();const _0x13a46d=_0x581d55+'/',_0x1bc816=[];for(const {key:_0x59c1fe,value:_0x395dde}of this[_0x217f58(0x25d)]['getRange']({'start':_0x13a46d,'end':_0x13a46d+'\xff'})){if(typeof _0x59c1fe!==_0x217f58(0x12c)||!_0x59c1fe[_0x217f58(0x210)](_0x13a46d))break;_0x1bc816[_0x217f58(0x1b6)]({'key':_0x59c1fe['slice'](_0x13a46d[_0x217f58(0x1e5)]),'value':_0x395dde});}return _0x1bc816;}[_0x30fb52(0x13b)](_0x23691a){const _0xc615a7=_0x30fb52;if(!this[_0xc615a7(0x1bd)]())return null;return this[_0xc615a7(0x262)][_0xc615a7(0x13d)](_0x23691a)??null;}async[_0x30fb52(0x29f)](_0x37223d,_0x364535,_0x34c2de={}){const _0x3ca15f=_0x30fb52;if(!this[_0x3ca15f(0x1bd)]())return null;let _0x377f84;return await this[_0x3ca15f(0x2fd)]['_systemEnv']['_writer'][_0x3ca15f(0x170)](()=>{const _0x16f8e8=_0x3ca15f,_0x274ea2=this['_cmd'][_0x16f8e8(0x13d)](_0x37223d)||{'epoch':0x0};_0x377f84=(_0x274ea2[_0x16f8e8(0x2e4)]||0x0)+0x1,this[_0x16f8e8(0x262)][_0x16f8e8(0x1e7)](_0x37223d,{..._0x274ea2,..._0x34c2de,'cmd':_0x364535,'epoch':_0x377f84,'updatedAt':Date[_0x16f8e8(0x330)]()});}),_0x377f84;}}return okdbProcessRegistry={'OKDBProcessRegistry':_0x7a12dc,'nodeKey':_0x1371d8,'logicalKey':_0xd01e71,'slotKey':_0x13a6dd,'PROCESS_ENV':_0x15390f,'NODE_TYPE':_0x389b5b},okdbProcessRegistry;}var okdbChangefeed,hasRequiredOkdbChangefeed;function requireOkdbChangefeed(){const _0x3b2539=_0x1d447a;if(hasRequiredOkdbChangefeed)return okdbChangefeed;hasRequiredOkdbChangefeed=0x1;const _0x52161a=require$$0$4,{EVENTS:_0x2753b9,CHANGE_ACTIONS:_0x4e8f4f}=requireOkdbEnums(),{LOOP:_0x8a4e2c}=requireOkdbLoopMonitor(),_0x4f2b5a=Number(process.env.OKDB_CHANGEFEED_QUANTUM)||0x3e8,_0x37608e=0x5,_0xec9cd6=0x2710;class _0x4c16ed extends _0x52161a{constructor(_0x3f2c0e,_0x4527ef={}){const _0x278b43=_0x39df;super(),this[_0x278b43(0x2fd)]=_0x3f2c0e,this['_quantum']=_0x4527ef[_0x278b43(0x1dc)]??_0x4f2b5a,this['_flushDebounce']=_0x4527ef[_0x278b43(0x2ca)]??_0x37608e,this[_0x278b43(0x28a)]=_0x4527ef[_0x278b43(0x30c)]??_0xec9cd6,this['_started']=![],this[_0x278b43(0x2fb)]=new Map(),this[_0x278b43(0x244)]=new Map(),this[_0x278b43(0x237)]=new Map(),this[_0x278b43(0x1cd)]=null,this[_0x278b43(0x1af)]=![],this['_seen']=new Set(),this[_0x278b43(0x322)]=_0x40d5c6=>this['_handleInProcess'](_0x40d5c6),this['_onPoke']=_0xdb9983=>this[_0x278b43(0x154)](_0xdb9983),this[_0x278b43(0x29d)]=()=>this[_0x278b43(0x27a)]();}['start'](){const _0xe385cf=_0x39df;if(this[_0xe385cf(0x2a1)])return;this[_0xe385cf(0x2a1)]=!![];for(const [_0x3287d8,_0x5aca5c]of this[_0xe385cf(0x2fd)][_0xe385cf(0x32f)]){if(_0x3287d8[_0xe385cf(0x210)]('~'))continue;try{_0x5aca5c['_enableChangelog']();}catch{}}for(const [_0x1dbca3,_0x508608]of this['okdb'][_0xe385cf(0x32f)]){if(_0x1dbca3[_0xe385cf(0x210)]('~'))continue;try{this['_baselines'][_0xe385cf(0x248)](_0x1dbca3,_0x508608[_0xe385cf(0x2dd)]()||0x0);}catch{}}const {events:_0x4b1401}=this[_0xe385cf(0x2fd)];_0x4b1401['on'](_0x2753b9[_0xe385cf(0x276)],this[_0xe385cf(0x322)]),_0x4b1401['on'](_0x2753b9[_0xe385cf(0x133)],this[_0xe385cf(0x322)]),_0x4b1401['on'](_0x2753b9['ITEM_REMOVE'],this['_onItem']),_0x4b1401['on'](_0x2753b9[_0xe385cf(0x1a5)],this['_onPoke']),_0x4b1401['once'](_0x2753b9[_0xe385cf(0x14e)],this[_0xe385cf(0x29d)]);}[_0x3b2539(0x27a)](){const _0x93bad=_0x3b2539;if(!this[_0x93bad(0x2a1)])return;this['_started']=![];const {events:_0x928da6}=this[_0x93bad(0x2fd)];_0x928da6[_0x93bad(0x151)](_0x2753b9[_0x93bad(0x276)],this[_0x93bad(0x322)]),_0x928da6[_0x93bad(0x151)](_0x2753b9[_0x93bad(0x133)],this[_0x93bad(0x322)]),_0x928da6[_0x93bad(0x151)](_0x2753b9[_0x93bad(0x31b)],this[_0x93bad(0x322)]),_0x928da6[_0x93bad(0x151)](_0x2753b9[_0x93bad(0x1a5)],this[_0x93bad(0x27b)]);try{_0x928da6['off'](_0x2753b9[_0x93bad(0x14e)],this[_0x93bad(0x29d)]);}catch{}this[_0x93bad(0x1cd)]&&(clearTimeout(this[_0x93bad(0x1cd)]),this[_0x93bad(0x1cd)]=null),this[_0x93bad(0x237)][_0x93bad(0x2cb)](),this[_0x93bad(0x2fb)][_0x93bad(0x2cb)](),this['_baselines']['clear'](),this[_0x93bad(0x327)][_0x93bad(0x2cb)]();}[_0x3b2539(0x11c)](_0x3c32dd,_0x17c3bf,_0x2767f4,_0x2ab0ea){return _0x3c32dd+'\x00'+_0x17c3bf+'\x00'+_0x2767f4+'\x00'+_0x2ab0ea;}[_0x3b2539(0x2a3)](_0xdf74b4,_0x55faa2,_0x28fac1,_0x273ca3){const _0x1f2080=_0x3b2539,_0x24fb60=this[_0x1f2080(0x11c)](_0xdf74b4,_0x55faa2,_0x28fac1,_0x273ca3);if(this[_0x1f2080(0x327)][_0x1f2080(0x2e7)](_0x24fb60))return![];this[_0x1f2080(0x327)][_0x1f2080(0x2ea)](_0x24fb60);if(this['_seen'][_0x1f2080(0x209)]>this[_0x1f2080(0x28a)]){const _0x990c94=this[_0x1f2080(0x327)][_0x1f2080(0x32d)]()[_0x1f2080(0x2f2)]()[_0x1f2080(0x125)];this[_0x1f2080(0x327)][_0x1f2080(0x116)](_0x990c94);}return!![];}['_handleInProcess'](_0x500d9d){const _0x28d1f7=_0x3b2539;if(!this[_0x28d1f7(0x2a1)]||!_0x500d9d)return;const {env:_0x27ed16,type:_0x42de09,key:_0x4eb907,clock:_0x46fff9,origin:_0x4d9180,action:_0x3b0eff,newValue:_0x452049,oldValue:_0x36f310}=_0x500d9d;if(_0x27ed16==null||_0x42de09==null||_0x4eb907==null)return;if(typeof _0x27ed16===_0x28d1f7(0x12c)&&_0x27ed16['startsWith']('~'))return;if(typeof _0x42de09===_0x28d1f7(0x12c)&&_0x42de09[_0x28d1f7(0x210)]('~'))return;if(!this[_0x28d1f7(0x2a3)](_0x27ed16,_0x42de09,_0x4eb907,_0x46fff9))return;const _0x13b9ff=_0x3b0eff===_0x4e8f4f[_0x28d1f7(0x325)]?'remove':_0x28d1f7(0x1e7);this[_0x28d1f7(0x30a)](_0x28d1f7(0x2b3),{'env':_0x27ed16,'type':_0x42de09,'key':_0x4eb907,'op':_0x13b9ff,'clock':_0x46fff9,'origin':_0x4d9180,'value':_0x13b9ff==='remove'?null:_0x452049,'prevValue':_0x36f310});}['_handlePoke'](_0x376349){const _0x580122=_0x3b2539;if(!this[_0x580122(0x2a1)])return;if(!_0x376349||typeof _0x376349[_0x580122(0x1a2)]!=='string'||typeof _0x376349[_0x580122(0x2d1)]!=='string')return;const {env:_0x199c28,type:_0x17a271}=_0x376349;if(_0x199c28[_0x580122(0x210)]('~')||_0x17a271['startsWith']('~'))return;this['_pending'][_0x580122(0x248)](_0x199c28+'\x00'+_0x17a271,{'env':_0x199c28,'type':_0x17a271}),this[_0x580122(0x22c)]();}[_0x3b2539(0x22c)](){const _0x4236b6=_0x3b2539;if(this['_flushTimer'])return;const _0x2a9f5f=()=>{const _0x27f7f4=_0x39df;this[_0x27f7f4(0x1cd)]=null,this[_0x27f7f4(0x1b1)]()[_0x27f7f4(0x11f)](()=>{});};this[_0x4236b6(0x1cd)]=setTimeout(_0x2a9f5f,this[_0x4236b6(0x230)]>0x0?this[_0x4236b6(0x230)]:0x0);}async[_0x3b2539(0x1b1)](){const _0x5cf096=_0x3b2539;if(this['_draining']){this[_0x5cf096(0x22c)]();return;}this[_0x5cf096(0x1af)]=!![];try{const _0x149c67=[...this[_0x5cf096(0x237)][_0x5cf096(0x32d)]()];this[_0x5cf096(0x237)][_0x5cf096(0x2cb)]();let _0x17f22b=![];for(const {env:_0x41adc4,type:_0xf0a155}of _0x149c67){try{const _0x3aec2c=await this[_0x5cf096(0x1f1)](_0x41adc4,_0xf0a155);if(_0x3aec2c)_0x17f22b=!![];}catch{this['_pending']['set'](_0x41adc4+'\x00'+_0xf0a155,{'env':_0x41adc4,'type':_0xf0a155}),_0x17f22b=!![];}}if(_0x17f22b||this[_0x5cf096(0x237)]['size']>0x0)this['_scheduleFlush']();}finally{this[_0x5cf096(0x1af)]=![];}}async[_0x3b2539(0x1f1)](_0x5a2ef8,_0xd28ea7){const _0x171027=_0x3b2539,_0x3040dc=await this[_0x171027(0x2fd)][_0x171027(0x2ad)](_0x5a2ef8),_0x290fb2=_0x5a2ef8+'\x00'+_0xd28ea7;!this['_cursors']['has'](_0x290fb2)&&(!this[_0x171027(0x244)]['has'](_0x5a2ef8)&&(_0x3040dc['_enableChangelog'](),this['_baselines']['set'](_0x5a2ef8,_0x3040dc['getClock']()||0x0)),this[_0x171027(0x2fb)][_0x171027(0x248)](_0x290fb2,this[_0x171027(0x244)][_0x171027(0x13d)](_0x5a2ef8)));const _0x303f97=this['_cursors'][_0x171027(0x13d)](_0x290fb2),_0x3aa169=_0x3040dc['getClock'](_0xd28ea7)||0x0;if(_0x3aa169<=_0x303f97)return![];const _0x334f20=_0x303f97+this[_0x171027(0x185)],_0x7eba74=Math[_0x171027(0x2ab)](_0x3aa169,_0x334f20),_0x40b951=_0x8a4e2c[_0x171027(0x26a)]?_0x8a4e2c[_0x171027(0x330)]():0x0,_0x53d4e3=Array[_0x171027(0x178)](_0x3040dc['getChanges'](_0xd28ea7,_0x303f97+0x1,_0x7eba74));let _0x4c4fa3=_0x303f97;for(const _0x40c737 of _0x53d4e3){const {clock:_0x529cff,key:_0xb2314,action:_0x41b3f5,origin:_0x21cdc5}=_0x40c737;if(_0x529cff>_0x4c4fa3)_0x4c4fa3=_0x529cff;if(_0xb2314==null)continue;if(!this[_0x171027(0x2a3)](_0x5a2ef8,_0xd28ea7,_0xb2314,_0x529cff))continue;let _0x403b8f,_0x321479;if(_0x41b3f5===_0x4e8f4f['REMOVE'])_0x403b8f=_0x171027(0x293),_0x321479=null;else{const _0x500f0d=_0x3040dc[_0x171027(0x13d)](_0xd28ea7,_0xb2314);_0x500f0d==null?(_0x403b8f=_0x171027(0x293),_0x321479=null):(_0x403b8f=_0x171027(0x1e7),_0x321479=_0x500f0d);}this[_0x171027(0x30a)](_0x171027(0x2b3),{'env':_0x5a2ef8,'type':_0xd28ea7,'key':_0xb2314,'op':_0x403b8f,'clock':_0x529cff,'origin':_0x21cdc5,'value':_0x321479});}if(_0x8a4e2c[_0x171027(0x26a)])_0x8a4e2c[_0x171027(0x19f)]('feed:'+_0x5a2ef8+':'+_0xd28ea7,_0x8a4e2c['now']()-_0x40b951,'n='+_0x53d4e3[_0x171027(0x1e5)]);return this['_cursors'][_0x171027(0x248)](_0x290fb2,Math['max'](_0x4c4fa3,_0x7eba74)),_0x3040dc[_0x171027(0x2dd)](_0xd28ea7)>_0x7eba74;}[_0x3b2539(0x2ba)](){const _0x27d862=_0x3b2539;return{'started':this['_started'],'quantum':this[_0x27d862(0x185)],'flushDebounce':this[_0x27d862(0x230)],'cursors':Object[_0x27d862(0x217)]([...this[_0x27d862(0x2fb)][_0x27d862(0x27d)]()][_0x27d862(0x2c0)](([_0x11b984,_0xcff37a])=>[_0x11b984[_0x27d862(0x148)]('\x00',':'),_0xcff37a])),'pending':this[_0x27d862(0x237)][_0x27d862(0x209)],'seen':this['_seen'][_0x27d862(0x209)]};}}return _0x4c16ed[_0x3b2539(0x309)]=_0x4f2b5a,okdbChangefeed={'OKDBChangefeed':_0x4c16ed},okdbChangefeed;}var okdbCluster,hasRequiredOkdbCluster;function requireOkdbCluster(){const _0x6c9dc6=_0x1d447a;if(hasRequiredOkdbCluster)return okdbCluster;hasRequiredOkdbCluster=0x1;const _0x5b6833=require$$1$1,_0x29bb48=require$$1,{EVENTS:_0x4b8e80}=requireOkdbEnums(),_0x5e068b=require$$0$3,{slotKey:_0x231f58}=requireOkdbProcessRegistry(),_0xca6b4e=0xfa,_0x21a8e0=0xfa0,_0x2fbd4b=0x5,_0x152d68=0x2710,_0x585704=0xbb8,_0xaef4e2=0x7d0,_0x62cb9d=_0x6c9dc6(0x181),_0x3af544='ephemeral',_0xd529bb=_0x6c9dc6(0x2bc),_0x451c3f=_0x6c9dc6(0x1eb),_0x3bfbd8=[_0x4b8e80[_0x6c9dc6(0x167)],_0x4b8e80[_0x6c9dc6(0x14a)],_0x4b8e80[_0x6c9dc6(0x188)],_0x4b8e80[_0x6c9dc6(0x247)],_0x4b8e80['INDEX_PROGRESS'],_0x4b8e80[_0x6c9dc6(0x2a0)],_0x4b8e80[_0x6c9dc6(0x168)],_0x4b8e80['INDEX_REGISTERED'],_0x6c9dc6(0x278),_0x6c9dc6(0x127),_0x6c9dc6(0x331),_0x6c9dc6(0x2e5),_0x6c9dc6(0x1f2),_0x6c9dc6(0x214)],_0x3a212a=Number(process.env.OKDB_CLUSTER_STATUS_MS)||0x7d0;function _0x5d2589({workers:_0x1deb5d,makeOkdb:_0x145681,port:_0x50e67a,primaryOkdb:_0x146943,childEntry:childEntry=![],workerEnv:workerEnv=null}={}){const _0x475801=_0x6c9dc6;if(_0x5b6833[_0x475801(0x1aa)])return childEntry&&_0x5b6833[_0x475801(0x302)]({'exec':_0x29bb48[_0x475801(0x175)](__dirname,'okdb-http-worker-child.js'),'args':[],'execArgv':((()=>{const _0x415615=_0x475801,_0x31f690=[];for(let _0x4cb02e=0x0;_0x4cb02e<process['execArgv']['length'];_0x4cb02e++){const _0xeba8fc=process['execArgv'][_0x4cb02e];if(_0xeba8fc[_0x415615(0x210)](_0x415615(0x2d9))||_0xeba8fc['startsWith'](_0x415615(0x20b))||_0xeba8fc[_0x415615(0x210)](_0x415615(0x1b2)))continue;if(_0xeba8fc==='-e'||_0xeba8fc==='--eval'||_0xeba8fc==='-p'||_0xeba8fc===_0x415615(0x27f)){_0x4cb02e++;continue;}_0x31f690[_0x415615(0x1b6)](_0xeba8fc);}return _0x31f690;})())}),_0x1a1e74({'workers':_0x1deb5d,'port':_0x50e67a,'primaryOkdb':_0x146943,'workerEnv':workerEnv});return _0x99a860({'makeOkdb':_0x145681,'port':_0x50e67a});}function _0x1a1e74({workers:_0x49cf06,port:_0x44bd80,primaryOkdb:_0x11dd37,workerEnv:_0x56d730}){const _0x3d2f83=_0x6c9dc6,_0xc6afc4=new Map(),_0x25c4b4=new Map();let _0x45c136=![];const _0x127299=_0x362480=>_0x362480?.[_0x3d2f83(0x1c5)],_0x128195=_0x371e7d=>{const _0x3cd8e9=_0x3d2f83,_0x3663d6=_0x5b6833['fork']({...process.env,..._0x56d730||{},'OKDB_CLUSTER_SLOT':String(_0x371e7d)});return _0x3663d6[_0x3cd8e9(0x1c5)]=_0x371e7d,_0xc6afc4[_0x3cd8e9(0x248)](_0x3663d6[_0x3cd8e9(0x14c)][_0x3cd8e9(0x2c5)],{'worker':_0x3663d6,'startedAt':Date['now'](),'slot':_0x371e7d}),_0x3663d6['on']('error',_0x333e13=>{const _0x2887ac=_0x3cd8e9;console['log'](_0x2887ac(0x323)+_0x3663d6[_0x2887ac(0x14c)][_0x2887ac(0x2c5)]+'\x20ipc\x20error:\x20'+(_0x333e13?.[_0x2887ac(0x12b)]??_0x333e13));}),_0x3663d6['on']('online',()=>_0xa85046()),_0x3663d6;},_0x3663eb=_0x176a94=>{const _0x3778da=_0x3d2f83;for(const {worker:_0x2dcb87}of _0xc6afc4['values']()){if(_0x2dcb87[_0x3778da(0x121)]()||!_0x2dcb87[_0x3778da(0x306)]())continue;try{_0x2dcb87[_0x3778da(0x266)](_0x176a94);}catch{}}};_0x11dd37?.[_0x3d2f83(0x11b)]?.({'kind':_0x3d2f83(0x2a5),'listenAddr':':'+_0x44bd80})[_0x3d2f83(0x11f)](()=>{}),_0x11dd37?.[_0x3d2f83(0x23f)]?.[_0x3d2f83(0x286)]?.({'workersConfigured':_0x49cf06});const _0x31be1a={'engines':!![],'processors':!![],'compaction':!![],'http':!![]},_0xa85046=()=>{const _0x4e89d8=_0x3d2f83,_0x5aae68=_0x11dd37?.['processes'];if(!_0x5aae68||!_0x5aae68[_0x4e89d8(0x249)])return;const _0x486504=_0x5aae68[_0x4e89d8(0x1fd)];for(const {worker:_0x44d425,startedAt:_0x5d19a2,slot:_0x1faf37,stats:_0x3c8a33,processing:_0x14816b}of _0xc6afc4[_0x4e89d8(0x32d)]()){if(_0x44d425['isDead']())continue;const _0xd43ed1=_0x5aae68[_0x4e89d8(0x2e6)]?.()&&_0x5aae68['getDesired']('slot',_0x55daeb(_0x1faf37))?.['decommission']===!![];_0x5aae68[_0x4e89d8(0x119)]({'pid':_0x44d425['process'][_0x4e89d8(0x2c5)],'startedAt':_0x5d19a2,'kind':'http-server','supervisorKey':_0x486504,'slot':_0x1faf37,'slotKey':_0x55daeb(_0x1faf37),'role':_0x31be1a,'listenAddr':':'+_0x44bd80,'lifecycle':_0xd43ed1?_0x4e89d8(0x28f):_0x4e89d8(0x311),'processing':_0x14816b??null,'stats':_0x3c8a33??null})[_0x4e89d8(0x11f)](()=>{});}},_0x55daeb=_0x3f216d=>_0x231f58(_0x3d2f83(0x32a)+_0x44bd80,_0x3f216d),_0x4b602e=_0x42c1c6=>{const _0x5823ff=_0x3d2f83,_0x574845=_0x11dd37?.[_0x5823ff(0x23f)];if(!_0x574845?.[_0x5823ff(0x2e6)]?.())return![];return _0x574845[_0x5823ff(0x142)]('slot',_0x55daeb(_0x42c1c6))?.[_0x5823ff(0x2c4)]===!![];};for(let _0x4f3e59=0x0;_0x4f3e59<_0x49cf06;_0x4f3e59++){const _0x3d1659=_0x4b602e(_0x4f3e59);_0x25c4b4[_0x3d2f83(0x248)](_0x4f3e59,{'deaths':[],'consecutiveFailures':0x0,'dead':_0x3d1659,'respawnTimer':null}),_0x3d1659?console['log'](_0x3d2f83(0x15a)+_0x4f3e59+_0x3d2f83(0x223)):_0x128195(_0x4f3e59);}const _0x24deac=()=>{const _0x15938=_0x3d2f83,_0xe31f9c=_0x11dd37?.[_0x15938(0x23f)];if(!_0xe31f9c?.['_isWriter']||!_0xe31f9c[_0x15938(0x2e6)]?.())return;for(const [_0xa0b5e7,_0x188882]of _0x25c4b4['entries']()){const _0x216264=_0xe31f9c['getDesired'](_0x15938(0x2b8),_0x55daeb(_0xa0b5e7)),_0xd8c9c3=_0x216264?.[_0x15938(0x2c4)]===!![],_0x40ac68=_0x216264?.[_0x15938(0x2f1)]===!![];if(_0xd8c9c3&&!_0x188882[_0x15938(0x32b)]){_0x188882[_0x15938(0x32b)]=!![];_0x188882[_0x15938(0x169)]&&(clearTimeout(_0x188882[_0x15938(0x169)]),_0x188882[_0x15938(0x169)]=null);for(const {worker:_0x4add7a}of _0xc6afc4[_0x15938(0x32d)]()){if(_0x127299(_0x4add7a)!==_0xa0b5e7||_0x4add7a[_0x15938(0x121)]())continue;try{if(_0x40ac68)_0x4add7a[_0x15938(0x14c)][_0x15938(0x2f1)]('SIGKILL');else _0x4add7a[_0x15938(0x306)]()&&_0x4add7a[_0x15938(0x115)]();}catch{}}console[_0x15938(0x2bc)](_0x15938(0x1e9)+(_0x40ac68?'hard-killed':'decommissioned')+_0x15938(0x2f3)+_0xa0b5e7+_0x15938(0x117));}else{if(!_0xd8c9c3&&_0x188882[_0x15938(0x32b)]&&_0x216264){_0x188882[_0x15938(0x32b)]=![],_0x188882[_0x15938(0x15c)]=[],_0x188882['consecutiveFailures']=0x0;const _0x499bf4=[..._0xc6afc4['values']()][_0x15938(0x18c)](({worker:_0x4fd096})=>_0x127299(_0x4fd096)===_0xa0b5e7&&!_0x4fd096[_0x15938(0x121)]());!_0x499bf4&&!_0x45c136&&(_0x128195(_0xa0b5e7),console['log']('[okdb-cluster]\x20recommissioned\x20worker\x20slot='+_0xa0b5e7));}}}},_0x2d57f4=()=>{try{_0x24deac();}catch{}};_0x11dd37?.[_0x3d2f83(0x252)]?.['on']?.(_0x4b8e80[_0x3d2f83(0x2a6)],_0x2d57f4);const _0x4de500=[];if(_0x11dd37?.[_0x3d2f83(0x252)]?.['on'])for(const _0x3701d9 of _0x3bfbd8){const _0x474dca=_0x3908eb=>{_0x3663eb({[_0x62cb9d]:_0x3af544,'event':_0x3701d9,'data':_0x3908eb??{}});};_0x11dd37[_0x3d2f83(0x252)]['on'](_0x3701d9,_0x474dca),_0x4de500[_0x3d2f83(0x1b6)]({'event':_0x3701d9,'handler':_0x474dca});}const _0x442611=setInterval(()=>{_0x24deac(),_0xa85046();},_0x3a212a);_0x442611['unref']?.();const _0x1f92e9=(_0x97d388,_0x85bb52)=>{const _0x1b696d=_0x3d2f83;if(!_0x85bb52||typeof _0x85bb52!==_0x1b696d(0x2af)||_0x85bb52[_0x62cb9d]!==_0xd529bb)return;if(!_0x11dd37?.['log']?.[_0x1b696d(0x2d8)])return;const _0x308770=_0x85bb52[_0x1b696d(0x273)]||{};_0x11dd37['log']['ingest']({..._0x308770,'msg':'[w'+_0x85bb52['slot']+']\x20'+(_0x308770['msg']??''),'meta':{..._0x308770[_0x1b696d(0x27c)]||{},'worker':_0x85bb52[_0x1b696d(0x2b8)],'workerPid':_0x85bb52[_0x1b696d(0x2c5)]}});};_0x5b6833['on'](_0x3d2f83(0x12b),_0x1f92e9);const _0x2da8b6=(_0x20b203,_0x506885)=>{const _0x383c24=_0x3d2f83;if(!_0x506885||typeof _0x506885!==_0x383c24(0x2af)||_0x506885[_0x62cb9d]!==_0x451c3f)return;const _0x58798f=_0xc6afc4[_0x383c24(0x13d)](_0x20b203[_0x383c24(0x14c)][_0x383c24(0x2c5)]);if(_0x58798f){_0x58798f[_0x383c24(0x1eb)]={..._0x506885[_0x383c24(0x1eb)],'at':Date[_0x383c24(0x330)]()};if(_0x506885['processing']!==undefined)_0x58798f[_0x383c24(0x1fa)]=_0x506885[_0x383c24(0x1fa)];}};_0x5b6833['on'](_0x3d2f83(0x12b),_0x2da8b6),_0x5b6833['on'](_0x3d2f83(0x321),(_0x58c4c8,_0x238d79,_0x35e83d)=>{const _0x362e88=_0x3d2f83,_0x179d65=_0x58c4c8[_0x362e88(0x14c)][_0x362e88(0x2c5)],_0x122c0f=_0x127299(_0x58c4c8),_0x2c7ac6=_0xc6afc4['get'](_0x179d65);if(_0x2c7ac6&&_0x11dd37?.[_0x362e88(0x23f)])_0x11dd37['processes'][_0x362e88(0x158)](_0x179d65+':'+_0x2c7ac6[_0x362e88(0x297)])[_0x362e88(0x11f)](()=>{});_0xc6afc4[_0x362e88(0x116)](_0x179d65),console['log'](_0x362e88(0x323)+_0x179d65+_0x362e88(0x287)+(_0x122c0f??'?')+_0x362e88(0x1a8)+(_0x362e88(0x2cf)+_0x238d79+_0x362e88(0x265)+(_0x35e83d??_0x362e88(0x1a6))+_0x362e88(0x12e)+_0xc6afc4['size']+_0x362e88(0x332))),_0xa85046();if(_0x45c136||_0x122c0f==null)return;const _0x5ba4f3=_0x25c4b4[_0x362e88(0x13d)](_0x122c0f);if(!_0x5ba4f3||_0x5ba4f3[_0x362e88(0x32b)])return;const _0x31b6da=Date[_0x362e88(0x330)]();_0x5ba4f3[_0x362e88(0x15c)][_0x362e88(0x1b6)](_0x31b6da),_0x5ba4f3[_0x362e88(0x15c)]=_0x5ba4f3['deaths']['filter'](_0x30e421=>_0x31b6da-_0x30e421<=_0x152d68);if(_0x5ba4f3[_0x362e88(0x15c)]['length']>=_0x2fbd4b){_0x5ba4f3['dead']=!![],console['error'](_0x362e88(0x160)+_0x122c0f+'\x20died\x20'+_0x5ba4f3[_0x362e88(0x15c)]['length']+'\x20times\x20in\x20'+(_0x152d68+_0x362e88(0x2e2)+_0xc6afc4[_0x362e88(0x209)]+'\x20worker(s)\x20still\x20serving'));return;}_0x5ba4f3[_0x362e88(0x2d7)]++;const _0x581306=Math[_0x362e88(0x2ab)](_0x21a8e0,_0xca6b4e*0x2**(_0x5ba4f3[_0x362e88(0x2d7)]-0x1));console[_0x362e88(0x2bc)](_0x362e88(0x21d)+_0x122c0f+_0x362e88(0x208)+_0x581306+_0x362e88(0x328)+_0x5ba4f3[_0x362e88(0x2d7)]+')'),_0x5ba4f3['respawnTimer']=setTimeout(()=>{const _0x4a4081=_0x362e88;_0x5ba4f3[_0x4a4081(0x169)]=null;if(_0x45c136||_0x5ba4f3['dead'])return;const _0x21e5e0=_0x128195(_0x122c0f);_0x21e5e0[_0x4a4081(0x1b5)]('listening',()=>{const _0x16f4cd=_0x4a4081;if(_0x25c4b4[_0x16f4cd(0x13d)](_0x122c0f)===_0x5ba4f3)_0x5ba4f3[_0x16f4cd(0x2d7)]=0x0;});},_0x581306),_0x5ba4f3[_0x362e88(0x169)][_0x362e88(0x1f8)]?.();});const _0x59d7fe=[..._0xc6afc4[_0x3d2f83(0x16a)]()];console['log']('[okdb-cluster]\x20primary\x20pid='+process[_0x3d2f83(0x2c5)]+_0x3d2f83(0x17a)+_0x49cf06+_0x3d2f83(0x284)+_0x44bd80+':\x20'+('['+_0x59d7fe['join'](',\x20')+']'));const _0x304917={'_isClusterController':!![],'port':_0x44bd80,'primaryOkdb':_0x11dd37??null,'status'(){const _0x3afa59=_0x3d2f83;return{'clustered':!![],'primaryPid':process['pid'],'port':_0x44bd80,'primaryRole':_0x11dd37?.['role']??null,'processorPid':null,'supervisorPid':process[_0x3afa59(0x2c5)],'workers':[..._0xc6afc4[_0x3afa59(0x32d)]()][_0x3afa59(0x2c0)](({worker:_0x3f0be9})=>({'pid':_0x3f0be9[_0x3afa59(0x14c)][_0x3afa59(0x2c5)],'id':_0x3f0be9['id'],'dead':_0x3f0be9[_0x3afa59(0x121)]()}))};},async 'close'(){const _0x26c091=_0x3d2f83;_0x45c136=!![];for(const _0x24f1bf of _0x25c4b4[_0x26c091(0x32d)]()){_0x24f1bf['dead']=!![],_0x24f1bf['respawnTimer']&&(clearTimeout(_0x24f1bf[_0x26c091(0x169)]),_0x24f1bf['respawnTimer']=null);}clearInterval(_0x442611),_0x5b6833[_0x26c091(0x151)](_0x26c091(0x12b),_0x1f92e9),_0x5b6833[_0x26c091(0x151)](_0x26c091(0x12b),_0x2da8b6),_0x11dd37?.[_0x26c091(0x252)]?.['off']?.(_0x4b8e80['SYSTEM_PROC'],_0x2d57f4);if(_0x11dd37?.[_0x26c091(0x252)]?.[_0x26c091(0x151)])for(const {event:_0x5c8649,handler:_0x249e4e}of _0x4de500){try{_0x11dd37[_0x26c091(0x252)][_0x26c091(0x151)](_0x5c8649,_0x249e4e);}catch{}}_0x4de500[_0x26c091(0x1e5)]=0x0;const _0x3c4528=[..._0xc6afc4[_0x26c091(0x32d)]()][_0x26c091(0x2c0)](({worker:_0x38742f})=>_0x38742f);if(_0x3c4528[_0x26c091(0x1e5)]===0x0)return;await Promise[_0x26c091(0x145)](_0x3c4528[_0x26c091(0x2c0)](_0x13f0ca=>new Promise(_0x5f3b98=>{const _0x5e03dd=_0x26c091;if(_0x13f0ca[_0x5e03dd(0x121)]()){_0x5f3b98();return;}let _0x5610b8=![];const _0x4b6cf6=()=>{if(_0x5610b8)return;_0x5610b8=!![];if(_0x1d9715)clearTimeout(_0x1d9715);_0x5f3b98();};_0x13f0ca[_0x5e03dd(0x1b5)](_0x5e03dd(0x321),_0x4b6cf6);const _0x1d9715=setTimeout(()=>{const _0x2c6a63=_0x5e03dd;try{_0x13f0ca[_0x2c6a63(0x14c)][_0x2c6a63(0x2f1)]();}catch{}},_0x585704+0x1f4);_0x1d9715[_0x5e03dd(0x1f8)]?.();try{_0x13f0ca['disconnect']();}catch{try{_0x13f0ca['process'][_0x5e03dd(0x2f1)]();}catch{}}})));}};return _0x304917;}async function _0x99a860({makeOkdb:_0x6550ae,port:_0x1b0105}){const _0x15a9bc=_0x6c9dc6,_0x57fc02=await _0x6550ae();return _0x50f589(_0x57fc02),_0x57fc02[_0x15a9bc(0x186)]['listen'](_0x1b0105);}function _0x50f589(_0x1ee062){const _0x4c12cd=_0x6c9dc6;if(!_0x1ee062||_0x1ee062[_0x4c12cd(0x1f5)])return;_0x1ee062[_0x4c12cd(0x1f5)]=!![];try{const {OKDBChangefeed:_0x58b203}=requireOkdbChangefeed(),_0x1b2141=_0x1ee062[_0x4c12cd(0x296)];if(_0x1b2141&&typeof _0x1b2141['attachFeed']===_0x4c12cd(0x211)){const _0x443c73=new _0x58b203(_0x1ee062);_0x443c73[_0x4c12cd(0x1c7)](),_0x1b2141[_0x4c12cd(0x14b)](_0x443c73),_0x1ee062[_0x4c12cd(0x1bf)]=_0x443c73;}}catch(_0x3cb767){_0x1ee062[_0x4c12cd(0x2bc)]?.[_0x4c12cd(0x2c8)]?.('[okdb-cluster]\x20change-feed\x20init\x20failed:\x20'+(_0x3cb767?.[_0x4c12cd(0x12b)]??_0x3cb767),{'feature':_0x4c12cd(0x2eb)});}const _0x46e003=_0x2b7bdb=>{const _0x3d333a=_0x4c12cd;if(!_0x2b7bdb||typeof _0x2b7bdb!==_0x3d333a(0x2af)||_0x2b7bdb[_0x62cb9d]==null)return;if(_0x2b7bdb[_0x62cb9d]===_0x3af544)try{_0x1ee062['_adminRelay']?.[_0x3d333a(0x24c)]?.(_0x2b7bdb[_0x3d333a(0x226)],_0x2b7bdb[_0x3d333a(0x1b4)]);}catch{}};process['on']('message',_0x46e003),_0x1ee062['_clusterOnMessage']=_0x46e003;{let _0x34f9eb=process[_0x4c12cd(0x1d5)](),_0x5b0ab6=Date[_0x4c12cd(0x330)]();const _0xa494fd=()=>{const _0x148c87=_0x4c12cd;if(typeof process[_0x148c87(0x266)]!==_0x148c87(0x211)||!process[_0x148c87(0x2d3)])return;const _0x58fc17=Date[_0x148c87(0x330)](),_0x42e0df=process[_0x148c87(0x1d5)](),_0x1ef192=(_0x58fc17-_0x5b0ab6)*0x3e8,_0x17105f=_0x42e0df[_0x148c87(0x23d)]-_0x34f9eb[_0x148c87(0x23d)]+(_0x42e0df[_0x148c87(0x283)]-_0x34f9eb[_0x148c87(0x283)]),_0x5750dc=_0x1ef192>0x0?Math[_0x148c87(0x2ab)](0x64,Math[_0x148c87(0x18e)](_0x17105f/(_0x1ef192*(_0x5e068b[_0x148c87(0x282)]()[_0x148c87(0x1e5)]||0x1))*0x64)):0x0;_0x34f9eb=_0x42e0df,_0x5b0ab6=_0x58fc17;const _0x347bd3=process[_0x148c87(0x118)]();let _0x29ca5e=null;try{_0x29ca5e=_0x1ee062[_0x148c87(0x25e)]?.[_0x148c87(0x1a0)]?_0x1ee062[_0x148c87(0x23f)]?.[_0x148c87(0x303)]?.()??null:null;}catch{}try{process[_0x148c87(0x266)]({[_0x62cb9d]:_0x451c3f,'stats':{'rss':_0x347bd3[_0x148c87(0x1be)],'heapUsed':_0x347bd3['heapUsed'],'heapTotal':_0x347bd3[_0x148c87(0x2ec)],'external':_0x347bd3['external'],'cpuPct':_0x5750dc,'cpuWindowMs':Math[_0x148c87(0x18e)](_0x1ef192/0x3e8)||null},'processing':_0x29ca5e});}catch{}},_0x2cec7f=Math[_0x4c12cd(0x308)](0x3e8,Number(process.env.OKDB_STATS_INTERVAL_MS)||0x1388),_0x41b51e=setInterval(_0xa494fd,_0x2cec7f);_0x41b51e['unref']?.(),_0xa494fd();for(const _0x614009 of['processor:paused',_0x4c12cd(0x1f2)]){_0x1ee062[_0x4c12cd(0x252)]?.['on']?.(_0x614009,()=>{try{_0xa494fd();}catch{}});}}let _0x2ce45b=![];const _0x383f7a=async _0x170d93=>{const _0x11d92e=_0x4c12cd;if(_0x2ce45b)return;_0x2ce45b=!![];const _0x29fd19=setTimeout(()=>process[_0x11d92e(0x321)](_0x170d93),_0x585704);_0x29fd19[_0x11d92e(0x1f8)]?.();try{await _0x1ee062[_0x11d92e(0x1ff)]?.();}catch{}process[_0x11d92e(0x321)](_0x170d93);};process['on']('disconnect',()=>_0x383f7a(0x0));if(process['platform']!==_0x4c12cd(0x1b3)){const _0xe01673=setInterval(()=>{const _0x4b47db=_0x4c12cd;if(process[_0x4b47db(0x2c1)]===0x1)_0x383f7a(0x0);},_0xaef4e2);_0xe01673[_0x4c12cd(0x1f8)]?.(),_0x1ee062[_0x4c12cd(0x2f8)]=_0xe01673;}}return okdbCluster={'runClustered':_0x5d2589,'attachWorkerCluster':_0x50f589},okdbCluster;}var hasRequiredOkdbHttpWorkerChild;function requireOkdbHttpWorkerChild(){const _0x4081f3=_0x1d447a;if(hasRequiredOkdbHttpWorkerChild)return okdbHttpWorkerChild$1;hasRequiredOkdbHttpWorkerChild=0x1;const _0x278402=require$$0$5,{attachWorkerCluster:_0x29f193}=requireOkdbCluster();async function _0x29ef25(){const _0x238f8f=_0x39df,_0x3dc09e=process.env.OKDB_HTTP_CHILD;if(!_0x3dc09e)throw new Error(_0x238f8f(0x1ed));const {rootPath:_0x52d1bd,port:_0x5a5e2a,options:options={},logLevel:logLevel='info'}=JSON[_0x238f8f(0x166)](_0x3dc09e);if(!_0x52d1bd||!_0x5a5e2a)throw new Error(_0x238f8f(0x2a7));const _0x21db62=new _0x278402(_0x52d1bd,{...options,'engines':![],'processors':![],'compaction':![]});_0x21db62[_0x238f8f(0x2bc)]['detachConsole']?.();const _0x53fc0d=process.env.OKDB_CLUSTER_SLOT??'?',_0x5b01a6={'debug':0x0,'info':0x1,'warn':0x2,'error':0x3},_0x5d11b0=_0x5b01a6[logLevel]??_0x5b01a6[_0x238f8f(0x1ec)];_0x21db62[_0x238f8f(0x2bc)]['attach'](_0x58fbaf=>{const _0x6df01e=_0x238f8f;if((_0x5b01a6[_0x58fbaf[_0x6df01e(0x2ef)]]??0x1)<_0x5d11b0)return;try{process['send']?.({'__okdbCluster':_0x6df01e(0x2bc),'slot':_0x53fc0d,'pid':process[_0x6df01e(0x2c5)],'entry':_0x58fbaf});}catch{}}),await _0x21db62[_0x238f8f(0x139)](),_0x29f193(_0x21db62),await _0x21db62[_0x238f8f(0x186)][_0x238f8f(0x2b4)](_0x5a5e2a);}return _0x29ef25()[_0x4081f3(0x11f)](_0x59fb1d=>{const _0x3d9ccf=_0x4081f3;try{process[_0x3d9ccf(0x266)]?.({'__okdbCluster':_0x3d9ccf(0x2bc),'slot':process.env.OKDB_CLUSTER_SLOT??'?','pid':process[_0x3d9ccf(0x2c5)],'entry':{'level':_0x3d9ccf(0x268),'msg':_0x3d9ccf(0x1db)+(_0x59fb1d?.['message']??_0x59fb1d)}});}catch{}process['exit'](0x1);}),okdbHttpWorkerChild$1;}var okdbHttpWorkerChildExports=requireOkdbHttpWorkerChild(),okdbHttpWorkerChild=getDefaultExportFromCjs(okdbHttpWorkerChildExports);module[_0x1d447a(0x12f)]=okdbHttpWorkerChild;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x411ba7=_0x41c2;(function(_0xe366b1,_0x1f87bc){const _0x57ef64=_0x41c2,_0x3e4c79=_0xe366b1();while(!![]){try{const _0x406f5b=-parseInt(_0x57ef64(0x1ce))/0x1*(-parseInt(_0x57ef64(0x1cd))/0x2)+-parseInt(_0x57ef64(0x1d6))/0x3+parseInt(_0x57ef64(0x1e8))/0x4*(-parseInt(_0x57ef64(0x1b1))/0x5)+parseInt(_0x57ef64(0x1de))/0x6+parseInt(_0x57ef64(0x1a1))/0x7+-parseInt(_0x57ef64(0x1e0))/0x8+parseInt(_0x57ef64(0x1cb))/0x9;if(_0x406f5b===_0x1f87bc)break;else _0x3e4c79['push'](_0x3e4c79['shift']());}catch(_0x411a45){_0x3e4c79['push'](_0x3e4c79['shift']());}}}(_0x4939,0xb9e18));function _0x4939(){const _0x51f83d=['resetIndex','remove','setTtl','type:registered','ref:violation_resolved','dropping','_activateViewStorage','dropIndex','catch','VIEW_PROGRESS','3725715JpWwoh','ttl:expired','txn:end','./okdb','error','worker_threads','ttl:set','fts:registered','resetFts','system:clock_change','created','creating','__esModule','exit','sync:apply','dropSchema','license:removed','fts:drop','view:progress','_prepareViewDict','unique:violation_resolved','system:poke','index:progress','system:stopped','default','progress','1199160lNLhXH','freeze','2104MNvHWi','1211GDfDNG','registerIndex','stopping','index:drop','events','waiting','resetting','ttl:clear','2280171cQlwbE','txn:rollback','halted','call','prototype','item:create','index:registered','_runBootstrapScanPhases','8697642JofEIM','exports','8556352XSPXlT','license:invalid','registerFts','dropType','index:reset','open','setSchema','ref:violation','4oQwtCV','unique:violation','started','stopped','system:type_drop','bus:drain','bus:env_release','registerType','bus:type_drop','3355051VEOZuS','txn:start','system:drain','system:proc','postMessage','stack'];_0x4939=function(){return _0x51f83d;};return _0x4939();}var require$$0=require(_0x411ba7(0x1b6)),require$$1=require(_0x411ba7(0x1b4));function _0x41c2(_0x25a698,_0x1ad571){_0x25a698=_0x25a698-0x19b;const _0x493935=_0x4939();let _0x41c2a2=_0x493935[_0x25a698];return _0x41c2a2;}function getDefaultExportFromCjs(_0x4170cc){const _0x5c1e3e=_0x411ba7;return _0x4170cc&&_0x4170cc[_0x5c1e3e(0x1bd)]&&Object[_0x5c1e3e(0x1da)]['hasOwnProperty'][_0x5c1e3e(0x1d9)](_0x4170cc,_0x5c1e3e(0x1c9))?_0x4170cc[_0x5c1e3e(0x1c9)]:_0x4170cc;}var okdbViewsBootstrapWorker$1={},okdbEnums,hasRequiredOkdbEnums;function requireOkdbEnums(){const _0x5de173=_0x411ba7;if(hasRequiredOkdbEnums)return okdbEnums;hasRequiredOkdbEnums=0x1;const _0x372b0c={'PUT':'put','REMOVE':_0x5de173(0x1a8),'INDEX_DROP':_0x5de173(0x1ae),'INDEX_REGISTER':_0x5de173(0x1cf),'INDEX_RESET':_0x5de173(0x1a7),'TYPE_REGISTER':_0x5de173(0x19f),'TYPE_DROP':_0x5de173(0x1e3),'FTS_REGISTER':_0x5de173(0x1e2),'FTS_DROP':'dropFts','FTS_RESET':_0x5de173(0x1b9),'SCHEMA_SET':_0x5de173(0x1e6),'SCHEMA_DROP':_0x5de173(0x1c0),'TTL_SET':_0x5de173(0x1a9),'TTL_CLEAR':'clearTtl'},_0x6d7481={'SYSTEM_READY':'system:ready','SYSTEM_STOPPED':_0x5de173(0x1c8),'SYSTEM_CLOCK_CHANGE':_0x5de173(0x1ba),'SYSTEM_POKE':_0x5de173(0x1c6),'SYSTEM_DRAIN':_0x5de173(0x1a3),'SYSTEM_TYPE_DROP':_0x5de173(0x19c),'SYSTEM_PROC':_0x5de173(0x1a4),'SYSTEM_BUS_STATE_CHANGE':'system:bus_state_change','ITEM_CREATE':_0x5de173(0x1db),'ITEM_UPDATE':'item:update','ITEM_REMOVE':'item:remove','INDEX_RESET':_0x5de173(0x1e4),'INDEX_READY':'index:ready','INDEX_PROGRESS':_0x5de173(0x1c7),'VIEW_PROGRESS':_0x5de173(0x1c3),'INDEX_DROP':_0x5de173(0x1d1),'INDEX_REGISTERED':_0x5de173(0x1dc),'FTS_REGISTERED':_0x5de173(0x1b8),'FTS_DROP':_0x5de173(0x1c2),'FTS_RESET':'fts:reset','SCHEMA_SET':'schema:set','SCHEMA_DROP':'schema:drop','UNIQUE_VIOLATION':_0x5de173(0x1e9),'UNIQUE_VIOLATION_RESOLVED':_0x5de173(0x1c5),'REF_VIOLATION':_0x5de173(0x1e7),'REF_VIOLATION_RESOLVED':_0x5de173(0x1ab),'SYNC_APPLY':_0x5de173(0x1bf),'TXN_START':_0x5de173(0x1a2),'TXN_END':_0x5de173(0x1b3),'TXN_ROLLBACK':_0x5de173(0x1d7),'TYPE_REGISTERED':_0x5de173(0x1aa),'TYPE_DROP':'type:drop','ENV_OPENED':'env:opened','ENV_REMOVED':'env:removed','SYSTEM_ENV_RELEASE':'system:env_release','TTL_EXPIRED':_0x5de173(0x1b2),'TTL_SET':_0x5de173(0x1b7),'TTL_CLEAR':_0x5de173(0x1d5),'LICENSE_INVALID':_0x5de173(0x1e1),'LICENSE_ADDED':'license:added','LICENSE_ACTIVATED':'license:activated','LICENSE_REMOVED':_0x5de173(0x1c1)},_0x2b2f63={'CREATING':_0x5de173(0x1bc),'RESETTING':_0x5de173(0x1d4),'READY':'ready','DROPPING':_0x5de173(0x1ac),'WAITING':_0x5de173(0x1d3)},_0x469a15={'CREATED':_0x5de173(0x1bb),'STARTING':'starting','STARTED':_0x5de173(0x1ea),'STOPPING':_0x5de173(0x1d0),'STOPPED':_0x5de173(0x19b)},_0x2afcff={'CREATING':'creating','READY':'ready','HALTED':_0x5de173(0x1d8),'STOPPED':_0x5de173(0x19b),'RESETTING':_0x5de173(0x1d4)},_0x146020=Object[_0x5de173(0x1cc)]({'POKE':'bus:poke','DRAIN':_0x5de173(0x19d),'TYPE_DROP':_0x5de173(0x1a0),'PROC':'bus:proc','ENV_RELEASE':_0x5de173(0x19e)});return okdbEnums={'BUS_EVENTS':_0x146020,'CHANGE_ACTIONS':_0x372b0c,'EVENTS':_0x6d7481,'INDEX_STATE':_0x2b2f63,'OKDB_STATE':_0x469a15,'VIEW_STATE':_0x2afcff},okdbEnums;}var hasRequiredOkdbViewsBootstrapWorker;function requireOkdbViewsBootstrapWorker(){const _0x5c0f6a=_0x411ba7;if(hasRequiredOkdbViewsBootstrapWorker)return okdbViewsBootstrapWorker$1;hasRequiredOkdbViewsBootstrapWorker=0x1;const {parentPort:_0x4f0844,workerData:_0x3b65c0}=require$$0,_0x26a40d=require$$1,{EVENTS:_0x374553}=requireOkdbEnums();async function _0x204b1d(){const _0x569ace=_0x41c2,{rootPath:_0x4555db,envName:_0x511fd1,viewName:_0x3184cc,definition:_0x38d0ec}=_0x3b65c0,_0x39c1b4=new _0x26a40d(_0x4555db,{'admin':![],'mcp':![],'timeMachine':![],'engines':![],'processors':![],'compaction':![],'_skipBootRuntime':!![],'processes':![]});await _0x39c1b4[_0x569ace(0x1e5)]();const _0x254a7c=_0x39c1b4['env'](_0x511fd1);_0x254a7c[_0x569ace(0x1d2)]['on'](_0x374553[_0x569ace(0x1b0)],_0x598ff5=>{const _0x5e2de4=_0x569ace;if(_0x598ff5?.['name']!==_0x3184cc)return;try{_0x4f0844['postMessage']({'type':_0x5e2de4(0x1ca),'event':_0x598ff5});}catch{}}),await _0x254a7c['views'][_0x569ace(0x1c4)](_0x38d0ec),await _0x254a7c['views'][_0x569ace(0x1ad)](_0x3184cc,_0x38d0ec),await _0x254a7c['views'][_0x569ace(0x1dd)](_0x3184cc,_0x38d0ec),_0x4f0844[_0x569ace(0x1a5)]({'type':'done'}),await _0x39c1b4['close'](),process['exit'](0x0);}return _0x204b1d()[_0x5c0f6a(0x1af)](_0xf3bd00=>{const _0x34d8a9=_0x5c0f6a;try{_0x4f0844[_0x34d8a9(0x1a5)]({'type':_0x34d8a9(0x1b5),'error':_0xf3bd00['message']??String(_0xf3bd00),'stack':_0xf3bd00[_0x34d8a9(0x1a6)]});}catch{}process[_0x34d8a9(0x1be)](0x1);}),okdbViewsBootstrapWorker$1;}var okdbViewsBootstrapWorkerExports=requireOkdbViewsBootstrapWorker(),okdbViewsBootstrapWorker=getDefaultExportFromCjs(okdbViewsBootstrapWorkerExports);module[_0x411ba7(0x1df)]=okdbViewsBootstrapWorker;
|