{"version":3,"sources":["jsdelivr-header.js","/npm/useful-functions@1.0.1/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACNA,MAAM,KAAO,CACZ,YAAa,SAAS,GACrB,SAAS,EAAG,GACX,OAAU,IAAN,CAEL,CACA,IAAI,EAAS,EAAI,aAAU,EACvB,EAAS,EAAI,QAAU,OACvB,EAAW,EAAI,MAAQ,KACvB,EAAO,EAAI,MAAQ,OACnB,EAAK,EAAI,IAAM,OAKnB,GAFA,WAAa,0GACb,WAAa,8BACE,IAAX,EAAsB,MAAO,sBAEjC,GADe,SAAX,GAAmB,QAAQ,IAAI,uEACtB,SAAT,EAAiB,KAAM,mBAC3B,GAAe,SAAX,EAAmB,CAEtB,GADA,QAAU,oFACG,OAAT,EACH,QAAK,QAAQ,KAAK,GAGnB,GAAa,YAAT,EACH,MAAiB,OAAb,EACE,WAAW,KAAK,GAIV,YAAP,GAAyB,QAAQ,IAAI,EAAG,IAHhC,YAAP,GAAyB,QAAQ,IAAI,EAAG,IAMxC,WAAW,KAAK,GAIV,YAAP,GAAyB,QAAQ,IAAI,EAAG,IAHhC,YAAP,GAAyB,QAAQ,IAAI,EAAG,GAOhD,CACA,GAAe,YAAX,EAAsB,CAEzB,GADA,QAAU,+BACG,OAAT,EACH,QAAK,QAAQ,KAAK,GAGnB,GAAa,YAAT,EACH,MAAiB,OAAb,EACE,WAAW,KAAK,GAIV,YAAP,GAAyB,QAAQ,IAAI,EAAG,IAHhC,YAAP,GAAyB,QAAQ,IAAI,EAAG,IAMxC,WAAW,KAAK,GAIV,YAAP,GAAyB,QAAQ,IAAI,EAAG,IAHhC,YAAP,GAAyB,QAAQ,IAAI,EAAG,GAOhD,CACD,GAED,OAAO,QAAU","file":"/npm/useful-functions@1.0.1/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/useful-functions@1.0.1/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 main = {\r\n\tcheckString: function(opt) {\r\n\t\tfunction rt(e) {\r\n\t\t\tif (e === 1) return true\r\n\t\t\treturn false\r\n\t\t}\r\n\t\tvar string = opt.string || undefined\r\n\t\tvar target = opt.target || \"none\"\r\n\t\tvar language = opt.lang || \"en\"\r\n\t\tvar type = opt.type || \"none\"\r\n\t\tvar to = opt.to || \"none\"\r\n\t\tvar err,\r\n\t\t\tregexp;\r\n\t\tregexps_tr = /(yarrak|orospu|siktir|sikik|pezevenk|dalyarak|amcık|göt|ibne|piç|puşt|kahpe|kevaşe|sokuk|sikeyim|amına)/\r\n\t\tregexps_en = /(shit|bitch|fuck|pimp)/\r\n\t\tif (string === undefined) return \"String is undefined\"\r\n\t\tif (target === \"none\") console.log(\"the target is not specified, so it may run incorrect or incomplete!\")\r\n\t\tif (type === \"none\") throw \"type not defined\";\r\n\t\tif (target === \"none\") {\r\n\t\t\tregexpu = /(ftp|http|https):\\/\\/(\\w+:{0,1}\\w*@)?(\\S+)(:[0-9]+)?(\\/|\\/([\\w#!:.?+=&%@!\\-\\/]))?/\r\n\t\t\tif (type === \"ad\") {\r\n\t\t\t\tif (!regexpu.test(string)) return false\r\n\t\t\t\treturn true\r\n\t\t\t}\r\n\t\t\tif (type === \"badword\") {\r\n\t\t\t\tif (language === \"en\") {\r\n\t\t\t\t\tif (!regexps_en.test(string)) {\r\n\t\t\t\t\t\tif (to === \"console\") return console.log(rt(0))\r\n\t\t\t\t\t\treturn false\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (to === \"console\") return console.log(rt(1))\r\n\t\t\t\t\treturn true\r\n\t\t\t\t} else {\r\n\t\t\t\t\tif (!regexps_tr.test(string)) {\r\n\t\t\t\t\t\tif (to === \"console\") return console.log(rt(0))\r\n\t\t\t\t\t\treturn false\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (to === \"console\") return console.log(rt(1))\r\n\t\t\t\t\treturn true\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (target === \"discord\") {\r\n\t\t\tregexpu = /(discord|discordapp).(me|gg)/\r\n\t\t\tif (type === \"ad\") {\r\n\t\t\t\tif (!regexpu.test(string)) return false\r\n\t\t\t\treturn true\r\n\t\t\t}\r\n\t\t\tif (type === \"badword\") {\r\n\t\t\t\tif (language === \"en\") {\r\n\t\t\t\t\tif (!regexps_en.test(string)) {\r\n\t\t\t\t\t\tif (to === \"console\") return console.log(rt(0))\r\n\t\t\t\t\t\treturn false\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (to === \"console\") return console.log(rt(1))\r\n\t\t\t\t\treturn true\r\n\t\t\t\t} else {\r\n\t\t\t\t\tif (!regexps_tr.test(string)) {\r\n\t\t\t\t\t\tif (to === \"console\") return console.log(rt(0))\r\n\t\t\t\t\t\treturn false\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (to === \"console\") return console.log(rt(1))\r\n\t\t\t\t\treturn true\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n}\r\nmodule.exports = main\r\n"]}