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AS,CACL,OAAQ,CACJ,YAAa,KAIzB,mBAAoB,CAChB,MAAO,CACH,gBAAiB,CAAC,gCAEtB,QAAQ,GAEZ,gBAAiB,CACb,MAAO,CACH,kBAAmB,CAAC,gCAExB,QAAS,CACL,SAAU,CACN,YAAY,EACZ,aAAc,EACd,aAAc,SAQlC,EAAM,UAAU,SAGhB,EAAM,aAAa,wBACnB,EAAM,aAAa,uBAEnB,EAAM,aAAa,gBAAgB,KAC/B,IAAI,GAAU,EACA,KAAK,KAAK,6BAElB,SAAQ,IACV,MAAM,EAAU,QAAQ,KAAK,GACvB,EAAU,EAAK,QAAQ,yBAA0B,OAElD,GAAG,WAAW,KACf,GAAU,EACV,IAAI,QAAQ,sBAKZ,IAFY,QAAQ,KAAK,KAGzB,GAAU,EACV,IAAI,QAAQ,kBAChB,IAGA,GACA,IAAI,oBACR,IAKJ,EAAM,aAAa,MAAO,CAAC,SAAU,aAIrC,EAAM,aAAa,OAAQ,CAAC,QAAS,WAAY,iBAGjD,EAAM,aAAa,UAAW,CAAC,SAAU,QAC7C","file":"/npm/grunt-ps-uglify@1.4.0-rc.1/Gruntfile.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/grunt-ps-uglify@1.4.0-rc.1/Gruntfile.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","/*\r\n * grunt-ps-uglify\r\n *\r\n * Copyright (c) 2017 Peter Selvaraj\r\n * Licensed under the MIT license.\r\n */\r\n\r\n'use strict';\r\n\r\nconst fs = require('fs');\r\nconst glob = require('fast-glob');\r\nconst { log } = require('console');\r\nconst fileSvc = require('grunt-ps-file');\r\nconst cacheFactory = require('grunt-ps-cache');\r\n\r\ncacheFactory.disableCaching();\r\n\r\nmodule.exports = function (grunt) {\r\n    grunt.initConfig({\r\n        jshint: {\r\n            all: [\r\n                'Gruntfile.js',\r\n                'tasks/**/*.js'\r\n            ],\r\n\r\n            options: {\r\n                jshintrc: '.jshintrc'\r\n            }\r\n        },\r\n\r\n        clean: {\r\n            tests: ['tmp', '.grunt-cache']\r\n        },\r\n\r\n        // Configuration to be run (and then tested).\r\n        psUglify: {\r\n            compress: {\r\n                files: {\r\n                    'tmp/compress.js': ['test/fixtures/src/simple.js']\r\n                },\r\n                options: {\r\n                    mangle: false\r\n                }\r\n            },\r\n            compress_explicit: {\r\n                files: {\r\n                    'tmp/compress_explicit.js': ['test/fixtures/src/simple.js']\r\n                },\r\n                options: {\r\n                    compress: true\r\n                }\r\n            },\r\n            compress_mangle: {\r\n                files: {\r\n                    'tmp/compress_mangle.js': ['test/fixtures/src/simple.js']\r\n                }\r\n            },\r\n            compress_mangle_banner: {\r\n                files: {\r\n                    'tmp/compress_mangle_banner.js': ['test/fixtures/src/simple.js']\r\n                },\r\n                options: {\r\n                    banner: '// banner without sourcemap\\n'\r\n                }\r\n            },\r\n            no_src: {\r\n                files: {\r\n                    'tmp/compress_mangle.js': []\r\n                }\r\n            },\r\n            compress_mangle_except: {\r\n                files: {\r\n                    'tmp/compress_mangle_except.js': ['test/fixtures/src/simple.js']\r\n                },\r\n                options: {\r\n                    mangle: {\r\n                        reserved: ['argumentC']\r\n                    }\r\n                }\r\n            },\r\n            compress_mangle_beautify: {\r\n                files: {\r\n                    'tmp/compress_mangle_beautify.js': ['test/fixtures/src/simple.js']\r\n                },\r\n                options: {\r\n                    beautify: true,\r\n                    footer: '\\n// This is a footer.'\r\n                }\r\n            },\r\n            multifile: {\r\n                files: {\r\n                    'tmp/multifile.js': ['test/fixtures/src/simple.js', 'test/fixtures/src/comments.js']\r\n                },\r\n                options: {\r\n                    mangle: false\r\n                }\r\n            },\r\n            comments: {\r\n                src: 'test/fixtures/src/comments.js',\r\n                dest: 'tmp/comments.js',\r\n                options: {\r\n                    mangle: false,\r\n                    output: {\r\n                        comments: 'some'\r\n                    }\r\n                }\r\n            },\r\n            commentsWithImportant: {\r\n                src: 'test/fixtures/src/comments.js',\r\n                dest: 'tmp/commentsWithImportant.js',\r\n                options: {\r\n                    mangle: false,\r\n                    output: {\r\n                        comments: /^!|@preserve|@license|@cc_on/i\r\n                    }\r\n                }\r\n            },\r\n            wrap: {\r\n                src: 'test/fixtures/src/simple.js',\r\n                dest: 'tmp/wrap.js',\r\n                options: {\r\n                    compress: false,\r\n                    mangle: false,\r\n                    wrap: 'testExport'\r\n                }\r\n            },\r\n            maxLineLen: {\r\n                src: 'test/fixtures/src/simple2.js',\r\n                dest: 'tmp/maxLineLen.js',\r\n                options: {\r\n                    mangle: false,\r\n                    output: {\r\n                        max_line_len: 100\r\n                    }\r\n                }\r\n            },\r\n            ASCIIOnly: {\r\n                src: 'test/fixtures/src/localization.js',\r\n                dest: 'tmp/asciionly.js',\r\n                options: {\r\n                    mangle: false,\r\n                    output: {\r\n                        ascii_only: true\r\n                    }\r\n                }\r\n            },\r\n            screwIE8: {\r\n                src: 'test/fixtures/src/screwIE8.js',\r\n                dest: 'tmp/screwIE8.js',\r\n                options: {\r\n                    ie8: true\r\n                }\r\n            },\r\n            sourcemap_basic: {\r\n                src: 'test/fixtures/src/simple.js',\r\n                dest: 'tmp/sourcemap_basic.js',\r\n                options: {\r\n                    sourceMap: true\r\n                }\r\n            },\r\n            sourcemap_customName: {\r\n                src: 'test/fixtures/src/simple.js',\r\n                dest: 'tmp/sourcemap_customName.js',\r\n                options: {\r\n                    sourceMap: true,\r\n                    sourceMapName: 'tmp/source_map_custom_name'\r\n                }\r\n            },\r\n            sourcemap_customDir: {\r\n                src: 'test/fixtures/src/simple.js',\r\n                dest: 'tmp/sourcemap_customDir.js',\r\n                options: {\r\n                    sourceMap: true,\r\n                    sourceMapName: 'tmp/deep/directory/location/source_map.js.map'\r\n                }\r\n            },\r\n            sourcemap_customRoot: {\r\n                src: 'test/fixtures/src/simple.js',\r\n                dest: 'tmp/sourcemap_customRoot.js',\r\n                options: {\r\n                    sourceMap: {\r\n                        root: 'https://github.com/RReverser/grunt-contrib-uglify/tree/master/tmp'\r\n                    }\r\n                }\r\n            },\r\n            sourcemap_customUrl: {\r\n                src: 'test/fixtures/src/simple.js',\r\n                dest: 'tmp/sourcemap_customUrl.js',\r\n                options: {\r\n                    sourceMap: {\r\n                        url: 'https://www.test.com/test/sourcemap_customUrl.js.map'\r\n                    }\r\n                }\r\n            },\r\n            sourcemap_functionName: {\r\n                src: 'test/fixtures/src/simple.js',\r\n                dest: 'tmp/sourcemap_functionName.js',\r\n                options: {\r\n                    sourceMap: true,\r\n                    sourceMapName: function (dest) {\r\n                        return dest + '.fn.map';\r\n                    }\r\n                }\r\n            },\r\n            sourcemap_multiple: {\r\n                files: {\r\n                    'tmp/sourcemaps_multiple1.js': ['test/fixtures/src/simple.js'],\r\n                    'tmp/sourcemaps_multiple2.js': ['test/fixtures/src/comments.js']\r\n                },\r\n                options: {\r\n                    sourceMap: true\r\n                }\r\n            },\r\n            sourcemap_multipleFunctionNames: {\r\n                files: {\r\n                    'tmp/sourcemaps_multiple1_fnName.js': ['test/fixtures/src/simple.js'],\r\n                    'tmp/sourcemaps_multiple2_fnName.js': ['test/fixtures/src/comments.js']\r\n                },\r\n                options: {\r\n                    sourceMap: true,\r\n                    sourceMapName: function (dest) {\r\n                        return dest + '.fn.map';\r\n                    }\r\n                }\r\n            },\r\n            sourcemapin: {\r\n                files: {\r\n                    'tmp/sourcemapin.js': ['test/fixtures/src/simple2.js']\r\n                },\r\n                options: {\r\n                    mangle: false,\r\n                    banner: '// Hello World\\n',\r\n                    sourceMap: {\r\n                        includeSources: false\r\n                    },\r\n                    sourceMapIn: function () {\r\n                        return 'test/fixtures/src/simple2.map';\r\n                    }\r\n                }\r\n            },\r\n            sourcemap_sources: {\r\n                files: {\r\n                    'tmp/sourcemap_sources.js': ['test/fixtures/src/simple.js']\r\n                },\r\n                options: {\r\n                    sourceMap: {\r\n                        includeSources: true\r\n                    }\r\n                }\r\n            },\r\n            sourcemapin_sources: {\r\n                files: {\r\n                    'tmp/sourcemapin_sources.js': ['test/fixtures/src/simple2.js']\r\n                },\r\n                options: {\r\n                    sourceMap: {\r\n                        includeSources: true\r\n                    },\r\n                    sourceMapIn: function () {\r\n                        return 'test/fixtures/src/simple2.map';\r\n                    }\r\n                }\r\n            },\r\n            sourcemapin_customUrl: {\r\n                files: {\r\n                    'tmp/sourcemapin_customUrl.js': ['test/fixtures/src/simple2.js']\r\n                },\r\n                options: {\r\n                    sourceMap: {\r\n                        includeSources: true,\r\n                        url: 'sourcemapin_customUrl.js.map'\r\n                    },\r\n                    sourceMapIn: function () {\r\n                        return 'test/fixtures/src/simple2.map';\r\n                    }\r\n                }\r\n            },\r\n            expression_json: {\r\n                files: {\r\n                    'tmp/expression.json': ['test/fixtures/src/simple.json']\r\n                },\r\n                options: {\r\n                    parse: {\r\n                        expression: true\r\n                    },\r\n                    mangle: false,\r\n                    compress: false\r\n                }\r\n            },\r\n            expression_js: {\r\n                files: {\r\n                    'tmp/expression.js': ['test/fixtures/src/expression.js']\r\n                },\r\n                options: {\r\n                    parse: {\r\n                        expression: true\r\n                    },\r\n                    mangle: false,\r\n                    compress: false\r\n                }\r\n            },\r\n            mangleprops: {\r\n                files: {\r\n                    'tmp/mangleprops.js': ['test/fixtures/src/mangleprops.js']\r\n                },\r\n                options: {\r\n                    mangle: {\r\n                        properties: true\r\n                    }\r\n                }\r\n            },\r\n            mangleprops_withExcept: {\r\n                files: {\r\n                    'tmp/mangleprops_withExcept.js': ['test/fixtures/src/mangleprops.js']\r\n                },\r\n                options: {\r\n                    mangle: {\r\n                        reserved: ['dontMangleMeVariable'],\r\n                        properties: true\r\n                    }\r\n                }\r\n            },\r\n            mangleprops_withExceptionsFiles: {\r\n                files: {\r\n                    'tmp/mangleprops_withExceptionsFiles.js': ['test/fixtures/src/mangleprops.js']\r\n                },\r\n                options: {\r\n                    mangle: {\r\n                        toplevel: true,\r\n                        properties: true\r\n                    },\r\n                    exceptionsFiles: ['test/fixtures/src/exceptionsfile1.json', 'test/fixtures/src/exceptionsfile2.json']\r\n                }\r\n            },\r\n            mangleprops_withExceptAndExceptionsFiles: {\r\n                files: {\r\n                    'tmp/mangleprops_withExceptAndExceptionsFiles.js': ['test/fixtures/src/mangleprops.js']\r\n                },\r\n                options: {\r\n                    mangle: {\r\n                        toplevel: true,\r\n                        reserved: ['dontMangleMeVariable'],\r\n                        properties: true\r\n                    },\r\n                    exceptionsFiles: ['test/fixtures/src/exceptionsfile1.json', 'test/fixtures/src/exceptionsfile2.json']\r\n                }\r\n            },\r\n            mangleprops_withNameCacheFile: {\r\n                files: {\r\n                    'tmp/mangleprops_withNameCacheFile1.js': ['test/fixtures/src/mangleprops.js'],\r\n                    'tmp/mangleprops_withNameCacheFile2.js': ['test/fixtures/src/mangleprops_withNameCache.js']\r\n                },\r\n                options: {\r\n                    mangle: {\r\n                        toplevel: true,\r\n                        properties: true\r\n                    },\r\n                    nameCache: 'tmp/uglify_name_cache.json'\r\n                }\r\n            },\r\n            mangleprops_withRegex: {\r\n                files: {\r\n                    'tmp/mangleprops_withRegex.js': ['test/fixtures/src/mangleprops_withRegex.js']\r\n                },\r\n                options: {\r\n                    mangle: {\r\n                        properties: {\r\n                            regex: /^[^#].*/\r\n                        }\r\n                    }\r\n                }\r\n            },\r\n            quotes_single: {\r\n                files: {\r\n                    'tmp/quotes_single.js': ['test/fixtures/src/quotes.js']\r\n                },\r\n                options: {\r\n                    output: {\r\n                        quote_style: 1\r\n                    }\r\n                }\r\n            },\r\n            quotes_double: {\r\n                files: {\r\n                    'tmp/quotes_double.js': ['test/fixtures/src/quotes.js']\r\n                },\r\n                options: {\r\n                    output: {\r\n                        quote_style: 2\r\n                    }\r\n                }\r\n            },\r\n            quotes_original: {\r\n                files: {\r\n                    'tmp/quotes_original.js': ['test/fixtures/src/quotes.js']\r\n                },\r\n                options: {\r\n                    output: {\r\n                        quote_style: 3\r\n                    }\r\n                }\r\n            },\r\n            mangle_isNotObject: {\r\n                files: {\r\n                    'tmp/mangle.js': ['test/fixtures/src/simple.js']\r\n                },\r\n                mangle: true\r\n            },\r\n            beautify_Object: {\r\n                files: {\r\n                    'tmp/beautify.js': ['test/fixtures/src/simple.js']\r\n                },\r\n                options: {\r\n                    beautify: {\r\n                        ascii_only: true,\r\n                        indent_start: 2,\r\n                        max_line_len: 55\r\n                    }\r\n                }\r\n            }\r\n        }\r\n    });\r\n\r\n    // Actually load this plugin's task(s).\r\n    grunt.loadTasks('tasks');\r\n\r\n    // These plugins provide necessary tasks.\r\n    grunt.loadNpmTasks('grunt-contrib-jshint');\r\n    grunt.loadNpmTasks('grunt-contrib-clean');\r\n\r\n    grunt.registerTask('psUglifyTest', () => {\r\n        let success = true;\r\n        const files = glob.sync('test/fixtures/expected/**');\r\n\r\n        files.forEach(file => {\r\n            const expData = fileSvc.read(file);\r\n            const outFile = file.replace('test/fixtures/expected', 'tmp');\r\n\r\n            if (!fs.existsSync(outFile)) {\r\n                success = false;\r\n                log(`File ${outFile} does not exist!`);\r\n            }\r\n\r\n            const outData = fileSvc.read(outFile);\r\n\r\n            if (expData !== outData) {\r\n                success = false;\r\n                log(`File ${file} test failed!`);\r\n            }\r\n        });\r\n\r\n        if (success) {\r\n            log('All tests passed!');\r\n        }\r\n    });\r\n\r\n    // Whenever the \"dev\" task is run, first lint, then run this\r\n    // plugin's task(s).\r\n    grunt.registerTask('dev', ['jshint', 'psUglify']);\r\n\r\n    // Whenever the \"test\" task is run, first clean the \"tmp\" dir, then run this\r\n    // plugin's task(s), then test the result.\r\n    grunt.registerTask('test', ['clean', 'psUglify', 'psUglifyTest']);\r\n\r\n    // By default, lint and run all tests.\r\n    grunt.registerTask('default', ['jshint', 'test']);\r\n};\r\n"]}