{"version":3,"sources":["jsdelivr-header.js","/npm/react-seo-robotstxt@1.0.7/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACNA,MAAM,GAAK,QAAQ,MACb,SAAW,QAAQ,2BAEzB,QAAQ,kBAAoB,WAC1B,IAAI,EAAQ,SAAS,OAAO,MACxB,EAAW,SAAS,OAAO,SAE/B,MAAM,EAAO,sBAET,GAAG,WAAW,IAChB,GAAG,WAAW,GAIhB,IAAI,EAAY,GAAG,kBAAkB,EAAM,CACzC,MAAO,MAGT,EAAU,MAAM,eAAiB,SAAS,OAAO,UAAY,MAE7D,EAAS,SAAQ,CAAC,EAAM,KACtB,EAAU,MAAM,aAAe,EAAO,KAAK,IAG7C,EAAM,SAAQ,CAAC,EAAM,KACnB,EAAU,MAAM,UAAY,EAAO,KAAK,IAG1C,EAAU,KACZ","file":"/npm/react-seo-robotstxt@1.0.7/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/react-seo-robotstxt@1.0.7/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 fs = require(\"fs\");\r\nconst policies = require(\"../../robots-txt.config\");\r\n\r\nexports.generateRobotText = function () {\r\n  var allow = policies.policy.allow;\r\n  var disAllow = policies.policy.disallow;\r\n\r\n  const path = \"./public/robots.txt\";\r\n\r\n  if (fs.existsSync(path)) {\r\n    fs.unlinkSync(path);\r\n  }\r\n\r\n  // use public folder for react\r\n  var robotstxt = fs.createWriteStream(path, {\r\n    flags: \"a\", // 'a' means appending (old data will be preserved)\r\n  });\r\n\r\n  robotstxt.write(\"User-agent: \" + policies.policy.userAgent + \"\\n\");\r\n\r\n  disAllow.forEach((item, index) => {\r\n    robotstxt.write(\"Disallow: \" + item + \"\\n\");\r\n  });\r\n\r\n  allow.forEach((item, index) => {\r\n    robotstxt.write(\"Allow: \" + item + \"\\n\");\r\n  });\r\n\r\n  robotstxt.end();\r\n};\r\n"]}