{"version":3,"sources":["jsdelivr-header.js","/npm/tinydot@3.1.1/main.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACNA,MAAM,GAAK,QAAQ,MACb,KAAO,QAAQ,QAEf,QAAU,KAAK,KAAK,QAAQ,MAAO,QAEzC,SAAS,UACN,IACG,MACM,EADU,GAAG,aAAa,QAAS,QAChB,MAAM,MAEzB,EAAe,CAAC,EACtB,IAAK,MAAM,KAAQ,EAAU,CAC3B,IAAI,EAAc,EAAK,OACvB,GAAI,EAAY,WAAW,OAAQ,EACjC,SAGF,MAAM,EAAe,EAAY,QAAQ,KACrC,GAAgB,IAClB,EAAc,EAAY,MAAM,EAAG,GAAc,QAGnD,MAAM,EAAQ,EAAY,QAAQ,MAC3B,EAAK,GAAU,CAAC,EAAY,MAAM,EAAG,GAAQ,EAAY,MAAM,EAAQ,IAC1E,GAAO,IAEK,SAAV,EACF,EAAa,EAAI,SAAU,EACR,UAAV,EACT,EAAa,EAAI,SAAU,EACjB,MAAM,GAGhB,EAAa,EAAI,QAAU,EAAM,OAFjC,EAAa,EAAI,QAAU,OAAO,GAKxC,CAEA,OAAO,CACT,CAAE,MAAO,GAEP,OADA,QAAQ,MAAM,GACP,IACT,CACJ,CAEA,OAAO,QAAU","file":"/npm/tinydot@3.1.1/main.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/tinydot@3.1.1/main.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 fs = require('fs');\nconst path = require('path');\n\nconst envPath = path.join(process.cwd(), '.env');\n\nfunction tinydot(){\n   try {\n      const envData = fs.readFileSync(envPath, 'utf8');\n      const envLines = envData.split('\\n');\n    \n      const envVariables = {};\n      for (const line of envLines) {\n        let trimmedLine = line.trim()\n        if (trimmedLine.startsWith('#') ||!trimmedLine) {\n          continue;\n        }\n        // Remove inline comments\n        const commentIndex = trimmedLine.indexOf('#');\n        if (commentIndex > -1) {\n          trimmedLine = trimmedLine.slice(0, commentIndex).trim();\n        }\n\n        const index = trimmedLine.indexOf(\"=\"); \n        const [key, value] =  [trimmedLine.slice(0, index), trimmedLine.slice(index + 1)];\n        if (key && value) {\n          // parse boolean or number\n          if (value === \"true\") {\n            envVariables[key.trim()] = true;\n          } else if (value === \"false\") {\n            envVariables[key.trim()] = false;\n          } else if (!isNaN(value)) {\n            envVariables[key.trim()] = Number(value);\n          } else {\n            envVariables[key.trim()] = value.trim();\n          }\n        }\n      }\n    \n      return envVariables\n    } catch (error) {\n      console.error(error)\n      return null\n    }\n}\n\nmodule.exports = tinydot"]}