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GACnB,UAAW,UAAiB,IACxB,OAAO,KAAK,IAAI,EAExB,EAEA,QAAQ,IAAM,SAAS,GACnB,UAAW,UAAiB,IACxB,OAAO,KAAK,IAAI,EAExB,EAEA,QAAQ,IAAM,SAAS,GACnB,UAAW,UAAiB,IACxB,OAAO,KAAK,IAAI,EAExB,EAEA,QAAQ,OAAS,SAAS,EAAQ,GAC9B,OAAO,KAAK,KAAK,KAAK,UAAY,EAAU,EAAS,GAAK,EAAS,EACvE,EAEA,QAAQ,MAAQ,SAAS,EAAQ,GAC7B,OAAU,MAAN,EAAmB,KAAK,MAAM,GACxB,WAAN,EAAwB,KAAK,KAAK,GAC5B,SAAN,EAAsB,KAAK,MAAM,QAArC,CACJ,EAEA,QAAQ,IAAM,SAAS,GACnB,OAAO,KAAK,IAAI,EACpB,EAEA,QAAQ,SAAW,SAAS,EAAQ,GAEhC,OADA,EAAO,WACA,EAAO,OAAO,EACzB","file":"/npm/scratch-js@1.0.2/scratch-js.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.37.0.\n * Original file: /npm/scratch-js@1.0.2/scratch-js.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 exports = module.exports = {};\nconst vm = require(\"vm\");\nconst process = require(\"process\");\nvar time = require(\"time\");\nvar int = 1234;\n\nvar monthNames = ['January', 'Febuary', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'];\n\nexports.yearsSince1900 = function() { return time.localtime(Date.now()/1000).year; };\nexports.year           = function() { return time.localtime(Date.now()/1000).year+1900; };\nexports.monthName      = function() { return monthNames[time.localtime(Date.now()/1000).month]; };\nexports.month          = function() { return time.localtime(Date.now()/1000).month; };\nexports.day            = function() { return time.localtime(Date.now()/1000).dayOfMonth; };\nexports.hour           = function() { return time.localtime(Date.now()/1000).hours; };\nexports.minute         = function() { return time.localtime(Date.now()/1000).minutes; };\nexports.second         = function() { return time.localtime(Date.now()/1000).seconds; };\nexports.timezone       = function() { return time.localtime(Date.now()/1000).timezone; };\nexports.pi             = Math.PI;\n\nexports.repeat = function(times, callback) {\n    for (var i = 0; i < times; i++) {\n        callback();\n    }\n};\n\nexports.join = function(jointhis, andthis) {\n    jointhis.toString();\n    andthis.toString();\n    return jointhis + andthis;\n};\n\nexports.sqrt = function(number) {\n    if (typeof number == typeof int) {\n        return Math.sqrt(number);\n    }\n};\n\nexports.sin = function(number) {\n    if (typeof number == typeof int) {\n        return Math.sin(number);\n    }\n};\n\nexports.cos = function(number) {\n    if (typeof number == typeof int) {\n        return Math.cos(number);\n    }\n};\n\nexports.tan = function(number) {\n    if (typeof number == typeof int) {\n        return Math.tan(number);\n    }\n};\n\nexports.random = function(lowest, highest) {\n    return Math.ceil(Math.random() * (highest - lowest + 1) + lowest - 1);\n};\n\nexports.round = function(number, type) {\n    if (type==null){return Math.round(number);}\n    if (type=='ceiling'){return Math.ceil(number);}\n    if (type=='floor'){return Math.floor(number);}\n};\n\nexports.abs = function(number) {\n    return Math.abs(number);\n}\n\nexports.letterOf = function(string, at){\n    string.toString();\n    return string.charAt(at);\n}\n"]}