{"version":3,"sources":["jsdelivr-header.js","/npm/@steedos/plugin-monaco-editor@1.0.0/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACNA,MAAM,QAAU,QAAQ,WAClB,IAAM,UACN,KAAO,QAAQ,QACf,GAAI,QAAQ,MAClB,QAAQ,KAAO,WACX,MAAM,EAAa,KAAK,KAAK,UAAW,SAAU,gBAClD,GAAG,GAAG,WAAW,GAAY,CACzB,MAAM,EAAS,QAAQ,SACjB,EAAY,MAClB,IAAI,EAAa,gBACb,2BAA6B,0BAA0B,uBACvD,EAAa,0BAA0B,qBAAuB,GAClE,EAAO,IAAI,EAAY,QAAQ,OAAO,EAAY,CAAE,OAAQ,KAC5D,OAAO,mBAAmB,IAAI,EAClC,CACJ","file":"/npm/@steedos/plugin-monaco-editor@1.0.0/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/@steedos/plugin-monaco-editor@1.0.0/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 express = require('express');\r\nconst app = express();\r\nconst path = require('path');\r\nconst fs= require('fs');\r\nexports.init = function () {\r\n    const publicPath = path.join(__dirname, \"public\", \"code-builder\");\r\n    if(fs.existsSync(publicPath)){\r\n        const router = express.Router()\r\n        const cacheTime = 1000 * 60 * 60 * 24; \r\n        let routerPath = \"/code-builder\"\r\n        if (__meteor_runtime_config__ && __meteor_runtime_config__.ROOT_URL_PATH_PREFIX)\r\n            routerPath = __meteor_runtime_config__.ROOT_URL_PATH_PREFIX + routerPath;\r\n        router.use(routerPath, express.static(publicPath, { maxAge: cacheTime }));\r\n        WebApp.rawConnectHandlers.use(router);\r\n    }\r\n}"]}