Trade.roLocalCommerceState=function(){const root=this.getRoot();return {epoch:_tmpCount,send:_send.slice(),recv:_recv.slice(),pending:{..._tmpCount},title:this.title,zenyInput:root.querySelector('.zeny.send')?.value||'0',zenyRecv:root.querySelector('.zeny.recv')?.textContent||'0',sendLocked:!!root.querySelector('.box.send')?.classList.contains('disabled'),recvLocked:!!root.querySelector('.box.recv')?.classList.contains('disabled'),open:!!this.__active&&!!root?.isConnected};};Trade.roLocalRejectPending=function(index,count,epoch){if(_tmpCount===epoch&&_tmpCount[index]===count)delete _tmpCount[index];};Trade.onKeyDown=function