{"version":3,"file":"open-browser.mjs","names":[],"sources":["../../src/node/open-browser.ts"],"sourcesContent":["// Open URL in default browser on macOS, Linux, and Windows\nimport { exec } from 'node:child_process'\nimport { platform } from 'node:os'\n\nexport function openBrowser(url: string) {\n  switch (platform()) {\n    case 'darwin':\n      exec(`open -u ${url}`)\n      break\n    case 'win32':\n      exec(`start ${url}`)\n      break\n    default:\n      exec(`xdg-open ${url}`)\n  }\n}\n"],"mappings":";;;;AAIA,SAAgB,YAAY,KAAa;AACvC,SAAQ,UAAU,EAAlB;EACE,KAAK;AACH,QAAK,WAAW,MAAM;AACtB;EACF,KAAK;AACH,QAAK,SAAS,MAAM;AACpB;EACF,QACE,MAAK,YAAY,MAAM"}