{"version":3,"sources":["jsdelivr-header.js","/npm/tbd-pure-server@1.0.5/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACNA,MAAM,QAAU,QAAQ,eAClB,OAAS,QAAQ,gBACjB,GAAK,QAAQ,MAYb,4BAA8B,CAAC,EAAO,EAAS,KAC/C,IACF,OAAO,GAAK,EAAQ,IAAM,GAAG,UAC7B,OAAO,KAAO,EAAQ,MAAQ,KAC9B,OAAO,OAAS,EAAQ,SAAU,EAClC,OAAO,UAAY,EAAQ,WAAa,EAAQ,UAChD,OAAO,kBAAoB,EAAQ,mBAAqB,EAAQ,iBAAmB,KACnF,OAAO,gBAAqD,kBAA5B,EAAQ,gBAAgC,EAAQ,gBAAoD,kBAA3B,EAAQ,gBAA+B,EAAQ,gBAE1J,QAAQ,MAAM,EAAO,OAAQ,EAAG,EAG5B,IAAM,CACV,4BAA6B,4BAC7B,OAAQ,QAAQ,QAGlB,OAAO,QAAU,CACf","file":"/npm/tbd-pure-server@1.0.5/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/tbd-pure-server@1.0.5/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","const devtool = require('./lib/index');\nconst config = require('./lib/config');\nconst IP = require('ip');\n\n/**\n * Start server and lanunch chrome.\n * @param {string} entry filename/floder\n * @param {Object} config\n * - ip ip of node server.\n * - port port of node server\n * - remoteDebugPort remote-debug-port of headless.\n * - enableHeadless enable to start headless chromium or not.\n * @param {Function} cb\n */\nconst startServerAndLaunchDevtool = (entry, options, cb) => {\n  if (options) {\n    config.ip = options.ip || IP.address();\n    config.port = options.port || 8088;\n    config.manual = options.manual || false;\n    config.CHANNELID = options.CHANNELID || options.channelId;\n    config.REMOTE_DEBUG_PORT = options.REMOTE_DEBUG_PORT || options.remoteDebugPort || 9222;\n    config.ENABLE_HEADLESS = typeof options.ENABLE_HEADLESS === 'boolean' ? options.ENABLE_HEADLESS : typeof options.enableHeadless === 'boolean' ? options.enableHeadless : true;\n  }\n  devtool.start(entry, config, cb);\n};\n\nconst api = {\n  startServerAndLaunchDevtool: startServerAndLaunchDevtool,\n  reload: devtool.reload\n};\n\nmodule.exports = {\n  api\n};\n"]}