{"version":3,"sources":["jsdelivr-header.js","/npm/@aztec/aztec-faucet@2.1.8/dest/bin/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;OCLS,iBAAoB,+BACpB,2BAA8B,sBAC9B,WAAc,sBACd,2BAA8B,aACvC,MAAM,OAAS,aAAa,qBAGxB,eAAe,OACf,MAAM,EAAS,yBACT,QAAe,OAAO,OAAO,GAC7B,EAAa,uBAAuB,EAAQ,IAAK,QACjD,EAAO,SAAS,QAAQ,KAAK,YAAc,GAAI,KAAO,KAC5D,EAAW,OAAO,GAClB,OAAO,KAAK,kCAAkC,WACxC,QAAQ,SAClB,CACA,OAAO,OAAO,IACV,OAAO,MAAM,GACb,QAAQ,KAAK,EAAE","file":"/npm/@aztec/aztec-faucet@2.1.8/dest/bin/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/@aztec/aztec-faucet@2.1.8/dest/bin/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","#!/usr/bin/env -S node --no-warnings\nimport { createLogger } from '@aztec/foundation/log';\nimport { getFaucetConfigFromEnv } from '../config.js';\nimport { Faucet } from '../faucet.js';\nimport { createFaucetHttpServer } from '../http.js';\nconst logger = createLogger('aztec:faucet:http');\n/**\n * Create and start a new Aztec Node HTTP Server\n */ async function main() {\n    const config = getFaucetConfigFromEnv();\n    const faucet = await Faucet.create(config);\n    const httpServer = createFaucetHttpServer(faucet, '/', logger);\n    const port = parseInt(process.env?.AZTEC_PORT ?? '', 10) || 8080;\n    httpServer.listen(port);\n    logger.info(`Aztec Faucet listening on port ${port}`);\n    await Promise.resolve();\n}\nmain().catch((err)=>{\n    logger.error(err);\n    process.exit(1);\n});\n"]}