(()=>{var o={247:(o,t,e)=>{"use strict";e.d(t,{Z:()=>i});const n=requireModule("node:fs"),r=e(465).Z,i=async()=>{var o=r();o=o.split("/")[o.split("/").length-1];var t=__dirname.split("/");t.pop(),t.pop(),t=t.join("/")+"/plugins";let e=n.readFileSync(`${t}/${o}`,"utf8");e=e.split('version:"')[e.split('version:"').length-1].split('",')[0];const i=await fetch(`https://raw.githubusercontent.com/TBHGodPro/SolarStatsPlugins/main/Plugins%20(Compressed)/${o}`);if(!i||"404: Not Found"==i)return;const s=i.split('version:"')[i.split('version:"').length-1].split('",')[0];(function(o,t){if(o==t)return!1;const e=o.split(".").map((o=>parseInt(o))),n=t.split(".").map((o=>parseInt(o)));var r=0;for(const o of e){if(e[r]{Logger.info(`UPDATING PLUGIN FROM ${e} TO ${s}, PLEASE RESTART SOLAR STATS`),n.writeFile(`${t}/${o}`,i,{},(()=>{}))}),500)}},465:(o,t,e)=>{"use strict";function n({depth:o=0}={}){const t=function({depth:o=0}={}){const t=[],e=new Set;for(const n of function(){const o=Error.prepareStackTrace;Error.prepareStackTrace=(o,t)=>t;const t=(new Error).stack.slice(1);return Error.prepareStackTrace=o,t}()){const r=n.getFileName(),i=null!==n.getTypeName()&&null!==r;if(e.has(r)||(e.add(r),t.unshift(n)),i)return t[o]}}({depth:o});return t&&t.getFileName()}e.d(t,{Z:()=>n})}},t={};function e(n){var r=t[n];if(void 0!==r)return r.exports;var i=t[n]={exports:{}};return o[n](i,i.exports,e),i.exports}e.d=(o,t)=>{for(var n in t)e.o(t,n)&&!e.o(o,n)&&Object.defineProperty(o,n,{enumerable:!0,get:t[n]})},e.o=(o,t)=>Object.prototype.hasOwnProperty.call(o,t),(()=>{e(247).Z();const{PlayerModule:o,Item:t,getConfigSync:n}=toolbox,r=new t(261);r.displayName="§rSkyblock Auto-Harp",r.lore=["","§7Automatically Do Harp Songs (MACRO)","§4§lWARNING: §r§cREQUIRES DECENT PING","","§7Current: §"+(n().modules.skyblockAutoHarp?"aEnabled":"cDisabled")];const i=new o("Skyblock Auto-Harps","Automatically Do Harp Songs (MACRO)",r,"skyblockAutoHarp");var s=null,l=null;async function a(o,t,e,n){if(i.enabled){if("window_click"==t.name&&(l=o.action+1),"set_slot"==t.name&&o.windowId==s&&o.slot>36&&o.slot<44&&155==o.item.blockId){n.write("window_click",{windowId:s,slot:o.slot,mouseButton:2,action:l,mode:3,item:o.item});var r=!0;function a(t,e){"set_slot"==e.name&&t.windowId==s&&t.slot==o.slot&&159==t.item.blockId&&(r=!1)}player.proxy.on("incoming",a),l+=1,setTimeout((()=>{r&&(n.write("window_click",{windowId:s,slot:o.slot,mouseButton:2,action:l,mode:3,item:o.item}),l+=1),player.proxy.removeListener("incoming",a)}),410)}"open_window"==t.name&&JSON.parse(o.windowTitle)?.extra?.[0]?.text?.includes("Harp - ")&&(s=o.windowId,l=1),"close_window"==t.name&&o.windowId==s&&(s=null)}}player.proxy.on("incoming",a),player.proxy.on("outgoing",a),registerPlayerModule(i),registerPlugin({name:"Skyblock Auto-Harp",description:"Automatically Do Harp Songs (MACRO) | `/ss`",version:"1.1.0",author:"TBHGodPro"})})()})();