(()=>{"use strict";var e={79896:e=>{e.exports=require("fs")},58611:e=>{e.exports=require("http")}},r={};function s(t){var o=r[t];if(void 0!==o)return o.exports;var n=r[t]={exports:{}};return e[t](n,n.exports,s),n.exports}var t={};(()=>{var e=t;Object.defineProperty(e,"__esModule",{value:!0});const r=s(58611),o=s(79896);function n(e){console.error(`Failed to get SSH credentials: ${e}`),console.error(JSON.stringify(process.argv)),process.exit(1)}!function(e){if(!process.env.VSCODE_SSH_ASKPASS_HANDLE)return n("Missing handle");if(!process.env.VSCODE_SSH_ASKPASS_RESULT)return n("Missing output file");const s=process.env.VSCODE_SSH_ASKPASS_RESULT,t=process.env.VSCODE_SSH_ASKPASS_HANDLE,i=e.slice(2).join(" "),S={socketPath:t,path:"/",method:"POST"},c=r.request(S,(e=>{if(200!==e.statusCode)return n(`Bad status code: ${e.statusCode}`);const r=[];e.setEncoding("utf8"),e.on("data",(e=>r.push(e))),e.on("end",(()=>{const e=r.join("");let t;try{t=JSON.parse(e)}catch(e){return n("Error parsing response:"+e.message)}t.canceled?process.exit(1):o.writeFileSync(s,t.response+"\n"),setTimeout((()=>process.exit(0)),0)}))}));c.on("error",(e=>n("Error in request: "+e.message))),c.write(JSON.stringify({request:i})),c.end()}(process.argv)})();var o=exports;for(var n in t)o[n]=t[n];t.__esModule&&Object.defineProperty(o,"__esModule",{value:!0})})();
//# sourceMappingURL=askpass-main.js.map