{"version":3,"sources":["jsdelivr-header.js","/npm/gulp-jison@1.2.0/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACNA,IAAI,QAAU,QAAQ,YAClB,MAAQ,QAAQ,aAChB,YAAc,MAAM,YACpB,UAAY,QAAQ,SAAS,UAEjC,MAAM,YAAc,aAEpB,OAAO,QAAU,SAAU,GAGvB,OAFA,EAAU,GAAW,CAAC,EAEf,QAAQ,KAAI,SAAU,EAAM,EAAK,GACpC,GAAI,EAAK,SAEL,OADA,KAAK,KAAK,GACH,IAGX,GAAI,EAAK,WAEL,OADA,KAAK,KAAK,QAAS,IAAI,YAAY,YAAa,0BACzC,IAGX,GAAI,EAAK,WAAY,CACjB,IACI,EAAK,SAAW,IAAI,OAAO,IAAI,UAAU,EAAK,SAAS,WAAY,GAAS,YAC5E,EAAK,KAAO,MAAM,iBAAiB,EAAK,KAAM,OAC9C,KAAK,KAAK,EACd,CAAE,MAAO,GACL,KAAK,KAAK,QAAS,IAAI,YAAY,YAAa,GACpD,CACA,OAAO,GACX,CACJ,GACJ","file":"/npm/gulp-jison@1.2.0/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.37.0.\n * Original file: /npm/gulp-jison@1.2.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","var through = require('through2');\r\nvar gutil = require('gulp-util');\r\nvar PluginError = gutil.PluginError;\r\nvar Generator = require('jison').Generator;\r\n\r\nconst PLUGIN_NAME = 'gulp-jison';\r\n\r\nmodule.exports = function (options) {\r\n    options = options || {};\r\n\r\n    return through.obj(function (file, enc, callback) {\r\n        if (file.isNull()) {\r\n            this.push(file);\r\n            return callback();\r\n        }\r\n\r\n        if (file.isStream()) {\r\n            this.emit('error', new PluginError(PLUGIN_NAME, 'Streams not supported'));\r\n            return callback();\r\n        }\r\n\r\n        if (file.isBuffer()) {\r\n            try {\r\n                file.contents = new Buffer(new Generator(file.contents.toString(), options).generate());\r\n                file.path = gutil.replaceExtension(file.path, \".js\");\r\n                this.push(file);\r\n            } catch (error) {\r\n                this.emit('error', new PluginError(PLUGIN_NAME, error));\r\n            }\r\n            return callback();\r\n        }\r\n    });\r\n};\r\n"]}