commit 36968bf9c574db23aa82979febafa4abaed837e8 Author: SushiDesigner <54828677+SushiDesigner@users.noreply.github.com> Date: Sun Sep 3 12:50:37 2023 -0600 init diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..a6419c5 --- /dev/null +++ b/.env.example @@ -0,0 +1,7 @@ +JWT_SECRET= +RCC_HOST= +logshook= +PROD=true +LOCALCERTIFICATEPATH= +LOCALREDISCONNECTION= +DB_PASSWORD= \ No newline at end of file diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ff5b1b0 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +node_modules/ +assets/release.zip +assets/hash.txt diff --git a/DefaultPrivateKey.pem b/DefaultPrivateKey.pem new file mode 100644 index 0000000..9dbc1f1 --- /dev/null +++ b/DefaultPrivateKey.pem @@ -0,0 +1,3 @@ +-----BEGIN RSA PRIVATE KEY----- +MIICXQIBAAKBgQC04Nimx5hGYvQ54rZPWJ9qvvoPSsBXt3PREKhramu1gXpv+W4Mh/vdzlTsNqmedZ2gaX0rd9smy3Kp2lgxKsuyX1gc918k9L/PUzKvnfxy93RDwXdo6qJze+mdQlkDi9U5W4MAzcx6ann3YTHyiKHfs9DqF+kBJQiloPgcnk3HPQIDAQABAoGBAJsAR4h8aGiA6esk9bf/KPWP3Lf4BeXlRrF0xe7uzohHAYYtSHoimdqUsz+NBEPPZJmPbH0wg7O2Cne1rXfMxaqPoZAl/N5kN0uFFY6U7FS+rssF0/OXZPuehmBkOscVGGNM6glAzOfW2/3rZcm8Z3XhdhTQIzZq2D1rjhKU3YT9AkEA08e3BTsV3iqjf8kJhwdt7EGX9/QutNaUSkAoW1d/pRdjZbbfcFwLri2WcTA2taoIa892hSTz/qaHYWMfu3oy/wJBANqlVeqRxFX8YJ0yFZfblx/QEkA5ospJI5pd3J6kSqK9A3NqBCbFPxH6NO8rXBSHk8cE2vNVc0K7qSCzn6sqEcMCQCCHIlNJWfh/sBEmfbIhr/6DrKXG+Y2JD8m/xPMSo2ZmCzxKNFN7r8eW9O55q02HyjdU7C1TGa7ZQR3yLaOMB10CQAY3Iv0bDbDADuMJFHIPrPkbihlHSihj8d4mguoDk5eStfFm9x0/CC7zpOOToPd4byv+KFc4e6FPAlzKnmRYOs8CQQCDMYYdcIw5e5nf20yLUhwzJL4q8ZyR7OGXkjz6ACxoxQSncr/adjecz21ngdx3nq13RdpppWNuZ/2exvS3ObTG +-----END RSA PRIVATE KEY----- \ No newline at end of file diff --git a/PrivateKey2020.txt b/PrivateKey2020.txt new file mode 100644 index 0000000..6f55a7f --- /dev/null +++ b/PrivateKey2020.txt @@ -0,0 +1,27 @@ +-----BEGIN RSA PRIVATE KEY----- +MIIEowIBAAKCAQEApH8yULE5/DRBnSTqcOM3PplW2UGD4povfR8zCBNP1n69uKoG +mcJm4AiPAR18TpLXPNAyp8UwlrQc4+GCqU/ktipFp//W6r90BWyiY69flfTGU8Zs +Bcy2DNjQipilSaJoOjxUbT++D7qrQSCiMh6fzUfEcUyk2kx4ICErQ2/HqHOxHbLi ++R7L/bIU9pZYWB6aU0WM7ATuzDYFVETUSlXpMAVKeusEqae8lEfV5TqZxb3eIUPU +P1iz7eqd7jQH6UygOnjFksSYxOInbr4KK2rQYDt6507ohO/+AzhlH+FPM3/ziqN6 +LObRkLF4u4HCUaKZqPQTREIz8zYdNXuY43YeEQIDAQABAoIBABdUjv9Q04eIpdGy +3albIIe5Wc8AcsMd2SRm22cGzij+2supGbyPDOYzcIzY8Lt4KhzO7pBK8GQ/cWWE +o3J+CVMo1a5JI+MxejQWv0ViJy1uhP52wvVjnmJeEd3GXpL9/MhdrB++jadPc2CO +T1LKcyG7Two+s5beh58O9ULgRLIIU0m6n+svCIDHY0VlxuAh/i5axqk/aaCzvtAh +DeFNS6vrBRMhAY8Tzlhlm/SXEiIubHjrO+CYhLLe0hh0AmaLQNQ0JLFW/eJwMWxw +qEoT+tL1cMYZCudjfmffILXLxYWfd5HqOWz/ghFiSayAdKJZr1gcA3ZAQQVS5qUW +6VDRvF0CgYEA+LBOBLMWyG57PZAI2n85h4PDZKgn6hzJMVlXGelMiRhI/mNcCL/M +Ay006mZ22QyR0Fm59OTHeWxyz8AtCSrSn6rLi4fiLYlh3xxTN1O8Q4Rf7HqNgvTf +rgpjGJ8fIHTvzqQesclKN+MXhsaw3NpS/MyzGEc7ORTTtzqwRDHYKWcCgYEAqVU+ +C087RxG8v2ruNeIf+fxnDkrpeHeklfWzCVTNo18FnQhvmFkW0SpfjwhAhjfEEOHZ +VfsDp/kmXZTynkce1DTfWv8iAac990bgBVx6/rC4VoAYQ18jg72FcICGYX4rv9bo +gHi87rPJ1qsVVW2poJyYWr5ZpxIqNtQcQ8NaOccCgYBcS/q4rcrf2nks0P8oMJ2m +WNW0zt/5eHOHODQmbrq0CupUV4X5zU0nRKjl8d9cENkxLYvhguMxgnld92H/jAAd +uCLRBz5/TgSf7IBKAW7W1BNRze4lU0KM8lfy9GN2BVBXLfwiWaWM9mBt6eIMJY81 +ObeiZBVryvoEf+iZdrJWMwKBgQCAPkDJC+6W+oX6ap+SS3lwOIpMNsvvIp2RvQ0l +CgbbrgFwVo090msHapIIn3VOsTlal9Gj3oF8W6OEyGOfH7nneUuXfRZiLikt941+ +QfYcofZZ/JVjoNAi3AwNkikz+PxlQ/u+ILLmDV/Vpqh3lKAdNbvlLbh0Ybt63tWx +NGhGzQKBgC2gnP65oBbORgdCkMvrs+fbBX5LdCTrBUkxX4yVMr/25GS1oqX6LiGK +Oxjs326pGGns91cMEUbxSFQwaWPCcTWhEbK/epdlY3NkFQ4WPDPkEmhhp49ebMA7 +BYWSO7nSEMv4S6rRnVxts9lCihNclblbg3erXx77PRKnLtVbE+KG +-----END RSA PRIVATE KEY----- \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..c58996c --- /dev/null +++ b/README.md @@ -0,0 +1,24 @@ +# SushiBlox-Website +Website for sushiblox I guess. + +Private for now might open source. + +The setup is easy install required node modules and setup a nginx reverse proxy on port 9000. + +Uses MongoDB for datastorage. Redis for special things + +# Advice +This uses hardcoded domain names in the code and relies on cloudflare headers for IP configs. so yeahhhhhhhhhhhhhhhhhhhhhhhhhh + + +# Redis +idk set it up nerd + +# setup +LOL I DID NOT MAKE THIS EASY + +# Example + +``` +PROTOCOL_HEADER=x-forwarded-proto HOST_HEADER=x-forwarded-host pm2 start server.mjs +``` \ No newline at end of file diff --git a/actualgameserver.lua b/actualgameserver.lua new file mode 100644 index 0000000..0f7f2bd --- /dev/null +++ b/actualgameserver.lua @@ -0,0 +1,235 @@ +local url = "http://mete0r.xyz" -- have to set to https for production +------------------- UTILITY FUNCTIONS -------------------------- + + + +function waitForChild(parent, childName) + while true do + local child = parent:findFirstChild(childName) + if child then + return child + end + parent.ChildAdded:wait() + end +end + +-----------------------------------END UTILITY FUNCTIONS ------------------------- + +-----------------------------------"CUSTOM" SHARED CODE---------------------------------- +--print(port) +pcall(function() settings().Network.UseInstancePacketCache = true end) +pcall(function() settings().Network.UsePhysicsPacketCache = true end) +--pcall(function() settings()["Task Scheduler"].PriorityMethod = Enum.PriorityMethod.FIFO end) +pcall(function() settings()["Task Scheduler"].PriorityMethod = Enum.PriorityMethod.AccumulatedError end) + +--settings().Network.PhysicsSend = 1 -- 1==RoundRobin +--settings().Network.PhysicsSend = Enum.PhysicsSendMethod.ErrorComputation2 +settings().Network.PhysicsSend = Enum.PhysicsSendMethod.TopNErrors +settings().Network.ExperimentalPhysicsEnabled = true +settings().Network.WaitingForCharacterLogRate = 100 +pcall(function() settings().Diagnostics:LegacyScriptMode() end) + +-----------------------------------START GAME SHARED SCRIPT------------------------------ + +local assetId = placeId -- might be able to remove this now + +local scriptContext = game:GetService('ScriptContext') +pcall(function() scriptContext:AddStarterScript(37801172) end) +scriptContext.ScriptsDisabled = true + +game:SetPlaceID(assetId, false) +game:GetService("ChangeHistoryService"):SetEnabled(false) + +-- establish this peer as the Server +local ns = game:GetService("NetworkServer") + +if url~=nil then + pcall(function() game:GetService("Players"):SetAbuseReportUrl(url .. "/AbuseReport/InGameChatHandler.ashx") end) +---@diagnostic disable-next-line: invalid-class-name + pcall(function() game:GetService("ScriptInformationProvider"):SetAssetUrl(url .. "/Asset/") end) + pcall(function() game:GetService("ContentProvider"):SetBaseUrl(url .. "/") end) + --pcall(function() game:GetService("Players"):SetChatFilterUrl(url .. "/Game/ChatFilter.ashx") end) + + game:GetService("BadgeService"):SetPlaceId(placeId) + + game:GetService("BadgeService"):SetIsBadgeLegalUrl("") + game:GetService("InsertService"):SetBaseSetsUrl(url .. "/Game/Tools/InsertAsset.ashx?nsets=10&type=base") + game:GetService("InsertService"):SetUserSetsUrl(url .. "/Game/Tools/InsertAsset.ashx?nsets=20&type=user&userid=%d") + game:GetService("InsertService"):SetCollectionUrl(url .. "/Game/Tools/InsertAsset.ashx?sid=%d") + game:GetService("InsertService"):SetAssetUrl(url .. "/Asset/?id=%d") + game:GetService("InsertService"):SetAssetVersionUrl(url .. "/Asset/?assetversionid=%d") + + pcall(function() loadfile(url .. "/Game/LoadPlaceInfo.ashx?PlaceId=" .. placeId)() end) + + -- pcall(function() + -- if access then + -- loadfile(url .. "/Game/PlaceSpecificScript.ashx?PlaceId=" .. placeId .. "&" .. access)() + -- end + -- end) +end +pcall(function() game:GetService("NetworkServer"):SetIsPlayerAuthenticationRequired(true) end) +settings().Diagnostics.LuaRamLimit = 0 +--settings().Network:SetThroughputSensitivity(0.08, 0.01) +--settings().Network.SendRate = 35 +--settings().Network.PhysicsSend = 0 -- 1==RoundRobin + +if placeId~=nil and url~=nil then + -- yield so that file load happens in the heartbeat thread + wait() + + -- load the game + game:Load(url .. "/asset?id=" .. placeId .. "&method=rcc") +end + +-- Now start the connection + +local success, message = pcall(function() ns:Start(port) end) +if not success then +local HttpService = game:GetService("HttpService") +game:GetService("HttpService").HttpEnabled = true + -- failed job close it + local arguments = { + ["game"] = placeId + } + HttpService:PostAsync( + url .. "/api/updategameinfo/closejob", + HttpService:JSONEncode(arguments) + ) +else + local HttpService = game:GetService("HttpService") + local arguments = { + ["game"] = placeId + } + game:HttpPostAsync(url .. "/api/updategameinfo/gameloaded",HttpService:JSONEncode(arguments),"application/json") +end + +scriptContext:SetTimeout(10) +scriptContext.ScriptsDisabled = false + + +------------------------------END START GAME SHARED SCRIPT-------------------------- + + + +-- StartGame -- +game:GetService("RunService"):Run() + + +local HttpService = game:GetService("HttpService") +game:GetService("HttpService").HttpEnabled = true + +spawn(function() + -- if a player doesn't join in 60 seconds because of failed job or they didn't join close the job + wait(60) + if #game:GetService("Players"):GetPlayers() < 1 then + print("Shutdown time") + -- less than one player is in the game so lets shut down + local arguments = { + ["game"] = placeId + } + HttpService:PostAsync( + url .. "/api/updategameinfo/closejob", + HttpService:JSONEncode(arguments) + ) + end +end) + +local function addAttachment(part, name, position, orientation) + local attachment = Instance.new("Attachment") + attachment.Name = name + attachment.Parent = part + if position then + attachment.Position = position + end + if orientation then + attachment.Orientation = orientation + end + return attachment +end + +game:GetService("Players").PlayerAdded:connect(function(player) + print("Player " .. player.userId .. " joining") + player.CharacterAdded:connect(function(Character) + addAttachment(Character.HumanoidRootPart, "RootRigAttachment") + addAttachment(Character.Head, "FaceCenterAttachment") + addAttachment(Character.Head, "FaceFrontAttachment", Vector3.new(0, 0, -0.6)) + addAttachment(Character.Head, "HairAttachment", Vector3.new(0, 0.6, 0)) + addAttachment(Character.Head, "HatAttachment", Vector3.new(0, 0.6, 0)) + addAttachment(Character.Head, "NeckRigAttachment", Vector3.new(0, -0.5, 0)) + + end) + local presenceargs = { + ["game"] = placeId, + ["player"] = player.userId, + ["name"] = player.Name, + ["action"] = "joining" + } + HttpService:PostAsync( + url .. "/api/updategameinfo/updatepresence", + HttpService:JSONEncode(presenceargs) + ) + wait(2) + local arguments = { + ["game"] = placeId, + ["players"] = #game:GetService("Players"):GetPlayers() + } + HttpService:PostAsync( + url .. "/api/updategameinfo", + HttpService:JSONEncode(arguments) + ) + local visitarguments = { + ["game"] = placeId + } + HttpService:PostAsync( + url .. "/api/updategameinfo/updatevisits", + HttpService:JSONEncode(visitarguments) + ) +end) + +game:GetService("Players").PlayerRemoving:connect(function(player) + print("Player " .. player.userId .. " leaving") + local presenceargs = { + ["game"] = placeId, + ["player"] = player.userId, + ["name"] = player.Name, + ["action"] = "leaving" + } + HttpService:PostAsync( + url .. "/api/updategameinfo/updatepresence", + HttpService:JSONEncode(presenceargs) + ) + wait(2) + local arguments = { + ["game"] = placeId, + ["players"] = #game:GetService("Players"):GetPlayers() + } + HttpService:PostAsync( + url .. "/api/updategameinfo", + HttpService:JSONEncode(arguments) + ) + if #game:GetService("Players"):GetPlayers() < 1 then + print("Shutdown time") + -- less than one player is in the game so lets shut down + local arguments = { + ["game"] = placeId + } + HttpService:PostAsync( + url .. "/api/updategameinfo/closejob", + HttpService:JSONEncode(arguments) + ) + end +end) + + + +local StringToDetect = ";ec"; + +game:GetService("Players").PlayerAdded:connect(function(Player) + Player.Chatted:connect(function(Message) + if string.find(string.lower(Message), string.lower(StringToDetect)) then + if Player.Character then + Player.Character.Humanoid.Health = 0; + end; + end; + end); +end); \ No newline at end of file diff --git a/assets/approval.png b/assets/approval.png new file mode 100644 index 0000000..ec02dc3 Binary files /dev/null and b/assets/approval.png differ diff --git a/assets/audio/silence.mp3 b/assets/audio/silence.mp3 new file mode 100644 index 0000000..482395f Binary files /dev/null and b/assets/audio/silence.mp3 differ diff --git a/assets/audio/wof.mp3 b/assets/audio/wof.mp3 new file mode 100644 index 0000000..787ed3a Binary files /dev/null and b/assets/audio/wof.mp3 differ diff --git a/assets/default.png b/assets/default.png new file mode 100644 index 0000000..c618ecf Binary files /dev/null and b/assets/default.png differ diff --git a/assets/defaultold.png b/assets/defaultold.png new file mode 100644 index 0000000..7fd92cf Binary files /dev/null and b/assets/defaultold.png differ diff --git a/assets/gameassets/thumbnail-0.png b/assets/gameassets/thumbnail-0.png new file mode 100644 index 0000000..58ccd81 Binary files /dev/null and b/assets/gameassets/thumbnail-0.png differ diff --git a/assets/hash2014.txt b/assets/hash2014.txt new file mode 100644 index 0000000..145da6b --- /dev/null +++ b/assets/hash2014.txt @@ -0,0 +1 @@ +3b5f1470aa859d3782f72ba07c72ed7d7bc2e461f5f85bb9fd007bf66349d5ee \ No newline at end of file diff --git a/assets/hash2018.txt b/assets/hash2018.txt new file mode 100644 index 0000000..01e173b --- /dev/null +++ b/assets/hash2018.txt @@ -0,0 +1 @@ +4cd4d51885b3127d72cf4bbc3e889ec4afa5c4bd725dfba4beab239c2d51b7c5 \ No newline at end of file diff --git a/assets/hash2020.txt b/assets/hash2020.txt new file mode 100644 index 0000000..9206d3e --- /dev/null +++ b/assets/hash2020.txt @@ -0,0 +1 @@ +ecfbc1e4cadd0167cddf1c9920adadf7183f690d7101c1b84d51616a35fada55 \ No newline at end of file diff --git a/assets/hashlauncher.txt b/assets/hashlauncher.txt new file mode 100644 index 0000000..22e737c --- /dev/null +++ b/assets/hashlauncher.txt @@ -0,0 +1 @@ +d650fafa3e969e786d874def30f32208dc1ebe57d051fc719fe8a0e75af339eb \ No newline at end of file diff --git a/assets/hashstudio2016.txt b/assets/hashstudio2016.txt new file mode 100644 index 0000000..6fa43fc --- /dev/null +++ b/assets/hashstudio2016.txt @@ -0,0 +1 @@ +f13b90a25b1d1d3ff7dfc0628d6fe554cb3b4eb809fe7289632e41670effb197 \ No newline at end of file diff --git a/assets/images/BC_Icon.svg b/assets/images/BC_Icon.svg new file mode 100644 index 0000000..c3996bd --- /dev/null +++ b/assets/images/BC_Icon.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/assets/images/OBC_Icon.svg b/assets/images/OBC_Icon.svg new file mode 100644 index 0000000..d417e9b --- /dev/null +++ b/assets/images/OBC_Icon.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/assets/images/audio.png b/assets/images/audio.png new file mode 100644 index 0000000..96e6ac0 Binary files /dev/null and b/assets/images/audio.png differ diff --git a/assets/images/bar.png b/assets/images/bar.png new file mode 100644 index 0000000..cef621a Binary files /dev/null and b/assets/images/bar.png differ diff --git a/assets/images/defaultad.png b/assets/images/defaultad.png new file mode 100644 index 0000000..d381a88 Binary files /dev/null and b/assets/images/defaultad.png differ diff --git a/assets/images/defaultadsky.png b/assets/images/defaultadsky.png new file mode 100644 index 0000000..6cedea1 Binary files /dev/null and b/assets/images/defaultadsky.png differ diff --git a/assets/images/error.png b/assets/images/error.png new file mode 100644 index 0000000..07207d5 Binary files /dev/null and b/assets/images/error.png differ diff --git a/assets/images/finobe.png b/assets/images/finobe.png new file mode 100644 index 0000000..a688792 Binary files /dev/null and b/assets/images/finobe.png differ diff --git a/assets/images/finobelogo.png b/assets/images/finobelogo.png new file mode 100644 index 0000000..9b2cc48 Binary files /dev/null and b/assets/images/finobelogo.png differ diff --git a/assets/images/gt.png b/assets/images/gt.png new file mode 100644 index 0000000..5e3aee3 Binary files /dev/null and b/assets/images/gt.png differ diff --git a/assets/images/gtlogo.png b/assets/images/gtlogo.png new file mode 100644 index 0000000..3ddd0ec Binary files /dev/null and b/assets/images/gtlogo.png differ diff --git a/assets/images/logo.png b/assets/images/logo.png new file mode 100644 index 0000000..6190b8a Binary files /dev/null and b/assets/images/logo.png differ diff --git a/assets/images/logo600200.png b/assets/images/logo600200.png new file mode 100644 index 0000000..1df9934 Binary files /dev/null and b/assets/images/logo600200.png differ diff --git a/assets/images/logosmall.png b/assets/images/logosmall.png new file mode 100644 index 0000000..91e48c9 Binary files /dev/null and b/assets/images/logosmall.png differ diff --git a/assets/images/lol.png b/assets/images/lol.png new file mode 100644 index 0000000..e0a4d80 Binary files /dev/null and b/assets/images/lol.png differ diff --git a/assets/images/menobg.png b/assets/images/menobg.png new file mode 100644 index 0000000..dddd411 Binary files /dev/null and b/assets/images/menobg.png differ diff --git a/assets/images/meteor.png b/assets/images/meteor.png new file mode 100644 index 0000000..e51e6c0 Binary files /dev/null and b/assets/images/meteor.png differ diff --git a/assets/images/oops.png b/assets/images/oops.png new file mode 100644 index 0000000..dab1236 Binary files /dev/null and b/assets/images/oops.png differ diff --git a/assets/images/rocks.png b/assets/images/rocks.png new file mode 100644 index 0000000..823cd4d Binary files /dev/null and b/assets/images/rocks.png differ diff --git a/assets/moderated.png b/assets/moderated.png new file mode 100644 index 0000000..1276399 Binary files /dev/null and b/assets/moderated.png differ diff --git a/assets/release2018.zip b/assets/release2018.zip new file mode 100644 index 0000000..e7006f6 Binary files /dev/null and b/assets/release2018.zip differ diff --git a/assets/releasestudio2016.zip b/assets/releasestudio2016.zip new file mode 100644 index 0000000..8209985 Binary files /dev/null and b/assets/releasestudio2016.zip differ diff --git a/assets/ugc/854 b/assets/ugc/854 new file mode 100644 index 0000000..e281996 --- /dev/null +++ b/assets/ugc/854 @@ -0,0 +1,114 @@ +--rbxassetid%854% +-- Creates all neccessary scripts for the gui on initial load, everything except build tools +-- Created by Ben T. 10/29/10 +-- Please note that these are loaded in a specific order to diminish errors/perceived load time by user + +local scriptContext = game:GetService("ScriptContext") +local touchEnabled = false +pcall(function() touchEnabled = game:GetService("UserInputService").TouchEnabled end) + +-- library registration +scriptContext:AddCoreScript(855, scriptContext,"/Libraries/LibraryRegistration/LibraryRegistration") + +local function waitForChild(instance, name) + while not instance:FindFirstChild(name) do + instance.ChildAdded:wait() + end +end +local function waitForProperty(instance, property) + while not instance[property] do + instance.Changed:wait() + end +end + +-- Responsible for tracking logging items +local scriptContext = game:GetService("ScriptContext") +scriptContext:AddCoreScript(856, scriptContext, "CoreScripts/Sections") + +waitForChild(game:GetService("CoreGui"),"RobloxGui") +local screenGui = game:GetService("CoreGui"):FindFirstChild("RobloxGui") + +-- SettingsScript +scriptContext:AddCoreScript(857,screenGui,"CoreScripts/Settings") + +if not touchEnabled then + -- ToolTipper (creates tool tips for gui) + scriptContext:AddCoreScript(858,screenGui,"CoreScripts/ToolTip") +else + scriptContext:AddCoreScript(859,screenGui,"CoreScripts/TouchControls") +end + +-- MainBotChatScript +scriptContext:AddCoreScript(860,screenGui,"CoreScripts/MainBotChatScript") + +-- Developer Console Script +scriptContext:AddCoreScript(861,screenGui,"CoreScripts/DeveloperConsole") + +-- Popup Script +scriptContext:AddCoreScript(862,screenGui,"CoreScripts/PopupScript") +-- Friend Notification Script (probably can use this script to expand out to other notifications) +scriptContext:AddCoreScript(863,screenGui,"CoreScripts/NotificationScript") +-- Chat script +scriptContext:AddCoreScript(864, screenGui, "CoreScripts/ChatScript") +-- Purchase Prompt Script +scriptContext:AddCoreScript(865, screenGui, "CoreScripts/PurchasePromptScript") +-- Health Script +scriptContext:AddCoreScript(866, screenGui, "CoreScripts/HealthScript") + +if not touchEnabled then + -- New Player List + scriptContext:AddCoreScript(867,screenGui,"CoreScripts/PlayerListScript") +elseif screenGui.AbsoluteSize.Y > 600 then + -- New Player List + scriptContext:AddCoreScript(867,screenGui,"CoreScripts/PlayerListScript") +else + delay(5, function() + if screenGui.AbsoluteSize.Y >= 600 then + -- New Player List + scriptContext:AddCoreScript(867,screenGui,"CoreScripts/PlayerListScript") + end + end) +end + +if game.CoreGui.Version >= 3 then + -- Backpack Builder, creates most of the backpack gui + scriptContext:AddCoreScript(868,screenGui,"CoreScripts/BackpackScripts/BackpackBuilder") + + waitForChild(screenGui,"CurrentLoadout") + waitForChild(screenGui,"Backpack") + local Backpack = screenGui.Backpack + + -- Manager handles all big backpack state changes, other scripts subscribe to this and do things accordingly + if game.CoreGui.Version >= 7 then + scriptContext:AddCoreScript(869,Backpack,"CoreScripts/BackpackScripts/BackpackManager") + end + + -- Backpack Gear (handles all backpack gear tab stuff) + game:GetService("ScriptContext"):AddCoreScript(870,Backpack,"CoreScripts/BackpackScripts/BackpackGear") + -- Loadout Script, used for gear hotkeys + scriptContext:AddCoreScript(871,screenGui.CurrentLoadout,"CoreScripts/BackpackScripts/LoadoutScript") + if game.CoreGui.Version >= 8 then + -- Wardrobe script handles all character dressing operations + scriptContext:AddCoreScript(-1,Backpack,"CoreScripts/BackpackScripts/BackpackWardrobe") + end +end + +local IsPersonalServer = not not game.Workspace:FindFirstChild("PSVariable") +if IsPersonalServer then + game:GetService("ScriptContext"):AddCoreScript(872,game.Players.LocalPlayer,"BuildToolManager") +end +game.Workspace.ChildAdded:connect(function(nchild) + if nchild.Name=='PSVariable' and nchild:IsA('BoolValue') then + IsPersonalServer = true + game:GetService("ScriptContext"):AddCoreScript(872,game.Players.LocalPlayer,"BuildToolManager") + end +end) + +if touchEnabled then -- touch devices don't use same control frame + -- only used for touch device button generation + scriptContext:AddCoreScript(873,screenGui,"CoreScripts/ContextActionTouch") + + waitForChild(screenGui, 'ControlFrame') + waitForChild(screenGui.ControlFrame, 'BottomLeftControl') + screenGui.ControlFrame.BottomLeftControl.Visible = false +end \ No newline at end of file diff --git a/assets/ugc/855 b/assets/ugc/855 new file mode 100644 index 0000000..95700e5 --- /dev/null +++ b/assets/ugc/855 @@ -0,0 +1,23 @@ +--rbxassetid%855% +-- Library Registration Script +-- This script is used to register RbxLua libraries on game servers, so game scripts have +-- access to all of the libraries (otherwise only local scripts do) + +local sc = game:GetService("ScriptContext") +local tries = 0 + +while not sc and tries < 3 do + tries = tries + 1 + sc = game:GetService("ScriptContext") + wait(0.2) +end + +if sc then + sc:RegisterLibrary("Libraries/RbxGui", "874") + sc:RegisterLibrary("Libraries/RbxGear", "875") + sc:RegisterLibrary("Libraries/RbxUtility", "876") + sc:RegisterLibrary("Libraries/RbxStamper", "877") + sc:LibraryRegistrationComplete() +else + print("failed to find script context, libraries did not load") +end diff --git a/assets/ugc/856 b/assets/ugc/856 new file mode 100644 index 0000000..5bacbde --- /dev/null +++ b/assets/ugc/856 @@ -0,0 +1 @@ +--rbxassetid%856% \ No newline at end of file diff --git a/assets/ugc/857 b/assets/ugc/857 new file mode 100644 index 0000000..ff9e188 --- /dev/null +++ b/assets/ugc/857 @@ -0,0 +1,2394 @@ +--rbxassetid%857% +local function waitForChild(instance, name) + while not instance:FindFirstChild(name) do + instance.ChildAdded:wait() + end +end + +local function waitForProperty(instance, property) + while not instance[property] do + instance.Changed:wait() + end +end + +--Include +local Create = assert(LoadLibrary("RbxUtility")).Create + + +-- A Few Script Globals +local gui +if script.Parent:FindFirstChild("ControlFrame") then + gui = script.Parent:FindFirstChild("ControlFrame") +else + gui = script.Parent +end + +local helpButton = nil +local updateCameraDropDownSelection = nil +local updateVideoCaptureDropDownSelection = nil +local updateSmartCameraDropDownSelection = nil +local updateTouchMovementDropDownSelection = nil +local tweenTime = 0.2 + +local mouseLockLookScreenUrl = "http://www.mete0r.xyz/asset?id=54071825" +local classicLookScreenUrl = "http://www.mete0r.xyz/Asset?id=45915798" + +local hasGraphicsSlider = (game:GetService("CoreGui").Version >= 5) +local GraphicsQualityLevels = 10 -- how many levels we allow on graphics slider +local recordingVideo = false + +local currentMenuSelection = nil +local lastMenuSelection = {} + +local defaultPosition = UDim2.new(0,0,0,0) +local newGuiPlaces = {0,41324860} + +local centerDialogs = {} +local mainShield = nil + +local testReport = false + +local inStudioMode = UserSettings().GameSettings:InStudioMode() +-- REMOVE WHEN NOT TESTING +-- inStudioMode = false + +local macClient = false +local success, isMac = pcall(function() return not game.GuiService.IsWindows end) +macClient = success and isMac +-- REMOVE WHEN NOT TESTING +--macClient = true + +local customCameraDefaultType = "Default (Classic)" +local touchClient = false +pcall(function() touchClient = game:GetService("UserInputService").TouchEnabled end) +-- REMOVE WHEN NOT TESTING +-- touchClient = true +if touchClient then + hasGraphicsSlider = false + customCameraDefaultType = "Default (Follow)" +end + +local function Color3I(r,g,b) + return Color3.new(r/255,g/255,b/255) +end + +local function robloxLock(instance) + instance.RobloxLocked = true + children = instance:GetChildren() + if children then + for i, child in ipairs(children) do + robloxLock(child) + end + end +end + +function resumeGameFunction(shield) + shield.Settings:TweenPosition(UDim2.new(0.5, -262,-0.5, -200),Enum.EasingDirection.InOut,Enum.EasingStyle.Sine,tweenTime,true) + delay(tweenTime,function() + shield.Visible = false + for i = 1, #centerDialogs do + centerDialogs[i].Visible = false + game.GuiService:RemoveCenterDialog(centerDialogs[i]) + end + game.GuiService:RemoveCenterDialog(shield) + settingsButton.Active = true + currentMenuSelection = nil + lastMenuSelection = {} + pcall(function() game:GetService("UserInputService").OverrideMouseIconEnabled = false end) + end) +end + +function goToMenu(container,menuName, moveDirection,size,position) + if type(menuName) ~= "string" then return end + + table.insert(lastMenuSelection,currentMenuSelection) + if menuName == "GameMainMenu" then + lastMenuSelection = {} + end + + local containerChildren = container:GetChildren() + local selectedMenu = false + for i = 1, #containerChildren do + if containerChildren[i].Name == menuName then + containerChildren[i].Visible = true + currentMenuSelection = {container = container,name = menuName, direction = moveDirection, lastSize = size} + selectedMenu = true + if size and position then + containerChildren[i]:TweenSizeAndPosition(size,position,Enum.EasingDirection.InOut,Enum.EasingStyle.Sine,tweenTime,true) + elseif size then + containerChildren[i]:TweenSizeAndPosition(size,UDim2.new(0.5,-size.X.Offset/2,0.5,-size.Y.Offset/2),Enum.EasingDirection.InOut,Enum.EasingStyle.Sine,tweenTime,true) + else + containerChildren[i]:TweenPosition(UDim2.new(0,0,0,0),Enum.EasingDirection.InOut,Enum.EasingStyle.Sine,tweenTime,true) + end + else + if moveDirection == "left" then + containerChildren[i]:TweenPosition(UDim2.new(-1,-525,0,0),Enum.EasingDirection.InOut,Enum.EasingStyle.Sine,tweenTime,true) + elseif moveDirection == "right" then + containerChildren[i]:TweenPosition(UDim2.new(1,525,0,0),Enum.EasingDirection.InOut,Enum.EasingStyle.Sine,tweenTime,true) + elseif moveDirection == "up" then + containerChildren[i]:TweenPosition(UDim2.new(0,0,-1,-400),Enum.EasingDirection.InOut,Enum.EasingStyle.Sine,tweenTime,true) + elseif moveDirection == "down" then + containerChildren[i]:TweenPosition(UDim2.new(0,0,1,400),Enum.EasingDirection.InOut,Enum.EasingStyle.Sine,tweenTime,true) + end + delay(tweenTime,function() + containerChildren[i].Visible = false + end) + end + end +end + +function resetLocalCharacter() + local player = game.Players.LocalPlayer + if player then + if player.Character and player.Character:FindFirstChild("Humanoid") then + player.Character.Humanoid.Health = 0 + end + end +end + +local function createTextButton(text,style,fontSize,buttonSize,buttonPosition) + local newTextButton = Instance.new("TextButton") + newTextButton.Font = Enum.Font.SourceSansBold + newTextButton.FontSize = fontSize + newTextButton.Size = buttonSize + newTextButton.Position = buttonPosition + newTextButton.Style = style + newTextButton.TextColor3 = Color3.new(1,1,1) + newTextButton.Text = text + return newTextButton +end + +local function CreateTextButtons(frame, buttons, yPos, ySize) + if #buttons < 1 then + error("Must have more than one button") + end + + local buttonNum = 1 + local buttonObjs = {} + + local function toggleSelection(button) + for i, obj in ipairs(buttonObjs) do + if obj == button then + obj.Style = Enum.ButtonStyle.RobloxRoundDefaultButton + else + obj.Style = Enum.ButtonStyle.RobloxRoundButton + end + end + end + + for i, obj in ipairs(buttons) do + local button = Instance.new("TextButton") + button.Name = "Button" .. buttonNum + button.Font = Enum.Font.SourceSansBold + button.FontSize = Enum.FontSize.Size18 + button.AutoButtonColor = true + button.Style = Enum.ButtonStyle.RobloxRoundButton + button.Text = obj.Text + button.TextColor3 = Color3.new(1,1,1) + button.MouseButton1Click:connect(function() toggleSelection(button) obj.Function() end) + button.Parent = frame + button.ZIndex = 8 + buttonObjs[buttonNum] = button + + buttonNum = buttonNum + 1 + end + + toggleSelection(buttonObjs[1]) + + local numButtons = buttonNum-1 + + if numButtons == 1 then + frame.Button1.Position = UDim2.new(0.35, 0, yPos.Scale, yPos.Offset) + frame.Button1.Size = UDim2.new(.4,0,ySize.Scale, ySize.Offset) + elseif numButtons == 2 then + frame.Button1.Position = UDim2.new(0.1, 0, yPos.Scale, yPos.Offset) + frame.Button1.Size = UDim2.new(.35,0, ySize.Scale, ySize.Offset) + + frame.Button2.Position = UDim2.new(0.55, 0, yPos.Scale, yPos.Offset) + frame.Button2.Size = UDim2.new(.35,0, ySize.Scale, ySize.Offset) + elseif numButtons >= 3 then + local spacing = .1 / numButtons + local buttonSize = .9 / numButtons + + buttonNum = 1 + while buttonNum <= numButtons do + buttonObjs[buttonNum].Position = UDim2.new(spacing*buttonNum + (buttonNum-1) * buttonSize, 0, yPos.Scale, yPos.Offset) + buttonObjs[buttonNum].Size = UDim2.new(buttonSize, 0, ySize.Scale, ySize.Offset) + buttonNum = buttonNum + 1 + end + end +end + +function setRecordGui(recording, stopRecordButton, recordVideoButton) + if recording then + stopRecordButton.Visible = true + recordVideoButton.Text = "Stop Recording" + else + stopRecordButton.Visible = false + recordVideoButton.Text = "Record Video" + end +end + +function recordVideoClick(recordVideoButton, stopRecordButton) + recordingVideo = not recordingVideo + setRecordGui(recordingVideo, stopRecordButton, recordVideoButton) +end + +local currentlyToggling = false; +local DevConsoleToggle = nil; + +delay(0, function() + DevConsoleToggle = gui:WaitForChild("ToggleDevConsole") +end) + +function toggleDeveloperConsole() + if not DevConsoleToggle then + return + end + + DevConsoleToggle:Invoke() +end + +function backToGame(buttonClicked, shield, settingsButton) + buttonClicked.Parent.Parent.Parent.Parent.Visible = false + shield.Visible = false + for i = 1, #centerDialogs do + game.GuiService:RemoveCenterDialog(centerDialogs[i]) + centerDialogs[i].Visible = false + end + centerDialogs = {} + game.GuiService:RemoveCenterDialog(shield) + settingsButton.Active = true +end + +function setDisabledState(guiObject) + if not guiObject then return end + + if guiObject:IsA("TextLabel") then + guiObject.TextTransparency = 0.9 + elseif guiObject:IsA("TextButton") then + guiObject.TextTransparency = 0.9 + guiObject.Active = false + else + if guiObject["ClassName"] then + print("setDisabledState() got object of unsupported type. object type is ",guiObject.ClassName) + end + end +end + +local function createHelpDialog(baseZIndex) + + if helpButton == nil then + if gui:FindFirstChild("TopLeftControl") and gui.TopLeftControl:FindFirstChild("Help") then + helpButton = gui.TopLeftControl.Help + elseif gui:FindFirstChild("BottomRightControl") and gui.BottomRightControl:FindFirstChild("Help") then + helpButton = gui.BottomRightControl.Help + end + end + + local shield = Instance.new("Frame") + shield.Name = "HelpDialogShield" + shield.Active = true + shield.Visible = false + shield.Size = UDim2.new(1,0,1,0) + shield.BackgroundColor3 = Color3I(51,51,51) + shield.BorderColor3 = Color3I(27,42,53) + shield.BackgroundTransparency = 0.4 + shield.ZIndex = baseZIndex + 2 + + local helpDialog = Instance.new("Frame") + helpDialog.Name = "HelpDialog" + helpDialog.Style = Enum.FrameStyle.DropShadow + helpDialog.Position = UDim2.new(.2, 0, .2, 0) + helpDialog.Size = UDim2.new(0.6, 0, 0.6, 0) + helpDialog.Active = true + helpDialog.Parent = shield + helpDialog.ZIndex = baseZIndex + 2 + + local titleLabel = Instance.new("TextLabel") + titleLabel.Name = "Title" + titleLabel.Text = "Keyboard & Mouse Controls" + titleLabel.Font = Enum.Font.SourceSansBold + titleLabel.FontSize = Enum.FontSize.Size36 + titleLabel.Position = UDim2.new(0, 0, 0.025, 0) + titleLabel.Size = UDim2.new(1, 0, 0, 40) + titleLabel.TextColor3 = Color3.new(1,1,1) + titleLabel.BackgroundTransparency = 1 + titleLabel.Parent = helpDialog + titleLabel.ZIndex = baseZIndex + 2 + + local buttonRow = Instance.new("Frame") + buttonRow.Name = "Buttons" + buttonRow.Position = UDim2.new(0.1, 0, .07, 40) + buttonRow.Size = UDim2.new(0.8, 0, 0, 45) + buttonRow.BackgroundTransparency = 1 + buttonRow.Parent = helpDialog + buttonRow.ZIndex = baseZIndex + 2 + + local imageFrame = Instance.new("Frame") + imageFrame.Name = "ImageFrame" + imageFrame.Position = UDim2.new(0.05, 0, 0.075, 80) + imageFrame.Size = UDim2.new(0.9, 0, .9, -120) + imageFrame.BackgroundTransparency = 1 + imageFrame.Parent = helpDialog + imageFrame.ZIndex = baseZIndex + 2 + + local layoutFrame = Instance.new("Frame") + layoutFrame.Name = "LayoutFrame" + layoutFrame.Position = UDim2.new(0.5, 0, 0, 0) + layoutFrame.Size = UDim2.new(1.5, 0, 1, 0) + layoutFrame.BackgroundTransparency = 1 + layoutFrame.SizeConstraint = Enum.SizeConstraint.RelativeYY + layoutFrame.Parent = imageFrame + layoutFrame.ZIndex = baseZIndex + 2 + + local image = Instance.new("ImageLabel") + image.Name = "Image" + if UserSettings().GameSettings.ControlMode == Enum.ControlMode["Mouse Lock Switch"] then + image.Image = mouseLockLookScreenUrl + else + image.Image = classicLookScreenUrl + end + image.Position = UDim2.new(-0.5, 0, 0, 0) + image.Size = UDim2.new(1, 0, 1, 0) + image.BackgroundTransparency = 1 + image.Parent = layoutFrame + image.ZIndex = baseZIndex + 2 + + local buttons = {} + buttons[1] = {} + buttons[1].Text = "Look" + buttons[1].Function = function() + if UserSettings().GameSettings.ControlMode == Enum.ControlMode["Mouse Lock Switch"] then + image.Image = mouseLockLookScreenUrl + else + image.Image = classicLookScreenUrl + end + end + buttons[2] = {} + buttons[2].Text = "Move" + buttons[2].Function = function() + image.Image = "http://www.mete0r.xyz/Asset?id=45915811" + end + buttons[3] = {} + buttons[3].Text = "Gear" + buttons[3].Function = function() + image.Image = "http://www.mete0r.xyz/Asset?id=45917596" + end + buttons[4] = {} + buttons[4].Text = "Zoom" + buttons[4].Function = function() + image.Image = "http://www.mete0r.xyz/Asset?id=45915825" + end + + CreateTextButtons(buttonRow, buttons, UDim.new(0, 0), UDim.new(1,0)) + + local devConsoleButton = Create'TextButton'{ + Name = "DeveloperConsoleButton"; + Text = "Log"; + Size = UDim2.new(0,60,0,30); + Style = Enum.ButtonStyle.RobloxRoundButton; + Position = UDim2.new(1,-65,1,-35); + Font = Enum.Font.SourceSansBold; + FontSize = Enum.FontSize.Size18; + TextColor3 = Color3.new(1,1,1); + ZIndex = baseZIndex + 4; + BackgroundTransparency = 1; + Parent = helpDialog; + } + + Create'TextLabel'{ + Name = "DeveloperConsoleButton"; + Text = "F9"; + Size = UDim2.new(0,14,0,14); + Position = UDim2.new(1,-6,0, -2); + Font = Enum.Font.SourceSansBold; + FontSize = Enum.FontSize.Size12; + TextColor3 = Color3.new(0,1,0); + ZIndex = baseZIndex + 4; + BackgroundTransparency = 1; + Parent = devConsoleButton; + } + + waitForProperty(game.Players, "LocalPlayer") + game.Players.LocalPlayer:GetMouse().KeyDown:connect(function(key) + if string.byte(key) == 34 then --F9 + toggleDeveloperConsole() + end + end) + + devConsoleButton.MouseButton1Click:connect(function() + toggleDeveloperConsole() + shield.Visible = false + game.GuiService:RemoveCenterDialog(shield) + end) + + -- set up listeners for type of mouse mode, but keep constructing gui at same time + delay(0, function() + waitForChild(gui,"UserSettingsShield") + waitForChild(gui.UserSettingsShield,"Settings") + waitForChild(gui.UserSettingsShield.Settings,"SettingsStyle") + waitForChild(gui.UserSettingsShield.Settings.SettingsStyle, "GameSettingsMenu") + waitForChild(gui.UserSettingsShield.Settings.SettingsStyle.GameSettingsMenu, "CameraField") + waitForChild(gui.UserSettingsShield.Settings.SettingsStyle.GameSettingsMenu.CameraField, "DropDownMenuButton") + gui.UserSettingsShield.Settings.SettingsStyle.GameSettingsMenu.CameraField.DropDownMenuButton.Changed:connect(function(prop) + if prop ~= "Text" then return end + if buttonRow.Button1.Style == Enum.ButtonStyle.RobloxRoundDefaultButton then -- only change if this is the currently selected panel + if gui.UserSettingsShield.Settings.SettingsStyle.GameSettingsMenu.CameraField.DropDownMenuButton.Text == "Classic" then + image.Image = classicLookScreenUrl + else + image.Image = mouseLockLookScreenUrl + end + end + end) + end) + + + local okBtn = Instance.new("TextButton") + okBtn.Name = "OkBtn" + okBtn.Text = "OK" + okBtn.Modal = true + okBtn.Size = UDim2.new(0.3, 0, 0, 45) + okBtn.Position = UDim2.new(0.35, 0, .975, -50) + okBtn.Font = Enum.Font.SourceSansBold + okBtn.FontSize = Enum.FontSize.Size18 + okBtn.BackgroundTransparency = 1 + okBtn.TextColor3 = Color3.new(1,1,1) + okBtn.Style = Enum.ButtonStyle.RobloxRoundDefaultButton + okBtn.ZIndex = baseZIndex + 2 + okBtn.MouseButton1Click:connect( + function() + shield.Visible = false + game.GuiService:RemoveCenterDialog(shield) + end) + okBtn.Parent = helpDialog + + robloxLock(shield) + return shield +end + +local function createLeaveConfirmationMenu(baseZIndex,shield) + local frame = Instance.new("Frame") + frame.Name = "LeaveConfirmationMenu" + frame.BackgroundTransparency = 1 + frame.Size = UDim2.new(1,0,1,0) + frame.Position = UDim2.new(0,0,2,400) + frame.ZIndex = baseZIndex + 4 + + local yesButton = createTextButton("Leave",Enum.ButtonStyle.RobloxRoundButton,Enum.FontSize.Size24,UDim2.new(0,128,0,50),UDim2.new(0,313,0.8,0)) + yesButton.Name = "YesButton" + yesButton.ZIndex = baseZIndex + 4 + yesButton.Parent = frame + yesButton.Modal = true + yesButton:SetVerb("Exit") + + local noButton = createTextButton("Stay",Enum.ButtonStyle.RobloxRoundDefaultButton,Enum.FontSize.Size24,UDim2.new(0,128,0,50),UDim2.new(0,90,0.8,0)) + noButton.Name = "NoButton" + noButton.Parent = frame + noButton.ZIndex = baseZIndex + 4 + noButton.MouseButton1Click:connect(function() + goToMenu(shield.Settings.SettingsStyle,"GameMainMenu","down",UDim2.new(0,525,0,430)) + shield.Settings:TweenSize(UDim2.new(0,525,0,430),Enum.EasingDirection.InOut,Enum.EasingStyle.Sine,tweenTime,true) + end) + + local leaveText = Instance.new("TextLabel") + leaveText.Name = "LeaveText" + leaveText.Text = "Leave this game?" + leaveText.Size = UDim2.new(1,0,0.8,0) + leaveText.TextWrap = true + leaveText.TextColor3 = Color3.new(1,1,1) + leaveText.Font = Enum.Font.SourceSansBold + leaveText.FontSize = Enum.FontSize.Size36 + leaveText.BackgroundTransparency = 1 + leaveText.ZIndex = baseZIndex + 4 + leaveText.Parent = frame + + return frame +end + +local function createResetConfirmationMenu(baseZIndex,shield) + local frame = Instance.new("Frame") + frame.Name = "ResetConfirmationMenu" + frame.BackgroundTransparency = 1 + frame.Size = UDim2.new(1,0,1,0) + frame.Position = UDim2.new(0,0,2,400) + frame.ZIndex = baseZIndex + 4 + + local yesButton = createTextButton("Reset",Enum.ButtonStyle.RobloxRoundDefaultButton,Enum.FontSize.Size24,UDim2.new(0,128,0,50),UDim2.new(0,313,0,280)) + yesButton.Name = "YesButton" + yesButton.ZIndex = baseZIndex + 4 + yesButton.Parent = frame + yesButton.Modal = true + yesButton.MouseButton1Click:connect(function() + resumeGameFunction(shield) + resetLocalCharacter() + end) + + local noButton = createTextButton("Cancel",Enum.ButtonStyle.RobloxRoundButton,Enum.FontSize.Size24,UDim2.new(0,128,0,50),UDim2.new(0,90,0,280)) + noButton.Name = "NoButton" + noButton.Parent = frame + noButton.ZIndex = baseZIndex + 4 + noButton.MouseButton1Click:connect(function() + goToMenu(shield.Settings.SettingsStyle,"GameMainMenu","down",UDim2.new(0,525,0,430)) + shield.Settings:TweenSize(UDim2.new(0,525,0,430),Enum.EasingDirection.InOut,Enum.EasingStyle.Sine,tweenTime,true) + end) + + local resetCharacterText = Instance.new("TextLabel") + resetCharacterText.Name = "ResetCharacterText" + resetCharacterText.Text = "Are you sure you want to reset your character?" + resetCharacterText.Size = UDim2.new(1,0,0.8,0) + resetCharacterText.TextWrap = true + resetCharacterText.TextColor3 = Color3.new(1,1,1) + resetCharacterText.Font = Enum.Font.SourceSansBold + resetCharacterText.FontSize = Enum.FontSize.Size36 + resetCharacterText.BackgroundTransparency = 1 + resetCharacterText.ZIndex = baseZIndex + 4 + resetCharacterText.Parent = frame + + local fineResetCharacterText = resetCharacterText:Clone() + fineResetCharacterText.Name = "FineResetCharacterText" + fineResetCharacterText.Text = "You will be put back on a spawn point" + fineResetCharacterText.Size = UDim2.new(0,303,0,18) + fineResetCharacterText.Position = UDim2.new(0, 109, 0, 215) + fineResetCharacterText.FontSize = Enum.FontSize.Size18 + fineResetCharacterText.Parent = frame + + return frame +end + +local function createGameMainMenu(baseZIndex, shield) + + local buttonTop = 54 + + local gameMainMenuFrame = Instance.new("Frame") + gameMainMenuFrame.Name = "GameMainMenu" + gameMainMenuFrame.BackgroundTransparency = 1 + gameMainMenuFrame.Size = UDim2.new(1,0,1,0) + gameMainMenuFrame.ZIndex = baseZIndex + 4 + gameMainMenuFrame.Parent = settingsFrame + + -- GameMainMenu Children + + -- RESUME GAME + local resumeGameButton = createTextButton("Resume Game",Enum.ButtonStyle.RobloxRoundDefaultButton,Enum.FontSize.Size24,UDim2.new(0,340,0,50),UDim2.new(0.5,-170,0,buttonTop)) + resumeGameButton.Name = "resumeGameButton" + resumeGameButton.ZIndex = baseZIndex + 4 + resumeGameButton.Parent = gameMainMenuFrame + resumeGameButton.Modal = true + resumeGameButton.MouseButton1Click:connect(function() resumeGameFunction(shield) end) + buttonTop = buttonTop + 51 + + -- RESET CHARACTER + local resetButton = createTextButton("Reset Character",Enum.ButtonStyle.RobloxRoundButton,Enum.FontSize.Size24,UDim2.new(0,340,0,50),UDim2.new(0.5,-170,0,buttonTop)) + resetButton.Name = "ResetButton" + resetButton.ZIndex = baseZIndex + 4 + resetButton.Parent = gameMainMenuFrame + buttonTop = buttonTop + 51 + + -- GAME SETTINGS + local gameSettingsButton = createTextButton("Game Settings",Enum.ButtonStyle.RobloxRoundButton,Enum.FontSize.Size24,UDim2.new(0,340,0,50),UDim2.new(0.5,-170,0,buttonTop)) + gameSettingsButton.Name = "SettingsButton" + gameSettingsButton.ZIndex = baseZIndex + 4 + gameSettingsButton.Parent = gameMainMenuFrame + buttonTop = buttonTop + 51 + + -- HELP BUTTON + local robloxHelpButton = createTextButton("Help",Enum.ButtonStyle.RobloxRoundButton,Enum.FontSize.Size18,UDim2.new(0,164,0,50),UDim2.new(0,92,0,buttonTop)) + robloxHelpButton.Name = "HelpButton" + robloxHelpButton.ZIndex = baseZIndex + 4 + robloxHelpButton.Parent = gameMainMenuFrame + robloxHelpButton.Visible = not touchClient + if macClient or touchClient then + robloxHelpButton.Size = UDim2.new(0,340,0,50) + robloxHelpButton.FontSize = Enum.FontSize.Size24 + end + + helpButton = robloxHelpButton + + local helpDialog = createHelpDialog(baseZIndex) + helpDialog.Parent = gui + + helpButton.MouseButton1Click:connect( + function() + table.insert(centerDialogs,helpDialog) + game.GuiService:AddCenterDialog(helpDialog, Enum.CenterDialogType.ModalDialog, + --ShowFunction + function() + helpDialog.Visible = true + mainShield.Visible = false + end, + --HideFunction + function() + helpDialog.Visible = false + end) + end) + helpButton.Active = true + + -- SCREEN SHOT + local screenshotButton = createTextButton("Screenshot",Enum.ButtonStyle.RobloxRoundButton,Enum.FontSize.Size18,UDim2.new(0,168,0,50),UDim2.new(0,264,0,buttonTop)) + screenshotButton.Name = "ScreenshotButton" + screenshotButton.ZIndex = baseZIndex + 4 + screenshotButton.Parent = gameMainMenuFrame + screenshotButton.Visible = not macClient and not touchClient + screenshotButton:SetVerb("Screenshot") + + if not touchClient then + buttonTop = buttonTop + 51 + end + + -- REPORT ABUSE + local reportAbuseButton = createTextButton("Report Abuse",Enum.ButtonStyle.RobloxRoundButton,Enum.FontSize.Size18,UDim2.new(0,164,0,50),UDim2.new(0,92,0,buttonTop)) + reportAbuseButton.Name = "ReportAbuseButton" + reportAbuseButton.ZIndex = baseZIndex + 4 + reportAbuseButton.Parent = gameMainMenuFrame + if macClient or touchClient then + reportAbuseButton.Size = UDim2.new(0,340,0,50) + reportAbuseButton.FontSize = Enum.FontSize.Size24 + end + + -- RECORD VIDEO + local recordVideoButton = createTextButton("Record Video",Enum.ButtonStyle.RobloxRoundButton,Enum.FontSize.Size18,UDim2.new(0,168,0,50),UDim2.new(0,264,0,buttonTop)) + recordVideoButton.Name = "RecordVideoButton" + recordVideoButton.ZIndex = baseZIndex + 4 + recordVideoButton.Parent = gameMainMenuFrame + recordVideoButton.Visible = not macClient and not touchClient + recordVideoButton:SetVerb("RecordToggle") + + local stopRecordButton = Instance.new("ImageButton") + stopRecordButton.Name = "StopRecordButton" + stopRecordButton.BackgroundTransparency = 1 + stopRecordButton.Image = "rbxasset://textures/ui/RecordStop.png" + stopRecordButton.Size = UDim2.new(0,59,0,27) + stopRecordButton:SetVerb("RecordToggle") + + stopRecordButton.MouseButton1Click:connect(function() recordVideoClick(recordVideoButton, stopRecordButton) end) + stopRecordButton.Visible = false + stopRecordButton.Parent = gui + buttonTop = buttonTop + 51 + + -- LEAVE GAME + local isAndroid = false + pcall(function() isAndroid = (Game:GetService("UserInputService"):GetPlatform() == Enum.Platform.Android) end) + + if (not isAndroid) then + local leaveGameButton = createTextButton("Leave Game",Enum.ButtonStyle.RobloxRoundButton,Enum.FontSize.Size24,UDim2.new(0,340,0,50),UDim2.new(0.5,-170,0,buttonTop)) + leaveGameButton.Name = "LeaveGameButton" + leaveGameButton.ZIndex = baseZIndex + 4 + leaveGameButton.Parent = gameMainMenuFrame + end + + return gameMainMenuFrame +end + +local function createGameSettingsMenu(baseZIndex, shield) + local gameSettingsMenuFrame = Instance.new("Frame") + gameSettingsMenuFrame.Name = "GameSettingsMenu" + gameSettingsMenuFrame.BackgroundTransparency = 1 + gameSettingsMenuFrame.Size = UDim2.new(1,0,1,0) + gameSettingsMenuFrame.ZIndex = baseZIndex + 4 + + local title = Instance.new("TextLabel") + title.Name = "Title" + title.Text = "Settings" + title.Size = UDim2.new(1,0,0,48) + title.Position = UDim2.new(0,9,0,-9) + title.Font = Enum.Font.SourceSansBold + title.FontSize = Enum.FontSize.Size36 + title.TextColor3 = Color3.new(1,1,1) + title.ZIndex = baseZIndex + 4 + title.BackgroundTransparency = 1 + title.Parent = gameSettingsMenuFrame + + + --[[ + local studioText = Instance.new("TextLabel") + studioText.Visible = false + studioText.Name = "StudioText" + studioText.Text = "Studio Mode" + studioText.Size = UDim2.new(0,95,0,18) + studioText.Position = UDim2.new(0,62,0,179) + studioText.Font = Enum.Font.SourceSansBold + studioText.FontSize = Enum.FontSize.Size18 + studioText.TextColor3 = Color3.new(1,1,1) + studioText.ZIndex = baseZIndex + 4 + studioText.BackgroundTransparency = 1 + studioText.Parent = gameSettingsMenuFrame + + local studioShortcut = fullscreenShortcut:clone() + studioShortcut.Name = "StudioShortcutText" + studioShortcut.Visible = false -- TODO: turn back on when f2 hack is fixed + studioShortcut.Text = "F2" + studioShortcut.Position = UDim2.new(0,154,0,175) + studioShortcut.Parent = gameSettingsMenuFrame + + local studioCheckbox = nil + --]] + + + local itemTop = 35 + ---------------------------------------------------------------------------------------------------- + -- C A M E R A C O N T R O L S + ---------------------------------------------------------------------------------------------------- + + if not touchClient then + local cameraLabel = Instance.new("TextLabel") + cameraLabel.Name = "CameraLabel" + cameraLabel.Text = "Character & Camera Controls" + cameraLabel.Font = Enum.Font.SourceSansBold + cameraLabel.FontSize = Enum.FontSize.Size18 + cameraLabel.Position = UDim2.new(0,31,0,itemTop + 6) + cameraLabel.Size = UDim2.new(0,224,0,18) + cameraLabel.TextColor3 = Color3I(255,255,255) + cameraLabel.TextXAlignment = Enum.TextXAlignment.Left + cameraLabel.BackgroundTransparency = 1 + cameraLabel.ZIndex = baseZIndex + 4 + cameraLabel.Parent = gameSettingsMenuFrame + + local mouseLockLabel = game.CoreGui.RobloxGui:FindFirstChild("MouseLockLabel",true) + + local enumItems = Enum.ControlMode:GetEnumItems() + local enumNames = {} + local enumNameToItem = {} + for i,obj in ipairs(enumItems) do + enumNames[i] = obj.Name + enumNameToItem[obj.Name] = obj + end + + local cameraDropDown + cameraDropDown, updateCameraDropDownSelection = RbxGui.CreateDropDownMenu(enumNames, + function(text) + UserSettings().GameSettings.ControlMode = enumNameToItem[text] + + pcall(function() + if mouseLockLabel and UserSettings().GameSettings.ControlMode == Enum.ControlMode["Mouse Lock Switch"] then + mouseLockLabel.Visible = true + elseif mouseLockLabel then + mouseLockLabel.Visible = false + end + end) + end, false, true, baseZIndex) + cameraDropDown.Name = "CameraField" + cameraDropDown.ZIndex = baseZIndex + 4 + cameraDropDown.DropDownMenuButton.ZIndex = baseZIndex + 4 + cameraDropDown.DropDownMenuButton.Icon.ZIndex = baseZIndex + 4 + cameraDropDown.Position = UDim2.new(0, 270, 0, itemTop) + cameraDropDown.Size = UDim2.new(0,200,0,32) + cameraDropDown.Parent = gameSettingsMenuFrame + + itemTop = itemTop + 35 + end + + ---------------------------------------------------------------------------------------------------- + -- V I D E O C A P T U R E S E T T I N G S + ---------------------------------------------------------------------------------------------------- + + local syncVideoCaptureSetting = nil + + if not macClient and not touchClient then + local videoCaptureLabel = Instance.new("TextLabel") + videoCaptureLabel.Name = "VideoCaptureLabel" + videoCaptureLabel.Text = "After Capturing Video" + videoCaptureLabel.Font = Enum.Font.SourceSansBold + videoCaptureLabel.FontSize = Enum.FontSize.Size18 + videoCaptureLabel.Position = UDim2.new(0,32,0,itemTop + 6) + videoCaptureLabel.Size = UDim2.new(0,164,0,18) + videoCaptureLabel.BackgroundTransparency = 1 + videoCaptureLabel.TextColor3 = Color3I(255,255,255) + videoCaptureLabel.TextXAlignment = Enum.TextXAlignment.Left + videoCaptureLabel.ZIndex = baseZIndex + 4 + videoCaptureLabel.Parent = gameSettingsMenuFrame + + local videoNames = {} + local videoNameToItem = {} + videoNames[1] = "Just Save to Disk" + videoNameToItem[videoNames[1]] = Enum.UploadSetting["Never"] + videoNames[2] = "Upload to YouTube" + videoNameToItem[videoNames[2]] = Enum.UploadSetting["Ask me first"] + + local videoCaptureDropDown = nil + videoCaptureDropDown, updateVideoCaptureDropDownSelection = RbxGui.CreateDropDownMenu(videoNames, + function(text) + UserSettings().GameSettings.VideoUploadPromptBehavior = videoNameToItem[text] + end, false, true, baseZIndex) + videoCaptureDropDown.Name = "VideoCaptureField" + videoCaptureDropDown.ZIndex = baseZIndex + 4 + videoCaptureDropDown.DropDownMenuButton.ZIndex = baseZIndex + 4 + videoCaptureDropDown.DropDownMenuButton.Icon.ZIndex = baseZIndex + 4 + videoCaptureDropDown.Position = UDim2.new(0, 270, 0, itemTop) + videoCaptureDropDown.Size = UDim2.new(0,200,0,32) + videoCaptureDropDown.Parent = gameSettingsMenuFrame + + syncVideoCaptureSetting = function() + if UserSettings().GameSettings.VideoUploadPromptBehavior == Enum.UploadSetting["Never"] then + updateVideoCaptureDropDownSelection(videoNames[1]) + elseif UserSettings().GameSettings.VideoUploadPromptBehavior == Enum.UploadSetting["Ask me first"] then + updateVideoCaptureDropDownSelection(videoNames[2]) + else + UserSettings().GameSettings.VideoUploadPromptBehavior = Enum.UploadSetting["Ask me first"] + updateVideoCaptureDropDownSelection(videoNames[2]) + end + end + itemTop = itemTop + 35 + end + + + ---------------------------------------------------------------------------------------------------- + -- C U S T O M C A M E R A C O N T R O L S + ---------------------------------------------------------------------------------------------------- + + local smartCameraLabel = Instance.new("TextLabel") + smartCameraLabel.Name = "SmartCameraLabel" + smartCameraLabel.Text = "Camera Mode" + smartCameraLabel.Font = Enum.Font.SourceSansBold + smartCameraLabel.FontSize = Enum.FontSize.Size18 + smartCameraLabel.Position = UDim2.new(0,31,0,itemTop + 6) + smartCameraLabel.Size = UDim2.new(0,224,0,18) + smartCameraLabel.TextColor3 = Color3I(255,255,255) + smartCameraLabel.TextXAlignment = Enum.TextXAlignment.Left + smartCameraLabel.BackgroundTransparency = 1 + smartCameraLabel.ZIndex = baseZIndex + 4 + smartCameraLabel.Parent = gameSettingsMenuFrame + + local smartEnumItems = nil + smartEnumItems = Enum.CustomCameraMode:GetEnumItems() + + local smartEnumNames = {} + local smartEnumNameToItem = {} + + for i,obj in pairs(smartEnumItems) do + local displayName = obj.Name + if (obj.Name == "Default") then + displayName = customCameraDefaultType + end + smartEnumNames[i] = displayName + smartEnumNameToItem[displayName] = obj.Value + end + + local smartCameraDropDown + smartCameraDropDown, updateSmartCameraDropDownSelection = RbxGui.CreateDropDownMenu(smartEnumNames, + function(text) + UserSettings().GameSettings.CameraMode = smartEnumNameToItem[text] + end, false, true, baseZIndex) + smartCameraDropDown.Name = "SmartCameraField" + smartCameraDropDown.ZIndex = baseZIndex + 4 + smartCameraDropDown.DropDownMenuButton.ZIndex = baseZIndex + 4 + smartCameraDropDown.DropDownMenuButton.Icon.ZIndex = baseZIndex + 4 + smartCameraDropDown.Position = UDim2.new(0, 270, 0, itemTop) + smartCameraDropDown.Size = UDim2.new(0,200,0,32) + smartCameraDropDown.Parent = gameSettingsMenuFrame + + itemTop = itemTop + 35 + + + ---------------------------------------------------------------------------------------------------- + -- T O U C H M O V E M E N T C O N T R O L S + ---------------------------------------------------------------------------------------------------- + if (touchClient) then + local touchMovementLabel = Instance.new("TextLabel") + touchMovementLabel.Name = "TouchMovementLabel" + touchMovementLabel.Text = "Movement Mode" + touchMovementLabel.Font = Enum.Font.SourceSansBold + touchMovementLabel.FontSize = Enum.FontSize.Size18 + touchMovementLabel.Position = UDim2.new(0,31,0,itemTop + 6) + touchMovementLabel.Size = UDim2.new(0,224,0,18) + touchMovementLabel.TextColor3 = Color3I(255,255,255) + touchMovementLabel.TextXAlignment = Enum.TextXAlignment.Left + touchMovementLabel.BackgroundTransparency = 1 + touchMovementLabel.ZIndex = baseZIndex + 4 + touchMovementLabel.Parent = gameSettingsMenuFrame + + local touchEnumItems = Enum.TouchMovementMode:GetEnumItems() + local touchEnumNames = {} + local touchEnumNameToItem = {} + for i,obj in ipairs(touchEnumItems) do + local displayName = obj.Name + if (obj.Name == "Default") then + displayName = "Default (Thumbstick)" + end + touchEnumNames[i] = displayName + touchEnumNameToItem[displayName] = obj + end + + local touchMovementDropDown + touchMovementDropDown, updateTouchMovementDropDownSelection = RbxGui.CreateDropDownMenu(touchEnumNames, + function(text) + UserSettings().GameSettings.TouchMovementMode = touchEnumNameToItem[text] + end, false, true, baseZIndex) + touchMovementDropDown.Name = "touchMovementField" + touchMovementDropDown.ZIndex = baseZIndex + 4 + touchMovementDropDown.DropDownMenuButton.ZIndex = baseZIndex + 4 + touchMovementDropDown.DropDownMenuButton.Icon.ZIndex = baseZIndex + 4 + touchMovementDropDown.Position = UDim2.new(0, 270, 0, itemTop) + touchMovementDropDown.Size = UDim2.new(0,200,0,32) + touchMovementDropDown.Parent = gameSettingsMenuFrame + + itemTop = itemTop + 35 + end + + ---------------------------------------------------------------------------------------------------- + -- F U L L S C R E E N M O D E + ---------------------------------------------------------------------------------------------------- + + local fullscreenText = nil + local fullscreenShortcut = nil + local fullscreenCheckbox = nil + + if not touchClient then + + itemTop = itemTop + 15 + + fullscreenText = Instance.new("TextLabel") + fullscreenText.Name = "FullscreenText" + fullscreenText.Text = "Fullscreen Mode" + + fullscreenText.Position = UDim2.new(0,31,0,itemTop + 6) + fullscreenText.Size = UDim2.new(0,224,0,18) + + fullscreenText.Font = Enum.Font.SourceSansBold + fullscreenText.FontSize = Enum.FontSize.Size18 + fullscreenText.TextXAlignment = Enum.TextXAlignment.Left + fullscreenText.TextColor3 = Color3.new(1,1,1) + fullscreenText.ZIndex = baseZIndex + 4 + fullscreenText.BackgroundTransparency = 1 + fullscreenText.Parent = gameSettingsMenuFrame + + fullscreenCheckbox = createTextButton("",Enum.ButtonStyle.RobloxRoundButton,Enum.FontSize.Size18,UDim2.new(0,32,0,32),UDim2.new(0, 270, 0, itemTop- 4)) + fullscreenCheckbox.Name = "FullscreenCheckbox" + fullscreenCheckbox.ZIndex = baseZIndex + 4 + fullscreenCheckbox.Parent = gameSettingsMenuFrame + fullscreenCheckbox:SetVerb("ToggleFullScreen") + if UserSettings().GameSettings:InFullScreen() then fullscreenCheckbox.Text = "X" end + if hasGraphicsSlider then + UserSettings().GameSettings.FullscreenChanged:connect(function(isFullscreen) + if isFullscreen then + fullscreenCheckbox.Text = "X" + else + fullscreenCheckbox.Text = "" + end + end) + else + fullscreenCheckbox.MouseButton1Click:connect(function() + if fullscreenCheckbox.Text == "" then + fullscreenCheckbox.Text = "X" + else + fullscreenCheckbox.Text = "" + end + end) + end + end + + + + ---------------------------------------------------------------------------------------------------- + -- G R A P H I C S S L I D E R + ---------------------------------------------------------------------------------------------------- + if hasGraphicsSlider then + local qualityText = Instance.new("TextLabel") + qualityText.Name = "QualityText" + qualityText.Text = "Graphics Quality" + qualityText.Size = UDim2.new(0,224,0,18) + qualityText.Position = UDim2.new(0,31,0,239) + + qualityText.TextXAlignment = Enum.TextXAlignment.Left + qualityText.Font = Enum.Font.SourceSansBold + qualityText.FontSize = Enum.FontSize.Size18 + qualityText.TextColor3 = Color3.new(1,1,1) + qualityText.ZIndex = baseZIndex + 4 + qualityText.BackgroundTransparency = 1 + qualityText.Parent = gameSettingsMenuFrame + qualityText.Visible = not inStudioMode + + local autoText = qualityText:clone() + autoText.Name = "AutoText" + autoText.Text = "Auto" + autoText.Position = UDim2.new(0,270,0,214) + autoText.TextColor3 = Color3.new(128/255,128/255,128/255) + autoText.Size = UDim2.new(0,34,0,18) + autoText.Parent = gameSettingsMenuFrame + autoText.Visible = not inStudioMode + + local fasterText = autoText:clone() + fasterText.Name = "FasterText" + fasterText.Text = "Faster" + fasterText.Position = UDim2.new(0,185,0,274) + fasterText.TextColor3 = Color3.new(95,95,95) + fasterText.FontSize = Enum.FontSize.Size14 + fasterText.Parent = gameSettingsMenuFrame + fasterText.Visible = not inStudioMode + + local betterQualityText = autoText:clone() + betterQualityText.Name = "BetterQualityText" + betterQualityText.Text = "Better Quality" + betterQualityText.TextWrap = true + betterQualityText.Size = UDim2.new(0,41,0,28) + betterQualityText.Position = UDim2.new(0,390,0,269) + betterQualityText.TextColor3 = Color3.new(95,95,95) + betterQualityText.FontSize = Enum.FontSize.Size14 + betterQualityText.Parent = gameSettingsMenuFrame + betterQualityText.Visible = not inStudioMode + + local autoGraphicsButton = createTextButton("X",Enum.ButtonStyle.RobloxRoundButton,Enum.FontSize.Size18,UDim2.new(0,32,0,32),UDim2.new(0,270,0,230)) + autoGraphicsButton.Name = "AutoGraphicsButton" + autoGraphicsButton.ZIndex = baseZIndex + 4 + autoGraphicsButton.Parent = gameSettingsMenuFrame + autoGraphicsButton.Visible = not inStudioMode + + local graphicsSlider, graphicsLevel = RbxGui.CreateSliderNew(GraphicsQualityLevels,150,UDim2.new(0, 230, 0, 280)) -- graphics - 1 because slider starts at 1 instead of 0 + graphicsSlider.Parent = gameSettingsMenuFrame + graphicsSlider.Bar.ZIndex = baseZIndex + 4 + graphicsSlider.Bar.Slider.ZIndex = baseZIndex + 5 + graphicsSlider.Visible = not inStudioMode + graphicsLevel.Value = math.floor((settings().Rendering:GetMaxQualityLevel() - 1)/2) + + local graphicsSetter = Instance.new("TextBox") + graphicsSetter.Name = "GraphicsSetter" + graphicsSetter.BackgroundColor3 = Color3.new(0,0,0) + graphicsSetter.BorderColor3 = Color3.new(128/255,128/255,128/255) + graphicsSetter.Size = UDim2.new(0,50,0,25) + graphicsSetter.Position = UDim2.new(0,450,0,269) + graphicsSetter.TextColor3 = Color3.new(1,1,1) + graphicsSetter.Font = Enum.Font.SourceSansBold + graphicsSetter.FontSize = Enum.FontSize.Size18 + graphicsSetter.Text = "Auto" + graphicsSetter.ZIndex = 1 + graphicsSetter.TextWrap = true + graphicsSetter.Parent = gameSettingsMenuFrame + graphicsSetter.Visible = not inStudioMode + + local isAutoGraphics = true + if not inStudioMode then + isAutoGraphics = (UserSettings().GameSettings.SavedQualityLevel == Enum.SavedQualitySetting.Automatic) + else + settings().Rendering.EnableFRM = false + end + + local listenToGraphicsLevelChange = true + + local function setAutoGraphicsGui(active) + isAutoGraphics = active + if active then + autoGraphicsButton.Text = "X" + betterQualityText.ZIndex = 1 + fasterText.ZIndex = 1 + graphicsSlider.Bar.ZIndex = 1 + graphicsSlider.BarLeft.ZIndex = 1 + graphicsSlider.BarRight.ZIndex = 1 + graphicsSlider.Bar.Fill.ZIndex = 1 + graphicsSlider.FillLeft.ZIndex = 1 + graphicsSlider.Bar.Slider.ZIndex = 1 + graphicsSetter.ZIndex = 1 + graphicsSetter.Text = "Auto" + else + autoGraphicsButton.Text = "" + graphicsSlider.Bar.ZIndex = baseZIndex + 4 + graphicsSlider.Bar.Slider.ZIndex = baseZIndex + 6 + graphicsSlider.BarLeft.ZIndex = baseZIndex + 4 + graphicsSlider.BarRight.ZIndex = baseZIndex + 4 + graphicsSlider.Bar.Fill.ZIndex = baseZIndex + 5 + graphicsSlider.FillLeft.ZIndex = baseZIndex + 5 + betterQualityText.ZIndex = baseZIndex + 4 + fasterText.ZIndex = baseZIndex + 4 + graphicsSetter.ZIndex = baseZIndex + 4 + end + end + + local function goToAutoGraphics() + setAutoGraphicsGui(true) + + UserSettings().GameSettings.SavedQualityLevel = Enum.SavedQualitySetting.Automatic + + settings().Rendering.QualityLevel = Enum.QualityLevel.Automatic + end + + local function setGraphicsQualityLevel(newLevel) + local percentage = newLevel/GraphicsQualityLevels + local newSetting = math.floor((settings().Rendering:GetMaxQualityLevel() - 1) * percentage) + if newSetting == 20 then -- Level 20 is the same as level 21, except it doesn't render ambient occlusion + newSetting = 21 + elseif newLevel == 1 then -- make sure we can go to lowest settings (for terrible computers) + newSetting = 1 + elseif newSetting > settings().Rendering:GetMaxQualityLevel() then + newSetting = settings().Rendering:GetMaxQualityLevel() - 1 + end + + UserSettings().GameSettings.SavedQualityLevel = newLevel + settings().Rendering.QualityLevel = newSetting + end + + local function goToManualGraphics(explicitLevel) + setAutoGraphicsGui(false) + + if explicitLevel then + graphicsLevel.Value = explicitLevel + else + graphicsLevel.Value = math.floor((settings().Rendering.AutoFRMLevel/(settings().Rendering:GetMaxQualityLevel() - 1)) * GraphicsQualityLevels) + end + + if explicitLevel == graphicsLevel.Value then -- make sure we are actually in right graphics mode + setGraphicsQualityLevel(graphicsLevel.Value) + end + + if not explicitLevel then + UserSettings().GameSettings.SavedQualityLevel = graphicsLevel.Value + end + graphicsSetter.Text = tostring(graphicsLevel.Value) + end + + local function showAutoGraphics() + autoText.ZIndex = baseZIndex + 4 + autoGraphicsButton.ZIndex = baseZIndex + 4 + end + + local function hideAutoGraphics() + autoText.ZIndex = 1 + autoGraphicsButton.ZIndex = 1 + end + + local function showManualGraphics() + graphicsSlider.Bar.ZIndex = baseZIndex + 4 + graphicsSlider.Bar.Slider.ZIndex = baseZIndex + 5 + betterQualityText.ZIndex = baseZIndex + 4 + fasterText.ZIndex = baseZIndex + 4 + graphicsSetter.ZIndex = baseZIndex + 4 + end + + local function hideManualGraphics() + betterQualityText.ZIndex = 1 + fasterText.ZIndex = 1 + graphicsSlider.Bar.ZIndex = 1 + graphicsSlider.Bar.Slider.ZIndex = 1 + graphicsSetter.ZIndex = 1 + end + + local function translateSavedQualityLevelToInt(savedQualityLevel) + if savedQualityLevel == Enum.SavedQualitySetting.Automatic then + return 0 + elseif savedQualityLevel == Enum.SavedQualitySetting.QualityLevel1 then + return 1 + elseif savedQualityLevel == Enum.SavedQualitySetting.QualityLevel2 then + return 2 + elseif savedQualityLevel == Enum.SavedQualitySetting.QualityLevel3 then + return 3 + elseif savedQualityLevel == Enum.SavedQualitySetting.QualityLevel4 then + return 4 + elseif savedQualityLevel == Enum.SavedQualitySetting.QualityLevel5 then + return 5 + elseif savedQualityLevel == Enum.SavedQualitySetting.QualityLevel6 then + return 6 + elseif savedQualityLevel == Enum.SavedQualitySetting.QualityLevel7 then + return 7 + elseif savedQualityLevel == Enum.SavedQualitySetting.QualityLevel8 then + return 8 + elseif savedQualityLevel == Enum.SavedQualitySetting.QualityLevel9 then + return 9 + elseif savedQualityLevel == Enum.SavedQualitySetting.QualityLevel10 then + return 10 + end + end + + local function enableGraphicsWidget() + settings().Rendering.EnableFRM = true + + isAutoGraphics = (UserSettings().GameSettings.SavedQualityLevel == Enum.SavedQualitySetting.Automatic) + if isAutoGraphics then + showAutoGraphics() + goToAutoGraphics() + else + showAutoGraphics() + showManualGraphics() + goToManualGraphics(translateSavedQualityLevelToInt(UserSettings().GameSettings.SavedQualityLevel)) + end + end + + local function disableGraphicsWidget() + hideManualGraphics() + hideAutoGraphics() + settings().Rendering.EnableFRM = false + end + + graphicsSetter.FocusLost:connect(function() + if isAutoGraphics then + graphicsSetter.Text = tostring(graphicsLevel.Value) + return + end + + local newGraphicsValue = tonumber(graphicsSetter.Text) + if newGraphicsValue == nil then + graphicsSetter.Text = tostring(graphicsLevel.Value) + return + end + + if newGraphicsValue < 1 then newGraphicsValue = 1 + elseif newGraphicsValue >= settings().Rendering:GetMaxQualityLevel() then + newGraphicsValue = settings().Rendering:GetMaxQualityLevel() - 1 + end + + graphicsLevel.Value = newGraphicsValue + setGraphicsQualityLevel(graphicsLevel.Value) + graphicsSetter.Text = tostring(graphicsLevel.Value) + end) + + graphicsLevel.Changed:connect(function(prop) + if isAutoGraphics then return end + if not listenToGraphicsLevelChange then return end + + graphicsSetter.Text = tostring(graphicsLevel.Value) + setGraphicsQualityLevel(graphicsLevel.Value) + end) + + -- setup our graphic mode on load + if inStudioMode or UserSettings().GameSettings.SavedQualityLevel == Enum.SavedQualitySetting.Automatic then + if inStudioMode then + settings().Rendering.EnableFRM = false + disableGraphicsWidget() + else + settings().Rendering.EnableFRM = true + goToAutoGraphics() + end + else + settings().Rendering.EnableFRM = true + goToManualGraphics(translateSavedQualityLevelToInt(UserSettings().GameSettings.SavedQualityLevel)) + end + + autoGraphicsButton.MouseButton1Click:connect(function() + if inStudioMode and not game.Players.LocalPlayer then return end + + if not isAutoGraphics then + goToAutoGraphics() + else + goToManualGraphics(graphicsLevel.Value) + end + end) + + local lastUpdate = nil + game.GraphicsQualityChangeRequest:connect(function(graphicsIncrease) + if isAutoGraphics then return end -- only can set graphics in manual mode + + if graphicsIncrease then + if (graphicsLevel.Value + 1) > GraphicsQualityLevels then return end + graphicsLevel.Value = graphicsLevel.Value + 1 + graphicsSetter.Text = tostring(graphicsLevel.Value) + setGraphicsQualityLevel(graphicsLevel.Value) + + game:GetService("GuiService"):SendNotification("Graphics Quality", + "Increased to (" .. graphicsSetter.Text .. ")", + "", + 2, + function() + end) + else + if (graphicsLevel.Value - 1) <= 0 then return end + graphicsLevel.Value = graphicsLevel.Value - 1 + graphicsSetter.Text = tostring(graphicsLevel.Value) + setGraphicsQualityLevel(graphicsLevel.Value) + + game:GetService("GuiService"):SendNotification("Graphics Quality", + "Decreased to (" .. graphicsSetter.Text .. ")", + "", + 2, + function() + end) + end + end) + + game.Players.PlayerAdded:connect(function(player) + if player == game.Players.LocalPlayer and inStudioMode then + enableGraphicsWidget() + end + end) + game.Players.PlayerRemoving:connect(function(player) + if player == game.Players.LocalPlayer and inStudioMode then + disableGraphicsWidget() + end + end) + + studioCheckbox = createTextButton("",Enum.ButtonStyle.RobloxRoundButton,Enum.FontSize.Size18,UDim2.new(0,25,0,25),UDim2.new(0,30,0,176)) + studioCheckbox.Name = "StudioCheckbox" + studioCheckbox.ZIndex = baseZIndex + 4 + --studioCheckbox.Parent = gameSettingsMenuFrame -- todo: enable when studio h4x aren't an issue anymore + studioCheckbox:SetVerb("TogglePlayMode") + studioCheckbox.Visible = false -- todo: enabled when studio h4x aren't an issue anymore + + local wasManualGraphics = (settings().Rendering.QualityLevel ~= Enum.QualityLevel.Automatic) + if inStudioMode and not game.Players.LocalPlayer then + studioCheckbox.Text = "X" + disableGraphicsWidget() + elseif inStudioMode then + studioCheckbox.Text = "X" + enableGraphicsWidget() + end + if hasGraphicsSlider then + UserSettings().GameSettings.StudioModeChanged:connect(function(isStudioMode) + inStudioMode = isStudioMode + if isStudioMode then + wasManualGraphics = (settings().Rendering.QualityLevel ~= Enum.QualityLevel.Automatic) + goToAutoGraphics() + studioCheckbox.Text = "X" + autoGraphicsButton.ZIndex = 1 + autoText.ZIndex = 1 + else + if wasManualGraphics then + goToManualGraphics() + end + studioCheckbox.Text = "" + autoGraphicsButton.ZIndex = baseZIndex + 4 + autoText.ZIndex = baseZIndex + 4 + end + end) + else + studioCheckbox.MouseButton1Click:connect(function() + if not studioCheckbox.Active then return end + + if studioCheckbox.Text == "" then + studioCheckbox.Text = "X" + else + studioCheckbox.Text = "" + end + end) + end + end + + + if game:FindFirstChild("NetworkClient") then -- we are playing online + setDisabledState(studioText) + setDisabledState(studioShortcut) + setDisabledState(studioCheckbox) + end + + + ---------------------------------------------------------------------------------------------------- + -- O K B U T T O N + ---------------------------------------------------------------------------------------------------- + + + local backButton + if hasGraphicsSlider then + backButton = createTextButton("OK",Enum.ButtonStyle.RobloxRoundDefaultButton,Enum.FontSize.Size24,UDim2.new(0,180,0,50),UDim2.new(0,170,0,315)) + backButton.Modal = true + else + backButton = createTextButton("OK",Enum.ButtonStyle.RobloxRoundDefaultButton,Enum.FontSize.Size24,UDim2.new(0,180,0,50),UDim2.new(0,170,0,270)) + backButton.Modal = true + end + + backButton.Name = "BackButton" + backButton.ZIndex = baseZIndex + 4 + backButton.Parent = gameSettingsMenuFrame + + return gameSettingsMenuFrame +end + +local showMainMenu = nil + +if LoadLibrary then + RbxGui = LoadLibrary("RbxGui") + local baseZIndex = 4 +if UserSettings then + + waitForChild(gui,"TopLeftControl") + waitForChild(gui,"BottomLeftControl") + + + local settingButtonParent = gui:WaitForChild("TopLeftControl") + local createSettingsDialog = function() + if touchClient then + waitForChild(gui,"TopLeftControl") + else + settingButtonParent = gui:WaitForChild("BottomLeftControl") + end + + settingsButton = settingButtonParent:FindFirstChild("SettingsButton") + + if settingsButton == nil then + settingsButton = Instance.new("ImageButton") + settingsButton.Name = "SettingsButton" + settingsButton.Image = "rbxasset://textures/ui/homeButton.png" + settingsButton.BackgroundTransparency = 1 + settingsButton.Active = false + settingsButton.Size = UDim2.new(0,36,0,28) + if (touchClient) then + settingsButton.Position = UDim2.new(0,2,0,5) + else + settingsButton.Position = UDim2.new(0, 15, 1, -42) + end + settingsButton.Parent = settingButtonParent + end + + local shield = Instance.new("TextButton") + shield.Text = "" + shield.Name = "UserSettingsShield" + shield.Active = true + shield.AutoButtonColor = false + shield.Visible = false + shield.Size = UDim2.new(1,0,1,0) + shield.BackgroundColor3 = Color3I(51,51,51) + shield.BorderColor3 = Color3I(27,42,53) + shield.BackgroundTransparency = 0.4 + shield.ZIndex = baseZIndex + 2 + mainShield = shield + + local frame = Instance.new("Frame") + frame.Name = "Settings" + frame.Position = UDim2.new(0.5, -262, -0.5, -200) + frame.Size = UDim2.new(0, 525, 0, 430) + frame.BackgroundTransparency = 1 + frame.Active = true + frame.Parent = shield + + local settingsFrame = Instance.new("Frame") + settingsFrame.Name = "SettingsStyle" + settingsFrame.Size = UDim2.new(1, 0, 1, 0) + settingsFrame.Style = Enum.FrameStyle.DropShadow + settingsFrame.Active = true + settingsFrame.ZIndex = baseZIndex + 3 + settingsFrame.Parent = frame + + local gameMainMenu = createGameMainMenu(baseZIndex, shield) + gameMainMenu.Parent = settingsFrame + + gameMainMenu.ScreenshotButton.MouseButton1Click:connect(function() + backToGame(gameMainMenu.ScreenshotButton, shield, settingsButton) + end) + + gameMainMenu.RecordVideoButton.MouseButton1Click:connect(function() + recordVideoClick(gameMainMenu.RecordVideoButton, gui.StopRecordButton) + backToGame(gameMainMenu.RecordVideoButton, shield, settingsButton) + end) + + if settings():FindFirstChild("Game Options") then + pcall(function() + settings():FindFirstChild("Game Options").VideoRecordingChangeRequest:connect(function(recording) + recordingVideo = recording + setRecordGui(recording, gui.StopRecordButton, gameMainMenu.RecordVideoButton) + end) + end) + end + + game.CoreGui.RobloxGui.Changed:connect(function(prop) -- We have stopped recording when we resize + if prop == "AbsoluteSize" and recordingVideo then + recordVideoClick(gameMainMenu.RecordVideoButton, gui.StopRecordButton) + end + end) + + function localPlayerChange() + gameMainMenu.ResetButton.Visible = game.Players.LocalPlayer + if game.Players.LocalPlayer then + settings().Rendering.EnableFRM = true + elseif inStudioMode then + settings().Rendering.EnableFRM = false + end + end + + gameMainMenu.ResetButton.Visible = game.Players.LocalPlayer + if game.Players.LocalPlayer ~= nil then + game.Players.LocalPlayer.Changed:connect(function() + localPlayerChange() + end) + else + delay(0,function() + waitForProperty(game.Players,"LocalPlayer") + gameMainMenu.ResetButton.Visible = game.Players.LocalPlayer + game.Players.LocalPlayer.Changed:connect(function() + localPlayerChange() + end) + end) + end + + gameMainMenu.ReportAbuseButton.Visible = game:FindFirstChild("NetworkClient") + -- TODO: remove line below when not testing report abuse + if (testReport) then + gameMainMenu.ReportAbuseButton.Visible = true + end + if not gameMainMenu.ReportAbuseButton.Visible then + game.ChildAdded:connect(function(child) + if child:IsA("NetworkClient") then + gameMainMenu.ReportAbuseButton.Visible = game:FindFirstChild("NetworkClient") + end + end) + end + + gameMainMenu.ResetButton.MouseButton1Click:connect(function() + goToMenu(settingsFrame,"ResetConfirmationMenu","up",UDim2.new(0,525,0,370)) + end) + + local leaveGameButton = gameMainMenu:FindFirstChild("LeaveGameButton") + if (leaveGameButton) then + gameMainMenu.LeaveGameButton.MouseButton1Click:connect(function() + goToMenu(settingsFrame,"LeaveConfirmationMenu","down",UDim2.new(0,525,0,300)) + end) + end + + showMainMenu = function(overrideMenu, overrideDir, overrideSize) + if shield.Visible and overrideMenu then + goToMenu(settingsFrame,overrideMenu,overrideDir,overrideSize) + return + end + + game.GuiService:AddCenterDialog(shield, Enum.CenterDialogType.ModalDialog, + --showFunction + function() + settingsButton.Active = false + if updateCameraDropDownSelection ~= nil then + updateCameraDropDownSelection(UserSettings().GameSettings.ControlMode.Name) + end + + local cameraMode = UserSettings().GameSettings.CameraMode.Name + if (cameraMode == "Default") then + cameraMode = customCameraDefaultType + end + updateSmartCameraDropDownSelection(cameraMode) + + if updateTouchMovementDropDownSelection ~= nil then + local moveMode = UserSettings().GameSettings.TouchMovementMode.Name + if (moveMode == "Default") then + moveMode = "Default (Thumbstick)" + end + updateTouchMovementDropDownSelection(moveMode) + end + + pcall(function() game:GetService("UserInputService").OverrideMouseIconEnabled = true end) + + + if syncVideoCaptureSetting then + syncVideoCaptureSetting() + end + + local menuToGoTo = "GameMainMenu" + local direction = "right" + local menuSize = UDim2.new(0,525,0,430) + + if overrideMenu then + menuToGoTo = overrideMenu + end + if overrideDir then + direction = overrideDir + end + if overrideSize then + menuSize = overrideSize + end + + goToMenu(settingsFrame,menuToGoTo,direction,menuSize) + shield.Visible = true + shield.Active = true + settingsFrame.Parent:TweenPosition(UDim2.new(0.5, -262,0.5, -200),Enum.EasingDirection.InOut,Enum.EasingStyle.Sine,tweenTime,true) + settingsFrame.Parent:TweenSize(UDim2.new(0,525,0,430),Enum.EasingDirection.InOut,Enum.EasingStyle.Sine,tweenTime,true) + end, + --hideFunction + function() + settingsFrame.Parent:TweenPosition(UDim2.new(0.5, -262,-0.5, -200),Enum.EasingDirection.InOut,Enum.EasingStyle.Sine,tweenTime,true) + settingsFrame.Parent:TweenSize(UDim2.new(0,525,0,430),Enum.EasingDirection.InOut,Enum.EasingStyle.Sine,tweenTime,true) + shield.Visible = false + settingsButton.Active = true + end) + end + + if game.CoreGui.Version >= 4 then -- we can use escape! + game:GetService("GuiService").EscapeKeyPressed:connect(function() + if currentMenuSelection == nil then + showMainMenu() + elseif #lastMenuSelection > 0 then + if #centerDialogs > 0 then + for i = 1, #centerDialogs do + game.GuiService:RemoveCenterDialog(centerDialogs[i]) + centerDialogs[i].Visible = false + end + centerDialogs = {} + end + + goToMenu(lastMenuSelection[#lastMenuSelection]["container"],lastMenuSelection[#lastMenuSelection]["name"], + lastMenuSelection[#lastMenuSelection]["direction"],lastMenuSelection[#lastMenuSelection]["lastSize"]) + + table.remove(lastMenuSelection,#lastMenuSelection) + if #lastMenuSelection == 1 then -- apparently lua can't reduce count to 0... T_T + lastMenuSelection = {} + end + else + resumeGameFunction(shield) + end + end) + end + + local gameSettingsMenu = createGameSettingsMenu(baseZIndex, shield) + gameSettingsMenu.Visible = false + gameSettingsMenu.Parent = settingsFrame + + gameMainMenu.SettingsButton.MouseButton1Click:connect(function() + goToMenu(settingsFrame,"GameSettingsMenu","left",UDim2.new(0,525,0,350)) + end) + + gameSettingsMenu.BackButton.MouseButton1Click:connect(function() + goToMenu(settingsFrame,"GameMainMenu","right",UDim2.new(0,525,0,430)) + end) + + local resetConfirmationWindow = createResetConfirmationMenu(baseZIndex, shield) + resetConfirmationWindow.Visible = false + resetConfirmationWindow.Parent = settingsFrame + + local leaveConfirmationWindow = createLeaveConfirmationMenu(baseZIndex,shield) + leaveConfirmationWindow.Visible = false + leaveConfirmationWindow.Parent = settingsFrame + + robloxLock(shield) + + settingsButton.MouseButton1Click:connect( + function() + game.GuiService:AddCenterDialog(shield, Enum.CenterDialogType.ModalDialog, + --showFunction + function() + settingsButton.Active = false + if updateCameraDropDownSelection ~= nil then + updateCameraDropDownSelection(UserSettings().GameSettings.ControlMode.Name) + end + + local cameraMode = UserSettings().GameSettings.CameraMode.Name + if (cameraMode == "Default") then + cameraMode = customCameraDefaultType + end + updateSmartCameraDropDownSelection(cameraMode) + + if updateTouchMovementDropDownSelection ~= nil then + local moveMode = UserSettings().GameSettings.TouchMovementMode.Name + if (moveMode == "Default") then + moveMode = "Default (Thumbstick)" + end + updateTouchMovementDropDownSelection(moveMode) + end + + if syncVideoCaptureSetting then + syncVideoCaptureSetting() + end + + goToMenu(settingsFrame,"GameMainMenu","right",UDim2.new(0,525,0,430)) + shield.Visible = true + settingsFrame.Parent:TweenPosition(UDim2.new(0.5, -262,0.5, -200),Enum.EasingDirection.InOut,Enum.EasingStyle.Sine,tweenTime,true) + settingsFrame.Parent:TweenSize(UDim2.new(0,525,0,430),Enum.EasingDirection.InOut,Enum.EasingStyle.Sine,tweenTime,true) + end, + --hideFunction + function() + settingsFrame.Parent:TweenPosition(UDim2.new(0.5, -262,-0.5, -200),Enum.EasingDirection.InOut,Enum.EasingStyle.Sine,tweenTime,true) + settingsFrame.Parent:TweenSize(UDim2.new(0,525,0,430),Enum.EasingDirection.InOut,Enum.EasingStyle.Sine,tweenTime,true) + shield.Visible = false + settingsButton.Active = true + end) + end) + + return shield + end + + delay(0, function() + createSettingsDialog().Parent = gui + + settingButtonParent.SettingsButton.Active = true +-- settingButtonParent.SettingsButton.Position = UDim2.new(0,2,0,-2) + + if mouseLockLabel and UserSettings().GameSettings.ControlMode == Enum.ControlMode["Mouse Lock Switch"] then + mouseLockLabel.Visible = true + elseif mouseLockLabel then + mouseLockLabel.Visible = false + end + + -- our script has loaded, get rid of older buttons now + local leaveGameButton = gui.BottomLeftControl:FindFirstChild("Exit") + if leaveGameButton then leaveGameButton:Remove() end + + local topLeft = gui:FindFirstChild("TopLeftControl") + if topLeft then + leaveGameButton = topLeft:FindFirstChild("Exit") + if leaveGameButton then leaveGameButton:Remove() end + + if settingButtonParent ~= topLeft then + topLeft:Remove() + end + end + --]] + end) + +end --UserSettings call + +local createSaveDialogs = function() + local shield = Instance.new("TextButton") + shield.Text = "" + shield.AutoButtonColor = false + shield.Name = "SaveDialogShield" + shield.Active = true + shield.Visible = false + shield.Size = UDim2.new(1,0,1,0) + shield.BackgroundColor3 = Color3I(51,51,51) + shield.BorderColor3 = Color3I(27,42,53) + shield.BackgroundTransparency = 0.4 + shield.ZIndex = baseZIndex+1 + + local clearAndResetDialog + local save + local saveLocal + local dontSave + local cancel + + local messageBoxButtons = {} + messageBoxButtons[1] = {} + messageBoxButtons[1].Text = "Save" + messageBoxButtons[1].Style = Enum.ButtonStyle.RobloxRoundDefaultButton + messageBoxButtons[1].Function = function() save() end + messageBoxButtons[1].ZIndex = baseZIndex+3 + messageBoxButtons[2] = {} + messageBoxButtons[2].Text = "Cancel" + messageBoxButtons[2].Function = function() cancel() end + messageBoxButtons[2].Style = Enum.ButtonStyle.RobloxRoundButton + messageBoxButtons[2].ZIndex = baseZIndex+3 + messageBoxButtons[3] = {} + messageBoxButtons[3].Text = "Don't Save" + messageBoxButtons[3].Function = function() dontSave() end + messageBoxButtons[3].Style = Enum.ButtonStyle.RobloxRoundButton + messageBoxButtons[3].ZIndex = baseZIndex+3 + + local saveDialogMessageBox = RbxGui.CreateStyledMessageDialog("Unsaved Changes", "Save your changes to ROBLOX before leaving?", "Confirm", messageBoxButtons) + saveDialogMessageBox.Visible = true + saveDialogMessageBox.Parent = shield + saveDialogMessageBox.ZIndex = baseZIndex+2 + saveDialogMessageBox.Style = Enum.FrameStyle.DropShadow + saveDialogMessageBox.Title.ZIndex = baseZIndex+3 + saveDialogMessageBox.Message.ZIndex = baseZIndex+3 + saveDialogMessageBox.StyleImage.ZIndex = baseZIndex+3 + + + local errorBoxButtons = {} + + local buttonOffset = 1 + if game.LocalSaveEnabled then + errorBoxButtons[buttonOffset] = {} + errorBoxButtons[buttonOffset].Text = "Save to Disk" + errorBoxButtons[buttonOffset].Function = function() saveLocal() end + buttonOffset = buttonOffset + 1 + end + errorBoxButtons[buttonOffset] = {} + errorBoxButtons[buttonOffset].Text = "Keep Playing" + errorBoxButtons[buttonOffset].Function = function() cancel() end + errorBoxButtons[buttonOffset].Style = Enum.ButtonStyle.RobloxRoundButton + errorBoxButtons[buttonOffset].ZIndex = baseZIndex+3 + errorBoxButtons[buttonOffset+1] = {} + errorBoxButtons[buttonOffset+1].Text = "Don't Save" + errorBoxButtons[buttonOffset+1].Function = function() dontSave() end + errorBoxButtons[buttonOffset+1].Style = Enum.ButtonStyle.RobloxRoundButton + errorBoxButtons[buttonOffset+1].ZIndex = baseZIndex+3 + + local errorDialogMessageBox = RbxGui.CreateStyledMessageDialog("Upload Failed", "Sorry, we could not save your changes to ROBLOX. If this problem continues to occur, please make sure your Roblox account has a verified email address.", "Error", errorBoxButtons) + errorDialogMessageBox.Visible = false + errorDialogMessageBox.Parent = shield + errorDialogMessageBox.ZIndex = baseZIndex+2 + errorDialogMessageBox.Style = Enum.FrameStyle.DropShadow + errorDialogMessageBox.Title.ZIndex = baseZIndex+3 + errorDialogMessageBox.Message.ZIndex = baseZIndex+3 + errorDialogMessageBox.StyleImage.ZIndex = baseZIndex+3 + + local spinnerDialog = Instance.new("Frame") + spinnerDialog.Name = "SpinnerDialog" + spinnerDialog.Style = Enum.FrameStyle.DropShadow + spinnerDialog.Size = UDim2.new(0, 350, 0, 150) + spinnerDialog.Position = UDim2.new(.5, -175, .5, -75) + spinnerDialog.Visible = false + spinnerDialog.Active = true + spinnerDialog.ZIndex = baseZIndex+1 + spinnerDialog.Parent = shield + + local waitingLabel = Instance.new("TextLabel") + waitingLabel.Name = "WaitingLabel" + waitingLabel.Text = "Saving to ROBLOX..." + waitingLabel.Font = Enum.Font.SourceSansBold + waitingLabel.FontSize = Enum.FontSize.Size18 + waitingLabel.Position = UDim2.new(0.5, 25, 0.5, 0) + waitingLabel.TextColor3 = Color3.new(1,1,1) + waitingLabel.ZIndex = baseZIndex+2 + waitingLabel.Parent = spinnerDialog + + local spinnerFrame = Instance.new("Frame") + spinnerFrame.Name = "Spinner" + spinnerFrame.Size = UDim2.new(0, 80, 0, 80) + spinnerFrame.Position = UDim2.new(0.5, -150, 0.5, -40) + spinnerFrame.BackgroundTransparency = 1 + spinnerFrame.ZIndex = baseZIndex+2 + spinnerFrame.Parent = spinnerDialog + + local spinnerIcons = {} + local spinnerNum = 1 + while spinnerNum <= 8 do + local spinnerImage = Instance.new("ImageLabel") + spinnerImage.Name = "Spinner"..spinnerNum + spinnerImage.Size = UDim2.new(0, 16, 0, 16) + spinnerImage.Position = UDim2.new(.5+.3*math.cos(math.rad(45*spinnerNum)), -8, .5+.3*math.sin(math.rad(45*spinnerNum)), -8) + spinnerImage.BackgroundTransparency = 1 + spinnerImage.Image = "http://www.mete0r.xyz/Asset?id=45880710" + spinnerImage.ZIndex = baseZIndex+3 + spinnerImage.Parent = spinnerFrame + + spinnerIcons[spinnerNum] = spinnerImage + spinnerNum = spinnerNum + 1 + end + + save = function() + saveDialogMessageBox.Visible = false + + --Show the spinner dialog + spinnerDialog.Visible = true + local spin = true + --Make it spin + delay(0, function() + local spinPos = 0 + while spin do + local pos = 0 + + while pos < 8 do + if pos == spinPos or pos == ((spinPos+1)%8) then + spinnerIcons[pos+1].Image = "http://www.mete0r.xyz/Asset?id=45880668" + else + spinnerIcons[pos+1].Image = "http://www.mete0r.xyz/Asset?id=45880710" + end + + pos = pos + 1 + end + spinPos = (spinPos + 1) % 8 + wait(0.2) + end + end) + + --Do the save while the spinner is going, function will wait + local result = game:SaveToRoblox() + if not result then + --Try once more + result = game:SaveToRoblox() + end + + --Hide the spinner dialog + spinnerDialog.Visible = false + --And cause the delay thread to stop + spin = false + + --Now process the result + if result then + --Success, close + game:FinishShutdown(false) + clearAndResetDialog() + else + --Failure, show the second dialog prompt + errorDialogMessageBox.Visible = true + end + end + + saveLocal = function() + errorDialogMessageBox.Visible = false + game:FinishShutdown(true) + clearAndResetDialog() + end + + dontSave = function() + saveDialogMessageBox.Visible = false + errorDialogMessageBox.Visible = false + game:FinishShutdown(false) + clearAndResetDialog() + end + cancel = function() + saveDialogMessageBox.Visible = false + errorDialogMessageBox.Visible = false + clearAndResetDialog() + end + + clearAndResetDialog = function() + saveDialogMessageBox.Visible = true + errorDialogMessageBox.Visible = false + spinnerDialog.Visible = false + shield.Visible = false + game.GuiService:RemoveCenterDialog(shield) + end + + robloxLock(shield) + shield.Visible = false + return shield +end + +local createReportAbuseDialog = function() + --Only show things if we are a NetworkClient + -- TODO: add line back in when not testing report abuse + if not testReport then + waitForChild(game,"NetworkClient") + end + + waitForChild(game,"Players") + waitForProperty(game.Players, "LocalPlayer") + local localPlayer = game.Players.LocalPlayer + + local reportAbuseButton + waitForChild(gui,"UserSettingsShield") + waitForChild(gui.UserSettingsShield, "Settings") + waitForChild(gui.UserSettingsShield.Settings,"SettingsStyle") + waitForChild(gui.UserSettingsShield.Settings.SettingsStyle,"GameMainMenu") + waitForChild(gui.UserSettingsShield.Settings.SettingsStyle.GameMainMenu, "ReportAbuseButton") + reportAbuseButton = gui.UserSettingsShield.Settings.SettingsStyle.GameMainMenu.ReportAbuseButton + + local shield = Instance.new("TextButton") + shield.Name = "ReportAbuseShield" + shield.Text = "" + shield.AutoButtonColor = false + shield.Active = true + shield.Visible = false + shield.Size = UDim2.new(1,0,1,0) + shield.BackgroundColor3 = Color3I(51,51,51) + shield.BorderColor3 = Color3I(27,42,53) + shield.BackgroundTransparency = 0.4 + shield.ZIndex = baseZIndex + 1 + + local closeAndResetDialgo + + local messageBoxButtons = {} + messageBoxButtons[1] = {} + messageBoxButtons[1].Text = "Ok" + messageBoxButtons[1].Modal = true + messageBoxButtons[1].Style = Enum.ButtonStyle.RobloxRoundDefaultButton + messageBoxButtons[1].ZIndex = baseZIndex+3 + messageBoxButtons[1].Function = function() closeAndResetDialog() end + local calmingMessageBox = RbxGui.CreateMessageDialog("Thanks for your report!", "Our moderators will review the chat logs and determine what happened. The other user is probably just trying to make you mad.\n\nIf anyone used swear words, inappropriate language, or threatened you in real life, please report them for Bad Words or Threats", messageBoxButtons) + calmingMessageBox.Visible = false + calmingMessageBox.Parent = shield + calmingMessageBox.ZIndex = baseZIndex+2 + calmingMessageBox.Style = Enum.FrameStyle.DropShadow + calmingMessageBox.Title.ZIndex = baseZIndex+3 + calmingMessageBox.Message.ZIndex = baseZIndex+3 + + local recordedMessageBox = RbxGui.CreateMessageDialog("Thanks for your report!","We've recorded your report for evaluation.", messageBoxButtons) + recordedMessageBox.Visible = false + recordedMessageBox.Parent = shield + recordedMessageBox.ZIndex = baseZIndex+2 + recordedMessageBox.Style = Enum.FrameStyle.DropShadow + recordedMessageBox.Title.ZIndex = baseZIndex+3 + recordedMessageBox.Message.ZIndex = baseZIndex+3 + + local normalMessageBox = RbxGui.CreateMessageDialog("Thanks for your report!", "Our moderators will review the chat logs and determine what happened.", messageBoxButtons) + normalMessageBox.Visible = false + normalMessageBox.Parent = shield + normalMessageBox.ZIndex = baseZIndex+2 + normalMessageBox.Style = Enum.FrameStyle.DropShadow + normalMessageBox.Title.ZIndex = baseZIndex+3 + normalMessageBox.Message.ZIndex = baseZIndex+3 + + local frame = Instance.new("Frame") + frame.Name = "Settings" + frame.Position = UDim2.new(0.5, -240, 0.5, -160) + frame.Size = UDim2.new(0.0, 480, 0.0, 320) + frame.BackgroundTransparency = 1 + frame.Active = true + frame.Parent = shield + + local settingsFrame = Instance.new("Frame") + settingsFrame.Name = "ReportAbuseStyle" + settingsFrame.Size = UDim2.new(1, 0, 1, 0) + settingsFrame.Style = Enum.FrameStyle.DropShadow + settingsFrame.Active = true + settingsFrame.ZIndex = baseZIndex + 1 + settingsFrame.Parent = frame + + local description = Instance.new("TextLabel") + description.Name = "Description" + description.Text = "This will send a complete report to a moderator. The moderator will review the chat log and take appropriate action." + description.TextColor3 = Color3I(221,221,221) + description.Position = UDim2.new(0, 10, 0, 10) + description.Size = UDim2.new(1, -20, 0, 40) + description.BackgroundTransparency = 1 + description.Font = Enum.Font.SourceSans + description.FontSize = Enum.FontSize.Size18 + description.TextWrap = true + description.ZIndex = baseZIndex + 2 + description.TextXAlignment = Enum.TextXAlignment.Left + description.TextYAlignment = Enum.TextYAlignment.Top + description.Parent = settingsFrame + + local playerLabel = Instance.new("TextLabel") + playerLabel.Name = "PlayerLabel" + playerLabel.Text = "Which player?" + playerLabel.BackgroundTransparency = 1 + playerLabel.Font = Enum.Font.SourceSans + playerLabel.FontSize = Enum.FontSize.Size18 + playerLabel.Position = UDim2.new(0.025,20,0,92) + playerLabel.Size = UDim2.new(0.4,0,0,36) + playerLabel.TextColor3 = Color3I(255,255,255) + playerLabel.TextXAlignment = Enum.TextXAlignment.Left + playerLabel.ZIndex = baseZIndex + 2 + playerLabel.Parent = settingsFrame + + local gameOrPlayerLabel = Instance.new("TextLabel") + gameOrPlayerLabel.Name = "TypeLabel" + gameOrPlayerLabel.Text = "Game or Player:" + gameOrPlayerLabel.BackgroundTransparency = 1 + gameOrPlayerLabel.Font = Enum.Font.SourceSans + gameOrPlayerLabel.FontSize = Enum.FontSize.Size18 + gameOrPlayerLabel.Position = UDim2.new(0.025,20,0,55) + gameOrPlayerLabel.Size = UDim2.new(0.4,0,0,36) + gameOrPlayerLabel.TextColor3 = Color3I(255,255,255) + gameOrPlayerLabel.TextXAlignment = Enum.TextXAlignment.Left + gameOrPlayerLabel.ZIndex = baseZIndex + 2 + gameOrPlayerLabel.Parent = settingsFrame + + local abuseLabel = Instance.new("TextLabel") + abuseLabel.Name = "AbuseLabel" + abuseLabel.Text = "Type of Abuse:" + abuseLabel.Font = Enum.Font.SourceSans + abuseLabel.BackgroundTransparency = 1 + abuseLabel.FontSize = Enum.FontSize.Size18 + abuseLabel.Position = UDim2.new(0.025,20,0,131) + abuseLabel.Size = UDim2.new(0.4,0,0,36) + abuseLabel.TextColor3 = Color3I(255,255,255) + abuseLabel.TextXAlignment = Enum.TextXAlignment.Left + abuseLabel.ZIndex = baseZIndex + 2 + abuseLabel.Parent = settingsFrame + + local abusingPlayer = nil + local abuse = nil + local submitReportButton = nil + local gameOrPlayer = nil + + local updatePlayerSelection = nil + local createPlayersDropDown = function() + local players = game:GetService("Players") + local playerNames = {} + local nameToPlayer = {} + local children = players:GetChildren() + local pos = 1 + if children then + for i, player in ipairs(children) do + if player:IsA("Player") and player ~= localPlayer then + playerNames[pos] = player.Name + nameToPlayer[player.Name] = player + pos = pos + 1 + end + end + end + local playerDropDown = nil + playerDropDown, updatePlayerSelection = RbxGui.CreateDropDownMenu(playerNames, + function(playerName) + abusingPlayer = nameToPlayer[playerName] + if abuse and abusingPlayer then + submitReportButton.Active = true + end + end, false, true, baseZIndex) + playerDropDown.Name = "PlayersComboBox" + playerDropDown.ZIndex = baseZIndex + 2 + playerDropDown.Position = UDim2.new(.425, 0, 0, 94) + playerDropDown.Size = UDim2.new(.55,0,0,32) + + return playerDropDown + end + + local gameOrPlayerTable = {"Game","Player"} + local gameOrPlayerDropDown = nil + gameOrPlayerDropDown = RbxGui.CreateDropDownMenu(gameOrPlayerTable, + function(gameOrPlayerText) + gameOrPlayer = gameOrPlayerText + if gameOrPlayer == "Game" then + submitReportButton.Active = true + playerLabel.Visible = false + local playerDropDown = gameOrPlayerDropDown.Parent:FindFirstChild("PlayersComboBox") + if playerDropDown then + playerDropDown.Visible = false + end + else + playerLabel.Visible = true + local playerDropDown = gameOrPlayerDropDown.Parent:FindFirstChild("PlayersComboBox") + if playerDropDown then + playerDropDown.Visible = true + end + end + end, true, true, baseZIndex) + gameOrPlayerDropDown.Name = "TypeComboBox" + gameOrPlayerDropDown.ZIndex = baseZIndex + 2 + gameOrPlayerDropDown.Position = UDim2.new(0.425, 0, 0, 55) + gameOrPlayerDropDown.Size = UDim2.new(0.55,0,0,32) + gameOrPlayerDropDown.Parent = settingsFrame + + local abuses = {"Swearing","Bullying","Scamming","Dating","Cheating/Exploiting","Personal Questions","Offsite Links","Bad Model or Script","Bad Username"} + local abuseDropDown, updateAbuseSelection = RbxGui.CreateDropDownMenu(abuses, + function(abuseText) + abuse = abuseText + if abuse and abusingPlayer then + submitReportButton.Active = true + end + end, true, true, baseZIndex) + abuseDropDown.Name = "AbuseComboBox" + abuseDropDown.ZIndex = baseZIndex + 2 + abuseDropDown.Position = UDim2.new(0.425, 0, 0, 133) + abuseDropDown.Size = UDim2.new(0.55,0,0,32) + abuseDropDown.Parent = settingsFrame + + local shortDescriptionLabel = Instance.new("TextLabel") + shortDescriptionLabel.Name = "ShortDescriptionLabel" + shortDescriptionLabel.Text = "Short Description: (optional)" + shortDescriptionLabel.Font = Enum.Font.SourceSans + shortDescriptionLabel.FontSize = Enum.FontSize.Size18 + shortDescriptionLabel.Position = UDim2.new(0.025,0,0,165) + shortDescriptionLabel.Size = UDim2.new(0.95,0,0,36) + shortDescriptionLabel.TextColor3 = Color3I(255,255,255) + shortDescriptionLabel.TextXAlignment = Enum.TextXAlignment.Left + shortDescriptionLabel.BackgroundTransparency = 1 + shortDescriptionLabel.ZIndex = baseZIndex + 2 + shortDescriptionLabel.Parent = settingsFrame + + local shortDescriptionWrapper = Instance.new("Frame") + shortDescriptionWrapper.Name = "ShortDescriptionWrapper" + shortDescriptionWrapper.Position = UDim2.new(0.025,0,0,195) + shortDescriptionWrapper.Size = UDim2.new(0.95,0,1,-250) + shortDescriptionWrapper.BackgroundColor3 = Color3I(206,206,206) + shortDescriptionWrapper.BorderSizePixel = 0 + shortDescriptionWrapper.ZIndex = baseZIndex + 2 + shortDescriptionWrapper.Parent = settingsFrame + + local shortDescriptionBox = Instance.new("TextBox") + shortDescriptionBox.Name = "TextBox" + shortDescriptionBox.Text = "" + shortDescriptionBox.ClearTextOnFocus = false + shortDescriptionBox.Font = Enum.Font.SourceSans + shortDescriptionBox.FontSize = Enum.FontSize.Size18 + shortDescriptionBox.Position = UDim2.new(0,3,0,3) + shortDescriptionBox.Size = UDim2.new(1,-6,1,-6) + shortDescriptionBox.TextColor3 = Color3I(0,0,0) + shortDescriptionBox.TextXAlignment = Enum.TextXAlignment.Left + shortDescriptionBox.TextYAlignment = Enum.TextYAlignment.Top + shortDescriptionBox.TextWrap = true + shortDescriptionBox.BackgroundColor3 = Color3I(206,206,206) + shortDescriptionBox.BorderColor3 = Color3I(206,206,206) + shortDescriptionBox.ZIndex = baseZIndex + 2 + shortDescriptionBox.Parent = shortDescriptionWrapper + + submitReportButton = Instance.new("TextButton") + submitReportButton.Name = "SubmitReportBtn" + submitReportButton.Active = false + submitReportButton.Modal = true + submitReportButton.Font = Enum.Font.SourceSans + submitReportButton.FontSize = Enum.FontSize.Size18 + submitReportButton.Position = UDim2.new(0.1, 0, 1, -50) + submitReportButton.Size = UDim2.new(0.35,0,0,40) + submitReportButton.AutoButtonColor = true + submitReportButton.Style = Enum.ButtonStyle.RobloxRoundDefaultButton + submitReportButton.Text = "Submit Report" + submitReportButton.TextColor3 = Color3I(255,255,255) + submitReportButton.ZIndex = baseZIndex + 2 + submitReportButton.Parent = settingsFrame + + submitReportButton.MouseButton1Click:connect(function() + if submitReportButton.Active then + if abuse and abusingPlayer then + frame.Visible = false + if gameOrPlayer == "Player" then + game.Players:ReportAbuse(abusingPlayer, abuse, shortDescriptionBox.Text) + else + game.Players:ReportAbuse(nil, abuse, shortDescriptionBox.Text) + end + if abuse == "Cheating/Exploiting" then + recordedMessageBox.Visible = true + elseif abuse == "Bullying" or abuse == "Swearing" then + calmingMessageBox.Visible = true + else + normalMessageBox.Visible = true + end + else + closeAndResetDialog() + end + end + end) + + local cancelButton = Instance.new("TextButton") + cancelButton.Name = "CancelBtn" + cancelButton.Font = Enum.Font.SourceSans + cancelButton.FontSize = Enum.FontSize.Size18 + cancelButton.Position = UDim2.new(0.55, 0, 1, -50) + cancelButton.Size = UDim2.new(0.35,0,0,40) + cancelButton.AutoButtonColor = true + cancelButton.Style = Enum.ButtonStyle.RobloxRoundDefaultButton + cancelButton.Text = "Cancel" + cancelButton.TextColor3 = Color3I(255,255,255) + cancelButton.ZIndex = baseZIndex + 2 + cancelButton.Parent = settingsFrame + + closeAndResetDialog = function() + --Delete old player combo box + local oldComboBox = settingsFrame:FindFirstChild("PlayersComboBox") + if oldComboBox then + oldComboBox.Parent = nil + end + + abusingPlayer = nil updatePlayerSelection(nil) + abuse = nil updateAbuseSelection(nil) + submitReportButton.Active = false + shortDescriptionBox.Text = "" + frame.Visible = true + calmingMessageBox.Visible = false + recordedMessageBox.Visible = false + normalMessageBox.Visible = false + shield.Visible = false + reportAbuseButton.Active = true + game.GuiService:RemoveCenterDialog(shield) + end + + cancelButton.MouseButton1Click:connect(closeAndResetDialog) + + reportAbuseButton.MouseButton1Click:connect( + function() + createPlayersDropDown().Parent = settingsFrame + table.insert(centerDialogs,shield) + game.GuiService:AddCenterDialog(shield, Enum.CenterDialogType.ModalDialog, + --ShowFunction + function() + reportAbuseButton.Active = false + shield.Visible = true + mainShield.Visible = false + end, + --HideFunction + function() + reportAbuseButton.Active = true + shield.Visible = false + end) + end) + + robloxLock(shield) + return shield +end + +local createChatBar = function() + --Only show a chat bar if we are a NetworkClient + waitForChild(game, "NetworkClient") + + waitForChild(game, "Players") + waitForProperty(game.Players, "LocalPlayer") + + local chatBar = Instance.new("Frame") + chatBar.Name = "ChatBar" + chatBar.Size = UDim2.new(1, 0, 0, 22) + chatBar.Position = UDim2.new(0, 0, 1, 0) + chatBar.BackgroundColor3 = Color3.new(0,0,0) + chatBar.BorderSizePixel = 0 + + local chatBox = Instance.new("TextBox") + chatBox.Text = "" + chatBox.Visible = false + chatBox.Size = UDim2.new(1,-4,1,0) + chatBox.Position = UDim2.new(0,2,0,0) + chatBox.TextXAlignment = Enum.TextXAlignment.Left + chatBox.Font = Enum.Font.SourceSansBold + chatBox.ClearTextOnFocus = false + chatBox.FontSize = Enum.FontSize.Size14 + chatBox.TextColor3 = Color3.new(1,1,1) + chatBox.BackgroundTransparency = 1 + --chatBox.Parent = chatBar + + local chatButton = Instance.new("TextButton") + chatButton.Size = UDim2.new(1,-4,1,0) + chatButton.Position = UDim2.new(0,2,0,0) + chatButton.AutoButtonColor = false + chatButton.Text = "To chat click here or press \"/\" key" + chatButton.TextXAlignment = Enum.TextXAlignment.Left + chatButton.Font = Enum.Font.SourceSansBold + chatButton.FontSize = Enum.FontSize.Size14 + chatButton.TextColor3 = Color3.new(1,1,1) + chatButton.BackgroundTransparency = 1 + --chatButton.Parent = chatBar + + local activateChat = function() + if chatBox.Visible then + return + end + chatButton.Visible = false + chatBox.Text = "" + chatBox.Visible = true + chatBox:CaptureFocus() + end + + chatButton.MouseButton1Click:connect(activateChat) + + local hotKeyEnabled = true + local toggleHotKey = function(value) + hotKeyEnabled = value + end + + local guiService = game:GetService("GuiService") + local newChatMode = pcall(function() + --guiService:AddSpecialKey(Enum.SpecialKey.ChatHotkey) + --guiService.SpecialKeyPressed:connect(function(key) if key == Enum.SpecialKey.ChatHotkey and hotKeyEnabled then activateChat() end end) + end) + if not newChatMode then + --guiService:AddKey("/") + --guiService.KeyPressed:connect(function(key) if key == "/" and hotKeyEnabled then activateChat() end end) + end + + chatBox.FocusLost:connect( + function(enterPressed) + if enterPressed then + if chatBox.Text ~= "" then + local str = chatBox.Text + if string.sub(str, 1, 1) == '%' then + game.Players:TeamChat(string.sub(str, 2)) + else + game.Players:Chat(str) + end + end + end + chatBox.Text = "" + chatBox.Visible = false + chatButton.Visible = true + end) + robloxLock(chatBar) + return chatBar, toggleHotKey +end + +--Spawn a thread for the Save dialogs +local isSaveDialogSupported = pcall(function() local var = game.LocalSaveEnabled end) +if isSaveDialogSupported then + delay(0, + function() + local saveDialogs = createSaveDialogs() + saveDialogs.Parent = gui + + game.RequestShutdown = function() + table.insert(centerDialogs,saveDialogs) + game.GuiService:AddCenterDialog(saveDialogs, Enum.CenterDialogType.QuitDialog, + --ShowFunction + function() + saveDialogs.Visible = true + end, + --HideFunction + function() + saveDialogs.Visible = false + end) + + return true + end + end) +end + +--Spawn a thread to listen to leave game prompts +Spawn(function() + local showLeaveEvent = nil + pcall(function() showLeaveEvent = Game:GetService("GuiService").ShowLeaveConfirmation end) + if not showLeaveEvent then return end + + function showLeaveConfirmation() + if showMainMenu then + showMainMenu("LeaveConfirmationMenu","down",UDim2.new(0,525,0,300)) + end + end + + Game:GetService("GuiService").ShowLeaveConfirmation:connect(function( ) + if currentMenuSelection == nil then + showLeaveConfirmation() + else + resumeGameFunction(gui.UserSettingsShield) + end + end) +end) + +--Spawn a thread for the Report Abuse dialogs +delay(0, + function() + createReportAbuseDialog().Parent = gui + waitForChild(gui,"UserSettingsShield") + waitForChild(gui.UserSettingsShield, "Settings") + waitForChild(gui.UserSettingsShield.Settings,"SettingsStyle") + waitForChild(gui.UserSettingsShield.Settings.SettingsStyle,"GameMainMenu") + waitForChild(gui.UserSettingsShield.Settings.SettingsStyle.GameMainMenu, "ReportAbuseButton") + gui.UserSettingsShield.Settings.SettingsStyle.GameMainMenu.ReportAbuseButton.Active = true + end) + +end --LoadLibrary if diff --git a/assets/ugc/858 b/assets/ugc/858 new file mode 100644 index 0000000..8d06c37 --- /dev/null +++ b/assets/ugc/858 @@ -0,0 +1,110 @@ +--rbxassetid%858% +local controlFrame = script.Parent:FindFirstChild("ControlFrame") + +if not controlFrame then return end + +local topLeftControl = controlFrame:FindFirstChild("TopLeftControl") +local bottomLeftControl = controlFrame:FindFirstChild("BottomLeftControl") +local bottomRightControl = controlFrame:FindFirstChild("BottomRightControl") + + +local frameTip = Instance.new("TextLabel") +frameTip.Name = "ToolTip" +frameTip.Text = "" +frameTip.Font = Enum.Font.ArialBold +frameTip.FontSize = Enum.FontSize.Size12 +frameTip.TextColor3 = Color3.new(1,1,1) +frameTip.BorderSizePixel = 0 +frameTip.ZIndex = 10 +frameTip.Size = UDim2.new(2,0,1,0) +frameTip.Position = UDim2.new(1,0,0,0) +frameTip.BackgroundColor3 = Color3.new(0,0,0) +frameTip.BackgroundTransparency = 1 +frameTip.TextTransparency = 1 +frameTip.TextWrap = true + +local inside = Instance.new("BoolValue") +inside.Name = "inside" +inside.Value = false +inside.Parent = frameTip + +function setUpListeners(frameToListen) + local fadeSpeed = 0.1 + frameToListen.Parent.MouseEnter:connect(function() + if frameToListen:FindFirstChild("inside") then + frameToListen.inside.Value = true + wait(1.2) + if frameToListen.inside.Value then + while frameToListen.inside.Value and frameToListen.BackgroundTransparency > 0 do + frameToListen.BackgroundTransparency = frameToListen.BackgroundTransparency - fadeSpeed + frameToListen.TextTransparency = frameToListen.TextTransparency - fadeSpeed + wait() + end + end + end + end) + function killTip(killFrame) + killFrame.inside.Value = false + killFrame.BackgroundTransparency = 1 + killFrame.TextTransparency = 1 + end + frameToListen.Parent.MouseLeave:connect(function() killTip(frameToListen) end) + frameToListen.Parent.MouseButton1Click:connect(function() killTip(frameToListen) end) +end + +function createSettingsButtonTip(parent) + if parent == nil then + parent = bottomLeftControl:FindFirstChild("SettingsButton") + end + + local toolTip = frameTip:clone() + toolTip.RobloxLocked = true + toolTip.Text = "Settings/Leave Game" + toolTip.Position = UDim2.new(0,0,0,-18) + toolTip.Size = UDim2.new(0,120,0,20) + toolTip.Parent = parent + setUpListeners(toolTip) +end + +wait(5) -- make sure we are loaded in, won't need tool tips for first 5 seconds anyway + +---------------- set up Bottom Left Tool Tips ------------------------- + +local bottomLeftChildren = bottomLeftControl:GetChildren() +local hasSettingsTip = false + +for i = 1, #bottomLeftChildren do + + if bottomLeftChildren[i].Name == "Exit" then + local exitTip = frameTip:clone() + exitTip.RobloxLocked = true + exitTip.Text = "Leave Place" + exitTip.Position = UDim2.new(0,0,-1,0) + exitTip.Size = UDim2.new(1,0,1,0) + exitTip.Parent = bottomLeftChildren[i] + setUpListeners(exitTip) + elseif bottomLeftChildren[i].Name == "SettingsButton" then + hasSettingsTip = true + createSettingsButtonTip(bottomLeftChildren[i]) + end +end + +---------------- set up Bottom Right Tool Tips ------------------------- + +local bottomRightChildren = bottomRightControl:GetChildren() + +for i = 1, #bottomRightChildren do + if bottomRightChildren[i].Name:find("Camera") ~= nil then + local cameraTip = frameTip:clone() + cameraTip.RobloxLocked = true + cameraTip.Text = "Camera View" + if bottomRightChildren[i].Name:find("Zoom") then + cameraTip.Position = UDim2.new(-1,0,-1.5) + else + cameraTip.Position = UDim2.new(0,0,-1.5,0) + end + cameraTip.Size = UDim2.new(2,0,1.25,0) + cameraTip.Parent = bottomRightChildren[i] + setUpListeners(cameraTip) + end +end diff --git a/assets/ugc/859 b/assets/ugc/859 new file mode 100644 index 0000000..4f93297 --- /dev/null +++ b/assets/ugc/859 @@ -0,0 +1,852 @@ +--rbxassetid%859% +-- This is responsible for all touch controls we show (as of this writing, only on iOS) +-- this includes character move thumbsticks, and buttons for jump, use of items, camera, etc. +-- Written by Ben Tkacheff, Copyright Roblox 2013 + +-- obligatory stuff to make sure we don't access nil data +while not Game do + wait() +end +while not Game:FindFirstChild("Players") do + wait() +end +while not Game.Players.LocalPlayer do + wait() +end +while not Game:FindFirstChild("CoreGui") do + wait() +end +while not Game.CoreGui:FindFirstChild("RobloxGui") do + wait() +end + +local userInputService = Game:GetService("UserInputService") +local success = pcall(function() userInputService:IsLuaTouchControls() end) +if not success then + script:Destroy() +end + +---------------------------------------------------------------------------- +---------------------------------------------------------------------------- +-- Variables +local screenResolution = Game:GetService("GuiService"):GetScreenResolution() +function isSmallScreenDevice() + return screenResolution.y <= 500 +end + +local GameSettings = UserSettings().GameSettings + +local localPlayer = Game.Players.LocalPlayer + +local isInThumbstickMode = false + +local thumbstickInactiveAlpha = 0.3 +local thumbstickSize = 120 +if isSmallScreenDevice() then + thumbstickSize = 70 +end + +local touchControlsSheet = "rbxasset://textures/ui/TouchControlsSheet.png" +local DPadSheet = "rbxasset://textures/ui/DPadSheet.png" +local ThumbstickDeadZone = 5 +local ThumbstickMaxPercentGive = 0.92 +local thumbstickTouches = {} + +local jumpButtonSize = 90 +if isSmallScreenDevice() then + jumpButtonSize = 70 +end +local oldJumpTouches = {} +local currentJumpTouch = nil + +local CameraRotateSensitivity = 0.007 +local CameraRotateDeadZone = CameraRotateSensitivity * 16 +local CameraZoomSensitivity = 0.03 +local PinchZoomDelay = 0.2 +local cameraTouch = nil +local dpadTouch = nil + + +-- make sure all of our images are good to go +Game:GetService("ContentProvider"):Preload(touchControlsSheet) +Game:GetService("ContentProvider"):Preload(DPadSheet) + +---------------------------------------------------------------------------- +---------------------------------------------------------------------------- +-- Functions + +local isPointInRect = function(point, rectPos, rectSize) + if point.x >= rectPos.x and point.x <= (rectPos.x + rectSize.x) then + if point.y >= rectPos.y and point.y <= (rectPos.y + rectSize.y) then + return true + end + end + + return false +end + + +-- +-- Thumbstick Control +-- + +function setCameraTouch(newTouch) + cameraTouch = newTouch + if newTouch == nil then + pcall(function() userInputService.InCameraGesture = false end) + else + pcall(function() userInputService.InCameraGesture = true end) + end +end + +function DistanceBetweenTwoPoints(point1, point2) + local dx = point2.x - point1.x + local dy = point2.y - point1.y + return math.sqrt( (dx*dx) + (dy*dy) ) +end + +function transformFromCenterToTopLeft(pointToTranslate, guiObject) + return UDim2.new(0,pointToTranslate.x - guiObject.AbsoluteSize.x/2,0,pointToTranslate.y - guiObject.AbsoluteSize.y/2) +end + +function rotatePointAboutLocation(pointToRotate, pointToRotateAbout, radians) + local sinAnglePercent = math.sin(radians) + local cosAnglePercent = math.cos(radians) + + local transformedPoint = pointToRotate + + -- translate point back to origin: + transformedPoint = Vector2.new(transformedPoint.x - pointToRotateAbout.x, transformedPoint.y - pointToRotateAbout.y) + + -- rotate point + local xNew = transformedPoint.x * cosAnglePercent - transformedPoint.y * sinAnglePercent + local yNew = transformedPoint.x * sinAnglePercent + transformedPoint.y * cosAnglePercent + + -- translate point back: + transformedPoint = Vector2.new(xNew + pointToRotateAbout.x, yNew + pointToRotateAbout.y) + + return transformedPoint +end + +function dotProduct(v1,v2) + return ((v1.x*v2.x) + (v1.y*v2.y)) +end + +function stationaryThumbstickTouchMove(thumbstickFrame, thumbstickOuter, touchLocation) + local thumbstickOuterCenterPosition = Vector2.new(thumbstickOuter.Position.X.Offset + thumbstickOuter.AbsoluteSize.x/2, thumbstickOuter.Position.Y.Offset + thumbstickOuter.AbsoluteSize.y/2) + local centerDiff = DistanceBetweenTwoPoints(touchLocation, thumbstickOuterCenterPosition) + + -- thumbstick is moving outside our region, need to cap its distance + if centerDiff > (thumbstickSize/2) then + local thumbVector = Vector2.new(touchLocation.x - thumbstickOuterCenterPosition.x,touchLocation.y - thumbstickOuterCenterPosition.y); + local normal = thumbVector.unit + if normal.x == math.nan or normal.x == math.inf then + normal = Vector2.new(0,normal.y) + end + if normal.y == math.nan or normal.y == math.inf then + normal = Vector2.new(normal.x,0) + end + + local newThumbstickInnerPosition = thumbstickOuterCenterPosition + (normal * (thumbstickSize/2)) + thumbstickFrame.Position = transformFromCenterToTopLeft(newThumbstickInnerPosition, thumbstickFrame) + else + thumbstickFrame.Position = transformFromCenterToTopLeft(touchLocation,thumbstickFrame) + end + + return Vector2.new(thumbstickFrame.Position.X.Offset - thumbstickOuter.Position.X.Offset,thumbstickFrame.Position.Y.Offset - thumbstickOuter.Position.Y.Offset) +end + +function followThumbstickTouchMove(thumbstickFrame, thumbstickOuter, touchLocation) + local thumbstickOuterCenter = Vector2.new(thumbstickOuter.Position.X.Offset + thumbstickOuter.AbsoluteSize.x/2, thumbstickOuter.Position.Y.Offset + thumbstickOuter.AbsoluteSize.y/2) + + -- thumbstick is moving outside our region, need to position outer thumbstick texture carefully (to make look and feel like actual joystick controller) + if DistanceBetweenTwoPoints(touchLocation, thumbstickOuterCenter) > thumbstickSize/2 then + local thumbstickInnerCenter = Vector2.new(thumbstickFrame.Position.X.Offset + thumbstickFrame.AbsoluteSize.x/2, thumbstickFrame.Position.Y.Offset + thumbstickFrame.AbsoluteSize.y/2) + local movementVectorUnit = Vector2.new(touchLocation.x - thumbstickInnerCenter.x, touchLocation.y - thumbstickInnerCenter.y).unit + + local outerToInnerVectorCurrent = Vector2.new(thumbstickInnerCenter.x - thumbstickOuterCenter.x, thumbstickInnerCenter.y - thumbstickOuterCenter.y) + local outerToInnerVectorCurrentUnit = outerToInnerVectorCurrent.unit + local movementVector = Vector2.new(touchLocation.x - thumbstickInnerCenter.x, touchLocation.y - thumbstickInnerCenter.y) + + -- First, find the angle between the new thumbstick movement vector, + -- and the vector between thumbstick inner and thumbstick outer. + -- We will use this to pivot thumbstick outer around thumbstick inner, gives a nice joystick feel + local crossOuterToInnerWithMovement = (outerToInnerVectorCurrentUnit.x * movementVectorUnit.y) - (outerToInnerVectorCurrentUnit.y * movementVectorUnit.x) + local angle = math.atan2(crossOuterToInnerWithMovement, dotProduct(outerToInnerVectorCurrentUnit, movementVectorUnit)) + local anglePercent = angle * math.min( (movementVector.magnitude)/(outerToInnerVectorCurrent.magnitude), 1.0); + + -- If angle is significant, rotate about the inner thumbsticks current center + if math.abs(anglePercent) > 0.00001 then + local outerThumbCenter = rotatePointAboutLocation(thumbstickOuterCenter, thumbstickInnerCenter, anglePercent) + thumbstickOuter.Position = transformFromCenterToTopLeft(Vector2.new(outerThumbCenter.x,outerThumbCenter.y), thumbstickOuter) + end + + -- now just translate outer thumbstick to make sure it stays nears inner thumbstick + thumbstickOuter.Position = UDim2.new(0,thumbstickOuter.Position.X.Offset+movementVector.x,0,thumbstickOuter.Position.Y.Offset+movementVector.y) + end + + thumbstickFrame.Position = transformFromCenterToTopLeft(touchLocation,thumbstickFrame) + + -- a bit of error checking to make sure thumbsticks stay close to eachother + thumbstickFramePosition = Vector2.new(thumbstickFrame.Position.X.Offset,thumbstickFrame.Position.Y.Offset) + thumbstickOuterPosition = Vector2.new(thumbstickOuter.Position.X.Offset,thumbstickOuter.Position.Y.Offset) + if DistanceBetweenTwoPoints(thumbstickFramePosition, thumbstickOuterPosition) > thumbstickSize/2 then + local vectorWithLength = (thumbstickOuterPosition - thumbstickFramePosition).unit * thumbstickSize/2 + thumbstickOuter.Position = UDim2.new(0,thumbstickFramePosition.x + vectorWithLength.x,0,thumbstickFramePosition.y + vectorWithLength.y) + end + + return Vector2.new(thumbstickFrame.Position.X.Offset - thumbstickOuter.Position.X.Offset,thumbstickFrame.Position.Y.Offset - thumbstickOuter.Position.Y.Offset) +end + +function movementOutsideDeadZone(movementVector) + return ( (math.abs(movementVector.x) > ThumbstickDeadZone) or (math.abs(movementVector.y) > ThumbstickDeadZone) ) +end + +function constructThumbstick(defaultThumbstickPos, updateFunction, stationaryThumbstick) + local thumbstickFrame = Instance.new("Frame") + thumbstickFrame.Name = "ThumbstickFrame" + thumbstickFrame.Active = true + thumbstickFrame.Size = UDim2.new(0,thumbstickSize,0,thumbstickSize) + thumbstickFrame.Position = defaultThumbstickPos + thumbstickFrame.BackgroundTransparency = 1 + + local outerThumbstick = Instance.new("ImageLabel") + outerThumbstick.Name = "OuterThumbstick" + outerThumbstick.Image = touchControlsSheet + outerThumbstick.ImageRectOffset = Vector2.new(0,0) + outerThumbstick.ImageRectSize = Vector2.new(220,220) + outerThumbstick.BackgroundTransparency = 1 + outerThumbstick.Size = UDim2.new(0,thumbstickSize,0,thumbstickSize) + outerThumbstick.Position = defaultThumbstickPos + outerThumbstick.Parent = Game.CoreGui.RobloxGui + + local innerThumbstick = Instance.new("ImageLabel") + innerThumbstick.Name = "InnerThumbstick" + innerThumbstick.Image = touchControlsSheet + innerThumbstick.ImageRectOffset = Vector2.new(220,0) + innerThumbstick.ImageRectSize = Vector2.new(111,111) + innerThumbstick.BackgroundTransparency = 1 + innerThumbstick.Size = UDim2.new(0,thumbstickSize/2,0,thumbstickSize/2) + innerThumbstick.Position = UDim2.new(0, thumbstickFrame.Size.X.Offset/2 - thumbstickSize/4, 0, thumbstickFrame.Size.Y.Offset/2 - thumbstickSize/4) + innerThumbstick.Parent = thumbstickFrame + innerThumbstick.ZIndex = 2 + + local thumbstickTouch = nil + local userInputServiceTouchMovedCon = nil + local userInputSeviceTouchEndedCon = nil + + local startInputTracking = function(inputObject) + if thumbstickTouch then return end + if inputObject == cameraTouch then return end + if inputObject == currentJumpTouch then return end + if inputObject.UserInputType ~= Enum.UserInputType.Touch then return end + + thumbstickTouch = inputObject + table.insert(thumbstickTouches,thumbstickTouch) + + thumbstickFrame.Position = transformFromCenterToTopLeft(thumbstickTouch.Position,thumbstickFrame) + outerThumbstick.Position = thumbstickFrame.Position + + userInputServiceTouchMovedCon = userInputService.TouchMoved:connect(function(movedInput) + if movedInput == thumbstickTouch then + local movementVector = nil + if stationaryThumbstick then + movementVector = stationaryThumbstickTouchMove(thumbstickFrame,outerThumbstick,Vector2.new(movedInput.Position.x,movedInput.Position.y)) + else + movementVector = followThumbstickTouchMove(thumbstickFrame,outerThumbstick,Vector2.new(movedInput.Position.x,movedInput.Position.y)) + end + + if updateFunction then + updateFunction(movementVector,outerThumbstick.Size.X.Offset/2) + end + end + end) + userInputSeviceTouchEndedCon = userInputService.TouchEnded:connect(function(endedInput) + if endedInput == thumbstickTouch then + if updateFunction then + updateFunction(Vector2.new(0,0),1) + end + + userInputSeviceTouchEndedCon:disconnect() + userInputServiceTouchMovedCon:disconnect() + + thumbstickFrame.Position = defaultThumbstickPos + outerThumbstick.Position = defaultThumbstickPos + + for i, object in pairs(thumbstickTouches) do + if object == thumbstickTouch then + table.remove(thumbstickTouches,i) + break + end + end + thumbstickTouch = nil + end + end) + end + + thumbstickFrame.Visible = not userInputService.ModalEnabled + outerThumbstick.Visible = not userInputService.ModalEnabled + + thumbstickFrame.InputBegan:connect(startInputTracking) + return thumbstickFrame, outerThumbstick +end + +---------------------------------------------------------------------------- +---------------------------------------------------------------------------- +-- +-- DPad Control +-- + +function createDPadArrowButton(name, parent, position, size, image, spriteOffset, spriteSize) + local DPadArrow = Instance.new("ImageButton") + DPadArrow.Name = name + DPadArrow.Image = image + DPadArrow.ImageRectOffset = spriteOffset + DPadArrow.ImageRectSize = spriteSize + DPadArrow.BackgroundTransparency = 1 + DPadArrow.Size = size + DPadArrow.Position = position + DPadArrow.Parent = parent + return DPadArrow +end + +function createDPad() + local DPadFrame = Instance.new("Frame") + DPadFrame.Name = "DPadFrame" + DPadFrame.Active = true + DPadFrame.Size = UDim2.new(0,192,0,192) + DPadFrame.Position = UDim2.new(0,10,1,-230) + DPadFrame.BackgroundTransparency = 1 + + -- local image = "rbxassetid://133293265" + local image = DPadSheet + local bigSize = UDim2.new(0,64,0,64) + local smallSize = UDim2.new(0,23,0,23) + local spriteSizeLarge = Vector2.new(128, 128) + local spriteSizeSmall = Vector2.new(46, 46) + + createDPadArrowButton("BackButton", DPadFrame, UDim2.new(0.5, -32, 1, -64), bigSize, image, Vector2.new(0, 0), spriteSizeLarge) + createDPadArrowButton("ForwardButton", DPadFrame, UDim2.new(0.5, -32, 0, 0), bigSize, image, Vector2.new(0, 258), spriteSizeLarge) + createDPadArrowButton("JumpButton", DPadFrame, UDim2.new(0.5, -32, 0.5, -32), bigSize, image, Vector2.new(129, 0), spriteSizeLarge) + createDPadArrowButton("LeftButton", DPadFrame, UDim2.new(0, 0, 0.5, -32), bigSize, image, Vector2.new(129,129), spriteSizeLarge) + createDPadArrowButton("RightButton", DPadFrame, UDim2.new(1, -64, 0.5, -32), bigSize, image, Vector2.new(0, 129), spriteSizeLarge) + createDPadArrowButton("forwardLeftButton", DPadFrame, UDim2.new(0, 35, 0, 35), smallSize, image, Vector2.new(129,258), spriteSizeSmall) + createDPadArrowButton("forwardRightButton", DPadFrame, UDim2.new(1, -55, 0, 35), smallSize, image, Vector2.new(176,258), spriteSizeSmall) + + return DPadFrame +end + + + + +function setupDPadControls(DPadFrame) + + local moveCharacterFunc = localPlayer.MoveCharacter + DPadFrame.JumpButton.InputBegan:connect(function(inputObject) + localPlayer:JumpCharacter() + end) + local movementVector = Vector2.new(0,0) + + function setupButton(button,funcToCallBegin,funcToCallEnd) + button.InputBegan:connect(function(inputObject) + if not dpadTouch and inputObject.UserInputType == Enum.UserInputType.Touch and inputObject.UserInputState == Enum.UserInputState.Begin then + dpadTouch = inputObject + funcToCallBegin() + end + end) + button.InputEnded:connect(function(inputObject) + if dpadTouch == inputObject then + if funcToCallEnd then + funcToCallEnd() + end + end + end) + end + + local forwardButtonBegin = function() + movementVector = Vector2.new(0,-1) + moveCharacterFunc(localPlayer, Vector2.new(0,-1), 1) + + DPadFrame.forwardLeftButton.Visible = true + DPadFrame.forwardRightButton.Visible = true + end + + local backwardButtonBegin = function() + movementVector = Vector2.new(0,1) + moveCharacterFunc(localPlayer, Vector2.new(0,1),1) + end + + local leftButtonBegin = function() + movementVector = Vector2.new(-1,0) + moveCharacterFunc(localPlayer, Vector2.new(-1,0),1) + end + + local rightButtonBegin = function() + movementVector = Vector2.new(1,0) + moveCharacterFunc(localPlayer, Vector2.new(1,0),1) + end + + DPadFrame.InputEnded:connect(function() + DPadFrame.forwardLeftButton.Visible = false + DPadFrame.forwardRightButton.Visible = false + end) + + local endStep = 0.08 + local endMovementFunc = function() + DPadFrame.forwardLeftButton.Visible = false + DPadFrame.forwardRightButton.Visible = false + + Spawn(function() + while not dpadTouch and movementVector ~= Vector2.new(0,0) do + local newX = movementVector.x + local newY = movementVector.y + + if movementVector.x > 0 then + newX = movementVector.x - endStep + if newX < 0 then newX = 0 end + elseif movementVector.x < 0 then + newX = movementVector.x + endStep + if newX > 0 then newX = 0 end + end + + if movementVector.y > 0 then + newY = movementVector.y - endStep + if newY < 0 then newY = 0 end + elseif movementVector.y < 0 then + newY = movementVector.y + endStep + if newY > 0 then newY = 0 end + end + + movementVector = Vector2.new(newX,newY) + moveCharacterFunc(localPlayer, movementVector,1) + wait(1/60) + end + + if movementVector ~= Vector2.new(0,0) then + movementVector = Vector2.new(0,0) + moveCharacterFunc(localPlayer,Vector2.new(0,0) ,0) + end + end) + end + + local removeDiagonalButtons = function() + if isPointInRect(dpadTouch.Position,DPadFrame.ForwardButton.AbsolutePosition,DPadFrame.ForwardButton.AbsoluteSize) then + DPadFrame.forwardLeftButton.Visible = false + DPadFrame.forwardRightButton.Visible = false + end + end + + setupButton(DPadFrame.ForwardButton,forwardButtonBegin,removeDiagonalButtons) + setupButton(DPadFrame.BackButton,backwardButtonBegin,nil) + setupButton(DPadFrame.LeftButton,leftButtonBegin,nil) + setupButton(DPadFrame.RightButton,rightButtonBegin,nil) + + local getMovementVector = function(touchPosition) + local xDiff = touchPosition.x - (DPadFrame.AbsolutePosition.x + DPadFrame.AbsoluteSize.x/2) + local yDiff = touchPosition.y - (DPadFrame.AbsolutePosition.y + DPadFrame.AbsoluteSize.y/2) + local vectorNew = Vector2.new(xDiff,yDiff) + + movementVector = vectorNew.unit + return vectorNew.unit + end + + Game:GetService("UserInputService").TouchMoved:connect(function(touchObject) + if touchObject == dpadTouch then + if isPointInRect(dpadTouch.Position,DPadFrame.AbsolutePosition,DPadFrame.AbsoluteSize) then + moveCharacterFunc(localPlayer, getMovementVector(dpadTouch.Position),1) + else + endMovementFunc() + end + end + end) + Game:GetService("UserInputService").TouchEnded:connect(function(touchObject) + if touchObject == dpadTouch then + dpadTouch = nil + endMovementFunc() + end + end) + + + DPadFrame.Visible = not userInputService.ModalEnabled + +end + +---------------------------------------------------------------------------- +---------------------------------------------------------------------------- +-- +-- Character Movement +-- +local characterThumbstick = nil +local characterOuterThumbstick = nil + +function setupCharacterMovement( parentFrame ) + local lastMovementVector, lastMaxMovement = nil + local moveCharacterFunc = localPlayer.MoveCharacter + local moveCharacterFunction = function ( movementVector, maxMovement ) + if localPlayer then + if movementOutsideDeadZone(movementVector) then + lastMovementVector = movementVector + lastMaxMovement = maxMovement + -- sometimes rounding error will not allow us to go max speed at some + -- thumbstick angles, fix this with a bit of fudging near 100% throttle + if movementVector.magnitude/maxMovement > ThumbstickMaxPercentGive then + maxMovement = movementVector.magnitude - 1 + end + moveCharacterFunc(localPlayer, movementVector, maxMovement) + else + lastMovementVector = Vector2.new(0,0) + lastMaxMovement = 1 + moveCharacterFunc(localPlayer, lastMovementVector, lastMaxMovement) + end + end + end + + local thumbstickPos = UDim2.new(0,thumbstickSize/2,1,-thumbstickSize*1.75) + if isSmallScreenDevice() then + thumbstickPos = UDim2.new(0,(thumbstickSize/2) - 10,1,-thumbstickSize - 20) + end + + characterThumbstick, characterOuterThumbstick = constructThumbstick(thumbstickPos, moveCharacterFunction, false) + characterThumbstick.Name = "CharacterThumbstick" + characterThumbstick.Parent = parentFrame + + local refreshCharacterMovement = function() + if localPlayer and isInThumbstickMode and moveCharacterFunc and lastMovementVector and lastMaxMovement then + moveCharacterFunc(localPlayer, lastMovementVector, lastMaxMovement) + end + end + return refreshCharacterMovement +end + +---------------------------------------------------------------------------- +---------------------------------------------------------------------------- +-- +-- Jump Button +-- +local jumpButton = nil + +function setupJumpButton( parentFrame ) + if (jumpButton == nil) then + jumpButton = Instance.new("ImageButton") + jumpButton.Name = "JumpButton" + jumpButton.BackgroundTransparency = 1 + jumpButton.Image = touchControlsSheet + jumpButton.ImageRectOffset = Vector2.new(176,222) + jumpButton.ImageRectSize = Vector2.new(174,174) + jumpButton.Size = UDim2.new(0,jumpButtonSize,0,jumpButtonSize) + if isSmallScreenDevice() then + jumpButton.Position = UDim2.new(1, -(jumpButtonSize*2.25), 1, -jumpButtonSize - 20) + else + jumpButton.Position = UDim2.new(1, -(jumpButtonSize*2.75), 1, -jumpButtonSize - 120) + end + + local playerJumpFunc = localPlayer.JumpCharacter + + local doJumpLoop = function () + while currentJumpTouch do + if localPlayer then + playerJumpFunc(localPlayer) + end + wait(1/60) + end + end + + jumpButton.InputBegan:connect(function(inputObject) + if inputObject.UserInputType ~= Enum.UserInputType.Touch then return end + if currentJumpTouch then return end + if inputObject == cameraTouch then return end + for i, touch in pairs(oldJumpTouches) do + if touch == inputObject then + return + end + end + + currentJumpTouch = inputObject + jumpButton.ImageRectOffset = Vector2.new(0,222) + jumpButton.ImageRectSize = Vector2.new(174,174) + doJumpLoop() + end) + jumpButton.InputEnded:connect(function (inputObject) + if inputObject.UserInputType ~= Enum.UserInputType.Touch then return end + + jumpButton.ImageRectOffset = Vector2.new(176,222) + jumpButton.ImageRectSize = Vector2.new(174,174) + + if inputObject == currentJumpTouch then + table.insert(oldJumpTouches,currentJumpTouch) + currentJumpTouch = nil + end + end) + userInputService.InputEnded:connect(function ( globalInputObject ) + for i, touch in pairs(oldJumpTouches) do + if touch == globalInputObject then + table.remove(oldJumpTouches,i) + break + end + end + end) + jumpButton.Parent = parentFrame + end + jumpButton.Visible = not userInputService.ModalEnabled +end + +function isTouchUsedByJumpButton( touch ) + if touch == currentJumpTouch then return true end + for i, touchToCompare in pairs(oldJumpTouches) do + if touch == touchToCompare then + return true + end + end + + return false +end + +function isTouchUsedByThumbstick(touch) + for i, touchToCompare in pairs(thumbstickTouches) do + if touch == touchToCompare then + return true + end + end + + return false +end + +---------------------------------------------------------------------------- +---------------------------------------------------------------------------- +-- +-- Camera Control +-- + +function setupCameraControl(parentFrame, refreshCharacterMoveFunc) + local lastPos = nil + local hasRotatedCamera = false + local rotateCameraFunc = userInputService.RotateCamera + + local pinchTime = -1 + local shouldPinch = false + local lastPinchScale = nil + local zoomCameraFunc = userInputService.ZoomCamera + local pinchTouches = {} + local pinchFrame = nil + local pinchInputChangedCon = nil + local pinchInputEndedCon = nil + + local resetCameraRotateState = function() + setCameraTouch(nil) + hasRotatedCamera = false + lastPos = nil + end + + local resetPinchState = function () + pinchTouches = {} + + pinchTime = -1 + lastPinchScale = nil + shouldPinch = false + pinchFrame:Destroy() + pinchFrame = nil + end + + local startPinch = function(firstTouch, secondTouch) + -- track pinching in new frame + if pinchFrame then pinchFrame:Destroy() end -- make sure we didn't track in any mud + pinchFrame = Instance.new("Frame") + pinchFrame.Name = "PinchFrame" + pinchFrame.BackgroundTransparency = 1 + pinchFrame.Parent = parentFrame + pinchFrame.Size = UDim2.new(1,0,1,0) + + pinchFrame.InputChanged:connect(function(inputObject) + if inputObject.UserInputType ~= Enum.UserInputType.Touch then return end + + if not shouldPinch then + resetPinchState() + return + end + + if lastPinchScale == nil then -- first pinch move, just set up scale + if inputObject == firstTouch then + lastPinchScale = (inputObject.Position - secondTouch.Position).magnitude + firstTouch = inputObject + elseif inputObject == secondTouch then + lastPinchScale = (inputObject.Position - firstTouch.Position).magnitude + secondTouch = inputObject + end + else -- we are now actually pinching, do comparison to last pinch size + local newPinchDistance = 0 + if inputObject == firstTouch then + newPinchDistance = (inputObject.Position - secondTouch.Position).magnitude + firstTouch = inputObject + elseif inputObject == secondTouch then + newPinchDistance = (inputObject.Position - firstTouch.Position).magnitude + secondTouch = inputObject + end + if newPinchDistance ~= 0 then + local pinchDiff = newPinchDistance - lastPinchScale + if pinchDiff ~= 0 then + zoomCameraFunc(userInputService, (pinchDiff * CameraZoomSensitivity)) + end + lastPinchScale = newPinchDistance + end + end + end) + pinchFrame.InputEnded:connect(function(inputObject) -- pinch is over, destroy all + if inputObject == firstTouch or inputObject == secondTouch then + resetPinchState() + end + end) + end + + local pinchGestureReceivedTouch = function(inputObject) + if #pinchTouches < 1 then + table.insert(pinchTouches,inputObject) + pinchTime = tick() + shouldPinch = false + elseif #pinchTouches == 1 then + shouldPinch = ( (tick() - pinchTime) <= PinchZoomDelay ) + + if shouldPinch then + table.insert(pinchTouches,inputObject) + startPinch(pinchTouches[1], pinchTouches[2]) + resetCameraRotateState() + return true + else -- shouldn't ever get here, but just in case + pinchTouches = {} + end + end + + return false + end + + parentFrame.InputBegan:connect(function (inputObject) + if inputObject.UserInputType ~= Enum.UserInputType.Touch then return end + if isTouchUsedByJumpButton(inputObject) then return end + + local usedByThumbstick = isTouchUsedByThumbstick(inputObject) + local isPinching = false + if not usedByThumbstick then + isPinching = pinchGestureReceivedTouch(inputObject) + end + + if cameraTouch == nil and not usedByThumbstick and not isPinching then + setCameraTouch(inputObject) + lastPos = Vector2.new(cameraTouch.Position.x,cameraTouch.Position.y) + lastTick = tick() + end + end) + + userInputService.InputChanged:connect(function (inputObject) + if inputObject.UserInputType ~= Enum.UserInputType.Touch then return end + if cameraTouch ~= inputObject then return end + + local newPos = Vector2.new(cameraTouch.Position.x,cameraTouch.Position.y) + local touchDiff = Vector2.new(0,0) + if lastPos then + touchDiff = (lastPos - newPos) * CameraRotateSensitivity + end + + -- first time rotating outside deadzone, just setup for next changed event + if not hasRotatedCamera and (touchDiff.magnitude > CameraRotateDeadZone) then + hasRotatedCamera = true + lastPos = newPos + end + + -- fire everytime after we have rotated out of deadzone + if hasRotatedCamera and (lastPos ~= newPos) then + rotateCameraFunc(userInputService, touchDiff) + refreshCharacterMoveFunc() + lastPos = newPos + end + end) + userInputService.InputEnded:connect(function (inputObject) + if cameraTouch == inputObject or cameraTouch == nil then + resetCameraRotateState() + end + + for i, touch in pairs(pinchTouches) do + if touch == inputObject then + table.remove(pinchTouches,i) + end + end + end) +end + +---------------------------------------------------------------------------- +---------------------------------------------------------------------------- +-- +-- Touch Control +-- + +local touchControlFrame = nil +local characterDPad = nil + +function setupTouchControls() + touchControlFrame = Instance.new("Frame") + touchControlFrame.Name = "TouchControlFrame" + touchControlFrame.Size = UDim2.new(1,0,1,0) + touchControlFrame.BackgroundTransparency = 1 + touchControlFrame.Parent = Game.CoreGui.RobloxGui + + userInputService.ProcessedEvent:connect(function(inputObject, processed) + if not processed then return end + + -- kill camera pan if the touch is used by some user controls + if inputObject == cameraTouch and inputObject.UserInputState == Enum.UserInputState.Begin then + setCameraTouch(nil) + end + end) + + setupJumpButton(touchControlFrame) + local refreshCharacterMoveFunc = setupCharacterMovement(touchControlFrame) + setupCameraControl(touchControlFrame, refreshCharacterMoveFunc) + + characterDPad = createDPad() + characterDPad.Name = "CharacterDPad" + characterDPad.Parent = touchControlFrame + setupDPadControls(characterDPad) + + userInputService.Changed:connect(function(prop) + if prop == "ModalEnabled" then + activateTouchControls() + end + end) + + activateTouchControls() +end + +function activateTouchControls() + -- set user controlled visibility + if userInputService.ModalEnabled then + characterThumbstick.Visible = false + characterOuterThumbstick.Visible = false + jumpButton.Visible = false + characterDPad.Visible = false + else + if (GameSettings.TouchMovementMode.Name == "Thumbstick" or GameSettings.TouchMovementMode.Name == "Default") then + isInThumbstickMode = true + else + isInThumbstickMode = false + end + + characterThumbstick.Visible = isInThumbstickMode + characterOuterThumbstick.Visible = isInThumbstickMode + jumpButton.Visible = isInThumbstickMode + characterDPad.Visible = not isInThumbstickMode + end +end + +---------------------------------------------------------------------------- +---------------------------------------------------------------------------- +-- Start of Script + +if userInputService:IsLuaTouchControls() then + setupTouchControls() +else + script:Destroy() +end + +GameSettings.Changed:connect(function(property) + if (property == "TouchMovementMode") then + activateTouchControls() + end +end) diff --git a/assets/ugc/860 b/assets/ugc/860 new file mode 100644 index 0000000..cd5385d --- /dev/null +++ b/assets/ugc/860 @@ -0,0 +1,561 @@ +--rbxassetid%860% +function waitForProperty(instance, name) + while not instance[name] do + instance.Changed:wait() + end +end + +function waitForChild(instance, name) + while not instance:FindFirstChild(name) do + instance.ChildAdded:wait() + end +end + + +local mainFrame +local choices = {} +local lastChoice +local choiceMap = {} +local currentConversationDialog +local currentConversationPartner +local currentAbortDialogScript + +local tooFarAwayMessage = "You are too far away to chat!" +local tooFarAwaySize = 300 +local characterWanderedOffMessage = "Chat ended because you walked away" +local characterWanderedOffSize = 350 +local conversationTimedOut = "Chat ended because you didn't reply" +local conversationTimedOutSize = 350 + +local player +local screenGui +local chatNotificationGui +local messageDialog +local timeoutScript +local reenableDialogScript +local dialogMap = {} +local dialogConnections = {} + +local gui = nil +waitForChild(game,"CoreGui") +waitForChild(game.CoreGui,"RobloxGui") +if game.CoreGui.RobloxGui:FindFirstChild("ControlFrame") then + gui = game.CoreGui.RobloxGui.ControlFrame +else + gui = game.CoreGui.RobloxGui +end + +function currentTone() + if currentConversationDialog then + return currentConversationDialog.Tone + else + return Enum.DialogTone.Neutral + end +end + + +function createChatNotificationGui() + chatNotificationGui = Instance.new("BillboardGui") + chatNotificationGui.Name = "ChatNotificationGui" + chatNotificationGui.ExtentsOffset = Vector3.new(0,1,0) + chatNotificationGui.Size = UDim2.new(4, 0, 5.42857122, 0) + chatNotificationGui.SizeOffset = Vector2.new(0,0) + chatNotificationGui.StudsOffset = Vector3.new(0.4, 4.3, 0) + chatNotificationGui.Enabled = true + chatNotificationGui.RobloxLocked = true + chatNotificationGui.Active = true + + local image = Instance.new("ImageLabel") + image.Name = "Image" + image.Active = false + image.BackgroundTransparency = 1 + image.Position = UDim2.new(0,0,0,0) + image.Size = UDim2.new(1.0,0,1.0,0) + image.Image = "" + image.RobloxLocked = true + image.Parent = chatNotificationGui + + + local button = Instance.new("ImageButton") + button.Name = "Button" + button.AutoButtonColor = false + button.Position = UDim2.new(0.0879999995, 0, 0.0529999994, 0) + button.Size = UDim2.new(0.829999983, 0, 0.460000008, 0) + button.Image = "" + button.BackgroundTransparency = 1 + button.RobloxLocked = true + button.Parent = image +end + +function getChatColor(tone) + if tone == Enum.DialogTone.Neutral then + return Enum.ChatColor.Blue + elseif tone == Enum.DialogTone.Friendly then + return Enum.ChatColor.Green + elseif tone == Enum.DialogTone.Enemy then + return Enum.ChatColor.Red + end +end + +function styleChoices(tone) + for i, obj in pairs(choices) do + resetColor(obj, tone) + end + resetColor(lastChoice, tone) +end + +function styleMainFrame(tone) + if tone == Enum.DialogTone.Neutral then + mainFrame.Style = Enum.FrameStyle.ChatBlue + mainFrame.Tail.Image = "rbxasset://textures/chatBubble_botBlue_tailRight.png" + elseif tone == Enum.DialogTone.Friendly then + mainFrame.Style = Enum.FrameStyle.ChatGreen + mainFrame.Tail.Image = "rbxasset://textures/chatBubble_botGreen_tailRight.png" + elseif tone == Enum.DialogTone.Enemy then + mainFrame.Style = Enum.FrameStyle.ChatRed + mainFrame.Tail.Image = "rbxasset://textures/chatBubble_botRed_tailRight.png" + end + + styleChoices(tone) +end +function setChatNotificationTone(gui, purpose, tone) + if tone == Enum.DialogTone.Neutral then + gui.Image.Image = "rbxasset://textures/chatBubble_botBlue_notify_bkg.png" + elseif tone == Enum.DialogTone.Friendly then + gui.Image.Image = "rbxasset://textures/chatBubble_botGreen_notify_bkg.png" + elseif tone == Enum.DialogTone.Enemy then + gui.Image.Image = "rbxasset://textures/chatBubble_botRed_notify_bkg.png" + end + if purpose == Enum.DialogPurpose.Quest then + gui.Image.Button.Image = "rbxasset://textures/chatBubble_bot_notify_bang.png" + elseif purpose == Enum.DialogPurpose.Help then + gui.Image.Button.Image = "rbxasset://textures/chatBubble_bot_notify_question.png" + elseif purpose == Enum.DialogPurpose.Shop then + gui.Image.Button.Image = "rbxasset://textures/chatBubble_bot_notify_money.png" + end +end + +function createMessageDialog() + messageDialog = Instance.new("Frame"); + messageDialog.Name = "DialogScriptMessage" + messageDialog.Style = Enum.FrameStyle.RobloxRound + messageDialog.Visible = false + + local text = Instance.new("TextLabel") + text.Name = "Text" + text.Position = UDim2.new(0,0,0,-1) + text.Size = UDim2.new(1,0,1,0) + text.FontSize = Enum.FontSize.Size14 + text.BackgroundTransparency = 1 + text.TextColor3 = Color3.new(1,1,1) + text.RobloxLocked = true + text.Parent = messageDialog +end + +function showMessage(msg, size) + messageDialog.Text.Text = msg + messageDialog.Size = UDim2.new(0,size,0,40) + messageDialog.Position = UDim2.new(0.5, -size/2, 0.5, -40) + messageDialog.Visible = true + wait(2) + messageDialog.Visible = false +end + +function variableDelay(str) + local length = math.min(string.len(str), 100) + wait(0.75 + ((length/75) * 1.5)) +end + +function resetColor(frame, tone) + if tone == Enum.DialogTone.Neutral then + frame.BackgroundColor3 = Color3.new(0/255, 0/255, 179/255) + frame.Number.TextColor3 = Color3.new(45/255, 142/255, 245/255) + elseif tone == Enum.DialogTone.Friendly then + frame.BackgroundColor3 = Color3.new(0/255, 77/255, 0/255) + frame.Number.TextColor3 = Color3.new(0/255, 190/255, 0/255) + elseif tone == Enum.DialogTone.Enemy then + frame.BackgroundColor3 = Color3.new(140/255, 0/255, 0/255) + frame.Number.TextColor3 = Color3.new(255/255,88/255, 79/255) + end +end + +function highlightColor(frame, tone) + if tone == Enum.DialogTone.Neutral then + frame.BackgroundColor3 = Color3.new(2/255, 108/255, 255/255) + frame.Number.TextColor3 = Color3.new(1, 1, 1) + elseif tone == Enum.DialogTone.Friendly then + frame.BackgroundColor3 = Color3.new(0/255, 128/255, 0/255) + frame.Number.TextColor3 = Color3.new(1, 1, 1) + elseif tone == Enum.DialogTone.Enemy then + frame.BackgroundColor3 = Color3.new(204/255, 0/255, 0/255) + frame.Number.TextColor3 = Color3.new(1, 1, 1) + end +end + +function wanderDialog() + print("Wander") + mainFrame.Visible = false + endDialog() + showMessage(characterWanderedOffMessage, characterWanderedOffSize) +end + +function timeoutDialog() + print("Timeout") + mainFrame.Visible = false + endDialog() + showMessage(conversationTimedOut, conversationTimedOutSize) +end +function normalEndDialog() + print("Done") + endDialog() +end + +function endDialog() + if currentAbortDialogScript then + currentAbortDialogScript:Remove() + currentAbortDialogScript = nil + end + + local dialog = currentConversationDialog + currentConversationDialog = nil + if dialog and dialog.InUse then + local reenableScript = reenableDialogScript:Clone() + reenableScript.archivable = false + reenableScript.Disabled = false + reenableScript.Parent = dialog + end + + for dialog, gui in pairs(dialogMap) do + if dialog and gui then + gui.Enabled = not dialog.InUse + end + end + + currentConversationPartner = nil +end + +function sanitizeMessage(msg) + if string.len(msg) == 0 then + return "..." + else + return msg + end +end + +function selectChoice(choice) + renewKillswitch(currentConversationDialog) + + --First hide the Gui + mainFrame.Visible = false + if choice == lastChoice then + game.Chat:Chat(game.Players.LocalPlayer.Character, "Goodbye!", getChatColor(currentTone())) + + normalEndDialog() + else + local dialogChoice = choiceMap[choice] + + game.Chat:Chat(game.Players.LocalPlayer.Character, sanitizeMessage(dialogChoice.UserDialog), getChatColor(currentTone())) + wait(1) + currentConversationDialog:SignalDialogChoiceSelected(player, dialogChoice) + game.Chat:Chat(currentConversationPartner, sanitizeMessage(dialogChoice.ResponseDialog), getChatColor(currentTone())) + + variableDelay(dialogChoice.ResponseDialog) + presentDialogChoices(currentConversationPartner, dialogChoice:GetChildren()) + end +end + +function newChoice(numberText) + local frame = Instance.new("TextButton") + frame.BackgroundColor3 = Color3.new(0/255, 0/255, 179/255) + frame.AutoButtonColor = false + frame.BorderSizePixel = 0 + frame.Text = "" + frame.MouseEnter:connect(function() highlightColor(frame, currentTone()) end) + frame.MouseLeave:connect(function() resetColor(frame, currentTone()) end) + frame.MouseButton1Click:connect(function() selectChoice(frame) end) + frame.RobloxLocked = true + + local number = Instance.new("TextLabel") + number.Name = "Number" + number.TextColor3 = Color3.new(127/255, 212/255, 255/255) + number.Text = numberText + number.FontSize = Enum.FontSize.Size14 + number.BackgroundTransparency = 1 + number.Position = UDim2.new(0,4,0,2) + number.Size = UDim2.new(0,20,0,24) + number.TextXAlignment = Enum.TextXAlignment.Left + number.TextYAlignment = Enum.TextYAlignment.Top + number.RobloxLocked = true + number.Parent = frame + + local prompt = Instance.new("TextLabel") + prompt.Name = "UserPrompt" + prompt.BackgroundTransparency = 1 + prompt.TextColor3 = Color3.new(1,1,1) + prompt.FontSize = Enum.FontSize.Size14 + prompt.Position = UDim2.new(0,28, 0, 2) + prompt.Size = UDim2.new(1,-32, 1, -4) + prompt.TextXAlignment = Enum.TextXAlignment.Left + prompt.TextYAlignment = Enum.TextYAlignment.Top + prompt.TextWrap = true + prompt.RobloxLocked = true + prompt.Parent = frame + + return frame +end +function initialize(parent) + choices[1] = newChoice("1)") + choices[2] = newChoice("2)") + choices[3] = newChoice("3)") + choices[4] = newChoice("4)") + + lastChoice = newChoice("5)") + lastChoice.UserPrompt.Text = "Goodbye!" + lastChoice.Size = UDim2.new(1,0,0,28) + + mainFrame = Instance.new("Frame") + mainFrame.Name = "UserDialogArea" + mainFrame.Size = UDim2.new(0, 350, 0, 200) + mainFrame.Style = Enum.FrameStyle.ChatBlue + mainFrame.Visible = false + + imageLabel = Instance.new("ImageLabel") + imageLabel.Name = "Tail" + imageLabel.Size = UDim2.new(0,62,0,53) + imageLabel.Position = UDim2.new(1,8,0.25) + imageLabel.Image = "rbxasset://textures/chatBubble_botBlue_tailRight.png" + imageLabel.BackgroundTransparency = 1 + imageLabel.RobloxLocked = true + imageLabel.Parent = mainFrame + + for n, obj in pairs(choices) do + obj.RobloxLocked = true + obj.Parent = mainFrame + end + lastChoice.RobloxLocked = true + lastChoice.Parent = mainFrame + + mainFrame.RobloxLocked = true + mainFrame.Parent = parent +end + +function presentDialogChoices(talkingPart, dialogChoices) + if not currentConversationDialog then + return + end + + currentConversationPartner = talkingPart + sortedDialogChoices = {} + for n, obj in pairs(dialogChoices) do + if obj:IsA("DialogChoice") then + table.insert(sortedDialogChoices, obj) + end + end + table.sort(sortedDialogChoices, function(a,b) return a.Name < b.Name end) + + if #sortedDialogChoices == 0 then + normalEndDialog() + return + end + + local pos = 1 + local yPosition = 0 + choiceMap = {} + for n, obj in pairs(choices) do + obj.Visible = false + end + + for n, obj in pairs(sortedDialogChoices) do + if pos <= #choices then + --3 lines is the maximum, set it to that temporarily + choices[pos].Size = UDim2.new(1, 0, 0, 24*3) + choices[pos].UserPrompt.Text = obj.UserDialog + local height = math.ceil(choices[pos].UserPrompt.TextBounds.Y/24)*24 + + choices[pos].Position = UDim2.new(0, 0, 0, yPosition) + choices[pos].Size = UDim2.new(1, 0, 0, height) + choices[pos].Visible = true + + choiceMap[choices[pos]] = obj + + yPosition = yPosition + height + pos = pos + 1 + end + end + + lastChoice.Position = UDim2.new(0,0,0,yPosition) + lastChoice.Number.Text = pos .. ")" + + mainFrame.Size = UDim2.new(0, 350, 0, yPosition+24+32) + mainFrame.Position = UDim2.new(0,20,0.0, -mainFrame.Size.Y.Offset-20) + styleMainFrame(currentTone()) + mainFrame.Visible = true +end + +function doDialog(dialog) + while not Instance.Lock(dialog, player) do + wait() + end + + if dialog.InUse then + Instance.Unlock(dialog) + return + else + dialog.InUse = true + Instance.Unlock(dialog) + end + + currentConversationDialog = dialog + game.Chat:Chat(dialog.Parent, dialog.InitialPrompt, getChatColor(dialog.Tone)) + variableDelay(dialog.InitialPrompt) + + presentDialogChoices(dialog.Parent, dialog:GetChildren()) +end + +function renewKillswitch(dialog) + if currentAbortDialogScript then + currentAbortDialogScript:Remove() + currentAbortDialogScript = nil + end + + currentAbortDialogScript = timeoutScript:Clone() + currentAbortDialogScript.archivable = false + currentAbortDialogScript.Disabled = false + currentAbortDialogScript.Parent = dialog +end + +function checkForLeaveArea() + while currentConversationDialog do + if currentConversationDialog.Parent and (player:DistanceFromCharacter(currentConversationDialog.Parent.Position) >= currentConversationDialog.ConversationDistance) then + wanderDialog() + end + wait(1) + end +end + +function startDialog(dialog) + if dialog.Parent and dialog.Parent:IsA("BasePart") then + if player:DistanceFromCharacter(dialog.Parent.Position) >= dialog.ConversationDistance then + showMessage(tooFarAwayMessage, tooFarAwaySize) + return + end + + for dialog, gui in pairs(dialogMap) do + if dialog and gui then + gui.Enabled = false + end + end + + renewKillswitch(dialog) + + delay(1, checkForLeaveArea) + doDialog(dialog) + end +end + +function removeDialog(dialog) + if dialogMap[dialog] then + dialogMap[dialog]:Remove() + dialogMap[dialog] = nil + end + if dialogConnections[dialog] then + dialogConnections[dialog]:disconnect() + dialogConnections[dialog] = nil + end +end + +function addDialog(dialog) + if dialog.Parent then + if dialog.Parent:IsA("BasePart") then + local chatGui = chatNotificationGui:clone() + chatGui.Enabled = not dialog.InUse + chatGui.Adornee = dialog.Parent + chatGui.RobloxLocked = true + chatGui.Parent = game.CoreGui + chatGui.Image.Button.MouseButton1Click:connect(function() startDialog(dialog) end) + setChatNotificationTone(chatGui, dialog.Purpose, dialog.Tone) + + dialogMap[dialog] = chatGui + + dialogConnections[dialog] = dialog.Changed:connect(function(prop) + if prop == "Parent" and dialog.Parent then + --This handles the reparenting case, seperate from removal case + removeDialog(dialog) + addDialog(dialog) + elseif prop == "InUse" then + chatGui.Enabled = not currentConversationDialog and not dialog.InUse + if dialog == currentConversationDialog then + timeoutDialog() + end + elseif prop == "Tone" or prop == "Purpose" then + setChatNotificationTone(chatGui, dialog.Purpose, dialog.Tone) + end + end) + else -- still need to listen to parent changes even if current parent is not a BasePart + dialogConnections[dialog] = dialog.Changed:connect(function(prop) + if prop == "Parent" and dialog.Parent then + --This handles the reparenting case, seperate from removal case + removeDialog(dialog) + addDialog(dialog) + end + end) + end + end +end + +function fetchScripts() + local model = game:GetService("InsertService"):LoadAsset(39226062) + if type(model) == "string" then -- load failed, lets try again + wait(0.1) + model = game:GetService("InsertService"):LoadAsset(39226062) + end + if type(model) == "string" then -- not going to work, lets bail + return + end + + waitForChild(model,"TimeoutScript") + timeoutScript = model.TimeoutScript + waitForChild(model,"ReenableDialogScript") + reenableDialogScript = model.ReenableDialogScript +end + +function onLoad() + waitForProperty(game.Players, "LocalPlayer") + player = game.Players.LocalPlayer + waitForProperty(player, "Character") + + --print("Fetching Scripts") + fetchScripts() + + --print("Creating Guis") + createChatNotificationGui() + + --print("Creating MessageDialog") + createMessageDialog() + messageDialog.RobloxLocked = true + messageDialog.Parent = gui + + --print("Waiting for BottomLeftControl") + waitForChild(gui, "BottomLeftControl") + + --print("Initializing Frame") + local frame = Instance.new("Frame") + frame.Name = "DialogFrame" + frame.Position = UDim2.new(0,0,0,0) + frame.Size = UDim2.new(0,0,0,0) + frame.BackgroundTransparency = 1 + frame.RobloxLocked = true + frame.Parent = gui.BottomLeftControl + initialize(frame) + + --print("Adding Dialogs") + game.CollectionService.ItemAdded:connect(function(obj) if obj:IsA("Dialog") then addDialog(obj) end end) + game.CollectionService.ItemRemoved:connect(function(obj) if obj:IsA("Dialog") then removeDialog(obj) end end) + for i, obj in pairs(game.CollectionService:GetCollection("Dialog")) do + if obj:IsA("Dialog") then + addDialog(obj) + end + end +end + +onLoad() \ No newline at end of file diff --git a/assets/ugc/861 b/assets/ugc/861 new file mode 100644 index 0000000..27d6037 --- /dev/null +++ b/assets/ugc/861 @@ -0,0 +1,1368 @@ +--rbxassetid%861% +--Include +local Create = assert(LoadLibrary("RbxUtility")).Create + +-- A Few Script Globals +local gui +if script.Parent:FindFirstChild("ControlFrame") then + gui = script.Parent:FindFirstChild("ControlFrame") +else + gui = script.Parent +end + +-- Dev-Console Root + +local Dev_Container = Create'Frame'{ + Name = 'DevConsoleContainer'; + Parent = gui; + BackgroundColor3 = Color3.new(0,0,0); + BackgroundTransparency = 0.9; + Position = UDim2.new(0, 100, 0, 10); + Size = UDim2.new(0.5, 20, 0.5, 20); + Visible = false; + BackgroundTransparency = 0.9; +} + +local ToggleConsole = Create'BindableFunction'{ + Name = 'ToggleDevConsole'; + Parent = gui +} + + +local devConsoleInitialized = false +function initializeDeveloperConsole() + if devConsoleInitialized then + return + end + devConsoleInitialized = true + + ---Dev-Console Variables + local LOCAL_CONSOLE = 1 + local SERVER_CONSOLE = 2 + local SERVER_STATS = 3 + + local MAX_LIST_SIZE = 1000 + + local minimumSize = Vector2.new(350, 180) + local currentConsole = LOCAL_CONSOLE + + local localMessageList = {} + local serverMessageList = {} + + local localOffset = 0 + local serverOffset = 0 + local serverStatsOffset = 0 + + local errorToggleOn = true + local warningToggleOn = true + local infoToggleOn = true + local outputToggleOn = true + local wordWrapToggleOn = false + + local textHolderSize = 0 + + local frameNumber = 0 + + --Create Dev-Console + + local Dev_Body = Create'Frame'{ + Name = 'Body'; + Parent = Dev_Container; + BackgroundColor3 = Color3.new(0,0,0); + BackgroundTransparency = 0.5; + Position = UDim2.new(0, 0, 0, 21); + Size = UDim2.new(1, 0, 1, -25); + } + + local Dev_OptionsHolder = Create'Frame'{ + Name = 'OptionsHolder'; + Parent = Dev_Body; + BackgroundColor3 = Color3.new(0,0,0); + BackgroundTransparency = 1.0; + Position = UDim2.new(0, 318, 0, 0); + Size = UDim2.new(1, -355, 0, 24); + ClipsDescendants = true + } + + local Dev_OptionsBar = Create'Frame'{ + Name = 'OptionsBar'; + Parent = Dev_OptionsHolder; + BackgroundColor3 = Color3.new(0,0,0); + BackgroundTransparency = 1.0; + Position = UDim2.new(0.0, -250, 0, 4); + Size = UDim2.new(0, 234, 0, 18); + } + + local Dev_ErrorToggleFilter = Create'TextButton'{ + Name = 'ErrorToggleButton'; + Parent = Dev_OptionsBar; + BackgroundColor3 = Color3.new(0,0,0); + BorderColor3 = Color3.new(1.0, 0, 0); + Position = UDim2.new(0, 115, 0, 0); + Size = UDim2.new(0, 18, 0, 18); + Font = "SourceSansBold"; + FontSize = Enum.FontSize.Size14; + Text = ""; + TextColor3 = Color3.new(1.0, 0, 0); + } + + Create'Frame'{ + Name = 'CheckFrame'; + Parent = Dev_ErrorToggleFilter; + BackgroundColor3 = Color3.new(1.0,0,0); + BorderColor3 = Color3.new(1.0, 0, 0); + Position = UDim2.new(0, 4, 0, 4); + Size = UDim2.new(0, 10, 0, 10); + } + + local Dev_InfoToggleFilter = Create'TextButton'{ + Name = 'InfoToggleButton'; + Parent = Dev_OptionsBar; + BackgroundColor3 = Color3.new(0,0,0); + BorderColor3 = Color3.new(0.4, 0.5, 1.0); + Position = UDim2.new(0, 65, 0, 0); + Size = UDim2.new(0, 18, 0, 18); + Font = "SourceSansBold"; + FontSize = Enum.FontSize.Size14; + Text = ""; + TextColor3 = Color3.new(0.4, 0.5, 1.0); + } + + Create'Frame'{ + Name = 'CheckFrame'; + Parent = Dev_InfoToggleFilter; + BackgroundColor3 = Color3.new(0.4, 0.5, 1.0); + BorderColor3 = Color3.new(0.4, 0.5, 1.0); + Position = UDim2.new(0, 4, 0, 4); + Size = UDim2.new(0, 10, 0, 10); + } + + local Dev_OutputToggleFilter = Create'TextButton'{ + Name = 'OutputToggleButton'; + Parent = Dev_OptionsBar; + BackgroundColor3 = Color3.new(0,0,0); + BorderColor3 = Color3.new(1.0, 1.0, 1.0); + Position = UDim2.new(0, 40, 0, 0); + Size = UDim2.new(0, 18, 0, 18); + Font = "SourceSansBold"; + FontSize = Enum.FontSize.Size14; + Text = ""; + TextColor3 = Color3.new(1.0, 1.0, 1.0); + } + + Create'Frame'{ + Name = 'CheckFrame'; + Parent = Dev_OutputToggleFilter; + BackgroundColor3 = Color3.new(1.0, 1.0, 1.0); + BorderColor3 = Color3.new(1.0, 1.0, 1.0); + Position = UDim2.new(0, 4, 0, 4); + Size = UDim2.new(0, 10, 0, 10); + } + + local Dev_WarningToggleFilter = Create'TextButton'{ + Name = 'WarningToggleButton'; + Parent = Dev_OptionsBar; + BackgroundColor3 = Color3.new(0,0,0); + BorderColor3 = Color3.new(1.0, 0.6, 0.4); + Position = UDim2.new(0, 90, 0, 0); + Size = UDim2.new(0, 18, 0, 18); + Font = "SourceSansBold"; + FontSize = Enum.FontSize.Size14; + Text = ""; + TextColor3 = Color3.new(1.0, 0.6, 0.4); + } + + Create'Frame'{ + Name = 'CheckFrame'; + Parent = Dev_WarningToggleFilter; + BackgroundColor3 = Color3.new(1.0, 0.6, 0.4); + BorderColor3 = Color3.new(1.0, 0.6, 0.4); + Position = UDim2.new(0, 4, 0, 4); + Size = UDim2.new(0, 10, 0, 10); + } + + local Dev_WordWrapToggle = Create'TextButton'{ + Name = 'WordWrapToggleButton'; + Parent = Dev_OptionsBar; + BackgroundColor3 = Color3.new(0,0,0); + BorderColor3 = Color3.new(0.8, 0.8, 0.8); + Position = UDim2.new(0, 215, 0, 0); + Size = UDim2.new(0, 18, 0, 18); + Font = "SourceSansBold"; + FontSize = Enum.FontSize.Size14; + Text = ""; + TextColor3 = Color3.new(0.8, 0.8, 0.8); + } + + Create'Frame'{ + Name = 'CheckFrame'; + Parent = Dev_WordWrapToggle; + BackgroundColor3 = Color3.new(0.8, 0.8, 0.8); + BorderColor3 = Color3.new(0.8, 0.8, 0.8); + Position = UDim2.new(0, 4, 0, 4); + Size = UDim2.new(0, 10, 0, 10); + Visible = false + } + + Create'TextLabel'{ + Name = 'Filter'; + Parent = Dev_OptionsBar; + BackgroundTransparency = 1.0; + Position = UDim2.new(0, 0, 0, 0); + Size = UDim2.new(0, 40, 0, 18); + Font = "SourceSansBold"; + FontSize = Enum.FontSize.Size14; + Text = "Filter"; + TextColor3 = Color3.new(1, 1, 1); + } + + Create'TextLabel'{ + Name = 'WordWrap'; + Parent = Dev_OptionsBar; + BackgroundTransparency = 1; + Position = UDim2.new(0, 150, 0, 0); + Size = UDim2.new(0, 50, 0, 18); + Font = "SourceSansBold"; + FontSize = Enum.FontSize.Size14; + Text = "Word Wrap"; + TextColor3 = Color3.new(1, 1, 1); + } + + local Dev_ScrollBar = Create'Frame'{ + Name = 'ScrollBar'; + Parent = Dev_Body; + BackgroundColor3 = Color3.new(0,0,0); + BackgroundTransparency = 0.9; + Position = UDim2.new(1, -20, 0, 26); + Size = UDim2.new(0, 20, 1, -50); + Visible = false; + BackgroundTransparency = 0.9; + } + + local Dev_ScrollArea = Create'Frame'{ + Name = 'ScrollArea'; + Parent = Dev_ScrollBar; + BackgroundTransparency = 1; + Position = UDim2.new(0, 0, 0, 23); + Size = UDim2.new(1, 0, 1, -46); + BackgroundTransparency = 1; + } + + local Dev_Handle = Create'ImageButton'{ + Name = 'Handle'; + Parent = Dev_ScrollArea; + BackgroundColor3 = Color3.new(0,0,0); + BackgroundTransparency = 0.5; + Position = UDim2.new(0, 0, .2, 0); + Size = UDim2.new(0, 20, 0, 40); + BackgroundTransparency = 0.5; + } + + Create'ImageLabel'{ + Name = 'ImageLabel'; + Parent = Dev_Handle; + BackgroundTransparency = 1; + Position = UDim2.new(0, 0, 0.5, -8); + Rotation = 180; + Size = UDim2.new(1, 0, 0, 16); + Image = "http://www.mete0r.xyz/Asset?id=151205881"; + } + + local Dev_DownButton = Create'ImageButton'{ + Name = 'Down'; + Parent = Dev_ScrollBar; + BackgroundColor3 = Color3.new(0,0,0); + BackgroundTransparency = 0.5; + Position = UDim2.new(0, 0, 1, -20); + Size = UDim2.new(0, 20, 0, 20); + BackgroundTransparency = 0.5; + } + + Create'ImageLabel'{ + Name = 'ImageLabel'; + Parent = Dev_DownButton; + BackgroundTransparency = 1; + Position = UDim2.new(0, 3, 0, 3); + Size = UDim2.new(0, 14, 0, 14); + Rotation = 180; + Image = "http://www.mete0r.xyz/Asset?id=151205813"; + } + + local Dev_UpButton = Create'ImageButton'{ + Name = 'Up'; + Parent = Dev_ScrollBar; + BackgroundColor3 = Color3.new(0,0,0); + BackgroundTransparency = 0.5; + Position = UDim2.new(0, 0, 0, 0); + Size = UDim2.new(0, 20, 0, 20); + } + + Create'ImageLabel'{ + Name = 'ImageLabel'; + Parent = Dev_UpButton; + BackgroundTransparency = 1; + Position = UDim2.new(0, 3, 0, 3); + Size = UDim2.new(0, 14, 0, 14); + Image = "http://www.mete0r.xyz/Asset?id=151205813"; + } + + local flagExists, flagValue = pcall(function () return settings():GetFFlag("ConsoleCodeExecutionEnabled") end) + local codeExecutionEnabled = flagExists and flagValue + local isCreator = game.Players.LocalPlayer.userId == game.CreatorId + local function shouldShowCommandBar() + return codeExecutionEnabled and isCreator + end + local function getCommandBarOffset() + return shouldShowCommandBar() and currentConsole == SERVER_CONSOLE and -22 or 0 + end + + local Dev_TextBox = Create'Frame'{ + Name = 'TextBox'; + Parent = Dev_Body; + BackgroundColor3 = Color3.new(0,0,0); + BackgroundTransparency = 0.6; + Position = UDim2.new(0, 2, 0, 26); + Size = UDim2.new(1, -4, 1, -28); + ClipsDescendants = true; + } + + local Dev_TextHolder = Create'Frame'{ + Name = 'TextHolder'; + Parent = Dev_TextBox; + BackgroundColor3 = Color3.new(0,0,0); + BackgroundTransparency = 0; + Position = UDim2.new(0, 0, 0, 0); + Size = UDim2.new(1, 0, 1, 0); + } + + local Dev_OptionsButton = Create'ImageButton'{ + Name = 'OptionsButton'; + Parent = Dev_Body; + BackgroundColor3 = Color3.new(0,0,0); + BackgroundTransparency = 1.0; + Position = UDim2.new(0, 298, 0, 2); + Size = UDim2.new(0, 20, 0, 20); + } + + Create'ImageLabel'{ + Name = 'ImageLabel'; + Parent = Dev_OptionsButton; + BackgroundTransparency = 1.0; + Position = UDim2.new(0, 0, 0, 0); + Size = UDim2.new(1, 0, 1, 0); + Rotation = 0; + Image = "http://www.mete0r.xyz/Asset?id=152093917"; + } + + local Dev_CommandBar = Create'Frame'{ + Name = "CommandBar"; + Parent = Dev_Container; + BackgroundTransparency = 0; + BackgroundColor3 = Color3.new(0, 0, 0); + BorderSizePixel = 0; + Size = UDim2.new(1, -25, 0, 24); + Position = UDim2.new(0, 2, 1, -28); + Visible = false; + ZIndex = 2; + BorderSizePixel = 0; + } + + local Dev_CommandBarTextBox = Create'TextBox'{ + Name = 'CommandBarTextBox'; + Parent = Dev_CommandBar; + BackgroundTransparency = 1; + MultiLine = false; + ZIndex = 2; + Position = UDim2.new(0, 25, 0, 2); + Size = UDim2.new(1, -30, 0, 20); + Font = Enum.Font.Legacy; + FontSize = Enum.FontSize.Size10; + TextColor3 = Color3.new(1, 1, 1); + TextXAlignment = Enum.TextXAlignment.Left; + TextYAlignment = Enum.TextYAlignment.Center; + Text = "Code goes here"; + } + + Create'TextLabel'{ + Name = "PromptLabel"; + Parent = Dev_CommandBar; + BackgroundTransparency = 1; + Size = UDim2.new(0, 20, 1, 0); + Position = UDim2.new(0, 5, 0, 0); + Font = Enum.Font.Legacy; + FontSize = Enum.FontSize.Size10; + TextColor3 = Color3.new(1, 1, 1); + TextXAlignment = Enum.TextXAlignment.Center; + TextYAlignment = Enum.TextYAlignment.Center; + ZIndex = 2; + Text = ">"; + } + + Dev_CommandBarTextBox.FocusLost:connect(function(enterPressed) + if enterPressed then + local code = Dev_CommandBarTextBox.Text + game:GetService("LogService"):ExecuteScript(code) + Dev_CommandBarTextBox.Text = "" + + -- scroll to the bottom of the console + serverOffset = 0 + Dev_CommandBarTextBox:CaptureFocus() + end + end) + + local Dev_ResizeButton = Create'ImageButton'{ + Name = 'ResizeButton'; + Parent = Dev_Body; + BackgroundColor3 = Color3.new(0,0,0); + BackgroundTransparency = 0.5; + Position = UDim2.new(1, -20, 1, -20); + Size = UDim2.new(0, 20, 0, 20); + } + + Create'ImageLabel'{ + Name = 'ImageLabel'; + Parent = Dev_ResizeButton; + BackgroundTransparency = 1; + Position = UDim2.new(0, 6, 0, 6); + Size = UDim2.new(0.8, 0, 0.8, 0); + Rotation = 135; + Image = "http://www.mete0r.xyz/Asset?id=151205813"; + } + + Create'TextButton'{ + Name = 'LocalConsole'; + Parent = Dev_Body; + BackgroundColor3 = Color3.new(0,0,0); + BackgroundTransparency = 0.6; + Position = UDim2.new(0, 7, 0, 5); + Size = UDim2.new(0, 90, 0, 20); + Font = "SourceSansBold"; + FontSize = Enum.FontSize.Size14; + Text = "Local Console"; + TextColor3 = Color3.new(1, 1, 1); + TextYAlignment = Enum.TextYAlignment.Center; + } + + Create'TextButton'{ + Name = 'ServerConsole'; + Parent = Dev_Body; + BackgroundColor3 = Color3.new(0,0,0); + BackgroundTransparency = 0.8; + Position = UDim2.new(0, 102, 0, 5); + Size = UDim2.new(0, 90, 0, 17); + Font = "SourceSansBold"; + FontSize = Enum.FontSize.Size14; + Text = "Server Console"; + TextColor3 = Color3.new(1, 1, 1); + TextYAlignment = Enum.TextYAlignment.Center; + } + + Create'TextButton'{ + Name = 'ServerStats'; + Parent = Dev_Body; + BackgroundColor3 = Color3.new(0,0,0); + BackgroundTransparency = 0.8; + Position = UDim2.new(0, 197, 0, 5); + Size = UDim2.new(0, 90, 0, 17); + Font = "SourceSansBold"; + FontSize = Enum.FontSize.Size14; + Text = "Server Stats"; + TextColor3 = Color3.new(1, 1, 1); + TextYAlignment = Enum.TextYAlignment.Center; + } + + local Dev_TitleBar = Create'Frame'{ + Name = 'TitleBar'; + Parent = Dev_Container; + BackgroundColor3 = Color3.new(0,0,0); + BackgroundTransparency = 0.5; + Position = UDim2.new(0, 0, 0, 0); + Size = UDim2.new(1, 0, 0, 20); + } + + local Dev_CloseButton = Create'ImageButton'{ + Name = 'CloseButton'; + Parent = Dev_TitleBar; + BackgroundColor3 = Color3.new(0,0,0); + BackgroundTransparency = 0.5; + Position = UDim2.new(1, -20, 0, 0); + Size = UDim2.new(0, 20, 0, 20); + } + + Create'ImageLabel'{ + Parent = Dev_CloseButton; + BackgroundColor3 = Color3.new(0,0,0); + BackgroundTransparency = 1; + Position = UDim2.new(0, 3, 0, 3); + Size = UDim2.new(0, 14, 0, 14); + Image = "http://www.mete0r.xyz/Asset?id=151205852"; + } + + Create'TextButton'{ + Name = 'TextButton'; + Parent = Dev_TitleBar; + BackgroundColor3 = Color3.new(0,0,0); + BackgroundTransparency = 0.5; + Position = UDim2.new(0, 0, 0, 0); + Size = UDim2.new(1, -23, 1, 0); + Text = ""; + } + + Create'TextLabel'{ + Name = 'TitleText'; + Parent = Dev_TitleBar; + BackgroundTransparency = 1; + Position = UDim2.new(0, 0, 0, 0); + Size = UDim2.new(0, 185, 0, 20); + Font = "SourceSansBold"; + FontSize = Enum.FontSize.Size18; + Text = "Server Console"; + TextColor3 = Color3.new(1, 1, 1); + Text = "Roblox Developer Console"; + TextYAlignment = Enum.TextYAlignment.Top; + } + + local Dev_StatsChartFrame = Create'Frame'{ + Name = 'ChartFrame'; + BackgroundColor3 = Color3.new(0, 0, 0); + BackgroundTransparency = 0.5; + BorderColor3 = Color3.new(1.0, 1.0, 1.0); + Position = UDim2.new(0, 0, 0, 0); + Size = UDim2.new(0, 250, 0, 100); + } + + Create'TextLabel'{ + Name = 'TitleText'; + Parent = Dev_StatsChartFrame; + BackgroundTransparency = 0.5; + BackgroundColor3 = Color3.new(255,0,0); + Position = UDim2.new(0, 0, 0, 0); + Size = UDim2.new(1, 0, 0, 15); + Text = ""; + Font = "SourceSansBold"; + FontSize = Enum.FontSize.Size14; + TextColor3 = Color3.new(1, 1, 1); + TextYAlignment = Enum.TextYAlignment.Top; + } + + Create'TextLabel'{ + Name = 'ChartValue'; + Parent = Dev_StatsChartFrame; + BackgroundTransparency = 1.0; + BackgroundColor3 = Color3.new(0,0,0); + Position = UDim2.new(0, 5, 0, 39); + Size = UDim2.new(0, 100, 0, 15); + Text = ""; + Font = "SourceSansBold"; + FontSize = Enum.FontSize.Size14; + TextColor3 = Color3.new(1, 1, 1); + TextYAlignment = Enum.TextYAlignment.Top; + TextXAlignment = Enum.TextXAlignment.Left; + } + + Create'TextLabel'{ + Name = 'ChartMaxValue'; + Parent = Dev_StatsChartFrame; + BackgroundTransparency = 1.0; + BackgroundColor3 = Color3.new(0,0,0); + Position = UDim2.new(0, 5, 0, 15); + Size = UDim2.new(0, 100, 0, 15); + Text = "Max: "; + Font = "SourceSansBold"; + FontSize = Enum.FontSize.Size14; + TextColor3 = Color3.new(1, 1, 1); + TextYAlignment = Enum.TextYAlignment.Top; + TextXAlignment = Enum.TextXAlignment.Left; + } + + Create'TextLabel'{ + Name = 'ChartMinValue'; + Parent = Dev_StatsChartFrame; + BackgroundTransparency = 1.0; + BackgroundColor3 = Color3.new(0,0,0); + Position = UDim2.new(0, 5, 0, 27); + Size = UDim2.new(0, 100, 0, 15); + Text = "Min: "; + Font = "SourceSansBold"; + FontSize = Enum.FontSize.Size14; + TextColor3 = Color3.new(1, 1, 1); + TextYAlignment = Enum.TextYAlignment.Top; + TextXAlignment = Enum.TextXAlignment.Left; + } + + local Dev_StatsChartBar = Create'TextLabel'{ + Name = 'StatsChartBar'; + BackgroundColor3 = Color3.new(0,255,0); + Position = UDim2.new(0, 0, 0, 52); + Size = UDim2.new(0, 5, 0, 40); + Text = ""; + } + + ---Saved Mouse Information + local previousMousePos = nil + local pPos = nil + + local previousMousePosResize = nil + local pSize = nil + + local previousMousePosScroll = nil + local pScrollHandle = nil + local pOffset = nil + + local scrollUpIsDown = false + local scrollDownIsDown = false + + function clean() + previousMousePos = nil + pPos = nil + previousMousePosResize = nil + pSize = nil + previousMousePosScroll = nil + pScrollHandle = nil + pOffset = nil + scrollUpIsDown = false + scrollDownIsDown = false + end + + -- Set up server stat charts + local numBars = 40 + local numCharts = 0 + local charts = {} + local statsListenerConnection = nil + + function initStatsListener() + if (statsListenerConnection == nil) then + game.NetworkClient:GetChildren()[1]:RequestServerStats(true) + statsListenerConnection = game.NetworkClient:GetChildren()[1].StatsReceived:connect(refreshCharts) + end + end + + function removeStatsListener() + if (statsListenerConnection ~= nil) then + game.NetworkClient:GetChildren()[1]:RequestServerStats(false) + statsListenerConnection:disconnect() + statsListenerConnection = nil + end + end + + function createChart(_frame) + local chart = { + frame = _frame, + values = {}, + bars = {}, + curIndex = 0 + } + return chart + end + + function setupCharts(name) + local newChart = createChart(Dev_StatsChartFrame:Clone()) + newChart.frame.Parent = Dev_TextHolder + newChart.frame.TitleText.Text = name + local newPos = 5 + numCharts * 110 + newChart.frame.Position = UDim2.new(0, 5, 0, newPos); + for i = 1, numBars do + local bar = Dev_StatsChartBar:Clone() + bar.Position = UDim2.new(bar.Position.X.Scale, i * (bar.Size.X.Offset + 1), bar.Position.Y.Scale, bar.Position.Y.Offset) + bar.Parent = newChart.frame + table.insert(newChart.bars, bar) + end + + charts[name] = newChart + numCharts = numCharts + 1 + textHolderSize = newPos + 110 + end + + function clearCharts() + for i, chart in pairs(charts) do + chart.frame.Parent = nil + charts[i] = nil + end + numCharts = 0 + end + + function refreshCharts(stats) + for name, stat in pairs(stats) do + if (charts[name] == nil) then + setupCharts(name) + end + + local chart = charts[name] + chart.curIndex = chart.curIndex + 1 + + -- remove old data + if chart.curIndex > numBars + 1 then + chart.curIndex = numBars + 1 + table.remove(chart.values, 1) + end + + chart.values[chart.curIndex] = stat + + updateChart(chart) + end + end + + function updateChart(chart) + local maxValue = .0001 + local minValue = chart.values[chart.curIndex] + + for i = chart.curIndex, chart.curIndex-numBars, -1 do + if i == 0 then break end + if chart.values[i] > maxValue then maxValue = chart.values[i] end + if chart.values[i] < minValue then minValue = chart.values[i] end + end + + chart.frame.ChartValue.Text = "Current: "..chart.values[chart.curIndex] + chart.frame.ChartMaxValue.Text = "Max: "..maxValue + chart.frame.ChartMinValue.Text = "Min: "..minValue + + for i = 1,numBars do + + if chart.curIndex - i + 1 < 1 then + chart.bars[i].BackgroundTransparency = 1 + else + chart.bars[i].BackgroundTransparency = 0 + + chart.bars[i].Size = UDim2.new(chart.bars[i].Size.X.Scale, chart.bars[i].Size.X.Offset, chart.bars[i].Size.Y.Scale, + Dev_StatsChartBar.Size.Y.Offset * (chart.values[chart.curIndex - i + 1] / maxValue)) + + chart.bars[i].Position = UDim2.new(chart.bars[i].Position.X.Scale, chart.bars[i].Position.X.Offset, Dev_StatsChartBar.Position.Y.Scale, + Dev_StatsChartBar.Position.Y.Offset + (45 - chart.bars[i].Size.Y.Offset)) + end + + end + end + + ---Handle Dev-Console Position + function refreshConsolePosition(x, y) + if not previousMousePos then + return + end + + local delta = Vector2.new(x, y) - previousMousePos + Dev_Container.Position = UDim2.new(0, pPos.X + delta.X, 0, pPos.Y + delta.Y) + end + + Dev_TitleBar.TextButton.MouseButton1Down:connect(function(x, y) + previousMousePos = Vector2.new(x, y) + pPos = Dev_Container.AbsolutePosition + end) + + Dev_TitleBar.TextButton.MouseButton1Up:connect(function(x, y) + clean() + end) + + ---Handle Dev-Console Size + function refreshConsoleSize(x, y) + if not previousMousePosResize then + return + end + + local delta = Vector2.new(x, y) - previousMousePosResize + Dev_Container.Size = UDim2.new(0, math.max(pSize.X + delta.X, minimumSize.X), 0, math.max(pSize.Y + delta.Y, minimumSize.Y)) + end + Dev_Container.Body.ResizeButton.MouseButton1Down:connect(function(x, y) + previousMousePosResize = Vector2.new(x, y) + pSize = Dev_Container.AbsoluteSize + end) + + Dev_Container.Body.ResizeButton.MouseButton1Up:connect(function(x, y) + clean() + end) + + + ---Handle Dev-Console Close Button + Dev_TitleBar.CloseButton.MouseButton1Down:connect(function(x, y) + Dev_Container.Visible = false + end) + + Dev_Container.TitleBar.CloseButton.MouseButton1Up:connect(function() + clean() + removeStatsListener() + clearCharts() + end) + + local optionsHidden = true + local animating = false + --Options + function startAnimation() + if animating then return end + animating = true + + repeat + if optionsHidden then + frameNumber = frameNumber - 1 + else + frameNumber = frameNumber + 1 + end + + local x = frameNumber / 5 + local smoothStep = x * x * (3 - (2 * x)) + Dev_OptionsButton.ImageLabel.Rotation = smoothStep * 5 * 9 + Dev_OptionsBar.Position = UDim2.new(0, (smoothStep * 5 * 50) - 250, 0, 4) + + wait() + if (frameNumber <= 0 and optionsHidden) or (frameNumber >= 5 and not optionsHidden) then + animating = false + end + until not animating + end + + Dev_OptionsButton.MouseButton1Down:connect(function(x, y) + optionsHidden = not optionsHidden + startAnimation() + end) + + --Scroll Position + + function changeOffset(value) + if (currentConsole == LOCAL_CONSOLE) then + localOffset = localOffset + value + elseif (currentConsole == SERVER_CONSOLE) then + serverOffset = serverOffset + value + elseif (currentConsole == SERVER_STATS) then + serverStatsOffset = serverStatsOffset + value + end + + repositionList() + end + + --Refresh Dev-Console Text + function refreshTextHolderForReal() + local childMessages = Dev_TextHolder:GetChildren() + + local messageList = {} + + if (currentConsole == LOCAL_CONSOLE) then + messageList = localMessageList + elseif (currentConsole == SERVER_CONSOLE) then + messageList = serverMessageList + end + + local posOffset = 0 + + for i = 1, #childMessages do + childMessages[i].Visible = false + end + + for i = 1, #messageList do + local message + + local movePosition = false + + if i > #childMessages then + message = Create'TextLabel'{ + Name = 'Message'; + Parent = Dev_TextHolder; + BackgroundTransparency = 1; + TextXAlignment = 'Left'; + Size = UDim2.new(1, 0, 0, 14); + FontSize = 'Size10'; + ZIndex = 1; + } + movePosition = true + else + message = childMessages[i] + end + + if (outputToggleOn or messageList[i].Type ~= Enum.MessageType.MessageOutput) and + (infoToggleOn or messageList[i].Type ~= Enum.MessageType.MessageInfo) and + (warningToggleOn or messageList[i].Type ~= Enum.MessageType.MessageWarning) and + (errorToggleOn or messageList[i].Type ~= Enum.MessageType.MessageError) then + message.TextWrapped = wordWrapToggleOn + message.Size = UDim2.new(0.98, 0, 0, 2000) + message.Parent = Dev_Container + message.Text = messageList[i].Time.." -- "..messageList[i].Message + + message.Size = UDim2.new(0.98, 0, 0, message.TextBounds.Y) + message.Position = UDim2.new(0, 5, 0, posOffset) + message.Parent = Dev_TextHolder + posOffset = posOffset + message.TextBounds.Y + + if movePosition then + if (currentConsole == LOCAL_CONSOLE and localOffset > 0) or (currentConsole == SERVER_CONSOLE and serverOffset > 0) then + changeOffset(message.TextBounds.Y) + end + end + + message.Visible = true + + if messageList[i].Type == Enum.MessageType.MessageError then + message.TextColor3 = Color3.new(1, 0, 0) + elseif messageList[i].Type == Enum.MessageType.MessageInfo then + message.TextColor3 = Color3.new(0.4, 0.5, 1) + elseif messageList[i].Type == Enum.MessageType.MessageWarning then + message.TextColor3 = Color3.new(1, 0.6, 0.4) + else + message.TextColor3 = Color3.new(1, 1, 1) + end + end + + + end + + textHolderSize = posOffset + + repositionList() + + end + + -- Refreshing the textholder every 0.1 (if needed) is good enough, surely fast enough + -- We don't want it to update 50x in a tick because there are 50 messages in that tick + -- (Whenever for one reason or another a lot of output comes in, it can lag + -- This will make it behave better in a situation of a lot of output comming in) + local refreshQueued = false + function refreshTextHolder() + if refreshQueued or currentConsole == SERVER_STATS then return end + Delay(0.1,function() + refreshQueued = false + refreshTextHolderForReal() + end) refreshQueued = true + end + + --Handle Dev-Console Scrollbar + + local inside = 0 + function holdingUpButton() + if scrollUpIsDown then + return + end + scrollUpIsDown = true + wait(.6) + inside = inside + 1 + while scrollUpIsDown and inside < 2 do + wait() + changeOffset(12) + end + inside = inside - 1 + end + + function holdingDownButton() + if scrollDownIsDown then + return + end + scrollDownIsDown = true + wait(.6) + inside = inside + 1 + while scrollDownIsDown and inside < 2 do + wait() + changeOffset(-12) + end + inside = inside - 1 + end + + Dev_Container.Body.ScrollBar.Up.MouseButton1Click:connect(function() + changeOffset(10) + end) + + Dev_Container.Body.ScrollBar.Up.MouseButton1Down:connect(function() + changeOffset(10) + holdingUpButton() + end) + + Dev_Container.Body.ScrollBar.Up.MouseButton1Up:connect(function() + clean() + end) + + Dev_Container.Body.ScrollBar.Down.MouseButton1Down:connect(function() + changeOffset(-10) + holdingDownButton() + end) + + Dev_Container.Body.ScrollBar.Down.MouseButton1Up:connect(function() + clean() + end) + + function handleScroll(x, y) + if not previousMousePosScroll then + return + end + + local delta = (Vector2.new(x, y) - previousMousePosScroll).Y + + local backRatio = 1 - (Dev_Container.Body.TextBox.AbsoluteSize.Y / Dev_TextHolder.AbsoluteSize.Y) + + local movementSize = Dev_ScrollArea.AbsoluteSize.Y - Dev_ScrollArea.Handle.AbsoluteSize.Y + local normalDelta = math.max(math.min(delta, movementSize), 0 - movementSize) + local normalRatio = normalDelta / movementSize + + local textMovementSize = (backRatio * Dev_TextHolder.AbsoluteSize.Y) + local offsetChange = textMovementSize * normalRatio + + if (currentConsole == LOCAL_CONSOLE) then + localOffset = pOffset - offsetChange + elseif (currentConsole == SERVER_CONSOLE) then + serverOffset = pOffset - offsetChange + elseif (currentConsole == SERVER_STATS) then + serverStatsOffset = pOffset - offsetChange + end + end + + Dev_ScrollArea.Handle.MouseButton1Down:connect(function(x, y) + previousMousePosScroll = Vector2.new(x, y) + pScrollHandle = Dev_ScrollArea.Handle.AbsolutePosition + if (currentConsole == LOCAL_CONSOLE) then + pOffset = localOffset + elseif (currentConsole == SERVER_CONSOLE) then + pOffset = serverOffset + elseif (currentConsole == SERVER_STATS) then + pOffset = serverStatsOffset + end + + end) + + Dev_ScrollArea.Handle.MouseButton1Up:connect(function(x, y) + clean() + end) + + local function existsInsideContainer(container, x, y) + local pos = container.AbsolutePosition + local size = container.AbsoluteSize + if x < pos.X or x > pos.X + size.X or y < pos.y or y > pos.y + size.y then + return false + end + return true + end + + + + --Refresh Dev-Console Message Positions + function repositionList() + + if (currentConsole == LOCAL_CONSOLE) then + localOffset = math.min(math.max(localOffset, 0), textHolderSize - Dev_Container.Body.TextBox.AbsoluteSize.Y) + Dev_TextHolder.Size = UDim2.new(1, 0, 0, textHolderSize) + elseif (currentConsole == SERVER_CONSOLE) then + serverOffset = math.min(math.max(serverOffset, 0), textHolderSize - Dev_Container.Body.TextBox.AbsoluteSize.Y) + Dev_TextHolder.Size = UDim2.new(1, 0, 0, textHolderSize) + elseif (currentConsole == SERVER_STATS) then + serverStatsOffset = math.min(math.max(serverStatsOffset, 0), textHolderSize - Dev_Container.Body.TextBox.AbsoluteSize.Y) + Dev_TextHolder.Size = UDim2.new(1, 0, 0, textHolderSize) + end + + local ratio = Dev_Container.Body.TextBox.AbsoluteSize.Y / Dev_TextHolder.AbsoluteSize.Y + + if ratio >= 1 then + Dev_Container.Body.ScrollBar.Visible = false + Dev_Container.Body.TextBox.Size = UDim2.new(1, -4, 1, -28 + getCommandBarOffset()) + + if (currentConsole == LOCAL_CONSOLE) then + Dev_TextHolder.Position = UDim2.new(0, 0, 1, 0 - textHolderSize) + elseif (currentConsole == SERVER_CONSOLE) then + Dev_TextHolder.Position = UDim2.new(0, 0, 1, 0 - textHolderSize) + end + + + else + Dev_Container.Body.ScrollBar.Visible = true + Dev_Container.Body.TextBox.Size = UDim2.new(1, -25, 1, -28 + getCommandBarOffset()) + + local backRatio = 1 - ratio + local offsetRatio + + if (currentConsole == LOCAL_CONSOLE) then + offsetRatio = localOffset / Dev_TextHolder.AbsoluteSize.Y + elseif (currentConsole == SERVER_CONSOLE) then + offsetRatio = serverOffset / Dev_TextHolder.AbsoluteSize.Y + elseif (currentConsole == SERVER_STATS) then + offsetRatio = (serverStatsOffset / Dev_TextHolder.AbsoluteSize.Y) + end + + local topRatio = math.max(0, backRatio - offsetRatio) + local scrollHandleSize = math.max((Dev_ScrollArea.AbsoluteSize.Y) * ratio, 21) + + local scrollRatio = scrollHandleSize / Dev_ScrollArea.AbsoluteSize.Y + local ratioConversion = (1 - scrollRatio) / (1 - ratio) + + local topScrollRatio = topRatio * ratioConversion + + local sPos = math.min((Dev_ScrollArea.AbsoluteSize.Y) * topScrollRatio, Dev_ScrollArea.AbsoluteSize.Y - scrollHandleSize) + + Dev_ScrollArea.Handle.Size = UDim2.new(1, 0, 0, scrollHandleSize) + Dev_ScrollArea.Handle.Position = UDim2.new(0, 0, 0, sPos) + + if (currentConsole == LOCAL_CONSOLE) then + Dev_TextHolder.Position = UDim2.new(0, 0, 1, 0 - textHolderSize + localOffset) + elseif (currentConsole == SERVER_CONSOLE) then + Dev_TextHolder.Position = UDim2.new(0, 0, 1, 0 - textHolderSize + serverOffset) + elseif (currentConsole == SERVER_STATS) then + Dev_TextHolder.Position = UDim2.new(0, 0, 1, 0 - textHolderSize + serverStatsOffset) + end + + end + end + + -- Easy, fast, and working nicely + local function numberWithZero(num) + return (num < 10 and "0" or "")..num + end + + local str = "%s:%s:%s" + + function ConvertTimeStamp(timeStamp) + local localTime = timeStamp - os.time() + math.floor(tick()) + local dayTime = localTime % 86400 + + local hour = math.floor(dayTime/3600) + + dayTime = dayTime - (hour * 3600) + local minute = math.floor(dayTime/60) + + dayTime = dayTime - (minute * 60) + local second = dayTime + + local h = numberWithZero(hour) + local m = numberWithZero(minute) + local s = numberWithZero(dayTime) + + return str:format(h,m,s) + end + + --Filter + + Dev_OptionsBar.ErrorToggleButton.MouseButton1Down:connect(function(x, y) + errorToggleOn = not errorToggleOn + Dev_OptionsBar.ErrorToggleButton.CheckFrame.Visible = errorToggleOn + refreshTextHolder() + end) + + Dev_OptionsBar.WarningToggleButton.MouseButton1Down:connect(function(x, y) + warningToggleOn = not warningToggleOn + Dev_OptionsBar.WarningToggleButton.CheckFrame.Visible = warningToggleOn + refreshTextHolder() + end) + + Dev_OptionsBar.InfoToggleButton.MouseButton1Down:connect(function(x, y) + infoToggleOn = not infoToggleOn + Dev_OptionsBar.InfoToggleButton.CheckFrame.Visible = infoToggleOn + refreshTextHolder() + end) + + Dev_OptionsBar.OutputToggleButton.MouseButton1Down:connect(function(x, y) + outputToggleOn = not outputToggleOn + Dev_OptionsBar.OutputToggleButton.CheckFrame.Visible = outputToggleOn + refreshTextHolder() + end) + + Dev_OptionsBar.WordWrapToggleButton.MouseButton1Down:connect(function(x, y) + wordWrapToggleOn = not wordWrapToggleOn + Dev_OptionsBar.WordWrapToggleButton.CheckFrame.Visible = wordWrapToggleOn + refreshTextHolder() + end) + + ---Dev-Console Message Functionality + function AddLocalMessage(str, messageType, timeStamp) + localMessageList[#localMessageList+1] = {Message = str, Time = ConvertTimeStamp(timeStamp), Type = messageType} + while #localMessageList > MAX_LIST_SIZE do + table.remove(localMessageList, 1) + end + + refreshTextHolder() + end + + function AddServerMessage(str, messageType, timeStamp) + serverMessageList[#serverMessageList+1] = {Message = str, Time = ConvertTimeStamp(timeStamp), Type = messageType} + while #serverMessageList > MAX_LIST_SIZE do + table.remove(serverMessageList, 1) + end + + refreshTextHolder() + end + + + + --Handle Dev-Console Local/Server Buttons + Dev_Container.Body.LocalConsole.MouseButton1Click:connect(function(x, y) + if (currentConsole ~= LOCAL_CONSOLE) then + + if (currentConsole == SERVER_STATS) then + removeStatsListener() + clearCharts() + end + + Dev_Container.CommandBar.Visible = false + + currentConsole = LOCAL_CONSOLE + local localConsole = Dev_Container.Body.LocalConsole + local serverConsole = Dev_Container.Body.ServerConsole + local serverStats = Dev_Container.Body.ServerStats + + localConsole.Size = UDim2.new(0, 90, 0, 20) + serverConsole.Size = UDim2.new(0, 90, 0, 17) + serverStats.Size = UDim2.new(0, 90, 0, 17) + localConsole.BackgroundTransparency = 0.6 + serverConsole.BackgroundTransparency = 0.8 + serverStats.BackgroundTransparency = 0.8 + + if game:FindFirstChild("Players") and game.Players["LocalPlayer"] then + local mouse = game.Players.LocalPlayer:GetMouse() + local mousePos = Vector2.new(mouse.X, mouse.Y) + refreshConsolePosition(mouse.X, mouse.Y) + refreshConsoleSize(mouse.X, mouse.Y) + handleScroll(mouse.X, mouse.Y) + end + + refreshTextHolder() + end + end) + + Dev_Container.Body.LocalConsole.MouseButton1Up:connect(function() + clean() + end) + + local serverHistoryRequested = false; + + Dev_Container.Body.ServerConsole.MouseButton1Click:connect(function(x, y) + + if not serverHistoryRequested then + serverHistoryRequested = true + game:GetService("LogService"):RequestServerOutput() + end + + if (currentConsole ~= SERVER_CONSOLE) then + + Dev_Container.CommandBar.Visible = shouldShowCommandBar() + + if (currentConsole == SERVER_STATS) then + removeStatsListener() + clearCharts() + end + + currentConsole = SERVER_CONSOLE + local localConsole = Dev_Container.Body.LocalConsole + local serverConsole = Dev_Container.Body.ServerConsole + local serverStats = Dev_Container.Body.ServerStats + + serverConsole.Size = UDim2.new(0, 90, 0, 20) + localConsole.Size = UDim2.new(0, 90, 0, 17) + serverConsole.BackgroundTransparency = 0.6 + localConsole.BackgroundTransparency = 0.8 + serverStats.BackgroundTransparency = 0.8 + + if game:FindFirstChild("Players") and game.Players["LocalPlayer"] then + local mouse = game.Players.LocalPlayer:GetMouse() + local mousePos = Vector2.new(mouse.X, mouse.Y) + refreshConsolePosition(mouse.X, mouse.Y) + refreshConsoleSize(mouse.X, mouse.Y) + handleScroll(mouse.X, mouse.Y) + end + + refreshTextHolder() + end + end) + + ---Extra Mouse Handlers for Dev-Console + Dev_Container.Body.ServerConsole.MouseButton1Up:connect(function() + clean() + end) + + Dev_Container.Body.ServerStats.MouseButton1Click:connect(function(x, y) + if (currentConsole ~= SERVER_STATS) then + + Dev_Container.CommandBar.Visible = false + + currentConsole = SERVER_STATS + local localConsole = Dev_Container.Body.LocalConsole + local serverConsole = Dev_Container.Body.ServerConsole + local serverStats = Dev_Container.Body.ServerStats + + serverStats.Size = UDim2.new(0, 90, 0, 20) + serverConsole.Size = UDim2.new(0, 90, 0, 17) + localConsole.Size = UDim2.new(0, 90, 0, 17) + serverStats.BackgroundTransparency = 0.6 + serverConsole.BackgroundTransparency = 0.8 + localConsole.BackgroundTransparency = 0.8 + + -- clear holder of log entries + local messages = Dev_TextHolder:GetChildren() + for i = 1, #messages do + messages[i].Visible = false + end + + pcall(function() initStatsListener() end) + + end + end) + + Dev_Container.Body.ServerStats.MouseButton1Up:connect(function() + clean() + end) + + if game:FindFirstChild("Players") and game.Players["LocalPlayer"] then + local LocalMouse = game.Players.LocalPlayer:GetMouse() + LocalMouse.Move:connect(function() + if not Dev_Container.Visible then + return + end + local mouse = game.Players.LocalPlayer:GetMouse() + local mousePos = Vector2.new(mouse.X, mouse.Y) + refreshConsolePosition(mouse.X, mouse.Y) + refreshConsoleSize(mouse.X, mouse.Y) + handleScroll(mouse.X, mouse.Y) + + refreshTextHolder() + repositionList() + end) + + LocalMouse.Button1Up:connect(function() + clean() + end) + + LocalMouse.WheelForward:connect(function() + if not Dev_Container.Visible then + return + end + if existsInsideContainer(Dev_Container, LocalMouse.X, LocalMouse.Y) then + changeOffset(10) + end + end) + + LocalMouse.WheelBackward:connect(function() + if not Dev_Container.Visible then + return + end + if existsInsideContainer(Dev_Container, LocalMouse.X, LocalMouse.Y) then + changeOffset(-10) + end + end) + + end + + Dev_ScrollArea.Handle.MouseButton1Down:connect(function() + repositionList() + end) + + + ---Populate Dev-Console with dummy messages + + local history = game:GetService("LogService"):GetLogHistory() + + for i = 1, #history do + AddLocalMessage(history[i].message, history[i].messageType, history[i].timestamp) + end + + game:GetService("LogService").MessageOut:connect(function(message, messageType) + AddLocalMessage(message, messageType, os.time()) + end) + + game:GetService("LogService").ServerMessageOut:connect(AddServerMessage) + +end + +local currentlyToggling = false +function ToggleConsole.OnInvoke() + if currentlyToggling then + return + end + + currentlyToggling = true + initializeDeveloperConsole() + Dev_Container.Visible = not Dev_Container.Visible + currentlyToggling = false + + if not Dev_Container.Visible then + removeStatsListener() + clearCharts() + end + +end diff --git a/assets/ugc/862 b/assets/ugc/862 new file mode 100644 index 0000000..ca64461 --- /dev/null +++ b/assets/ugc/862 @@ -0,0 +1,73 @@ +--rbxassetid%862% +--build our gui + +local popupFrame = Instance.new("Frame") +popupFrame.Position = UDim2.new(0.5,-165,0.5,-175) +popupFrame.Size = UDim2.new(0,330,0,350) +popupFrame.Style = Enum.FrameStyle.DropShadow +popupFrame.ZIndex = 4 +popupFrame.Name = "Popup" +popupFrame.Visible = false +popupFrame.Parent = script.Parent + +local darken = popupFrame:clone() +darken.Size = UDim2.new(1,16,1,16) +darken.Position = UDim2.new(0,-8,0,-8) +darken.Name = "Darken" +darken.ZIndex = 1 +darken.Parent = popupFrame + +local acceptButton = Instance.new("TextButton") +acceptButton.Position = UDim2.new(0,20,0,270) +acceptButton.Size = UDim2.new(0,100,0,50) +acceptButton.Font = Enum.Font.ArialBold +acceptButton.FontSize = Enum.FontSize.Size24 +acceptButton.Style = Enum.ButtonStyle.RobloxRoundButton +acceptButton.TextColor3 = Color3.new(248/255,248/255,248/255) +acceptButton.Text = "Yes" +acceptButton.ZIndex = 5 +acceptButton.Name = "AcceptButton" +acceptButton.Parent = popupFrame + +local declineButton = acceptButton:clone() +declineButton.Position = UDim2.new(1,-120,0,270) +declineButton.Text = "No" +declineButton.Name = "DeclineButton" +declineButton.Parent = popupFrame + +local okButton = acceptButton:clone() +okButton.Name = "OKButton" +okButton.Text = "OK" +okButton.Position = UDim2.new(0.5,-50,0,270) +okButton.Visible = false +okButton.Parent = popupFrame + +local popupImage = Instance.new("ImageLabel") +popupImage.BackgroundTransparency = 1 +popupImage.Position = UDim2.new(0.5,-140,0,10) +popupImage.Size = UDim2.new(0,280,0,280) +popupImage.ZIndex = 3 +popupImage.Name = "PopupImage" +popupImage.Parent = popupFrame + +local backing = Instance.new("ImageLabel") +backing.BackgroundTransparency = 1 +backing.Size = UDim2.new(1,0,1,0) +backing.Image = "http://www.mete0r.xyz/asset/?id=47574181" +backing.Name = "Backing" +backing.ZIndex = 2 +backing.Parent = popupImage + +local popupText = Instance.new("TextLabel") +popupText.Name = "PopupText" +popupText.Size = UDim2.new(1,0,0.8,0) +popupText.Font = Enum.Font.ArialBold +popupText.FontSize = Enum.FontSize.Size36 +popupText.BackgroundTransparency = 1 +popupText.Text = "Hello I'm a popup" +popupText.TextColor3 = Color3.new(248/255,248/255,248/255) +popupText.TextWrap = true +popupText.ZIndex = 5 +popupText.Parent = popupFrame + +script:remove() \ No newline at end of file diff --git a/assets/ugc/863 b/assets/ugc/863 new file mode 100644 index 0000000..dc36e03 --- /dev/null +++ b/assets/ugc/863 @@ -0,0 +1,307 @@ +--rbxassetid%863% +function waitForProperty(instance, property) + while not instance[property] do + instance.Changed:wait() + end +end +function waitForChild(instance, name) + while not instance:FindFirstChild(name) do + instance.ChildAdded:wait() + end +end + +waitForProperty(game.Players,"LocalPlayer") +waitForChild(script.Parent,"Popup") +waitForChild(script.Parent.Popup,"AcceptButton") +script.Parent.Popup.AcceptButton.Modal = true + +local localPlayer = game.Players.LocalPlayer +local teleportUI = nil + +local acceptedTeleport = Instance.new("IntValue") + +local friendRequestBlacklist = {} + +local teleportEnabled = true + +local makePopupInvisible = function() + if script.Parent.Popup then script.Parent.Popup.Visible = false end +end + +function makeFriend(fromPlayer,toPlayer) + + local popup = script.Parent:FindFirstChild("Popup") + if popup == nil then return end -- there is no popup! + if popup.Visible then return end -- currently popping something, abort! + if friendRequestBlacklist[fromPlayer] then return end -- previously cancelled friend request, we don't want it! + + popup.PopupText.Text = "Accept Friend Request from " .. tostring(fromPlayer.Name) .. "?" + popup.PopupImage.Image = "http://www.mete0r.xyz/thumbs/avatar.ashx?userId="..tostring(fromPlayer.userId).."&x=352&y=352" + + showTwoButtons() + popup.Visible = true + popup.AcceptButton.Text = "Accept" + popup.DeclineButton.Text = "Decline" + popup:TweenSize(UDim2.new(0,330,0,350),Enum.EasingDirection.Out,Enum.EasingStyle.Quart,1,true) + + local yesCon, noCon + + yesCon = popup.AcceptButton.MouseButton1Click:connect(function() + popup.Visible = false + toPlayer:RequestFriendship(fromPlayer) + if yesCon then yesCon:disconnect() end + if noCon then noCon:disconnect() end + popup:TweenSize(UDim2.new(0,0,0,0),Enum.EasingDirection.Out,Enum.EasingStyle.Quart,1,true,makePopupInvisible()) + end) + + noCon = popup.DeclineButton.MouseButton1Click:connect(function() + popup.Visible = false + toPlayer:RevokeFriendship(fromPlayer) + friendRequestBlacklist[fromPlayer] = true + print("pop up blacklist") + if yesCon then yesCon:disconnect() end + if noCon then noCon:disconnect() end + popup:TweenSize(UDim2.new(0,0,0,0),Enum.EasingDirection.Out,Enum.EasingStyle.Quart,1,true,makePopupInvisible()) + end) +end + + +game.Players.FriendRequestEvent:connect(function(fromPlayer,toPlayer,event) + + -- if this doesn't involve me, then do nothing + if fromPlayer ~= localPlayer and toPlayer ~= localPlayer then return end + + if fromPlayer == localPlayer then + if event == Enum.FriendRequestEvent.Accept then + game:GetService("GuiService"):SendNotification("You are Friends", + "With " .. toPlayer.Name .. "!", + "http://www.mete0r.xyz/thumbs/avatar.ashx?userId="..tostring(toPlayer.userId).."&x=48&y=48", + 5, + function() + + end) + end + elseif toPlayer == localPlayer then + if event == Enum.FriendRequestEvent.Issue then + if friendRequestBlacklist[fromPlayer] then return end -- previously cancelled friend request, we don't want it! + game:GetService("GuiService"):SendNotification("Friend Request", + "From " .. fromPlayer.Name, + "http://www.mete0r.xyz/thumbs/avatar.ashx?userId="..tostring(fromPlayer.userId).."&x=48&y=48", + 8, + function() + makeFriend(fromPlayer,toPlayer) + end) + elseif event == Enum.FriendRequestEvent.Accept then + game:GetService("GuiService"):SendNotification("You are Friends", + "With " .. fromPlayer.Name .. "!", + "http://www.mete0r.xyz/thumbs/avatar.ashx?userId="..tostring(fromPlayer.userId).."&x=48&y=48", + 5, + function() + + end) + end + end +end) + +function showOneButton() + local popup = script.Parent:FindFirstChild("Popup") + if popup then + popup.OKButton.Visible = true + popup.DeclineButton.Visible = false + popup.AcceptButton.Visible = false + end +end + +function showTwoButtons() + local popup = script.Parent:FindFirstChild("Popup") + if popup then + popup.OKButton.Visible = false + popup.DeclineButton.Visible = true + popup.AcceptButton.Visible = true + end +end + +function onTeleport(teleportState, placeId, spawnName) + if game:GetService("TeleportService").CustomizedTeleportUI == false then + if teleportState == Enum.TeleportState.Started then + showTeleportUI("Teleport started...", 0) + elseif teleportState == Enum.TeleportState.WaitingForServer then + showTeleportUI("Requesting server...", 0) + elseif teleportState == Enum.TeleportState.InProgress then + showTeleportUI("Teleporting...", 0) + elseif teleportState == Enum.TeleportState.Failed then + showTeleportUI("Teleport failed. Insufficient privileges or target place does not exist.", 3) + end + end +end + +function showTeleportUI(message, timer) + if teleportUI ~= nil then + teleportUI:Remove() + end + waitForChild(localPlayer, "PlayerGui") + teleportUI = Instance.new("Message", localPlayer.PlayerGui) + teleportUI.Text = message + if timer > 0 then + wait(timer) + teleportUI:Remove() + end +end + +if teleportEnabled then + + localPlayer.OnTeleport:connect(onTeleport) + + game:GetService("TeleportService").ErrorCallback = function(message) + local popup = script.Parent:FindFirstChild("Popup") + showOneButton() + popup.PopupText.Text = message + local clickCon + clickCon = popup.OKButton.MouseButton1Click:connect(function() + game:GetService("TeleportService"):TeleportCancel() + if clickCon then clickCon:disconnect() end + game.GuiService:RemoveCenterDialog(script.Parent:FindFirstChild("Popup")) + popup:TweenSize(UDim2.new(0,0,0,0),Enum.EasingDirection.Out,Enum.EasingStyle.Quart,1,true,makePopupInvisible()) + end) + game.GuiService:AddCenterDialog(script.Parent:FindFirstChild("Popup"), Enum.CenterDialogType.QuitDialog, + --ShowFunction + function() + showOneButton() + script.Parent:FindFirstChild("Popup").Visible = true + popup:TweenSize(UDim2.new(0,330,0,350),Enum.EasingDirection.Out,Enum.EasingStyle.Quart,1,true) + end, + --HideFunction + function() + popup:TweenSize(UDim2.new(0,0,0,0),Enum.EasingDirection.Out,Enum.EasingStyle.Quart,1,true,makePopupInvisible()) + end) + + end + game:GetService("TeleportService").ConfirmationCallback = function(message, placeId, spawnName) + local popup = script.Parent:FindFirstChild("Popup") + popup.PopupText.Text = message + popup.PopupImage.Image = "" + + local yesCon, noCon + + local function killCons() + if yesCon then yesCon:disconnect() end + if noCon then noCon:disconnect() end + game.GuiService:RemoveCenterDialog(script.Parent:FindFirstChild("Popup")) + popup:TweenSize(UDim2.new(0,0,0,0),Enum.EasingDirection.Out,Enum.EasingStyle.Quart,1,true,makePopupInvisible()) + end + + yesCon = popup.AcceptButton.MouseButton1Click:connect(function() + killCons() + local success, err = pcall(function() game:GetService("TeleportService"):TeleportImpl(placeId,spawnName) end) + if not success then + showOneButton() + popup.PopupText.Text = err + local clickCon + clickCon = popup.OKButton.MouseButton1Click:connect(function() + if clickCon then clickCon:disconnect() end + game.GuiService:RemoveCenterDialog(script.Parent:FindFirstChild("Popup")) + popup:TweenSize(UDim2.new(0,0,0,0),Enum.EasingDirection.Out,Enum.EasingStyle.Quart,1,true,makePopupInvisible()) + end) + game.GuiService:AddCenterDialog(script.Parent:FindFirstChild("Popup"), Enum.CenterDialogType.QuitDialog, + --ShowFunction + function() + showOneButton() + script.Parent:FindFirstChild("Popup").Visible = true + popup:TweenSize(UDim2.new(0,330,0,350),Enum.EasingDirection.Out,Enum.EasingStyle.Quart,1,true) + end, + --HideFunction + function() + popup:TweenSize(UDim2.new(0,0,0,0),Enum.EasingDirection.Out,Enum.EasingStyle.Quart,1,true,makePopupInvisible()) + end) + end + end) + + noCon = popup.DeclineButton.MouseButton1Click:connect(function() + killCons() + local success = pcall(function() game:GetService("TeleportService"):TeleportCancel() end) + end) + + local centerDialogSuccess = pcall(function() game.GuiService:AddCenterDialog(script.Parent:FindFirstChild("Popup"), Enum.CenterDialogType.QuitDialog, + --ShowFunction + function() + showTwoButtons() + popup.AcceptButton.Text = "Leave" + popup.DeclineButton.Text = "Stay" + script.Parent:FindFirstChild("Popup").Visible = true + popup:TweenSize(UDim2.new(0,330,0,350),Enum.EasingDirection.Out,Enum.EasingStyle.Quart,1,true) + end, + --HideFunction + function() + popup:TweenSize(UDim2.new(0,0,0,0),Enum.EasingDirection.Out,Enum.EasingStyle.Quart,1,true,makePopupInvisible()) + end) + end) + + if centerDialogSuccess == false then + script.Parent:FindFirstChild("Popup").Visible = true + popup.AcceptButton.Text = "Leave" + popup.DeclineButton.Text = "Stay" + popup:TweenSize(UDim2.new(0,330,0,350),Enum.EasingDirection.Out,Enum.EasingStyle.Quart,1,true) + end + return true + + end +end + +game:GetService("MarketplaceService").ClientLuaDialogRequested:connect(function(message, accept, decline) + local popup = script.Parent:FindFirstChild("Popup") + popup.PopupText.Text = message + popup.PopupImage.Image = "" + + local yesCon, noCon + + local function killCons() + if yesCon then yesCon:disconnect() end + if noCon then noCon:disconnect() end + game.GuiService:RemoveCenterDialog(script.Parent:FindFirstChild("Popup")) + popup:TweenSize(UDim2.new(0,0,0,0),Enum.EasingDirection.Out,Enum.EasingStyle.Quart,1,true,makePopupInvisible()) + end + + yesCon = popup.AcceptButton.MouseButton1Click:connect(function() + killCons() + game:GetService("MarketplaceService"):SignalServerLuaDialogClosed(true); + end) + + noCon = popup.DeclineButton.MouseButton1Click:connect(function() + killCons() + game:GetService("MarketplaceService"):SignalServerLuaDialogClosed(false); + end) + + local centerDialogSuccess = pcall(function() game.GuiService:AddCenterDialog(script.Parent:FindFirstChild("Popup"), Enum.CenterDialogType.QuitDialog, + function() + showTwoButtons() + popup.AcceptButton.Text = accept + popup.DeclineButton.Text = decline + script.Parent:FindFirstChild("Popup").Visible = true + popup:TweenSize(UDim2.new(0,330,0,350),Enum.EasingDirection.Out,Enum.EasingStyle.Quart,1,true) + end, + function() + popup:TweenSize(UDim2.new(0,0,0,0),Enum.EasingDirection.Out,Enum.EasingStyle.Quart,1,true,makePopupInvisible()) + end) + end) + + if centerDialogSuccess == false then + script.Parent:FindFirstChild("Popup").Visible = true + popup.AcceptButton.Text = accept + popup.DeclineButton.Text = decline + popup:TweenSize(UDim2.new(0,330,0,350),Enum.EasingDirection.Out,Enum.EasingStyle.Quart,1,true) + end + + return true + +end) + +Game:GetService("PointsService").PointsAwarded:connect( function(userId, pointsAwarded, userBalanceInGame, userTotalBalance) + if userId == Game.Players.LocalPlayer.userId then + game:GetService("GuiService"):SendNotification("Points Awarded!", + "You received " ..tostring(pointsAwarded) .. " points!", + "http://www.mete0r.xyz/asset?id=155363793", + 5, + function() + end) + end +end) diff --git a/assets/ugc/864 b/assets/ugc/864 new file mode 100644 index 0000000..76e29e9 --- /dev/null +++ b/assets/ugc/864 @@ -0,0 +1,1386 @@ +--rbxassetid%864% +--[[ + //FileName: ChatScript.LUA + //Written by: Sorcus + //Description: Code for lua side chat on ROBLOX. Supports Scrolling. + //NOTE: If you find any bugs or inaccuracies PM Sorcus on ROBLOX or @Canavus on Twitter +]] + +local forceChatGUI = false + +-- Utility functions + Globals +local function WaitForChild(parent, childName) + while parent:FindFirstChild(childName) == nil do + parent.ChildAdded:wait(0.03) + end + return parent[childName] +end + +local function typedef(obj) + return obj +end + +local function IsPhone() + local cGui = Game:GetService('CoreGui') + local rGui = WaitForChild(cGui, 'RobloxGui') + if rGui.AbsoluteSize.Y < 600 then + return true + end + return false +end + +-- Users can use enough white spaces to spoof chatting as other players +-- This function removes trailing and leading white spaces +-- AFAIK, there is no reason for spam white spaces +local function StringTrim(str,nstr) + -- %s+ stands whitespaces + -- We yank out any whitespaces at the begin and end of the string + -- After that, we put a tab behind newlines + -- That way people can't fake messages on a new line + return str:match("^%s*(.-)%s*$"):gsub("\n","\n"..nstr) +end + +while Game.Players.LocalPlayer == nil do wait(0.03) end + +local Player = Game.Players.LocalPlayer +while Player.Character == nil do wait(0.03) end +local RbxUtility = LoadLibrary('RbxUtility') +local Gui = typedef(RbxUtility) +local Camera = Game.Workspace.CurrentCamera + +-- Services +local CoreGuiService = Game:GetService('CoreGui') +local PlayersService = Game:GetService('Players') +local DebrisService= Game:GetService('Debris') +local GuiService = Game:GetService('GuiService') +local inputService = game:GetService("UserInputService") + +-- Lua Enums +local Enums do + Enums = {} + local EnumName = {} -- used as unique key for enum name + local enum_mt = { + __call = function(self,value) + return self[value] or self[tonumber(value)] + end; + __index = { + GetEnumItems = function(self) + local t = {} + for i,item in pairs(self) do + if type(i) == 'number' then + t[#t+1] = item + end + end + table.sort(t,function(a,b) return a.Value < b.Value end) + return t + end; + }; + __tostring = function(self) + return "Enum." .. self[EnumName] + end; + } + local item_mt = { + __call = function(self,value) + return value == self or value == self.Name or value == self.Value + end; + __tostring = function(self) + return "Enum." .. self[EnumName] .. "." .. self.Name + end; + } + function CreateEnum(enumName) + return function(t) + local e = {[EnumName] = enumName} + for i,name in pairs(t) do + local item = setmetatable({Name=name,Value=i,Enum=e,[EnumName]=enumName},item_mt) + e[i] = item + e[name] = item + e[item] = item + end + Enums[enumName] = e + return setmetatable(e, enum_mt) + end + end +end +--------------------------------------------------- +------------------ Input class -------------------- +local Input = { + Mouse = Player:GetMouse(), + Speed = 0, + Simulating = false, + + Configuration = { + DefaultSpeed = 1 + }, + UserIsScrolling = false + } + +--------------------------------------------------- +------------------ Chat class -------------------- +local Chat = { + + ChatColors = { + BrickColor.new("Bright red"), + BrickColor.new("Bright blue"), + BrickColor.new("Earth green"), + BrickColor.new("Bright violet"), + BrickColor.new("Bright orange"), + BrickColor.new("Bright yellow"), + BrickColor.new("Light reddish violet"), + BrickColor.new("Brick yellow"), + }, + + Gui = nil, + Frame = nil, + RenderFrame = nil, + TapToChatLabel = nil, + ClickToChatButton = nil, + + ScrollingLock = false, + EventListener = nil, + + -- This is actually a ring buffer + -- Meaning at hitting the historyLength it wraps around + -- Reuses the text objects, so chat atmost uses 100 text objects + MessageQueue = {}, + + -- Stores all the values for configuring chat + Configuration = { + FontSize = Enum.FontSize.Size18, -- 10 is good + -- Also change this when you are changing the above, this is suboptimal but so is our interface to find FontSize + NumFontSize = 12, + HistoryLength = 20, -- stores up to 50 of the last chat messages for you to scroll through, + Size = UDim2.new(0.38, 0, 0.20, 0), + MessageColor = Color3.new(1, 1, 1), + AdminMessageColor = Color3.new(1, 215/255, 0), + XScale = 0.025, + LifeTime = 45, + Position = UDim2.new(0, 2, 0.05, 0), + DefaultTweenSpeed = 0.15, + HaltTime = 1/15, -- Why would people need to be chatting faster than every 1/15th of a second? + }, + + PreviousMessage = tick(), -- Timestamp of previous message + + -- This could be redone by just using the previous and next fields of the Queue + -- But the iterators cause issues, will be optimized later + SlotPositions_List = {}, + -- To precompute and store all player null strings since its an expensive process + CachedSpaceStrings_List = {}, + MouseOnFrame = false, + GotFocus = false, + + Messages_List = {}, + MessageThread = nil, + + Admins_List = { + 'Rbadam', 'Adamintygum', 'androidtest', 'RobloxFrenchie', 'JacksSmirkingRevenge', 'LindaPepita', 'vaiobot', 'Goddessnoob', 'effward', 'Blockhaak', 'Drewbda', '659223', 'Tone', 'fasterbuilder19', 'Zeuxcg', 'concol2', + 'ReeseMcBlox', 'Jeditkacheff', 'whkm1980', 'ChiefJustus', 'Ellissar', 'Arbolito', 'Noob007', 'Limon', 'cmed', 'hawkington', 'Tabemono', 'autoconfig', 'BrightEyes', 'Monsterinc3D', 'MrDoomBringer', 'IsolatedEvent', + 'CountOnConnor', 'Scubasomething', 'OnlyTwentyCharacters', 'LordRugdumph', 'bellavour', 'david.baszucki', 'ibanez2189', 'Sorcus', 'DeeAna00', 'TheLorekt', 'NiqueMonster', 'Thorasaur', 'MSE6', 'CorgiParade', 'Varia', + '4runningwolves', 'pulmoesflor', 'Olive71', 'groundcontroll2', 'GuruKrish', 'Countvelcro', 'IltaLumi', 'juanjuan23', 'OstrichSized', 'jackintheblox', 'SlingshotJunkie', 'gordonrox24', 'sharpnine', 'Motornerve', 'Motornerve', + 'watchmedogood', 'jmargh', 'JayKorean', 'Foyle', 'MajorTom4321', 'Shedletsky', 'supernovacaine', 'FFJosh', 'Sickenedmonkey', 'Doughtless', 'KBUX', 'totallynothere', 'ErzaStar', 'Keith', 'Chro', 'SolarCrane', 'GloriousSalt', + 'UristMcSparks', 'ITOlaurEN', 'Malcomso', 'Stickmasterluke', 'windlight13', 'yumyumcheerios', 'Stravant', 'ByteMe', 'imaginationsensation', 'Matt.Dusek', 'Mcrtest', 'Seranok', 'maxvee', 'Coatp0cketninja', 'Screenme', + 'b1tsh1ft', 'Totbl', 'Aquabot8', 'grossinger', 'Merely', 'CDakkar', 'Siekiera', 'Robloxkidsaccount', 'flotsamthespork', 'Soggoth', 'Phil', 'OrcaSparkles', 'skullgoblin', 'RickROSStheB0SS', 'ArgonPirate', 'NobleDragon', + 'Squidcod', 'Raeglyn', 'RobloxSai', 'Briarroze', 'hawkeyebandit', 'DapperBuffalo', 'Vukota', 'swiftstone', 'Gemlocker', 'Loopylens', 'Tarabyte', 'Timobius', 'Tobotrobot', 'Foster008', 'Twberg', 'DarthVaden', 'Khanovich', + 'CodeWriter', 'VladTheFirst', 'Phaedre', 'gorroth', 'SphinxShen', 'jynj1984', 'RoboYZ', 'ZodiacZak', 'superman205', 'ConvexRumbler', 'mpliner476', 'geekndestroy', 'glewis17' + }, + + + SafeChat_List = { + ['Use the Chat menu to talk to me.'] = {'/sc 0', true}, + ['I can only see menu chats.'] = {'/sc 1', true}, + ['Hello'] = { + ['Hi'] = {'/sc 2_0', true, ['Hi there!'] = true, ['Hi everyone'] = true}, + ['Howdy'] = {'/sc 2_1', true, ['Howdy partner!'] = true}, + ['Greetings'] = {'/sc 2_2', true, ['Greetings everyone'] = true, ['Greetings Robloxians!'] = true, ['Seasons greetings!'] = true}, + ['Welcome'] = {'/sc 2_3', true, ['Welcome to my place'] = true, ['Welcome to my barbeque'] = true, ['Welcome to our base'] = true}, + ['Hey there!'] = {'/sc 2_4', true}, + ['What\'s up?'] = {'/sc 2_5', true, ['How are you doing?'] = true, ['How\'s it going?'] = true, ['What\'s new?'] = true}, + ['Good day'] = {'/sc 2_6', true, ['Good morning'] = true, ['Good evening'] = true, ['Good afternoon'] = true, ['Good night'] = true}, + ['Silly'] = {'/sc 2_7', true, ['Waaaaaaaz up?!'] = true, ['Hullo!'] = true, ['Behold greatness, mortals!'] = true, ['Pardon me, is this Sparta?'] = true, ['THIS IS SPARTAAAA!'] = true}, + ['Happy Holidays!'] = {'/sc 2_8', true, ['Happy New Year!'] = true, + ['Happy Valentine\'s Day!'] = true, + ['Beware the Ides of March!'] = true, + ['Happy St. Patrick\'s Day!'] = true, + ['Happy Easter!'] = true, + ['Happy Earth Day!'] = true, + ['Happy 4th of July!'] = true, + ['Happy Thanksgiving!'] = true, + ['Happy Halloween!'] = true, + ['Happy Hanukkah!'] = true, + ['Merry Christmas!'] = true, + ['Happy Halloween!'] = true, + ['Happy Earth Day!'] = true, + ['Happy May Day!'] = true, + ['Happy Towel Day!'] = true, + ['Happy ROBLOX Day!'] = true, + ['Happy LOL Day!'] = true }, + + [1] = '/sc 2' + }, + ['Goodbye'] = { + ['Good Night']= {'/sc 3_0', true, + ['Sweet dreams'] = true, + ['Go to sleep!'] = true, + ['Lights out!'] = true, + ['Bedtime'] = true, + ['Going to bed now'] = true}, + + ['Later']= {'/sc 3_1', true, + ['See ya later'] = true, + ['Later gator!'] = true, + ['See you tomorrow'] = true}, + + ['Bye'] = {'/sc 3_2', true, ['Hasta la bye bye!'] = true}, + ['I\'ll be right back'] = {'/sc 3_3', true}, + ['I have to go'] = {'/sc 3_4', true}, + ['Farewell'] = {'/sc 3_5', true, ['Take care'] = true, ['Have a nice day'] = true, ['Goodluck!'] = true, ['Ta-ta for now!'] = true}, + ['Peace'] = {'/sc 3_6', true, ['Peace out!'] = true, ['Peace dudes!'] = true, ['Rest in pieces!'] = true}, + ['Silly'] = {'/sc 3_7', true, + ['To the batcave!'] = true, + ['Over and out!'] = true, + ['Happy trails!'] = true, + ['I\'ve got to book it!'] = true, + ['Tootles!'] = true, + ['Smell you later!'] = true, + ['GG!'] = true, + ['My house is on fire! gtg.'] = true}, + [1] = '/sc 3' + }, + ['Friend'] ={ + ['Wanna be friends?'] = {'/sc 4_0', true}, + ['Follow me'] = {'/sc 4_1', true, ['Come to my place!'] = true, ['Come to my base!'] = true, ['Follow me, team!'] = true, ['Follow me'] = true}, + ['Your place is cool'] = {'/sc 4_2', true, ['Your place is fun'] = true, ['Your place is awesome'] = true, ['Your place looks good'] = true, ['This place is awesome!'] = true}, + ['Thank you'] = {'/sc 4_3', true, ['Thanks for playing'] = true, ['Thanks for visiting'] = true, ['Thanks for everything'] = true, ['No, thank you'] = true, ['Thanx'] = true}, + ['No problem'] = {'/sc 4_4', true, ['Don\'t worry'] = true, ['That\'s ok'] = true, ['np'] = true}, + ['You are ...'] = {'/sc 4_5', true, + ['You are great!'] = true, + ['You are good!'] = true, + ['You are cool!'] = true, + ['You are funny!'] = true, + ['You are silly!'] = true, + ['You are awesome!'] = true, + ['You are doing something I don\'t like, please stop'] = true + }, + ['I like ...'] = {'/sc 4_6', true, ['I like your name'] = true, ['I like your shirt'] = true, ['I like your place'] = true, ['I like your style'] = true, + ['I like you'] = true, ['I like items'] = true, ['I like money'] = true}, + ['Sorry'] = {'/sc 4_7', true, ['My bad!'] = true, ['I\'m sorry'] = true, ['Whoops!'] = true, ['Please forgive me.'] = true, ['I forgive you.'] = true, + ['I didn\'t mean to do that.'] = true, ['Sorry, I\'ll stop now.'] = true}, + [1] = '/sc 4' + }, + ['Questions'] = { + ['Who?'] = {'/sc 5_0', true, ['Who wants to be my friend?'] = true, ['Who wants to be on my team?'] = true, ['Who made this brilliant game?'] = true}, + ['What?'] = {'/sc 5_1', true, ['What is your favorite animal?'] = true, ['What is your favorite game?'] = true, ['What is your favorite movie?'] = true, + ['What is your favorite TV show?'] = true, ['What is your favorite music?'] = true, ['What are your hobbies?'] = true, ['LOLWUT?'] = true}, + ['When?'] = {'/sc 5_2', true, ['When are you online?'] = true, ['When is the new version coming out?'] = true, ['When can we play again?'] = true, ['When will your place be done?'] = true}, + ['Where?'] = {'/sc 5_3', true, ['Where do you want to go?'] = true, ['Where are you going?'] = true, ['Where am I?!'] = true, ['Where did you go?'] = true}, + ['How?'] = {'/sc 5_4', true, ['How are you today?'] = true, ['How did you make this cool place?'] = true, ['LOLHOW?'] = true}, + ['Can I...'] = {'/sc 5_5', true, ['Can I have a tour?'] = true, ['Can I be on your team?'] = true, ['Can I be your friend?'] = true, ['Can I try something?'] = true, + ['Can I have that please?'] = true, ['Can I have that back please?'] = true, ['Can I have borrow your hat?'] = true, ['Can I have borrow your gear?'] = true}, + [1] = '/sc 5' + }, + ['Answers'] = { + ['You need help?'] = {'/sc 6_0', true, ['Check out the news section'] = true, ['Check out the help section'] = true, ['Read the wiki!'] = true, + ['All the answers are in the wiki!'] = true, ['I will help you with this.'] = true}, + ['Some people ...'] = {'/sc 6_1', true, ['Me'] = true, ['Not me'] = true, ['You'] = true, ['All of us'] = true, ['Everyone but you'] = true, ['Builderman!'] = true, + ['Telamon!'] = true, ['My team'] = true, ['My group'] = true, ['Mom'] = true, ['Dad'] = true, ['Sister'] = true, ['Brother'] = true, ['Cousin'] = true, + ['Grandparent'] = true, ['Friend'] = true}, + ['Time ...'] = {'/sc 6_2', true, ['In the morning'] = true, ['In the afternoon'] = true, ['At night'] = true, ['Tomorrow'] = true, ['This week'] = true, ['This month'] = true, + ['Sometime'] = true, ['Sometimes'] = true, ['Whenever you want'] = true, ['Never'] = true, ['After this'] = true, ['In 10 minutes'] = true, ['In a couple hours'] = true, + ['In a couple days'] = true}, + ['Animals'] = {'/sc 6_3', true, + ['Cats'] = {['Lion'] = true, ['Tiger'] = true, ['Leopard'] = true, ['Cheetah'] = true}, + ['Dogs'] = {['Wolves'] = true, ['Beagle'] = true, ['Collie'] = true, ['Dalmatian'] = true, ['Poodle'] = true, ['Spaniel'] = true, + ['Shepherd'] = true, ['Terrier'] = true, ['Retriever'] = true}, + ['Horses'] = {['Ponies'] = true, ['Stallions'] = true, ['Pwnyz'] = true}, + ['Reptiles'] = {['Dinosaurs'] = true, ['Lizards'] = true, ['Snakes'] = true, ['Turtles!'] = true}, + ['Hamster'] = true, + ['Monkey'] = true, + ['Bears'] = true, + ['Fish'] = {['Goldfish'] = true, ['Sharks'] = true, ['Sea Bass'] = true, ['Halibut'] = true, ['Tropical Fish'] = true}, + ['Birds'] = {['Eagles'] = true, ['Penguins'] = true, ['Parakeets'] = true, ['Owls'] = true, ['Hawks'] = true, ['Pidgeons'] = true}, + ['Elephants'] = true, + ['Mythical Beasts'] = {['Dragons'] = true, ['Unicorns'] = true, ['Sea Serpents'] = true, ['Sphinx'] = true, ['Cyclops'] = true, + ['Minotaurs'] = true, ['Goblins'] = true, ['Honest Politicians'] = true, ['Ghosts'] = true, ['Scylla and Charybdis'] = true} + }, + ['Games'] = {'/sc 6_4', true, + ['Action'] = true, ['Puzzle'] = true, ['Strategy'] = true, ['Racing'] = true, ['RPG'] = true, ['Obstacle Course'] = true, ['Tycoon'] = true, + ['Roblox'] = { ['BrickBattle'] = true, ['Community Building'] = true, ['Roblox Minigames'] = true, ['Contest Place'] = true}, + ['Board games'] = { ['Chess'] = true, ['Checkers'] = true, ['Settlers of Catan'] = true, ['Tigris and Euphrates'] = true, ['El Grande'] = true, + ['Stratego'] = true, ['Carcassonne'] = true} + }, + ['Sports'] = {'/sc 6_5', true, ['Hockey'] = true, ['Soccer'] = true, ['Football'] = true, ['Baseball'] = true, ['Basketball'] = true, + ['Volleyball'] = true, ['Tennis'] = true, ['Sports team practice'] = true, + ['Watersports'] = { ['Surfing'] = true,['Swimming'] = true, ['Water Polo'] = true}, + ['Winter sports'] = { ['Skiing'] = true, ['Snowboarding'] = true, ['Sledding'] = true, ['Skating'] = true}, + ['Adventure'] = {['Rock climbing'] = true, ['Hiking'] = true, ['Fishing'] = true, ['Horseback riding'] = true}, + ['Wacky'] = {['Foosball'] = true, ['Calvinball'] = true, ['Croquet'] = true, ['Cricket'] = true, ['Dodgeball'] = true, + ['Squash'] = true, ['Trampoline'] = true} + }, + ['Movies/TV'] = {'/sc 6_6', true, ['Science Fiction'] = true, ['Animated'] = {['Anime'] = true}, ['Comedy'] = true, ['Romantic'] = true, + ['Action'] = true, ['Fantasy'] = true}, + ['Music'] = {'/sc 6_7', true, ['Country'] = true, ['Jazz'] = true, ['Rap'] = true, ['Hip-hop'] = true, ['Techno'] = true, ['Classical'] = true, + ['Pop'] = true, ['Rock'] = true}, + ['Hobbies'] = {'/sc 6_8', true, + ['Computers'] = { ['Building computers'] = true, ['Videogames'] = true, ['Coding'] = true, ['Hacking'] = true}, + ['The Internet'] = { ['lol. teh internets!'] = true, ['Watching vids'] = true}, + ['Dance'] = true, ['Gymnastics'] = true, ['Listening to music'] = true, ['Arts and crafts'] = true, + ['Martial Arts'] = {['Karate'] = true, ['Judo'] = true, ['Taikwon Do'] = true, ['Wushu'] = true, ['Street fighting'] = true}, + ['Music lessons'] = {['Playing in my band'] = true, ['Playing piano'] = true, ['Playing guitar'] = true, + ['Playing violin'] = true, ['Playing drums'] = true, ['Playing a weird instrument'] = true} + }, + ['Location'] = {'/sc 6_9', true, + ['USA'] = { + ['West'] = { ['Alaska'] = true, ['Arizona'] = true, ['California'] = true, ['Colorado'] = true, ['Hawaii'] = true, + ['Idaho'] = true, ['Montana'] = true, ['Nevada'] = true, ['New Mexico'] = true, ['Oregon'] = true, + ['Utah'] = true, ['Washington'] = true, ['Wyoming'] = true + }, + ['South'] = { ['Alabama'] = true, ['Arkansas'] = true, ['Florida'] = true, ['Georgia'] = true, ['Kentucky'] = true, + ['Louisiana'] = true, ['Mississippi'] = true, ['North Carolina'] = true, ['Oklahoma'] = true, + ['South Carolina'] = true, ['Tennessee'] = true, ['Texas'] = true, ['Virginia'] = true, ['West Virginia'] = true + }, + ['Northeast'] = {['Connecticut'] = true, ['Delaware'] = true, ['Maine'] = true, ['Maryland'] = true, ['Massachusetts'] = true, + ['New Hampshire'] = true, ['New Jersey'] = true, ['New York'] = true, ['Pennsylvania'] = true, ['Rhode Island'] = true, + ['Vermont'] = true + }, + ['Midwest'] = {['Illinois'] = true, ['Indiana'] = true, ['Iowa'] = true, ['Kansas'] = true, ['Michigan'] = true, ['Minnesota'] = true, + ['Missouri'] = true, ['Nebraska'] = true, ['North Dakota'] = true, ['Ohio'] = true, ['South Dakota'] = true, ['Wisconsin'] = true} + }, + ['Canada'] = {['Alberta'] = true, ['British Columbia'] = true, ['Manitoba'] = true, ['New Brunswick'] = true, ['Newfoundland'] = true, + ['Northwest Territories'] = true, ['Nova Scotia'] = true, ['Nunavut'] = true, ['Ontario'] = true, ['Prince Edward Island'] = true, + ['Quebec'] = true, ['Saskatchewan'] = true, ['Yukon'] = true}, + ['Mexico'] = true, + ['Central America'] = true, + ['Europe'] = {['France'] = true, ['Germany'] = true, ['Spain'] = true, ['Italy'] = true, ['Poland'] = true, ['Switzerland'] = true, + ['Greece'] = true, ['Romania'] = true, ['Netherlands'] = true, + ['Great Britain'] = {['England'] = true, ['Scotland'] = true, ['Wales'] = true, ['Northern Ireland'] = true} + }, + ['Asia'] = { ['China'] = true, ['India'] = true, ['Japan'] = true, ['Korea'] = true, ['Russia'] = true, ['Vietnam'] = true}, + ['South America'] = { ['Argentina'] = true, ['Brazil'] = true}, + ['Africa'] = { ['Eygpt'] = true, ['Swaziland'] = true}, + ['Australia'] = true, ['Middle East'] = true, ['Antarctica'] = true, ['New Zealand'] = true + }, + ['Age'] = {'/sc 6_10', true, ['Rugrat'] = true, ['Kid'] = true, ['Tween'] = true, ['Teen'] = true, ['Twenties'] = true, + ['Old'] = true, ['Ancient'] = true, ['Mesozoic'] = true, ['I don\'t want to say my age. Don\'t ask.'] = true}, + ['Mood'] = {'/sc 6_11', true, ['Good'] = true, ['Great!'] = true, ['Not bad'] = true, ['Sad'] = true, ['Hyper'] = true, + ['Chill'] = true, ['Happy'] = true, ['Kind of mad'] = true}, + ['Boy'] = {'/sc 6_12', true}, + ['Girl'] = {'/sc 6_13', true}, + ['I don\'t want to say boy or girl. Don\'t ask.'] = {'/sc 6_14', true}, + [1] = '/sc 6' + }, + ['Game'] = { + ['Let\'s build'] = {'/sc 7_0', true}, + ['Let\'s battle'] = {'/sc 7_1', true}, + ['Nice one!'] = {'/sc 7_2', true}, + ['So far so good'] = {'/sc 7_3', true}, + ['Lucky shot!'] = {'/sc 7_4', true}, + ['Oh man!'] = {'/sc 7_5', true}, + ['I challenge you to a fight!'] = {'/sc 7_6', true}, + ['Help me with this'] = {'/sc 7_7', true}, + ['Let\'s go to your game'] = {'/sc 7_8', true}, + ['Can you show me how do to that?'] = {'/sc 7_9', true}, + ['Backflip!'] = {'/sc 7_10', true}, + ['Frontflip!'] = {'/sc 7_11', true}, + ['Dance!'] = {'/sc 7_12', true}, + ['I\'m on your side!'] = {'/sc 7_13', true}, + ['Game Commands'] = {'/sc 7_14', true, ['regen'] = true, ['reset'] = true, ['go'] = true, ['fix'] = true, ['respawn'] = true}, + [1] = '/sc 7' + }; + ['Silly'] = { + ['Muahahahaha!'] = true, + ['all your base are belong to me!'] = true, + ['GET OFF MAH LAWN'] = true, + ['TEH EPIK DUCK IS COMING!!!'] = true, + ['ROFL'] = true, + ['1337'] = {true, ['i r teh pwnz0r!'] = true, ['w00t!'] = true, ['z0mg h4x!'] = true, ['ub3rR0xXorzage!'] = true} + }, + ['Yes'] = { + ['Absolutely!'] = true, + ['Rock on!'] = true, + ['Totally!'] = true, + ['Juice!'] = true, + ['Yay!'] = true, + ['Yesh'] = true + }, + ['No'] = { + ['Ummm. No.'] = true, + ['...'] = true, + ['Stop!'] = true, + ['Go away!'] = true, + ['Don\'t do that'] = true, + ['Stop breaking the rules'] = true, + ['I don\'t want to'] = true + }, + ['Ok'] = { + ['Well... ok'] = true, + ['Sure'] = true + }, + ['Uncertain'] = { + ['Maybe'] = true, + ['I don\'t know'] = true, + ['idk'] = true, + ['I can\'t decide'] = true, + ['Hmm...'] = true + }, + [':-)'] = { + [':-('] = true, + [':D'] = true, + [':-O'] = true, + ['lol'] = true, + ['=D'] = true, + ['D='] = true, + ['XD'] = true, + [';D'] = true, + [';)'] = true, + ['O_O'] = true, + ['=)'] = true, + ['@_@'] = true, + ['>_<'] = true, + ['T_T'] = true, + ['^_^'] = true, + ['<(0_0<) <(0_0)> (>0_0)> KIRBY DANCE'] = true, + [')\';'] = true, + [':3'] = true + }, + ['Ratings'] = { + ['Rate it!'] = true, + ['I give it a 1 out of 10'] = true, + ['I give it a 2 out of 10'] = true, + ['I give it a 3 out of 10'] = true, + ['I give it a 4 out of 10'] = true, + ['I give it a 5 out of 10'] = true, + ['I give it a 6 out of 10'] = true, + ['I give it a 7 out of 10'] = true, + ['I give it a 8 out of 10'] = true, + ['I give it a 9 out of 10'] = true, + ['I give it a 10 out of 10!'] = true, + } + }, + CreateEnum('SafeChat'){'Level1', 'Level2', 'Level3'}, + SafeChatTree = {}, + TempSpaceLabel = nil + } +--------------------------------------------------- + +local function GetNameValue(pName) + local value = 0 + for index = 1, #pName do + local cValue = string.byte(string.sub(pName, index, index)) + local reverseIndex = #pName - index + 1 + if #pName%2 == 1 then + reverseIndex = reverseIndex - 1 + end + if reverseIndex%4 >= 2 then + cValue = -cValue + end + value = value + cValue + end + return value%8 +end + +function Chat:ComputeChatColor(pName) + return self.ChatColors[GetNameValue(pName) + 1].Color +end + +-- This is context based scrolling +function Chat:EnableScrolling(toggle) + -- Genius idea gone to fail, if we switch the camera type we can effectively lock the + -- camera and do no click scrolling + self.MouseOnFrame = false + if self.RenderFrame then + self.RenderFrame.MouseEnter:connect(function() + local character = Player.Character + local torso = WaitForChild(character, 'Torso') + local humanoid = WaitForChild(character, 'Humanoid') + local head = WaitForChild(character, 'Head') + if toggle then + self.MouseOnFrame = true + Camera.CameraType = 'Scriptable' + -- Get relative position of camera and keep to it + Spawn(function() + local currentRelativePos = Camera.CoordinateFrame.p - torso.Position + while Chat.MouseOnFrame do + Camera.CoordinateFrame = CFrame.new(torso.Position + currentRelativePos, head.Position) + wait(0.015) + end + end) + end + end) + + self.RenderFrame.MouseLeave:connect(function() + Camera.CameraType = 'Custom' + self.MouseOnFrame = false + end) + end +end + +-- TODO: Scrolling using Mouse wheel +function Chat:OnScroll(speed) + if self.MouseOnFrame then + -- + end +end + +-- Check if we are running on a touch device +function Chat:IsTouchDevice() + local touchEnabled = false + pcall(function() touchEnabled = inputService.TouchEnabled end) + return touchEnabled +end + +-- Scrolling +function Chat:ScrollQueue(value) + --[[for i = 1, #self.MessageQueue do + if self.MessageQueue[i] then + for _, label in pairs(self.MessageQueue[i]) do + local next = self.MessageQueue[i].Next + local previous = self.MessageQueue[i].Previous + if label and label:IsA('TextLabel') or label:IsA('TextButton') then + if value > 0 and previous and previous['Message'] then + label.Position = previous['Message'].Position + elseif value < 1 and next['Message'] then + label.Position = previous['Message'].Position + end + end + end + end + end ]] +end + +-- Handles the rendering of the text objects in their appropriate places +function Chat:UpdateQueue(field, diff) + -- Have to do some sort of correction here + for i = #self.MessageQueue, 1, -1 do + if self.MessageQueue[i] then + for _, label in pairs(self.MessageQueue[i]) do + if label and type(label) ~= 'table' and type(label) ~= 'number' then + if label:IsA('TextLabel') or label:IsA('TextButton') or label:IsA('ImageLabel') then + if diff then + label.Position = label.Position - UDim2.new(0, 0, diff, 0) + else + local yOffset = 0 + local xOffset = 20 + if label:IsA('ImageLabel') then + yOffset = 4 + xOffset = 0 + end + if field == self.MessageQueue[i] then + label.Position = UDim2.new(self.Configuration.XScale, xOffset, label.Position.Y.Scale - field['Message'].Size.Y.Scale , yOffset) + -- Just to show up popping effect for the latest message in chat + if label:IsA('TextLabel') or label:IsA('TextButton') then + Spawn(function() + wait(0.05) + while label.TextTransparency >= 0 do + label.TextTransparency = label.TextTransparency - 0.2 + wait(0.03) + end + if label == field['Message'] then + label.TextStrokeTransparency = 0.6 + else + label.TextStrokeTransparency = 1.0 + end + end) + else + Spawn(function() + wait(0.05) + while label.ImageTransparency >= 0 do + label.ImageTransparency = label.ImageTransparency - 0.2 + wait(0.03) + end + end) + + end + else + label.Position = UDim2.new(self.Configuration.XScale, xOffset, label.Position.Y.Scale - field['Message'].Size.Y.Scale, yOffset) + end + if label.Position.Y.Scale < -0.01 then + -- NOTE: Remove this fix when Textbounds is fixed + label.Visible = false + label:Destroy() + end + end + end + end + end + end + end +end + +function Chat:CreateScrollBar() + -- Code for scrolling is in here, partially, but scroll bar drawing isn't drawn + -- TODO: Implement +end + +-- For scrolling, to see if we hit the bounds so that we can stop it from scrolling anymore +function Chat:CheckIfInBounds(value) + if #Chat.MessageQueue < 3 then + return true + end + + if value > 0 and Chat.MessageQueue[1] and Chat.MessageQueue[1]['Player'] and Chat.MessageQueue[1]['Player'].Position.Y.Scale == 0 then + return true + elseif value < 0 and Chat.MessageQueue[1] and Chat.MessageQueue[1]['Player'] and Chat.MessageQueue[1]['Player'].Position.Y.Scale < 0 then + return true + else + return false + end + return false +end + +-- This is to precompute all playerName space strings +-- This is used to offset the message by exactly this + 2 spacestrings +function Chat:ComputeSpaceString(pLabel) + local nString = " " + if not self.TempSpaceLabel then + self.TempSpaceLabel = Gui.Create'TextButton' + { + Size = UDim2.new(0, pLabel.AbsoluteSize.X, 0, pLabel.AbsoluteSize.Y); + FontSize = self.Configuration.FontSize; + Parent = self.RenderFrame; + BackgroundTransparency = 1.0; + Text = nString; + Name = 'SpaceButton' + }; + else + self.TempSpaceLabel.Text = nString + end + + while self.TempSpaceLabel.TextBounds.X < pLabel.TextBounds.X do + nString = nString .. " " + self.TempSpaceLabel.Text = nString + end + nString = nString .. " " + self.CachedSpaceStrings_List[pLabel.Text] = nString + self.TempSpaceLabel.Text = "" + return nString +end + +-- When the playerChatted event fires +-- The message is what the player chatted +function Chat:UpdateChat(cPlayer, message) + local messageField = { + ['Player'] = cPlayer, + ['Message'] = message + } + if coroutine.status(Chat.MessageThread) == 'dead' then + --Chat.Messages_List = {} + table.insert(Chat.Messages_List, messageField) + Chat.MessageThread = coroutine.create(function() + for i = 1, #Chat.Messages_List do + local field = Chat.Messages_List[i] + Chat:CreateMessage(field['Player'], field['Message']) + end + Chat.Messages_List = {} + end) + coroutine.resume(Chat.MessageThread) + else + table.insert(Chat.Messages_List, messageField) + end +end + +function Chat:RecalculateSpacing() + --[[for i = 1, #self.MessageQueue do + local pLabel = self.MessageQueue[i]['Player'] + local mLabel = self.MessageQueue[i]['Message'] + + local prevYScale = mLabel.Size.Y.Scale + local prevText = mLabel.Text + mLabel.Text = prevText + + local heightField = mLabel.TextBounds.Y + + mLabel.Size = UDim2.new(1, 0, heightField/self.RenderFrame.AbsoluteSize.Y, 0) + pLabel.Size = mLabel.Size + + local diff = mLabel.Size.Y.Scale - prevYScale + + Chat:UpdateQueue(self.MessageQueue[i], diff) + end ]] +end + +function Chat:ApplyFilter(str) + --[[for _, word in pair(self.Filter_List) do + if string.find(str, word) then + str:gsub(word, '@#$^') + end + end ]] +end + +-- NOTE: Temporarily disabled ring buffer to allow for chat to always wrap around +function Chat:CreateMessage(cPlayer, message) + local pName + if not cPlayer then + pName = '' + else + pName = cPlayer.Name + end + local pLabel,mLabel + -- Our history stores upto 50 messages that is 100 textlabels + -- If we ever hit the mark, which would be in every popular game btw + -- we wrap around and reuse the labels + if #self.MessageQueue > self.Configuration.HistoryLength then + --[[pLabel = self.MessageQueue[#self.MessageQueue]['Player'] + mLabel = self.MessageQueue[#self.MessageQueue]['Message'] + + pLabel.Text = pName .. ':' + pLabel.Name = pName + + local pColor + if cPlayer.Neutral then + pLabel.TextColor3 = Chat:ComputeChatColor(pName) + else + pLabel.TextColor3 = cPlayer.TeamColor.Color + end + + local nString + + if not self.CachedSpaceStrings_List[pName] then + nString = Chat:ComputeSpaceString(pLabel) + else + nString = self.CachedSpaceStrings_List[pName] + end + + mLabel.Text = "" + mLabel.Name = pName .. " - message" + mLabel.Text = nString .. message; + + mLabel.Parent = nil + mLabel.Parent = self.RenderFrame + + mLabel.Position = UDim2.new(0, 0, 1, 0); + pLabel.Position = UDim2.new(0, 0, 1, 0);]] + + -- Reinserted at the beginning, ring buffer + self.MessageQueue[#self.MessageQueue] = nil + end + --else + -- Haven't hit the mark yet, so keep creating + + local nString = "" + + + pLabel = Gui.Create'ImageLabel' + { + Name = pName; + Parent = self.RenderFrame; + Size = UDim2.new(0, 14, 0, 14); + BackgroundTransparency = 1.0; + Position = UDim2.new(0, 0, 1, -10); + BorderSizePixel = 0.0; + Image = "rbxasset://textures/ui/chat_teamButton.png"; + ImageTransparency = 1.0; + }; + + local pColor + if cPlayer.Neutral then + pLabel.ImageColor3 = Chat:ComputeChatColor(pName) + else + pLabel.ImageColor3 = cPlayer.TeamColor.Color + end + + mLabel = Gui.Create'TextLabel' + { + Name = pName .. ' - message'; + -- Max is 3 lines + Size = UDim2.new(1, 0, 0.5, 0); + TextColor3 = Chat.Configuration.MessageColor; + Font = Enum.Font.SourceSans; + FontSize = Chat.Configuration.FontSize; + TextXAlignment = Enum.TextXAlignment.Left; + TextYAlignment = Enum.TextYAlignment.Top; + Text = ""; -- this is to stop when the engine reverts the swear words to default, which is button, ugh + Parent = self.RenderFrame; + TextWrapped = true; + BackgroundTransparency = 1.0; + TextTransparency = 1.0; + Position = UDim2.new(0, 40, 1, 0); + BorderSizePixel = 0.0; + TextStrokeColor3 = Color3.new(0, 0, 0); + TextStrokeTransparency = 0.6; + --Active = false; + }; + mLabel.Text = nString .. pName .. ": " .. message; + + if not pName then + mLabel.TextColor3 = Color3.new(0, 0.4, 1.0) + end + --end + + for _, adminName in pairs(self.Admins_List) do + if string.lower(adminName) == string.lower(pName) then + mLabel.TextColor3 = self.Configuration.AdminMessageColor + end + end + + pLabel.Visible = true + mLabel.Visible = true + + -- This will give beautiful multilines as well + local heightField = mLabel.TextBounds.Y + + mLabel.Size = UDim2.new(1, 0, heightField/self.RenderFrame.AbsoluteSize.Y, 0) + + local yPixels = self.RenderFrame.AbsoluteSize.Y + local yFieldSize = mLabel.TextBounds.Y + + local queueField = {} + queueField['Player'] = pLabel + queueField['Message'] = mLabel + queueField['SpawnTime'] = tick() -- Used for identifying when to make the message invisible + + table.insert(self.MessageQueue, 1, queueField) + Chat:UpdateQueue(queueField) +end + +function Chat:ScreenSizeChanged() + wait() + while self.Frame.AbsoluteSize.Y > 120 do + self.Frame.Size = self.Frame.Size - UDim2.new(0, 0, 0.005, 0) + end + Chat:RecalculateSpacing() +end + + +function Chat:FindButtonTree(scButton, rootList) + local list = {} + rootList = rootList or self.SafeChatTree + for button, _ in pairs(rootList) do + if button == scButton then + list = rootList[button] + elseif type(rootList[button]) == 'table' then + list = Chat:FindButtonTree(scButton, rootList[button]) + end + end + return list +end + +function Chat:ToggleSafeChatMenu(scButton) + local list = Chat:FindButtonTree(scButton, self.SafeChatTree) + if list then + for button, _ in pairs(list) do + if button:IsA('TextButton') or button:IsA('ImageButton') then + button.Visible = not button.Visible + end + end + return true + end + return false +end + +function Chat:CreateSafeChatOptions(list, rootButton) + local text_List = {} + level = level or 0 + local count = 0 + text_List[rootButton] = {} + text_List[rootButton][1] = list[1] + rootButton = rootButton or self.SafeChatButton + for msg, _ in pairs(list) do + if type(msg) == 'string' then + local chatText = Gui.Create'TextButton' + { + Name = msg; + Text = msg; + Size = UDim2.new(0, 100, 0, 20); + TextXAlignment = Enum.TextXAlignment.Center; + TextColor3 = Color3.new(0.2, 0.1, 0.1); + BackgroundTransparency = 0.5; + BackgroundColor3 = Color3.new(1, 1, 1); + Parent = self.SafeChatFrame; + Visible = false; + Position = UDim2.new(0, rootButton.Position.X.Scale + 105, 0, rootButton.Position.Y.Scale - ((count - 3) * 100)); + }; + + count = count + 1 + + if type(list[msg]) == 'table' then + text_List[rootButton][chatText] = Chat:CreateSafeChatOptions(list[msg], chatText) + else + --table.insert(text_List[chatText], true) + end + chatText.MouseEnter:connect(function() + Chat:ToggleSafeChatMenu(chatText) + end) + + chatText.MouseLeave:connect(function() + Chat:ToggleSafeChatMenu(chatText) + end) + + chatText.MouseButton1Click:connect(function() + local lList = Chat:FindButtonTree(chatText) + if lList then + for i, v in pairs(lList) do + end + else + end + pcall(function() PlayersService:Chat(lList[1]) end) + end) + end + end + return text_List +end + +function Chat:CreateSafeChatGui() + self.SafeChatFrame = Gui.Create'Frame' + { + Name = 'SafeChatFrame'; + Size = UDim2.new(1, 0, 1, 0); + Parent = self.Gui; + BackgroundTransparency = 1.0; + + Gui.Create'ImageButton' + { + Name = 'SafeChatButton'; + Size = UDim2.new(0, 44, 0, 31); + Position = UDim2.new(0, 1, 0.35, 0); + BackgroundTransparency = 1.0; + Image = 'http://www.mete0r.xyz/asset/?id=97080365'; + }; + } + + self.SafeChatButton = self.SafeChatFrame.SafeChatButton + -- safe chat button is the root of this tree + self.SafeChatTree[self.SafeChatButton] = Chat:CreateSafeChatOptions(self.SafeChat_List, self.SafeChatButton) + + self.SafeChatButton.MouseButton1Click:connect(function() + Chat:ToggleSafeChatMenu(self.SafeChatButton) + end) +end + + +function Chat:FocusOnChatBar() + if self.ClickToChatButton then + self.ClickToChatButton.Visible = false + end + + self.GotFocus = true + if self.Frame['Background'] then + self.Frame.Background.Visible = false + end + self.ChatBar:CaptureFocus() +end + +-- For touch devices we create a button instead +function Chat:CreateTouchButton() + self.ChatTouchFrame = Gui.Create'Frame' + { + Name = 'ChatTouchFrame'; + Size = UDim2.new(0, 128, 0, 32); + Position = UDim2.new(0, 88, 0, 0); + BackgroundTransparency = 1.0; + Parent = self.Gui; + + Gui.Create'ImageButton' + { + Name = 'ChatLabel'; + Size = UDim2.new(0, 74, 0, 28); + Position = UDim2.new(0, 0, 0, 0); + BackgroundTransparency = 1.0; + ZIndex = 2.0; + }; + Gui.Create'ImageLabel' + { + Name = 'Background'; + Size = UDim2.new(1, 0, 1, 0); + Position = UDim2.new(0, 0, 0, 0); + BackgroundTransparency = 1.0; + Image = 'http://www.mete0r.xyz/asset/?id=97078724' + }; + + } + self.TapToChatLabel = self.ChatTouchFrame.ChatLabel + self.TouchLabelBackground = self.ChatTouchFrame.Background + + self.ChatBar = Gui.Create'TextBox' + { + Name = 'ChatBar'; + Size = UDim2.new(1, 0, 0.2, 0); + Position = UDim2.new(0, 0, 0.8, 800); + Text = ""; + ZIndex = 1.0; + BackgroundTransparency = 1.0; + Parent = self.Frame; + TextXAlignment = Enum.TextXAlignment.Left; + TextColor3 = Color3.new(1, 1, 1); + ClearTextOnFocus = false; + }; + + self.TapToChatLabel.MouseButton1Click:connect(function() + self.TapToChatLabel.Visible = false + --self.ChatBar.Visible = true + --self.Frame.Background.Visible = true + self.ChatBar:CaptureFocus() + self.GotFocus = true + if self.TouchLabelBackground then + self.TouchLabelBackground.Visible = false + end + end) +end + +-- Non touch devices, create the bottom chat bar +function Chat:CreateChatBar() + -- okay now we do + local status, result = pcall(function() return GuiService.UseLuaChat end) + if forceChatGUI or (status and result) then + self.ClickToChatButton = Gui.Create'TextButton' + { + Name = 'ClickToChat'; + Size = UDim2.new(1, 0, 0, 20); + BackgroundTransparency = 1.0; + ZIndex = 2.0; + Parent = self.Gui; + Text = "To chat click here or press \"/\" key"; + TextColor3 = Color3.new(1, 1, 0.9); + Position = UDim2.new(0, 0, 1, 0); + TextXAlignment = Enum.TextXAlignment.Left; + FontSize = Enum.FontSize.Size12; + } + + self.ChatBar = Gui.Create'TextBox' + { + Name = 'ChatBar'; + Size = UDim2.new(1, 0, 0, 20); + Position = UDim2.new(0, 0, 1, 0); + Text = ""; + ZIndex = 1.0; + BackgroundColor3 = Color3.new(0, 0, 0); + BackgroundTransparency = 0.25; + Parent = self.Gui; + TextXAlignment = Enum.TextXAlignment.Left; + TextColor3 = Color3.new(1, 1, 1); + FontSize = Enum.FontSize.Size12; + ClearTextOnFocus = false; + Text = ''; + }; + + -- Engine has code to offset the entire world, so if we do it by -20 pixels nothing gets in our chat's way + --GuiService:SetGlobalSizeOffsetPixel(0, -20) + local success, error = pcall(function() GuiService:SetGlobalGuiInset(0, 0, 0, 20) end) + if not success then + pcall(function() GuiService:SetGlobalSizeOffsetPixel(0, -20) end) -- Doesn't hurt to throw a non-existent function into a pcall + end + -- ChatHotKey is '/' + GuiService:AddSpecialKey(Enum.SpecialKey.ChatHotkey) + GuiService.SpecialKeyPressed:connect(function(key) + if key == Enum.SpecialKey.ChatHotkey then + Chat:FocusOnChatBar() + end + end) + + self.ClickToChatButton.MouseButton1Click:connect(function() + Chat:FocusOnChatBar() + end) + end +end + +-- Create the initial Chat stuff +-- Done only once +function Chat:CreateGui() + self.Gui = WaitForChild(CoreGuiService, 'RobloxGui') + self.Frame = Gui.Create'Frame' + { + Name = 'ChatFrame'; + --Size = self.Configuration.Size; + Size = UDim2.new(0, 500, 0, 120); + Position = UDim2.new(0, 0, 0, 55); + BackgroundTransparency = 1.0; + --ClipsDescendants = true; + ZIndex = 0.0; + Parent = self.Gui; + Active = false; + + Gui.Create'ImageLabel' + { + Name = 'Background'; + Image = 'http://www.mete0r.xyz/asset/?id=97120937'; --96551212'; + Size = UDim2.new(1.3, 0, 1.64, 0); + Position = UDim2.new(0, 0, 0, 0); + BackgroundTransparency = 1.0; + ZIndex = 0.0; + Visible = false + }; + + Gui.Create'Frame' + { + Name = 'Border'; + Size = UDim2.new(1, 0, 0, 1); + Position = UDim2.new(0, 0, 0.8, 0); + BackgroundTransparency = 0.0; + BackgroundColor3 = Color3.new(236/255, 236/255, 236/255); + BorderSizePixel = 0.0; + Visible = false; + }; + + Gui.Create'Frame' + { + Name = 'ChatRenderFrame'; + Size = UDim2.new(1.02, 0, 1.01, 0); + Position = UDim2.new(0, 0, 0, 0); + BackgroundTransparency = 1.0; + --ClipsDescendants = true; + ZIndex = 0.0; + Active = false; + + }; + }; + + Spawn(function() + wait(0.5) + if IsPhone() then + self.Frame.Size = UDim2.new(0, 280, 0, 120) + end + end) + + self.RenderFrame = self.Frame.ChatRenderFrame + if Chat:IsTouchDevice() then + self.Frame.Position = self.Configuration.Position; + self.RenderFrame.Size = UDim2.new(1, 0, 1, 0) + elseif self.Frame.AbsoluteSize.Y > 120 then + Chat:ScreenSizeChanged() + self.Gui.Changed:connect(function(property) + if property == 'AbsoluteSize' then + Chat:ScreenSizeChanged() + end + end) + end + + if forceChatGUI or Player.ChatMode == Enum.ChatMode.TextAndMenu then + if Chat:IsTouchDevice() then + Chat:CreateTouchButton() + else + Chat:CreateChatBar() + --Chat:CreateSafeChatGui() + end + + if self.ChatBar then + self.ChatBar.FocusLost:connect(function(enterPressed) + Chat.GotFocus = false + if Chat:IsTouchDevice() then + self.ChatBar.Visible = false + self.TapToChatLabel.Visible = true + + if self.TouchLabelBackground then + self.TouchLabelBackground.Visible = true + end + end + if enterPressed and self.ChatBar.Text ~= "" then + + if tick() - Chat.PreviousMessage > Chat.Configuration.HaltTime then -- Make sure that the user isn't deliberately spamming the chat + Chat.PreviousMessage = tick() + local cText = self.ChatBar.Text + if string.sub(self.ChatBar.Text, 1, 1) == '%' then + cText = '(TEAM) ' .. string.sub(cText, 2, #cText) + pcall(function() PlayersService:TeamChat(cText) end) + else + pcall(function() PlayersService:Chat(cText) end) + end + + if self.ClickToChatButton then + self.ClickToChatButton.Visible = true + end + self.ChatBar.Text = "" + end + end + Spawn(function() + wait(5.0) + if not Chat.GotFocus then + Chat.Frame.Background.Visible = false + end + end) + end) + + -- Make the escape key clear the chat box (like it used to) + inputService.InputBegan:connect(function(input) + if (input.KeyCode == Enum.KeyCode.Escape) then + if self.ClickToChatButton then + self.ClickToChatButton.Visible = true + end + + self.ChatBar.Text = "" + end + end) + end + end +end + +-- Scrolling function +-- Applies a speed(velocity) to have nice scrolling effect +function Input:OnMouseScroll() + Spawn(function() + -- How long should the speed last? + while Input.Speed ~=0 do + if Input.Speed > 1 then + while Input.Speed > 0 do + Input.Speed = Input.Speed - 1 + wait(0.25) + end + elseif Input.Speed < 0 then + while Input.Speed < 0 do + Input.Speed = Input.Speed + 1 + wait(0.25) + end + end + wait(0.03) + end + end) + if Chat:CheckIfInBounds(Input.Speed) then + return + end + Chat:ScrollQueue() +end + +function Input:ApplySpeed(value) + Input.Speed = Input.Speed + value + if not self.Simulating then + Input:OnMouseScroll() + end +end + +function Input:Initialize() + self.Mouse.WheelBackward:connect(function() + Input:ApplySpeed(self.Configuration.DefaultSpeed) + end) + + self.Mouse.WheelForward:connect(function() + Input:ApplySpeed(self.Configuration.DefaultSpeed) + end) +end + +function Chat:FindMessageInSafeChat(message, list) + local foundMessage = false + for msg, _ in pairs(list) do + if msg == message then + return true + end + if type(list[msg]) == 'table' then + foundMessage = Chat:FindMessageInSafeChat(message, list[msg]) + if foundMessage then + return true + end + end + end + return foundMessage +end + +-- Just a wrapper around our PlayerChatted event +function Chat:PlayerChatted(...) + local args = {...} + local argCount = select('#', ...) + local player + local message + -- This doesn't look very good, but what else to do? + if args[2] then + player = args[2] + end + if args[3] then + message = args[3] + if string.sub(message, 1, 1) == '%' then + message = '(TEAM) ' .. string.sub(message, 2, #message) + end + end + + if PlayersService.ClassicChat then + if string.sub(message, 1, 3) == '/e ' or string.sub(message, 1, 7) == '/emote ' then + -- don't do anything right now + elseif forceChatGUI or Player.ChatMode == Enum.ChatMode.TextAndMenu then + Chat:UpdateChat(player, message) + elseif Player.ChatMode == Enum.ChatMode.Menu and string.sub(message, 1, 3) == '/sc' then + Chat:UpdateChat(player, message) + else + if Chat:FindMessageInSafeChat(message, self.SafeChat_List) then + Chat:UpdateChat(player, message) + end + end + end +end + +-- After Chat.Configuration.Lifetime seconds of existence, the labels become invisible +-- Runs only every 5 seconds and has to loop through 50 values +-- Shouldn't be too expensive +function Chat:CullThread() + while true do + if #self.MessageQueue > 0 then + for _, field in pairs(self.MessageQueue) do + if field['SpawnTime'] and field['Player'] and field['Message'] and tick() - field['SpawnTime'] > self.Configuration.LifeTime then + field['Player'].Visible = false + field['Message'].Visible = false + end + end + end + wait(5.0) + end +end + +-- RobloxLock everything so users can't delete them(?) +function Chat:LockAllFields(gui) + local children = gui:GetChildren() + for i = 1, #children do + children[i].RobloxLocked = true + if #children[i]:GetChildren() > 0 then + Chat:LockAllFields(children[i]) + end + end +end + +function Chat:CoreGuiChanged(coreGuiType,enabled) + if coreGuiType == Enum.CoreGuiType.Chat or coreGuiType == Enum.CoreGuiType.All then + if self.Frame then self.Frame.Visible = enabled end + if self.TapToChatLabel then self.TapToChatLabel.Visible = enabled end + + if not Chat:IsTouchDevice() and self.ChatBar then + self.ChatBar.Visible = enabled + if enabled then + GuiService:SetGlobalGuiInset(0, 0, 0, 20) + else + GuiService:SetGlobalGuiInset(0, 0, 0, 0) + end + end + end +end + +-- Constructor +-- This function initializes everything +function Chat:Initialize() + + Chat:CreateGui() + + pcall(function() + Chat:CoreGuiChanged(Enum.CoreGuiType.Chat, Game.StarterGui:GetCoreGuiEnabled(Enum.CoreGuiType.Chat)) + Game.StarterGui.CoreGuiChangedSignal:connect(function(coreGuiType,enabled) Chat:CoreGuiChanged(coreGuiType,enabled) end) + end) + + self.EventListener = PlayersService.PlayerChatted:connect(function(...) + -- This event has 4 callback arguments + -- Enum.PlayerChatType.All, chatPlayer, message, targetPlayer + Chat:PlayerChatted(...) + + end) + + self.MessageThread = coroutine.create(function() end) + coroutine.resume(self.MessageThread) + + -- Initialize input for us + Input:Initialize() + -- Eww, everytime a player is added, you have to redo the connection + -- Seems this is not automatic + -- NOTE: PlayerAdded only fires on the server, hence ChildAdded is used here + PlayersService.ChildAdded:connect(function() + Chat.EventListener:disconnect() + self.EventListener = PlayersService.PlayerChatted:connect(function(...) + -- This event has 4 callback arguments + -- Enum.PlayerChatType.All, chatPlayer, message, targetPlayer + Chat:PlayerChatted(...) + end) + end) + + Spawn(function() + Chat:CullThread() + end) + + self.Frame.RobloxLocked = true + Chat:LockAllFields(self.Frame) + self.Frame.DescendantAdded:connect(function(descendant) + Chat:LockAllFields(descendant) + end) +end + +Chat:Initialize() diff --git a/assets/ugc/865 b/assets/ugc/865 new file mode 100644 index 0000000..9709474 --- /dev/null +++ b/assets/ugc/865 @@ -0,0 +1,1272 @@ +--rbxassetid%865% +-- this script creates the gui and sends the web requests for in game purchase prompts + +-- wait for important items to appear +while not Game do + wait(0.1) +end +while not game:GetService("MarketplaceService") do + wait(0.1) +end +while not game:FindFirstChild("CoreGui") do + wait(0.1) +end +while not game.CoreGui:FindFirstChild("RobloxGui") do + wait(0.1) +end + +-------------------------------- Global Variables ---------------------------------------- +-- utility variables +local RbxUtility = nil +local baseUrl = game:GetService("ContentProvider").BaseUrl:lower() +baseUrl = string.gsub(baseUrl,"/m.","/www.") --mobile site does not work for this stuff! + +local doNativePurchasing = true + +-- data variables +local currentProductInfo, currentAssetId, currentCurrencyType, currentCurrencyAmount, currentEquipOnPurchase, currentProductId, currentServerResponseTable, thirdPartyProductName +local checkingPlayerFunds = false +local purchasingConsumable = false + +-- gui variables +local currentlyPrompting = false +local currentlyPurchasing = false +local purchaseDialog, errorDialog = nil +local tweenTime = 0.3 +local showPosition = UDim2.new(0.5,-217,0.5,-146) +local hidePosition = UDim2.new(0.5,-217,1,25) +local isSmallScreen = nil +local spinning = false +local spinnerIcons = nil +local smallScreenThreshold = 450 +local renderSteppedConnection = nil + +-- user facing images +local assetUrls = {} +local assetUrl = "http://www.mete0r.xyz/Asset/?id=" +local errorImageUrl = assetUrl .. "42557901" table.insert(assetUrls, errorImageUrl) +local buyImageUrl = assetUrl .. "142494143" table.insert(assetUrls,buyImageUrl) +local cancelButtonImageUrl = assetUrl .. "142494219" table.insert(assetUrls, cancelButtonImageUrl) +local freeButtonImageDownUrl = assetUrl .. "104651761" table.insert(assetUrls, freeButtonImageDownUrl) +local loadingImage = assetUrl .. "143116791" table.insert(assetUrls,loadingImage) + +-- user facing string +local buyHeaderText = "Buy Item" +local takeHeaderText = "Take Item" +local buyFailedHeaderText = "An Error Occurred" + +local errorPurchasesDisabledText = "In-game purchases are disabled" +local errorPurchasesBuyRobuxText = "your account does not have enough Robux" +local errorPurchasesUnknownText = "Roblox is performing maintenance" + +local purchaseSucceededText = "Your purchase of itemName succeeded!" +local purchaseFailedText = "Your purchase of itemName failed because errorReason. Your account has not been charged. Please try again soon." +local productPurchaseText = "Would you like to buy the itemName assetType for currencyTypecurrencyAmount?" +local productPurchaseTixOnlyText = "Would you like to buy the itemName assetType for currencyAmount currencyType?" +local freeItemPurchaseText = "Would you like to take the assetType itemName for FREE?" +local freeItemBalanceText = "Your balance of Robux or Tix will not be affected by this transaction." +local upgradeBCText = "You require an upgrade to your Builders Club membership to purchase this item. Click 'Buy Builders Club' to upgrade." +local productPurchaseWithMoreRobuxText = "Buy robuxToBuyAmount$R to get itemName assetType." +local productPurchaseWithMoreRobuxRemainderText = "The remaining purchaseRemainder$R will be credited to your ROBUX balance." +local balanceFutureTenseText = "Your balance after this transaction will be " +local balanceCurrentTenseText = "Your balance is now " + +-- robux product arrays +local bcRobuxProducts = {90, 180, 270, 360, 450, 1000, 2750} +local nonBcRobuxProducts = {80, 160, 240, 320, 400, 800, 2000} +-------------------------------- End Global Variables ---------------------------------------- + + +----------------------------- Util Functions --------------------------------------------- +function getSecureApiBaseUrl() + local secureApiUrl = baseUrl + secureApiUrl = string.gsub(secureApiUrl,"http","https") + secureApiUrl = string.gsub(secureApiUrl,"www","api") + return secureApiUrl +end + +function getRbxUtility() + if not RbxUtility then + RbxUtility = LoadLibrary("RbxUtility") + end + return RbxUtility +end + +function preloadAssets() + for i = 1, #assetUrls do + game:GetService("ContentProvider"):Preload(assetUrls[i]) + end +end +----------------------------- End Util Functions --------------------------------------------- + + +-------------------------------- Accept/Decline Functions -------------------------------------- +function removeCurrentPurchaseInfo() + currentAssetId = nil + currentCurrencyType = nil + currentCurrencyAmount = nil + currentEquipOnPurchase = nil + currentProductId = nil + currentProductInfo = nil + currentServerResponseTable = nil + + checkingPlayerFunds = false +end + +function userPurchaseActionsEnded(isSuccess) + checkingPlayerFunds = false + + purchaseDialog.BodyFrame.AfterBalanceText.Visible = false + + if isSuccess then -- show the user we bought the item successfully, when they close this dialog we will call signalPromptEnded + local newPurchasedSucceededText = string.gsub( purchaseSucceededText,"itemName", tostring(currentProductInfo["Name"])) + purchaseDialog.BodyFrame.ItemDescription.Text = newPurchasedSucceededText + + local playerBalance = getPlayerBalance() + local keyWord = "robux" + if currentCurrencyType == Enum.CurrencyType.Tix then + keyWord = "tickets" + end + + local afterBalanceNumber = playerBalance[keyWord] + purchaseDialog.BodyFrame.AfterBalanceText.Text = tostring(balanceCurrentTenseText) .. currencyTypeToString(currentCurrencyType) .. tostring(afterBalanceNumber) .. "." + purchaseDialog.BodyFrame.AfterBalanceText.Visible = true + + setButtonsVisible(purchaseDialog.BodyFrame.OkPurchasedButton) + hidePurchasing() + else -- otherwise we didn't purchase, no need to show anything, just signal and close dialog + signalPromptEnded(isSuccess) + end +end + +function signalPromptEnded(isSuccess) + closePurchasePrompt() + if purchasingConsumable then + game:GetService("MarketplaceService"):SignalPromptProductPurchaseFinished(game.Players.LocalPlayer.userId, currentProductId, isSuccess) + else + game:GetService("MarketplaceService"):SignalPromptPurchaseFinished(game.Players.LocalPlayer, currentAssetId, isSuccess) + end + removeCurrentPurchaseInfo() +end + +function getClosestRobuxProduct(amountNeededToBuy, robuxProductArray) + local closest = robuxProductArray[1]; + local closestIndex = 1 + + for i = 1, #robuxProductArray do + if ( math.abs(robuxProductArray[i] - amountNeededToBuy) < math.abs(closest - amountNeededToBuy) ) then + closest = robuxProductArray[i] + closestIndex = i + end + end + + if closest < amountNeededToBuy then + closest = robuxProductArray[1 + closestIndex] + end + + return closest +end + +--todo: get productIds from server instead of embedding values +function getMinimumProductNeededForPurchase(amountNeededToBuy) + local isBcMember = (Game.Players.LocalPlayer.MembershipType ~= Enum.MembershipType.None) + local productAmount = nil + + if isBcMember then + productAmount = getClosestRobuxProduct(amountNeededToBuy, bcRobuxProducts) + else + productAmount = getClosestRobuxProduct(amountNeededToBuy, nonBcRobuxProducts) + end + + local isAndroid = false + pcall(function() isAndroid = (Game:GetService("UserInputService"):GetPlatform() == Enum.Platform.Android) end) + + local prependString = "" + local appendString = "" + local appPrefix = "" + + if isAndroid then + prependString = "robux" + if isBcMember then + appendString = "bc" + end + appPrefix = "com.roblox.client." + else + if isBcMember then + appendString = "RobuxBC" + else + appendString = "RobuxNonBC" + end + + appPrefix = "com.roblox.robloxmobile." + end + + local productString = appPrefix .. prependString .. tostring(productAmount) .. appendString + + return productAmount, productString +end + +function getClosestRobuxProductToBuyItem(productAmount, playerBalanceInRobux) + local amountNeededToBuy = productAmount - playerBalanceInRobux + local amountToBuy, productName = getMinimumProductNeededForPurchase(amountNeededToBuy) + local remainderAfterPurchase = amountToBuy - productAmount + + return amountToBuy, remainderAfterPurchase, productName +end + +function canUseNewRobuxToProductFlow() + return (Game:GetService("UserInputService").TouchEnabled and doNativePurchasing) +end + +-- make sure our gui displays the proper purchase data, and set the productid we will try and buy if use specifies a buy action +function updatePurchasePromptData(insufficientFunds) + local newItemDescription = "" + + -- id to use when we request a purchase + if not currentProductId then + currentProductId = currentProductInfo["ProductId"] + end + + if isFreeItem() then + newItemDescription = string.gsub( freeItemPurchaseText,"itemName", tostring(currentProductInfo["Name"])) + newItemDescription = string.gsub( newItemDescription,"assetType", tostring(assetTypeToString(currentProductInfo["AssetTypeId"])) ) + setHeaderText(takeHeaderText) + elseif insufficientFunds and canUseNewRobuxToProductFlow() then + local purchaseText = productPurchaseWithMoreRobuxText + + local playerBalance = getPlayerBalance() + if not playerBalance then + newItemDescription = "Could not retrieve your balance. Please try again later." + elseif canUseNewRobuxToProductFlow() then + local amountToBuy, remainderAfterPurchase, productName = getClosestRobuxProductToBuyItem(currentCurrencyAmount, playerBalance["robux"]) + thirdPartyProductName = productName + + newItemDescription = string.gsub( purchaseText,"itemName", tostring(currentProductInfo["Name"])) + newItemDescription = string.gsub( newItemDescription,"assetType", tostring(assetTypeToString(currentProductInfo["AssetTypeId"])) ) + newItemDescription = string.gsub( newItemDescription,"robuxToBuyAmount", tostring(amountToBuy)) + + if remainderAfterPurchase > 0 then + newItemDescription = newItemDescription .. " " .. string.gsub( productPurchaseWithMoreRobuxRemainderText,"purchaseRemainder", tostring(remainderAfterPurchase)) + end + end + setHeaderText(buyHeaderText) + else + local purchaseText = productPurchaseText + if currentProductIsTixOnly() then + purchaseText = productPurchaseTixOnlyText + end + + newItemDescription = string.gsub( purchaseText,"itemName", tostring(currentProductInfo["Name"])) + newItemDescription = string.gsub( newItemDescription,"assetType", tostring(assetTypeToString(currentProductInfo["AssetTypeId"])) ) + newItemDescription = string.gsub( newItemDescription,"currencyType", tostring(currencyTypeToString(currentCurrencyType)) ) + newItemDescription = string.gsub( newItemDescription,"currencyAmount", tostring(currentCurrencyAmount)) + setHeaderText(buyHeaderText) + end + + purchaseDialog.BodyFrame.ItemDescription.Text = newItemDescription + + if purchasingConsumable then + purchaseDialog.BodyFrame.ItemPreview.Image = baseUrl .. "thumbs/asset.ashx?assetid=" .. tostring(currentProductInfo["IconImageAssetId"]) .. '&x=100&y=100&format=png' + else + purchaseDialog.BodyFrame.ItemPreview.Image = baseUrl .. "thumbs/asset.ashx?assetid=" .. tostring(currentAssetId) .. '&x=100&y=100&format=png' + end +end + +function checkIfCanPurchase() + if checkingPlayerFunds then + local canPurchase, insufficientFunds, notRightBC = canPurchaseItem() -- check again to see if we can buy item + if not canPurchase or (insufficientFunds or notRightBC) then -- wait a bit and try a few more times + local retries = 20 + while retries > 0 and (insufficientFunds or notRightBC) and checkingPlayerFunds and canPurchase do + wait(0.5) + canPurchase, insufficientFunds, notRightBC = canPurchaseItem() + retries = retries - 1 + end + end + if canPurchase and not insufficientFunds then + -- we can buy item! set our buttons up and we will exit this loop + setButtonsVisible(purchaseDialog.BodyFrame.BuyButton,purchaseDialog.BodyFrame.CancelButton, purchaseDialog.BodyFrame.AfterBalanceText) + end + end +end + +function closePurchasePrompt() + purchaseDialog:TweenPosition(hidePosition, Enum.EasingDirection.Out, Enum.EasingStyle.Quad, tweenTime, true, function() + game.GuiService:RemoveCenterDialog(purchaseDialog) + hidePurchasing() + + purchaseDialog.Visible = false + currentlyPrompting = false + currentlyPurchasing = false + + Game:GetService("UserInputService").ModalEnabled = false + end) +end + +function showPurchasePrompt() + local canPurchase, insufficientFunds, notRightBC, override, descText = canPurchaseItem() + + if canPurchase then + updatePurchasePromptData(insufficientFunds) + + if override and descText then + purchaseDialog.BodyFrame.ItemDescription.Text = descText + purchaseDialog.BodyFrame.AfterBalanceText.Visible = false + end + game.GuiService:AddCenterDialog(purchaseDialog, Enum.CenterDialogType.ModalDialog, + --ShowFunction + function() + -- set the state for our buttons + purchaseDialog.Visible = true + + if not currentlyPurchasing then + if isFreeItem() then + setButtonsVisible(purchaseDialog.BodyFrame.FreeButton, purchaseDialog.BodyFrame.CancelButton) + elseif notRightBC then + setButtonsVisible(purchaseDialog.BodyFrame.BuyBCButton, purchaseDialog.BodyFrame.CancelButton) + elseif insufficientFunds then + setButtonsVisible(purchaseDialog.BodyFrame.BuyRobuxButton, purchaseDialog.BodyFrame.CancelButton) + elseif override then + if currentProductIsTixOnly() then + purchaseDialog.BodyFrame.AfterBalanceText.Visible = true + end + setButtonsVisible(purchaseDialog.BodyFrame.BuyDisabledButton, purchaseDialog.BodyFrame.CancelButton) + else + setButtonsVisible(purchaseDialog.BodyFrame.BuyButton, purchaseDialog.BodyFrame.CancelButton) + end + end + + Game:GetService("UserInputService").ModalEnabled = true + + purchaseDialog:TweenPosition(showPosition, Enum.EasingDirection.Out, Enum.EasingStyle.Quad, tweenTime, true) + end, + --HideFunction + function() + Game:GetService("UserInputService").ModalEnabled = false + purchaseDialog.Visible = false + end) + else -- we failed in prompting a purchase, do a decline + doDeclinePurchase() + end +end + +-- given an asset id, this function will grab that asset from the website, and return the first "Tool" object found inside it +function getToolAssetID(assetID) + local newTool = game:GetService("InsertService"):LoadAsset(assetID) + if not newTool then return nil end + + if newTool:IsA("Tool") then + return newTool + end + + local toolChildren = newTool:GetChildren() + for i = 1, #toolChildren do + if toolChildren[i]:IsA("Tool") then + return toolChildren[i] + end + end + return nil +end + +-- the user tried to purchase by clicking the purchase button, but something went wrong. +-- let them know their account was not charged, and that they do not own the item yet. +function purchaseFailed(errorType) + local name = "Item" + if currentProductInfo then name = currentProductInfo["Name"] end + + local newPurchasedFailedText = string.gsub( purchaseFailedText,"itemName", tostring(name)) + + if errorType == "inGamePurchasesDisabled" then + newPurchasedFailedText = string.gsub( newPurchasedFailedText,"errorReason", tostring(errorPurchasesDisabledText) ) + elseif errorType == "didNotBuyRobux" then + newPurchasedFailedText = string.gsub( newPurchasedFailedText,"errorReason", tostring(errorPurchasesBuyRobuxText) ) + else + newPurchasedFailedText = string.gsub( newPurchasedFailedText,"errorReason", tostring(errorPurchasesUnknownText) ) + end + + purchaseDialog.BodyFrame.ItemDescription.Text = newPurchasedFailedText + purchaseDialog.BodyFrame.ItemPreview.Image = errorImageUrl + purchaseDialog.BodyFrame.AfterBalanceText.Text = "" + + setButtonsVisible(purchaseDialog.BodyFrame.OkButton) + + setHeaderText(buyFailedHeaderText) + + hidePurchasing() +end + +-- user has specified they want to buy an item, now try to attempt to buy it for them +function doAcceptPurchase(currencyPreferredByUser) + if currentlyPurchasing then return end + currentlyPurchasing = true + + showPurchasing() -- shows a purchasing ui (shows spinner) + + local startTime = tick() + + -- http call to do the purchase + local response = "none" + local url = nil + + -- consumables need to use a different url + if purchasingConsumable then + url = getSecureApiBaseUrl() .. "marketplace/submitpurchase?productId=" .. tostring(currentProductId) .. + "¤cyTypeId=" .. tostring(currencyEnumToInt(currentCurrencyType)) .. + "&expectedUnitPrice=" .. tostring(currentCurrencyAmount) .. + "&placeId=" .. tostring(Game.PlaceId) + local flagExists, flagValue = pcall(function() settings():GetFFlag("AddRequestIdToDeveloperProductPurchases") end) + if flagExists and flagValue then + local h = game:GetService("HttpService") + url = url .. "&requestId=" .. h:UrlEncode(h:GenerateGUID()) + end + else + url = getSecureApiBaseUrl() .. "marketplace/purchase?productId=" .. tostring(currentProductId) .. + "¤cyTypeId=" .. tostring(currencyEnumToInt(currentCurrencyType)) .. + "&purchasePrice=" .. tostring(currentCurrencyAmount) .. + "&locationType=Game" .. "&locationId=" .. Game.PlaceId + end + + local success, reason = ypcall(function() + response = game:HttpPostAsync(url, "RobloxPurchaseRequest") + end) + + -- debug output for us (found in the logs from local) + print("doAcceptPurchase success from ypcall is ",success,"reason is",reason) + + if (tick() - startTime) < 1 then + wait(1) -- allow the purchasing waiting dialog to at least be readable (otherwise it might flash, looks bad)... + end + + -- check to make sure purchase actually happened on the web end + if response == "none" or response == nil or response == '' then + print("did not get a proper response from web on purchase of",currentAssetId,currentProductId) + purchaseFailed() + return + end + + -- parse our response, decide how to react + response = getRbxUtility().DecodeJSON(response) + + if response then + if response["success"] == false then + if response["status"] ~= "AlreadyOwned" then + print("web return response of fail on purchase of",currentAssetId,currentProductId) + if (response["status"] == "EconomyDisabled") then + purchaseFailed("inGamePurchasesDisabled") + else + purchaseFailed() + end + return + end + end + else + print("web return response of non parsable JSON on purchase of",currentAssetId) + purchaseFailed() + return + end + + -- check to see if this item was bought, and if we want to equip it (also need to make sure the asset type was gear) + if currentEquipOnPurchase and success and currentAssetId and tonumber(currentProductInfo["AssetTypeId"]) == 19 then + local tool = getToolAssetID(tonumber(currentAssetId)) + if tool then + tool.Parent = game.Players.LocalPlayer.Backpack + end + end + + if purchasingConsumable then + if not response["receipt"] then + print("tried to buy productId, but no receipt returned. productId was",currentProductId) + purchaseFailed() + return + end + Game:GetService("MarketplaceService"):SignalClientPurchaseSuccess( tostring(response["receipt"]), game.Players.LocalPlayer.userId, currentProductId ) + else + userPurchaseActionsEnded(success) + end +end + +-- user pressed the cancel button, just remove all purchasing prompts +function doDeclinePurchase() + if currentlyPurchasing then return end + userPurchaseActionsEnded(false) +end +-------------------------------- End Accept/Decline Functions -------------------------------------- + + +---------------------------------------------- Currency Functions --------------------------------------------- +-- enums have no implicit conversion to numbers in lua, has to have a function to do this +function currencyEnumToInt(currencyEnum) + if currencyEnum == Enum.CurrencyType.Robux or currencyEnum == Enum.CurrencyType.Default then + return 1 + elseif currencyEnum == Enum.CurrencyType.Tix then + return 2 + end +end + +-- oi, this isn't so ugly anymore +function assetTypeToString(assetType) + local assetTypes = { + [1] = "Image"; + [2] = "T-Shirt"; + [3] = "Audio"; + [4] = "Mesh"; + [5] = "Lua"; + [6] = "HTML"; + [7] = "Text"; + [8] = "Hat"; + [9] = "Place"; + [10] = "Model"; + [11] = "Shirt"; + [12] = "Pants"; + [13] = "Decal"; + [16] = "Avatar"; + [17] = "Head"; + [18] = "Face"; + [19] = "Gear"; + [21] = "Badge"; + [22] = "Group Emblem"; + [24] = "Animation"; + [25] = "Arms"; + [26] = "Legs"; + [27] = "Torso"; + [28] = "Right Arm"; + [29] = "Left Arm"; + [30] = "Left Leg"; + [31] = "Right Leg"; + [32] = "Package"; + [33] = "YouTube Video"; + [34] = "Game Pass"; + [0] = "Product"; + } + return assetTypes[assetType] or "" +end + +function currencyTypeToString(currencyType) + if currencyType == Enum.CurrencyType.Tix then + return "Tix" + else + return "R$" + end +end + +-- figure out what currency to use based on the currency you can actually sell the item in and what the script specified +function setCurrencyAmountAndType(priceInRobux, priceInTix) + if currentCurrencyType == Enum.CurrencyType.Default or currentCurrencyType == Enum.CurrencyType.Robux then -- sell for default (user doesn't care) or robux + if priceInRobux ~= nil and priceInRobux ~= 0 then -- we can sell for robux + currentCurrencyAmount = priceInRobux + currentCurrencyType = Enum.CurrencyType.Robux + else -- have to use tix + currentCurrencyAmount = priceInTix + currentCurrencyType = Enum.CurrencyType.Tix + end + elseif currentCurrencyType == Enum.CurrencyType.Tix then -- we want to sell for tix + if priceInTix ~= nil and priceInTix ~= 0 then -- we can sell for tix + currentCurrencyAmount = priceInTix + currentCurrencyType = Enum.CurrencyType.Tix + else -- have to use robux + currentCurrencyAmount = priceInRobux + currentCurrencyType = Enum.CurrencyType.Robux + end + else + return false + end + + if currentCurrencyAmount == nil then + return false + end + + return true +end + +-- will get the player's balance of robux and tix, return in a table +function getPlayerBalance() + local playerBalance = nil + local success, errorCode = ypcall(function() playerBalance = game:HttpGetAsync(getSecureApiBaseUrl() .. "currency/balance") end) + if not success then + print("Get player balance failed because",errorCode) + return nil + end + + if playerBalance == '' then + return nil + end + + playerBalance = getRbxUtility().DecodeJSON(playerBalance) + + return playerBalance +end + +-- should open an external default browser window to this url +function openBuyCurrencyWindow() + checkingPlayerFunds = true + game:GetService("GuiService"):OpenBrowserWindow(baseUrl .. "Upgrades/Robux.aspx") +end + +function buyEnoughCurrencyForProduct() + showPurchasing() + Game.MarketplaceService:PromptNativePurchase(Game.Players.LocalPlayer, thirdPartyProductName) +end + +function openBCUpSellWindow() + checkingPlayerFunds = true + Game:GetService('GuiService'):OpenBrowserWindow(baseUrl .. "Upgrades/BuildersClubMemberships.aspx") +end + +-- set up the gui text at the bottom of the prompt (alerts user to how much money they will have left, or if they need to buy more to buy the item) +function updateAfterBalanceText(playerBalance, notRightBc, balancePreText) + if isFreeItem() then + purchaseDialog.BodyFrame.AfterBalanceText.Text = freeItemBalanceText + return true, false + end + + local keyWord = nil + if currentCurrencyType == Enum.CurrencyType.Robux then + keyWord = "robux" + elseif currentCurrencyType == Enum.CurrencyType.Tix then + keyWord = "tickets" + end + + if not keyWord then + return false + end + + local playerBalanceNumber = tonumber(playerBalance[keyWord]) + if not playerBalanceNumber then + return false + end + + local afterBalanceNumber = playerBalanceNumber - currentCurrencyAmount + + -- check to see if we have enough of the desired currency to allow a purchase, if not we need to prompt user to buy robux + if not notRightBc then + if afterBalanceNumber < 0 and keyWord == "robux" then + purchaseDialog.BodyFrame.AfterBalanceText.Text = "" + return true, true + elseif afterBalanceNumber < 0 and keyWord == "tickets" then + purchaseDialog.BodyFrame.AfterBalanceText.Text = "You need " .. tostring(-afterBalanceNumber) .. " " .. currencyTypeToString(currentCurrencyType) .. " more to buy this item." + return true, true -- user can't buy more tickets, so we say fail the transaction (maybe instead we can prompt them to trade currency???) + end + else + purchaseDialog.BodyFrame.AfterBalanceText.Text = upgradeBCText + return true, false + end + + if currentProductIsTixOnly() then + purchaseDialog.BodyFrame.AfterBalanceText.Text = tostring(balancePreText) .. tostring(afterBalanceNumber) .. " " .. currencyTypeToString(currentCurrencyType) .. "." + else + purchaseDialog.BodyFrame.AfterBalanceText.Text = tostring(balancePreText) .. currencyTypeToString(currentCurrencyType) .. tostring(afterBalanceNumber) .. "." + end + purchaseDialog.BodyFrame.AfterBalanceText.Visible = true + return true, false +end + +function isFreeItem() + -- if both of these are true, then the item is free, just prompt user if they want to take one + return currentProductInfo and currentProductInfo["IsForSale"] == true and currentProductInfo["IsPublicDomain"] == true +end +---------------------------------------------- End Currency Functions --------------------------------------------- + + +---------------------------------------------- Data Functions ----------------------------------------------------- + +-- more enum to int fun! +function membershipTypeToNumber(membership) + if membership == Enum.MembershipType.None then + return 0 + elseif membership == Enum.MembershipType.BuildersClub then + return 1 + elseif membership == Enum.MembershipType.TurboBuildersClub then + return 2 + elseif membership == Enum.MembershipType.OutrageousBuildersClub then + return 3 + end + + return -1 +end + +function currentProductIsTixOnly() + local priceInRobux = currentProductInfo["PriceInRobux"] + local priceInTix = currentProductInfo["PriceInTickets"] + + if priceInRobux == nil then return true end + priceInRobux = tonumber(priceInRobux) + if priceInRobux == nil then return true end + + if priceInTix == nil then return false end + priceInTix = tonumber(priceInTix) + if priceInTix == nil then return false end + + return (priceInRobux <= 0 and priceInTix > 0) +end + +-- This functions checks to make sure the purchase is even possible, if not it returns false and we don't prompt user (some situations require user feedback when we won't prompt) +function canPurchaseItem() + + -- first we see if player already owns the asset/get the productinfo + local playerOwnsAsset = false + local notRightBc = false + local descText = nil + + if purchasingConsumable then + currentProductInfo = game:GetService("MarketplaceService"):GetProductInfo(currentProductId, Enum.InfoType.Product) + else + currentProductInfo = game:GetService("MarketplaceService"):GetProductInfo(currentAssetId) + end + + if currentProductInfo == nil then + descText = "In-game sales are temporarily disabled. Please try again later." + return true, nil, nil, true, descText + end + + if not purchasingConsumable then + if not currentAssetId then + return false + end + if currentAssetId <= 0 then + return false + end + + local success, errorCode = ypcall(function() playerOwnsAsset = game:HttpGetAsync(getSecureApiBaseUrl() + .. "ownership/hasAsset?userId=" + .. tostring(game.Players.LocalPlayer.userId) + .. "&assetId=" .. tostring(currentAssetId)) + end) + + if not success then + return false + end + + if playerOwnsAsset == true or playerOwnsAsset == "true" then + descText = "You already own this item." + return true, nil, nil, true, descText + end + end + + -- For public models, as there is still the freeButton, indicating it should be + -- available, while this function (canPurchaseItem) doesn't count on free stuff + if isFreeItem() then + return true + end + + purchaseDialog.BodyFrame.AfterBalanceText.Visible = true + + -- next we parse through product info and see if we can purchase + + if type(currentProductInfo) ~= "table" then + currentProductInfo = getRbxUtility().DecodeJSON(currentProductInfo) + end + + if not currentProductInfo then + descText = "Could not get product info. Please try again later." + return true, nil, nil, true, descText + end + + if currentProductInfo["IsForSale"] == false and currentProductInfo["IsPublicDomain"] == false then + descText = "This item is no longer for sale." + return true, nil, nil, true, descText + end + + -- now we start talking money, making sure we are going to be able to purchase this + if not setCurrencyAmountAndType(tonumber(currentProductInfo["PriceInRobux"]), tonumber(currentProductInfo["PriceInTickets"])) then + descText = "We couldn't retrieve the price of the item correctly. Please try again later." + return true, nil, nil, true, descText + end + + local playerBalance = getPlayerBalance() + if not playerBalance then + descText = "Could not retrieve your balance. Please try again later." + return true, nil, nil, true, descText + end + + if tonumber(currentProductInfo["MinimumMembershipLevel"]) > membershipTypeToNumber(game.Players.LocalPlayer.MembershipType) then + notRightBc = true + end + + local updatedBalance, insufficientFunds = updateAfterBalanceText(playerBalance, notRightBc, balanceFutureTenseText) + + if notRightBc then + purchaseDialog.BodyFrame.AfterBalanceText.Active = true + return true, insufficientFunds, notRightBc, false + end + + if currentProductInfo["ContentRatingTypeId"] == 1 then + if game.Players.LocalPlayer:GetUnder13() then + descText = "Your account is under 13 so purchase of this item is not allowed." + return true, nil, nil, true, descText + end + end + + if (currentProductInfo["IsLimited"] == true or currentProductInfo["IsLimitedUnique"] == true) and + (currentProductInfo["Remaining"] == "" or currentProductInfo["Remaining"] == 0 or currentProductInfo["Remaining"] == nil) then + descText = "All copies of this item have been sold out! Try buying from other users on www.mete0r.xyz." + return true, nil, nil, true, descText + end + + if not updatedBalance then + descText = 'Could not update your balance. Please check back after some time.' + return true, nil, nil, true, descText + end + + if insufficientFunds then + -- if this is a ticket only time and we don't have enough, tell the user to get more tix + if currentProductIsTixOnly() then + descText = "This item costs more tickets than you currently have! Try trading currency on www.mete0r.xyz to get more tickets." + return true, nil, nil, true, descText + end + end + + -- we use insufficient funds to display a prompt to buy more robux + return true, insufficientFunds +end + +---------------------------------------------- End Data Functions ----------------------------------------------------- + + +---------------------------------------------- Gui Functions ---------------------------------------------- +function startSpinner() + if purchaseDialog.PurchasingFrame.Visible then return end + purchaseDialog.PurchasingFrame.Visible = true + + renderSteppedConnection = Game:GetService("RunService").RenderStepped:connect(function() + purchaseDialog.PurchasingFrame.PurchasingSpinnerOuter.Rotation = purchaseDialog.PurchasingFrame.PurchasingSpinnerOuter.Rotation + 7 + purchaseDialog.PurchasingFrame.PurchasingSpinnerInner.Rotation = purchaseDialog.PurchasingFrame.PurchasingSpinnerInner.Rotation - 9 + end) +end + +function stopSpinner() + if renderSteppedConnection then + renderSteppedConnection:disconnect() + renderSteppedConnection = nil + purchaseDialog.PurchasingFrame.Visible = false + end +end + +-- next two functions control the "Purchasing..." overlay +function showPurchasing() + startSpinner() +end + +function hidePurchasing() + stopSpinner() +end + +-- convenience method to say exactly what buttons should be visible (all others are not!) +function setButtonsVisible(...) + local args = {...} + local argCount = select('#', ...) + + local bodyFrameChildren = purchaseDialog.BodyFrame:GetChildren() + for i = 1, #bodyFrameChildren do + if bodyFrameChildren[i]:IsA("GuiButton") then + bodyFrameChildren[i].Visible = false + for j = 1, argCount do + if bodyFrameChildren[i] == args[j] then + bodyFrameChildren[i].Visible = true + break + end + end + end + end +end + +-- all the gui init. Would be nice if this didn't have to be a script +function createPurchasePromptGui() + purchaseDialog = Instance.new("Frame") + purchaseDialog.Name = "PurchaseFrame" + purchaseDialog.Size = UDim2.new(0,435,0,292) + purchaseDialog.Position = hidePosition + purchaseDialog.Active = true + purchaseDialog.Visible = false + purchaseDialog.BackgroundColor3 = Color3.new(225/255,225/255,225/255) + purchaseDialog.BorderSizePixel = 0 + purchaseDialog.Parent = game.CoreGui.RobloxGui + + local bodyFrame = Instance.new("Frame") + bodyFrame.Name = "BodyFrame" + bodyFrame.Active = true + bodyFrame.Size = UDim2.new(1,-10,1,-55) + bodyFrame.Position = UDim2.new(0,5,0,50) + bodyFrame.BackgroundColor3 = Color3.new(1, 1, 1) + bodyFrame.BorderSizePixel = 0 + bodyFrame.ZIndex = 8 + bodyFrame.Parent = purchaseDialog + + local titleLabel = createTextObject("TitleLabel", "Buy Item", "TextLabel", Enum.FontSize.Size36) + titleLabel.Active = true + titleLabel.Font = Enum.Font.SourceSansBold + titleLabel.TextColor3 = Color3.new(54/255,54/255,54/255) + titleLabel.ZIndex = 8 + titleLabel.Size = UDim2.new(1,0,0,50) + titleLabel.Parent = purchaseDialog + + local distanceBetweenButtons = 20 + + local cancelButton = createImageButton("CancelButton") + cancelButton.Position = UDim2.new(0.5,(distanceBetweenButtons/2),1,-100) + cancelButton.BorderColor3 = Color3.new(86/255,86/255,86/255) + cancelButton.Parent = bodyFrame + cancelButton.Modal = true + cancelButton.ZIndex = 8 + cancelButton.Image = cancelButtonImageUrl + cancelButton.MouseButton1Up:connect(function( ) + cancelButton.Image = cancelButtonImageUrl + end) + cancelButton.MouseLeave:connect(function( ) + cancelButton.Image = cancelButtonImageUrl + end) + cancelButton.MouseButton1Click:connect(doDeclinePurchase) + + local cancelText = createTextObject("CancelText","Cancel","TextLabel",Enum.FontSize.Size24) + cancelText.TextColor3 = Color3.new(1,1,1) + cancelText.Size = UDim2.new(1,0,1,0) + cancelText.ZIndex = 8 + cancelText.Parent = cancelButton + + local cancelHoverFrame = Instance.new("Frame") + cancelHoverFrame.Name = "HoverFrame" + cancelHoverFrame.Size = UDim2.new(1,0,1,0) + cancelHoverFrame.BackgroundColor3 = Color3.new(1,1,1) + cancelHoverFrame.BackgroundTransparency = 0.7 + cancelHoverFrame.BorderSizePixel = 0 + cancelHoverFrame.Visible = false + cancelHoverFrame.ZIndex = 8 + cancelHoverFrame.Parent = cancelButton + cancelButton.MouseEnter:connect(function() + cancelHoverFrame.Visible = true + end) + cancelButton.MouseLeave:connect(function( ) + cancelHoverFrame.Visible = false + end) + cancelButton.MouseButton1Click:connect(function( ) + cancelHoverFrame.Visible = false + end) + + local buyButton = createImageButton("BuyButton") + buyButton.Position = UDim2.new(0.5,-117-(distanceBetweenButtons/2),1,-100) + buyButton.BorderColor3 = Color3.new(0,112/255,1/255) + buyButton.Image = buyImageUrl + buyButton.ZIndex = 8 + buyButton.Parent = bodyFrame + + local buyText = createTextObject("BuyText","Buy Now","TextLabel",Enum.FontSize.Size24) + buyText.ZIndex = 8 + buyText.TextColor3 = Color3.new(1,1,1) + buyText.Size = UDim2.new(1,0,1,0) + buyText.Parent = buyButton + + local buyHoverFrame = cancelHoverFrame:Clone() + buyButton.MouseEnter:connect(function() + buyHoverFrame.Visible = true + end) + buyButton.MouseLeave:connect(function( ) + buyHoverFrame.Visible = false + end) + buyButton.MouseButton1Click:connect(function( ) + buyHoverFrame.Visible = false + end) + buyHoverFrame.Parent = buyButton + + local buyDisabledButton = buyButton:Clone() + buyDisabledButton.Name = "BuyDisabledButton" + buyDisabledButton.AutoButtonColor = false + buyDisabledButton.Visible = false + buyDisabledButton.Active = false + buyDisabledButton.Parent = bodyFrame + + local buyRobux = buyButton:Clone() + buyRobux.Name = "BuyRobuxButton" + buyRobux.AutoButtonColor = false + buyRobux.Visible = false + buyRobux.ZIndex = 8 + + if canUseNewRobuxToProductFlow() then + buyRobux.BuyText.Text = "Buy" + else + buyRobux.BuyText.Text = "Buy R$" + end + + buyRobux.MouseEnter:connect(function() + buyRobux.HoverFrame.Visible = true + end) + buyRobux.MouseLeave:connect(function( ) + buyRobux.HoverFrame.Visible = false + end) + buyRobux.MouseButton1Click:connect(function( ) + buyRobux.HoverFrame.Visible = false + + if canUseNewRobuxToProductFlow() then + buyEnoughCurrencyForProduct() + else + openBuyCurrencyWindow() + end + end) + buyRobux.Parent = bodyFrame + + local buyBC = buyRobux:Clone() + buyBC.Name = "BuyBCButton" + buyBC.BuyText.Text = "Buy Builders Club" + buyBC.MouseEnter:connect(function() + buyBC.HoverFrame.Visible = true + end) + buyBC.MouseLeave:connect(function( ) + buyBC.HoverFrame.Visible = false + end) + buyBC.MouseButton1Click:connect(function( ) + buyBC.HoverFrame.Visible = false + openBCUpSellWindow() + end) + buyBC.Parent = bodyFrame + + local freeButton = buyButton:Clone() + freeButton.BuyText.Text = "Take Free" + freeButton.BackgroundTransparency = 1 + freeButton.Name = "FreeButton" + freeButton.Visible = false + freeButton.MouseEnter:connect(function() + freeButton.HoverFrame.Visible = true + end) + freeButton.MouseButton1Click:connect(function( ) + freeButton.HoverFrame.Visible = false + end) + freeButton.MouseLeave:connect(function( ) + freeButton.HoverFrame.Visible = false + end) + freeButton.Parent = bodyFrame + + local okButton = buyButton:Clone() + okButton.BuyText.Text = "Ok" + okButton.Name = "OkButton" + okButton.Visible = false + okButton.Position = UDim2.new(0.5,-okButton.Size.X.Offset/2,1,-100) + okButton.Modal = true + okButton.MouseEnter:connect(function() + okButton.HoverFrame.Visible = true + end) + okButton.MouseButton1Click:connect(function( ) + okButton.HoverFrame.Visible = false + signalPromptEnded(false) + end) + okButton.MouseLeave:connect(function( ) + okButton.HoverFrame.Visible = false + end) + okButton.Parent = bodyFrame + + local okPurchasedButton = okButton:Clone() + okPurchasedButton.Name = "OkPurchasedButton" + okPurchasedButton.MouseEnter:connect(function() + okPurchasedButton.HoverFrame.Visible = true + end) + okPurchasedButton.MouseLeave:connect(function( ) + okPurchasedButton.HoverFrame.Visible = false + end) + okPurchasedButton.MouseButton1Click:connect(function() + okPurchasedButton.HoverFrame.Visible = false + if purchasingConsumable then + userPurchaseProductActionsEnded(true) + else + signalPromptEnded(true) + end + end) + okPurchasedButton.Parent = bodyFrame + + buyButton.MouseButton1Click:connect(function() doAcceptPurchase(Enum.CurrencyType.Robux) end) + freeButton.MouseButton1Click:connect(function() doAcceptPurchase(false) end) + + local itemPreview = Instance.new("ImageLabel") + itemPreview.Name = "ItemPreview" + itemPreview.BackgroundTransparency = 1 + itemPreview.BorderSizePixel = 0 + itemPreview.Position = UDim2.new(0,20,0,20) + itemPreview.Size = UDim2.new(0,100,0,100) + itemPreview.ZIndex = 9 + itemPreview.Parent = bodyFrame + + local itemDescription = createTextObject("ItemDescription","","TextLabel",Enum.FontSize.Size18) + itemDescription.TextXAlignment = Enum.TextXAlignment.Left + itemDescription.Position = UDim2.new(0.5, -70, 0, 10) + itemDescription.Size = UDim2.new(0,245,0,115) + itemDescription.TextColor3 = Color3.new(54/255,54/255,54/255) + itemDescription.ZIndex = 8 + itemDescription.Parent = bodyFrame + + local afterBalanceText = createTextObject("AfterBalanceText","","TextLabel",Enum.FontSize.Size14) + afterBalanceText.BackgroundTransparency = 1 + afterBalanceText.TextColor3 = Color3.new(102/255,102/255,102/255) + afterBalanceText.Position = UDim2.new(0,5,1,-33) + afterBalanceText.Size = UDim2.new(1,-10,0,28) + afterBalanceText.ZIndex = 8 + afterBalanceText.Parent = bodyFrame + + local purchasingFrame = Instance.new("Frame") + purchasingFrame.Name = "PurchasingFrame" + purchasingFrame.Size = UDim2.new(1,0,1,0) + purchasingFrame.BackgroundColor3 = Color3.new(0,0,0) + purchasingFrame.BackgroundTransparency = 0.05 + purchasingFrame.BorderSizePixel = 0 + purchasingFrame.ZIndex = 9 + purchasingFrame.Visible = false + purchasingFrame.Active = true + purchasingFrame.Parent = purchaseDialog + + local purchasingLabel = createTextObject("PurchasingLabel","Purchasing","TextLabel",Enum.FontSize.Size48) + purchasingLabel.Size = UDim2.new(1,0,1,0) + purchasingLabel.Position = UDim2.new(0,0,0,-24) + purchasingLabel.ZIndex = 10 + purchasingLabel.Parent = purchasingFrame + + local purchasingSpinner = Instance.new("ImageLabel") + purchasingSpinner.Name = "PurchasingSpinnerOuter" + purchasingSpinner.Image = loadingImage + purchasingSpinner.BackgroundTransparency = 1 + purchasingSpinner.BorderSizePixel = 0 + purchasingSpinner.Size = UDim2.new(0,64,0,64) + purchasingSpinner.Position = UDim2.new(0.5,-32,0.5,32) + purchasingSpinner.ZIndex = 10 + purchasingSpinner.Parent = purchasingFrame + + local purchasingSpinnerInner = purchasingSpinner:Clone() + purchasingSpinnerInner.BackgroundTransparency = 1 + purchasingSpinnerInner.Name = "PurchasingSpinnerInner" + purchasingSpinnerInner.Size = UDim2.new(0,32,0,32) + purchasingSpinnerInner.Position = UDim2.new(0.5,-16,0.5,48) + purchasingSpinnerInner.Parent = purchasingFrame +end + +-- next 2 functions are convenienvce creation functions for guis +function createTextObject(name, text, type, size) + local textLabel = Instance.new(type) + textLabel.Font = Enum.Font.SourceSans + textLabel.TextColor3 = Color3.new(217/255, 217/255, 217/255) + textLabel.TextWrapped = true + textLabel.Name = name + textLabel.Text = text + textLabel.BackgroundTransparency = 1 + textLabel.BorderSizePixel = 0 + textLabel.FontSize = size + + return textLabel +end + +function createImageButton(name) + local imageButton = Instance.new("ImageButton") + imageButton.Size = UDim2.new(0,117,0,60) + imageButton.Name = name + return imageButton +end + +function setHeaderText(text) + purchaseDialog.TitleLabel.Text = text +end + +function doPurchasePrompt(player, assetId, equipIfPurchased, currencyType, productId) + if not purchaseDialog then + createPurchasePromptGui() + end + + if player == game.Players.LocalPlayer then + if currentlyPrompting then return end + + currentlyPrompting = true + + currentAssetId = assetId + currentProductId = productId + currentCurrencyType = currencyType + currentEquipOnPurchase = equipIfPurchased + + purchasingConsumable = (currentProductId ~= nil) + + showPurchasePrompt() + end +end + +function userPurchaseProductActionsEnded(userIsClosingDialog) + checkingPlayerFunds = false + + if userIsClosingDialog then + closePurchasePrompt() + if currentServerResponseTable then + local isPurchased = false + if tostring(currentServerResponseTable["isValid"]):lower() == "true" then + isPurchased = true + end + + Game:GetService("MarketplaceService"):SignalPromptProductPurchaseFinished(tonumber(currentServerResponseTable["playerId"]), tonumber(currentServerResponseTable["productId"]), isPurchased) + end + removeCurrentPurchaseInfo() + else + if tostring(currentServerResponseTable["isValid"]):lower() == "true" then + local newPurchasedSucceededText = string.gsub( purchaseSucceededText,"itemName", tostring(currentProductInfo["Name"])) + purchaseDialog.BodyFrame.ItemDescription.Text = newPurchasedSucceededText + + local playerBalance = getPlayerBalance() + local keyWord = "robux" + if currentCurrencyType == Enum.CurrencyType.Tix then + keyWord = "tickets" + end + + local afterBalanceNumber = playerBalance[keyWord] + purchaseDialog.BodyFrame.AfterBalanceText.Text = tostring(balanceCurrentTenseText) .. currencyTypeToString(currentCurrencyType) .. tostring(afterBalanceNumber) .. "." + + setButtonsVisible(purchaseDialog.BodyFrame.OkPurchasedButton) + hidePurchasing() + else + purchaseFailed() + end + end +end + +function doProcessServerPurchaseResponse(serverResponseTable) + if not serverResponseTable then + purchaseFailed() + return + end + + if serverResponseTable["playerId"] and tonumber(serverResponseTable["playerId"]) == game.Players.LocalPlayer.userId then + currentServerResponseTable = serverResponseTable + userPurchaseProductActionsEnded(false) + end +end + +---------------------------------------------- End Gui Functions ---------------------------------------------- + + +---------------------------------------------- Script Event start/initialization ---------------------------------------------- +preloadAssets() + +game:GetService("MarketplaceService").PromptProductPurchaseRequested:connect(function(player, productId, equipIfPurchased, currencyType) + doPurchasePrompt(player, nil, equipIfPurchased, currencyType, productId) +end) + +Game:GetService("MarketplaceService").PromptPurchaseRequested:connect(function(player, assetId, equipIfPurchased, currencyType) + doPurchasePrompt(player, assetId, equipIfPurchased, currencyType, nil) +end) + +Game:GetService("MarketplaceService").ServerPurchaseVerification:connect(function(serverResponseTable) + doProcessServerPurchaseResponse(serverResponseTable) +end) + +Game:GetService("GuiService").BrowserWindowClosed:connect(checkIfCanPurchase) + +if not canUseNewRobuxToProductFlow() then return end + +Game.MarketplaceService.NativePurchaseFinished:connect(function(player, productId, wasPurchased) + if wasPurchased then + + -- try for 20 seconds to see if we get the funds if we purchased something + local retriesLeft = 40 + local canPurchase, insufficientFunds, notRightBC = canPurchaseItem() + while canPurchase and insufficientFunds and retriesLeft > 0 do + wait(0.5) + canPurchase, insufficientFunds, notRightBC = canPurchaseItem() + retriesLeft = retriesLeft - 1 + end + + if canPurchase and not insufficientFunds and not notRightBC then + doAcceptPurchase(Enum.CurrencyType.Robux) + else + purchaseFailed("didNotBuyRobux") + end + else + purchaseFailed("didNotBuyRobux") + end +end) diff --git a/assets/ugc/866 b/assets/ugc/866 new file mode 100644 index 0000000..b052e42 --- /dev/null +++ b/assets/ugc/866 @@ -0,0 +1,317 @@ +--rbxassetid%866% +--[[ + This script controls the gui the player sees in regards to his or her health. + Can be turned with Game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Health,false) + Copyright ROBLOX 2014. Written by Ben Tkacheff. +--]] + +--------------------------------------------------------------------- +-- Initialize/Variables +while not Game do + wait(1/60) +end +while not Game.Players do + wait(1/60) +end + +local useCoreHealthBar = false +local success = pcall(function() useCoreHealthBar = Game.Players:GetUseCoreScriptHealthBar() end) +if not success or not useCoreHealthBar then + return +end + +local currentHumanoid = nil + +local HealthGui = nil +local lastHealth = 100 +local HealthPercentageForOverlay = 5 +local maxBarTweenTime = 0.3 +local greenColor = Color3.new(0.2, 1, 0.2) +local redColor = Color3.new(1, 0.2, 0.2) +local yellowColor = Color3.new(1, 1, 0.2) + +local guiEnabled = false +local healthChangedConnection = nil +local humanoidDiedConnection = nil +local characterAddedConnection = nil + +local greenBarImage = "rbxasset://textures/ui/Health-BKG-Center.png" +local greenBarImageLeft = "rbxasset://textures/ui/Health-BKG-Left-Cap.png" +local greenBarImageRight = "rbxasset://textures/ui/Health-BKG-Right-Cap.png" +local hurtOverlayImage = "http://www.mete0r.xyz/asset/?id=34854607" + +Game:GetService("ContentProvider"):Preload(greenBarImage) +Game:GetService("ContentProvider"):Preload(hurtOverlayImage) + +while not Game.Players.LocalPlayer do + wait(1/60) +end + +--------------------------------------------------------------------- +-- Functions + +local capHeight = 15 +local capWidth = 7 + +function CreateGui() + if HealthGui and #HealthGui:GetChildren() > 0 then + HealthGui.Parent = Game.CoreGui.RobloxGui + return + end + + local hurtOverlay = Instance.new("ImageLabel") + hurtOverlay.Name = "HurtOverlay" + hurtOverlay.BackgroundTransparency = 1 + hurtOverlay.Image = hurtOverlayImage + hurtOverlay.Position = UDim2.new(-10,0,-10,0) + hurtOverlay.Size = UDim2.new(20,0,20,0) + hurtOverlay.Visible = false + hurtOverlay.Parent = HealthGui + + local healthFrame = Instance.new("Frame") + healthFrame.Name = "HealthFrame" + healthFrame.BackgroundTransparency = 1 + healthFrame.BackgroundColor3 = Color3.new(1,1,1) + healthFrame.BorderColor3 = Color3.new(0,0,0) + healthFrame.BorderSizePixel = 0 + healthFrame.Position = UDim2.new(0.5,-85,1,-20) + healthFrame.Size = UDim2.new(0,170,0,capHeight) + healthFrame.Parent = HealthGui + + + local healthBarBackCenter = Instance.new("ImageLabel") + healthBarBackCenter.Name = "healthBarBackCenter" + healthBarBackCenter.BackgroundTransparency = 1 + healthBarBackCenter.Image = greenBarImage + healthBarBackCenter.Size = UDim2.new(1,-capWidth*2,1,0) + healthBarBackCenter.Position = UDim2.new(0,capWidth,0,0) + healthBarBackCenter.Parent = healthFrame + healthBarBackCenter.ImageColor3 = Color3.new(1,1,1) + + local healthBarBackLeft = Instance.new("ImageLabel") + healthBarBackLeft.Name = "healthBarBackLeft" + healthBarBackLeft.BackgroundTransparency = 1 + healthBarBackLeft.Image = greenBarImageLeft + healthBarBackLeft.Size = UDim2.new(0,capWidth,1,0) + healthBarBackLeft.Position = UDim2.new(0,0,0,0) + healthBarBackLeft.Parent = healthFrame + healthBarBackLeft.ImageColor3 = Color3.new(1,1,1) + + local healthBarBackRight = Instance.new("ImageLabel") + healthBarBackRight.Name = "healthBarBackRight" + healthBarBackRight.BackgroundTransparency = 1 + healthBarBackRight.Image = greenBarImageRight + healthBarBackRight.Size = UDim2.new(0,capWidth,1,0) + healthBarBackRight.Position = UDim2.new(1,-capWidth,0,0) + healthBarBackRight.Parent = healthFrame + healthBarBackRight.ImageColor3 = Color3.new(1,1,1) + + + local healthBar = Instance.new("Frame") + healthBar.Name = "HealthBar" + healthBar.BackgroundTransparency = 1 + healthBar.BackgroundColor3 = Color3.new(1,1,1) + healthBar.BorderColor3 = Color3.new(0,0,0) + healthBar.BorderSizePixel = 0 + healthBar.ClipsDescendants = true + healthBar.Position = UDim2.new(0, 0, 0, 0) + healthBar.Size = UDim2.new(1,0,1,0) + healthBar.Parent = healthFrame + + + local healthBarCenter = Instance.new("ImageLabel") + healthBarCenter.Name = "healthBarCenter" + healthBarCenter.BackgroundTransparency = 1 + healthBarCenter.Image = greenBarImage + healthBarCenter.Size = UDim2.new(1,-capWidth*2,1,0) + healthBarCenter.Position = UDim2.new(0,capWidth,0,0) + healthBarCenter.Parent = healthBar + healthBarCenter.ImageColor3 = greenColor + + local healthBarLeft = Instance.new("ImageLabel") + healthBarLeft.Name = "healthBarLeft" + healthBarLeft.BackgroundTransparency = 1 + healthBarLeft.Image = greenBarImageLeft + healthBarLeft.Size = UDim2.new(0,capWidth,1,0) + healthBarLeft.Position = UDim2.new(0,0,0,0) + healthBarLeft.Parent = healthBar + healthBarLeft.ImageColor3 = greenColor + + local healthBarRight = Instance.new("ImageLabel") + healthBarRight.Name = "healthBarRight" + healthBarRight.BackgroundTransparency = 1 + healthBarRight.Image = greenBarImageRight + healthBarRight.Size = UDim2.new(0,capWidth,1,0) + healthBarRight.Position = UDim2.new(1,-capWidth,0,0) + healthBarRight.Parent = healthBar + healthBarRight.ImageColor3 = greenColor + + HealthGui.Parent = Game.CoreGui.RobloxGui +end + +function UpdateGui(health) + if not HealthGui then return end + + local healthFrame = HealthGui:FindFirstChild("HealthFrame") + if not healthFrame then return end + + local healthBar = healthFrame:FindFirstChild("HealthBar") + if not healthBar then return end + + -- If more than 1/4 health, bar = green. Else, bar = red. + local percentHealth = (health/currentHumanoid.MaxHealth) + if percentHealth ~= percentHealth then + percentHealth = 1 + healthBar.healthBarCenter.ImageColor3 = yellowColor + healthBar.healthBarRight.ImageColor3 = yellowColor + healthBar.healthBarLeft.ImageColor3 = yellowColor + elseif percentHealth > 0.25 then + healthBar.healthBarCenter.ImageColor3 = greenColor + healthBar.healthBarRight.ImageColor3 = greenColor + healthBar.healthBarLeft.ImageColor3 = greenColor + else + healthBar.healthBarCenter.ImageColor3 = redColor + healthBar.healthBarRight.ImageColor3 = redColor + healthBar.healthBarLeft.ImageColor3 = redColor + end + + local width = (health / currentHumanoid.MaxHealth) + width = math.max(math.min(width,1),0) -- make sure width is between 0 and 1 + if width ~= width then width = 1 end + + local healthDelta = lastHealth - health + lastHealth = health + + local percentOfTotalHealth = math.abs(healthDelta/currentHumanoid.MaxHealth) + percentOfTotalHealth = math.max(math.min(percentOfTotalHealth,1),0) -- make sure percentOfTotalHealth is between 0 and 1 + if percentOfTotalHealth ~= percentOfTotalHealth then percentOfTotalHealth = 1 end + + local newHealthSize = UDim2.new(width,0,1,0) + + healthBar.Size = newHealthSize + + local sizeX = healthBar.AbsoluteSize.X + if sizeX < capWidth then + healthBar.healthBarCenter.Visible = false + healthBar.healthBarRight.Visible = false + elseif sizeX < (2*capWidth + 1) then + healthBar.healthBarCenter.Visible = true + healthBar.healthBarCenter.Size = UDim2.new(0,sizeX - capWidth,1,0) + healthBar.healthBarRight.Visible = false + else + healthBar.healthBarCenter.Visible = true + healthBar.healthBarCenter.Size = UDim2.new(1,-capWidth*2,1,0) + healthBar.healthBarRight.Visible = true + end + + local thresholdForHurtOverlay = currentHumanoid.MaxHealth * (HealthPercentageForOverlay/100) + + if healthDelta >= thresholdForHurtOverlay then + AnimateHurtOverlay() + end + +end + +function AnimateHurtOverlay() + if not HealthGui then return end + + local overlay = HealthGui:FindFirstChild("HurtOverlay") + if not overlay then return end + + local newSize = UDim2.new(20, 0, 20, 0) + local newPos = UDim2.new(-10, 0, -10, 0) + + if overlay:IsDescendantOf(Game) then + -- stop any tweens on overlay + overlay:TweenSizeAndPosition(newSize,newPos,Enum.EasingDirection.Out,Enum.EasingStyle.Linear,0,true,function() + + -- show the gui + overlay.Size = UDim2.new(1,0,1,0) + overlay.Position = UDim2.new(0,0,0,0) + overlay.Visible = true + + -- now tween the hide + if overlay:IsDescendantOf(Game) then + overlay:TweenSizeAndPosition(newSize,newPos,Enum.EasingDirection.Out,Enum.EasingStyle.Quad,10,false,function() + overlay.Visible = false + end) + else + overlay.Size = newSize + overlay.Position = newPos + end + end) + else + overlay.Size = newSize + overlay.Position = newPos + end + +end + +function humanoidDied() + UpdateGui(0) +end + +function disconnectPlayerConnections() + if characterAddedConnection then characterAddedConnection:disconnect() end + if humanoidDiedConnection then humanoidDiedConnection:disconnect() end + if healthChangedConnection then healthChangedConnection:disconnect() end +end + +function newPlayerCharacter() + disconnectPlayerConnections() + startGui() +end + +function startGui() + characterAddedConnection = Game.Players.LocalPlayer.CharacterAdded:connect(newPlayerCharacter) + + local character = Game.Players.LocalPlayer.Character + if not character then + return + end + + currentHumanoid = character:WaitForChild("Humanoid") + if not currentHumanoid then + return + end + + if not Game.StarterGui:GetCoreGuiEnabled(Enum.CoreGuiType.Health) then + return + end + + healthChangedConnection = currentHumanoid.HealthChanged:connect(UpdateGui) + humanoidDiedConnection = currentHumanoid.Died:connect(humanoidDied) + UpdateGui(currentHumanoid.Health) + + CreateGui() +end + + + +--------------------------------------------------------------------- +-- Start Script + +HealthGui = Instance.new("Frame") +HealthGui.Name = "HealthGui" +HealthGui.BackgroundTransparency = 1 +HealthGui.Size = UDim2.new(1,0,1,0) + +Game.StarterGui.CoreGuiChangedSignal:connect(function(coreGuiType,enabled) + if coreGuiType == Enum.CoreGuiType.Health or coreGuiType == Enum.CoreGuiType.All then + if guiEnabled and not enabled then + if HealthGui then + HealthGui.Parent = nil + end + disconnectPlayerConnections() + elseif not guiEnabled and enabled then + startGui() + end + + guiEnabled = enabled + end +end) + +if Game.StarterGui:GetCoreGuiEnabled(Enum.CoreGuiType.Health) then + guiEnabled = true + startGui() +end \ No newline at end of file diff --git a/assets/ugc/867 b/assets/ugc/867 new file mode 100644 index 0000000..79fc7d5 --- /dev/null +++ b/assets/ugc/867 @@ -0,0 +1,2928 @@ +--rbxassetid%867% +-- cool playerlist 4 2014L remade by Mlaofmd#8192 +-------------------- +-- Super Util +-------------------- + +local ADMINS = +{ + null= 1, + ['null 123']= 2, --any number +} + + + +local Images = { + bottomDark = '94691904', + bottomLight = '94691940', + midDark = '94691980', + midLight = '94692025', + LargeDark = '96098866', + LargeLight = '96098920', + LargeHeader = '96097470', + NormalHeader = '94692054', + LargeBottom = '96397271', + NormalBottom = '94754966', + DarkBluePopupMid = '97114905', + LightBluePopupMid = '97114905', + DarkPopupMid = '97112126', + LightPopupMid = '97109338', + DarkBluePopupTop = '97114838', + DarkBluePopupBottom = '97114758', + DarkPopupBottom = '100869219', + LightPopupBottom = '97109175', +} + +local BASE_TWEEN = .25 + +local MOUSE_HOLD_TIME = .15 +local MOUSE_DRAG_DISTANCE = 15 + +local BACKGROUND_TRANSPARENCY = 0.7 +--[[ + Generic object Create function, which I am using to create Gui's + Thanks to Stravant! +--]] +local Obj = {} +function Obj.Create(guiType) + return function(data) + local obj = Instance.new(guiType) + for k, v in pairs(data) do + if type(k) == 'number' then + v.Parent = obj + else + obj[k] = v + end + end + return obj + end +end + +--[[ + makes a full sized background for a guiobject + @Args: + imgName asset name of image to fill background + @Return: background gui object +--]] +function MakeBackgroundGuiObjOld(imgName) + return Obj.Create'ImageLabel' + { + Name = 'Background', + BackgroundTransparency = 1, + Image = imgName, + Position = UDim2.new(0, 0, 0, 0), + Size = UDim2.new(1,0,1,0), + } +end + +function MakeBackgroundGuiObj(imgName) + return Obj.Create'Frame' + { + Name = 'Background', + BackgroundTransparency = BACKGROUND_TRANSPARENCY, + BackgroundColor3 = Color3.new(0,0,0), + BorderSizePixel = 0, + Position = UDim2.new(0, 1, 0, 1), + Size = UDim2.new(1,-2,1,-2), + } +end + + +--[[ turns 255 integer color value to a color3 --]] +function Color3I(r,g,b) + return Color3.new(r/255,g/255,b/255) +end + +--[[ + Gets correct icon for builder's club status to display by name + @Args: + membershipType Enum of membership status + @Return: string of image asset +--]] +function getMembershipTypeIcon(membershipType,playerName) + if ADMINS[string.lower(playerName)]~=nil then + if ADMINS[string.lower(playerName)] == 1 then + return "rbxasset://textures/AdminIcon01.png" --u can change directory and icon, roblox url or ur url idk + elseif ADMINS[string.lower(playerName)] == 2 then + return "rbxasset://textures/AdminIcon02.png" --u can change directory and icon, roblox url or ur url idk + else + return ADMINS[string.lower(playerName)] + end + elseif membershipType == Enum.MembershipType.None then + return "" + elseif membershipType == Enum.MembershipType.BuildersClub then + return "rbxasset://textures/ui/TinyBcIcon.png" + elseif membershipType == Enum.MembershipType.TurboBuildersClub then + return "rbxasset://textures/ui/TinyTbcIcon.png" + elseif membershipType == Enum.MembershipType.OutrageousBuildersClub then + return "rbxasset://textures/ui/TinyObcIcon.png" + else + error("Unknown membershipType" .. membershipType) + end +end + +local function getFriendStatusIcon(friendStatus) + if friendStatus == Enum.FriendStatus.Unknown or friendStatus == Enum.FriendStatus.NotFriend then + return "" + elseif friendStatus == Enum.FriendStatus.Friend then + return "http://www.mete0r.xyz/asset/?id=99749771" + elseif friendStatus == Enum.FriendStatus.FriendRequestSent then + return "http://www.mete0r.xyz/asset/?id=99776888" + elseif friendStatus == Enum.FriendStatus.FriendRequestReceived then + return "http://www.mete0r.xyz/asset/?id=99776838" + else + error("Unknown FriendStatus: " .. friendStatus) + end +end + + +--[[ + Utility function to create buttons for the popup menus + @Args: + nparent what to parent this button to + ntext text to put on this button + index number index of this entry in menu + last is this the last element of the popup menu + @Return: a popup menu button +--]] +function MakePopupButton(nparent,ntext,index,last) + local tobj = Obj.Create"ImageButton" + { + Name = 'ReportButton', + BackgroundTransparency = 1, + BackgroundColor3 = Color3.new(0, 0, 0), + Position = UDim2.new(0,0,1*index,0), + Size = UDim2.new(1, 0, 1, 0), + ZIndex=7, + Obj.Create'TextLabel' + { + Name = 'ButtonText', + BackgroundTransparency = 0.6, + BackgroundColor3 = Color3.new(0, 0, 0), + Position = UDim2.new(.07, 0, .07, 0), + Size = UDim2.new(.86,0,.86,0), + Parent = HeaderFrame, + Font = 'ArialBold', + Text = ntext, + FontSize = 'Size14', + TextScaled = true, + TextColor3 = Color3.new(1,1,1), + TextStrokeTransparency = 1, + ZIndex=7, + }, + Parent = nparent, + } + + return tobj +end + + +--[[ + obligatory wait for child function + @Args: + parent Parent object to look for child in + child name of child object to look for + @Return: object waited for +--]] +function WaitForChild(parent,child) + while not parent:FindFirstChild(child) do + wait() debugprint(" child "..parent.Name.." waiting for "..child) + end + return parent[child] +end + + --------------------------- + -- Workspace Objects + --------------------------- + +-- might want to move all this to an init function, wait for localplayer elsewhere +local Players = game:GetService('Players') +-- make sure this doesn't run on the server(it will if you dont do this) +while not Players.LocalPlayer do + Players.Changed:wait() +end + +local LocalPlayer = Players.LocalPlayer +local Mouse = LocalPlayer:GetMouse() + +local ScreenGui = Obj.Create"Frame" +{ + Name = 'PlayerListScreen', + Size = UDim2.new(1, 0, 1, 0), + BackgroundTransparency = 1, + Parent = script.Parent +} +local MainFrame = Obj.Create"Frame" +{ + Name = 'LeaderBoardFrame', + Position = UDim2.new(1, -150, 0.005, 0), + Size = UDim2.new(0, 150, 0, 800), + BackgroundTransparency = 1, + Parent = ScreenGui, +} + +--frame used for expanding leaderstats when frame is 'focused' +local FocusFrame = Obj.Create"Frame" +{ + Name = 'FocusFrame', + Position = UDim2.new(0, 0, 0, 0), + Size = UDim2.new(1, 0, 0, 100), + BackgroundTransparency = 1, + Active = true, + Parent = MainFrame, +} + +local TemplateFrameYSize = 0.670000017 + + -- HEADER +local HeaderFrame = Obj.Create"Frame" +{ + Name = 'Header', + BackgroundTransparency = 1, + Position = UDim2.new(0,0,0,0), + Size = UDim2.new(1, 0, .07, 0), + Parent = MainFrame, + MakeBackgroundGuiObj('http://www.mete0r.xyz/asset/?id=94692054'), +} + local HeaderFrameHeight = HeaderFrame.Size.Y.Scale + local MaximizeButton = Obj.Create"ImageButton" + { + Name = 'MaximizeButton', + Active = true, + BackgroundTransparency = 1, + Position = UDim2.new(0, 0, 0, 0), + Size = UDim2.new(1,0,1,0), + Parent = HeaderFrame, + } + local HeaderName = Obj.Create"TextLabel" + { + Name = 'PlayerName', + BackgroundTransparency = 1, + Position = UDim2.new(0, 0, .05, 0), + Size = UDim2.new(.98,0,.38,0), + Parent = HeaderFrame, + Font = 'ArialBold', + Text = LocalPlayer.Name, + FontSize='Size24', + --TextScaled = true, + TextColor3 = Color3.new(1,1,1), + TextStrokeColor3 = Color3.new(0,0,0), + TextStrokeTransparency = 0, + TextXAlignment = 'Right', + TextYAlignment = 'Center', + } + local HeaderScore = Obj.Create"TextLabel" + { + Name = 'PlayerScore', + BackgroundTransparency = 1, + Position = UDim2.new(0, 0, .4, 0), + Size = UDim2.new(.98,0,0,30), + Parent = HeaderFrame, + Font = 'ArialBold', + Text = '', + FontSize='Size24', + TextYAlignment = 'Top', + --TextScaled = true, + TextColor3 = Color3.new(1,1,1), + TextStrokeTransparency = 1, + TextXAlignment = 'Right', + TextYAlignment = 'Top', + } + -- BOTTOM + --used for shifting bottom frame for mouse over effects +local BottomShiftFrame = Obj.Create"Frame" +{ + Name= 'BottomShiftFrame', + BackgroundTransparency = 1, + Position = UDim2.new(0,0,HeaderFrameHeight,0), + Size = UDim2.new(1,0,1,0), + Parent=MainFrame, +} + local BottomFrame = Obj.Create"Frame" + { + Name = 'Bottom', + BackgroundTransparency = 1, + Position = UDim2.new(0,0,.07,0), + Size = UDim2.new(1, 0, .03, 0), + Parent = BottomShiftFrame, + } + local ExtendButton = Obj.Create"ImageButton" + { + Name = 'bigbutton', + Active = true, + BackgroundTransparency = 1, + Position = UDim2.new(0, 0, 0, 0), + Size = UDim2.new(1,0,1.5,0), + ZIndex = 3, + Parent = BottomFrame, + } + local ExtendTab = Obj.Create"ImageButton" + { + Name = 'extendTab', + Active = true, + BackgroundTransparency = 1, + Image = 'rbxasset://textures/ui/expandPlayerList.png', + Position = UDim2.new(.608, 0, .3, 0), + Size = UDim2.new(0,27,0,11), + Parent = BottomFrame, + } +local TopClipFrame = Obj.Create"Frame" +{ + Name = 'ListFrame', + BackgroundTransparency = 1, + Position = UDim2.new(-1,0,.07,0), + Size = UDim2.new(2, 0, 1, 0), + Parent = MainFrame, + ClipsDescendants = true, +} + local BottomClipFrame = Obj.Create"Frame" + { + Name = 'BottomFrame', + BackgroundTransparency = 1, + Position = UDim2.new(0,0, - .8,0), + Size = UDim2.new(1, 0, 1, 0), + Parent = TopClipFrame, + ClipsDescendants = true, + } + local ScrollBarFrame = Obj.Create"Frame" + { + Name = 'ScrollBarFrame', + BackgroundTransparency = 1, + Position = UDim2.new(.987,0,.8,0), + Size = UDim2.new(.01, 0, .2, 0), + Parent = BottomClipFrame, + } + local ScrollBar = Obj.Create"Frame" + { + Name = 'ScrollBar', + BackgroundTransparency = 0, + BackgroundColor3 = Color3.new(.2,.2,.2), + Position = UDim2.new(0,0,0,0), + Size = UDim2.new(1, 0, .5, 0), + ZIndex = 5, + Parent = ScrollBarFrame, + + } + local ListFrame = Obj.Create"Frame" + { + Name = 'SubFrame', + BackgroundTransparency = 1, + Position = UDim2.new(0,0,.8,0), + Size = UDim2.new(1, 0, 1, 0), + Parent = BottomClipFrame, + } +local PopUpClipFrame = Obj.Create"Frame" +{ + Name = 'PopUpFrame', + BackgroundTransparency = 1, + SizeConstraint='RelativeXX', + Position = MainFrame.Position + UDim2.new( 0,-150,0,0), + Size = UDim2.new(0,150,0,800), + Parent = MainFrame, + ClipsDescendants = true, + ZIndex=7, +} +local PopUpPanel = nil + local PopUpPanelTemplate = Obj.Create"Frame" + { + Name = 'Panel', + BackgroundTransparency = 1, + Position = UDim2.new(1,0,0,0), + Size = UDim2.new(1,0,.032,0), + Parent = PopUpClipFrame, + } + +local StatTitles = Obj.Create"Frame" +{ + Name = 'StatTitles', + BackgroundTransparency = 1, + Position = UDim2.new(0,0,1,-10), + Size = UDim2.new(1, 0, 0, 0), + Parent = HeaderFrame, +} + +local IsMinimized = Instance.new('BoolValue') +local IsMaximized = Instance.new('BoolValue') +local IsTabified = Instance.new('BoolValue') +local AreNamesExpanded = Instance.new('BoolValue') + + +local MiddleTemplate = Obj.Create"Frame" +{ + Name = 'MidTemplate', + BackgroundTransparency = 1, + Position = UDim2.new(100,0,.07,0), + Size = UDim2.new(.5, 0, .025, 0),--UDim2.new(1, 0, .03, 0), + Obj.Create'ImageLabel' + { + Name = 'BCLabel', + Active = true, + BackgroundTransparency = 1, + Position = UDim2.new(.005, 5, .20, -2), + Size = UDim2.new(0,16,0,16), + SizeConstraint = 'RelativeYY', + Image = "", + ZIndex = 4, + }, + Obj.Create'ImageLabel' + { + Name = 'FriendLabel', + Active = true, + BackgroundTransparency = 1, + Position = UDim2.new(.005, 5, .15, 0), + Size = UDim2.new(0,16,0,16), + SizeConstraint = 'RelativeYY', + Image = "", + ZIndex = 4, + }, + Obj.Create"ImageButton" + { + Name = 'ClickListener', + Active = true, + BackgroundTransparency = 1, + BorderSizePixel = 0, + Position = UDim2.new(0, 1, 0, 1), + Size = UDim2.new(1, -2,1,-2), + ZIndex = 3, + }, + Obj.Create"Frame" + { + Name = 'TitleFrame', + BackgroundTransparency = 1, + Position = UDim2.new(.01, 0, 0, 0), + Size = UDim2.new(0,140,1,0), + BorderSizePixel = 0, + ClipsDescendants=true, + Obj.Create"TextLabel" + { + Name = 'Title', + BackgroundTransparency = 1, + Position = UDim2.new(0, 5, 0, 0), + Size = UDim2.new(100,0,1,0), + Font = 'Arial', + FontSize='Size14', + TextColor3 = Color3.new(1,1,1), + TextXAlignment = 'Left', + TextYAlignment = 'Center', + ZIndex = 3, + }, + }, + + Obj.Create"TextLabel" + { + Name = 'PlayerScore', + BackgroundTransparency = 1, + Position = UDim2.new(0, 0, 0, 0), + Size = UDim2.new(1,0,1,0), + Font = 'ArialBold', + Text = '', + FontSize='Size14', + TextColor3 = Color3.new(1,1,1), + TextXAlignment = 'Right', + TextYAlignment = 'Center', + ZIndex = 3, + }, + --Obj.Create'IntValue'{Name = 'ID'}, + --Obj.Create'ObjectValue'{Name = 'Player'}, + --Obj.Create'IntValue'{Name = 'Score'}, + ZIndex = 3, +} +local MiddleBGTemplate = Obj.Create"Frame" +{ + Name = 'MidBGTemplate', + BackgroundTransparency = 1, + Position = UDim2.new(100,0,.07,0), + Size = UDim2.new(.5, 0, .025, 0),--UDim2.new(1, 0, .03, 0), + MakeBackgroundGuiObj('http://www.mete0r.xyz/asset/?id=94692025'), + +} + + -- REPORT ABUSE OBJECTS + +local ReportAbuseShield = Obj.Create"TextButton" +{ + Name = "ReportAbuseShield", + Text = "", + AutoButtonColor = false, + Active = true, + Visible = true, + Size = UDim2.new(1,0,1,0), + BackgroundColor3 = Color3I(51,51,51), + BorderColor3 = Color3I(27,42,53), + BackgroundTransparency = 1, +} + +local ReportAbuseFrame = Obj.Create "Frame" +{ + Name = "Settings", + Position = UDim2.new(0.5, - 250, 0.5, - 200), + Size = UDim2.new(0.0, 500, 0.0, 400), + BackgroundTransparency = 1, + Active = true, + Parent = ReportAbuseShield, +} + +local AbuseSettingsFrame = Obj.Create"Frame" +{ + Name = "ReportAbuseStyle", + Size = UDim2.new(1, 0, 1, 0), + Active = true, + BackgroundTransparency = 1, + MakeBackgroundGuiObj('http://www.mete0r.xyz/asset/?id=96488767'), -- 96480351'), + Obj.Create"TextLabel" + { + Name = "Title", + Text = "Report Abuse", + TextColor3 = Color3I(221,221,221), + Position = UDim2.new(0.5, 0, 0, 30), + Font = Enum.Font.ArialBold, + FontSize = Enum.FontSize.Size36, + }, + Obj.Create"TextLabel" + { + Name = "Description", + Text = "This will send a complete report to a moderator. The moderator will review the chat log and take appropriate action.", + TextColor3 = Color3I(221,221,221), + Position = UDim2.new(.01, 0, 0, 55), + Size = UDim2.new(.99, 0, 0, 40), + BackgroundTransparency = 1, + Font = Enum.Font.Arial, + FontSize = Enum.FontSize.Size18, + TextWrap = true, + TextXAlignment = Enum.TextXAlignment.Left, + TextYAlignment = Enum.TextYAlignment.Top, + }, + Obj.Create"TextLabel" + { + Name = "AbuseLabel", + Text = "What did they do?", + Font = Enum.Font.Arial, + BackgroundTransparency = 1, + FontSize = Enum.FontSize.Size18, + Position = UDim2.new(0.025,0,0,140), + Size = UDim2.new(0.4,0,0,36), + TextColor3 = Color3I(255,255,255), + TextXAlignment = Enum.TextXAlignment.Left, + }, + Obj.Create"TextLabel" + { + Name = "ShortDescriptionLabel", + Text = "Short Description: (optional)", + Font = Enum.Font.Arial, + FontSize = Enum.FontSize.Size18, + Position = UDim2.new(0.025,0,0,180), + Size = UDim2.new(0.95,0,0,36), + TextColor3 = Color3I(255,255,255), + TextXAlignment = Enum.TextXAlignment.Left, + BackgroundTransparency = 1, + }, + Obj.Create"TextLabel" + { + Name = "ReportingPlayerLabel", + Text = "Reporting Player", + BackgroundTransparency = 1, + Font = Enum.Font.Arial, + FontSize = Enum.FontSize.Size18, + Position = UDim2.new(0.025,0,0,100), + Size = UDim2.new(0.95,0,0,36), + TextColor3 = Color3I(255,255,255), + TextXAlignment = Enum.TextXAlignment.Left, + Parent = AbuseSettingsFrame + }, + + Parent = ReportAbuseFrame, +} + +local AbusePlayerLabel = Obj.Create"TextLabel" +{ + Name = "PlayerLabel", + Text = "", + BackgroundTransparency = 1, + Font = Enum.Font.ArialBold, + FontSize = Enum.FontSize.Size18, + Position = UDim2.new(0.025,0,0,100), + Size = UDim2.new(0.95,0,0,36), + TextColor3 = Color3I(255,255,255), + TextXAlignment = Enum.TextXAlignment.Right, + Parent = AbuseSettingsFrame +} + +local SubmitReportButton = Obj.Create"ImageButton" +{ + Name = "SubmitReportBtn", + Active = false, + BackgroundTransparency = 1, + Position = UDim2.new(.5, - 200, 1, - 80), + Size = UDim2.new(0,150,0,50), + AutoButtonColor = false, + Image = 'http://www.mete0r.xyz/asset/?id=96502438', -- 96501119', + Parent = AbuseSettingsFrame, +} + +local CancelReportButton = Obj.Create"ImageButton" +{ + Name = "CancelBtn", + BackgroundTransparency = 1, + Position = UDim2.new(0.5, 50, 1, - 80), + Size = UDim2.new(0,150,0,50), + AutoButtonColor = true, + Image = 'http://www.mete0r.xyz/asset/?id=96500683', + Parent = AbuseSettingsFrame, +} + +local AbuseDescriptionWrapper = Obj.Create"Frame" +{ + Name = "AbuseDescriptionWrapper", + Position = UDim2.new(0.025,0,0,220), + Size = UDim2.new(0.95,0,1, - 310), + BackgroundColor3 = Color3I(0,0,0), + BorderSizePixel = 0, + Parent = AbuseSettingsFrame, +} + +local AbuseDescriptionBox + +local OriginalAbuseDescriptionBox = Obj.Create"TextBox" +{ + Name = "TextBox", + Text = "", + ClearTextOnFocus = false, + Font = Enum.Font.Arial, + FontSize = Enum.FontSize.Size18, + Position = UDim2.new(0,3,0,3), + Size = UDim2.new(1, - 6,1, - 6), + TextColor3 = Color3I(255,255,255), + TextXAlignment = Enum.TextXAlignment.Left, + TextYAlignment = Enum.TextYAlignment.Top, + TextWrap = true, + BackgroundColor3 = Color3I(0,0,0), + BorderSizePixel = 0, +} + +local CalmingAbuseBox = Obj.Create'Frame' +{ + Name = 'AbuseFeedbackBox', + BackgroundTransparency = 1, + Position=UDim2.new(0.25, 0, 0.300000012, 0), + Size=UDim2.new(0.5, 0, 0.370000005, 0), + MakeBackgroundGuiObj('http://www.mete0r.xyz/asset/?id=96506233'), + Obj.Create'TextLabel' + { + Name = 'Header', + Position=UDim2.new(0,10,.05,0), + Size=UDim2.new(1, -30, .15, 0), + TextScaled = true, + BackgroundTransparency = 1, + TextXAlignment = Enum.TextXAlignment.Center, + TextYAlignment = Enum.TextYAlignment.Top, + Text = 'Thanks for your report!', + TextColor3 = Color3.new(1,1,1), + FontSize = Enum.FontSize.Size48, + Font = 'ArialBold', + }, + Obj.Create'TextLabel' + { + Name = 'content', + Position = UDim2.new(0,10,.20,0), + Size = UDim2.new(1, -30, .40, 0), + TextScaled = true, + BackgroundTransparency = 1, + TextColor3 = Color3.new(1,1,1), + Text = 'Our moderators will review the chat logs and determine what happened. The other user is probably just trying to make you mad.\n\nIf anyone used swear words, inappropriate language, or threatened you in real life, please report them for Bad Words or Threats', + TextWrapped = true, + TextYAlignment = Enum.TextYAlignment.Top, + FontSize = Enum.FontSize.Size24, + Font = 'Arial', + }, + Obj.Create'ImageButton' + { + Name = "OkButton", + BackgroundTransparency = 1, + Position = UDim2.new(0.5, -75, 1, -80), + Size = UDim2.new(0,150,0,50), + AutoButtonColor = true, + Image = 'http://www.mete0r.xyz/asset/?id=96507959', + } +} +local NormalAbuseBox = Obj.Create'Frame' +{ + Name = 'AbuseFeedbackBox', + BackgroundTransparency = 1, + Position = UDim2.new(0.25, 0, 0.300000012, 0), + Size = UDim2.new(0.5, 0, 0.370000005, 0), + MakeBackgroundGuiObj('http://www.mete0r.xyz/asset/?id=96506233'), + Obj.Create'TextLabel' + { + Name = 'Header', + Position = UDim2.new(0,10,.05,0), + Size = UDim2.new(1, -30, .15, 0), + TextScaled = true, + BackgroundTransparency = 1, + TextColor3 = Color3.new(1,1,1), + TextXAlignment = Enum.TextXAlignment.Center, + TextYAlignment = Enum.TextYAlignment.Top, + Text = 'Thanks for your report!', + FontSize = Enum.FontSize.Size48, + Font ='ArialBold' + }, + Obj.Create'TextLabel' + { + Name = 'content', + Position = UDim2.new(0,10,.20,0), + Size = UDim2.new(1, -30, .15, 0), + TextScaled = true, + BackgroundTransparency = 1, + TextColor3 = Color3.new(1,1,1), + Text = "Our moderators will review the chat logs and determine what happened.", + TextWrapped = true, + TextYAlignment = Enum.TextYAlignment.Top, + FontSize = Enum.FontSize.Size24, + Font = 'Arial', + }, + Obj.Create'ImageButton' + { + Name = "OkButton", + BackgroundTransparency = 1, + Position = UDim2.new(0.5, -75, 1, -80), + Size = UDim2.new(0,150,0,50), + AutoButtonColor = true, + Image = 'http://www.mete0r.xyz/asset/?id=96507959', + }, +} + +local BigButton=Instance.new('ImageButton') + BigButton.Size=UDim2.new(1,0,1,0) + BigButton.BackgroundTransparency=1 + BigButton.ZIndex=8 + BigButton.Visible=false + --BigButton.Active=false + BigButton.Parent=ScreenGui + + + local debugFrame = Obj.Create"Frame" + { + Name = 'debugframe', + Position = UDim2.new(0, 0, 0, 0), + Size = UDim2.new(0, 150, 0, 800),--0.99000001 + BackgroundTransparency = 1, + + } + local debugplayers = Obj.Create"TextLabel" + { + BackgroundTransparency = .8, + Position = UDim2.new(0, 0, .01, 0), + Size = UDim2.new(1,0,.5,0), + Parent = debugFrame, + Font = 'ArialBold', + Text = '--', + FontSize='Size14', + TextWrapped=true, + TextColor3 = Color3.new(1,1,1), + TextStrokeColor3 = Color3.new(0,0,0), + TextStrokeTransparency = 0, + TextXAlignment = 'Right', + TextYAlignment = 'Center', + } + local debugOutput = Obj.Create"TextLabel" + { + BackgroundTransparency = .8, + Position = UDim2.new(0, 0, .5, 0), + Size = UDim2.new(1,0,.5,0), + Parent = debugFrame, + Font = 'ArialBold', + Text = '--', + FontSize='Size14', + TextWrapped=true, + TextColor3 = Color3.new(1,1,1), + TextStrokeColor3 = Color3.new(0,0,0), + TextStrokeTransparency = 0, + TextXAlignment = 'Right', + TextYAlignment = 'Center', + } + + +--[[ + simple function to toggle the display of debug output +--]] +local DebugPrintEnabled=true +function debugprint(str) + --print(str) + if DebugPrintEnabled then + debugOutput.Text=str + end +end + + + ------------------------- + -- Script objects + ------------------------- +local RbxGui = assert(LoadLibrary('RbxGui')) + + -- number of entries to show if you click minimize +local DefaultEntriesOnScreen = 8 + + + + + +for _,i in pairs(Images) do + Game:GetService("ContentProvider"):Preload("http://www.mete0r.xyz/asset/?id="..i) +end + + -- ordered array of 'score data', each entry has: + -- Name(String) + -- Priority(number) + -- IsPrimary (bool, should it be shown in upper right) + -- MaxLength (integer, of the length of the longest element for this column) +local ScoreNames = {} + -- prevents flipping in playerlist panels +local AddId = 0 + -- intermediate table form of all player entries in format of: + -- Frame + -- Player + -- Score + -- ID + -- MyTeam (team ENRTY(not actual team) I am currently on) +local PlayerFrames = {} + -- intermediate ordered frame array, composed of Entrys of + -- Frame + -- MyTeam (my team object) + -- MyPlayers ( an ordered array of all player frames in team ) + -- AutoHide (bool saying whether it should be hidden) + -- IsHidden (bool) + -- ID (int to prevent flipping out of leaderboard, fun times) +local TeamFrames = {} + -- one special entry from teamFrames, for unaffiliated players, only shown if players non - empty +local NeutralTeam = nil + + -- final 'to be displayed' list of frames +local MiddleFrames = {} +local MiddleFrameBackgrounds = {} +local MiddleFrameHeight = .03 + -- time of last click +local LastClick = 0 +local ButtonCooldown = .25 + +local OnIos = false +pcall(function() OnIos = Game:GetService('UserInputService').TouchEnabled end) + + + -- you get 200 of x screen space per stat added, start width 16% +local BaseScreenXSize = 150 +local SpacingPerStat = 10 --spacing between stats + + +local MaximizedBounds = UDim2.new(.5,0,1,0) +local MaximizedPosition = UDim2.new(.25,0,.1,0) +local NormalBounds = UDim2.new(0,BaseScreenXSize, 0, 800) +local NormalPosition = UDim2.new(1 , - BaseScreenXSize, 0.005, 0) + +local MinimizedBounds = UDim2.new(0, BaseScreenXSize, 0.99000001, 0) + +--free space to give last stat on the right +local RightEdgeSpace = -.04 + + -- where the scroll par currently is positioned +local ScrollPosition = 0.75999999 +local IsDragging = false -- am I dragging the player list + +local DefaultBottomClipPos = BottomClipFrame.Position.Y.Scale + +local LastSelectedPlayerEntry = nil +local SelectedPlayerEntry = nil +local SelectedPlayer = nil + + -- locks(semaphores) for stopping race conditions +local AddingFrameLock = false +local ChangingOrderLock = false +local AddingStatLock = false +local BaseUpdateLock = false +local WaitForClickLock = false +local InPopupWaitForClick=false +local PlayerChangedLock = false +local NeutralTeamLock = false + +local ScrollWheelConnections = {} + + +local DefaultListSize = 15 +if not OnIos then DefaultListSize = 24 end +local DidMinimizeDrag = false + +--local PlaceCreatorId=game.CreatorId + + -- report abuse objects +local AbuseName +local Abuses = { + "Bad Words or Threats", + "Bad Username", + "Talking about Dating", + "Account Trading or Sharing", + "Asking Personal Questions", + "Rude or Mean Behavior", + "False Reporting Me" +} +local UpdateAbuseFunction +local AbuseDropDown, UpdateAbuseSelection + +local PrivilegeLevel = +{ + Owner = 255, + Admin = 240, + Member = 128, + Visitor = 10, + Banned = 0, +} + + +local IsPersonalServer = not not game.Workspace:FindFirstChild("PSVariable") + +game.Workspace.ChildAdded:connect(function(nchild) + if nchild.Name=='PSVariable' and nchild:IsA('BoolValue') then + IsPersonalServer=true + end +end) + ------------------------------- + -- Static Functions + ------------------------------- +function GetTotalEntries() + return math.min(#MiddleFrameBackgrounds,DefaultEntriesOnScreen) +end + +function GetEntryListLength() + local numEnts=#PlayerFrames+#TeamFrames + if NeutralTeam then + numEnts=numEnts+1 + end + return numEnts +end + +function AreAllEntriesOnScreen() + return #MiddleFrameBackgrounds * MiddleTemplate.Size.Y.Scale <= 1 + DefaultBottomClipPos +end + +function GetLengthOfVisbleScroll() + return 1 + DefaultBottomClipPos +end + +function GetMaxScroll() + return DefaultBottomClipPos * - 1 +end + -- can be optimized by caching when this varible changes +function GetMinScroll() + if AreAllEntriesOnScreen() then + return GetMaxScroll() + else + return (GetMaxScroll() - (#MiddleFrameBackgrounds * MiddleTemplate.Size.Y.Scale)) + (1 + DefaultBottomClipPos) + end +end + +function AbsoluteToPercent(x,y) + return Vector2.new(x,y)/ScreenGui.AbsoluteSize +end +--[[ + tweens property of element from starta to enda over length of time + Warning: should be put in a Spawn call + @Args: + element textobject to tween transparency on + propName + starta alpha to start tweening + enda alpha to end tweening on + length how many seconds to spend tweening +--]] +function TweenProperty(obj, propName, inita, enda, length) + local startTime = tick() + while tick()-startTimenrank do + game:GetService("PersonalServerService"):Demote(player) + end +end +--[[ + called when player selects new privilege level from popup menu + @Args: + player player to set privileges on + nlevel new privilege level for this player +--]] +function OnPrivilegeLevelSelect(player,nlevel,BanPlayerButton,VisitorButton,MemberButton,AdminButton) + debugprint('setting privilege level') + SetPrivilegeRank(player,nlevel) + HighlightMyRank(player,BanPlayerButton,VisitorButton,MemberButton,AdminButton) +end + +--[[ + Highlights current rank of this player in the popup menu + @Args: + player Player to check for rank on +--]] +function HighlightMyRank(player,BanPlayerButton,VisitorButton,MemberButton,AdminButton) + BanPlayerButton.Image= 'http://www.mete0r.xyz/asset/?id='..Images['LightPopupMid'] + VisitorButton.Image= 'http://www.mete0r.xyz/asset/?id='..Images['DarkPopupMid'] + MemberButton.Image= 'http://www.mete0r.xyz/asset/?id='..Images['LightPopupMid'] + AdminButton.Image= 'http://www.mete0r.xyz/asset/?id='..Images['DarkPopupBottom'] + + local rank=player.PersonalServerRank + if rank <= PrivilegeLevel['Banned'] then + BanPlayerButton.Image='http://www.mete0r.xyz/asset/?id='..Images['LightBluePopupMid'] + elseif rank <= PrivilegeLevel['Visitor'] then + VisitorButton.Image='http://www.mete0r.xyz/asset/?id='..Images['DarkBluePopupMid'] + elseif rank <= PrivilegeLevel['Member'] then + MemberButton.Image='http://www.mete0r.xyz/asset/?id='..Images['LightBluePopupMid'] + elseif rank <= PrivilegeLevel['Admin'] then + AdminButton.Image= 'http://www.mete0r.xyz/asset/?id='..Images['DarkBluePopupBottom'] + end +end + + -------------------------- + -- Report abuse handling + -------------------------- +--[[ + does final reporting of abuse on selected player, calls closeAbuseDialog +--]] +function OnSubmitAbuse() + if SubmitReportButton.Active then + if AbuseName and SelectedPlayer then + AbuseSettingsFrame.Visible = false + game.Players:ReportAbuse(SelectedPlayer, AbuseName, AbuseDescriptionBox.Text) + if AbuseName == "Rude or Mean Behavior" or AbuseName == "False Reporting Me" then + CalmingAbuseBox.Parent = ReportAbuseShield + else + debugprint('opening abuse box') + NormalAbuseBox.Parent = ReportAbuseShield + end + else + CloseAbuseDialog() + end + end +end + +--[[ + opens the abuse dialog, initialises text to display selectedplayer +--]] +function OpenAbuseDialog() + debugprint('adding report dialog') + AbusePlayerLabel.Text = SelectedPlayer.Name + --AbuseDescriptionBox.Text = "" + PopUpPanel:TweenPosition(UDim2.new(1,0,0,0), "Out", "Linear", BASE_TWEEN,true) + AbuseDescriptionBox=OriginalAbuseDescriptionBox:Clone() + AbuseDescriptionBox.Parent = AbuseDescriptionWrapper + ReportAbuseShield.Parent = ScreenGui + ClosePopUpPanel() +end +--[[ + resets and closes abuse dialog +--]] +function CloseAbuseDialog() + AbuseName = nil + SubmitReportButton.Active = false + SubmitReportButton.Image = 'http://www.mete0r.xyz/asset/?id=96502438' -- 96501119', + AbuseDescriptionBox:Destroy() + CalmingAbuseBox.Parent = nil + NormalAbuseBox.Parent = nil + ReportAbuseShield.Parent = nil + AbuseSettingsFrame.Visible = true +end + +--[[ + creates dropdownbox, registers all listeners for abuse dialog +--]] +function InitReportAbuse() + + UpdateAbuseFunction = function(abuseText) + AbuseName = abuseText + if AbuseName and SelectedPlayer then + SubmitReportButton.Active = true + SubmitReportButton.Image = 'http://www.mete0r.xyz/asset/?id=96501119' + end + end + + AbuseDropDown, UpdateAbuseSelection = RbxGui.CreateDropDownMenu(Abuses, UpdateAbuseFunction, true) + AbuseDropDown.Name = "AbuseComboBox" + AbuseDropDown.Position = UDim2.new(0.425, 0, 0, 142) + AbuseDropDown.Size = UDim2.new(0.55,0,0,32) + AbuseDropDown.Parent = AbuseSettingsFrame + + + CancelReportButton.MouseButton1Click:connect(CloseAbuseDialog) + SubmitReportButton.MouseButton1Click:connect(OnSubmitAbuse) + + CalmingAbuseBox:FindFirstChild('OkButton').MouseButton1Down:connect(CloseAbuseDialog) + NormalAbuseBox:FindFirstChild('OkButton').MouseButton1Down:connect(CloseAbuseDialog) +end + +------------------------------------- +-- Friend/unfriending +------------------------------------- +--[[ + gets enum val of friend status, uses pcall for some reason?(from old playerlist) + @Args: + player player object to check if friends with + @Return: enum of friend status +--]] +local function GetFriendStatus(player) + if player == game.Players.LocalPlayer then + return Enum.FriendStatus.NotFriend + else + local success, result = pcall(function() return game.Players.LocalPlayer:GetFriendStatus(player) end) + if success then + return result + else + return Enum.FriendStatus.NotFriend + end + end +end + +--[[ + when friend button is clicked, tries to take appropriate action, + based on current friend status with SelectedPlayer +--]] +function OnFriendButtonSelect() + + local friendStatus=GetFriendStatus(SelectedPlayer) + if friendStatus==Enum.FriendStatus.Friend then + LocalPlayer:RevokeFriendship(SelectedPlayer) + elseif friendStatus==Enum.FriendStatus.Unknown or friendStatus==Enum.FriendStatus.NotFriend then + LocalPlayer:RequestFriendship(SelectedPlayer) + elseif friendStatus==Enum.FriendStatus.FriendRequestSent then + LocalPlayer:RevokeFriendship(SelectedPlayer) + elseif friendStatus==Enum.FriendStatus.FriendRequestReceived then + LocalPlayer:RequestFriendship(SelectedPlayer) + end + --PersonalServerPanel:TweenPosition(UDim2.new(1,0,0,0), "Out", "Quad", .5,true) + ClosePopUpPanel() + --PopUpPanel:TweenPosition(UDim2.new(1,0,0,0), "Out", "Linear", BASE_TWEEN,true) +end + +function OnFriendRefuseButtonSelect() + + + LocalPlayer:RevokeFriendship(SelectedPlayer) + ClosePopUpPanel() + PopUpPanel:TweenPosition(UDim2.new(1,0,0,0), "Out", "Linear", BASE_TWEEN,true) +end +------------------------------------ +-- Player Entry Handling +------------------------------------ +--[[ + used by lua's table.sort to sort player entries +--]] +function PlayerSortFunction(a,b) + -- prevents flipping out leaderboard + if a['Score'] == b['Score'] then + return a['Player'].Name:upper() > b['Player'].Name:upper() + end + if not a['Score'] then return false end + if not b['Score'] then return true end + return a['Score'] < b['Score'] +end + + --------------------------------- + -- Stat Handling + --------------------------------- + -- removes and closes all leaderboard stuffs +function BlowThisPopsicleStand() + --ScreenGui:Destroy() + --script:Destroy() + --time to make the fanboys rage... + Tabify() +end +--[[ + used by lua's table.sort to prioritize score entries +--]] +function StatSort(a,b) + -- primary stats should be shown before all others + if a.IsPrimary ~= b.IsPrimary then + return a.IsPrimary + end + -- if priorities are equal, then return the first added one + if a.Priority == b.Priority then + return a.AddId < b.AddId + end + return a.Priority < b.Priority +end +--[[ + doing WAAY too much here, for optimization update only your team + @Args: + playerEntry Entry of player who had a stat change + property Name of stat changed +--]] +function StatChanged(playerEntry,property) + + -- if(playerEntry['MyTeam']) then + -- UpdateSingleTeam(playerEntry['MyTeam']) + -- else + BaseUpdate() + -- end +end +--[[ + Called when stat is added + if playerEntry is localplayer, will add to score names and re-sort the stats, and resize the width of the leaderboard + for all players, will add a listener for if this stat changes + if stat is a string value, crashes the leaderboard + Note:change crash to a 'tabify' leaderboard later + @Args: + nchild new child value to leaderstats + playerEntry entry this stat was added to +--]] +function StatAdded(nchild,playerEntry) + -- dont re - add a leaderstat I alreday have + while AddingStatLock do debugprint('in stat added function lock') wait(1/30) end + AddingStatLock = true + if not (nchild:IsA('StringValue') or nchild:IsA('IntValue') or nchild:IsA('BoolValue') or nchild:IsA('NumberValue') or nchild:IsA('DoubleConstrainedValue') or nchild:IsA('IntConstrainedValue')) then + BlowThisPopsicleStand() + else + local haveScore = false + for _,i in pairs(ScoreNames) do + if i['Name']==nchild.Name then haveScore=true end + end + if not haveScore then + local nstat = {} + nstat['Name'] = nchild.Name + nstat['Priority'] = 0 + if(nchild:FindFirstChild('Priority')) then + nstat['Priority'] = nchild.Priority + end + nstat['IsPrimary'] = false + if(nchild:FindFirstChild('IsPrimary')) then + nstat['IsPrimary'] = true + end + nstat.AddId = AddId + AddId = AddId + 1 + table.insert(ScoreNames,nstat) + table.sort(ScoreNames,StatSort) + if not StatTitles:FindFirstChild(nstat['Name']) then + CreateStatTitle(nstat['Name']) + end + UpdateMaximize() + + end + end + AddingStatLock = false + StatChanged(playerEntry) + nchild.Changed:connect(function(property) StatChanged(playerEntry,property) end) + + +end +--returns whether any of the existing players has this stat +function DoesStatExist(statName, exception) + for _,playerf in pairs(PlayerFrames) do + if playerf['Player'] ~= exception and playerf['Player']:FindFirstChild('leaderstats') and playerf['Player'].leaderstats:FindFirstChild(statName) then + --print('player:' .. playerf['Player'].Name ..' has stat') + return true + end + end + return false +end + + + +--[[ + Called when stat is removed from player + for all players, destroys the stat frame associated with this value, + then calls statchanged(to resize frame) + if playerEntry==localplayer, will remove from scorenames + @Args: + nchild ___value to be removed + playerEntry entry of player value is being removed from +--]] +function StatRemoved(nchild,playerEntry) + while AddingStatLock do debugprint('In Adding Stat Lock1') wait(1/30) end + AddingStatLock = true + if playerEntry['Frame']:FindFirstChild(nchild.Name) then + debugprint('Destroyed frame!') + playerEntry['Frame'][nchild.Name].Parent = nil + end + if not DoesStatExist(nchild.Name, playerEntry['Player']) then + for i,val in ipairs(ScoreNames) do + if val['Name'] == nchild.Name then + table.remove(ScoreNames,i) + if StatTitles:FindFirstChild(nchild.Name) then + StatTitles[nchild.Name]:Destroy() + end + for _,teamf in pairs(TeamFrames) do + if teamf['Frame']:FindFirstChild(nchild.Name) then + teamf['Frame'][nchild.Name]:Destroy() + end + end + end + end + end + AddingStatLock = false + StatChanged(playerEntry) +end +--[[ + clears all stats from a given playerEntry + used when leaderstats are removed, or when new leaderstats are added(for weird edge case)+ +--]] +function RemoveAllStats(playerEntry) + for i,val in ipairs(ScoreNames) do + StatRemoved(val,playerEntry) + end + +end + + +function GetScoreValue(score) + if score:IsA('DoubleConstrainedValue') or score:IsA('IntConstrainedValue') then + return score.ConstrainedValue + elseif score:IsA('BoolValue') then + if score.Value then return 1 else return 0 end + else + return score.Value + end +end +--[[ + +--]] +function MakeScoreEntry(entry,scoreval,panel) + if not panel:FindFirstChild('PlayerScore') then return end + local nscoretxt = panel:FindFirstChild('PlayerScore'):Clone() + local thisScore = nil + --here lies the resting place of a once great and terrible bug + --may its treachery never be forgoten, lest its survivors fall for it again + --RIP the leaderstat bug, oct 2012-nov 2012 + wait() + if entry['Player']:FindFirstChild('leaderstats') and entry['Player'].leaderstats:FindFirstChild(scoreval['Name']) then + thisScore = entry['Player']:FindFirstChild('leaderstats'):FindFirstChild(scoreval['Name']) + else + return + end + + if not entry['Player'].Parent then return end + + nscoretxt.Name = scoreval['Name'] + nscoretxt.Text = tostring(GetScoreValue(thisScore)) + if scoreval['Name'] == ScoreNames[1]['Name'] then + debugprint('changing score') + entry['Score'] = GetScoreValue(thisScore) + if entry['Player'] == LocalPlayer then HeaderScore.Text = tostring(GetScoreValue(thisScore)) end + end + + thisScore.Changed:connect(function() + if not thisScore.Parent then return end + if scoreval['Name'] == ScoreNames[1]['Name'] then + + entry['Score'] = GetScoreValue(thisScore) + if entry['Player'] == LocalPlayer then HeaderScore.Text = tostring(GetScoreValue(thisScore)) end + end + nscoretxt.Text = tostring(GetScoreValue(thisScore)) + BaseUpdate() + end) + return nscoretxt + +end + +function CreateStatTitle(statName) + + local ntitle = MiddleTemplate:FindFirstChild('PlayerScore'):Clone() + ntitle.Name = statName + ntitle.Text = statName + -- ntitle + if IsMaximized.Value then + ntitle.TextTransparency = 0 + else + ntitle.TextTransparency = 1 + end + ntitle.Parent = StatTitles +end + +function RecreateScoreColumns(ptable) + while AddingStatLock do debugprint ('In Adding Stat Lock2') wait(1/30) end + AddingStatLock = true + local Xoffset=5--15 --current offset from Right + local maxXOffset=Xoffset + local MaxSizeColumn=0 --max size for this column + + -- foreach known leaderstat + for j = #ScoreNames, 1,-1 do + local scoreval = ScoreNames[j] + + MaxSizeColumn=0 + -- for each entry in this player table + for i,entry in ipairs(ptable) do + local panel = entry['Frame'] + local tplayer = entry['Player'] + -- if this panel does not have an element named after this stat + if not panel:FindFirstChild(scoreval['Name']) then + -- make an entry for this object + local nentry = MakeScoreEntry(entry,scoreval,panel) + if nentry then + debugprint('adding '..nentry.Name..' to '..entry['Player'].Name ) + nentry.Parent = panel + -- add score to team + if entry['MyTeam'] and entry['MyTeam'] ~= NeutralTeam and not entry['MyTeam']['Frame']:FindFirstChild(scoreval['Name']) then + local ntitle = nentry:Clone() + --ntitle.TextXAlignment = 'Right' + ntitle.Parent = entry['MyTeam']['Frame'] + end + + end + end + scoreval['XOffset']=Xoffset + + if panel:FindFirstChild(scoreval['Name']) then + MaxSizeColumn=math.max(MaxSizeColumn,panel[scoreval['Name']].TextBounds.X) + end + end + + if AreNamesExpanded.Value then + MaxSizeColumn=math.max(MaxSizeColumn,StatTitles[scoreval['Name'] ].TextBounds.X) + StatTitles[scoreval['Name'] ]:TweenPosition(UDim2.new(RightEdgeSpace,-Xoffset,0,0),'Out','Linear',BASE_TWEEN,true) + else + StatTitles[scoreval['Name'] ]:TweenPosition(UDim2.new((.4+((.6/#ScoreNames)*(j-1)))-1,0,0,0),'Out','Linear',BASE_TWEEN,true) + end + scoreval['ColumnSize']=MaxSizeColumn + Xoffset= Xoffset+SpacingPerStat+MaxSizeColumn + maxXOffset=math.max(Xoffset,maxXOffset) + end + NormalBounds = UDim2.new(0, BaseScreenXSize+maxXOffset-SpacingPerStat,0,800) + NormalPosition = UDim2.new(1 , -NormalBounds.X.Offset, NormalPosition.Y.Scale, 0) + UpdateHeaderNameSize() + UpdateMaximize() + + AddingStatLock = false +end + --------------------------- + -- Minimizing and maximizing + --------------------------- + +function ToggleMinimize() + IsMinimized.Value = not IsMinimized.Value + UpdateStatNames() +end + +function ToggleMaximize() + IsMaximized.Value = not IsMaximized.Value + RecreateScoreColumns(PlayerFrames) --done to re-position stat names NOTE: optimize-able +end + +function Tabify() + IsTabified.Value= true + IsMaximized.Value=false + IsMinimized.Value=true + UpdateMinimize() + IsTabified.Value= true + ScreenGui:TweenPosition(UDim2.new(NormalBounds.X.Scale, NormalBounds.X.Offset-10, 0,0),'Out','Linear',BASE_TWEEN*1.2,true) +end + +function UnTabify() + if IsTabified.Value then + IsTabified.Value= false + ScreenGui:TweenPosition(UDim2.new(0, 0, 0,0),'Out','Linear',BASE_TWEEN*1.2,true) + end +end + +--[[ + Does more than it looks like + monitors positions of the clipping frames and bottom frames + called from EVERYWHERE, too much probably +--]] +function UpdateMinimize() + + if IsMinimized.Value then + if IsMaximized.Value then + ToggleMaximize() + end + if not IsTabified.Value then + MainFrame.Size = UDim2.new(0.010, HeaderName.TextBounds.X, NormalBounds.Y.Scale,NormalBounds.Y.Offset) + MainFrame.Position = UDim2.new(.990, -HeaderName.TextBounds.X, NormalPosition.Y.Scale,0) + else + MainFrame.Size = NormalBounds + MainFrame.Position = NormalPosition + end + --(#MiddleFrameBackgrounds*MiddleBGTemplate.Size.Y.Scale) + BottomClipFrame.Position = UDim2.new(0,0,-1,0) + BottomFrame.Position = UDim2.new(0,0,0,0) + FocusFrame.Size=UDim2.new(1,0,HeaderFrameHeight,0) + ExtendTab.Image = 'rbxasset://textures/ui/expandPlayerList.png' + else + if not IsMaximized.Value then + MainFrame.Size = NormalBounds + MainFrame.Position = NormalPosition + end + --do limiting + DefaultBottomClipPos = math.min(math.max(DefaultBottomClipPos,-1),-1+(#MiddleFrameBackgrounds*MiddleBGTemplate.Size.Y.Scale)) + UpdateScrollPosition() + + BottomClipFrame.Position=UDim2.new(0,0,DefaultBottomClipPos,0) + local bottomPositon = (DefaultBottomClipPos+BottomClipFrame.Size.Y.Scale) + BottomFrame.Position=UDim2.new(0,0,bottomPositon,0) + FocusFrame.Size=UDim2.new(1,0,bottomPositon + HeaderFrameHeight,0) + ExtendTab.Image = 'rbxasset://textures/ui/expandPlayerList.png' + end +end + +--[[ + Manages the position/size of the mainFrame, swaps out different resolution images for the frame + fades in and out the stat names, moves position of headername and header score +--]] +function UpdateMaximize() + if IsMaximized.Value then + for j = 1, #ScoreNames,1 do + local scoreval = ScoreNames[j] + StatTitles[scoreval['Name'] ]:TweenPosition(UDim2.new(.4+((.6/#ScoreNames)*(j-1))-1,0,0,0),'Out','Linear',BASE_TWEEN,true) + end + + if IsMinimized.Value then + ToggleMinimize() + else + UpdateMinimize() + end + + + MainFrame:TweenSizeAndPosition(MaximizedBounds,MaximizedPosition,'Out','Linear',BASE_TWEEN*1.2,true) + HeaderScore:TweenPosition(UDim2.new(0,0,HeaderName.Position.Y.Scale,0), "Out", "Linear", BASE_TWEEN*1.2,true) + HeaderName:TweenPosition(UDim2.new( - .1, - HeaderScore.TextBounds.x,HeaderName.Position.Y.Scale,0), "Out", "Linear", BASE_TWEEN*1.2,true) + for index, i in ipairs(MiddleFrames) do + + if i:FindFirstChild('ClickListener') then + i.ClickListener.Size = UDim2.new(1,-2,i.ClickListener.Size.Y.Scale, i.ClickListener.Size.Y.Offset) + end + + for j=1, #ScoreNames,1 do + local scoreval = ScoreNames[j] + if i:FindFirstChild(scoreval['Name']) then + i[scoreval['Name']]:TweenPosition(UDim2.new(.4+((.6/#ScoreNames)*(j-1))-1,0,0,0), "Out", "Linear", BASE_TWEEN,true) + end + end + end + for i,entry in ipairs(PlayerFrames) do + WaitForChild(entry['Frame'],'TitleFrame').Size=UDim2.new(.38,0,entry['Frame'].TitleFrame.Size.Y.Scale,0) + end + + for i,entry in ipairs(TeamFrames) do + WaitForChild(entry['Frame'],'TitleFrame').Size=UDim2.new(.38,0,entry['Frame'].TitleFrame.Size.Y.Scale,0) + end + + else + if not IsMinimized.Value then + MainFrame:TweenSizeAndPosition(NormalBounds,NormalPosition,'Out','Linear',BASE_TWEEN*1.2,true) + end + HeaderScore:TweenPosition(UDim2.new(0,0,.4,0), "Out", "Linear", BASE_TWEEN*1.2,true) + HeaderName:TweenPosition(UDim2.new(0,0,HeaderName.Position.Y.Scale,0), "Out", "Linear", BASE_TWEEN*1.2,true) + for index, i in ipairs(MiddleFrames) do + if i:FindFirstChild('ClickListener') then + i.ClickListener.Size = UDim2.new(1, -2,i.ClickListener.Size.Y.Scale, i.ClickListener.Size.Y.Offset) + for j=1, #ScoreNames,1 do + local scoreval = ScoreNames[j] + if i:FindFirstChild(scoreval['Name']) and scoreval['XOffset'] then + --print('updateing stat position: ' .. scoreval['Name']) + i[scoreval['Name']]:TweenPosition(UDim2.new(RightEdgeSpace,-scoreval['XOffset'],0,0), "Out", "Linear", BASE_TWEEN,true) + end + end + end + end + + for i,entry in ipairs(TeamFrames) do + WaitForChild(entry['Frame'],'TitleFrame').Size=UDim2.new(0,BaseScreenXSize*.9,entry['Frame'].TitleFrame.Size.Y.Scale,0) + + end + for i,entry in ipairs(PlayerFrames) do + WaitForChild(entry['Frame'],'TitleFrame').Size=UDim2.new(0,BaseScreenXSize*.9,entry['Frame'].TitleFrame.Size.Y.Scale,0) + end + end +end + +function UpdateStatNames() + if not AreNamesExpanded.Value or IsMinimized.Value then + CloseNames() + else + ExpandNames() + end +end + +function ExpandNames() + if #ScoreNames ~= 0 then + for _,i in pairs(StatTitles:GetChildren()) do + Spawn(function()TweenProperty(i,'TextTransparency',i.TextTransparency,0,BASE_TWEEN) end) + end + HeaderFrameHeight=.09 + --as of writing, this and 'CloseNames' are the only places headerframe is resized + HeaderFrame:TweenSizeAndPosition(UDim2.new(HeaderFrame.Size.X.Scale, HeaderFrame.Size.X.Offset, HeaderFrameHeight,0), + HeaderFrame.Position,'Out','Linear',BASE_TWEEN*1.2,true) + TopClipFrame:TweenPosition(UDim2.new(TopClipFrame.Position.X.Scale,0,HeaderFrameHeight,0),'Out','Linear',BASE_TWEEN*1.2,true) + BottomShiftFrame:TweenPosition(UDim2.new(0,0,HeaderFrameHeight,0), "Out", 'Linear', BASE_TWEEN*1.2,true) + + end + +end + +function CloseNames() + if #ScoreNames ~= 0 then + HeaderFrameHeight=.07 + if not (IsMaximized.Value) then + for _,i in pairs(StatTitles:GetChildren()) do + Spawn(function()TweenProperty(i,'TextTransparency',i.TextTransparency,1,BASE_TWEEN) end) + end + end + BottomShiftFrame:TweenPosition(UDim2.new(0,0,HeaderFrameHeight,0), "Out", 'Linear', BASE_TWEEN*1.2,true) + HeaderFrame:TweenSizeAndPosition(UDim2.new(HeaderFrame.Size.X.Scale, HeaderFrame.Size.X.Offset, HeaderFrameHeight,0), + HeaderFrame.Position,'Out','Linear',BASE_TWEEN*1.2,true) + TopClipFrame:TweenPosition(UDim2.new(TopClipFrame.Position.X.Scale,0,HeaderFrameHeight,0),'Out','Linear',BASE_TWEEN*1.2,true) + end +end + +function OnScrollWheelMove(direction) + if not (IsTabified.Value or IsMinimized.Value or InPopupWaitForClick) then + local StartFrame = ListFrame.Position + local newFrameY = math.max(math.min(StartFrame.Y.Scale + (direction),GetMaxScroll()),GetMinScroll()) + + ListFrame.Position = UDim2.new(StartFrame.X.Scale,StartFrame.X.Offset,newFrameY,StartFrame.Y.Offset) + UpdateScrollPosition() + end +end + +function AttachScrollWheel() + if ScrollWheelConnections then return end + ScrollWheelConnections = {} + table.insert(ScrollWheelConnections,Mouse.WheelForward:connect(function() + OnScrollWheelMove(.05) + end)) + table.insert(ScrollWheelConnections,Mouse.WheelBackward:connect(function() + OnScrollWheelMove(-.05) + end)) +end + +function DetachScrollWheel() + if ScrollWheelConnections then + for _,i in pairs(ScrollWheelConnections) do + i:disconnect() + end + end + ScrollWheelConnections=nil +end + +FocusFrame.MouseEnter:connect(function() + if not (IsMinimized.Value or IsTabified.Value) then + AttachScrollWheel() + end +end) +FocusFrame.MouseLeave:connect(function() + --if not (IsMaximized.Value or IsMinimized.Value) then + DetachScrollWheel() + --end +end) + + ------------------------ + -- Scroll Bar functions + ------------------------ +--[[ + updates whether the scroll bar should be showing, if it is showing, updates + the size of it +--]] +function UpdateScrollBarVisibility() + if AreAllEntriesOnScreen() then + ScrollBar.BackgroundTransparency = 1 + else + ScrollBar.BackgroundTransparency = 0 + UpdateScrollBarSize() + end +end +--[[ + updates size of scrollbar depending on how many entries exist +--]] +function UpdateScrollBarSize() + local entryListSize = #MiddleFrameBackgrounds * MiddleTemplate.Size.Y.Scale + local shownAreaSize = ((BottomClipFrame.Position.Y.Scale) + 1) + ScrollBar.Size = UDim2.new(1,0,shownAreaSize/entryListSize,0) + +end +--[[ + updates position of listframe so that no gaps at the bottom or top of the list are visible + updates position of scrollbar to match what parts of the list are visible +--]] +function UpdateScrollPosition() + local minPos = GetMinScroll() + local maxPos = GetMaxScroll() + local scrollLength = maxPos - minPos + + local yscrollpos=math.max(math.min(ListFrame.Position.Y.Scale,maxPos),minPos) + ListFrame.Position=UDim2.new(ListFrame.Position.X.Scale,ListFrame.Position.X.Offset,yscrollpos,ListFrame.Position.Y.Offset) + + local adjustedLength = 1 - ScrollBar.Size.Y.Scale + ScrollBar.Position = UDim2.new(0,0,adjustedLength - (adjustedLength * ((ListFrame.Position.Y.Scale - minPos)/scrollLength)),0) +end + +--[[ + WARNING:this is in a working state, but uses massive hacks + revize when global input is available + Manages scrolling of the playerlist on mouse drag +--]] +function StartDrag(entry,startx,starty) + local startDragTime = tick() + local stopDrag = false + local openPanel = true + local draggedFrame = WaitForChild(entry['Frame'],'ClickListener') + local function dragExit() + stopDrag = true + + if entry['Player'] and SelectedPlayer and openPanel + and (entry['Player']~=LocalPlayer and (SelectedPlayer.userId>1 and LocalPlayer.userId>1)) then + ActivatePlayerEntryPanel(entry) + end + end + local startY = nil + local StartFrame = ListFrame.Position + local function dragpoll(nx,ny) + if not startY then + startY = AbsoluteToPercent(nx,ny).Y + end + local nowY = AbsoluteToPercent(nx,ny).Y + debugprint('drag dist:'..Vector2.new(startx-nx,starty-ny).magnitude) + if Vector2.new(startx-nx,starty-ny).magnitude>MOUSE_DRAG_DISTANCE then + openPanel=false + end + + local newFrameY = math.max(math.min(StartFrame.Y.Scale + (nowY - startY),GetMaxScroll()),GetMinScroll()) + ListFrame.Position = UDim2.new(StartFrame.X.Scale,StartFrame.X.Offset,newFrameY,StartFrame.Y.Offset) + UpdateScrollPosition() + end + WaitForClick(ScreenGui,dragpoll,dragExit) +end + + +function StartMinimizeDrag() + Delay(0,function() + local startTime=tick() + debugprint('Got Click2') + local stopDrag = false + local function dragExit() + --debugprint('undone click2') + if tick()-startTime<.25 then --was click + ToggleMinimize() + else --was drag + if (DefaultBottomClipPos >= -1+(#MiddleFrameBackgrounds*MiddleBGTemplate.Size.Y.Scale)) then + DidMinimizeDrag = false + else + DidMinimizeDrag = true + end + if IsMinimized.Value then + ToggleMinimize() + end + end + stopDrag = true + end + local startY = nil + local StartFrame = DefaultBottomClipPos + local function dragpoll(nx,ny) + if not IsMinimized.Value then + + if not startY then + startY = AbsoluteToPercent(nx,ny).Y + end + local nowY = AbsoluteToPercent(nx,ny).Y + local newFrameY + newFrameY = math.min(math.max(StartFrame + (nowY - startY),-1),-1+(#MiddleFrameBackgrounds*MiddleBGTemplate.Size.Y.Scale)) + DefaultBottomClipPos = newFrameY + UpdateMinimize() + ScrollBarFrame.Size= UDim2.new(ScrollBarFrame.Size.X.Scale,0,(DefaultBottomClipPos+BottomClipFrame.Size.Y.Scale),0) + ScrollBarFrame.Position= UDim2.new(ScrollBarFrame.Position.X.Scale,0,1-ScrollBarFrame.Size.Y.Scale,0) + UpdateScrollBarSize() + UpdateScrollPosition() + UpdateScrollBarVisibility() + + end + end + Spawn(function() WaitForClick(ScreenGui,dragpoll,dragExit) end) + end) + +end + + ------------------------------- + -- Input Callback functions + ------------------------------- +IsMaximized.Value=false +IsMinimized.Value=false +IsMaximized.Changed:connect(UpdateMaximize) +IsMinimized.Changed:connect(UpdateMinimize) + +ExtendButton.MouseButton1Down:connect(function() + if(time() - LastClick < ButtonCooldown) or InPopupWaitForClick then return end + LastClick = time() + if IsTabified.Value then + UnTabify() + else + StartMinimizeDrag() + end +end) + +MaximizeButton.MouseButton1Click:connect(function() + if(time() - LastClick < ButtonCooldown) or InPopupWaitForClick then return end + LastClick = time() + if IsTabified.Value then + UnTabify() + elseif not AreNamesExpanded.Value then + AreNamesExpanded.Value = true + BaseUpdate() + else + ToggleMaximize() + end +end) + +MaximizeButton.MouseButton2Click:connect(function() + if(time() - LastClick < ButtonCooldown) or InPopupWaitForClick then return end + LastClick = time() + if IsTabified.Value then + UnTabify() + elseif IsMaximized.Value then + ToggleMaximize() + elseif AreNamesExpanded.Value then + AreNamesExpanded.Value = false + BaseUpdate() + else + Tabify() + end +end) + + +------------------------------- +-- MiddleFrames management +------------------------------- +--[[ + adds a background frame to the listframe +--]] +function AddMiddleBGFrame() + local nBGFrame = MiddleBGTemplate:Clone() + nBGFrame.Position = UDim2.new(.5,0,((#MiddleFrameBackgrounds) * nBGFrame.Size.Y.Scale),0) + nBGFrame.Background.BackgroundTransparency = 1 + + nBGFrame.Parent = ListFrame + table.insert(MiddleFrameBackgrounds,nBGFrame) + + if #MiddleFrameBackgrounds 1 do + fSize=fSize-1 + tHeader.FontSize=FONT_SIZES[fSize] + wait(.2) + end + HeaderName.FontSize=tHeader.FontSize + tHeader:Destroy() + end) +end +ScreenGui.Changed:connect(UpdateHeaderNameSize) + +--[[ + called only when the leaderstats object is added to a given player entry + removes old stats, adds any existing stats, and sets up listeners for new stats + @Args: + playerEntry A reference to the ENTRY(table) of the player who had leaderstats added +--]] +function LeaderstatsAdded(playerEntry) + --RemoveAllStats(playerEntry) + local nplayer = playerEntry['Player'] + for _,i in pairs(nplayer.leaderstats:GetChildren()) do + StatAdded(i,playerEntry) + end + nplayer.leaderstats.ChildAdded:connect(function(nchild) StatAdded(nchild,playerEntry) end) + nplayer.leaderstats.ChildRemoved:connect(function(nchild) StatRemoved(nchild,playerEntry) end) +end +--[[ + called when leaderstats object is removed from play in player entry + Note: may not be needed, might be able to just rely on leaderstats added + @Args: + oldLeaderstats leaderstats object to be removed + playerEntry A reference to the ENTRY(table) of the player +--]] +function LeaderstatsRemoved(oldLeaderstats,playerEntry) + while AddingFrameLock do debugprint('waiting to insert '..playerEntry['Player'].Name) wait(1/30) end + AddingFrameLock = true + RemoveAllStats(playerEntry) + AddingFrameLock = false +end + +function ClosePopUpPanel() + if SelectedPlayerEntry then + local tframe = SelectedPlayerEntry['Frame'] + Spawn(function() TweenProperty(tframe,'BackgroundTransparency',.5,1,BASE_TWEEN) end) + end + PopUpPanel:TweenPosition(UDim2.new(1,0,0,0), "Out", "Linear", BASE_TWEEN,true) + wait(.1) + InPopupWaitForClick= false + SelectedPlayerEntry = nil +end + +--[[ + prepares the needed popup to be tweened on screen, and updates the position of the popup clip + frame to match the selected player frame's position +--]] +function InitMovingPanel( entry, player) + PopUpClipFrame.Parent= ScreenGui + + if PopUpPanel then + PopUpPanel:Destroy() + end + PopUpPanel= PopUpPanelTemplate:Clone() + PopUpPanel.Parent= PopUpClipFrame + + local nextIndex = 2 + local friendStatus = GetFriendStatus(player) + debugprint (tostring(friendStatus)) + local showRankMenu = IsPersonalServer and LocalPlayer.PersonalServerRank >= PrivilegeLevel['Admin'] and LocalPlayer.PersonalServerRank > SelectedPlayer.PersonalServerRank + + + local ReportPlayerButton = MakePopupButton(PopUpPanel,'Report Player',0) + ReportPlayerButton.MouseButton1Click:connect(function() OpenAbuseDialog() end) + + local enableFriendRequests = true + + if enableFriendRequests then + local FriendPlayerButton = MakePopupButton(PopUpPanel,'Friend',1, not showRankMenu and friendStatus~=Enum.FriendStatus.FriendRequestReceived) + FriendPlayerButton.MouseButton1Click:connect(OnFriendButtonSelect) + + + if friendStatus==Enum.FriendStatus.Friend then + FriendPlayerButton:FindFirstChild('ButtonText').Text='UnFriend Player' + elseif friendStatus==Enum.FriendStatus.Unknown or friendStatus==Enum.FriendStatus.NotFriend then + FriendPlayerButton:FindFirstChild('ButtonText').Text='Send Request' + elseif friendStatus==Enum.FriendStatus.FriendRequestSent then + FriendPlayerButton:FindFirstChild('ButtonText').Text='Revoke Request' + elseif friendStatus==Enum.FriendStatus.FriendRequestReceived then + FriendPlayerButton:FindFirstChild('ButtonText').Text='Accept Friend' + local FriendRefuseButton = MakePopupButton(PopUpPanel,'Decline Friend',2,not showRankMenu) + FriendRefuseButton.MouseButton1Click:connect(OnFriendRefuseButtonSelect) + nextIndex=nextIndex+1 + end + end + + if showRankMenu then + local BanPlayerButton = MakePopupButton(PopUpPanel,'Ban',nextIndex) + local VisitorButton = MakePopupButton(PopUpPanel,'Visitor',nextIndex+1) + local MemberButton = MakePopupButton(PopUpPanel,'Member',nextIndex+2) + local AdminButton = MakePopupButton(PopUpPanel,'Admin',nextIndex+3,true) + + BanPlayerButton.MouseButton1Click:connect(function() + OnPrivilegeLevelSelect(player,PrivilegeLevel['Banned'],BanPlayerButton,VisitorButton,MemberButton,AdminButton) + end) + VisitorButton.MouseButton1Click:connect(function() + OnPrivilegeLevelSelect(player,PrivilegeLevel['Visitor'],BanPlayerButton,VisitorButton,MemberButton,AdminButton) + end) + MemberButton.MouseButton1Click:connect(function() + OnPrivilegeLevelSelect(player,PrivilegeLevel['Member'],BanPlayerButton,VisitorButton,MemberButton,AdminButton) + end) + AdminButton.MouseButton1Click:connect(function() + OnPrivilegeLevelSelect(player,PrivilegeLevel['Admin'],BanPlayerButton,VisitorButton,MemberButton,AdminButton) + end) + + HighlightMyRank(SelectedPlayer,BanPlayerButton,VisitorButton,MemberButton,AdminButton) + end + + PopUpPanel:TweenPosition(UDim2.new(0,0,0,0), "Out", "Linear", BASE_TWEEN,true) + Delay(0, function() + local tconnection + tconnection = Mouse.Button1Down:connect(function() + tconnection:disconnect() + ClosePopUpPanel() + end) + end) + + local myFrame = entry['Frame'] + -- THIS IS GARBAGE. + -- if I parent to frame to auto update position, it gets clipped + -- sometimes garbage is the only option. + Spawn(function() + while InPopupWaitForClick do + PopUpClipFrame.Position=UDim2.new( 0,myFrame.AbsolutePosition.X-PopUpClipFrame.Size.X.Offset,0,myFrame.AbsolutePosition.Y) + wait() + end + end) + +end + +--[[ + Called when a player entry in the leaderboard is clicked + either will highlight entry and start the drag event, or open a popup menu + @Args: + entry the player entry clicked +--]] +function OnPlayerEntrySelect(entry,startx,starty) + + if not InPopupWaitForClick then + + SelectedPlayerEntry = entry + SelectedPlayer = entry['Player'] + + StartDrag(entry,startx,starty) + end + + +end + +function ActivatePlayerEntryPanel(entry) + entry['Frame'].BackgroundColor3 = Color3.new(0,1,1) + Spawn(function() TweenProperty(entry['Frame'],'BackgroundTransparency',1,.5,.5) end) + InPopupWaitForClick=true + InitMovingPanel(entry,entry['Player']) +end + +--[[ + the basic update for the playerlist mode's state, + assures the order and length of the player frames +--]] +function PlayerListModeUpdate() + RecreateScoreColumns(PlayerFrames) + table.sort(PlayerFrames,PlayerSortFunction) + for i,val in ipairs(PlayerFrames) do + MiddleFrames[i] = val['Frame'] + end + for i = #PlayerFrames + 1,#MiddleFrames,1 do + MiddleFrames[i] = nil + end + UpdateMinimize() +end +--[[ + this one's a doozie, happens when a player is added to the game + inits their player frame and player entry, assigns them to a team if possible, + and hooks up their leaderstats + @Args: + nplayer new player object to insert +--]] +function InsertPlayerFrame(nplayer) + while AddingFrameLock do debugprint('waiting to insert '..nplayer.Name) wait(1/30) end + AddingFrameLock = true + + local nFrame = MiddleTemplate:Clone() + nFrame.ClickListener.BackgroundColor3 = Color3.new(0,0,0) + nFrame.ClickListener.BackgroundTransparency = BACKGROUND_TRANSPARENCY + nFrame.ClickListener.AutoButtonColor=false + + local playerName = nplayer.Name + local clansEnabled, clanTag = pcall(function() nplayer:GetClanTag() end) + if clansEnabled and clanTag and clanTag ~= "" then + playerName = "[" .. tostring(clanTag) .. "] " .. playerName + end + + WaitForChild(WaitForChild(nFrame,'TitleFrame'),'Title').Text = playerName + + nFrame.Position = UDim2.new(1,0,((#MiddleFrames) * nFrame.Size.Y.Scale),0) + + local nfriendstatus = GetFriendStatus(nplayer) + + nFrame:FindFirstChild('BCLabel').Image = getMembershipTypeIcon(nplayer.MembershipType,nplayer.Name) + nFrame:FindFirstChild('FriendLabel').Image = getFriendStatusIcon(nfriendstatus) + nFrame.Name = nplayer.Name + WaitForChild(WaitForChild(nFrame,'TitleFrame'),'Title').Text = playerName + + --move for bc label + nFrame.FriendLabel.Position=nFrame.FriendLabel.Position+UDim2.new(0,17,0,0) + nFrame.TitleFrame.Title.Position=nFrame.TitleFrame.Title.Position+UDim2.new(0,17,0,0) + + if(nFrame:FindFirstChild('FriendLabel').Image ~= '') then + nFrame.TitleFrame.Title.Position=nFrame.TitleFrame.Title.Position+UDim2.new(0,17,0,0) + end + + if nplayer.Name == LocalPlayer.Name then + nFrame.TitleFrame.Title.Font = 'ArialBold' + nFrame.PlayerScore.Font = 'ArialBold' + ChangeHeaderName(playerName) + local dropShadow = nFrame.TitleFrame.Title:Clone() + dropShadow.TextColor3 = Color3.new(0,0,0) + dropShadow.TextTransparency=0 + dropShadow.ZIndex=2 + dropShadow.Position=nFrame.TitleFrame.Title.Position+UDim2.new(0,1,0,1) + dropShadow.Name='DropShadow' + dropShadow.Parent= nFrame.TitleFrame + else + --Delay(2, function () OnFriendshipChanged(nplayer,LocalPlayer:GetFriendStatus(nplayer)) end) + end + nFrame.TitleFrame.Title.Font = 'ArialBold' + + + nFrame.Parent = ListFrame + nFrame.Position = UDim2.new(.5,0,((#MiddleFrames) * nFrame.Size.Y.Scale),0) + UpdateMinimize() + local nentry = {} + nentry['Frame'] = nFrame + nentry['Player'] = nplayer + nentry['ID'] = AddId + AddId = AddId + 1 + table.insert(PlayerFrames,nentry) + if #TeamFrames~=0 then + + if nplayer.Neutral then + nentry['MyTeam'] = nil + if not NeutralTeam then + AddNeutralTeam() + else + AddPlayerToTeam(NeutralTeam,nentry) + end + + else + local addedToTeam=false + for i,tval in ipairs(TeamFrames) do + if tval['MyTeam'].TeamColor == nplayer.TeamColor then + AddPlayerToTeam(tval,nentry) + nentry['MyTeam'] = tval + addedToTeam=true + end + end + if not addedToTeam then + nentry['MyTeam']=nil + if not NeutralTeam then + AddNeutralTeam() + else + AddPlayerToTeam(NeutralTeam,nentry) + end + nentry['MyTeam'] = NeutralTeam + end + end + + end + + if nplayer:FindFirstChild('leaderstats') then + LeaderstatsAdded(nentry) + end + + nplayer.ChildAdded:connect(function(nchild) + if nchild.Name == 'leaderstats' then + while AddingFrameLock do debugprint('in adding leaderstats lock') wait(1/30) end + if not nplayer:FindFirstChild("leaderstats") then return end + AddingFrameLock = true + LeaderstatsAdded(nentry) + AddingFrameLock = false + end + end) + + nplayer.ChildRemoved:connect(function (nchild) + if nplayer==LocalPlayer and nchild.Name == 'leaderstats' then + LeaderstatsRemoved(nchild,nentry) + end + end) + nplayer.Changed:connect(function(prop)PlayerChanged(nentry,prop) end) + + local listener = WaitForChild(nFrame,'ClickListener') + listener.Active = true + listener.MouseButton1Down:connect(function(nx,ny) OnPlayerEntrySelect(nentry, nx,ny) end) + + AddMiddleBGFrame() + BaseUpdate() + AddingFrameLock = false +end + +--[[ + Note:major optimization can be done here + removes this player's frame if it exists, calls base update +--]] +function RemovePlayerFrame(tplayer) + while AddingFrameLock do debugprint('in removing player frame lock') wait(1/30) end + AddingFrameLock = true + + local tteam + for i,key in ipairs(PlayerFrames) do + if tplayer == key['Player'] then + if PopUpClipFrame.Parent == key['Frame'] then + PopUpClipFrame.Parent = nil + end + key['Frame']:Destroy() + tteam=key['MyTeam'] + table.remove(PlayerFrames,i) + end + end + if tteam then + for j,tentry in ipairs(tteam['MyPlayers']) do + if tentry['Player'] == tplayer then + RemovePlayerFromTeam(tteam,j) + end + end + end + + RemoveMiddleBGFrame() + UpdateMinimize() + BaseUpdate() + AddingFrameLock = false +end + +Players.ChildRemoved:connect(RemovePlayerFrame) + +---------------------------- +-- Team Callback Functions +---------------------------- +--[[ + turns a list of team entries with sub lists of players into a single ordered + list, in the correct order,and of the correct length + @Args: + tframes the team entries to unroll + outframes the list to unroll these entries into +--]] +function UnrollTeams(tframes,outframes) + local numEntries = 0 + if NeutralTeam and not NeutralTeam['IsHidden'] then + for i,val in ipairs(NeutralTeam['MyPlayers']) do + numEntries = numEntries + 1 + outframes[numEntries] = val['Frame'] + end + numEntries = numEntries + 1 + outframes[numEntries] = NeutralTeam['Frame'] + end + for i,val in ipairs(tframes) do + if not val['IsHidden'] then + for j,pval in ipairs(val.MyPlayers) do + numEntries = numEntries + 1 + outframes[numEntries] = pval['Frame'] + end + numEntries = numEntries + 1 + outframes[numEntries] = val['Frame'] + end + end + -- clear any additional entries from outframes + for i = numEntries + 1,#outframes,1 do + outframes[i] = nil + end +end +--[[ + uses lua's table.sort to sort the teams +--]] +function TeamSortFunc(a,b) + if a['TeamScore'] == b['TeamScore'] then + return a['ID'] < b['ID'] + end + if not a['TeamScore'] then return false end + if not b['TeamScore'] then return true end + return a['TeamScore'] < b['TeamScore'] + +end +--[[ + consider adding lock with wait for performance + sorts each of the team's player lists induvidually, adds up the team scores. + @Args: + tentries table of team entries +--]] +function SortTeams(tentries) + + for i,val in ipairs(tentries) do + + table.sort(val['MyPlayers'],PlayerSortFunction) + AddTeamScores(val) + end + table.sort(tentries,TeamSortFunc) +end +--[[ + base update for team mode, adds up the scores of all teams, sorts them, + then unrolls them into middleframes +--]] +function TeamListModeUpdate() + RecreateScoreColumns(PlayerFrames) + SortTeams(TeamFrames) + if NeutralTeam then + AddTeamScores(NeutralTeam) + --RecreateScoreColumns(NeutralTeam['MyPlayers']) + end + UnrollTeams(TeamFrames,MiddleFrames) +end +--[[ + adds up all the score of this team's players to form the team score + @Args: + team team entry to sum the scores of +--]] +function AddTeamScores(team) + + for j = 1, #ScoreNames,1 do + local i = ScoreNames[j] + local tscore = 0 + for _,j in ipairs(team['MyPlayers']) do + local tval = j['Player']:FindFirstChild('leaderstats') and j['Player'].leaderstats:FindFirstChild(i['Name']) + if tval and not tval:IsA('StringValue') then + tscore = tscore + GetScoreValue((j['Player'].leaderstats)[i['Name'] ]) + end + end + if team['Frame']:FindFirstChild(i['Name']) then + --team['Frame'][i['Name'] ].Size = UDim2.new(1 - (ScrollBarFrame.Size.X.Scale * 2),- ((j-1) * SpacingPerStat),1,0) + team['Frame'][i['Name'] ].Text = tostring(tscore) + end + end + UpdateMinimize() + +end + +--[[ + finds previous team this player was on, and if it exists calls removeplayerfromteam + @Args + entry Player entry +--]] +function FindRemovePlayerFromTeam(entry) + if entry['MyTeam'] then + for j,oldEntry in ipairs(entry['MyTeam']['MyPlayers']) do + if oldEntry['Player'] == entry['Player'] then + RemovePlayerFromTeam(entry['MyTeam'],j) + return + end + end + elseif NeutralTeam then + for j,oldEntry in ipairs(NeutralTeam['MyPlayers']) do + if oldEntry['Player'] == entry['Player'] then + RemovePlayerFromTeam(NeutralTeam,j) + return + end + end + end +end +--[[ + removes a single player from a given team (not usually called directly) + @Args: + teamEntry team entry to remove player from + index index of player in 'MyPlayers' list to remove +--]] +function RemovePlayerFromTeam(teamEntry,index) + table.remove(teamEntry['MyPlayers'],index) + --if teamEntry['AutoHide'] and #teamEntry['MyPlayers'] == 0 then + if teamEntry==NeutralTeam and #teamEntry['MyPlayers']==0 then + RemoveNeutralTeam() + end +end +--[[ + adds player entry entry to teamentry + removes them from any previous team + @Args: + teamEntry entry of team to add player to + entry player entry to add to this team +--]] +function AddPlayerToTeam(teamEntry,entry) + FindRemovePlayerFromTeam(entry) + table.insert(teamEntry['MyPlayers'],entry) + entry['MyTeam'] = teamEntry + if teamEntry['IsHidden'] then + teamEntry['Frame'].Parent = ListFrame + AddMiddleBGFrame() + end + teamEntry['IsHidden'] = false +end + + +function SetPlayerToTeam(entry) + FindRemovePlayerFromTeam(entry) + -- check to see if team exists, if it does add to that team + local setToTeam = false + for i,tframe in ipairs(TeamFrames) do + -- add my entry on the new team + if tframe['MyTeam'].TeamColor == entry['Player'].TeamColor then + AddPlayerToTeam(tframe,entry) + setToTeam = true + end + end + -- if player was set to an invalid team, then set it back to neutral + if not setToTeam and #(game.Teams:GetTeams())>0 then + debugprint(entry['Player'].Name..'could not find team') + entry['MyTeam']=nil + if not NeutralTeam then + AddNeutralTeam() + else AddPlayerToTeam(NeutralTeam,entry) end + end +end + +--[[ + Note:another big one, consiter breaking up + called when any children of player changes + handles 'Neutral', teamColor, Name and MembershipType changes + @Args + entry Player entry changed + property name of property changed +--]] +function PlayerChanged(entry, property) + while PlayerChangedLock do + debugprint('in playerchanged lock') + wait(1/30) + end + PlayerChangedLock=true + if property == 'Neutral' then + -- if player changing to neutral + if entry['Player'].Neutral and #(game.Teams:GetTeams())>0 then + debugprint(entry['Player'].Name..'setting to neutral') + FindRemovePlayerFromTeam(entry) + entry['MyTeam']=nil + if not NeutralTeam then + debugprint(entry['Player'].Name..'creating neutral team') + AddNeutralTeam() + else + debugprint(entry['Player'].Name..'adding to neutral team') + AddPlayerToTeam(NeutralTeam,entry) + end + elseif #(game.Teams:GetTeams())>0 then -- else player switching to a team, or a weird edgecase + debugprint(entry['Player'].Name..'has been set non-neutral') + SetPlayerToTeam(entry) + end + BaseUpdate() + elseif property == 'TeamColor' and not entry['Player'].Neutral and entry['Player'] ~= entry['MyTeam'] then + debugprint(entry['Player'].Name..'setting to new team') + SetPlayerToTeam(entry) + BaseUpdate() + elseif property == 'Name' or property == 'MembershipType' then + entry['Frame']:FindFirstChild('BCLabel').Image = getMembershipTypeIcon(entry['Player'].MembershipType,entry['Player'].Name) + entry['Frame'].Name = entry['Player'].Name + entry['Frame'].TitleFrame.Title.Text = entry['Player'].Name + if(entry['Frame'].BCLabel.Image ~= '') then + entry['Frame'].TitleFrame.Title.Position=UDim2.new(.01, 30, .1, 0) + end + if entry['Player'] == LocalPlayer then + entry['Frame'].TitleFrame.DropShadow.Text= entry['Player'].Name + ChangeHeaderName(entry['Player'].Name) + end + BaseUpdate() + end + PlayerChangedLock=false +end + +function OnFriendshipChanged(player,friendStatus) + + Delay(.5,function() + debugprint('friend status changed for:'..player.Name .." ".. tostring(friendStatus) .. " vs " .. tostring(GetFriendStatus(player)) ) + for _, entry in ipairs(PlayerFrames) do + if entry['Player']==player then + local nicon = getFriendStatusIcon(friendStatus) + if nicon == '' and entry['Frame'].FriendLabel.Image ~= '' then + entry['Frame'].TitleFrame.Title.Position=entry['Frame'].TitleFrame.Title.Position-UDim2.new(0,17,0,0) + elseif nicon ~= '' and entry['Frame'].FriendLabel.Image == '' then + entry['Frame'].TitleFrame.Title.Position=entry['Frame'].TitleFrame.Title.Position+UDim2.new(0,17,0,0) + debugprint('confirmed status:'..player.Name) + end + entry['Frame'].FriendLabel.Image = nicon + return + end + end + end) +end + +LocalPlayer.FriendStatusChanged:connect(OnFriendshipChanged) + +--[[ + adds a neutral team if nessisary + Note: a lot of redundant code here, might want to refactor to share a function with insertteamframe +--]] +function AddNeutralTeam() + while NeutralTeamLock do debugprint('in neutral team 2 lock') wait() end + NeutralTeamLock = true + + local defaultTeam = Instance.new('Team') + defaultTeam.TeamColor = BrickColor.new('White') + defaultTeam.Name = 'Neutral' + local nentry = {} + nentry['MyTeam'] = defaultTeam + nentry['MyPlayers'] = {} + nentry['Frame'] = MiddleTemplate:Clone() + WaitForChild(WaitForChild(nentry['Frame'],'TitleFrame'),'Title').Text = defaultTeam.Name + nentry['Frame'].TitleFrame.Position=UDim2.new(nentry['Frame'].TitleFrame.Position.X.Scale,nentry['Frame'].TitleFrame.Position.X.Offset,.1,0) + nentry['Frame'].TitleFrame.Size=UDim2.new(nentry['Frame'].TitleFrame.Size.X.Scale,nentry['Frame'].TitleFrame.Size.X.Offset,.8,0) + nentry['Frame'].TitleFrame.Title.Font = 'ArialBold' + nentry['Frame'].Position = UDim2.new(1,0,((#MiddleFrames) * nentry['Frame'].Size.Y.Scale),0) + WaitForChild(nentry['Frame'],'ClickListener').MouseButton1Down:connect(function(nx,ny) StartDrag(nentry,nx,ny) end) + nentry['Frame'].ClickListener.BackgroundColor3 = Color3.new(1,1,1) + nentry['Frame'].ClickListener.BackgroundTransparency = BACKGROUND_TRANSPARENCY + nentry['Frame'].ClickListener.AutoButtonColor=false + nentry['AutoHide'] = true + nentry['IsHidden'] = true + for _,i in pairs(PlayerFrames) do + if i['Player'].Neutral or not i['MyTeam'] then + AddPlayerToTeam(nentry,i) + end + end + if #nentry['MyPlayers'] > 0 then + NeutralTeam = nentry + UpdateMinimize() + BaseUpdate() + end + NeutralTeamLock = false +end + +function RemoveNeutralTeam() + while NeutralTeamLock do debugprint('in neutral team lock') wait() end + NeutralTeamLock = true + NeutralTeam['Frame']:Destroy() + NeutralTeam=nil + RemoveMiddleBGFrame() + NeutralTeamLock = false +end + +--[[ + +--]] +function TeamScoreChanged(entry,nscore) + WaitForChild(entry['Frame'],'PlayerScore').Text = tostring(nscore) + entry['TeamScore'] = nscore +end +--[[ + called when child added to a team, used for autohide functionality + Note: still has teamscore, consiter removing +--]] +function TeamChildAdded(entry,nchild) + if nchild.Name == 'AutoHide' then + entry['AutoHide'] = true + elseif nchild.Name == 'TeamScore' then + WaitForChild(entry['Frame'],'PlayerScore').Text = tostring(nchild.Value) + entry['TeamScore'] = nchild.Value + nchild.Changed:connect(function() TeamScoreChanged(entry,nchild.Value) end) + end +end +--[[ + called when child added to a team, used for autohide functionality + Note: still has teamscore, consiter removing +--]] +function TeamChildRemoved(entry,nchild) + if nchild.Name == 'AutoHide' then + entry['AutoHide'] = false + elseif nchild.Name == 'TeamScore' then + WaitForChild(entry['Frame'],'PlayerScore').Text = "" + entry['TeamScore'] = nil + end +end + +function TeamChanged(entry, property) + if property=='Name' then + WaitForChild(WaitForChild(entry['Frame'],'TitleFrame'),'Title').Text = entry['MyTeam'].Name + + elseif property=='TeamColor' then + entry['Frame'].ClickListener.BackgroundColor3 = entry['MyTeam'].TeamColor.Color + + for _,i in pairs(TeamFrames) do + if i['MyTeam'].TeamColor == entry['MyTeam'] then + RemoveTeamFrame(entry['MyTeam']) --NO DUPLICATE TEAMS! + end + end + + entry['MyPlayers']={} + + for _,i in pairs(PlayerFrames) do + SetPlayerToTeam(i) + end + BaseUpdate() + end +end + +--[[ + creates team entry and frame for this team, sets up listeners for this team + adds any players intended for this team,Creates neutral team if this is the first team added + Note:might be best to break this into multiple functions to simplify + @Args: + nteam new team object added +--]] +function InsertTeamFrame(nteam) + while AddingFrameLock do debugprint('in adding team frame lock') wait(1/30) end + AddingFrameLock = true + --for _,i in pairs(TeamFrames) do + local nentry = {} + nentry['MyTeam'] = nteam + nentry['MyPlayers'] = {} + nentry['Frame'] = MiddleTemplate:Clone() + WaitForChild(WaitForChild(nentry['Frame'],'TitleFrame'),'Title').Text = nteam.Name + nentry['Frame'].TitleFrame.Title.Font = 'ArialBold' + nentry['Frame'].TitleFrame.Title.FontSize = 'Size18' + nentry['Frame'].Position = UDim2.new(0.5,0,((#MiddleFrames) * nentry['Frame'].Size.Y.Scale),0) + WaitForChild(nentry['Frame'],'ClickListener').MouseButton1Down:connect(function(nx,ny) StartDrag(nentry,nx,ny) end) + nentry['Frame'].ClickListener.BackgroundColor3 = nteam.TeamColor.Color + nentry['Frame'].ClickListener.BackgroundTransparency = BACKGROUND_TRANSPARENCY + nentry['Frame'].ClickListener.AutoButtonColor=false + AddId = AddId + 1 + nentry['ID'] = AddId + nentry['AutoHide'] = false + if nteam:FindFirstChild('AutoHide') then + nentry['AutoHide'] = true + end + if nteam:FindFirstChild('TeamScore') then + TeamChildAdded(nentry,nteam.TeamScore) + + end + + nteam.ChildAdded:connect(function(nchild) TeamChildAdded(nentry,nchild) end) + nteam.ChildRemoved:connect(function(nchild) TeamChildRemoved(nentry,nchild) end) + nteam.Changed:connect(function(prop) TeamChanged(nentry,prop) end) + + for _,i in pairs(PlayerFrames) do + if not i['Player'].Neutral and i['Player'].TeamColor == nteam.TeamColor then + AddPlayerToTeam(nentry,i) + end + end + nentry['IsHidden'] = false + if not nentry['AutoHide'] or #nentry['MyPlayers'] > 0 then + nentry['Frame'].Parent = ListFrame + AddMiddleBGFrame() + else + nentry['IsHidden'] = true + nentry['Frame'].Parent = nil + end + + table.insert(TeamFrames,nentry) + UpdateMinimize() + BaseUpdate() + if #TeamFrames == 1 and not NeutralTeam then + AddNeutralTeam() + end + AddingFrameLock = false +end +--[[ + removes team from team list + @Args: + nteam Teamobject to remove +--]] +function RemoveTeamFrame(nteam) + while AddingFrameLock do debugprint('in removing team frame lock') wait(1/30) end + AddingFrameLock = true + if IsMinimized.Value then + end + local myEntry + for i,key in ipairs(TeamFrames) do + if nteam == key['MyTeam'] then + myEntry = key + key['Frame']:Destroy() + table.remove(TeamFrames,i) + end + end + if #TeamFrames==0 then + debugprint('removeteamframe, remove neutral') + if NeutralTeam then + RemoveNeutralTeam() + end + end + for i,key in ipairs(myEntry['MyPlayers']) do + RemovePlayerFromTeam(myEntry,i) + PlayerChanged(key, 'TeamColor') + end + RemoveMiddleBGFrame() + BaseUpdate() + AddingFrameLock = false +end + +function TeamAdded(nteam) + InsertTeamFrame(nteam) +end + +function TeamRemoved(nteam) + RemoveTeamFrame(nteam) +end + --------------------------------- +--[[ + called when ANYTHING changes the state of the playerlist + re-sorts everything,assures correct positions of all elements +--]] +function BaseUpdate() + while BaseUpdateLock do debugprint('in baseupdate lock') wait(1/30) end + BaseUpdateLock = true + --print ('baseupdate') + UpdateStatNames() + + if #TeamFrames == 0 and not NeutralTeam then + PlayerListModeUpdate() + else + TeamListModeUpdate() + end + for i,key in ipairs(MiddleFrames) do + if key.Parent ~= nil then + key.Position = UDim2.new(.5,0,((#MiddleFrames - (i)) * key.Size.Y.Scale),0) + end + end + if not IsMinimized.Value and #MiddleFrames>DefaultEntriesOnScreen then + UpdateScrollPosition() + end + + UpdateMinimize() + + UpdateScrollBarSize() + UpdateScrollPosition() + + UpdateScrollBarVisibility() + --debugprint('EndBaseUpdate') + BaseUpdateLock = false +end + +--[[ + code for attaching tab key to maximizing player list +--]] +game.GuiService:AddKey("\t") +local LastTabTime = time() +game.GuiService.KeyPressed:connect( +function(key) + if key == "\t" then + debugprint('caught tab key') + local modalCheck, isModal = pcall(function() return game.GuiService.IsModalDialog end) + if modalCheck == false or (modalCheck and isModal == false) then + if time() - LastTabTime > 0.4 then + LastTabTime = time() + if IsTabified.Value then + if not IsMaximized.Value then + ScreenGui:TweenPosition(UDim2.new(0, 0, 0,0),'Out','Linear',BASE_TWEEN*1.2,true) + IsMaximized.Value = true + else + ScreenGui:TweenPosition(UDim2.new(NormalBounds.X.Scale, NormalBounds.X.Offset-10, 0,0),'Out','Linear',BASE_TWEEN*1.2,true) + IsMaximized.Value = false + IsMinimized.Value=true + end + else + ToggleMaximize() + end + + end + end + end +end) + + +function PlayersChildAdded(tplayer) + if tplayer:IsA('Player') then + Spawn(function() debugPlayerAdd(tplayer) end) + else + BlowThisPopsicleStand() + end +end + +function coreGuiChanged(coreGuiType, enabled) + if coreGuiType == Enum.CoreGuiType.All or coreGuiType == Enum.CoreGuiType.PlayerList then + MainFrame.Visible = enabled + end +end + +function TeamsChildAdded(nteam) + if nteam:IsA('Team') then + TeamAdded(nteam) + else + BlowThisPopsicleStand() + end +end + +function TeamsChildRemoved(nteam) + if nteam:IsA('Team') then + TeamRemoved(nteam) + else + BlowThisPopsicleStand() + end +end + + ---------------------------- + -- Hookups and initialization + ---------------------------- +function debugPlayerAdd(p) + InsertPlayerFrame(p) +end + +pcall(function() + coreGuiChanged(Enum.CoreGuiType.PlayerList, Game.StarterGui:GetCoreGuiEnabled(Enum.CoreGuiType.PlayerList)) + Game.StarterGui.CoreGuiChangedSignal:connect(coreGuiChanged) +end) + +while not game:GetService('Teams') do wait(1/30) debugprint('Waiting For Teams') end +for _,i in pairs(game.Teams:GetTeams()) do TeamAdded(i) end +for _,i in pairs(Players:GetPlayers()) do Spawn(function() debugPlayerAdd(i) end) end + +game.Teams.ChildAdded:connect(TeamsChildAdded) +game.Teams.ChildRemoved:connect(TeamsChildRemoved) +Players.ChildAdded:connect(PlayersChildAdded) + +InitReportAbuse() +AreNamesExpanded.Value = true +BaseUpdate() + + + +--UGGGLY,find a better way later +wait(2) +IsPersonalServer= not not game.Workspace:FindFirstChild("PSVariable") + + ---------------------------- + -- Running Logic + ---------------------------- + + --debug stuffs, will only run for 'newplayerlistisbad' + if LocalPlayer.Name == 'newplayerlistisbad' or LocalPlayer.Name == 'imtotallyadmin' then + debugFrame.Parent = ScreenGui + Spawn(function() + while true do + local str_players='' + for _,i in pairs(game.Players:GetPlayers()) do + str_players= str_players .." " .. i.Name + end + debugplayers.Text=str_players + wait(.5) + end + end) + end + + diff --git a/assets/ugc/868 b/assets/ugc/868 new file mode 100644 index 0000000..224a706 --- /dev/null +++ b/assets/ugc/868 @@ -0,0 +1,869 @@ +--rbxassetid%868% +-- This script creates almost all gui elements found in the backpack (warning: there are a lot!) +-- TODO: automate this process + +if game.CoreGui.Version < 3 then return end -- peace out if we aren't using the right client + +local gui = script.Parent + +-- A couple of necessary functions +local function waitForChild(instance, name) + while not instance:FindFirstChild(name) do + instance.ChildAdded:wait() + end +end +local function waitForProperty(instance, property) + while not instance[property] do + instance.Changed:wait() + end +end + +local function IsTouchDevice() + return Game:GetService('UserInputService').TouchEnabled +end + +local function IsPhone() + if Game:GetService("GuiService"):GetScreenResolution().Y <= 500 and IsTouchDevice() then + return true + end + return false +end + +waitForChild(game,"Players") +waitForProperty(game.Players,"LocalPlayer") +local player = game.Players.LocalPlayer + +-- First up is the current loadout +local CurrentLoadout = Instance.new("Frame") +CurrentLoadout.Name = "CurrentLoadout" +CurrentLoadout.Position = UDim2.new(0.5, -300, 1, -85) +CurrentLoadout.Size = UDim2.new(0, 600, 0, 54) +CurrentLoadout.BackgroundTransparency = 1 +CurrentLoadout.RobloxLocked = true +CurrentLoadout.Parent = gui + +local CLBackground = Instance.new('ImageLabel') +CLBackground.Name = 'Background'; +CLBackground.Size = UDim2.new(1.2, 0, 1.2, 0); +CLBackground.Image = "http://www.mete0r.xyz/asset/?id=96536002" +CLBackground.BackgroundTransparency = 1.0; +CLBackground.Position = UDim2.new(-0.1, 0, -0.1, 0); +CLBackground.ZIndex = 0.0; +CLBackground.Parent = CurrentLoadout +CLBackground.Visible = false + +local Debounce = Instance.new("BoolValue") +Debounce.Name = "Debounce" +Debounce.RobloxLocked = true +Debounce.Parent = CurrentLoadout + +local BackpackButton = Instance.new("ImageButton") +BackpackButton.RobloxLocked = true +BackpackButton.Visible = false +BackpackButton.Name = "BackpackButton" +BackpackButton.BackgroundTransparency = 1 +BackpackButton.Image = "rbxasset://textures/ui/Backpack_Open.png" +BackpackButton.Position = UDim2.new(0.5, -7, 1, -55) +BackpackButton.Size = UDim2.new(0, 14, 0, 9) +waitForChild(gui,"ControlFrame") +BackpackButton.Parent = gui.ControlFrame + +local NumSlots = 9 + +if IsPhone() then + NumSlots = 3 + CurrentLoadout.Size = UDim2.new(0,180,0,54) + CurrentLoadout.Position = UDim2.new(0.5,-90,1,-85) +end + +for i = 0, NumSlots do + local slotFrame = Instance.new("Frame") + slotFrame.RobloxLocked = true + slotFrame.BackgroundColor3 = Color3.new(0,0,0) + slotFrame.BackgroundTransparency = 1 + slotFrame.BorderColor3 = Color3.new(1, 1, 1) + slotFrame.BorderSizePixel = 0 + slotFrame.Name = "Slot" .. tostring(i) + slotFrame.ZIndex = 4.0 + if i == 0 then + slotFrame.Position = UDim2.new(0.9, 48, 0, 0) + else + slotFrame.Position = UDim2.new((i - 1) * 0.1, (i-1)* 6,0,0) + end + + + slotFrame.Size = UDim2.new(0, 54, 1, 0) + slotFrame.Parent = CurrentLoadout + + if gui.AbsoluteSize.Y <= 320 then + slotFrame.Position = UDim2.new(0, (i-1)* 60, 0, -50) + end + if gui.AbsoluteSize.Y <= 320 and i == 0 then + slotFrame:Destroy() + end +end + +local TempSlot = Instance.new("ImageButton") +TempSlot.Name = "TempSlot" +TempSlot.Active = true +TempSlot.Size = UDim2.new(1,0,1,0) +TempSlot.BackgroundTransparency = 1.0 +TempSlot.Style = 'Custom' +TempSlot.Visible = false +TempSlot.RobloxLocked = true +TempSlot.Parent = CurrentLoadout +TempSlot.ZIndex = 3.0 + + local slotBackground = Instance.new('Frame') + slotBackground.Name = 'Background' + slotBackground.BackgroundTransparency = 1.0 + slotBackground.Style = "DropShadow" + slotBackground.Position = UDim2.new(0, -10, 0, -10) + slotBackground.Size = UDim2.new(1, 20, 1, 20) + slotBackground.Parent = TempSlot + + local HighLight = Instance.new('ImageLabel') + HighLight.Name = 'Highlight' + HighLight.BackgroundTransparency = 1.0 + HighLight.Image = 'http://www.mete0r.xyz/asset/?id=97643886' + HighLight.Size = UDim2.new(1, 0, 1, 0) + --HighLight.Parent = TempSlot + HighLight.Visible = false + + -- TempSlot Children + local GearReference = Instance.new("ObjectValue") + GearReference.Name = "GearReference" + GearReference.RobloxLocked = true + GearReference.Parent = TempSlot + + + local ToolTipLabel = Instance.new("TextLabel") + ToolTipLabel.Name = "ToolTipLabel" + ToolTipLabel.RobloxLocked = true + ToolTipLabel.Text = "" + ToolTipLabel.BackgroundTransparency = 0.5 + ToolTipLabel.BorderSizePixel = 0 + ToolTipLabel.Visible = false + ToolTipLabel.TextColor3 = Color3.new(1,1,1) + ToolTipLabel.BackgroundColor3 = Color3.new(0,0,0) + ToolTipLabel.TextStrokeTransparency = 0 + ToolTipLabel.Font = Enum.Font.ArialBold + ToolTipLabel.FontSize = Enum.FontSize.Size14 + --ToolTipLabel.TextWrap = true + ToolTipLabel.Size = UDim2.new(1,60,0,20) + ToolTipLabel.Position = UDim2.new(0,-30,0,-30) + ToolTipLabel.Parent = TempSlot + + + local Kill = Instance.new("BoolValue") + Kill.Name = "Kill" + Kill.RobloxLocked = true + Kill.Parent = TempSlot + + local GearImage = Instance.new("ImageLabel") + GearImage.Name = "GearImage" + GearImage.BackgroundTransparency = 1 + GearImage.Position = UDim2.new(0, 0, 0, 0) + GearImage.Size = UDim2.new(1, 0, 1, 0) + GearImage.ZIndex = 5.0 + GearImage.RobloxLocked = true + GearImage.Parent = TempSlot + + local SlotNumber = Instance.new("TextLabel") + SlotNumber.Name = "SlotNumber" + SlotNumber.BackgroundTransparency = 1 + SlotNumber.BorderSizePixel = 0 + SlotNumber.Font = Enum.Font.ArialBold + SlotNumber.FontSize = Enum.FontSize.Size18 + SlotNumber.Position = UDim2.new(0, 0, 0, 0) + SlotNumber.Size = UDim2.new(0,10,0,15) + SlotNumber.TextColor3 = Color3.new(1,1,1) + SlotNumber.TextTransparency = 0 + SlotNumber.TextXAlignment = Enum.TextXAlignment.Left + SlotNumber.TextYAlignment = Enum.TextYAlignment.Bottom + SlotNumber.RobloxLocked = true + SlotNumber.Parent = TempSlot + SlotNumber.ZIndex = 5 + + if IsTouchDevice() then + SlotNumber.Visible = false + end + + local SlotNumberDownShadow = SlotNumber:Clone() + SlotNumberDownShadow.Name = "SlotNumberDownShadow" + SlotNumberDownShadow.TextColor3 = Color3.new(0,0,0) + SlotNumberDownShadow.Position = UDim2.new(0, 1, 0, -1) + SlotNumberDownShadow.Parent = TempSlot + SlotNumberDownShadow.ZIndex = 2 + + local SlotNumberUpShadow = SlotNumberDownShadow:Clone() + SlotNumberUpShadow.Name = "SlotNumberUpShadow" + SlotNumberUpShadow.Position = UDim2.new(0, -1, 0, -1) + SlotNumberUpShadow.Parent = TempSlot + + local GearText = Instance.new("TextLabel") + GearText.RobloxLocked = true + GearText.Name = "GearText" + GearText.BackgroundTransparency = 1 + GearText.Font = Enum.Font.Arial + GearText.FontSize = Enum.FontSize.Size14 + GearText.Position = UDim2.new(0,-8,0,-8) + GearText.Size = UDim2.new(1,16,1,16) + GearText.Text = "" + GearText.TextColor3 = Color3.new(1,1,1) + GearText.TextWrap = true + GearText.Parent = TempSlot + GearText.ZIndex = 5.0 + +--- Great, now lets make the inventory! + +local Backpack = Instance.new("Frame") +Backpack.RobloxLocked = true +Backpack.Visible = false +Backpack.Name = "Backpack" +Backpack.Position = UDim2.new(0.5, 0, 0.5, 0) +Backpack.BackgroundColor3 = Color3.new(32/255, 32/255, 32/255) +Backpack.BackgroundTransparency = 0.5 +Backpack.BorderSizePixel = 0 +Backpack.Parent = gui +Backpack.Active = true + + -- Backpack Children + local SwapSlot = Instance.new("BoolValue") + SwapSlot.RobloxLocked = true + SwapSlot.Name = "SwapSlot" + SwapSlot.Parent = Backpack + + -- SwapSlot Children + local Slot = Instance.new("IntValue") + Slot.RobloxLocked = true + Slot.Name = "Slot" + Slot.Parent = SwapSlot + + local GearButton = Instance.new("ObjectValue") + GearButton.RobloxLocked = true + GearButton.Name = "GearButton" + GearButton.Parent = SwapSlot + + local Tabs = Instance.new("Frame") + Tabs.Name = "Tabs" + Tabs.Visible = false + Tabs.Active = false + Tabs.RobloxLocked = true + Tabs.BackgroundColor3 = Color3.new(0,0,0) + Tabs.BackgroundTransparency = 0.08 + Tabs.BorderSizePixel = 0 + Tabs.Position = UDim2.new(0,0,-0.1,-4) + Tabs.Size = UDim2.new(1,0,0.1,4) + Tabs.Parent = Backpack + + -- Tabs Children + + local tabLine = Instance.new("Frame") + tabLine.RobloxLocked = true + tabLine.Name = "TabLine" + tabLine.BackgroundColor3 = Color3.new(53/255, 53/255, 53/255) + tabLine.BorderSizePixel = 0 + tabLine.Position = UDim2.new(0,5,1,-4) + tabLine.Size = UDim2.new(1,-10,0,4) + tabLine.ZIndex = 2 + tabLine.Parent = Tabs + + local InventoryButton = Instance.new("TextButton") + InventoryButton.RobloxLocked = true + InventoryButton.Name = "InventoryButton" + InventoryButton.Size = UDim2.new(0,60,0,30) + InventoryButton.Position = UDim2.new(0,7,1,-31) + InventoryButton.BackgroundColor3 = Color3.new(1,1,1) + InventoryButton.BorderColor3 = Color3.new(1,1,1) + InventoryButton.Font = Enum.Font.ArialBold + InventoryButton.FontSize = Enum.FontSize.Size18 + InventoryButton.Text = "Gear" + InventoryButton.AutoButtonColor = false + InventoryButton.TextColor3 = Color3.new(0,0,0) + InventoryButton.Selected = true + InventoryButton.Active = true + InventoryButton.ZIndex = 3 + InventoryButton.Parent = Tabs + + if game.CoreGui.Version >= 8 then + local WardrobeButton = Instance.new("TextButton") + WardrobeButton.RobloxLocked = true + WardrobeButton.Name = "WardrobeButton" + WardrobeButton.Size = UDim2.new(0,90,0,30) + WardrobeButton.Position = UDim2.new(0,77,1,-31) + WardrobeButton.BackgroundColor3 = Color3.new(0,0,0) + WardrobeButton.BorderColor3 = Color3.new(1,1,1) + WardrobeButton.Font = Enum.Font.ArialBold + WardrobeButton.FontSize = Enum.FontSize.Size18 + WardrobeButton.Text = "Wardrobe" + WardrobeButton.AutoButtonColor = false + WardrobeButton.TextColor3 = Color3.new(1,1,1) + WardrobeButton.Selected = false + WardrobeButton.Active = true + WardrobeButton.Parent = Tabs + end + + local closeButton = Instance.new("TextButton") + closeButton.RobloxLocked = true + closeButton.Name = "CloseButton" + closeButton.Font = Enum.Font.ArialBold + closeButton.FontSize = Enum.FontSize.Size24 + closeButton.Position = UDim2.new(1,-33,0,4) + closeButton.Size = UDim2.new(0,30,0,30) + closeButton.Style = Enum.ButtonStyle.RobloxButton + closeButton.Text = "" + closeButton.TextColor3 = Color3.new(1,1,1) + closeButton.Parent = Tabs + closeButton.Modal = true + + --closeButton child + local XImage = Instance.new("ImageLabel") + XImage.RobloxLocked = true + XImage.Name = "XImage" + game:GetService("ContentProvider"):Preload("http://www.mete0r.xyz/asset/?id=75547445") + XImage.Image = "http://www.mete0r.xyz/asset/?id=75547445" --TODO: move to rbxasset + XImage.BackgroundTransparency = 1 + XImage.Position = UDim2.new(-.25,-1,-.25,-1) + XImage.Size = UDim2.new(1.5,2,1.5,2) + XImage.ZIndex = 2 + XImage.Parent = closeButton + + -- Generic Search gui used across backpack + local SearchFrame = Instance.new("Frame") + SearchFrame.RobloxLocked = true + SearchFrame.Name = "SearchFrame" + SearchFrame.BackgroundTransparency = 1 + SearchFrame.Position = UDim2.new(1,-220,0,2) + SearchFrame.Size = UDim2.new(0,220,0,24) + SearchFrame.Parent = Backpack + + -- SearchFrame Children + local SearchButton = Instance.new("ImageButton") + SearchButton.RobloxLocked = true + SearchButton.Name = "SearchButton" + SearchButton.Size = UDim2.new(0,25,0,25) + SearchButton.BackgroundTransparency = 1 + SearchButton.Image = "rbxasset://textures/ui/SearchIcon.png" + SearchButton.Parent = SearchFrame + + local SearchBoxFrame = Instance.new("TextButton") + SearchBoxFrame.RobloxLocked = true + SearchBoxFrame.Position = UDim2.new(0,25,0,-2) + SearchBoxFrame.Size = UDim2.new(1,-28,0,30) + SearchBoxFrame.Name = "SearchBoxFrame" + SearchBoxFrame.Text = "" + SearchBoxFrame.Style = Enum.ButtonStyle.RobloxRoundButton + SearchBoxFrame.Parent = SearchFrame + + -- SearchBoxFrame Children + local SearchBox = Instance.new("TextBox") + SearchBox.RobloxLocked = true + SearchBox.Name = "SearchBox" + SearchBox.BackgroundTransparency = 1 + SearchBox.Font = Enum.Font.ArialBold + SearchBox.FontSize = Enum.FontSize.Size12 + SearchBox.Position = UDim2.new(0,-5,0,-5) + SearchBox.Size = UDim2.new(1,10,1,10) + SearchBox.TextColor3 = Color3.new(1,1,1) + SearchBox.TextXAlignment = Enum.TextXAlignment.Left + SearchBox.ZIndex = 2 + SearchBox.TextWrap = true + SearchBox.Text = "Search..." + SearchBox.Parent = SearchBoxFrame + + + local ResetButton = Instance.new("TextButton") + ResetButton.RobloxLocked = true + ResetButton.Visible = false + ResetButton.Name = "ResetButton" + ResetButton.Position = UDim2.new(1,-26,0,3) + ResetButton.Size = UDim2.new(0,20,0,20) + ResetButton.Style = Enum.ButtonStyle.RobloxButtonDefault + ResetButton.Text = "X" + ResetButton.TextColor3 = Color3.new(1,1,1) + ResetButton.Font = Enum.Font.ArialBold + ResetButton.FontSize = Enum.FontSize.Size18 + ResetButton.ZIndex = 3 + ResetButton.Parent = SearchFrame + +------------------------------- GEAR ------------------------------------------------------- + local Gear = Instance.new("Frame") + Gear.Name = "Gear" + Gear.RobloxLocked = true + Gear.BackgroundTransparency = 1 + Gear.Size = UDim2.new(1,0,1,0) + Gear.ClipsDescendants = true + Gear.Parent = Backpack + + -- Gear Children + local AssetsList = Instance.new("Frame") + AssetsList.RobloxLocked = true + AssetsList.Name = "AssetsList" + AssetsList.BackgroundTransparency = 1 + AssetsList.Size = UDim2.new(0.2,0,1,0) + AssetsList.Style = Enum.FrameStyle.RobloxSquare + AssetsList.Visible = false + AssetsList.Parent = Gear + + local GearGrid = Instance.new("Frame") + GearGrid.RobloxLocked = true + GearGrid.Name = "GearGrid" + GearGrid.Size = UDim2.new(0.95, 0, 1, 0) + GearGrid.BackgroundTransparency = 1 + GearGrid.Parent = Gear + + + local GearButton = Instance.new("ImageButton") + GearButton.RobloxLocked = true + GearButton.Visible = false + GearButton.Name = "GearButton" + GearButton.Size = UDim2.new(0, 54, 0, 54) + GearButton.Style = 'Custom' + GearButton.Parent = GearGrid + GearButton.BackgroundTransparency = 1.0 + + local slotBackground = Instance.new('Frame') + slotBackground.Name = 'Background' + slotBackground.BackgroundTransparency = 1.0 + slotBackground.Size = UDim2.new(1, 16, 1, 16) + slotBackground.Position = UDim2.new(0, -8, 0, -8) + slotBackground.Parent = GearButton + slotBackground.Style = "DropShadow" + + + -- GearButton Children + local GearReference = Instance.new("ObjectValue") + GearReference.RobloxLocked = true + GearReference.Name = "GearReference" + GearReference.Parent = GearButton + + local GreyOutButton = Instance.new("Frame") + GreyOutButton.RobloxLocked = true + GreyOutButton.Name = "GreyOutButton" + GreyOutButton.BackgroundTransparency = 0.5 + GreyOutButton.Size = UDim2.new(1,0,1,0) + GreyOutButton.Active = true + GreyOutButton.Visible = false + GreyOutButton.ZIndex = 3 + GreyOutButton.Parent = GearButton + + local GearText = Instance.new("TextLabel") + GearText.RobloxLocked = true + GearText.Name = "GearText" + GearText.BackgroundTransparency = 1 + GearText.Font = Enum.Font.Arial + GearText.FontSize = Enum.FontSize.Size14 + GearText.Position = UDim2.new(0,-8,0,-8) + GearText.Size = UDim2.new(1,16,1,16) + GearText.Text = "" + GearText.ZIndex = 2 + GearText.TextColor3 = Color3.new(1,1,1) + GearText.TextWrap = true + GearText.Parent = GearButton + + local GearGridScrollingArea = Instance.new("Frame") + GearGridScrollingArea.RobloxLocked = true + GearGridScrollingArea.Name = "GearGridScrollingArea" + GearGridScrollingArea.Position = UDim2.new(1, -19, 0, 35) + GearGridScrollingArea.Size = UDim2.new(0, 17, 1, -45) + GearGridScrollingArea.BackgroundTransparency = 1 + GearGridScrollingArea.Parent = Gear + + local GearLoadouts = Instance.new("Frame") + GearLoadouts.RobloxLocked = true + GearLoadouts.Name = "GearLoadouts" + GearLoadouts.BackgroundTransparency = 1 + GearLoadouts.Position = UDim2.new(0.7,23,0.5,1) + GearLoadouts.Size = UDim2.new(0.3,-23,0.5,-1) + GearLoadouts.Parent = Gear + GearLoadouts.Visible = false + + -- GearLoadouts Children + local GearLoadoutsHeader = Instance.new("Frame") + GearLoadoutsHeader.RobloxLocked = true + GearLoadoutsHeader.Name = "GearLoadoutsHeader" + GearLoadoutsHeader.BackgroundColor3 = Color3.new(0,0,0) + GearLoadoutsHeader.BackgroundTransparency = 0.2 + GearLoadoutsHeader.BorderColor3 = Color3.new(1,0,0) + GearLoadoutsHeader.Size = UDim2.new(1,2,0.15,-1) + GearLoadoutsHeader.Parent = GearLoadouts + + -- GearLoadoutsHeader Children + local LoadoutsHeaderText = Instance.new("TextLabel") + LoadoutsHeaderText.RobloxLocked = true + LoadoutsHeaderText.Name = "LoadoutsHeaderText" + LoadoutsHeaderText.BackgroundTransparency = 1 + LoadoutsHeaderText.Font = Enum.Font.ArialBold + LoadoutsHeaderText.FontSize = Enum.FontSize.Size18 + LoadoutsHeaderText.Size = UDim2.new(1,0,1,0) + LoadoutsHeaderText.Text = "Loadouts" + LoadoutsHeaderText.TextColor3 = Color3.new(1,1,1) + LoadoutsHeaderText.Parent = GearLoadoutsHeader + + local GearLoadoutsScrollingArea = GearGridScrollingArea:clone() + GearLoadoutsScrollingArea.RobloxLocked = true + GearLoadoutsScrollingArea.Name = "GearLoadoutsScrollingArea" + GearLoadoutsScrollingArea.Position = UDim2.new(1,-15,0.15,2) + GearLoadoutsScrollingArea.Size = UDim2.new(0,17,0.85,-2) + GearLoadoutsScrollingArea.Parent = GearLoadouts + + local LoadoutsList = Instance.new("Frame") + LoadoutsList.RobloxLocked = true + LoadoutsList.Name = "LoadoutsList" + LoadoutsList.Position = UDim2.new(0,0,0.15,2) + LoadoutsList.Size = UDim2.new(1,-17,0.85,-2) + LoadoutsList.Style = Enum.FrameStyle.RobloxSquare + LoadoutsList.Parent = GearLoadouts + + local GearPreview = Instance.new("Frame") + GearPreview.RobloxLocked = true + GearPreview.Name = "GearPreview" + GearPreview.Position = UDim2.new(0.7,23,0,0) + GearPreview.Size = UDim2.new(0.3,-28,0.5,-1) + GearPreview.BackgroundTransparency = 1 + GearPreview.ZIndex = 7 + GearPreview.Parent = Gear + + -- GearPreview Children + local GearStats = Instance.new("Frame") + GearStats.RobloxLocked = true + GearStats.Name = "GearStats" + GearStats.BackgroundTransparency = 1 + GearStats.Position = UDim2.new(0,0,0.75,0) + GearStats.Size = UDim2.new(1,0,0.25,0) + GearStats.ZIndex = 8 + GearStats.Parent = GearPreview + + -- GearStats Children + local GearName = Instance.new("TextLabel") + GearName.RobloxLocked = true + GearName.Name = "GearName" + GearName.BackgroundTransparency = 1 + GearName.Font = Enum.Font.ArialBold + GearName.FontSize = Enum.FontSize.Size18 + GearName.Position = UDim2.new(0,-3,0,0) + GearName.Size = UDim2.new(1,6,1,5) + GearName.Text = "" + GearName.TextColor3 = Color3.new(1,1,1) + GearName.TextWrap = true + GearName.ZIndex = 9 + GearName.Parent = GearStats + + local GearImage = Instance.new("ImageLabel") + GearImage.RobloxLocked = true + GearImage.Name = "GearImage" + GearImage.Image = "" + GearImage.BackgroundTransparency = 1 + GearImage.Position = UDim2.new(0.125,0,0,0) + GearImage.Size = UDim2.new(0.75,0,0.75,0) + GearImage.ZIndex = 8 + GearImage.Parent = GearPreview + + --GearImage Children + local GearIcons = Instance.new("Frame") + GearIcons.BackgroundColor3 = Color3.new(0,0,0) + GearIcons.BackgroundTransparency = 0.5 + GearIcons.BorderSizePixel = 0 + GearIcons.RobloxLocked = true + GearIcons.Name = "GearIcons" + GearIcons.Position = UDim2.new(0.4,2,0.85,-2) + GearIcons.Size = UDim2.new(0.6,0,0.15,0) + GearIcons.Visible = false + GearIcons.ZIndex = 9 + GearIcons.Parent = GearImage + + -- GearIcons Children + local GenreImage = Instance.new("ImageLabel") + GenreImage.RobloxLocked = true + GenreImage.Name = "GenreImage" + GenreImage.BackgroundColor3 = Color3.new(102/255,153/255,1) + GenreImage.BackgroundTransparency = 0.5 + GenreImage.BorderSizePixel = 0 + GenreImage.Size = UDim2.new(0.25,0,1,0) + GenreImage.Parent = GearIcons + + local AttributeOneImage = GenreImage:clone() + AttributeOneImage.RobloxLocked = true + AttributeOneImage.Name = "AttributeOneImage" + AttributeOneImage.BackgroundColor3 = Color3.new(1,51/255,0) + AttributeOneImage.Position = UDim2.new(0.25,0,0,0) + AttributeOneImage.Parent = GearIcons + + local AttributeTwoImage = GenreImage:clone() + AttributeTwoImage.RobloxLocked = true + AttributeTwoImage.Name = "AttributeTwoImage" + AttributeTwoImage.BackgroundColor3 = Color3.new(153/255,1,153/255) + AttributeTwoImage.Position = UDim2.new(0.5,0,0,0) + AttributeTwoImage.Parent = GearIcons + + local AttributeThreeImage = GenreImage:clone() + AttributeThreeImage.RobloxLocked = true + AttributeThreeImage.Name = "AttributeThreeImage" + AttributeThreeImage.BackgroundColor3 = Color3.new(0,0.5,0.5) + AttributeThreeImage.Position = UDim2.new(0.75,0,0,0) + AttributeThreeImage.Parent = GearIcons + +------------------------------- WARDROBE ------------------------------------------------------- + if game.CoreGui.Version < 8 then + -- no need for this to stick around, we aren't ready for wardrobe + script:remove() + return + end + + local function makeCharFrame(frameName, parent) + local frame = Instance.new("Frame") + frame.RobloxLocked = true + frame.Size = UDim2.new(1,0,1,-70) + frame.Position = UDim2.new(0,0,0,20) + frame.Name = frameName + frame.BackgroundTransparency = 1 + frame.Parent = parent + frame.Visible = false + return frame + end + local function makeZone( zoneName, image, size, position, parent ) + local zone = Instance.new("ImageLabel") + zone.RobloxLocked = true + zone.Name = zoneName + zone.Image = image + zone.Size = size + zone.BackgroundTransparency = 1 + zone.Position = position + zone.Parent = parent + return zone + end + local function makeStyledButton( buttonName, size, position, parent, buttonStyle ) + local button = Instance.new("ImageButton") + button.RobloxLocked = true + button.Name = buttonName + button.Size = size + button.Position = position + if buttonStyle then + button.Style = buttonStyle + else + button.BackgroundColor3 = Color3.new(0,0,0) + button.BorderColor3 = Color3.new(1,1,1) + end + button.Parent = parent + return button + end + local function makeTextLabel( TextLabelName,text,position,parent ) + local label = Instance.new("TextLabel") + label.RobloxLocked = true + label.BackgroundTransparency = 1 + label.Size = UDim2.new(0,32,0,14) + label.Name = TextLabelName + label.Font = Enum.Font.Arial + label.TextColor3 = Color3.new(1,1,1) + label.FontSize = Enum.FontSize.Size14 + label.Text = text + label.Position = position + label.Parent = parent + end + + + local Wardrobe = Instance.new("Frame") + Wardrobe.Name = "Wardrobe" + Wardrobe.RobloxLocked = true + Wardrobe.BackgroundTransparency = 1 + Wardrobe.Visible = false + Wardrobe.Size = UDim2.new(1,0,1,0) + Wardrobe.Parent = Backpack + + local AssetList = Instance.new("Frame") + AssetList.RobloxLocked = true + AssetList.Name = "AssetList" + AssetList.Position = UDim2.new(0,4,0,5) + AssetList.Size = UDim2.new(0,85,1,-5) + AssetList.BackgroundTransparency = 1 + AssetList.Visible = true + AssetList.Parent = Wardrobe + + local PreviewAssetFrame = Instance.new("Frame") + PreviewAssetFrame.RobloxLocked = true + PreviewAssetFrame.Name = "PreviewAssetFrame" + PreviewAssetFrame.BackgroundTransparency = 1 + PreviewAssetFrame.Position = UDim2.new(1,-240,0,30) + PreviewAssetFrame.Size = UDim2.new(0,250,0,250) + PreviewAssetFrame.Parent = Wardrobe + + local PreviewAssetBacking = Instance.new("TextButton") + PreviewAssetBacking.RobloxLocked = true + PreviewAssetBacking.Name = "PreviewAssetBacking" + PreviewAssetBacking.Active = false + PreviewAssetBacking.Text = "" + PreviewAssetBacking.AutoButtonColor = false + PreviewAssetBacking.Size = UDim2.new(1,0,1,0) + PreviewAssetBacking.Style = Enum.ButtonStyle.RobloxButton + PreviewAssetBacking.Visible = false + PreviewAssetBacking.ZIndex = 9 + PreviewAssetBacking.Parent = PreviewAssetFrame + + local PreviewAssetImage = Instance.new("ImageLabel") + PreviewAssetImage.RobloxLocked = true + PreviewAssetImage.Name = "PreviewAssetImage" + PreviewAssetImage.BackgroundTransparency = 0.8 + PreviewAssetImage.Position = UDim2.new(0.5,-100,0,0) + PreviewAssetImage.Size = UDim2.new(0,200,0,200) + PreviewAssetImage.BorderSizePixel = 0 + PreviewAssetImage.ZIndex = 10 + PreviewAssetImage.Parent = PreviewAssetBacking + + local AssetNameLabel = Instance.new("TextLabel") + AssetNameLabel.Name = "AssetNameLabel" + AssetNameLabel.RobloxLocked = true + AssetNameLabel.BackgroundTransparency = 1 + AssetNameLabel.Position = UDim2.new(0,0,1,-20) + AssetNameLabel.Size = UDim2.new(0.5,0,0,24) + AssetNameLabel.ZIndex = 10 + AssetNameLabel.Font = Enum.Font.Arial + AssetNameLabel.Text = "" + AssetNameLabel.TextColor3 = Color3.new(1,1,1) + AssetNameLabel.TextScaled = true + AssetNameLabel.Parent = PreviewAssetBacking + + local AssetTypeLabel = AssetNameLabel:clone() + AssetTypeLabel.RobloxLocked = true + AssetTypeLabel.Name = "AssetTypeLabel" + AssetTypeLabel.TextScaled = false + AssetTypeLabel.FontSize = Enum.FontSize.Size18 + AssetTypeLabel.Position = UDim2.new(0.5,3,1,-20) + AssetTypeLabel.Parent = PreviewAssetBacking + + + + local PreviewButton = Instance.new("TextButton") + PreviewButton.RobloxLocked = true + PreviewButton.Name = "PreviewButton" + PreviewButton.Text = "Rotate" + PreviewButton.BackgroundColor3 = Color3.new(0,0,0) + PreviewButton.BackgroundTransparency = 0.5 + PreviewButton.BorderColor3 = Color3.new(1,1,1) + PreviewButton.BorderSizePixel = 0 + PreviewButton.Position = UDim2.new(1.2,-62,1,-50) + PreviewButton.Size = UDim2.new(0,125,0,50) + PreviewButton.Font = Enum.Font.ArialBold + PreviewButton.FontSize = Enum.FontSize.Size24 + PreviewButton.TextColor3 = Color3.new(1,1,1) + PreviewButton.TextWrapped = true + PreviewButton.TextStrokeTransparency = 0 + PreviewButton.Parent = Wardrobe + + local CharacterPane = Instance.new("Frame") + CharacterPane.RobloxLocked = true + CharacterPane.Name = "CharacterPane" + CharacterPane.Position = UDim2.new(1,-220,0,32) + CharacterPane.Size = UDim2.new(0,220,1,-40) + CharacterPane.BackgroundTransparency = 1 + CharacterPane.Visible = true + CharacterPane.Parent = Wardrobe + + --CharacterPane Children + local FaceFrame = makeCharFrame("FacesFrame", CharacterPane) + game:GetService("ContentProvider"):Preload("http://www.mete0r.xyz/asset/?id=75460621") + makeZone("FaceZone","http://www.mete0r.xyz/asset/?id=75460621",UDim2.new(0,157,0,137),UDim2.new(0.5,-78,0.5,-68),FaceFrame) + makeStyledButton("Face",UDim2.new(0,64,0,64),UDim2.new(0.5,-32,0.5,-135),FaceFrame) + + local HeadFrame = makeCharFrame("HeadsFrame", CharacterPane) + makeZone("FaceZone","http://www.mete0r.xyz/asset/?id=75460621",UDim2.new(0,157,0,137),UDim2.new(0.5,-78,0.5,-68),HeadFrame) + makeStyledButton("Head",UDim2.new(0,64,0,64),UDim2.new(0.5,-32,0.5,-135),HeadFrame) + + local HatsFrame = makeCharFrame("HatsFrame", CharacterPane) + game:GetService("ContentProvider"):Preload("http://www.mete0r.xyz/asset/?id=75457888") + local HatsZone = makeZone("HatsZone","http://www.mete0r.xyz/asset/?id=75457888",UDim2.new(0,186,0,184),UDim2.new(0.5,-93,0.5,-100), HatsFrame) + makeStyledButton("Hat1Button",UDim2.new(0,64,0,64),UDim2.new(0,-1,0,-1),HatsZone,Enum.ButtonStyle.RobloxButton) + makeStyledButton("Hat2Button",UDim2.new(0,64,0,64),UDim2.new(0,63,0,-1),HatsZone,Enum.ButtonStyle.RobloxButton) + makeStyledButton("Hat3Button",UDim2.new(0,64,0,64),UDim2.new(0,127,0,-1),HatsZone,Enum.ButtonStyle.RobloxButton) + + local PantsFrame = makeCharFrame("PantsFrame", CharacterPane) + game:GetService("ContentProvider"):Preload("http://www.mete0r.xyz/asset/?id=75457920") + makeZone("PantsZone","http://www.mete0r.xyz/asset/?id=75457920",UDim2.new(0,121,0,99),UDim2.new(0.5,-60,0.5,-100),PantsFrame) + + local pantFrame = Instance.new("Frame") + pantFrame.RobloxLocked = true + pantFrame.Size = UDim2.new(0,25,0,56) + pantFrame.Position = UDim2.new(0.5,-26,0.5,0) + pantFrame.BackgroundColor3 = Color3.new(0,0,0) + pantFrame.BorderColor3 = Color3.new(1,1,1) + pantFrame.Name = "PantFrame" + pantFrame.Parent = PantsFrame + + local otherPantFrame = pantFrame:clone() + otherPantFrame.Position = UDim2.new(0.5,3,0.5,0) + otherPantFrame.RobloxLocked = true + otherPantFrame.Parent = PantsFrame + + local CurrentPants = Instance.new("ImageButton") + CurrentPants.RobloxLocked = true + CurrentPants.BackgroundTransparency = 1 + CurrentPants.ZIndex = 2 + CurrentPants.Name = "CurrentPants" + CurrentPants.Position = UDim2.new(0.5,-31,0.5,-4) + CurrentPants.Size = UDim2.new(0,54,0,59) + CurrentPants.Parent = PantsFrame + + local MeshFrame = makeCharFrame("PackagesFrame", CharacterPane) + local torsoButton = makeStyledButton("TorsoMeshButton", UDim2.new(0,64,0,64),UDim2.new(0.5,-32,0.5,-110),MeshFrame,Enum.ButtonStyle.RobloxButton) + makeTextLabel("TorsoLabel","Torso",UDim2.new(0.5,-16,0,-25),torsoButton) + local leftLegButton = makeStyledButton("LeftLegMeshButton", UDim2.new(0,64,0,64),UDim2.new(0.5,0,0.5,-25),MeshFrame,Enum.ButtonStyle.RobloxButton) + makeTextLabel("LeftLegLabel","Left Leg",UDim2.new(0.5,-16,0,-25),leftLegButton) + local rightLegButton = makeStyledButton("RightLegMeshButton", UDim2.new(0,64,0,64),UDim2.new(0.5,-64,0.5,-25),MeshFrame,Enum.ButtonStyle.RobloxButton) + makeTextLabel("RightLegLabel","Right Leg",UDim2.new(0.5,-16,0,-25),rightLegButton) + local rightArmButton = makeStyledButton("RightArmMeshButton", UDim2.new(0,64,0,64),UDim2.new(0.5,-96,0.5,-110),MeshFrame,Enum.ButtonStyle.RobloxButton) + makeTextLabel("RightArmLabel","Right Arm",UDim2.new(0.5,-16,0,-25),rightArmButton) + local leftArmButton = makeStyledButton("LeftArmMeshButton", UDim2.new(0,64,0,64),UDim2.new(0.5,32,0.5,-110),MeshFrame,Enum.ButtonStyle.RobloxButton) + makeTextLabel("LeftArmLabel","Left Arm",UDim2.new(0.5,-16,0,-25),leftArmButton) + + local TShirtFrame = makeCharFrame("T-ShirtsFrame",CharacterPane) + game:GetService("ContentProvider"):Preload("http://www.mete0r.xyz/asset/?id=75460642") + makeZone("TShirtZone","http://www.mete0r.xyz/asset/?id=75460642",UDim2.new(0,121,0,154),UDim2.new(0.5,-60,0.5,-100),TShirtFrame) + makeStyledButton("TShirtButton", UDim2.new(0,64,0,64),UDim2.new(0.5,-32,0.5,-64),TShirtFrame) + + + local ShirtFrame = makeCharFrame("ShirtsFrame", CharacterPane) + makeZone("ShirtZone","http://www.mete0r.xyz/asset/?id=75460642",UDim2.new(0,121,0,154),UDim2.new(0.5,-60,0.5,-100),ShirtFrame) + makeStyledButton("ShirtButton", UDim2.new(0,64,0,64),UDim2.new(0.5,-32,0.5,-64),ShirtFrame) + + + local ColorFrame = makeCharFrame("ColorFrame", CharacterPane) + game:GetService("ContentProvider"):Preload("http://www.mete0r.xyz/asset/?id=76049888") + local ColorZone = makeZone("ColorZone","http://www.mete0r.xyz/asset/?id=76049888", UDim2.new(0,120,0,150),UDim2.new(0.5,-60,0.5,-100),ColorFrame) + makeStyledButton("Head",UDim2.new(0.26,0,0.19,0),UDim2.new(0.37,0,0.02,0),ColorZone).AutoButtonColor = false + makeStyledButton("LeftArm",UDim2.new(0.19,0,0.36,0),UDim2.new(0.78,0,0.26,0),ColorZone).AutoButtonColor = false + makeStyledButton("RightArm",UDim2.new(0.19,0,0.36,0),UDim2.new(0.025,0,0.26,0),ColorZone).AutoButtonColor = false + makeStyledButton("Torso",UDim2.new(0.43,0,0.36,0),UDim2.new(0.28,0,0.26,0),ColorZone).AutoButtonColor = false + makeStyledButton("RightLeg",UDim2.new(0.19,0,0.31,0),UDim2.new(0.275,0,0.67,0),ColorZone).AutoButtonColor = false + makeStyledButton("LeftLeg",UDim2.new(0.19,0,0.31,0),UDim2.new(0.525,0,0.67,0),ColorZone).AutoButtonColor = false + + -- Character Panel label (shows what category we are currently browsing) + local CategoryLabel = Instance.new("TextLabel") + CategoryLabel.RobloxLocked = true + CategoryLabel.Name = "CategoryLabel" + CategoryLabel.BackgroundTransparency = 1 + CategoryLabel.Font = Enum.Font.ArialBold + CategoryLabel.FontSize = Enum.FontSize.Size18 + CategoryLabel.Position = UDim2.new(0,0,0,-7) + CategoryLabel.Size = UDim2.new(1,0,0,20) + CategoryLabel.TextXAlignment = Enum.TextXAlignment.Center + CategoryLabel.Text = "All" + CategoryLabel.TextColor3 = Color3.new(1,1,1) + CategoryLabel.Parent = CharacterPane + + --Save Button + local SaveButton = Instance.new("TextButton") + SaveButton.RobloxLocked = true + SaveButton.Name = "SaveButton" + SaveButton.Size = UDim2.new(0.6,0,0,50) + SaveButton.Position = UDim2.new(0.2,0,1,-50) + SaveButton.Style = Enum.ButtonStyle.RobloxButton + SaveButton.Selected = false + SaveButton.Font = Enum.Font.ArialBold + SaveButton.FontSize = Enum.FontSize.Size18 + SaveButton.Text = "Save" + SaveButton.TextColor3 = Color3.new(1,1,1) + SaveButton.Parent = CharacterPane + +-- no need for this to stick around + +script:Destroy() diff --git a/assets/ugc/869 b/assets/ugc/869 new file mode 100644 index 0000000..1d02742 --- /dev/null +++ b/assets/ugc/869 @@ -0,0 +1,429 @@ +--rbxassetid%869% +-- This script manages context switches in the backpack (Gear to Wardrobe, etc.) and player state changes. Also manages global functions across different tabs (currently only search) +if game.CoreGui.Version < 7 then return end -- peace out if we aren't using the right client + +-- basic functions +local function waitForChild(instance, name) + while not instance:FindFirstChild(name) do + instance.ChildAdded:wait() + end + return instance:FindFirstChild(name) +end +local function waitForProperty(instance, property) + while not instance[property] do + instance.Changed:wait() + end +end + +-- don't do anything if we are in an empty game +waitForChild(game,"Players") +if #game.Players:GetChildren() < 1 then + game.Players.ChildAdded:wait() +end +-- make sure everything is loaded in before we do anything +-- get our local player +waitForProperty(game.Players,"LocalPlayer") +local player = game.Players.LocalPlayer + + + +------------------------ Locals ------------------------------ +local backpack = script.Parent +waitForChild(backpack,"Gear") + +local screen = script.Parent.Parent +assert(screen:IsA("ScreenGui")) + +waitForChild(backpack, "Tabs") +waitForChild(backpack.Tabs, "CloseButton") +local closeButton = backpack.Tabs.CloseButton + +waitForChild(backpack.Tabs, "InventoryButton") +local inventoryButton = backpack.Tabs.InventoryButton +if game.CoreGui.Version >= 8 then + waitForChild(backpack.Tabs, "WardrobeButton") + local wardrobeButton = backpack.Tabs.WardrobeButton +end +waitForChild(backpack.Parent,"ControlFrame") +local backpackButton = waitForChild(backpack.Parent.ControlFrame,"BackpackButton") +local currentTab = "gear" + +local searchFrame = waitForChild(backpack,"SearchFrame") +waitForChild(backpack.SearchFrame,"SearchBoxFrame") +local searchBox = waitForChild(backpack.SearchFrame.SearchBoxFrame,"SearchBox") +local searchButton = waitForChild(backpack.SearchFrame,"SearchButton") +local resetButton = waitForChild(backpack.SearchFrame,"ResetButton") + +local robloxGui = waitForChild(Game.CoreGui, 'RobloxGui') +local currentLoadout = waitForChild(robloxGui, 'CurrentLoadout') + +local canToggle = true +local readyForNextEvent = true +local backpackIsOpen = false +local active = true +local disabledByDeveloper = false + +local humanoidDiedCon = nil + +local backpackButtonPos + +local guiTweenSpeed = 0.25 -- how quickly we open/close the backpack + +local searchDefaultText = "Search..." +local tilde = "~" +local backquote = "`" + +local backpackSize = UDim2.new(0, 600, 0, 400) + +if robloxGui.AbsoluteSize.Y <= 500 then + backpackSize = UDim2.new(0, 200, 0, 140) +end + + +------------------------ End Locals --------------------------- + + +---------------------------------------- Public Event Setup ---------------------------------------- + +function createPublicEvent(eventName) + assert(eventName, "eventName is nil") + assert(tostring(eventName),"eventName is not a string") + + local newEvent = Instance.new("BindableEvent") + newEvent.Name = tostring(eventName) + newEvent.Parent = script + + return newEvent +end + +function createPublicFunction(funcName, invokeFunc) + assert(funcName, "funcName is nil") + assert(tostring(funcName), "funcName is not a string") + assert(invokeFunc, "invokeFunc is nil") + assert(type(invokeFunc) == "function", "invokeFunc should be of type 'function'") + + local newFunction = Instance.new("BindableFunction") + newFunction.Name = tostring(funcName) + newFunction.OnInvoke = invokeFunc + newFunction.Parent = script + + return newFunction +end + +-- Events +local resizeEvent = createPublicEvent("ResizeEvent") +local backpackOpenEvent = createPublicEvent("BackpackOpenEvent") +local backpackCloseEvent = createPublicEvent("BackpackCloseEvent") +local tabClickedEvent = createPublicEvent("TabClickedEvent") +local searchRequestedEvent = createPublicEvent("SearchRequestedEvent") +---------------------------------------- End Public Event Setup ---------------------------------------- + + + +--------------------------- Internal Functions ---------------------------------------- + +function deactivateBackpack() + backpack.Visible = false + active = false +end + +function activateBackpack() + initHumanoidDiedConnections() + active = true + backpack.Visible = backpackIsOpen + if backpackIsOpen then + toggleBackpack() + end +end + +function initHumanoidDiedConnections() + if humanoidDiedCon then + humanoidDiedCon:disconnect() + end + waitForProperty(game.Players.LocalPlayer,"Character") + waitForChild(game.Players.LocalPlayer.Character,"Humanoid") + humanoidDiedCon = game.Players.LocalPlayer.Character.Humanoid.Died:connect(deactivateBackpack) +end + +local hideBackpack = function() + backpackIsOpen = false + readyForNextEvent = false + backpackButton.Selected = false + resetSearch() + backpackCloseEvent:Fire(currentTab) + backpack.Tabs.Visible = false + searchFrame.Visible = false + backpack:TweenSizeAndPosition(UDim2.new(0, backpackSize.X.Offset,0, 0), UDim2.new(0.5, -backpackSize.X.Offset/2, 1, -85), Enum.EasingDirection.Out, Enum.EasingStyle.Quad, guiTweenSpeed, true, + function() + game.GuiService:RemoveCenterDialog(backpack) + backpack.Visible = false + backpackButton.Selected = false + end) + delay(guiTweenSpeed,function() + game.GuiService:RemoveCenterDialog(backpack) + backpack.Visible = false + backpackButton.Selected = false + readyForNextEvent = true + canToggle = true + end) +end + +function showBackpack() + game.GuiService:AddCenterDialog(backpack, Enum.CenterDialogType.PlayerInitiatedDialog, + function() + backpack.Visible = true + backpackButton.Selected = true + end, + function() + backpack.Visible = false + backpackButton.Selected = false + end) + backpack.Visible = true + backpackButton.Selected = true + backpack:TweenSizeAndPosition(backpackSize, UDim2.new(0.5, -backpackSize.X.Offset/2, 1, -backpackSize.Y.Offset - 88), Enum.EasingDirection.Out, Enum.EasingStyle.Quad, guiTweenSpeed, true) + delay(guiTweenSpeed,function() + backpack.Tabs.Visible = false + searchFrame.Visible = true + backpackOpenEvent:Fire(currentTab) + canToggle = true + readyForNextEvent = true + backpackButton.Image = "rbxasset://textures/ui/Backpack_Close.png" + backpackButton.Position = UDim2.new(0.5, -7, 1, -backpackSize.Y.Offset - 108) + end) +end + +function toggleBackpack() + if not game.Players.LocalPlayer then return end + if not game.Players.LocalPlayer["Character"] then return end + if not canToggle then return end + if not readyForNextEvent then return end + readyForNextEvent = false + canToggle = false + + backpackIsOpen = not backpackIsOpen + + if backpackIsOpen then + showBackpack() + else + backpackButton.Position = UDim2.new(0.5, -7, 1, -55) + backpackButton.Selected = false + backpackButton.Image = "rbxasset://textures/ui/Backpack_Open.png" + hideBackpack() + + + local clChildren = currentLoadout:GetChildren() + for i = 1, #clChildren do + if clChildren[i] and clChildren[i]:IsA('Frame') then + local frame = clChildren[i] + if #frame:GetChildren() > 0 then + backpackButton.Position = UDim2.new(0.5, -7, 1, -108) + backpackButton.Visible = true + if frame:GetChildren()[1]:IsA('ImageButton') then + local imgButton = frame:GetChildren()[1] + imgButton.Active = true + imgButton.Draggable = false + end + end + end + end + + end +end + +function closeBackpack() + if backpackIsOpen then + toggleBackpack() + end +end + +function setSelected(tab) + assert(tab) + assert(tab:IsA("TextButton")) + + tab.BackgroundColor3 = Color3.new(1,1,1) + tab.TextColor3 = Color3.new(0,0,0) + tab.Selected = true + tab.ZIndex = 3 +end + +function setUnselected(tab) + assert(tab) + assert(tab:IsA("TextButton")) + + tab.BackgroundColor3 = Color3.new(0,0,0) + tab.TextColor3 = Color3.new(1,1,1) + tab.Selected = false + tab.ZIndex = 1 +end + +function updateTabGui(selectedTab) + assert(selectedTab) + + if selectedTab == "gear" then + setSelected(inventoryButton) + setUnselected(wardrobeButton) + elseif selectedTab == "wardrobe" then + setSelected(wardrobeButton) + setUnselected(inventoryButton) + end +end + +function mouseLeaveTab(button) + assert(button) + assert(button:IsA("TextButton")) + + if button.Selected then return end + + button.BackgroundColor3 = Color3.new(0,0,0) +end + +function mouseOverTab(button) + assert(button) + assert(button:IsA("TextButton")) + + if button.Selected then return end + + button.BackgroundColor3 = Color3.new(39/255,39/255,39/255) +end + +function newTabClicked(tabName) + assert(tabName) + tabName = string.lower(tabName) + currentTab = tabName + + updateTabGui(tabName) + tabClickedEvent:Fire(tabName) + resetSearch() +end + +function trim(s) + return (s:gsub("^%s*(.-)%s*$", "%1")) +end + +function splitByWhitespace(text) + if type(text) ~= "string" then return nil end + + local terms = {} + for token in string.gmatch(text, "[^%s]+") do + if string.len(token) > 0 then + table.insert(terms,token) + end + end + return terms +end + +function resetSearchBoxGui() + resetButton.Visible = false + searchBox.Text = searchDefaultText +end + +function doSearch() + local searchText = searchBox.Text + if searchText == "" then + resetSearch() + return + end + searchText = trim(searchText) + resetButton.Visible = true + termTable = splitByWhitespace(searchText) + searchRequestedEvent:Fire(searchText) -- todo: replace this with termtable when table passing is possible +end + +function resetSearch() + resetSearchBoxGui() + searchRequestedEvent:Fire() +end + +local backpackReady = function() + readyForNextEvent = true +end + +function coreGuiChanged(coreGuiType,enabled) + if coreGuiType == Enum.CoreGuiType.Backpack or coreGuiType == Enum.CoreGuiType.All then + active = enabled + disabledByDeveloper = not enabled + + if disabledByDeveloper then + game:GetService("GuiService"):RemoveKey(tilde) + game:GetService("GuiService"):RemoveKey(backquote) + else + game:GetService("GuiService"):AddKey(tilde) + game:GetService("GuiService"):AddKey(backquote) + end + + resetSearch() + searchFrame.Visible = enabled and backpackIsOpen + + currentLoadout.Visible = enabled + backpack.Visible = false + backpackButton.Visible = enabled + end +end + +--------------------------- End Internal Functions ------------------------------------- + + +------------------------------ Public Functions Setup ------------------------------------- +createPublicFunction("CloseBackpack", hideBackpack) +createPublicFunction("BackpackReady", backpackReady) +------------------------------ End Public Functions Setup --------------------------------- + + +------------------------ Connections/Script Main ------------------------------------------- + +coreGuiChanged(Enum.CoreGuiType.Backpack, Game.StarterGui:GetCoreGuiEnabled(Enum.CoreGuiType.Backpack)) +Game.StarterGui.CoreGuiChangedSignal:connect(coreGuiChanged) + +inventoryButton.MouseButton1Click:connect(function() newTabClicked("gear") end) +inventoryButton.MouseEnter:connect(function() mouseOverTab(inventoryButton) end) +inventoryButton.MouseLeave:connect(function() mouseLeaveTab(inventoryButton) end) + +if game.CoreGui.Version >= 8 then + wardrobeButton.MouseButton1Click:connect(function() newTabClicked("wardrobe") end) + wardrobeButton.MouseEnter:connect(function() mouseOverTab(wardrobeButton) end) + wardrobeButton.MouseLeave:connect(function() mouseLeaveTab(wardrobeButton) end) +end + +closeButton.MouseButton1Click:connect(closeBackpack) + +screen.Changed:connect(function(prop) + if prop == "AbsoluteSize" then + resizeEvent:Fire(screen.AbsoluteSize) + end +end) + +-- GuiService key setup +game:GetService("GuiService"):AddKey(tilde) +game:GetService("GuiService"):AddKey(backquote) +game:GetService("GuiService").KeyPressed:connect(function(key) + if not active or disabledByDeveloper then return end + if key == tilde or key == backquote then + toggleBackpack() + end +end) +backpackButton.MouseButton1Click:connect(function() + if not active or disabledByDeveloper then return end + toggleBackpack() +end) + +if game.Players.LocalPlayer["Character"] then + activateBackpack() +end + +game.Players.LocalPlayer.CharacterAdded:connect(activateBackpack) + +-- search functions +searchBox.FocusLost:connect(function(enterPressed) + if enterPressed or searchBox.Text ~= "" then + doSearch() + elseif searchBox.Text == "" then + resetSearch() + end +end) +searchButton.MouseButton1Click:connect(doSearch) +resetButton.MouseButton1Click:connect(resetSearch) + +if searchFrame and robloxGui.AbsoluteSize.Y <= 500 then + searchFrame.RobloxLocked = false + searchFrame:Destroy() +end \ No newline at end of file diff --git a/assets/ugc/870 b/assets/ugc/870 new file mode 100644 index 0000000..f148138 --- /dev/null +++ b/assets/ugc/870 @@ -0,0 +1,872 @@ +--rbxassetid%870% +-- A couple of necessary functions +local function waitForChild(instance, name) + assert(instance) + assert(name) + while not instance:FindFirstChild(name) do + instance.ChildAdded:wait() + end + return instance:FindFirstChild(name) +end +local function waitForProperty(instance, property) + assert(instance) + assert(property) + while not instance[property] do + instance.Changed:wait() + end +end + +local function IsTouchDevice() + return Game:GetService('UserInputService').TouchEnabled +end + + +waitForChild(game,"Players") +waitForProperty(game.Players,"LocalPlayer") +local player = game.Players.LocalPlayer + +local RbxGui, msg = LoadLibrary("RbxGui") +if not RbxGui then print("could not find RbxGui!") return end + +--- Begin Locals +local StaticTabName = "gear" + +local backpack = script.Parent +local screen = script.Parent.Parent + +local backpackItems = {} +local buttons = {} + +local debounce = false +local browsingMenu = false + +local mouseEnterCons = {} +local mouseClickCons = {} + +local characterChildAddedCon = nil +local characterChildRemovedCon = nil +local backpackAddCon = nil + +local playerBackpack = waitForChild(player,"Backpack") + +waitForChild(backpack,"Tabs") + +waitForChild(backpack,"Gear") +local gearPreview = waitForChild(backpack.Gear,"GearPreview") + +local scroller = waitForChild(backpack.Gear,"GearGridScrollingArea") + +local currentLoadout = waitForChild(backpack.Parent,"CurrentLoadout") + +local grid = waitForChild(backpack.Gear,"GearGrid") +local gearButton = waitForChild(grid,"GearButton") + +local swapSlot = waitForChild(script.Parent,"SwapSlot") + +local backpackManager = waitForChild(script.Parent,"CoreScripts/BackpackScripts/BackpackManager") +local backpackOpenEvent = waitForChild(backpackManager,"BackpackOpenEvent") +local backpackCloseEvent = waitForChild(backpackManager,"BackpackCloseEvent") +local tabClickedEvent = waitForChild(backpackManager,"TabClickedEvent") +local resizeEvent = waitForChild(backpackManager,"ResizeEvent") +local searchRequestedEvent = waitForChild(backpackManager,"SearchRequestedEvent") +local tellBackpackReadyFunc = waitForChild(backpackManager,"BackpackReady") + +-- creating scroll bar early as to make sure items get placed correctly +local scrollFrame, scrollUp, scrollDown, recalculateScroll = RbxGui.CreateScrollingFrame(nil, "grid", Vector2.new(6, 6)) + +scrollFrame.Position = UDim2.new(0,0,0,30) +scrollFrame.Size = UDim2.new(1,0,1,-30) +scrollFrame.Parent = backpack.Gear.GearGrid + +local scrollBar = Instance.new("Frame") +scrollBar.Name = "ScrollBar" +scrollBar.BackgroundTransparency = 0.9 +scrollBar.BackgroundColor3 = Color3.new(1,1,1) +scrollBar.BorderSizePixel = 0 +scrollBar.Size = UDim2.new(0, 17, 1, -36) +scrollBar.Position = UDim2.new(0,0,0,18) +scrollBar.Parent = scroller + +scrollDown.Position = UDim2.new(0,0,1,-17) + +scrollUp.Parent = scroller +scrollDown.Parent = scroller + +local scrollFrameLoadout, scrollUpLoadout, scrollDownLoadout, recalculateScrollLoadout = RbxGui.CreateScrollingFrame() + +scrollFrameLoadout.Position = UDim2.new(0,0,0,0) +scrollFrameLoadout.Size = UDim2.new(1,0,1,0) +scrollFrameLoadout.Parent = backpack.Gear.GearLoadouts.LoadoutsList + +local LoadoutButton = Instance.new("TextButton") +LoadoutButton.RobloxLocked = true +LoadoutButton.Name = "LoadoutButton" +LoadoutButton.Font = Enum.Font.ArialBold +LoadoutButton.FontSize = Enum.FontSize.Size14 +LoadoutButton.Position = UDim2.new(0,0,0,0) +LoadoutButton.Size = UDim2.new(1,0,0,32) +LoadoutButton.Style = Enum.ButtonStyle.RobloxButton +LoadoutButton.Text = "Loadout #1" +LoadoutButton.TextColor3 = Color3.new(1,1,1) +LoadoutButton.Parent = scrollFrameLoadout + +local LoadoutButtonTwo = LoadoutButton:clone() +LoadoutButtonTwo.Text = "Loadout #2" +LoadoutButtonTwo.Parent = scrollFrameLoadout + +local LoadoutButtonThree = LoadoutButton:clone() +LoadoutButtonThree.Text = "Loadout #3" +LoadoutButtonThree.Parent = scrollFrameLoadout + +local LoadoutButtonFour = LoadoutButton:clone() +LoadoutButtonFour.Text = "Loadout #4" +LoadoutButtonFour.Parent = scrollFrameLoadout + +local scrollBarLoadout = Instance.new("Frame") +scrollBarLoadout.Name = "ScrollBarLoadout" +scrollBarLoadout.BackgroundTransparency = 0.9 +scrollBarLoadout.BackgroundColor3 = Color3.new(1,1,1) +scrollBarLoadout.BorderSizePixel = 0 +scrollBarLoadout.Size = UDim2.new(0, 17, 1, -36) +scrollBarLoadout.Position = UDim2.new(0,0,0,18) +scrollBarLoadout.Parent = backpack.Gear.GearLoadouts.GearLoadoutsScrollingArea + +scrollDownLoadout.Position = UDim2.new(0,0,1,-17) + +scrollUpLoadout.Parent = backpack.Gear.GearLoadouts.GearLoadoutsScrollingArea +scrollDownLoadout.Parent = backpack.Gear.GearLoadouts.GearLoadoutsScrollingArea + + +-- Begin Functions +function removeFromMap(map,object) + for i = 1, #map do + if map[i] == object then + table.remove(map,i) + break + end + end +end + +function robloxLock(instance) + instance.RobloxLocked = true + children = instance:GetChildren() + if children then + for i, child in ipairs(children) do + robloxLock(child) + end + end +end + +function resize() + local size = 0 + if gearPreview.AbsoluteSize.Y > gearPreview.AbsoluteSize.X then + size = gearPreview.AbsoluteSize.X * 0.75 + else + size = gearPreview.AbsoluteSize.Y * 0.75 + end + + waitForChild(gearPreview,"GearImage") + gearPreview.GearImage.Size = UDim2.new(0,size,0,size) + gearPreview.GearImage.Position = UDim2.new(0,gearPreview.AbsoluteSize.X/2 - size/2,0.75,-size) + + resizeGrid() +end + +function addToGrid(child) + if not child:IsA("Tool") then + if not child:IsA("HopperBin") then + return + end + end + if child:FindFirstChild("RobloxBuildTool") then return end + + for i,v in pairs(backpackItems) do -- check to see if we already have this gear registered + if v == child then return end + end + + table.insert(backpackItems,child) + + local changeCon = child.Changed:connect(function(prop) + if prop == "Name" then + if buttons[child] then + if buttons[child].Image == "" then + buttons[child].GearText.Text = child.Name + end + end + end + end) + local ancestryCon = nil + ancestryCon = child.AncestryChanged:connect(function(theChild,theParent) + local thisObject = nil + for k,v in pairs(backpackItems) do + if v == child then + thisObject = v + break + end + end + + waitForProperty(player,"Character") + waitForChild(player,"Backpack") + if (child.Parent ~= player.Backpack and child.Parent ~= player.Character) then + if ancestryCon then ancestryCon:disconnect() end + if changeCon then changeCon:disconnect() end + + for k,v in pairs(backpackItems) do + if v == thisObject then + if mouseEnterCons[buttons[v]] then mouseEnterCons[buttons[v]]:disconnect() end + if mouseClickCons[buttons[v]] then mouseClickCons[buttons[v]]:disconnect() end + buttons[v].Parent = nil + buttons[v] = nil + break + end + end + + removeFromMap(backpackItems,thisObject) + + resizeGrid() + else + resizeGrid() + end + updateGridActive() + end) + resizeGrid() +end + +function buttonClick(button) + if button:FindFirstChild("UnequipContextMenu") and not button.Active then + button.UnequipContextMenu.Visible = true + browsingMenu = true + end +end + +function previewGear(button) + if not browsingMenu then + gearPreview.Visible = false + gearPreview.GearImage.Image = button.Image + gearPreview.GearStats.GearName.Text = button.GearReference.Value.Name + end +end + +function findEmptySlot() + local smallestNum = nil + local loadout = currentLoadout:GetChildren() + for i = 1, #loadout do + if loadout[i]:IsA("Frame") and #loadout[i]:GetChildren() <= 0 then + local frameNum = tonumber(string.sub(loadout[i].Name,5)) + if frameNum == 0 then frameNum = 10 end + if not smallestNum or (smallestNum > frameNum) then + smallestNum = frameNum + end + end + end + if smallestNum == 10 then smallestNum = 0 end + return smallestNum +end + +function checkForSwap(button,x,y) + local loadoutChildren = currentLoadout:GetChildren() + for i = 1, #loadoutChildren do + if loadoutChildren[i]:IsA("Frame") and string.find(loadoutChildren[i].Name,"Slot") then + if x >= loadoutChildren[i].AbsolutePosition.x and x <= (loadoutChildren[i].AbsolutePosition.x + loadoutChildren[i].AbsoluteSize.x) then + if y >= loadoutChildren[i].AbsolutePosition.y and y <= (loadoutChildren[i].AbsolutePosition.y + loadoutChildren[i].AbsoluteSize.y) then + local slot = tonumber(string.sub(loadoutChildren[i].Name,5)) + swapGearSlot(slot,button) + return true + end + end + end + end + return false +end + +function resizeGrid() + for k,v in pairs(backpackItems) do + if not v:FindFirstChild("RobloxBuildTool") then + if not buttons[v] then + local buttonClone = gearButton:clone() + buttonClone.Parent = grid.ScrollingFrame + buttonClone.Visible = true + buttonClone.Image = v.TextureId + if buttonClone.Image == "" then + buttonClone.GearText.Text = v.Name + end + + buttonClone.GearReference.Value = v + buttonClone.Draggable = true + buttons[v] = buttonClone + + + if not IsTouchDevice() then + local unequipMenu = getGearContextMenu() + + + unequipMenu.Visible = false + unequipMenu.Parent = buttonClone + end + + local beginPos = nil + buttonClone.DragBegin:connect(function(value) + waitForChild(buttonClone, 'Background') + buttonClone['Background'].ZIndex = 10 + buttonClone.ZIndex = 10 + beginPos = value + end) + buttonClone.DragStopped:connect(function(x,y) + waitForChild(buttonClone, 'Background') + buttonClone['Background'].ZIndex = 1.0 + buttonClone.ZIndex = 2 + if beginPos ~= buttonClone.Position then + if not checkForSwap(buttonClone,x,y) then + buttonClone:TweenPosition(beginPos,Enum.EasingDirection.Out, Enum.EasingStyle.Quad, 0.5, true) + buttonClone.Draggable = false + delay(0.5,function() + buttonClone.Draggable = true + end) + else + buttonClone.Position = beginPos + end + end + end) + local clickTime = tick() + mouseEnterCons[buttonClone] = buttonClone.MouseEnter:connect(function() previewGear(buttonClone) end) + mouseClickCons[buttonClone] = buttonClone.MouseButton1Click:connect(function() + local newClickTime = tick() + if buttonClone.Active and (newClickTime - clickTime) < 0.5 then + local slot = findEmptySlot() + if slot then + buttonClone.ZIndex = 1 + swapGearSlot(slot,buttonClone) + end + else + buttonClick(buttonClone) + end + clickTime = newClickTime + end) + end + end + end + recalculateScroll() +end + +function showPartialGrid(subset) + for k,v in pairs(buttons) do + v.Parent = nil + end + if subset then + for k,v in pairs(subset) do + v.Parent = grid.ScrollingFrame + end + end + recalculateScroll() +end + +function showEntireGrid() + for k,v in pairs(buttons) do + v.Parent = grid.ScrollingFrame + end + recalculateScroll() +end + +function inLoadout(gear) + local children = currentLoadout:GetChildren() + for i = 1, #children do + if children[i]:IsA("Frame") then + local button = children[i]:GetChildren() + if #button > 0 then + if button[1].GearReference.Value and button[1].GearReference.Value == gear then + return true + end + end + end + end + return false +end + +function updateGridActive() + for k,v in pairs(backpackItems) do + if buttons[v] then + local gear = nil + local gearRef = buttons[v]:FindFirstChild("GearReference") + + if gearRef then gear = gearRef.Value end + + if not gear then + buttons[v].Active = false + elseif inLoadout(gear) then + buttons[v].Active = false + else + buttons[v].Active = true + end + end + end +end + +function centerGear(loadoutChildren) + local gearButtons = {} + local lastSlotAdd = nil + for i = 1, #loadoutChildren do + if loadoutChildren[i]:IsA("Frame") and #loadoutChildren[i]:GetChildren() > 0 then + if loadoutChildren[i].Name == "Slot0" then + lastSlotAdd = loadoutChildren[i] + else + table.insert(gearButtons, loadoutChildren[i]) + end + end + end + if lastSlotAdd then table.insert(gearButtons,lastSlotAdd) end + + local startPos = ( 1 - (#gearButtons * 0.1) ) / 2 + for i = 1, #gearButtons do + gearButtons[i]:TweenPosition(UDim2.new(startPos + ((i - 1) * 0.1),0,0,0), Enum.EasingDirection.Out, Enum.EasingStyle.Quad, 0.25, true) + end +end + +function tabClickHandler(tabName) + if tabName == StaticTabName then + backpackOpenHandler(tabName) + else + backpackCloseHandler(tabName) + end +end + +function backpackOpenHandler(currentTab) + if currentTab and currentTab ~= StaticTabName then + backpack.Gear.Visible = false + return + end + + backpack.Gear.Visible = true + updateGridActive() + + resizeGrid() + resize() + tellBackpackReadyFunc:Invoke() +end + +function backpackCloseHandler(currentTab) + if currentTab and currentTab ~= StaticTabName then + backpack.Gear.Visible = false + return + end + + backpack.Gear.Visible = false + + resizeGrid() + resize() + tellBackpackReadyFunc:Invoke() +end + +function loadoutCheck(child, selectState) + if not child:IsA("ImageButton") then return end + for k,v in pairs(backpackItems) do + if buttons[v] then + if child:FindFirstChild("GearReference") and buttons[v]:FindFirstChild("GearReference") then + if buttons[v].GearReference.Value == child.GearReference.Value then + buttons[v].Active = selectState + break + end + end + end + end +end + +function clearPreview() + gearPreview.GearImage.Image = "" + gearPreview.GearStats.GearName.Text = "" +end + +function removeAllEquippedGear(physGear) + local stuff = player.Character:GetChildren() + for i = 1, #stuff do + if ( stuff[i]:IsA("Tool") or stuff[i]:IsA("HopperBin") ) and stuff[i] ~= physGear then + stuff[i].Parent = playerBackpack + end + end +end + +function equipGear(physGear) + removeAllEquippedGear(physGear) + physGear.Parent = player.Character + updateGridActive() +end + +function unequipGear(physGear) + physGear.Parent = playerBackpack + updateGridActive() +end + +function highlight(button) + button.TextColor3 = Color3.new(0,0,0) + button.BackgroundColor3 = Color3.new(0.8,0.8,0.8) +end +function clearHighlight(button) + button.TextColor3 = Color3.new(1,1,1) + button.BackgroundColor3 = Color3.new(0,0,0) +end + +function swapGearSlot(slot,gearButton) + if not swapSlot.Value then -- signal loadout to swap a gear out + swapSlot.Slot.Value = slot + swapSlot.GearButton.Value = gearButton + swapSlot.Value = true + updateGridActive() + end +end + + +local UnequipGearMenuClick = function(element, menu) + if type(element.Action) ~= "number" then return end + local num = element.Action + if num == 1 then -- remove from loadout + unequipGear(menu.Parent.GearReference.Value) + local inventoryButton = menu.Parent + local gearToUnequip = inventoryButton.GearReference.Value + local loadoutChildren = currentLoadout:GetChildren() + local slot = -1 + for i = 1, #loadoutChildren do + if loadoutChildren[i]:IsA("Frame") then + local button = loadoutChildren[i]:GetChildren() + if button[1] and button[1].GearReference.Value == gearToUnequip then + slot = button[1].SlotNumber.Text + break + end + end + end + swapGearSlot(slot,nil) + end +end + +function setupCharacterConnections() + + if backpackAddCon then backpackAddCon:disconnect() end + backpackAddCon = game.Players.LocalPlayer.Backpack.ChildAdded:connect(function(child) addToGrid(child) end) + + -- make sure we get all the children + local backpackChildren = game.Players.LocalPlayer.Backpack:GetChildren() + for i = 1, #backpackChildren do + addToGrid(backpackChildren[i]) + end + + if characterChildAddedCon then characterChildAddedCon:disconnect() end + characterChildAddedCon = + game.Players.LocalPlayer.Character.ChildAdded:connect(function(child) + addToGrid(child) + updateGridActive() + end) + + if characterChildRemovedCon then characterChildRemovedCon:disconnect() end + characterChildRemovedCon = + game.Players.LocalPlayer.Character.ChildRemoved:connect(function(child) + updateGridActive() + end) + + wait() + centerGear(currentLoadout:GetChildren()) +end + +function removeCharacterConnections() + if characterChildAddedCon then characterChildAddedCon:disconnect() end + if characterChildRemovedCon then characterChildRemovedCon:disconnect() end + if backpackAddCon then backpackAddCon:disconnect() end +end + +function trim(s) + return (s:gsub("^%s*(.-)%s*$", "%1")) +end + +function filterGear(terms) + local filteredGear = {} + for k,v in pairs(backpackItems) do + if buttons[v] then + local gearString = string.lower(buttons[v].GearReference.Value.Name) + gearString = trim(gearString) + for i = 1, #terms do + if string.match(gearString,terms[i]) then + table.insert(filteredGear,buttons[v]) + break + end + end + end + end + + return filteredGear +end +function splitByWhitespace(text) + if type(text) ~= "string" then return nil end + + local terms = {} + for token in string.gmatch(text, "[^%s]+") do + if string.len(token) > 0 then + table.insert(terms,token) + end + end + return terms +end +function showSearchGear(searchTerms) + if not backpack.Gear.Visible then return end -- currently not active tab + + local searchTermTable = splitByWhitespace(searchTerms) + if searchTermTable and (#searchTermTable > 0) then + currSearchTerms = searchTermTable + else + currSearchTerms = nil + end + + if searchTermTable == nil then + showEntireGrid() + return + end + + local filteredButtons = filterGear(currSearchTerms) + showPartialGrid(filteredButtons) +end + +function nukeBackpack() + while #buttons > 0 do + table.remove(buttons) + end + buttons = {} + while #backpackItems > 0 do + table.remove(backpackItems) + end + backpackItems = {} + local scrollingFrameChildren = grid.ScrollingFrame:GetChildren() + for i = 1, #scrollingFrameChildren do + scrollingFrameChildren[i]:remove() + end +end + +function getGearContextMenu() + local gearContextMenu = Instance.new("Frame") + gearContextMenu.Active = true + gearContextMenu.Name = "UnequipContextMenu" + gearContextMenu.Size = UDim2.new(0,115,0,70) + gearContextMenu.Position = UDim2.new(0,-16,0,-16) + gearContextMenu.BackgroundTransparency = 1 + gearContextMenu.Visible = false + + local gearContextMenuButton = Instance.new("TextButton") + gearContextMenuButton.Name = "UnequipContextMenuButton" + gearContextMenuButton.Text = "" + gearContextMenuButton.Style = Enum.ButtonStyle.RobloxButtonDefault + gearContextMenuButton.ZIndex = 8 + gearContextMenuButton.Size = UDim2.new(1, 0, 1, -20) + gearContextMenuButton.Visible = true + gearContextMenuButton.Parent = gearContextMenu + + local elementHeight = 12 + + local contextMenuElements = {} + local contextMenuElementsName = {"Remove Hotkey"} + + for i = 1, #contextMenuElementsName do + local element = {} + element.Type = "Button" + element.Text = contextMenuElementsName[i] + element.Action = i + element.DoIt = UnequipGearMenuClick + table.insert(contextMenuElements,element) + end + + for i, contextElement in ipairs(contextMenuElements) do + local element = contextElement + if element.Type == "Button" then + local button = Instance.new("TextButton") + button.Name = "UnequipContextButton" .. i + button.BackgroundColor3 = Color3.new(0,0,0) + button.BorderSizePixel = 0 + button.TextXAlignment = Enum.TextXAlignment.Left + button.Text = " " .. contextElement.Text + button.Font = Enum.Font.Arial + button.FontSize = Enum.FontSize.Size14 + button.Size = UDim2.new(1, 8, 0, elementHeight) + button.Position = UDim2.new(0,0,0,elementHeight * i) + button.TextColor3 = Color3.new(1,1,1) + button.ZIndex = 9 + button.Parent = gearContextMenuButton + + if not IsTouchDevice() then + + button.MouseButton1Click:connect(function() + if button.Active and not gearContextMenu.Parent.Active then + local success, result = pcall(function() element.DoIt(element, gearContextMenu) end) + browsingMenu = false + gearContextMenu.Visible = false + clearHighlight(button) + clearPreview() + end + end) + + button.MouseEnter:connect(function() + if button.Active and gearContextMenu.Parent.Active then + highlight(button) + end + end) + button.MouseLeave:connect(function() + if button.Active and gearContextMenu.Parent.Active then + clearHighlight(button) + end + end) + end + + contextElement.Button = button + contextElement.Element = button + elseif element.Type == "Label" then + local frame = Instance.new("Frame") + frame.Name = "ContextLabel" .. i + frame.BackgroundTransparency = 1 + frame.Size = UDim2.new(1, 8, 0, elementHeight) + + local label = Instance.new("TextLabel") + label.Name = "Text1" + label.BackgroundTransparency = 1 + label.BackgroundColor3 = Color3.new(1,1,1) + label.BorderSizePixel = 0 + label.TextXAlignment = Enum.TextXAlignment.Left + label.Font = Enum.Font.ArialBold + label.FontSize = Enum.FontSize.Size14 + label.Position = UDim2.new(0.0, 0, 0, 0) + label.Size = UDim2.new(0.5, 0, 1, 0) + label.TextColor3 = Color3.new(1,1,1) + label.ZIndex = 9 + label.Parent = frame + element.Label1 = label + + if element.GetText2 then + label = Instance.new("TextLabel") + label.Name = "Text2" + label.BackgroundTransparency = 1 + label.BackgroundColor3 = Color3.new(1,1,1) + label.BorderSizePixel = 0 + label.TextXAlignment = Enum.TextXAlignment.Right + label.Font = Enum.Font.Arial + label.FontSize = Enum.FontSize.Size14 + label.Position = UDim2.new(0.5, 0, 0, 0) + label.Size = UDim2.new(0.5, 0, 1, 0) + label.TextColor3 = Color3.new(1,1,1) + label.ZIndex = 9 + label.Parent = frame + element.Label2 = label + end + frame.Parent = gearContextMenuButton + element.Label = frame + element.Element = frame + end + end + + gearContextMenu.ZIndex = 4 + gearContextMenu.MouseLeave:connect(function() + browsingMenu = false + gearContextMenu.Visible = false + clearPreview() + end) + robloxLock(gearContextMenu) + + return gearContextMenu +end + +function coreGuiChanged(coreGuiType,enabled) + if coreGuiType == Enum.CoreGuiType.Backpack or coreGuiType == Enum.CoreGuiType.All then + if not enabled then + backpack.Gear.Visible = false + end + end +end + + +local backpackChildren = player.Backpack:GetChildren() +for i = 1, #backpackChildren do + addToGrid(backpackChildren[i]) +end + +------------------------- Start Lifelong Connections ----------------------- + + +resizeEvent.Event:connect(function(absSize) + if debounce then return end + + debounce = true + wait() + resize() + resizeGrid() + debounce = false +end) + +currentLoadout.ChildAdded:connect(function(child) loadoutCheck(child, false) end) +currentLoadout.ChildRemoved:connect(function(child) loadoutCheck(child, true) end) + +currentLoadout.DescendantAdded:connect(function(descendant) + if not backpack.Visible and ( descendant:IsA("ImageButton") or descendant:IsA("TextButton") ) then + centerGear(currentLoadout:GetChildren()) + end +end) +currentLoadout.DescendantRemoving:connect(function(descendant) + if not backpack.Visible and ( descendant:IsA("ImageButton") or descendant:IsA("TextButton") ) then + wait() + centerGear(currentLoadout:GetChildren()) + end +end) + +grid.MouseEnter:connect(function() clearPreview() end) +grid.MouseLeave:connect(function() clearPreview() end) + +player.CharacterRemoving:connect(function() + removeCharacterConnections() + nukeBackpack() +end) +player.CharacterAdded:connect(function() setupCharacterConnections() end) + +player.ChildAdded:connect(function(child) + if child:IsA("Backpack") then + playerBackpack = child + if backpackAddCon then backpackAddCon:disconnect() end + backpackAddCon = game.Players.LocalPlayer.Backpack.ChildAdded:connect(function(child) addToGrid(child) end) + end +end) + +swapSlot.Changed:connect(function() + if not swapSlot.Value then + updateGridActive() + end +end) + +local loadoutChildren = currentLoadout:GetChildren() +for i = 1, #loadoutChildren do + if loadoutChildren[i]:IsA("Frame") and string.find(loadoutChildren[i].Name,"Slot") then + loadoutChildren[i].ChildRemoved:connect(function() + updateGridActive() + end) + loadoutChildren[i].ChildAdded:connect(function() + updateGridActive() + end) + end +end +------------------------- End Lifelong Connections ----------------------- + +coreGuiChanged(Enum.CoreGuiType.Backpack, Game.StarterGui:GetCoreGuiEnabled(Enum.CoreGuiType.Backpack)) +Game.StarterGui.CoreGuiChangedSignal:connect(coreGuiChanged) + +resize() +resizeGrid() + +-- make sure any items in the loadout are accounted for in inventory +local loadoutChildren = currentLoadout:GetChildren() +for i = 1, #loadoutChildren do + loadoutCheck(loadoutChildren[i], false) +end +if not backpack.Visible then centerGear(currentLoadout:GetChildren()) end + +-- make sure that inventory is listening to gear reparenting +if characterChildAddedCon == nil and game.Players.LocalPlayer["Character"] then + setupCharacterConnections() +end +if not backpackAddCon then + backpackAddCon = game.Players.LocalPlayer.Backpack.ChildAdded:connect(function(child) addToGrid(child) end) +end + +backpackOpenEvent.Event:connect(backpackOpenHandler) +backpackCloseEvent.Event:connect(backpackCloseHandler) +tabClickedEvent.Event:connect(tabClickHandler) +searchRequestedEvent.Event:connect(showSearchGear) + +recalculateScrollLoadout() \ No newline at end of file diff --git a/assets/ugc/871 b/assets/ugc/871 new file mode 100644 index 0000000..c266d36 --- /dev/null +++ b/assets/ugc/871 @@ -0,0 +1,1091 @@ +--rbxassetid%871% +if game.CoreGui.Version < 3 then return end -- peace out if we aren't using the right client + +-- A couple of necessary functions +local function waitForChild(instance, name) + while not instance:FindFirstChild(name) do + instance.ChildAdded:wait() + end + return instance:FindFirstChild(name) +end +local function waitForProperty(instance, property) + while not instance[property] do + instance.Changed:wait() + end +end + +local useCoreHealthBar = false +pcall(function() useCoreHealthBar = Game.Players:GetUseCoreScriptHealthBar() end) + + +local currentLoadout = script.Parent +local StaticTabName = "gear" +local backpackEnabled = true + +local robloxGui = game:GetService("CoreGui"):FindFirstChild("RobloxGui") +assert(robloxGui) +local controlFrame = waitForChild(robloxGui, 'ControlFrame') +local backpackButton = waitForChild(controlFrame, 'BackpackButton') +local backpack = waitForChild(robloxGui, 'Backpack') +waitForChild(robloxGui,"CurrentLoadout") +waitForChild(robloxGui.CurrentLoadout,"TempSlot") +waitForChild(robloxGui.CurrentLoadout.TempSlot,"SlotNumber") + +local function IsTouchDevice() + return Game:GetService('UserInputService').TouchEnabled +end + +local function IsSmallScreen() + return (robloxGui.AbsoluteSize.Y <= 500) +end + +local function moveHealthBar(pGui) + waitForChild(pGui, 'HealthGUI') + waitForChild(pGui['HealthGUI'], 'tray') + local tray = pGui['HealthGUI']['tray'] + tray.Position = UDim2.new(0.5, -85, 1, -26) +end + +local function setHealthBarVisible( pGui, visible ) + waitForChild(pGui, 'HealthGUI') + waitForChild(pGui['HealthGUI'], 'tray') + local tray = pGui['HealthGUI']['tray'] + tray.Visible = visible +end + + +--- Begin Locals +waitForChild(game,"Players") +waitForProperty(game.Players,"LocalPlayer") +local player = game.Players.LocalPlayer + +if not useCoreHealthBar then + waitForChild(player, 'PlayerGui') + Spawn(function() + moveHealthBar(player.PlayerGui) + end) +end + +while player.Character == nil do wait(0.03) end +local humanoid = waitForChild(player.Character, 'Humanoid') +humanoid.Died:connect(function() + backpackButton.Visible = false +end) + +waitForChild(game, "LocalBackpack") +game.LocalBackpack:SetOldSchoolBackpack(false) + +waitForChild(currentLoadout.Parent,"Backpack") +local guiBackpack = currentLoadout.Parent.Backpack + +local backpackManager = waitForChild(guiBackpack,"CoreScripts/BackpackScripts/BackpackManager") +local backpackOpenEvent = waitForChild(backpackManager,"BackpackOpenEvent") +local backpackCloseEvent = waitForChild(backpackManager,"BackpackCloseEvent") +local tabClickedEvent = waitForChild(backpackManager,"TabClickedEvent") +local resizeEvent = waitForChild(backpackManager,"ResizeEvent") + +local inGearTab = true + +local maxNumLoadoutItems = 10 +if IsSmallScreen() then + maxNumLoadoutItems = 4 +end + + +local characterChildAddedCon = nil +local backpackChildCon = nil + +local debounce = false + +local enlargeFactor = 1.18 +local buttonSizeEnlarge = UDim2.new(1 * enlargeFactor,0,1 * enlargeFactor,0) +local buttonSizeNormal = UDim2.new(1,0,1,0) +local enlargeOverride = true +local guiTweenSpeed = 0.5 + +local firstInstanceOfLoadout = false + +local inventory = {} + +local gearSlots = {} +for i = 1, maxNumLoadoutItems do + gearSlots[i] = "empty" +end + +local backpackWasOpened = false +--- End Locals + + + + + + +-- Begin Functions +local function backpackIsOpen() + if guiBackpack then + return guiBackpack.Visible + end + return false +end + + +local function kill(prop,con,gear) + if con then con:disconnect() end + if prop == true and gear then + reorganizeLoadout(gear,false) + end +end + +function registerNumberKeys() + for i = 0, 9 do + game:GetService("GuiService"):AddKey(tostring(i)) + end +end + +function unregisterNumberKeys() + for i = 0, 9 do + game:GetService("GuiService"):RemoveKey(tostring(i)) + end +end + +function characterInWorkspace() + if game.Players["LocalPlayer"] then + if game.Players.LocalPlayer["Character"] then + if game.Players.LocalPlayer.Character ~= nil then + if game.Players.LocalPlayer.Character.Parent ~= nil then + return true + end + end + end + end + + return false +end + +function removeGear(gear) + local emptySlot = nil + for i = 1, #gearSlots do + if gearSlots[i] == gear and gear.Parent ~= nil then + emptySlot = i + break + end + end + if emptySlot then + if gearSlots[emptySlot].GearReference.Value then + if gearSlots[emptySlot].GearReference.Value.Parent == game.Players.LocalPlayer.Character then -- if we currently have this equipped, unequip it + gearSlots[emptySlot].GearReference.Value.Parent = game.Players.LocalPlayer.Backpack + end + + if gearSlots[emptySlot].GearReference.Value:IsA("HopperBin") and gearSlots[emptySlot].GearReference.Value.Active then -- this is an active hopperbin + gearSlots[emptySlot].GearReference.Value:Disable() + gearSlots[emptySlot].GearReference.Value.Active = false + end + end + + gearSlots[emptySlot] = "empty" + + local centerizeX = gear.Size.X.Scale/2 + local centerizeY = gear.Size.Y.Scale/2 + --[[gear:TweenSizeAndPosition(UDim2.new(0,0,0,0), + UDim2.new(gear.Position.X.Scale + centerizeX,gear.Position.X.Offset,gear.Position.Y.Scale + centerizeY,gear.Position.Y.Offset), + Enum.EasingDirection.Out, Enum.EasingStyle.Quad,guiTweenSpeed/4,true)]] + delay(0, + function() + gear:remove() + end) + + Spawn(function() + while backpackIsOpen() do wait(0.03) end + waitForChild(player, 'Backpack') + local allEmpty = true + for i = 1, #gearSlots do + if gearSlots[i] ~= 'empty' then + allEmpty = false + end + end + + if allEmpty then + if #player.Backpack:GetChildren() < 1 then + backpackButton.Visible = false + else + backpackButton.Position = UDim2.new(0.5, -7, 1, -55) + end + end + end) + end +end + +function insertGear(gear, addToSlot) + local pos = nil + if not addToSlot then + for i = 1, #gearSlots do + if gearSlots[i] == "empty" then + pos = i + break + end + end + + if pos == 1 and gearSlots[1] ~= "empty" then gear:remove() return end -- we are currently full, can't add in + else + pos = addToSlot + -- push all gear down one slot + local start = 1 + for i = 1, #gearSlots do + if gearSlots[i] == "empty" then + start = i + break + end + end + for i = start, pos + 1, -1 do + gearSlots[i] = gearSlots[i - 1] + if i == 10 then + gearSlots[i].SlotNumber.Text = "0" + gearSlots[i].SlotNumberDownShadow.Text = "0" + gearSlots[i].SlotNumberUpShadow.Text = "0" + else + gearSlots[i].SlotNumber.Text = i + gearSlots[i].SlotNumberDownShadow.Text = i + gearSlots[i].SlotNumberUpShadow.Text = i + end + end + end + + gearSlots[pos] = gear + if pos ~= maxNumLoadoutItems then + if(type(tostring(pos)) == "string") then + local posString = tostring(pos) + gear.SlotNumber.Text = posString + gear.SlotNumberDownShadow.Text = posString + gear.SlotNumberUpShadow.Text = posString + end + else -- tenth gear doesn't follow mathematical pattern :( + gear.SlotNumber.Text = "0" + gear.SlotNumberDownShadow.Text = "0" + gear.SlotNumberUpShadow.Text = "0" + end + gear.Visible = true + + local con = nil + con = gear.Kill.Changed:connect(function(prop) kill(prop,con,gear) end) +end + + +function reorganizeLoadout(gear, inserting, equipped, addToSlot) + if inserting then -- add in gear + insertGear(gear, addToSlot) + else + removeGear(gear) + end + if gear ~= "empty" then gear.ZIndex = 1 end +end + +function checkToolAncestry(child,parent) + if child:FindFirstChild("RobloxBuildTool") then return end -- don't show roblox build tools + if child:IsA("Tool") or child:IsA("HopperBin") then + for i = 1, #gearSlots do + if gearSlots[i] ~= "empty" and gearSlots[i].GearReference.Value == child then + if parent == nil then + gearSlots[i].Kill.Value = true + return false + elseif child.Parent == player.Character then + gearSlots[i].Selected = true + return true + elseif child.Parent == player.Backpack then + if child:IsA("Tool") or child:IsA("HopperBin") then gearSlots[i].Selected = false end + return true + else + gearSlots[i].Kill.Value = true + return false + end + return true + end + end + end +end + +function removeAllEquippedGear(physGear) + local stuff = player.Character:GetChildren() + for i = 1, #stuff do + if ( stuff[i]:IsA("Tool") or stuff[i]:IsA("HopperBin") ) and stuff[i] ~= physGear then + if stuff[i]:IsA("Tool") then stuff[i].Parent = player.Backpack end + if stuff[i]:IsA("HopperBin") then + stuff[i]:Disable() + end + end + end +end + +function hopperBinSwitcher(numKey, physGear) + if not physGear then return end + + physGear:ToggleSelect() + + if gearSlots[numKey] == "empty" then return end + + if not physGear.Active then + gearSlots[numKey].Selected = false + normalizeButton(gearSlots[numKey]) + else + gearSlots[numKey].Selected = true + enlargeButton(gearSlots[numKey]) + end +end + +function toolSwitcher(numKey) + + if not gearSlots[numKey] then return end + local physGear = gearSlots[numKey].GearReference.Value + if physGear == nil then return end + + removeAllEquippedGear(physGear) -- we don't remove this gear, as then we get a double switcheroo + + local key = numKey + if numKey == 0 then key = 10 end + + for i = 1, #gearSlots do + if gearSlots[i] and gearSlots[i] ~= "empty" and i ~= key then + normalizeButton(gearSlots[i]) + gearSlots[i].Selected = false + if gearSlots[i].GearReference and gearSlots[i].GearReference.Value and gearSlots[i].GearReference.Value:IsA("HopperBin") and gearSlots[i].GearReference.Value.Active then + gearSlots[i].GearReference.Value:ToggleSelect() + end + end + end + + if physGear:IsA("HopperBin") then + hopperBinSwitcher(numKey,physGear) + else + if physGear.Parent == player.Character then + physGear.Parent = player.Backpack + + if gearSlots[numKey] ~= "empty" then + gearSlots[numKey].Selected = false + normalizeButton(gearSlots[numKey]) + end + else + --player.Character.Humanoid:EquipTool(physGear) + + physGear.Parent = player.Character + gearSlots[numKey].Selected = true + + enlargeButton(gearSlots[numKey]) + end + end +end + + +function activateGear(num) + local numKey = nil + if num == "0" then + numKey = 10 -- why do lua indexes have to start at 1? :( + else + numKey = tonumber(num) + end + + if(numKey == nil) then return end + + if gearSlots[numKey] ~= "empty" then + toolSwitcher(numKey) + end +end + + +enlargeButton = function(button) + if button.Size.Y.Scale > 1 then return end + if not button.Parent then return end + if not button.Selected then return end + + for i = 1, #gearSlots do + if gearSlots[i] == "empty" then break end + if gearSlots[i] ~= button then + normalizeButton(gearSlots[i]) + end + end + + if not enlargeOverride then + return + end + + if button:FindFirstChild('Highlight') then + button.Highlight.Visible = true + end + + if button:IsA("ImageButton") or button:IsA("TextButton") then + button.ZIndex = 5 + local centerizeX = -(buttonSizeEnlarge.X.Scale - button.Size.X.Scale)/2 + local centerizeY = -(buttonSizeEnlarge.Y.Scale - button.Size.Y.Scale)/2 + button:TweenSizeAndPosition(buttonSizeEnlarge, + UDim2.new(button.Position.X.Scale + centerizeX,button.Position.X.Offset,button.Position.Y.Scale + centerizeY,button.Position.Y.Offset), + Enum.EasingDirection.Out, Enum.EasingStyle.Quad,guiTweenSpeed/5,enlargeOverride) + end +end + +normalizeAllButtons = function() + for i = 1, #gearSlots do + if gearSlots[i] == "empty" then break end + if gearSlots[i] ~= button then + normalizeButton(gearSlots[i],0.1) + end + end +end + + +normalizeButton = function(button, speed) + if not button then return end + if button.Size.Y.Scale <= 1 then return end + if button.Selected then return end + if not button.Parent then return end + + local moveSpeed = speed + if moveSpeed == nil or type(moveSpeed) ~= "number" then moveSpeed = guiTweenSpeed/5 end + + if button:FindFirstChild('Highlight') then + button.Highlight.Visible = false + end + + if button:IsA("ImageButton") or button:IsA("TextButton") then + button.ZIndex = 1 + local inverseEnlarge = 1/enlargeFactor + local centerizeX = -(buttonSizeNormal.X.Scale - button.Size.X.Scale)/2 + local centerizeY = -(buttonSizeNormal.Y.Scale - button.Size.Y.Scale)/2 + button:TweenSizeAndPosition(buttonSizeNormal, + UDim2.new(button.Position.X.Scale + centerizeX,button.Position.X.Offset,button.Position.Y.Scale + centerizeY,button.Position.Y.Offset), + Enum.EasingDirection.Out, Enum.EasingStyle.Quad,moveSpeed,enlargeOverride) + end +end + +local waitForDebounce = function() + while debounce do + wait() + end +end + +function pointInRectangle(point,rectTopLeft,rectSize) + if point.x > rectTopLeft.x and point.x < (rectTopLeft.x + rectSize.x) then + if point.y > rectTopLeft.y and point.y < (rectTopLeft.y + rectSize.y) then + return true + end + end + return false +end + +function swapGear(gearClone,toFrame) + local toFrameChildren = toFrame:GetChildren() + if #toFrameChildren == 1 then + if toFrameChildren[1]:FindFirstChild("SlotNumber") then + + local toSlot = tonumber(toFrameChildren[1].SlotNumber.Text) + local gearCloneSlot = tonumber(gearClone.SlotNumber.Text) + if toSlot == 0 then toSlot = 10 end + if gearCloneSlot == 0 then gearCloneSlot = 10 end + + gearSlots[toSlot] = gearClone + gearSlots[gearCloneSlot] = toFrameChildren[1] + + toFrameChildren[1].SlotNumber.Text = gearClone.SlotNumber.Text + toFrameChildren[1].SlotNumberDownShadow.Text = gearClone.SlotNumber.Text + toFrameChildren[1].SlotNumberUpShadow.Text = gearClone.SlotNumber.Text + + local subString = string.sub(toFrame.Name,5) + gearClone.SlotNumber.Text = subString + gearClone.SlotNumberDownShadow.Text = subString + gearClone.SlotNumberUpShadow.Text = subString + + gearClone.Position = UDim2.new(gearClone.Position.X.Scale,0,gearClone.Position.Y.Scale,0) + toFrameChildren[1].Position = UDim2.new(toFrameChildren[1].Position.X.Scale,0,toFrameChildren[1].Position.Y.Scale,0) + + toFrameChildren[1].Parent = gearClone.Parent + gearClone.Parent = toFrame + end + else + local slotNum = tonumber(gearClone.SlotNumber.Text) + if slotNum == 0 then slotNum = 10 end + gearSlots[slotNum] = "empty" -- reset this gear slot + + local subString = string.sub(toFrame.Name,5) + gearClone.SlotNumber.Text = subString + gearClone.SlotNumberDownShadow.Text = subString + gearClone.SlotNumberUpShadow.Text = subString + + local toSlotNum = tonumber(gearClone.SlotNumber.Text) + if toSlotNum == 0 then toSlotNum = 10 end + gearSlots[toSlotNum] = gearClone + gearClone.Position = UDim2.new(gearClone.Position.X.Scale,0,gearClone.Position.Y.Scale,0) + gearClone.Parent = toFrame + end +end + +function resolveDrag(gearClone,x,y) + local mousePoint = Vector2.new(x,y) + + local frame = gearClone.Parent + local frames = frame.Parent:GetChildren() + + for i = 1, #frames do + if frames[i]:IsA("Frame") then + if pointInRectangle(mousePoint, frames[i].AbsolutePosition,frames[i].AbsoluteSize) then + swapGear(gearClone,frames[i]) + return true + end + end + end + + if x < frame.AbsolutePosition.x or x > ( frame.AbsolutePosition.x + frame.AbsoluteSize.x ) then + reorganizeLoadout(gearClone,false) + return false + elseif y < frame.AbsolutePosition.y or y > ( frame.AbsolutePosition.y + frame.AbsoluteSize.y ) then + reorganizeLoadout(gearClone,false) + return false + else + if dragBeginPos then gearClone.Position = dragBeginPos end + return -1 + end +end + +function unequipAllItems(dontEquipThis) + for i = 1, #gearSlots do + if gearSlots[i] == "empty" then break end + if gearSlots[i].GearReference.Value and gearSlots[i].GearReference.Value ~= dontEquipThis then + if gearSlots[i].GearReference.Value:IsA("HopperBin") then + gearSlots[i].GearReference.Value:Disable() + elseif gearSlots[i].GearReference.Value:IsA("Tool") then + gearSlots[i].GearReference.Value.Parent = game.Players.LocalPlayer.Backpack + end + gearSlots[i].Selected = false + end + end +end + +function showToolTip(button, tip) + if button and button:FindFirstChild("ToolTipLabel") and button.ToolTipLabel:IsA("TextLabel") and not IsTouchDevice() then + button.ToolTipLabel.Text = tostring(tip) + local xSize = button.ToolTipLabel.TextBounds.X + 6 + button.ToolTipLabel.Size = UDim2.new(0,xSize,0,20) + button.ToolTipLabel.Position = UDim2.new(0.5,-xSize/2,0,-30) + button.ToolTipLabel.Visible = true + end +end + +function hideToolTip(button, tip) + if button and button:FindFirstChild("ToolTipLabel") and button.ToolTipLabel:IsA("TextLabel") then + button.ToolTipLabel.Visible = false + end +end + +local addingPlayerChild = function(child, equipped, addToSlot, inventoryGearButton) + waitForDebounce() + debounce = true + + if child:FindFirstChild("RobloxBuildTool") then debounce = false return end -- don't show roblox build tools + if not child:IsA("Tool") then + if not child:IsA("HopperBin") then + debounce = false + return -- we don't care about anything besides tools (sigh...) + end + end + + if not addToSlot then + for i = 1, #gearSlots do + if gearSlots[i] ~= "empty" and gearSlots[i].GearReference.Value == child then -- we already have gear, do nothing + debounce = false + return + end + end + end + + local gearClone = currentLoadout.TempSlot:clone() + gearClone.Name = child.Name + gearClone.GearImage.Image = child.TextureId + if gearClone.GearImage.Image == "" then + gearClone.GearText.Text = child.Name + end + gearClone.GearReference.Value = child + + gearClone.MouseEnter:connect(function() + local gear = gearClone.GearReference and gearClone.GearReference.Value + if gear:IsA("Tool") and gear.ToolTip ~= "" then + showToolTip(gearClone, gear.ToolTip) + end + end) + + gearClone.MouseLeave:connect(function() + local gear = gearClone.GearReference and gearClone.GearReference.Value + if gear:IsA("Tool") and gear.ToolTip ~= "" then + hideToolTip(gearClone, gear.ToolTip) + end + end) + + gearClone.RobloxLocked = true + + local slotToMod = -1 + + if not addToSlot then + for i = 1, #gearSlots do + if gearSlots[i] == "empty" then + slotToMod = i + break + end + end + else + slotToMod = addToSlot + end + + if slotToMod == - 1 then -- No available slot to add in! + debounce = false + return + end + + local slotNum = slotToMod % 10 + local parent = currentLoadout:FindFirstChild("Slot"..tostring(slotNum)) + gearClone.Parent = parent + + if inventoryGearButton then + local absolutePositionFinal = inventoryGearButton.AbsolutePosition + local currentAbsolutePosition = gearClone.AbsolutePosition + local diff = absolutePositionFinal - currentAbsolutePosition + gearClone.Position = UDim2.new(gearClone.Position.X.Scale,diff.x,gearClone.Position.Y.Scale,diff.y) + gearClone.ZIndex = 4 + end + + if addToSlot then + reorganizeLoadout(gearClone, true, equipped, addToSlot) + else + reorganizeLoadout(gearClone, true) + end + + if gearClone.Parent == nil then debounce = false return end -- couldn't fit in (hopper is full!) + + if equipped then + gearClone.Selected = true + unequipAllItems(child) + delay(guiTweenSpeed + 0.01,function() -- if our gear is equipped, we will want to enlarge it when done moving + if gearClone:FindFirstChild("GearReference") and ( (gearClone.GearReference.Value:IsA("Tool") and gearClone.GearReference.Value.Parent == player.Character) or + (gearClone.GearReference.Value:IsA("HopperBin") and gearClone.GearReference.Value.Active == true) ) then + enlargeButton(gearClone) + end + end) + end + + local dragBeginPos = nil + local clickCon, buttonDeleteCon, mouseEnterCon, mouseLeaveCon, dragStop, dragBegin = nil + clickCon = gearClone.MouseButton1Click:connect(function() + if characterInWorkspace() then + if not gearClone.Draggable then + activateGear(gearClone.SlotNumber.Text) + end + end + end) + mouseEnterCon = gearClone.MouseEnter:connect(function() + if guiBackpack.Visible then + gearClone.Draggable = true + end + end) + dragBegin = gearClone.DragBegin:connect(function(pos) + dragBeginPos = pos + gearClone.ZIndex = 7 + local children = gearClone:GetChildren() + for i = 1, #children do + if children[i]:IsA("TextLabel") then + if string.find(children[i].Name,"Shadow") then + children[i].ZIndex = 8 + else + children[i].ZIndex = 9 + end + elseif children[i]:IsA("Frame") or children[i]:IsA("ImageLabel") then + children[i].ZIndex = 7 + end + end + end) + dragStop = gearClone.DragStopped:connect(function(x,y) + if gearClone.Selected then + gearClone.ZIndex = 4 + else + gearClone.ZIndex = 3 + end + local children = gearClone:GetChildren() + for i = 1, #children do + if children[i]:IsA("TextLabel") then + if string.find(children[i].Name,"Shadow") then + children[i].ZIndex = 3 + else + children[i].ZIndex = 4 + end + elseif children[i]:IsA("Frame") or children[i]:IsA("ImageLabel") then + children[i].ZIndex = 2 + end + end + resolveDrag(gearClone,x,y) + end) + mouseLeaveCon = gearClone.MouseLeave:connect(function() + gearClone.Draggable = false + end) + buttonDeleteCon = gearClone.AncestryChanged:connect(function() + if gearClone.Parent and gearClone.Parent.Parent == currentLoadout then return end + if clickCon then clickCon:disconnect() end + if buttonDeleteCon then buttonDeleteCon:disconnect() end + if mouseEnterCon then mouseEnterCon:disconnect() end + if mouseLeaveCon then mouseLeaveCon:disconnect() end + if dragStop then dragStop:disconnect() end + if dragBegin then dragBegin:disconnect() end + end) -- this probably isn't necessary since objects are being deleted (probably), but this might still leak just in case + + local childCon = nil + local childChangeCon = nil + childCon = child.AncestryChanged:connect(function(newChild,parent) + if not checkToolAncestry(newChild,parent) then + if childCon then childCon:disconnect() end + if childChangeCon then childChangeCon:disconnect() end + removeFromInventory(child) + elseif parent == game.Players.LocalPlayer.Backpack then + normalizeButton(gearClone) + end + end) + + childChangeCon = child.Changed:connect(function(prop) + if prop == "Name" then + if gearClone and gearClone.GearImage.Image == "" then + gearClone.GearText.Text = child.Name + end + elseif prop == "Active" then + if child and child:IsA("HopperBin") then + if not child.Active then + gearClone.Selected = false + normalizeButton(gearClone) + end + end + elseif prop == "TextureId" then + gearClone.GearImage.Image = child.TextureId + end + end) + + debounce = false + + Spawn(function() + while backpackIsOpen() do wait(0.03) end + backpackButton.Position = UDim2.new(0.5, -7, 1, -55) + + for i = 1, #gearSlots do + if gearSlots[i] ~= 'empty' then + backpackButton.Position = UDim2.new(0.5, -7, 1, -108) + if backpackEnabled then + backpackButton.Visible = true + end + end + end + end) +end + +function addToInventory(child) + if not child:IsA("Tool") or not child:IsA("HopperBin") then return end + + local slot = nil + for i = 1, #inventory do + if inventory[i] and inventory[i] == child then return end + if not inventory[i] then slot = i end + end + if slot then + inventory[slot] = child + elseif #inventory < 1 then + inventory[1] = child + else + inventory[#inventory + 1] = child + end +end + +function removeFromInventory(child) + for i = 1, #inventory do + if inventory[i] == child then + table.remove(inventory,i) + inventory[i] = nil + end + end +end + +local spreadOutGear = function() + loadoutChildren = currentLoadout:GetChildren() + + for i = 1, #loadoutChildren do + if loadoutChildren[i]:IsA("Frame") then + loadoutChildren[i].BackgroundTransparency = 0.5 + local slot = tonumber(string.sub(loadoutChildren[i].Name,5)) + if slot == 0 then slot = 10 end + if IsSmallScreen() then + loadoutChildren[i]:TweenPosition(UDim2.new(0,(slot-1) * 60,0,0), Enum.EasingDirection.Out, Enum.EasingStyle.Quad, 0.25, true) + else + loadoutChildren[i]:TweenPosition(UDim2.new((slot - 1)/10,0,0,0), Enum.EasingDirection.Out, Enum.EasingStyle.Quad, 0.25, true) + end + end + end +end + +local centerGear = function() + loadoutChildren = currentLoadout:GetChildren() + local gearButtons = {} + local lastSlotAdd = nil + + for i = 1, #loadoutChildren do + if loadoutChildren[i]:IsA("Frame") then + if #loadoutChildren[i]:GetChildren() > 0 then + if loadoutChildren[i].Name == "Slot0" then + lastSlotAdd = loadoutChildren[i] + else + table.insert(gearButtons, loadoutChildren[i]) + end + end + loadoutChildren[i].BackgroundTransparency = 1 + end + end + if lastSlotAdd then table.insert(gearButtons,lastSlotAdd) end + + local startPos = ( 1 - (#gearButtons * 0.1) ) / 2 + for i = 1, #gearButtons do + if IsSmallScreen() then + startPos = ( 0.5 - (#gearButtons * 0.333)/2 ) + gearButtons[i]:TweenPosition(UDim2.new(startPos + (i-1) * 0.33, 0, 0, 0), Enum.EasingDirection.Out, Enum.EasingStyle.Quad, 0.25, true) + else + gearButtons[i]:TweenPosition(UDim2.new(startPos + ((i - 1) * 0.1),0,0,0), Enum.EasingDirection.Out, Enum.EasingStyle.Quad, 0.25, true) + end + end +end + +function editLoadout() + backpackWasOpened = true + if inGearTab then + spreadOutGear() + end +end + +function readonlyLoadout() + if not inGearTab then + centerGear() + end +end + +function setupBackpackListener() + if backpackChildCon then backpackChildCon:disconnect() backpackChildCon = nil end + backpackChildCon = player.Backpack.ChildAdded:connect(function(child) + if not firstInstanceOfLoadout then + firstInstanceOfLoadout = true + if backpackEnabled then + backpackButton.Visible = true + end + end + addingPlayerChild(child) + addToInventory(child) + end) +end + +function playerCharacterChildAdded(child) + addingPlayerChild(child,true) + addToInventory(child) +end + +function activateLoadout() + currentLoadout.Visible = true +end + +function deactivateLoadout() + currentLoadout.Visible = false +end + +function tabHandler(inFocus) + inGearTab = inFocus + if inFocus then + editLoadout() + else + readonlyLoadout() + end +end + +function coreGuiChanged(coreGuiType,enabled) + if coreGuiType == Enum.CoreGuiType.Backpack or coreGuiType == Enum.CoreGuiType.All then + backpackButton.Visible = enabled + backpackEnabled = enabled + + if enabled then + registerNumberKeys() + else + unregisterNumberKeys() + end + end + + if not useCoreHealthBar and coreGuiType == Enum.CoreGuiType.Health or coreGuiType == Enum.CoreGuiType.All then + setHealthBarVisible(game.Players.LocalPlayer.PlayerGui, enabled) + end +end +-- End Functions + + + + + + +-- Begin Script +registerNumberKeys() + +coreGuiChanged(Enum.CoreGuiType.Backpack, Game.StarterGui:GetCoreGuiEnabled(Enum.CoreGuiType.Backpack)) +if not useCoreHealthBar then + coreGuiChanged(Enum.CoreGuiType.Health, Game.StarterGui:GetCoreGuiEnabled(Enum.CoreGuiType.Health)) +end +Game.StarterGui.CoreGuiChangedSignal:connect(coreGuiChanged) + +wait() -- let stuff initialize incase this is first heartbeat... + +waitForChild(player,"Backpack") +waitForProperty(player,"Character") + +-- not sure why this had no delay but the player.CharacterAdded one had one... this type of error would be easier to avoid with function reusage +delay(1,function() + local backpackChildren = player.Backpack:GetChildren() + local size = math.min(10,#backpackChildren) + for i = 1, size do + if backpackEnabled then + backpackButton.Visible = true + end + addingPlayerChild(backpackChildren[i],false) + end + setupBackpackListener() +end) + +delay(2, function() + --while true do + if not backpackWasOpened then + if IsSmallScreen() then + local cChildren = currentLoadout:GetChildren() + for i = 1, #cChildren do + local slotNum = tonumber(string.sub(cChildren[i].Name, 5, string.len(cChildren[i].Name))) + if type(slotNum) == 'number' then + cChildren[i].Position = UDim2.new(0, (slotNum-1) * 60, 0, 0) + end + end + end + end + wait(0.25) + --end +end) + +if not useCoreHealthBar then + player.ChildAdded:connect(function(child) + if child:IsA('PlayerGui') then + moveHealthBar(child) + end + end) +end + +waitForProperty(player,"Character") +for i,v in ipairs(player.Character:GetChildren()) do + playerCharacterChildAdded(v) +end +characterChildAddedCon = player.Character.ChildAdded:connect(function(child) playerCharacterChildAdded(child) end) + +waitForChild(player.Character,"Humanoid") +humanoidDiedCon = player.Character.Humanoid.Died:connect(function() + if humanoidDiedCon then humanoidDiedCon:disconnect() humanoidDiedCon = nil end + deactivateLoadout() + if backpackChildCon then backpackChildCon:disconnect() backpackChildCon = nil end + backpackWasOpened = false +end) + +player.CharacterRemoving:connect(function() + for i = 1, #gearSlots do + if gearSlots[i] ~= "empty" then + gearSlots[i].Parent = nil + gearSlots[i] = "empty" + end + end +end) + +player.CharacterAdded:connect(function() + waitForProperty(game.Players,"LocalPlayer") + player = game.Players.LocalPlayer -- make sure we are still looking at the correct character + waitForChild(player,"Backpack") + + + delay(1,function() + local backpackChildren = player.Backpack:GetChildren() + local size = math.min(10,#backpackChildren) + for i = 1, size do + if backpackEnabled then + backpackButton.Visible = true + end + addingPlayerChild(backpackChildren[i],false) + end + setupBackpackListener() + end) + + activateLoadout() + + if characterChildAddedCon then + characterChildAddedCon:disconnect() + characterChildAddedCon = nil + end + + characterChildAddedCon = + player.Character.ChildAdded:connect(function(child) + addingPlayerChild(child,true) + end) + + waitForChild(player.Character,"Humanoid") + if backpack.Visible then + backpackOpenEvent:Fire() + end + humanoidDiedCon = + player.Character.Humanoid.Died:connect(function() + if backpackEnabled then + backpackButton.Visible = false + end + firstInstanceOfLoadout = false + deactivateLoadout() + + if humanoidDiedCon then humanoidDiedCon:disconnect() humanoidDiedCon = nil end + if backpackChildCon then backpackChildCon:disconnect() backpackChildCon = nil end + end) + if not useCoreHealthBar then + waitForChild(player, 'PlayerGui') + moveHealthBar(player.PlayerGui) + end + delay(2, function() + --while true do + if not backpackWasOpened then + if IsSmallScreen() then + local cChildren = currentLoadout:GetChildren() + for i = 1, #cChildren do + local slotNum = tonumber(string.sub(cChildren[i].Name, 5, string.len(cChildren[i].Name))) + if type(slotNum) == 'number' then + cChildren[i].Position = UDim2.new(0, (slotNum-1) * 60, 0, 0) + end + end + end + end + wait(0.25) + --end + end) +end) + +waitForChild(guiBackpack,"SwapSlot") +guiBackpack.SwapSlot.Changed:connect(function() + if guiBackpack.SwapSlot.Value then + local swapSlot = guiBackpack.SwapSlot + local pos = swapSlot.Slot.Value + if pos == 0 then pos = 10 end + if gearSlots[pos] then + reorganizeLoadout(gearSlots[pos],false) + end + if swapSlot.GearButton.Value then + addingPlayerChild(swapSlot.GearButton.Value.GearReference.Value,false,pos) + end + guiBackpack.SwapSlot.Value = false + end +end) + +game:GetService("GuiService").KeyPressed:connect(function(key) + if characterInWorkspace() then + activateGear(key) + end +end) + +backpackOpenEvent.Event:connect(editLoadout) +backpackCloseEvent.Event:connect(centerGear) +tabClickedEvent.Event:connect(function ( tabName ) + tabHandler(tabName == StaticTabName) +end) diff --git a/assets/ugc/872 b/assets/ugc/872 new file mode 100644 index 0000000..57348c7 --- /dev/null +++ b/assets/ugc/872 @@ -0,0 +1,147 @@ +--rbxassetid%872% +-- Responsible for giving out tools in personal servers + +-- first, lets see if buildTools have already been created +-- create the object in lighting (TODO: move to some sort of "container" object when we have one) +local toolsArray = game.Lighting:FindFirstChild("BuildToolsModel") +local ownerArray = game.Lighting:FindFirstChild("OwnerToolsModel") +local hasBuildTools = false + +function getIds(idTable, assetTable) + for i = 1, #idTable do + local model = game:GetService("InsertService"):LoadAsset(idTable[i]) + if model then + local children = model:GetChildren() + for i = 1, #children do + if children[i]:IsA("Tool") then + table.insert(assetTable,children[i]) + end + end + end + end +end + +function storeInLighting(modelName, assetTable) + local model = Instance.new("Model") + model.Archivable = false + model.Name = modelName + + for i = 1, #assetTable do + assetTable[i].Parent = model + end + + if not game.Lighting:FindFirstChild(modelName) then -- no one beat us to it, we get to insert + model.Parent = game.Lighting + end +end + +if not toolsArray then -- no one has made build tools yet, we get to! + local buildToolIds = {} + local ownerToolIds = {} + + table.insert(buildToolIds,73089166) -- PartSelectionTool + table.insert(buildToolIds,73089190) -- DeleteTool + table.insert(buildToolIds,73089204) -- CloneTool + table.insert(buildToolIds,73089214) -- RotateTool + table.insert(buildToolIds,73089239) -- ConfigTool + table.insert(buildToolIds,73089259) -- WiringTool + table.insert(buildToolIds,58921588) -- ClassicTool + + table.insert(ownerToolIds, 65347268) + + -- next, create array of our tools + local buildTools = {} + local ownerTools = {} + + getIds(buildToolIds, buildTools) + getIds(ownerToolIds, ownerTools) + + storeInLighting("BuildToolsModel",buildTools) + storeInLighting("OwnerToolsModel",ownerTools) + + toolsArray = game.Lighting:FindFirstChild("BuildToolsModel") + ownerArray = game.Lighting:FindFirstChild("OwnerToolsModel") +end + +local localBuildTools = {} + +function giveBuildTools() + if not hasBuildTools then + hasBuildTools = true + local theTools = toolsArray:GetChildren() + for i = 1, #theTools do + local toolClone = theTools[i]:clone() + if toolClone then + toolClone.Parent = game.Players.LocalPlayer.Backpack + table.insert(localBuildTools,toolClone) + end + end + end +end + +function giveOwnerTools() + local theOwnerTools = ownerArray:GetChildren() + for i = 1, #theOwnerTools do + local ownerToolClone = theOwnerTools[i]:clone() + if ownerToolClone then + ownerToolClone.Parent = game.Players.LocalPlayer.Backpack + table.insert(localBuildTools,ownerToolClone) + end + end +end + +function removeBuildTools() + if hasBuildTools then + hasBuildTools = false + for i = 1, #localBuildTools do + localBuildTools[i].Parent = nil + end + localBuildTools = {} + end +end + +if game.Players.LocalPlayer.HasBuildTools then + giveBuildTools() +end +if game.Players.LocalPlayer.PersonalServerRank >= 255 then + giveOwnerTools() +end + +local debounce = false +game.Players.LocalPlayer.Changed:connect(function(prop) + if prop == "HasBuildTools" then + while debounce do + wait(0.5) + end + + debounce = true + + if game.Players.LocalPlayer.HasBuildTools then + giveBuildTools() + else + removeBuildTools() + end + + if game.Players.LocalPlayer.PersonalServerRank >= 255 then + giveOwnerTools() + end + + debounce = false + elseif prop == "PersonalServerRank" then + if game.Players.LocalPlayer.PersonalServerRank >= 255 then + giveOwnerTools() + elseif game.Players.LocalPlayer.PersonalServerRank <= 0 then + game.Players.LocalPlayer:Remove() -- you're banned, goodbye! + end + end +end) + +game.Players.LocalPlayer.CharacterAdded:connect(function() + hasBuildTools = false + if game.Players.LocalPlayer.HasBuildTools then + giveBuildTools() + end + if game.Players.LocalPlayer.PersonalServerRank >= 255 then + giveOwnerTools() + end +end) \ No newline at end of file diff --git a/assets/ugc/873 b/assets/ugc/873 new file mode 100644 index 0000000..cbcf2d5 --- /dev/null +++ b/assets/ugc/873 @@ -0,0 +1,265 @@ +--rbxassetid%873% +-- ContextActionTouch.lua +-- Copyright ROBLOX 2014, created by Ben Tkacheff +-- this script controls ui and firing of lua functions that are bound in ContextActionService for touch inputs +-- Essentially a user can bind a lua function to a key code, input type (mousebutton1 etc.) and this + +-- Variables +local contextActionService = Game:GetService("ContextActionService") +local isTouchDevice = Game:GetService("UserInputService").TouchEnabled +local functionTable = {} +local buttonVector = {} +local buttonScreenGui = nil +local buttonFrame = nil + +local ContextDownImage = "http://www.mete0r.xyz/asset/?id=97166756" +local ContextUpImage = "http://www.mete0r.xyz/asset/?id=97166444" + +local oldTouches = {} + +local buttonPositionTable = { + [1] = UDim2.new(0,123,0,70), + [2] = UDim2.new(0,30,0,60), + [3] = UDim2.new(0,180,0,160), + [4] = UDim2.new(0,85,0,-25), + [5] = UDim2.new(0,185,0,-25), + [6] = UDim2.new(0,185,0,260), + [7] = UDim2.new(0,216,0,65) + } +local maxButtons = #buttonPositionTable + +-- Preload images +Game:GetService("ContentProvider"):Preload(ContextDownImage) +Game:GetService("ContentProvider"):Preload(ContextUpImage) + +while not Game.Players do + wait() +end + +while not Game.Players.LocalPlayer do + wait() +end + +function createContextActionGui() + if not buttonScreenGui and isTouchDevice then + buttonScreenGui = Instance.new("ScreenGui") + buttonScreenGui.Name = "ContextActionGui" + + buttonFrame = Instance.new("Frame") + buttonFrame.BackgroundTransparency = 1 + buttonFrame.Size = UDim2.new(0.3,0,0.5,0) + buttonFrame.Position = UDim2.new(0.7,0,0.5,0) + buttonFrame.Name = "ContextButtonFrame" + buttonFrame.Parent = buttonScreenGui + end +end + +-- functions +function setButtonSizeAndPosition(object) + local buttonSize = 55 + local xOffset = 10 + local yOffset = 95 + + -- todo: better way to determine mobile sized screens + local onSmallScreen = (game.CoreGui.RobloxGui.AbsoluteSize.X < 600) + if not onSmallScreen then + buttonSize = 85 + xOffset = 40 + end + + object.Size = UDim2.new(0,buttonSize,0,buttonSize) +end + +function contextButtonDown(button, inputObject, actionName) + if inputObject.UserInputType == Enum.UserInputType.Touch then + button.Image = ContextDownImage + contextActionService:CallFunction(actionName, Enum.UserInputState.Begin, inputObject) + end +end + +function contextButtonMoved(button, inputObject, actionName) + if inputObject.UserInputType == Enum.UserInputType.Touch then + button.Image = ContextDownImage + contextActionService:CallFunction(actionName, Enum.UserInputState.Change, inputObject) + end +end + +function contextButtonUp(button, inputObject, actionName) + button.Image = ContextUpImage + if inputObject.UserInputType == Enum.UserInputType.Touch and inputObject.UserInputState == Enum.UserInputState.End then + contextActionService:CallFunction(actionName, Enum.UserInputState.End, inputObject) + end +end + +function isSmallScreenDevice() + return Game:GetService("GuiService"):GetScreenResolution().y <= 320 +end + + +function createNewButton(actionName, functionInfoTable) + local contextButton = Instance.new("ImageButton") + contextButton.Name = "ContextActionButton" + contextButton.BackgroundTransparency = 1 + contextButton.Size = UDim2.new(0,90,0,90) + contextButton.Active = true + if isSmallScreenDevice() then + contextButton.Size = UDim2.new(0,70,0,70) + end + contextButton.Image = ContextUpImage + contextButton.Parent = buttonFrame + + local currentButtonTouch = nil + + Game:GetService("UserInputService").InputEnded:connect(function ( inputObject ) + oldTouches[inputObject] = nil + end) + contextButton.InputBegan:connect(function(inputObject) + if oldTouches[inputObject] then return end + + if inputObject.UserInputState == Enum.UserInputState.Begin and currentButtonTouch == nil then + currentButtonTouch = inputObject + contextButtonDown(contextButton, inputObject, actionName) + end + end) + contextButton.InputChanged:connect(function(inputObject) + if oldTouches[inputObject] then return end + if currentButtonTouch ~= inputObject then return end + + contextButtonMoved(contextButton, inputObject, actionName) + end) + contextButton.InputEnded:connect(function(inputObject) + if oldTouches[inputObject] then return end + if currentButtonTouch ~= inputObject then return end + + currentButtonTouch = nil + oldTouches[inputObject] = true + contextButtonUp(contextButton, inputObject, actionName) + end) + + local actionIcon = Instance.new("ImageLabel") + actionIcon.Name = "ActionIcon" + actionIcon.Position = UDim2.new(0.175, 0, 0.175, 0) + actionIcon.Size = UDim2.new(0.65, 0, 0.65, 0) + actionIcon.BackgroundTransparency = 1 + if functionInfoTable["image"] and type(functionInfoTable["image"]) == "string" then + actionIcon.Image = functionInfoTable["image"] + end + actionIcon.Parent = contextButton + + local actionTitle = Instance.new("TextLabel") + actionTitle.Name = "ActionTitle" + actionTitle.Size = UDim2.new(1,0,1,0) + actionTitle.BackgroundTransparency = 1 + actionTitle.Font = Enum.Font.SourceSansBold + actionTitle.TextColor3 = Color3.new(1,1,1) + actionTitle.TextStrokeTransparency = 0 + actionTitle.FontSize = Enum.FontSize.Size18 + actionTitle.TextWrapped = true + actionTitle.Text = "" + if functionInfoTable["title"] and type(functionInfoTable["title"]) == "string" then + actionTitle.Text = functionInfoTable["title"] + end + actionTitle.Parent = contextButton + + return contextButton +end + +function createButton( actionName, functionInfoTable ) + local button = createNewButton(actionName, functionInfoTable) + + local position = nil + for i = 1,#buttonVector do + if buttonVector[i] == "empty" then + position = i + break + end + end + + if not position then + position = #buttonVector + 1 + end + + if position > maxButtons then + return -- todo: let user know we have too many buttons already? + end + + buttonVector[position] = button + functionTable[actionName]["button"] = button + + button.Position = buttonPositionTable[position] + button.Parent = buttonFrame + + if buttonScreenGui and buttonScreenGui.Parent == nil then + buttonScreenGui.Parent = Game.Players.LocalPlayer.PlayerGui + end +end + +function removeAction(actionName) + if not functionTable[actionName] then return end + + local actionButton = functionTable[actionName]["button"] + + if actionButton then + actionButton.Parent = nil + + for i = 1,#buttonVector do + if buttonVector[i] == actionButton then + buttonVector[i] = "empty" + break + end + end + + actionButton:Destroy() + end + + functionTable[actionName] = nil +end + +function addAction(actionName,createTouchButton,functionInfoTable) + if functionTable[actionName] then + removeAction(actionName) + end + functionTable[actionName] = {functionInfoTable} + if createTouchButton and isTouchDevice then + createContextActionGui() + createButton(actionName, functionInfoTable) + end +end + +-- Connections +contextActionService.BoundActionChanged:connect( function(actionName, changeName, changeTable) + if functionTable[actionName] and changeTable then + local button = functionTable[actionName]["button"] + if button then + if changeName == "image" then + button.ActionIcon.Image = changeTable[changeName] + elseif changeName == "title" then + button.ActionTitle.Text = changeTable[changeName] + elseif changeName == "description" then + -- todo: add description to menu + elseif changeName == "position" then + button.Position = changeTable[changeName] + end + end + end +end) + +contextActionService.BoundActionAdded:connect( function(actionName, createTouchButton, functionInfoTable) + addAction(actionName, createTouchButton, functionInfoTable) +end) + +contextActionService.BoundActionRemoved:connect( function(actionName, functionInfoTable) + removeAction(actionName) +end) + +contextActionService.GetActionButtonEvent:connect( function(actionName) + if functionTable[actionName] then + contextActionService:FireActionButtonFoundSignal(actionName, functionTable[actionName]["button"]) + end +end) + +-- make sure any bound data before we setup connections is handled +local boundActions = contextActionService:GetAllBoundActionInfo() +for actionName, actionData in pairs(boundActions) do + addAction(actionName,actionData["createTouchButton"],actionData) +end diff --git a/assets/ugc/874 b/assets/ugc/874 new file mode 100644 index 0000000..c56a62d --- /dev/null +++ b/assets/ugc/874 @@ -0,0 +1,4032 @@ +--rbxassetid%874% +local t = {} + +local function ScopedConnect(parentInstance, instance, event, signalFunc, syncFunc, removeFunc) + local eventConnection = nil + + --Connection on parentInstance is scoped by parentInstance (when destroyed, it goes away) + local tryConnect = function() + if game:IsAncestorOf(parentInstance) then + --Entering the world, make sure we are connected/synced + if not eventConnection then + eventConnection = instance[event]:connect(signalFunc) + if syncFunc then syncFunc() end + end + else + --Probably leaving the world, so disconnect for now + if eventConnection then + eventConnection:disconnect() + if removeFunc then removeFunc() end + end + end + end + + --Hook it up to ancestryChanged signal + local connection = parentInstance.AncestryChanged:connect(tryConnect) + + --Now connect us if we're already in the world + tryConnect() + + return connection +end + +local function getScreenGuiAncestor(instance) + local localInstance = instance + while localInstance and not localInstance:IsA("ScreenGui") do + localInstance = localInstance.Parent + end + return localInstance +end + +local function CreateButtons(frame, buttons, yPos, ySize) + local buttonNum = 1 + local buttonObjs = {} + for i, obj in ipairs(buttons) do + local button = Instance.new("TextButton") + button.Name = "Button" .. buttonNum + button.Font = Enum.Font.Arial + button.FontSize = Enum.FontSize.Size18 + button.AutoButtonColor = true + button.Modal = true + if obj["Style"] then + button.Style = obj.Style + else + button.Style = Enum.ButtonStyle.RobloxButton + end + if obj["ZIndex"] then + button.ZIndex = obj.ZIndex + end + button.Text = obj.Text + button.TextColor3 = Color3.new(1,1,1) + button.MouseButton1Click:connect(obj.Function) + button.Parent = frame + buttonObjs[buttonNum] = button + + buttonNum = buttonNum + 1 + end + local numButtons = buttonNum-1 + + if numButtons == 1 then + frame.Button1.Position = UDim2.new(0.35, 0, yPos.Scale, yPos.Offset) + frame.Button1.Size = UDim2.new(.4,0,ySize.Scale, ySize.Offset) + elseif numButtons == 2 then + frame.Button1.Position = UDim2.new(0.1, 0, yPos.Scale, yPos.Offset) + frame.Button1.Size = UDim2.new(.8/3,0, ySize.Scale, ySize.Offset) + + frame.Button2.Position = UDim2.new(0.55, 0, yPos.Scale, yPos.Offset) + frame.Button2.Size = UDim2.new(.35,0, ySize.Scale, ySize.Offset) + elseif numButtons >= 3 then + local spacing = .1 / numButtons + local buttonSize = .9 / numButtons + + buttonNum = 1 + while buttonNum <= numButtons do + buttonObjs[buttonNum].Position = UDim2.new(spacing*buttonNum + (buttonNum-1) * buttonSize, 0, yPos.Scale, yPos.Offset) + buttonObjs[buttonNum].Size = UDim2.new(buttonSize, 0, ySize.Scale, ySize.Offset) + buttonNum = buttonNum + 1 + end + end +end + +local function setSliderPos(newAbsPosX,slider,sliderPosition,bar,steps) + + local newStep = steps - 1 --otherwise we really get one more step than we want + local relativePosX = math.min(1, math.max(0, (newAbsPosX - bar.AbsolutePosition.X) / bar.AbsoluteSize.X )) + local wholeNum, remainder = math.modf(relativePosX * newStep) + if remainder > 0.5 then + wholeNum = wholeNum + 1 + end + relativePosX = wholeNum/newStep + + local result = math.ceil(relativePosX * newStep) + if sliderPosition.Value ~= (result + 1) then --only update if we moved a step + sliderPosition.Value = result + 1 + slider.Position = UDim2.new(relativePosX,-slider.AbsoluteSize.X/2,slider.Position.Y.Scale,slider.Position.Y.Offset) + end + +end + +local function cancelSlide(areaSoak) + areaSoak.Visible = false + if areaSoakMouseMoveCon then areaSoakMouseMoveCon:disconnect() end +end + +t.CreateStyledMessageDialog = function(title, message, style, buttons) + local frame = Instance.new("Frame") + frame.Size = UDim2.new(0.5, 0, 0, 165) + frame.Position = UDim2.new(0.25, 0, 0.5, -72.5) + frame.Name = "MessageDialog" + frame.Active = true + frame.Style = Enum.FrameStyle.RobloxRound + + local styleImage = Instance.new("ImageLabel") + styleImage.Name = "StyleImage" + styleImage.BackgroundTransparency = 1 + styleImage.Position = UDim2.new(0,5,0,15) + if style == "error" or style == "Error" then + styleImage.Size = UDim2.new(0, 71, 0, 71) + styleImage.Image = "http://www.mete0r.xyz/asset/?id=42565285" + elseif style == "notify" or style == "Notify" then + styleImage.Size = UDim2.new(0, 71, 0, 71) + styleImage.Image = "http://www.mete0r.xyz/asset/?id=42604978" + elseif style == "confirm" or style == "Confirm" then + styleImage.Size = UDim2.new(0, 74, 0, 76) + styleImage.Image = "http://www.mete0r.xyz/asset/?id=42557901" + else + return t.CreateMessageDialog(title,message,buttons) + end + styleImage.Parent = frame + + local titleLabel = Instance.new("TextLabel") + titleLabel.Name = "Title" + titleLabel.Text = title + titleLabel.TextStrokeTransparency = 0 + titleLabel.BackgroundTransparency = 1 + titleLabel.TextColor3 = Color3.new(221/255,221/255,221/255) + titleLabel.Position = UDim2.new(0, 80, 0, 0) + titleLabel.Size = UDim2.new(1, -80, 0, 40) + titleLabel.Font = Enum.Font.ArialBold + titleLabel.FontSize = Enum.FontSize.Size36 + titleLabel.TextXAlignment = Enum.TextXAlignment.Center + titleLabel.TextYAlignment = Enum.TextYAlignment.Center + titleLabel.Parent = frame + + local messageLabel = Instance.new("TextLabel") + messageLabel.Name = "Message" + messageLabel.Text = message + messageLabel.TextStrokeTransparency = 0 + messageLabel.TextColor3 = Color3.new(221/255,221/255,221/255) + messageLabel.Position = UDim2.new(0.025, 80, 0, 45) + messageLabel.Size = UDim2.new(0.95, -80, 0, 55) + messageLabel.BackgroundTransparency = 1 + messageLabel.Font = Enum.Font.Arial + messageLabel.FontSize = Enum.FontSize.Size18 + messageLabel.TextWrap = true + messageLabel.TextXAlignment = Enum.TextXAlignment.Left + messageLabel.TextYAlignment = Enum.TextYAlignment.Top + messageLabel.Parent = frame + + CreateButtons(frame, buttons, UDim.new(0, 105), UDim.new(0, 40) ) + + return frame +end + +t.CreateMessageDialog = function(title, message, buttons) + local frame = Instance.new("Frame") + frame.Size = UDim2.new(0.5, 0, 0.5, 0) + frame.Position = UDim2.new(0.25, 0, 0.25, 0) + frame.Name = "MessageDialog" + frame.Active = true + frame.Style = Enum.FrameStyle.RobloxRound + + local titleLabel = Instance.new("TextLabel") + titleLabel.Name = "Title" + titleLabel.Text = title + titleLabel.BackgroundTransparency = 1 + titleLabel.TextColor3 = Color3.new(221/255,221/255,221/255) + titleLabel.Position = UDim2.new(0, 0, 0, 0) + titleLabel.Size = UDim2.new(1, 0, 0.15, 0) + titleLabel.Font = Enum.Font.ArialBold + titleLabel.FontSize = Enum.FontSize.Size36 + titleLabel.TextXAlignment = Enum.TextXAlignment.Center + titleLabel.TextYAlignment = Enum.TextYAlignment.Center + titleLabel.Parent = frame + + local messageLabel = Instance.new("TextLabel") + messageLabel.Name = "Message" + messageLabel.Text = message + messageLabel.TextColor3 = Color3.new(221/255,221/255,221/255) + messageLabel.Position = UDim2.new(0.025, 0, 0.175, 0) + messageLabel.Size = UDim2.new(0.95, 0, .55, 0) + messageLabel.BackgroundTransparency = 1 + messageLabel.Font = Enum.Font.Arial + messageLabel.FontSize = Enum.FontSize.Size18 + messageLabel.TextWrap = true + messageLabel.TextXAlignment = Enum.TextXAlignment.Left + messageLabel.TextYAlignment = Enum.TextYAlignment.Top + messageLabel.Parent = frame + + CreateButtons(frame, buttons, UDim.new(0.8,0), UDim.new(0.15, 0)) + + return frame +end + +t.CreateDropDownMenu = function(items, onSelect, forRoblox, whiteSkin, baseZ) + local baseZIndex = 0 + if (type(baseZ) == "number") then + baseZIndex = baseZ + end + local width = UDim.new(0, 100) + local height = UDim.new(0, 32) + + local xPos = 0.055 + local frame = Instance.new("Frame") + local textColor = Color3.new(1,1,1) + if (whiteSkin) then + textColor = Color3.new(0.5, 0.5, 0.5) + end + frame.Name = "DropDownMenu" + frame.BackgroundTransparency = 1 + frame.Size = UDim2.new(width, height) + + local dropDownMenu = Instance.new("TextButton") + dropDownMenu.Name = "DropDownMenuButton" + dropDownMenu.TextWrap = true + dropDownMenu.TextColor3 = textColor + dropDownMenu.Text = "Choose One" + dropDownMenu.Font = Enum.Font.ArialBold + dropDownMenu.FontSize = Enum.FontSize.Size18 + dropDownMenu.TextXAlignment = Enum.TextXAlignment.Left + dropDownMenu.TextYAlignment = Enum.TextYAlignment.Center + dropDownMenu.BackgroundTransparency = 1 + dropDownMenu.AutoButtonColor = true + if (whiteSkin) then + dropDownMenu.Style = Enum.ButtonStyle.RobloxRoundDropdownButton + else + dropDownMenu.Style = Enum.ButtonStyle.RobloxButton + end + dropDownMenu.Size = UDim2.new(1,0,1,0) + dropDownMenu.Parent = frame + dropDownMenu.ZIndex = 2 + baseZIndex + + local dropDownIcon = Instance.new("ImageLabel") + dropDownIcon.Name = "Icon" + dropDownIcon.Active = false + if (whiteSkin) then + dropDownIcon.Image = "rbxasset://textures/ui/dropdown_arrow.png" + dropDownIcon.Size = UDim2.new(0,16,0,12) + dropDownIcon.Position = UDim2.new(1,-17,0.5, -6) + else + dropDownIcon.Image = "http://www.mete0r.xyz/asset/?id=45732894" + dropDownIcon.Size = UDim2.new(0,11,0,6) + dropDownIcon.Position = UDim2.new(1,-11,0.5, -2) + end + dropDownIcon.BackgroundTransparency = 1 + dropDownIcon.Parent = dropDownMenu + dropDownIcon.ZIndex = 2 + baseZIndex + + local itemCount = #items + local dropDownItemCount = #items + local useScrollButtons = false + if dropDownItemCount > 6 then + useScrollButtons = true + dropDownItemCount = 6 + end + + local droppedDownMenu = Instance.new("TextButton") + droppedDownMenu.Name = "List" + droppedDownMenu.Text = "" + droppedDownMenu.BackgroundTransparency = 1 + --droppedDownMenu.AutoButtonColor = true + if (whiteSkin) then + droppedDownMenu.Style = Enum.ButtonStyle.RobloxRoundDropdownButton + else + droppedDownMenu.Style = Enum.ButtonStyle.RobloxButton + end + droppedDownMenu.Visible = false + droppedDownMenu.Active = true --Blocks clicks + droppedDownMenu.Position = UDim2.new(0,0,0,0) + droppedDownMenu.Size = UDim2.new(1,0, (1 + dropDownItemCount)*.8, 0) + droppedDownMenu.Parent = frame + droppedDownMenu.ZIndex = 2 + baseZIndex + + local choiceButton = Instance.new("TextButton") + choiceButton.Name = "ChoiceButton" + choiceButton.BackgroundTransparency = 1 + choiceButton.BorderSizePixel = 0 + choiceButton.Text = "ReplaceMe" + choiceButton.TextColor3 = textColor + choiceButton.TextXAlignment = Enum.TextXAlignment.Left + choiceButton.TextYAlignment = Enum.TextYAlignment.Center + choiceButton.BackgroundColor3 = Color3.new(1, 1, 1) + choiceButton.Font = Enum.Font.Arial + choiceButton.FontSize = Enum.FontSize.Size18 + if useScrollButtons then + choiceButton.Size = UDim2.new(1,-13, .8/((dropDownItemCount + 1)*.8),0) + else + choiceButton.Size = UDim2.new(1, 0, .8/((dropDownItemCount + 1)*.8),0) + end + choiceButton.TextWrap = true + choiceButton.ZIndex = 2 + baseZIndex + + local areaSoak = Instance.new("TextButton") + areaSoak.Name = "AreaSoak" + areaSoak.Text = "" + areaSoak.BackgroundTransparency = 1 + areaSoak.Active = true + areaSoak.Size = UDim2.new(1,0,1,0) + areaSoak.Visible = false + areaSoak.ZIndex = 3 + baseZIndex + + local dropDownSelected = false + + local scrollUpButton + local scrollDownButton + local scrollMouseCount = 0 + + local setZIndex = function(baseZIndex) + droppedDownMenu.ZIndex = baseZIndex +1 + if scrollUpButton then + scrollUpButton.ZIndex = baseZIndex + 3 + end + if scrollDownButton then + scrollDownButton.ZIndex = baseZIndex + 3 + end + + local children = droppedDownMenu:GetChildren() + if children then + for i, child in ipairs(children) do + if child.Name == "ChoiceButton" then + child.ZIndex = baseZIndex + 2 + elseif child.Name == "ClickCaptureButton" then + child.ZIndex = baseZIndex + end + end + end + end + + local scrollBarPosition = 1 + local updateScroll = function() + if scrollUpButton then + scrollUpButton.Active = scrollBarPosition > 1 + end + if scrollDownButton then + scrollDownButton.Active = scrollBarPosition + dropDownItemCount <= itemCount + end + + local children = droppedDownMenu:GetChildren() + if not children then return end + + local childNum = 1 + for i, obj in ipairs(children) do + if obj.Name == "ChoiceButton" then + if childNum < scrollBarPosition or childNum >= scrollBarPosition + dropDownItemCount then + obj.Visible = false + else + obj.Position = UDim2.new(0,0,((childNum-scrollBarPosition+1)*.8)/((dropDownItemCount+1)*.8),0) + obj.Visible = true + end + obj.TextColor3 = textColor + obj.BackgroundTransparency = 1 + + childNum = childNum + 1 + end + end + end + local toggleVisibility = function() + dropDownSelected = not dropDownSelected + + areaSoak.Visible = not areaSoak.Visible + dropDownMenu.Visible = not dropDownSelected + droppedDownMenu.Visible = dropDownSelected + if dropDownSelected then + setZIndex(4 + baseZIndex) + else + setZIndex(2 + baseZIndex) + end + if useScrollButtons then + updateScroll() + end + end + droppedDownMenu.MouseButton1Click:connect(toggleVisibility) + + local updateSelection = function(text) + local foundItem = false + local children = droppedDownMenu:GetChildren() + local childNum = 1 + if children then + for i, obj in ipairs(children) do + if obj.Name == "ChoiceButton" then + if obj.Text == text then + obj.Font = Enum.Font.ArialBold + foundItem = true + scrollBarPosition = childNum + if (whiteSkin) then + obj.TextColor3 = Color3.new(90/255,142/255,233/255) + end + else + obj.Font = Enum.Font.Arial + if (whiteSkin) then + obj.TextColor3 = textColor + end + end + childNum = childNum + 1 + end + end + end + if not text then + dropDownMenu.Text = "Choose One" + scrollBarPosition = 1 + else + if not foundItem then + error("Invalid Selection Update -- " .. text) + end + + if scrollBarPosition + dropDownItemCount > itemCount + 1 then + scrollBarPosition = itemCount - dropDownItemCount + 1 + end + + dropDownMenu.Text = text + end + end + + local function scrollDown() + if scrollBarPosition + dropDownItemCount <= itemCount then + scrollBarPosition = scrollBarPosition + 1 + updateScroll() + return true + end + return false + end + local function scrollUp() + if scrollBarPosition > 1 then + scrollBarPosition = scrollBarPosition - 1 + updateScroll() + return true + end + return false + end + + if useScrollButtons then + --Make some scroll buttons + scrollUpButton = Instance.new("ImageButton") + scrollUpButton.Name = "ScrollUpButton" + scrollUpButton.BackgroundTransparency = 1 + scrollUpButton.Image = "rbxasset://textures/ui/scrollbuttonUp.png" + scrollUpButton.Size = UDim2.new(0,17,0,17) + scrollUpButton.Position = UDim2.new(1,-11,(1*.8)/((dropDownItemCount+1)*.8),0) + scrollUpButton.MouseButton1Click:connect( + function() + scrollMouseCount = scrollMouseCount + 1 + end) + scrollUpButton.MouseLeave:connect( + function() + scrollMouseCount = scrollMouseCount + 1 + end) + scrollUpButton.MouseButton1Down:connect( + function() + scrollMouseCount = scrollMouseCount + 1 + + scrollUp() + local val = scrollMouseCount + wait(0.5) + while val == scrollMouseCount do + if scrollUp() == false then + break + end + wait(0.1) + end + end) + + scrollUpButton.Parent = droppedDownMenu + + scrollDownButton = Instance.new("ImageButton") + scrollDownButton.Name = "ScrollDownButton" + scrollDownButton.BackgroundTransparency = 1 + scrollDownButton.Image = "rbxasset://textures/ui/scrollbuttonDown.png" + scrollDownButton.Size = UDim2.new(0,17,0,17) + scrollDownButton.Position = UDim2.new(1,-11,1,-11) + scrollDownButton.Parent = droppedDownMenu + scrollDownButton.MouseButton1Click:connect( + function() + scrollMouseCount = scrollMouseCount + 1 + end) + scrollDownButton.MouseLeave:connect( + function() + scrollMouseCount = scrollMouseCount + 1 + end) + scrollDownButton.MouseButton1Down:connect( + function() + scrollMouseCount = scrollMouseCount + 1 + + scrollDown() + local val = scrollMouseCount + wait(0.5) + while val == scrollMouseCount do + if scrollDown() == false then + break + end + wait(0.1) + end + end) + + local scrollbar = Instance.new("ImageLabel") + scrollbar.Name = "ScrollBar" + scrollbar.Image = "rbxasset://textures/ui/scrollbar.png" + scrollbar.BackgroundTransparency = 1 + scrollbar.Size = UDim2.new(0, 18, (dropDownItemCount*.8)/((dropDownItemCount+1)*.8), -(17) - 11 - 4) + scrollbar.Position = UDim2.new(1,-11,(1*.8)/((dropDownItemCount+1)*.8),17+2) + scrollbar.Parent = droppedDownMenu + end + + for i,item in ipairs(items) do + -- needed to maintain local scope for items in event listeners below + local button = choiceButton:clone() + if forRoblox then + button.RobloxLocked = true + end + button.Text = item + button.Parent = droppedDownMenu + if (whiteSkin) then + button.TextColor3 = textColor + end + + button.MouseButton1Click:connect(function() + --Remove Highlight + if (not whiteSkin) then + button.TextColor3 = Color3.new(1,1,1) + end + button.BackgroundTransparency = 1 + + updateSelection(item) + onSelect(item) + + toggleVisibility() + end) + button.MouseEnter:connect(function() + --Add Highlight + if (not whiteSkin) then + button.TextColor3 = Color3.new(0,0,0) + end + button.BackgroundTransparency = 0 + end) + + button.MouseLeave:connect(function() + --Remove Highlight + if (not whiteSkin) then + button.TextColor3 = Color3.new(1,1,1) + end + button.BackgroundTransparency = 1 + end) + end + + --This does the initial layout of the buttons + updateScroll() + + frame.AncestryChanged:connect(function(child,parent) + if parent == nil then + areaSoak.Parent = nil + else + areaSoak.Parent = getScreenGuiAncestor(frame) + end + end) + + dropDownMenu.MouseButton1Click:connect(toggleVisibility) + areaSoak.MouseButton1Click:connect(toggleVisibility) + return frame, updateSelection +end + +t.CreatePropertyDropDownMenu = function(instance, property, enum) + + local items = enum:GetEnumItems() + local names = {} + local nameToItem = {} + for i,obj in ipairs(items) do + names[i] = obj.Name + nameToItem[obj.Name] = obj + end + + local frame + local updateSelection + frame, updateSelection = t.CreateDropDownMenu(names, function(text) instance[property] = nameToItem[text] end) + + ScopedConnect(frame, instance, "Changed", + function(prop) + if prop == property then + updateSelection(instance[property].Name) + end + end, + function() + updateSelection(instance[property].Name) + end) + + return frame +end + +t.GetFontHeight = function(font, fontSize) + if font == nil or fontSize == nil then + error("Font and FontSize must be non-nil") + end + + if font == Enum.Font.Legacy then + if fontSize == Enum.FontSize.Size8 then + return 12 + elseif fontSize == Enum.FontSize.Size9 then + return 14 + elseif fontSize == Enum.FontSize.Size10 then + return 15 + elseif fontSize == Enum.FontSize.Size11 then + return 17 + elseif fontSize == Enum.FontSize.Size12 then + return 18 + elseif fontSize == Enum.FontSize.Size14 then + return 21 + elseif fontSize == Enum.FontSize.Size18 then + return 27 + elseif fontSize == Enum.FontSize.Size24 then + return 36 + elseif fontSize == Enum.FontSize.Size36 then + return 54 + elseif fontSize == Enum.FontSize.Size48 then + return 72 + else + error("Unknown FontSize") + end + elseif font == Enum.Font.Arial or font == Enum.Font.ArialBold then + if fontSize == Enum.FontSize.Size8 then + return 8 + elseif fontSize == Enum.FontSize.Size9 then + return 9 + elseif fontSize == Enum.FontSize.Size10 then + return 10 + elseif fontSize == Enum.FontSize.Size11 then + return 11 + elseif fontSize == Enum.FontSize.Size12 then + return 12 + elseif fontSize == Enum.FontSize.Size14 then + return 14 + elseif fontSize == Enum.FontSize.Size18 then + return 18 + elseif fontSize == Enum.FontSize.Size24 then + return 24 + elseif fontSize == Enum.FontSize.Size36 then + return 36 + elseif fontSize == Enum.FontSize.Size48 then + return 48 + else + error("Unknown FontSize") + end + else + error("Unknown Font " .. font) + end +end + +local function layoutGuiObjectsHelper(frame, guiObjects, settingsTable) + local totalPixels = frame.AbsoluteSize.Y + local pixelsRemaining = frame.AbsoluteSize.Y + for i, child in ipairs(guiObjects) do + if child:IsA("TextLabel") or child:IsA("TextButton") then + local isLabel = child:IsA("TextLabel") + if isLabel then + pixelsRemaining = pixelsRemaining - settingsTable["TextLabelPositionPadY"] + else + pixelsRemaining = pixelsRemaining - settingsTable["TextButtonPositionPadY"] + end + child.Position = UDim2.new(child.Position.X.Scale, child.Position.X.Offset, 0, totalPixels - pixelsRemaining) + child.Size = UDim2.new(child.Size.X.Scale, child.Size.X.Offset, 0, pixelsRemaining) + + if child.TextFits and child.TextBounds.Y < pixelsRemaining then + child.Visible = true + if isLabel then + child.Size = UDim2.new(child.Size.X.Scale, child.Size.X.Offset, 0, child.TextBounds.Y + settingsTable["TextLabelSizePadY"]) + else + child.Size = UDim2.new(child.Size.X.Scale, child.Size.X.Offset, 0, child.TextBounds.Y + settingsTable["TextButtonSizePadY"]) + end + + while not child.TextFits do + child.Size = UDim2.new(child.Size.X.Scale, child.Size.X.Offset, 0, child.AbsoluteSize.Y + 1) + end + pixelsRemaining = pixelsRemaining - child.AbsoluteSize.Y + + if isLabel then + pixelsRemaining = pixelsRemaining - settingsTable["TextLabelPositionPadY"] + else + pixelsRemaining = pixelsRemaining - settingsTable["TextButtonPositionPadY"] + end + else + child.Visible = false + pixelsRemaining = -1 + end + + else + --GuiObject + child.Position = UDim2.new(child.Position.X.Scale, child.Position.X.Offset, 0, totalPixels - pixelsRemaining) + pixelsRemaining = pixelsRemaining - child.AbsoluteSize.Y + child.Visible = (pixelsRemaining >= 0) + end + end +end + +t.LayoutGuiObjects = function(frame, guiObjects, settingsTable) + if not frame:IsA("GuiObject") then + error("Frame must be a GuiObject") + end + for i, child in ipairs(guiObjects) do + if not child:IsA("GuiObject") then + error("All elements that are layed out must be of type GuiObject") + end + end + + if not settingsTable then + settingsTable = {} + end + + if not settingsTable["TextLabelSizePadY"] then + settingsTable["TextLabelSizePadY"] = 0 + end + if not settingsTable["TextLabelPositionPadY"] then + settingsTable["TextLabelPositionPadY"] = 0 + end + if not settingsTable["TextButtonSizePadY"] then + settingsTable["TextButtonSizePadY"] = 12 + end + if not settingsTable["TextButtonPositionPadY"] then + settingsTable["TextButtonPositionPadY"] = 2 + end + + --Wrapper frame takes care of styled objects + local wrapperFrame = Instance.new("Frame") + wrapperFrame.Name = "WrapperFrame" + wrapperFrame.BackgroundTransparency = 1 + wrapperFrame.Size = UDim2.new(1,0,1,0) + wrapperFrame.Parent = frame + + for i, child in ipairs(guiObjects) do + child.Parent = wrapperFrame + end + + local recalculate = function() + wait() + layoutGuiObjectsHelper(wrapperFrame, guiObjects, settingsTable) + end + + frame.Changed:connect( + function(prop) + if prop == "AbsoluteSize" then + --Wait a heartbeat for it to sync in + recalculate(nil) + end + end) + frame.AncestryChanged:connect(recalculate) + + layoutGuiObjectsHelper(wrapperFrame, guiObjects, settingsTable) +end + + +t.CreateSlider = function(steps,width,position) + local sliderGui = Instance.new("Frame") + sliderGui.Size = UDim2.new(1,0,1,0) + sliderGui.BackgroundTransparency = 1 + sliderGui.Name = "SliderGui" + + local sliderSteps = Instance.new("IntValue") + sliderSteps.Name = "SliderSteps" + sliderSteps.Value = steps + sliderSteps.Parent = sliderGui + + local areaSoak = Instance.new("TextButton") + areaSoak.Name = "AreaSoak" + areaSoak.Text = "" + areaSoak.BackgroundTransparency = 1 + areaSoak.Active = false + areaSoak.Size = UDim2.new(1,0,1,0) + areaSoak.Visible = false + areaSoak.ZIndex = 4 + + sliderGui.AncestryChanged:connect(function(child,parent) + if parent == nil then + areaSoak.Parent = nil + else + areaSoak.Parent = getScreenGuiAncestor(sliderGui) + end + end) + + local sliderPosition = Instance.new("IntValue") + sliderPosition.Name = "SliderPosition" + sliderPosition.Value = 0 + sliderPosition.Parent = sliderGui + + local id = math.random(1,100) + + local bar = Instance.new("TextButton") + bar.Text = "" + bar.AutoButtonColor = false + bar.Name = "Bar" + bar.BackgroundColor3 = Color3.new(0,0,0) + if type(width) == "number" then + bar.Size = UDim2.new(0,width,0,5) + else + bar.Size = UDim2.new(0,200,0,5) + end + bar.BorderColor3 = Color3.new(95/255,95/255,95/255) + bar.ZIndex = 2 + bar.Parent = sliderGui + + if position["X"] and position["X"]["Scale"] and position["X"]["Offset"] and position["Y"] and position["Y"]["Scale"] and position["Y"]["Offset"] then + bar.Position = position + end + + local slider = Instance.new("ImageButton") + slider.Name = "Slider" + slider.BackgroundTransparency = 1 + slider.Image = "rbxasset://textures/ui/Slider.png" + slider.Position = UDim2.new(0,0,0.5,-10) + slider.Size = UDim2.new(0,20,0,20) + slider.ZIndex = 3 + slider.Parent = bar + + local areaSoakMouseMoveCon = nil + + areaSoak.MouseLeave:connect(function() + if areaSoak.Visible then + cancelSlide(areaSoak) + end + end) + areaSoak.MouseButton1Up:connect(function() + if areaSoak.Visible then + cancelSlide(areaSoak) + end + end) + + slider.MouseButton1Down:connect(function() + areaSoak.Visible = true + if areaSoakMouseMoveCon then areaSoakMouseMoveCon:disconnect() end + areaSoakMouseMoveCon = areaSoak.MouseMoved:connect(function(x,y) + setSliderPos(x,slider,sliderPosition,bar,steps) + end) + end) + + slider.MouseButton1Up:connect(function() cancelSlide(areaSoak) end) + + sliderPosition.Changed:connect(function(prop) + sliderPosition.Value = math.min(steps, math.max(1,sliderPosition.Value)) + local relativePosX = (sliderPosition.Value - 1) / (steps - 1) + slider.Position = UDim2.new(relativePosX,-slider.AbsoluteSize.X/2,slider.Position.Y.Scale,slider.Position.Y.Offset) + end) + + bar.MouseButton1Down:connect(function(x,y) + setSliderPos(x,slider,sliderPosition,bar,steps) + end) + + return sliderGui, sliderPosition, sliderSteps + +end + + + +t.CreateSliderNew = function(steps,width,position) + local sliderGui = Instance.new("Frame") + sliderGui.Size = UDim2.new(1,0,1,0) + sliderGui.BackgroundTransparency = 1 + sliderGui.Name = "SliderGui" + + local sliderSteps = Instance.new("IntValue") + sliderSteps.Name = "SliderSteps" + sliderSteps.Value = steps + sliderSteps.Parent = sliderGui + + local areaSoak = Instance.new("TextButton") + areaSoak.Name = "AreaSoak" + areaSoak.Text = "" + areaSoak.BackgroundTransparency = 1 + areaSoak.Active = false + areaSoak.Size = UDim2.new(1,0,1,0) + areaSoak.Visible = false + areaSoak.ZIndex = 6 + + sliderGui.AncestryChanged:connect(function(child,parent) + if parent == nil then + areaSoak.Parent = nil + else + areaSoak.Parent = getScreenGuiAncestor(sliderGui) + end + end) + + local sliderPosition = Instance.new("IntValue") + sliderPosition.Name = "SliderPosition" + sliderPosition.Value = 0 + sliderPosition.Parent = sliderGui + + local id = math.random(1,100) + + local sliderBarImgHeight = 7 + local sliderBarCapImgWidth = 4 + + local bar = Instance.new("ImageButton") + bar.BackgroundTransparency = 1 + bar.Image = "rbxasset://textures/ui/Slider-BKG-Center.png" + bar.Name = "Bar" + local displayWidth = 200 + if type(width) == "number" then + bar.Size = UDim2.new(0,width - (sliderBarCapImgWidth * 2),0,sliderBarImgHeight) + displayWidth = width - (sliderBarCapImgWidth * 2) + else + bar.Size = UDim2.new(0,200,0,sliderBarImgHeight) + end + bar.ZIndex = 3 + bar.Parent = sliderGui + if position["X"] and position["X"]["Scale"] and position["X"]["Offset"] and position["Y"] and position["Y"]["Scale"] and position["Y"]["Offset"] then + bar.Position = position + end + + local barLeft = bar:clone() + barLeft.Name = "BarLeft" + barLeft.Image = "rbxasset://textures/ui/Slider-BKG-Left-Cap.png" + barLeft.Size = UDim2.new(0, sliderBarCapImgWidth, 0, sliderBarImgHeight) + barLeft.Position = UDim2.new(position.X.Scale, position.X.Offset - sliderBarCapImgWidth, position.Y.Scale, position.Y.Offset) + barLeft.Parent = sliderGui + barLeft.ZIndex = 3 + + local barRight = barLeft:clone() + barRight.Name = "BarRight" + barRight.Image = "rbxasset://textures/ui/Slider-BKG-Right-Cap.png" + barRight.Position = UDim2.new(position.X.Scale, position.X.Offset + displayWidth, position.Y.Scale, position.Y.Offset) + barRight.Parent = sliderGui + + local fillLeft = barLeft:clone() + fillLeft.Name = "FillLeft" + fillLeft.Image = "rbxasset://textures/ui/Slider-Fill-Left-Cap.png" + fillLeft.Parent = sliderGui + fillLeft.ZIndex = 4 + + local fill = fillLeft:clone() + fill.Name = "Fill" + fill.Image = "rbxasset://textures/ui/Slider-Fill-Center.png" + fill.Parent = bar + fill.ZIndex = 4 + fill.Position = UDim2.new(0, 0, 0, 0) + fill.Size = UDim2.new(0.5, 0, 1, 0) + + +-- bar.Visible = false + + local slider = Instance.new("ImageButton") + slider.Name = "Slider" + slider.BackgroundTransparency = 1 + slider.Image = "rbxasset://textures/ui/slider_new_tab.png" + slider.Position = UDim2.new(0,0,0.5,-14) + slider.Size = UDim2.new(0,28,0,28) + slider.ZIndex = 5 + slider.Parent = bar + + local areaSoakMouseMoveCon = nil + + areaSoak.MouseLeave:connect(function() + if areaSoak.Visible then + cancelSlide(areaSoak) + end + end) + areaSoak.MouseButton1Up:connect(function() + if areaSoak.Visible then + cancelSlide(areaSoak) + end + end) + + slider.MouseButton1Down:connect(function() + areaSoak.Visible = true + if areaSoakMouseMoveCon then areaSoakMouseMoveCon:disconnect() end + areaSoakMouseMoveCon = areaSoak.MouseMoved:connect(function(x,y) + setSliderPos(x,slider,sliderPosition,bar,steps) + end) + end) + + slider.MouseButton1Up:connect(function() cancelSlide(areaSoak) end) + + sliderPosition.Changed:connect(function(prop) + sliderPosition.Value = math.min(steps, math.max(1,sliderPosition.Value)) + local relativePosX = (sliderPosition.Value - 1) / (steps - 1) + slider.Position = UDim2.new(relativePosX,-slider.AbsoluteSize.X/2,slider.Position.Y.Scale,slider.Position.Y.Offset) + fill.Size = UDim2.new(relativePosX, 0, 1, 0) + end) + + bar.MouseButton1Down:connect(function(x,y) + setSliderPos(x,slider,sliderPosition,bar,steps) + end) + + return sliderGui, sliderPosition, sliderSteps + +end + + + + + +t.CreateTrueScrollingFrame = function() + local lowY = nil + local highY = nil + + local dragCon = nil + local upCon = nil + + local internalChange = false + + local descendantsChangeConMap = {} + + local scrollingFrame = Instance.new("Frame") + scrollingFrame.Name = "ScrollingFrame" + scrollingFrame.Active = true + scrollingFrame.Size = UDim2.new(1,0,1,0) + scrollingFrame.ClipsDescendants = true + + local controlFrame = Instance.new("Frame") + controlFrame.Name = "ControlFrame" + controlFrame.BackgroundTransparency = 1 + controlFrame.Size = UDim2.new(0,18,1,0) + controlFrame.Position = UDim2.new(1,-20,0,0) + controlFrame.Parent = scrollingFrame + + local scrollBottom = Instance.new("BoolValue") + scrollBottom.Value = false + scrollBottom.Name = "ScrollBottom" + scrollBottom.Parent = controlFrame + + local scrollUp = Instance.new("BoolValue") + scrollUp.Value = false + scrollUp.Name = "scrollUp" + scrollUp.Parent = controlFrame + + local scrollUpButton = Instance.new("TextButton") + scrollUpButton.Name = "ScrollUpButton" + scrollUpButton.Text = "" + scrollUpButton.AutoButtonColor = false + scrollUpButton.BackgroundColor3 = Color3.new(0,0,0) + scrollUpButton.BorderColor3 = Color3.new(1,1,1) + scrollUpButton.BackgroundTransparency = 0.5 + scrollUpButton.Size = UDim2.new(0,18,0,18) + scrollUpButton.ZIndex = 2 + scrollUpButton.Parent = controlFrame + for i = 1, 6 do + local triFrame = Instance.new("Frame") + triFrame.BorderColor3 = Color3.new(1,1,1) + triFrame.Name = "tri" .. tostring(i) + triFrame.ZIndex = 3 + triFrame.BackgroundTransparency = 0.5 + triFrame.Size = UDim2.new(0,12 - ((i -1) * 2),0,0) + triFrame.Position = UDim2.new(0,3 + (i -1),0.5,2 - (i -1)) + triFrame.Parent = scrollUpButton + end + scrollUpButton.MouseEnter:connect(function() + scrollUpButton.BackgroundTransparency = 0.1 + local upChildren = scrollUpButton:GetChildren() + for i = 1, #upChildren do + upChildren[i].BackgroundTransparency = 0.1 + end + end) + scrollUpButton.MouseLeave:connect(function() + scrollUpButton.BackgroundTransparency = 0.5 + local upChildren = scrollUpButton:GetChildren() + for i = 1, #upChildren do + upChildren[i].BackgroundTransparency = 0.5 + end + end) + + local scrollDownButton = scrollUpButton:clone() + scrollDownButton.Name = "ScrollDownButton" + scrollDownButton.Position = UDim2.new(0,0,1,-18) + local downChildren = scrollDownButton:GetChildren() + for i = 1, #downChildren do + downChildren[i].Position = UDim2.new(0,3 + (i -1),0.5,-2 + (i - 1)) + end + scrollDownButton.MouseEnter:connect(function() + scrollDownButton.BackgroundTransparency = 0.1 + local downChildren = scrollDownButton:GetChildren() + for i = 1, #downChildren do + downChildren[i].BackgroundTransparency = 0.1 + end + end) + scrollDownButton.MouseLeave:connect(function() + scrollDownButton.BackgroundTransparency = 0.5 + local downChildren = scrollDownButton:GetChildren() + for i = 1, #downChildren do + downChildren[i].BackgroundTransparency = 0.5 + end + end) + scrollDownButton.Parent = controlFrame + + local scrollTrack = Instance.new("Frame") + scrollTrack.Name = "ScrollTrack" + scrollTrack.BackgroundTransparency = 1 + scrollTrack.Size = UDim2.new(0,18,1,-38) + scrollTrack.Position = UDim2.new(0,0,0,19) + scrollTrack.Parent = controlFrame + + local scrollbar = Instance.new("TextButton") + scrollbar.BackgroundColor3 = Color3.new(0,0,0) + scrollbar.BorderColor3 = Color3.new(1,1,1) + scrollbar.BackgroundTransparency = 0.5 + scrollbar.AutoButtonColor = false + scrollbar.Text = "" + scrollbar.Active = true + scrollbar.Name = "ScrollBar" + scrollbar.ZIndex = 2 + scrollbar.BackgroundTransparency = 0.5 + scrollbar.Size = UDim2.new(0, 18, 0.1, 0) + scrollbar.Position = UDim2.new(0,0,0,0) + scrollbar.Parent = scrollTrack + + local scrollNub = Instance.new("Frame") + scrollNub.Name = "ScrollNub" + scrollNub.BorderColor3 = Color3.new(1,1,1) + scrollNub.Size = UDim2.new(0,10,0,0) + scrollNub.Position = UDim2.new(0.5,-5,0.5,0) + scrollNub.ZIndex = 2 + scrollNub.BackgroundTransparency = 0.5 + scrollNub.Parent = scrollbar + + local newNub = scrollNub:clone() + newNub.Position = UDim2.new(0.5,-5,0.5,-2) + newNub.Parent = scrollbar + + local lastNub = scrollNub:clone() + lastNub.Position = UDim2.new(0.5,-5,0.5,2) + lastNub.Parent = scrollbar + + scrollbar.MouseEnter:connect(function() + scrollbar.BackgroundTransparency = 0.1 + scrollNub.BackgroundTransparency = 0.1 + newNub.BackgroundTransparency = 0.1 + lastNub.BackgroundTransparency = 0.1 + end) + scrollbar.MouseLeave:connect(function() + scrollbar.BackgroundTransparency = 0.5 + scrollNub.BackgroundTransparency = 0.5 + newNub.BackgroundTransparency = 0.5 + lastNub.BackgroundTransparency = 0.5 + end) + + local mouseDrag = Instance.new("ImageButton") + mouseDrag.Active = false + mouseDrag.Size = UDim2.new(1.5, 0, 1.5, 0) + mouseDrag.AutoButtonColor = false + mouseDrag.BackgroundTransparency = 1 + mouseDrag.Name = "mouseDrag" + mouseDrag.Position = UDim2.new(-0.25, 0, -0.25, 0) + mouseDrag.ZIndex = 10 + + local function positionScrollBar(x,y,offset) + local oldPos = scrollbar.Position + + if y < scrollTrack.AbsolutePosition.y then + scrollbar.Position = UDim2.new(scrollbar.Position.X.Scale,scrollbar.Position.X.Offset,0,0) + return (oldPos ~= scrollbar.Position) + end + + local relativeSize = scrollbar.AbsoluteSize.Y/scrollTrack.AbsoluteSize.Y + + if y > (scrollTrack.AbsolutePosition.y + scrollTrack.AbsoluteSize.y) then + scrollbar.Position = UDim2.new(scrollbar.Position.X.Scale,scrollbar.Position.X.Offset,1 - relativeSize,0) + return (oldPos ~= scrollbar.Position) + end + local newScaleYPos = (y - scrollTrack.AbsolutePosition.y - offset)/scrollTrack.AbsoluteSize.y + if newScaleYPos + relativeSize > 1 then + newScaleYPos = 1 - relativeSize + scrollBottom.Value = true + scrollUp.Value = false + elseif newScaleYPos <= 0 then + newScaleYPos = 0 + scrollUp.Value = true + scrollBottom.Value = false + else + scrollUp.Value = false + scrollBottom.Value = false + end + scrollbar.Position = UDim2.new(scrollbar.Position.X.Scale,scrollbar.Position.X.Offset,newScaleYPos,0) + + return (oldPos ~= scrollbar.Position) + end + + local function drillDownSetHighLow(instance) + if not instance or not instance:IsA("GuiObject") then return end + if instance == controlFrame then return end + if instance:IsDescendantOf(controlFrame) then return end + if not instance.Visible then return end + + if lowY and lowY > instance.AbsolutePosition.Y then + lowY = instance.AbsolutePosition.Y + elseif not lowY then + lowY = instance.AbsolutePosition.Y + end + if highY and highY < (instance.AbsolutePosition.Y + instance.AbsoluteSize.Y) then + highY = instance.AbsolutePosition.Y + instance.AbsoluteSize.Y + elseif not highY then + highY = instance.AbsolutePosition.Y + instance.AbsoluteSize.Y + end + local children = instance:GetChildren() + for i = 1, #children do + drillDownSetHighLow(children[i]) + end + end + + local function resetHighLow() + local firstChildren = scrollingFrame:GetChildren() + + for i = 1, #firstChildren do + drillDownSetHighLow(firstChildren[i]) + end + end + + local function recalculate() + internalChange = true + + local percentFrame = 0 + if scrollbar.Position.Y.Scale > 0 then + if scrollbar.Visible then + percentFrame = scrollbar.Position.Y.Scale/((scrollTrack.AbsoluteSize.Y - scrollbar.AbsoluteSize.Y)/scrollTrack.AbsoluteSize.Y) + else + percentFrame = 0 + end + end + if percentFrame > 0.99 then percentFrame = 1 end + + local hiddenYAmount = (scrollingFrame.AbsoluteSize.Y - (highY - lowY)) * percentFrame + + local guiChildren = scrollingFrame:GetChildren() + for i = 1, #guiChildren do + if guiChildren[i] ~= controlFrame then + guiChildren[i].Position = UDim2.new(guiChildren[i].Position.X.Scale,guiChildren[i].Position.X.Offset, + 0, math.ceil(guiChildren[i].AbsolutePosition.Y) - math.ceil(lowY) + hiddenYAmount) + end + end + + lowY = nil + highY = nil + resetHighLow() + internalChange = false + end + + local function setSliderSizeAndPosition() + if not highY or not lowY then return end + + local totalYSpan = math.abs(highY - lowY) + if totalYSpan == 0 then + scrollbar.Visible = false + scrollDownButton.Visible = false + scrollUpButton.Visible = false + + if dragCon then dragCon:disconnect() dragCon = nil end + if upCon then upCon:disconnect() upCon = nil end + return + end + + local percentShown = scrollingFrame.AbsoluteSize.Y/totalYSpan + if percentShown >= 1 then + scrollbar.Visible = false + scrollDownButton.Visible = false + scrollUpButton.Visible = false + recalculate() + else + scrollbar.Visible = true + scrollDownButton.Visible = true + scrollUpButton.Visible = true + + scrollbar.Size = UDim2.new(scrollbar.Size.X.Scale,scrollbar.Size.X.Offset,percentShown,0) + end + + local percentPosition = (scrollingFrame.AbsolutePosition.Y - lowY)/totalYSpan + scrollbar.Position = UDim2.new(scrollbar.Position.X.Scale,scrollbar.Position.X.Offset,percentPosition,-scrollbar.AbsoluteSize.X/2) + + if scrollbar.AbsolutePosition.y < scrollTrack.AbsolutePosition.y then + scrollbar.Position = UDim2.new(scrollbar.Position.X.Scale,scrollbar.Position.X.Offset,0,0) + end + + if (scrollbar.AbsolutePosition.y + scrollbar.AbsoluteSize.Y) > (scrollTrack.AbsolutePosition.y + scrollTrack.AbsoluteSize.y) then + local relativeSize = scrollbar.AbsoluteSize.Y/scrollTrack.AbsoluteSize.Y + scrollbar.Position = UDim2.new(scrollbar.Position.X.Scale,scrollbar.Position.X.Offset,1 - relativeSize,0) + end + end + + local buttonScrollAmountPixels = 7 + local reentrancyGuardScrollUp = false + local function doScrollUp() + if reentrancyGuardScrollUp then return end + + reentrancyGuardScrollUp = true + if positionScrollBar(0,scrollbar.AbsolutePosition.Y - buttonScrollAmountPixels,0) then + recalculate() + end + reentrancyGuardScrollUp = false + end + + local reentrancyGuardScrollDown = false + local function doScrollDown() + if reentrancyGuardScrollDown then return end + + reentrancyGuardScrollDown = true + if positionScrollBar(0,scrollbar.AbsolutePosition.Y + buttonScrollAmountPixels,0) then + recalculate() + end + reentrancyGuardScrollDown = false + end + + local function scrollUp(mouseYPos) + if scrollUpButton.Active then + scrollStamp = tick() + local current = scrollStamp + local upCon + upCon = mouseDrag.MouseButton1Up:connect(function() + scrollStamp = tick() + mouseDrag.Parent = nil + upCon:disconnect() + end) + mouseDrag.Parent = getScreenGuiAncestor(scrollbar) + doScrollUp() + wait(0.2) + local t = tick() + local w = 0.1 + while scrollStamp == current do + doScrollUp() + if mouseYPos and mouseYPos > scrollbar.AbsolutePosition.y then + break + end + if not scrollUpButton.Active then break end + if tick()-t > 5 then + w = 0 + elseif tick()-t > 2 then + w = 0.06 + end + wait(w) + end + end + end + + local function scrollDown(mouseYPos) + if scrollDownButton.Active then + scrollStamp = tick() + local current = scrollStamp + local downCon + downCon = mouseDrag.MouseButton1Up:connect(function() + scrollStamp = tick() + mouseDrag.Parent = nil + downCon:disconnect() + end) + mouseDrag.Parent = getScreenGuiAncestor(scrollbar) + doScrollDown() + wait(0.2) + local t = tick() + local w = 0.1 + while scrollStamp == current do + doScrollDown() + if mouseYPos and mouseYPos < (scrollbar.AbsolutePosition.y + scrollbar.AbsoluteSize.x) then + break + end + if not scrollDownButton.Active then break end + if tick()-t > 5 then + w = 0 + elseif tick()-t > 2 then + w = 0.06 + end + wait(w) + end + end + end + + scrollbar.MouseButton1Down:connect(function(x,y) + if scrollbar.Active then + scrollStamp = tick() + local mouseOffset = y - scrollbar.AbsolutePosition.y + if dragCon then dragCon:disconnect() dragCon = nil end + if upCon then upCon:disconnect() upCon = nil end + local prevY = y + local reentrancyGuardMouseScroll = false + dragCon = mouseDrag.MouseMoved:connect(function(x,y) + if reentrancyGuardMouseScroll then return end + + reentrancyGuardMouseScroll = true + if positionScrollBar(x,y,mouseOffset) then + recalculate() + end + reentrancyGuardMouseScroll = false + + end) + upCon = mouseDrag.MouseButton1Up:connect(function() + scrollStamp = tick() + mouseDrag.Parent = nil + dragCon:disconnect(); dragCon = nil + upCon:disconnect(); drag = nil + end) + mouseDrag.Parent = getScreenGuiAncestor(scrollbar) + end + end) + + local scrollMouseCount = 0 + + scrollUpButton.MouseButton1Down:connect(function() + scrollUp() + end) + scrollUpButton.MouseButton1Up:connect(function() + scrollStamp = tick() + end) + + scrollDownButton.MouseButton1Up:connect(function() + scrollStamp = tick() + end) + scrollDownButton.MouseButton1Down:connect(function() + scrollDown() + end) + + scrollbar.MouseButton1Up:connect(function() + scrollStamp = tick() + end) + + local function heightCheck(instance) + if highY and (instance.AbsolutePosition.Y + instance.AbsoluteSize.Y) > highY then + highY = instance.AbsolutePosition.Y + instance.AbsoluteSize.Y + elseif not highY then + highY = instance.AbsolutePosition.Y + instance.AbsoluteSize.Y + end + setSliderSizeAndPosition() + end + + local function highLowRecheck() + local oldLowY = lowY + local oldHighY = highY + lowY = nil + highY = nil + resetHighLow() + + if (lowY ~= oldLowY) or (highY ~= oldHighY) then + setSliderSizeAndPosition() + end + end + + local function descendantChanged(this, prop) + if internalChange then return end + if not this.Visible then return end + + if prop == "Size" or prop == "Position" then + wait() + highLowRecheck() + end + end + + scrollingFrame.DescendantAdded:connect(function(instance) + if not instance:IsA("GuiObject") then return end + + if instance.Visible then + wait() -- wait a heartbeat for sizes to reconfig + highLowRecheck() + end + + descendantsChangeConMap[instance] = instance.Changed:connect(function(prop) descendantChanged(instance, prop) end) + end) + + scrollingFrame.DescendantRemoving:connect(function(instance) + if not instance:IsA("GuiObject") then return end + if descendantsChangeConMap[instance] then + descendantsChangeConMap[instance]:disconnect() + descendantsChangeConMap[instance] = nil + end + wait() -- wait a heartbeat for sizes to reconfig + highLowRecheck() + end) + + scrollingFrame.Changed:connect(function(prop) + if prop == "AbsoluteSize" then + if not highY or not lowY then return end + + highLowRecheck() + setSliderSizeAndPosition() + end + end) + + return scrollingFrame, controlFrame +end + +t.CreateScrollingFrame = function(orderList,scrollStyle) + local frame = Instance.new("Frame") + frame.Name = "ScrollingFrame" + frame.BackgroundTransparency = 1 + frame.Size = UDim2.new(1,0,1,0) + + local scrollUpButton = Instance.new("ImageButton") + scrollUpButton.Name = "ScrollUpButton" + scrollUpButton.BackgroundTransparency = 1 + scrollUpButton.Image = "rbxasset://textures/ui/scrollbuttonUp.png" + scrollUpButton.Size = UDim2.new(0,17,0,17) + + + local scrollDownButton = Instance.new("ImageButton") + scrollDownButton.Name = "ScrollDownButton" + scrollDownButton.BackgroundTransparency = 1 + scrollDownButton.Image = "rbxasset://textures/ui/scrollbuttonDown.png" + scrollDownButton.Size = UDim2.new(0,17,0,17) + + local scrollbar = Instance.new("ImageButton") + scrollbar.Name = "ScrollBar" + scrollbar.Image = "rbxasset://textures/ui/scrollbar.png" + scrollbar.BackgroundTransparency = 1 + scrollbar.Size = UDim2.new(0, 18, 0, 150) + + local scrollStamp = 0 + + local scrollDrag = Instance.new("ImageButton") + scrollDrag.Image = "http://www.mete0r.xyz/asset/?id=61367186" + scrollDrag.Size = UDim2.new(1, 0, 0, 16) + scrollDrag.BackgroundTransparency = 1 + scrollDrag.Name = "ScrollDrag" + scrollDrag.Active = true + scrollDrag.Parent = scrollbar + + local mouseDrag = Instance.new("ImageButton") + mouseDrag.Active = false + mouseDrag.Size = UDim2.new(1.5, 0, 1.5, 0) + mouseDrag.AutoButtonColor = false + mouseDrag.BackgroundTransparency = 1 + mouseDrag.Name = "mouseDrag" + mouseDrag.Position = UDim2.new(-0.25, 0, -0.25, 0) + mouseDrag.ZIndex = 10 + + local style = "simple" + if scrollStyle and tostring(scrollStyle) then + style = scrollStyle + end + + local scrollPosition = 1 + local rowSize = 0 + local howManyDisplayed = 0 + + local layoutGridScrollBar = function() + howManyDisplayed = 0 + local guiObjects = {} + if orderList then + for i, child in ipairs(orderList) do + if child.Parent == frame then + table.insert(guiObjects, child) + end + end + else + local children = frame:GetChildren() + if children then + for i, child in ipairs(children) do + if child:IsA("GuiObject") then + table.insert(guiObjects, child) + end + end + end + end + if #guiObjects == 0 then + scrollUpButton.Active = false + scrollDownButton.Active = false + scrollDrag.Active = false + scrollPosition = 1 + return + end + + if scrollPosition > #guiObjects then + scrollPosition = #guiObjects + end + + if scrollPosition < 1 then scrollPosition = 1 end + + local totalPixelsY = frame.AbsoluteSize.Y + local pixelsRemainingY = frame.AbsoluteSize.Y + + local totalPixelsX = frame.AbsoluteSize.X + + local xCounter = 0 + local rowSizeCounter = 0 + local setRowSize = true + + local pixelsBelowScrollbar = 0 + local pos = #guiObjects + + local currentRowY = 0 + + pos = scrollPosition + --count up from current scroll position to fill out grid + while pos <= #guiObjects and pixelsBelowScrollbar < totalPixelsY do + xCounter = xCounter + guiObjects[pos].AbsoluteSize.X + --previous pos was the end of a row + if xCounter >= totalPixelsX then + pixelsBelowScrollbar = pixelsBelowScrollbar + currentRowY + currentRowY = 0 + xCounter = guiObjects[pos].AbsoluteSize.X + end + if guiObjects[pos].AbsoluteSize.Y > currentRowY then + currentRowY = guiObjects[pos].AbsoluteSize.Y + end + pos = pos + 1 + end + --Count wherever current row left off + pixelsBelowScrollbar = pixelsBelowScrollbar + currentRowY + currentRowY = 0 + + pos = scrollPosition - 1 + xCounter = 0 + + --objects with varying X,Y dimensions can rarely cause minor errors + --rechecking every new scrollPosition is necessary to avoid 100% of errors + + --count backwards from current scrollPosition to see if we can add more rows + while pixelsBelowScrollbar + currentRowY < totalPixelsY and pos >= 1 do + xCounter = xCounter + guiObjects[pos].AbsoluteSize.X + rowSizeCounter = rowSizeCounter + 1 + if xCounter >= totalPixelsX then + rowSize = rowSizeCounter - 1 + rowSizeCounter = 0 + xCounter = guiObjects[pos].AbsoluteSize.X + if pixelsBelowScrollbar + currentRowY <= totalPixelsY then + --It fits, so back up our scroll position + pixelsBelowScrollbar = pixelsBelowScrollbar + currentRowY + if scrollPosition <= rowSize then + scrollPosition = 1 + break + else + scrollPosition = scrollPosition - rowSize + end + currentRowY = 0 + else + break + end + end + + if guiObjects[pos].AbsoluteSize.Y > currentRowY then + currentRowY = guiObjects[pos].AbsoluteSize.Y + end + + pos = pos - 1 + end + + --Do check last time if pos = 0 + if (pos == 0) and (pixelsBelowScrollbar + currentRowY <= totalPixelsY) then + scrollPosition = 1 + end + + xCounter = 0 + --pos = scrollPosition + rowSizeCounter = 0 + setRowSize = true + local lastChildSize = 0 + + local xOffset,yOffset = 0 + if guiObjects[1] then + yOffset = math.ceil(math.floor(math.fmod(totalPixelsY,guiObjects[1].AbsoluteSize.X))/2) + xOffset = math.ceil(math.floor(math.fmod(totalPixelsX,guiObjects[1].AbsoluteSize.Y))/2) + end + + for i, child in ipairs(guiObjects) do + if i < scrollPosition then + --print("Hiding " .. child.Name) + child.Visible = false + else + if pixelsRemainingY < 0 then + --print("Out of Space " .. child.Name) + child.Visible = false + else + --print("Laying out " .. child.Name) + --GuiObject + if setRowSize then rowSizeCounter = rowSizeCounter + 1 end + if xCounter + child.AbsoluteSize.X >= totalPixelsX then + if setRowSize then + rowSize = rowSizeCounter - 1 + setRowSize = false + end + xCounter = 0 + pixelsRemainingY = pixelsRemainingY - child.AbsoluteSize.Y + end + child.Position = UDim2.new(child.Position.X.Scale,xCounter + xOffset, 0, totalPixelsY - pixelsRemainingY + yOffset) + xCounter = xCounter + child.AbsoluteSize.X + child.Visible = ((pixelsRemainingY - child.AbsoluteSize.Y) >= 0) + if child.Visible then + howManyDisplayed = howManyDisplayed + 1 + end + lastChildSize = child.AbsoluteSize + end + end + end + + scrollUpButton.Active = (scrollPosition > 1) + if lastChildSize == 0 then + scrollDownButton.Active = false + else + scrollDownButton.Active = ((pixelsRemainingY - lastChildSize.Y) < 0) + end + scrollDrag.Active = #guiObjects > howManyDisplayed + scrollDrag.Visible = scrollDrag.Active + end + + + + local layoutSimpleScrollBar = function() + local guiObjects = {} + howManyDisplayed = 0 + + if orderList then + for i, child in ipairs(orderList) do + if child.Parent == frame then + table.insert(guiObjects, child) + end + end + else + local children = frame:GetChildren() + if children then + for i, child in ipairs(children) do + if child:IsA("GuiObject") then + table.insert(guiObjects, child) + end + end + end + end + if #guiObjects == 0 then + scrollUpButton.Active = false + scrollDownButton.Active = false + scrollDrag.Active = false + scrollPosition = 1 + return + end + + if scrollPosition > #guiObjects then + scrollPosition = #guiObjects + end + + local totalPixels = frame.AbsoluteSize.Y + local pixelsRemaining = frame.AbsoluteSize.Y + + local pixelsBelowScrollbar = 0 + local pos = #guiObjects + while pixelsBelowScrollbar < totalPixels and pos >= 1 do + if pos >= scrollPosition then + pixelsBelowScrollbar = pixelsBelowScrollbar + guiObjects[pos].AbsoluteSize.Y + else + if pixelsBelowScrollbar + guiObjects[pos].AbsoluteSize.Y <= totalPixels then + --It fits, so back up our scroll position + pixelsBelowScrollbar = pixelsBelowScrollbar + guiObjects[pos].AbsoluteSize.Y + if scrollPosition <= 1 then + scrollPosition = 1 + break + else + --local ("Backing up ScrollPosition from -- " ..scrollPosition) + scrollPosition = scrollPosition - 1 + end + else + break + end + end + pos = pos - 1 + end + + pos = scrollPosition + for i, child in ipairs(guiObjects) do + if i < scrollPosition then + --print("Hiding " .. child.Name) + child.Visible = false + else + if pixelsRemaining < 0 then + --print("Out of Space " .. child.Name) + child.Visible = false + else + --print("Laying out " .. child.Name) + --GuiObject + child.Position = UDim2.new(child.Position.X.Scale, child.Position.X.Offset, 0, totalPixels - pixelsRemaining) + pixelsRemaining = pixelsRemaining - child.AbsoluteSize.Y + if (pixelsRemaining >= 0) then + child.Visible = true + howManyDisplayed = howManyDisplayed + 1 + else + child.Visible = false + end + end + end + end + scrollUpButton.Active = (scrollPosition > 1) + scrollDownButton.Active = (pixelsRemaining < 0) + scrollDrag.Active = #guiObjects > howManyDisplayed + scrollDrag.Visible = scrollDrag.Active + end + + + local moveDragger = function() + local guiObjects = 0 + local children = frame:GetChildren() + if children then + for i, child in ipairs(children) do + if child:IsA("GuiObject") then + guiObjects = guiObjects + 1 + end + end + end + + if not scrollDrag.Parent then return end + + local dragSizeY = scrollDrag.Parent.AbsoluteSize.y * (1/(guiObjects - howManyDisplayed + 1)) + if dragSizeY < 16 then dragSizeY = 16 end + scrollDrag.Size = UDim2.new(scrollDrag.Size.X.Scale,scrollDrag.Size.X.Offset,scrollDrag.Size.Y.Scale,dragSizeY) + + local relativeYPos = (scrollPosition - 1)/(guiObjects - (howManyDisplayed)) + if relativeYPos > 1 then relativeYPos = 1 + elseif relativeYPos < 0 then relativeYPos = 0 end + local absYPos = 0 + + if relativeYPos ~= 0 then + absYPos = (relativeYPos * scrollbar.AbsoluteSize.y) - (relativeYPos * scrollDrag.AbsoluteSize.y) + end + + scrollDrag.Position = UDim2.new(scrollDrag.Position.X.Scale,scrollDrag.Position.X.Offset,scrollDrag.Position.Y.Scale,absYPos) + end + + local reentrancyGuard = false + local recalculate = function() + if reentrancyGuard then + return + end + reentrancyGuard = true + wait() + local success, err = nil + if style == "grid" then + success, err = pcall(function() layoutGridScrollBar() end) + elseif style == "simple" then + success, err = pcall(function() layoutSimpleScrollBar() end) + end + if not success then print(err) end + moveDragger() + reentrancyGuard = false + end + + local doScrollUp = function() + scrollPosition = (scrollPosition) - rowSize + if scrollPosition < 1 then scrollPosition = 1 end + recalculate(nil) + end + + local doScrollDown = function() + scrollPosition = (scrollPosition) + rowSize + recalculate(nil) + end + + local scrollUp = function(mouseYPos) + if scrollUpButton.Active then + scrollStamp = tick() + local current = scrollStamp + local upCon + upCon = mouseDrag.MouseButton1Up:connect(function() + scrollStamp = tick() + mouseDrag.Parent = nil + upCon:disconnect() + end) + mouseDrag.Parent = getScreenGuiAncestor(scrollbar) + doScrollUp() + wait(0.2) + local t = tick() + local w = 0.1 + while scrollStamp == current do + doScrollUp() + if mouseYPos and mouseYPos > scrollDrag.AbsolutePosition.y then + break + end + if not scrollUpButton.Active then break end + if tick()-t > 5 then + w = 0 + elseif tick()-t > 2 then + w = 0.06 + end + wait(w) + end + end + end + + local scrollDown = function(mouseYPos) + if scrollDownButton.Active then + scrollStamp = tick() + local current = scrollStamp + local downCon + downCon = mouseDrag.MouseButton1Up:connect(function() + scrollStamp = tick() + mouseDrag.Parent = nil + downCon:disconnect() + end) + mouseDrag.Parent = getScreenGuiAncestor(scrollbar) + doScrollDown() + wait(0.2) + local t = tick() + local w = 0.1 + while scrollStamp == current do + doScrollDown() + if mouseYPos and mouseYPos < (scrollDrag.AbsolutePosition.y + scrollDrag.AbsoluteSize.x) then + break + end + if not scrollDownButton.Active then break end + if tick()-t > 5 then + w = 0 + elseif tick()-t > 2 then + w = 0.06 + end + wait(w) + end + end + end + + local y = 0 + scrollDrag.MouseButton1Down:connect(function(x,y) + if scrollDrag.Active then + scrollStamp = tick() + local mouseOffset = y - scrollDrag.AbsolutePosition.y + local dragCon + local upCon + dragCon = mouseDrag.MouseMoved:connect(function(x,y) + local barAbsPos = scrollbar.AbsolutePosition.y + local barAbsSize = scrollbar.AbsoluteSize.y + + local dragAbsSize = scrollDrag.AbsoluteSize.y + local barAbsOne = barAbsPos + barAbsSize - dragAbsSize + y = y - mouseOffset + y = y < barAbsPos and barAbsPos or y > barAbsOne and barAbsOne or y + y = y - barAbsPos + + local guiObjects = 0 + local children = frame:GetChildren() + if children then + for i, child in ipairs(children) do + if child:IsA("GuiObject") then + guiObjects = guiObjects + 1 + end + end + end + + local doublePercent = y/(barAbsSize-dragAbsSize) + local rowDiff = rowSize + local totalScrollCount = guiObjects - (howManyDisplayed - 1) + local newScrollPosition = math.floor((doublePercent * totalScrollCount) + 0.5) + rowDiff + if newScrollPosition < scrollPosition then + rowDiff = -rowDiff + end + + if newScrollPosition < 1 then + newScrollPosition = 1 + end + + scrollPosition = newScrollPosition + recalculate(nil) + end) + upCon = mouseDrag.MouseButton1Up:connect(function() + scrollStamp = tick() + mouseDrag.Parent = nil + dragCon:disconnect(); dragCon = nil + upCon:disconnect(); drag = nil + end) + mouseDrag.Parent = getScreenGuiAncestor(scrollbar) + end + end) + + local scrollMouseCount = 0 + + scrollUpButton.MouseButton1Down:connect( + function() + scrollUp() + end) + scrollUpButton.MouseButton1Up:connect(function() + scrollStamp = tick() + end) + + + scrollDownButton.MouseButton1Up:connect(function() + scrollStamp = tick() + end) + scrollDownButton.MouseButton1Down:connect( + function() + scrollDown() + end) + + scrollbar.MouseButton1Up:connect(function() + scrollStamp = tick() + end) + scrollbar.MouseButton1Down:connect( + function(x,y) + if y > (scrollDrag.AbsoluteSize.y + scrollDrag.AbsolutePosition.y) then + scrollDown(y) + elseif y < (scrollDrag.AbsolutePosition.y) then + scrollUp(y) + end + end) + + + frame.ChildAdded:connect(function() + recalculate(nil) + end) + + frame.ChildRemoved:connect(function() + recalculate(nil) + end) + + frame.Changed:connect( + function(prop) + if prop == "AbsoluteSize" then + --Wait a heartbeat for it to sync in + recalculate(nil) + end + end) + frame.AncestryChanged:connect(function() recalculate(nil) end) + + return frame, scrollUpButton, scrollDownButton, recalculate, scrollbar +end +local function binaryGrow(min, max, fits) + if min > max then + return min + end + local biggestLegal = min + + while min <= max do + local mid = min + math.floor((max - min) / 2) + if fits(mid) and (biggestLegal == nil or biggestLegal < mid) then + biggestLegal = mid + + --Try growing + min = mid + 1 + else + --Doesn't fit, shrink + max = mid - 1 + end + end + return biggestLegal +end + + +local function binaryShrink(min, max, fits) + if min > max then + return min + end + local smallestLegal = max + + while min <= max do + local mid = min + math.floor((max - min) / 2) + if fits(mid) and (smallestLegal == nil or smallestLegal > mid) then + smallestLegal = mid + + --It fits, shrink + max = mid - 1 + else + --Doesn't fit, grow + min = mid + 1 + end + end + return smallestLegal +end + + +local function getGuiOwner(instance) + while instance ~= nil do + if instance:IsA("ScreenGui") or instance:IsA("BillboardGui") then + return instance + end + instance = instance.Parent + end + return nil +end + +t.AutoTruncateTextObject = function(textLabel) + local text = textLabel.Text + + local fullLabel = textLabel:Clone() + fullLabel.Name = "Full" .. textLabel.Name + fullLabel.BorderSizePixel = 0 + fullLabel.BackgroundTransparency = 0 + fullLabel.Text = text + fullLabel.TextXAlignment = Enum.TextXAlignment.Center + fullLabel.Position = UDim2.new(0,-3,0,0) + fullLabel.Size = UDim2.new(0,100,1,0) + fullLabel.Visible = false + fullLabel.Parent = textLabel + + local shortText = nil + local mouseEnterConnection = nil + local mouseLeaveConnection= nil + + local checkForResize = function() + if getGuiOwner(textLabel) == nil then + return + end + textLabel.Text = text + if textLabel.TextFits then + --Tear down the rollover if it is active + if mouseEnterConnection then + mouseEnterConnection:disconnect() + mouseEnterConnection = nil + end + if mouseLeaveConnection then + mouseLeaveConnection:disconnect() + mouseLeaveConnection = nil + end + else + local len = string.len(text) + textLabel.Text = text .. "~" + + --Shrink the text + local textSize = binaryGrow(0, len, + function(pos) + if pos == 0 then + textLabel.Text = "~" + else + textLabel.Text = string.sub(text, 1, pos) .. "~" + end + return textLabel.TextFits + end) + shortText = string.sub(text, 1, textSize) .. "~" + textLabel.Text = shortText + + --Make sure the fullLabel fits + if not fullLabel.TextFits then + --Already too small, grow it really bit to start + fullLabel.Size = UDim2.new(0, 10000, 1, 0) + end + + --Okay, now try to binary shrink it back down + local fullLabelSize = binaryShrink(textLabel.AbsoluteSize.X,fullLabel.AbsoluteSize.X, + function(size) + fullLabel.Size = UDim2.new(0, size, 1, 0) + return fullLabel.TextFits + end) + fullLabel.Size = UDim2.new(0,fullLabelSize+6,1,0) + + --Now setup the rollover effects, if they are currently off + if mouseEnterConnection == nil then + mouseEnterConnection = textLabel.MouseEnter:connect( + function() + fullLabel.ZIndex = textLabel.ZIndex + 1 + fullLabel.Visible = true + --textLabel.Text = "" + end) + end + if mouseLeaveConnection == nil then + mouseLeaveConnection = textLabel.MouseLeave:connect( + function() + fullLabel.Visible = false + --textLabel.Text = shortText + end) + end + end + end + textLabel.AncestryChanged:connect(checkForResize) + textLabel.Changed:connect( + function(prop) + if prop == "AbsoluteSize" then + checkForResize() + end + end) + + checkForResize() + + local function changeText(newText) + text = newText + fullLabel.Text = text + checkForResize() + end + + return textLabel, changeText +end + +local function TransitionTutorialPages(fromPage, toPage, transitionFrame, currentPageValue) + if fromPage then + fromPage.Visible = false + if transitionFrame.Visible == false then + transitionFrame.Size = fromPage.Size + transitionFrame.Position = fromPage.Position + end + else + if transitionFrame.Visible == false then + transitionFrame.Size = UDim2.new(0.0,50,0.0,50) + transitionFrame.Position = UDim2.new(0.5,-25,0.5,-25) + end + end + transitionFrame.Visible = true + currentPageValue.Value = nil + + local newsize, newPosition + if toPage then + --Make it visible so it resizes + toPage.Visible = true + + newSize = toPage.Size + newPosition = toPage.Position + + toPage.Visible = false + else + newSize = UDim2.new(0.0,50,0.0,50) + newPosition = UDim2.new(0.5,-25,0.5,-25) + end + transitionFrame:TweenSizeAndPosition(newSize, newPosition, Enum.EasingDirection.InOut, Enum.EasingStyle.Quad, 0.3, true, + function(state) + if state == Enum.TweenStatus.Completed then + transitionFrame.Visible = false + if toPage then + toPage.Visible = true + currentPageValue.Value = toPage + end + end + end) +end + +t.CreateTutorial = function(name, tutorialKey, createButtons) + local frame = Instance.new("Frame") + frame.Name = "Tutorial-" .. name + frame.BackgroundTransparency = 1 + frame.Size = UDim2.new(0.6, 0, 0.6, 0) + frame.Position = UDim2.new(0.2, 0, 0.2, 0) + + local transitionFrame = Instance.new("Frame") + transitionFrame.Name = "TransitionFrame" + transitionFrame.Style = Enum.FrameStyle.RobloxRound + transitionFrame.Size = UDim2.new(0.6, 0, 0.6, 0) + transitionFrame.Position = UDim2.new(0.2, 0, 0.2, 0) + transitionFrame.Visible = false + transitionFrame.Parent = frame + + local currentPageValue = Instance.new("ObjectValue") + currentPageValue.Name = "CurrentTutorialPage" + currentPageValue.Value = nil + currentPageValue.Parent = frame + + local boolValue = Instance.new("BoolValue") + boolValue.Name = "Buttons" + boolValue.Value = createButtons + boolValue.Parent = frame + + local pages = Instance.new("Frame") + pages.Name = "Pages" + pages.BackgroundTransparency = 1 + pages.Size = UDim2.new(1,0,1,0) + pages.Parent = frame + + local function getVisiblePageAndHideOthers() + local visiblePage = nil + local children = pages:GetChildren() + if children then + for i,child in ipairs(children) do + if child.Visible then + if visiblePage then + child.Visible = false + else + visiblePage = child + end + end + end + end + return visiblePage + end + + local showTutorial = function(alwaysShow) + if alwaysShow or UserSettings().GameSettings:GetTutorialState(tutorialKey) == false then + print("Showing tutorial-",tutorialKey) + local currentTutorialPage = getVisiblePageAndHideOthers() + + local firstPage = pages:FindFirstChild("TutorialPage1") + if firstPage then + TransitionTutorialPages(currentTutorialPage, firstPage, transitionFrame, currentPageValue) + else + error("Could not find TutorialPage1") + end + end + end + + local dismissTutorial = function() + local currentTutorialPage = getVisiblePageAndHideOthers() + + if currentTutorialPage then + TransitionTutorialPages(currentTutorialPage, nil, transitionFrame, currentPageValue) + end + + UserSettings().GameSettings:SetTutorialState(tutorialKey, true) + end + + local gotoPage = function(pageNum) + local page = pages:FindFirstChild("TutorialPage" .. pageNum) + local currentTutorialPage = getVisiblePageAndHideOthers() + TransitionTutorialPages(currentTutorialPage, page, transitionFrame, currentPageValue) + end + + return frame, showTutorial, dismissTutorial, gotoPage +end + +local function CreateBasicTutorialPage(name, handleResize, skipTutorial, giveDoneButton) + local frame = Instance.new("Frame") + frame.Name = "TutorialPage" + frame.Style = Enum.FrameStyle.RobloxRound + frame.Size = UDim2.new(0.6, 0, 0.6, 0) + frame.Position = UDim2.new(0.2, 0, 0.2, 0) + frame.Visible = false + + local frameHeader = Instance.new("TextLabel") + frameHeader.Name = "Header" + frameHeader.Text = name + frameHeader.BackgroundTransparency = 1 + frameHeader.FontSize = Enum.FontSize.Size24 + frameHeader.Font = Enum.Font.ArialBold + frameHeader.TextColor3 = Color3.new(1,1,1) + frameHeader.TextXAlignment = Enum.TextXAlignment.Center + frameHeader.TextWrap = true + frameHeader.Size = UDim2.new(1,-55, 0, 22) + frameHeader.Position = UDim2.new(0,0,0,0) + frameHeader.Parent = frame + + local skipButton = Instance.new("ImageButton") + skipButton.Name = "SkipButton" + skipButton.AutoButtonColor = false + skipButton.BackgroundTransparency = 1 + skipButton.Image = "rbxasset://textures/ui/closeButton.png" + skipButton.MouseButton1Click:connect(function() + skipTutorial() + end) + skipButton.MouseEnter:connect(function() + skipButton.Image = "rbxasset://textures/ui/closeButton_dn.png" + end) + skipButton.MouseLeave:connect(function() + skipButton.Image = "rbxasset://textures/ui/closeButton.png" + end) + skipButton.Size = UDim2.new(0, 25, 0, 25) + skipButton.Position = UDim2.new(1, -25, 0, 0) + skipButton.Parent = frame + + + if giveDoneButton then + local doneButton = Instance.new("TextButton") + doneButton.Name = "DoneButton" + doneButton.Style = Enum.ButtonStyle.RobloxButtonDefault + doneButton.Text = "Done" + doneButton.TextColor3 = Color3.new(1,1,1) + doneButton.Font = Enum.Font.ArialBold + doneButton.FontSize = Enum.FontSize.Size18 + doneButton.Size = UDim2.new(0,100,0,50) + doneButton.Position = UDim2.new(0.5,-50,1,-50) + + if skipTutorial then + doneButton.MouseButton1Click:connect(function() skipTutorial() end) + end + + doneButton.Parent = frame + end + + local innerFrame = Instance.new("Frame") + innerFrame.Name = "ContentFrame" + innerFrame.BackgroundTransparency = 1 + innerFrame.Position = UDim2.new(0,0,0,25) + innerFrame.Parent = frame + + local nextButton = Instance.new("TextButton") + nextButton.Name = "NextButton" + nextButton.Text = "Next" + nextButton.TextColor3 = Color3.new(1,1,1) + nextButton.Font = Enum.Font.Arial + nextButton.FontSize = Enum.FontSize.Size18 + nextButton.Style = Enum.ButtonStyle.RobloxButtonDefault + nextButton.Size = UDim2.new(0,80, 0, 32) + nextButton.Position = UDim2.new(0.5, 5, 1, -32) + nextButton.Active = false + nextButton.Visible = false + nextButton.Parent = frame + + local prevButton = Instance.new("TextButton") + prevButton.Name = "PrevButton" + prevButton.Text = "Previous" + prevButton.TextColor3 = Color3.new(1,1,1) + prevButton.Font = Enum.Font.Arial + prevButton.FontSize = Enum.FontSize.Size18 + prevButton.Style = Enum.ButtonStyle.RobloxButton + prevButton.Size = UDim2.new(0,80, 0, 32) + prevButton.Position = UDim2.new(0.5, -85, 1, -32) + prevButton.Active = false + prevButton.Visible = false + prevButton.Parent = frame + + if giveDoneButton then + innerFrame.Size = UDim2.new(1,0,1,-75) + else + innerFrame.Size = UDim2.new(1,0,1,-22) + end + + local parentConnection = nil + + local function basicHandleResize() + if frame.Visible and frame.Parent then + local maxSize = math.min(frame.Parent.AbsoluteSize.X, frame.Parent.AbsoluteSize.Y) + handleResize(200,maxSize) + end + end + + frame.Changed:connect( + function(prop) + if prop == "Parent" then + if parentConnection ~= nil then + parentConnection:disconnect() + parentConnection = nil + end + if frame.Parent and frame.Parent:IsA("GuiObject") then + parentConnection = frame.Parent.Changed:connect( + function(parentProp) + if parentProp == "AbsoluteSize" then + wait() + basicHandleResize() + end + end) + basicHandleResize() + end + end + + if prop == "Visible" then + basicHandleResize() + end + end) + + return frame, innerFrame +end + +t.CreateTextTutorialPage = function(name, text, skipTutorialFunc) + local frame = nil + local contentFrame = nil + + local textLabel = Instance.new("TextLabel") + textLabel.BackgroundTransparency = 1 + textLabel.TextColor3 = Color3.new(1,1,1) + textLabel.Text = text + textLabel.TextWrap = true + textLabel.TextXAlignment = Enum.TextXAlignment.Left + textLabel.TextYAlignment = Enum.TextYAlignment.Center + textLabel.Font = Enum.Font.Arial + textLabel.FontSize = Enum.FontSize.Size14 + textLabel.Size = UDim2.new(1,0,1,0) + + local function handleResize(minSize, maxSize) + size = binaryShrink(minSize, maxSize, + function(size) + frame.Size = UDim2.new(0, size, 0, size) + return textLabel.TextFits + end) + frame.Size = UDim2.new(0, size, 0, size) + frame.Position = UDim2.new(0.5, -size/2, 0.5, -size/2) + end + + frame, contentFrame = CreateBasicTutorialPage(name, handleResize, skipTutorialFunc) + textLabel.Parent = contentFrame + + return frame +end + +t.CreateImageTutorialPage = function(name, imageAsset, x, y, skipTutorialFunc, giveDoneButton) + local frame = nil + local contentFrame = nil + + local imageLabel = Instance.new("ImageLabel") + imageLabel.BackgroundTransparency = 1 + imageLabel.Image = imageAsset + imageLabel.Size = UDim2.new(0,x,0,y) + imageLabel.Position = UDim2.new(0.5,-x/2,0.5,-y/2) + + local function handleResize(minSize, maxSize) + size = binaryShrink(minSize, maxSize, + function(size) + return size >= x and size >= y + end) + if size >= x and size >= y then + imageLabel.Size = UDim2.new(0,x, 0,y) + imageLabel.Position = UDim2.new(0.5,-x/2, 0.5, -y/2) + else + if x > y then + --X is limiter, so + imageLabel.Size = UDim2.new(1,0,y/x,0) + imageLabel.Position = UDim2.new(0,0, 0.5 - (y/x)/2, 0) + else + --Y is limiter + imageLabel.Size = UDim2.new(x/y,0,1, 0) + imageLabel.Position = UDim2.new(0.5-(x/y)/2, 0, 0, 0) + end + end + size = size + 50 + frame.Size = UDim2.new(0, size, 0, size) + frame.Position = UDim2.new(0.5, -size/2, 0.5, -size/2) + end + + frame, contentFrame = CreateBasicTutorialPage(name, handleResize, skipTutorialFunc, giveDoneButton) + imageLabel.Parent = contentFrame + + return frame +end + +t.AddTutorialPage = function(tutorial, tutorialPage) + local transitionFrame = tutorial.TransitionFrame + local currentPageValue = tutorial.CurrentTutorialPage + + if not tutorial.Buttons.Value then + tutorialPage.NextButton.Parent = nil + tutorialPage.PrevButton.Parent = nil + end + + local children = tutorial.Pages:GetChildren() + if children and #children > 0 then + tutorialPage.Name = "TutorialPage" .. (#children+1) + local previousPage = children[#children] + if not previousPage:IsA("GuiObject") then + error("All elements under Pages must be GuiObjects") + end + + if tutorial.Buttons.Value then + if previousPage.NextButton.Active then + error("NextButton already Active on previousPage, please only add pages with RbxGui.AddTutorialPage function") + end + previousPage.NextButton.MouseButton1Click:connect( + function() + TransitionTutorialPages(previousPage, tutorialPage, transitionFrame, currentPageValue) + end) + previousPage.NextButton.Active = true + previousPage.NextButton.Visible = true + + if tutorialPage.PrevButton.Active then + error("PrevButton already Active on tutorialPage, please only add pages with RbxGui.AddTutorialPage function") + end + tutorialPage.PrevButton.MouseButton1Click:connect( + function() + TransitionTutorialPages(tutorialPage, previousPage, transitionFrame, currentPageValue) + end) + tutorialPage.PrevButton.Active = true + tutorialPage.PrevButton.Visible = true + end + + tutorialPage.Parent = tutorial.Pages + else + --First child + tutorialPage.Name = "TutorialPage1" + tutorialPage.Parent = tutorial.Pages + end +end + +t.CreateSetPanel = function(userIdsForSets, objectSelected, dialogClosed, size, position, showAdminCategories, useAssetVersionId) + + if not userIdsForSets then + error("CreateSetPanel: userIdsForSets (first arg) is nil, should be a table of number ids") + end + if type(userIdsForSets) ~= "table" and type(userIdsForSets) ~= "userdata" then + error("CreateSetPanel: userIdsForSets (first arg) is of type " ..type(userIdsForSets) .. ", should be of type table or userdata") + end + if not objectSelected then + error("CreateSetPanel: objectSelected (second arg) is nil, should be a callback function!") + end + if type(objectSelected) ~= "function" then + error("CreateSetPanel: objectSelected (second arg) is of type " .. type(objectSelected) .. ", should be of type function!") + end + if dialogClosed and type(dialogClosed) ~= "function" then + error("CreateSetPanel: dialogClosed (third arg) is of type " .. type(dialogClosed) .. ", should be of type function!") + end + + if showAdminCategories == nil then -- by default, don't show beta sets + showAdminCategories = false + end + + local arrayPosition = 1 + local insertButtons = {} + local insertButtonCons = {} + local contents = nil + local setGui = nil + + -- used for water selections + local waterForceDirection = "NegX" + local waterForce = "None" + local waterGui, waterTypeChangedEvent = nil + + local Data = {} + Data.CurrentCategory = nil + Data.Category = {} + local SetCache = {} + + local userCategoryButtons = nil + + local buttonWidth = 64 + local buttonHeight = buttonWidth + + local SmallThumbnailUrl = nil + local LargeThumbnailUrl = nil + local BaseUrl = game:GetService("ContentProvider").BaseUrl:lower() + + if useAssetVersionId then + LargeThumbnailUrl = BaseUrl .. "Game/Tools/ThumbnailAsset.ashx?fmt=png&wd=420&ht=420&assetversionid=" + SmallThumbnailUrl = BaseUrl .. "Game/Tools/ThumbnailAsset.ashx?fmt=png&wd=75&ht=75&assetversionid=" + else + LargeThumbnailUrl = BaseUrl .. "Game/Tools/ThumbnailAsset.ashx?fmt=png&wd=420&ht=420&aid=" + SmallThumbnailUrl = BaseUrl .. "Game/Tools/ThumbnailAsset.ashx?fmt=png&wd=75&ht=75&aid=" + end + + local function drillDownSetZIndex(parent, index) + local children = parent:GetChildren() + for i = 1, #children do + if children[i]:IsA("GuiObject") then + children[i].ZIndex = index + end + drillDownSetZIndex(children[i], index) + end + end + + -- for terrain stamping + local currTerrainDropDownFrame = nil + local terrainShapes = {"Block","Vertical Ramp","Corner Wedge","Inverse Corner Wedge","Horizontal Ramp","Auto-Wedge"} + local terrainShapeMap = {} + for i = 1, #terrainShapes do + terrainShapeMap[terrainShapes[i]] = i - 1 + end + terrainShapeMap[terrainShapes[#terrainShapes]] = 6 + + local function createWaterGui() + local waterForceDirections = {"NegX","X","NegY","Y","NegZ","Z"} + local waterForces = {"None", "Small", "Medium", "Strong", "Max"} + + local waterFrame = Instance.new("Frame") + waterFrame.Name = "WaterFrame" + waterFrame.Style = Enum.FrameStyle.RobloxSquare + waterFrame.Size = UDim2.new(0,150,0,110) + waterFrame.Visible = false + + local waterForceLabel = Instance.new("TextLabel") + waterForceLabel.Name = "WaterForceLabel" + waterForceLabel.BackgroundTransparency = 1 + waterForceLabel.Size = UDim2.new(1,0,0,12) + waterForceLabel.Font = Enum.Font.ArialBold + waterForceLabel.FontSize = Enum.FontSize.Size12 + waterForceLabel.TextColor3 = Color3.new(1,1,1) + waterForceLabel.TextXAlignment = Enum.TextXAlignment.Left + waterForceLabel.Text = "Water Force" + waterForceLabel.Parent = waterFrame + + local waterForceDirLabel = waterForceLabel:Clone() + waterForceDirLabel.Name = "WaterForceDirectionLabel" + waterForceDirLabel.Text = "Water Force Direction" + waterForceDirLabel.Position = UDim2.new(0,0,0,50) + waterForceDirLabel.Parent = waterFrame + + local waterTypeChangedEvent = Instance.new("BindableEvent",waterFrame) + waterTypeChangedEvent.Name = "WaterTypeChangedEvent" + + local waterForceDirectionSelectedFunc = function(newForceDirection) + waterForceDirection = newForceDirection + waterTypeChangedEvent:Fire({waterForce, waterForceDirection}) + end + local waterForceSelectedFunc = function(newForce) + waterForce = newForce + waterTypeChangedEvent:Fire({waterForce, waterForceDirection}) + end + + local waterForceDirectionDropDown, forceWaterDirectionSelection = t.CreateDropDownMenu(waterForceDirections, waterForceDirectionSelectedFunc) + waterForceDirectionDropDown.Size = UDim2.new(1,0,0,25) + waterForceDirectionDropDown.Position = UDim2.new(0,0,1,3) + forceWaterDirectionSelection("NegX") + waterForceDirectionDropDown.Parent = waterForceDirLabel + + local waterForceDropDown, forceWaterForceSelection = t.CreateDropDownMenu(waterForces, waterForceSelectedFunc) + forceWaterForceSelection("None") + waterForceDropDown.Size = UDim2.new(1,0,0,25) + waterForceDropDown.Position = UDim2.new(0,0,1,3) + waterForceDropDown.Parent = waterForceLabel + + return waterFrame, waterTypeChangedEvent + end + + -- Helper Function that contructs gui elements + local function createSetGui() + + local setGui = Instance.new("ScreenGui") + setGui.Name = "SetGui" + + local setPanel = Instance.new("Frame") + setPanel.Name = "SetPanel" + setPanel.Active = true + setPanel.BackgroundTransparency = 1 + if position then + setPanel.Position = position + else + setPanel.Position = UDim2.new(0.2, 29, 0.1, 24) + end + if size then + setPanel.Size = size + else + setPanel.Size = UDim2.new(0.6, -58, 0.64, 0) + end + setPanel.Style = Enum.FrameStyle.RobloxRound + setPanel.ZIndex = 6 + setPanel.Parent = setGui + + -- Children of SetPanel + local itemPreview = Instance.new("Frame") + itemPreview.Name = "ItemPreview" + itemPreview.BackgroundTransparency = 1 + itemPreview.Position = UDim2.new(0.8,5,0.085,0) + itemPreview.Size = UDim2.new(0.21,0,0.9,0) + itemPreview.ZIndex = 6 + itemPreview.Parent = setPanel + + -- Children of ItemPreview + local textPanel = Instance.new("Frame") + textPanel.Name = "TextPanel" + textPanel.BackgroundTransparency = 1 + textPanel.Position = UDim2.new(0,0,0.45,0) + textPanel.Size = UDim2.new(1,0,0.55,0) + textPanel.ZIndex = 6 + textPanel.Parent = itemPreview + + -- Children of TextPanel + local rolloverText = Instance.new("TextLabel") + rolloverText.Name = "RolloverText" + rolloverText.BackgroundTransparency = 1 + rolloverText.Size = UDim2.new(1,0,0,48) + rolloverText.ZIndex = 6 + rolloverText.Font = Enum.Font.ArialBold + rolloverText.FontSize = Enum.FontSize.Size24 + rolloverText.Text = "" + rolloverText.TextColor3 = Color3.new(1,1,1) + rolloverText.TextWrap = true + rolloverText.TextXAlignment = Enum.TextXAlignment.Left + rolloverText.TextYAlignment = Enum.TextYAlignment.Top + rolloverText.Parent = textPanel + + local largePreview = Instance.new("ImageLabel") + largePreview.Name = "LargePreview" + largePreview.BackgroundTransparency = 1 + largePreview.Image = "" + largePreview.Size = UDim2.new(1,0,0,170) + largePreview.ZIndex = 6 + largePreview.Parent = itemPreview + + local sets = Instance.new("Frame") + sets.Name = "Sets" + sets.BackgroundTransparency = 1 + sets.Position = UDim2.new(0,0,0,5) + sets.Size = UDim2.new(0.23,0,1,-5) + sets.ZIndex = 6 + sets.Parent = setPanel + + -- Children of Sets + local line = Instance.new("Frame") + line.Name = "Line" + line.BackgroundColor3 = Color3.new(1,1,1) + line.BackgroundTransparency = 0.7 + line.BorderSizePixel = 0 + line.Position = UDim2.new(1,-3,0.06,0) + line.Size = UDim2.new(0,3,0.9,0) + line.ZIndex = 6 + line.Parent = sets + + local setsLists, controlFrame = t.CreateTrueScrollingFrame() + setsLists.Size = UDim2.new(1,-6,0.94,0) + setsLists.Position = UDim2.new(0,0,0.06,0) + setsLists.BackgroundTransparency = 1 + setsLists.Name = "SetsLists" + setsLists.ZIndex = 6 + setsLists.Parent = sets + drillDownSetZIndex(controlFrame, 7) + + local setsHeader = Instance.new("TextLabel") + setsHeader.Name = "SetsHeader" + setsHeader.BackgroundTransparency = 1 + setsHeader.Size = UDim2.new(0,47,0,24) + setsHeader.ZIndex = 6 + setsHeader.Font = Enum.Font.ArialBold + setsHeader.FontSize = Enum.FontSize.Size24 + setsHeader.Text = "Sets" + setsHeader.TextColor3 = Color3.new(1,1,1) + setsHeader.TextXAlignment = Enum.TextXAlignment.Left + setsHeader.TextYAlignment = Enum.TextYAlignment.Top + setsHeader.Parent = sets + + local cancelButton = Instance.new("TextButton") + cancelButton.Name = "CancelButton" + cancelButton.Position = UDim2.new(1,-32,0,-2) + cancelButton.Size = UDim2.new(0,34,0,34) + cancelButton.Style = Enum.ButtonStyle.RobloxButtonDefault + cancelButton.ZIndex = 6 + cancelButton.Text = "" + cancelButton.Modal = true + cancelButton.Parent = setPanel + + -- Children of Cancel Button + local cancelImage = Instance.new("ImageLabel") + cancelImage.Name = "CancelImage" + cancelImage.BackgroundTransparency = 1 + cancelImage.Image = "http://www.mete0r.xyz/asset/?id=54135717" + cancelImage.Position = UDim2.new(0,-2,0,-2) + cancelImage.Size = UDim2.new(0,16,0,16) + cancelImage.ZIndex = 6 + cancelImage.Parent = cancelButton + + return setGui + end + + local function createSetButton(text) + local setButton = Instance.new("TextButton") + + if text then setButton.Text = text + else setButton.Text = "" end + + setButton.AutoButtonColor = false + setButton.BackgroundTransparency = 1 + setButton.BackgroundColor3 = Color3.new(1,1,1) + setButton.BorderSizePixel = 0 + setButton.Size = UDim2.new(1,-5,0,18) + setButton.ZIndex = 6 + setButton.Visible = false + setButton.Font = Enum.Font.Arial + setButton.FontSize = Enum.FontSize.Size18 + setButton.TextColor3 = Color3.new(1,1,1) + setButton.TextXAlignment = Enum.TextXAlignment.Left + + return setButton + end + + local function buildSetButton(name, setId, setImageId, i, count) + local button = createSetButton(name) + button.Text = name + button.Name = "SetButton" + button.Visible = true + + local setValue = Instance.new("IntValue") + setValue.Name = "SetId" + setValue.Value = setId + setValue.Parent = button + + local setName = Instance.new("StringValue") + setName.Name = "SetName" + setName.Value = name + setName.Parent = button + + return button + end + + local function processCategory(sets) + local setButtons = {} + local numSkipped = 0 + for i = 1, #sets do + if not showAdminCategories and sets[i].Name == "Beta" then + numSkipped = numSkipped + 1 + else + setButtons[i - numSkipped] = buildSetButton(sets[i].Name, sets[i].CategoryId, sets[i].ImageAssetId, i - numSkipped, #sets) + end + end + return setButtons + end + + local function handleResize() + wait() -- neccessary to insure heartbeat happened + + local itemPreview = setGui.SetPanel.ItemPreview + + itemPreview.LargePreview.Size = UDim2.new(1,0,0,itemPreview.AbsoluteSize.X) + itemPreview.LargePreview.Position = UDim2.new(0.5,-itemPreview.LargePreview.AbsoluteSize.X/2,0,0) + itemPreview.TextPanel.Position = UDim2.new(0,0,0,itemPreview.LargePreview.AbsoluteSize.Y) + itemPreview.TextPanel.Size = UDim2.new(1,0,0,itemPreview.AbsoluteSize.Y - itemPreview.LargePreview.AbsoluteSize.Y) + end + + local function makeInsertAssetButton() + local insertAssetButtonExample = Instance.new("Frame") + insertAssetButtonExample.Name = "InsertAssetButtonExample" + insertAssetButtonExample.Position = UDim2.new(0,128,0,64) + insertAssetButtonExample.Size = UDim2.new(0,64,0,64) + insertAssetButtonExample.BackgroundTransparency = 1 + insertAssetButtonExample.ZIndex = 6 + insertAssetButtonExample.Visible = false + + local assetId = Instance.new("IntValue") + assetId.Name = "AssetId" + assetId.Value = 0 + assetId.Parent = insertAssetButtonExample + + local assetName = Instance.new("StringValue") + assetName.Name = "AssetName" + assetName.Value = "" + assetName.Parent = insertAssetButtonExample + + local button = Instance.new("TextButton") + button.Name = "Button" + button.Text = "" + button.Style = Enum.ButtonStyle.RobloxButton + button.Position = UDim2.new(0.025,0,0.025,0) + button.Size = UDim2.new(0.95,0,0.95,0) + button.ZIndex = 6 + button.Parent = insertAssetButtonExample + + local buttonImage = Instance.new("ImageLabel") + buttonImage.Name = "ButtonImage" + buttonImage.Image = "" + buttonImage.Position = UDim2.new(0,-7,0,-7) + buttonImage.Size = UDim2.new(1,14,1,14) + buttonImage.BackgroundTransparency = 1 + buttonImage.ZIndex = 7 + buttonImage.Parent = button + + local configIcon = buttonImage:clone() + configIcon.Name = "ConfigIcon" + configIcon.Visible = false + configIcon.Position = UDim2.new(1,-23,1,-24) + configIcon.Size = UDim2.new(0,16,0,16) + configIcon.Image = "" + configIcon.ZIndex = 6 + configIcon.Parent = insertAssetButtonExample + + return insertAssetButtonExample + end + + local function showLargePreview(insertButton) + if insertButton:FindFirstChild("AssetId") then + delay(0,function() + game:GetService("ContentProvider"):Preload(LargeThumbnailUrl .. tostring(insertButton.AssetId.Value)) + setGui.SetPanel.ItemPreview.LargePreview.Image = LargeThumbnailUrl .. tostring(insertButton.AssetId.Value) + end) + end + if insertButton:FindFirstChild("AssetName") then + setGui.SetPanel.ItemPreview.TextPanel.RolloverText.Text = insertButton.AssetName.Value + end + end + + local function selectTerrainShape(shape) + if currTerrainDropDownFrame then + objectSelected(tostring(currTerrainDropDownFrame.AssetName.Value), tonumber(currTerrainDropDownFrame.AssetId.Value), shape) + end + end + + local function createTerrainTypeButton(name, parent) + local dropDownTextButton = Instance.new("TextButton") + dropDownTextButton.Name = name .. "Button" + dropDownTextButton.Font = Enum.Font.ArialBold + dropDownTextButton.FontSize = Enum.FontSize.Size14 + dropDownTextButton.BorderSizePixel = 0 + dropDownTextButton.TextColor3 = Color3.new(1,1,1) + dropDownTextButton.Text = name + dropDownTextButton.TextXAlignment = Enum.TextXAlignment.Left + dropDownTextButton.BackgroundTransparency = 1 + dropDownTextButton.ZIndex = parent.ZIndex + 1 + dropDownTextButton.Size = UDim2.new(0,parent.Size.X.Offset - 2,0,16) + dropDownTextButton.Position = UDim2.new(0,1,0,0) + + dropDownTextButton.MouseEnter:connect(function() + dropDownTextButton.BackgroundTransparency = 0 + dropDownTextButton.TextColor3 = Color3.new(0,0,0) + end) + + dropDownTextButton.MouseLeave:connect(function() + dropDownTextButton.BackgroundTransparency = 1 + dropDownTextButton.TextColor3 = Color3.new(1,1,1) + end) + + dropDownTextButton.MouseButton1Click:connect(function() + dropDownTextButton.BackgroundTransparency = 1 + dropDownTextButton.TextColor3 = Color3.new(1,1,1) + if dropDownTextButton.Parent and dropDownTextButton.Parent:IsA("GuiObject") then + dropDownTextButton.Parent.Visible = false + end + selectTerrainShape(terrainShapeMap[dropDownTextButton.Text]) + end) + + return dropDownTextButton + end + + local function createTerrainDropDownMenu(zIndex) + local dropDown = Instance.new("Frame") + dropDown.Name = "TerrainDropDown" + dropDown.BackgroundColor3 = Color3.new(0,0,0) + dropDown.BorderColor3 = Color3.new(1,0,0) + dropDown.Size = UDim2.new(0,200,0,0) + dropDown.Visible = false + dropDown.ZIndex = zIndex + dropDown.Parent = setGui + + for i = 1, #terrainShapes do + local shapeButton = createTerrainTypeButton(terrainShapes[i],dropDown) + shapeButton.Position = UDim2.new(0,1,0,(i - 1) * (shapeButton.Size.Y.Offset)) + shapeButton.Parent = dropDown + dropDown.Size = UDim2.new(0,200,0,dropDown.Size.Y.Offset + (shapeButton.Size.Y.Offset)) + end + + dropDown.MouseLeave:connect(function() + dropDown.Visible = false + end) + end + + + local function createDropDownMenuButton(parent) + local dropDownButton = Instance.new("ImageButton") + dropDownButton.Name = "DropDownButton" + dropDownButton.Image = "http://www.mete0r.xyz/asset/?id=67581509" + dropDownButton.BackgroundTransparency = 1 + dropDownButton.Size = UDim2.new(0,16,0,16) + dropDownButton.Position = UDim2.new(1,-24,0,6) + dropDownButton.ZIndex = parent.ZIndex + 2 + dropDownButton.Parent = parent + + if not setGui:FindFirstChild("TerrainDropDown") then + createTerrainDropDownMenu(8) + end + + dropDownButton.MouseButton1Click:connect(function() + setGui.TerrainDropDown.Visible = true + setGui.TerrainDropDown.Position = UDim2.new(0,parent.AbsolutePosition.X,0,parent.AbsolutePosition.Y) + currTerrainDropDownFrame = parent + end) + end + + local function buildInsertButton() + local insertButton = makeInsertAssetButton() + insertButton.Name = "InsertAssetButton" + insertButton.Visible = true + + if Data.Category[Data.CurrentCategory].SetName == "High Scalability" then + createDropDownMenuButton(insertButton) + end + + local lastEnter = nil + local mouseEnterCon = insertButton.MouseEnter:connect(function() + lastEnter = insertButton + delay(0.1,function() + if lastEnter == insertButton then + showLargePreview(insertButton) + end + end) + end) + return insertButton, mouseEnterCon + end + + local function realignButtonGrid(columns) + local x = 0 + local y = 0 + for i = 1, #insertButtons do + insertButtons[i].Position = UDim2.new(0, buttonWidth * x, 0, buttonHeight * y) + x = x + 1 + if x >= columns then + x = 0 + y = y + 1 + end + end + end + + local function setInsertButtonImageBehavior(insertFrame, visible, name, assetId) + if visible then + insertFrame.AssetName.Value = name + insertFrame.AssetId.Value = assetId + local newImageUrl = SmallThumbnailUrl .. assetId + if newImageUrl ~= insertFrame.Button.ButtonImage.Image then + delay(0,function() + game:GetService("ContentProvider"):Preload(SmallThumbnailUrl .. assetId) + if insertFrame:findFirstChild("Button") then + insertFrame.Button.ButtonImage.Image = SmallThumbnailUrl .. assetId + end + end) + end + table.insert(insertButtonCons, + insertFrame.Button.MouseButton1Click:connect(function() + -- special case for water, show water selection gui + local isWaterSelected = (name == "Water") and (Data.Category[Data.CurrentCategory].SetName == "High Scalability") + waterGui.Visible = isWaterSelected + if isWaterSelected then + objectSelected(name, tonumber(assetId), nil) + else + objectSelected(name, tonumber(assetId)) + end + end) + ) + insertFrame.Visible = true + else + insertFrame.Visible = false + end + end + + local function loadSectionOfItems(setGui, rows, columns) + local pageSize = rows * columns + + if arrayPosition > #contents then return end + + local origArrayPos = arrayPosition + + local yCopy = 0 + for i = 1, pageSize + 1 do + if arrayPosition >= #contents + 1 then + break + end + + local buttonCon + insertButtons[arrayPosition], buttonCon = buildInsertButton() + table.insert(insertButtonCons,buttonCon) + insertButtons[arrayPosition].Parent = setGui.SetPanel.ItemsFrame + arrayPosition = arrayPosition + 1 + end + realignButtonGrid(columns) + + local indexCopy = origArrayPos + for index = origArrayPos, arrayPosition do + if insertButtons[index] then + if contents[index] then + + -- we don't want water to have a drop down button + if contents[index].Name == "Water" then + if Data.Category[Data.CurrentCategory].SetName == "High Scalability" then + insertButtons[index]:FindFirstChild("DropDownButton",true):Destroy() + end + end + + local assetId + if useAssetVersionId then + assetId = contents[index].AssetVersionId + else + assetId = contents[index].AssetId + end + setInsertButtonImageBehavior(insertButtons[index], true, contents[index].Name, assetId) + else + break + end + else + break + end + indexCopy = index + end + end + + local function setSetIndex() + Data.Category[Data.CurrentCategory].Index = 0 + + rows = 7 + columns = math.floor(setGui.SetPanel.ItemsFrame.AbsoluteSize.X/buttonWidth) + + contents = Data.Category[Data.CurrentCategory].Contents + if contents then + -- remove our buttons and their connections + for i = 1, #insertButtons do + insertButtons[i]:remove() + end + for i = 1, #insertButtonCons do + if insertButtonCons[i] then insertButtonCons[i]:disconnect() end + end + insertButtonCons = {} + insertButtons = {} + + arrayPosition = 1 + loadSectionOfItems(setGui, rows, columns) + end + end + + local function selectSet(button, setName, setId, setIndex) + if button and Data.Category[Data.CurrentCategory] ~= nil then + if button ~= Data.Category[Data.CurrentCategory].Button then + Data.Category[Data.CurrentCategory].Button = button + + if SetCache[setId] == nil then + SetCache[setId] = game:GetService("InsertService"):GetCollection(setId) + end + Data.Category[Data.CurrentCategory].Contents = SetCache[setId] + + Data.Category[Data.CurrentCategory].SetName = setName + Data.Category[Data.CurrentCategory].SetId = setId + end + setSetIndex() + end + end + + local function selectCategoryPage(buttons, page) + if buttons ~= Data.CurrentCategory then + if Data.CurrentCategory then + for key, button in pairs(Data.CurrentCategory) do + button.Visible = false + end + end + + Data.CurrentCategory = buttons + if Data.Category[Data.CurrentCategory] == nil then + Data.Category[Data.CurrentCategory] = {} + if #buttons > 0 then + selectSet(buttons[1], buttons[1].SetName.Value, buttons[1].SetId.Value, 0) + end + else + Data.Category[Data.CurrentCategory].Button = nil + selectSet(Data.Category[Data.CurrentCategory].ButtonFrame, Data.Category[Data.CurrentCategory].SetName, Data.Category[Data.CurrentCategory].SetId, Data.Category[Data.CurrentCategory].Index) + end + end + end + + local function selectCategory(category) + selectCategoryPage(category, 0) + end + + local function resetAllSetButtonSelection() + local setButtons = setGui.SetPanel.Sets.SetsLists:GetChildren() + for i = 1, #setButtons do + if setButtons[i]:IsA("TextButton") then + setButtons[i].Selected = false + setButtons[i].BackgroundTransparency = 1 + setButtons[i].TextColor3 = Color3.new(1,1,1) + setButtons[i].BackgroundColor3 = Color3.new(1,1,1) + end + end + end + + local function populateSetsFrame() + local currRow = 0 + for i = 1, #userCategoryButtons do + local button = userCategoryButtons[i] + button.Visible = true + button.Position = UDim2.new(0,5,0,currRow * button.Size.Y.Offset) + button.Parent = setGui.SetPanel.Sets.SetsLists + + if i == 1 then -- we will have this selected by default, so show it + button.Selected = true + button.BackgroundColor3 = Color3.new(0,204/255,0) + button.TextColor3 = Color3.new(0,0,0) + button.BackgroundTransparency = 0 + end + + button.MouseEnter:connect(function() + if not button.Selected then + button.BackgroundTransparency = 0 + button.TextColor3 = Color3.new(0,0,0) + end + end) + button.MouseLeave:connect(function() + if not button.Selected then + button.BackgroundTransparency = 1 + button.TextColor3 = Color3.new(1,1,1) + end + end) + button.MouseButton1Click:connect(function() + resetAllSetButtonSelection() + button.Selected = not button.Selected + button.BackgroundColor3 = Color3.new(0,204/255,0) + button.TextColor3 = Color3.new(0,0,0) + button.BackgroundTransparency = 0 + selectSet(button, button.Text, userCategoryButtons[i].SetId.Value, 0) + end) + + currRow = currRow + 1 + end + + local buttons = setGui.SetPanel.Sets.SetsLists:GetChildren() + + -- set first category as loaded for default + if buttons then + for i = 1, #buttons do + if buttons[i]:IsA("TextButton") then + selectSet(buttons[i], buttons[i].Text, userCategoryButtons[i].SetId.Value, 0) + selectCategory(userCategoryButtons) + break + end + end + end + end + + setGui = createSetGui() + waterGui, waterTypeChangedEvent = createWaterGui() + waterGui.Position = UDim2.new(0,55,0,0) + waterGui.Parent = setGui + setGui.Changed:connect(function(prop) -- this resizes the preview image to always be the right size + if prop == "AbsoluteSize" then + handleResize() + setSetIndex() + end + end) + + local scrollFrame, controlFrame = t.CreateTrueScrollingFrame() + scrollFrame.Size = UDim2.new(0.54,0,0.85,0) + scrollFrame.Position = UDim2.new(0.24,0,0.085,0) + scrollFrame.Name = "ItemsFrame" + scrollFrame.ZIndex = 6 + scrollFrame.Parent = setGui.SetPanel + scrollFrame.BackgroundTransparency = 1 + + drillDownSetZIndex(controlFrame,7) + + controlFrame.Parent = setGui.SetPanel + controlFrame.Position = UDim2.new(0.76, 5, 0, 0) + + local debounce = false + controlFrame.ScrollBottom.Changed:connect(function(prop) + if controlFrame.ScrollBottom.Value == true then + if debounce then return end + debounce = true + loadSectionOfItems(setGui, rows, columns) + debounce = false + end + end) + + local userData = {} + for id = 1, #userIdsForSets do + local newUserData = game:GetService("InsertService"):GetUserSets(userIdsForSets[id]) + if newUserData and #newUserData > 2 then + -- start at #3 to skip over My Decals and My Models for each account + for category = 3, #newUserData do + if newUserData[category].Name == "High Scalability" then -- we want high scalability parts to show first + table.insert(userData,1,newUserData[category]) + else + table.insert(userData, newUserData[category]) + end + end + end + + end + if userData then + userCategoryButtons = processCategory(userData) + end + + rows = math.floor(setGui.SetPanel.ItemsFrame.AbsoluteSize.Y/buttonHeight) + columns = math.floor(setGui.SetPanel.ItemsFrame.AbsoluteSize.X/buttonWidth) + + populateSetsFrame() + + insertPanelCloseCon = setGui.SetPanel.CancelButton.MouseButton1Click:connect(function() + setGui.SetPanel.Visible = false + if dialogClosed then dialogClosed() end + end) + + local setVisibilityFunction = function(visible) + if visible then + setGui.SetPanel.Visible = true + else + setGui.SetPanel.Visible = false + end + end + + local getVisibilityFunction = function() + if setGui then + if setGui:FindFirstChild("SetPanel") then + return setGui.SetPanel.Visible + end + end + + return false + end + + return setGui, setVisibilityFunction, getVisibilityFunction, waterTypeChangedEvent +end + +t.CreateTerrainMaterialSelector = function(size,position) + local terrainMaterialSelectionChanged = Instance.new("BindableEvent") + terrainMaterialSelectionChanged.Name = "TerrainMaterialSelectionChanged" + + local selectedButton = nil + + local frame = Instance.new("Frame") + frame.Name = "TerrainMaterialSelector" + if size then + frame.Size = size + else + frame.Size = UDim2.new(0, 245, 0, 230) + end + if position then + frame.Position = position + end + frame.BorderSizePixel = 0 + frame.BackgroundColor3 = Color3.new(0,0,0) + frame.Active = true + + terrainMaterialSelectionChanged.Parent = frame + + local waterEnabled = true -- todo: turn this on when water is ready + + local materialToImageMap = {} + local materialNames = {"Grass", "Sand", "Brick", "Granite", "Asphalt", "Iron", "Aluminum", "Gold", "Plank", "Log", "Gravel", "Cinder Block", "Stone Wall", "Concrete", "Plastic (red)", "Plastic (blue)"} + if waterEnabled then + table.insert(materialNames,"Water") + end + local currentMaterial = 1 + + function getEnumFromName(choice) + if choice == "Grass" then return 1 end + if choice == "Sand" then return 2 end + if choice == "Erase" then return 0 end + if choice == "Brick" then return 3 end + if choice == "Granite" then return 4 end + if choice == "Asphalt" then return 5 end + if choice == "Iron" then return 6 end + if choice == "Aluminum" then return 7 end + if choice == "Gold" then return 8 end + if choice == "Plank" then return 9 end + if choice == "Log" then return 10 end + if choice == "Gravel" then return 11 end + if choice == "Cinder Block" then return 12 end + if choice == "Stone Wall" then return 13 end + if choice == "Concrete" then return 14 end + if choice == "Plastic (red)" then return 15 end + if choice == "Plastic (blue)" then return 16 end + if choice == "Water" then return 17 end + end + + function getNameFromEnum(choice) + if choice == Enum.CellMaterial.Grass or choice == 1 then return "Grass"end + if choice == Enum.CellMaterial.Sand or choice == 2 then return "Sand" end + if choice == Enum.CellMaterial.Empty or choice == 0 then return "Erase" end + if choice == Enum.CellMaterial.Brick or choice == 3 then return "Brick" end + if choice == Enum.CellMaterial.Granite or choice == 4 then return "Granite" end + if choice == Enum.CellMaterial.Asphalt or choice == 5 then return "Asphalt" end + if choice == Enum.CellMaterial.Iron or choice == 6 then return "Iron" end + if choice == Enum.CellMaterial.Aluminum or choice == 7 then return "Aluminum" end + if choice == Enum.CellMaterial.Gold or choice == 8 then return "Gold" end + if choice == Enum.CellMaterial.WoodPlank or choice == 9 then return "Plank" end + if choice == Enum.CellMaterial.WoodLog or choice == 10 then return "Log" end + if choice == Enum.CellMaterial.Gravel or choice == 11 then return "Gravel" end + if choice == Enum.CellMaterial.CinderBlock or choice == 12 then return "Cinder Block" end + if choice == Enum.CellMaterial.MossyStone or choice == 13 then return "Stone Wall" end + if choice == Enum.CellMaterial.Cement or choice == 14 then return "Concrete" end + if choice == Enum.CellMaterial.RedPlastic or choice == 15 then return "Plastic (red)" end + if choice == Enum.CellMaterial.BluePlastic or choice == 16 then return "Plastic (blue)" end + + if waterEnabled then + if choice == Enum.CellMaterial.Water or choice == 17 then return "Water" end + end + end + + + local function updateMaterialChoice(choice) + currentMaterial = getEnumFromName(choice) + terrainMaterialSelectionChanged:Fire(currentMaterial) + end + + -- we so need a better way to do this + for i,v in pairs(materialNames) do + materialToImageMap[v] = {} + if v == "Grass" then materialToImageMap[v].Regular = "http://www.mete0r.xyz/asset/?id=56563112" + elseif v == "Sand" then materialToImageMap[v].Regular = "http://www.mete0r.xyz/asset/?id=62356652" + elseif v == "Brick" then materialToImageMap[v].Regular = "http://www.mete0r.xyz/asset/?id=65961537" + elseif v == "Granite" then materialToImageMap[v].Regular = "http://www.mete0r.xyz/asset/?id=67532153" + elseif v == "Asphalt" then materialToImageMap[v].Regular = "http://www.mete0r.xyz/asset/?id=67532038" + elseif v == "Iron" then materialToImageMap[v].Regular = "http://www.mete0r.xyz/asset/?id=67532093" + elseif v == "Aluminum" then materialToImageMap[v].Regular = "http://www.mete0r.xyz/asset/?id=67531995" + elseif v == "Gold" then materialToImageMap[v].Regular = "http://www.mete0r.xyz/asset/?id=67532118" + elseif v == "Plastic (red)" then materialToImageMap[v].Regular = "http://www.mete0r.xyz/asset/?id=67531848" + elseif v == "Plastic (blue)" then materialToImageMap[v].Regular = "http://www.mete0r.xyz/asset/?id=67531924" + elseif v == "Plank" then materialToImageMap[v].Regular = "http://www.mete0r.xyz/asset/?id=67532015" + elseif v == "Log" then materialToImageMap[v].Regular = "http://www.mete0r.xyz/asset/?id=67532051" + elseif v == "Gravel" then materialToImageMap[v].Regular = "http://www.mete0r.xyz/asset/?id=67532206" + elseif v == "Cinder Block" then materialToImageMap[v].Regular = "http://www.mete0r.xyz/asset/?id=67532103" + elseif v == "Stone Wall" then materialToImageMap[v].Regular = "http://www.mete0r.xyz/asset/?id=67531804" + elseif v == "Concrete" then materialToImageMap[v].Regular = "http://www.mete0r.xyz/asset/?id=67532059" + elseif v == "Water" then materialToImageMap[v].Regular = "http://www.mete0r.xyz/asset/?id=81407474" + else materialToImageMap[v].Regular = "http://www.mete0r.xyz/asset/?id=66887593" -- fill in the rest here!! + end + end + + local scrollFrame, scrollUp, scrollDown, recalculateScroll = t.CreateScrollingFrame(nil,"grid") + scrollFrame.Size = UDim2.new(0.85,0,1,0) + scrollFrame.Position = UDim2.new(0,0,0,0) + scrollFrame.Parent = frame + + scrollUp.Parent = frame + scrollUp.Visible = true + scrollUp.Position = UDim2.new(1,-19,0,0) + + scrollDown.Parent = frame + scrollDown.Visible = true + scrollDown.Position = UDim2.new(1,-19,1,-17) + + local function goToNewMaterial(buttonWrap, materialName) + updateMaterialChoice(materialName) + buttonWrap.BackgroundTransparency = 0 + selectedButton.BackgroundTransparency = 1 + selectedButton = buttonWrap + end + + local function createMaterialButton(name) + local buttonWrap = Instance.new("TextButton") + buttonWrap.Text = "" + buttonWrap.Size = UDim2.new(0,32,0,32) + buttonWrap.BackgroundColor3 = Color3.new(1,1,1) + buttonWrap.BorderSizePixel = 0 + buttonWrap.BackgroundTransparency = 1 + buttonWrap.AutoButtonColor = false + buttonWrap.Name = tostring(name) + + local imageButton = Instance.new("ImageButton") + imageButton.AutoButtonColor = false + imageButton.BackgroundTransparency = 1 + imageButton.Size = UDim2.new(0,30,0,30) + imageButton.Position = UDim2.new(0,1,0,1) + imageButton.Name = tostring(name) + imageButton.Parent = buttonWrap + imageButton.Image = materialToImageMap[name].Regular + + local enumType = Instance.new("NumberValue") + enumType.Name = "EnumType" + enumType.Parent = buttonWrap + enumType.Value = 0 + + imageButton.MouseEnter:connect(function() + buttonWrap.BackgroundTransparency = 0 + end) + imageButton.MouseLeave:connect(function() + if selectedButton ~= buttonWrap then + buttonWrap.BackgroundTransparency = 1 + end + end) + imageButton.MouseButton1Click:connect(function() + if selectedButton ~= buttonWrap then + goToNewMaterial(buttonWrap, tostring(name)) + end + end) + + return buttonWrap + end + + for i = 1, #materialNames do + local imageButton = createMaterialButton(materialNames[i]) + + if materialNames[i] == "Grass" then -- always start with grass as the default + selectedButton = imageButton + imageButton.BackgroundTransparency = 0 + end + + imageButton.Parent = scrollFrame + end + + local forceTerrainMaterialSelection = function(newMaterialType) + if not newMaterialType then return end + if currentMaterial == newMaterialType then return end + + local matName = getNameFromEnum(newMaterialType) + local buttons = scrollFrame:GetChildren() + for i = 1, #buttons do + if buttons[i].Name == "Plastic (blue)" and matName == "Plastic (blue)" then goToNewMaterial(buttons[i],matName) return end + if buttons[i].Name == "Plastic (red)" and matName == "Plastic (red)" then goToNewMaterial(buttons[i],matName) return end + if string.find(buttons[i].Name, matName) then + goToNewMaterial(buttons[i],matName) + return + end + end + end + + frame.Changed:connect(function ( prop ) + if prop == "AbsoluteSize" then + recalculateScroll() + end + end) + + recalculateScroll() + return frame, terrainMaterialSelectionChanged, forceTerrainMaterialSelection +end + +t.CreateLoadingFrame = function(name,size,position) + game:GetService("ContentProvider"):Preload("http://www.mete0r.xyz/asset/?id=35238053") + + local loadingFrame = Instance.new("Frame") + loadingFrame.Name = "LoadingFrame" + loadingFrame.Style = Enum.FrameStyle.RobloxRound + + if size then loadingFrame.Size = size + else loadingFrame.Size = UDim2.new(0,300,0,160) end + if position then loadingFrame.Position = position + else loadingFrame.Position = UDim2.new(0.5, -150, 0.5,-80) end + + local loadingBar = Instance.new("Frame") + loadingBar.Name = "LoadingBar" + loadingBar.BackgroundColor3 = Color3.new(0,0,0) + loadingBar.BorderColor3 = Color3.new(79/255,79/255,79/255) + loadingBar.Position = UDim2.new(0,0,0,41) + loadingBar.Size = UDim2.new(1,0,0,30) + loadingBar.Parent = loadingFrame + + local loadingGreenBar = Instance.new("ImageLabel") + loadingGreenBar.Name = "LoadingGreenBar" + loadingGreenBar.Image = "http://www.mete0r.xyz/asset/?id=35238053" + loadingGreenBar.Position = UDim2.new(0,0,0,0) + loadingGreenBar.Size = UDim2.new(0,0,1,0) + loadingGreenBar.Visible = false + loadingGreenBar.Parent = loadingBar + + local loadingPercent = Instance.new("TextLabel") + loadingPercent.Name = "LoadingPercent" + loadingPercent.BackgroundTransparency = 1 + loadingPercent.Position = UDim2.new(0,0,1,0) + loadingPercent.Size = UDim2.new(1,0,0,14) + loadingPercent.Font = Enum.Font.Arial + loadingPercent.Text = "0%" + loadingPercent.FontSize = Enum.FontSize.Size14 + loadingPercent.TextColor3 = Color3.new(1,1,1) + loadingPercent.Parent = loadingBar + + local cancelButton = Instance.new("TextButton") + cancelButton.Name = "CancelButton" + cancelButton.Position = UDim2.new(0.5,-60,1,-40) + cancelButton.Size = UDim2.new(0,120,0,40) + cancelButton.Font = Enum.Font.Arial + cancelButton.FontSize = Enum.FontSize.Size18 + cancelButton.TextColor3 = Color3.new(1,1,1) + cancelButton.Text = "Cancel" + cancelButton.Style = Enum.ButtonStyle.RobloxButton + cancelButton.Parent = loadingFrame + + local loadingName = Instance.new("TextLabel") + loadingName.Name = "loadingName" + loadingName.BackgroundTransparency = 1 + loadingName.Size = UDim2.new(1,0,0,18) + loadingName.Position = UDim2.new(0,0,0,2) + loadingName.Font = Enum.Font.Arial + loadingName.Text = name + loadingName.TextColor3 = Color3.new(1,1,1) + loadingName.TextStrokeTransparency = 1 + loadingName.FontSize = Enum.FontSize.Size18 + loadingName.Parent = loadingFrame + + local cancelButtonClicked = Instance.new("BindableEvent") + cancelButtonClicked.Name = "CancelButtonClicked" + cancelButtonClicked.Parent = cancelButton + cancelButton.MouseButton1Click:connect(function() + cancelButtonClicked:Fire() + end) + + local updateLoadingGuiPercent = function(percent, tweenAction, tweenLength) + if percent and type(percent) ~= "number" then + error("updateLoadingGuiPercent expects number as argument, got",type(percent),"instead") + end + + local newSize = nil + if percent < 0 then + newSize = UDim2.new(0,0,1,0) + elseif percent > 1 then + newSize = UDim2.new(1,0,1,0) + else + newSize = UDim2.new(percent,0,1,0) + end + + if tweenAction then + if not tweenLength then + error("updateLoadingGuiPercent is set to tween new percentage, but got no tween time length! Please pass this in as third argument") + end + + if (newSize.X.Scale > 0) then + loadingGreenBar.Visible = true + loadingGreenBar:TweenSize( newSize, + Enum.EasingDirection.Out, + Enum.EasingStyle.Quad, + tweenLength, + true) + else + loadingGreenBar:TweenSize( newSize, + Enum.EasingDirection.Out, + Enum.EasingStyle.Quad, + tweenLength, + true, + function() + if (newSize.X.Scale < 0) then + loadingGreenBar.Visible = false + end + end) + end + + else + loadingGreenBar.Size = newSize + loadingGreenBar.Visible = (newSize.X.Scale > 0) + end + end + + loadingGreenBar.Changed:connect(function(prop) + if prop == "Size" then + loadingPercent.Text = tostring( math.ceil(loadingGreenBar.Size.X.Scale * 100) ) .. "%" + end + end) + + return loadingFrame, updateLoadingGuiPercent, cancelButtonClicked +end + +t.CreatePluginFrame = function (name,size,position,scrollable,parent) + function createMenuButton(size,position,text,fontsize,name,parent) + local button = Instance.new("TextButton",parent) + button.AutoButtonColor = false + button.Name = name + button.BackgroundTransparency = 1 + button.Position = position + button.Size = size + button.Font = Enum.Font.ArialBold + button.FontSize = fontsize + button.Text = text + button.TextColor3 = Color3.new(1,1,1) + button.BorderSizePixel = 0 + button.BackgroundColor3 = Color3.new(20/255,20/255,20/255) + + button.MouseEnter:connect(function ( ) + if button.Selected then return end + button.BackgroundTransparency = 0 + end) + button.MouseLeave:connect(function ( ) + if button.Selected then return end + button.BackgroundTransparency = 1 + end) + + return button + + end + + local dragBar = Instance.new("Frame",parent) + dragBar.Name = tostring(name) .. "DragBar" + dragBar.BackgroundColor3 = Color3.new(39/255,39/255,39/255) + dragBar.BorderColor3 = Color3.new(0,0,0) + if size then + dragBar.Size = UDim2.new(size.X.Scale,size.X.Offset,0,20) + UDim2.new(0,20,0,0) + else + dragBar.Size = UDim2.new(0,183,0,20) + end + if position then + dragBar.Position = position + end + dragBar.Active = true + dragBar.Draggable = true + --dragBar.Visible = false + dragBar.MouseEnter:connect(function ( ) + dragBar.BackgroundColor3 = Color3.new(49/255,49/255,49/255) + end) + dragBar.MouseLeave:connect(function ( ) + dragBar.BackgroundColor3 = Color3.new(39/255,39/255,39/255) + end) + + -- plugin name label + local pluginNameLabel = Instance.new("TextLabel",dragBar) + pluginNameLabel.Name = "BarNameLabel" + pluginNameLabel.Text = " " .. tostring(name) + pluginNameLabel.TextColor3 = Color3.new(1,1,1) + pluginNameLabel.TextStrokeTransparency = 0 + pluginNameLabel.Size = UDim2.new(1,0,1,0) + pluginNameLabel.Font = Enum.Font.ArialBold + pluginNameLabel.FontSize = Enum.FontSize.Size18 + pluginNameLabel.TextXAlignment = Enum.TextXAlignment.Left + pluginNameLabel.BackgroundTransparency = 1 + + -- close button + local closeButton = createMenuButton(UDim2.new(0,15,0,17),UDim2.new(1,-16,0.5,-8),"X",Enum.FontSize.Size14,"CloseButton",dragBar) + local closeEvent = Instance.new("BindableEvent") + closeEvent.Name = "CloseEvent" + closeEvent.Parent = closeButton + closeButton.MouseButton1Click:connect(function () + closeEvent:Fire() + closeButton.BackgroundTransparency = 1 + end) + + -- help button + local helpButton = createMenuButton(UDim2.new(0,15,0,17),UDim2.new(1,-51,0.5,-8),"?",Enum.FontSize.Size14,"HelpButton",dragBar) + local helpFrame = Instance.new("Frame",dragBar) + helpFrame.Name = "HelpFrame" + helpFrame.BackgroundColor3 = Color3.new(0,0,0) + helpFrame.Size = UDim2.new(0,300,0,552) + helpFrame.Position = UDim2.new(1,5,0,0) + helpFrame.Active = true + helpFrame.BorderSizePixel = 0 + helpFrame.Visible = false + + helpButton.MouseButton1Click:connect(function( ) + helpFrame.Visible = not helpFrame.Visible + if helpFrame.Visible then + helpButton.Selected = true + helpButton.BackgroundTransparency = 0 + local screenGui = getScreenGuiAncestor(helpFrame) + if screenGui then + if helpFrame.AbsolutePosition.X + helpFrame.AbsoluteSize.X > screenGui.AbsoluteSize.X then --position on left hand side + helpFrame.Position = UDim2.new(0,-5 - helpFrame.AbsoluteSize.X,0,0) + else -- position on right hand side + helpFrame.Position = UDim2.new(1,5,0,0) + end + else + helpFrame.Position = UDim2.new(1,5,0,0) + end + else + helpButton.Selected = false + helpButton.BackgroundTransparency = 1 + end + end) + + local minimizeButton = createMenuButton(UDim2.new(0,16,0,17),UDim2.new(1,-34,0.5,-8),"-",Enum.FontSize.Size14,"MinimizeButton",dragBar) + minimizeButton.TextYAlignment = Enum.TextYAlignment.Top + + local minimizeFrame = Instance.new("Frame",dragBar) + minimizeFrame.Name = "MinimizeFrame" + minimizeFrame.BackgroundColor3 = Color3.new(73/255,73/255,73/255) + minimizeFrame.BorderColor3 = Color3.new(0,0,0) + minimizeFrame.Position = UDim2.new(0,0,1,0) + if size then + minimizeFrame.Size = UDim2.new(size.X.Scale,size.X.Offset,0,50) + UDim2.new(0,20,0,0) + else + minimizeFrame.Size = UDim2.new(0,183,0,50) + end + minimizeFrame.Visible = false + + local minimizeBigButton = Instance.new("TextButton",minimizeFrame) + minimizeBigButton.Position = UDim2.new(0.5,-50,0.5,-20) + minimizeBigButton.Name = "MinimizeButton" + minimizeBigButton.Size = UDim2.new(0,100,0,40) + minimizeBigButton.Style = Enum.ButtonStyle.RobloxButton + minimizeBigButton.Font = Enum.Font.ArialBold + minimizeBigButton.FontSize = Enum.FontSize.Size18 + minimizeBigButton.TextColor3 = Color3.new(1,1,1) + minimizeBigButton.Text = "Show" + + local separatingLine = Instance.new("Frame",dragBar) + separatingLine.Name = "SeparatingLine" + separatingLine.BackgroundColor3 = Color3.new(115/255,115/255,115/255) + separatingLine.BorderSizePixel = 0 + separatingLine.Position = UDim2.new(1,-18,0.5,-7) + separatingLine.Size = UDim2.new(0,1,0,14) + + local otherSeparatingLine = separatingLine:clone() + otherSeparatingLine.Position = UDim2.new(1,-35,0.5,-7) + otherSeparatingLine.Parent = dragBar + + local widgetContainer = Instance.new("Frame",dragBar) + widgetContainer.Name = "WidgetContainer" + widgetContainer.BackgroundTransparency = 1 + widgetContainer.Position = UDim2.new(0,0,1,0) + widgetContainer.BorderColor3 = Color3.new(0,0,0) + if not scrollable then + widgetContainer.BackgroundTransparency = 0 + widgetContainer.BackgroundColor3 = Color3.new(72/255,72/255,72/255) + end + + if size then + if scrollable then + widgetContainer.Size = size + else + widgetContainer.Size = UDim2.new(0,dragBar.AbsoluteSize.X,size.Y.Scale,size.Y.Offset) + end + else + if scrollable then + widgetContainer.Size = UDim2.new(0,163,0,400) + else + widgetContainer.Size = UDim2.new(0,dragBar.AbsoluteSize.X,0,400) + end + end + if position then + widgetContainer.Position = position + UDim2.new(0,0,0,20) + end + + local frame,control,verticalDragger = nil + if scrollable then + --frame for widgets + frame,control = t.CreateTrueScrollingFrame() + frame.Size = UDim2.new(1, 0, 1, 0) + frame.BackgroundColor3 = Color3.new(72/255,72/255,72/255) + frame.BorderColor3 = Color3.new(0,0,0) + frame.Active = true + frame.Parent = widgetContainer + control.Parent = dragBar + control.BackgroundColor3 = Color3.new(72/255,72/255,72/255) + control.BorderSizePixel = 0 + control.BackgroundTransparency = 0 + control.Position = UDim2.new(1,-21,1,1) + if size then + control.Size = UDim2.new(0,21,size.Y.Scale,size.Y.Offset) + else + control.Size = UDim2.new(0,21,0,400) + end + control:FindFirstChild("ScrollDownButton").Position = UDim2.new(0,0,1,-20) + + local fakeLine = Instance.new("Frame",control) + fakeLine.Name = "FakeLine" + fakeLine.BorderSizePixel = 0 + fakeLine.BackgroundColor3 = Color3.new(0,0,0) + fakeLine.Size = UDim2.new(0,1,1,1) + fakeLine.Position = UDim2.new(1,0,0,0) + + verticalDragger = Instance.new("TextButton",widgetContainer) + verticalDragger.ZIndex = 2 + verticalDragger.AutoButtonColor = false + verticalDragger.Name = "VerticalDragger" + verticalDragger.BackgroundColor3 = Color3.new(50/255,50/255,50/255) + verticalDragger.BorderColor3 = Color3.new(0,0,0) + verticalDragger.Size = UDim2.new(1,20,0,20) + verticalDragger.Position = UDim2.new(0,0,1,0) + verticalDragger.Active = true + verticalDragger.Text = "" + + local scrubFrame = Instance.new("Frame",verticalDragger) + scrubFrame.Name = "ScrubFrame" + scrubFrame.BackgroundColor3 = Color3.new(1,1,1) + scrubFrame.BorderSizePixel = 0 + scrubFrame.Position = UDim2.new(0.5,-5,0.5,0) + scrubFrame.Size = UDim2.new(0,10,0,1) + scrubFrame.ZIndex = 5 + local scrubTwo = scrubFrame:clone() + scrubTwo.Position = UDim2.new(0.5,-5,0.5,-2) + scrubTwo.Parent = verticalDragger + local scrubThree = scrubFrame:clone() + scrubThree.Position = UDim2.new(0.5,-5,0.5,2) + scrubThree.Parent = verticalDragger + + local areaSoak = Instance.new("TextButton",getScreenGuiAncestor(parent)) + areaSoak.Name = "AreaSoak" + areaSoak.Size = UDim2.new(1,0,1,0) + areaSoak.BackgroundTransparency = 1 + areaSoak.BorderSizePixel = 0 + areaSoak.Text = "" + areaSoak.ZIndex = 10 + areaSoak.Visible = false + areaSoak.Active = true + + local draggingVertical = false + local startYPos = nil + verticalDragger.MouseEnter:connect(function () + verticalDragger.BackgroundColor3 = Color3.new(60/255,60/255,60/255) + end) + verticalDragger.MouseLeave:connect(function () + verticalDragger.BackgroundColor3 = Color3.new(50/255,50/255,50/255) + end) + verticalDragger.MouseButton1Down:connect(function(x,y) + draggingVertical = true + areaSoak.Visible = true + startYPos = y + end) + areaSoak.MouseButton1Up:connect(function ( ) + draggingVertical = false + areaSoak.Visible = false + end) + areaSoak.MouseMoved:connect(function(x,y) + if not draggingVertical then return end + + local yDelta = y - startYPos + if not control.ScrollDownButton.Visible and yDelta > 0 then + return + end + + if (widgetContainer.Size.Y.Offset + yDelta) < 150 then + widgetContainer.Size = UDim2.new(widgetContainer.Size.X.Scale, widgetContainer.Size.X.Offset,widgetContainer.Size.Y.Scale,150) + control.Size = UDim2.new (0,21,0,150) + return + end + + startYPos = y + + if widgetContainer.Size.Y.Offset + yDelta >= 0 then + widgetContainer.Size = UDim2.new(widgetContainer.Size.X.Scale, widgetContainer.Size.X.Offset,widgetContainer.Size.Y.Scale,widgetContainer.Size.Y.Offset + yDelta) + control.Size = UDim2.new(0,21,0,control.Size.Y.Offset + yDelta ) + end + end) + end + + local function switchMinimize() + minimizeFrame.Visible = not minimizeFrame.Visible + if scrollable then + frame.Visible = not frame.Visible + verticalDragger.Visible = not verticalDragger.Visible + control.Visible = not control.Visible + else + widgetContainer.Visible = not widgetContainer.Visible + end + + if minimizeFrame.Visible then + minimizeButton.Text = "+" + else + minimizeButton.Text = "-" + end + end + + minimizeBigButton.MouseButton1Click:connect(function ( ) + switchMinimize() + end) + + minimizeButton.MouseButton1Click:connect(function( ) + switchMinimize() + end) + + if scrollable then + return dragBar, frame, helpFrame, closeEvent + else + return dragBar, widgetContainer, helpFrame, closeEvent + end +end + +t.Help = + function(funcNameOrFunc) + --input argument can be a string or a function. Should return a description (of arguments and expected side effects) + if funcNameOrFunc == "CreatePropertyDropDownMenu" or funcNameOrFunc == t.CreatePropertyDropDownMenu then + return "Function CreatePropertyDropDownMenu. " .. + "Arguments: (instance, propertyName, enumType). " .. + "Side effect: returns a container with a drop-down-box that is linked to the 'property' field of 'instance' which is of type 'enumType'" + end + if funcNameOrFunc == "CreateDropDownMenu" or funcNameOrFunc == t.CreateDropDownMenu then + return "Function CreateDropDownMenu. " .. + "Arguments: (items, onItemSelected). " .. + "Side effect: Returns 2 results, a container to the gui object and a 'updateSelection' function for external updating. The container is a drop-down-box created around a list of items" + end + if funcNameOrFunc == "CreateMessageDialog" or funcNameOrFunc == t.CreateMessageDialog then + return "Function CreateMessageDialog. " .. + "Arguments: (title, message, buttons). " .. + "Side effect: Returns a gui object of a message box with 'title' and 'message' as passed in. 'buttons' input is an array of Tables contains a 'Text' and 'Function' field for the text/callback of each button" + end + if funcNameOrFunc == "CreateStyledMessageDialog" or funcNameOrFunc == t.CreateStyledMessageDialog then + return "Function CreateStyledMessageDialog. " .. + "Arguments: (title, message, style, buttons). " .. + "Side effect: Returns a gui object of a message box with 'title' and 'message' as passed in. 'buttons' input is an array of Tables contains a 'Text' and 'Function' field for the text/callback of each button, 'style' is a string, either Error, Notify or Confirm" + end + if funcNameOrFunc == "GetFontHeight" or funcNameOrFunc == t.GetFontHeight then + return "Function GetFontHeight. " .. + "Arguments: (font, fontSize). " .. + "Side effect: returns the size in pixels of the given font + fontSize" + end + if funcNameOrFunc == "LayoutGuiObjects" or funcNameOrFunc == t.LayoutGuiObjects then + + end + if funcNameOrFunc == "CreateScrollingFrame" or funcNameOrFunc == t.CreateScrollingFrame then + return "Function CreateScrollingFrame. " .. + "Arguments: (orderList, style) " .. + "Side effect: returns 4 objects, (scrollFrame, scrollUpButton, scrollDownButton, recalculateFunction). 'scrollFrame' can be filled with GuiObjects. It will lay them out and allow scrollUpButton/scrollDownButton to interact with them. Orderlist is optional (and specifies the order to layout the children. Without orderlist, it uses the children order. style is also optional, and allows for a 'grid' styling if style is passed 'grid' as a string. recalculateFunction can be called when a relayout is needed (when orderList changes)" + end + if funcNameOrFunc == "CreateTrueScrollingFrame" or funcNameOrFunc == t.CreateTrueScrollingFrame then + return "Function CreateTrueScrollingFrame. " .. + "Arguments: (nil) " .. + "Side effect: returns 2 objects, (scrollFrame, controlFrame). 'scrollFrame' can be filled with GuiObjects, and they will be clipped if not inside the frame's bounds. controlFrame has children scrollup and scrolldown, as well as a slider. controlFrame can be parented to any guiobject and it will readjust itself to fit." + end + if funcNameOrFunc == "AutoTruncateTextObject" or funcNameOrFunc == t.AutoTruncateTextObject then + return "Function AutoTruncateTextObject. " .. + "Arguments: (textLabel) " .. + "Side effect: returns 2 objects, (textLabel, changeText). The 'textLabel' input is modified to automatically truncate text (with ellipsis), if it gets too small to fit. 'changeText' is a function that can be used to change the text, it takes 1 string as an argument" + end + if funcNameOrFunc == "CreateSlider" or funcNameOrFunc == t.CreateSlider then + return "Function CreateSlider. " .. + "Arguments: (steps, width, position) " .. + "Side effect: returns 2 objects, (sliderGui, sliderPosition). The 'steps' argument specifies how many different positions the slider can hold along the bar. 'width' specifies in pixels how wide the bar should be (modifiable afterwards if desired). 'position' argument should be a UDim2 for slider positioning. 'sliderPosition' is an IntValue whose current .Value specifies the specific step the slider is currently on." + end + if funcNameOrFunc == "CreateSliderNew" or funcNameOrFunc == t.CreateSliderNew then + return "Function CreateSliderNew. " .. + "Arguments: (steps, width, position) " .. + "Side effect: returns 2 objects, (sliderGui, sliderPosition). The 'steps' argument specifies how many different positions the slider can hold along the bar. 'width' specifies in pixels how wide the bar should be (modifiable afterwards if desired). 'position' argument should be a UDim2 for slider positioning. 'sliderPosition' is an IntValue whose current .Value specifies the specific step the slider is currently on." + end + if funcNameOrFunc == "CreateLoadingFrame" or funcNameOrFunc == t.CreateLoadingFrame then + return "Function CreateLoadingFrame. " .. + "Arguments: (name, size, position) " .. + "Side effect: Creates a gui that can be manipulated to show progress for a particular action. Name appears above the loading bar, and size and position are udim2 values (both size and position are optional arguments). Returns 3 arguments, the first being the gui created. The second being updateLoadingGuiPercent, which is a bindable function. This function takes one argument (two optionally), which should be a number between 0 and 1, representing the percentage the loading gui should be at. The second argument to this function is a boolean value that if set to true will tween the current percentage value to the new percentage value, therefore our third argument is how long this tween should take. Our third returned argument is a BindableEvent, that when fired means that someone clicked the cancel button on the dialog." + end + if funcNameOrFunc == "CreateTerrainMaterialSelector" or funcNameOrFunc == t.CreateTerrainMaterialSelector then + return "Function CreateTerrainMaterialSelector. " .. + "Arguments: (size, position) " .. + "Side effect: Size and position are UDim2 values that specifies the selector's size and position. Both size and position are optional arguments. This method returns 3 objects (terrainSelectorGui, terrainSelected, forceTerrainSelection). terrainSelectorGui is just the gui object that we generate with this function, parent it as you like. TerrainSelected is a BindableEvent that is fired whenever a new terrain type is selected in the gui. ForceTerrainSelection is a function that takes an argument of Enum.CellMaterial and will force the gui to show that material as currently selected." + end + end + +return t diff --git a/assets/ugc/875 b/assets/ugc/875 new file mode 100644 index 0000000..f009b25 --- /dev/null +++ b/assets/ugc/875 @@ -0,0 +1,24 @@ +--rbxassetid%875% +local t = {} + +t.Foo = + function() + print("foo") + end + +t.Bar = + function() + print("bar") + end + +t.Help = + function(funcNameOrFunc) + --input argument can be a string or a function. Should return a description (of arguments and expected side effects) + if funcNameOrFunc == "Foo" or funcNameOrFunc == t.Foo then + return "Function Foo. Arguments: None. Side effect: prints foo" + elseif funcNameOrFunc == "Bar" or funcNameOrFunc == t.Bar then + return "Function Bar. Arguments: None. Side effect: prints bar" + end + end + +return t \ No newline at end of file diff --git a/assets/ugc/876 b/assets/ugc/876 new file mode 100644 index 0000000..df73023 --- /dev/null +++ b/assets/ugc/876 @@ -0,0 +1,1116 @@ +--rbxassetid%876% +local t = {} + + + +------------------------------------------------------------------------------------------------------------------------ +------------------------------------------------------------------------------------------------------------------------ +------------------------------------------------------------------------------------------------------------------------ +------------------------------------------------JSON Functions Begin---------------------------------------------------- +------------------------------------------------------------------------------------------------------------------------ +------------------------------------------------------------------------------------------------------------------------ +------------------------------------------------------------------------------------------------------------------------ + + --JSON Encoder and Parser for Lua 5.1 + -- + --Copyright 2007 Shaun Brown (http://www.chipmunkav.com) + --All Rights Reserved. + + --Permission is hereby granted, free of charge, to any person + --obtaining a copy of this software to deal in the Software without + --restriction, including without limitation the rights to use, + --copy, modify, merge, publish, distribute, sublicense, and/or + --sell copies of the Software, and to permit persons to whom the + --Software is furnished to do so, subject to the following conditions: + + --The above copyright notice and this permission notice shall be + --included in all copies or substantial portions of the Software. + --If you find this software useful please give www.chipmunkav.com a mention. + + --THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + --EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + --OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. + --IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR + --ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF + --CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN + --CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +local string = string +local math = math +local table = table +local error = error +local tonumber = tonumber +local tostring = tostring +local type = type +local setmetatable = setmetatable +local pairs = pairs +local ipairs = ipairs +local assert = assert +local Chipmunk = Chipmunk + + +local StringBuilder = { + buffer = {} +} + +function StringBuilder:New() + local o = {} + setmetatable(o, self) + self.__index = self + o.buffer = {} + return o +end + +function StringBuilder:Append(s) + self.buffer[#self.buffer+1] = s +end + +function StringBuilder:ToString() + return table.concat(self.buffer) +end + +local JsonWriter = { + backslashes = { + ['\b'] = "\\b", + ['\t'] = "\\t", + ['\n'] = "\\n", + ['\f'] = "\\f", + ['\r'] = "\\r", + ['"'] = "\\\"", + ['\\'] = "\\\\", + ['/'] = "\\/" + } +} + +function JsonWriter:New() + local o = {} + o.writer = StringBuilder:New() + setmetatable(o, self) + self.__index = self + return o +end + +function JsonWriter:Append(s) + self.writer:Append(s) +end + +function JsonWriter:ToString() + return self.writer:ToString() +end + +function JsonWriter:Write(o) + local t = type(o) + if t == "nil" then + self:WriteNil() + elseif t == "boolean" then + self:WriteString(o) + elseif t == "number" then + self:WriteString(o) + elseif t == "string" then + self:ParseString(o) + elseif t == "table" then + self:WriteTable(o) + elseif t == "function" then + self:WriteFunction(o) + elseif t == "thread" then + self:WriteError(o) + elseif t == "userdata" then + self:WriteError(o) + end +end + +function JsonWriter:WriteNil() + self:Append("null") +end + +function JsonWriter:WriteString(o) + self:Append(tostring(o)) +end + +function JsonWriter:ParseString(s) + self:Append('"') + self:Append(string.gsub(s, "[%z%c\\\"/]", function(n) + local c = self.backslashes[n] + if c then return c end + return string.format("\\u%.4X", string.byte(n)) + end)) + self:Append('"') +end + +function JsonWriter:IsArray(t) + local count = 0 + local isindex = function(k) + if type(k) == "number" and k > 0 then + if math.floor(k) == k then + return true + end + end + return false + end + for k,v in pairs(t) do + if not isindex(k) then + return false, '{', '}' + else + count = math.max(count, k) + end + end + return true, '[', ']', count +end + +function JsonWriter:WriteTable(t) + local ba, st, et, n = self:IsArray(t) + self:Append(st) + if ba then + for i = 1, n do + self:Write(t[i]) + if i < n then + self:Append(',') + end + end + else + local first = true; + for k, v in pairs(t) do + if not first then + self:Append(',') + end + first = false; + self:ParseString(k) + self:Append(':') + self:Write(v) + end + end + self:Append(et) +end + +function JsonWriter:WriteError(o) + error(string.format( + "Encoding of %s unsupported", + tostring(o))) +end + +function JsonWriter:WriteFunction(o) + if o == Null then + self:WriteNil() + else + self:WriteError(o) + end +end + +local StringReader = { + s = "", + i = 0 +} + +function StringReader:New(s) + local o = {} + setmetatable(o, self) + self.__index = self + o.s = s or o.s + return o +end + +function StringReader:Peek() + local i = self.i + 1 + if i <= #self.s then + return string.sub(self.s, i, i) + end + return nil +end + +function StringReader:Next() + self.i = self.i+1 + if self.i <= #self.s then + return string.sub(self.s, self.i, self.i) + end + return nil +end + +function StringReader:All() + return self.s +end + +local JsonReader = { + escapes = { + ['t'] = '\t', + ['n'] = '\n', + ['f'] = '\f', + ['r'] = '\r', + ['b'] = '\b', + } +} + +function JsonReader:New(s) + local o = {} + o.reader = StringReader:New(s) + setmetatable(o, self) + self.__index = self + return o; +end + +function JsonReader:Read() + self:SkipWhiteSpace() + local peek = self:Peek() + if peek == nil then + error(string.format( + "Nil string: '%s'", + self:All())) + elseif peek == '{' then + return self:ReadObject() + elseif peek == '[' then + return self:ReadArray() + elseif peek == '"' then + return self:ReadString() + elseif string.find(peek, "[%+%-%d]") then + return self:ReadNumber() + elseif peek == 't' then + return self:ReadTrue() + elseif peek == 'f' then + return self:ReadFalse() + elseif peek == 'n' then + return self:ReadNull() + elseif peek == '/' then + self:ReadComment() + return self:Read() + else + return nil + end +end + +function JsonReader:ReadTrue() + self:TestReservedWord{'t','r','u','e'} + return true +end + +function JsonReader:ReadFalse() + self:TestReservedWord{'f','a','l','s','e'} + return false +end + +function JsonReader:ReadNull() + self:TestReservedWord{'n','u','l','l'} + return nil +end + +function JsonReader:TestReservedWord(t) + for i, v in ipairs(t) do + if self:Next() ~= v then + error(string.format( + "Error reading '%s': %s", + table.concat(t), + self:All())) + end + end +end + +function JsonReader:ReadNumber() + local result = self:Next() + local peek = self:Peek() + while peek ~= nil and string.find( + peek, + "[%+%-%d%.eE]") do + result = result .. self:Next() + peek = self:Peek() + end + result = tonumber(result) + if result == nil then + error(string.format( + "Invalid number: '%s'", + result)) + else + return result + end +end + +function JsonReader:ReadString() + local result = "" + assert(self:Next() == '"') + while self:Peek() ~= '"' do + local ch = self:Next() + if ch == '\\' then + ch = self:Next() + if self.escapes[ch] then + ch = self.escapes[ch] + end + end + result = result .. ch + end + assert(self:Next() == '"') + local fromunicode = function(m) + return string.char(tonumber(m, 16)) + end + return string.gsub( + result, + "u%x%x(%x%x)", + fromunicode) +end + +function JsonReader:ReadComment() + assert(self:Next() == '/') + local second = self:Next() + if second == '/' then + self:ReadSingleLineComment() + elseif second == '*' then + self:ReadBlockComment() + else + error(string.format( + "Invalid comment: %s", + self:All())) + end +end + +function JsonReader:ReadBlockComment() + local done = false + while not done do + local ch = self:Next() + if ch == '*' and self:Peek() == '/' then + done = true + end + if not done and + ch == '/' and + self:Peek() == "*" then + error(string.format( + "Invalid comment: %s, '/*' illegal.", + self:All())) + end + end + self:Next() +end + +function JsonReader:ReadSingleLineComment() + local ch = self:Next() + while ch ~= '\r' and ch ~= '\n' do + ch = self:Next() + end +end + +function JsonReader:ReadArray() + local result = {} + assert(self:Next() == '[') + local done = false + if self:Peek() == ']' then + done = true; + end + while not done do + local item = self:Read() + result[#result+1] = item + self:SkipWhiteSpace() + if self:Peek() == ']' then + done = true + end + if not done then + local ch = self:Next() + if ch ~= ',' then + error(string.format( + "Invalid array: '%s' due to: '%s'", + self:All(), ch)) + end + end + end + assert(']' == self:Next()) + return result +end + +function JsonReader:ReadObject() + local result = {} + assert(self:Next() == '{') + local done = false + if self:Peek() == '}' then + done = true + end + while not done do + local key = self:Read() + if type(key) ~= "string" then + error(string.format( + "Invalid non-string object key: %s", + key)) + end + self:SkipWhiteSpace() + local ch = self:Next() + if ch ~= ':' then + error(string.format( + "Invalid object: '%s' due to: '%s'", + self:All(), + ch)) + end + self:SkipWhiteSpace() + local val = self:Read() + result[key] = val + self:SkipWhiteSpace() + if self:Peek() == '}' then + done = true + end + if not done then + ch = self:Next() + if ch ~= ',' then + error(string.format( + "Invalid array: '%s' near: '%s'", + self:All(), + ch)) + end + end + end + assert(self:Next() == "}") + return result +end + +function JsonReader:SkipWhiteSpace() + local p = self:Peek() + while p ~= nil and string.find(p, "[%s/]") do + if p == '/' then + self:ReadComment() + else + self:Next() + end + p = self:Peek() + end +end + +function JsonReader:Peek() + return self.reader:Peek() +end + +function JsonReader:Next() + return self.reader:Next() +end + +function JsonReader:All() + return self.reader:All() +end + +function Encode(o) + local writer = JsonWriter:New() + writer:Write(o) + return writer:ToString() +end + +function Decode(s) + local reader = JsonReader:New(s) + return reader:Read() +end + +function Null() + return Null +end +-------------------- End JSON Parser ------------------------ + + +t.DecodeJSON = function(jsonString) + if type(jsonString) == "string" then + return Decode(jsonString) + end + print("RbxUtil.DecodeJSON expects string argument!") + return nil +end + +t.EncodeJSON = function(jsonTable) + return Encode(jsonTable) +end + + + + + + + + +------------------------------------------------------------------------------------------------------------------------ +------------------------------------------------------------------------------------------------------------------------ +------------------------------------------------------------------------------------------------------------------------ +--------------------------------------------Terrain Utilities Begin----------------------------------------------------- +------------------------------------------------------------------------------------------------------------------------ +------------------------------------------------------------------------------------------------------------------------ +------------------------------------------------------------------------------------------------------------------------ +--makes a wedge at location x, y, z +--sets cell x, y, z to default material if parameter is provided, if not sets cell x, y, z to be whatever material it previously w +--returns true if made a wedge, false if the cell remains a block +t.MakeWedge = function(x, y, z, defaultmaterial) + return game:GetService("Terrain"):AutoWedgeCell(x,y,z) +end + +t.SelectTerrainRegion = function(regionToSelect, color, selectEmptyCells, selectionParent) + local terrain = game.Workspace:FindFirstChild("Terrain") + if not terrain then return end + + assert(regionToSelect) + assert(color) + + if not type(regionToSelect) == "Region3" then + error("regionToSelect (first arg), should be of type Region3, but is type",type(regionToSelect)) + end + if not type(color) == "BrickColor" then + error("color (second arg), should be of type BrickColor, but is type",type(color)) + end + + -- frequently used terrain calls (speeds up call, no lookup necessary) + local GetCell = terrain.GetCell + local WorldToCellPreferSolid = terrain.WorldToCellPreferSolid + local CellCenterToWorld = terrain.CellCenterToWorld + local emptyMaterial = Enum.CellMaterial.Empty + + -- container for all adornments, passed back to user + local selectionContainer = Instance.new("Model") + selectionContainer.Name = "SelectionContainer" + selectionContainer.Archivable = false + if selectionParent then + selectionContainer.Parent = selectionParent + else + selectionContainer.Parent = game.Workspace + end + + local updateSelection = nil -- function we return to allow user to update selection + local currentKeepAliveTag = nil -- a tag that determines whether adorns should be destroyed + local aliveCounter = 0 -- helper for currentKeepAliveTag + local lastRegion = nil -- used to stop updates that do nothing + local adornments = {} -- contains all adornments + local reusableAdorns = {} + + local selectionPart = Instance.new("Part") + selectionPart.Name = "SelectionPart" + selectionPart.Transparency = 1 + selectionPart.Anchored = true + selectionPart.Locked = true + selectionPart.CanCollide = false + selectionPart.FormFactor = Enum.FormFactor.Custom + selectionPart.Size = Vector3.new(4.2,4.2,4.2) + + local selectionBox = Instance.new("SelectionBox") + + -- srs translation from region3 to region3int16 + function Region3ToRegion3int16(region3) + local theLowVec = region3.CFrame.p - (region3.Size/2) + Vector3.new(2,2,2) + local lowCell = WorldToCellPreferSolid(terrain,theLowVec) + + local theHighVec = region3.CFrame.p + (region3.Size/2) - Vector3.new(2,2,2) + local highCell = WorldToCellPreferSolid(terrain, theHighVec) + + local highIntVec = Vector3int16.new(highCell.x,highCell.y,highCell.z) + local lowIntVec = Vector3int16.new(lowCell.x,lowCell.y,lowCell.z) + + return Region3int16.new(lowIntVec,highIntVec) + end + + -- helper function that creates the basis for a selection box + function createAdornment(theColor) + local selectionPartClone = nil + local selectionBoxClone = nil + + if #reusableAdorns > 0 then + selectionPartClone = reusableAdorns[1]["part"] + selectionBoxClone = reusableAdorns[1]["box"] + table.remove(reusableAdorns,1) + + selectionBoxClone.Visible = true + else + selectionPartClone = selectionPart:Clone() + selectionPartClone.Archivable = false + + selectionBoxClone = selectionBox:Clone() + selectionBoxClone.Archivable = false + + selectionBoxClone.Adornee = selectionPartClone + selectionBoxClone.Parent = selectionContainer + + selectionBoxClone.Adornee = selectionPartClone + + selectionBoxClone.Parent = selectionContainer + end + + if theColor then + selectionBoxClone.Color = theColor + end + + return selectionPartClone, selectionBoxClone + end + + -- iterates through all current adornments and deletes any that don't have latest tag + function cleanUpAdornments() + for cellPos, adornTable in pairs(adornments) do + + if adornTable.KeepAlive ~= currentKeepAliveTag then -- old news, we should get rid of this + adornTable.SelectionBox.Visible = false + table.insert(reusableAdorns,{part = adornTable.SelectionPart, box = adornTable.SelectionBox}) + adornments[cellPos] = nil + end + end + end + + -- helper function to update tag + function incrementAliveCounter() + aliveCounter = aliveCounter + 1 + if aliveCounter > 1000000 then + aliveCounter = 0 + end + return aliveCounter + end + + -- finds full cells in region and adorns each cell with a box, with the argument color + function adornFullCellsInRegion(region, color) + local regionBegin = region.CFrame.p - (region.Size/2) + Vector3.new(2,2,2) + local regionEnd = region.CFrame.p + (region.Size/2) - Vector3.new(2,2,2) + + local cellPosBegin = WorldToCellPreferSolid(terrain, regionBegin) + local cellPosEnd = WorldToCellPreferSolid(terrain, regionEnd) + + currentKeepAliveTag = incrementAliveCounter() + for y = cellPosBegin.y, cellPosEnd.y do + for z = cellPosBegin.z, cellPosEnd.z do + for x = cellPosBegin.x, cellPosEnd.x do + local cellMaterial = GetCell(terrain, x, y, z) + + if cellMaterial ~= emptyMaterial then + local cframePos = CellCenterToWorld(terrain, x, y, z) + local cellPos = Vector3int16.new(x,y,z) + + local updated = false + for cellPosAdorn, adornTable in pairs(adornments) do + if cellPosAdorn == cellPos then + adornTable.KeepAlive = currentKeepAliveTag + if color then + adornTable.SelectionBox.Color = color + end + updated = true + break + end + end + + if not updated then + local selectionPart, selectionBox = createAdornment(color) + selectionPart.Size = Vector3.new(4,4,4) + selectionPart.CFrame = CFrame.new(cframePos) + local adornTable = {SelectionPart = selectionPart, SelectionBox = selectionBox, KeepAlive = currentKeepAliveTag} + adornments[cellPos] = adornTable + end + end + end + end + end + cleanUpAdornments() + end + + + ------------------------------------- setup code ------------------------------ + lastRegion = regionToSelect + + if selectEmptyCells then -- use one big selection to represent the area selected + local selectionPart, selectionBox = createAdornment(color) + + selectionPart.Size = regionToSelect.Size + selectionPart.CFrame = regionToSelect.CFrame + + adornments.SelectionPart = selectionPart + adornments.SelectionBox = selectionBox + + updateSelection = + function (newRegion, color) + if newRegion and newRegion ~= lastRegion then + lastRegion = newRegion + selectionPart.Size = newRegion.Size + selectionPart.CFrame = newRegion.CFrame + end + if color then + selectionBox.Color = color + end + end + else -- use individual cell adorns to represent the area selected + adornFullCellsInRegion(regionToSelect, color) + updateSelection = + function (newRegion, color) + if newRegion and newRegion ~= lastRegion then + lastRegion = newRegion + adornFullCellsInRegion(newRegion, color) + end + end + + end + + local destroyFunc = function() + updateSelection = nil + if selectionContainer then selectionContainer:Destroy() end + adornments = nil + end + + return updateSelection, destroyFunc +end + +-----------------------------Terrain Utilities End----------------------------- + + + + + + + +------------------------------------------------------------------------------------------------------------------------ +------------------------------------------------------------------------------------------------------------------------ +------------------------------------------------------------------------------------------------------------------------ +------------------------------------------------Signal class begin------------------------------------------------------ +------------------------------------------------------------------------------------------------------------------------ +------------------------------------------------------------------------------------------------------------------------ +------------------------------------------------------------------------------------------------------------------------ +--[[ +A 'Signal' object identical to the internal RBXScriptSignal object in it's public API and semantics. This function +can be used to create "custom events" for user-made code. +API: +Method :connect( function handler ) + Arguments: The function to connect to. + Returns: A new connection object which can be used to disconnect the connection + Description: Connects this signal to the function specified by |handler|. That is, when |fire( ... )| is called for + the signal the |handler| will be called with the arguments given to |fire( ... )|. Note, the functions + connected to a signal are called in NO PARTICULAR ORDER, so connecting one function after another does + NOT mean that the first will be called before the second as a result of a call to |fire|. + +Method :disconnect() + Arguments: None + Returns: None + Description: Disconnects all of the functions connected to this signal. + +Method :fire( ... ) + Arguments: Any arguments are accepted + Returns: None + Description: Calls all of the currently connected functions with the given arguments. + +Method :wait() + Arguments: None + Returns: The arguments given to fire + Description: This call blocks until +]] + +function t.CreateSignal() + local this = {} + + local mBindableEvent = Instance.new('BindableEvent') + local mAllCns = {} --all connection objects returned by mBindableEvent::connect + + --main functions + function this:connect(func) + if self ~= this then error("connect must be called with `:`, not `.`", 2) end + if type(func) ~= 'function' then + error("Argument #1 of connect must be a function, got a "..type(func), 2) + end + local cn = mBindableEvent.Event:connect(func) + mAllCns[cn] = true + local pubCn = {} + function pubCn:disconnect() + cn:disconnect() + mAllCns[cn] = nil + end + return pubCn + end + function this:disconnect() + if self ~= this then error("disconnect must be called with `:`, not `.`", 2) end + for cn, _ in pairs(mAllCns) do + cn:disconnect() + mAllCns[cn] = nil + end + end + function this:wait() + if self ~= this then error("wait must be called with `:`, not `.`", 2) end + return mBindableEvent.Event:wait() + end + function this:fire(...) + if self ~= this then error("fire must be called with `:`, not `.`", 2) end + mBindableEvent:Fire(...) + end + + return this +end + +------------------------------------------------- Sigal class End ------------------------------------------------------ + + + + +------------------------------------------------------------------------------------------------------------------------ +------------------------------------------------------------------------------------------------------------------------ +------------------------------------------------------------------------------------------------------------------------ +-----------------------------------------------Create Function Begins--------------------------------------------------- +------------------------------------------------------------------------------------------------------------------------ +------------------------------------------------------------------------------------------------------------------------ +------------------------------------------------------------------------------------------------------------------------ +--[[ +A "Create" function for easy creation of Roblox instances. The function accepts a string which is the classname of +the object to be created. The function then returns another function which either accepts accepts no arguments, in +which case it simply creates an object of the given type, or a table argument that may contain several types of data, +in which case it mutates the object in varying ways depending on the nature of the aggregate data. These are the +type of data and what operation each will perform: +1) A string key mapping to some value: + Key-Value pairs in this form will be treated as properties of the object, and will be assigned in NO PARTICULAR + ORDER. If the order in which properties is assigned matter, then they must be assigned somewhere else than the + |Create| call's body. + +2) An integral key mapping to another Instance: + Normal numeric keys mapping to Instances will be treated as children if the object being created, and will be + parented to it. This allows nice recursive calls to Create to create a whole hierarchy of objects without a + need for temporary variables to store references to those objects. + +3) A key which is a value returned from Create.Event( eventname ), and a value which is a function function + The Create.E( string ) function provides a limited way to connect to signals inside of a Create hierarchy + for those who really want such a functionality. The name of the event whose name is passed to + Create.E( string ) + +4) A key which is the Create function itself, and a value which is a function + The function will be run with the argument of the object itself after all other initialization of the object is + done by create. This provides a way to do arbitrary things involving the object from withing the create + hierarchy. + Note: This function is called SYNCHRONOUSLY, that means that you should only so initialization in + it, not stuff which requires waiting, as the Create call will block until it returns. While waiting in the + constructor callback function is possible, it is probably not a good design choice. + Note: Since the constructor function is called after all other initialization, a Create block cannot have two + constructor functions, as it would not be possible to call both of them last, also, this would be unnecessary. + + +Some example usages: + +A simple example which uses the Create function to create a model object and assign two of it's properties. +local model = Create'Model'{ + Name = 'A New model', + Parent = game.Workspace, +} + + +An example where a larger hierarchy of object is made. After the call the hierarchy will look like this: +Model_Container + |-ObjectValue + | | + | `-BoolValueChild + `-IntValue + +local model = Create'Model'{ + Name = 'Model_Container', + Create'ObjectValue'{ + Create'BoolValue'{ + Name = 'BoolValueChild', + }, + }, + Create'IntValue'{}, +} + + +An example using the event syntax: + +local part = Create'Part'{ + [Create.E'Touched'] = function(part) + print("I was touched by "..part.Name) + end, +} + + +An example using the general constructor syntax: + +local model = Create'Part'{ + [Create] = function(this) + print("Constructor running!") + this.Name = GetGlobalFoosAndBars(this) + end, +} + + +Note: It is also perfectly legal to save a reference to the function returned by a call Create, this will not cause + any unexpected behavior. EG: + local partCreatingFunction = Create'Part' + local part = partCreatingFunction() +]] + +--the Create function need to be created as a functor, not a function, in order to support the Create.E syntax, so it +--will be created in several steps rather than as a single function declaration. +local function Create_PrivImpl(objectType) + if type(objectType) ~= 'string' then + error("Argument of Create must be a string", 2) + end + --return the proxy function that gives us the nice Create'string'{data} syntax + --The first function call is a function call using Lua's single-string-argument syntax + --The second function call is using Lua's single-table-argument syntax + --Both can be chained together for the nice effect. + return function(dat) + --default to nothing, to handle the no argument given case + dat = dat or {} + + --make the object to mutate + local obj = Instance.new(objectType) + + --stored constructor function to be called after other initialization + local ctor = nil + + for k, v in pairs(dat) do + --add property + if type(k) == 'string' then + obj[k] = v + + + --add child + elseif type(k) == 'number' then + if type(v) ~= 'userdata' then + error("Bad entry in Create body: Numeric keys must be paired with children, got a: "..type(v), 2) + end + v.Parent = obj + + + --event connect + elseif type(k) == 'table' and k.__eventname then + if type(v) ~= 'function' then + error("Bad entry in Create body: Key `[Create.E\'"..k.__eventname.."\']` must have a function value\ + got: "..tostring(v), 2) + end + obj[k.__eventname]:connect(v) + + + --define constructor function + elseif k == t.Create then + if type(v) ~= 'function' then + error("Bad entry in Create body: Key `[Create]` should be paired with a constructor function, \ + got: "..tostring(v), 2) + elseif ctor then + --ctor already exists, only one allowed + error("Bad entry in Create body: Only one constructor function is allowed", 2) + end + ctor = v + + + else + error("Bad entry ("..tostring(k).." => "..tostring(v)..") in Create body", 2) + end + end + + --apply constructor function if it exists + if ctor then + ctor(obj) + end + + --return the completed object + return obj + end +end + +--now, create the functor: +t.Create = setmetatable({}, {__call = function(tb, ...) return Create_PrivImpl(...) end}) + +--and create the "Event.E" syntax stub. Really it's just a stub to construct a table which our Create +--function can recognize as special. +t.Create.E = function(eventName) + return {__eventname = eventName} +end + +-------------------------------------------------Create function End---------------------------------------------------- + + + + +------------------------------------------------------------------------------------------------------------------------ +------------------------------------------------------------------------------------------------------------------------ +------------------------------------------------------------------------------------------------------------------------ +------------------------------------------------Documentation Begin----------------------------------------------------- +------------------------------------------------------------------------------------------------------------------------ +------------------------------------------------------------------------------------------------------------------------ +------------------------------------------------------------------------------------------------------------------------ + +t.Help = + function(funcNameOrFunc) + --input argument can be a string or a function. Should return a description (of arguments and expected side effects) + if funcNameOrFunc == "DecodeJSON" or funcNameOrFunc == t.DecodeJSON then + return "Function DecodeJSON. " .. + "Arguments: (string). " .. + "Side effect: returns a table with all parsed JSON values" + end + if funcNameOrFunc == "EncodeJSON" or funcNameOrFunc == t.EncodeJSON then + return "Function EncodeJSON. " .. + "Arguments: (table). " .. + "Side effect: returns a string composed of argument table in JSON data format" + end + if funcNameOrFunc == "MakeWedge" or funcNameOrFunc == t.MakeWedge then + return "Function MakeWedge. " .. + "Arguments: (x, y, z, [default material]). " .. + "Description: Makes a wedge at location x, y, z. Sets cell x, y, z to default material if ".. + "parameter is provided, if not sets cell x, y, z to be whatever material it previously was. ".. + "Returns true if made a wedge, false if the cell remains a block " + end + if funcNameOrFunc == "SelectTerrainRegion" or funcNameOrFunc == t.SelectTerrainRegion then + return "Function SelectTerrainRegion. " .. + "Arguments: (regionToSelect, color, selectEmptyCells, selectionParent). " .. + "Description: Selects all terrain via a series of selection boxes within the regionToSelect " .. + "(this should be a region3 value). The selection box color is detemined by the color argument " .. + "(should be a brickcolor value). SelectionParent is the parent that the selection model gets placed to (optional)." .. + "SelectEmptyCells is bool, when true will select all cells in the " .. + "region, otherwise we only select non-empty cells. Returns a function that can update the selection," .. + "arguments to said function are a new region3 to select, and the adornment color (color arg is optional). " .. + "Also returns a second function that takes no arguments and destroys the selection" + end + if funcNameOrFunc == "CreateSignal" or funcNameOrFunc == t.CreateSignal then + return "Function CreateSignal. ".. + "Arguments: None. ".. + "Returns: The newly created Signal object. This object is identical to the RBXScriptSignal class ".. + "used for events in Objects, but is a Lua-side object so it can be used to create custom events in".. + "Lua code. ".. + "Methods of the Signal object: :connect, :wait, :fire, :disconnect. ".. + "For more info you can pass the method name to the Help function, or view the wiki page ".. + "for this library. EG: Help('Signal:connect')." + end + if funcNameOrFunc == "Signal:connect" then + return "Method Signal:connect. ".. + "Arguments: (function handler). ".. + "Return: A connection object which can be used to disconnect the connection to this handler. ".. + "Description: Connectes a handler function to this Signal, so that when |fire| is called the ".. + "handler function will be called with the arguments passed to |fire|." + end + if funcNameOrFunc == "Signal:wait" then + return "Method Signal:wait. ".. + "Arguments: None. ".. + "Returns: The arguments passed to the next call to |fire|. ".. + "Description: This call does not return until the next call to |fire| is made, at which point it ".. + "will return the values which were passed as arguments to that |fire| call." + end + if funcNameOrFunc == "Signal:fire" then + return "Method Signal:fire. ".. + "Arguments: Any number of arguments of any type. ".. + "Returns: None. ".. + "Description: This call will invoke any connected handler functions, and notify any waiting code ".. + "attached to this Signal to continue, with the arguments passed to this function. Note: The calls ".. + "to handlers are made asynchronously, so this call will return immediately regardless of how long ".. + "it takes the connected handler functions to complete." + end + if funcNameOrFunc == "Signal:disconnect" then + return "Method Signal:disconnect. ".. + "Arguments: None. ".. + "Returns: None. ".. + "Description: This call disconnects all handlers attacched to this function, note however, it ".. + "does NOT make waiting code continue, as is the behavior of normal Roblox events. This method ".. + "can also be called on the connection object which is returned from Signal:connect to only ".. + "disconnect a single handler, as opposed to this method, which will disconnect all handlers." + end + if funcNameOrFunc == "Create" then + return "Function Create. ".. + "Arguments: A table containing information about how to construct a collection of objects. ".. + "Returns: The constructed objects. ".. + "Descrition: Create is a very powerfull function, whose description is too long to fit here, and ".. + "is best described via example, please see the wiki page for a description of how to use it." + end + end + +--------------------------------------------Documentation Ends---------------------------------------------------------- + +return t + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/assets/ugc/877 b/assets/ugc/877 new file mode 100644 index 0000000..1fca15b --- /dev/null +++ b/assets/ugc/877 @@ -0,0 +1,2208 @@ +--rbxassetid%877% +local t = {} + +function waitForChild(instance, name) + while not instance:FindFirstChild(name) do + instance.ChildAdded:wait() + end +end + +-- Do a line/plane intersection. The line starts at the camera. The plane is at y == 0, normal(0, 1, 0) +-- +-- vectorPos - End point of the line. +-- +-- Return: +-- cellPos - The terrain cell intersection point if there is one, vectorPos if there isn't. +-- hit - Whether there was a plane intersection. Value is true if there was, false if not. +function PlaneIntersection(vectorPos) + local hit = false + local currCamera = game.Workspace.CurrentCamera + local startPos = Vector3.new(currCamera.CoordinateFrame.p.X, currCamera.CoordinateFrame.p.Y, currCamera.CoordinateFrame.p.Z) + local endPos = Vector3.new(vectorPos.X, vectorPos.Y, vectorPos.Z) + local normal = Vector3.new(0, 1, 0) + local p3 = Vector3.new(0, 0, 0) + local startEndDot = normal:Dot(endPos - startPos) + local cellPos = vectorPos + if startEndDot ~= 0 then + local t = normal:Dot(p3 - startPos) / startEndDot + if(t >=0 and t <=1) then + local intersection = ((endPos - startPos) * t) + startPos + cellPos = game.Workspace.Terrain:WorldToCell(intersection) + hit = true + end + end + + return cellPos, hit +end + + +-- Purpose: +-- Checks for terrain touched by the mouse hit. +-- Will do a plane intersection if no terrain is touched. +-- +-- mouse - Mouse to check the .hit for. +-- +-- Return: +-- cellPos - Cell position hit. Nil if none. +function GetTerrainForMouse(mouse) + -- There was no target, so all it could be is a plane intersection. + -- Check for a plane intersection. If there isn't one then nothing will get hit. + local cell = game.Workspace.Terrain:WorldToCellPreferSolid(Vector3.new(mouse.hit.x, mouse.hit.y, mouse.hit.z)) + local planeLoc = nil + -- If nothing was hit, do the plane intersection. + if 0 == game.Workspace.Terrain:GetCell(cell.X, cell.Y, cell.Z).Value then + cell = nil + planeLoc, hit = PlaneIntersection(Vector3.new(mouse.hit.x, mouse.hit.y, mouse.hit.z)) + if hit then + cell = planeLoc + end + end + return cell +end + +-- setup helper functions +local insertBoundingBoxOverlapVector = Vector3.new(.3, .3, .3) -- we can still stamp if our character extrudes into the target stamping space by .3 or fewer units + +-- rotates a model by yAngle radians about the global y-axis +local function rotatePartAndChildren(part, rotCF, offsetFromOrigin) + -- rotate this thing, if it's a part + if part:IsA("BasePart") then + part.CFrame = (rotCF * (part.CFrame - offsetFromOrigin)) + offsetFromOrigin + end + + -- recursively do the same to all children + local partChildren = part:GetChildren() + for c = 1, #partChildren do rotatePartAndChildren(partChildren[c], rotCF, offsetFromOrigin) end +end + +local function modelRotate(model, yAngle) + local rotCF = CFrame.Angles(0, yAngle, 0) + local offsetFromOrigin = model:GetModelCFrame().p + + rotatePartAndChildren(model, rotCF, offsetFromOrigin) +end + + +local function collectParts(object, baseParts, scripts, decals) + if object:IsA("BasePart") then + baseParts[#baseParts+1] = object + elseif object:IsA("Script") then + scripts[#scripts+1] = object + elseif object:IsA("Decal") then + decals[#decals+1] = object + end + + for index,child in pairs(object:GetChildren()) do + collectParts(child, baseParts, scripts, decals) + end +end + +local function clusterPartsInRegion(startVector, endVector) + local cluster = game.Workspace:FindFirstChild("Terrain") + + local startCell = cluster:WorldToCell(startVector) + local endCell = cluster:WorldToCell(endVector) + + local startX = startCell.X + local startY = startCell.Y + local startZ = startCell.Z + + local endX = endCell.X + local endY = endCell.Y + local endZ = endCell.Z + + if startX < cluster.MaxExtents.Min.X then startX = cluster.MaxExtents.Min.X end + if startY < cluster.MaxExtents.Min.Y then startY = cluster.MaxExtents.Min.Y end + if startZ < cluster.MaxExtents.Min.Z then startZ = cluster.MaxExtents.Min.Z end + + if endX > cluster.MaxExtents.Max.X then endX = cluster.MaxExtents.Max.X end + if endY > cluster.MaxExtents.Max.Y then endY = cluster.MaxExtents.Max.Y end + if endZ > cluster.MaxExtents.Max.Z then endZ = cluster.MaxExtents.Max.Z end + + for x = startX, endX do + for y = startY, endY do + for z = startZ, endZ do + if (cluster:GetCell(x, y, z).Value) > 0 then return true end + end + end + end + + return false +end + +local function findSeatsInModel(parent, seatTable) + if not parent then return end + + if parent.className == "Seat" or parent.className == "VehicleSeat" then + table.insert(seatTable, parent) + end + local myChildren = parent:GetChildren() + for j = 1, #myChildren do + findSeatsInModel(myChildren[j], seatTable) + end +end + +local function setSeatEnabledStatus(model, isEnabled) + local seatList = {} + findSeatsInModel(model, seatList) + + if isEnabled then + -- remove any welds called "SeatWeld" in seats + for i = 1, #seatList do + local nextSeat = seatList[i]:FindFirstChild("SeatWeld") + while nextSeat do nextSeat:Remove() nextSeat = seatList[i]:FindFirstChild("SeatWeld") end + end + else + -- put a weld called "SeatWeld" in every seat + -- this tricks it into thinking there's already someone sitting there, and it won't make you sit XD + for i = 1, #seatList do + local fakeWeld = Instance.new("Weld") + fakeWeld.Name = "SeatWeld" + fakeWeld.Parent = seatList[i] + end + end +end + +local function autoAlignToFace(parts) + local aatf = parts:FindFirstChild("AutoAlignToFace") + if aatf then return aatf.Value else return false end +end + +local function getClosestAlignedWorldDirection(aVector3InWorld) + local xDir = Vector3.new(1,0,0) + local yDir = Vector3.new(0,1,0) + local zDir = Vector3.new(0,0,1) + local xDot = aVector3InWorld.x * xDir.x + aVector3InWorld.y * xDir.y + aVector3InWorld.z * xDir.z + local yDot = aVector3InWorld.x * yDir.x + aVector3InWorld.y * yDir.y + aVector3InWorld.z * yDir.z + local zDot = aVector3InWorld.x * zDir.x + aVector3InWorld.y * zDir.y + aVector3InWorld.z * zDir.z + + if math.abs(xDot) > math.abs(yDot) and math.abs(xDot) > math.abs(zDot) then + if xDot > 0 then + return 0 + else + return 3 + end + elseif math.abs(yDot) > math.abs(xDot) and math.abs(yDot) > math.abs(zDot) then + if yDot > 0 then + return 1 + else + return 4 + end + else + if zDot > 0 then + return 2 + else + return 5 + end + end +end + +local function positionPartsAtCFrame3(aCFrame, currentParts) + local insertCFrame = nil + if not currentParts then return currentParts end + if currentParts and (currentParts:IsA("Model") or currentParts:IsA("Tool")) then + insertCFrame = currentParts:GetModelCFrame() + currentParts:TranslateBy(aCFrame.p - insertCFrame.p) + else + currentParts.CFrame = aCFrame + end + return currentParts +end + +local function calcRayHitTime(rayStart, raySlope, intersectionPlane) + if math.abs(raySlope) < .01 then return 0 end -- 0 slope --> we just say intersection time is 0, and sidestep this dimension + return (intersectionPlane - rayStart) / raySlope +end + +local function modelTargetSurface(partOrModel, rayStart, rayEnd) + if not partOrModel then + return 0 + end + + local modelCFrame = nil + local modelSize = nil + if partOrModel:IsA("Model") then + modelCFrame = partOrModel:GetModelCFrame() + modelSize = partOrModel:GetModelSize() + else + modelCFrame = partOrModel.CFrame + modelSize = partOrModel.Size + end + + local mouseRayStart = modelCFrame:pointToObjectSpace(rayStart) + local mouseRayEnd = modelCFrame:pointToObjectSpace(rayEnd) + local mouseSlope = mouseRayEnd - mouseRayStart + + local xPositive = 1 + local yPositive = 1 + local zPositive = 1 + if mouseSlope.X > 0 then xPositive = -1 end + if mouseSlope.Y > 0 then yPositive = -1 end + if mouseSlope.Z > 0 then zPositive = -1 end + + -- find which surface the transformed mouse ray hits (using modelSize): + local xHitTime = calcRayHitTime(mouseRayStart.X, mouseSlope.X, modelSize.X/2 * xPositive) + local yHitTime = calcRayHitTime(mouseRayStart.Y, mouseSlope.Y, modelSize.Y/2 * yPositive) + local zHitTime = calcRayHitTime(mouseRayStart.Z, mouseSlope.Z, modelSize.Z/2 * zPositive) + + local hitFace = 0 + + --if xHitTime >= 0 and yHitTime >= 0 and zHitTime >= 0 then + if xHitTime > yHitTime then + if xHitTime > zHitTime then + -- xFace is hit + hitFace = 1*xPositive + else + -- zFace is hit + hitFace = 3*zPositive + end + else + if yHitTime > zHitTime then + -- yFace is hit + hitFace = 2*yPositive + else + -- zFace is hit + hitFace = 3*zPositive + end + end + + return hitFace +end + +local function getBoundingBox2(partOrModel) + + -- for models, the bounding box is defined as the minimum and maximum individual part bounding boxes + -- relative to the first part's coordinate frame. + local minVec = Vector3.new(math.huge, math.huge, math.huge) + local maxVec = Vector3.new(-math.huge, -math.huge, -math.huge) + + if partOrModel:IsA("Terrain") then + minVec = Vector3.new(-2, -2, -2) + maxVec = Vector3.new(2, 2, 2) + elseif partOrModel:IsA("BasePart") then + minVec = -0.5 * partOrModel.Size + maxVec = -minVec + else + maxVec = partOrModel:GetModelSize()*0.5 + minVec = -maxVec + end + + -- Adjust bounding box to reflect what the model or part author wants in terms of justification + local justifyValue = partOrModel:FindFirstChild("Justification") + if justifyValue ~= nil then + -- find the multiple of 4 that contains the model + justify = justifyValue.Value + two = Vector3.new(2, 2, 2) + actualBox = maxVec - minVec - Vector3.new(0.01, 0.01, 0.01) + containingGridBox = Vector3.new(4 * math.ceil(actualBox.x/4), 4 * math.ceil(actualBox.y/4), 4 * math.ceil(actualBox.z/4)) + adjustment = containingGridBox - actualBox + minVec = minVec - 0.5 * adjustment * justify + maxVec = maxVec + 0.5 * adjustment * (two - justify) + end + + return minVec, maxVec +end + +local function getBoundingBoxInWorldCoordinates(partOrModel) + local minVec = Vector3.new(math.huge, math.huge, math.huge) + local maxVec = Vector3.new(-math.huge, -math.huge, -math.huge) + + if partOrModel:IsA("BasePart") and not partOrModel:IsA("Terrain") then + vec1 = partOrModel.CFrame:pointToWorldSpace(-0.5 * partOrModel.Size) + vec2 = partOrModel.CFrame:pointToWorldSpace(0.5 * partOrModel.Size) + minVec = Vector3.new(math.min(vec1.X, vec2.X), math.min(vec1.Y, vec2.Y), math.min(vec1.Z, vec2.Z)) + maxVec = Vector3.new(math.max(vec1.X, vec2.X), math.max(vec1.Y, vec2.Y), math.max(vec1.Z, vec2.Z)) + elseif partOrModel:IsA("Terrain") then + -- we shouldn't have to deal with this case + --minVec = Vector3.new(-2, -2, -2) + --maxVec = Vector3.new(2, 2, 2) + else + vec1 = partOrModel:GetModelCFrame():pointToWorldSpace(-0.5 * partOrModel:GetModelSize()) + vec2 = partOrModel:GetModelCFrame():pointToWorldSpace(0.5 * partOrModel:GetModelSize()) + minVec = Vector3.new(math.min(vec1.X, vec2.X), math.min(vec1.Y, vec2.Y), math.min(vec1.Z, vec2.Z)) + maxVec = Vector3.new(math.max(vec1.X, vec2.X), math.max(vec1.Y, vec2.Y), math.max(vec1.Z, vec2.Z)) + end + + return minVec, maxVec +end + +local function getTargetPartBoundingBox(targetPart) + if targetPart.Parent:FindFirstChild("RobloxModel") ~= nil then + return getBoundingBox2(targetPart.Parent) + else + return getBoundingBox2(targetPart) + end +end + +local function getMouseTargetCFrame(targetPart) + if targetPart.Parent:FindFirstChild("RobloxModel") ~= nil then + if targetPart.Parent:IsA("Tool") then return targetPart.Parent.Handle.CFrame + else return targetPart.Parent:GetModelCFrame() end + else + return targetPart.CFrame + end +end + +local function isBlocker(part) -- returns whether or not we want to cancel the stamp because we're blocked by this part + if not part then return false end + if not part.Parent then return false end + if part:FindFirstChild("Humanoid") then return false end + if part:FindFirstChild("RobloxStamper") or part:FindFirstChild("RobloxModel") then return true end + if part:IsA("Part") and not part.CanCollide then return false end + if part == game.Lighting then return false end + return isBlocker(part.Parent) +end + +-- helper function to determine if a character can be pushed upwards by a certain amount +-- character is 5 studs tall, we'll check a 1.5 x 1.5 x 4.5 box around char, with center .5 studs below torsocenter +local function spaceAboveCharacter(charTorso, newTorsoY, stampData) + local partsAboveChar = game.Workspace:FindPartsInRegion3( + Region3.new(Vector3.new(charTorso.Position.X, newTorsoY, charTorso.Position.Z) - Vector3.new(.75, 2.75, .75), + Vector3.new(charTorso.Position.X, newTorsoY, charTorso.Position.Z) + Vector3.new(.75, 1.75, .75)), + charTorso.Parent, + 100) + + for j = 1, #partsAboveChar do + if partsAboveChar[j].CanCollide and not partsAboveChar[j]:IsDescendantOf(stampData.CurrentParts) then return false end + end + + if clusterPartsInRegion(Vector3.new(charTorso.Position.X, newTorsoY, charTorso.Position.Z) - Vector3.new(.75, 2.75, .75), + Vector3.new(charTorso.Position.X, newTorsoY, charTorso.Position.Z) + Vector3.new(.75, 1.75, .75)) then + return false + end + + return true +end + + +local function findConfigAtMouseTarget(Mouse, stampData) + -- *Critical Assumption* : + -- This function assumes the target CF axes are orthogonal with the target bounding box faces + -- And, it assumes the insert CF axes are orthongonal with the insert bounding box faces + -- Therefore, insertion will not work with angled faces on wedges or other "non-block" parts, nor + -- will it work for parts in a model that are not orthogonally aligned with the model's CF. + + if not Mouse then return nil end -- This can happen sometimes, return if so + if not stampData then error("findConfigAtMouseTarget: stampData is nil") return nil end + if not stampData["CurrentParts"] then return nil end + + local grid = 4.0 + local admissibleConfig = false + local targetConfig = CFrame.new(0,0,0) + + local minBB, maxBB = getBoundingBox2(stampData.CurrentParts) + local diagBB = maxBB - minBB + + local insertCFrame + if stampData.CurrentParts:IsA("Model") or stampData.CurrentParts:IsA("Tool") then + insertCFrame = stampData.CurrentParts:GetModelCFrame() + else + insertCFrame = stampData.CurrentParts.CFrame + end + + if Mouse then + if stampData.CurrentParts:IsA("Tool") then + Mouse.TargetFilter = stampData.CurrentParts.Handle + else + Mouse.TargetFilter = stampData.CurrentParts + end + end + + local hitPlane = false + local targetPart = nil + local success = pcall(function() targetPart = Mouse.Target end) + + if not success then-- or targetPart == nil then + return admissibleConfig, targetConfig + end + + local mouseHitInWorld = Vector3.new(0, 0, 0) + if Mouse then + mouseHitInWorld = Vector3.new(Mouse.Hit.x, Mouse.Hit.y, Mouse.Hit.z) + end + + local cellPos = nil + + -- Nothing was hit, so check for the default plane. + if nil == targetPart then + cellPos = GetTerrainForMouse(Mouse) + if nil == cellPos then + hitPlane = false + return admissibleConfig, targetConfig + else + targetPart = game.Workspace.Terrain + hitPlane = true + -- Take into account error that will occur. + cellPos = Vector3.new(cellPos.X - 1, cellPos.Y, cellPos.Z) + mouseHitInWorld = game.Workspace.Terrain:CellCenterToWorld(cellPos.x, cellPos.y, cellPos.z) + end + end + + -- test mouse hit location + local minBBTarget, maxBBTarget = getTargetPartBoundingBox(targetPart) + local diagBBTarget = maxBBTarget - minBBTarget + local targetCFrame = getMouseTargetCFrame(targetPart) + + if targetPart:IsA("Terrain") then + if not cluster then cluster = game.Workspace:FindFirstChild("Terrain") end + local cellID = cluster:WorldToCellPreferSolid(mouseHitInWorld) + if hitPlane then + cellID = cellPos + end + + targetCFrame = CFrame.new(game.Workspace.Terrain:CellCenterToWorld(cellID.x, cellID.y, cellID.z)) + end + + local mouseHitInTarget = targetCFrame:pointToObjectSpace(mouseHitInWorld) + local targetVectorInWorld = Vector3.new(0,0,0) + if Mouse then + -- DON'T WANT THIS IN TERMS OF THE MODEL CFRAME! (.TargetSurface is in terms of the part CFrame, so this would break, right? [HotThoth]) + -- (ideally, we would want to make the Mouse.TargetSurface a model-targetsurface instead, but for testing will be using the converse) + --targetVectorInWorld = targetCFrame:vectorToWorldSpace(Vector3.FromNormalId(Mouse.TargetSurface)) + targetVectorInWorld = targetPart.CFrame:vectorToWorldSpace(Vector3.FromNormalId(Mouse.TargetSurface)) -- better, but model cframe would be best + --[[if targetPart.Parent:IsA("Model") then + local hitFace = modelTargetSurface(targetPart.Parent, Mouse.Hit.p, game.Workspace.CurrentCamera.CoordinateFrame.p) -- best, if you get it right + local WORLD_AXES = {Vector3.new(1, 0, 0), Vector3.new(0, 1, 0), Vector3.new(0, 0, 1)} + if hitFace > 0 then + targetVectorInWorld = targetCFrame:vectorToWorldSpace(WORLD_AXES[hitFace]) + elseif hitFace < 0 then + targetVectorInWorld = targetCFrame:vectorToWorldSpace(-WORLD_AXES[-hitFace]) + end + end]] + end + + local targetRefPointInTarget + local clampToSurface + + if getClosestAlignedWorldDirection(targetVectorInWorld) == 0 then + targetRefPointInTarget = targetCFrame:vectorToObjectSpace(Vector3.new(1, -1, 1)) + insertRefPointInInsert = insertCFrame:vectorToObjectSpace(Vector3.new(-1, -1, 1)) + clampToSurface = Vector3.new(0,1,1) + elseif getClosestAlignedWorldDirection(targetVectorInWorld) == 3 then + targetRefPointInTarget = targetCFrame:vectorToObjectSpace(Vector3.new(-1, -1, -1)) + insertRefPointInInsert = insertCFrame:vectorToObjectSpace(Vector3.new(1, -1, -1)) + clampToSurface = Vector3.new(0,1,1) + elseif getClosestAlignedWorldDirection(targetVectorInWorld) == 1 then + targetRefPointInTarget = targetCFrame:vectorToObjectSpace(Vector3.new(-1, 1, 1)) + insertRefPointInInsert = insertCFrame:vectorToObjectSpace(Vector3.new(-1, -1, 1)) + clampToSurface = Vector3.new(1,0,1) + elseif getClosestAlignedWorldDirection(targetVectorInWorld) == 4 then + targetRefPointInTarget = targetCFrame:vectorToObjectSpace(Vector3.new(-1, -1, 1)) + insertRefPointInInsert = insertCFrame:vectorToObjectSpace(Vector3.new(-1, 1, 1)) + clampToSurface = Vector3.new(1,0,1) + elseif getClosestAlignedWorldDirection(targetVectorInWorld) == 2 then + targetRefPointInTarget = targetCFrame:vectorToObjectSpace(Vector3.new(-1, -1, 1)) + insertRefPointInInsert = insertCFrame:vectorToObjectSpace(Vector3.new(-1, -1, -1)) + clampToSurface = Vector3.new(1,1,0) + else + targetRefPointInTarget = targetCFrame:vectorToObjectSpace(Vector3.new(1, -1, -1)) + insertRefPointInInsert = insertCFrame:vectorToObjectSpace(Vector3.new(1, -1, 1)) + clampToSurface = Vector3.new(1,1,0) + end + + targetRefPointInTarget = targetRefPointInTarget * (0.5 * diagBBTarget) + 0.5 * (maxBBTarget + minBBTarget) + insertRefPointInInsert = insertRefPointInInsert * (0.5 * diagBB) + 0.5 * (maxBB + minBB) + + -- To Do: For cases that are not aligned to the world grid, account for the minimal rotation + -- needed to bring the Insert part(s) into alignment with the Target Part + -- Apply the rotation here + + local delta = mouseHitInTarget - targetRefPointInTarget + local deltaClamped = Vector3.new(grid * math.modf(delta.x/grid), grid * math.modf(delta.y/grid), grid * math.modf(delta.z/grid)) + deltaClamped = deltaClamped * clampToSurface + local targetTouchInTarget = deltaClamped + targetRefPointInTarget + + local TargetTouchRelToWorld = targetCFrame:pointToWorldSpace(targetTouchInTarget) + local InsertTouchInWorld = insertCFrame:vectorToWorldSpace(insertRefPointInInsert) + local posInsertOriginInWorld = TargetTouchRelToWorld - InsertTouchInWorld + + local x, y, z, R00, R01, R02, R10, R11, R12, R20, R21, R22 = insertCFrame:components() + targetConfig = CFrame.new(posInsertOriginInWorld.x, posInsertOriginInWorld.y, posInsertOriginInWorld.z, R00, R01, R02, R10, R11, R12, R20, R21, R22) + admissibleConfig = true + + return admissibleConfig, targetConfig, getClosestAlignedWorldDirection(targetVectorInWorld) +end + +local function truncateToCircleEighth(bigValue, littleValue) + local big = math.abs(bigValue) + local little = math.abs(littleValue) + local hypotenuse = math.sqrt(big*big + little*little) + local frac = little / hypotenuse + + local bigSign = 1 + local littleSign = 1 + if bigValue < 0 then bigSign = -1 end + if littleValue < 0 then littleSign = -1 end + + if frac > .382683432 then + -- between 22.5 and 45 degrees, so truncate to 45-degree tilt + return .707106781 * hypotenuse * bigSign, .707106781 * hypotenuse * littleSign + else + -- between 0 and 22.5 degrees, so truncate to 0-degree tilt + return hypotenuse * bigSign, 0 + end +end + + +local function saveTheWelds(object, manualWeldTable, manualWeldParentTable) + if object:IsA("ManualWeld") or object:IsA("Rotate") then + table.insert(manualWeldTable, object) + table.insert(manualWeldParentTable, object.Parent) + else + local children = object:GetChildren() + for i = 1, #children do + saveTheWelds(children[i], manualWeldTable, manualWeldParentTable) + end + end +end + +local function restoreTheWelds(manualWeldTable, manualWeldParentTable) + for i = 1, #manualWeldTable do + manualWeldTable[i].Parent = manualWeldParentTable[i] + end +end + +t.CanEditRegion = function(partOrModel, EditRegion) -- todo: use model and stamper metadata + if not EditRegion then return true, false end + + local minBB, maxBB = getBoundingBoxInWorldCoordinates(partOrModel) + + if minBB.X < EditRegion.CFrame.p.X - EditRegion.Size.X/2 or + minBB.Y < EditRegion.CFrame.p.Y - EditRegion.Size.Y/2 or + minBB.Z < EditRegion.CFrame.p.Z - EditRegion.Size.Z/2 then + return false, false + end + + if maxBB.X > EditRegion.CFrame.p.X + EditRegion.Size.X/2 or + maxBB.Y > EditRegion.CFrame.p.Y + EditRegion.Size.Y/2 or + maxBB.Z > EditRegion.CFrame.p.Z + EditRegion.Size.Z/2 then + return false, false + end + + return true, false +end + +t.GetStampModel = function(assetId, terrainShape, useAssetVersionId) + if assetId == 0 then + return nil, "No Asset" + end + if assetId < 0 then + return nil, "Negative Asset" + end + + local function UnlockInstances(object) + if object:IsA("BasePart") then + object.Locked = false + end + for index,child in pairs(object:GetChildren()) do + UnlockInstances(child) + end + end + + local function getClosestColorToTerrainMaterial(terrainValue) + if terrainValue == 1 then + return BrickColor.new("Bright green") + elseif terrainValue == 2 then + return BrickColor.new("Bright yellow") + elseif terrainValue == 3 then + return BrickColor.new("Bright red") + elseif terrainValue == 4 then + return BrickColor.new("Sand red") + elseif terrainValue == 5 then + return BrickColor.new("Black") + elseif terrainValue == 6 then + return BrickColor.new("Dark stone grey") + elseif terrainValue == 7 then + return BrickColor.new("Sand blue") + elseif terrainValue == 8 then + return BrickColor.new("Deep orange") + elseif terrainValue == 9 then + return BrickColor.new("Dark orange") + elseif terrainValue == 10 then + return BrickColor.new("Reddish brown") + elseif terrainValue == 11 then + return BrickColor.new("Light orange") + elseif terrainValue == 12 then + return BrickColor.new("Light stone grey") + elseif terrainValue == 13 then + return BrickColor.new("Sand green") + elseif terrainValue == 14 then + return BrickColor.new("Medium stone grey") + elseif terrainValue == 15 then + return BrickColor.new("Really red") + elseif terrainValue == 16 then + return BrickColor.new("Really blue") + elseif terrainValue == 17 then + return BrickColor.new("Bright blue") + else + return BrickColor.new("Bright green") + end + end + + local function setupFakeTerrainPart(cellMat, cellType, cellOrient) + local newTerrainPiece = nil + if (cellType == 1 or cellType == 4) then newTerrainPiece = Instance.new("WedgePart") newTerrainPiece.formFactor = "Custom" + elseif (cellType == 2) then newTerrainPiece = Instance.new("CornerWedgePart") + else newTerrainPiece = Instance.new("Part") newTerrainPiece.formFactor = "Custom" end + newTerrainPiece.Name = "MegaClusterCube" + newTerrainPiece.Size = Vector3.new(4, 4, 4) + newTerrainPiece.BottomSurface = "Smooth" + newTerrainPiece.TopSurface = "Smooth" + + -- can add decals or textures here if feeling particularly adventurous... for now, can make a table of look-up colors + newTerrainPiece.BrickColor = getClosestColorToTerrainMaterial(cellMat) + + local sideways = 0 + local flipped = math.pi + if cellType == 4 then sideways = -math.pi/2 end + if cellType == 2 or cellType == 3 then flipped = 0 end + newTerrainPiece.CFrame = CFrame.Angles(0, math.pi/2*cellOrient + flipped, sideways) + + if cellType == 3 then + local inverseCornerWedgeMesh = Instance.new("SpecialMesh") + inverseCornerWedgeMesh.MeshType = "FileMesh" + inverseCornerWedgeMesh.MeshId = "http://www.mete0r.xyz/asset?id=66832495" + inverseCornerWedgeMesh.Scale = Vector3.new(2, 2, 2) + inverseCornerWedgeMesh.Parent = newTerrainPiece + end + + local materialTag = Instance.new("Vector3Value") + materialTag.Value = Vector3.new(cellMat, cellType, cellOrient) + materialTag.Name = "ClusterMaterial" + materialTag.Parent = newTerrainPiece + + return newTerrainPiece + end + + -- This call will cause a "wait" until the data comes back + -- below we wait a max of 8 seconds before deciding to bail out on loading + local root + local loader + loading = true + if useAssetVersionId then + loader = coroutine.create(function() + root = game:GetService("InsertService"):LoadAssetVersion(assetId) + loading = false + end) + coroutine.resume(loader) + else + loader = coroutine.create(function() + root = game:GetService("InsertService"):LoadAsset(assetId) + loading = false + end) + coroutine.resume(loader) + end + + local lastGameTime = 0 + local totalTime = 0 + local maxWait = 8 + while loading and totalTime < maxWait do + lastGameTime = tick() + wait(1) + totalTime = totalTime + tick() - lastGameTime + end + loading = false + + if totalTime >= maxWait then + return nil, "Load Time Fail" + end + + + if root == nil then + return nil, "Load Asset Fail" + end + + if not root:IsA("Model") then + return nil, "Load Type Fail" + end + + local instances = root:GetChildren() + if #instances == 0 then + return nil, "Empty Model Fail" + end + + --Unlock all parts that are inserted, to make sure they are editable + UnlockInstances(root) + + --Continue the insert process + root = root:GetChildren()[1] + + --Examine the contents and decide what it looks like + for pos, instance in pairs(instances) do + if instance:IsA("Team") then + instance.Parent = game:GetService("Teams") + elseif instance:IsA("Sky") then + local lightingService = game:GetService("Lighting") + for index,child in pairs(lightingService:GetChildren()) do + if child:IsA("Sky") then + child:Remove(); + end + end + instance.Parent = lightingService + return + end + end + + -- ...and tag all inserted models for subsequent origin identification + -- if no RobloxModel tag already exists, then add it. + if root:FindFirstChild("RobloxModel") == nil then + local stringTag = Instance.new("BoolValue", root) + stringTag.Name = "RobloxModel" + + if root:FindFirstChild("RobloxStamper") == nil then + local stringTag2 = Instance.new("BoolValue", root) + stringTag2.Name = "RobloxStamper" + end + end + + if terrainShape then + if root.Name == "MegaClusterCube" then + if (terrainShape == 6) then -- insert an autowedging tag + local autowedgeTag = Instance.new("BoolValue") + autowedgeTag.Name = "AutoWedge" + autowedgeTag.Parent = root + else + local clusterTag = root:FindFirstChild("ClusterMaterial") + if clusterTag then + if clusterTag:IsA("Vector3Value") then + root = setupFakeTerrainPart(clusterTag.Value.X, terrainShape, clusterTag.Value.Z) + else + root = setupFakeTerrainPart(clusterTag.Value, terrainShape, 0) + end + else + root = setupFakeTerrainPart(1, terrainShape, 0) + end + end + end + end + + return root +end + + + +t.SetupStamperDragger = function(modelToStamp, Mouse, StampInModel, AllowedStampRegion, StampFailedFunc) + if not modelToStamp then + error("SetupStamperDragger: modelToStamp (first arg) is nil! Should be a stamper model") + return nil + end + if not modelToStamp:IsA("Model") and not modelToStamp:IsA("BasePart") then + error("SetupStamperDragger: modelToStamp (first arg) is neither a Model or Part!") + return nil + end + if not Mouse then + error("SetupStamperDragger: Mouse (second arg) is nil! Should be a mouse object") + return nil + end + if not Mouse:IsA("Mouse") then + error("SetupStamperDragger: Mouse (second arg) is not of type Mouse!") + return nil + end + + local stampInModel = nil + local allowedStampRegion = nil + local stampFailedFunc = nil + if StampInModel then + if not StampInModel:IsA("Model") then + error("SetupStamperDragger: StampInModel (optional third arg) is not of type 'Model'") + return nil + end + if not AllowedStampRegion then + error("SetupStamperDragger: AllowedStampRegion (optional fourth arg) is nil when StampInModel (optional third arg) is defined") + return nil + end + stampFailedFunc = StampFailedFunc + stampInModel = StampInModel + allowedStampRegion = AllowedStampRegion + end + + -- Init all state variables + local gInitial90DegreeRotations = 0 + local stampData = nil + local mouseTarget = nil + + local errorBox = Instance.new("SelectionBox") + errorBox.Color = BrickColor.new("Bright red") + errorBox.Transparency = 0 + errorBox.Archivable = false + + -- for megacluster MEGA STAMPING + local adornPart = Instance.new("Part") + adornPart.Parent = nil + adornPart.formFactor = "Custom" + adornPart.Size = Vector3.new(4, 4, 4) + adornPart.CFrame = CFrame.new() + adornPart.Archivable = false + + local adorn = Instance.new("SelectionBox") + adorn.Color = BrickColor.new("Toothpaste") + adorn.Adornee = adornPart + adorn.Visible = true + adorn.Transparency = 0 + adorn.Name = "HighScalabilityStamperLine" + adorn.Archivable = false + + local HighScalabilityLine = {} + HighScalabilityLine.Start = nil + HighScalabilityLine.End = nil + HighScalabilityLine.Adorn = adorn + HighScalabilityLine.AdornPart = adornPart + HighScalabilityLine.InternalLine = nil + HighScalabilityLine.NewHint = true + + HighScalabilityLine.MorePoints = {nil, nil} + HighScalabilityLine.MoreLines = {nil, nil} + HighScalabilityLine.Dimensions = 1 + + local control = {} + local movingLock = false + local stampUpLock = false + local unstampableSurface = false + local mouseCons = {} + local keyCon = nil + + local stamped = Instance.new("BoolValue") + stamped.Archivable = false + stamped.Value = false + + local lastTarget = {} + lastTarget.TerrainOrientation = 0 + lastTarget.CFrame = 0 + + local cellInfo = {} + cellInfo.Material = 1 + cellInfo.clusterType = 0 + cellInfo.clusterOrientation = 0 + + local function isMegaClusterPart() + if not stampData then return false end + if not stampData.CurrentParts then return false end + + return ( stampData.CurrentParts:FindFirstChild("ClusterMaterial",true) or (stampData.CurrentParts.Name == "MegaClusterCube") ) + end + + local function DoHighScalabilityRegionSelect() + local megaCube = stampData.CurrentParts:FindFirstChild("MegaClusterCube") + if not megaCube then + if not stampData.CurrentParts.Name == "MegaClusterCube" then + return + else + megaCube = stampData.CurrentParts + end + end + + HighScalabilityLine.End = megaCube.CFrame.p + local line = nil + local line2 = Vector3.new(0, 0, 0) + local line3 = Vector3.new(0, 0, 0) + + if HighScalabilityLine.Dimensions == 1 then + -- extract the line from these positions and limit to a 2D plane made from 2 of the world axes + -- then use dominating axis to limit line to be at 45-degree intervals + -- will use this internal representation of the line for the actual stamping + line = (HighScalabilityLine.End - HighScalabilityLine.Start) + + if math.abs(line.X) < math.abs(line.Y) then + if math.abs(line.X) < math.abs(line.Z) then + -- limit to Y/Z plane, domination unknown + local newY, newZ + if (math.abs(line.Y) > math.abs(line.Z)) then + newY, newZ = truncateToCircleEighth(line.Y, line.Z) + else + newZ, newY = truncateToCircleEighth(line.Z, line.Y) + end + line = Vector3.new(0, newY, newZ) + else + -- limit to X/Y plane, with Y dominating + local newY, newX = truncateToCircleEighth(line.Y, line.X) + line = Vector3.new(newX, newY, 0) + end + else + if math.abs(line.Y) < math.abs(line.Z) then + -- limit to X/Z plane, domination unknown + local newX, newZ + if math.abs(line.X) > math.abs(line.Z) then + newX, newZ = truncateToCircleEighth(line.X, line.Z) + else + newZ, newX = truncateToCircleEighth(line.Z, line.X) + end + line = Vector3.new(newX, 0, newZ) + else + -- limit to X/Y plane, with X dominating + local newX, newY = truncateToCircleEighth(line.X, line.Y) + line = Vector3.new(newX, newY, 0) + end + end + HighScalabilityLine.InternalLine = line + + elseif HighScalabilityLine.Dimensions == 2 then + line = HighScalabilityLine.MoreLines[1] + line2 = HighScalabilityLine.End - HighScalabilityLine.MorePoints[1] + + -- take out any component of line2 along line1, so you get perpendicular to line1 component + line2 = line2 - line.unit*line.unit:Dot(line2) + + tempCFrame = CFrame.new(HighScalabilityLine.Start, HighScalabilityLine.Start + line) + + -- then zero out whichever is the smaller component + local yAxis = tempCFrame:vectorToWorldSpace(Vector3.new(0, 1, 0)) + local xAxis = tempCFrame:vectorToWorldSpace(Vector3.new(1, 0, 0)) + + local xComp = xAxis:Dot(line2) + local yComp = yAxis:Dot(line2) + + if math.abs(yComp) > math.abs(xComp) then + line2 = line2 - xAxis * xComp + else + line2 = line2 - yAxis * yComp + end + + HighScalabilityLine.InternalLine = line2 + + elseif HighScalabilityLine.Dimensions == 3 then + line = HighScalabilityLine.MoreLines[1] + line2 = HighScalabilityLine.MoreLines[2] + line3 = HighScalabilityLine.End - HighScalabilityLine.MorePoints[2] + + -- zero out all components of previous lines + line3 = line3 - line.unit * line.unit:Dot(line3) + line3 = line3 - line2.unit * line2.unit:Dot(line3) + + HighScalabilityLine.InternalLine = line3 + end + + -- resize the "line" graphic to be the correct size and orientation + tempCFrame = CFrame.new(HighScalabilityLine.Start, HighScalabilityLine.Start + line) + + if HighScalabilityLine.Dimensions == 1 then -- faster calculation for line + HighScalabilityLine.AdornPart.Size = Vector3.new(4, 4, line.magnitude + 4) + HighScalabilityLine.AdornPart.CFrame = tempCFrame + tempCFrame:vectorToWorldSpace(Vector3.new(2, 2, 2) - HighScalabilityLine.AdornPart.Size/2) + else + local boxSize = tempCFrame:vectorToObjectSpace(line + line2 + line3) + HighScalabilityLine.AdornPart.Size = Vector3.new(4, 4, 4) + Vector3.new(math.abs(boxSize.X), math.abs(boxSize.Y), math.abs(boxSize.Z)) + HighScalabilityLine.AdornPart.CFrame = tempCFrame + tempCFrame:vectorToWorldSpace(boxSize/2) + end + + -- make player able to see this ish + + local gui = nil + if game.Players["LocalPlayer"] then + gui = game.Players.LocalPlayer:FindFirstChild("PlayerGui") + if gui and gui:IsA("PlayerGui") then + if HighScalabilityLine.Dimensions == 1 and line.magnitude > 3 then -- don't show if mouse hasn't moved enough + HighScalabilityLine.Adorn.Parent = gui + elseif HighScalabilityLine.Dimensions > 1 then + HighScalabilityLine.Adorn.Parent = gui + end + end + end + + if gui == nil then -- we are in studio + gui = game:GetService("CoreGui") + if HighScalabilityLine.Dimensions == 1 and line.magnitude > 3 then -- don't show if mouse hasn't moved enough + HighScalabilityLine.Adorn.Parent = gui + elseif HighScalabilityLine.Dimensions > 1 then + HighScalabilityLine.Adorn.Parent = gui + end + end + end + + + local function DoStamperMouseMove(Mouse) + if not Mouse then + error("Error: RbxStamper.DoStamperMouseMove: Mouse is nil") + return + end + if not Mouse:IsA("Mouse") then + error("Error: RbxStamper.DoStamperMouseMove: Mouse is of type", Mouse.className,"should be of type Mouse") + return + end + + -- There wasn't a target (no part or terrain), so check for plane intersection. + if not Mouse.Target then + local cellPos = GetTerrainForMouse(Mouse) + if nil == cellPos then + return + end + end + + if not stampData then + return + end + + -- don't move with dragger - will move in one step on mouse down + -- draw ghost at acceptable positions + configFound, targetCFrame, targetSurface = findConfigAtMouseTarget(Mouse, stampData) + if not configFound then + error("RbxStamper.DoStamperMouseMove No configFound, returning") + return + end + + local numRotations = 0 -- update this according to how many rotations you need to get it to target surface + if autoAlignToFace(stampData.CurrentParts) and targetSurface ~= 1 and targetSurface ~= 4 then -- pre-rotate the flag or portrait so it's aligned correctly + if targetSurface == 3 then numRotations = 0 - gInitial90DegreeRotations + autoAlignToFace(stampData.CurrentParts) + elseif targetSurface == 0 then numRotations = 2 - gInitial90DegreeRotations + autoAlignToFace(stampData.CurrentParts) + elseif targetSurface == 5 then numRotations = 3 - gInitial90DegreeRotations + autoAlignToFace(stampData.CurrentParts) + elseif targetSurface == 2 then numRotations = 1 - gInitial90DegreeRotations + autoAlignToFace(stampData.CurrentParts) + end + end + + local ry = math.pi/2 + gInitial90DegreeRotations = gInitial90DegreeRotations + numRotations + if stampData.CurrentParts:IsA("Model") or stampData.CurrentParts:IsA("Tool") then + --stampData.CurrentParts:Rotate(0, ry*numRotations, 0) + modelRotate(stampData.CurrentParts, ry*numRotations) + else + stampData.CurrentParts.CFrame = CFrame.fromEulerAnglesXYZ(0, ry*numRotations, 0) * stampData.CurrentParts.CFrame + end + + -- CODE TO CHECK FOR DRAGGING GHOST PART INTO A COLLIDING STATE + local minBB, maxBB = getBoundingBoxInWorldCoordinates(stampData.CurrentParts) + + -- need to offset by distance to be dragged + local currModelCFrame = nil + if stampData.CurrentParts:IsA("Model") then + currModelCFrame = stampData.CurrentParts:GetModelCFrame() + else + currModelCFrame = stampData.CurrentParts.CFrame + end + + minBB = minBB + targetCFrame.p - currModelCFrame.p + maxBB = maxBB + targetCFrame.p - currModelCFrame.p + + -- don't drag into terrain + if clusterPartsInRegion(minBB + insertBoundingBoxOverlapVector, maxBB - insertBoundingBoxOverlapVector) then + if lastTarget.CFrame then + if (stampData.CurrentParts:FindFirstChild("ClusterMaterial", true)) then + local theClusterMaterial = stampData.CurrentParts:FindFirstChild("ClusterMaterial", true) + if theClusterMaterial:IsA("Vector3Value") then + local stampClusterMaterial = stampData.CurrentParts:FindFirstChild("ClusterMaterial", true) + if stampClusterMaterial then + stampClusterMaterial = clusterMat + end + end + end + end + return + end + + -- if we are stamping a terrain part, make sure it goes on the grid! Otherwise preview block could be placed off grid, but stamped on grid + if isMegaClusterPart() then + local cellToStamp = game.Workspace.Terrain:WorldToCell(targetCFrame.p) + local newCFramePosition = game.Workspace.Terrain:CellCenterToWorld(cellToStamp.X, cellToStamp.Y, cellToStamp.Z) + local x, y, z, R00, R01, R02, R10, R11, R12, R20, R21, R22 = targetCFrame:components() + targetCFrame = CFrame.new(newCFramePosition.X,newCFramePosition.Y,newCFramePosition.Z,R00, R01, R02, R10, R11, R12, R20, R21, R22) + end + + positionPartsAtCFrame3(targetCFrame, stampData.CurrentParts) + lastTarget.CFrame = targetCFrame -- successful positioning, so update 'dat cframe + if stampData.CurrentParts:FindFirstChild("ClusterMaterial", true) then + local clusterMat = stampData.CurrentParts:FindFirstChild("ClusterMaterial", true) + if clusterMat:IsA("Vector3Value") then + lastTarget.TerrainOrientation = clusterMat.Value.Z + end + end + + + -- auto break joints code + if Mouse and Mouse.Target and Mouse.Target.Parent then + local modelInfo = Mouse.Target:FindFirstChild("RobloxModel") + if not modelInfo then modelInfo = Mouse.Target.Parent:FindFirstChild("RobloxModel") end + + local myModelInfo = stampData.CurrentParts:FindFirstChild("UnstampableFaces") + + --if (modelInfo and modelInfo.Parent:FindFirstChild("UnstampableFaces")) or (modelInfo and myModelInfo) then -- need better targetSurface calcs + if (true) then + local breakingFaces = "" + local myBreakingFaces = "" + if modelInfo and modelInfo.Parent:FindFirstChild("UnstampableFaces") then breakingFaces = modelInfo.Parent.UnstampableFaces.Value end + if myModelInfo then myBreakingFaces = myModelInfo.Value end + local hitFace = 0 + + if modelInfo then hitFace = modelTargetSurface(modelInfo.Parent, game.Workspace.CurrentCamera.CoordinateFrame.p, Mouse.Hit.p) end + + -- are we stamping TO an unstampable surface? + for bf in string.gmatch(breakingFaces, "[^,]+") do + if hitFace == tonumber(bf) then + -- return before we hit the JointsService code below! + unstampableSurface = true + game.JointsService:ClearJoinAfterMoveJoints() -- clear the JointsService cache + return + end + end + + -- now we have to cast the ray back in the other direction to find the surface we're stamping FROM + hitFace = modelTargetSurface(stampData.CurrentParts, Mouse.Hit.p, game.Workspace.CurrentCamera.CoordinateFrame.p) + + -- are we stamping WITH an unstampable surface? + for bf in string.gmatch(myBreakingFaces, "[^,]+") do + if hitFace == tonumber(bf) then + unstampableSurface = true + game.JointsService:ClearJoinAfterMoveJoints() -- clear the JointsService cache + return + end + end + + -- just need to match breakingFace against targetSurface using rotation supplied by modelCFrame + -- targetSurface: 1 is top, 4 is bottom, + end + end + + -- to show joints during the mouse move + unstampableSurface = false + game.JointsService:SetJoinAfterMoveInstance(stampData.CurrentParts) + + -- most common mouse inactive error occurs here, so check mouse active one more time in a pcall + if not pcall(function() + if Mouse and Mouse.Target and Mouse.Target.Parent:FindFirstChild("RobloxModel") == nil then + return + else + return + end + end) + then + error("Error: RbxStamper.DoStamperMouseMove Mouse is nil on second check") + game.JointsService:ClearJoinAfterMoveJoints() + Mouse = nil + return + end + + if Mouse and Mouse.Target and Mouse.Target.Parent:FindFirstChild("RobloxModel") == nil then + game.JointsService:SetJoinAfterMoveTarget(Mouse.Target) + else + game.JointsService:SetJoinAfterMoveTarget(nil) + end + game.JointsService:ShowPermissibleJoints() + + -- here we allow for a line of high-scalability parts + if isMegaClusterPart() and HighScalabilityLine and HighScalabilityLine.Start then + DoHighScalabilityRegionSelect() + end + end + + local function setupKeyListener(key, Mouse) + if control and control["Paused"] then return end -- don't do this if we have no stamp + + key = string.lower(key) + if key == 'r' and not autoAlignToFace(stampData.CurrentParts) then -- rotate the model + gInitial90DegreeRotations = gInitial90DegreeRotations + 1 + + -- Update orientation value if this is a fake terrain part + local clusterValues = stampData.CurrentParts:FindFirstChild("ClusterMaterial", true) + if clusterValues and clusterValues:IsA("Vector3Value") then + clusterValues.Value = Vector3.new(clusterValues.Value.X, clusterValues.Value.Y, (clusterValues.Value.Z + 1) % 4) + end + + -- Rotate the parts or all the parts in the model + local ry = math.pi/2 + if stampData.CurrentParts:IsA("Model") or stampData.CurrentParts:IsA("Tool") then + --stampData.CurrentParts:Rotate(0, ry, 0) + modelRotate(stampData.CurrentParts, ry) + else + stampData.CurrentParts.CFrame = CFrame.fromEulerAnglesXYZ(0, ry, 0) * stampData.CurrentParts.CFrame + end + + -- After rotating, update the position + configFound, targetCFrame = findConfigAtMouseTarget(Mouse, stampData) + if configFound then + positionPartsAtCFrame3(targetCFrame, stampData.CurrentParts) + + -- update everything else in MouseMove + DoStamperMouseMove(Mouse) + end + elseif key == 'c' then -- try to expand our high scalability dragger dimension + if HighScalabilityLine.InternalLine and HighScalabilityLine.InternalLine.magnitude > 0 and HighScalabilityLine.Dimensions < 3 then + HighScalabilityLine.MorePoints[HighScalabilityLine.Dimensions] = HighScalabilityLine.End + HighScalabilityLine.MoreLines[HighScalabilityLine.Dimensions] = HighScalabilityLine.InternalLine + HighScalabilityLine.Dimensions = HighScalabilityLine.Dimensions + 1 + HighScalabilityLine.NewHint = true + end + end + end + + keyCon = Mouse.KeyDown:connect(function(key) -- init key connection (keeping code close to func) + setupKeyListener(key, Mouse) + end) + + local function resetHighScalabilityLine() + if HighScalabilityLine then + HighScalabilityLine.Start = nil + HighScalabilityLine.End = nil + HighScalabilityLine.InternalLine = nil + HighScalabilityLine.NewHint = true + end + end + + local function flashRedBox() + local gui = game.CoreGui + if game:FindFirstChild("Players") then + if game.Players["LocalPlayer"] then + if game.Players.LocalPlayer:FindFirstChild("PlayerGui") then + gui = game.Players.LocalPlayer.PlayerGui + end + end + end + if not stampData["ErrorBox"] then return end + + stampData.ErrorBox.Parent = gui + if stampData.CurrentParts:IsA("Tool") then + stampData.ErrorBox.Adornee = stampData.CurrentParts.Handle + else + stampData.ErrorBox.Adornee = stampData.CurrentParts + end + + delay(0,function() + for i = 1, 3 do + if stampData["ErrorBox"] then stampData.ErrorBox.Visible = true end + wait(0.13) + if stampData["ErrorBox"] then stampData.ErrorBox.Visible = false end + wait(0.13) + end + if stampData["ErrorBox"] then + stampData.ErrorBox.Adornee = nil + stampData.ErrorBox.Parent = Tool + end + end) + end + + local function DoStamperMouseDown(Mouse) + if not Mouse then + error("Error: RbxStamper.DoStamperMouseDown: Mouse is nil") + return + end + if not Mouse:IsA("Mouse") then + error("Error: RbxStamper.DoStamperMouseDown: Mouse is of type", Mouse.className,"should be of type Mouse") + return + end + if not stampData then + return + end + + if isMegaClusterPart() then + if Mouse and HighScalabilityLine then + local megaCube = stampData.CurrentParts:FindFirstChild("MegaClusterCube", true) + local terrain = game.Workspace.Terrain + if megaCube then + HighScalabilityLine.Dimensions = 1 + local tempCell = terrain:WorldToCell(megaCube.CFrame.p) + HighScalabilityLine.Start = terrain:CellCenterToWorld(tempCell.X, tempCell.Y, tempCell.Z) + return + else + HighScalabilityLine.Dimensions = 1 + local tempCell = terrain:WorldToCell(stampData.CurrentParts.CFrame.p) + HighScalabilityLine.Start = terrain:CellCenterToWorld(tempCell.X, tempCell.Y, tempCell.Z) + return + end + end + end + end + + local function loadSurfaceTypes(part, surfaces) + part.TopSurface = surfaces[1] + part.BottomSurface = surfaces[2] + part.LeftSurface = surfaces[3] + part.RightSurface = surfaces[4] + part.FrontSurface = surfaces[5] + part.BackSurface = surfaces[6] + end + + local function saveSurfaceTypes(part, myTable) + local tempTable = {} + tempTable[1] = part.TopSurface + tempTable[2] = part.BottomSurface + tempTable[3] = part.LeftSurface + tempTable[4] = part.RightSurface + tempTable[5] = part.FrontSurface + tempTable[6] = part.BackSurface + + myTable[part] = tempTable + end + + local function makeSurfaceUnjoinable(part, surface) + -- TODO: FILL OUT! + end + + local function prepareModel(model) + if not model then return nil end + + local gDesiredTrans = 0.7 + local gStaticTrans = 1 + + local clone = model:Clone() + local scripts = {} + local parts = {} + local decals = {} + + stampData = {} + stampData.DisabledScripts = {} + stampData.TransparencyTable = {} + stampData.MaterialTable = {} + stampData.CanCollideTable = {} + stampData.AnchoredTable = {} + stampData.ArchivableTable = {} + stampData.DecalTransparencyTable = {} + stampData.SurfaceTypeTable = {} + + collectParts(clone, parts, scripts, decals) + + if #parts <= 0 then return nil, "no parts found in modelToStamp" end + + for index,script in pairs(scripts) do + if not(script.Disabled) then + script.Disabled = true + stampData.DisabledScripts[#stampData.DisabledScripts + 1] = script + end + end + for index, part in pairs(parts) do + stampData.TransparencyTable[part] = part.Transparency + part.Transparency = gStaticTrans + (1 - gStaticTrans) * part.Transparency + stampData.MaterialTable[part] = part.Material + part.Material = Enum.Material.Plastic + stampData.CanCollideTable[part] = part.CanCollide + part.CanCollide = false + stampData.AnchoredTable[part] = part.Anchored + part.Anchored = true + stampData.ArchivableTable[part] = part.Archivable + part.Archivable = false + + saveSurfaceTypes(part, stampData.SurfaceTypeTable) + + local fadeInDelayTime = 0.5 + local transFadeInTime = 0.5 + delay(0,function() + wait(fadeInDelayTime) -- give it some time to be completely transparent + + local begTime = tick() + local currTime = begTime + while (currTime - begTime) < transFadeInTime and part and part:IsA("BasePart") and part.Transparency > gDesiredTrans do + local newTrans = 1 - (((currTime - begTime)/transFadeInTime) * (gStaticTrans - gDesiredTrans)) + if stampData["TransparencyTable"] and stampData.TransparencyTable[part] then + part.Transparency = newTrans + (1 - newTrans) * stampData.TransparencyTable[part] + end + wait(0.03) + currTime = tick() + end + if part and part:IsA("BasePart") then + if stampData["TransparencyTable"] and stampData.TransparencyTable[part] then + part.Transparency = gDesiredTrans + (1 - gDesiredTrans) * stampData.TransparencyTable[part] + end + end + end) + end + + for index, decal in pairs(decals) do + stampData.DecalTransparencyTable[decal] = decal.Transparency + decal.Transparency = gDesiredTrans + (1 - gDesiredTrans) * decal.Transparency + end + + -- disable all seats + setSeatEnabledStatus(clone, true) + setSeatEnabledStatus(clone, false) + + stampData.CurrentParts = clone + + -- if auto-alignable, we enforce a pre-rotation to the canonical "0-frame" + if autoAlignToFace(clone) then + stampData.CurrentParts:ResetOrientationToIdentity() + gInitial90DegreeRotations = 0 + else -- pre-rotate if necessary + local ry = gInitial90DegreeRotations * math.pi/2 + if stampData.CurrentParts:IsA("Model") or stampData.CurrentParts:IsA("Tool") then + --stampData.CurrentParts:Rotate(0, ry, 0) + modelRotate(stampData.CurrentParts, ry) + else + stampData.CurrentParts.CFrame = CFrame.fromEulerAnglesXYZ(0, ry, 0) * stampData.CurrentParts.CFrame + end + end + + -- since we're cloning the old model instead of the new one, we will need to update the orientation based on the original value AND how many more + -- rotations we expect since then [either that or we need to store the just-stamped clusterMaterial.Value.Z somewhere]. This should fix the terrain rotation + -- issue (fingers crossed) [HotThoth] + + local clusterMaterial = stampData.CurrentParts:FindFirstChild("ClusterMaterial", true) + if clusterMaterial and clusterMaterial:IsA("Vector3Value") then + clusterMaterial.Value = Vector3.new(clusterMaterial.Value.X, clusterMaterial.Value.Y, (clusterMaterial.Value.Z + gInitial90DegreeRotations) % 4) + end + + -- After rotating, update the position + local configFound, targetCFrame = findConfigAtMouseTarget(Mouse, stampData) + if configFound then + stampData.CurrentParts = positionPartsAtCFrame3(targetCFrame, stampData.CurrentParts) + end + + -- to show joints during the mouse move + game.JointsService:SetJoinAfterMoveInstance(stampData.CurrentParts) + + return clone, parts + end + + local function checkTerrainBlockCollisions(cellPos, checkHighScalabilityStamp) + local cellCenterToWorld = game.Workspace.Terrain.CellCenterToWorld + local cellCenter = cellCenterToWorld(game.Workspace.Terrain, cellPos.X, cellPos.Y, cellPos.Z) + local cellBlockingParts = game.Workspace:FindPartsInRegion3(Region3.new(cellCenter - Vector3.new(2, 2, 2) + insertBoundingBoxOverlapVector, cellCenter + Vector3.new(2, 2, 2) - insertBoundingBoxOverlapVector), stampData.CurrentParts, 100) + + local skipThisCell = false + + for b = 1, #cellBlockingParts do + if isBlocker(cellBlockingParts[b]) then skipThisCell = true break end + end + + if not skipThisCell then + -- pop players up above any set cells + local alreadyPushedUp = {} + -- if no blocking model below, then see if stamping on top of a character + for b = 1, #cellBlockingParts do + if cellBlockingParts[b].Parent and + not alreadyPushedUp[cellBlockingParts[b].Parent] and + cellBlockingParts[b].Parent:FindFirstChild("Humanoid") and + cellBlockingParts[b].Parent:FindFirstChild("Humanoid"):IsA("Humanoid") then + ----------------------------------------------------------------------------------- + local blockingPersonTorso = cellBlockingParts[b].Parent:FindFirstChild("Torso") + alreadyPushedUp[cellBlockingParts[b].Parent] = true + + if blockingPersonTorso then + -- if so, let's push the person upwards so they pop on top of the stamped model/part (but only if there's space above them) + local newY = cellCenter.Y + 5 + if spaceAboveCharacter(blockingPersonTorso, newY, stampData) then + blockingPersonTorso.CFrame = blockingPersonTorso.CFrame + Vector3.new(0, newY - blockingPersonTorso.CFrame.p.Y, 0) + else + -- if no space, we just skip this one + skipThisCell = true + break + end + end + ----------------------------------------------------------------------------------- + end + end + end + + if not skipThisCell then -- if we STILL aren't skipping... then we're good to go! + local canSetCell = true + + if checkHighScalabilityStamp then -- check to see if cell is in region, if not we'll skip set + if allowedStampRegion then + local cellPos = cellCenterToWorld(game.Workspace.Terrain, cellPos.X, cellPos.Y, cellPos.Z) + if cellPos.X + 2 > allowedStampRegion.CFrame.p.X + allowedStampRegion.Size.X/2 then + canSetCell = false + elseif cellPos.X - 2 < allowedStampRegion.CFrame.p.X - allowedStampRegion.Size.X/2 then + canSetCell = false + elseif cellPos.Y + 2 > allowedStampRegion.CFrame.p.Y + allowedStampRegion.Size.Y/2 then + canSetCell = false + elseif cellPos.Y - 2 < allowedStampRegion.CFrame.p.Y - allowedStampRegion.Size.Y/2 then + canSetCell = false + elseif cellPos.Z + 2 > allowedStampRegion.CFrame.p.Z + allowedStampRegion.Size.Z/2 then + canSetCell = false + elseif cellPos.Z - 2 < allowedStampRegion.CFrame.p.Z - allowedStampRegion.Size.Z/2 then + canSetCell = false + end + end + end + + return canSetCell + end + return false + end + + + local function ResolveMegaClusterStamp(checkHighScalabilityStamp) + local cellSet = false + + local cluser = game.Workspace.Terrain + + local line = HighScalabilityLine.InternalLine + local cMax = game.Workspace.Terrain.MaxExtents.Max + local cMin = game.Workspace.Terrain.MaxExtents.Min + + local clusterMaterial = 1 -- default is grass + local clusterType = 0 -- default is brick + local clusterOrientation = 0 -- default is 0 rotation + + local autoWedgeClusterParts = false + if stampData.CurrentParts:FindFirstChild("AutoWedge") then autoWedgeClusterParts = true end + + if stampData.CurrentParts:FindFirstChild("ClusterMaterial", true) then + clusterMaterial = stampData.CurrentParts:FindFirstChild("ClusterMaterial", true) + if clusterMaterial:IsA("Vector3Value") then + clusterType = clusterMaterial.Value.Y + clusterOrientation = clusterMaterial.Value.Z + clusterMaterial = clusterMaterial.Value.X + elseif clusterMaterial:IsA("IntValue") then + clusterMaterial = clusterMaterial.Value + end + end + + if HighScalabilityLine.Adorn.Parent and HighScalabilityLine.Start and ((HighScalabilityLine.Dimensions > 1) or (line and line.magnitude > 0)) then + local startCell = game.Workspace.Terrain:WorldToCell(HighScalabilityLine.Start) + local xInc = {0,0,0} + local yInc = {0,0,0} + local zInc = {0,0,0} + + local cluster = game.Workspace.Terrain + + local incrementVect = {nil, nil, nil} + local stepVect = {Vector3.new(0, 0, 0), Vector3.new(0, 0, 0), Vector3.new(0, 0, 0)} + + local worldAxes = {Vector3.new(1, 0, 0), Vector3.new(0, 1, 0), Vector3.new(0, 0, 1)} + + local lines = {} + if HighScalabilityLine.Dimensions > 1 then table.insert(lines, HighScalabilityLine.MoreLines[1]) end + if line and line.magnitude > 0 then table.insert(lines, line) end + if HighScalabilityLine.Dimensions > 2 then table.insert(lines, HighScalabilityLine.MoreLines[2]) end + + for i = 1, #lines do + lines[i] = Vector3.new(math.floor(lines[i].X+.5), math.floor(lines[i].Y+.5), math.floor(lines[i].Z+.5)) -- round to integers + + if lines[i].X > 0 then xInc[i] = 1 elseif lines[i].X < 0 then xInc[i] = -1 end + if lines[i].Y > 0 then yInc[i] = 1 elseif lines[i].Y < 0 then yInc[i] = -1 end + if lines[i].Z > 0 then zInc[i] = 1 elseif lines[i].Z < 0 then zInc[i] = -1 end + + incrementVect[i] = Vector3.new(xInc[i], yInc[i], zInc[i]) + if incrementVect[i].magnitude < .9 then incrementVect[i] = nil end + end + + + if not lines[2] then lines[2] = Vector3.new(0, 0, 0) end + if not lines[3] then lines[3] = Vector3.new(0, 0, 0) end + + local waterForceTag = stampData.CurrentParts:FindFirstChild("WaterForceTag", true) + local waterForceDirectionTag = stampData.CurrentParts:FindFirstChild("WaterForceDirectionTag", true) + + while (stepVect[3].magnitude*4 <= lines[3].magnitude) do + local outerStepVectIndex = 1 + while outerStepVectIndex < 4 do + stepVect[2] = Vector3.new(0, 0, 0) + while (stepVect[2].magnitude*4 <= lines[2].magnitude) do + local innerStepVectIndex = 1 + while innerStepVectIndex < 4 do + stepVect[1] = Vector3.new(0, 0, 0) + while (stepVect[1].magnitude*4 <= lines[1].magnitude) do + local stepVectSum = stepVect[1] + stepVect[2] + stepVect[3] + local cellPos = Vector3int16.new(startCell.X + stepVectSum.X, startCell.Y + stepVectSum.Y, startCell.Z + stepVectSum.Z) + if cellPos.X >= cMin.X and cellPos.Y >= cMin.Y and cellPos.Z >= cMin.Z and cellPos.X < cMax.X and cellPos.Y < cMax.Y and cellPos.Z < cMax.Z then + -- check if overlaps player or part + local okToStampTerrainBlock = checkTerrainBlockCollisions(cellPos, checkHighScalabilityStamp) + + if okToStampTerrainBlock then + if waterForceTag then + cluster:SetWaterCell(cellPos.X, cellPos.Y, cellPos.Z, Enum.WaterForce[waterForceTag.Value], Enum.WaterDirection[waterForceDirectionTag.Value]) + else + cluster:SetCell(cellPos.X, cellPos.Y, cellPos.Z, clusterMaterial, clusterType, clusterOrientation) + end + cellSet = true + + -- auto-wedge it? + if (autoWedgeClusterParts) then + game.Workspace.Terrain:AutowedgeCells(Region3int16.new(Vector3int16.new(cellPos.x - 1, cellPos.y - 1, cellPos.z - 1), + Vector3int16.new(cellPos.x + 1, cellPos.y + 1, cellPos.z + 1))) + end + end + end + stepVect[1] = stepVect[1] + incrementVect[1] + end + if incrementVect[2] then + while innerStepVectIndex < 4 and worldAxes[innerStepVectIndex]:Dot(incrementVect[2]) == 0 do + innerStepVectIndex = innerStepVectIndex + 1 + end + if innerStepVectIndex < 4 then + stepVect[2] = stepVect[2] + worldAxes[innerStepVectIndex] * worldAxes[innerStepVectIndex]:Dot(incrementVect[2]) + end + innerStepVectIndex = innerStepVectIndex + 1 + else + stepVect[2] = Vector3.new(1, 0, 0) + innerStepVectIndex = 4 -- skip all remaining loops + end + if (stepVect[2].magnitude*4 > lines[2].magnitude) then innerStepVectIndex = 4 end + end + end + if incrementVect[3] then + while outerStepVectIndex < 4 and worldAxes[outerStepVectIndex]:Dot(incrementVect[3]) == 0 do + outerStepVectIndex = outerStepVectIndex + 1 + end + if outerStepVectIndex < 4 then + stepVect[3] = stepVect[3] + worldAxes[outerStepVectIndex] * worldAxes[outerStepVectIndex]:Dot(incrementVect[3]) + end + outerStepVectIndex = outerStepVectIndex + 1 + else -- skip all remaining loops + stepVect[3] = Vector3.new(1, 0, 0) outerStepVectIndex = 4 + end + if (stepVect[3].magnitude*4 > lines[3].magnitude) then outerStepVectIndex = 4 end + end + end + end + + -- and also get rid of any HighScalabilityLine stuff if it's there + HighScalabilityLine.Start = nil + HighScalabilityLine.Adorn.Parent = nil + + -- Mark for undo. + if cellSet then + stampData.CurrentParts.Parent = nil + pcall(function() game:GetService("ChangeHistoryService"): SetWaypoint("StamperMulti") end) + end + + return cellSet + end + + local function DoStamperMouseUp(Mouse) + if not Mouse then + error("Error: RbxStamper.DoStamperMouseUp: Mouse is nil") + return false + end + if not Mouse:IsA("Mouse") then + error("Error: RbxStamper.DoStamperMouseUp: Mouse is of type", Mouse.className,"should be of type Mouse") + return false + end + + if not stampData.Dragger then + error("Error: RbxStamper.DoStamperMouseUp: stampData.Dragger is nil") + return false + end + + if not HighScalabilityLine then + return false + end + + local checkHighScalabilityStamp = nil + if stampInModel then + local canStamp = nil + local isHSLPart = isMegaClusterPart() + + if isHSLPart and + HighScalabilityLine and + HighScalabilityLine.Start and + HighScalabilityLine.InternalLine and + HighScalabilityLine.InternalLine.magnitude > 0 then -- we have an HSL line, test later + canStamp = true + checkHighScalabilityStamp = true + else + canStamp, checkHighScalabilityStamp = t.CanEditRegion(stampData.CurrentParts, allowedStampRegion) + end + + if not canStamp then + if stampFailedFunc then + stampFailedFunc() + end + return false + end + end + + -- if unstampable face, then don't let us stamp there! + if unstampableSurface then + flashRedBox() + return false + end + + -- recheck if we can stamp, as we just moved part + canStamp, checkHighScalabilityStamp = t.CanEditRegion(stampData.CurrentParts, allowedStampRegion) + if not canStamp then + if stampFailedFunc then + stampFailedFunc() + end + return false + end + + -- Prevent part from being stamped on top of a player + + local minBB, maxBB = getBoundingBoxInWorldCoordinates(stampData.CurrentParts) + + -- HotThoth's note: Now that above CurrentParts positioning has been commented out, to be truly correct, we would need to use the + -- value of configFound from the previous onStamperMouseMove call which moved the CurrentParts + -- Shouldn't this be true when lastTargetCFrame has been set and false otherwise? + configFound, targetCFrame = findConfigAtMouseTarget(Mouse, stampData) + + if configFound and not HighScalabilityLine.Adorn.Parent then + if clusterPartsInRegion(minBB + insertBoundingBoxOverlapVector, maxBB - insertBoundingBoxOverlapVector) then + flashRedBox() + return false + end + + local blockingParts = game.Workspace:FindPartsInRegion3(Region3.new(minBB + insertBoundingBoxOverlapVector, + maxBB - insertBoundingBoxOverlapVector), + stampData.CurrentParts, + 100) + + + for b = 1, #blockingParts do + if isBlocker(blockingParts[b]) then + flashRedBox() + return false + end + end + + local alreadyPushedUp = {} + -- if no blocking model below, then see if stamping on top of a character + for b = 1, #blockingParts do + if blockingParts[b].Parent and + not alreadyPushedUp[blockingParts[b].Parent] and + blockingParts[b].Parent:FindFirstChild("Humanoid") and + blockingParts[b].Parent:FindFirstChild("Humanoid"):IsA("Humanoid") then + --------------------------------------------------------------------------- + local blockingPersonTorso = blockingParts[b].Parent:FindFirstChild("Torso") + alreadyPushedUp[blockingParts[b].Parent] = true + + if blockingPersonTorso then + -- if so, let's push the person upwards so they pop on top of the stamped model/part (but only if there's space above them) + local newY = maxBB.Y + 3 + if spaceAboveCharacter(blockingPersonTorso, newY, stampData) then + blockingPersonTorso.CFrame = blockingPersonTorso.CFrame + Vector3.new(0, newY - blockingPersonTorso.CFrame.p.Y, 0) + else + -- if no space, we just error + flashRedBox() + return false + end + end + --------------------------------------------------------------------------- + end + end + + elseif (not configFound) and not (HighScalabilityLine.Start and HighScalabilityLine.Adorn.Parent) then -- if no config then only stamp if it's a real HSL! + resetHighScalabilityLine() + return false + end + + -- something will be stamped! so set the "StampedSomething" toggle to true + if game:FindFirstChild("Players") then + if game.Players["LocalPlayer"] then + if game.Players.LocalPlayer["Character"] then + local localChar = game.Players.LocalPlayer.Character + local stampTracker = localChar:FindFirstChild("StampTracker") + if stampTracker and not stampTracker.Value then + stampTracker.Value = true + end + end + end + end + + -- if we drew a line of mega parts, stamp them out + if HighScalabilityLine.Start and HighScalabilityLine.Adorn.Parent and isMegaClusterPart() then + if ResolveMegaClusterStamp(checkHighScalabilityStamp) or checkHighScalabilityStamp then + -- kill the ghost part + stampData.CurrentParts.Parent = nil + return true + end + end + + -- not High-Scalability-Line-Based, so behave normally [and get rid of any HSL stuff] + HighScalabilityLine.Start = nil + HighScalabilityLine.Adorn.Parent = nil + + local cluster = game.Workspace.Terrain + + -- if target point is in cluster, just use cluster:SetCell + if isMegaClusterPart() then + -- if targetCFrame is inside cluster, just set that cell to 1 and return + --local cellPos = cluster:WorldToCell(targetCFrame.p) + + local cellPos + if stampData.CurrentParts:IsA("Model") then cellPos = cluster:WorldToCell(stampData.CurrentParts:GetModelCFrame().p) + else cellPos = cluster:WorldToCell(stampData.CurrentParts.CFrame.p) end + + local cMax = game.Workspace.Terrain.MaxExtents.Max + local cMin = game.Workspace.Terrain.MaxExtents.Min + + if checkTerrainBlockCollisions(cellPos, false) then + + local clusterValues = stampData.CurrentParts:FindFirstChild("ClusterMaterial", true) + local waterForceTag = stampData.CurrentParts:FindFirstChild("WaterForceTag", true) + local waterForceDirectionTag = stampData.CurrentParts:FindFirstChild("WaterForceDirectionTag", true) + + if cellPos.X >= cMin.X and cellPos.Y >= cMin.Y and cellPos.Z >= cMin.Z and cellPos.X < cMax.X and cellPos.Y < cMax.Y and cellPos.Z < cMax.Z then + + if waterForceTag then + cluster:SetWaterCell(cellPos.X, cellPos.Y, cellPos.Z, Enum.WaterForce[waterForceTag.Value], Enum.WaterDirection[waterForceDirectionTag.Value]) + elseif not clusterValues then + cluster:SetCell(cellPos.X, cellPos.Y, cellPos.Z, cellInfo.Material, cellInfo.clusterType, gInitial90DegreeRotations % 4) + elseif clusterValues:IsA("Vector3Value") then + cluster:SetCell(cellPos.X, cellPos.Y, cellPos.Z, clusterValues.Value.X, clusterValues.Value.Y, clusterValues.Value.Z) + else + cluster:SetCell(cellPos.X, cellPos.Y, cellPos.Z, clusterValues.Value, 0, 0) + end + + local autoWedgeClusterParts = false + if stampData.CurrentParts:FindFirstChild("AutoWedge") then autoWedgeClusterParts = true end + + -- auto-wedge it + if (autoWedgeClusterParts) then + game.Workspace.Terrain:AutowedgeCells( + Region3int16.new( + Vector3int16.new(cellPos.x - 1, cellPos.y - 1, cellPos.z - 1), + Vector3int16.new(cellPos.x + 1, cellPos.y + 1, cellPos.z + 1) + ) + ) + end + + -- kill the ghost part + stampData.CurrentParts.Parent = nil + + -- Mark for undo. It has to happen here or the selection display will come back also. + pcall(function() game:GetService("ChangeHistoryService"):SetWaypoint("StamperSingle") end) + return true + end + else + -- you tried to stamp a HSL-single part where one does not belong! + flashRedBox() + return false + end + end + + local function getPlayer() + if game:FindFirstChild("Players") then + if game.Players["LocalPlayer"] then + return game.Players.LocalPlayer + end + end + return nil + end + + + -- Post process: after positioning the part or model, restore transparency, material, anchored and collide states and create joints + if stampData.CurrentParts:IsA("Model") or stampData.CurrentParts:IsA("Tool") then + if stampData.CurrentParts:IsA("Model") then + -- Tyler's magical hack-code for allowing/preserving clones of both Surface and Manual Welds... just don't ask X< + local manualWeldTable = {} + local manualWeldParentTable = {} + saveTheWelds(stampData.CurrentParts, manualWeldTable, manualWeldParentTable) + stampData.CurrentParts:BreakJoints() + stampData.CurrentParts:MakeJoints() + restoreTheWelds(manualWeldTable, manualWeldParentTable) + end + + -- if it's a model, we also want to fill in the playerID and playerName tags, if it has those (e.g. for the friend-only door) + playerIdTag = stampData.CurrentParts:FindFirstChild("PlayerIdTag") + playerNameTag = stampData.CurrentParts:FindFirstChild("PlayerNameTag") + if playerIdTag ~= nil then + tempPlayerValue = getPlayer() + if tempPlayerValue ~= nil then playerIdTag.Value = tempPlayerValue.userId end + end + if playerNameTag ~= nil then + if game:FindFirstChild("Players") and game.Players["LocalPlayer"] then + tempPlayerValue = game.Players.LocalPlayer + if tempPlayerValue ~= nil then playerNameTag.Value = tempPlayerValue.Name end + end + end + -- ...and tag all inserted models for subsequent origin identification + -- if no RobloxModel tag already exists, then add it. + if stampData.CurrentParts:FindFirstChild("RobloxModel") == nil then + local stringTag = Instance.new("BoolValue", stampData.CurrentParts) + stringTag.Name = "RobloxModel" + + if stampData.CurrentParts:FindFirstChild("RobloxStamper") == nil then + local stringTag2 = Instance.new("BoolValue", stampData.CurrentParts) + stringTag2.Name = "RobloxStamper" + end + end + + else + stampData.CurrentParts:BreakJoints() + if stampData.CurrentParts:FindFirstChild("RobloxStamper") == nil then + local stringTag2 = Instance.new("BoolValue", stampData.CurrentParts) + stringTag2.Name = "RobloxStamper" + end + end + + -- make sure all the joints are activated before restoring anchor states + if not createJoints then game.JointsService:CreateJoinAfterMoveJoints() end + + -- Restore the original properties for all parts being stamped + for part, transparency in pairs(stampData.TransparencyTable) do + part.Transparency = transparency + end + for part, archivable in pairs(stampData.ArchivableTable) do + part.Archivable = archivable + end + for part, material in pairs(stampData.MaterialTable) do + part.Material = material + end + for part, collide in pairs(stampData.CanCollideTable) do + part.CanCollide = collide + end + for part, anchored in pairs(stampData.AnchoredTable) do + part.Anchored = anchored + end + for decal, transparency in pairs(stampData.DecalTransparencyTable) do + decal.Transparency = transparency + end + + for part, surfaces in pairs(stampData.SurfaceTypeTable) do + loadSurfaceTypes(part, surfaces) + end + + if isMegaClusterPart() then + stampData.CurrentParts.Transparency = 0 + end + + -- re-enable all seats + setSeatEnabledStatus(stampData.CurrentParts, true) + + stampData.TransparencyTable = nil + stampData.ArchivableTable = nil + stampData.MaterialTable = nil + stampData.CanCollideTable = nil + stampData.AnchoredTable = nil + stampData.SurfaceTypeTable = nil + + -- ...and tag all inserted models for subsequent origin identification + -- if no RobloxModel tag already exists, then add it. + if stampData.CurrentParts:FindFirstChild("RobloxModel") == nil then + local stringTag = Instance.new("BoolValue", stampData.CurrentParts) + stringTag.Name = "RobloxModel" + end + + -- and make sure we don't delete it, now that it's not a ghost part + if ghostRemovalScript then ghostRemovalScript.Parent = nil end + + --Re-enable the scripts + for index,script in pairs(stampData.DisabledScripts) do + script.Disabled = false + end + + --Now that they are all marked enabled, reinsert them into the world so they start running + for index,script in pairs(stampData.DisabledScripts) do + local oldParent = script.Parent + script.Parent = nil + script:Clone().Parent = oldParent + end + + -- clear out more data + stampData.DisabledScripts = nil + stampData.Dragger = nil + stampData.CurrentParts = nil + + pcall(function() game:GetService("ChangeHistoryService"): SetWaypoint("StampedObject") end) + return true + end + + local function pauseStamper() + for i = 1, #mouseCons do -- stop the mouse from doing anything + mouseCons[i]:disconnect() + mouseCons[i] = nil + end + mouseCons = {} + + if stampData and stampData.CurrentParts then -- remove our ghost part + stampData.CurrentParts.Parent = nil + stampData.CurrentParts:Remove() + end + + resetHighScalabilityLine() + + game.JointsService:ClearJoinAfterMoveJoints() + end + + + local function prepareUnjoinableSurfaces(modelCFrame, parts, whichSurface) + local AXIS_VECTORS = {Vector3.new(1, 0, 0), Vector3.new(0, 1, 0), Vector3.new(0, 0, 1)} -- maybe last one is negative? TODO: check this! + local isPositive = 1 + if whichSurface < 0 then isPositive = isPositive * -1 whichSurface = whichSurface*-1 end + local surfaceNormal = isPositive * modelCFrame:vectorToWorldSpace(AXIS_VECTORS[whichSurface]) + + for i = 1, #parts do + local currPart = parts[i] + + -- now just need to find which surface of currPart most closely match surfaceNormal and then set that to Unjoinable + local surfaceNormalInLocalCoords = currPart.CFrame:vectorToObjectSpace(surfaceNormal) + if math.abs(surfaceNormalInLocalCoords.X) > math.abs(surfaceNormalInLocalCoords.Y) then + if math.abs(surfaceNormalInLocalCoords.X) > math.abs(surfaceNormalInLocalCoords.Z) then + if surfaceNormalInLocalCoords.X > 0 then currPart.RightSurface = "Unjoinable" else currPart.LeftSurface = "Unjoinable" end + else + if surfaceNormalInLocalCoords.Z > 0 then currPart.BackSurface = "Unjoinable" else currPart.FrontSurface = "Unjoinable" end + end + else + if math.abs(surfaceNormalInLocalCoords.Y) > math.abs(surfaceNormalInLocalCoords.Z) then + if surfaceNormalInLocalCoords.Y > 0 then currPart.TopSurface = "Unjoinable" else currPart.BottomSurface = "Unjoinable" end + else + if surfaceNormalInLocalCoords.Z > 0 then currPart.BackSurface = "Unjoinable" else currPart.FrontSurface = "Unjoinable" end + end + end + end + end + + local function resumeStamper() + clone, parts = prepareModel(modelToStamp) + + if not clone or not parts then + return + end + + -- if we have unjoinable faces, then we want to change those surfaces to be Unjoinable + local unjoinableTag = clone:FindFirstChild("UnjoinableFaces", true) + if unjoinableTag then + for unjoinableSurface in string.gmatch(unjoinableTag.Value, "[^,]*") do + if tonumber(unjoinableSurface) then + if clone:IsA("Model") then + prepareUnjoinableSurfaces(clone:GetModelCFrame(), parts, tonumber(unjoinableSurface)) + else + prepareUnjoinableSurfaces(clone.CFrame, parts, tonumber(unjoinableSurface)) + end + end + end + end + + stampData.ErrorBox = errorBox + if stampInModel then + clone.Parent = stampInModel + else + clone.Parent = game.Workspace + end + + if clone:FindFirstChild("ClusterMaterial", true) then -- extract all info from vector + clusterMaterial = clone:FindFirstChild("ClusterMaterial", true) + if (clusterMaterial:IsA("Vector3Value")) then + cellInfo.Material = clusterMaterial.Value.X + cellInfo.clusterType = clusterMaterial.Value.Y + cellInfo.clusterOrientation = clusterMaterial.Value.Z + elseif clusterMaterial:IsA("IntValue") then + cellInfo.Material = clusterMaterial.Value + end + end + + pcall(function() mouseTarget = Mouse.Target end) + + if mouseTarget and mouseTarget.Parent:FindFirstChild("RobloxModel") == nil then + game.JointsService:SetJoinAfterMoveTarget(mouseTarget) + else + game.JointsService:SetJoinAfterMoveTarget(nil) + end + game.JointsService:ShowPermissibleJoints() + + for index, object in pairs(stampData.DisabledScripts) do + if object.Name == "GhostRemovalScript" then + object.Parent = stampData.CurrentParts + end + end + + stampData.Dragger = Instance.new("Dragger") + + --Begin a movement by faking a MouseDown signal + stampData.Dragger:MouseDown(parts[1], Vector3.new(0,0,0), parts) + stampData.Dragger:MouseUp() + + DoStamperMouseMove(Mouse) + + table.insert(mouseCons,Mouse.Move:connect(function() + if movingLock or stampUpLock then return end + movingLock = true + DoStamperMouseMove(Mouse) + movingLock = false + end)) + + table.insert(mouseCons,Mouse.Button1Down:connect(function() + DoStamperMouseDown(Mouse) + end)) + + table.insert(mouseCons,Mouse.Button1Up:connect(function() + stampUpLock = true + while movingLock do wait() end + stamped.Value = DoStamperMouseUp(Mouse) + resetHighScalabilityLine() + stampUpLock = false + end)) + + stamped.Value = false + end + + local function resetStamperState(newModelToStamp) + + -- if we have a new model, swap it out + if newModelToStamp then + if not newModelToStamp:IsA("Model") and not newModelToStamp:IsA("BasePart") then + error("resetStamperState: newModelToStamp (first arg) is not nil, but not a model or part!") + end + modelToStamp = newModelToStamp + end + + -- first clear our state + pauseStamper() + -- now lets load in the new model + resumeStamper() + + end + + -- load the model initially + resetStamperState() + + + -- setup the control table we pass back to the user + control.Stamped = stamped -- BoolValue that fires when user stamps + control.Paused = false + + control.LoadNewModel = function(newStampModel) -- allows us to specify a new stamper model to be used with this stamper + if newStampModel and not newStampModel:IsA("Model") and not newStampModel:IsA("BasePart") then + error("Control.LoadNewModel: newStampModel (first arg) is not a Model or Part!") + return nil + end + resetStamperState(newStampModel) + end + + control.ReloadModel = function() -- will automatically set stamper to get a new model of current model and start stamping with new model + resetStamperState() + end + + control.Pause = function() -- temporarily stops stamping, use resume to start up again + if not control.Paused then + pauseStamper() + control.Paused = true + else + print("RbxStamper Warning: Tried to call Control.Pause() when already paused") + end + end + + control.Resume = function() -- resumes stamping, if currently paused + if control.Paused then + resumeStamper() + control.Paused = false + else + print("RbxStamper Warning: Tried to call Control.Resume() without Pausing First") + end + end + + control.ResetRotation = function() -- resets the model rotation so new models are at default orientation + -- gInitial90DegreeRotations = 0 + -- Note: This function will not always work quite the way we want it to; we will have to build this out further so it works with + -- High-Scalability and with the new model orientation setting methods (model:ResetOrientationToIdentity()) [HotThoth] + end + + control.Destroy = function() -- Stops current Stamp operation and destroys control construct + for i = 1, #mouseCons do + mouseCons[i]:disconnect() + mouseCons[i] = nil + end + + if keyCon then + keyCon:disconnect() + end + + game.JointsService:ClearJoinAfterMoveJoints() + + if adorn then adorn:Destroy() end + if adornPart then adornPart:Destroy() end + if errorBox then errorBox:Destroy() end + if stampData then + if stampData["Dragger"] then + stampData.Dragger:Destroy() + end + if stampData.CurrentParts then + stampData.CurrentParts:Destroy() + end + end + if control and control["Stamped"] then + control.Stamped:Destroy() + end + control = nil + end + + return control +end + +t.Help = + function(funcNameOrFunc) + --input argument can be a string or a function. Should return a description (of arguments and expected side effects) + if funcNameOrFunc == "GetStampModel" or funcNameOrFunc == t.GetStampModel then + return "Function GetStampModel. Arguments: assetId, useAssetVersionId. assetId is the asset to load in, define useAssetVersionId as true if assetId is a version id instead of a relative assetId. Side effect: returns a model of the assetId, or a string with error message if something fails" + end + if funcNameOrFunc == "SetupStamperDragger" or funcNameOrFunc == t.SetupStamperDragger then + return "Function SetupStamperDragger. Side Effect: Creates 4x4 stamping mechanism for building out parts quickly. Arguments: ModelToStamp, Mouse, LegalStampCheckFunction. ModelToStamp should be a Model or Part, preferrably loaded from RbxStamper.GetStampModel and should have extents that are multiples of 4. Mouse should be a mouse object (obtained from things such as Tool.OnEquipped), used to drag parts around 'stamp' them out. LegalStampCheckFunction is optional, used as a callback with a table argument (table is full of instances about to be stamped). Function should return either true or false, false stopping the stamp action." + end + end + +return t diff --git a/assets/ugc/asset-0.png b/assets/ugc/asset-0.png new file mode 100644 index 0000000..df5e55d Binary files /dev/null and b/assets/ugc/asset-0.png differ diff --git a/assets/ugc/asset-1.png b/assets/ugc/asset-1.png new file mode 100644 index 0000000..87bf06c Binary files /dev/null and b/assets/ugc/asset-1.png differ diff --git a/assets/ugc/common/itemfile-62633901.rbxm b/assets/ugc/common/itemfile-62633901.rbxm new file mode 100644 index 0000000..174458f --- /dev/null +++ b/assets/ugc/common/itemfile-62633901.rbxm @@ -0,0 +1,10 @@ + + null + nil + + + ScriptHashWhitelist + b3f0342949bc9635e34e278c04d6fd90;1cb5c76965c37c216582cee7e1433262;4c6721f4bea2341a4d4a684c7f966d90;8e56422fe1414961d2edff32f944bf92;786406a29a6e8490cb266c06201aa92e;b3ac4e73d3733a57dea03d692aa26e34;a53eba1de89dbfdb80b3254ee388531d;d15e92a3f0fc1e66cf41a5d73cebb840;f1dfdef5f37e69ddd3fd6333f26e88c8;433d57e8472a8a870e274598229a93d4;f5221aae14307e3bcb1a5d154c5ef2f5;5e18b9ddf23c4f03c0fd00ee9f74a6e8;e84848af1e7a5ef61fccd70017a1499c;ee2fda1680f29d1e15e9d70f9d061df3;a30f58b57cb09ac1655cde37c750b02b;8ee09525290e5fd8b1d7d90ff4e08772;;d39de7b8e14666fafed115fcac1bd42a;f9a3b2366970250006eb5871718d1386;d46bd2f63d3743df0d65fba0026b1b3e;79edcc2cec0a91fd1ba03de301277bf9;cae4b54d5a33a04fcc08b71a4910aa98;3a6bbcd590fb50a1ab2c96d4c5381354;047683e14c39fb0726d37978027e7e41;60fcf891d61f15810f7fc1fbc306085a;85da2a691ca195ba0c8b727be3708854;ab1d7c5bd750ad0445c5468199ba01c7;111a198bfda686f90c974c4bd51b0bbb;6b0f7786df852254ad76584baf51f8a7;aa5868b23b2df1bd213fc34f55daf17b;50fcb8a21a10b8125d4573eaf71318ad;c0a7d6ca6e952ec6ebcc37002cb8b290;9b726d1c7771bc42aa03175c6c8a43d0;9b726d1c7771bc42aa03175c6c8a43d0;f10d555101c69e7bc5445b363865835e;4a143d0239140a90a111a3f316ee3349;f52510d8205181ca455a559ec153be7acaa15d93952e7366992e31df5af18441;3fa1b59b140c7babcb10b61b186020ad;1ab108f066289efd10a903744e2d3fe1;fabd28d867d693e3e465703956169f81;22dbbfb129b56c2f44ed52daa5ae1739;eeaadc007ef349e545ea6cd8295ad541;7bb0d01aea154912c3200cf964766fd4;84bf56ebe05f1f5c78a7a9c4cad52f74;bf3cda0e4a61be31f3e628d60d409a84;3987ae32127e39d9a7703b024f931bcf;9a53dc1d8a18035c7500513833761fa9;66c6d6dcf60ba2cceb8a9e613587ca6b;dbae0bffeb10d9f2152d87d94db62496;89254cffbaa0282d6e5971c2a8c09e55;46cbe9b2a510f6257a7eac135aad5651;8b56bcdc48551aff9edeabae48d5141c;ff58e3a4e3f0e514ad0b6258432f4fcd;89254cffbaa0282d6e5971c2a8c09e55;0321b9659210929462de367df55322bb;1b011d0e9868c56338b00fc891895fc1;6c52a6ca7f539564dc7c0a4eb3969eeb;2c7a8324161637f30405729b19885573;92b59508c397fcb6086f287ebd1ea3cd;90846a9269ae1b0bada8b205d156cfc0;2f5206f708e95f55bbb1ea712267445b;0276a5c631983f84e676a6162dad4a11;b5c2f8dea2ab79fafa1139aa22e70588;193dcfdb1e760c52c4573873a441deab;0276a5c631983f84e676a6162dad4a11; + + + \ No newline at end of file diff --git a/assets/ugc/gamefile-0.rbxl b/assets/ugc/gamefile-0.rbxl new file mode 100644 index 0000000..348df39 Binary files /dev/null and b/assets/ugc/gamefile-0.rbxl differ diff --git a/assets/ugc/itemfile-0.rbxm b/assets/ugc/itemfile-0.rbxm new file mode 100644 index 0000000..8224eb4 --- /dev/null +++ b/assets/ugc/itemfile-0.rbxm @@ -0,0 +1,140 @@ + + null + nil + + + + 0 + -0.899999976 + 0 + 1 + 0 + 0 + -0 + 0.980580688 + 0.196116135 + 0 + -0.196116135 + 0.980580688 + + TrafficCone + + + + false + -0.5 + 0.5 + 0 + 0 + -0.5 + 0.5 + 0 + 0 + 194 + + -3.73503828 + 6.53157806 + -29.3164387 + -0.916252911 + -0.0785642341 + -0.392821193 + -3.90117441e-021 + 0.980580688 + -0.196116135 + 0.400600582 + -0.179691985 + -0.898459911 + + true + + false + + 0.5 + 0.300000012 + -0.5 + 0.5 + 0 + 0 + -0.5 + 0.5 + 0 + 0 + true + 256 + Handle + 0 + -0.5 + 0.5 + 0 + 0 + + -2.42862883e-023 + 3.62439101e-022 + -1.39473558e-023 + + -0.5 + 0.5 + 0 + 0 + 0 + + 3.64650682e-020 + 0.0075033661 + 3.64295609e-020 + + 2 + 1 + + 1 + 2 + 1 + + + + + 2 + 2 + http://www.roblox.com/asset/?id=1082802 + 5 + Mesh + + 0 + 0 + 0 + + + 1 + 1 + 1 + + http://www.roblox.com/asset/?id=1082804 + + 1 + 1 + 1 + + + + + + + 8.65838956e-009 + -0.801995277 + -0.0198786259 + 1 + 7.8713791e-009 + -5.01820807e-014 + -7.71851205e-009 + 0.980580688 + 0.196116135 + 1.54375357e-009 + -0.196116135 + 0.980580688 + + HatAttachment + false + + + + + \ No newline at end of file diff --git a/assets/ugc/itemfile-1.rbxm b/assets/ugc/itemfile-1.rbxm new file mode 100644 index 0000000..db89c3b Binary files /dev/null and b/assets/ugc/itemfile-1.rbxm differ diff --git a/assets/userthumbnails/0.png b/assets/userthumbnails/0.png new file mode 100644 index 0000000..1bdfa89 Binary files /dev/null and b/assets/userthumbnails/0.png differ diff --git a/assets/userthumbnails/1.png b/assets/userthumbnails/1.png new file mode 100644 index 0000000..7ee3582 Binary files /dev/null and b/assets/userthumbnails/1.png differ diff --git a/assets/userthumbnailsheadshots/0.png b/assets/userthumbnailsheadshots/0.png new file mode 100644 index 0000000..755d49e Binary files /dev/null and b/assets/userthumbnailsheadshots/0.png differ diff --git a/assets/video.png b/assets/video.png new file mode 100644 index 0000000..b0e44a9 Binary files /dev/null and b/assets/video.png differ diff --git a/assets/videos/logo.webm b/assets/videos/logo.webm new file mode 100644 index 0000000..3746d30 Binary files /dev/null and b/assets/videos/logo.webm differ diff --git a/assets/videos/test.mp4 b/assets/videos/test.mp4 new file mode 100644 index 0000000..37d9b75 Binary files /dev/null and b/assets/videos/test.mp4 differ diff --git a/assetthumbnailrenderer.lua b/assetthumbnailrenderer.lua new file mode 100644 index 0000000..5cd414c --- /dev/null +++ b/assetthumbnailrenderer.lua @@ -0,0 +1,66 @@ +-- This is the thumbnail script for R6 avatars. Straight up and down, with the right arm out if they have a gear. +local asset = 0 +local baseurl = "http://mete0r.xyz" -- have to set to https for production +local HttpService = game:GetService("HttpService") +HttpService.HttpEnabled = true + +---@diagnostic disable-next-line: invalid-class-name +local ThumbnailGenerator = game:GetService("ThumbnailGenerator") + +pcall(function() game:GetService("ContentProvider"):SetBaseUrl(baseurl) end) +game:GetService("InsertService"):SetBaseSetsUrl(baseurl .. "/Game/Tools/InsertAsset.ashx?nsets=10&type=base") +game:GetService("InsertService"):SetUserSetsUrl(baseurl .. "/Game/Tools/InsertAsset.ashx?nsets=20&type=user&userid=%d") +game:GetService("InsertService"):SetCollectionUrl(baseurl .. "/Game/Tools/InsertAsset.ashx?sid=%d") +game:GetService("InsertService"):SetAssetUrl(baseurl .. "/Asset/?id=%d") +game:GetService("InsertService"):SetAssetVersionUrl(baseurl .. "/Asset/?assetversionid=%d") +---@diagnostic disable-next-line: invalid-class-name +pcall(function() game:GetService("ScriptInformationProvider"):SetAssetUrl(url .. "/Asset/") end) + +game:GetService("ScriptContext").ScriptsDisabled = true + +thing = game:GetService("InsertService"):LoadAsset(asset) +if thing:GetChildren()[1]:IsA("Shirt") or thing:GetChildren()[1]:IsA("Pants") then + local player = game:GetService("Players"):CreateLocalPlayer(0) + player:LoadCharacter() + thing:GetChildren()[1].Parent = player.Character + bcolor = Instance.new("BodyColors", player.Character) +bcolor.HeadColor = BrickColor.new(1001) +bcolor.TorsoColor = BrickColor.new(1001) +bcolor.LeftArmColor = BrickColor.new(1001) +bcolor.RightArmColor = BrickColor.new(1001) +bcolor.LeftLegColor = BrickColor.new(1001) +bcolor.RightLegColor = BrickColor.new(1001) +elseif thing:GetChildren()[1]:IsA("Decal") then + local player = game:GetService("Players"):CreateLocalPlayer(0) + player:LoadCharacter() + player.Character.Head.face:Destroy() + thing:GetChildren()[1].Parent = player.Character.Head + bcolor = Instance.new("BodyColors", player.Character) +bcolor.HeadColor = BrickColor.new(1001) +bcolor.TorsoColor = BrickColor.new(1001) +bcolor.LeftArmColor = BrickColor.new(1001) +bcolor.RightArmColor = BrickColor.new(1001) +bcolor.LeftLegColor = BrickColor.new(1001) +bcolor.RightLegColor = BrickColor.new(1001) + + for _, child in pairs(player.Character:GetChildren()) do +if child.Name ~= "Head" and child:IsA("BasePart") then +child:Destroy() +end +end + +else + thing.Parent = game.workspace +end + +local arguments = { + ["thumbnail"] = ThumbnailGenerator:Click("PNG", 400, 400, --[[hideSky = ]] true), + ["asset"] = asset + } + +HttpService:PostAsync( + baseurl .. "/api/thumbnailrender/rccasset", + HttpService:JSONEncode(arguments) + ) + + diff --git a/clientid.txt b/clientid.txt new file mode 100644 index 0000000..3342aa4 --- /dev/null +++ b/clientid.txt @@ -0,0 +1 @@ +7c9f615b-8535-4e9c-96d0-dff4cecabdd1 \ No newline at end of file diff --git a/middleware/authmiddleware.js b/middleware/authmiddleware.js new file mode 100644 index 0000000..adf8c78 --- /dev/null +++ b/middleware/authmiddleware.js @@ -0,0 +1,89 @@ +const jwt = require('jsonwebtoken') +require('dotenv').config() +const JWT_SECRET = process.env.JWT_SECRET +const atob = require("atob"); +const model = require("./../model/user.js") + +const requireAuth = (req,res,next) => { + if (!req.cookies && req.headers['authorization']) { + return res.json({status: "error", error: "Unauthorized"}) + } + let token = req.cookies.jwt??req.cookies['.ROBLOSECURITY']??req.headers['authorization']??req.headers['roblox-session-id'] + + if (!token) { + return res.status(401).json({status: "error", error: "Unauthorized"}) + } + + + jwt.verify(token,JWT_SECRET, (err,decodedtoken) => { + if (err){ + res.cookie('jwt', "", {SameSite: "Strict",maxAge: 1 }) + return res.status(401).json({status: "error", error: "Unauthorized"}) + }else{ + var tokendata = decodedtoken + var name = tokendata.userid + try { + model.findOne({userid: name},async function(err, doc) { + req.numberofcoins = doc.coins + req.tokenData = tokendata + req.userdocument = doc + moderationstatus = JSON.parse(doc.moderation) + const actualTimeMilliseconds = new Date().getTime() + if (actualTimeMilliseconds - doc.timesincelastrequest >= 60000 * 1 || !doc.timesincelastrequest /*2 minutes make sure to update*/){ + doc.timesincelastrequest = actualTimeMilliseconds + doc.markModified('timesincelastrequest') + await doc.save() + } + // check if they are eligble for daily login reward + if (actualTimeMilliseconds - req.userdocument.lastclaimofcurrency > 86400000){ // 24 hours + req.userdocument.lastclaimofcurrency = actualTimeMilliseconds + if (req.userdocument.membership === "TurboBuildersClub"){ + req.userdocument.coins += 90 + }else if (req.userdocument.membership === "BuildersClub"){ + req.userdocument.coins += 60 + }else if (req.userdocument.membership === "OutrageousBuildersClub"){ + req.userdocument.coins += 150 + } + else{ + req.userdocument.coins += 35 + } + req.userdocument.markModified('coins') + req.userdocument.markModified('lastclaimofcurrency') + await req.userdocument.save() + } + + if (moderationstatus.status !== "ok") { + // if they are moderated then we invalidate the cookie and proceed + //res.cookie('jwt', "", {SameSite: "Strict",maxAge: 1 }) + //return res.send("You have been moderated for "+moderationstatus.Reason+" expires at"+moderationstatus.ExpiresIn+" Moderated by "+moderationstatus.BannedBy ) + var date = Date.parse(moderationstatus.ExpiresIn) + var datetime = new Date(); + var datetime2 = Date.parse(datetime) + /*if (date <= datetime2){ + // they have served there time + + model.updateOne({userid: doc.userid}, { + $set: { + moderation: JSON.stringify({"status":"ok","Reason":"none","ExpiresIn":"none", "BannedBy": "none"}) + } + }, + function(err, doc) { + //console.log(err) + }) + return next() + + }*/ + return res.json({status: "error", error:"Moderated", moderationstatus}) + } + next() + })/*.lean() rip*/} + catch (error) { + console.error(error); + } + + } + + }) +} + +module.exports = {requireAuth} \ No newline at end of file diff --git a/middleware/authmiddlewaregame.js b/middleware/authmiddlewaregame.js new file mode 100644 index 0000000..bacb7f5 --- /dev/null +++ b/middleware/authmiddlewaregame.js @@ -0,0 +1,79 @@ +const jwt = require('jsonwebtoken') +require('dotenv').config() +const JWT_SECRET = process.env.JWT_SECRET +const atob = require("atob"); +const model = require("./../model/user.js") +// exactly the same as normal authimddleware but uses req.query instead of cookies for our client +const requireAuth = (req,res,next) => { + let token = req.query.auth + if (req.cookies && req.headers?.['user-agent'] != "Roblox/WinInet") { // Mobile + if (req.cookies.jwt) { + token = req.cookies.jwt + } + } + if (req.headers['roblox-session-id']) { // TeleportService + token = req.headers['roblox-session-id'] + } + if (req.headers?.['user-agent']?.includes("Android") === true || req.headers?.['user-agent']?.includes("iPhone") === true){ + console.log(token) + console.log(req.headers) + } + //console.log(req.headers) + + + + + + if (!token) { + return res.status(405).end() + } + + + jwt.verify(token,JWT_SECRET, (err,decodedtoken) => { + if (err){ + res.cookie('jwt', "", {SameSite: "Strict",maxAge: 1 }) + return res.status(405) + }else{ + var tokendata = decodedtoken + var name = tokendata.userid + try { + model.findOne({userid: name}, function(err, doc) { + req.numberofcoins = doc.coins + req.tokenData = tokendata + req.userdocument = doc + moderationstatus = JSON.parse(doc.moderation) + if (moderationstatus.status !== "ok") { + // if they are moderated then we invalidate the cookie and proceed + //res.cookie('jwt', "", {SameSite: "Strict",maxAge: 1 }) + //return res.send("You have been moderated for "+moderationstatus.Reason+" expires at"+moderationstatus.ExpiresIn+" Moderated by "+moderationstatus.BannedBy ) + var date = Date.parse(moderationstatus.ExpiresIn) + var datetime = new Date(); + var datetime2 = Date.parse(datetime) + /*if (date <= datetime2){ + // they have served there time + + model.updateOne({userid: doc.userid}, { + $set: { + moderation: JSON.stringify({"status":"ok","Reason":"none","ExpiresIn":"none", "BannedBy": "none"}) + } + }, + function(err, doc) { + //console.log(err) + }) + + + }*/ + return res.json({status: "error", error:"Moderated", moderationstatus}) + } + next() + })/*.lean() rip*/} + catch (error) { + console.error(error); + } + + } + + }) +} + +module.exports = {requireAuth} \ No newline at end of file diff --git a/middleware/grabauth.js b/middleware/grabauth.js new file mode 100644 index 0000000..7a0a564 --- /dev/null +++ b/middleware/grabauth.js @@ -0,0 +1,64 @@ +const jwt = require('jsonwebtoken') +require('dotenv').config() +const JWT_SECRET = process.env.JWT_SECRET +const atob = require("atob"); +const model = require("./../model/user.js") + +const grabAuth = (req,res,next) => { + if (!req.cookies && req.headers['authorization']) { + return next() + } + const token = req.cookies.jwt??req.cookies['.ROBLOSECURITY']??req.headers['authorization'] + + if (!token) { + return next() + } + + jwt.verify(token,JWT_SECRET, (err,decodedtoken) => { + if (err){ + next() + }else{ + var tokendata = decodedtoken + var name = tokendata.username + try { + model.findOne({username: new RegExp('^'+name+'$', "i")}, function(err, doc) { + req.numberofcoins = doc.coins + req.admin = doc.admin + req.tokenData = tokendata + req.userdocument = doc + moderationstatus = JSON.parse(doc.moderation) + if (moderationstatus.status !== "ok") { + // if they are moderated then we invalidate the cookie and proceed + //res.cookie('jwt', "", {SameSite: "Strict",maxAge: 1 }) + //return res.send("You have been moderated for "+moderationstatus.Reason+" expires at"+moderationstatus.ExpiresIn+" Moderated by "+moderationstatus.BannedBy ) + var date = Date.parse(moderationstatus.ExpiresIn) + var datetime = new Date(); + var datetime2 = Date.parse(datetime) + if (date <= datetime2){ + // they have served there time + + model.updateOne({userid: doc.userid}, { + $set: { + moderation: JSON.stringify({"status":"ok","Reason":"none","ExpiresIn":"none", "BannedBy": "none"}) + } + }, + function(err, doc) { + //console.log(err) + }) + + + } + return res.json({status: "error", error:"Moderated", moderationstatus}) + } + next() + })/*.lean() rip*/} + catch (error) { + console.error(error); + } + + } + + }) +} + +module.exports = {grabAuth} \ No newline at end of file diff --git a/middleware/requirediscord.js b/middleware/requirediscord.js new file mode 100644 index 0000000..604f733 --- /dev/null +++ b/middleware/requirediscord.js @@ -0,0 +1,11 @@ +const requirediscord = (req,res,next) => { + const discordid = req.userdocument.discordid + if (!discordid) { + return res.json({status: "error", error: "Discord link required for develop. Link your discord in the settings panel."}) + }else{ + next(); + } + +}; + +module.exports = {requirediscord} \ No newline at end of file diff --git a/model/bank.js b/model/bank.js new file mode 100644 index 0000000..882b470 --- /dev/null +++ b/model/bank.js @@ -0,0 +1,9 @@ +const mongoose = require('mongoose') +const bankSchema = new mongoose.Schema({ + balance: {type: Number, required: true}, +}, +{collection: 'bank'} +) +const model = mongoose.model('bank', bankSchema) + +module.exports = model \ No newline at end of file diff --git a/model/comment.js b/model/comment.js new file mode 100644 index 0000000..ce95fb5 --- /dev/null +++ b/model/comment.js @@ -0,0 +1,22 @@ +const mongoose = require('mongoose') +const CommentSchema = new mongoose.Schema({ + associatedassetid: {type: Number, required: true, index: true}, + associatedassettype: {type: String, required: true, index: true}, + posterid: {type: Number, required: true}, + content: {type: String, required: true}, + date: {type: Number, required: true}, + moderated: {type: Boolean, required: true} +}, +{collection: 'comments'} +) + +CommentSchema.virtual('poster', { + ref: 'UserSchema', + localField: 'posterid', + foreignField: 'userid', + justOne: true +}) + +const model = mongoose.model('CommentSchema', CommentSchema) + +module.exports = model \ No newline at end of file diff --git a/model/config.js b/model/config.js new file mode 100644 index 0000000..973fd82 --- /dev/null +++ b/model/config.js @@ -0,0 +1,13 @@ +const mongoose = require('mongoose') +const ConfigSchema = new mongoose.Schema({ + RegistrationEnabled: {type: Boolean, required: true}, + MaintenanceEnabled: {type: Boolean, required: true}, + KeysEnabled: {type: Boolean, required: true}, + GamesEnabled: {type: Boolean, required: true} +}, +{collection: 'config'} +) + +const model = mongoose.model('ConfigSchema', ConfigSchema) + +module.exports = model \ No newline at end of file diff --git a/model/games.js b/model/games.js new file mode 100644 index 0000000..c69becb --- /dev/null +++ b/model/games.js @@ -0,0 +1,29 @@ +const mongoose = require('mongoose') +const GamesSchema = new mongoose.Schema({ + useridofowner: {type: Number, required: true}, + idofgame: {type: Number, required: true, index: true}, + nameofgame: {type: String, required: true}, + numberofplayers: {type: String, required: true}, + descrption: {type: String, required: true}, + datastore: {type: String, required: false}, + visits: {type: Number, required: false}, + version: {type: String, required: true}, + featured: {type: Boolean, required: false}, + players: {type: Object, required: false}, + avatartype: {type: Object, required: false}, + gearallowed: {type: Boolean, required: false}, + comments: {type: Object, required: false} +}, +{collection: 'games'} +) + +GamesSchema.virtual('owner', { + ref: 'UserSchema', + localField: 'useridofowner', + foreignField: 'userid', + justOne: true +}) + +const model = mongoose.model('GamesSchema', GamesSchema) + +module.exports = model \ No newline at end of file diff --git a/model/groups.js b/model/groups.js new file mode 100644 index 0000000..eadf619 --- /dev/null +++ b/model/groups.js @@ -0,0 +1,33 @@ +const mongoose = require('mongoose') +const GroupSchema = new mongoose.Schema({ + Name: {type: String, required: true}, + Description: {type: String, required: true}, + Public: {type: Boolean, required: true}, + IconApproved: {type: Boolean, required: true}, + denied: {type: Boolean, required: false}, + Hidden: {type: Boolean, required: false}, + groupid: {type: Number, required: true}, + ownerid : {type: Number, required: true}, + memberscount: {type: Number, required: true}, + members: {type: [{userId: Number, rank: Number}], required: true}, + currentshout: {type: {content: String, shouter: Number}, required: false}, + Roles: {type: [{RoleName: String, Permissions: {Shout: Boolean, Kick: Boolean, ChangeRoles: Boolean, ModerateWall: Boolean, ManageAllies: Boolean, All: Boolean}, Rank: Number}], required: true}, // default {} +}, +{collection: 'groups'} +) +const model = mongoose.model('GroupSchema', GroupSchema) + +GroupSchema.virtual('owner', { + ref: 'UserSchema', + localField: 'ownerid', + foreignField: 'userid', + justOne: true +}) + +GroupSchema.virtual('memberspoly', { + ref: 'UserSchema', + localField: 'members.userId', + foreignField: 'userid' +}) + +module.exports = model \ No newline at end of file diff --git a/model/ipWhitelist.mjs b/model/ipWhitelist.mjs new file mode 100644 index 0000000..a4f0234 --- /dev/null +++ b/model/ipWhitelist.mjs @@ -0,0 +1,7 @@ +import { Schema } from 'redis-om' + +const ipWhiteListSchema = new Schema('ipWhiteListSchema', { + ip: { type: 'string' }, +}) + +export default ipWhiteListSchema \ No newline at end of file diff --git a/model/item.js b/model/item.js new file mode 100644 index 0000000..cf8982c --- /dev/null +++ b/model/item.js @@ -0,0 +1,23 @@ +const mongoose = require('mongoose') +const CatalogSchema = new mongoose.Schema({ + Name: {type: String, required: true}, + Description: {type: String, required: false}, + Price: {type: String, required: true}, + Type: {type: String, required: true}, + Creator: {type: Number, required: false}, + Hidden: {type: Boolean, required: false}, + ItemId: {type: String, required: true}, + Sales: {type: Number, required: false}, + ActiveAd: {type: Boolean, required: false}, // these 4 are for user generated ads + adtype: {type: String, required: false}, + adredirectid: {type: String, required: false}, + adstartedtime: {type: Number, required: false}, + approved: {type: Boolean, required: true}, + denied: {type: Boolean, required: false}, + associatedgameid: {type: Number, required: false}, +}, +{collection: 'catalog'} +) +const model = mongoose.model('CatalogSchema', CatalogSchema) + +module.exports = model \ No newline at end of file diff --git a/model/keys.js b/model/keys.js new file mode 100644 index 0000000..906a089 --- /dev/null +++ b/model/keys.js @@ -0,0 +1,13 @@ +const mongoose = require('mongoose') +const KeysSchema = new mongoose.Schema({ + Creator: {type: String, required: true}, + Key: {type: String, required: true}, + Used: {type: Boolean, required: true}, + UsedBy: {type: String, required: false} +}, +{collection: 'keys'} +) + +const model = mongoose.model('KeysSchema', KeysSchema) + +module.exports = model \ No newline at end of file diff --git a/model/rcc.js b/model/rcc.js new file mode 100644 index 0000000..72d6a1f --- /dev/null +++ b/model/rcc.js @@ -0,0 +1,11 @@ +const mongoose = require('mongoose') +const RccSchema = new mongoose.Schema({ + PlaceId: {type: Number, required: true}, + Port: {type: Number, required: true}, + Status: {type: Number, required: true}, +}, +{collection: 'RCC'} +) +const model = mongoose.model('RccSchema', RccSchema) + +module.exports = model \ No newline at end of file diff --git a/model/rcc2014.js b/model/rcc2014.js new file mode 100644 index 0000000..cf4cbec --- /dev/null +++ b/model/rcc2014.js @@ -0,0 +1,10 @@ +const mongoose = require('mongoose') +const Rcc2014Schema = new mongoose.Schema({ + PlaceId: {type: Number, required: true}, + Port: {type: Number, required: true} +}, +{collection: 'RCC2014'} +) +const model = mongoose.model('Rcc2014Schema', Rcc2014Schema) + +module.exports = model \ No newline at end of file diff --git a/model/rcc2018.js b/model/rcc2018.js new file mode 100644 index 0000000..cda04c5 --- /dev/null +++ b/model/rcc2018.js @@ -0,0 +1,11 @@ +const mongoose = require('mongoose') +const Rcc2018Schema = new mongoose.Schema({ + PlaceId: {type: Number, required: true}, + Port: {type: Number, required: true}, + Status: {type: Number, required: true}, +}, +{collection: 'RCC2018'} +) +const model = mongoose.model('Rcc2018Schema', Rcc2018Schema) + +module.exports = model \ No newline at end of file diff --git a/model/rcc2020.js b/model/rcc2020.js new file mode 100644 index 0000000..3cebd7c --- /dev/null +++ b/model/rcc2020.js @@ -0,0 +1,11 @@ +const mongoose = require('mongoose') +const Rcc2020Schema = new mongoose.Schema({ + PlaceId: {type: Number, required: true}, + Port: {type: Number, required: true}, + Status: {type: Number, required: true}, +}, +{collection: 'RCC2020'} +) +const model = mongoose.model('Rcc2020Schema', Rcc2020Schema) + +module.exports = model \ No newline at end of file diff --git a/model/user.js b/model/user.js new file mode 100644 index 0000000..699a4ae --- /dev/null +++ b/model/user.js @@ -0,0 +1,62 @@ +const mongoose = require('mongoose') +var uniqueValidator = require('mongoose-unique-validator'); +const UserSchema = new mongoose.Schema({ + username: {type: String, required: true, unique: true,uniqueCaseInsensitive: true}, + password: {type: String, required: true}, + coins: {type: Number, required: true}, + admin: {type: Boolean, required: true}, + ugcpermission: {type: Boolean, required: false}, + userid: {type: Number, required: true, index: true}, + moderation: {type: String, required: true}, + moderationhistory: {type: Object, required: false}, + inventory: {type: Object, required: false}, + colors: {type: Object, required: false}, + joindate: {type: String, required: true}, + lastclaimofcurrency: {type: Number, required: true}, + discordid: {type: String, required: false}, + gamejoin: {type: String, required: false}, + gamejoin2018: {type: String, required: false}, + gamejoin2020: {type: String, required: false}, + twofasecrets: {type: String, required: false}, + followers: {type: Object, required: false}, + friends: {type: Object, required: false}, + friendrequests: {type: Object, required: false}, + membership: {type: String, required: true}, + badges: {type: Object, required: false}, + status: {type: String, required: false}, + timesincelastrequest: {type: Number, required: true}, + avatartype: {type: String, required: false}, + bio: {type: String, required: false}, + recentlyplayed: {type: [{id: Number}], required: false}, + css: {type: String, required: false}, + aboutme: {type: String, required: false}, + lastfeedsharetime: {type: Number, required: false}, + feed: [{posterid: Number, content: String, date: Number, moderated: Boolean}], required: false}, + +{collection: 'users'} +) +UserSchema.plugin(uniqueValidator) + +UserSchema.virtual('recentlyplayedgames', { + ref: 'GamesSchema', + localField: 'recentlyplayed.id', + foreignField: 'idofgame' +}) + +UserSchema.virtual('friendsdata', { + ref: 'UserSchema', + localField: 'friends.userid', + foreignField: 'userid' +}) + +UserSchema.virtual('feed.userdata', { + ref: 'UserSchema', + localField: 'feed.posterid', + foreignField: 'userid', + justOne: true +}) + + +const model = mongoose.model('UserSchema', UserSchema) + +module.exports = model \ No newline at end of file diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..c805eb2 --- /dev/null +++ b/package-lock.json @@ -0,0 +1,8812 @@ +{ + "name": "datastoreservice", + "version": "1.0.0", + "lockfileVersion": 2, + "requires": true, + "packages": { + "": { + "name": "datastoreservice", + "version": "1.0.0", + "license": "ISC", + "dependencies": { + "@mfd/rbxdatastoreservice": "^2.3.10", + "@yaireo/relative-time": "^1.0.3", + "atob": "^2.1.2", + "bcrypt": "^5.0.1", + "body-parser": "^1.20.0", + "connect-flash": "^0.1.1", + "cookie-parser": "^1.4.6", + "cors": "^2.8.5", + "daisyui": "^2.24.2", + "dotenv": "^16.0.1", + "easy-soap-request": "^4.8.0", + "esbuild": "0.17.4", + "express": "^4.18.1", + "express-flash-message": "^2.1.0", + "express-prom-bundle": "^6.5.0", + "express-rate-limit": "^6.7.0", + "express-session": "^1.17.3", + "file-type-checker": "^1.0.4", + "get-port": "^6.1.2", + "get-port-please": "^2.6.1", + "helmet": "^5.1.1", + "jsonwebtoken": "^9.0.0", + "mongo-sanitize": "^1.1.0", + "mongoose": "^6.5.2", + "mongoose-unique-validator": "^3.1.0", + "multer": "^1.4.5-lts.1", + "node-fetch": "^3.2.10", + "png-validator": "^1.1.0", + "prom-client": "^14.1.0", + "qrcode": "^1.5.1", + "redis": "^4.6.5", + "redis-om": "^0.4.0-beta.3", + "req-flash": "^0.0.3", + "speakeasy": "^2.0.0", + "xml-js": "^1.6.11", + "xss": "^1.0.13" + }, + "devDependencies": { + "cross-env": "^7.0.3", + "nodemon": "^2.0.19" + } + }, + "node_modules/@aws-crypto/ie11-detection": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@aws-crypto/ie11-detection/-/ie11-detection-3.0.0.tgz", + "integrity": "sha512-341lBBkiY1DfDNKai/wXM3aujNBkXR7tq1URPQDL9wi3AUbI80NR74uF1TXHMm7po1AcnFk8iu2S2IeU/+/A+Q==", + "optional": true, + "dependencies": { + "tslib": "^1.11.1" + } + }, + "node_modules/@aws-crypto/ie11-detection/node_modules/tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", + "optional": true + }, + "node_modules/@aws-crypto/sha256-browser": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@aws-crypto/sha256-browser/-/sha256-browser-3.0.0.tgz", + "integrity": "sha512-8VLmW2B+gjFbU5uMeqtQM6Nj0/F1bro80xQXCW6CQBWgosFWXTx77aeOF5CAIAmbOK64SdMBJdNr6J41yP5mvQ==", + "optional": true, + "dependencies": { + "@aws-crypto/ie11-detection": "^3.0.0", + "@aws-crypto/sha256-js": "^3.0.0", + "@aws-crypto/supports-web-crypto": "^3.0.0", + "@aws-crypto/util": "^3.0.0", + "@aws-sdk/types": "^3.222.0", + "@aws-sdk/util-locate-window": "^3.0.0", + "@aws-sdk/util-utf8-browser": "^3.0.0", + "tslib": "^1.11.1" + } + }, + "node_modules/@aws-crypto/sha256-browser/node_modules/tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", + "optional": true + }, + "node_modules/@aws-crypto/sha256-js": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@aws-crypto/sha256-js/-/sha256-js-3.0.0.tgz", + "integrity": "sha512-PnNN7os0+yd1XvXAy23CFOmTbMaDxgxXtTKHybrJ39Y8kGzBATgBFibWJKH6BhytLI/Zyszs87xCOBNyBig6vQ==", + "optional": true, + "dependencies": { + "@aws-crypto/util": "^3.0.0", + "@aws-sdk/types": "^3.222.0", + "tslib": "^1.11.1" + } + }, + "node_modules/@aws-crypto/sha256-js/node_modules/tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", + "optional": true + }, + "node_modules/@aws-crypto/supports-web-crypto": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@aws-crypto/supports-web-crypto/-/supports-web-crypto-3.0.0.tgz", + "integrity": "sha512-06hBdMwUAb2WFTuGG73LSC0wfPu93xWwo5vL2et9eymgmu3Id5vFAHBbajVWiGhPO37qcsdCap/FqXvJGJWPIg==", + "optional": true, + "dependencies": { + "tslib": "^1.11.1" + } + }, + "node_modules/@aws-crypto/supports-web-crypto/node_modules/tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", + "optional": true + }, + "node_modules/@aws-crypto/util": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@aws-crypto/util/-/util-3.0.0.tgz", + "integrity": "sha512-2OJlpeJpCR48CC8r+uKVChzs9Iungj9wkZrl8Z041DWEWvyIHILYKCPNzJghKsivj+S3mLo6BVc7mBNzdxA46w==", + "optional": true, + "dependencies": { + "@aws-sdk/types": "^3.222.0", + "@aws-sdk/util-utf8-browser": "^3.0.0", + "tslib": "^1.11.1" + } + }, + "node_modules/@aws-crypto/util/node_modules/tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", + "optional": true + }, + "node_modules/@aws-sdk/abort-controller": { + "version": "3.272.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/abort-controller/-/abort-controller-3.272.0.tgz", + "integrity": "sha512-s2TV3phapcTwZNr4qLxbfuQuE9ZMP4RoJdkvRRCkKdm6jslsWLJf2Zlcxti/23hOlINUMYv2iXE2pftIgWGdpg==", + "optional": true, + "dependencies": { + "@aws-sdk/types": "3.272.0", + "tslib": "^2.3.1" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@aws-sdk/client-cognito-identity": { + "version": "3.272.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/client-cognito-identity/-/client-cognito-identity-3.272.0.tgz", + "integrity": "sha512-uMjRWcNvX7SoGaVn0mXWD43+Z1awPahQwGW3riDLfXHZdOgw2oFDhD3Jg5jQ8OzQLUfDvArhE3WyZwlS4muMuQ==", + "optional": true, + "dependencies": { + "@aws-crypto/sha256-browser": "3.0.0", + "@aws-crypto/sha256-js": "3.0.0", + "@aws-sdk/client-sts": "3.272.0", + "@aws-sdk/config-resolver": "3.272.0", + "@aws-sdk/credential-provider-node": "3.272.0", + "@aws-sdk/fetch-http-handler": "3.272.0", + "@aws-sdk/hash-node": "3.272.0", + "@aws-sdk/invalid-dependency": "3.272.0", + "@aws-sdk/middleware-content-length": "3.272.0", + "@aws-sdk/middleware-endpoint": "3.272.0", + "@aws-sdk/middleware-host-header": "3.272.0", + "@aws-sdk/middleware-logger": "3.272.0", + "@aws-sdk/middleware-recursion-detection": "3.272.0", + "@aws-sdk/middleware-retry": "3.272.0", + "@aws-sdk/middleware-serde": "3.272.0", + "@aws-sdk/middleware-signing": "3.272.0", + "@aws-sdk/middleware-stack": "3.272.0", + "@aws-sdk/middleware-user-agent": "3.272.0", + "@aws-sdk/node-config-provider": "3.272.0", + "@aws-sdk/node-http-handler": "3.272.0", + "@aws-sdk/protocol-http": "3.272.0", + "@aws-sdk/smithy-client": "3.272.0", + "@aws-sdk/types": "3.272.0", + "@aws-sdk/url-parser": "3.272.0", + "@aws-sdk/util-base64": "3.208.0", + "@aws-sdk/util-body-length-browser": "3.188.0", + "@aws-sdk/util-body-length-node": "3.208.0", + "@aws-sdk/util-defaults-mode-browser": "3.272.0", + "@aws-sdk/util-defaults-mode-node": "3.272.0", + "@aws-sdk/util-endpoints": "3.272.0", + "@aws-sdk/util-retry": "3.272.0", + "@aws-sdk/util-user-agent-browser": "3.272.0", + "@aws-sdk/util-user-agent-node": "3.272.0", + "@aws-sdk/util-utf8": "3.254.0", + "tslib": "^2.3.1" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@aws-sdk/client-sso": { + "version": "3.272.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/client-sso/-/client-sso-3.272.0.tgz", + "integrity": "sha512-xn9a0IGONwQIARmngThoRhF1lLGjHAD67sUaShgIMaIMc6ipVYN6alWG1VuUpoUQ6iiwMEt0CHdfCyLyUV/fTA==", + "optional": true, + "dependencies": { + "@aws-crypto/sha256-browser": "3.0.0", + "@aws-crypto/sha256-js": "3.0.0", + "@aws-sdk/config-resolver": "3.272.0", + "@aws-sdk/fetch-http-handler": "3.272.0", + "@aws-sdk/hash-node": "3.272.0", + "@aws-sdk/invalid-dependency": "3.272.0", + "@aws-sdk/middleware-content-length": "3.272.0", + "@aws-sdk/middleware-endpoint": "3.272.0", + "@aws-sdk/middleware-host-header": "3.272.0", + "@aws-sdk/middleware-logger": "3.272.0", + "@aws-sdk/middleware-recursion-detection": "3.272.0", + "@aws-sdk/middleware-retry": "3.272.0", + "@aws-sdk/middleware-serde": "3.272.0", + "@aws-sdk/middleware-stack": "3.272.0", + "@aws-sdk/middleware-user-agent": "3.272.0", + "@aws-sdk/node-config-provider": "3.272.0", + "@aws-sdk/node-http-handler": "3.272.0", + "@aws-sdk/protocol-http": "3.272.0", + "@aws-sdk/smithy-client": "3.272.0", + "@aws-sdk/types": "3.272.0", + "@aws-sdk/url-parser": "3.272.0", + "@aws-sdk/util-base64": "3.208.0", + "@aws-sdk/util-body-length-browser": "3.188.0", + "@aws-sdk/util-body-length-node": "3.208.0", + "@aws-sdk/util-defaults-mode-browser": "3.272.0", + "@aws-sdk/util-defaults-mode-node": "3.272.0", + "@aws-sdk/util-endpoints": "3.272.0", + "@aws-sdk/util-retry": "3.272.0", + "@aws-sdk/util-user-agent-browser": "3.272.0", + "@aws-sdk/util-user-agent-node": "3.272.0", + "@aws-sdk/util-utf8": "3.254.0", + "tslib": "^2.3.1" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@aws-sdk/client-sso-oidc": { + "version": "3.272.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/client-sso-oidc/-/client-sso-oidc-3.272.0.tgz", + "integrity": "sha512-ECcXu3xoa1yggnGKMTh29eWNHiF/wC6r5Uqbla22eOOosyh0+Z6lkJ3JUSLOUKCkBXA4Cs/tJL9UDFBrKbSlvA==", + "optional": true, + "dependencies": { + "@aws-crypto/sha256-browser": "3.0.0", + "@aws-crypto/sha256-js": "3.0.0", + "@aws-sdk/config-resolver": "3.272.0", + "@aws-sdk/fetch-http-handler": "3.272.0", + "@aws-sdk/hash-node": "3.272.0", + "@aws-sdk/invalid-dependency": "3.272.0", + "@aws-sdk/middleware-content-length": "3.272.0", + "@aws-sdk/middleware-endpoint": "3.272.0", + "@aws-sdk/middleware-host-header": "3.272.0", + "@aws-sdk/middleware-logger": "3.272.0", + "@aws-sdk/middleware-recursion-detection": "3.272.0", + "@aws-sdk/middleware-retry": "3.272.0", + "@aws-sdk/middleware-serde": "3.272.0", + "@aws-sdk/middleware-stack": "3.272.0", + "@aws-sdk/middleware-user-agent": "3.272.0", + "@aws-sdk/node-config-provider": "3.272.0", + "@aws-sdk/node-http-handler": "3.272.0", + "@aws-sdk/protocol-http": "3.272.0", + "@aws-sdk/smithy-client": "3.272.0", + "@aws-sdk/types": "3.272.0", + "@aws-sdk/url-parser": "3.272.0", + "@aws-sdk/util-base64": "3.208.0", + "@aws-sdk/util-body-length-browser": "3.188.0", + "@aws-sdk/util-body-length-node": "3.208.0", + "@aws-sdk/util-defaults-mode-browser": "3.272.0", + "@aws-sdk/util-defaults-mode-node": "3.272.0", + "@aws-sdk/util-endpoints": "3.272.0", + "@aws-sdk/util-retry": "3.272.0", + "@aws-sdk/util-user-agent-browser": "3.272.0", + "@aws-sdk/util-user-agent-node": "3.272.0", + "@aws-sdk/util-utf8": "3.254.0", + "tslib": "^2.3.1" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@aws-sdk/client-sts": { + "version": "3.272.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/client-sts/-/client-sts-3.272.0.tgz", + "integrity": "sha512-kigxCxURp3WupufGaL/LABMb7UQfzAQkKcj9royizL3ItJ0vw5kW/JFrPje5IW1mfLgdPF7PI9ShOjE0fCLTqA==", + "optional": true, + "dependencies": { + "@aws-crypto/sha256-browser": "3.0.0", + "@aws-crypto/sha256-js": "3.0.0", + "@aws-sdk/config-resolver": "3.272.0", + "@aws-sdk/credential-provider-node": "3.272.0", + "@aws-sdk/fetch-http-handler": "3.272.0", + "@aws-sdk/hash-node": "3.272.0", + "@aws-sdk/invalid-dependency": "3.272.0", + "@aws-sdk/middleware-content-length": "3.272.0", + "@aws-sdk/middleware-endpoint": "3.272.0", + "@aws-sdk/middleware-host-header": "3.272.0", + "@aws-sdk/middleware-logger": "3.272.0", + "@aws-sdk/middleware-recursion-detection": "3.272.0", + "@aws-sdk/middleware-retry": "3.272.0", + "@aws-sdk/middleware-sdk-sts": "3.272.0", + "@aws-sdk/middleware-serde": "3.272.0", + "@aws-sdk/middleware-signing": "3.272.0", + "@aws-sdk/middleware-stack": "3.272.0", + "@aws-sdk/middleware-user-agent": "3.272.0", + "@aws-sdk/node-config-provider": "3.272.0", + "@aws-sdk/node-http-handler": "3.272.0", + "@aws-sdk/protocol-http": "3.272.0", + "@aws-sdk/smithy-client": "3.272.0", + "@aws-sdk/types": "3.272.0", + "@aws-sdk/url-parser": "3.272.0", + "@aws-sdk/util-base64": "3.208.0", + "@aws-sdk/util-body-length-browser": "3.188.0", + "@aws-sdk/util-body-length-node": "3.208.0", + "@aws-sdk/util-defaults-mode-browser": "3.272.0", + "@aws-sdk/util-defaults-mode-node": "3.272.0", + "@aws-sdk/util-endpoints": "3.272.0", + "@aws-sdk/util-retry": "3.272.0", + "@aws-sdk/util-user-agent-browser": "3.272.0", + "@aws-sdk/util-user-agent-node": "3.272.0", + "@aws-sdk/util-utf8": "3.254.0", + "fast-xml-parser": "4.0.11", + "tslib": "^2.3.1" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@aws-sdk/config-resolver": { + "version": "3.272.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/config-resolver/-/config-resolver-3.272.0.tgz", + "integrity": "sha512-Dr4CffRVNsOp3LRNdpvcH6XuSgXOSLblWliCy/5I86cNl567KVMxujVx6uPrdTXYs2h1rt3MNl6jQGnAiJeTbw==", + "optional": true, + "dependencies": { + "@aws-sdk/signature-v4": "3.272.0", + "@aws-sdk/types": "3.272.0", + "@aws-sdk/util-config-provider": "3.208.0", + "@aws-sdk/util-middleware": "3.272.0", + "tslib": "^2.3.1" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@aws-sdk/credential-provider-cognito-identity": { + "version": "3.272.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-cognito-identity/-/credential-provider-cognito-identity-3.272.0.tgz", + "integrity": "sha512-rVx0rtQjbiYCM0nah2rB/2ut2YJYPpRr1AbW/Hd4r/PI+yiusrmXAwuT4HIW2yr34zsQMPi1jZ3WHN9Rn9mzlg==", + "optional": true, + "dependencies": { + "@aws-sdk/client-cognito-identity": "3.272.0", + "@aws-sdk/property-provider": "3.272.0", + "@aws-sdk/types": "3.272.0", + "tslib": "^2.3.1" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@aws-sdk/credential-provider-env": { + "version": "3.272.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-env/-/credential-provider-env-3.272.0.tgz", + "integrity": "sha512-QI65NbLnKLYHyTYhXaaUrq6eVsCCrMUb05WDA7+TJkWkjXesovpjc8vUKgFiLSxmgKmb2uOhHNcDyObKMrYQFw==", + "optional": true, + "dependencies": { + "@aws-sdk/property-provider": "3.272.0", + "@aws-sdk/types": "3.272.0", + "tslib": "^2.3.1" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@aws-sdk/credential-provider-imds": { + "version": "3.272.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-imds/-/credential-provider-imds-3.272.0.tgz", + "integrity": "sha512-wwAfVY1jTFQEfxVfdYD5r5ieYGl+0g4nhekVxNMqE8E1JeRDd18OqiwAflzpgBIqxfqvCUkf+vl5JYyacMkNAQ==", + "optional": true, + "dependencies": { + "@aws-sdk/node-config-provider": "3.272.0", + "@aws-sdk/property-provider": "3.272.0", + "@aws-sdk/types": "3.272.0", + "@aws-sdk/url-parser": "3.272.0", + "tslib": "^2.3.1" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@aws-sdk/credential-provider-ini": { + "version": "3.272.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-ini/-/credential-provider-ini-3.272.0.tgz", + "integrity": "sha512-iE3CDzK5NcupHYjfYjBdY1JCy8NLEoRUsboEjG0i0gy3S3jVpDeVHX1dLVcL/slBFj6GiM7SoNV/UfKnJf3Gaw==", + "optional": true, + "dependencies": { + "@aws-sdk/credential-provider-env": "3.272.0", + "@aws-sdk/credential-provider-imds": "3.272.0", + "@aws-sdk/credential-provider-process": "3.272.0", + "@aws-sdk/credential-provider-sso": "3.272.0", + "@aws-sdk/credential-provider-web-identity": "3.272.0", + "@aws-sdk/property-provider": "3.272.0", + "@aws-sdk/shared-ini-file-loader": "3.272.0", + "@aws-sdk/types": "3.272.0", + "tslib": "^2.3.1" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@aws-sdk/credential-provider-node": { + "version": "3.272.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-node/-/credential-provider-node-3.272.0.tgz", + "integrity": "sha512-FI8uvwM1IxiRSvbkdKv8DZG5vxU3ezaseTaB1fHWTxEUFb0pWIoHX9oeOKer9Fj31SOZTCNAaYFURbSRuZlm/w==", + "optional": true, + "dependencies": { + "@aws-sdk/credential-provider-env": "3.272.0", + "@aws-sdk/credential-provider-imds": "3.272.0", + "@aws-sdk/credential-provider-ini": "3.272.0", + "@aws-sdk/credential-provider-process": "3.272.0", + "@aws-sdk/credential-provider-sso": "3.272.0", + "@aws-sdk/credential-provider-web-identity": "3.272.0", + "@aws-sdk/property-provider": "3.272.0", + "@aws-sdk/shared-ini-file-loader": "3.272.0", + "@aws-sdk/types": "3.272.0", + "tslib": "^2.3.1" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@aws-sdk/credential-provider-process": { + "version": "3.272.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-process/-/credential-provider-process-3.272.0.tgz", + "integrity": "sha512-hiCAjWWm2PeBFp5cjkxqyam/XADjiS+e7GzwC34TbZn3LisS0uoweLojj9tD11NnnUhyhbLteUvu5+rotOLwrg==", + "optional": true, + "dependencies": { + "@aws-sdk/property-provider": "3.272.0", + "@aws-sdk/shared-ini-file-loader": "3.272.0", + "@aws-sdk/types": "3.272.0", + "tslib": "^2.3.1" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@aws-sdk/credential-provider-sso": { + "version": "3.272.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-sso/-/credential-provider-sso-3.272.0.tgz", + "integrity": "sha512-hwYaulyiU/7chKKFecxCeo0ls6Dxs7h+5EtoYcJJGvfpvCncyOZF35t00OAsCd3Wo7HkhhgfpGdb6dmvCNQAZQ==", + "optional": true, + "dependencies": { + "@aws-sdk/client-sso": "3.272.0", + "@aws-sdk/property-provider": "3.272.0", + "@aws-sdk/shared-ini-file-loader": "3.272.0", + "@aws-sdk/token-providers": "3.272.0", + "@aws-sdk/types": "3.272.0", + "tslib": "^2.3.1" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@aws-sdk/credential-provider-web-identity": { + "version": "3.272.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-web-identity/-/credential-provider-web-identity-3.272.0.tgz", + "integrity": "sha512-ImrHMkcgneGa/HadHAQXPwOrX26sAKuB8qlMxZF/ZCM2B55u8deY+ZVkVuraeKb7YsahMGehPFOfRAF6mvFI5Q==", + "optional": true, + "dependencies": { + "@aws-sdk/property-provider": "3.272.0", + "@aws-sdk/types": "3.272.0", + "tslib": "^2.3.1" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@aws-sdk/credential-providers": { + "version": "3.272.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-providers/-/credential-providers-3.272.0.tgz", + "integrity": "sha512-ucd6Xq6aBMf+nM4uz5zkjL11mwaE5BV1Q4hkulaGu2v1dRA8n6zhLJk/sb4hOJ7leelqMJMErlbQ2T3MkYvlJQ==", + "optional": true, + "dependencies": { + "@aws-sdk/client-cognito-identity": "3.272.0", + "@aws-sdk/client-sso": "3.272.0", + "@aws-sdk/client-sts": "3.272.0", + "@aws-sdk/credential-provider-cognito-identity": "3.272.0", + "@aws-sdk/credential-provider-env": "3.272.0", + "@aws-sdk/credential-provider-imds": "3.272.0", + "@aws-sdk/credential-provider-ini": "3.272.0", + "@aws-sdk/credential-provider-node": "3.272.0", + "@aws-sdk/credential-provider-process": "3.272.0", + "@aws-sdk/credential-provider-sso": "3.272.0", + "@aws-sdk/credential-provider-web-identity": "3.272.0", + "@aws-sdk/property-provider": "3.272.0", + "@aws-sdk/shared-ini-file-loader": "3.272.0", + "@aws-sdk/types": "3.272.0", + "tslib": "^2.3.1" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@aws-sdk/fetch-http-handler": { + "version": "3.272.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/fetch-http-handler/-/fetch-http-handler-3.272.0.tgz", + "integrity": "sha512-1Qhm9e0RbS1Xf4CZqUbQyUMkDLd7GrsRXWIvm9b86/vgeV8/WnjO3CMue9D51nYgcyQORhYXv6uVjAYCWbUExA==", + "optional": true, + "dependencies": { + "@aws-sdk/protocol-http": "3.272.0", + "@aws-sdk/querystring-builder": "3.272.0", + "@aws-sdk/types": "3.272.0", + "@aws-sdk/util-base64": "3.208.0", + "tslib": "^2.3.1" + } + }, + "node_modules/@aws-sdk/hash-node": { + "version": "3.272.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/hash-node/-/hash-node-3.272.0.tgz", + "integrity": "sha512-40dwND+iAm3VtPHPZu7/+CIdVJFk2s0cWZt1lOiMPMSXycSYJ45wMk7Lly3uoqRx0uWfFK5iT2OCv+fJi5jTng==", + "optional": true, + "dependencies": { + "@aws-sdk/types": "3.272.0", + "@aws-sdk/util-buffer-from": "3.208.0", + "@aws-sdk/util-utf8": "3.254.0", + "tslib": "^2.3.1" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@aws-sdk/invalid-dependency": { + "version": "3.272.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/invalid-dependency/-/invalid-dependency-3.272.0.tgz", + "integrity": "sha512-ysW6wbjl1Y78txHUQ/Tldj2Rg1BI7rpMO9B9xAF6yAX3mQ7t6SUPQG/ewOGvH2208NBIl3qP5e/hDf0Q6r/1iw==", + "optional": true, + "dependencies": { + "@aws-sdk/types": "3.272.0", + "tslib": "^2.3.1" + } + }, + "node_modules/@aws-sdk/is-array-buffer": { + "version": "3.201.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/is-array-buffer/-/is-array-buffer-3.201.0.tgz", + "integrity": "sha512-UPez5qLh3dNgt0DYnPD/q0mVJY84rA17QE26hVNOW3fAji8W2wrwrxdacWOxyXvlxWsVRcKmr+lay1MDqpAMfg==", + "optional": true, + "dependencies": { + "tslib": "^2.3.1" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@aws-sdk/middleware-content-length": { + "version": "3.272.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-content-length/-/middleware-content-length-3.272.0.tgz", + "integrity": "sha512-sAbDZSTNmLX+UTGwlUHJBWy0QGQkiClpHwVFXACon+aG0ySLNeRKEVYs6NCPYldw4cj6hveLUn50cX44ukHErw==", + "optional": true, + "dependencies": { + "@aws-sdk/protocol-http": "3.272.0", + "@aws-sdk/types": "3.272.0", + "tslib": "^2.3.1" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@aws-sdk/middleware-endpoint": { + "version": "3.272.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-endpoint/-/middleware-endpoint-3.272.0.tgz", + "integrity": "sha512-Dk3JVjj7SxxoUKv3xGiOeBksvPtFhTDrVW75XJ98Ymv8gJH5L1sq4hIeJAHRKogGiRFq2J73mnZSlM9FVXEylg==", + "optional": true, + "dependencies": { + "@aws-sdk/middleware-serde": "3.272.0", + "@aws-sdk/protocol-http": "3.272.0", + "@aws-sdk/signature-v4": "3.272.0", + "@aws-sdk/types": "3.272.0", + "@aws-sdk/url-parser": "3.272.0", + "@aws-sdk/util-config-provider": "3.208.0", + "@aws-sdk/util-middleware": "3.272.0", + "tslib": "^2.3.1" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@aws-sdk/middleware-host-header": { + "version": "3.272.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-host-header/-/middleware-host-header-3.272.0.tgz", + "integrity": "sha512-Q8K7bMMFZnioUXpxn57HIt4p+I63XaNAawMLIZ5B4F2piyukbQeM9q2XVKMGwqLvijHR8CyP5nHrtKqVuINogQ==", + "optional": true, + "dependencies": { + "@aws-sdk/protocol-http": "3.272.0", + "@aws-sdk/types": "3.272.0", + "tslib": "^2.3.1" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@aws-sdk/middleware-logger": { + "version": "3.272.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-logger/-/middleware-logger-3.272.0.tgz", + "integrity": "sha512-u2SQ0hWrFwxbxxYMG5uMEgf01pQY5jauK/LYWgGIvuCmFgiyRQQP3oN7kkmsxnS9MWmNmhbyQguX2NY02s5e9w==", + "optional": true, + "dependencies": { + "@aws-sdk/types": "3.272.0", + "tslib": "^2.3.1" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@aws-sdk/middleware-recursion-detection": { + "version": "3.272.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-recursion-detection/-/middleware-recursion-detection-3.272.0.tgz", + "integrity": "sha512-Gp/eKWeUWVNiiBdmUM2qLkBv+VLSJKoWAO+aKmyxxwjjmWhE0FrfA1NQ1a3g+NGMhRbAfQdaYswRAKsul70ISg==", + "optional": true, + "dependencies": { + "@aws-sdk/protocol-http": "3.272.0", + "@aws-sdk/types": "3.272.0", + "tslib": "^2.3.1" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@aws-sdk/middleware-retry": { + "version": "3.272.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-retry/-/middleware-retry-3.272.0.tgz", + "integrity": "sha512-pCGvHM7C76VbO/dFerH+Vwf7tGv7j+e+eGrvhQ35mRghCtfIou/WMfTZlD1TNee93crrAQQVZKjtW3dMB3WCzg==", + "optional": true, + "dependencies": { + "@aws-sdk/protocol-http": "3.272.0", + "@aws-sdk/service-error-classification": "3.272.0", + "@aws-sdk/types": "3.272.0", + "@aws-sdk/util-middleware": "3.272.0", + "@aws-sdk/util-retry": "3.272.0", + "tslib": "^2.3.1", + "uuid": "^8.3.2" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@aws-sdk/middleware-sdk-sts": { + "version": "3.272.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-sdk-sts/-/middleware-sdk-sts-3.272.0.tgz", + "integrity": "sha512-VvYPg7LrDIjUOWueSzo2wBzcNG7dw+cmzV6zAKaLxf0RC5jeAP4hE0OzDiiZfDrjNghEzgq/V+0NO+LewqYL9Q==", + "optional": true, + "dependencies": { + "@aws-sdk/middleware-signing": "3.272.0", + "@aws-sdk/property-provider": "3.272.0", + "@aws-sdk/protocol-http": "3.272.0", + "@aws-sdk/signature-v4": "3.272.0", + "@aws-sdk/types": "3.272.0", + "tslib": "^2.3.1" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@aws-sdk/middleware-serde": { + "version": "3.272.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-serde/-/middleware-serde-3.272.0.tgz", + "integrity": "sha512-kW1uOxgPSwtXPB5rm3QLdWomu42lkYpQL94tM1BjyFOWmBLO2lQhk5a7Dw6HkTozT9a+vxtscLChRa6KZe61Hw==", + "optional": true, + "dependencies": { + "@aws-sdk/types": "3.272.0", + "tslib": "^2.3.1" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@aws-sdk/middleware-signing": { + "version": "3.272.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-signing/-/middleware-signing-3.272.0.tgz", + "integrity": "sha512-4LChFK4VAR91X+dupqM8fQqYhFGE0G4Bf9rQlVTgGSbi2KUOmpqXzH0/WKE228nKuEhmH8+Qd2VPSAE2JcyAUA==", + "optional": true, + "dependencies": { + "@aws-sdk/property-provider": "3.272.0", + "@aws-sdk/protocol-http": "3.272.0", + "@aws-sdk/signature-v4": "3.272.0", + "@aws-sdk/types": "3.272.0", + "@aws-sdk/util-middleware": "3.272.0", + "tslib": "^2.3.1" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@aws-sdk/middleware-stack": { + "version": "3.272.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-stack/-/middleware-stack-3.272.0.tgz", + "integrity": "sha512-jhwhknnPBGhfXAGV5GXUWfEhDFoP/DN8MPCO2yC5OAxyp6oVJ8lTPLkZYMTW5VL0c0eG44dXpF4Ib01V+PlDrQ==", + "optional": true, + "dependencies": { + "tslib": "^2.3.1" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@aws-sdk/middleware-user-agent": { + "version": "3.272.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-user-agent/-/middleware-user-agent-3.272.0.tgz", + "integrity": "sha512-Qy7/0fsDJxY5l0bEk7WKDfqb4Os/sCAgFR2zEvrhDtbkhYPf72ysvg/nRUTncmCbo8tOok4SJii2myk8KMfjjw==", + "optional": true, + "dependencies": { + "@aws-sdk/protocol-http": "3.272.0", + "@aws-sdk/types": "3.272.0", + "tslib": "^2.3.1" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@aws-sdk/node-config-provider": { + "version": "3.272.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/node-config-provider/-/node-config-provider-3.272.0.tgz", + "integrity": "sha512-YYCIBh9g1EQo7hm2l22HX5Yr9RoPQ2RCvhzKvF1n1e8t1QH4iObQrYUtqHG4khcm64Cft8C5MwZmgzHbya5Z6Q==", + "optional": true, + "dependencies": { + "@aws-sdk/property-provider": "3.272.0", + "@aws-sdk/shared-ini-file-loader": "3.272.0", + "@aws-sdk/types": "3.272.0", + "tslib": "^2.3.1" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@aws-sdk/node-http-handler": { + "version": "3.272.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/node-http-handler/-/node-http-handler-3.272.0.tgz", + "integrity": "sha512-VrW9PjhhngeyYp4yGYPe5S0vgZH6NwU3Po9xAgayUeE37Inr7LS1YteFMHdpgsUUeNXnh7d06CXqHo1XjtqOKA==", + "optional": true, + "dependencies": { + "@aws-sdk/abort-controller": "3.272.0", + "@aws-sdk/protocol-http": "3.272.0", + "@aws-sdk/querystring-builder": "3.272.0", + "@aws-sdk/types": "3.272.0", + "tslib": "^2.3.1" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@aws-sdk/property-provider": { + "version": "3.272.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/property-provider/-/property-provider-3.272.0.tgz", + "integrity": "sha512-V1pZTaH5eqpAt8O8CzbItHhOtzIfFuWymvwZFkAtwKuaHpnl7jjrTouV482zoq8AD/fF+VVSshwBKYA7bhidIw==", + "optional": true, + "dependencies": { + "@aws-sdk/types": "3.272.0", + "tslib": "^2.3.1" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@aws-sdk/protocol-http": { + "version": "3.272.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/protocol-http/-/protocol-http-3.272.0.tgz", + "integrity": "sha512-4JQ54v5Yn08jspNDeHo45CaSn1CvTJqS1Ywgr79eU6jBExtguOWv6LNtwVSBD9X37v88iqaxt8iu1Z3pZZAJeg==", + "optional": true, + "dependencies": { + "@aws-sdk/types": "3.272.0", + "tslib": "^2.3.1" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@aws-sdk/querystring-builder": { + "version": "3.272.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/querystring-builder/-/querystring-builder-3.272.0.tgz", + "integrity": "sha512-ndo++7GkdCj5tBXE6rGcITpSpZS4PfyV38wntGYAlj9liL1omk3bLZRY6uzqqkJpVHqbg2fD7O2qHNItzZgqhw==", + "optional": true, + "dependencies": { + "@aws-sdk/types": "3.272.0", + "@aws-sdk/util-uri-escape": "3.201.0", + "tslib": "^2.3.1" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@aws-sdk/querystring-parser": { + "version": "3.272.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/querystring-parser/-/querystring-parser-3.272.0.tgz", + "integrity": "sha512-5oS4/9n6N1LZW9tI3qq/0GnCuWoOXRgcHVB+AJLRBvDbEe+GI+C/xK1tKLsfpDNgsQJHc4IPQoIt4megyZ/1+A==", + "optional": true, + "dependencies": { + "@aws-sdk/types": "3.272.0", + "tslib": "^2.3.1" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@aws-sdk/service-error-classification": { + "version": "3.272.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/service-error-classification/-/service-error-classification-3.272.0.tgz", + "integrity": "sha512-REoltM1LK9byyIufLqx9znhSolPcHQgVHIA2S0zu5sdt5qER4OubkLAXuo4MBbisUTmh8VOOvIyUb5ijZCXq1w==", + "optional": true, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@aws-sdk/shared-ini-file-loader": { + "version": "3.272.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/shared-ini-file-loader/-/shared-ini-file-loader-3.272.0.tgz", + "integrity": "sha512-lzFPohp5sy2XvwFjZIzLVCRpC0i5cwBiaXmFzXYQZJm6FSCszHO4ax+m9yrtlyVFF/2YPWl+/bzNthy4aJtseA==", + "optional": true, + "dependencies": { + "@aws-sdk/types": "3.272.0", + "tslib": "^2.3.1" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@aws-sdk/signature-v4": { + "version": "3.272.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/signature-v4/-/signature-v4-3.272.0.tgz", + "integrity": "sha512-pWxnHG1NqJWMwlhJ6NHNiUikOL00DHROmxah6krJPMPq4I3am2KY2Rs/8ouWhnEXKaHAv4EQhSALJ+7Mq5S4/A==", + "optional": true, + "dependencies": { + "@aws-sdk/is-array-buffer": "3.201.0", + "@aws-sdk/types": "3.272.0", + "@aws-sdk/util-hex-encoding": "3.201.0", + "@aws-sdk/util-middleware": "3.272.0", + "@aws-sdk/util-uri-escape": "3.201.0", + "@aws-sdk/util-utf8": "3.254.0", + "tslib": "^2.3.1" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@aws-sdk/smithy-client": { + "version": "3.272.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/smithy-client/-/smithy-client-3.272.0.tgz", + "integrity": "sha512-pvdleJ3kaRvyRw2pIZnqL85ZlWBOZrPKmR9I69GCvlyrfdjRBhbSjIEZ+sdhZudw0vdHxq25AGoLUXhofVLf5Q==", + "optional": true, + "dependencies": { + "@aws-sdk/middleware-stack": "3.272.0", + "@aws-sdk/types": "3.272.0", + "tslib": "^2.3.1" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@aws-sdk/token-providers": { + "version": "3.272.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/token-providers/-/token-providers-3.272.0.tgz", + "integrity": "sha512-0GISJ4IKN2rXvbSddB775VjBGSKhYIGQnAdMqbvxi9LB6pSvVxcH9aIL28G0spiuL+dy3yGQZ8RlJPAyP9JW9A==", + "optional": true, + "dependencies": { + "@aws-sdk/client-sso-oidc": "3.272.0", + "@aws-sdk/property-provider": "3.272.0", + "@aws-sdk/shared-ini-file-loader": "3.272.0", + "@aws-sdk/types": "3.272.0", + "tslib": "^2.3.1" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@aws-sdk/types": { + "version": "3.272.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/types/-/types-3.272.0.tgz", + "integrity": "sha512-MmmL6vxMGP5Bsi+4wRx4mxYlU/LX6M0noOXrDh/x5FfG7/4ZOar/nDxqDadhJtNM88cuWVHZWY59P54JzkGWmA==", + "optional": true, + "dependencies": { + "tslib": "^2.3.1" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@aws-sdk/url-parser": { + "version": "3.272.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/url-parser/-/url-parser-3.272.0.tgz", + "integrity": "sha512-vX/Tx02PlnQ/Kgtf5TnrNDHPNbY+amLZjW0Z1d9vzAvSZhQ4i9Y18yxoRDIaDTCNVRDjdhV8iuctW+05PB5JtQ==", + "optional": true, + "dependencies": { + "@aws-sdk/querystring-parser": "3.272.0", + "@aws-sdk/types": "3.272.0", + "tslib": "^2.3.1" + } + }, + "node_modules/@aws-sdk/util-base64": { + "version": "3.208.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/util-base64/-/util-base64-3.208.0.tgz", + "integrity": "sha512-PQniZph5A6N7uuEOQi+1hnMz/FSOK/8kMFyFO+4DgA1dZ5pcKcn5wiFwHkcTb/BsgVqQa3Jx0VHNnvhlS8JyTg==", + "optional": true, + "dependencies": { + "@aws-sdk/util-buffer-from": "3.208.0", + "tslib": "^2.3.1" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@aws-sdk/util-body-length-browser": { + "version": "3.188.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/util-body-length-browser/-/util-body-length-browser-3.188.0.tgz", + "integrity": "sha512-8VpnwFWXhnZ/iRSl9mTf+VKOX9wDE8QtN4bj9pBfxwf90H1X7E8T6NkiZD3k+HubYf2J94e7DbeHs7fuCPW5Qg==", + "optional": true, + "dependencies": { + "tslib": "^2.3.1" + } + }, + "node_modules/@aws-sdk/util-body-length-node": { + "version": "3.208.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/util-body-length-node/-/util-body-length-node-3.208.0.tgz", + "integrity": "sha512-3zj50e5g7t/MQf53SsuuSf0hEELzMtD8RX8C76f12OSRo2Bca4FLLYHe0TZbxcfQHom8/hOaeZEyTyMogMglqg==", + "optional": true, + "dependencies": { + "tslib": "^2.3.1" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@aws-sdk/util-buffer-from": { + "version": "3.208.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/util-buffer-from/-/util-buffer-from-3.208.0.tgz", + "integrity": "sha512-7L0XUixNEFcLUGPeBF35enCvB9Xl+K6SQsmbrPk1P3mlV9mguWSDQqbOBwY1Ir0OVbD6H/ZOQU7hI/9RtRI0Zw==", + "optional": true, + "dependencies": { + "@aws-sdk/is-array-buffer": "3.201.0", + "tslib": "^2.3.1" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@aws-sdk/util-config-provider": { + "version": "3.208.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/util-config-provider/-/util-config-provider-3.208.0.tgz", + "integrity": "sha512-DSRqwrERUsT34ug+anlMBIFooBEGwM8GejC7q00Y/9IPrQy50KnG5PW2NiTjuLKNi7pdEOlwTSEocJE15eDZIg==", + "optional": true, + "dependencies": { + "tslib": "^2.3.1" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@aws-sdk/util-defaults-mode-browser": { + "version": "3.272.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/util-defaults-mode-browser/-/util-defaults-mode-browser-3.272.0.tgz", + "integrity": "sha512-W8ZVJSZRuUBg8l0JEZzUc+9fKlthVp/cdE+pFeF8ArhZelOLCiaeCrMaZAeJusaFzIpa6cmOYQAjtSMVyrwRtg==", + "optional": true, + "dependencies": { + "@aws-sdk/property-provider": "3.272.0", + "@aws-sdk/types": "3.272.0", + "bowser": "^2.11.0", + "tslib": "^2.3.1" + }, + "engines": { + "node": ">= 10.0.0" + } + }, + "node_modules/@aws-sdk/util-defaults-mode-node": { + "version": "3.272.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/util-defaults-mode-node/-/util-defaults-mode-node-3.272.0.tgz", + "integrity": "sha512-U0NTcbMw6KFk7uz/avBmfxQSTREEiX6JDMH68oN/3ux4AICd2I4jHyxnloSWGuiER1FxZf1dEJ8ZTwy8Ibl21Q==", + "optional": true, + "dependencies": { + "@aws-sdk/config-resolver": "3.272.0", + "@aws-sdk/credential-provider-imds": "3.272.0", + "@aws-sdk/node-config-provider": "3.272.0", + "@aws-sdk/property-provider": "3.272.0", + "@aws-sdk/types": "3.272.0", + "tslib": "^2.3.1" + }, + "engines": { + "node": ">= 10.0.0" + } + }, + "node_modules/@aws-sdk/util-endpoints": { + "version": "3.272.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/util-endpoints/-/util-endpoints-3.272.0.tgz", + "integrity": "sha512-c4MPUaJt2G6gGpoiwIOqDfUa98c1J63RpYvf/spQEKOtC/tF5Gfqlxuq8FnAl5lHnrqj1B9ZXLLxFhHtDR0IiQ==", + "optional": true, + "dependencies": { + "@aws-sdk/types": "3.272.0", + "tslib": "^2.3.1" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@aws-sdk/util-hex-encoding": { + "version": "3.201.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/util-hex-encoding/-/util-hex-encoding-3.201.0.tgz", + "integrity": "sha512-7t1vR1pVxKx0motd3X9rI3m/xNp78p3sHtP5yo4NP4ARpxyJ0fokBomY8ScaH2D/B+U5o9ARxldJUdMqyBlJcA==", + "optional": true, + "dependencies": { + "tslib": "^2.3.1" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@aws-sdk/util-locate-window": { + "version": "3.208.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/util-locate-window/-/util-locate-window-3.208.0.tgz", + "integrity": "sha512-iua1A2+P7JJEDHVgvXrRJSvsnzG7stYSGQnBVphIUlemwl6nN5D+QrgbjECtrbxRz8asYFHSzhdhECqN+tFiBg==", + "optional": true, + "dependencies": { + "tslib": "^2.3.1" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@aws-sdk/util-middleware": { + "version": "3.272.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/util-middleware/-/util-middleware-3.272.0.tgz", + "integrity": "sha512-Abw8m30arbwxqmeMMha5J11ESpHUNmCeSqSzE8/C4B8jZQtHY4kq7f+upzcNIQ11lsd+uzBEzNG3+dDRi0XOJQ==", + "optional": true, + "dependencies": { + "tslib": "^2.3.1" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@aws-sdk/util-retry": { + "version": "3.272.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/util-retry/-/util-retry-3.272.0.tgz", + "integrity": "sha512-Ngha5414LR4gRHURVKC9ZYXsEJhMkm+SJ+44wlzOhavglfdcKKPUsibz5cKY1jpUV7oKECwaxHWpBB8r6h+hOg==", + "optional": true, + "dependencies": { + "@aws-sdk/service-error-classification": "3.272.0", + "tslib": "^2.3.1" + }, + "engines": { + "node": ">= 14.0.0" + } + }, + "node_modules/@aws-sdk/util-uri-escape": { + "version": "3.201.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/util-uri-escape/-/util-uri-escape-3.201.0.tgz", + "integrity": "sha512-TeTWbGx4LU2c5rx0obHeDFeO9HvwYwQtMh1yniBz00pQb6Qt6YVOETVQikRZ+XRQwEyCg/dA375UplIpiy54mA==", + "optional": true, + "dependencies": { + "tslib": "^2.3.1" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@aws-sdk/util-user-agent-browser": { + "version": "3.272.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-browser/-/util-user-agent-browser-3.272.0.tgz", + "integrity": "sha512-Lp5QX5bH6uuwBlIdr7w7OAcAI50ttyskb++yUr9i+SPvj6RI2dsfIBaK4mDg1qUdM5LeUdvIyqwj3XHjFKAAvA==", + "optional": true, + "dependencies": { + "@aws-sdk/types": "3.272.0", + "bowser": "^2.11.0", + "tslib": "^2.3.1" + } + }, + "node_modules/@aws-sdk/util-user-agent-node": { + "version": "3.272.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-node/-/util-user-agent-node-3.272.0.tgz", + "integrity": "sha512-ljK+R3l+Q1LIHrcR+Knhk0rmcSkfFadZ8V+crEGpABf/QUQRg7NkZMsoe814tfBO5F7tMxo8wwwSdaVNNHtoRA==", + "optional": true, + "dependencies": { + "@aws-sdk/node-config-provider": "3.272.0", + "@aws-sdk/types": "3.272.0", + "tslib": "^2.3.1" + }, + "engines": { + "node": ">=14.0.0" + }, + "peerDependencies": { + "aws-crt": ">=1.0.0" + }, + "peerDependenciesMeta": { + "aws-crt": { + "optional": true + } + } + }, + "node_modules/@aws-sdk/util-utf8": { + "version": "3.254.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/util-utf8/-/util-utf8-3.254.0.tgz", + "integrity": "sha512-14Kso/eIt5/qfIBmhEL9L1IfyUqswjSTqO2mY7KOzUZ9SZbwn3rpxmtkhmATkRjD7XIlLKaxBkI7tU9Zjzj8Kw==", + "optional": true, + "dependencies": { + "@aws-sdk/util-buffer-from": "3.208.0", + "tslib": "^2.3.1" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@aws-sdk/util-utf8-browser": { + "version": "3.259.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/util-utf8-browser/-/util-utf8-browser-3.259.0.tgz", + "integrity": "sha512-UvFa/vR+e19XookZF8RzFZBrw2EUkQWxiBW0yYQAhvk3C+QVGl0H3ouca8LDBlBfQKXwmW3huo/59H8rwb1wJw==", + "optional": true, + "dependencies": { + "tslib": "^2.3.1" + } + }, + "node_modules/@esbuild/android-arm": { + "version": "0.17.4", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.17.4.tgz", + "integrity": "sha512-R9GCe2xl2XDSc2XbQB63mFiFXHIVkOP+ltIxICKXqUPrFX97z6Z7vONCLQM1pSOLGqfLrGi3B7nbhxmFY/fomg==", + "cpu": [ + "arm" + ], + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/android-arm64": { + "version": "0.17.4", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.17.4.tgz", + "integrity": "sha512-91VwDrl4EpxBCiG6h2LZZEkuNvVZYJkv2T9gyLG/mhGG1qrM7i5SwUcg/hlSPnL/4hDT0TFcF35/XMGSn0bemg==", + "cpu": [ + "arm64" + ], + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/android-x64": { + "version": "0.17.4", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.17.4.tgz", + "integrity": "sha512-mGSqhEPL7029XL7QHNPxPs15JVa02hvZvysUcyMP9UXdGFwncl2WU0bqx+Ysgzd+WAbv8rfNa73QveOxAnAM2w==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/darwin-arm64": { + "version": "0.17.4", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.17.4.tgz", + "integrity": "sha512-tTyJRM9dHvlMPt1KrBFVB5OW1kXOsRNvAPtbzoKazd5RhD5/wKlXk1qR2MpaZRYwf4WDMadt0Pv0GwxB41CVow==", + "cpu": [ + "arm64" + ], + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/darwin-x64": { + "version": "0.17.4", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.17.4.tgz", + "integrity": "sha512-phQuC2Imrb3TjOJwLN8EO50nb2FHe8Ew0OwgZDH1SV6asIPGudnwTQtighDF2EAYlXChLoMJwqjAp4vAaACq6w==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/freebsd-arm64": { + "version": "0.17.4", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.17.4.tgz", + "integrity": "sha512-oH6JUZkocgmjzzYaP5juERLpJQSwazdjZrTPgLRmAU2bzJ688x0vfMB/WTv4r58RiecdHvXOPC46VtsMy/mepg==", + "cpu": [ + "arm64" + ], + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/freebsd-x64": { + "version": "0.17.4", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.17.4.tgz", + "integrity": "sha512-U4iWGn/9TrAfpAdfd56eO0pRxIgb0a8Wj9jClrhT8hvZnOnS4dfMPW7o4fn15D/KqoiVYHRm43jjBaTt3g/2KA==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-arm": { + "version": "0.17.4", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.17.4.tgz", + "integrity": "sha512-S2s9xWTGMTa/fG5EyMGDeL0wrWVgOSQcNddJWgu6rG1NCSXJHs76ZP9AsxjB3f2nZow9fWOyApklIgiTGZKhiw==", + "cpu": [ + "arm" + ], + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-arm64": { + "version": "0.17.4", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.17.4.tgz", + "integrity": "sha512-UkGfQvYlwOaeYJzZG4cLV0hCASzQZnKNktRXUo3/BMZvdau40AOz9GzmGA063n1piq6VrFFh43apRDQx8hMP2w==", + "cpu": [ + "arm64" + ], + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-ia32": { + "version": "0.17.4", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.17.4.tgz", + "integrity": "sha512-3lqFi4VFo/Vwvn77FZXeLd0ctolIJH/uXkH3yNgEk89Eh6D3XXAC9/iTPEzeEpsNE5IqGIsFa5Z0iPeOh25IyA==", + "cpu": [ + "ia32" + ], + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-loong64": { + "version": "0.17.4", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.17.4.tgz", + "integrity": "sha512-HqpWZkVslDHIwdQ9D+gk7NuAulgQvRxF9no54ut/M55KEb3mi7sQS3GwpPJzSyzzP0UkjQVN7/tbk88/CaX4EQ==", + "cpu": [ + "loong64" + ], + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-mips64el": { + "version": "0.17.4", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.17.4.tgz", + "integrity": "sha512-d/nMCKKh/SVDbqR9ju+b78vOr0tNXtfBjcp5vfHONCCOAL9ad8gN9dC/u+UnH939pz7wO+0u/x9y1MaZcb/lKA==", + "cpu": [ + "mips64el" + ], + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-ppc64": { + "version": "0.17.4", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.17.4.tgz", + "integrity": "sha512-lOD9p2dmjZcNiTU+sGe9Nn6G3aYw3k0HBJies1PU0j5IGfp6tdKOQ6mzfACRFCqXjnBuTqK7eTYpwx09O5LLfg==", + "cpu": [ + "ppc64" + ], + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-riscv64": { + "version": "0.17.4", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.17.4.tgz", + "integrity": "sha512-mTGnwWwVshAjGsd8rP+K6583cPDgxOunsqqldEYij7T5/ysluMHKqUIT4TJHfrDFadUwrghAL6QjER4FeqQXoA==", + "cpu": [ + "riscv64" + ], + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-s390x": { + "version": "0.17.4", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.17.4.tgz", + "integrity": "sha512-AQYuUGp50XM29/N/dehADxvc2bUqDcoqrVuijop1Wv72SyxT6dDB9wjUxuPZm2HwIM876UoNNBMVd+iX/UTKVQ==", + "cpu": [ + "s390x" + ], + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-x64": { + "version": "0.17.4", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.17.4.tgz", + "integrity": "sha512-+AsFBwKgQuhV2shfGgA9YloxLDVjXgUEWZum7glR5lLmV94IThu/u2JZGxTgjYby6kyXEx8lKOqP5rTEVBR0Rw==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/netbsd-x64": { + "version": "0.17.4", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.17.4.tgz", + "integrity": "sha512-zD1TKYX9553OiLS/qkXPMlWoELYkH/VkzRYNKEU+GwFiqkq0SuxsKnsCg5UCdxN3cqd+1KZ8SS3R+WG/Hxy2jQ==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/openbsd-x64": { + "version": "0.17.4", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.17.4.tgz", + "integrity": "sha512-PY1NjEsLRhPEFFg1AV0/4Or/gR+q2dOb9s5rXcPuCjyHRzbt8vnHJl3vYj+641TgWZzTFmSUnZbzs1zwTzjeqw==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/sunos-x64": { + "version": "0.17.4", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.17.4.tgz", + "integrity": "sha512-B3Z7s8QZQW9tKGleMRXvVmwwLPAUoDCHs4WZ2ElVMWiortLJFowU1NjAhXOKjDgC7o9ByeVcwyOlJ+F2r6ZgmQ==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "sunos" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/win32-arm64": { + "version": "0.17.4", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.17.4.tgz", + "integrity": "sha512-0HCu8R3mY/H5V7N6kdlsJkvrT591bO/oRZy8ztF1dhgNU5xD5tAh5bKByT1UjTGjp/VVBsl1PDQ3L18SfvtnBQ==", + "cpu": [ + "arm64" + ], + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/win32-ia32": { + "version": "0.17.4", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.17.4.tgz", + "integrity": "sha512-VUjhVDQycse1gLbe06pC/uaA0M+piQXJpdpNdhg8sPmeIZZqu5xPoGWVCmcsOO2gaM2cywuTYTHkXRozo3/Nkg==", + "cpu": [ + "ia32" + ], + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/win32-x64": { + "version": "0.17.4", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.17.4.tgz", + "integrity": "sha512-0kLAjs+xN5OjhTt/aUA6t48SfENSCKgGPfExADYTOo/UCn0ivxos9/anUVeSfg+L+2O9xkFxvJXIJfG+Q4sYSg==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@mapbox/node-pre-gyp": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/@mapbox/node-pre-gyp/-/node-pre-gyp-1.0.10.tgz", + "integrity": "sha512-4ySo4CjzStuprMwk35H5pPbkymjv1SF3jGLj6rAHp/xT/RF7TL7bd9CTm1xDY49K2qF7jmR/g7k+SkLETP6opA==", + "dependencies": { + "detect-libc": "^2.0.0", + "https-proxy-agent": "^5.0.0", + "make-dir": "^3.1.0", + "node-fetch": "^2.6.7", + "nopt": "^5.0.0", + "npmlog": "^5.0.1", + "rimraf": "^3.0.2", + "semver": "^7.3.5", + "tar": "^6.1.11" + }, + "bin": { + "node-pre-gyp": "bin/node-pre-gyp" + } + }, + "node_modules/@mapbox/node-pre-gyp/node_modules/node-fetch": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.9.tgz", + "integrity": "sha512-DJm/CJkZkRjKKj4Zi4BsKVZh3ValV5IR5s7LVZnW+6YMh0W1BfNA8XSs6DLMGYlId5F3KnA70uu2qepcR08Qqg==", + "dependencies": { + "whatwg-url": "^5.0.0" + }, + "engines": { + "node": "4.x || >=6.0.0" + }, + "peerDependencies": { + "encoding": "^0.1.0" + }, + "peerDependenciesMeta": { + "encoding": { + "optional": true + } + } + }, + "node_modules/@mapbox/node-pre-gyp/node_modules/tr46": { + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", + "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==" + }, + "node_modules/@mapbox/node-pre-gyp/node_modules/webidl-conversions": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", + "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==" + }, + "node_modules/@mapbox/node-pre-gyp/node_modules/whatwg-url": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", + "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", + "dependencies": { + "tr46": "~0.0.3", + "webidl-conversions": "^3.0.0" + } + }, + "node_modules/@mfd/rbxdatastoreservice": { + "version": "2.3.11", + "resolved": "https://registry.npmjs.org/@mfd/rbxdatastoreservice/-/rbxdatastoreservice-2.3.11.tgz", + "integrity": "sha512-sZkBwBolSwHT2RDz4//7K0Vkxdjo2Zg1RSdSaUasTUKWj+BMeANgyLv/baMFHcJFE/Z+3kCcCkU/VHqfiQAHgA==", + "hasInstallScript": true, + "dependencies": { + "axios": "^0.27.2", + "crypto-js": "^4.0.0" + } + }, + "node_modules/@nodelib/fs.scandir": { + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", + "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", + "dependencies": { + "@nodelib/fs.stat": "2.0.5", + "run-parallel": "^1.1.9" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.stat": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", + "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.walk": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", + "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", + "dependencies": { + "@nodelib/fs.scandir": "2.1.5", + "fastq": "^1.6.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@redis/bloom": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@redis/bloom/-/bloom-1.2.0.tgz", + "integrity": "sha512-HG2DFjYKbpNmVXsa0keLHp/3leGJz1mjh09f2RLGGLQZzSHpkmZWuwJbAvo3QcRY8p80m5+ZdXZdYOSBLlp7Cg==", + "peerDependencies": { + "@redis/client": "^1.0.0" + } + }, + "node_modules/@redis/client": { + "version": "1.5.6", + "resolved": "https://registry.npmjs.org/@redis/client/-/client-1.5.6.tgz", + "integrity": "sha512-dFD1S6je+A47Lj22jN/upVU2fj4huR7S9APd7/ziUXsIXDL+11GPYti4Suv5y8FuXaN+0ZG4JF+y1houEJ7ToA==", + "dependencies": { + "cluster-key-slot": "1.1.2", + "generic-pool": "3.9.0", + "yallist": "4.0.0" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/@redis/graph": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@redis/graph/-/graph-1.1.0.tgz", + "integrity": "sha512-16yZWngxyXPd+MJxeSr0dqh2AIOi8j9yXKcKCwVaKDbH3HTuETpDVPcLujhFYVPtYrngSco31BUcSa9TH31Gqg==", + "peerDependencies": { + "@redis/client": "^1.0.0" + } + }, + "node_modules/@redis/json": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/@redis/json/-/json-1.0.4.tgz", + "integrity": "sha512-LUZE2Gdrhg0Rx7AN+cZkb1e6HjoSKaeeW8rYnt89Tly13GBI5eP4CwDVr+MY8BAYfCg4/N15OUrtLoona9uSgw==", + "peerDependencies": { + "@redis/client": "^1.0.0" + } + }, + "node_modules/@redis/search": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@redis/search/-/search-1.1.2.tgz", + "integrity": "sha512-/cMfstG/fOh/SsE+4/BQGeuH/JJloeWuH+qJzM8dbxuWvdWibWAOAHHCZTMPhV3xIlH4/cUEIA8OV5QnYpaVoA==", + "peerDependencies": { + "@redis/client": "^1.0.0" + } + }, + "node_modules/@redis/time-series": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/@redis/time-series/-/time-series-1.0.4.tgz", + "integrity": "sha512-ThUIgo2U/g7cCuZavucQTQzA9g9JbDDY2f64u3AbAoz/8vE2lt2U37LamDUVChhaDA3IRT9R6VvJwqnUfTJzng==", + "peerDependencies": { + "@redis/client": "^1.0.0" + } + }, + "node_modules/@types/node": { + "version": "18.13.0", + "resolved": "https://registry.npmjs.org/@types/node/-/node-18.13.0.tgz", + "integrity": "sha512-gC3TazRzGoOnoKAhUx+Q0t8S9Tzs74z7m0ipwGpSqQrleP14hKxP4/JUeEQcD3W1/aIpnWl8pHowI7WokuZpXg==" + }, + "node_modules/@types/webidl-conversions": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/@types/webidl-conversions/-/webidl-conversions-7.0.0.tgz", + "integrity": "sha512-xTE1E+YF4aWPJJeUzaZI5DRntlkY3+BCVJi0axFptnjGmAoWxkyREIh/XMrfxVLejwQxMCfDXdICo0VLxThrog==" + }, + "node_modules/@types/whatwg-url": { + "version": "8.2.2", + "resolved": "https://registry.npmjs.org/@types/whatwg-url/-/whatwg-url-8.2.2.tgz", + "integrity": "sha512-FtQu10RWgn3D9U4aazdwIE2yzphmTJREDqNdODHrbrZmmMqI0vMheC/6NE/J1Yveaj8H+ela+YwWTjq5PGmuhA==", + "dependencies": { + "@types/node": "*", + "@types/webidl-conversions": "*" + } + }, + "node_modules/@yaireo/relative-time": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@yaireo/relative-time/-/relative-time-1.0.3.tgz", + "integrity": "sha512-CJGxyWjb4SnkqubyfiPNQeg0YrJKnVu+11DOP65ltXFxDsjjnm3IByXS9O1Ny9AU9Oxqg0a7Gt26tzXtcijicg==" + }, + "node_modules/abbrev": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz", + "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==" + }, + "node_modules/accepts": { + "version": "1.3.8", + "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz", + "integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==", + "dependencies": { + "mime-types": "~2.1.34", + "negotiator": "0.6.3" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/acorn": { + "version": "7.4.1", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.4.1.tgz", + "integrity": "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==", + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/acorn-node": { + "version": "1.8.2", + "resolved": "https://registry.npmjs.org/acorn-node/-/acorn-node-1.8.2.tgz", + "integrity": "sha512-8mt+fslDufLYntIoPAaIMUe/lrbrehIiwmR3t2k9LljIzoigEPF27eLk2hy8zSGzmR/ogr7zbRKINMo1u0yh5A==", + "dependencies": { + "acorn": "^7.0.0", + "acorn-walk": "^7.0.0", + "xtend": "^4.0.2" + } + }, + "node_modules/acorn-walk": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-7.2.0.tgz", + "integrity": "sha512-OPdCF6GsMIP+Az+aWfAAOEt2/+iVDKE7oy6lJ098aoe59oAmK76qV6Gw60SbZ8jHuG2wH058GF4pLFbYamYrVA==", + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/agent-base": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", + "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", + "dependencies": { + "debug": "4" + }, + "engines": { + "node": ">= 6.0.0" + } + }, + "node_modules/agent-base/node_modules/debug": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "dependencies": { + "ms": "2.1.2" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/agent-base/node_modules/ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" + }, + "node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "engines": { + "node": ">=8" + } + }, + "node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/anymatch": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", + "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", + "dependencies": { + "normalize-path": "^3.0.0", + "picomatch": "^2.0.4" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/append-field": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/append-field/-/append-field-1.0.0.tgz", + "integrity": "sha512-klpgFSWLW1ZEs8svjfb7g4qWY0YS5imI82dTg+QahUvJ8YqAY0P10Uk8tTyh9ZGuYEZEMaeJYCF5BFuX552hsw==" + }, + "node_modules/aproba": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/aproba/-/aproba-2.0.0.tgz", + "integrity": "sha512-lYe4Gx7QT+MKGbDsA+Z+he/Wtef0BiwDOlK/XkBrdfsh9J/jPPXbX0tE9x9cl27Tmu5gg3QUbUrQYa/y+KOHPQ==" + }, + "node_modules/are-we-there-yet": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-2.0.0.tgz", + "integrity": "sha512-Ci/qENmwHnsYo9xKIcUJN5LeDKdJ6R1Z1j9V/J5wyq8nh/mYPEpIKJbBZXtZjG04HiK7zV/p6Vs9952MrMeUIw==", + "dependencies": { + "delegates": "^1.0.0", + "readable-stream": "^3.6.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/are-we-there-yet/node_modules/readable-stream": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz", + "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==", + "dependencies": { + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/arg": { + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/arg/-/arg-5.0.2.tgz", + "integrity": "sha512-PYjyFOLKQ9y57JvQ6QLo8dAgNqswh8M1RMJYdQduT6xbWSgK36P/Z/v+p888pM69jMMfS8Xd8F6I1kQ/I9HUGg==" + }, + "node_modules/array-flatten": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz", + "integrity": "sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg==" + }, + "node_modules/asynckit": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", + "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==" + }, + "node_modules/atob": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/atob/-/atob-2.1.2.tgz", + "integrity": "sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg==", + "bin": { + "atob": "bin/atob.js" + }, + "engines": { + "node": ">= 4.5.0" + } + }, + "node_modules/autoprefixer": { + "version": "10.4.13", + "resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-10.4.13.tgz", + "integrity": "sha512-49vKpMqcZYsJjwotvt4+h/BCjJVnhGwcLpDt5xkcaOG3eLrG/HUYLagrihYsQ+qrIBgIzX1Rw7a6L8I/ZA1Atg==", + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/autoprefixer" + } + ], + "peer": true, + "dependencies": { + "browserslist": "^4.21.4", + "caniuse-lite": "^1.0.30001426", + "fraction.js": "^4.2.0", + "normalize-range": "^0.1.2", + "picocolors": "^1.0.0", + "postcss-value-parser": "^4.2.0" + }, + "bin": { + "autoprefixer": "bin/autoprefixer" + }, + "engines": { + "node": "^10 || ^12 || >=14" + }, + "peerDependencies": { + "postcss": "^8.1.0" + } + }, + "node_modules/axios": { + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/axios/-/axios-0.27.2.tgz", + "integrity": "sha512-t+yRIyySRTp/wua5xEr+z1q60QmLq8ABsS5O9Me1AsE5dfKqgnCFzwiCZZ/cGNd1lq4/7akDWMxdhVlucjmnOQ==", + "dependencies": { + "follow-redirects": "^1.14.9", + "form-data": "^4.0.0" + } + }, + "node_modules/balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==" + }, + "node_modules/base32.js": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/base32.js/-/base32.js-0.0.1.tgz", + "integrity": "sha512-EGHIRiegFa62/SsA1J+Xs2tIzludPdzM064N9wjbiEgHnGnJ1V0WEpA4pEwCYT5nDvZk3ubf0shqaCS7k6xeUQ==" + }, + "node_modules/base64-js": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", + "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, + "node_modules/bcrypt": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/bcrypt/-/bcrypt-5.1.0.tgz", + "integrity": "sha512-RHBS7HI5N5tEnGTmtR/pppX0mmDSBpQ4aCBsj7CEQfYXDcO74A8sIBYcJMuCsis2E81zDxeENYhv66oZwLiA+Q==", + "hasInstallScript": true, + "dependencies": { + "@mapbox/node-pre-gyp": "^1.0.10", + "node-addon-api": "^5.0.0" + }, + "engines": { + "node": ">= 10.0.0" + } + }, + "node_modules/binary-extensions": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz", + "integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==", + "engines": { + "node": ">=8" + } + }, + "node_modules/bintrees": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/bintrees/-/bintrees-1.0.2.tgz", + "integrity": "sha512-VOMgTMwjAaUG580SXn3LacVgjurrbMme7ZZNYGSSV7mmtY6QQRh0Eg3pwIcntQ77DErK1L0NxkbetjcoXzVwKw==" + }, + "node_modules/body-parser": { + "version": "1.20.1", + "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.1.tgz", + "integrity": "sha512-jWi7abTbYwajOytWCQc37VulmWiRae5RyTpaCyDcS5/lMdtwSz5lOpDE67srw/HYe35f1z3fDQw+3txg7gNtWw==", + "dependencies": { + "bytes": "3.1.2", + "content-type": "~1.0.4", + "debug": "2.6.9", + "depd": "2.0.0", + "destroy": "1.2.0", + "http-errors": "2.0.0", + "iconv-lite": "0.4.24", + "on-finished": "2.4.1", + "qs": "6.11.0", + "raw-body": "2.5.1", + "type-is": "~1.6.18", + "unpipe": "1.0.0" + }, + "engines": { + "node": ">= 0.8", + "npm": "1.2.8000 || >= 1.4.16" + } + }, + "node_modules/bowser": { + "version": "2.11.0", + "resolved": "https://registry.npmjs.org/bowser/-/bowser-2.11.0.tgz", + "integrity": "sha512-AlcaJBi/pqqJBIQ8U9Mcpc9i8Aqxn88Skv5d+xBX006BY5u8N3mGLHa5Lgppa7L/HfwgwLgZ6NYs+Ag6uUmJRA==", + "optional": true + }, + "node_modules/braces": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", + "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", + "dependencies": { + "fill-range": "^7.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/browserslist": { + "version": "4.21.4", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.21.4.tgz", + "integrity": "sha512-CBHJJdDmgjl3daYjN5Cp5kbTf1mUhZoS+beLklHIvkOWscs83YAhLlF3Wsh/lciQYAcbBJgTOD44VtG31ZM4Hw==", + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + } + ], + "peer": true, + "dependencies": { + "caniuse-lite": "^1.0.30001400", + "electron-to-chromium": "^1.4.251", + "node-releases": "^2.0.6", + "update-browserslist-db": "^1.0.9" + }, + "bin": { + "browserslist": "cli.js" + }, + "engines": { + "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" + } + }, + "node_modules/bson": { + "version": "4.7.2", + "resolved": "https://registry.npmjs.org/bson/-/bson-4.7.2.tgz", + "integrity": "sha512-Ry9wCtIZ5kGqkJoi6aD8KjxFZEx78guTQDnpXWiNthsxzrxAK/i8E6pCHAIZTbaEFWcOCvbecMukfK7XUvyLpQ==", + "dependencies": { + "buffer": "^5.6.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/buffer": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", + "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "dependencies": { + "base64-js": "^1.3.1", + "ieee754": "^1.1.13" + } + }, + "node_modules/buffer-equal-constant-time": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/buffer-equal-constant-time/-/buffer-equal-constant-time-1.0.1.tgz", + "integrity": "sha512-zRpUiDwd/xk6ADqPMATG8vc9VPrkck7T07OIx0gnjmJAnHnTVXNQG3vfvWNuiZIkwu9KrKdA1iJKfsfTVxE6NA==" + }, + "node_modules/buffer-from": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", + "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==" + }, + "node_modules/busboy": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/busboy/-/busboy-1.6.0.tgz", + "integrity": "sha512-8SFQbg/0hQ9xy3UNTB0YEnsNBbWfhf7RtnzpL7TkBiTBRfrQ9Fxcnz7VJsleJpyp6rVLvXiuORqjlHi5q+PYuA==", + "dependencies": { + "streamsearch": "^1.1.0" + }, + "engines": { + "node": ">=10.16.0" + } + }, + "node_modules/bytes": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz", + "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/call-bind": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz", + "integrity": "sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==", + "dependencies": { + "function-bind": "^1.1.1", + "get-intrinsic": "^1.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/camelcase": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", + "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", + "engines": { + "node": ">=6" + } + }, + "node_modules/camelcase-css": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/camelcase-css/-/camelcase-css-2.0.1.tgz", + "integrity": "sha512-QOSvevhslijgYwRx6Rv7zKdMF8lbRmx+uQGx2+vDc+KI/eBnsy9kit5aj23AgGu3pa4t9AgwbnXWqS+iOY+2aA==", + "engines": { + "node": ">= 6" + } + }, + "node_modules/caniuse-lite": { + "version": "1.0.30001441", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001441.tgz", + "integrity": "sha512-OyxRR4Vof59I3yGWXws6i908EtGbMzVUi3ganaZQHmydk1iwDhRnvaPG2WaR0KcqrDFKrxVZHULT396LEPhXfg==", + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/caniuse-lite" + } + ], + "peer": true + }, + "node_modules/chokidar": { + "version": "3.5.3", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz", + "integrity": "sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==", + "funding": [ + { + "type": "individual", + "url": "https://paulmillr.com/funding/" + } + ], + "dependencies": { + "anymatch": "~3.1.2", + "braces": "~3.0.2", + "glob-parent": "~5.1.2", + "is-binary-path": "~2.1.0", + "is-glob": "~4.0.1", + "normalize-path": "~3.0.0", + "readdirp": "~3.6.0" + }, + "engines": { + "node": ">= 8.10.0" + }, + "optionalDependencies": { + "fsevents": "~2.3.2" + } + }, + "node_modules/chownr": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/chownr/-/chownr-2.0.0.tgz", + "integrity": "sha512-bIomtDF5KGpdogkLd9VspvFzk9KfpyyGlS8YFVZl7TGPBHL5snIOnxeshwVgPteQ9b4Eydl+pVbIyE1DcvCWgQ==", + "engines": { + "node": ">=10" + } + }, + "node_modules/cliui": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-6.0.0.tgz", + "integrity": "sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==", + "dependencies": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.0", + "wrap-ansi": "^6.2.0" + } + }, + "node_modules/cluster-key-slot": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/cluster-key-slot/-/cluster-key-slot-1.1.2.tgz", + "integrity": "sha512-RMr0FhtfXemyinomL4hrWcYJxmX6deFdCxpJzhDttxgO1+bcCnkk+9drydLVDmAMG7NE6aN/fl4F7ucU/90gAA==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/color": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/color/-/color-4.2.3.tgz", + "integrity": "sha512-1rXeuUUiGGrykh+CeBdu5Ie7OJwinCgQY0bc7GCRxy5xVHy+moaqkpL/jqQq0MtQOeYcrqEz4abc5f0KtU7W4A==", + "dependencies": { + "color-convert": "^2.0.1", + "color-string": "^1.9.0" + }, + "engines": { + "node": ">=12.5.0" + } + }, + "node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + }, + "node_modules/color-string": { + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/color-string/-/color-string-1.9.1.tgz", + "integrity": "sha512-shrVawQFojnZv6xM40anx4CkoDP+fZsw/ZerEMsW/pyzsRbElpsL/DBVW7q3ExxwusdNXI3lXpuhEZkzs8p5Eg==", + "dependencies": { + "color-name": "^1.0.0", + "simple-swizzle": "^0.2.2" + } + }, + "node_modules/color-support": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-support/-/color-support-1.1.3.tgz", + "integrity": "sha512-qiBjkpbMLO/HL68y+lh4q0/O1MZFj2RX6X/KmMa3+gJD3z+WwI1ZzDHysvqHGS3mP6mznPckpXmw1nI9cJjyRg==", + "bin": { + "color-support": "bin.js" + } + }, + "node_modules/combined-stream": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", + "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", + "dependencies": { + "delayed-stream": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/commander": { + "version": "2.20.3", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==" + }, + "node_modules/concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==" + }, + "node_modules/concat-stream": { + "version": "1.6.2", + "resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-1.6.2.tgz", + "integrity": "sha512-27HBghJxjiZtIk3Ycvn/4kbJk/1uZuJFfuPEns6LaEvpvG1f0hTea8lilrouyo9mVc2GWdcEZ8OLoGmSADlrCw==", + "engines": [ + "node >= 0.8" + ], + "dependencies": { + "buffer-from": "^1.0.0", + "inherits": "^2.0.3", + "readable-stream": "^2.2.2", + "typedarray": "^0.0.6" + } + }, + "node_modules/connect-flash": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/connect-flash/-/connect-flash-0.1.1.tgz", + "integrity": "sha512-2rcfELQt/ZMP+SM/pG8PyhJRaLKp+6Hk2IUBNkEit09X+vwn3QsAL3ZbYtxUn7NVPzbMTSLRDhqe0B/eh30RYA==", + "engines": { + "node": ">= 0.4.0" + } + }, + "node_modules/console-control-strings": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz", + "integrity": "sha512-ty/fTekppD2fIwRvnZAVdeOiGd1c7YXEixbgJTNzqcxJWKQnjJ/V1bNEEE6hygpM3WjwHFUVK6HTjWSzV4a8sQ==" + }, + "node_modules/content-disposition": { + "version": "0.5.4", + "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz", + "integrity": "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==", + "dependencies": { + "safe-buffer": "5.2.1" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/content-type": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.4.tgz", + "integrity": "sha512-hIP3EEPs8tB9AT1L+NUqtwOAps4mk2Zob89MWXMHjHWg9milF/j4osnnQLXBCBFBk/tvIG/tUc9mOUJiPBhPXA==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/cookie": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.4.1.tgz", + "integrity": "sha512-ZwrFkGJxUR3EIoXtO+yVE69Eb7KlixbaeAWfBQB9vVsNn/o+Yw69gBWSSDK825hQNdN+wF8zELf3dFNl/kxkUA==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/cookie-parser": { + "version": "1.4.6", + "resolved": "https://registry.npmjs.org/cookie-parser/-/cookie-parser-1.4.6.tgz", + "integrity": "sha512-z3IzaNjdwUC2olLIB5/ITd0/setiaFMLYiZJle7xg5Fe9KWAceil7xszYfHHBtDFYLSgJduS2Ty0P1uJdPDJeA==", + "dependencies": { + "cookie": "0.4.1", + "cookie-signature": "1.0.6" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/cookie-signature": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz", + "integrity": "sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ==" + }, + "node_modules/core-util-is": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz", + "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==" + }, + "node_modules/cors": { + "version": "2.8.5", + "resolved": "https://registry.npmjs.org/cors/-/cors-2.8.5.tgz", + "integrity": "sha512-KIHbLJqu73RGr/hnbrO9uBeixNGuvSQjul/jdFvS/KFSIH1hWVd1ng7zOHx+YrEfInLG7q4n6GHQ9cDtxv/P6g==", + "dependencies": { + "object-assign": "^4", + "vary": "^1" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/cross-env": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/cross-env/-/cross-env-7.0.3.tgz", + "integrity": "sha512-+/HKd6EgcQCJGh2PSjZuUitQBQynKor4wrFbRg4DtAgS1aWO+gU52xpH7M9ScGgXSYmAVS9bIJ8EzuaGw0oNAw==", + "dev": true, + "dependencies": { + "cross-spawn": "^7.0.1" + }, + "bin": { + "cross-env": "src/bin/cross-env.js", + "cross-env-shell": "src/bin/cross-env-shell.js" + }, + "engines": { + "node": ">=10.14", + "npm": ">=6", + "yarn": ">=1" + } + }, + "node_modules/cross-spawn": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", + "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "dev": true, + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/crypto-js": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/crypto-js/-/crypto-js-4.1.1.tgz", + "integrity": "sha512-o2JlM7ydqd3Qk9CA0L4NL6mTzU2sdx96a+oOfPu8Mkl/PK51vSyoi8/rQ8NknZtk44vq15lmhAj9CIAGwgeWKw==" + }, + "node_modules/css-selector-tokenizer": { + "version": "0.8.0", + "resolved": "https://registry.npmjs.org/css-selector-tokenizer/-/css-selector-tokenizer-0.8.0.tgz", + "integrity": "sha512-Jd6Ig3/pe62/qe5SBPTN8h8LeUg/pT4lLgtavPf7updwwHpvFzxvOQBHYj2LZDMjUnBzgvIUSjRcf6oT5HzHFg==", + "dependencies": { + "cssesc": "^3.0.0", + "fastparse": "^1.1.2" + } + }, + "node_modules/cssesc": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/cssesc/-/cssesc-3.0.0.tgz", + "integrity": "sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==", + "bin": { + "cssesc": "bin/cssesc" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/cssfilter": { + "version": "0.0.10", + "resolved": "https://registry.npmjs.org/cssfilter/-/cssfilter-0.0.10.tgz", + "integrity": "sha512-FAaLDaplstoRsDR8XGYH51znUN0UY7nMc6Z9/fvE8EXGwvJE9hu7W2vHwx1+bd6gCYnln9nLbzxFTrcO9YQDZw==" + }, + "node_modules/daisyui": { + "version": "2.46.1", + "resolved": "https://registry.npmjs.org/daisyui/-/daisyui-2.46.1.tgz", + "integrity": "sha512-i59+nLuzzPAVOhNhot3KLtt6stfYeCIPXs9uiLcpXjykpqxHfBA3W6hQWOUWPMwfqhyQd0WKub3sydtPGjzLtA==", + "dependencies": { + "color": "^4.2", + "css-selector-tokenizer": "^0.8.0", + "postcss-js": "^4.0.0", + "tailwindcss": "^3" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/daisyui" + }, + "peerDependencies": { + "autoprefixer": "^10.0.2", + "postcss": "^8.1.6" + } + }, + "node_modules/data-uri-to-buffer": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/data-uri-to-buffer/-/data-uri-to-buffer-4.0.0.tgz", + "integrity": "sha512-Vr3mLBA8qWmcuschSLAOogKgQ/Jwxulv3RNE4FXnYWRGujzrRWQI4m12fQqRkwX06C0KanhLr4hK+GydchZsaA==", + "engines": { + "node": ">= 12" + } + }, + "node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/decamelize": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", + "integrity": "sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/defined": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/defined/-/defined-1.0.1.tgz", + "integrity": "sha512-hsBd2qSVCRE+5PmNdHt1uzyrFu5d3RwmFDKzyNZMFq/EwDNJF7Ee5+D5oEKF0hU6LhtoUF1macFvOe4AskQC1Q==", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/delayed-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", + "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/delegates": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz", + "integrity": "sha512-bd2L678uiWATM6m5Z1VzNCErI3jiGzt6HGY8OVICs40JQq/HALfbyNJmp0UDakEY4pMMaN0Ly5om/B1VI/+xfQ==" + }, + "node_modules/depd": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", + "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/destroy": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz", + "integrity": "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==", + "engines": { + "node": ">= 0.8", + "npm": "1.2.8000 || >= 1.4.16" + } + }, + "node_modules/detect-libc": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.0.1.tgz", + "integrity": "sha512-463v3ZeIrcWtdgIg6vI6XUncguvr2TnGl4SzDXinkt9mSLpBJKXT3mW6xT3VQdDN11+WVs29pgvivTc4Lp8v+w==", + "engines": { + "node": ">=8" + } + }, + "node_modules/detective": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/detective/-/detective-5.2.1.tgz", + "integrity": "sha512-v9XE1zRnz1wRtgurGu0Bs8uHKFSTdteYZNbIPFVhUZ39L/S79ppMpdmVOZAnoz1jfEFodc48n6MX483Xo3t1yw==", + "dependencies": { + "acorn-node": "^1.8.2", + "defined": "^1.0.0", + "minimist": "^1.2.6" + }, + "bin": { + "detective": "bin/detective.js" + }, + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/didyoumean": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/didyoumean/-/didyoumean-1.2.2.tgz", + "integrity": "sha512-gxtyfqMg7GKyhQmb056K7M3xszy/myH8w+B4RT+QXBQsvAOdc3XymqDDPHx1BgPgsdAA5SIifona89YtRATDzw==" + }, + "node_modules/dijkstrajs": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/dijkstrajs/-/dijkstrajs-1.0.2.tgz", + "integrity": "sha512-QV6PMaHTCNmKSeP6QoXhVTw9snc9VD8MulTT0Bd99Pacp4SS1cjcrYPgBPmibqKVtMJJfqC6XvOXgPMEEPH/fg==" + }, + "node_modules/dlv": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/dlv/-/dlv-1.1.3.tgz", + "integrity": "sha512-+HlytyjlPKnIG8XuRG8WvmBP8xs8P71y+SKKS6ZXWoEgLuePxtDoUEiH7WkdePWrQ5JBpE6aoVqfZfJUQkjXwA==" + }, + "node_modules/dotenv": { + "version": "16.0.3", + "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.0.3.tgz", + "integrity": "sha512-7GO6HghkA5fYG9TYnNxi14/7K9f5occMlp3zXAuSxn7CKCxt9xbNWG7yF8hTCSUchlfWSe3uLmlPfigevRItzQ==", + "engines": { + "node": ">=12" + } + }, + "node_modules/easy-soap-request": { + "version": "4.8.0", + "resolved": "https://registry.npmjs.org/easy-soap-request/-/easy-soap-request-4.8.0.tgz", + "integrity": "sha512-fD1NXRv14P4IdAoyYpGJ2kB+292vYfvU7qLbmUw2x2HA+U74LWVyErjyNf2Jxn1mUAwp+sRdMlkmrUrPY0/wAg==", + "dependencies": { + "axios": "^0.27.2" + } + }, + "node_modules/ecdsa-sig-formatter": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/ecdsa-sig-formatter/-/ecdsa-sig-formatter-1.0.11.tgz", + "integrity": "sha512-nagl3RYrbNv6kQkeJIpt6NJZy8twLB/2vtz6yN9Z4vRKHN4/QZJIEbqohALSgwKdnksuY3k5Addp5lg8sVoVcQ==", + "dependencies": { + "safe-buffer": "^5.0.1" + } + }, + "node_modules/ee-first": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", + "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==" + }, + "node_modules/electron-to-chromium": { + "version": "1.4.284", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.284.tgz", + "integrity": "sha512-M8WEXFuKXMYMVr45fo8mq0wUrrJHheiKZf6BArTKk9ZBYCKJEOU5H8cdWgDT+qCVZf7Na4lVUaZsA+h6uA9+PA==", + "peer": true + }, + "node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" + }, + "node_modules/encode-utf8": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/encode-utf8/-/encode-utf8-1.0.3.tgz", + "integrity": "sha512-ucAnuBEhUK4boH2HjVYG5Q2mQyPorvv0u/ocS+zhdw0S8AlHYY+GOFhP1Gio5z4icpP2ivFSvhtFjQi8+T9ppw==" + }, + "node_modules/encodeurl": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", + "integrity": "sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/esbuild": { + "version": "0.17.4", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.17.4.tgz", + "integrity": "sha512-zBn9MeCwT7W5F1a3lXClD61ip6vQM+H8Msb0w8zMT4ZKBpDg+rFAraNyWCDelB/2L6M3g6AXHPnsyvjMFnxtFw==", + "hasInstallScript": true, + "bin": { + "esbuild": "bin/esbuild" + }, + "engines": { + "node": ">=12" + }, + "optionalDependencies": { + "@esbuild/android-arm": "0.17.4", + "@esbuild/android-arm64": "0.17.4", + "@esbuild/android-x64": "0.17.4", + "@esbuild/darwin-arm64": "0.17.4", + "@esbuild/darwin-x64": "0.17.4", + "@esbuild/freebsd-arm64": "0.17.4", + "@esbuild/freebsd-x64": "0.17.4", + "@esbuild/linux-arm": "0.17.4", + "@esbuild/linux-arm64": "0.17.4", + "@esbuild/linux-ia32": "0.17.4", + "@esbuild/linux-loong64": "0.17.4", + "@esbuild/linux-mips64el": "0.17.4", + "@esbuild/linux-ppc64": "0.17.4", + "@esbuild/linux-riscv64": "0.17.4", + "@esbuild/linux-s390x": "0.17.4", + "@esbuild/linux-x64": "0.17.4", + "@esbuild/netbsd-x64": "0.17.4", + "@esbuild/openbsd-x64": "0.17.4", + "@esbuild/sunos-x64": "0.17.4", + "@esbuild/win32-arm64": "0.17.4", + "@esbuild/win32-ia32": "0.17.4", + "@esbuild/win32-x64": "0.17.4" + } + }, + "node_modules/escalade": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", + "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==", + "peer": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/escape-html": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", + "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==" + }, + "node_modules/etag": { + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", + "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/express": { + "version": "4.18.2", + "resolved": "https://registry.npmjs.org/express/-/express-4.18.2.tgz", + "integrity": "sha512-5/PsL6iGPdfQ/lKM1UuielYgv3BUoJfz1aUwU9vHZ+J7gyvwdQXFEBIEIaxeGf0GIcreATNyBExtalisDbuMqQ==", + "dependencies": { + "accepts": "~1.3.8", + "array-flatten": "1.1.1", + "body-parser": "1.20.1", + "content-disposition": "0.5.4", + "content-type": "~1.0.4", + "cookie": "0.5.0", + "cookie-signature": "1.0.6", + "debug": "2.6.9", + "depd": "2.0.0", + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "etag": "~1.8.1", + "finalhandler": "1.2.0", + "fresh": "0.5.2", + "http-errors": "2.0.0", + "merge-descriptors": "1.0.1", + "methods": "~1.1.2", + "on-finished": "2.4.1", + "parseurl": "~1.3.3", + "path-to-regexp": "0.1.7", + "proxy-addr": "~2.0.7", + "qs": "6.11.0", + "range-parser": "~1.2.1", + "safe-buffer": "5.2.1", + "send": "0.18.0", + "serve-static": "1.15.0", + "setprototypeof": "1.2.0", + "statuses": "2.0.1", + "type-is": "~1.6.18", + "utils-merge": "1.0.1", + "vary": "~1.1.2" + }, + "engines": { + "node": ">= 0.10.0" + } + }, + "node_modules/express-flash-message": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/express-flash-message/-/express-flash-message-2.1.0.tgz", + "integrity": "sha512-oR/cwzt7CfjSUt7XwEZCCyOegylHuTF8/by6+jAshZh2TzREqDIjfU0JU5M6usurSk/ep3lUxxyaCbujyERyTQ==" + }, + "node_modules/express-prom-bundle": { + "version": "6.6.0", + "resolved": "https://registry.npmjs.org/express-prom-bundle/-/express-prom-bundle-6.6.0.tgz", + "integrity": "sha512-tZh2P2p5a8/yxQ5VbRav011Poa4R0mHqdFwn9Swe/obXDe5F0jY9wtRAfNYnqk4LXY7akyvR/nrvAHxQPWUjsQ==", + "dependencies": { + "on-finished": "^2.3.0", + "url-value-parser": "^2.0.0" + }, + "engines": { + "node": ">=10" + }, + "peerDependencies": { + "prom-client": ">=12.0.0" + } + }, + "node_modules/express-rate-limit": { + "version": "6.7.0", + "resolved": "https://registry.npmjs.org/express-rate-limit/-/express-rate-limit-6.7.0.tgz", + "integrity": "sha512-vhwIdRoqcYB/72TK3tRZI+0ttS8Ytrk24GfmsxDXK9o9IhHNO5bXRiXQSExPQ4GbaE5tvIS7j1SGrxsuWs+sGA==", + "engines": { + "node": ">= 12.9.0" + }, + "peerDependencies": { + "express": "^4 || ^5" + } + }, + "node_modules/express-session": { + "version": "1.17.3", + "resolved": "https://registry.npmjs.org/express-session/-/express-session-1.17.3.tgz", + "integrity": "sha512-4+otWXlShYlG1Ma+2Jnn+xgKUZTMJ5QD3YvfilX3AcocOAbIkVylSWEklzALe/+Pu4qV6TYBj5GwOBFfdKqLBw==", + "dependencies": { + "cookie": "0.4.2", + "cookie-signature": "1.0.6", + "debug": "2.6.9", + "depd": "~2.0.0", + "on-headers": "~1.0.2", + "parseurl": "~1.3.3", + "safe-buffer": "5.2.1", + "uid-safe": "~2.1.5" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/express-session/node_modules/cookie": { + "version": "0.4.2", + "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.4.2.tgz", + "integrity": "sha512-aSWTXFzaKWkvHO1Ny/s+ePFpvKsPnjc551iI41v3ny/ow6tBG5Vd+FuqGNhh1LxOmVzOlGUriIlOaokOvhaStA==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/express/node_modules/cookie": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.5.0.tgz", + "integrity": "sha512-YZ3GUyn/o8gfKJlnlX7g7xq4gyO6OSuhGPKaaGssGB2qgDUS0gPgtTvoyZLTt9Ab6dC4hfc9dV5arkvc/OCmrw==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/fast-glob": { + "version": "3.2.12", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.12.tgz", + "integrity": "sha512-DVj4CQIYYow0BlaelwK1pHl5n5cRSJfM60UA0zK891sVInoPri2Ekj7+e1CT3/3qxXenpI+nBBmQAcJPJgaj4w==", + "dependencies": { + "@nodelib/fs.stat": "^2.0.2", + "@nodelib/fs.walk": "^1.2.3", + "glob-parent": "^5.1.2", + "merge2": "^1.3.0", + "micromatch": "^4.0.4" + }, + "engines": { + "node": ">=8.6.0" + } + }, + "node_modules/fast-xml-parser": { + "version": "4.0.11", + "resolved": "https://registry.npmjs.org/fast-xml-parser/-/fast-xml-parser-4.0.11.tgz", + "integrity": "sha512-4aUg3aNRR/WjQAcpceODG1C3x3lFANXRo8+1biqfieHmg9pyMt7qB4lQV/Ta6sJCTbA5vfD8fnA8S54JATiFUA==", + "optional": true, + "dependencies": { + "strnum": "^1.0.5" + }, + "bin": { + "fxparser": "src/cli/cli.js" + }, + "funding": { + "type": "paypal", + "url": "https://paypal.me/naturalintelligence" + } + }, + "node_modules/fastparse": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/fastparse/-/fastparse-1.1.2.tgz", + "integrity": "sha512-483XLLxTVIwWK3QTrMGRqUfUpoOs/0hbQrl2oz4J0pAcm3A3bu84wxTFqGqkJzewCLdME38xJLJAxBABfQT8sQ==" + }, + "node_modules/fastq": { + "version": "1.15.0", + "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.15.0.tgz", + "integrity": "sha512-wBrocU2LCXXa+lWBt8RoIRD89Fi8OdABODa/kEnyeyjS5aZO5/GNvI5sEINADqP/h8M29UHTHUb53sUu5Ihqdw==", + "dependencies": { + "reusify": "^1.0.4" + } + }, + "node_modules/fetch-blob": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/fetch-blob/-/fetch-blob-3.2.0.tgz", + "integrity": "sha512-7yAQpD2UMJzLi1Dqv7qFYnPbaPx7ZfFK6PiIxQ4PfkGPyNyl2Ugx+a/umUonmKqjhM4DnfbMvdX6otXq83soQQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/jimmywarting" + }, + { + "type": "paypal", + "url": "https://paypal.me/jimmywarting" + } + ], + "dependencies": { + "node-domexception": "^1.0.0", + "web-streams-polyfill": "^3.0.3" + }, + "engines": { + "node": "^12.20 || >= 14.13" + } + }, + "node_modules/file-type-checker": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/file-type-checker/-/file-type-checker-1.0.4.tgz", + "integrity": "sha512-hhleilG34kfSjlSfAAj8DVvqXxMwEIVY/pkWnkMVbqdmly6jUv7jjNw/dmvdcbMt6joXlQgavCJCtNDRzODOsQ==" + }, + "node_modules/fill-range": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", + "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", + "dependencies": { + "to-regex-range": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/finalhandler": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.2.0.tgz", + "integrity": "sha512-5uXcUVftlQMFnWC9qu/svkWv3GTd2PfUhK/3PLkYNAe7FbqJMt3515HaxE6eRL74GdsriiwujiawdaB1BpEISg==", + "dependencies": { + "debug": "2.6.9", + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "on-finished": "2.4.1", + "parseurl": "~1.3.3", + "statuses": "2.0.1", + "unpipe": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/find-up": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "dependencies": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/follow-redirects": { + "version": "1.15.2", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.2.tgz", + "integrity": "sha512-VQLG33o04KaQ8uYi2tVNbdrWp1QWxNNea+nmIB4EVM28v0hmP17z7aG1+wAkNzVq4KeXTq3221ye5qTJP91JwA==", + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/RubenVerborgh" + } + ], + "engines": { + "node": ">=4.0" + }, + "peerDependenciesMeta": { + "debug": { + "optional": true + } + } + }, + "node_modules/form-data": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz", + "integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==", + "dependencies": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "mime-types": "^2.1.12" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/formdata-polyfill": { + "version": "4.0.10", + "resolved": "https://registry.npmjs.org/formdata-polyfill/-/formdata-polyfill-4.0.10.tgz", + "integrity": "sha512-buewHzMvYL29jdeQTVILecSaZKnt/RJWjoZCF5OW60Z67/GmSLBkOFM7qh1PI3zFNtJbaZL5eQu1vLfazOwj4g==", + "dependencies": { + "fetch-blob": "^3.1.2" + }, + "engines": { + "node": ">=12.20.0" + } + }, + "node_modules/forwarded": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz", + "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/fraction.js": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/fraction.js/-/fraction.js-4.2.0.tgz", + "integrity": "sha512-MhLuK+2gUcnZe8ZHlaaINnQLl0xRIGRfcGk2yl8xoQAfHrSsL3rYu6FCmBdkdbhc9EPlwyGHewaRsvwRMJtAlA==", + "peer": true, + "engines": { + "node": "*" + }, + "funding": { + "type": "patreon", + "url": "https://www.patreon.com/infusion" + } + }, + "node_modules/fresh": { + "version": "0.5.2", + "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", + "integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/fs-memo": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/fs-memo/-/fs-memo-1.2.0.tgz", + "integrity": "sha512-YEexkCpL4j03jn5SxaMHqcO6IuWuqm8JFUYhyCep7Ao89JIYmB8xoKhK7zXXJ9cCaNXpyNH5L3QtAmoxjoHW2w==" + }, + "node_modules/fs-minipass": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fs-minipass/-/fs-minipass-2.1.0.tgz", + "integrity": "sha512-V/JgOLFCS+R6Vcq0slCuaeWEdNC3ouDlJMNIsacH2VtALiu9mV4LPrHc5cDl8k5aw6J8jwgWWpiTo5RYhmIzvg==", + "dependencies": { + "minipass": "^3.0.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/fs-minipass/node_modules/minipass": { + "version": "3.3.6", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz", + "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==" + }, + "node_modules/fsevents": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", + "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", + "hasInstallScript": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, + "node_modules/function-bind": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", + "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==" + }, + "node_modules/gauge": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/gauge/-/gauge-3.0.2.tgz", + "integrity": "sha512-+5J6MS/5XksCuXq++uFRsnUd7Ovu1XenbeuIuNRJxYWjgQbPuFhT14lAvsWfqfAmnwluf1OwMjz39HjfLPci0Q==", + "dependencies": { + "aproba": "^1.0.3 || ^2.0.0", + "color-support": "^1.1.2", + "console-control-strings": "^1.0.0", + "has-unicode": "^2.0.1", + "object-assign": "^4.1.1", + "signal-exit": "^3.0.0", + "string-width": "^4.2.3", + "strip-ansi": "^6.0.1", + "wide-align": "^1.1.2" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/generic-pool": { + "version": "3.9.0", + "resolved": "https://registry.npmjs.org/generic-pool/-/generic-pool-3.9.0.tgz", + "integrity": "sha512-hymDOu5B53XvN4QT9dBmZxPX4CWhBPPLguTZ9MMFeFa/Kg0xWVfylOVNlJji/E7yTZWFd/q9GO5TxDLq156D7g==", + "engines": { + "node": ">= 4" + } + }, + "node_modules/get-caller-file": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", + "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", + "engines": { + "node": "6.* || 8.* || >= 10.*" + } + }, + "node_modules/get-intrinsic": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.1.3.tgz", + "integrity": "sha512-QJVz1Tj7MS099PevUG5jvnt9tSkXN8K14dxQlikJuPt4uD9hHAHjLyLBiLR5zELelBdD9QNRAXZzsJx0WaDL9A==", + "dependencies": { + "function-bind": "^1.1.1", + "has": "^1.0.3", + "has-symbols": "^1.0.3" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/get-port": { + "version": "6.1.2", + "resolved": "https://registry.npmjs.org/get-port/-/get-port-6.1.2.tgz", + "integrity": "sha512-BrGGraKm2uPqurfGVj/z97/zv8dPleC6x9JBNRTrDNtCkkRF4rPwrQXFgL7+I+q8QSdU4ntLQX2D7KIxSy8nGw==", + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/get-port-please": { + "version": "2.6.1", + "resolved": "https://registry.npmjs.org/get-port-please/-/get-port-please-2.6.1.tgz", + "integrity": "sha512-4PDSrL6+cuMM1xs6w36ZIkaKzzE0xzfVBCfebHIJ3FE8iB9oic/ECwPw3iNiD4h1AoJ5XLLBhEviFAVrZsDC5A==", + "dependencies": { + "fs-memo": "^1.2.0" + } + }, + "node_modules/glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "dependencies": { + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/has": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", + "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", + "dependencies": { + "function-bind": "^1.1.1" + }, + "engines": { + "node": ">= 0.4.0" + } + }, + "node_modules/has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/has-symbols": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz", + "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-unicode": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/has-unicode/-/has-unicode-2.0.1.tgz", + "integrity": "sha512-8Rf9Y83NBReMnx0gFzA8JImQACstCYWUplepDa9xprwwtmgEZUF0h/i5xSA625zB/I37EtrswSST6OXxwaaIJQ==" + }, + "node_modules/helmet": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/helmet/-/helmet-5.1.1.tgz", + "integrity": "sha512-/yX0oVZBggA9cLJh8aw3PPCfedBnbd7J2aowjzsaWwZh7/UFY0nccn/aHAggIgWUFfnykX8GKd3a1pSbrmlcVQ==", + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/http-errors": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz", + "integrity": "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==", + "dependencies": { + "depd": "2.0.0", + "inherits": "2.0.4", + "setprototypeof": "1.2.0", + "statuses": "2.0.1", + "toidentifier": "1.0.1" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/https-proxy-agent": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz", + "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==", + "dependencies": { + "agent-base": "6", + "debug": "4" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/https-proxy-agent/node_modules/debug": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "dependencies": { + "ms": "2.1.2" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/https-proxy-agent/node_modules/ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" + }, + "node_modules/iconv-lite": { + "version": "0.4.24", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", + "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", + "dependencies": { + "safer-buffer": ">= 2.1.2 < 3" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/ieee754": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz", + "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, + "node_modules/ignore-by-default": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/ignore-by-default/-/ignore-by-default-1.0.1.tgz", + "integrity": "sha512-Ius2VYcGNk7T90CppJqcIkS5ooHUZyIQK+ClZfMfMNFEF9VSE73Fq+906u/CWu92x4gzZMWOwfFYckPObzdEbA==", + "dev": true + }, + "node_modules/inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", + "dependencies": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "node_modules/inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" + }, + "node_modules/ip": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ip/-/ip-2.0.0.tgz", + "integrity": "sha512-WKa+XuLG1A1R0UWhl2+1XQSi+fZWMsYKffMZTTYsiZaUD8k2yDAj5atimTUD2TZkyCkNEeYE5NhFZmupOGtjYQ==" + }, + "node_modules/ipaddr.js": { + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz", + "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==", + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/is-arrayish": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.3.2.tgz", + "integrity": "sha512-eVRqCvVlZbuw3GrM63ovNSNAeA1K16kaR/LRY/92w0zxQ5/1YzwblUX652i4Xs9RwAGjW9d9y6X88t8OaAJfWQ==" + }, + "node_modules/is-binary-path": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", + "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", + "dependencies": { + "binary-extensions": "^2.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/is-core-module": { + "version": "2.11.0", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.11.0.tgz", + "integrity": "sha512-RRjxlvLDkD1YJwDbroBHMb+cukurkDWNyHx7D3oNB5x9rb5ogcksMC5wHCadcXoo67gVr/+3GFySh3134zi6rw==", + "dependencies": { + "has": "^1.0.3" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "engines": { + "node": ">=8" + } + }, + "node_modules/is-glob": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", + "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", + "dependencies": { + "is-extglob": "^2.1.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "engines": { + "node": ">=0.12.0" + } + }, + "node_modules/isarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==" + }, + "node_modules/isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", + "dev": true + }, + "node_modules/jsonpath-plus": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/jsonpath-plus/-/jsonpath-plus-7.2.0.tgz", + "integrity": "sha512-zBfiUPM5nD0YZSBT/o/fbCUlCcepMIdP0CJZxM1+KgA4f2T206f6VAg9e7mX35+KlMaIc5qXW34f3BnwJ3w+RA==", + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/jsonwebtoken": { + "version": "9.0.0", + "resolved": "https://registry.npmjs.org/jsonwebtoken/-/jsonwebtoken-9.0.0.tgz", + "integrity": "sha512-tuGfYXxkQGDPnLJ7SibiQgVgeDgfbPq2k2ICcbgqW8WxWLBAxKQM/ZCu/IT8SOSwmaYl4dpTFCW5xZv7YbbWUw==", + "dependencies": { + "jws": "^3.2.2", + "lodash": "^4.17.21", + "ms": "^2.1.1", + "semver": "^7.3.8" + }, + "engines": { + "node": ">=12", + "npm": ">=6" + } + }, + "node_modules/jsonwebtoken/node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==" + }, + "node_modules/just-clone": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/just-clone/-/just-clone-6.2.0.tgz", + "integrity": "sha512-1IynUYEc/HAwxhi3WDpIpxJbZpMCvvrrmZVqvj9EhpvbH8lls7HhdhiByjL7DkAaWlLIzpC0Xc/VPvy/UxLNjA==" + }, + "node_modules/jwa": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/jwa/-/jwa-1.4.1.tgz", + "integrity": "sha512-qiLX/xhEEFKUAJ6FiBMbes3w9ATzyk5W7Hvzpa/SLYdxNtng+gcurvrI7TbACjIXlsJyr05/S1oUhZrc63evQA==", + "dependencies": { + "buffer-equal-constant-time": "1.0.1", + "ecdsa-sig-formatter": "1.0.11", + "safe-buffer": "^5.0.1" + } + }, + "node_modules/jws": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/jws/-/jws-3.2.2.tgz", + "integrity": "sha512-YHlZCB6lMTllWDtSPHz/ZXTsi8S00usEV6v1tjq8tOUZzw7DpSDWVXjXDre6ed1w/pd495ODpHZYSdkRTsa0HA==", + "dependencies": { + "jwa": "^1.4.1", + "safe-buffer": "^5.0.1" + } + }, + "node_modules/kareem": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/kareem/-/kareem-2.5.1.tgz", + "integrity": "sha512-7jFxRVm+jD+rkq3kY0iZDJfsO2/t4BBPeEb2qKn2lR/9KhuksYk5hxzfRYWMPV8P/x2d0kHD306YyWLzjjH+uA==", + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/lilconfig": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/lilconfig/-/lilconfig-2.0.6.tgz", + "integrity": "sha512-9JROoBW7pobfsx+Sq2JsASvCo6Pfo6WWoUW79HuB1BCoBXD4PLWJPqDF6fNj67pqBYTbAHkE57M1kS/+L1neOg==", + "engines": { + "node": ">=10" + } + }, + "node_modules/locate-path": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "dependencies": { + "p-locate": "^4.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/lodash": { + "version": "4.17.21", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", + "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==" + }, + "node_modules/lodash.foreach": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/lodash.foreach/-/lodash.foreach-4.5.0.tgz", + "integrity": "sha512-aEXTF4d+m05rVOAUG3z4vZZ4xVexLKZGF0lIxuHZ1Hplpk/3B6Z1+/ICICYRLm7c41Z2xiejbkCkJoTlypoXhQ==" + }, + "node_modules/lodash.get": { + "version": "4.4.2", + "resolved": "https://registry.npmjs.org/lodash.get/-/lodash.get-4.4.2.tgz", + "integrity": "sha512-z+Uw/vLuy6gQe8cfaFWD7p0wVv8fJl3mbzXh33RS+0oW2wvUqiRXiQ69gLWSLpgB5/6sU+r6BlQR0MBILadqTQ==" + }, + "node_modules/lodash.merge": { + "version": "4.6.2", + "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", + "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==" + }, + "node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/make-dir": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", + "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==", + "dependencies": { + "semver": "^6.0.0" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/make-dir/node_modules/semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/media-typer": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", + "integrity": "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/memory-pager": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/memory-pager/-/memory-pager-1.5.0.tgz", + "integrity": "sha512-ZS4Bp4r/Zoeq6+NLJpP+0Zzm0pR8whtGPf1XExKLJBAczGMnSi3It14OiNCStjQjM6NU1okjQGSxgEZN8eBYKg==", + "optional": true + }, + "node_modules/merge-descriptors": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz", + "integrity": "sha512-cCi6g3/Zr1iqQi6ySbseM1Xvooa98N0w31jzUYrXPX2xqObmFGHJ0tQ5u74H3mVh7wLouTseZyYIq39g8cNp1w==" + }, + "node_modules/merge2": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", + "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", + "engines": { + "node": ">= 8" + } + }, + "node_modules/methods": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", + "integrity": "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/micromatch": { + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz", + "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==", + "dependencies": { + "braces": "^3.0.2", + "picomatch": "^2.3.1" + }, + "engines": { + "node": ">=8.6" + } + }, + "node_modules/mime": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", + "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==", + "bin": { + "mime": "cli.js" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mime-types": { + "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "dependencies": { + "mime-db": "1.52.0" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/minimist": { + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.7.tgz", + "integrity": "sha512-bzfL1YUZsP41gmu/qjrEk0Q6i2ix/cVeAhbCbqH9u3zYutS1cLg00qhrD0M2MVdCcx4Sc0UpP2eBWo9rotpq6g==", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/minipass": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-4.0.0.tgz", + "integrity": "sha512-g2Uuh2jEKoht+zvO6vJqXmYpflPqzRBT+Th2h01DKh5z7wbY/AZ2gCQ78cP70YoHPyFdY30YBV5WxgLOEwOykw==", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/minizlib": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/minizlib/-/minizlib-2.1.2.tgz", + "integrity": "sha512-bAxsR8BVfj60DWXHE3u30oHzfl4G7khkSuPW+qvpd7jFRHm7dLxOjUk1EHACJ/hxLY8phGJ0YhYHZo7jil7Qdg==", + "dependencies": { + "minipass": "^3.0.0", + "yallist": "^4.0.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/minizlib/node_modules/minipass": { + "version": "3.3.6", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz", + "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/mkdirp": { + "version": "0.5.6", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.6.tgz", + "integrity": "sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==", + "dependencies": { + "minimist": "^1.2.6" + }, + "bin": { + "mkdirp": "bin/cmd.js" + } + }, + "node_modules/mongo-sanitize": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/mongo-sanitize/-/mongo-sanitize-1.1.0.tgz", + "integrity": "sha512-6gB9AiJD+om2eZLxaPKIP5Q8P3Fr+s+17rVWso7hU0+MAzmIvIMlgTYuyvalDLTtE/p0gczcvJ8A3pbN1XmQ/A==" + }, + "node_modules/mongodb": { + "version": "4.13.0", + "resolved": "https://registry.npmjs.org/mongodb/-/mongodb-4.13.0.tgz", + "integrity": "sha512-+taZ/bV8d1pYuHL4U+gSwkhmDrwkWbH1l4aah4YpmpscMwgFBkufIKxgP/G7m87/NUuQzc2Z75ZTI7ZOyqZLbw==", + "dependencies": { + "bson": "^4.7.0", + "mongodb-connection-string-url": "^2.5.4", + "socks": "^2.7.1" + }, + "engines": { + "node": ">=12.9.0" + }, + "optionalDependencies": { + "@aws-sdk/credential-providers": "^3.186.0", + "saslprep": "^1.0.3" + } + }, + "node_modules/mongodb-connection-string-url": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/mongodb-connection-string-url/-/mongodb-connection-string-url-2.6.0.tgz", + "integrity": "sha512-WvTZlI9ab0QYtTYnuMLgobULWhokRjtC7db9LtcVfJ+Hsnyr5eo6ZtNAt3Ly24XZScGMelOcGtm7lSn0332tPQ==", + "dependencies": { + "@types/whatwg-url": "^8.2.1", + "whatwg-url": "^11.0.0" + } + }, + "node_modules/mongoose": { + "version": "6.9.1", + "resolved": "https://registry.npmjs.org/mongoose/-/mongoose-6.9.1.tgz", + "integrity": "sha512-hOz1ZWV0w6WEVLrj89Wpk7PXDYtDDF6k7/NX79lY5iKqeFtZsceBXW8xW59YFNcW5O3cH32hQ8IbDlhgyBsDMA==", + "dependencies": { + "bson": "^4.7.0", + "kareem": "2.5.1", + "mongodb": "4.13.0", + "mpath": "0.9.0", + "mquery": "4.0.3", + "ms": "2.1.3", + "sift": "16.0.1" + }, + "engines": { + "node": ">=12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/mongoose" + } + }, + "node_modules/mongoose-unique-validator": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/mongoose-unique-validator/-/mongoose-unique-validator-3.1.0.tgz", + "integrity": "sha512-UsBBlFapip8gc8x1h+nLWnkOy+GTy9Z+zmTyZ35icLV3EoLIVz180vJzepfMM9yBy2AJh+maeuoM8CWtqejGUg==", + "dependencies": { + "lodash.foreach": "^4.1.0", + "lodash.get": "^4.0.2", + "lodash.merge": "^4.6.2" + }, + "peerDependencies": { + "mongoose": "^6.0.0" + } + }, + "node_modules/mongoose/node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==" + }, + "node_modules/mpath": { + "version": "0.9.0", + "resolved": "https://registry.npmjs.org/mpath/-/mpath-0.9.0.tgz", + "integrity": "sha512-ikJRQTk8hw5DEoFVxHG1Gn9T/xcjtdnOKIU1JTmGjZZlg9LST2mBLmcX3/ICIbgJydT2GOc15RnNy5mHmzfSew==", + "engines": { + "node": ">=4.0.0" + } + }, + "node_modules/mquery": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/mquery/-/mquery-4.0.3.tgz", + "integrity": "sha512-J5heI+P08I6VJ2Ky3+33IpCdAvlYGTSUjwTPxkAr8i8EoduPMBX2OY/wa3IKZIQl7MU4SbFk8ndgSKyB/cl1zA==", + "dependencies": { + "debug": "4.x" + }, + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/mquery/node_modules/debug": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "dependencies": { + "ms": "2.1.2" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/mquery/node_modules/ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" + }, + "node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" + }, + "node_modules/multer": { + "version": "1.4.5-lts.1", + "resolved": "https://registry.npmjs.org/multer/-/multer-1.4.5-lts.1.tgz", + "integrity": "sha512-ywPWvcDMeH+z9gQq5qYHCCy+ethsk4goepZ45GLD63fOu0YcNecQxi64nDs3qluZB+murG3/D4dJ7+dGctcCQQ==", + "dependencies": { + "append-field": "^1.0.0", + "busboy": "^1.0.0", + "concat-stream": "^1.5.2", + "mkdirp": "^0.5.4", + "object-assign": "^4.1.1", + "type-is": "^1.6.4", + "xtend": "^4.0.0" + }, + "engines": { + "node": ">= 6.0.0" + } + }, + "node_modules/nanoid": { + "version": "3.3.4", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.4.tgz", + "integrity": "sha512-MqBkQh/OHTS2egovRtLk45wEyNXwF+cokD+1YPf9u5VfJiRdAiRwB2froX5Co9Rh20xs4siNPm8naNotSD6RBw==", + "bin": { + "nanoid": "bin/nanoid.cjs" + }, + "engines": { + "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" + } + }, + "node_modules/negotiator": { + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz", + "integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/node-addon-api": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-5.0.0.tgz", + "integrity": "sha512-CvkDw2OEnme7ybCykJpVcKH+uAOLV2qLqiyla128dN9TkEWfrYmxG6C2boDe5KcNQqZF3orkqzGgOMvZ/JNekA==" + }, + "node_modules/node-domexception": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/node-domexception/-/node-domexception-1.0.0.tgz", + "integrity": "sha512-/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/jimmywarting" + }, + { + "type": "github", + "url": "https://paypal.me/jimmywarting" + } + ], + "engines": { + "node": ">=10.5.0" + } + }, + "node_modules/node-fetch": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-3.3.0.tgz", + "integrity": "sha512-BKwRP/O0UvoMKp7GNdwPlObhYGB5DQqwhEDQlNKuoqwVYSxkSZCSbHjnFFmUEtwSKRPU4kNK8PbDYYitwaE3QA==", + "dependencies": { + "data-uri-to-buffer": "^4.0.0", + "fetch-blob": "^3.1.4", + "formdata-polyfill": "^4.0.10" + }, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/node-fetch" + } + }, + "node_modules/node-releases": { + "version": "2.0.8", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.8.tgz", + "integrity": "sha512-dFSmB8fFHEH/s81Xi+Y/15DQY6VHW81nXRj86EMSL3lmuTmK1e+aT4wrFCkTbm+gSwkw4KpX+rT/pMM2c1mF+A==", + "peer": true + }, + "node_modules/nodemon": { + "version": "2.0.20", + "resolved": "https://registry.npmjs.org/nodemon/-/nodemon-2.0.20.tgz", + "integrity": "sha512-Km2mWHKKY5GzRg6i1j5OxOHQtuvVsgskLfigG25yTtbyfRGn/GNvIbRyOf1PSCKJ2aT/58TiuUsuOU5UToVViw==", + "dev": true, + "dependencies": { + "chokidar": "^3.5.2", + "debug": "^3.2.7", + "ignore-by-default": "^1.0.1", + "minimatch": "^3.1.2", + "pstree.remy": "^1.1.8", + "semver": "^5.7.1", + "simple-update-notifier": "^1.0.7", + "supports-color": "^5.5.0", + "touch": "^3.1.0", + "undefsafe": "^2.0.5" + }, + "bin": { + "nodemon": "bin/nodemon.js" + }, + "engines": { + "node": ">=8.10.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/nodemon" + } + }, + "node_modules/nodemon/node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dev": true, + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/nodemon/node_modules/debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dev": true, + "dependencies": { + "ms": "^2.1.1" + } + }, + "node_modules/nodemon/node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/nodemon/node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "dev": true + }, + "node_modules/nodemon/node_modules/semver": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "dev": true, + "bin": { + "semver": "bin/semver" + } + }, + "node_modules/nopt": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/nopt/-/nopt-5.0.0.tgz", + "integrity": "sha512-Tbj67rffqceeLpcRXrT7vKAN8CwfPeIBgM7E6iBkmKLV7bEMwpGgYLGv0jACUsECaa/vuxP0IjEont6umdMgtQ==", + "dependencies": { + "abbrev": "1" + }, + "bin": { + "nopt": "bin/nopt.js" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/normalize-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", + "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/normalize-range": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/normalize-range/-/normalize-range-0.1.2.tgz", + "integrity": "sha512-bdok/XvKII3nUpklnV6P2hxtMNrCboOjAcyBuQnWEhO665FwrSNRxU+AqpsyvO6LgGYPspN+lu5CLtw4jPRKNA==", + "peer": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/npmlog": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/npmlog/-/npmlog-5.0.1.tgz", + "integrity": "sha512-AqZtDUWOMKs1G/8lwylVjrdYgqA4d9nu8hc+0gzRxlDb1I10+FHBGMXs6aiQHFdCUUlqH99MUMuLfzWDNDtfxw==", + "dependencies": { + "are-we-there-yet": "^2.0.0", + "console-control-strings": "^1.1.0", + "gauge": "^3.0.0", + "set-blocking": "^2.0.0" + } + }, + "node_modules/object-assign": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", + "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object-hash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/object-hash/-/object-hash-3.0.0.tgz", + "integrity": "sha512-RSn9F68PjH9HqtltsSnqYC1XXoWe9Bju5+213R98cNGttag9q9yAOTzdbsqvIa7aNm5WffBZFpWYr2aWrklWAw==", + "engines": { + "node": ">= 6" + } + }, + "node_modules/object-inspect": { + "version": "1.12.2", + "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.12.2.tgz", + "integrity": "sha512-z+cPxW0QGUp0mcqcsgQyLVRDoXFQbXOwBaqyF7VIgI4TWNQsDHrBpUQslRmIfAoYWdYzs6UlKJtB2XJpTaNSpQ==", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/on-finished": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz", + "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==", + "dependencies": { + "ee-first": "1.1.1" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/on-headers": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/on-headers/-/on-headers-1.0.2.tgz", + "integrity": "sha512-pZAE+FJLoyITytdqK0U5s+FIpjN0JP3OzFi/u8Rx+EV5/W+JTWGXG8xFzevE7AjBfDqHv/8vL8qQsIhHnqRkrA==", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", + "dependencies": { + "wrappy": "1" + } + }, + "node_modules/p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dependencies": { + "p-try": "^2.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-locate": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "dependencies": { + "p-limit": "^2.2.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/p-try": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", + "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", + "engines": { + "node": ">=6" + } + }, + "node_modules/parseurl": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", + "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "engines": { + "node": ">=8" + } + }, + "node_modules/path-is-absolute": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/path-parse": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", + "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==" + }, + "node_modules/path-to-regexp": { + "version": "0.1.7", + "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz", + "integrity": "sha512-5DFkuoqlv1uYQKxy8omFBeJPQcdoE07Kv2sferDCrAq1ohOU+MSDswDIbnx3YAM60qIOnYa53wBhXW0EbMonrQ==" + }, + "node_modules/picocolors": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", + "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==" + }, + "node_modules/picomatch": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/pify": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", + "integrity": "sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/png-validator": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/png-validator/-/png-validator-1.1.0.tgz", + "integrity": "sha512-MlRLyPI1p3/dJbsjVH+4xOPucycrz8T3EvO0BzCXaNtrUhZkZROtzib9J6mnC81AJO8eBIwiDZwTFel2cMmSuQ==" + }, + "node_modules/pngjs": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/pngjs/-/pngjs-5.0.0.tgz", + "integrity": "sha512-40QW5YalBNfQo5yRYmiw7Yz6TKKVr3h6970B2YE+3fQpsWcrbj1PzJgxeJ19DRQjhMbKPIuMY8rFaXc8moolVw==", + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/postcss": { + "version": "8.4.20", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.20.tgz", + "integrity": "sha512-6Q04AXR1212bXr5fh03u8aAwbLxAQNGQ/Q1LNa0VfOI06ZAlhPHtQvE4OIdpj4kLThXilalPnmDSOD65DcHt+g==", + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/postcss" + } + ], + "dependencies": { + "nanoid": "^3.3.4", + "picocolors": "^1.0.0", + "source-map-js": "^1.0.2" + }, + "engines": { + "node": "^10 || ^12 || >=14" + } + }, + "node_modules/postcss-import": { + "version": "14.1.0", + "resolved": "https://registry.npmjs.org/postcss-import/-/postcss-import-14.1.0.tgz", + "integrity": "sha512-flwI+Vgm4SElObFVPpTIT7SU7R3qk2L7PyduMcokiaVKuWv9d/U+Gm/QAd8NDLuykTWTkcrjOeD2Pp1rMeBTGw==", + "dependencies": { + "postcss-value-parser": "^4.0.0", + "read-cache": "^1.0.0", + "resolve": "^1.1.7" + }, + "engines": { + "node": ">=10.0.0" + }, + "peerDependencies": { + "postcss": "^8.0.0" + } + }, + "node_modules/postcss-js": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/postcss-js/-/postcss-js-4.0.0.tgz", + "integrity": "sha512-77QESFBwgX4irogGVPgQ5s07vLvFqWr228qZY+w6lW599cRlK/HmnlivnnVUxkjHnCu4J16PDMHcH+e+2HbvTQ==", + "dependencies": { + "camelcase-css": "^2.0.1" + }, + "engines": { + "node": "^12 || ^14 || >= 16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + "peerDependencies": { + "postcss": "^8.3.3" + } + }, + "node_modules/postcss-load-config": { + "version": "3.1.4", + "resolved": "https://registry.npmjs.org/postcss-load-config/-/postcss-load-config-3.1.4.tgz", + "integrity": "sha512-6DiM4E7v4coTE4uzA8U//WhtPwyhiim3eyjEMFCnUpzbrkK9wJHgKDT2mR+HbtSrd/NubVaYTOpSpjUl8NQeRg==", + "dependencies": { + "lilconfig": "^2.0.5", + "yaml": "^1.10.2" + }, + "engines": { + "node": ">= 10" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + "peerDependencies": { + "postcss": ">=8.0.9", + "ts-node": ">=9.0.0" + }, + "peerDependenciesMeta": { + "postcss": { + "optional": true + }, + "ts-node": { + "optional": true + } + } + }, + "node_modules/postcss-nested": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/postcss-nested/-/postcss-nested-6.0.0.tgz", + "integrity": "sha512-0DkamqrPcmkBDsLn+vQDIrtkSbNkv5AD/M322ySo9kqFkCIYklym2xEmWkwo+Y3/qZo34tzEPNUw4y7yMCdv5w==", + "dependencies": { + "postcss-selector-parser": "^6.0.10" + }, + "engines": { + "node": ">=12.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + "peerDependencies": { + "postcss": "^8.2.14" + } + }, + "node_modules/postcss-selector-parser": { + "version": "6.0.10", + "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.0.10.tgz", + "integrity": "sha512-IQ7TZdoaqbT+LCpShg46jnZVlhWD2w6iQYAcYXfHARZ7X1t/UGhhceQDs5X0cGqKvYlHNOuv7Oa1xmb0oQuA3w==", + "dependencies": { + "cssesc": "^3.0.0", + "util-deprecate": "^1.0.2" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/postcss-value-parser": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz", + "integrity": "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==" + }, + "node_modules/process-nextick-args": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", + "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==" + }, + "node_modules/prom-client": { + "version": "14.1.1", + "resolved": "https://registry.npmjs.org/prom-client/-/prom-client-14.1.1.tgz", + "integrity": "sha512-hFU32q7UZQ59bVJQGUtm3I2PrJ3gWvoCkilX9sF165ks1qflhugVCeK+S1JjJYHvyt3o5kj68+q3bchormjnzw==", + "dependencies": { + "tdigest": "^0.1.1" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/proxy-addr": { + "version": "2.0.7", + "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz", + "integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==", + "dependencies": { + "forwarded": "0.2.0", + "ipaddr.js": "1.9.1" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/pstree.remy": { + "version": "1.1.8", + "resolved": "https://registry.npmjs.org/pstree.remy/-/pstree.remy-1.1.8.tgz", + "integrity": "sha512-77DZwxQmxKnu3aR542U+X8FypNzbfJ+C5XQDk3uWjWxn6151aIMGthWYRXTqT1E5oJvg+ljaa2OJi+VfvCOQ8w==", + "dev": true + }, + "node_modules/punycode": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.0.tgz", + "integrity": "sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA==", + "engines": { + "node": ">=6" + } + }, + "node_modules/qrcode": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/qrcode/-/qrcode-1.5.1.tgz", + "integrity": "sha512-nS8NJ1Z3md8uTjKtP+SGGhfqmTCs5flU/xR623oI0JX+Wepz9R8UrRVCTBTJm3qGw3rH6jJ6MUHjkDx15cxSSg==", + "dependencies": { + "dijkstrajs": "^1.0.1", + "encode-utf8": "^1.0.3", + "pngjs": "^5.0.0", + "yargs": "^15.3.1" + }, + "bin": { + "qrcode": "bin/qrcode" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/qs": { + "version": "6.11.0", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.11.0.tgz", + "integrity": "sha512-MvjoMCJwEarSbUYk5O+nmoSzSutSsTwF85zcHPQ9OrlFoZOYIjaqBAJIqIXjptyD5vThxGq52Xu/MaJzRkIk4Q==", + "dependencies": { + "side-channel": "^1.0.4" + }, + "engines": { + "node": ">=0.6" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/queue-microtask": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", + "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, + "node_modules/quick-lru": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/quick-lru/-/quick-lru-5.1.1.tgz", + "integrity": "sha512-WuyALRjWPDGtt/wzJiadO5AXY+8hZ80hVpe6MyivgraREW751X3SbhRvG3eLKOYN+8VEvqLcf3wdnt44Z4S4SA==", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/random-bytes": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/random-bytes/-/random-bytes-1.0.0.tgz", + "integrity": "sha512-iv7LhNVO047HzYR3InF6pUcUsPQiHTM1Qal51DcGSuZFBil1aBBWG5eHPNek7bvILMaYJ/8RU1e8w1AMdHmLQQ==", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/range-parser": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", + "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/raw-body": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.1.tgz", + "integrity": "sha512-qqJBtEyVgS0ZmPGdCFPWJ3FreoqvG4MVQln/kCgF7Olq95IbOp0/BWyMwbdtn4VTvkM8Y7khCQ2Xgk/tcrCXig==", + "dependencies": { + "bytes": "3.1.2", + "http-errors": "2.0.0", + "iconv-lite": "0.4.24", + "unpipe": "1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/read-cache": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/read-cache/-/read-cache-1.0.0.tgz", + "integrity": "sha512-Owdv/Ft7IjOgm/i0xvNDZ1LrRANRfew4b2prF3OWMQLxLfu3bS8FVhCsrSCMK4lR56Y9ya+AThoTpDCTxCmpRA==", + "dependencies": { + "pify": "^2.3.0" + } + }, + "node_modules/readable-stream": { + "version": "2.3.7", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz", + "integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==", + "dependencies": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, + "node_modules/readable-stream/node_modules/safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" + }, + "node_modules/readdirp": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", + "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", + "dependencies": { + "picomatch": "^2.2.1" + }, + "engines": { + "node": ">=8.10.0" + } + }, + "node_modules/redis": { + "version": "4.6.5", + "resolved": "https://registry.npmjs.org/redis/-/redis-4.6.5.tgz", + "integrity": "sha512-O0OWA36gDQbswOdUuAhRL6mTZpHFN525HlgZgDaVNgCJIAZR3ya06NTESb0R+TUZ+BFaDpz6NnnVvoMx9meUFg==", + "dependencies": { + "@redis/bloom": "1.2.0", + "@redis/client": "1.5.6", + "@redis/graph": "1.1.0", + "@redis/json": "1.0.4", + "@redis/search": "1.1.2", + "@redis/time-series": "1.0.4" + } + }, + "node_modules/redis-om": { + "version": "0.4.0-beta.3", + "resolved": "https://registry.npmjs.org/redis-om/-/redis-om-0.4.0-beta.3.tgz", + "integrity": "sha512-zGWBMGoe3exrvkbFjWqAFG8UJL3tdby5UkfPKiZLvA67d7FsR0ScEpsBaaWGL33y5EQUWnYL+pI8jzZaQ6brtA==", + "dependencies": { + "jsonpath-plus": "^7.2.0", + "just-clone": "^6.1.1", + "redis": "^4.6.4", + "ulid": "^2.3.0" + }, + "engines": { + "node": ">= 14" + } + }, + "node_modules/req-flash": { + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/req-flash/-/req-flash-0.0.3.tgz", + "integrity": "sha512-c5ouPRJ6OVc4ecL5cgdwd51nYOFQiOTfl7UWk+VlgUHgfsh7TMRFPN/OJ5ETnOYFyswprT8C2a6ctMvJgms9ng==" + }, + "node_modules/require-directory": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", + "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/require-main-filename": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-2.0.0.tgz", + "integrity": "sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==" + }, + "node_modules/resolve": { + "version": "1.22.1", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.1.tgz", + "integrity": "sha512-nBpuuYuY5jFsli/JIs1oldw6fOQCBioohqWZg/2hiaOybXOft4lonv85uDOKXdf8rhyK159cxU5cDcK/NKk8zw==", + "dependencies": { + "is-core-module": "^2.9.0", + "path-parse": "^1.0.7", + "supports-preserve-symlinks-flag": "^1.0.0" + }, + "bin": { + "resolve": "bin/resolve" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/reusify": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", + "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", + "engines": { + "iojs": ">=1.0.0", + "node": ">=0.10.0" + } + }, + "node_modules/rimraf": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", + "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", + "dependencies": { + "glob": "^7.1.3" + }, + "bin": { + "rimraf": "bin.js" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/rimraf/node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/rimraf/node_modules/glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/rimraf/node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/run-parallel": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", + "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "dependencies": { + "queue-microtask": "^1.2.2" + } + }, + "node_modules/safe-buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, + "node_modules/safer-buffer": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" + }, + "node_modules/saslprep": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/saslprep/-/saslprep-1.0.3.tgz", + "integrity": "sha512-/MY/PEMbk2SuY5sScONwhUDsV2p77Znkb/q3nSVstq/yQzYJOH/Azh29p9oJLsl3LnQwSvZDKagDGBsBwSooag==", + "optional": true, + "dependencies": { + "sparse-bitfield": "^3.0.3" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/sax": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/sax/-/sax-1.2.4.tgz", + "integrity": "sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==" + }, + "node_modules/semver": { + "version": "7.3.8", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.8.tgz", + "integrity": "sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A==", + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/send": { + "version": "0.18.0", + "resolved": "https://registry.npmjs.org/send/-/send-0.18.0.tgz", + "integrity": "sha512-qqWzuOjSFOuqPjFe4NOsMLafToQQwBSOEpS+FwEt3A2V3vKubTquT3vmLTQpFgMXp8AlFWFuP1qKaJZOtPpVXg==", + "dependencies": { + "debug": "2.6.9", + "depd": "2.0.0", + "destroy": "1.2.0", + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "etag": "~1.8.1", + "fresh": "0.5.2", + "http-errors": "2.0.0", + "mime": "1.6.0", + "ms": "2.1.3", + "on-finished": "2.4.1", + "range-parser": "~1.2.1", + "statuses": "2.0.1" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/send/node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==" + }, + "node_modules/serve-static": { + "version": "1.15.0", + "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.15.0.tgz", + "integrity": "sha512-XGuRDNjXUijsUL0vl6nSD7cwURuzEgglbOaFuZM9g3kwDXOWVTck0jLzjPzGD+TazWbboZYu52/9/XPdUgne9g==", + "dependencies": { + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "parseurl": "~1.3.3", + "send": "0.18.0" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/set-blocking": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", + "integrity": "sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==" + }, + "node_modules/setprototypeof": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz", + "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==" + }, + "node_modules/shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "dev": true, + "dependencies": { + "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/side-channel": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz", + "integrity": "sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==", + "dependencies": { + "call-bind": "^1.0.0", + "get-intrinsic": "^1.0.2", + "object-inspect": "^1.9.0" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/sift": { + "version": "16.0.1", + "resolved": "https://registry.npmjs.org/sift/-/sift-16.0.1.tgz", + "integrity": "sha512-Wv6BjQ5zbhW7VFefWusVP33T/EM0vYikCaQ2qR8yULbsilAT8/wQaXvuQ3ptGLpoKx+lihJE3y2UTgKDyyNHZQ==" + }, + "node_modules/signal-exit": { + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", + "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==" + }, + "node_modules/simple-swizzle": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/simple-swizzle/-/simple-swizzle-0.2.2.tgz", + "integrity": "sha512-JA//kQgZtbuY83m+xT+tXJkmJncGMTFT+C+g2h2R9uxkYIrE2yy9sgmcLhCnw57/WSD+Eh3J97FPEDFnbXnDUg==", + "dependencies": { + "is-arrayish": "^0.3.1" + } + }, + "node_modules/simple-update-notifier": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/simple-update-notifier/-/simple-update-notifier-1.1.0.tgz", + "integrity": "sha512-VpsrsJSUcJEseSbMHkrsrAVSdvVS5I96Qo1QAQ4FxQ9wXFcB+pjj7FB7/us9+GcgfW4ziHtYMc1J0PLczb55mg==", + "dev": true, + "dependencies": { + "semver": "~7.0.0" + }, + "engines": { + "node": ">=8.10.0" + } + }, + "node_modules/simple-update-notifier/node_modules/semver": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.0.0.tgz", + "integrity": "sha512-+GB6zVA9LWh6zovYQLALHwv5rb2PHGlJi3lfiqIHxR0uuwCgefcOJc59v9fv1w8GbStwxuuqqAjI9NMAOOgq1A==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/smart-buffer": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/smart-buffer/-/smart-buffer-4.2.0.tgz", + "integrity": "sha512-94hK0Hh8rPqQl2xXc3HsaBoOXKV20MToPkcXvwbISWLEs+64sBq5kFgn2kJDHb1Pry9yrP0dxrCI9RRci7RXKg==", + "engines": { + "node": ">= 6.0.0", + "npm": ">= 3.0.0" + } + }, + "node_modules/socks": { + "version": "2.7.1", + "resolved": "https://registry.npmjs.org/socks/-/socks-2.7.1.tgz", + "integrity": "sha512-7maUZy1N7uo6+WVEX6psASxtNlKaNVMlGQKkG/63nEDdLOWNbiUMoLK7X4uYoLhQstau72mLgfEWcXcwsaHbYQ==", + "dependencies": { + "ip": "^2.0.0", + "smart-buffer": "^4.2.0" + }, + "engines": { + "node": ">= 10.13.0", + "npm": ">= 3.0.0" + } + }, + "node_modules/source-map-js": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.0.2.tgz", + "integrity": "sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/sparse-bitfield": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/sparse-bitfield/-/sparse-bitfield-3.0.3.tgz", + "integrity": "sha512-kvzhi7vqKTfkh0PZU+2D2PIllw2ymqJKujUcyPMd9Y75Nv4nPbGJZXNhxsgdQab2BmlDct1YnfQCguEvHr7VsQ==", + "optional": true, + "dependencies": { + "memory-pager": "^1.0.2" + } + }, + "node_modules/speakeasy": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/speakeasy/-/speakeasy-2.0.0.tgz", + "integrity": "sha512-lW2A2s5LKi8rwu77ewisuUOtlCydF/hmQSOJjpTqTj1gZLkNgTaYnyvfxy2WBr4T/h+9c4g8HIITfj83OkFQFw==", + "dependencies": { + "base32.js": "0.0.1" + }, + "engines": { + "node": ">= 0.10.0" + } + }, + "node_modules/statuses": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz", + "integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/streamsearch": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/streamsearch/-/streamsearch-1.1.0.tgz", + "integrity": "sha512-Mcc5wHehp9aXz1ax6bZUyY5afg9u2rv5cqQI3mRrYkGC8rW2hM02jWuwjtL++LS5qinSyhj2QfLyNsuc+VsExg==", + "engines": { + "node": ">=10.0.0" + } + }, + "node_modules/string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "dependencies": { + "safe-buffer": "~5.1.0" + } + }, + "node_modules/string_decoder/node_modules/safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" + }, + "node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strnum": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/strnum/-/strnum-1.0.5.tgz", + "integrity": "sha512-J8bbNyKKXl5qYcR36TIO8W3mVGVHrmmxsd5PAItGkmyzwJvybiw2IVq5nqd0i4LSNSkB/sx9VHllbfFdr9k1JA==", + "optional": true + }, + "node_modules/supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dev": true, + "dependencies": { + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/supports-preserve-symlinks-flag": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", + "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/tailwindcss": { + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-3.2.4.tgz", + "integrity": "sha512-AhwtHCKMtR71JgeYDaswmZXhPcW9iuI9Sp2LvZPo9upDZ7231ZJ7eA9RaURbhpXGVlrjX4cFNlB4ieTetEb7hQ==", + "dependencies": { + "arg": "^5.0.2", + "chokidar": "^3.5.3", + "color-name": "^1.1.4", + "detective": "^5.2.1", + "didyoumean": "^1.2.2", + "dlv": "^1.1.3", + "fast-glob": "^3.2.12", + "glob-parent": "^6.0.2", + "is-glob": "^4.0.3", + "lilconfig": "^2.0.6", + "micromatch": "^4.0.5", + "normalize-path": "^3.0.0", + "object-hash": "^3.0.0", + "picocolors": "^1.0.0", + "postcss": "^8.4.18", + "postcss-import": "^14.1.0", + "postcss-js": "^4.0.0", + "postcss-load-config": "^3.1.4", + "postcss-nested": "6.0.0", + "postcss-selector-parser": "^6.0.10", + "postcss-value-parser": "^4.2.0", + "quick-lru": "^5.1.1", + "resolve": "^1.22.1" + }, + "bin": { + "tailwind": "lib/cli.js", + "tailwindcss": "lib/cli.js" + }, + "engines": { + "node": ">=12.13.0" + }, + "peerDependencies": { + "postcss": "^8.0.9" + } + }, + "node_modules/tailwindcss/node_modules/glob-parent": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", + "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", + "dependencies": { + "is-glob": "^4.0.3" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/tar": { + "version": "6.1.13", + "resolved": "https://registry.npmjs.org/tar/-/tar-6.1.13.tgz", + "integrity": "sha512-jdIBIN6LTIe2jqzay/2vtYLlBHa3JF42ot3h1dW8Q0PaAG4v8rm0cvpVePtau5C6OKXGGcgO9q2AMNSWxiLqKw==", + "dependencies": { + "chownr": "^2.0.0", + "fs-minipass": "^2.0.0", + "minipass": "^4.0.0", + "minizlib": "^2.1.1", + "mkdirp": "^1.0.3", + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/tar/node_modules/mkdirp": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", + "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==", + "bin": { + "mkdirp": "bin/cmd.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/tdigest": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/tdigest/-/tdigest-0.1.2.tgz", + "integrity": "sha512-+G0LLgjjo9BZX2MfdvPfH+MKLCrxlXSYec5DaPYP1fe6Iyhf0/fSmJ0bFiZ1F8BT6cGXl2LpltQptzjXKWEkKA==", + "dependencies": { + "bintrees": "1.0.2" + } + }, + "node_modules/to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "dependencies": { + "is-number": "^7.0.0" + }, + "engines": { + "node": ">=8.0" + } + }, + "node_modules/toidentifier": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz", + "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==", + "engines": { + "node": ">=0.6" + } + }, + "node_modules/touch": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/touch/-/touch-3.1.0.tgz", + "integrity": "sha512-WBx8Uy5TLtOSRtIq+M03/sKDrXCLHxwDcquSP2c43Le03/9serjQBIztjRz6FkJez9D/hleyAXTBGLwwZUw9lA==", + "dev": true, + "dependencies": { + "nopt": "~1.0.10" + }, + "bin": { + "nodetouch": "bin/nodetouch.js" + } + }, + "node_modules/touch/node_modules/nopt": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/nopt/-/nopt-1.0.10.tgz", + "integrity": "sha512-NWmpvLSqUrgrAC9HCuxEvb+PSloHpqVu+FqcO4eeF2h5qYRhA7ev6KvelyQAKtegUbC6RypJnlEOhd8vloNKYg==", + "dev": true, + "dependencies": { + "abbrev": "1" + }, + "bin": { + "nopt": "bin/nopt.js" + }, + "engines": { + "node": "*" + } + }, + "node_modules/tr46": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-3.0.0.tgz", + "integrity": "sha512-l7FvfAHlcmulp8kr+flpQZmVwtu7nfRV7NZujtN0OqES8EL4O4e0qqzL0DC5gAvx/ZC/9lk6rhcUwYvkBnBnYA==", + "dependencies": { + "punycode": "^2.1.1" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/tslib": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.0.tgz", + "integrity": "sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg==", + "optional": true + }, + "node_modules/type-is": { + "version": "1.6.18", + "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz", + "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==", + "dependencies": { + "media-typer": "0.3.0", + "mime-types": "~2.1.24" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/typedarray": { + "version": "0.0.6", + "resolved": "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz", + "integrity": "sha512-/aCDEGatGvZ2BIk+HmLf4ifCJFwvKFNb9/JeZPMulfgFracn9QFcAf5GO8B/mweUjSoblS5In0cWhqpfs/5PQA==" + }, + "node_modules/uid-safe": { + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/uid-safe/-/uid-safe-2.1.5.tgz", + "integrity": "sha512-KPHm4VL5dDXKz01UuEd88Df+KzynaohSL9fBh096KWAxSKZQDI2uBrVqtvRM4rwrIrRRKsdLNML/lnaaVSRioA==", + "dependencies": { + "random-bytes": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/ulid": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/ulid/-/ulid-2.3.0.tgz", + "integrity": "sha512-keqHubrlpvT6G2wH0OEfSW4mquYRcbe/J8NMmveoQOjUqmo+hXtO+ORCpWhdbZ7k72UtY61BL7haGxW6enBnjw==", + "bin": { + "ulid": "bin/cli.js" + } + }, + "node_modules/undefsafe": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/undefsafe/-/undefsafe-2.0.5.tgz", + "integrity": "sha512-WxONCrssBM8TSPRqN5EmsjVrsv4A8X12J4ArBiiayv3DyyG3ZlIg6yysuuSYdZsVz3TKcTg2fd//Ujd4CHV1iA==", + "dev": true + }, + "node_modules/unpipe": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", + "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/update-browserslist-db": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.10.tgz", + "integrity": "sha512-OztqDenkfFkbSG+tRxBeAnCVPckDBcvibKd35yDONx6OU8N7sqgwc7rCbkJ/WcYtVRZ4ba68d6byhC21GFh7sQ==", + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + } + ], + "peer": true, + "dependencies": { + "escalade": "^3.1.1", + "picocolors": "^1.0.0" + }, + "bin": { + "browserslist-lint": "cli.js" + }, + "peerDependencies": { + "browserslist": ">= 4.21.0" + } + }, + "node_modules/url-value-parser": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/url-value-parser/-/url-value-parser-2.2.0.tgz", + "integrity": "sha512-yIQdxJpgkPamPPAPuGdS7Q548rLhny42tg8d4vyTNzFqvOnwqrgHXvgehT09U7fwrzxi3RxCiXjoNUNnNOlQ8A==", + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/util-deprecate": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", + "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==" + }, + "node_modules/utils-merge": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", + "integrity": "sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==", + "engines": { + "node": ">= 0.4.0" + } + }, + "node_modules/uuid": { + "version": "8.3.2", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", + "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", + "optional": true, + "bin": { + "uuid": "dist/bin/uuid" + } + }, + "node_modules/vary": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", + "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/web-streams-polyfill": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/web-streams-polyfill/-/web-streams-polyfill-3.2.1.tgz", + "integrity": "sha512-e0MO3wdXWKrLbL0DgGnUV7WHVuw9OUvL4hjgnPkIeEvESk74gAITi5G606JtZPp39cd8HA9VQzCIvA49LpPN5Q==", + "engines": { + "node": ">= 8" + } + }, + "node_modules/webidl-conversions": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-7.0.0.tgz", + "integrity": "sha512-VwddBukDzu71offAQR975unBIGqfKZpM+8ZX6ySk8nYhVoo5CYaZyzt3YBvYtRtO+aoGlqxPg/B87NGVZ/fu6g==", + "engines": { + "node": ">=12" + } + }, + "node_modules/whatwg-url": { + "version": "11.0.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-11.0.0.tgz", + "integrity": "sha512-RKT8HExMpoYx4igMiVMY83lN6UeITKJlBQ+vR/8ZJ8OCdSiN3RwCq+9gH0+Xzj0+5IrM6i4j/6LuvzbZIQgEcQ==", + "dependencies": { + "tr46": "^3.0.0", + "webidl-conversions": "^7.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dev": true, + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/which-module": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.0.tgz", + "integrity": "sha512-B+enWhmw6cjfVC7kS8Pj9pCrKSc5txArRyaYGe088shv/FGWH+0Rjx/xPgtsWfsUtS27FkP697E4DDhgrgoc0Q==" + }, + "node_modules/wide-align": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.5.tgz", + "integrity": "sha512-eDMORYaPNZ4sQIuuYPDHdQvf4gyCF9rEEV/yPxGfwPkRodwEgiMUUXTx/dex+Me0wxx53S+NgUHaP7y3MGlDmg==", + "dependencies": { + "string-width": "^1.0.2 || 2 || 3 || 4" + } + }, + "node_modules/wrap-ansi": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", + "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==", + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==" + }, + "node_modules/xml-js": { + "version": "1.6.11", + "resolved": "https://registry.npmjs.org/xml-js/-/xml-js-1.6.11.tgz", + "integrity": "sha512-7rVi2KMfwfWFl+GpPg6m80IVMWXLRjO+PxTq7V2CDhoGak0wzYzFgUY2m4XJ47OGdXd8eLE8EmwfAmdjw7lC1g==", + "dependencies": { + "sax": "^1.2.4" + }, + "bin": { + "xml-js": "bin/cli.js" + } + }, + "node_modules/xss": { + "version": "1.0.14", + "resolved": "https://registry.npmjs.org/xss/-/xss-1.0.14.tgz", + "integrity": "sha512-og7TEJhXvn1a7kzZGQ7ETjdQVS2UfZyTlsEdDOqvQF7GoxNfY+0YLCzBy1kPdsDDx4QuNAonQPddpsn6Xl/7sw==", + "dependencies": { + "commander": "^2.20.3", + "cssfilter": "0.0.10" + }, + "bin": { + "xss": "bin/xss" + }, + "engines": { + "node": ">= 0.10.0" + } + }, + "node_modules/xtend": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", + "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==", + "engines": { + "node": ">=0.4" + } + }, + "node_modules/y18n": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.3.tgz", + "integrity": "sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==" + }, + "node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" + }, + "node_modules/yaml": { + "version": "1.10.2", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-1.10.2.tgz", + "integrity": "sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==", + "engines": { + "node": ">= 6" + } + }, + "node_modules/yargs": { + "version": "15.4.1", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-15.4.1.tgz", + "integrity": "sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A==", + "dependencies": { + "cliui": "^6.0.0", + "decamelize": "^1.2.0", + "find-up": "^4.1.0", + "get-caller-file": "^2.0.1", + "require-directory": "^2.1.1", + "require-main-filename": "^2.0.0", + "set-blocking": "^2.0.0", + "string-width": "^4.2.0", + "which-module": "^2.0.0", + "y18n": "^4.0.0", + "yargs-parser": "^18.1.2" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/yargs-parser": { + "version": "18.1.3", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-18.1.3.tgz", + "integrity": "sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==", + "dependencies": { + "camelcase": "^5.0.0", + "decamelize": "^1.2.0" + }, + "engines": { + "node": ">=6" + } + } + }, + "dependencies": { + "@aws-crypto/ie11-detection": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@aws-crypto/ie11-detection/-/ie11-detection-3.0.0.tgz", + "integrity": "sha512-341lBBkiY1DfDNKai/wXM3aujNBkXR7tq1URPQDL9wi3AUbI80NR74uF1TXHMm7po1AcnFk8iu2S2IeU/+/A+Q==", + "optional": true, + "requires": { + "tslib": "^1.11.1" + }, + "dependencies": { + "tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", + "optional": true + } + } + }, + "@aws-crypto/sha256-browser": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@aws-crypto/sha256-browser/-/sha256-browser-3.0.0.tgz", + "integrity": "sha512-8VLmW2B+gjFbU5uMeqtQM6Nj0/F1bro80xQXCW6CQBWgosFWXTx77aeOF5CAIAmbOK64SdMBJdNr6J41yP5mvQ==", + "optional": true, + "requires": { + "@aws-crypto/ie11-detection": "^3.0.0", + "@aws-crypto/sha256-js": "^3.0.0", + "@aws-crypto/supports-web-crypto": "^3.0.0", + "@aws-crypto/util": "^3.0.0", + "@aws-sdk/types": "^3.222.0", + "@aws-sdk/util-locate-window": "^3.0.0", + "@aws-sdk/util-utf8-browser": "^3.0.0", + "tslib": "^1.11.1" + }, + "dependencies": { + "tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", + "optional": true + } + } + }, + "@aws-crypto/sha256-js": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@aws-crypto/sha256-js/-/sha256-js-3.0.0.tgz", + "integrity": "sha512-PnNN7os0+yd1XvXAy23CFOmTbMaDxgxXtTKHybrJ39Y8kGzBATgBFibWJKH6BhytLI/Zyszs87xCOBNyBig6vQ==", + "optional": true, + "requires": { + "@aws-crypto/util": "^3.0.0", + "@aws-sdk/types": "^3.222.0", + "tslib": "^1.11.1" + }, + "dependencies": { + "tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", + "optional": true + } + } + }, + "@aws-crypto/supports-web-crypto": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@aws-crypto/supports-web-crypto/-/supports-web-crypto-3.0.0.tgz", + "integrity": "sha512-06hBdMwUAb2WFTuGG73LSC0wfPu93xWwo5vL2et9eymgmu3Id5vFAHBbajVWiGhPO37qcsdCap/FqXvJGJWPIg==", + "optional": true, + "requires": { + "tslib": "^1.11.1" + }, + "dependencies": { + "tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", + "optional": true + } + } + }, + "@aws-crypto/util": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@aws-crypto/util/-/util-3.0.0.tgz", + "integrity": "sha512-2OJlpeJpCR48CC8r+uKVChzs9Iungj9wkZrl8Z041DWEWvyIHILYKCPNzJghKsivj+S3mLo6BVc7mBNzdxA46w==", + "optional": true, + "requires": { + "@aws-sdk/types": "^3.222.0", + "@aws-sdk/util-utf8-browser": "^3.0.0", + "tslib": "^1.11.1" + }, + "dependencies": { + "tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", + "optional": true + } + } + }, + "@aws-sdk/abort-controller": { + "version": "3.272.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/abort-controller/-/abort-controller-3.272.0.tgz", + "integrity": "sha512-s2TV3phapcTwZNr4qLxbfuQuE9ZMP4RoJdkvRRCkKdm6jslsWLJf2Zlcxti/23hOlINUMYv2iXE2pftIgWGdpg==", + "optional": true, + "requires": { + "@aws-sdk/types": "3.272.0", + "tslib": "^2.3.1" + } + }, + "@aws-sdk/client-cognito-identity": { + "version": "3.272.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/client-cognito-identity/-/client-cognito-identity-3.272.0.tgz", + "integrity": "sha512-uMjRWcNvX7SoGaVn0mXWD43+Z1awPahQwGW3riDLfXHZdOgw2oFDhD3Jg5jQ8OzQLUfDvArhE3WyZwlS4muMuQ==", + "optional": true, + "requires": { + "@aws-crypto/sha256-browser": "3.0.0", + "@aws-crypto/sha256-js": "3.0.0", + "@aws-sdk/client-sts": "3.272.0", + "@aws-sdk/config-resolver": "3.272.0", + "@aws-sdk/credential-provider-node": "3.272.0", + "@aws-sdk/fetch-http-handler": "3.272.0", + "@aws-sdk/hash-node": "3.272.0", + "@aws-sdk/invalid-dependency": "3.272.0", + "@aws-sdk/middleware-content-length": "3.272.0", + "@aws-sdk/middleware-endpoint": "3.272.0", + "@aws-sdk/middleware-host-header": "3.272.0", + "@aws-sdk/middleware-logger": "3.272.0", + "@aws-sdk/middleware-recursion-detection": "3.272.0", + "@aws-sdk/middleware-retry": "3.272.0", + "@aws-sdk/middleware-serde": "3.272.0", + "@aws-sdk/middleware-signing": "3.272.0", + "@aws-sdk/middleware-stack": "3.272.0", + "@aws-sdk/middleware-user-agent": "3.272.0", + "@aws-sdk/node-config-provider": "3.272.0", + "@aws-sdk/node-http-handler": "3.272.0", + "@aws-sdk/protocol-http": "3.272.0", + "@aws-sdk/smithy-client": "3.272.0", + "@aws-sdk/types": "3.272.0", + "@aws-sdk/url-parser": "3.272.0", + "@aws-sdk/util-base64": "3.208.0", + "@aws-sdk/util-body-length-browser": "3.188.0", + "@aws-sdk/util-body-length-node": "3.208.0", + "@aws-sdk/util-defaults-mode-browser": "3.272.0", + "@aws-sdk/util-defaults-mode-node": "3.272.0", + "@aws-sdk/util-endpoints": "3.272.0", + "@aws-sdk/util-retry": "3.272.0", + "@aws-sdk/util-user-agent-browser": "3.272.0", + "@aws-sdk/util-user-agent-node": "3.272.0", + "@aws-sdk/util-utf8": "3.254.0", + "tslib": "^2.3.1" + } + }, + "@aws-sdk/client-sso": { + "version": "3.272.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/client-sso/-/client-sso-3.272.0.tgz", + "integrity": "sha512-xn9a0IGONwQIARmngThoRhF1lLGjHAD67sUaShgIMaIMc6ipVYN6alWG1VuUpoUQ6iiwMEt0CHdfCyLyUV/fTA==", + "optional": true, + "requires": { + "@aws-crypto/sha256-browser": "3.0.0", + "@aws-crypto/sha256-js": "3.0.0", + "@aws-sdk/config-resolver": "3.272.0", + "@aws-sdk/fetch-http-handler": "3.272.0", + "@aws-sdk/hash-node": "3.272.0", + "@aws-sdk/invalid-dependency": "3.272.0", + "@aws-sdk/middleware-content-length": "3.272.0", + "@aws-sdk/middleware-endpoint": "3.272.0", + "@aws-sdk/middleware-host-header": "3.272.0", + "@aws-sdk/middleware-logger": "3.272.0", + "@aws-sdk/middleware-recursion-detection": "3.272.0", + "@aws-sdk/middleware-retry": "3.272.0", + "@aws-sdk/middleware-serde": "3.272.0", + "@aws-sdk/middleware-stack": "3.272.0", + "@aws-sdk/middleware-user-agent": "3.272.0", + "@aws-sdk/node-config-provider": "3.272.0", + "@aws-sdk/node-http-handler": "3.272.0", + "@aws-sdk/protocol-http": "3.272.0", + "@aws-sdk/smithy-client": "3.272.0", + "@aws-sdk/types": "3.272.0", + "@aws-sdk/url-parser": "3.272.0", + "@aws-sdk/util-base64": "3.208.0", + "@aws-sdk/util-body-length-browser": "3.188.0", + "@aws-sdk/util-body-length-node": "3.208.0", + "@aws-sdk/util-defaults-mode-browser": "3.272.0", + "@aws-sdk/util-defaults-mode-node": "3.272.0", + "@aws-sdk/util-endpoints": "3.272.0", + "@aws-sdk/util-retry": "3.272.0", + "@aws-sdk/util-user-agent-browser": "3.272.0", + "@aws-sdk/util-user-agent-node": "3.272.0", + "@aws-sdk/util-utf8": "3.254.0", + "tslib": "^2.3.1" + } + }, + "@aws-sdk/client-sso-oidc": { + "version": "3.272.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/client-sso-oidc/-/client-sso-oidc-3.272.0.tgz", + "integrity": "sha512-ECcXu3xoa1yggnGKMTh29eWNHiF/wC6r5Uqbla22eOOosyh0+Z6lkJ3JUSLOUKCkBXA4Cs/tJL9UDFBrKbSlvA==", + "optional": true, + "requires": { + "@aws-crypto/sha256-browser": "3.0.0", + "@aws-crypto/sha256-js": "3.0.0", + "@aws-sdk/config-resolver": "3.272.0", + "@aws-sdk/fetch-http-handler": "3.272.0", + "@aws-sdk/hash-node": "3.272.0", + "@aws-sdk/invalid-dependency": "3.272.0", + "@aws-sdk/middleware-content-length": "3.272.0", + "@aws-sdk/middleware-endpoint": "3.272.0", + "@aws-sdk/middleware-host-header": "3.272.0", + "@aws-sdk/middleware-logger": "3.272.0", + "@aws-sdk/middleware-recursion-detection": "3.272.0", + "@aws-sdk/middleware-retry": "3.272.0", + "@aws-sdk/middleware-serde": "3.272.0", + "@aws-sdk/middleware-stack": "3.272.0", + "@aws-sdk/middleware-user-agent": "3.272.0", + "@aws-sdk/node-config-provider": "3.272.0", + "@aws-sdk/node-http-handler": "3.272.0", + "@aws-sdk/protocol-http": "3.272.0", + "@aws-sdk/smithy-client": "3.272.0", + "@aws-sdk/types": "3.272.0", + "@aws-sdk/url-parser": "3.272.0", + "@aws-sdk/util-base64": "3.208.0", + "@aws-sdk/util-body-length-browser": "3.188.0", + "@aws-sdk/util-body-length-node": "3.208.0", + "@aws-sdk/util-defaults-mode-browser": "3.272.0", + "@aws-sdk/util-defaults-mode-node": "3.272.0", + "@aws-sdk/util-endpoints": "3.272.0", + "@aws-sdk/util-retry": "3.272.0", + "@aws-sdk/util-user-agent-browser": "3.272.0", + "@aws-sdk/util-user-agent-node": "3.272.0", + "@aws-sdk/util-utf8": "3.254.0", + "tslib": "^2.3.1" + } + }, + "@aws-sdk/client-sts": { + "version": "3.272.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/client-sts/-/client-sts-3.272.0.tgz", + "integrity": "sha512-kigxCxURp3WupufGaL/LABMb7UQfzAQkKcj9royizL3ItJ0vw5kW/JFrPje5IW1mfLgdPF7PI9ShOjE0fCLTqA==", + "optional": true, + "requires": { + "@aws-crypto/sha256-browser": "3.0.0", + "@aws-crypto/sha256-js": "3.0.0", + "@aws-sdk/config-resolver": "3.272.0", + "@aws-sdk/credential-provider-node": "3.272.0", + "@aws-sdk/fetch-http-handler": "3.272.0", + "@aws-sdk/hash-node": "3.272.0", + "@aws-sdk/invalid-dependency": "3.272.0", + "@aws-sdk/middleware-content-length": "3.272.0", + "@aws-sdk/middleware-endpoint": "3.272.0", + "@aws-sdk/middleware-host-header": "3.272.0", + "@aws-sdk/middleware-logger": "3.272.0", + "@aws-sdk/middleware-recursion-detection": "3.272.0", + "@aws-sdk/middleware-retry": "3.272.0", + "@aws-sdk/middleware-sdk-sts": "3.272.0", + "@aws-sdk/middleware-serde": "3.272.0", + "@aws-sdk/middleware-signing": "3.272.0", + "@aws-sdk/middleware-stack": "3.272.0", + "@aws-sdk/middleware-user-agent": "3.272.0", + "@aws-sdk/node-config-provider": "3.272.0", + "@aws-sdk/node-http-handler": "3.272.0", + "@aws-sdk/protocol-http": "3.272.0", + "@aws-sdk/smithy-client": "3.272.0", + "@aws-sdk/types": "3.272.0", + "@aws-sdk/url-parser": "3.272.0", + "@aws-sdk/util-base64": "3.208.0", + "@aws-sdk/util-body-length-browser": "3.188.0", + "@aws-sdk/util-body-length-node": "3.208.0", + "@aws-sdk/util-defaults-mode-browser": "3.272.0", + "@aws-sdk/util-defaults-mode-node": "3.272.0", + "@aws-sdk/util-endpoints": "3.272.0", + "@aws-sdk/util-retry": "3.272.0", + "@aws-sdk/util-user-agent-browser": "3.272.0", + "@aws-sdk/util-user-agent-node": "3.272.0", + "@aws-sdk/util-utf8": "3.254.0", + "fast-xml-parser": "4.0.11", + "tslib": "^2.3.1" + } + }, + "@aws-sdk/config-resolver": { + "version": "3.272.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/config-resolver/-/config-resolver-3.272.0.tgz", + "integrity": "sha512-Dr4CffRVNsOp3LRNdpvcH6XuSgXOSLblWliCy/5I86cNl567KVMxujVx6uPrdTXYs2h1rt3MNl6jQGnAiJeTbw==", + "optional": true, + "requires": { + "@aws-sdk/signature-v4": "3.272.0", + "@aws-sdk/types": "3.272.0", + "@aws-sdk/util-config-provider": "3.208.0", + "@aws-sdk/util-middleware": "3.272.0", + "tslib": "^2.3.1" + } + }, + "@aws-sdk/credential-provider-cognito-identity": { + "version": "3.272.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-cognito-identity/-/credential-provider-cognito-identity-3.272.0.tgz", + "integrity": "sha512-rVx0rtQjbiYCM0nah2rB/2ut2YJYPpRr1AbW/Hd4r/PI+yiusrmXAwuT4HIW2yr34zsQMPi1jZ3WHN9Rn9mzlg==", + "optional": true, + "requires": { + "@aws-sdk/client-cognito-identity": "3.272.0", + "@aws-sdk/property-provider": "3.272.0", + "@aws-sdk/types": "3.272.0", + "tslib": "^2.3.1" + } + }, + "@aws-sdk/credential-provider-env": { + "version": "3.272.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-env/-/credential-provider-env-3.272.0.tgz", + "integrity": "sha512-QI65NbLnKLYHyTYhXaaUrq6eVsCCrMUb05WDA7+TJkWkjXesovpjc8vUKgFiLSxmgKmb2uOhHNcDyObKMrYQFw==", + "optional": true, + "requires": { + "@aws-sdk/property-provider": "3.272.0", + "@aws-sdk/types": "3.272.0", + "tslib": "^2.3.1" + } + }, + "@aws-sdk/credential-provider-imds": { + "version": "3.272.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-imds/-/credential-provider-imds-3.272.0.tgz", + "integrity": "sha512-wwAfVY1jTFQEfxVfdYD5r5ieYGl+0g4nhekVxNMqE8E1JeRDd18OqiwAflzpgBIqxfqvCUkf+vl5JYyacMkNAQ==", + "optional": true, + "requires": { + "@aws-sdk/node-config-provider": "3.272.0", + "@aws-sdk/property-provider": "3.272.0", + "@aws-sdk/types": "3.272.0", + "@aws-sdk/url-parser": "3.272.0", + "tslib": "^2.3.1" + } + }, + "@aws-sdk/credential-provider-ini": { + "version": "3.272.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-ini/-/credential-provider-ini-3.272.0.tgz", + "integrity": "sha512-iE3CDzK5NcupHYjfYjBdY1JCy8NLEoRUsboEjG0i0gy3S3jVpDeVHX1dLVcL/slBFj6GiM7SoNV/UfKnJf3Gaw==", + "optional": true, + "requires": { + "@aws-sdk/credential-provider-env": "3.272.0", + "@aws-sdk/credential-provider-imds": "3.272.0", + "@aws-sdk/credential-provider-process": "3.272.0", + "@aws-sdk/credential-provider-sso": "3.272.0", + "@aws-sdk/credential-provider-web-identity": "3.272.0", + "@aws-sdk/property-provider": "3.272.0", + "@aws-sdk/shared-ini-file-loader": "3.272.0", + "@aws-sdk/types": "3.272.0", + "tslib": "^2.3.1" + } + }, + "@aws-sdk/credential-provider-node": { + "version": "3.272.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-node/-/credential-provider-node-3.272.0.tgz", + "integrity": "sha512-FI8uvwM1IxiRSvbkdKv8DZG5vxU3ezaseTaB1fHWTxEUFb0pWIoHX9oeOKer9Fj31SOZTCNAaYFURbSRuZlm/w==", + "optional": true, + "requires": { + "@aws-sdk/credential-provider-env": "3.272.0", + "@aws-sdk/credential-provider-imds": "3.272.0", + "@aws-sdk/credential-provider-ini": "3.272.0", + "@aws-sdk/credential-provider-process": "3.272.0", + "@aws-sdk/credential-provider-sso": "3.272.0", + "@aws-sdk/credential-provider-web-identity": "3.272.0", + "@aws-sdk/property-provider": "3.272.0", + "@aws-sdk/shared-ini-file-loader": "3.272.0", + "@aws-sdk/types": "3.272.0", + "tslib": "^2.3.1" + } + }, + "@aws-sdk/credential-provider-process": { + "version": "3.272.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-process/-/credential-provider-process-3.272.0.tgz", + "integrity": "sha512-hiCAjWWm2PeBFp5cjkxqyam/XADjiS+e7GzwC34TbZn3LisS0uoweLojj9tD11NnnUhyhbLteUvu5+rotOLwrg==", + "optional": true, + "requires": { + "@aws-sdk/property-provider": "3.272.0", + "@aws-sdk/shared-ini-file-loader": "3.272.0", + "@aws-sdk/types": "3.272.0", + "tslib": "^2.3.1" + } + }, + "@aws-sdk/credential-provider-sso": { + "version": "3.272.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-sso/-/credential-provider-sso-3.272.0.tgz", + "integrity": "sha512-hwYaulyiU/7chKKFecxCeo0ls6Dxs7h+5EtoYcJJGvfpvCncyOZF35t00OAsCd3Wo7HkhhgfpGdb6dmvCNQAZQ==", + "optional": true, + "requires": { + "@aws-sdk/client-sso": "3.272.0", + "@aws-sdk/property-provider": "3.272.0", + "@aws-sdk/shared-ini-file-loader": "3.272.0", + "@aws-sdk/token-providers": "3.272.0", + "@aws-sdk/types": "3.272.0", + "tslib": "^2.3.1" + } + }, + "@aws-sdk/credential-provider-web-identity": { + "version": "3.272.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-web-identity/-/credential-provider-web-identity-3.272.0.tgz", + "integrity": "sha512-ImrHMkcgneGa/HadHAQXPwOrX26sAKuB8qlMxZF/ZCM2B55u8deY+ZVkVuraeKb7YsahMGehPFOfRAF6mvFI5Q==", + "optional": true, + "requires": { + "@aws-sdk/property-provider": "3.272.0", + "@aws-sdk/types": "3.272.0", + "tslib": "^2.3.1" + } + }, + "@aws-sdk/credential-providers": { + "version": "3.272.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-providers/-/credential-providers-3.272.0.tgz", + "integrity": "sha512-ucd6Xq6aBMf+nM4uz5zkjL11mwaE5BV1Q4hkulaGu2v1dRA8n6zhLJk/sb4hOJ7leelqMJMErlbQ2T3MkYvlJQ==", + "optional": true, + "requires": { + "@aws-sdk/client-cognito-identity": "3.272.0", + "@aws-sdk/client-sso": "3.272.0", + "@aws-sdk/client-sts": "3.272.0", + "@aws-sdk/credential-provider-cognito-identity": "3.272.0", + "@aws-sdk/credential-provider-env": "3.272.0", + "@aws-sdk/credential-provider-imds": "3.272.0", + "@aws-sdk/credential-provider-ini": "3.272.0", + "@aws-sdk/credential-provider-node": "3.272.0", + "@aws-sdk/credential-provider-process": "3.272.0", + "@aws-sdk/credential-provider-sso": "3.272.0", + "@aws-sdk/credential-provider-web-identity": "3.272.0", + "@aws-sdk/property-provider": "3.272.0", + "@aws-sdk/shared-ini-file-loader": "3.272.0", + "@aws-sdk/types": "3.272.0", + "tslib": "^2.3.1" + } + }, + "@aws-sdk/fetch-http-handler": { + "version": "3.272.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/fetch-http-handler/-/fetch-http-handler-3.272.0.tgz", + "integrity": "sha512-1Qhm9e0RbS1Xf4CZqUbQyUMkDLd7GrsRXWIvm9b86/vgeV8/WnjO3CMue9D51nYgcyQORhYXv6uVjAYCWbUExA==", + "optional": true, + "requires": { + "@aws-sdk/protocol-http": "3.272.0", + "@aws-sdk/querystring-builder": "3.272.0", + "@aws-sdk/types": "3.272.0", + "@aws-sdk/util-base64": "3.208.0", + "tslib": "^2.3.1" + } + }, + "@aws-sdk/hash-node": { + "version": "3.272.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/hash-node/-/hash-node-3.272.0.tgz", + "integrity": "sha512-40dwND+iAm3VtPHPZu7/+CIdVJFk2s0cWZt1lOiMPMSXycSYJ45wMk7Lly3uoqRx0uWfFK5iT2OCv+fJi5jTng==", + "optional": true, + "requires": { + "@aws-sdk/types": "3.272.0", + "@aws-sdk/util-buffer-from": "3.208.0", + "@aws-sdk/util-utf8": "3.254.0", + "tslib": "^2.3.1" + } + }, + "@aws-sdk/invalid-dependency": { + "version": "3.272.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/invalid-dependency/-/invalid-dependency-3.272.0.tgz", + "integrity": "sha512-ysW6wbjl1Y78txHUQ/Tldj2Rg1BI7rpMO9B9xAF6yAX3mQ7t6SUPQG/ewOGvH2208NBIl3qP5e/hDf0Q6r/1iw==", + "optional": true, + "requires": { + "@aws-sdk/types": "3.272.0", + "tslib": "^2.3.1" + } + }, + "@aws-sdk/is-array-buffer": { + "version": "3.201.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/is-array-buffer/-/is-array-buffer-3.201.0.tgz", + "integrity": "sha512-UPez5qLh3dNgt0DYnPD/q0mVJY84rA17QE26hVNOW3fAji8W2wrwrxdacWOxyXvlxWsVRcKmr+lay1MDqpAMfg==", + "optional": true, + "requires": { + "tslib": "^2.3.1" + } + }, + "@aws-sdk/middleware-content-length": { + "version": "3.272.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-content-length/-/middleware-content-length-3.272.0.tgz", + "integrity": "sha512-sAbDZSTNmLX+UTGwlUHJBWy0QGQkiClpHwVFXACon+aG0ySLNeRKEVYs6NCPYldw4cj6hveLUn50cX44ukHErw==", + "optional": true, + "requires": { + "@aws-sdk/protocol-http": "3.272.0", + "@aws-sdk/types": "3.272.0", + "tslib": "^2.3.1" + } + }, + "@aws-sdk/middleware-endpoint": { + "version": "3.272.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-endpoint/-/middleware-endpoint-3.272.0.tgz", + "integrity": "sha512-Dk3JVjj7SxxoUKv3xGiOeBksvPtFhTDrVW75XJ98Ymv8gJH5L1sq4hIeJAHRKogGiRFq2J73mnZSlM9FVXEylg==", + "optional": true, + "requires": { + "@aws-sdk/middleware-serde": "3.272.0", + "@aws-sdk/protocol-http": "3.272.0", + "@aws-sdk/signature-v4": "3.272.0", + "@aws-sdk/types": "3.272.0", + "@aws-sdk/url-parser": "3.272.0", + "@aws-sdk/util-config-provider": "3.208.0", + "@aws-sdk/util-middleware": "3.272.0", + "tslib": "^2.3.1" + } + }, + "@aws-sdk/middleware-host-header": { + "version": "3.272.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-host-header/-/middleware-host-header-3.272.0.tgz", + "integrity": "sha512-Q8K7bMMFZnioUXpxn57HIt4p+I63XaNAawMLIZ5B4F2piyukbQeM9q2XVKMGwqLvijHR8CyP5nHrtKqVuINogQ==", + "optional": true, + "requires": { + "@aws-sdk/protocol-http": "3.272.0", + "@aws-sdk/types": "3.272.0", + "tslib": "^2.3.1" + } + }, + "@aws-sdk/middleware-logger": { + "version": "3.272.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-logger/-/middleware-logger-3.272.0.tgz", + "integrity": "sha512-u2SQ0hWrFwxbxxYMG5uMEgf01pQY5jauK/LYWgGIvuCmFgiyRQQP3oN7kkmsxnS9MWmNmhbyQguX2NY02s5e9w==", + "optional": true, + "requires": { + "@aws-sdk/types": "3.272.0", + "tslib": "^2.3.1" + } + }, + "@aws-sdk/middleware-recursion-detection": { + "version": "3.272.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-recursion-detection/-/middleware-recursion-detection-3.272.0.tgz", + "integrity": "sha512-Gp/eKWeUWVNiiBdmUM2qLkBv+VLSJKoWAO+aKmyxxwjjmWhE0FrfA1NQ1a3g+NGMhRbAfQdaYswRAKsul70ISg==", + "optional": true, + "requires": { + "@aws-sdk/protocol-http": "3.272.0", + "@aws-sdk/types": "3.272.0", + "tslib": "^2.3.1" + } + }, + "@aws-sdk/middleware-retry": { + "version": "3.272.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-retry/-/middleware-retry-3.272.0.tgz", + "integrity": "sha512-pCGvHM7C76VbO/dFerH+Vwf7tGv7j+e+eGrvhQ35mRghCtfIou/WMfTZlD1TNee93crrAQQVZKjtW3dMB3WCzg==", + "optional": true, + "requires": { + "@aws-sdk/protocol-http": "3.272.0", + "@aws-sdk/service-error-classification": "3.272.0", + "@aws-sdk/types": "3.272.0", + "@aws-sdk/util-middleware": "3.272.0", + "@aws-sdk/util-retry": "3.272.0", + "tslib": "^2.3.1", + "uuid": "^8.3.2" + } + }, + "@aws-sdk/middleware-sdk-sts": { + "version": "3.272.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-sdk-sts/-/middleware-sdk-sts-3.272.0.tgz", + "integrity": "sha512-VvYPg7LrDIjUOWueSzo2wBzcNG7dw+cmzV6zAKaLxf0RC5jeAP4hE0OzDiiZfDrjNghEzgq/V+0NO+LewqYL9Q==", + "optional": true, + "requires": { + "@aws-sdk/middleware-signing": "3.272.0", + "@aws-sdk/property-provider": "3.272.0", + "@aws-sdk/protocol-http": "3.272.0", + "@aws-sdk/signature-v4": "3.272.0", + "@aws-sdk/types": "3.272.0", + "tslib": "^2.3.1" + } + }, + "@aws-sdk/middleware-serde": { + "version": "3.272.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-serde/-/middleware-serde-3.272.0.tgz", + "integrity": "sha512-kW1uOxgPSwtXPB5rm3QLdWomu42lkYpQL94tM1BjyFOWmBLO2lQhk5a7Dw6HkTozT9a+vxtscLChRa6KZe61Hw==", + "optional": true, + "requires": { + "@aws-sdk/types": "3.272.0", + "tslib": "^2.3.1" + } + }, + "@aws-sdk/middleware-signing": { + "version": "3.272.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-signing/-/middleware-signing-3.272.0.tgz", + "integrity": "sha512-4LChFK4VAR91X+dupqM8fQqYhFGE0G4Bf9rQlVTgGSbi2KUOmpqXzH0/WKE228nKuEhmH8+Qd2VPSAE2JcyAUA==", + "optional": true, + "requires": { + "@aws-sdk/property-provider": "3.272.0", + "@aws-sdk/protocol-http": "3.272.0", + "@aws-sdk/signature-v4": "3.272.0", + "@aws-sdk/types": "3.272.0", + "@aws-sdk/util-middleware": "3.272.0", + "tslib": "^2.3.1" + } + }, + "@aws-sdk/middleware-stack": { + "version": "3.272.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-stack/-/middleware-stack-3.272.0.tgz", + "integrity": "sha512-jhwhknnPBGhfXAGV5GXUWfEhDFoP/DN8MPCO2yC5OAxyp6oVJ8lTPLkZYMTW5VL0c0eG44dXpF4Ib01V+PlDrQ==", + "optional": true, + "requires": { + "tslib": "^2.3.1" + } + }, + "@aws-sdk/middleware-user-agent": { + "version": "3.272.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-user-agent/-/middleware-user-agent-3.272.0.tgz", + "integrity": "sha512-Qy7/0fsDJxY5l0bEk7WKDfqb4Os/sCAgFR2zEvrhDtbkhYPf72ysvg/nRUTncmCbo8tOok4SJii2myk8KMfjjw==", + "optional": true, + "requires": { + "@aws-sdk/protocol-http": "3.272.0", + "@aws-sdk/types": "3.272.0", + "tslib": "^2.3.1" + } + }, + "@aws-sdk/node-config-provider": { + "version": "3.272.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/node-config-provider/-/node-config-provider-3.272.0.tgz", + "integrity": "sha512-YYCIBh9g1EQo7hm2l22HX5Yr9RoPQ2RCvhzKvF1n1e8t1QH4iObQrYUtqHG4khcm64Cft8C5MwZmgzHbya5Z6Q==", + "optional": true, + "requires": { + "@aws-sdk/property-provider": "3.272.0", + "@aws-sdk/shared-ini-file-loader": "3.272.0", + "@aws-sdk/types": "3.272.0", + "tslib": "^2.3.1" + } + }, + "@aws-sdk/node-http-handler": { + "version": "3.272.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/node-http-handler/-/node-http-handler-3.272.0.tgz", + "integrity": "sha512-VrW9PjhhngeyYp4yGYPe5S0vgZH6NwU3Po9xAgayUeE37Inr7LS1YteFMHdpgsUUeNXnh7d06CXqHo1XjtqOKA==", + "optional": true, + "requires": { + "@aws-sdk/abort-controller": "3.272.0", + "@aws-sdk/protocol-http": "3.272.0", + "@aws-sdk/querystring-builder": "3.272.0", + "@aws-sdk/types": "3.272.0", + "tslib": "^2.3.1" + } + }, + "@aws-sdk/property-provider": { + "version": "3.272.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/property-provider/-/property-provider-3.272.0.tgz", + "integrity": "sha512-V1pZTaH5eqpAt8O8CzbItHhOtzIfFuWymvwZFkAtwKuaHpnl7jjrTouV482zoq8AD/fF+VVSshwBKYA7bhidIw==", + "optional": true, + "requires": { + "@aws-sdk/types": "3.272.0", + "tslib": "^2.3.1" + } + }, + "@aws-sdk/protocol-http": { + "version": "3.272.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/protocol-http/-/protocol-http-3.272.0.tgz", + "integrity": "sha512-4JQ54v5Yn08jspNDeHo45CaSn1CvTJqS1Ywgr79eU6jBExtguOWv6LNtwVSBD9X37v88iqaxt8iu1Z3pZZAJeg==", + "optional": true, + "requires": { + "@aws-sdk/types": "3.272.0", + "tslib": "^2.3.1" + } + }, + "@aws-sdk/querystring-builder": { + "version": "3.272.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/querystring-builder/-/querystring-builder-3.272.0.tgz", + "integrity": "sha512-ndo++7GkdCj5tBXE6rGcITpSpZS4PfyV38wntGYAlj9liL1omk3bLZRY6uzqqkJpVHqbg2fD7O2qHNItzZgqhw==", + "optional": true, + "requires": { + "@aws-sdk/types": "3.272.0", + "@aws-sdk/util-uri-escape": "3.201.0", + "tslib": "^2.3.1" + } + }, + "@aws-sdk/querystring-parser": { + "version": "3.272.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/querystring-parser/-/querystring-parser-3.272.0.tgz", + "integrity": "sha512-5oS4/9n6N1LZW9tI3qq/0GnCuWoOXRgcHVB+AJLRBvDbEe+GI+C/xK1tKLsfpDNgsQJHc4IPQoIt4megyZ/1+A==", + "optional": true, + "requires": { + "@aws-sdk/types": "3.272.0", + "tslib": "^2.3.1" + } + }, + "@aws-sdk/service-error-classification": { + "version": "3.272.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/service-error-classification/-/service-error-classification-3.272.0.tgz", + "integrity": "sha512-REoltM1LK9byyIufLqx9znhSolPcHQgVHIA2S0zu5sdt5qER4OubkLAXuo4MBbisUTmh8VOOvIyUb5ijZCXq1w==", + "optional": true + }, + "@aws-sdk/shared-ini-file-loader": { + "version": "3.272.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/shared-ini-file-loader/-/shared-ini-file-loader-3.272.0.tgz", + "integrity": "sha512-lzFPohp5sy2XvwFjZIzLVCRpC0i5cwBiaXmFzXYQZJm6FSCszHO4ax+m9yrtlyVFF/2YPWl+/bzNthy4aJtseA==", + "optional": true, + "requires": { + "@aws-sdk/types": "3.272.0", + "tslib": "^2.3.1" + } + }, + "@aws-sdk/signature-v4": { + "version": "3.272.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/signature-v4/-/signature-v4-3.272.0.tgz", + "integrity": "sha512-pWxnHG1NqJWMwlhJ6NHNiUikOL00DHROmxah6krJPMPq4I3am2KY2Rs/8ouWhnEXKaHAv4EQhSALJ+7Mq5S4/A==", + "optional": true, + "requires": { + "@aws-sdk/is-array-buffer": "3.201.0", + "@aws-sdk/types": "3.272.0", + "@aws-sdk/util-hex-encoding": "3.201.0", + "@aws-sdk/util-middleware": "3.272.0", + "@aws-sdk/util-uri-escape": "3.201.0", + "@aws-sdk/util-utf8": "3.254.0", + "tslib": "^2.3.1" + } + }, + "@aws-sdk/smithy-client": { + "version": "3.272.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/smithy-client/-/smithy-client-3.272.0.tgz", + "integrity": "sha512-pvdleJ3kaRvyRw2pIZnqL85ZlWBOZrPKmR9I69GCvlyrfdjRBhbSjIEZ+sdhZudw0vdHxq25AGoLUXhofVLf5Q==", + "optional": true, + "requires": { + "@aws-sdk/middleware-stack": "3.272.0", + "@aws-sdk/types": "3.272.0", + "tslib": "^2.3.1" + } + }, + "@aws-sdk/token-providers": { + "version": "3.272.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/token-providers/-/token-providers-3.272.0.tgz", + "integrity": "sha512-0GISJ4IKN2rXvbSddB775VjBGSKhYIGQnAdMqbvxi9LB6pSvVxcH9aIL28G0spiuL+dy3yGQZ8RlJPAyP9JW9A==", + "optional": true, + "requires": { + "@aws-sdk/client-sso-oidc": "3.272.0", + "@aws-sdk/property-provider": "3.272.0", + "@aws-sdk/shared-ini-file-loader": "3.272.0", + "@aws-sdk/types": "3.272.0", + "tslib": "^2.3.1" + } + }, + "@aws-sdk/types": { + "version": "3.272.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/types/-/types-3.272.0.tgz", + "integrity": "sha512-MmmL6vxMGP5Bsi+4wRx4mxYlU/LX6M0noOXrDh/x5FfG7/4ZOar/nDxqDadhJtNM88cuWVHZWY59P54JzkGWmA==", + "optional": true, + "requires": { + "tslib": "^2.3.1" + } + }, + "@aws-sdk/url-parser": { + "version": "3.272.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/url-parser/-/url-parser-3.272.0.tgz", + "integrity": "sha512-vX/Tx02PlnQ/Kgtf5TnrNDHPNbY+amLZjW0Z1d9vzAvSZhQ4i9Y18yxoRDIaDTCNVRDjdhV8iuctW+05PB5JtQ==", + "optional": true, + "requires": { + "@aws-sdk/querystring-parser": "3.272.0", + "@aws-sdk/types": "3.272.0", + "tslib": "^2.3.1" + } + }, + "@aws-sdk/util-base64": { + "version": "3.208.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/util-base64/-/util-base64-3.208.0.tgz", + "integrity": "sha512-PQniZph5A6N7uuEOQi+1hnMz/FSOK/8kMFyFO+4DgA1dZ5pcKcn5wiFwHkcTb/BsgVqQa3Jx0VHNnvhlS8JyTg==", + "optional": true, + "requires": { + "@aws-sdk/util-buffer-from": "3.208.0", + "tslib": "^2.3.1" + } + }, + "@aws-sdk/util-body-length-browser": { + "version": "3.188.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/util-body-length-browser/-/util-body-length-browser-3.188.0.tgz", + "integrity": "sha512-8VpnwFWXhnZ/iRSl9mTf+VKOX9wDE8QtN4bj9pBfxwf90H1X7E8T6NkiZD3k+HubYf2J94e7DbeHs7fuCPW5Qg==", + "optional": true, + "requires": { + "tslib": "^2.3.1" + } + }, + "@aws-sdk/util-body-length-node": { + "version": "3.208.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/util-body-length-node/-/util-body-length-node-3.208.0.tgz", + "integrity": "sha512-3zj50e5g7t/MQf53SsuuSf0hEELzMtD8RX8C76f12OSRo2Bca4FLLYHe0TZbxcfQHom8/hOaeZEyTyMogMglqg==", + "optional": true, + "requires": { + "tslib": "^2.3.1" + } + }, + "@aws-sdk/util-buffer-from": { + "version": "3.208.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/util-buffer-from/-/util-buffer-from-3.208.0.tgz", + "integrity": "sha512-7L0XUixNEFcLUGPeBF35enCvB9Xl+K6SQsmbrPk1P3mlV9mguWSDQqbOBwY1Ir0OVbD6H/ZOQU7hI/9RtRI0Zw==", + "optional": true, + "requires": { + "@aws-sdk/is-array-buffer": "3.201.0", + "tslib": "^2.3.1" + } + }, + "@aws-sdk/util-config-provider": { + "version": "3.208.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/util-config-provider/-/util-config-provider-3.208.0.tgz", + "integrity": "sha512-DSRqwrERUsT34ug+anlMBIFooBEGwM8GejC7q00Y/9IPrQy50KnG5PW2NiTjuLKNi7pdEOlwTSEocJE15eDZIg==", + "optional": true, + "requires": { + "tslib": "^2.3.1" + } + }, + "@aws-sdk/util-defaults-mode-browser": { + "version": "3.272.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/util-defaults-mode-browser/-/util-defaults-mode-browser-3.272.0.tgz", + "integrity": "sha512-W8ZVJSZRuUBg8l0JEZzUc+9fKlthVp/cdE+pFeF8ArhZelOLCiaeCrMaZAeJusaFzIpa6cmOYQAjtSMVyrwRtg==", + "optional": true, + "requires": { + "@aws-sdk/property-provider": "3.272.0", + "@aws-sdk/types": "3.272.0", + "bowser": "^2.11.0", + "tslib": "^2.3.1" + } + }, + "@aws-sdk/util-defaults-mode-node": { + "version": "3.272.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/util-defaults-mode-node/-/util-defaults-mode-node-3.272.0.tgz", + "integrity": "sha512-U0NTcbMw6KFk7uz/avBmfxQSTREEiX6JDMH68oN/3ux4AICd2I4jHyxnloSWGuiER1FxZf1dEJ8ZTwy8Ibl21Q==", + "optional": true, + "requires": { + "@aws-sdk/config-resolver": "3.272.0", + "@aws-sdk/credential-provider-imds": "3.272.0", + "@aws-sdk/node-config-provider": "3.272.0", + "@aws-sdk/property-provider": "3.272.0", + "@aws-sdk/types": "3.272.0", + "tslib": "^2.3.1" + } + }, + "@aws-sdk/util-endpoints": { + "version": "3.272.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/util-endpoints/-/util-endpoints-3.272.0.tgz", + "integrity": "sha512-c4MPUaJt2G6gGpoiwIOqDfUa98c1J63RpYvf/spQEKOtC/tF5Gfqlxuq8FnAl5lHnrqj1B9ZXLLxFhHtDR0IiQ==", + "optional": true, + "requires": { + "@aws-sdk/types": "3.272.0", + "tslib": "^2.3.1" + } + }, + "@aws-sdk/util-hex-encoding": { + "version": "3.201.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/util-hex-encoding/-/util-hex-encoding-3.201.0.tgz", + "integrity": "sha512-7t1vR1pVxKx0motd3X9rI3m/xNp78p3sHtP5yo4NP4ARpxyJ0fokBomY8ScaH2D/B+U5o9ARxldJUdMqyBlJcA==", + "optional": true, + "requires": { + "tslib": "^2.3.1" + } + }, + "@aws-sdk/util-locate-window": { + "version": "3.208.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/util-locate-window/-/util-locate-window-3.208.0.tgz", + "integrity": "sha512-iua1A2+P7JJEDHVgvXrRJSvsnzG7stYSGQnBVphIUlemwl6nN5D+QrgbjECtrbxRz8asYFHSzhdhECqN+tFiBg==", + "optional": true, + "requires": { + "tslib": "^2.3.1" + } + }, + "@aws-sdk/util-middleware": { + "version": "3.272.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/util-middleware/-/util-middleware-3.272.0.tgz", + "integrity": "sha512-Abw8m30arbwxqmeMMha5J11ESpHUNmCeSqSzE8/C4B8jZQtHY4kq7f+upzcNIQ11lsd+uzBEzNG3+dDRi0XOJQ==", + "optional": true, + "requires": { + "tslib": "^2.3.1" + } + }, + "@aws-sdk/util-retry": { + "version": "3.272.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/util-retry/-/util-retry-3.272.0.tgz", + "integrity": "sha512-Ngha5414LR4gRHURVKC9ZYXsEJhMkm+SJ+44wlzOhavglfdcKKPUsibz5cKY1jpUV7oKECwaxHWpBB8r6h+hOg==", + "optional": true, + "requires": { + "@aws-sdk/service-error-classification": "3.272.0", + "tslib": "^2.3.1" + } + }, + "@aws-sdk/util-uri-escape": { + "version": "3.201.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/util-uri-escape/-/util-uri-escape-3.201.0.tgz", + "integrity": "sha512-TeTWbGx4LU2c5rx0obHeDFeO9HvwYwQtMh1yniBz00pQb6Qt6YVOETVQikRZ+XRQwEyCg/dA375UplIpiy54mA==", + "optional": true, + "requires": { + "tslib": "^2.3.1" + } + }, + "@aws-sdk/util-user-agent-browser": { + "version": "3.272.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-browser/-/util-user-agent-browser-3.272.0.tgz", + "integrity": "sha512-Lp5QX5bH6uuwBlIdr7w7OAcAI50ttyskb++yUr9i+SPvj6RI2dsfIBaK4mDg1qUdM5LeUdvIyqwj3XHjFKAAvA==", + "optional": true, + "requires": { + "@aws-sdk/types": "3.272.0", + "bowser": "^2.11.0", + "tslib": "^2.3.1" + } + }, + "@aws-sdk/util-user-agent-node": { + "version": "3.272.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-node/-/util-user-agent-node-3.272.0.tgz", + "integrity": "sha512-ljK+R3l+Q1LIHrcR+Knhk0rmcSkfFadZ8V+crEGpABf/QUQRg7NkZMsoe814tfBO5F7tMxo8wwwSdaVNNHtoRA==", + "optional": true, + "requires": { + "@aws-sdk/node-config-provider": "3.272.0", + "@aws-sdk/types": "3.272.0", + "tslib": "^2.3.1" + } + }, + "@aws-sdk/util-utf8": { + "version": "3.254.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/util-utf8/-/util-utf8-3.254.0.tgz", + "integrity": "sha512-14Kso/eIt5/qfIBmhEL9L1IfyUqswjSTqO2mY7KOzUZ9SZbwn3rpxmtkhmATkRjD7XIlLKaxBkI7tU9Zjzj8Kw==", + "optional": true, + "requires": { + "@aws-sdk/util-buffer-from": "3.208.0", + "tslib": "^2.3.1" + } + }, + "@aws-sdk/util-utf8-browser": { + "version": "3.259.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/util-utf8-browser/-/util-utf8-browser-3.259.0.tgz", + "integrity": "sha512-UvFa/vR+e19XookZF8RzFZBrw2EUkQWxiBW0yYQAhvk3C+QVGl0H3ouca8LDBlBfQKXwmW3huo/59H8rwb1wJw==", + "optional": true, + "requires": { + "tslib": "^2.3.1" + } + }, + "@esbuild/android-arm": { + "version": "0.17.4", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.17.4.tgz", + "integrity": "sha512-R9GCe2xl2XDSc2XbQB63mFiFXHIVkOP+ltIxICKXqUPrFX97z6Z7vONCLQM1pSOLGqfLrGi3B7nbhxmFY/fomg==", + "optional": true + }, + "@esbuild/android-arm64": { + "version": "0.17.4", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.17.4.tgz", + "integrity": "sha512-91VwDrl4EpxBCiG6h2LZZEkuNvVZYJkv2T9gyLG/mhGG1qrM7i5SwUcg/hlSPnL/4hDT0TFcF35/XMGSn0bemg==", + "optional": true + }, + "@esbuild/android-x64": { + "version": "0.17.4", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.17.4.tgz", + "integrity": "sha512-mGSqhEPL7029XL7QHNPxPs15JVa02hvZvysUcyMP9UXdGFwncl2WU0bqx+Ysgzd+WAbv8rfNa73QveOxAnAM2w==", + "optional": true + }, + "@esbuild/darwin-arm64": { + "version": "0.17.4", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.17.4.tgz", + "integrity": "sha512-tTyJRM9dHvlMPt1KrBFVB5OW1kXOsRNvAPtbzoKazd5RhD5/wKlXk1qR2MpaZRYwf4WDMadt0Pv0GwxB41CVow==", + "optional": true + }, + "@esbuild/darwin-x64": { + "version": "0.17.4", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.17.4.tgz", + "integrity": "sha512-phQuC2Imrb3TjOJwLN8EO50nb2FHe8Ew0OwgZDH1SV6asIPGudnwTQtighDF2EAYlXChLoMJwqjAp4vAaACq6w==", + "optional": true + }, + "@esbuild/freebsd-arm64": { + "version": "0.17.4", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.17.4.tgz", + "integrity": "sha512-oH6JUZkocgmjzzYaP5juERLpJQSwazdjZrTPgLRmAU2bzJ688x0vfMB/WTv4r58RiecdHvXOPC46VtsMy/mepg==", + "optional": true + }, + "@esbuild/freebsd-x64": { + "version": "0.17.4", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.17.4.tgz", + "integrity": "sha512-U4iWGn/9TrAfpAdfd56eO0pRxIgb0a8Wj9jClrhT8hvZnOnS4dfMPW7o4fn15D/KqoiVYHRm43jjBaTt3g/2KA==", + "optional": true + }, + "@esbuild/linux-arm": { + "version": "0.17.4", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.17.4.tgz", + "integrity": "sha512-S2s9xWTGMTa/fG5EyMGDeL0wrWVgOSQcNddJWgu6rG1NCSXJHs76ZP9AsxjB3f2nZow9fWOyApklIgiTGZKhiw==", + "optional": true + }, + "@esbuild/linux-arm64": { + "version": "0.17.4", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.17.4.tgz", + "integrity": "sha512-UkGfQvYlwOaeYJzZG4cLV0hCASzQZnKNktRXUo3/BMZvdau40AOz9GzmGA063n1piq6VrFFh43apRDQx8hMP2w==", + "optional": true + }, + "@esbuild/linux-ia32": { + "version": "0.17.4", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.17.4.tgz", + "integrity": "sha512-3lqFi4VFo/Vwvn77FZXeLd0ctolIJH/uXkH3yNgEk89Eh6D3XXAC9/iTPEzeEpsNE5IqGIsFa5Z0iPeOh25IyA==", + "optional": true + }, + "@esbuild/linux-loong64": { + "version": "0.17.4", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.17.4.tgz", + "integrity": "sha512-HqpWZkVslDHIwdQ9D+gk7NuAulgQvRxF9no54ut/M55KEb3mi7sQS3GwpPJzSyzzP0UkjQVN7/tbk88/CaX4EQ==", + "optional": true + }, + "@esbuild/linux-mips64el": { + "version": "0.17.4", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.17.4.tgz", + "integrity": "sha512-d/nMCKKh/SVDbqR9ju+b78vOr0tNXtfBjcp5vfHONCCOAL9ad8gN9dC/u+UnH939pz7wO+0u/x9y1MaZcb/lKA==", + "optional": true + }, + "@esbuild/linux-ppc64": { + "version": "0.17.4", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.17.4.tgz", + "integrity": "sha512-lOD9p2dmjZcNiTU+sGe9Nn6G3aYw3k0HBJies1PU0j5IGfp6tdKOQ6mzfACRFCqXjnBuTqK7eTYpwx09O5LLfg==", + "optional": true + }, + "@esbuild/linux-riscv64": { + "version": "0.17.4", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.17.4.tgz", + "integrity": "sha512-mTGnwWwVshAjGsd8rP+K6583cPDgxOunsqqldEYij7T5/ysluMHKqUIT4TJHfrDFadUwrghAL6QjER4FeqQXoA==", + "optional": true + }, + "@esbuild/linux-s390x": { + "version": "0.17.4", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.17.4.tgz", + "integrity": "sha512-AQYuUGp50XM29/N/dehADxvc2bUqDcoqrVuijop1Wv72SyxT6dDB9wjUxuPZm2HwIM876UoNNBMVd+iX/UTKVQ==", + "optional": true + }, + "@esbuild/linux-x64": { + "version": "0.17.4", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.17.4.tgz", + "integrity": "sha512-+AsFBwKgQuhV2shfGgA9YloxLDVjXgUEWZum7glR5lLmV94IThu/u2JZGxTgjYby6kyXEx8lKOqP5rTEVBR0Rw==", + "optional": true + }, + "@esbuild/netbsd-x64": { + "version": "0.17.4", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.17.4.tgz", + "integrity": "sha512-zD1TKYX9553OiLS/qkXPMlWoELYkH/VkzRYNKEU+GwFiqkq0SuxsKnsCg5UCdxN3cqd+1KZ8SS3R+WG/Hxy2jQ==", + "optional": true + }, + "@esbuild/openbsd-x64": { + "version": "0.17.4", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.17.4.tgz", + "integrity": "sha512-PY1NjEsLRhPEFFg1AV0/4Or/gR+q2dOb9s5rXcPuCjyHRzbt8vnHJl3vYj+641TgWZzTFmSUnZbzs1zwTzjeqw==", + "optional": true + }, + "@esbuild/sunos-x64": { + "version": "0.17.4", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.17.4.tgz", + "integrity": "sha512-B3Z7s8QZQW9tKGleMRXvVmwwLPAUoDCHs4WZ2ElVMWiortLJFowU1NjAhXOKjDgC7o9ByeVcwyOlJ+F2r6ZgmQ==", + "optional": true + }, + "@esbuild/win32-arm64": { + "version": "0.17.4", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.17.4.tgz", + "integrity": "sha512-0HCu8R3mY/H5V7N6kdlsJkvrT591bO/oRZy8ztF1dhgNU5xD5tAh5bKByT1UjTGjp/VVBsl1PDQ3L18SfvtnBQ==", + "optional": true + }, + "@esbuild/win32-ia32": { + "version": "0.17.4", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.17.4.tgz", + "integrity": "sha512-VUjhVDQycse1gLbe06pC/uaA0M+piQXJpdpNdhg8sPmeIZZqu5xPoGWVCmcsOO2gaM2cywuTYTHkXRozo3/Nkg==", + "optional": true + }, + "@esbuild/win32-x64": { + "version": "0.17.4", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.17.4.tgz", + "integrity": "sha512-0kLAjs+xN5OjhTt/aUA6t48SfENSCKgGPfExADYTOo/UCn0ivxos9/anUVeSfg+L+2O9xkFxvJXIJfG+Q4sYSg==", + "optional": true + }, + "@mapbox/node-pre-gyp": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/@mapbox/node-pre-gyp/-/node-pre-gyp-1.0.10.tgz", + "integrity": "sha512-4ySo4CjzStuprMwk35H5pPbkymjv1SF3jGLj6rAHp/xT/RF7TL7bd9CTm1xDY49K2qF7jmR/g7k+SkLETP6opA==", + "requires": { + "detect-libc": "^2.0.0", + "https-proxy-agent": "^5.0.0", + "make-dir": "^3.1.0", + "node-fetch": "^2.6.7", + "nopt": "^5.0.0", + "npmlog": "^5.0.1", + "rimraf": "^3.0.2", + "semver": "^7.3.5", + "tar": "^6.1.11" + }, + "dependencies": { + "node-fetch": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.9.tgz", + "integrity": "sha512-DJm/CJkZkRjKKj4Zi4BsKVZh3ValV5IR5s7LVZnW+6YMh0W1BfNA8XSs6DLMGYlId5F3KnA70uu2qepcR08Qqg==", + "requires": { + "whatwg-url": "^5.0.0" + } + }, + "tr46": { + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", + "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==" + }, + "webidl-conversions": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", + "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==" + }, + "whatwg-url": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", + "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", + "requires": { + "tr46": "~0.0.3", + "webidl-conversions": "^3.0.0" + } + } + } + }, + "@mfd/rbxdatastoreservice": { + "version": "2.3.11", + "resolved": "https://registry.npmjs.org/@mfd/rbxdatastoreservice/-/rbxdatastoreservice-2.3.11.tgz", + "integrity": "sha512-sZkBwBolSwHT2RDz4//7K0Vkxdjo2Zg1RSdSaUasTUKWj+BMeANgyLv/baMFHcJFE/Z+3kCcCkU/VHqfiQAHgA==", + "requires": { + "axios": "^0.27.2", + "crypto-js": "^4.0.0" + } + }, + "@nodelib/fs.scandir": { + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", + "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", + "requires": { + "@nodelib/fs.stat": "2.0.5", + "run-parallel": "^1.1.9" + } + }, + "@nodelib/fs.stat": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", + "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==" + }, + "@nodelib/fs.walk": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", + "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", + "requires": { + "@nodelib/fs.scandir": "2.1.5", + "fastq": "^1.6.0" + } + }, + "@redis/bloom": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@redis/bloom/-/bloom-1.2.0.tgz", + "integrity": "sha512-HG2DFjYKbpNmVXsa0keLHp/3leGJz1mjh09f2RLGGLQZzSHpkmZWuwJbAvo3QcRY8p80m5+ZdXZdYOSBLlp7Cg==", + "requires": {} + }, + "@redis/client": { + "version": "1.5.6", + "resolved": "https://registry.npmjs.org/@redis/client/-/client-1.5.6.tgz", + "integrity": "sha512-dFD1S6je+A47Lj22jN/upVU2fj4huR7S9APd7/ziUXsIXDL+11GPYti4Suv5y8FuXaN+0ZG4JF+y1houEJ7ToA==", + "requires": { + "cluster-key-slot": "1.1.2", + "generic-pool": "3.9.0", + "yallist": "4.0.0" + } + }, + "@redis/graph": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@redis/graph/-/graph-1.1.0.tgz", + "integrity": "sha512-16yZWngxyXPd+MJxeSr0dqh2AIOi8j9yXKcKCwVaKDbH3HTuETpDVPcLujhFYVPtYrngSco31BUcSa9TH31Gqg==", + "requires": {} + }, + "@redis/json": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/@redis/json/-/json-1.0.4.tgz", + "integrity": "sha512-LUZE2Gdrhg0Rx7AN+cZkb1e6HjoSKaeeW8rYnt89Tly13GBI5eP4CwDVr+MY8BAYfCg4/N15OUrtLoona9uSgw==", + "requires": {} + }, + "@redis/search": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@redis/search/-/search-1.1.2.tgz", + "integrity": "sha512-/cMfstG/fOh/SsE+4/BQGeuH/JJloeWuH+qJzM8dbxuWvdWibWAOAHHCZTMPhV3xIlH4/cUEIA8OV5QnYpaVoA==", + "requires": {} + }, + "@redis/time-series": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/@redis/time-series/-/time-series-1.0.4.tgz", + "integrity": "sha512-ThUIgo2U/g7cCuZavucQTQzA9g9JbDDY2f64u3AbAoz/8vE2lt2U37LamDUVChhaDA3IRT9R6VvJwqnUfTJzng==", + "requires": {} + }, + "@types/node": { + "version": "18.13.0", + "resolved": "https://registry.npmjs.org/@types/node/-/node-18.13.0.tgz", + "integrity": "sha512-gC3TazRzGoOnoKAhUx+Q0t8S9Tzs74z7m0ipwGpSqQrleP14hKxP4/JUeEQcD3W1/aIpnWl8pHowI7WokuZpXg==" + }, + "@types/webidl-conversions": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/@types/webidl-conversions/-/webidl-conversions-7.0.0.tgz", + "integrity": "sha512-xTE1E+YF4aWPJJeUzaZI5DRntlkY3+BCVJi0axFptnjGmAoWxkyREIh/XMrfxVLejwQxMCfDXdICo0VLxThrog==" + }, + "@types/whatwg-url": { + "version": "8.2.2", + "resolved": "https://registry.npmjs.org/@types/whatwg-url/-/whatwg-url-8.2.2.tgz", + "integrity": "sha512-FtQu10RWgn3D9U4aazdwIE2yzphmTJREDqNdODHrbrZmmMqI0vMheC/6NE/J1Yveaj8H+ela+YwWTjq5PGmuhA==", + "requires": { + "@types/node": "*", + "@types/webidl-conversions": "*" + } + }, + "@yaireo/relative-time": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@yaireo/relative-time/-/relative-time-1.0.3.tgz", + "integrity": "sha512-CJGxyWjb4SnkqubyfiPNQeg0YrJKnVu+11DOP65ltXFxDsjjnm3IByXS9O1Ny9AU9Oxqg0a7Gt26tzXtcijicg==" + }, + "abbrev": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz", + "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==" + }, + "accepts": { + "version": "1.3.8", + "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz", + "integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==", + "requires": { + "mime-types": "~2.1.34", + "negotiator": "0.6.3" + } + }, + "acorn": { + "version": "7.4.1", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.4.1.tgz", + "integrity": "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==" + }, + "acorn-node": { + "version": "1.8.2", + "resolved": "https://registry.npmjs.org/acorn-node/-/acorn-node-1.8.2.tgz", + "integrity": "sha512-8mt+fslDufLYntIoPAaIMUe/lrbrehIiwmR3t2k9LljIzoigEPF27eLk2hy8zSGzmR/ogr7zbRKINMo1u0yh5A==", + "requires": { + "acorn": "^7.0.0", + "acorn-walk": "^7.0.0", + "xtend": "^4.0.2" + } + }, + "acorn-walk": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-7.2.0.tgz", + "integrity": "sha512-OPdCF6GsMIP+Az+aWfAAOEt2/+iVDKE7oy6lJ098aoe59oAmK76qV6Gw60SbZ8jHuG2wH058GF4pLFbYamYrVA==" + }, + "agent-base": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", + "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", + "requires": { + "debug": "4" + }, + "dependencies": { + "debug": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "requires": { + "ms": "2.1.2" + } + }, + "ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" + } + } + }, + "ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==" + }, + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "requires": { + "color-convert": "^2.0.1" + } + }, + "anymatch": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", + "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", + "requires": { + "normalize-path": "^3.0.0", + "picomatch": "^2.0.4" + } + }, + "append-field": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/append-field/-/append-field-1.0.0.tgz", + "integrity": "sha512-klpgFSWLW1ZEs8svjfb7g4qWY0YS5imI82dTg+QahUvJ8YqAY0P10Uk8tTyh9ZGuYEZEMaeJYCF5BFuX552hsw==" + }, + "aproba": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/aproba/-/aproba-2.0.0.tgz", + "integrity": "sha512-lYe4Gx7QT+MKGbDsA+Z+he/Wtef0BiwDOlK/XkBrdfsh9J/jPPXbX0tE9x9cl27Tmu5gg3QUbUrQYa/y+KOHPQ==" + }, + "are-we-there-yet": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-2.0.0.tgz", + "integrity": "sha512-Ci/qENmwHnsYo9xKIcUJN5LeDKdJ6R1Z1j9V/J5wyq8nh/mYPEpIKJbBZXtZjG04HiK7zV/p6Vs9952MrMeUIw==", + "requires": { + "delegates": "^1.0.0", + "readable-stream": "^3.6.0" + }, + "dependencies": { + "readable-stream": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz", + "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==", + "requires": { + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" + } + } + } + }, + "arg": { + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/arg/-/arg-5.0.2.tgz", + "integrity": "sha512-PYjyFOLKQ9y57JvQ6QLo8dAgNqswh8M1RMJYdQduT6xbWSgK36P/Z/v+p888pM69jMMfS8Xd8F6I1kQ/I9HUGg==" + }, + "array-flatten": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz", + "integrity": "sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg==" + }, + "asynckit": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", + "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==" + }, + "atob": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/atob/-/atob-2.1.2.tgz", + "integrity": "sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg==" + }, + "autoprefixer": { + "version": "10.4.13", + "resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-10.4.13.tgz", + "integrity": "sha512-49vKpMqcZYsJjwotvt4+h/BCjJVnhGwcLpDt5xkcaOG3eLrG/HUYLagrihYsQ+qrIBgIzX1Rw7a6L8I/ZA1Atg==", + "peer": true, + "requires": { + "browserslist": "^4.21.4", + "caniuse-lite": "^1.0.30001426", + "fraction.js": "^4.2.0", + "normalize-range": "^0.1.2", + "picocolors": "^1.0.0", + "postcss-value-parser": "^4.2.0" + } + }, + "axios": { + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/axios/-/axios-0.27.2.tgz", + "integrity": "sha512-t+yRIyySRTp/wua5xEr+z1q60QmLq8ABsS5O9Me1AsE5dfKqgnCFzwiCZZ/cGNd1lq4/7akDWMxdhVlucjmnOQ==", + "requires": { + "follow-redirects": "^1.14.9", + "form-data": "^4.0.0" + } + }, + "balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==" + }, + "base32.js": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/base32.js/-/base32.js-0.0.1.tgz", + "integrity": "sha512-EGHIRiegFa62/SsA1J+Xs2tIzludPdzM064N9wjbiEgHnGnJ1V0WEpA4pEwCYT5nDvZk3ubf0shqaCS7k6xeUQ==" + }, + "base64-js": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", + "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==" + }, + "bcrypt": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/bcrypt/-/bcrypt-5.1.0.tgz", + "integrity": "sha512-RHBS7HI5N5tEnGTmtR/pppX0mmDSBpQ4aCBsj7CEQfYXDcO74A8sIBYcJMuCsis2E81zDxeENYhv66oZwLiA+Q==", + "requires": { + "@mapbox/node-pre-gyp": "^1.0.10", + "node-addon-api": "^5.0.0" + } + }, + "binary-extensions": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz", + "integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==" + }, + "bintrees": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/bintrees/-/bintrees-1.0.2.tgz", + "integrity": "sha512-VOMgTMwjAaUG580SXn3LacVgjurrbMme7ZZNYGSSV7mmtY6QQRh0Eg3pwIcntQ77DErK1L0NxkbetjcoXzVwKw==" + }, + "body-parser": { + "version": "1.20.1", + "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.1.tgz", + "integrity": "sha512-jWi7abTbYwajOytWCQc37VulmWiRae5RyTpaCyDcS5/lMdtwSz5lOpDE67srw/HYe35f1z3fDQw+3txg7gNtWw==", + "requires": { + "bytes": "3.1.2", + "content-type": "~1.0.4", + "debug": "2.6.9", + "depd": "2.0.0", + "destroy": "1.2.0", + "http-errors": "2.0.0", + "iconv-lite": "0.4.24", + "on-finished": "2.4.1", + "qs": "6.11.0", + "raw-body": "2.5.1", + "type-is": "~1.6.18", + "unpipe": "1.0.0" + } + }, + "bowser": { + "version": "2.11.0", + "resolved": "https://registry.npmjs.org/bowser/-/bowser-2.11.0.tgz", + "integrity": "sha512-AlcaJBi/pqqJBIQ8U9Mcpc9i8Aqxn88Skv5d+xBX006BY5u8N3mGLHa5Lgppa7L/HfwgwLgZ6NYs+Ag6uUmJRA==", + "optional": true + }, + "braces": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", + "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", + "requires": { + "fill-range": "^7.0.1" + } + }, + "browserslist": { + "version": "4.21.4", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.21.4.tgz", + "integrity": "sha512-CBHJJdDmgjl3daYjN5Cp5kbTf1mUhZoS+beLklHIvkOWscs83YAhLlF3Wsh/lciQYAcbBJgTOD44VtG31ZM4Hw==", + "peer": true, + "requires": { + "caniuse-lite": "^1.0.30001400", + "electron-to-chromium": "^1.4.251", + "node-releases": "^2.0.6", + "update-browserslist-db": "^1.0.9" + } + }, + "bson": { + "version": "4.7.2", + "resolved": "https://registry.npmjs.org/bson/-/bson-4.7.2.tgz", + "integrity": "sha512-Ry9wCtIZ5kGqkJoi6aD8KjxFZEx78guTQDnpXWiNthsxzrxAK/i8E6pCHAIZTbaEFWcOCvbecMukfK7XUvyLpQ==", + "requires": { + "buffer": "^5.6.0" + } + }, + "buffer": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", + "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==", + "requires": { + "base64-js": "^1.3.1", + "ieee754": "^1.1.13" + } + }, + "buffer-equal-constant-time": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/buffer-equal-constant-time/-/buffer-equal-constant-time-1.0.1.tgz", + "integrity": "sha512-zRpUiDwd/xk6ADqPMATG8vc9VPrkck7T07OIx0gnjmJAnHnTVXNQG3vfvWNuiZIkwu9KrKdA1iJKfsfTVxE6NA==" + }, + "buffer-from": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", + "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==" + }, + "busboy": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/busboy/-/busboy-1.6.0.tgz", + "integrity": "sha512-8SFQbg/0hQ9xy3UNTB0YEnsNBbWfhf7RtnzpL7TkBiTBRfrQ9Fxcnz7VJsleJpyp6rVLvXiuORqjlHi5q+PYuA==", + "requires": { + "streamsearch": "^1.1.0" + } + }, + "bytes": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz", + "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==" + }, + "call-bind": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz", + "integrity": "sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==", + "requires": { + "function-bind": "^1.1.1", + "get-intrinsic": "^1.0.2" + } + }, + "camelcase": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", + "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==" + }, + "camelcase-css": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/camelcase-css/-/camelcase-css-2.0.1.tgz", + "integrity": "sha512-QOSvevhslijgYwRx6Rv7zKdMF8lbRmx+uQGx2+vDc+KI/eBnsy9kit5aj23AgGu3pa4t9AgwbnXWqS+iOY+2aA==" + }, + "caniuse-lite": { + "version": "1.0.30001441", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001441.tgz", + "integrity": "sha512-OyxRR4Vof59I3yGWXws6i908EtGbMzVUi3ganaZQHmydk1iwDhRnvaPG2WaR0KcqrDFKrxVZHULT396LEPhXfg==", + "peer": true + }, + "chokidar": { + "version": "3.5.3", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz", + "integrity": "sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==", + "requires": { + "anymatch": "~3.1.2", + "braces": "~3.0.2", + "fsevents": "~2.3.2", + "glob-parent": "~5.1.2", + "is-binary-path": "~2.1.0", + "is-glob": "~4.0.1", + "normalize-path": "~3.0.0", + "readdirp": "~3.6.0" + } + }, + "chownr": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/chownr/-/chownr-2.0.0.tgz", + "integrity": "sha512-bIomtDF5KGpdogkLd9VspvFzk9KfpyyGlS8YFVZl7TGPBHL5snIOnxeshwVgPteQ9b4Eydl+pVbIyE1DcvCWgQ==" + }, + "cliui": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-6.0.0.tgz", + "integrity": "sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==", + "requires": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.0", + "wrap-ansi": "^6.2.0" + } + }, + "cluster-key-slot": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/cluster-key-slot/-/cluster-key-slot-1.1.2.tgz", + "integrity": "sha512-RMr0FhtfXemyinomL4hrWcYJxmX6deFdCxpJzhDttxgO1+bcCnkk+9drydLVDmAMG7NE6aN/fl4F7ucU/90gAA==" + }, + "color": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/color/-/color-4.2.3.tgz", + "integrity": "sha512-1rXeuUUiGGrykh+CeBdu5Ie7OJwinCgQY0bc7GCRxy5xVHy+moaqkpL/jqQq0MtQOeYcrqEz4abc5f0KtU7W4A==", + "requires": { + "color-convert": "^2.0.1", + "color-string": "^1.9.0" + } + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + }, + "color-string": { + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/color-string/-/color-string-1.9.1.tgz", + "integrity": "sha512-shrVawQFojnZv6xM40anx4CkoDP+fZsw/ZerEMsW/pyzsRbElpsL/DBVW7q3ExxwusdNXI3lXpuhEZkzs8p5Eg==", + "requires": { + "color-name": "^1.0.0", + "simple-swizzle": "^0.2.2" + } + }, + "color-support": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-support/-/color-support-1.1.3.tgz", + "integrity": "sha512-qiBjkpbMLO/HL68y+lh4q0/O1MZFj2RX6X/KmMa3+gJD3z+WwI1ZzDHysvqHGS3mP6mznPckpXmw1nI9cJjyRg==" + }, + "combined-stream": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", + "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", + "requires": { + "delayed-stream": "~1.0.0" + } + }, + "commander": { + "version": "2.20.3", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==" + }, + "concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==" + }, + "concat-stream": { + "version": "1.6.2", + "resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-1.6.2.tgz", + "integrity": "sha512-27HBghJxjiZtIk3Ycvn/4kbJk/1uZuJFfuPEns6LaEvpvG1f0hTea8lilrouyo9mVc2GWdcEZ8OLoGmSADlrCw==", + "requires": { + "buffer-from": "^1.0.0", + "inherits": "^2.0.3", + "readable-stream": "^2.2.2", + "typedarray": "^0.0.6" + } + }, + "connect-flash": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/connect-flash/-/connect-flash-0.1.1.tgz", + "integrity": "sha512-2rcfELQt/ZMP+SM/pG8PyhJRaLKp+6Hk2IUBNkEit09X+vwn3QsAL3ZbYtxUn7NVPzbMTSLRDhqe0B/eh30RYA==" + }, + "console-control-strings": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz", + "integrity": "sha512-ty/fTekppD2fIwRvnZAVdeOiGd1c7YXEixbgJTNzqcxJWKQnjJ/V1bNEEE6hygpM3WjwHFUVK6HTjWSzV4a8sQ==" + }, + "content-disposition": { + "version": "0.5.4", + "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz", + "integrity": "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==", + "requires": { + "safe-buffer": "5.2.1" + } + }, + "content-type": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.4.tgz", + "integrity": "sha512-hIP3EEPs8tB9AT1L+NUqtwOAps4mk2Zob89MWXMHjHWg9milF/j4osnnQLXBCBFBk/tvIG/tUc9mOUJiPBhPXA==" + }, + "cookie": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.4.1.tgz", + "integrity": "sha512-ZwrFkGJxUR3EIoXtO+yVE69Eb7KlixbaeAWfBQB9vVsNn/o+Yw69gBWSSDK825hQNdN+wF8zELf3dFNl/kxkUA==" + }, + "cookie-parser": { + "version": "1.4.6", + "resolved": "https://registry.npmjs.org/cookie-parser/-/cookie-parser-1.4.6.tgz", + "integrity": "sha512-z3IzaNjdwUC2olLIB5/ITd0/setiaFMLYiZJle7xg5Fe9KWAceil7xszYfHHBtDFYLSgJduS2Ty0P1uJdPDJeA==", + "requires": { + "cookie": "0.4.1", + "cookie-signature": "1.0.6" + } + }, + "cookie-signature": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz", + "integrity": "sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ==" + }, + "core-util-is": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz", + "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==" + }, + "cors": { + "version": "2.8.5", + "resolved": "https://registry.npmjs.org/cors/-/cors-2.8.5.tgz", + "integrity": "sha512-KIHbLJqu73RGr/hnbrO9uBeixNGuvSQjul/jdFvS/KFSIH1hWVd1ng7zOHx+YrEfInLG7q4n6GHQ9cDtxv/P6g==", + "requires": { + "object-assign": "^4", + "vary": "^1" + } + }, + "cross-env": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/cross-env/-/cross-env-7.0.3.tgz", + "integrity": "sha512-+/HKd6EgcQCJGh2PSjZuUitQBQynKor4wrFbRg4DtAgS1aWO+gU52xpH7M9ScGgXSYmAVS9bIJ8EzuaGw0oNAw==", + "dev": true, + "requires": { + "cross-spawn": "^7.0.1" + } + }, + "cross-spawn": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", + "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "dev": true, + "requires": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + } + }, + "crypto-js": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/crypto-js/-/crypto-js-4.1.1.tgz", + "integrity": "sha512-o2JlM7ydqd3Qk9CA0L4NL6mTzU2sdx96a+oOfPu8Mkl/PK51vSyoi8/rQ8NknZtk44vq15lmhAj9CIAGwgeWKw==" + }, + "css-selector-tokenizer": { + "version": "0.8.0", + "resolved": "https://registry.npmjs.org/css-selector-tokenizer/-/css-selector-tokenizer-0.8.0.tgz", + "integrity": "sha512-Jd6Ig3/pe62/qe5SBPTN8h8LeUg/pT4lLgtavPf7updwwHpvFzxvOQBHYj2LZDMjUnBzgvIUSjRcf6oT5HzHFg==", + "requires": { + "cssesc": "^3.0.0", + "fastparse": "^1.1.2" + } + }, + "cssesc": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/cssesc/-/cssesc-3.0.0.tgz", + "integrity": "sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==" + }, + "cssfilter": { + "version": "0.0.10", + "resolved": "https://registry.npmjs.org/cssfilter/-/cssfilter-0.0.10.tgz", + "integrity": "sha512-FAaLDaplstoRsDR8XGYH51znUN0UY7nMc6Z9/fvE8EXGwvJE9hu7W2vHwx1+bd6gCYnln9nLbzxFTrcO9YQDZw==" + }, + "daisyui": { + "version": "2.46.1", + "resolved": "https://registry.npmjs.org/daisyui/-/daisyui-2.46.1.tgz", + "integrity": "sha512-i59+nLuzzPAVOhNhot3KLtt6stfYeCIPXs9uiLcpXjykpqxHfBA3W6hQWOUWPMwfqhyQd0WKub3sydtPGjzLtA==", + "requires": { + "color": "^4.2", + "css-selector-tokenizer": "^0.8.0", + "postcss-js": "^4.0.0", + "tailwindcss": "^3" + } + }, + "data-uri-to-buffer": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/data-uri-to-buffer/-/data-uri-to-buffer-4.0.0.tgz", + "integrity": "sha512-Vr3mLBA8qWmcuschSLAOogKgQ/Jwxulv3RNE4FXnYWRGujzrRWQI4m12fQqRkwX06C0KanhLr4hK+GydchZsaA==" + }, + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "requires": { + "ms": "2.0.0" + } + }, + "decamelize": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", + "integrity": "sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA==" + }, + "defined": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/defined/-/defined-1.0.1.tgz", + "integrity": "sha512-hsBd2qSVCRE+5PmNdHt1uzyrFu5d3RwmFDKzyNZMFq/EwDNJF7Ee5+D5oEKF0hU6LhtoUF1macFvOe4AskQC1Q==" + }, + "delayed-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", + "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==" + }, + "delegates": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz", + "integrity": "sha512-bd2L678uiWATM6m5Z1VzNCErI3jiGzt6HGY8OVICs40JQq/HALfbyNJmp0UDakEY4pMMaN0Ly5om/B1VI/+xfQ==" + }, + "depd": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", + "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==" + }, + "destroy": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz", + "integrity": "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==" + }, + "detect-libc": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.0.1.tgz", + "integrity": "sha512-463v3ZeIrcWtdgIg6vI6XUncguvr2TnGl4SzDXinkt9mSLpBJKXT3mW6xT3VQdDN11+WVs29pgvivTc4Lp8v+w==" + }, + "detective": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/detective/-/detective-5.2.1.tgz", + "integrity": "sha512-v9XE1zRnz1wRtgurGu0Bs8uHKFSTdteYZNbIPFVhUZ39L/S79ppMpdmVOZAnoz1jfEFodc48n6MX483Xo3t1yw==", + "requires": { + "acorn-node": "^1.8.2", + "defined": "^1.0.0", + "minimist": "^1.2.6" + } + }, + "didyoumean": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/didyoumean/-/didyoumean-1.2.2.tgz", + "integrity": "sha512-gxtyfqMg7GKyhQmb056K7M3xszy/myH8w+B4RT+QXBQsvAOdc3XymqDDPHx1BgPgsdAA5SIifona89YtRATDzw==" + }, + "dijkstrajs": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/dijkstrajs/-/dijkstrajs-1.0.2.tgz", + "integrity": "sha512-QV6PMaHTCNmKSeP6QoXhVTw9snc9VD8MulTT0Bd99Pacp4SS1cjcrYPgBPmibqKVtMJJfqC6XvOXgPMEEPH/fg==" + }, + "dlv": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/dlv/-/dlv-1.1.3.tgz", + "integrity": "sha512-+HlytyjlPKnIG8XuRG8WvmBP8xs8P71y+SKKS6ZXWoEgLuePxtDoUEiH7WkdePWrQ5JBpE6aoVqfZfJUQkjXwA==" + }, + "dotenv": { + "version": "16.0.3", + "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.0.3.tgz", + "integrity": "sha512-7GO6HghkA5fYG9TYnNxi14/7K9f5occMlp3zXAuSxn7CKCxt9xbNWG7yF8hTCSUchlfWSe3uLmlPfigevRItzQ==" + }, + "easy-soap-request": { + "version": "4.8.0", + "resolved": "https://registry.npmjs.org/easy-soap-request/-/easy-soap-request-4.8.0.tgz", + "integrity": "sha512-fD1NXRv14P4IdAoyYpGJ2kB+292vYfvU7qLbmUw2x2HA+U74LWVyErjyNf2Jxn1mUAwp+sRdMlkmrUrPY0/wAg==", + "requires": { + "axios": "^0.27.2" + } + }, + "ecdsa-sig-formatter": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/ecdsa-sig-formatter/-/ecdsa-sig-formatter-1.0.11.tgz", + "integrity": "sha512-nagl3RYrbNv6kQkeJIpt6NJZy8twLB/2vtz6yN9Z4vRKHN4/QZJIEbqohALSgwKdnksuY3k5Addp5lg8sVoVcQ==", + "requires": { + "safe-buffer": "^5.0.1" + } + }, + "ee-first": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", + "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==" + }, + "electron-to-chromium": { + "version": "1.4.284", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.284.tgz", + "integrity": "sha512-M8WEXFuKXMYMVr45fo8mq0wUrrJHheiKZf6BArTKk9ZBYCKJEOU5H8cdWgDT+qCVZf7Na4lVUaZsA+h6uA9+PA==", + "peer": true + }, + "emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" + }, + "encode-utf8": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/encode-utf8/-/encode-utf8-1.0.3.tgz", + "integrity": "sha512-ucAnuBEhUK4boH2HjVYG5Q2mQyPorvv0u/ocS+zhdw0S8AlHYY+GOFhP1Gio5z4icpP2ivFSvhtFjQi8+T9ppw==" + }, + "encodeurl": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", + "integrity": "sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==" + }, + "esbuild": { + "version": "0.17.4", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.17.4.tgz", + "integrity": "sha512-zBn9MeCwT7W5F1a3lXClD61ip6vQM+H8Msb0w8zMT4ZKBpDg+rFAraNyWCDelB/2L6M3g6AXHPnsyvjMFnxtFw==", + "requires": { + "@esbuild/android-arm": "0.17.4", + "@esbuild/android-arm64": "0.17.4", + "@esbuild/android-x64": "0.17.4", + "@esbuild/darwin-arm64": "0.17.4", + "@esbuild/darwin-x64": "0.17.4", + "@esbuild/freebsd-arm64": "0.17.4", + "@esbuild/freebsd-x64": "0.17.4", + "@esbuild/linux-arm": "0.17.4", + "@esbuild/linux-arm64": "0.17.4", + "@esbuild/linux-ia32": "0.17.4", + "@esbuild/linux-loong64": "0.17.4", + "@esbuild/linux-mips64el": "0.17.4", + "@esbuild/linux-ppc64": "0.17.4", + "@esbuild/linux-riscv64": "0.17.4", + "@esbuild/linux-s390x": "0.17.4", + "@esbuild/linux-x64": "0.17.4", + "@esbuild/netbsd-x64": "0.17.4", + "@esbuild/openbsd-x64": "0.17.4", + "@esbuild/sunos-x64": "0.17.4", + "@esbuild/win32-arm64": "0.17.4", + "@esbuild/win32-ia32": "0.17.4", + "@esbuild/win32-x64": "0.17.4" + } + }, + "escalade": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", + "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==", + "peer": true + }, + "escape-html": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", + "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==" + }, + "etag": { + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", + "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==" + }, + "express": { + "version": "4.18.2", + "resolved": "https://registry.npmjs.org/express/-/express-4.18.2.tgz", + "integrity": "sha512-5/PsL6iGPdfQ/lKM1UuielYgv3BUoJfz1aUwU9vHZ+J7gyvwdQXFEBIEIaxeGf0GIcreATNyBExtalisDbuMqQ==", + "requires": { + "accepts": "~1.3.8", + "array-flatten": "1.1.1", + "body-parser": "1.20.1", + "content-disposition": "0.5.4", + "content-type": "~1.0.4", + "cookie": "0.5.0", + "cookie-signature": "1.0.6", + "debug": "2.6.9", + "depd": "2.0.0", + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "etag": "~1.8.1", + "finalhandler": "1.2.0", + "fresh": "0.5.2", + "http-errors": "2.0.0", + "merge-descriptors": "1.0.1", + "methods": "~1.1.2", + "on-finished": "2.4.1", + "parseurl": "~1.3.3", + "path-to-regexp": "0.1.7", + "proxy-addr": "~2.0.7", + "qs": "6.11.0", + "range-parser": "~1.2.1", + "safe-buffer": "5.2.1", + "send": "0.18.0", + "serve-static": "1.15.0", + "setprototypeof": "1.2.0", + "statuses": "2.0.1", + "type-is": "~1.6.18", + "utils-merge": "1.0.1", + "vary": "~1.1.2" + }, + "dependencies": { + "cookie": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.5.0.tgz", + "integrity": "sha512-YZ3GUyn/o8gfKJlnlX7g7xq4gyO6OSuhGPKaaGssGB2qgDUS0gPgtTvoyZLTt9Ab6dC4hfc9dV5arkvc/OCmrw==" + } + } + }, + "express-flash-message": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/express-flash-message/-/express-flash-message-2.1.0.tgz", + "integrity": "sha512-oR/cwzt7CfjSUt7XwEZCCyOegylHuTF8/by6+jAshZh2TzREqDIjfU0JU5M6usurSk/ep3lUxxyaCbujyERyTQ==" + }, + "express-prom-bundle": { + "version": "6.6.0", + "resolved": "https://registry.npmjs.org/express-prom-bundle/-/express-prom-bundle-6.6.0.tgz", + "integrity": "sha512-tZh2P2p5a8/yxQ5VbRav011Poa4R0mHqdFwn9Swe/obXDe5F0jY9wtRAfNYnqk4LXY7akyvR/nrvAHxQPWUjsQ==", + "requires": { + "on-finished": "^2.3.0", + "url-value-parser": "^2.0.0" + } + }, + "express-rate-limit": { + "version": "6.7.0", + "resolved": "https://registry.npmjs.org/express-rate-limit/-/express-rate-limit-6.7.0.tgz", + "integrity": "sha512-vhwIdRoqcYB/72TK3tRZI+0ttS8Ytrk24GfmsxDXK9o9IhHNO5bXRiXQSExPQ4GbaE5tvIS7j1SGrxsuWs+sGA==", + "requires": {} + }, + "express-session": { + "version": "1.17.3", + "resolved": "https://registry.npmjs.org/express-session/-/express-session-1.17.3.tgz", + "integrity": "sha512-4+otWXlShYlG1Ma+2Jnn+xgKUZTMJ5QD3YvfilX3AcocOAbIkVylSWEklzALe/+Pu4qV6TYBj5GwOBFfdKqLBw==", + "requires": { + "cookie": "0.4.2", + "cookie-signature": "1.0.6", + "debug": "2.6.9", + "depd": "~2.0.0", + "on-headers": "~1.0.2", + "parseurl": "~1.3.3", + "safe-buffer": "5.2.1", + "uid-safe": "~2.1.5" + }, + "dependencies": { + "cookie": { + "version": "0.4.2", + "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.4.2.tgz", + "integrity": "sha512-aSWTXFzaKWkvHO1Ny/s+ePFpvKsPnjc551iI41v3ny/ow6tBG5Vd+FuqGNhh1LxOmVzOlGUriIlOaokOvhaStA==" + } + } + }, + "fast-glob": { + "version": "3.2.12", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.12.tgz", + "integrity": "sha512-DVj4CQIYYow0BlaelwK1pHl5n5cRSJfM60UA0zK891sVInoPri2Ekj7+e1CT3/3qxXenpI+nBBmQAcJPJgaj4w==", + "requires": { + "@nodelib/fs.stat": "^2.0.2", + "@nodelib/fs.walk": "^1.2.3", + "glob-parent": "^5.1.2", + "merge2": "^1.3.0", + "micromatch": "^4.0.4" + } + }, + "fast-xml-parser": { + "version": "4.0.11", + "resolved": "https://registry.npmjs.org/fast-xml-parser/-/fast-xml-parser-4.0.11.tgz", + "integrity": "sha512-4aUg3aNRR/WjQAcpceODG1C3x3lFANXRo8+1biqfieHmg9pyMt7qB4lQV/Ta6sJCTbA5vfD8fnA8S54JATiFUA==", + "optional": true, + "requires": { + "strnum": "^1.0.5" + } + }, + "fastparse": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/fastparse/-/fastparse-1.1.2.tgz", + "integrity": "sha512-483XLLxTVIwWK3QTrMGRqUfUpoOs/0hbQrl2oz4J0pAcm3A3bu84wxTFqGqkJzewCLdME38xJLJAxBABfQT8sQ==" + }, + "fastq": { + "version": "1.15.0", + "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.15.0.tgz", + "integrity": "sha512-wBrocU2LCXXa+lWBt8RoIRD89Fi8OdABODa/kEnyeyjS5aZO5/GNvI5sEINADqP/h8M29UHTHUb53sUu5Ihqdw==", + "requires": { + "reusify": "^1.0.4" + } + }, + "fetch-blob": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/fetch-blob/-/fetch-blob-3.2.0.tgz", + "integrity": "sha512-7yAQpD2UMJzLi1Dqv7qFYnPbaPx7ZfFK6PiIxQ4PfkGPyNyl2Ugx+a/umUonmKqjhM4DnfbMvdX6otXq83soQQ==", + "requires": { + "node-domexception": "^1.0.0", + "web-streams-polyfill": "^3.0.3" + } + }, + "file-type-checker": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/file-type-checker/-/file-type-checker-1.0.4.tgz", + "integrity": "sha512-hhleilG34kfSjlSfAAj8DVvqXxMwEIVY/pkWnkMVbqdmly6jUv7jjNw/dmvdcbMt6joXlQgavCJCtNDRzODOsQ==" + }, + "fill-range": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", + "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", + "requires": { + "to-regex-range": "^5.0.1" + } + }, + "finalhandler": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.2.0.tgz", + "integrity": "sha512-5uXcUVftlQMFnWC9qu/svkWv3GTd2PfUhK/3PLkYNAe7FbqJMt3515HaxE6eRL74GdsriiwujiawdaB1BpEISg==", + "requires": { + "debug": "2.6.9", + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "on-finished": "2.4.1", + "parseurl": "~1.3.3", + "statuses": "2.0.1", + "unpipe": "~1.0.0" + } + }, + "find-up": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "requires": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + } + }, + "follow-redirects": { + "version": "1.15.2", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.2.tgz", + "integrity": "sha512-VQLG33o04KaQ8uYi2tVNbdrWp1QWxNNea+nmIB4EVM28v0hmP17z7aG1+wAkNzVq4KeXTq3221ye5qTJP91JwA==" + }, + "form-data": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz", + "integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==", + "requires": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "mime-types": "^2.1.12" + } + }, + "formdata-polyfill": { + "version": "4.0.10", + "resolved": "https://registry.npmjs.org/formdata-polyfill/-/formdata-polyfill-4.0.10.tgz", + "integrity": "sha512-buewHzMvYL29jdeQTVILecSaZKnt/RJWjoZCF5OW60Z67/GmSLBkOFM7qh1PI3zFNtJbaZL5eQu1vLfazOwj4g==", + "requires": { + "fetch-blob": "^3.1.2" + } + }, + "forwarded": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz", + "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==" + }, + "fraction.js": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/fraction.js/-/fraction.js-4.2.0.tgz", + "integrity": "sha512-MhLuK+2gUcnZe8ZHlaaINnQLl0xRIGRfcGk2yl8xoQAfHrSsL3rYu6FCmBdkdbhc9EPlwyGHewaRsvwRMJtAlA==", + "peer": true + }, + "fresh": { + "version": "0.5.2", + "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", + "integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==" + }, + "fs-memo": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/fs-memo/-/fs-memo-1.2.0.tgz", + "integrity": "sha512-YEexkCpL4j03jn5SxaMHqcO6IuWuqm8JFUYhyCep7Ao89JIYmB8xoKhK7zXXJ9cCaNXpyNH5L3QtAmoxjoHW2w==" + }, + "fs-minipass": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fs-minipass/-/fs-minipass-2.1.0.tgz", + "integrity": "sha512-V/JgOLFCS+R6Vcq0slCuaeWEdNC3ouDlJMNIsacH2VtALiu9mV4LPrHc5cDl8k5aw6J8jwgWWpiTo5RYhmIzvg==", + "requires": { + "minipass": "^3.0.0" + }, + "dependencies": { + "minipass": { + "version": "3.3.6", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz", + "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", + "requires": { + "yallist": "^4.0.0" + } + } + } + }, + "fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==" + }, + "fsevents": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", + "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", + "optional": true + }, + "function-bind": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", + "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==" + }, + "gauge": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/gauge/-/gauge-3.0.2.tgz", + "integrity": "sha512-+5J6MS/5XksCuXq++uFRsnUd7Ovu1XenbeuIuNRJxYWjgQbPuFhT14lAvsWfqfAmnwluf1OwMjz39HjfLPci0Q==", + "requires": { + "aproba": "^1.0.3 || ^2.0.0", + "color-support": "^1.1.2", + "console-control-strings": "^1.0.0", + "has-unicode": "^2.0.1", + "object-assign": "^4.1.1", + "signal-exit": "^3.0.0", + "string-width": "^4.2.3", + "strip-ansi": "^6.0.1", + "wide-align": "^1.1.2" + } + }, + "generic-pool": { + "version": "3.9.0", + "resolved": "https://registry.npmjs.org/generic-pool/-/generic-pool-3.9.0.tgz", + "integrity": "sha512-hymDOu5B53XvN4QT9dBmZxPX4CWhBPPLguTZ9MMFeFa/Kg0xWVfylOVNlJji/E7yTZWFd/q9GO5TxDLq156D7g==" + }, + "get-caller-file": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", + "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==" + }, + "get-intrinsic": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.1.3.tgz", + "integrity": "sha512-QJVz1Tj7MS099PevUG5jvnt9tSkXN8K14dxQlikJuPt4uD9hHAHjLyLBiLR5zELelBdD9QNRAXZzsJx0WaDL9A==", + "requires": { + "function-bind": "^1.1.1", + "has": "^1.0.3", + "has-symbols": "^1.0.3" + } + }, + "get-port": { + "version": "6.1.2", + "resolved": "https://registry.npmjs.org/get-port/-/get-port-6.1.2.tgz", + "integrity": "sha512-BrGGraKm2uPqurfGVj/z97/zv8dPleC6x9JBNRTrDNtCkkRF4rPwrQXFgL7+I+q8QSdU4ntLQX2D7KIxSy8nGw==" + }, + "get-port-please": { + "version": "2.6.1", + "resolved": "https://registry.npmjs.org/get-port-please/-/get-port-please-2.6.1.tgz", + "integrity": "sha512-4PDSrL6+cuMM1xs6w36ZIkaKzzE0xzfVBCfebHIJ3FE8iB9oic/ECwPw3iNiD4h1AoJ5XLLBhEviFAVrZsDC5A==", + "requires": { + "fs-memo": "^1.2.0" + } + }, + "glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "requires": { + "is-glob": "^4.0.1" + } + }, + "has": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", + "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", + "requires": { + "function-bind": "^1.1.1" + } + }, + "has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", + "dev": true + }, + "has-symbols": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz", + "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==" + }, + "has-unicode": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/has-unicode/-/has-unicode-2.0.1.tgz", + "integrity": "sha512-8Rf9Y83NBReMnx0gFzA8JImQACstCYWUplepDa9xprwwtmgEZUF0h/i5xSA625zB/I37EtrswSST6OXxwaaIJQ==" + }, + "helmet": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/helmet/-/helmet-5.1.1.tgz", + "integrity": "sha512-/yX0oVZBggA9cLJh8aw3PPCfedBnbd7J2aowjzsaWwZh7/UFY0nccn/aHAggIgWUFfnykX8GKd3a1pSbrmlcVQ==" + }, + "http-errors": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz", + "integrity": "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==", + "requires": { + "depd": "2.0.0", + "inherits": "2.0.4", + "setprototypeof": "1.2.0", + "statuses": "2.0.1", + "toidentifier": "1.0.1" + } + }, + "https-proxy-agent": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz", + "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==", + "requires": { + "agent-base": "6", + "debug": "4" + }, + "dependencies": { + "debug": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "requires": { + "ms": "2.1.2" + } + }, + "ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" + } + } + }, + "iconv-lite": { + "version": "0.4.24", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", + "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", + "requires": { + "safer-buffer": ">= 2.1.2 < 3" + } + }, + "ieee754": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz", + "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==" + }, + "ignore-by-default": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/ignore-by-default/-/ignore-by-default-1.0.1.tgz", + "integrity": "sha512-Ius2VYcGNk7T90CppJqcIkS5ooHUZyIQK+ClZfMfMNFEF9VSE73Fq+906u/CWu92x4gzZMWOwfFYckPObzdEbA==", + "dev": true + }, + "inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", + "requires": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" + }, + "ip": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ip/-/ip-2.0.0.tgz", + "integrity": "sha512-WKa+XuLG1A1R0UWhl2+1XQSi+fZWMsYKffMZTTYsiZaUD8k2yDAj5atimTUD2TZkyCkNEeYE5NhFZmupOGtjYQ==" + }, + "ipaddr.js": { + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz", + "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==" + }, + "is-arrayish": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.3.2.tgz", + "integrity": "sha512-eVRqCvVlZbuw3GrM63ovNSNAeA1K16kaR/LRY/92w0zxQ5/1YzwblUX652i4Xs9RwAGjW9d9y6X88t8OaAJfWQ==" + }, + "is-binary-path": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", + "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", + "requires": { + "binary-extensions": "^2.0.0" + } + }, + "is-core-module": { + "version": "2.11.0", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.11.0.tgz", + "integrity": "sha512-RRjxlvLDkD1YJwDbroBHMb+cukurkDWNyHx7D3oNB5x9rb5ogcksMC5wHCadcXoo67gVr/+3GFySh3134zi6rw==", + "requires": { + "has": "^1.0.3" + } + }, + "is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==" + }, + "is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==" + }, + "is-glob": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", + "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", + "requires": { + "is-extglob": "^2.1.1" + } + }, + "is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==" + }, + "isarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==" + }, + "isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", + "dev": true + }, + "jsonpath-plus": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/jsonpath-plus/-/jsonpath-plus-7.2.0.tgz", + "integrity": "sha512-zBfiUPM5nD0YZSBT/o/fbCUlCcepMIdP0CJZxM1+KgA4f2T206f6VAg9e7mX35+KlMaIc5qXW34f3BnwJ3w+RA==" + }, + "jsonwebtoken": { + "version": "9.0.0", + "resolved": "https://registry.npmjs.org/jsonwebtoken/-/jsonwebtoken-9.0.0.tgz", + "integrity": "sha512-tuGfYXxkQGDPnLJ7SibiQgVgeDgfbPq2k2ICcbgqW8WxWLBAxKQM/ZCu/IT8SOSwmaYl4dpTFCW5xZv7YbbWUw==", + "requires": { + "jws": "^3.2.2", + "lodash": "^4.17.21", + "ms": "^2.1.1", + "semver": "^7.3.8" + }, + "dependencies": { + "ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==" + } + } + }, + "just-clone": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/just-clone/-/just-clone-6.2.0.tgz", + "integrity": "sha512-1IynUYEc/HAwxhi3WDpIpxJbZpMCvvrrmZVqvj9EhpvbH8lls7HhdhiByjL7DkAaWlLIzpC0Xc/VPvy/UxLNjA==" + }, + "jwa": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/jwa/-/jwa-1.4.1.tgz", + "integrity": "sha512-qiLX/xhEEFKUAJ6FiBMbes3w9ATzyk5W7Hvzpa/SLYdxNtng+gcurvrI7TbACjIXlsJyr05/S1oUhZrc63evQA==", + "requires": { + "buffer-equal-constant-time": "1.0.1", + "ecdsa-sig-formatter": "1.0.11", + "safe-buffer": "^5.0.1" + } + }, + "jws": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/jws/-/jws-3.2.2.tgz", + "integrity": "sha512-YHlZCB6lMTllWDtSPHz/ZXTsi8S00usEV6v1tjq8tOUZzw7DpSDWVXjXDre6ed1w/pd495ODpHZYSdkRTsa0HA==", + "requires": { + "jwa": "^1.4.1", + "safe-buffer": "^5.0.1" + } + }, + "kareem": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/kareem/-/kareem-2.5.1.tgz", + "integrity": "sha512-7jFxRVm+jD+rkq3kY0iZDJfsO2/t4BBPeEb2qKn2lR/9KhuksYk5hxzfRYWMPV8P/x2d0kHD306YyWLzjjH+uA==" + }, + "lilconfig": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/lilconfig/-/lilconfig-2.0.6.tgz", + "integrity": "sha512-9JROoBW7pobfsx+Sq2JsASvCo6Pfo6WWoUW79HuB1BCoBXD4PLWJPqDF6fNj67pqBYTbAHkE57M1kS/+L1neOg==" + }, + "locate-path": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "requires": { + "p-locate": "^4.1.0" + } + }, + "lodash": { + "version": "4.17.21", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", + "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==" + }, + "lodash.foreach": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/lodash.foreach/-/lodash.foreach-4.5.0.tgz", + "integrity": "sha512-aEXTF4d+m05rVOAUG3z4vZZ4xVexLKZGF0lIxuHZ1Hplpk/3B6Z1+/ICICYRLm7c41Z2xiejbkCkJoTlypoXhQ==" + }, + "lodash.get": { + "version": "4.4.2", + "resolved": "https://registry.npmjs.org/lodash.get/-/lodash.get-4.4.2.tgz", + "integrity": "sha512-z+Uw/vLuy6gQe8cfaFWD7p0wVv8fJl3mbzXh33RS+0oW2wvUqiRXiQ69gLWSLpgB5/6sU+r6BlQR0MBILadqTQ==" + }, + "lodash.merge": { + "version": "4.6.2", + "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", + "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==" + }, + "lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "requires": { + "yallist": "^4.0.0" + } + }, + "make-dir": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", + "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==", + "requires": { + "semver": "^6.0.0" + }, + "dependencies": { + "semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==" + } + } + }, + "media-typer": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", + "integrity": "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==" + }, + "memory-pager": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/memory-pager/-/memory-pager-1.5.0.tgz", + "integrity": "sha512-ZS4Bp4r/Zoeq6+NLJpP+0Zzm0pR8whtGPf1XExKLJBAczGMnSi3It14OiNCStjQjM6NU1okjQGSxgEZN8eBYKg==", + "optional": true + }, + "merge-descriptors": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz", + "integrity": "sha512-cCi6g3/Zr1iqQi6ySbseM1Xvooa98N0w31jzUYrXPX2xqObmFGHJ0tQ5u74H3mVh7wLouTseZyYIq39g8cNp1w==" + }, + "merge2": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", + "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==" + }, + "methods": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", + "integrity": "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==" + }, + "micromatch": { + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz", + "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==", + "requires": { + "braces": "^3.0.2", + "picomatch": "^2.3.1" + } + }, + "mime": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", + "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==" + }, + "mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==" + }, + "mime-types": { + "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "requires": { + "mime-db": "1.52.0" + } + }, + "minimist": { + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.7.tgz", + "integrity": "sha512-bzfL1YUZsP41gmu/qjrEk0Q6i2ix/cVeAhbCbqH9u3zYutS1cLg00qhrD0M2MVdCcx4Sc0UpP2eBWo9rotpq6g==" + }, + "minipass": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-4.0.0.tgz", + "integrity": "sha512-g2Uuh2jEKoht+zvO6vJqXmYpflPqzRBT+Th2h01DKh5z7wbY/AZ2gCQ78cP70YoHPyFdY30YBV5WxgLOEwOykw==", + "requires": { + "yallist": "^4.0.0" + } + }, + "minizlib": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/minizlib/-/minizlib-2.1.2.tgz", + "integrity": "sha512-bAxsR8BVfj60DWXHE3u30oHzfl4G7khkSuPW+qvpd7jFRHm7dLxOjUk1EHACJ/hxLY8phGJ0YhYHZo7jil7Qdg==", + "requires": { + "minipass": "^3.0.0", + "yallist": "^4.0.0" + }, + "dependencies": { + "minipass": { + "version": "3.3.6", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz", + "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", + "requires": { + "yallist": "^4.0.0" + } + } + } + }, + "mkdirp": { + "version": "0.5.6", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.6.tgz", + "integrity": "sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==", + "requires": { + "minimist": "^1.2.6" + } + }, + "mongo-sanitize": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/mongo-sanitize/-/mongo-sanitize-1.1.0.tgz", + "integrity": "sha512-6gB9AiJD+om2eZLxaPKIP5Q8P3Fr+s+17rVWso7hU0+MAzmIvIMlgTYuyvalDLTtE/p0gczcvJ8A3pbN1XmQ/A==" + }, + "mongodb": { + "version": "4.13.0", + "resolved": "https://registry.npmjs.org/mongodb/-/mongodb-4.13.0.tgz", + "integrity": "sha512-+taZ/bV8d1pYuHL4U+gSwkhmDrwkWbH1l4aah4YpmpscMwgFBkufIKxgP/G7m87/NUuQzc2Z75ZTI7ZOyqZLbw==", + "requires": { + "@aws-sdk/credential-providers": "^3.186.0", + "bson": "^4.7.0", + "mongodb-connection-string-url": "^2.5.4", + "saslprep": "^1.0.3", + "socks": "^2.7.1" + } + }, + "mongodb-connection-string-url": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/mongodb-connection-string-url/-/mongodb-connection-string-url-2.6.0.tgz", + "integrity": "sha512-WvTZlI9ab0QYtTYnuMLgobULWhokRjtC7db9LtcVfJ+Hsnyr5eo6ZtNAt3Ly24XZScGMelOcGtm7lSn0332tPQ==", + "requires": { + "@types/whatwg-url": "^8.2.1", + "whatwg-url": "^11.0.0" + } + }, + "mongoose": { + "version": "6.9.1", + "resolved": "https://registry.npmjs.org/mongoose/-/mongoose-6.9.1.tgz", + "integrity": "sha512-hOz1ZWV0w6WEVLrj89Wpk7PXDYtDDF6k7/NX79lY5iKqeFtZsceBXW8xW59YFNcW5O3cH32hQ8IbDlhgyBsDMA==", + "requires": { + "bson": "^4.7.0", + "kareem": "2.5.1", + "mongodb": "4.13.0", + "mpath": "0.9.0", + "mquery": "4.0.3", + "ms": "2.1.3", + "sift": "16.0.1" + }, + "dependencies": { + "ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==" + } + } + }, + "mongoose-unique-validator": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/mongoose-unique-validator/-/mongoose-unique-validator-3.1.0.tgz", + "integrity": "sha512-UsBBlFapip8gc8x1h+nLWnkOy+GTy9Z+zmTyZ35icLV3EoLIVz180vJzepfMM9yBy2AJh+maeuoM8CWtqejGUg==", + "requires": { + "lodash.foreach": "^4.1.0", + "lodash.get": "^4.0.2", + "lodash.merge": "^4.6.2" + } + }, + "mpath": { + "version": "0.9.0", + "resolved": "https://registry.npmjs.org/mpath/-/mpath-0.9.0.tgz", + "integrity": "sha512-ikJRQTk8hw5DEoFVxHG1Gn9T/xcjtdnOKIU1JTmGjZZlg9LST2mBLmcX3/ICIbgJydT2GOc15RnNy5mHmzfSew==" + }, + "mquery": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/mquery/-/mquery-4.0.3.tgz", + "integrity": "sha512-J5heI+P08I6VJ2Ky3+33IpCdAvlYGTSUjwTPxkAr8i8EoduPMBX2OY/wa3IKZIQl7MU4SbFk8ndgSKyB/cl1zA==", + "requires": { + "debug": "4.x" + }, + "dependencies": { + "debug": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "requires": { + "ms": "2.1.2" + } + }, + "ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" + } + } + }, + "ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" + }, + "multer": { + "version": "1.4.5-lts.1", + "resolved": "https://registry.npmjs.org/multer/-/multer-1.4.5-lts.1.tgz", + "integrity": "sha512-ywPWvcDMeH+z9gQq5qYHCCy+ethsk4goepZ45GLD63fOu0YcNecQxi64nDs3qluZB+murG3/D4dJ7+dGctcCQQ==", + "requires": { + "append-field": "^1.0.0", + "busboy": "^1.0.0", + "concat-stream": "^1.5.2", + "mkdirp": "^0.5.4", + "object-assign": "^4.1.1", + "type-is": "^1.6.4", + "xtend": "^4.0.0" + } + }, + "nanoid": { + "version": "3.3.4", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.4.tgz", + "integrity": "sha512-MqBkQh/OHTS2egovRtLk45wEyNXwF+cokD+1YPf9u5VfJiRdAiRwB2froX5Co9Rh20xs4siNPm8naNotSD6RBw==" + }, + "negotiator": { + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz", + "integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==" + }, + "node-addon-api": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-5.0.0.tgz", + "integrity": "sha512-CvkDw2OEnme7ybCykJpVcKH+uAOLV2qLqiyla128dN9TkEWfrYmxG6C2boDe5KcNQqZF3orkqzGgOMvZ/JNekA==" + }, + "node-domexception": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/node-domexception/-/node-domexception-1.0.0.tgz", + "integrity": "sha512-/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ==" + }, + "node-fetch": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-3.3.0.tgz", + "integrity": "sha512-BKwRP/O0UvoMKp7GNdwPlObhYGB5DQqwhEDQlNKuoqwVYSxkSZCSbHjnFFmUEtwSKRPU4kNK8PbDYYitwaE3QA==", + "requires": { + "data-uri-to-buffer": "^4.0.0", + "fetch-blob": "^3.1.4", + "formdata-polyfill": "^4.0.10" + } + }, + "node-releases": { + "version": "2.0.8", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.8.tgz", + "integrity": "sha512-dFSmB8fFHEH/s81Xi+Y/15DQY6VHW81nXRj86EMSL3lmuTmK1e+aT4wrFCkTbm+gSwkw4KpX+rT/pMM2c1mF+A==", + "peer": true + }, + "nodemon": { + "version": "2.0.20", + "resolved": "https://registry.npmjs.org/nodemon/-/nodemon-2.0.20.tgz", + "integrity": "sha512-Km2mWHKKY5GzRg6i1j5OxOHQtuvVsgskLfigG25yTtbyfRGn/GNvIbRyOf1PSCKJ2aT/58TiuUsuOU5UToVViw==", + "dev": true, + "requires": { + "chokidar": "^3.5.2", + "debug": "^3.2.7", + "ignore-by-default": "^1.0.1", + "minimatch": "^3.1.2", + "pstree.remy": "^1.1.8", + "semver": "^5.7.1", + "simple-update-notifier": "^1.0.7", + "supports-color": "^5.5.0", + "touch": "^3.1.0", + "undefsafe": "^2.0.5" + }, + "dependencies": { + "brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dev": true, + "requires": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dev": true, + "requires": { + "ms": "^2.1.1" + } + }, + "minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "requires": { + "brace-expansion": "^1.1.7" + } + }, + "ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "dev": true + }, + "semver": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "dev": true + } + } + }, + "nopt": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/nopt/-/nopt-5.0.0.tgz", + "integrity": "sha512-Tbj67rffqceeLpcRXrT7vKAN8CwfPeIBgM7E6iBkmKLV7bEMwpGgYLGv0jACUsECaa/vuxP0IjEont6umdMgtQ==", + "requires": { + "abbrev": "1" + } + }, + "normalize-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", + "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==" + }, + "normalize-range": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/normalize-range/-/normalize-range-0.1.2.tgz", + "integrity": "sha512-bdok/XvKII3nUpklnV6P2hxtMNrCboOjAcyBuQnWEhO665FwrSNRxU+AqpsyvO6LgGYPspN+lu5CLtw4jPRKNA==", + "peer": true + }, + "npmlog": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/npmlog/-/npmlog-5.0.1.tgz", + "integrity": "sha512-AqZtDUWOMKs1G/8lwylVjrdYgqA4d9nu8hc+0gzRxlDb1I10+FHBGMXs6aiQHFdCUUlqH99MUMuLfzWDNDtfxw==", + "requires": { + "are-we-there-yet": "^2.0.0", + "console-control-strings": "^1.1.0", + "gauge": "^3.0.0", + "set-blocking": "^2.0.0" + } + }, + "object-assign": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", + "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==" + }, + "object-hash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/object-hash/-/object-hash-3.0.0.tgz", + "integrity": "sha512-RSn9F68PjH9HqtltsSnqYC1XXoWe9Bju5+213R98cNGttag9q9yAOTzdbsqvIa7aNm5WffBZFpWYr2aWrklWAw==" + }, + "object-inspect": { + "version": "1.12.2", + "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.12.2.tgz", + "integrity": "sha512-z+cPxW0QGUp0mcqcsgQyLVRDoXFQbXOwBaqyF7VIgI4TWNQsDHrBpUQslRmIfAoYWdYzs6UlKJtB2XJpTaNSpQ==" + }, + "on-finished": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz", + "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==", + "requires": { + "ee-first": "1.1.1" + } + }, + "on-headers": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/on-headers/-/on-headers-1.0.2.tgz", + "integrity": "sha512-pZAE+FJLoyITytdqK0U5s+FIpjN0JP3OzFi/u8Rx+EV5/W+JTWGXG8xFzevE7AjBfDqHv/8vL8qQsIhHnqRkrA==" + }, + "once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", + "requires": { + "wrappy": "1" + } + }, + "p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "requires": { + "p-try": "^2.0.0" + } + }, + "p-locate": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "requires": { + "p-limit": "^2.2.0" + } + }, + "p-try": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", + "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==" + }, + "parseurl": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", + "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==" + }, + "path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==" + }, + "path-is-absolute": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==" + }, + "path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "dev": true + }, + "path-parse": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", + "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==" + }, + "path-to-regexp": { + "version": "0.1.7", + "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz", + "integrity": "sha512-5DFkuoqlv1uYQKxy8omFBeJPQcdoE07Kv2sferDCrAq1ohOU+MSDswDIbnx3YAM60qIOnYa53wBhXW0EbMonrQ==" + }, + "picocolors": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", + "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==" + }, + "picomatch": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==" + }, + "pify": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", + "integrity": "sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog==" + }, + "png-validator": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/png-validator/-/png-validator-1.1.0.tgz", + "integrity": "sha512-MlRLyPI1p3/dJbsjVH+4xOPucycrz8T3EvO0BzCXaNtrUhZkZROtzib9J6mnC81AJO8eBIwiDZwTFel2cMmSuQ==" + }, + "pngjs": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/pngjs/-/pngjs-5.0.0.tgz", + "integrity": "sha512-40QW5YalBNfQo5yRYmiw7Yz6TKKVr3h6970B2YE+3fQpsWcrbj1PzJgxeJ19DRQjhMbKPIuMY8rFaXc8moolVw==" + }, + "postcss": { + "version": "8.4.20", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.20.tgz", + "integrity": "sha512-6Q04AXR1212bXr5fh03u8aAwbLxAQNGQ/Q1LNa0VfOI06ZAlhPHtQvE4OIdpj4kLThXilalPnmDSOD65DcHt+g==", + "requires": { + "nanoid": "^3.3.4", + "picocolors": "^1.0.0", + "source-map-js": "^1.0.2" + } + }, + "postcss-import": { + "version": "14.1.0", + "resolved": "https://registry.npmjs.org/postcss-import/-/postcss-import-14.1.0.tgz", + "integrity": "sha512-flwI+Vgm4SElObFVPpTIT7SU7R3qk2L7PyduMcokiaVKuWv9d/U+Gm/QAd8NDLuykTWTkcrjOeD2Pp1rMeBTGw==", + "requires": { + "postcss-value-parser": "^4.0.0", + "read-cache": "^1.0.0", + "resolve": "^1.1.7" + } + }, + "postcss-js": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/postcss-js/-/postcss-js-4.0.0.tgz", + "integrity": "sha512-77QESFBwgX4irogGVPgQ5s07vLvFqWr228qZY+w6lW599cRlK/HmnlivnnVUxkjHnCu4J16PDMHcH+e+2HbvTQ==", + "requires": { + "camelcase-css": "^2.0.1" + } + }, + "postcss-load-config": { + "version": "3.1.4", + "resolved": "https://registry.npmjs.org/postcss-load-config/-/postcss-load-config-3.1.4.tgz", + "integrity": "sha512-6DiM4E7v4coTE4uzA8U//WhtPwyhiim3eyjEMFCnUpzbrkK9wJHgKDT2mR+HbtSrd/NubVaYTOpSpjUl8NQeRg==", + "requires": { + "lilconfig": "^2.0.5", + "yaml": "^1.10.2" + } + }, + "postcss-nested": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/postcss-nested/-/postcss-nested-6.0.0.tgz", + "integrity": "sha512-0DkamqrPcmkBDsLn+vQDIrtkSbNkv5AD/M322ySo9kqFkCIYklym2xEmWkwo+Y3/qZo34tzEPNUw4y7yMCdv5w==", + "requires": { + "postcss-selector-parser": "^6.0.10" + } + }, + "postcss-selector-parser": { + "version": "6.0.10", + "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.0.10.tgz", + "integrity": "sha512-IQ7TZdoaqbT+LCpShg46jnZVlhWD2w6iQYAcYXfHARZ7X1t/UGhhceQDs5X0cGqKvYlHNOuv7Oa1xmb0oQuA3w==", + "requires": { + "cssesc": "^3.0.0", + "util-deprecate": "^1.0.2" + } + }, + "postcss-value-parser": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz", + "integrity": "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==" + }, + "process-nextick-args": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", + "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==" + }, + "prom-client": { + "version": "14.1.1", + "resolved": "https://registry.npmjs.org/prom-client/-/prom-client-14.1.1.tgz", + "integrity": "sha512-hFU32q7UZQ59bVJQGUtm3I2PrJ3gWvoCkilX9sF165ks1qflhugVCeK+S1JjJYHvyt3o5kj68+q3bchormjnzw==", + "requires": { + "tdigest": "^0.1.1" + } + }, + "proxy-addr": { + "version": "2.0.7", + "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz", + "integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==", + "requires": { + "forwarded": "0.2.0", + "ipaddr.js": "1.9.1" + } + }, + "pstree.remy": { + "version": "1.1.8", + "resolved": "https://registry.npmjs.org/pstree.remy/-/pstree.remy-1.1.8.tgz", + "integrity": "sha512-77DZwxQmxKnu3aR542U+X8FypNzbfJ+C5XQDk3uWjWxn6151aIMGthWYRXTqT1E5oJvg+ljaa2OJi+VfvCOQ8w==", + "dev": true + }, + "punycode": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.0.tgz", + "integrity": "sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA==" + }, + "qrcode": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/qrcode/-/qrcode-1.5.1.tgz", + "integrity": "sha512-nS8NJ1Z3md8uTjKtP+SGGhfqmTCs5flU/xR623oI0JX+Wepz9R8UrRVCTBTJm3qGw3rH6jJ6MUHjkDx15cxSSg==", + "requires": { + "dijkstrajs": "^1.0.1", + "encode-utf8": "^1.0.3", + "pngjs": "^5.0.0", + "yargs": "^15.3.1" + } + }, + "qs": { + "version": "6.11.0", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.11.0.tgz", + "integrity": "sha512-MvjoMCJwEarSbUYk5O+nmoSzSutSsTwF85zcHPQ9OrlFoZOYIjaqBAJIqIXjptyD5vThxGq52Xu/MaJzRkIk4Q==", + "requires": { + "side-channel": "^1.0.4" + } + }, + "queue-microtask": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", + "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==" + }, + "quick-lru": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/quick-lru/-/quick-lru-5.1.1.tgz", + "integrity": "sha512-WuyALRjWPDGtt/wzJiadO5AXY+8hZ80hVpe6MyivgraREW751X3SbhRvG3eLKOYN+8VEvqLcf3wdnt44Z4S4SA==" + }, + "random-bytes": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/random-bytes/-/random-bytes-1.0.0.tgz", + "integrity": "sha512-iv7LhNVO047HzYR3InF6pUcUsPQiHTM1Qal51DcGSuZFBil1aBBWG5eHPNek7bvILMaYJ/8RU1e8w1AMdHmLQQ==" + }, + "range-parser": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", + "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==" + }, + "raw-body": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.1.tgz", + "integrity": "sha512-qqJBtEyVgS0ZmPGdCFPWJ3FreoqvG4MVQln/kCgF7Olq95IbOp0/BWyMwbdtn4VTvkM8Y7khCQ2Xgk/tcrCXig==", + "requires": { + "bytes": "3.1.2", + "http-errors": "2.0.0", + "iconv-lite": "0.4.24", + "unpipe": "1.0.0" + } + }, + "read-cache": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/read-cache/-/read-cache-1.0.0.tgz", + "integrity": "sha512-Owdv/Ft7IjOgm/i0xvNDZ1LrRANRfew4b2prF3OWMQLxLfu3bS8FVhCsrSCMK4lR56Y9ya+AThoTpDCTxCmpRA==", + "requires": { + "pify": "^2.3.0" + } + }, + "readable-stream": { + "version": "2.3.7", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz", + "integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==", + "requires": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + }, + "dependencies": { + "safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" + } + } + }, + "readdirp": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", + "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", + "requires": { + "picomatch": "^2.2.1" + } + }, + "redis": { + "version": "4.6.5", + "resolved": "https://registry.npmjs.org/redis/-/redis-4.6.5.tgz", + "integrity": "sha512-O0OWA36gDQbswOdUuAhRL6mTZpHFN525HlgZgDaVNgCJIAZR3ya06NTESb0R+TUZ+BFaDpz6NnnVvoMx9meUFg==", + "requires": { + "@redis/bloom": "1.2.0", + "@redis/client": "1.5.6", + "@redis/graph": "1.1.0", + "@redis/json": "1.0.4", + "@redis/search": "1.1.2", + "@redis/time-series": "1.0.4" + } + }, + "redis-om": { + "version": "0.4.0-beta.3", + "resolved": "https://registry.npmjs.org/redis-om/-/redis-om-0.4.0-beta.3.tgz", + "integrity": "sha512-zGWBMGoe3exrvkbFjWqAFG8UJL3tdby5UkfPKiZLvA67d7FsR0ScEpsBaaWGL33y5EQUWnYL+pI8jzZaQ6brtA==", + "requires": { + "jsonpath-plus": "^7.2.0", + "just-clone": "^6.1.1", + "redis": "^4.6.4", + "ulid": "^2.3.0" + } + }, + "req-flash": { + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/req-flash/-/req-flash-0.0.3.tgz", + "integrity": "sha512-c5ouPRJ6OVc4ecL5cgdwd51nYOFQiOTfl7UWk+VlgUHgfsh7TMRFPN/OJ5ETnOYFyswprT8C2a6ctMvJgms9ng==" + }, + "require-directory": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", + "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==" + }, + "require-main-filename": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-2.0.0.tgz", + "integrity": "sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==" + }, + "resolve": { + "version": "1.22.1", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.1.tgz", + "integrity": "sha512-nBpuuYuY5jFsli/JIs1oldw6fOQCBioohqWZg/2hiaOybXOft4lonv85uDOKXdf8rhyK159cxU5cDcK/NKk8zw==", + "requires": { + "is-core-module": "^2.9.0", + "path-parse": "^1.0.7", + "supports-preserve-symlinks-flag": "^1.0.0" + } + }, + "reusify": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", + "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==" + }, + "rimraf": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", + "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", + "requires": { + "glob": "^7.1.3" + }, + "dependencies": { + "brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "requires": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "requires": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + } + }, + "minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "requires": { + "brace-expansion": "^1.1.7" + } + } + } + }, + "run-parallel": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", + "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", + "requires": { + "queue-microtask": "^1.2.2" + } + }, + "safe-buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==" + }, + "safer-buffer": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" + }, + "saslprep": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/saslprep/-/saslprep-1.0.3.tgz", + "integrity": "sha512-/MY/PEMbk2SuY5sScONwhUDsV2p77Znkb/q3nSVstq/yQzYJOH/Azh29p9oJLsl3LnQwSvZDKagDGBsBwSooag==", + "optional": true, + "requires": { + "sparse-bitfield": "^3.0.3" + } + }, + "sax": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/sax/-/sax-1.2.4.tgz", + "integrity": "sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==" + }, + "semver": { + "version": "7.3.8", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.8.tgz", + "integrity": "sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A==", + "requires": { + "lru-cache": "^6.0.0" + } + }, + "send": { + "version": "0.18.0", + "resolved": "https://registry.npmjs.org/send/-/send-0.18.0.tgz", + "integrity": "sha512-qqWzuOjSFOuqPjFe4NOsMLafToQQwBSOEpS+FwEt3A2V3vKubTquT3vmLTQpFgMXp8AlFWFuP1qKaJZOtPpVXg==", + "requires": { + "debug": "2.6.9", + "depd": "2.0.0", + "destroy": "1.2.0", + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "etag": "~1.8.1", + "fresh": "0.5.2", + "http-errors": "2.0.0", + "mime": "1.6.0", + "ms": "2.1.3", + "on-finished": "2.4.1", + "range-parser": "~1.2.1", + "statuses": "2.0.1" + }, + "dependencies": { + "ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==" + } + } + }, + "serve-static": { + "version": "1.15.0", + "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.15.0.tgz", + "integrity": "sha512-XGuRDNjXUijsUL0vl6nSD7cwURuzEgglbOaFuZM9g3kwDXOWVTck0jLzjPzGD+TazWbboZYu52/9/XPdUgne9g==", + "requires": { + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "parseurl": "~1.3.3", + "send": "0.18.0" + } + }, + "set-blocking": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", + "integrity": "sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==" + }, + "setprototypeof": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz", + "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==" + }, + "shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "dev": true, + "requires": { + "shebang-regex": "^3.0.0" + } + }, + "shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "dev": true + }, + "side-channel": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz", + "integrity": "sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==", + "requires": { + "call-bind": "^1.0.0", + "get-intrinsic": "^1.0.2", + "object-inspect": "^1.9.0" + } + }, + "sift": { + "version": "16.0.1", + "resolved": "https://registry.npmjs.org/sift/-/sift-16.0.1.tgz", + "integrity": "sha512-Wv6BjQ5zbhW7VFefWusVP33T/EM0vYikCaQ2qR8yULbsilAT8/wQaXvuQ3ptGLpoKx+lihJE3y2UTgKDyyNHZQ==" + }, + "signal-exit": { + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", + "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==" + }, + "simple-swizzle": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/simple-swizzle/-/simple-swizzle-0.2.2.tgz", + "integrity": "sha512-JA//kQgZtbuY83m+xT+tXJkmJncGMTFT+C+g2h2R9uxkYIrE2yy9sgmcLhCnw57/WSD+Eh3J97FPEDFnbXnDUg==", + "requires": { + "is-arrayish": "^0.3.1" + } + }, + "simple-update-notifier": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/simple-update-notifier/-/simple-update-notifier-1.1.0.tgz", + "integrity": "sha512-VpsrsJSUcJEseSbMHkrsrAVSdvVS5I96Qo1QAQ4FxQ9wXFcB+pjj7FB7/us9+GcgfW4ziHtYMc1J0PLczb55mg==", + "dev": true, + "requires": { + "semver": "~7.0.0" + }, + "dependencies": { + "semver": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.0.0.tgz", + "integrity": "sha512-+GB6zVA9LWh6zovYQLALHwv5rb2PHGlJi3lfiqIHxR0uuwCgefcOJc59v9fv1w8GbStwxuuqqAjI9NMAOOgq1A==", + "dev": true + } + } + }, + "smart-buffer": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/smart-buffer/-/smart-buffer-4.2.0.tgz", + "integrity": "sha512-94hK0Hh8rPqQl2xXc3HsaBoOXKV20MToPkcXvwbISWLEs+64sBq5kFgn2kJDHb1Pry9yrP0dxrCI9RRci7RXKg==" + }, + "socks": { + "version": "2.7.1", + "resolved": "https://registry.npmjs.org/socks/-/socks-2.7.1.tgz", + "integrity": "sha512-7maUZy1N7uo6+WVEX6psASxtNlKaNVMlGQKkG/63nEDdLOWNbiUMoLK7X4uYoLhQstau72mLgfEWcXcwsaHbYQ==", + "requires": { + "ip": "^2.0.0", + "smart-buffer": "^4.2.0" + } + }, + "source-map-js": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.0.2.tgz", + "integrity": "sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==" + }, + "sparse-bitfield": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/sparse-bitfield/-/sparse-bitfield-3.0.3.tgz", + "integrity": "sha512-kvzhi7vqKTfkh0PZU+2D2PIllw2ymqJKujUcyPMd9Y75Nv4nPbGJZXNhxsgdQab2BmlDct1YnfQCguEvHr7VsQ==", + "optional": true, + "requires": { + "memory-pager": "^1.0.2" + } + }, + "speakeasy": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/speakeasy/-/speakeasy-2.0.0.tgz", + "integrity": "sha512-lW2A2s5LKi8rwu77ewisuUOtlCydF/hmQSOJjpTqTj1gZLkNgTaYnyvfxy2WBr4T/h+9c4g8HIITfj83OkFQFw==", + "requires": { + "base32.js": "0.0.1" + } + }, + "statuses": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz", + "integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==" + }, + "streamsearch": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/streamsearch/-/streamsearch-1.1.0.tgz", + "integrity": "sha512-Mcc5wHehp9aXz1ax6bZUyY5afg9u2rv5cqQI3mRrYkGC8rW2hM02jWuwjtL++LS5qinSyhj2QfLyNsuc+VsExg==" + }, + "string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "requires": { + "safe-buffer": "~5.1.0" + }, + "dependencies": { + "safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" + } + } + }, + "string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "requires": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + } + }, + "strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "requires": { + "ansi-regex": "^5.0.1" + } + }, + "strnum": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/strnum/-/strnum-1.0.5.tgz", + "integrity": "sha512-J8bbNyKKXl5qYcR36TIO8W3mVGVHrmmxsd5PAItGkmyzwJvybiw2IVq5nqd0i4LSNSkB/sx9VHllbfFdr9k1JA==", + "optional": true + }, + "supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dev": true, + "requires": { + "has-flag": "^3.0.0" + } + }, + "supports-preserve-symlinks-flag": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", + "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==" + }, + "tailwindcss": { + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-3.2.4.tgz", + "integrity": "sha512-AhwtHCKMtR71JgeYDaswmZXhPcW9iuI9Sp2LvZPo9upDZ7231ZJ7eA9RaURbhpXGVlrjX4cFNlB4ieTetEb7hQ==", + "requires": { + "arg": "^5.0.2", + "chokidar": "^3.5.3", + "color-name": "^1.1.4", + "detective": "^5.2.1", + "didyoumean": "^1.2.2", + "dlv": "^1.1.3", + "fast-glob": "^3.2.12", + "glob-parent": "^6.0.2", + "is-glob": "^4.0.3", + "lilconfig": "^2.0.6", + "micromatch": "^4.0.5", + "normalize-path": "^3.0.0", + "object-hash": "^3.0.0", + "picocolors": "^1.0.0", + "postcss": "^8.4.18", + "postcss-import": "^14.1.0", + "postcss-js": "^4.0.0", + "postcss-load-config": "^3.1.4", + "postcss-nested": "6.0.0", + "postcss-selector-parser": "^6.0.10", + "postcss-value-parser": "^4.2.0", + "quick-lru": "^5.1.1", + "resolve": "^1.22.1" + }, + "dependencies": { + "glob-parent": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", + "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", + "requires": { + "is-glob": "^4.0.3" + } + } + } + }, + "tar": { + "version": "6.1.13", + "resolved": "https://registry.npmjs.org/tar/-/tar-6.1.13.tgz", + "integrity": "sha512-jdIBIN6LTIe2jqzay/2vtYLlBHa3JF42ot3h1dW8Q0PaAG4v8rm0cvpVePtau5C6OKXGGcgO9q2AMNSWxiLqKw==", + "requires": { + "chownr": "^2.0.0", + "fs-minipass": "^2.0.0", + "minipass": "^4.0.0", + "minizlib": "^2.1.1", + "mkdirp": "^1.0.3", + "yallist": "^4.0.0" + }, + "dependencies": { + "mkdirp": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", + "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==" + } + } + }, + "tdigest": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/tdigest/-/tdigest-0.1.2.tgz", + "integrity": "sha512-+G0LLgjjo9BZX2MfdvPfH+MKLCrxlXSYec5DaPYP1fe6Iyhf0/fSmJ0bFiZ1F8BT6cGXl2LpltQptzjXKWEkKA==", + "requires": { + "bintrees": "1.0.2" + } + }, + "to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "requires": { + "is-number": "^7.0.0" + } + }, + "toidentifier": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz", + "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==" + }, + "touch": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/touch/-/touch-3.1.0.tgz", + "integrity": "sha512-WBx8Uy5TLtOSRtIq+M03/sKDrXCLHxwDcquSP2c43Le03/9serjQBIztjRz6FkJez9D/hleyAXTBGLwwZUw9lA==", + "dev": true, + "requires": { + "nopt": "~1.0.10" + }, + "dependencies": { + "nopt": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/nopt/-/nopt-1.0.10.tgz", + "integrity": "sha512-NWmpvLSqUrgrAC9HCuxEvb+PSloHpqVu+FqcO4eeF2h5qYRhA7ev6KvelyQAKtegUbC6RypJnlEOhd8vloNKYg==", + "dev": true, + "requires": { + "abbrev": "1" + } + } + } + }, + "tr46": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-3.0.0.tgz", + "integrity": "sha512-l7FvfAHlcmulp8kr+flpQZmVwtu7nfRV7NZujtN0OqES8EL4O4e0qqzL0DC5gAvx/ZC/9lk6rhcUwYvkBnBnYA==", + "requires": { + "punycode": "^2.1.1" + } + }, + "tslib": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.0.tgz", + "integrity": "sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg==", + "optional": true + }, + "type-is": { + "version": "1.6.18", + "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz", + "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==", + "requires": { + "media-typer": "0.3.0", + "mime-types": "~2.1.24" + } + }, + "typedarray": { + "version": "0.0.6", + "resolved": "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz", + "integrity": "sha512-/aCDEGatGvZ2BIk+HmLf4ifCJFwvKFNb9/JeZPMulfgFracn9QFcAf5GO8B/mweUjSoblS5In0cWhqpfs/5PQA==" + }, + "uid-safe": { + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/uid-safe/-/uid-safe-2.1.5.tgz", + "integrity": "sha512-KPHm4VL5dDXKz01UuEd88Df+KzynaohSL9fBh096KWAxSKZQDI2uBrVqtvRM4rwrIrRRKsdLNML/lnaaVSRioA==", + "requires": { + "random-bytes": "~1.0.0" + } + }, + "ulid": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/ulid/-/ulid-2.3.0.tgz", + "integrity": "sha512-keqHubrlpvT6G2wH0OEfSW4mquYRcbe/J8NMmveoQOjUqmo+hXtO+ORCpWhdbZ7k72UtY61BL7haGxW6enBnjw==" + }, + "undefsafe": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/undefsafe/-/undefsafe-2.0.5.tgz", + "integrity": "sha512-WxONCrssBM8TSPRqN5EmsjVrsv4A8X12J4ArBiiayv3DyyG3ZlIg6yysuuSYdZsVz3TKcTg2fd//Ujd4CHV1iA==", + "dev": true + }, + "unpipe": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", + "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==" + }, + "update-browserslist-db": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.10.tgz", + "integrity": "sha512-OztqDenkfFkbSG+tRxBeAnCVPckDBcvibKd35yDONx6OU8N7sqgwc7rCbkJ/WcYtVRZ4ba68d6byhC21GFh7sQ==", + "peer": true, + "requires": { + "escalade": "^3.1.1", + "picocolors": "^1.0.0" + } + }, + "url-value-parser": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/url-value-parser/-/url-value-parser-2.2.0.tgz", + "integrity": "sha512-yIQdxJpgkPamPPAPuGdS7Q548rLhny42tg8d4vyTNzFqvOnwqrgHXvgehT09U7fwrzxi3RxCiXjoNUNnNOlQ8A==" + }, + "util-deprecate": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", + "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==" + }, + "utils-merge": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", + "integrity": "sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==" + }, + "uuid": { + "version": "8.3.2", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", + "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", + "optional": true + }, + "vary": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", + "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==" + }, + "web-streams-polyfill": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/web-streams-polyfill/-/web-streams-polyfill-3.2.1.tgz", + "integrity": "sha512-e0MO3wdXWKrLbL0DgGnUV7WHVuw9OUvL4hjgnPkIeEvESk74gAITi5G606JtZPp39cd8HA9VQzCIvA49LpPN5Q==" + }, + "webidl-conversions": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-7.0.0.tgz", + "integrity": "sha512-VwddBukDzu71offAQR975unBIGqfKZpM+8ZX6ySk8nYhVoo5CYaZyzt3YBvYtRtO+aoGlqxPg/B87NGVZ/fu6g==" + }, + "whatwg-url": { + "version": "11.0.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-11.0.0.tgz", + "integrity": "sha512-RKT8HExMpoYx4igMiVMY83lN6UeITKJlBQ+vR/8ZJ8OCdSiN3RwCq+9gH0+Xzj0+5IrM6i4j/6LuvzbZIQgEcQ==", + "requires": { + "tr46": "^3.0.0", + "webidl-conversions": "^7.0.0" + } + }, + "which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dev": true, + "requires": { + "isexe": "^2.0.0" + } + }, + "which-module": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.0.tgz", + "integrity": "sha512-B+enWhmw6cjfVC7kS8Pj9pCrKSc5txArRyaYGe088shv/FGWH+0Rjx/xPgtsWfsUtS27FkP697E4DDhgrgoc0Q==" + }, + "wide-align": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.5.tgz", + "integrity": "sha512-eDMORYaPNZ4sQIuuYPDHdQvf4gyCF9rEEV/yPxGfwPkRodwEgiMUUXTx/dex+Me0wxx53S+NgUHaP7y3MGlDmg==", + "requires": { + "string-width": "^1.0.2 || 2 || 3 || 4" + } + }, + "wrap-ansi": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", + "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==", + "requires": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + } + }, + "wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==" + }, + "xml-js": { + "version": "1.6.11", + "resolved": "https://registry.npmjs.org/xml-js/-/xml-js-1.6.11.tgz", + "integrity": "sha512-7rVi2KMfwfWFl+GpPg6m80IVMWXLRjO+PxTq7V2CDhoGak0wzYzFgUY2m4XJ47OGdXd8eLE8EmwfAmdjw7lC1g==", + "requires": { + "sax": "^1.2.4" + } + }, + "xss": { + "version": "1.0.14", + "resolved": "https://registry.npmjs.org/xss/-/xss-1.0.14.tgz", + "integrity": "sha512-og7TEJhXvn1a7kzZGQ7ETjdQVS2UfZyTlsEdDOqvQF7GoxNfY+0YLCzBy1kPdsDDx4QuNAonQPddpsn6Xl/7sw==", + "requires": { + "commander": "^2.20.3", + "cssfilter": "0.0.10" + } + }, + "xtend": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", + "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==" + }, + "y18n": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.3.tgz", + "integrity": "sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==" + }, + "yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" + }, + "yaml": { + "version": "1.10.2", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-1.10.2.tgz", + "integrity": "sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==" + }, + "yargs": { + "version": "15.4.1", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-15.4.1.tgz", + "integrity": "sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A==", + "requires": { + "cliui": "^6.0.0", + "decamelize": "^1.2.0", + "find-up": "^4.1.0", + "get-caller-file": "^2.0.1", + "require-directory": "^2.1.1", + "require-main-filename": "^2.0.0", + "set-blocking": "^2.0.0", + "string-width": "^4.2.0", + "which-module": "^2.0.0", + "y18n": "^4.0.0", + "yargs-parser": "^18.1.2" + } + }, + "yargs-parser": { + "version": "18.1.3", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-18.1.3.tgz", + "integrity": "sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==", + "requires": { + "camelcase": "^5.0.0", + "decamelize": "^1.2.0" + } + } + } +} diff --git a/package.json b/package.json new file mode 100644 index 0000000..d47414c --- /dev/null +++ b/package.json @@ -0,0 +1,56 @@ +{ + "name": "datastoreservice", + "version": "1.0.0", + "description": "", + "main": "index.js", + "scripts": { + "devStart": "cross-env PROTOCOL_HEADER=x-forwarded-proto HOST_HEADER=x-forwarded-host nodemon server.mjs", + "prod": "PROTOCOL_HEADER=x-forwarded-proto HOST_HEADER=x-forwarded-host pm2 start server.mjs", + "prodreload": "PROTOCOL_HEADER=x-forwarded-proto HOST_HEADER=x-forwarded-host pm2 reload server.mjs" + }, + "keywords": [], + "author": "", + "license": "ISC", + "dependencies": { + "@mfd/rbxdatastoreservice": "^2.3.10", + "@yaireo/relative-time": "^1.0.3", + "atob": "^2.1.2", + "bcrypt": "^5.0.1", + "body-parser": "^1.20.0", + "connect-flash": "^0.1.1", + "cookie-parser": "^1.4.6", + "cors": "^2.8.5", + "daisyui": "^2.24.2", + "dotenv": "^16.0.1", + "easy-soap-request": "^4.8.0", + "esbuild": "0.17.4", + "express": "^4.18.1", + "express-flash-message": "^2.1.0", + "express-prom-bundle": "^6.5.0", + "express-rate-limit": "^6.7.0", + "express-session": "^1.17.3", + "file-type-checker": "^1.0.4", + "get-port": "^6.1.2", + "get-port-please": "^2.6.1", + "helmet": "^5.1.1", + "jsonwebtoken": "^9.0.0", + "mongo-sanitize": "^1.1.0", + "mongoose": "^6.5.2", + "mongoose-unique-validator": "^3.1.0", + "multer": "^1.4.5-lts.1", + "node-fetch": "^3.2.10", + "png-validator": "^1.1.0", + "prom-client": "^14.1.0", + "qrcode": "^1.5.1", + "redis": "^4.6.5", + "redis-om": "^0.4.0-beta.3", + "req-flash": "^0.0.3", + "speakeasy": "^2.0.0", + "xml-js": "^1.6.11", + "xss": "^1.0.13" + }, + "devDependencies": { + "cross-env": "^7.0.3", + "nodemon": "^2.0.19" + } +} diff --git a/rcctalk.js b/rcctalk.js new file mode 100644 index 0000000..b6dd4b1 --- /dev/null +++ b/rcctalk.js @@ -0,0 +1,320 @@ +const fetch = (...args) => import('node-fetch').then(({default: fetch}) => fetch(...args)); +let controller = new AbortController(); +require('dotenv').config() +const RCC_HOST = process.env.RCC_HOST + + const url = 'http://'+RCC_HOST+':64989'; // change this to rcc soap + +var convert = require('xml-js'); +const sampleHeaders = { + 'Content-Type': 'text/xml;charset=UTF-8', +}; + + + +async function OpenJob(jobid,script,expiration){ + return new Promise(async (resolve, reject) => { + // this is all boilerplate because soap sucks +var xml = { + _declaration: { _attributes: { version: '1.0', encoding: 'UTF-8' } }, + 'SOAP-ENV:Envelope': { + _attributes: { + 'xmlns:SOAP-ENV': 'http://schemas.xmlsoap.org/soap/envelope/', + 'xmlns:ns1': 'http://roblox.com/' + }, + 'SOAP-ENV:Body': { + 'ns1:OpenJobEx': { + 'ns1:job': { + 'ns1:id': { _text: 'StringTest11' }, + 'ns1:expirationInSeconds': { _text: '10' }, + 'ns1:category': { _text: '0' }, + 'ns1:cores': { _text: '1' } + }, + 'ns1:script': { + 'ns1:name': { _text: 'StringTest11-Script' }, + 'ns1:script': { + _text: 'print("Recieved job with ID " .. game.JobId)\r\n' + }, + 'ns1:arguments': {} + } + } + } + } + } +xml['SOAP-ENV:Envelope']['SOAP-ENV:Body']['ns1:OpenJobEx']['ns1:job']['ns1:id']._text = jobid +xml['SOAP-ENV:Envelope']['SOAP-ENV:Body']['ns1:OpenJobEx']['ns1:job']['ns1:expirationInSeconds']._text = expiration +if (!expiration) { + xml['SOAP-ENV:Envelope']['SOAP-ENV:Body']['ns1:OpenJobEx']['ns1:job']['ns1:expirationInSeconds']._text = "60" +} +xml['SOAP-ENV:Envelope']['SOAP-ENV:Body']['ns1:OpenJobEx']['ns1:script']['ns1:script']._text = script +const body = convert.js2xml(xml, { compact: true, spaces: 4 }) + + try { + const result = await fetch(url, { method: 'POST', body }) + const data = await result.text() + const convertedData = convert.xml2js(data, { compact: true, spaces: 4 }) + return resolve( + convertedData + ) + } catch (error) { + return reject(error) + } + }) +} + +async function GetAllJobs() { + return new Promise(async (resolve, reject) => { + const xmlData = (xml = { + _declaration: { + _attributes: { version: '1.0', encoding: 'UTF - 8' }, + }, + 'SOAP-ENV:Envelope': { + _attributes: { + 'xmlns:SOAP-ENV': 'http://schemas.xmlsoap.org/soap/envelope/', + 'xmlns:SOAP-ENC': 'http://schemas.xmlsoap.org/soap/encoding/', + 'xmlns:xsi': 'http://www.w3.org/2001/XMLSchema-instance', + 'xmlns:xsd': 'http://www.w3.org/2001/XMLSchema', + 'xmlns:ns2': 'http://roblox.com/RCCServiceSoap', + 'xmlns:ns1': 'http://roblox.com/', + 'xmlns:ns3': 'http://roblox.com/RCCServiceSoap12', + }, + 'SOAP-ENV:Body': { 'ns1:GetAllJobsEx': {} }, + }, + }) + + const body = convert.js2xml(xmlData, { compact: true, spaces: 4 }) + + try { + const result = await fetch(url, { method: 'POST', body }) + const data = await result.text() + const convertedData = convert.xml2js(data, { compact: true, spaces: 4 }) + return resolve( + convertedData['SOAP-ENV:Envelope']['SOAP-ENV:Body']['ns1:GetAllJobsExResponse']['ns1:GetAllJobsExResult'] + ) + } catch (error) { + return reject(error) + } + }) +} + + + +async function Execute(jobid,script) { + return new Promise(async (resolve, reject) => { + var xml = { + _declaration: { _attributes: { version: '1.0', encoding: 'UTF - 8' } }, + 'SOAP-ENV:Envelope': { + _attributes: { + 'xmlns:SOAP-ENV': 'http://schemas.xmlsoap.org/soap/envelope/', + 'xmlns:SOAP-ENC': 'http://schemas.xmlsoap.org/soap/encoding/', + 'xmlns:xsi': 'http://www.w3.org/2001/XMLSchema-instance', + 'xmlns:xsd': 'http://www.w3.org/2001/XMLSchema', + 'xmlns:ns2': 'http://roblox.com/RCCServiceSoap', + 'xmlns:ns1': 'http://roblox.com/', + 'xmlns:ns3': 'http://roblox.com/RCCServiceSoap12' + }, + 'SOAP-ENV:Body': { + 'ns1:ExecuteEx': { + 'ns1:jobID': { _text: 'Test' }, + 'ns1:script': { + 'ns1:name': { _text: 'Script' }, + 'ns1:script': { _text: 'print("no")' }, + 'ns1:arguments': { _text: '' } + } + } + } + } + } +xml['SOAP-ENV:Envelope']['SOAP-ENV:Body']['ns1:ExecuteEx']['ns1:jobID']._text = jobid +xml['SOAP-ENV:Envelope']['SOAP-ENV:Body']['ns1:ExecuteEx']['ns1:script']['ns1:script']._text = script + const body = convert.js2xml(xml, { compact: true, spaces: 4 }) + + try { + const result = await fetch(url, { method: 'POST', body }) + const data = await result.text() + const convertedData = convert.xml2js(data, { compact: true, spaces: 4 }) + return resolve( + convertedData + ) + } catch (error) { + return reject(error) + } + }) + +} +async function CloseJob(jobid) { + return new Promise(async (resolve, reject) => { + var xml = { + _declaration: { _attributes: { version: '1.0', encoding: 'UTF - 8' } }, + 'SOAP-ENV:Envelope': { + _attributes: { + 'xmlns:SOAP-ENV': 'http://schemas.xmlsoap.org/soap/envelope/', + 'xmlns:SOAP-ENC': 'http://schemas.xmlsoap.org/soap/encoding/', + 'xmlns:xsi': 'http://www.w3.org/2001/XMLSchema-instance', + 'xmlns:xsd': 'http://www.w3.org/2001/XMLSchema', + 'xmlns:ns2': 'http://roblox.com/RCCServiceSoap', + 'xmlns:ns1': 'http://roblox.com/', + 'xmlns:ns3': 'http://roblox.com/RCCServiceSoap12' + }, + 'SOAP-ENV:Body': { + 'ns1:CloseJob': { + 'ns1:jobID': { _text: 'Test' } + } + } + } + } + xml['SOAP-ENV:Envelope']['SOAP-ENV:Body']['ns1:CloseJob']['ns1:jobID']._text = jobid + const body = convert.js2xml(xml, { compact: true, spaces: 4 }) + + try { + const result = await fetch(url, { method: 'POST', body }) + const data = await result.text() + const convertedData = convert.xml2js(data, { compact: true, spaces: 4 }) + return resolve( + convertedData + ) + } catch (error) { + return reject(error) + } + }) +} + + +async function RenewLease(jobid,expiration) { + return new Promise(async (resolve, reject) => { + var xml = { + _declaration: { _attributes: { version: '1.0', encoding: 'UTF-8' } }, + 'SOAP-ENV:Envelope': { + _attributes: { + 'xmlns:SOAP-ENV': 'http://schemas.xmlsoap.org/soap/envelope/', + 'xmlns:ns1': 'http://roblox.com/', + 'xmlns:xsi': 'http://www.w3.org/2001/XMLSchema-instance' + }, + 'SOAP-ENV:Body': { + 'ns1:RenewLease': { + 'ns1:jobID': { + _attributes: { 'xsi:type': 'ns1:Job' }, + 'ns1:id': { _text: 'StringTest11' }, + 'ns1:expirationInSeconds': { _text: '10' }, + 'ns1:category': { _text: '0' }, + 'ns1:cores': { _text: '1' } + }, + 'ns1:expirationInSeconds': { _text: '100' } + } + } + } + } + xml['SOAP-ENV:Envelope']['SOAP-ENV:Body']['ns1:RenewLease']['ns1:jobID']['ns1:id']._text = jobid + xml['SOAP-ENV:Envelope']['SOAP-ENV:Body']['ns1:RenewLease']['ns1:expirationInSeconds']._text = expiration + const body = convert.js2xml(xml, { compact: true, spaces: 4 }) + + try { + const result = await fetch(url, { method: 'POST', body }) + const data = await result.text() + const convertedData = convert.xml2js(data, { compact: true, spaces: 4 }) + return resolve( + convertedData + ) + } catch (error) { + return reject(error) + } + }) +} + +async function GetExpiration(jobid){ + return new Promise(async (resolve, reject) => { + var xml = { + _declaration: { _attributes: { version: '1.0', encoding: 'UTF-8' } }, + 'SOAP-ENV:Envelope': { + _attributes: { + 'xmlns:SOAP-ENV': 'http://schemas.xmlsoap.org/soap/envelope/', + 'xmlns:ns1': 'http://roblox.com/' + }, + 'SOAP-ENV:Body': { 'ns1:GetExpiration': { 'ns1:jobID': { _text: 'Test' } } } + } + } + xml['SOAP-ENV:Envelope']['SOAP-ENV:Body']['ns1:GetExpiration']['ns1:jobID']._text = jobid + const body = convert.js2xml(xml, { compact: true, spaces: 4 }) + + try { + const result = await fetch(url, { method: 'POST', body }) + const data = await result.text() + const convertedData = convert.xml2js(data, { compact: true, spaces: 4 }) + return resolve( + convertedData + ) + } catch (error) { + return reject(error) + } + }) +} +//var gameservertxt = fs.readFileSync('actualgameserver.txt','utf-8') +//gameservertxt = gameservertxt.replace('function start(placeId, port, url)','function start(1111, port)') + +async function CloseExpiredJobs(){ + return new Promise(async (resolve, reject) => { + var xml = xml = { + _declaration: { _attributes: { version: '1.0', encoding: 'UTF-8' } }, + 'SOAP-ENV:Envelope': { + _attributes: { + 'xmlns:SOAP-ENV': 'http://schemas.xmlsoap.org/soap/envelope/', + 'xmlns:ns1': 'http://roblox.com/' + }, + 'SOAP-ENV:Body': { 'ns1:CloseExpiredJobs': {} } + } + } + + const body = convert.js2xml(xml, { compact: true, spaces: 4 }) + + try { + const result = await fetch(url, { method: 'POST', body }) + const data = await result.text() + const convertedData = convert.xml2js(data, { compact: true, spaces: 4 }) + return resolve( + convertedData + ) + } catch (error) { + return reject(error) + } + }) +} + +async function CloseAllJobs(){ + return new Promise(async (resolve, reject) => { + var xml = xml = { + _declaration: { _attributes: { version: '1.0', encoding: 'UTF-8' } }, + 'SOAP-ENV:Envelope': { + _attributes: { + 'xmlns:SOAP-ENV': 'http://schemas.xmlsoap.org/soap/envelope/', + 'xmlns:ns1': 'http://roblox.com/' + }, + 'SOAP-ENV:Body': { 'ns1:CloseAllJobs': {} } + } + } + + const body = convert.js2xml(xml, { compact: true, spaces: 4 }) + + try { + const result = await fetch(url, { method: 'POST', body }) + const data = await result.text() + const convertedData = convert.xml2js(data, { compact: true, spaces: 4 }) + return resolve( + convertedData + ) + } catch (error) { + return reject(error) + } + }) +} + + +module.exports = {OpenJob, GetAllJobs,Execute,CloseJob,RenewLease,GetExpiration,CloseExpiredJobs,CloseAllJobs} + + + + + + + + + diff --git a/rcctalk2018.js b/rcctalk2018.js new file mode 100644 index 0000000..1c5ef18 --- /dev/null +++ b/rcctalk2018.js @@ -0,0 +1,300 @@ +const fetch = (...args) => import('node-fetch').then(({default: fetch}) => fetch(...args)); +let controller = new AbortController(); +require('dotenv').config() +const RCC_HOST = process.env.RCC_HOST +var convert = require('xml-js'); + + let url = 'http://'+RCC_HOST+':8000'; // change this to rcc soap + +async function OpenGame(jobid,port,ip,placeid,creatorid){ + return new Promise(async (resolve, reject) => { + let json = {"Mode":"GameServer","GameId":"game1","Settings":{"IsRobloxPlace":false,"PlaceId":1,"CreatorId":1,"GameId":"00000000-0000-0000-0000-000000000132","GsmInterval":50,"MaxPlayers":100,"MaxGameInstances":52,"ApiKey":"egg","GameCode":"AAAAAAAAAAAAAA-a","PreferredPlayerCapacity":10,"DatacenterId":1,"PlaceVisitAccessKey":"rbx_evt_ftp","UniverseId":13058,"PlaceFetchUrl":"https://mete0r.xyz/asset?id=11","MatchmakingContextId":1,"CreatorType":"User","PlaceVersion":123,"BaseUrl":"mete0r.xyz","MachineAddress":"localhost","JobId":"game1","PreferredPort":53640}} + json.GameId = jobid + json.Settings.PreferredPort = port + json.Settings.MachineAddress = ip + json.Settings.JobId = jobid + json.Settings.PlaceId = parseFloat(placeid) + json.Settings.UniverseId = json.Settings.PlaceId + json.Settings.CreatorId = creatorid + json.Settings.GameId = jobid + + let xml = ` + + + + + ${jobid} + 60 + 2 + 1 + + + game1 + ${JSON.stringify(json)} + + + + ` + + +//console.log(encodeURIComponent(JSON.stringify(json))) + try { + const result = await fetch(url+"/opengame/"+jobid+"/"+encodeURIComponent(JSON.stringify(json))) + const data = await result.text() + return resolve( + data + ) + } catch (error) { + return reject(error) + } + }) +} + +async function OpenGame2020(jobid,port,ip,placeid,creatorid){ + return new Promise(async (resolve, reject) => { +let json = {"Mode":"GameServer","GameId":"game1","Settings":{"IsRobloxPlace":false,"PlaceId":1,"CreatorId":1,"GameId":"00000000-0000-0000-0000-000000000132","GsmInterval":50,"MaxPlayers":100,"MaxGameInstances":52,"ApiKey":"egg","GameCode":"AAAAAAAAAAAAAA-a","PreferredPlayerCapacity":10,"DatacenterId":1,"PlaceVisitAccessKey":"rbx_evt_ftp","UniverseId":13058,"PlaceFetchUrl":"https://mete0r.xyz/asset?id=11","MatchmakingContextId":1,"CreatorType":"User","PlaceVersion":123,"BaseUrl":"mete0r.xyz","MachineAddress":"localhost","JobId":"game1","PreferredPort":53640}} + json.GameId = jobid + json.Settings.PreferredPort = port + json.Settings.MachineAddress = ip + json.Settings.JobId = jobid + json.Settings.PlaceId = parseFloat(placeid) + json.Settings.UniverseId = json.Settings.PlaceId + json.Settings.CreatorId = creatorid + json.Settings.GameId = jobid + json.Settings.PlaceFetchUrl = "https://mete0r.xyz/asset?id="+parseFloat(placeid) + + let xml = ` + + + + + ${jobid} + 60 + 2 + 1 + + + game1 + ${JSON.stringify(json)} + + + + ` + + +//console.log(encodeURIComponent(JSON.stringify(json))) + try { + const result = await fetch(url+"/opengame2020/"+jobid+"/"+encodeURIComponent(JSON.stringify(json))) + const data = await result.text() + return resolve( + data + ) + } catch (error) { + return reject(error) + } + }) +} + +async function CloseJob(jobid) { + return new Promise(async (resolve, reject) => { + var xml = { + _declaration: { _attributes: { version: '1.0', encoding: 'UTF - 8' } }, + 'SOAP-ENV:Envelope': { + _attributes: { + 'xmlns:SOAP-ENV': 'http://schemas.xmlsoap.org/soap/envelope/', + 'xmlns:SOAP-ENC': 'http://schemas.xmlsoap.org/soap/encoding/', + 'xmlns:xsi': 'http://www.w3.org/2001/XMLSchema-instance', + 'xmlns:xsd': 'http://www.w3.org/2001/XMLSchema', + 'xmlns:ns2': 'http://roblox.com/RCCServiceSoap', + 'xmlns:ns1': 'http://roblox.com/', + 'xmlns:ns3': 'http://roblox.com/RCCServiceSoap12' + }, + 'SOAP-ENV:Body': { + 'ns1:CloseJob': { + 'ns1:jobID': { _text: 'Test' } + } + } + } + } + xml['SOAP-ENV:Envelope']['SOAP-ENV:Body']['ns1:CloseJob']['ns1:jobID']._text = jobid + const body = convert.js2xml(xml, { compact: true, spaces: 4 }) + + try { + const result = await fetch(url+"/closejob/"+jobid) + const data = await result.text() + return resolve( + data + ) + } catch (error) { + return reject(error) + } + }) +} + +async function OpenRender(userid,closeup) { + return new Promise(async (resolve, reject) => { + try { + const result = await fetch(url+"/openrender/"+userid+"/"+closeup) + const data = await result.text() + //console.log(data) + if (data === '{"status": "error","error":"Already started"}'){ + return resolve( + JSON.parse(data) + ) + } + const convertedData = convert.xml2js(data, { compact: true, spaces: 4 }) + return resolve( + convertedData + ) + } catch (error) { + return reject(error) + } + }) +} + +async function OpenRenderAsset(assetid,type) { + return new Promise(async (resolve, reject) => { + try { + const result = await fetch(url+"/openrenderasset/"+assetid+"/"+type) + const data = await result.text() + //console.log(data) + if (data === '{"status": "error","error":"Already started"}'){ + return resolve( + JSON.parse(data) + ) + } + const convertedData = convert.xml2js(data, { compact: true, spaces: 4 }) + return resolve( + convertedData + ) + } catch (error) { + return reject(error) + } + }) +} + +async function lol2(){ + const lol = await OpenRender(0) + console.log(lol['SOAP-ENV:Envelope']['SOAP-ENV:Body']['ns1:OpenJobResponse']['ns1:OpenJobResult'][0]['ns1:value']._text) +} + +async function RenewLease(jobid,expiration) { + return new Promise(async (resolve, reject) => { + var xml = { + _declaration: { _attributes: { version: '1.0', encoding: 'UTF-8' } }, + 'SOAP-ENV:Envelope': { + _attributes: { + 'xmlns:SOAP-ENV': 'http://schemas.xmlsoap.org/soap/envelope/', + 'xmlns:ns1': 'http://roblox.com/', + 'xmlns:xsi': 'http://www.w3.org/2001/XMLSchema-instance' + }, + 'SOAP-ENV:Body': { + 'ns1:RenewLease': { + 'ns1:jobID': { _text: 'Test' }, + 'ns1:expirationInSeconds': { _text: '100' } + } + } + } + } + xml['SOAP-ENV:Envelope']['SOAP-ENV:Body']['ns1:RenewLease']['ns1:jobID']._text = jobid + xml['SOAP-ENV:Envelope']['SOAP-ENV:Body']['ns1:RenewLease']['ns1:expirationInSeconds']._text = expiration + const body = convert.js2xml(xml, { compact: true, spaces: 4 }) + + try { + const result = await fetch(url+"/renewlease/"+jobid+"/"+expiration) + const data = await result.text() + return resolve( + data + ) + } catch (error) { + return reject(error) + } + }) +} + +async function Execute(jobid,json) { + return new Promise(async (resolve, reject) => { + try { + const result = await fetch(url+"/executejson/"+jobid+"/"+encodeURIComponent(JSON.stringify(json))) + const data = await result.text() + return resolve( + data + ) + } catch (error) { + return reject(error) + } + }) +} + +async function GetAllJobs() { + return new Promise(async (resolve, reject) => { + const xmlData = (xml = { + _declaration: { + _attributes: { version: '1.0', encoding: 'UTF - 8' }, + }, + 'SOAP-ENV:Envelope': { + _attributes: { + 'xmlns:SOAP-ENV': 'http://schemas.xmlsoap.org/soap/envelope/', + 'xmlns:SOAP-ENC': 'http://schemas.xmlsoap.org/soap/encoding/', + 'xmlns:xsi': 'http://www.w3.org/2001/XMLSchema-instance', + 'xmlns:xsd': 'http://www.w3.org/2001/XMLSchema', + 'xmlns:ns2': 'http://roblox.com/RCCServiceSoap', + 'xmlns:ns1': 'http://roblox.com/', + 'xmlns:ns3': 'http://roblox.com/RCCServiceSoap12', + }, + 'SOAP-ENV:Body': { 'ns1:GetAllJobsEx': {} }, + }, + }) + + const body = convert.js2xml(xmlData, { compact: true, spaces: 4 }) + + try { + const result = await fetch(url, { method: 'POST', body }) + const data = await result.text() + const convertedData = convert.xml2js(data, { compact: true, spaces: 4 }) + return resolve( + convertedData['SOAP-ENV:Envelope']['SOAP-ENV:Body']['ns1:GetAllJobsExResponse']['ns1:GetAllJobsExResult'] + ) + } catch (error) { + return reject(error) + } + }) +} + +//RenewLease('game2',"69530318916789546987353800") +async function lol(){ +let res = await GetAllJobs() +//console.dir(res,{ depth: null }) +let exists = false +if (res != "{}"){ + if (Array.isArray(res['ns1:Job']) === false){ + console.log('asd') + //console.log(res['ns1:Job']['ns1:id']._text) + if (res['ns1:Job']['ns1:id']._text === 'game2'){ + exists = true + } + }else{ + res['ns1:Job'].forEach(element => { + if (element['ns1:id']?._text === 'game2'){ + exists = true + } + }) + } + + +} +console.log(exists) +} +//lol() +//GetAllJobs() +//OpenGame('game2','3333','127.0.0.1','2') +module.exports = {OpenGame,CloseJob,RenewLease,GetAllJobs,OpenRender,OpenRenderAsset,OpenGame2020,Execute} + + + + + + + + + diff --git a/routes/2018/game.js b/routes/2018/game.js new file mode 100644 index 0000000..3a0b752 --- /dev/null +++ b/routes/2018/game.js @@ -0,0 +1,110 @@ +const express = require("express") +const router = express.Router() +const { requireAuth } = require('../../middleware/authmiddlewaregame') +const crypto = require('crypto'); +const fs = require('fs') +const key = fs.readFileSync('DefaultPrivateKey.pem') +const { getPort, checkPort, getRandomPort, waitForPort } = require('get-port-please') +const RCC_HOST = process.env.RCC_HOST +var sanitize = require('mongo-sanitize'); +const games = require('./../../model/games.js') +const signatures = require("./../signatures.js") +const rcc = require('../../model/rcc2018.js') +const rcctalk = require('../../rcctalk2018') +const User = require('../../model/user.js') + +function sleep(ms) { + return new Promise((resolve) => { + setTimeout(resolve, ms); + }); + } + const _2018placelauncher = async(req,res,next) => { + var enabled = req.config + if (enabled.GamesEnabled === false){ + return res.json({status:"error",error:"Games are disabled bad boy"}) + } + var joinJson = {"ClientPort":0,"MachineAddress":"localhost","ServerPort":25564,"PingUrl":"","PingInterval":120,"UserName":"default","SeleniumTestMode":false,"UserId":0,"SuperSafeChat":false,"CharacterAppearance":"http://shitncumblox.gq/game/charapp?name=default","ClientTicket":"","GameId":1,"PlaceId":1818,"MeasurementUrl":"","WaitingForCharacterGuid":"cad99b30-7983-434b-b24c-eac12595e5fd","BaseUrl":"http://www.mete0r.xyz/","ChatStyle":"ClassicAndBubble","VendorId":0,"ScreenShotInfo":"","VideoInfo":"GamesROBLOX, video, free game, online virtual world","CreatorId":0,"CreatorTypeEnum":"User","MembershipType":"None","AccountAge":365,"CookieStoreFirstTimePlayKey":"rbx_evt_ftp","CookieStoreFiveMinutePlayKey":"rbx_evt_fmp","CookieStoreEnabled":true,"IsRobloxPlace":false,"GenerateTeleportJoin":false,"IsUnknownOrUnder13":false,"SessionId":"c25fd620-bbaa-4fb2-b022-3f053cdd1abd|00000000-0000-0000-0000-000000000000|0|204.236.226.210|8|2016-08-17T01:05:05.7115837Z|0|null|null|null|null","DataCenterId":0,"UniverseId":0,"BrowserTrackerId":0,"UsePortraitMode":false,"FollowUserId":0,"CharacterAppearanceId":1} + if (!req.query.name && !req.query.placeId && !req.query.placeid){ + return res.json({status:"error",error:"no placeid bad"}) + } + if (req.userdocument.gamejoin2018){ + return res.json({"jobId":"Test","status":2,"joinScriptUrl":"http://mete0r.xyz/game/join.ashx?ver=2018&auth="+req.query.auth??req.cookies.jwt,"authenticationUrl":"http://mete0r.xyz/Login/Negotiate.ashx","authenticationTicket":"SomeTicketThatDosentCrash","message":""}) + } + var sanitizedplaceid = sanitize(req.query.name??req.query.placeId??req.query.placeid) + const game = await games.findOne({idofgame: sanitizedplaceid}).lean() + if (!game){ + return res.json({status:"error",error:"that game doesn't exist!"}) + } + if (game.version != "2018"){ + return next() + } + let instance = await rcc.findOne({PlaceId: sanitizedplaceid}).lean() + if (instance && instance.Status === 2){ + + + // if an rcc instance already exists we don't need to create a new one so we will just drag them into the existing game + joinJson.UserName = req.userdocument.username + joinJson.UserId = req.userdocument.userid + joinJson.CharacterAppearance = "http://mete0r.xyz/v1.1/avatar-fetch?userId" + req.userdocument.userid + joinJson.MachineAddress = RCC_HOST // need to put rcc host here lol + joinJson.ServerPort = instance.Port + joinJson.PlaceId = instance.PlaceId + joinJson.GameId = sanitizedplaceid + joinJson.CharacterAppearanceId = req.userdocument.userid + joinJson.MembershipType = req.userdocument.membership + joinJson.CreatorId = game.useridofowner + joinJson.SessionId = req.query.auth??req.cookies.jwt + + const timestamp = Date.now() + joinJson.ClientTicket = timestamp+";" // timestamp + //create signature 1 + const sign1 = crypto.createSign('SHA1'); + sign1.update(`${req.userdocument.userid}\n`/*userid*/+`${req.userdocument.username}\n`/*username*/+`http://mete0r.xyz/v1.1/avatar-fetch?userId=${req.userdocument.userid}\n`/*charapp*/+`game${sanitizedplaceid}\n`/*jobid*/+ timestamp/*timestamp*/) + var signature1 = sign1.sign(key, "base64") + joinJson.ClientTicket += signature1 + ";" + + //create signature 2 + const sign2 = crypto.createSign('SHA1'); + sign2.update(`${req.userdocument.userid}\n`/*userid*/+`game${sanitizedplaceid}\n`/*jobid*/+ timestamp/*timestamp*/) + var signature2 = sign2.sign(key, "base64") + joinJson.ClientTicket += signature2 + + req.userdocument.gamejoin2018 = JSON.stringify(joinJson) + req.userdocument.markModified('gamejoin2018') + await req.userdocument.save() + var joinScriptJson = {"jobId":"Test","status":2,"joinScriptUrl":"http://mete0r.xyz/game/join.ashx?ver=2018&auth="+joinJson.SessionId,"authenticationUrl":"http://mete0r.xyz/Login/Negotiate.ashx","authenticationTicket":"SomeTicketThatDosentCrash","message":""} + + + return res.send(JSON.stringify(joinScriptJson)) + } + if (instance && instance.Status === 1){ + var joinScriptJson = {"jobId":"Test","status":1,"joinScriptUrl":"http://mete0r.xyz/game/join.ashx?ver=2018&auth="+joinJson.SessionId,"authenticationUrl":"http://mete0r.xyz/Login/Negotiate.ashx","authenticationTicket":"SomeTicketThatDosentCrash","message":""} + return res.send(JSON.stringify(joinScriptJson)) + } + + + var port = await getPort({random: true}) + // launch job + rcctalk.OpenGame("game"+sanitizedplaceid,port,RCC_HOST,sanitizedplaceid,game.useridofowner) + //console.dir(response,{ depth: null }) + //console.dir(response,{ depth: null }) + + await rcc.create({ + PlaceId: sanitizedplaceid, + Port: port, + Status: 1 // 1 means loading + }) + + //console.log(newrenderscript) + + var joinScriptJson = {"jobId":"Test","status":1,"joinScriptUrl":"http://mete0r.xyz/game/join.ashx?ver=2020&auth="+joinJson.SessionId,"authenticationUrl":"http://mete0r.xyz/Login/Negotiate.ashx","authenticationTicket":"SomeTicketThatDosentCrash","message":""} + return res.send(JSON.stringify(joinScriptJson)) + + } + +router.all("/2018/join",requireAuth,_2018placelauncher,async (req, res) => { + return res.json({status:"error",error:"Version different than client requested."}) +}) + +//rcctalk.CloseJob('game2') +module.exports = {router: router, _2018placelauncher:_2018placelauncher} \ No newline at end of file diff --git a/routes/2020/game.js b/routes/2020/game.js new file mode 100644 index 0000000..d374c60 --- /dev/null +++ b/routes/2020/game.js @@ -0,0 +1,207 @@ +const express = require("express") +const router = express.Router() +const { requireAuth } = require('../../middleware/authmiddlewaregame') +const crypto = require('crypto'); +const fs = require('fs') +const key = fs.readFileSync('PrivateKey2020.txt') +const { getPort, checkPort, getRandomPort, waitForPort } = require('get-port-please') +const RCC_HOST = process.env.RCC_HOST +var sanitize = require('mongo-sanitize'); +const games = require('./../../model/games.js') +const signatures = require("./../signatures.js") +const rcc = require('../../model/rcc2020.js') +const rcctalk = require('../../rcctalk2018') +const User = require('../../model/user.js') +const bodyParser = require('body-parser') +router.use(bodyParser.json()) + +function sleep(ms) { + return new Promise((resolve) => { + setTimeout(resolve, ms); + }); + } + +const _2020placelauncher = async(req,res,next) => { + var enabled = req.config + if (enabled.GamesEnabled === false){ + return res.json({status:"error",error:"Games are disabled bad boy"}) + } + if (req.headers?.['user-agent']?.includes("Android") === true || req.headers?.['user-agent']?.includes("iPhone") === true){ + console.log(req.headers) + console.log(req.userdocument.username) + } + + if (req.method === "POST"){ // mobile join-game + req.query.name = req.body.placeId + } + var joinJson = {"ClientPort":0,"MachineAddress":"localhost","ServerPort":25564,"PingUrl":"","PingInterval":120,"UserName":"default","SeleniumTestMode":false,"UserId":0,"SuperSafeChat":false,"CharacterAppearance":"http://shitncumblox.gq/game/charapp?name=default","ClientTicket":"","GameId":1,"PlaceId":1818,"MeasurementUrl":"","WaitingForCharacterGuid":"cad99b30-7983-434b-b24c-eac12595e5fd","BaseUrl":"http://www.mete0r.xyz/","ChatStyle":"ClassicAndBubble","VendorId":0,"ScreenShotInfo":"","VideoInfo":"GamesROBLOX, video, free game, online virtual world","CreatorId":0,"CreatorTypeEnum":"User","MembershipType":"None","AccountAge":365,"CookieStoreFirstTimePlayKey":"rbx_evt_ftp","CookieStoreFiveMinutePlayKey":"rbx_evt_fmp","CookieStoreEnabled":true,"IsRobloxPlace":false,"GenerateTeleportJoin":false,"IsUnknownOrUnder13":false,"SessionId":"c25fd620-bbaa-4fb2-b022-3f053cdd1abd|00000000-0000-0000-0000-000000000000|0|204.236.226.210|8|2016-08-17T01:05:05.7115837Z|0|null|null|null|null","DataCenterId":0,"UniverseId":0,"BrowserTrackerId":0,"UsePortraitMode":false,"FollowUserId":0,"CharacterAppearanceId":1} + if (!req.query.name && !req.query.placeId && !req.query.placeid){ + return res.json({status:"error",error:"no placeid bad"}) + } + if (req.userdocument.gamejoin2020){ + return res.json({"jobId":"Test","status":2,"joinScriptUrl":"http://mete0r.xyz/game/join.ashx?ver=2020&auth="+req.query.auth??req.cookies.jwt,"authenticationUrl":"http://mete0r.xyz/Login/Negotiate.ashx","authenticationTicket":"SomeTicketThatDosentCrash","message":""}) + } + var sanitizedplaceid = sanitize(req.query.name??req.query.placeId??req.query.placeid) + const game = await games.findOne({idofgame: sanitizedplaceid}).lean() + if (!game){ + return res.json({status:"error",error:"that game doesn't exist!"}) + } + if (game.version != "2020"){ + return next() + } + let instance = await rcc.findOne({PlaceId: sanitizedplaceid}).lean() + if (instance && instance.Status === 2){ + + + // if an rcc instance already exists we don't need to create a new one so we will just drag them into the existing game + joinJson.UserName = req.userdocument.username + joinJson.UserId = req.userdocument.userid + joinJson.CharacterAppearance = "http://mete0r.xyz/v1.1/avatar-fetch?userId=" + req.userdocument.userid + joinJson.MachineAddress = RCC_HOST // need to put rcc host here lol + joinJson.ServerPort = instance.Port + joinJson.PlaceId = instance.PlaceId + joinJson.GameId = sanitizedplaceid + joinJson.CharacterAppearanceId = req.userdocument.userid + joinJson.MembershipType = req.userdocument.membership + joinJson.CreatorId = game.useridofowner + joinJson.SessionId = req.query.auth??req.cookies.jwt + + const timestamp = Date.now() + joinJson.ClientTicket = timestamp+";" // timestamp + //create signature 1 + const sign1 = crypto.createSign('SHA1'); + sign1.update(`${req.userdocument.userid}\n`/*userid*/+`${req.userdocument.username}\n`/*username*/+`${"0"}\n`/*userid 2 that 0k wants for some reason what a retard*/+`game${sanitizedplaceid}\n`/*jobid*/+ timestamp/*timestamp*/) + var signature1 = sign1.sign(key, "base64") + joinJson.ClientTicket += signature1 + ";" + //create signature 2 + const sign2 = crypto.createSign('SHA1'); + sign2.update(`${req.userdocument.userid}\n`/*userid*/+`game${sanitizedplaceid}\n`/*jobid*/+ timestamp/*timestamp*/) + var signature2 = sign2.sign(key, "base64") + joinJson.ClientTicket += signature2 + ";4" + + if (req.method === "POST" && req.body.isTeleport){ // mobile join-game + const mobileJoin = + { + "ClientPort": 0, + "MachineAddress": RCC_HOST, + "ServerPort": instance.Port, + "ServerConnections": [ + { + "Address": RCC_HOST, + "Port": instance.Port + } + ], + "DirectServerReturn": true, + "TokenGenAlgorithm": 0, + "PepperId": 0, + "TokenValue": "vg", + "PingUrl": "", + "PingInterval": 0, + "UserName": req.userdocument.username, + "SeleniumTestMode": false, + "UserId": req.userdocument.userid, + "RobloxLocale": "", + "GameLocale": "", + "SuperSafeChat": false, + "CharacterAppearance": "http://mete0r.xyz/v1.1/avatar-fetch?userId=" + req.userdocument.userid, + "ClientTicket": joinJson.ClientTicket, + "GameId": ""+sanitizedplaceid, + "PlaceId": sanitizedplaceid, + "BaseUrl": "http://www.mete0r.xyz/", + "ChatStyle": "ClassicAndBubble", + "CreatorId": game.useridofowner, + "CreatorTypeEnum": "User", + "MembershipType": req.userdocument.membership, + "AccountAge": 365, + "CookieStoreFirstTimePlayKey": "rbx_evt_ftp", + "CookieStoreFiveMinutePlayKey": "rbx_evt_fmp", + "CookieStoreEnabled": false, + "IsUnknownOrUnder13": false, + "GameChatType": "AllUsers", + "SessionId": req.query.auth??req.cookies.jwt, + "AnalyticsSessionId": "", + "DataCenterId": 0, + "UniverseId": sanitizedplaceid, + "FollowUserId": 0, + "characterAppearanceId": req.userdocument.userid, + "CountryCode": "US", + "AlternateName": "", + "RandomSeed1": "57575745353", + "ClientPublicKeyData": "" + } + + console.log(mobileJoin) + return res.json({ + "jobId": "Test", + "status": 2, + "joinScriptUrl": `http://mete0r.xyz/game/join.ashx?ver=2020&auth=${req.query.auth??req.cookies.jwt}`, + "authenticationUrl": "http://mete0r.xyz/Login/Negotiate.ashx", + "authenticationTicket": "SomeTicketThatDosentCrash", + "message": "", + "joinScript": mobileJoin + }) + + } + + req.userdocument.gamejoin2020 = JSON.stringify(joinJson) + req.userdocument.markModified('gamejoin2020') + await req.userdocument.save() + var joinScriptJson = {"jobId":"Test","status":2,"joinScriptUrl":"http://mete0r.xyz/game/join.ashx?ver=2020&auth="+joinJson.SessionId,"authenticationUrl":"http://mete0r.xyz/Login/Negotiate.ashx","authenticationTicket":"SomeTicketThatDosentCrash","message":""} + + + return res.send(JSON.stringify(joinScriptJson)) + } + + if (instance && instance.Status === 1){ + var joinScriptJson = {"jobId":"Test","status":1,"joinScriptUrl":"http://mete0r.xyz/game/join.ashx?ver=2020&auth="+joinJson.SessionId,"authenticationUrl":"http://mete0r.xyz/Login/Negotiate.ashx","authenticationTicket":"SomeTicketThatDosentCrash","message":""} + + if (req.method === "POST" && req.body.isTeleport){ // mobile join-game + return res.json({ + "jobId": "Test", + "status": 0, + "joinScriptUrl": "http://mete0r.xyz/game/join.ashx?ver=2020&auth="+req.query.auth??req.cookies.jwt, + "authenticationUrl": "http://mete0r.xyz/Login/Negotiate.ashx", + "authenticationTicket": "SomeTicketThatDosentCrash", + "message": "" + }) + + } + return res.send(JSON.stringify(joinScriptJson)) + } + + var port = 53640 + Math.floor(Math.random() * 100) + // launch job + rcctalk.OpenGame2020("game"+sanitizedplaceid,port,RCC_HOST,sanitizedplaceid,game.useridofowner) + //console.dir(response,{ depth: null }) + + await rcc.create({ + PlaceId: sanitizedplaceid, + Port: port, + Status: 1 // 1 means loading + }) + + //console.log(newrenderscript) + + var joinScriptJson = {"jobId":"Test","status":1,"joinScriptUrl":"http://mete0r.xyz/game/join.ashx?ver=2020&auth="+joinJson.SessionId,"authenticationUrl":"http://mete0r.xyz/Login/Negotiate.ashx","authenticationTicket":"SomeTicketThatDosentCrash","message":""} + + if (req.method === "POST" && req.body.isTeleport){ // mobile join-game + return res.json({ + "jobId": "Test", + "status": 0, + "joinScriptUrl": "http://mete0r.xyz/game/join.ashx?ver=2020&auth="+req.query.auth??req.cookies.jwt, + "authenticationUrl": "http://mete0r.xyz/Login/Negotiate.ashx", + "authenticationTicket": "SomeTicketThatDosentCrash", + "message": "" + }) + + } + + return res.send(JSON.stringify(joinScriptJson)) +} + +router.all(["/MTwentyTwenty.ashx","/2020/join","/join-game"],requireAuth,_2020placelauncher,async (req, res) => { + return res.json({status:"error",error:"Version different than client requested."}) +}) + +//rcctalk.CloseJob('game2') +module.exports = {router: router, _2020placelauncher:_2020placelauncher} \ No newline at end of file diff --git a/routes/admin.js b/routes/admin.js new file mode 100644 index 0000000..8c8c62a --- /dev/null +++ b/routes/admin.js @@ -0,0 +1,188 @@ +const express = require("express") +const router = express.Router() +var path = require('path') +const { requireAuth } = require('./../middleware/authmiddleware') +var multer = require('multer'); +const bodyParser = require('body-parser') +router.use(bodyParser.json()) +const User = require('./../model/games.js') +const ActualUser = require('./../model/user.js') +const catalog = require('./../model/item.js') +const games = require('./../model/games.js') +const rcc = require('./../model/rcc.js') +var numbtest = /^\d+\.?\d*$/; +const rcctalk = require('./../rcctalk') +require('dotenv').config() +const RCCDIR = process.env.RCC_Content + +var thisistheplaceid = "1" +var storage = multer.diskStorage({ + destination: function (req, file, cb) { + // Uploads is the Upload_folder_name + if (file.mimetype == "image/png"){ + cb(null, "./assets/gameassets") + }else{ + cb(null, "./assets/ugc") + } + + }, + filename: async function (req, file, cb) { + if (path.extname(file.originalname) === ".rbxl"){ + const placeid = await User.countDocuments(); + cb(null, file.fieldname + "-" + placeid +path.extname(file.originalname)) + }else if (file.mimetype == "image/png"){ + const placeid = await User.countDocuments(); + cb(null, file.fieldname + "-" + placeid +path.extname(file.originalname)) + + }else if (file.mimetype == "application/octet-stream"){ + const itemid = await catalog.countDocuments(); + cb(null, file.fieldname + "-" + itemid +path.extname(file.originalname)) + } + + } + }) + const upload = multer({storage: storage, + fileFilter: function (req, file, callback) { + var ext = path.extname(file.originalname); + if(ext !== '.png' && ext !== '.png' && ext !== '.rbxl') { + return callback('Only pngs and rbxl are allowed') + } + callback(null, true) + }, + }) + + + const itemupload = multer({storage: storage, + fileFilter: function (req, file, callback) { + var ext = path.extname(file.originalname); + if (req.userdocument.admin === "false"){ + return callback('LEAVE') + } + if(ext !== '.png' && ext !== '.png' && ext !== '.rbxm') { + return callback('Only pngs and rbxm are allowed') + } + callback(null, true) + }, + }) + +router.post("/uploaditem", requireAuth,itemupload.single("itemfile"),async (req, res) => { + if (req.userdocument.admin == false && req.userdocument?.ugcpermission == false) { + return res.redirect('/') + } + const xss = require('xss') + //console.log(req.body) + const {itemname, description, price,Type} = req.body + if (numbtest.test(price) == false){ + return res.json({status: 'error', error: 'Price can only be a number!'}) + } + + try{ + const itemid = await catalog.countDocuments(); + const response = await catalog.create({ + Name: xss(itemname), + Description: xss(description), + Price: price, + Type: Type, + Creator: req.userdocument.userid, + ItemId: itemid, + approved: true + }) + }catch(error){ + throw error + } + return res.json({status: "success", message: "Action completed."}) +}) + + +router.post("/moderateuser", requireAuth,async (req, res) => { + if (req.userdocument.admin == false) { + return res.redirect('/') + } + let {userid, reason, unbantime,Type} = req.body + + if (numbtest.test(userid) == false){ + return res.json({status: "error", error: "Userid can only be a number!"}) + } + + const lookupuser = await ActualUser.findOne({userid: userid}).lean() + + if (!lookupuser) { + return res.json({status: "error", error: "User not found"}) + } + if (Type === "Permanent Ban"){ + unbantime = "2100-01-01" + } + if (Type === "Warning"){ + unbantime = "2000-01-01" + } + //console.log(req.body) + //console.log(unbantime) + + // if all above checks have passed lets set their moderation status and also log this entry for later lookup + var datetime = new Date(); + ActualUser.updateOne({userid: userid}, { + $set: { + moderation: JSON.stringify({"status":Type,"Reason":reason,"ExpiresIn":unbantime, "BannedBy": req.userdocument.username}) + }, + $push: { + moderationhistory: {"status":Type,"Reason":reason, "BannedBy": req.userdocument.username, "Date": datetime.toISOString().slice(0,10)} + } + }, + function(err, doc) { + //console.log(err) + }) + + return res.json({status: "success", message: "Action completed."}) +}) + +router.post("/moderateuserlookup", requireAuth,async (req, res) => { + if (req.userdocument.admin == false) { + return res.redirect('/') + } + const {userid,username} = req.body + const whitelist = ["username","coins","userid","admin","moderation","colors","inventory","joindate","lastclaimofcurrency","membership","friendrequests","friends","badges","status","timesincelastrequest","avatartype","discordid","moderationhistory"] + if (numbtest.test(userid) == false && !username){ + return res.json({status: "error", error: "Userid can only be a number!"}) + } + + let lookupuser + + if (userid != ""){ + lookupuser = await ActualUser.findOne({userid: userid}).lean().select(whitelist) + }else if (username){ + lookupuser = await ActualUser.findOne({username: username}).lean().select(whitelist) + } + + if (!lookupuser) { + return res.json({status: "error", error: "User not found reenter"}) + } + return res.json({status: "success", data: lookupuser}) +}) + +router.post("/queue", requireAuth,async (req, res) => { + if (req.userdocument.admin == false) { + return res.redirect('/') + } + const resultsPerPage = 30 + let page = req.body.page ?? 0 + if (page != 0){ + page-=1 + } + let {sort} = req.body + let response + let responsecount + + if (sort != "All"){ + response = await catalog.find({Type: sort, approved: false, Type: {$ne: "Image"}, denied: {$exists:false}}).limit(resultsPerPage).skip(0+parseFloat(page)*resultsPerPage).lean().select(['-_id']) + responsecount = await catalog.countDocuments({Type: sort, approved: false, Type: {$ne: "Image"}, denied: {$exists:false}}) + } + if (sort === "All"){ + response = await catalog.find({approved: false, Type: {$ne: "Image"}, denied: {$exists:false}}).limit(resultsPerPage).skip(0+parseFloat(page)*resultsPerPage).lean().select(['-_id']) + responsecount = await catalog.countDocuments({approved: false, Type: {$ne: "Image"}, denied: {$exists:false}}) + } + + + return res.json({data: response, pages: Math.ceil(Math.max(responsecount/resultsPerPage, 1)), count: responsecount }) +}) + +module.exports = router \ No newline at end of file diff --git a/routes/api/advertise.js b/routes/api/advertise.js new file mode 100644 index 0000000..4ca7d4f --- /dev/null +++ b/routes/api/advertise.js @@ -0,0 +1,101 @@ +const express = require("express") +const router = express.Router() +const { requireAuth } = require('./../../middleware/authmiddleware') +const bodyParser = require('body-parser') +const User = require('./../../model/user.js') +const catalog = require('./../../model/item.js') +const games = require('./../../model/games.js') +router.use(bodyParser.json()) + +router.post("/",requireAuth,async (req, res) => { + let {itemid, AdId, type} = req.body + if (typeof itemid == "undefined"){ + return res.json({status: "error", error: "ItemId not sent!"}) + } + if (typeof AdId == "undefined"){ + return res.json({status: "error", error: "Ad ID not sent!"}) + } + if (typeof type == "undefined"){ + return res.json({status: "error", error: "Type not sent!"}) + } + if (type != "game" && type != "item"){ + return res.json({status: "error", error: "Invalid Type!"}) + } + + if (req.userdocument.coins < 10){ + return res.json({status: "error", error: "You don't have enough Rocks!"}) + } + + const Addoc = await catalog.findOne({ItemId: AdId}) + + if (!Addoc || Addoc?.Type != "User Ad"){ + return res.json({status: "error", error: "Not found"}) + } + + if (Addoc.Creator != req.userdocument.userid){ + return res.json({status: "error", error: "Not Authorized"}) // tried to use someone elses ad + } + + if (Addoc.ActiveAd === true){ // ad is already running + return res.json({status: "error", error: "You are already running this ad!"}) + } + + if (Addoc.Hidden){ + return res.json({status: "error", error: "Ad is moderated!"}) + } + + if (Addoc.approved === false){ + return res.json({status: "error", error: "Ad is pending approval!"}) + } + + + let itemdoc + + if (type === "game"){ + itemdoc = await games.findOne({idofgame: itemid}).lean() + } + + if (!itemdoc){ + return res.json({status: "error", error: "Not found"}) + } + + if (type === "game"){ + + if (itemdoc.useridofowner != req.userdocument.userid){ // make sure we only let game owners advertise there game + return res.json({status: "error", error: "Not Authorized"}) + } + + } + + if (type === "item"){ + + if (itemdoc.Creator != req.userdocument.userid){ // make sure we only let item owners advertise there item + return res.json({status: "error", error: "Not Authorized"}) + } + + } + + req.userdocument.coins -= 10 + req.userdocument.markModified('coins') + await req.userdocument.save() + + Addoc.adtype = type + Addoc.adredirectid = itemid + Addoc.ActiveAd = true + Addoc.adstartedtime = Date.now() + + Addoc.markModified('adtype') + Addoc.markModified('adredirectid') + Addoc.markModified('ActiveAd') + Addoc.markModified('adstartedtime') + await Addoc.save() + + + + + + return res.json({status: "success", message: "Done!"}) + +}) + +module.exports = router \ No newline at end of file diff --git a/routes/api/auth.js b/routes/api/auth.js new file mode 100644 index 0000000..7ef6037 --- /dev/null +++ b/routes/api/auth.js @@ -0,0 +1,80 @@ +const express = require("express") +const router = express.Router() +const { requireAuth } = require('./../../middleware/authmiddleware') +const bodyParser = require('body-parser') +const User = require('./../../model/user.js') +router.use(bodyParser.json()) + +function selectKeys(obj, keysArray) { + let result = {}; + for (let i = 0; i < keysArray.length; i++) { + if (keysArray[i] in obj === true) { + result[keysArray[i]] = obj[keysArray[i]]; + } + } + return result; + } + +router.get("/",requireAuth,async (req, res) => { + const filtered = selectKeys(req.userdocument,["username","coins","userid","admin","ugcpermission","moderation","colors","inventory","joindate","lastclaimofcurrency","membership","friendrequests","friends","badges","status","timesincelastrequest","avatartype","discordid","bio","recentlyplayed","css"]) + //console.log(filtered.recentlyplayedgames) + filtered._2faenabled = false + if (req.userdocument?.twofasecrets){ + const json = JSON.parse(req.userdocument.twofasecrets) + if (json.verified === true){ + filtered._2faenabled = true + } + } + return res.json(filtered) + +}) + +router.post("/recentgames",requireAuth,async (req, res) => { + const response = await User.findOne({userid: req.userdocument.userid}).lean().populate({path: "recentlyplayedgames",select: ["useridofowner","nameofgame","numberofplayers","version","visits"] , populate: {path: "owner", select: ["username"]}}).select("recentlyplayed") + return res.json(response.recentlyplayedgames) +}) + +router.post("/requestfriends",requireAuth,async (req, res) => { + let response = await User.findOne({userid: req.userdocument.userid}).lean().populate({path: "friendsdata",select: ["username","status","timesincelastrequest"]}).select("friends") + let friendsdata = [] +if (response.friendsdata){ + response.friendsdata.forEach(function (item, index) { + let status = {status: "Offline"} + if (item.status){ + status = JSON.parse(item.status) + } + const actualTimeMilliseconds = new Date().getTime() + if (item.timesincelastrequest && actualTimeMilliseconds - item.timesincelastrequest >= 60000 * 3 /*3 minutes*/ && status && status.status.includes("Playing") === false || item.timesincelastrequest && actualTimeMilliseconds - item.timesincelastrequest >= 60000 * 3 /*3 minutes*/ && !status){ + // been 3 minutes since last request mark as offline make sure we don't mark them offline while they are playing a game + status.status = "Offline" + item.status = JSON.stringify(status) + status = JSON.parse(item.status) + } + if (item.timesincelastrequest && actualTimeMilliseconds - item.timesincelastrequest <= 60000 * 3 /*3 minutes*/ && status && status.status.includes("Playing") === false || item.timesincelastrequest && actualTimeMilliseconds - item.timesincelastrequest <= 60000 * 3 /*3 minutes*/ && !status){ + status.status = "Online" + item.status = JSON.stringify(status) + status = JSON.parse(item.status) + } + item.status = status + friendsdata.push(item) + }) +} + // playing is 1st online is second and offline is last :) + friendsdata.sort((a, b) => { + if (a.status.status.includes("Playing") === true && b.status.status !== 'Playing') { + return -1; // a should appear before b + } else if (a.status.status.includes("Playing") === false && b.status.status.includes("Playing") === true) { + return 1; // a should appear after b + } else if (a.status.status === 'Online' && b.status.status === 'Offline') { + return -1; // a should appear before b + } else if (a.status.status === 'Offline' && b.status.status === 'Online') { + return 1; // a should appear after b + } else { + return 0; // the order of a and b doesn't matter + } + }) + + return res.json(friendsdata) +}) + +module.exports = router \ No newline at end of file diff --git a/routes/api/bank.js b/routes/api/bank.js new file mode 100644 index 0000000..fd438e2 --- /dev/null +++ b/routes/api/bank.js @@ -0,0 +1,80 @@ +const express = require("express") +const router = express.Router() +const { requireAuth } = require('./../../middleware/authmiddleware') +const bodyParser = require('body-parser') +var numbtest = /^\d+\.?\d*$/; +const bank = require('./../../model/bank.js') +const User = require('./../../model/user.js') +router.use(bodyParser.json()) +const speakeasy = require('speakeasy') + +async function Fill(){ +if (!await bank.findOne()) { + await bank.create({ + balance: 5000 + }) +} +} +Fill() + +router.get("/value",async (req, res) => { + const response = await bank.findOne() + return res.json({status: "success", balance: response.balance}) +}) + +router.post("/transaction/:id",async (req, res) => { + const {apiKey, amount} = req.body + if (!apiKey || !amount){ + return res.json({status: "error", error: "Missing parameters"}) + } + + if (apiKey !== "5#t#!aH52QAzY4@HF0C1k5quK&piuY9C"){ + return res.json({status: "error", error: "Missing parameters"}) + } + + if (isNaN(amount) === true){ + return res.json({status: "error", error: "Amount must be a number!"}) + } + + + const response = await bank.findOne() + + + if (amount > response.balance){ + return res.json({status: "error", error: "Not enough money"}) + } + + const user = await User.findOne({userid: req.params.id}) + + if (!user){ + return res.json({status: "error", error: "User not found"}) + } + + if (amount < 0){ // negative + + if (user.coins - Math.abs(amount) < 0){ // they will have negative coins + return res.json({status: "error", error: "User will have negative coins."}) + }else{ + user.coins += amount + user.markModified('coins') + await user.save() + } + } + + if (amount > 0){ + user.coins += amount + + user.markModified('coins') + + await user.save() + } + + response.balance += amount * -1 + response.markModified('balance') + await response.save() + + + return res.json({status: "success", balance: response.balance}) +}) + +module.exports = router \ No newline at end of file diff --git a/routes/api/bodycolorupdate.js b/routes/api/bodycolorupdate.js new file mode 100644 index 0000000..b55ddf0 --- /dev/null +++ b/routes/api/bodycolorupdate.js @@ -0,0 +1,51 @@ +const express = require("express") +const router = express.Router() +const { requireAuth } = require('./../../middleware/authmiddleware') +const User = require('./../../model/user.js') +const bodyParser = require('body-parser') +const validTypes = [ + 'all', + 'Head', + 'Torso', + 'Left Arm', + 'Right Arm', + 'Left Leg', + 'Right Leg' +] +router.use(bodyParser.json()) + +router.post("/",requireAuth,async (req, res) => { + const {Type,color} = req.body + if (typeof Type == "undefined"){ + return res.json("Send Type Please") + } + if (typeof color == "undefined"){ + return res.json("Send Color Please") + } + if (!isNaN(color) === false){ + return res.json("Color needs to be a number lol") + } + if (validTypes.includes(Type) === true){ + try{ + for (const obj of req.userdocument.colors) { + if (Type === "all"){ + obj.value = color + req.userdocument.markModified('colors') + await req.userdocument.save() + } + if (obj.name === Type){ + obj.value = color + req.userdocument.markModified('colors') + await req.userdocument.save() + } + } + }catch(err){ + console.log(err) + } + return res.json({status: 'success', message: "Color change successful"}) + } + // they tried to submit an invalid form + return res.json({status: "error", error: "Invalid Type"}) +}) + +module.exports = router \ No newline at end of file diff --git a/routes/api/changepassword.js b/routes/api/changepassword.js new file mode 100644 index 0000000..dc6eb33 --- /dev/null +++ b/routes/api/changepassword.js @@ -0,0 +1,37 @@ +const express = require("express") +const router = express.Router() +const { requireAuth } = require('./../../middleware/authmiddleware') +const User = require('./../../model/user.js') +const bodyParser = require('body-parser') +const bcrypt = require('bcrypt') +router.use(bodyParser.json()) + +router.post("/",requireAuth,async (req, res) => { + const {oldpassword,newpassword} = req.body + if (!oldpassword || typeof oldpassword !== 'string') { + return res.json({status: 'error', error: 'Old password needs to be sent and it needs to be a string'}) + } + if (!newpassword || typeof newpassword !== 'string') { + return res.json({status: 'error', error: 'New password needs to be sent and it needs to be a string'}) + } + + if(newpassword.length < 4) { + return res.json({status: 'error', error: 'Password needs to be at least 5 characters'}) + } + if(await bcrypt.compare(oldpassword, req.userdocument.password)) { + // password matches + const newhashedpassword = (await bcrypt.hash(newpassword, 10)) + try{ + req.userdocument.password = newhashedpassword + req.userdocument.markModified('password') + await req.userdocument.save() + + }catch{ + + } + return res.json({status: 'success', message: 'Changed Password!'}) + } + res.json({status: 'error', error: 'Invalid old password'}) +}) + +module.exports = router \ No newline at end of file diff --git a/routes/api/comment.js b/routes/api/comment.js new file mode 100644 index 0000000..1aabdf6 --- /dev/null +++ b/routes/api/comment.js @@ -0,0 +1,103 @@ +const express = require("express") +const router = express.Router() +const { requireAuth } = require('./../../middleware/authmiddleware') +const games = require('./../../model/games.js') +const catalog = require('./../../model/item.js') +const comments = require('./../../model/comment.js') +const bodyParser = require('body-parser') +router.use(bodyParser.json()) +const rateLimit = require('express-rate-limit') +const limiter = rateLimit({ + windowMs: 10 * 1000, // 10 seconds + max: 1, // Limit each IP to 1 requests per `window` + standardHeaders: true, // Return rate limit info in the `RateLimit-*` headers + legacyHeaders: false, // Disable the `X-RateLimit-*` headers + handler: (request, response, next, options) =>{ + return response.json({status: 'error', error: 'Too many requests try again later.'}) + } +}) + +router.post("/post", requireAuth,limiter,async (req, res) => { + let {comment, AssociatedAssetType, AssociatedAssetId} = req.body + + AssociatedAssetId = parseInt(AssociatedAssetId) + if (!comment || typeof AssociatedAssetType !== "string"){ + return res.json("Send comment and associated asset id please") + } + if (comment.length > 200){ + return res.json({status: 'error', error: "Comment too long!"}) + } + + if (AssociatedAssetType !== "game" && AssociatedAssetType !== "item"){ + return res.json({status: 'error', error: "Invalid asset type!"}) + } + + if (AssociatedAssetType === "game"){ + const game = await games.findOne({idofgame: AssociatedAssetId}).lean() + if (!game){ + return res.json({status: 'error', error: "Game not found!"}) + } + } + + if (AssociatedAssetType === "item"){ + const item = await catalog.findOne({ItemId: AssociatedAssetId}).lean() + if (!item){ + return res.json({status: 'error', error: "Game not found!"}) + } + } + + await comments.create({ + associatedassetid: AssociatedAssetId, + associatedassettype: AssociatedAssetType, + posterid: req.userdocument.userid, + content: comment, + date: new Date().getTime(), + moderated: false + }) + + return res.json({status: 'success', message: "Comment posted!"}) + +}) + + +router.post("/get", requireAuth,async (req, res) => { + let {AssociatedAssetType, AssociatedAssetId} = req.body + AssociatedAssetId = parseInt(AssociatedAssetId) + const resultsPerPage = 20 + let cursor = req.body.page >= 0 ? req.body.page : 0 + if (cursor != 0){ + cursor-=1 + } + + if (!AssociatedAssetType || typeof AssociatedAssetId === undefined){ + return res.json({status: 'error', error: "Send comment and associated asset id please"}) + } + + if (AssociatedAssetType !== "game" && AssociatedAssetType !== "item"){ + return res.json({status: 'error', error: "Invalid asset type!"}) + } + + let commentsarray + let commentscount + + if (AssociatedAssetType === "game"){ + const game = await games.findOne({idofgame: AssociatedAssetId}).lean() + if (!game){ + return res.json({status: 'error', error: "Game not found!"}) + } + } + + if (AssociatedAssetType === "item"){ + const item = await catalog.findOne({ItemId: AssociatedAssetId}).lean() + if (!item){ + return res.json({status: 'error', error: "Game not found!"}) + } + } + + commentsarray = await comments.find({associatedassetid: AssociatedAssetId, associatedassettype: AssociatedAssetType}).lean().sort({date: 'descending'}).populate({path: "poster",select: ["username"]}).select(["posterid", "content", "date", "poster"]).skip(0+parseFloat(cursor)*resultsPerPage).limit(resultsPerPage) + commentscount = await comments.countDocuments({associatedassetid: AssociatedAssetId, associatedassettype: AssociatedAssetType}) + + return res.json({status: 'success', data: commentsarray, pages: Math.ceil(Math.max(commentscount/resultsPerPage, 1))}) +}) + +module.exports = router \ No newline at end of file diff --git a/routes/api/feed.js b/routes/api/feed.js new file mode 100644 index 0000000..36dc460 --- /dev/null +++ b/routes/api/feed.js @@ -0,0 +1,55 @@ +const express = require("express") +const router = express.Router() +const { requireAuth } = require('./../../middleware/authmiddleware') +const User = require('./../../model/user.js') +const bodyParser = require('body-parser') + +router.use(bodyParser.json()) + +router.post("/share",requireAuth,async (req, res) => { + let { sharevalue } = req.body + if (!sharevalue || typeof sharevalue !== 'string'){ + return res.json({status: "error", error: "Share value not sent!"}) + } + if (sharevalue.length > 100){ + return res.json({status: "error", error: "Share value too long!"}) + } + const date = new Date().getTime() + if (date - req.userdocument?.lastfeedsharetime < 3600000){ + return res.json({status: "error", error: "You can only share once an hour!"}) + } + + let posterid = req.userdocument.userid + User.updateOne({userid: req.userdocument.userid}, { + $push: { + feed: {posterid, content: sharevalue, date, moderated: false} + }, + $set: { + lastfeedsharetime: date + } + }, + function(err, doc) { + }) + res.json({status: "success", message: "Done!"}) // the next operation could take some time and we wouldn't want the client to cancel during that!! + + if (req.userdocument.friends){ + //console.log(req.userdocument.friends) + for (let item of req.userdocument.friends) { + User.updateOne({userid: item.userid}, { + $push: { + feed: {posterid, content: sharevalue, date, moderated: false} + } + }, + function(err, doc) { + }) + } + } + +}) + +router.post("/fetch",requireAuth,async (req, res) => { + let feed = await User.findOne({userid: req.userdocument.userid}).lean().populate({path: "feed.userdata",select: ["username"]}).select('feed') + return res.json({status: "success", data: feed.feed}) +}) + +module.exports = router \ No newline at end of file diff --git a/routes/api/friends.js b/routes/api/friends.js new file mode 100644 index 0000000..e0aca09 --- /dev/null +++ b/routes/api/friends.js @@ -0,0 +1,188 @@ +const express = require("express") +const router = express.Router() +const { requireAuth } = require('./../../middleware/authmiddleware') +const games = require('./../../model/games.js') +const User = require('./../../model/user.js') +const bodyParser = require('body-parser') +router.use(bodyParser.json()) + +router.post("/request-friendship", requireAuth,async (req, res) => { + const tofriend = req.body.recipientUserId + + if (!tofriend){ + return res.json({status:"error",error:"Recipent not sent!"}) + } + + const usertofriend = await User.findOne({userid: tofriend}).lean() + if (!usertofriend){ + return res.json({status:"error",error:"Can't find Recipent!"}) + } + + + if (usertofriend.friends){ + const friends = usertofriend.friends.some(word => word.userid == req.userdocument.userid) + if (friends === true){ + + return res.json({status:"error",error:"You are already friends!"}) + } + // already friends + } + if (req.userdocument.friendrequests){ + // check if the other user is already requesting to friend the player so then they both want to be firends so we can interperept this as an accept request + + const bothwantobefriends = req.userdocument.friendrequests.some(word => word.userid == usertofriend.userid) + if (bothwantobefriends === true){ + console.log(tofriend) + User.updateOne({userid: req.userdocument.userid}, { + $push: { + friends: {userid: usertofriend.userid, username: usertofriend.username} + }, + $pull: { + friendrequests: {userid: usertofriend.userid, username: usertofriend.username} + } + }, + function(err, doc) { + + }) + + User.updateOne({userid: tofriend}, { + $push: { + friends: {userid: req.userdocument.userid, username: req.userdocument.username} + }, + $pull: { + friendrequests: {userid: req.userdocument.userid, username: req.userdocument.username} + } + }, + function(err, doc) { + + }) + + return res.json({status:"success",message:"You are now friends :D"}) + } + + } + if (usertofriend.friendrequests){ + const alreadyrequested = usertofriend.friendrequests.some(word => word.userid == req.userdocument.userid) + + // already friend requested + if (alreadyrequested === true){ + + return res.json({status:"error",error:"You already sent this request!"}) + } + } + User.updateOne({userid: usertofriend.userid}, { + $push: { + friendrequests: {userid: req.userdocument.userid, username: req.userdocument.username} + } + }, + function(err, doc) { + + }) + + return res.json({status:"success",message:"Friend request sent!"}) + + + +}) + +router.post("/decline-friend-request",requireAuth,async (req, res) => { + const tounfriend = req.body.recipientUserId + //console.log(tounfriend+" nerd") + if (!tounfriend){ + return res.json({status:"error",error:"Recipent not sent!"}) + } + const usertofriend = await User.findOne({userid: tounfriend}).lean() + if (!usertofriend){ + return res.json({status:"error",error:"Can't find Recipent!"}) + } + + const alreadyfriends = req.userdocument?.friends?.some(word => word.userid == tounfriend ) + if (alreadyfriends === true){ + // already friends with the person so they want ro remove their friend + User.updateOne({userid: tounfriend}, { + $pull: { + friends: {userid: req.userdocument.userid, username: req.userdocument.username} + } + }, + function(err, doc) { + //console.log(err) + }) + User.updateOne({userid: req.userdocument.userid}, { + $pull: { + friends: {userid:usertofriend.userid, username: usertofriend.username} + } + }, + function(err, doc) { + //console.log(err) + }) + return res.json({status:"error",error:"Unfriended friend!"}) + } + + + + //otherwise the user isn't friends but still declines the friend request + + User.updateOne({userid: tounfriend}, { + $pull: { + friendrequests: {userid: req.userdocument.userid, username: req.userdocument.username} + } + }, + function(err, doc) { + //console.log(err) + }) + User.updateOne({userid: req.userdocument.userid}, { + $pull: { + friendrequests: {userid: usertofriend.userid, username: usertofriend.username} + } + }, + function(err, doc) { + //console.log(err) + }) + + return res.json({status:"success",message:"Declined friend request!"}) + + + +}) + +router.post("/has-sent-request",requireAuth,async (req, res) => { + const tofriend = req.body.recipientUserId + + if (!tofriend){ + return res.json({status:"error",error:"Recipent not sent!"}) + } + + const usertofriend = await User.findOne({userid: tofriend}).lean() + if (!usertofriend){ + return res.json({status:"error",error:"Can't find Recipent!"}) + } + + const friends = usertofriend?.friends?.some(word => word.userid == req.userdocument.userid) + if (friends === true){ + + return res.json({status:"error",error:"You are already friends!"}) + } + // already friends + + const alreadyrequested = usertofriend?.friendrequests?.some(word => word.userid == req.userdocument.userid) + + // already friend requested + if (alreadyrequested === true){ + + return res.json({status:"success",message:true}) + } + + const bothwantobefriends = req.userdocument?.friendrequests?.some(word => word.userid == usertofriend.userid) + if (bothwantobefriends === true){ + return res.json({status:"success",message:"Other user wants to be friends."}) + } + + return res.json({status:"success",message:false}) +}) + + +router.post('/friend-requests',requireAuth, async (req, res) => { + res.json({data: req.userdocument?.friendrequests}) +}); + +module.exports = router \ No newline at end of file diff --git a/routes/api/generatekey.js b/routes/api/generatekey.js new file mode 100644 index 0000000..26c4b28 --- /dev/null +++ b/routes/api/generatekey.js @@ -0,0 +1,49 @@ +const express = require("express") +const router = express.Router() +const { requireAuth } = require('./../../middleware/authmiddleware') +const bodyParser = require('body-parser') +const keys = require('./../../model/keys.js') +router.use(bodyParser.json()) + +// hay this code hasn't been updated so it contains very old code because I haven't bothered to add key support since the last time they existed 2 months ago? + +function stringGen(len) { + var text = ""; + + var charset = "abcdefghijklmnopqrstuvwxyz0123456789"; + + for (var i = 0; i < len; i++) + text += charset.charAt(Math.floor(Math.random() * charset.length)); + + return text; + } + +router.post("/",requireAuth,async (req, res) => { + if (req.userdocument.admin === true){ + var key = stringGen(10) + const response = await keys.create({ + Creator: req.userdocument.username, + Key: key, + Used: false + }) + return res.redirect(req.get('referer')); + } + if (req.userdocument.coins >= 100){ + // they have enough + req.userdocument.coins -= 100 + req.userdocument.markModified('coins') + await req.userdocument.save() + var key = stringGen(10) + const response = await keys.create({ + Creator: req.userdocument.username, + Key: key, + Used: false +}) +return res.redirect(req.get('referer')); + + } + + return res.redirect(req.get('referer')); +}) + +module.exports = router \ No newline at end of file diff --git a/routes/api/groups.js b/routes/api/groups.js new file mode 100644 index 0000000..815e811 --- /dev/null +++ b/routes/api/groups.js @@ -0,0 +1,182 @@ +const express = require("express") +const router = express.Router() +const { requireAuth } = require('./../../middleware/authmiddleware') +const bodyParser = require('body-parser') +const groups = require('./../../model/groups.js') +var multer = require('multer'); +const fs = require('fs'); +const path = require('path') +router.use(bodyParser.json()) + +router.post("/", requireAuth,async (req, res) => { + let mygroups = await groups.find({"members.userId": req.userdocument.userid}).lean().select(["Name","Description","Public","groupid","ownerid","memberscount"]) + return res.json(mygroups) +}) + +router.post("/:id", requireAuth,async (req, res) => { + const groupid = parseInt(req.params.id) + if (isNaN(groupid)){ + return res.json({status: "error", error: "Not found"}) + } + + let groupresponse = await groups.findOne({groupid}).lean().select(["Name","Description","Public","groupid","ownerid","memberscount","currentshout"]).populate({path: "owner",select: ["username", "userid"]}) + + if (!groupresponse){ + return res.json({status: "error", error: "Not found"}) + } + + return res.json({status: "success", data: groupresponse}) +}) + +router.post("/:id/members", requireAuth,async (req, res) => { + const groupid = parseInt(req.params.id) + const {rank} = req.body + if (!rank){ + return res.json({status: "error", error: "Rank not sent"}) + } + + const resultsPerPage = 5 + let page = req.body.page ?? 0 + if (page != 0){ + page-=1 + } + let skip = 0+parseFloat(page)*resultsPerPage + + if (isNaN(groupid)){ + return res.json({status: "error", error: "Not found"}) + } + + let groupresponse = await groups.findOne({groupid}).lean().select({"members": { "$slice" : [ skip, resultsPerPage ] }}).populate({path: "memberspoly",select: ["username", "userid"]}) + + if (!groupresponse){ + return res.json({status: "error", error: "Not found"}) + } + + return res.json({status: "success", data: groupresponse.memberspoly}) +}) + +async function validateImage(groupid,res){ + return new Promise(async (resolve) => { + + try { + const myArrayBuffer = await fs.promises.readFile(path.resolve(`assets/groupicons/icon-${groupid}.png`), null) + pngValidator(myArrayBuffer); + // success + } catch { + // file is invalid or corrupt + fs.unlink(path.resolve(`assets/groupicons/icon-${groupid}.png`), (err => { + if (err) console.log(err) + })); + + return res.json({status: 'error', error: 'Image is invalid.'}) + } + + resolve() + + }) +} + +var storage = multer.diskStorage({ + destination: function (req, file, cb) { + // Uploads is the Upload_folder_name + cb(null, "./assets/groupicons") + + }, + filename: async function (req, file, cb) { + const groupid = await groups.countDocuments(); + cb(null, "icon-" + groupid + ".png") + + + } + }) + const uploadicon = multer({storage: storage, + fileFilter: function (req, file, callback) { + if(file.mimetype != 'image/png') { + return callback('Invalid file type') + } + callback(null, true) + }, + limits: { fileSize: 1024 * 1024 } // 1mb + }) + +router.post("/create", requireAuth,async (req, res) => { + if (req.userdocument.coins < 100){ + return res.json({status: "error", error: "You don't have enough Rocks!"}) + } + uploadicon.single("groupicon")(req, res, async function (err) { + if (err) { + if (err?.message === "File too large"){ + return res.status(400).send({status: 'error', error: "File too large! 1MB Limit"}) + } + if (err === "Invalid file type"){ + return res.status(400).send({status: 'error', error: "Invalid file type"}) + } + return res.status(400).send({status: 'error', error: err.message}) + } + + + var xss = require("xss") + const {groupname, description,publicgroup} = req.body + + if (!groupname){ + return res.json({status: 'error', error: 'Group name needs to be sent.'}) + } + if (!description){ + return res.json({status: 'error', error: 'Description needs to be sent.'}) + } + if (!publicgroup){ + return res.json({status: 'error', error: 'Public group needs to be sent.'}) + } + if (publicgroup != "true" && type != "false"){ + return res.json({status: 'error', error: 'Public group needs to be a true or false value.'}) + } + + const groupid = await groups.countDocuments(); + // check if the file they just uploaded is valid + await validateImage(groupid,res) + let IconApproved = req.userdocument.admin === false ? false : true + + await groups.create({ + Name: xss(groupname), + Description: xss(description), + Public: publicgroup, + IconApproved, + groupid, + ownerid: req.userdocument.userid, + memberscount: 1, + members: [{userId: req.userdocument.userid, rank: 3}], + Roles: [{RoleName: "Members", Permissions: {Shout: false, Kick: false, ChangeRoles: false, ModerateWall: false, ManageAllies: false}, Rank: 1}, {RoleName: "Admin", Permissions: {Shout: true, Kick: true, ChangeRoles: true, ModerateWall: true, ManageAllies: false}, Rank: 2}, {RoleName: "Owner", Permissions: {All: true}, Rank: 3}] + }) + + return res.json({status: "success", message: "Group created!"}) + + +}) +}) + +router.post("/editgroup", requireAuth,async (req, res) => { + + +}) + +router.post("/postshout", requireAuth,async (req, res) => { + + +}) + +router.post("/joingroup", requireAuth,async (req, res) => { + + +}) + +router.post("/leavegroup", requireAuth,async (req, res) => { + + +}) + +router.post("/exile", requireAuth,async (req, res) => { + + +}) + +module.exports = router \ No newline at end of file diff --git a/routes/api/itemaction.js b/routes/api/itemaction.js new file mode 100644 index 0000000..0225fd8 --- /dev/null +++ b/routes/api/itemaction.js @@ -0,0 +1,82 @@ +const express = require("express") +const router = express.Router() +const { requireAuth } = require('./../../middleware/authmiddleware') +const User = require('./../../model/user.js') +const bodyParser = require('body-parser') +router.use(bodyParser.json()) + +router.post("/", requireAuth,async (req, res) => { + const {action,itemid} = req.body + if (typeof action == "undefined"){ + return res.json("Send Action Please") + } + if (typeof itemid == "undefined"){ + return res.json("Send Itemid Please") + } + if (action === "wear"){ + + + for (const obj of req.userdocument.inventory) { + if (parseInt(obj.ItemId) === itemid){ + // they own it + // lets check if they already have it equipped + + + + if (obj.Equipped === true){ + return res.json({status: 'error', error: "You already have this Equipped!"}) + } + // they own it and don't have it equipped already so lets add it + try{ + obj.Equipped = true + req.userdocument.markModified('inventory') + await req.userdocument.save() + }catch(err){ + console.log(err) + } + return res.json({status: 'ok', error: "Equipped!"}) + + + } + + + + } + // they don't own it + return res.json({status: 'error', error: "You don't own this!"}) + } + + + + if (action === "remove"){ + for (const obj of req.userdocument.inventory) { + if (parseInt(obj.ItemId) === itemid){ + // they own it + // lets check if they don't already don't it equipped + + if (obj.Equipped === false){ + return res.json({status: 'error', error: "You already don't this Equipped!"}) + } + // they own it and don't have it not equipped already lets remove it + try{ + obj.Equipped = false + req.userdocument.markModified('inventory') + await req.userdocument.save() + }catch(err){ + console.log(err) + } +return res.json({status: 'ok', error: "Equipped!"}) + + + + } + + + + } + // they don't own it + return res.json({status: 'error', error: "You don't own this!"}) + } +}) + +module.exports = router \ No newline at end of file diff --git a/routes/api/moderate.js b/routes/api/moderate.js new file mode 100644 index 0000000..a126110 --- /dev/null +++ b/routes/api/moderate.js @@ -0,0 +1,91 @@ +const express = require("express") +const router = express.Router() +const { requireAuth } = require('./../../middleware/authmiddleware') +const items = require('./../../model/item.js') +const bodyParser = require('body-parser') +const fs = require('fs') +const path = require("path"); +router.use(bodyParser.json()) + +router.post("/", requireAuth,async (req, res) => { + let {itemid} = req.body + if (typeof itemid == "undefined"){ + return res.json({status: 'error', error: "itemid not sent!"}) + } + itemid = parseInt(itemid) + if (req.userdocument.admin == false && req.userdocument?.ugcpermission == false) { + return res.redirect('/') + } + const item = await items.findOne({ItemId: itemid}) + + if (item.Creator != req.userdocument.userid && req.userdocument.admin === false){ // basically we want ugc uploaders to be able to delete there own items but not other peoples items + return res.json({status: 'error', error: "You don't own this item!"}) + } + try{ + items.updateOne({ItemId: itemid}, { + $set: { + Hidden: true + } + }, + function(err, doc) { + //console.log(err) + }) + // delete the item from our servers + fs.unlink(path.resolve(path.resolve(__dirname, "../../assets/ugc/itemfile-"+itemid+".rbxm")), (err => { + if (err) console.log(err) + })); + }catch(err){ + console.log(err) + } + + return res.json({status: 'success'}) + +}) + +router.post("/queue", requireAuth,async (req, res) => { + const {action,itemid} = req.body + if (typeof action == "undefined"){ + return res.json("Send Action Please") + } + if (typeof itemid == "undefined"){ + return res.json("Send Itemid Please") + } + if (req.userdocument.admin == false) { + return res.redirect('/') + } + const item = await items.findOne({ItemId: itemid}) + + if (!item){ + return res.json({status: "error", error: "Send Itemid Please"}) + } + + console.log(action) + + if (action === "deny"){ + item.Hidden = true + item.denied = true + item.markModified("Hidden") + item.markModified("denied") + await item.save() + fs.unlink(path.resolve(path.resolve(__dirname, "../../assets/ugc/itemfile-"+itemid+".rbxm")), (err => { + if (err) console.log(err) + })); + } + if (action === "approve"){ + item.approved = true + item.markModified("approved") + await item.save() + if (item.Type === "Shirts" || item.Type === "Pants"){ + // we also have to approve the associated image + const image = await items.findOne({ItemId: parseInt(itemid)-1}) + image.approved = true + image.markModified("approved") + await image.save() + } + + } + // finish this LMAO pretty ez tho + return res.json({status: "success", message: "Done!"}) +}) + +module.exports = router \ No newline at end of file diff --git a/routes/api/purchase.js b/routes/api/purchase.js new file mode 100644 index 0000000..f463e13 --- /dev/null +++ b/routes/api/purchase.js @@ -0,0 +1,83 @@ +const express = require("express") +const router = express.Router() +const { requireAuth } = require('./../../middleware/authmiddleware') +const bodyParser = require('body-parser') +var numbtest = /^\d+\.?\d*$/; +const items = require('./../../model/item.js') +const User = require('./../../model/user.js') +router.use(bodyParser.json()) + +router.post("/", requireAuth,async (req, res) => { + if (!req.userdocument.discordid) { + return res.json({status: "error", error: "Discord link required for purchasing. Link your discord in the settings panel."}) + } + const {itemid} = req.body + if (typeof itemid == "undefined"){ + return res.json({status: "error", error: "You need sum itemids bozo"}) + } + if (numbtest.test(itemid) == false){ + return res.json({status: "error", error: "You need sum itemids bozo"}) + } + + + const itemdoc = await items.findOne({ItemId: itemid})//.lean() + if (typeof req.userdocument.inventory !== "undefined"){ + // check if user already owns item + for (var v of req.userdocument.inventory){ + if (v.ItemId === itemdoc.ItemId){ + // they already own it + return res.json({status: 'error', error: "You already own this!"}) + } + } + } + if (itemdoc.Type === "Mesh" || itemdoc.Type === "Audio" || itemdoc.Type === "Mesh"){ + return res.json({status: 'error', error: "You can't buy assets."}) + } + + if (itemdoc.Hidden){ + return res.json({status: 'error', error: "You can't buy this."}) + } + + + if (req.userdocument.coins >= itemdoc.Price){ + // has enough money to purcahse item + try{ + User.updateOne({userid: req.userdocument.userid}, { + $set: { + coins: req.userdocument.coins - itemdoc.Price + }, + $push: { + inventory: {Type: itemdoc.Type,ItemId: itemdoc.ItemId, ItemName: itemdoc.Name, Equipped: false} + } + }, + function(err, doc) { + //console.log(err) + }) + // give owner cash + User.updateOne({userid: itemdoc.Creator}, { + $inc: { + coins: itemdoc.Price + } + }, + function(err, doc) { + //console.log(err) + }) + + itemdoc.Sales += 1 + if (!itemdoc.Sales){ + itemdoc.Sales = 1 + } + //console.log(itemdoc.Sales) + itemdoc.markModified('Sales') + await itemdoc.save() + }catch{ + + } + return res.json({status: 'success', message: 'Purchase successful'}) + } + // too poor + return res.json({status: 'error', error: "You don't have enough rocks"}) + +}) + +module.exports = router \ No newline at end of file diff --git a/routes/api/renderthumbnail.js b/routes/api/renderthumbnail.js new file mode 100644 index 0000000..5442061 --- /dev/null +++ b/routes/api/renderthumbnail.js @@ -0,0 +1,249 @@ +const express = require("express") +const router = express.Router() +const rcctalk = require('./../../thumbnailrcctalk') +const rcctalk2018 = require('./../../rcctalk2018') +const fs = require('fs') +const assetrenderscript = fs.readFileSync('assetthumbnailrenderer.lua','utf-8') +var path = require("path"); +const User = require('./../../model/user.js') +const item = require('./../../model/item.js') +var rgx = /^[0-9]*\.?[0-9]*$/; +router.use(express.json({limit: '200mb'})); +const { requireAuth } = require('./../../middleware/authmiddleware.js') +const { grabAuth } = require('./../../middleware/grabauth.js') +const fetch = (...args) => import('node-fetch').then(({default: fetch}) => fetch(...args)); +require('dotenv').config() +const RCC_HOST = process.env.RCC_HOST +const rateLimit = require('express-rate-limit') +const limiter = rateLimit({ + windowMs: 2 * 1000, // 5 seconds + max: 1, // Limit each IP to 1 requests per `window` + standardHeaders: true, // Return rate limit info in the `RateLimit-*` headers + legacyHeaders: false, // Disable the `X-RateLimit-*` headers + handler: (request, response, next, options) =>{ + return response.sendFile(path.resolve("./assets/default.png")) + } +}) + +router.get("/",grabAuth,async (req, res) => { + if (!req.query.id && !req.query.userId) { + return res.status(400) + } + let headshot = false + if (req.query.type === "headshot"){ + headshot = true + } + let id = req.query.id??req.query.userId + + var sanitizedid = id.match(rgx) + + const user = await User.findOne({userid: sanitizedid}).lean() + if (!user) { + return res.json({status: 'error', error: 'User does not exist'}) + } + + +// lets get our file path with sanitized id + let path2=path.resolve(__dirname, "../../assets/userthumbnails/"+sanitizedid+".png") + if (headshot === true){ + path2=path.resolve(__dirname, "../../assets/userthumbnailsheadshots/"+sanitizedid+".png") + } + + fs.access(path2, fs.F_OK,async (err) => { + if (err) { + + + let newrender = await rcctalk2018.OpenRender(sanitizedid,headshot) + if (newrender.error){ + return res.sendFile(path.resolve("./assets/default.png")) + } + newrender = newrender['SOAP-ENV:Envelope']['SOAP-ENV:Body']['ns1:OpenJobResponse']['ns1:OpenJobResult'][0]['ns1:value']._text + + res.writeHead(200, {'Content-Type': 'image/png'}) + + fs.writeFile(path2,newrender,'base64',function(err){ + if (err) { + console.log("error") + } + + }) + return res.end(Buffer.from(newrender, 'base64')) + + // if this timeouts and rcc doesn't return the image feor some reason then send the default fallback + //return res.sendFile(path.resolve("./assets/default.png")) + } + + //file exists + if (req.query.method && req.userdocument && req.userdocument.userid == sanitizedid){ // don't allow unauthenticated users to regenerate avatars and don't allow authenticated users to regenerate other peoples avatars + if (req.query.method === "regenerate"){ + fs.unlink(path2,async function (err) { + if (err){ + console.log(err) + } + + + let newrender = await rcctalk2018.OpenRender(sanitizedid,headshot) + if (newrender.error){ + return res.sendFile(path.resolve("./assets/default.png")) + } + newrender = newrender['SOAP-ENV:Envelope']['SOAP-ENV:Body']['ns1:OpenJobResponse']['ns1:OpenJobResult'][0]['ns1:value']._text + + res.writeHead(200, {'Content-Type': 'image/png'}) + + fs.writeFile(path2,newrender,'base64',function(err){ + if (err) { + console.log("error") + } + + }) + return res.end(Buffer.from(newrender, 'base64')) + + + + }); + } + }else{ + res.sendFile(path.resolve(path2)) + return + } + + + }) + +}) + +router.post("/rcc", (req, res) => { + var ip = req.headers['cf-connecting-ip'] || req.socket.remoteAddress + if (ip == RCC_HOST || ip == "::ffff:"+RCC_HOST) { + const {player, thumbnail} = req.body + let path2=path.resolve(__dirname, "../../assets/userthumbnails/"+player+".png") + fs.writeFile(path2,thumbnail,'base64',function(err){ + if (err) { + console.log("error") + // if writing fails we can still fallback + return res.sendFile(path.resolve("./../../assets/default.png")) + } + // if it succeeds then we can send the userthumbnail + // close the job after + rcctalk.CloseJob("Thumbnailfor"+player) + }) + } +}) + + + + +router.get(["/asset","/asset.ashx"],grabAuth,async (req, res) => { + if (!req.query.id && !req.query.assetid) { + return res.status(400) + } + let id = req.query.id??req.query.assetid + + var sanitizedid = id.match(rgx) + + const user = await item.findOne({ItemId: sanitizedid}).lean() + if (!user) { + return res.json({status: 'error', error: 'Item does not exist'}) + } + if (user.Type === "Audio"){ + return res.sendFile(path.resolve("./assets/images/audio.png")) + } + if (user.Hidden === true){ + // if item isn't supposed to have a thumbnail + return res.sendFile(path.resolve("./assets/moderated.png")) + } + if (user.approved === false && !req.query.nonapproved){ + return res.sendFile(path.resolve("./assets/approval.png")) + } + if (req.query.nonapproved && req?.userdocument?.admin === false){ // we only want admins to be able to see non approved assets anyways + return res.sendFile(path.resolve("./assets/approval.png")) + } + if (req.query.nonapproved && (user.Type === "Pants" || user.Type === "Shirts")){ + sanitizedid -= 1 + return res.sendFile(path.resolve(__dirname, "../../assets/ugc/itemfile-"+sanitizedid+".rbxm")) + } + if (req.query.nonapproved && user.Type === "Video"){ + return res.sendFile(path.resolve(__dirname, "../../assets/ugc/itemfile-"+sanitizedid+".rbxm")) + } + if (user.Type === "Video"){ + return res.sendFile(path.resolve("./assets/video.png")) + } + if (user.Type === "User Ad" || user.Type === "Gamepass"){ + try{ + await fs.promises.access(path.resolve(__dirname, "../../assets/ugc/itemfile-"+sanitizedid+".rbxm"), fs.constants.W_OK) + return res.sendFile(path.resolve(__dirname, "../../assets/ugc/itemfile-"+sanitizedid+".rbxm")) + }catch{ + return res.sendFile(path.resolve("./assets/images/defaultadsky.png")) + } + + } + + +// lets get our file path with sanitized id + let path2=path.resolve(__dirname, "../../assets/ugc/asset-"+sanitizedid+".png") + + fs.access(path2, fs.F_OK,async (err) => { + if (err) { + + + // get our renderscript with the new character app + var newrenderscript = assetrenderscript.replace('local asset = 0','local asset = "'+sanitizedid+'"') + //open a new job for our thumbnail render request + var response = await rcctalk.OpenJob("Thumbnailfor"+sanitizedid,newrenderscript,"120") + if (response['SOAP-ENV:Envelope']['SOAP-ENV:Body']['SOAP-ENV:Fault']){ + // if failed then print out error close job then send a fallback image + //console.dir(response,{ depth: null }) + rcctalk.CloseJob("Thumbnailfor"+sanitizedid) + return res.sendFile(path.resolve("./assets/default.png")) + }else{ + // send image to user + // wait for image to be uploaded by rcc + function check() { + setTimeout(() => { + fs.access(path2, fs.constants.F_OK, error => { + if (error) { + check() + } else { + return res.sendFile(path2) + } + }); + },3000) + } + } + check() + + // if this timeouts and rcc doesn't return the image feor some reason then send the default fallback + return res.sendFile(path.resolve("./assets/default.png")) + } + + res.sendFile(path.resolve(path2)) + return + + + + }) + +}) + + + +router.post("/rccasset", (req, res) => { + var ip = req.headers['cf-connecting-ip'] || req.socket.remoteAddress + if (ip == RCC_HOST || ip == "::ffff:"+RCC_HOST) { + const {asset, thumbnail} = req.body + console.log(asset) + let path2=path.resolve(__dirname, "../../assets/ugc/asset-"+asset+".png") + fs.writeFile(path2,thumbnail,'base64',function(err){ + if (err) { + console.log("error") + // if writing fails we can still fallback + return res.sendFile(path.resolve("./../../assets/default.png")) + } + // if it succeeds then we can send the userthumbnail + // close the job after + rcctalk.CloseJob("Thumbnailforasset"+asset) + }) + } +}) + +module.exports = router \ No newline at end of file diff --git a/routes/api/requestad.js b/routes/api/requestad.js new file mode 100644 index 0000000..ddbfc1c --- /dev/null +++ b/routes/api/requestad.js @@ -0,0 +1,40 @@ +const express = require("express") +const router = express.Router() +const { requireAuth } = require('./../../middleware/authmiddleware') +const bodyParser = require('body-parser') +const catalog = require('./../../model/item.js') +//const path = require('path'); +router.use(bodyParser.json()) +// only supports skyscraper ads for now + +router.get("/",async (req, res) => { + + const activeAdCount = await catalog.countDocuments({ActiveAd: true}) + + //console.log(activeAdCount) + + let random = Math.floor(Math.random() * activeAdCount) + + const Addoc = await catalog.findOne({ActiveAd: true}).skip(random) + if (!Addoc){ + // no ads are running! + return res.json({imageUrl: "/assets/images/defaultadsky.png", redirectUrl: "#", AdID: 0}) + } + + if (Addoc.adstartedtime <= new Date(new Date().getTime() - (24 * 60 * 60 * 1000)).getTime() || Addoc.Hidden){ + // more than 24 hours old invalidate ad OR ad was moderated + Addoc.ActiveAd = false + Addoc.markModified('ActiveAd') + await Addoc.save() + } + let redirectUrl + + if (Addoc.adtype === "game"){ + redirectUrl = "/games/"+Addoc.adredirectid + } + + return res.json({imageUrl: "/api/thumbnailrender/asset?id="+Addoc.ItemId, redirectUrl, AdID: Addoc.ItemId}) + +}) + +module.exports = router \ No newline at end of file diff --git a/routes/api/updategameinfo.js b/routes/api/updategameinfo.js new file mode 100644 index 0000000..7fdcd75 --- /dev/null +++ b/routes/api/updategameinfo.js @@ -0,0 +1,270 @@ +const express = require("express") +const router = express.Router() +const bodyParser = require('body-parser') +const rcc = require('./../../model/rcc.js') +const rcc2018 = require('./../../model/rcc2018.js') +const rcc2020 = require('./../../model/rcc2020.js') +const games = require('./../../model/games.js') +const rcctalk = require('./../../rcctalk') +const rcctalk2018 = require('./../../rcctalk2018') +const User = require('../../model/user.js') +router.use(bodyParser.json()) +require('dotenv').config() +const RCC_HOST = process.env.RCC_HOST + +router.post("/api/updategameinfo", async (req, res) => { + var ip = req.headers['cf-connecting-ip'] || req.socket.remoteAddress + if (ip == RCC_HOST || ip == "::ffff:"+RCC_HOST) { + const {game,players} = req.body + //const instance = await rcc.findOne({PlaceId: game}).lean() + + games.updateOne({idofgame: game}, { + $set: { + numberofplayers: parseInt(players).toString() + } + }, + function(err, doc) { + //console.log(err) + }) + + res.send("good") + } +}) + +router.all(["/api/updategameinfo/updatevisits","/game/placevisit.ashx"], async (req, res) => { + var ip = req.headers['cf-connecting-ip'] || req.socket.remoteAddress + if (ip == RCC_HOST || ip == "::ffff:"+RCC_HOST) { + let {game} = req.body + if (req.query.AssociatedPlaceID){ + game = req.query.AssociatedPlaceID + } + //const instance = await rcc.findOne({PlaceId: game}).lean() + + games.updateOne({idofgame: game}, { + $inc: { + visits: 1 + } + }, + function(err, doc) { + //console.log(err) + }) + + res.send("good") + } +}) + +router.all("/api/updategameinfo/gameloaded", async (req, res) => { + var ip = req.headers['cf-connecting-ip'] || req.socket.remoteAddress + if (ip == RCC_HOST || ip == "::ffff:"+RCC_HOST) { + let {game} = req.body + const gamedoc = await games.findOne({idofgame: game}).lean() + if (gamedoc.version === "2020"){ + + rcc2020.updateOne({PlaceId: game}, { + $set: { + Status: 2 + } + }, + function(err, doc) { + //console.log(err) + }) + + } + if (gamedoc.version === "2018"){ + + rcc2018.updateOne({PlaceId: game}, { + $set: { + Status: 2 + } + }, + function(err, doc) { + //console.log(err) + }) + + } + if (gamedoc.version === "2016"){ + + rcc.updateOne({PlaceId: game}, { + $set: { + Status: 2 + } + }, + function(err, doc) { + //console.log(err) + }) + + } + + + res.send("good") + } +}) + + +router.post("/api/updategameinfo/closejob", async (req, res) => { + var ip = req.headers['cf-connecting-ip'] || req.socket.remoteAddress + if (ip == RCC_HOST || ip == "::ffff:"+RCC_HOST) { + console.log("closed") + let {game} = req.body + if(typeof game === 'string'){ + game = game.replace('game','') + } + //const instance = await rcc.findOne({PlaceId: game}).lean() + games.updateOne({idofgame: game}, { + $set: { + numberofplayers: "0" + } + }, + function(err, doc) { + //console.log(err) + }) + games.updateOne({idofgame: game}, { + $set: { + players: [] + } + }, + function(err, doc) { + //console.log(err) + }) + const gamedoc = await games.findOne({idofgame: game}).lean() + try{ + if (gamedoc.version === "2018"){ + await rcc2018.deleteOne({PlaceId: game}) + rcctalk2018.CloseJob("game"+game) + } + }catch{} + try{ + if (gamedoc.version === "2020"){ + await rcc2020.deleteOne({PlaceId: game}) + rcctalk2018.CloseJob("game"+game) + } + }catch{} + try{ + if (gamedoc.version === "2016"){ + await rcc.deleteOne({PlaceId: game}) + + rcctalk.CloseJob("game"+game) + } + }catch{} + +res.send("good") + } +}) + +router.get("/api/updategameinfo/closealljobs", async (req, res) => { + var ip = req.headers['cf-connecting-ip'] || req.socket.remoteAddress + if (ip == RCC_HOST || ip == "::ffff:"+RCC_HOST) { + console.log("closed all") + //const instance = await rcc.findOne({PlaceId: game}).lean() + + await rcc.deleteMany({}) + games.updateMany({version: "2016"}, { + $set: { + numberofplayers: "0" + } + }, + function(err, doc) { + //console.log(err) + }) + games.updateMany({version: "2016"}, { + $set: { + players: [] + } + }, + function(err, doc) { + //console.log(err) + }) + rcctalk.CloseAllJobs() +res.send("good") + } +}) + +router.all(["/api/updategameinfo/updatepresence"], async (req, res) => { + var ip = req.headers['cf-connecting-ip'] || req.socket.remoteAddress + if (ip == RCC_HOST || ip == "::ffff:"+RCC_HOST) { + let {game,player,name,action} = req.body + game = await games.findOne({idofgame: game}) + if (action === "joining" || action === "connect"){ + const updatedcount = parseFloat(game.numberofplayers)+1 + games.updateOne({idofgame: game.idofgame}, { + $push: { + players: {userid: player, name: name} + }, + $set: { + numberofplayers: updatedcount.toString() + } + }, + function(err, doc) { + //console.log(err) + }) + User.updateOne({userid: player}, { + $set: { + status: JSON.stringify({status: "Playing "+game.nameofgame,id: game.idofgame}) + }, + $addToSet: { + recentlyplayed: {id: game.idofgame} + }, + }, + function(err, doc) { + //console.log(err) + }) + User.updateOne({userid: player}, { + $set: { + status: JSON.stringify({status: "Playing "+game.nameofgame,id: game.idofgame}) + }, + $push: { + recentlyplayed: {$each: [], $slice: -10}// limit for recently played is 10 so slice anything older than that + }, + }, + function(err, doc) { + //console.log(err) + }) + if (game.version === "2018" || game.version === "2020"){ + rcctalk2018.RenewLease("game"+game.idofgame,"69530318916789546987353800") // if someone joins we want to renew the lease so it doesn't expire + // mostly just for stopping people from spamming urls and keeping games loaded + } + if (game.version === "2020"){ // 2020 doesn't do visits for some reason + games.updateOne({idofgame: game.idofgame}, { + $inc: { + visits: 1 + } + }, + function(err, doc) { + //console.log(err) + }) + } + + + } + + if (action === "leaving"|| action === "disconnect"){ + const updatedcount = parseFloat(game.numberofplayers)-1 + games.updateOne({idofgame: game.idofgame}, { + $pull: { + players: {userid: player, name: name} + }, + $set: { + numberofplayers: updatedcount.toString() + } + }, + function(err, doc) { + //console.log(err) + }) + + + User.updateOne({userid: player}, { + $set: { + status: JSON.stringify({status: "Offline"}) + } + }, + function(err, doc) { + //console.log(err) + }) + } + + +res.send("good") + } +}) + +module.exports = router \ No newline at end of file diff --git a/routes/api/updateusermembership.js b/routes/api/updateusermembership.js new file mode 100644 index 0000000..831ff99 --- /dev/null +++ b/routes/api/updateusermembership.js @@ -0,0 +1,57 @@ +const express = require("express") +const router = express.Router() +const user = require('./../..//model/user.js') +const { requireAuth } = require('./../../middleware/authmiddleware') + +router.post("/buymembership",requireAuth,async (req, res) => { + + if (req.userdocument?.membership != "None"){ + return res.json({status:"error",error:"You already have membership!"}) + } + + if (req.userdocument.coins >= 200){ + + req.userdocument.coins -= 200 + req.userdocument.membership = "BuildersClub" + + req.userdocument.markModified('coins') + req.userdocument.markModified('membership') + await req.userdocument.save() + + return res.json({status:"success",message:"You have builders club now!"}) + + } + + return res.json({status: "error",error:"Not enough rocks!"}) +}) + +router.post("/:id",async (req, res) => { + var id = req.params.id; + if (isNaN(parseFloat(id)) === true){ + return res.json({error: true}) + } + + var key = req.query.key; + if (isNaN(parseFloat(key)) === true){ + return res.json({error: true}) + } + if (key !== "33808292371407362400921749206284699231416675010973"){ + return res.json({error: true}) + } + + const response = await user.findOne({userid: id}) + + if (!response){ + console.log(response) + return res.json({error: true}) + } + + response.membership = req.query.newmembership + response.markModified('membership') + await response.save() + return res.json({error: false}) + + +}) + +module.exports = router \ No newline at end of file diff --git a/routes/api/userinfo.js b/routes/api/userinfo.js new file mode 100644 index 0000000..afc09d5 --- /dev/null +++ b/routes/api/userinfo.js @@ -0,0 +1,116 @@ +const express = require("express") +const router = express.Router() +const user = require('./../..//model/user.js') +const games = require("./../../model/games.js") +const RelativeTime = require("@yaireo/relative-time") +const relativeTime = new RelativeTime() + +router.get("/:id",async (req, res) => { + var id = req.params.id; + if (isNaN(parseFloat(id)) === true){ + return res.json({error: true}) + } + const response = await user.findOne({userid: id}).lean() + + if (!response){ + return res.json({error: true, message: "404"}) + } + + let status = {status: "Offline"} + if (response.status){ + status = JSON.parse(response.status) + } + const actualTimeMilliseconds = new Date().getTime() + if (response.timesincelastrequest && actualTimeMilliseconds - response.timesincelastrequest >= 60000 * 3 /*3 minutes*/ && status && status.status.includes("Playing") === false || response.timesincelastrequest && actualTimeMilliseconds - response.timesincelastrequest >= 60000 * 3 /*3 minutes*/ && !status){ + // been 3 minutes since last request mark as offline make sure we don't mark them offline while they are playing a game + status.status = "Offline" + response.status = JSON.stringify(status) + status = JSON.parse(response.status) + } + if (response.timesincelastrequest && actualTimeMilliseconds - response.timesincelastrequest <= 60000 * 3 /*3 minutes*/ && status && status.status.includes("Playing") === false || response.timesincelastrequest && actualTimeMilliseconds - response.timesincelastrequest <= 60000 * 3 /*3 minutes*/ && !status){ + status.status = "Online" + response.status = JSON.stringify(status) + status = JSON.parse(response.status) + } + + return res.json({error:false, userinfo: {joindate: response.joindate, joindateepoch:new Date(response._id.getTimestamp()).getTime(), lastonline: relativeTime.from(new Date(response.timesincelastrequest)), lastonlineepoch: response.timesincelastrequest, coins: response.coins, username: response.username,userid: response.userid,friends: response.friends, admin: response.admin, discordid: response.discordid, membership: response.membership, inventory: response.inventory, bio: response.bio, status,followers: response.followers?.length, css: response.css, aboutme: response.aboutme}}) + + +}) + +router.get("/:id/creations",async (req, res) => { + var id = req.params.id; + if (isNaN(parseFloat(id)) === true){ + return res.json({error: true}) + } + const response = await user.findOne({userid: id}).lean() + + if (!response){ + return res.status(404).json({error: true, message: "Not found"}) + } + + const gameresponse = await games.find({useridofowner: id}).lean().select(['idofgame', 'version', 'nameofgame', 'numberofplayers', 'visits', 'useridofowner']) + + return res.json(gameresponse) + + +}) + +router.get("/:id/visits",async (req, res) => { + var id = req.params.id; + if (isNaN(parseFloat(id)) === true){ + return res.json({error: true}) + } + const response = await user.findOne({userid: id}).lean() + + if (!response){ + return res.status(404).json({error: true, message: "Not found"}) + } + + const visits = await games.aggregate([ + { $match: { useridofowner: parseFloat(id) } }, + { + "$group": { + "_id": null, + "visits": { + '$sum': "$visits" + } + } + } + ]) + + return res.json({error: false,visits: visits[0]?.visits || 0}) + + +}) + + +router.get("/usernametoid/:id",async (req, res) => { + + var id = req.params.id; + + const response = await user.findOne({username: {'$regex': id,$options:'i'}}).lean() + + if (!response){ + console.log(response) + return res.json({error: true}) + } + + return res.json({error:false, userid: response.userid}) +}) + +router.get("/discordidtouserid/:id",async (req, res) => { + + var id = req.params.id; + + const response = await user.findOne({discordid: id}).lean() + + if (!response){ + console.log(response) + return res.json({error: true}) + } + + return res.json({error:false, userid: response.userid}) +}) + +module.exports = router \ No newline at end of file diff --git a/routes/api/verify.js b/routes/api/verify.js new file mode 100644 index 0000000..ca6d62e --- /dev/null +++ b/routes/api/verify.js @@ -0,0 +1,33 @@ +const express = require("express") +const router = express.Router() +const { requireAuth } = require('./../../middleware/authmiddleware') +const games = require('./../../model/games.js') +const bodyParser = require('body-parser') +router.use(bodyParser.json()) + +router.post("/", requireAuth,async (req, res) => { + const {gameid} = req.body + if (typeof gameid == "undefined"){ + return res.json("Send gameid Please") + } + if (req.userdocument.admin == false) { + return res.redirect('/') + } + try{ + games.updateOne({idofgame: gameid}, { + $set: { + featured: true + } + }, + function(err, doc) { + //console.log(err) + }) + }catch(err){ + console.log(err) + } + + return res.json({status: 'ok'}) + +}) + +module.exports = router \ No newline at end of file diff --git a/routes/assets.js b/routes/assets.js new file mode 100644 index 0000000..32d30e0 --- /dev/null +++ b/routes/assets.js @@ -0,0 +1,130 @@ +const { response } = require("express") +const express = require("express") +const router = express.Router() +const fs = require('fs') +var path = require('path'); +const crypto = require('crypto'); +require('dotenv').config() +const RCC_HOST = process.env.RCC_HOST +const User = require('../model/user.js') +const catalog = require("../model/item") +const games = require('./../model/games.js') +const fetch = (...args) => import('node-fetch').then(({default: fetch}) => fetch(...args)); + +//redirect hmmmm +var rgx = /^[0-9]*\.?[0-9]*$/; +router.get("/",async (req, res) => { +if (req.query.name){ + const user = await User.findOne({userid: req.query.name}).lean() + if (!user) { + return res.json({status: 'error', error: 'User not found!'}) + } + + if (req.query.rcc){ + var empty = [] + for (var key of user.colors) { + empty.push(key.value) + } + return res.json(empty) + } + + + res.type('application/xml'); + var colorsxml = ` + null + nil + + + `+user.colors.find(x => x.name === 'Head').value+` + `+user.colors.find(x => x.name === 'Left Arm').value+` + `+user.colors.find(x => x.name === 'Left Leg').value+` + Body Colors + `+user.colors.find(x => x.name === 'Right Arm').value+` + `+user.colors.find(x => x.name === 'Right Leg').value+` + `+user.colors.find(x => x.name === 'Torso').value+` + true + + + ` + + return res.send(colorsxml) +} + if (req.query.method || /*req.headers?.["requester"] === "Server" &&*/ req.headers?.["assettype"] === "Place"){ + var ip = req.headers['cf-connecting-ip'] || req.socket.remoteAddress + console.log(ip) + var sanitizedid = req.query.id.match(rgx) + if (ip === RCC_HOST || ip === "::ffff:"+RCC_HOST){ + fs.access("./assets/ugc/gamefile-"+sanitizedid+".rbxl", fs.F_OK, (err) => { + if (err) { + + res.status(404).send("not found") + return + } + + + //file exists + res.sendFile(path.resolve("./assets/ugc/gamefile-"+sanitizedid+".rbxl")) + return + }) + } + }else{ + if (!req.query.id){ + req.query.id = req.query.assetversionid + } + if (isNaN(parseFloat(req.query.id)) === true){ + res.writeHead(302, {'Location': 'https://assetdelivery.roblox.com/v1/asset?id=' + req.query.id}); + return res.end(); + } + var sanitizedid = parseFloat(req.query.id) + const response = await catalog.findOne({ItemId: sanitizedid}).lean() + var ip = req.headers['cf-connecting-ip'] || req.socket.remoteAddress + if (response?.approved === false && (ip != RCC_HOST || ip === "::ffff:"+RCC_HOST) && !req.query.nonapproved){ + return res.status(401).end() + } + //this will only allow numbers in our system so that we don't allow nodejs to expose our whole server filesystem + fs.access("./assets/ugc/itemfile-"+sanitizedid+".rbxm", fs.F_OK,async (err) => { + //console.log("./assets/ugc/itemfile-"+sanitizedid+".rbxm") + if (err) { + if (req.headers?.['user-agent']?.includes("Android") === true || req.headers?.['user-agent']?.includes("iPhone") === true){ + const response = await fetch('https://assetdelivery.roblox.com/v1/assetId/' + req.query.id,{headers: {'User-Agent': 'Roblox/WinInet'}}); + const data = await response.json(); + if (data){ + if (data.location){ + res.writeHead(302, {'Location': data.location}); + res.end(); + return + } + } + } + if (req.query.id === "507766666"){ // 2018 r15 animation use legacy + res.writeHead(302, {'Location': 'https://assetdelivery.roblox.com/v1/asset?id=' + req.query.id + '&version=3'}); + return res.end() + } + if (req.query.id === "507766388"){ + res.writeHead(302, {'Location': 'https://assetdelivery.roblox.com/v1/asset?id=' + req.query.id + '&version=2'}); + return res.end() + } + if (req.query.id === "62633901"){ + return res.sendFile(path.resolve('./assets/ugc/common/itemfile-'+sanitizedid+".rbxm")) + } + res.writeHead(302, {'Location': 'https://assetdelivery.roblox.com/v1/asset?id=' + req.query.id}); + res.end(); + return + } + + res.sendFile(path.resolve('./assets/ugc/itemfile-'+sanitizedid+".rbxm")) + return + + + + + }) + } + + +}) + + + + +module.exports = router \ No newline at end of file diff --git a/routes/avatar.js b/routes/avatar.js new file mode 100644 index 0000000..86a203b --- /dev/null +++ b/routes/avatar.js @@ -0,0 +1,20 @@ +const express = require("express") +const router = express.Router() +const { requireAuth } = require('./../middleware/authmiddleware') +const User = require('./../model/user.js') + +router.post("/updateavatartype", requireAuth,async (req, res) => { + let newavatartype + if (req.userdocument?.avatartype === "R15"){ + newavatartype = "R6" + }else{ + newavatartype = "R15" + } + req.userdocument.avatartype = newavatartype + req.userdocument.markModified('avatartype') + await req.userdocument.save() + return res.json({status: "success", message: "Done!"}) + +}) + +module.exports = router \ No newline at end of file diff --git a/routes/catalog.js b/routes/catalog.js new file mode 100644 index 0000000..4c18242 --- /dev/null +++ b/routes/catalog.js @@ -0,0 +1,101 @@ +const express = require("express") +const router = express.Router() +const { requireAuth } = require('./../middleware/authmiddleware') +const User = require('./../model/item.js') +const bodyParser = require('body-parser') +router.use(bodyParser.json()) + +router.post("/fetch", async (req, res) => { + const resultsPerPage = 30 + let page = req.body.page ?? 0 + if (page != 0){ + page-=1 + } + let {filter, sort} = req.body + //console.log(req.body) + try{ + if (filter === "Best Selling"){ + if (sort != "All"){ + response = await User.find({Type: sort,Hidden: {$exists:false}}).limit(resultsPerPage).skip(0+parseFloat(page)*resultsPerPage).sort({Sales: "descending"}).lean().select(['-_id']) + responsecount = await User.countDocuments({Type: sort, Hidden: {$exists:false}}) + } + if (sort === "All"){ + response = await User.find({Hidden: {$exists:false}, Type: { $ne: "User Ad" } }).limit(resultsPerPage).skip(0+parseFloat(page)*resultsPerPage).sort({Sales: "descending"}).lean().select(['-_id']) + responsecount = await User.countDocuments({Hidden: {$exists:false}, Type: { $ne: "User Ad" }}) + } + }else{ + if (sort != "All"){ + response = await User.find({Type: sort, Hidden: {$exists:false}}).limit(resultsPerPage).skip(0+parseFloat(page)*resultsPerPage).lean().select(['-_id']) + responsecount = await User.countDocuments({Type: sort, Hidden: {$exists:false}}) + } + if (sort === "All"){ + response = await User.find({Hidden: {$exists:false}, Type: { $ne: "User Ad" }}).limit(resultsPerPage).skip(0+parseFloat(page)*resultsPerPage).lean().select(['-_id']) + responsecount = await User.countDocuments({Hidden: {$exists:false}, Type: { $ne: "User Ad" }}) + } + } + + //console.log(response.length) + res.json({data: response, pages: Math.ceil(Math.max(responsecount/resultsPerPage, 1))}) + } catch (error) { + res.json({status: "error", error:"idk"}) + } + +}) + + +router.get('/iteminfo/:id', async (req, res) => { + var id = req.params.id; + + if (isNaN(parseFloat(id)) === true){ + return res.json({status: "error", error: "Must be number"}) + } + const response = await User.findOne({ItemId: id}).lean() + + if (!response){ + return res.json({status: "error", error: "Not found"}) + } + return res.json({error: false, iteminfo: response}) + +}); + +router.post("/search", async (req, res) => { + const resultsPerPage = 30 + let page = req.body.page ?? 0 + if (page != 0){ + page-=1 + } + let {filter, sort, searchquery} = req.body + function escapeRegex(text) { + return text?.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&"); + } + const regex = new RegExp(escapeRegex(searchquery), 'gi'); + //console.log(req.body) + try{ + if (filter === "Best Selling"){ + if (sort != "All"){ + response = await User.find({Name: regex,Type: sort,Hidden: {$exists:false}}).limit(resultsPerPage).skip(0+parseFloat(page)*resultsPerPage).sort({Sales: "descending"}).lean().select(['-_id']) + responsecount = await User.countDocuments({Type: sort, Hidden: {$exists:false}}) + } + if (sort === "All"){ + response = await User.find({Name: regex,Hidden: {$exists:false}}).limit(resultsPerPage).skip(0+parseFloat(page)*resultsPerPage).sort({Sales: "descending"}).lean().select(['-_id']) + responsecount = await User.countDocuments({Hidden: {$exists:false}}) + } + }else{ + if (sort != "All"){ + response = await User.find({Name: regex,Type: sort, Hidden: {$exists:false}}).limit(resultsPerPage).skip(0+parseFloat(page)*resultsPerPage).lean().select(['-_id']) + responsecount = await User.countDocuments({Type: sort, Hidden: {$exists:false}}) + } + if (sort === "All"){ + response = await User.find({Name: regex,Hidden: {$exists:false}}).limit(resultsPerPage).skip(0+parseFloat(page)*resultsPerPage).lean().select(['-_id']) + responsecount = await User.countDocuments({Hidden: {$exists:false}}) + } + } + + //console.log(response.length) + res.json({data: response, pages: Math.ceil(Math.max(responsecount/resultsPerPage, 1))}) + } catch (error) { + res.json({status: "error", error:"idk"}) + } +}) + +module.exports = router \ No newline at end of file diff --git a/routes/clientsettings.js b/routes/clientsettings.js new file mode 100644 index 0000000..6cf8e0e --- /dev/null +++ b/routes/clientsettings.js @@ -0,0 +1,16 @@ +const express = require("express") +const router = express.Router() + +/*router.get("/Setting/QuietGet/RCCService", (req, res) => { + res.json() +})*/ + +router.get(["/Setting/QuietGet/ClientAppSettings","//Setting/QuietGet/ClientSharedSettings","/Setting/QuietGet/ClientSharedSettings","/Setting/QuietGet/RCCService","/Setting/QuietGet/AndroidAppSettings","/Setting/QuietGet/iOSAppSettings","/Setting/QuietGet/StudioAppSettings"], (req, res) => { + return res.json({ "FFlagNewPlayerListScript": "True", "FFlagCoreScriptShowVisibleAgeV2": "False", "DFFlagFindFirstChildOfClassEnabled": "True", "FFlagStudioCSGAssets": "True", "FFlagCSGLoadBlocking": "False", "FFlagCSGPhysicsLevelOfDetailEnabled": "True", "FFlagFormFactorDeprecated": "False", "FFlagFontSmoothScalling": "True", "FFlagAlternateFontKerning": "True", "FFlagFontSourceSans": "True", "FFlagRenderNewFonts": "True", "FFlagDMFeatherweightEnabled": "True", "FFlagRenderFeatherweightEnabled": "True", "FFlagRenderFeatherweightUseGeometryGenerator": "True", "FFlagScaleExplosionLifetime": "True", "FFlagEnableNonleathalExplosions": "True", "DFFlagHttpCurlHandle301": "True", "FFlagSearchToolboxByDataModelSearchString": "True", "FFlagClientABTestingEnabled": "False", "FFlagStudioSmoothTerrainForNewPlaces": "True", "FFlagUsePGSSolver": "True", "FFlagSimplifyKeyboardInputPath": "False", "FFlagNewInGameDevConsole": "True", "FFlagTextFieldUTF8": "True", "FFlagTypesettersReleaseResources": "True", "FFlagLuaBasedBubbleChat": "True", "FFlagUseCanManageApiToDetermineConsoleAccess": "False", "FFlagConsoleCodeExecutionEnabled": "True", "DFFlagCustomEmitterInstanceEnabled": "True", "FFlagCustomEmitterRenderEnabled": "True", "FFlagCustomEmitterLuaTypesEnabled": "True", "FFlagStudioInSyncWebKitAuthentication": "False", "FFlagGlowEnabled": "True", "FFlagUseNewAppBridgeInputWindows": "False", "DFFlagUseNewFullscreenLogic": "True", "FFlagRenderMaterialsOnMobile": "True", "FFlagMaterialPropertiesEnabled": "True", "FFlagSurfaceLightEnabled": "True", "FFlagStudioPropertyErrorOutput": "True", "DFFlagUseR15Character": "True", "DFFlagEnableHipHeight": "True", "DFFlagUseStarterPlayerCharacter": "True", "DFFlagFilteringEnabledDialogFix": "True", "FFlagCSGMeshColorToolsEnabled": "True", "FFlagStudioEnableGameAnimationsTab": "True", "DFFlagScriptExecutionContextApi": "True", "FFlagStudioVariableIntellesense": "True", "FFlagLuaDebugger": "True", "FFlagUseUserListMenu": "True", "FFlagEnableSetCoreTopbarEnabled": "True", "FFlagPlayerDropDownEnabled": "True", "FFlagSetCoreMoveChat": "True", "FFlagSetCoreDisableChatBar": "True", "FFlagGraphicsGL3": "True", "DFFlagUserUseLuaVehicleController": "True", "FFlagTextBoxUnicodeAware": "True", "FFlagLetLegacyScriptsWork": "True", "FFlagDep": "True", "DFFlagDisableBackendInsertConnection": "True", "FFlagPhysicsAnalyzerEnabled": "True", "DFFlagGetGroupsAsyncEnabled": "True", "DFFlagGetFocusedTextBoxEnabled": "True", "DFFlagTextBoxIsFocusedEnabled": "True", "DFFlagGetCharacterAppearanceEnabled": "True", "FFlagNewLayoutAndConstraintsEnabled": "True", "GoogleAnalyticsAccountPropertyID": "UA-43420590-3", "GoogleAnalyticsAccountPropertyIDPlayer": "UA-43420590-14", "AllowVideoPreRoll": "True", "FLogAsserts": "0", "FLogCloseDataModel": "3", "CaptureQTStudioCountersEnabled": "True", "CaptureMFCStudioCountersEnabled": "True", "CaptureCountersIntervalInMinutes": "5", "FLogServiceVectorResize": "4", "FLogServiceCreation": "4", "AxisAdornmentGrabSize": "12", "FFlagProcessAllPacketsPerStep": "True", "FFlagUS14116": "True", "FFlagBlockBlockNarrowPhaseRefactor": "True", "FFlagEnableRubberBandSelection": "True", "FFlagQtStudioScreenshotEnabled": "True", "FFlagFixNoPhysicsGlitchWithGyro": "True", "FLogFullRenderObjects": "0", "PublishedProjectsPageHeight": "535", "PublishedProjectsPageUrl": "/ide/publish", "StartPageUrl": "/ide/welcome", "FFlagOpenNewWindowsInDefaultBrowser": "True", "FFlagOnScreenProfiler": "True", "FFlagInitializeNewPlace": "True", "PrizeAssetIDs": "", "PrizeAwarderURL": "/ostara/boon", "MinNumberScriptExecutionsToGetPrize": "500", "FFlagDebugCrashEnabled": "False", "FLogHangDetection": "3", "FFlagCharAnimationStats": "False", "FFlagRenderOpenGLForcePOTTextures": "True", "FFlagUseNewCameraZoomPath": "True", "FFlagQTStudioPublishFailure": "True", "ExcludeContactWithInteriorTerrainMinusYFace": "True", "FFlagFixUphillClimb": "True", "FFlagUseAveragedFloorHeight": "True", "PublishedProjectsPageWidth": "950", "FFlagRenderFastClusterEverywhere": "True", "FLogPlayerShutdownLuaTimeoutSeconds": "1", "FFlagQtFixToolDragging": "True", "FFlagSelectPartOnUndoRedo": "True", "FFlagStatusBarProgress": "True", "FFlagStudioCheckForUpgrade": "True", "FFlagStudioInsertModelCounterEnabled": "True", "FFlagStudioAuthenticationFailureCounterEnabled": "True", "FFlagRenderCheckTextureContentProvider": "True", "FFlagRenderLightGridEnabled": "True", "FFlagStudioLightGridAPIVisible": "True", "FFlagBetterSleepingJobErrorComputation": "True", "FLogDXVideoMemory": "4", "FFlagRenderNoLegacy": "True", "FFlagStudioLightGridOnForNewPlaces": "True", "FFlagPhysicsSkipRedundantJoinAll": "True", "FFlagTerrainOptimizedLoad": "True", "FFlagTerrainOptimizedStorage": "True", "FFlagTerrainOptimizedCHS": "True", "FFlagRenderGLES2": "True", "FFlagStudioMacAddressValidationEnabled": "True", "FFlagDoNotPassSunkEventsToPlayerMouse": "True", "FFlagQtAutoSave": "True", "FFlagRenderLoopExplicit": "True", "FFlagStudioUseBinaryFormatForPlay": "True", "FFlagPhysicsRemoveWorldAssemble_US16512": "True", "FFlagNativeSafeChatRendering": "True", "FFlagRenderNewMegaCluster": "True", "FFlagAutoJumpForTouchDevices": "True", "FLogOutlineBrightnessMin": "50", "FLogOutlineBrightnessMax": "160", "FLogOutlineThickness": "40", "FFlagDE5511FixEnabled": "True", "FFlagDE4423Fixed": "True", "FFlagSymmetricContact": "True", "FFlagLocalMD5": "True", "FFlagStudioCookieParsingDisabled": "False", "FFlagLastWakeTimeSleepingJobError": "True", "FFlagPhysicsAllowAutoJointsWithSmallParts_DE6056": "True", "FFlagPhysicsLockGroupDraggerHitPointOntoSurface_DE6174": "True", "FFlagOutlineControlEnabled": "True", "FFlagAllowCommentedScriptSigs": "True", "FFlagDataModelUseBinaryFormatForSave": "True", "FFlagStudioUseBinaryFormatForSave": "True", "FFlagDebugAdornableCrash": "True", "FFlagOverlayDataModelEnabled": "True", "DFFlagFixInstanceParentDesyncBug": "True", "FFlagPromoteAssemblyModifications": "False", "DFFlagCreateHumanoidRootNode": "True", "FFlagStudioCookieDesegregation": "True", "FFlagResponsiveJump": "True", "FFlagGoogleAnalyticsTrackingEnabled": "True", "FFlagNoCollideLadderFilter": "True", "FFlagFlexibleTipping": "True", "FFlagUseStrongerBalancer": "True", "FFlagClampControllerVelocityMag": "True", "DFFlagUseSaferChatMetadataLoading": "True", "FFlagSinkActiveGuiObjectMouseEvents": "False", "FLogLuaBridge": "2", "DFFlagPromoteAssemblyModifications": "True", "FFlagDeferredContacts": "True", "FFlagFRMUse60FPSLockstepTable": "True", "FFlagFRMAdjustForMultiCore": "True", "FFlagPhysics60HZ": "True", "FFlagQtRightClickContextMenu": "True", "FFlagUseTopmostSettingToBringWindowToFront": "True", "FFlagNewLightAPI": "True", "FFlagRenderLightGridShadows": "True", "FFlagRenderLightGridShadowsSmooth": "True", "DFFlagSanitizeKeyframeUrl": "True", "DFFlagDisableGetKeyframeSequence": "False", "FFlagCreateServerScriptServiceInStudio": "True", "FFlagCreateServerStorageInStudio": "True", "FFlagCreateReplicatedStorageInStudio": "True", "FFlagFilterEmoteChat": "True", "DFFlagUseCharacterRootforCameraTarget": "True", "FFlagImageRectEnabled": "True", "FFlagNewWaterMaterialEnable": "True", "DFFlagUserHttpAPIEnabled": "True", "DFIntUserHttpAccessUserId0": "0", "FFlagUserHttpAPIVisible": "True", "FFlagCameraChangeHistory": "True", "FFlagDE4640Fixed": "True", "FFlagShowStreamingEnabledProp": "True", "FFlagOptimizedDragger": "True", "FFlagRenderNewMaterials": "True", "FFlagRenderAnisotropy": "True", "FFlagStudioInitializeViewOnPaint": "True", "DFFlagPartsStreamingEnabled": "True", "FFlagStudioLuaDebugger": "True", "FFlagStudioLocalSpaceDragger": "True", "FFlagGuiRotationEnabled": "True", "FFlagDataStoreEnabled": "True", "DFFlagDisableTeleportConfirmation": "True", "DFFlagAllowTeleportFromServer": "True", "DFFlagNonBlockingTeleport": "True", "FFlagD3D9CrashOnError": "False", "FFlagRibbonBarEnabled": "True", "SFFlagInfiniteTerrain": "True", "FFlagStudioScriptBlockAutocomplete": "True", "FFlagRenderFixAnchoredLag": "True", "DFFlagAllowAllUsersToUseHttpService": "True", "GoogleAnalyticsAccountPropertyIDClient": "", "FFlagSurfaceGuiVisible": "True", "FFlagStudioIntellesenseEnabled": "True", "FFlagAsyncPostMachineInfo": "True", "FFlagModuleScriptsVisible": "True", "FFlagModelPluginsEnabled": "True", "FFlagGetUserIdFromPluginEnabled": "True", "FFlagStudioPluginUIActionEnabled": "True", "DFFlagRemoveAdornFromBucketInDtor": "True", "FFlagRapidJSONEnabled": "True", "DFFlagDE6959Fixed": "True", "DFFlagScopedMutexOnJSONParser": "True", "FFlagSupressNavOnTextBoxFocus": "True", "DFFlagExplicitPostContentType": "True", "DFFlagAddPlaceIdToAnimationRequests": "True", "FFlagCreatePlaceEnabled": "True", "DFFlagClientAdditionalPOSTHeaders": "True", "FFlagEnableAnimationExport": "True", "DFFlagAnimationAllowProdUrls": "True", "FFlagGetUserIDFromPluginEnabled": "True", "FFlagStudioContextualHelpEnabled": "True", "FFlagLogServiceEnabled": "True", "FFlagQtPlaySoloOptimization": "True", "FFlagStudioBuildGui": "True", "DFFlagListenForZVectorChanges": "True", "DFFlagUserInputServiceProcessOnRender": "True", "FFlagDE7421Fixed": "True", "FFlagStudioExplorerActionsEnabledInScriptView": "True", "FFlagHumanoidNetworkOptEnabled": "False", "DFFlagEnableNPCServerAnimation": "True", "DFFlagDataStoreUseUForGlobalDataStore": "True", "DFFlagDataStoreAllowedForEveryone": "True", "DFFlagBadTypeOnConnectErrorEnabled": "True", "FFlagStudioRemoveUpdateUIThread": "True", "FFlagPhysicsSkipUnnecessaryContactCreation": "False", "FFlagUseNewHumanoidCache": "True", "FFlagSecureReceiptsBackendEnabled": "True", "FFlagOrderedDataStoreEnabled": "True", "FFlagStudioLuaDebuggerGA": "True", "FFlagNPSSetScriptDocsReadOnly": "True", "FFlagRDBGHashStringComparison": "True", "FFlagStudioDebuggerVisitDescendants": "True", "FFlagDeprecateScriptInfoService": "True", "FFlagIntellisenseScriptContextDatamodelSearchingEnabled": "True", "FFlagSecureReceiptsFrontendEnabled": "True", "DFFlagCreatePlaceEnabledForEveryone": "True", "FFlagCreatePlaceInPlayerInventoryEnabled": "True", "DFFlagAddRequestIdToDeveloperProductPurchases": "True", "DFFlagUseYPCallInsteadOfPCallEnabled": "True", "FFlagStudioMouseOffsetFixEnabled": "True", "DFFlagPlaceValidation": "True", "FFlagReconstructAssetUrl": "True", "FFlagUseNewSoundEngine": "True", "FIntMinMillisecondLengthForLongSoundChannel": "5000", "FFlagStudioHideInsertedServices": "True", "FFlagStudioAlwaysSetActionEnabledState": "True", "FFlagRenderNew": "True", "FIntRenderNewPercentWin": "100", "FIntRenderNewPercentMac": "100", "FLogGraphics": "6", "DFFlagDisallowHopperServerScriptReplication": "True", "FFlagInterpolationFix": "False", "FFlagHeartbeatAt60Hz": "False", "DFFlagFixProcessReceiptValueTypes": "True", "DFFlagPhysicsSkipUnnecessaryContactCreation": "True", "FFlagStudioLiveCoding": "True", "FFlagPlayerHumanoidStep60Hz": "True", "DFFlagCrispFilteringEnabled": "False", "SFFlagProtocolSynchronization": "True", "FFlagUserInputServicePipelineStudio": "True", "FFlagUserInputServicePipelineWindowsClient": "True", "FFlagUserInputServicePipelineMacClient": "True", "FFlagStudioKeyboardMouseConfig": "True", "DFFlagLogServiceEnabled": "True", "DFFlagLoadAnimationsThroughInsertService": "True", "FFlagFRMFogEnabled": "True", "FLogBrowserActivity": "3", "DFFlagPhysicsPacketAlwaysUseCurrentTime": "True", "FFlagFixedStudioRotateTool": "True", "FFlagRibbonBarEnabledGA": "True", "FFlagRenderSafeChat": "False", "DFFlagPhysicsAllowSimRadiusToDecreaseToOne": "True", "DFFlagPhysicsAggressiveSimRadiusReduction": "True", "DFFlagLuaYieldErrorNoResumeEnabled": "True", "DFFlagEnableJointCache": "False", "DFFlagOnCloseTimeoutEnabled": "True", "FFlagStudioQuickInsertEnabled": "True", "FFlagStudioPropertiesRespectCollisionToggle": "True", "FFlagTweenServiceUsesRenderStep": "True", "FFlagUseNewSoundEngine3dFix": "True", "FFlagDebugUseDefaultGlobalSettings": "True", "FFlagStudioMiddleMouseTrackCamera": "False", "FFlagTurnOffiOSNativeControls": "True", "DFFlagUseNewHumanoidHealthGui": "True", "DFFlagLoggingConsoleEnabled": "True", "DFFlagAllowModuleLoadingFromAssetId": "True", "FFlagStudioZoomExtentsExplorerFixEnabled": "True", "FFlagLuaDebuggerBreakOnError": "True", "FFlagRetentionTrackingEnabled": "True", "FFlagShowAlmostAllItemsInExplorer": "True", "FFlagStudioFindInAllScriptsEnabled": "True", "FFlagImprovedNameOcclusion": "True", "FFlagHumanoidMoveToDefaultValueEnabled": "True", "FFlagEnableDisplayDistances": "True", "FFlagUseMinMaxZoomDistance": "True", "SFFlagAllowPhysicsPacketCompression": "False", "FFlagStudioOneClickColorPickerEnabled": "True", "DFFlagHumanoidMoveToDefaultValueEnabled": "True", "VideoPreRollWaitTimeSeconds": "45", "FFlagBalancingRateLimit": "True", "FFlagLadderCheckRate": "True", "FFlagStateSpecificAutoJump": "True", "SFFlagOneWaySimRadiusReplication": "True", "DFFlagApiDictionaryCompression": "True", "SFFlagPathBasedPartMovement": "True", "FFlagEnsureInputIsCorrectState": "False", "DFFlagLuaLoadStringStrictSecurity": "True", "DFFlagCrossPacketCompression": "True", "FFlagWorkspaceLoadStringEnabledHidden": "True", "FFlagStudioPasteAsSiblingEnabled": "True", "FFlagStudioDuplicateActionEnabled": "True", "FFlagPreventInterpolationOnCFrameChange": "True", "FLogNetworkPacketsReceive": "5", "FFlagPlayPauseFix": "True", "DFFlagCrashOnNetworkPacketError": "False", "FFlagHumanoidStateInterfaces": "True", "FFlagRenderDownloadAssets": "True", "FFlagBreakOnErrorConfirmationDialog": "True", "FFlagStudioAnalyticsEnabled": "True", "FFlagAutoRotateFlag": "True", "DFFlagUseImprovedLadderClimb": "True", "FFlagUseCameraOffset": "True", "FFlagRenderBlobShadows": "True", "DFFlagWebParserDisableInstances": "False", "FFlagStudioNewWiki": "True", "DFFlagLogPacketErrorDetails": "False", "FFlagLimitHorizontalDragForce": "True", "DFFlagCreateSeatWeldOnServer": "True", "FFlagGraphicsUseRetina": "True", "FFlagDynamicEnvmapEnabled": "True", "DFFlagDeferredTouchReplication": "True", "DFFlagCreatePlayerGuiEarlier": "True", "DFFlagProjectileOwnershipOptimization": "True", "DFFlagLoadSourceForCoreScriptsBeforeInserting": "False", "GoogleAnalyticsLoadStudio": "1", "DFFlagTaskSchedulerFindJobOpt": "True", "SFFlagPreventInterpolationOnCFrameChange": "True", "DFIntNumPhysicsPacketsPerStep": "2", "DFFlagDataStoreUrlEncodingEnabled": "True", "FFlagShowWebPlaceNameOnTabWhenOpeningFromWeb": "True", "DFFlagTrackTimesScriptLoadedFromLinkedSource": "True", "FFlagToggleDevConsoleThroughChatCommandEnabled": "True", "FFlagEnableFullMonitorsResolution": "True", "DFFlagAlwaysUseHumanoidMass": "True", "DFFlagUseStrongerGroundControl": "True", "DFFlagCorrectlyReportSpeedOnRunStart": "True", "FFlagLuaDebuggerImprovedToolTip": "True", "FFlagLuaDebuggerPopulateFuncName": "True", "FFlagLuaDebuggerNewCodeFlow": "True", "DFFlagValidateCharacterAppearanceUrl": "false", "FFlagStudioQuickAccessCustomization": "True", "DFFlagTaskSchedulerUpdateJobPriorityOnWake": "True", "DFFlagTaskSchedulerNotUpdateErrorOnPreStep": "True", "FFlagWikiSelectionSearch": "True", "DFIntTaskSchedularBatchErrorCalcFPS": "1200", "FFlagSuppressNavOnTextBoxFocus": "False", "FFlagEnabledMouseIconStack": "True", "DFFlagFastClone": "True", "DFFlagLuaNoTailCalls": "True", "DFFlagFilterStreamingProps": "True", "DFFlagNetworkOwnerOptEnabled": "True", "DFFlagPathfindingEnabled": "True", "FFlagEnableiOSSettingsLeave": "True", "FFlagUseFollowCamera": "True", "FFlagDefaultToFollowCameraOnTouch": "True", "DFFlagAllowMoveToInMouseLookMove": "True", "DFFlagAllowHumanoidDecalTransparency": "True", "DFFlagSupportCsrfHeaders": "True", "DFFlagConfigureInsertServiceFromSettings": "True", "FFlagPathfindingClientComputeEnabled": "True", "DFFlagLuaResumeSupportsCeeCalls": "True", "DFFlagPhysicsSenderErrorCalcOpt": "True", "DFFlagClearPlayerReceivingServerLogsOnLeave": "True", "DFFlagConsoleCodeExecutionEnabled": "True", "DFFlagCSGDictionaryReplication": "True", "FFlagCSGToolsEnabled": "True", "FFlagCSGDictionaryServiceEnabled": "True", "FFlagCSGMeshRenderEnable": "True", "FFlagCSGChangeHistory": "True", "FFlagCSGMeshColorEnable": "True", "FFlagCSGScaleEnabled": "True", "FFlagCylinderUsesConstantTessellation": "True", "FFlagStudioDraggersScaleFixes": "True", "FFlagCSGDecalsEnabled": "True", "FFlagCSGMigrateChildData": "True", "SFFlagBinaryStringReplicationFix": "True", "FFlagHummanoidScaleEnable": "True", "FFlagStudioDataModelIsStudioFix": "True", "DFFlagWebParserEnforceASCIIEnabled": "True", "DFFlagScriptDefaultSourceIsEmpty": "True", "FFlagFixCaptureFocusInput": "True", "FFlagFireUserInputServiceEventsAfterDMEvents": "True", "FFlagVectorErrorOnNilArithmetic": "True", "DFFlagUseImageColor": "True", "FFlagStopNoPhysicsStrafe": "True", "DFFlagDebugLogNetworkErrorToDB": "False", "FFlagLowQMaterialsEnable": "True", "FFLagEnableFullMonitorsResolution": "True", "FFlagStudioChildProcessCleanEnabled": "True", "DFFlagAllowFullModelsWhenLoadingModules": "True", "DFFlagRealWinInetHttpCacheBypassingEnabled": "True", "FFlagNewUniverseInfoEndpointEnabled": "True", "FFlagGameExplorerEnabled": "True", "FFlagStudioUseBinaryFormatForModelPublish": "True", "FFlagGraphicsFeatureLvlStatsEnable": "True", "FFlagStudioEnableWebKitPlugins": "True", "DFFlagSendHumanoidTouchedSignal": "True", "DFFlagReduceHumanoidBounce": "True", "DFFlagUseNewSounds": "True", "FFlagFixHumanoidRootPartCollision": "True", "FFlagEnableAndroidMenuLeave": "True", "FFlagOnlyProcessGestureEventsWhenSunk": "True", "FFlagAdServiceReportImpressions": "True", "FFlagStudioUseExtendedHTTPTimeout": "True", "FFlagStudioSeparateActionByActivationMethod": "False", "DFFlagPhysicsSenderThrottleBasedOnBufferHealth": "True", "DFFlagGetGroupInfoEnabled": "True", "DFFlagGetGroupRelationsEnabled": "True", "SFFlagTopRepContSync": "True", "FFlagStudioUseBinaryFormatForModelSave": "True", "EnableFullMonitorsResolution": "True", "DFFlagRenderSteppedServerExceptionEnabled": "True", "FFlagUseWindowSizeFromGameSettings": "True", "DFFlagCheckStudioApiAccess": "True", "FFlagGameExplorerPublishEnabled": "True", "DFFlagKeepXmlIdsBetweenLoads": "True", "DFFlagReadXmlCDataEnabled": "True", "FFlagStudioRemoveToolSounds": "True", "FFlagStudioOneStudGridDefault": "True", "FFlagStudioPartSymmetricByDefault": "True", "FFlagStudioIncreasedBaseplateSize": "True", "FFlagSkipSilentAudioOps": "True", "SFFlagGuid64Bit": "False", "FIntValidateLauncherPercent": "0", "FFlagCSGDataLossFixEnabled": "True", "DFStringRobloxAnalyticsURL": "https://www.mete0r.xyz/", "DFFlagRobloxAnalyticsTrackingEnabled": "False", "FFlagStudioOpenLastSaved": "False", "FFlagStudioShowTutorialsByDefault": "True", "FFlagStudioForceToolboxSize": "True", "FFlagStudioExplorerDisabledByDefault": "True", "FFlagStudioDefaultWidgetSizeChangesEnabled": "True", "FFlagStudioUseScriptAnalyzer": "True", "FFlagNoClimbPeople": "True", "DFFlagAnimationFormatAssetId": "True", "FFlagGetCorrectScreenResolutionFaster": "True", "DFFlagFixTouchEndedReporting": "False", "FFlagStudioTeleportPlaySolo": "True", "FFlagStudioDE7928FixEnabled": "True", "FFlagDE8768FixEnabled": "True", "FFlagStudioDE9108FixEnabled": "True", "FFlagStudioPlaySoloMapDebuggerData": "True", "FFlagLuaDebuggerCloneDebugger": "True", "FFlagRenderLightgridInPerformEnable": "True", "SFFlagStateBasedAnimationReplication": "True", "FFlagVolumeControlInGameEnabled": "True", "FFlagGameConfigurerUseStatsService": "True", "FFlagStudioUseHttpAuthentication": "True", "FFlagDetectTemplatesWhenSettingUpGameExplorerEnabled": "True", "FFlagEntityNameEditingEnabled": "True", "FFlagNewCreatePlaceFlowEnabled": "True", "FFlagFakePlayableDevices": "False", "FFlagMutePreRollSoundService": "True", "DFFlagBodyMoverParentingFix": "True", "DFFlagBroadcastServerOnAllInterfaces": "True", "HttpUseCurlPercentageWinClient": "100", "HttpUseCurlPercentageMacClient": "100", "HttpUseCurlPercentageWinStudio": "100", "HttpUseCurlPercentageMacStudio": "100", "SFFlagReplicatedFirstEnabled": "True", "DFFlagCSGShrinkForMargin": "True", "FFlagPhysicsBulletConnectorPointRecalc": "True", "DFIntBulletContactBreakThresholdPercent": "200", "DFIntBulletContactBreakOrthogonalThresholdPercent": "200", "FFlagPhysicsBulletConnectorMatching": "True", "FFlagPhysicsBulletUseProximityMatching": "False", "FFlagPhysicsCSGUsesBullet": "True", "DFFlagCSGPhysicsDeserializeRefactor": "True", "FFlagWedgeEnableDecalOnTop": "True", "FFlagFrustumTestGUI": "True", "FFlagFeatureLvlsDX11BeforeDeviceCreate": "True", "FFlagStudioPasteSyncEnabled": "True", "FFlagResetMouseCursorOnToolUnequip": "True", "DFFlagUpdateCameraTarget": "True", "DFFlagFixGhostClimb": "True", "DFFlagUseStarterPlayer": "True", "FFlagStudioFindCrashFixEnabled": "True", "FFlagFixPartOffset": "True", "DFFlagLuaCloseUpvalues": "True", "FFlagRenderTextureCompositorUseBudgetForSize": "True", "FFlagAllowOutOfBoxAssets": "False", "FFlagRemoveTintingWhenActiveIsFalseOnImageButton": "True", "FFlagStudioModuleScriptDefaultContents": "True", "FFlagStudioHomeKeyChangeEnabled": "True", "FFlagStudioOpenStartPageForLogin": "True", "FFlagStudioNativeKeepSavedChanges": "True", "FFlagSerializeCurrentlyOpenPlaceWhenPublishingGame": "True", "FFlagGameNameLabelEnabled": "True", "FFlagStudioValidateBootstrapper": "True", "FFlagRakNetReadFast": "True", "DFFlagPhysicsSenderSleepingUpdate": "True", "FFlagUseShortShingles": "True", "FFlagKKTChecks": "False", "DFFlagUseApiProxyThrottling": "True", "DFFlagValidateSetCharacter": "True", "DFFlagUpdateHumanoidSimBodyInComputeForce": "True", "DFFlagNetworkPendingItemsPreserveTimestamp": "True", "FFlagStudioCSGRotationalFix": "True", "FFlagNewLoadingScreen": "True", "FFlagScrollingFrameOverridesButtonsOnTouch": "True", "DFFlagStreamLargeAudioFiles": "True", "DFFlagNewLuaChatScript": "True", "DFFlagLoopedDefaultHumanoidAnimation": "True", "FFlagSoundsRespectDelayedStop": "False", "DFFlagCSGPhysicsErrorCatchingEnabled": "True", "DFFlagFireStoppedAnimSignal": "True", "FFlagStudioFixToolboxReload": "True", "FFlagCSGDecalsV2": "True", "FFlagLocalOptimizer": "True", "DFFlagClearFailedUrlsWhenClearingCacheEnabled": "True", "DFFlagSupportNamedAssetsShortcutUrl": "True", "DFFlagUseW3CURIParser": "True", "DFFlagContentProviderHttpCaching": "True", "FFlagNoWallClimb": "False", "FFlagSmoothMouseLock": "False", "DFFlagCSGPhysicsNanPrevention": "True", "FFlagStudioDE9818FixEnabled": "True", "FFlagGameExplorerImagesEnabled": "True", "FFlagStudioInsertOrientationFix": "True", "FFlagStudioTabOrderingEnabled": "True", "FFlagFramerateDeviationDroppedReport": "True", "FFlagModuleScriptsPerVmEnabled": "False", "FFlagGameExplorerImagesInsertEnabled": "True", "FFlagTexturePropertyWidgetEnabled": "True", "FFlagReloadAllImagesOnDataReload": "True", "FFlagModuleScriptsPerVmEnabledFix2": "True", "DFFlagFixBufferZoneContainsCheck": "False", "FFlagStudioPlaceAssetFromToolbox": "True", "FFlagChannelMasterMuting": "True", "FFlagStudioUseDelayedSyntaxCheck": "True", "FFlagStudioCommandLineSaveEditText": "True", "FFlagStudioAddHelpInContextMenu": "True", "DFIntHttpCacheCleanMinFilesRequired": "10000", "DFIntHttpCacheCleanMaxFilesToKeep": "7500", "FFlagCSGVoxelizer": "True", "DFFlagCheckApiAccessInTransactionProcessing": "True", "FFlagBindPurchaseValidateCallbackInMarketplaceService": "True", "FFlagSetDataModelUniverseIdAfterPublishing": "True", "FFlagOpenScriptWorksOnModulesEnabled": "True", "FFlagStudioRibbonBarNewLayout": "True", "FFlagStudioRibbonBarLayoutFixes": "True", "FFlagStudioPlaceOnlineIndicator": "True", "FFlagRenderWangTiles": "True", "FFlagDisableBadUrl": "True", "FFlagPrimalSolverLogBarrierIP": "True", "FFlagDualSolverSimplex": "True", "FFlagPrimalSolverSimplex": "True", "FIntNumSmoothingPasses": "3", "FFlagVerifyConnection": "True", "FIntRegLambda": "1400", "FFlagScriptAnalyzerPlaceholder": "True", "FFlagCSGStripPublishedData": "True", "DFFlagRaycastReturnSurfaceNormal": "True", "FFlagMoveGameExplorerActionsIntoContextMenu": "True", "FFlagStudioAdvanceCookieExpirationBugFixEnabled": "True", "FFlagNewBackpackScript": "True", "FFlagGameNameAtTopOfExplorer": "True", "FFlagStudioActActionsAsTools": "True", "FFlagStudioInsertAtMouseClick": "True", "FFlagStopLoadingStockSounds": "True", "DFFlagFixTimePositionReplication": "True", "DFFlagHttpReportStatistics": "True", "DFFlagEnableChatTestingInStudio": "True", "DFIntHttpSendStatsEveryXSeconds": "300", "FLogStepAnimatedJoints": "5", "DFFlagLuaDisconnectFailingSlots": "False", "DFFlagEnsureSoundPosIsUpdated": "True", "DFFlagLoadStarterGearEarlier": "False", "DFFlagBlockUsersInLuaChat": "True", "FFlagRibbonPartInsertNotAllowedInModel": "True", "DFFlagUsePlayerScripts": "True", "DFFlagUserAccessUserSettings": "True", "DFFlagUseLuaCameraAndControl": "True", "DFFlagUseLuaPCInput": "True", "DFFlagFixLuaMoveDirection": "True", "DFFlagUseDecalLocalTransparencyModifier": "True", "DFFlagUseFolder": "True", "DFFlagUsePreferredSpawnInPlaySoloTeleport": "True", "DFFlagFilterAddSelectionToSameDataModel": "False", "FFlagGameExplorerAutofillImageNameFromFileName": "True", "FFlagGameExplorerBulkImageUpload": "True", "FFlagStudioAllowAudioSettings": "True", "DFFlagUsePlayerInGroupLuaChat": "True", "FFlagStudioDecalPasteFix": "True", "FFlagStudioCtrlTabDocSwitchEnabled": "True", "DFIntDraggerMaxMovePercent": "60", "FFlagUseUniverseGetInfoCallToDetermineUniverseAccess": "True", "FFlagMaxFriendsCount": "True", "DFIntPercentApiRequestsRecordGoogleAnalytics": "0", "FFlagSelectSpinlock": "True", "FFlagFastZlibPath": "True", "DFFlagWriteXmlCDataEnabled": "True", "DFFlagUseSpawnPointOrientation": "True", "DFFlagUsePlayerSpawnPoint": "True", "DFFlagCSGPhysicsRecalculateBadContactsInConnectors": "True", "FFlagStudioPartAlignmentChangeEnabled": "True", "FFlagStudioToolBoxModelDragFix": "True", "DFFlagOrder66": "False","FFlagCloudIconFixEnabled": "True", "DFFlagFixHealthReplication": "True", "DFFlagReplicateAnimationSpeed": "True", "FFlagLuaFollowers": "True", "FFlagNewNotificationsScript": "True", "FFlagStudioSendMouseIdleToPluginMouse": "True", "DFFlagPhysicsOptimizeAssemblyHistory": "True", "DFFlagPhysicsOptimizeBallBallContact": "True", "DFFlagUseNewBubbleSkin": "True", "DFFlagUse9FrameBackgroundTransparency": "True", "DFFlagCheckForHeadHit": "False", "DFFlagUseHttpsForAllCalls": "True", "DFFlagLoadCoreModules": "True", "FFlagStudioRecentSavesEnabled": "True", "FFlagStudioToolBoxInsertUseRayTrace": "True", "FFlagInterpolationUseWightedDelay": "True", "FFlagUseInGameTopBar": "True", "FFlagNewPurchaseScript": "True", "FFlagStudioEnableGamepadSupport": "True", "FFlagStudioRemoveDuplicateParts": "True", "FFlagStudioLaunchDecalToolAfterDrag": "True", "DFFlagHumanoidFloorPVUpdateSignal": "True", "DFFlagHumanoidFloorDetectTeleport": "True", "DFFlagHumanoidFloorForceBufferZone": "False", "DFFlagHumanoidFloorManualDeltaUpdateManagment": "True", "DFFlagHumanoidFloorManualFrictionLimitation": "True", "DFFlagUpdateHumanoidNameAndHealth": "True", "DFFlagEnableHumanoidDisplayDistances": "True", "FFlagFixTouchInputEventStates": "False", "DFFlagInterpolationTimingFix": "True", "FIntRenderGBufferMinQLvl": "16", "FFlagResizeGuiOnStep": "True", "FFlagDontFireFakeMouseEventsOnUIS": "True", "FFlagCameraUseOwnViewport": "True", "FFlagGameExplorerMoveImagesUnderAssetsGroup": "True", "DFFlagNetworkFilterAllowToolWelds": "True", "DFIntHttpInfluxHundredthsPercentage": "5", "DFStringHttpInfluxURL": "https://www.mete0r.xyz/", "DFStringHttpInfluxDatabase": "main", "DFStringHttpInfluxUser": "user", "DFStringHttpInfluxPassword": "password", "FFlagStudioSpawnLocationsDefaultValues": "True", "FFlagStudioDE11536FixEnabled": "True", "FFlagStudioRibbonGroupResizeFixEnabled": "True", "FFlagGradientStep": "True", "FFlagUseNewContentProvider": "False", "SFFlagEquipToolOnClient": "True", "FFlagStartWindowMaximizedDefault": "True", "FFlagUseNewKeyboardHandling": "True", "FFlagCameraZoomNoModifier": "True", "DFFlagRemoteValidateSubscribersError": "True", "FFlagNewMenuSettingsScript": "True", "DFFlagHttpCurlSanitizeUrl": "True", "DFFlagRemoveDataModelDependenceInWaitForChild": "True", "FFlagFilterAddSelectionToSameDataModel": "True", "DFFlagUseCanManageApiToDetermineConsoleAccess": "False", "DFIntMoveInGameChatToTopPlaceId": "1", "FFlagStudioProgressIndicatorForInsertEnabled": "True", "FFlagTerrainLazyGrid": "True", "FFlagHintsRenderInUserGuiRect": "True", "FFlagCallSetFocusFromCorrectThread": "True", "FFlagFastRevert": "True", "FFlagSleepBeforeSpinlock": "True", "FFlagSparseCheckFastFail": "True", "FFlagStudioSmoothTerrainPlugin": "True", "FFlagStudioLoadPluginsLate": "True", "FFlagStudioInsertIntoStarterPack": "True", "FFlagStudioIgnoreSSLErrors": "True", "DFFlagFixJointReparentingDE11763": "True", "DFFlagPhysicsInvalidateContactCache": "True", "FFlagLuaMathNoise": "True", "FFlagArcHandlesBidirectional": "True", "FFlagChangeHistoryFixPendingChanges": "True", "DFFlagWorkspaceSkipTerrainRaycastForSurfaceGui": "True", "FFlagStudioBatchItemMapAddChild": "True", "FFlagRenderCameraFocusFix": "True", "DFFlagReplicatorWorkspaceProperties": "True", "FFlagDirectX11Enable": "True", "FFlagCheckDegenerateCases": "True", "DFFlagUseServerCoreScripts": "True", "DFFlagCorrectFloorNormal": "True", "FFlagNewBadgeServiceUrlEnabled": "True", "FFlagBubbleChatbarDocksAtTop": "True", "FFlagSmoothTerrainClient": "True", "FFlagLuaUseBuiltinEqForEnum": "True", "FFlagPlaceLauncherThreadCheckDmClosed": "True", "DFFlagAppendTrackerIdToTeleportUrl": "True", "FFlagPlayerMouseRespectGuiOffset": "True", "DFFlagReportElevatedPhysicsFPSToGA": "True", "DFFlagPreventReturnOfElevatedPhysicsFPS": "True", "FFlagStudioIgnoreMouseMoveOnIdle": "True", "FFlagStudioDraggerFixes": "True", "FLogUseLuaMemoryPool": "0", "FFlagCSGNewTriangulate": "True", "DFFlagLuaFixResumeWaiting": "True", "FFlagFRMInStudio": "True", "DFFlagFixLadderClimbSpeed": "True", "DFFlagNoWalkAnimWeld": "False", "DFFlagImprovedKick": "True", "FFlagRenderFixLightGridDirty": "True", "FFlagLoadLinkedScriptsOnDataModelLoad": "True", "FFlagFixMeshOffset": "True", "FIntLaunchInfluxHundredthsPercentage": "0", "DFIntJoinInfluxHundredthsPercentage": "100", "FFlagSmoothTerrain": "True", "FFlagNewVehicleHud": "True", "DFFlagHumanoidStandOnSeatDestroyed": "True", "DFFlagGuiBase3dReplicateColor3WithBrickColor": "True", "FFlagTaskSchedulerCyclicExecutiveStudio": "True", "DFIntElevatedPhysicsFPSReportThresholdTenths": "585", "DFIntExpireMarketPlaceServiceCacheSeconds": "60", "DFFlagEnableMarketPlaceServiceCaching": "True", "DFFlagUseNewAnalyticsApi": "True", "DFFlagSmoothTerrainDebounceUpdates": "True", "FFlagStudioAuthenticationCleanup": "True", "FFlagRenderFixGBufferLOD": "True", "FFlagStudioDraggerCrashFixEnabled": "True", "FFlagDraggerCrashFixEnabled": "True", "DFFlagEnableRapidJSONParser": "True", "DFFlagPushLuaWorldRayOriginToNearClipPlane": "True", "FFlagLoadTimeModificationTestFlag": "True", "DFFlagPhysicsFastSmoothTerrainUpdate": "True", "DFFlagSmoothTerrainPhysicsExpandPrimitiveOptimal": "True", "DFFlagFixBytesOnJoinReporting": "True", "FFlagRenderGBufferEverywhere": "False", "DFFlagSmoothTerrainPhysicsRayAabbExact": "True", "DFIntSmoothTerrainPhysicsRayAabbSlop": "1", "DFIntMaxClusterKBPerSecond": "300", "FLogLuaAssert": "0", "FFlagSmoothTerrainCountCellVolume": "True", "DFFlagSmoothTerrainWorldToCellUseDiagonals": "True", "DFFlagFireSelectionChangeOncePerChange": "True", "FIntLuaAssertCrash": "0", "FFlagRenderFixCameraFocus": "False", "DFFlagCSGPhysicsSphereRotationIdentity": "True", "DFFlagCSGPhysicsRefreshContactsManually": "True", "FFlagStudioUndoEnabledForEdit": "True", "DFIntLuaChatFloodCheckMessages": "7", "DFIntLuaChatFloodCheckInterval": "15", "FFlagLuaChatFiltering": "True", "FFlagMobileToggleChatVisibleIcon": "True", "FFlagStudioDE9132FixEnabled": "True", "DFFlagGetUserIdEnabled": "True", "DFFlagGetUserNameEnabled": "True", "DFFlagEnableAnimationInformationAccess": "True", "DFFlagEnableAnimationTrackExtendedAPI": "True", "FFlagRequestServerStatsV2Enabled": "True", "FFlagPhysicsPreventGroupDraggerPlacementToMinus400_DE6267": "True", "FFlagSpecificUserdataTypeErrors": "True", "DFFlagScrollingFrameDraggingFix": "True", "FFlagAutodetectCPU": "True", "DFFlagSetRenderedFrameOnClumpChanged": "True", "DFFlagDisableTimeoutDuringJoin": "True", "DFFlagDesiredAltitudeDefaultInf": "True", "DFFlagRCCDE13316CrashFix": "True", "DFFlagUseStarterPlayerGA": "True", "FFlagScrollingFrameMouseUpFix": "True", "DFFlagDebrisServiceUseDestroy": "True", "DFFlagAccessUserFeatureSetting": "True", "DFFlagAllowBindActivate": "True", "FFlagEnableControllerGuiSelection": "True", "FFlagUseNewSoftwareMouseRender": "True", "DFFlagDoNotHoldTagItemsForInitialData": "True", "FFlagAltSpinlock": "True", "FFlagSpinlock": "True", "FFlagGraphicsGLReduceLatency": "True", "DFFlagMovingHumananoidWakesFloor": "True", "DFFlagSetNetworkOwnerAPIEnabled": "True", "DFFlagSetNetworkOwnerAPIEnabledV2": "True", "DFFlagGetFriendsEnabled": "True", "DFFlagGetFriendsOnlineEnabled": "True", "DFFlagUseNewTextBoxLogic": "True", "FFlagOnScreenProfilerGPU": "True", "FFlagConfigurableLineThickness": "True", "DFFlagSpawnPointEnableProperty": "True", "DFFlagConfigurableFallenPartDestroyHeight": "True", "DFFlagMiddleMouseButtonEvent": "True", "DFFlagEnablePreloadAsync": "True", "DFFlagFoldersInGUIs": "True", "DFIntAndroidInfluxHundredthsPercentage": "0", "DFFlagNoOwnershipLogicOnKernelJoint": "True", "DFFlagEnableGetPlayingAnimationTracks": "True", "FFlagCyclicExecutivePriorityJobs": "True", "DFIntMaxMissedWorldStepsRemembered": "16", "DFIntMacInfluxHundredthsPercentage": "0", "DFIntiOSInfluxHundredthsPercentage": "100", "FFlagStudioLockServiceParents": "True", "DFFlagFirePlayerAddedAndPlayerRemovingOnClient": "True", "DFFlagRecursiveWakeForBodyMovers": "True", "DFFlagEnableHumanoidSetStateEnabled": "True", "DFFlagSoundEndedEnabled": "True", "DFFlagUseIntersectingOthersForSpawnEnabled": "True", "DFFlagMoveToDontAlignToGrid": "True", "DFFlagIsBestFriendsWithReturnFriendsWith": "True", "DFFlagPlayerOwnsAssetFalseForInvalidUsers": "True", "DFFlagIsUrlCheckAssetStringLength": "True", "DFFlagEnableGoodbyeDialog": "True", "DFFlagEnableReverseAnimations": "True", "DFFlagEnableAnimationSetTimePosition": "True", "DFFlagEnableMobileAutoJumpFlag": "True", "DFFlagHttpDelaySendInfluxStats": "True", "DFFlagDisableRequestMarker": "True", "DFFlagDisableCharacterRequest": "True", "FFlagStudioCollapsibleTutorials": "True", "FStringStudioTutorialsUrl": "http://wiki.roblox.com/index.php?title=Studio_Tutorials_Test&studiomode=true", "FStringStudioTutorialsTOCUrl": "http://wiki.roblox.com/index.php?title=Studio_Tutorials_Landing&studiomode=true", "FFlagSandboxHash": "True", "FFlagDE14316CrashFix": "True", "FFlagDE14317CrashFix": "True", "DFFlagSetNetworkOwnerCanSetCheck": "True", "DFFlagLiveColorUpdatesCanceling": "True", "DFFlagLuaGcPerVm": "True", "FFlagStudioDeviceEmulationTouchInputFix": "True", "FFlagTaskSchedulerCyclicExecutive": "True", "DFFlagMakeWebPendingFriendRequests": "True", "DFFlagGetLastestAssetVersionEnabled": "True", "FFlagHideDeprecatedEnums": "False", "FFlagSubmitEditedColor3WhenFocusLost": "True", "DFFlagFixScriptableCameraRoll": "True", "DFFlagSeparateBulletNarrowPhaseAndMidStepUpdates": "True", "DFFlagUsePGSSolverSpringConstantScale": "True", "DFFlagToolRequiresHandleProperty": "True", "FFlagPlayerScriptsNotArchivable": "True", "DFFlagClearAllChildrenUseDestroy": "True", "DFFlagMaxPlayersEnabled": "True", "DFFlagPreferredPlayersEnabled": "True", "DFFlagLocalHumanoidSoundsEnabled": "True", "DFFlagIncreaseSoundPositionClampLimit": "True", "DFFlagNameOcculsionIgnoreTransparent": "True", "DFFlagReconstructAssetUrlNew": "True", "DFFlagAdjustFloorForce": "True", "DFFlagFixAnimationPhaseInitialization": "True", "FFlagLuaChatPhoneFontSize": "True", "DFFlagUseAssetTypeHeader": "True", "FFlagCSGUnionCatchUnknownExceptions": "False", "FIntGamePerfMonitorPercentage": "10", "FFlagSoundTypeCheck": "True", "DFFlagIncreaseScrollWheelMultiplyTime": "True", "FFlagMacRemoveUserInputJob": "True", "FFlagStudioNewFonts": "True", "DFFlagApiCapitalizationChanges": "True", "FFlagParticleCullFix": "True", "DFFlagVideoCaptureTeleportFix": "False", "DFFlagCoreGuiCustomizationApi": "True", "DFFlagCustomTeleportLoadingScreen": "True", "DFFlagCharacterAppearanceLoadedEnabled": "True", "DFFlagVIPServerOwnerIdEnabled": "True", "DFFlagEnableParticleVelocityInheritance": "True", "DFFlagEnableParticleEmissionDirection": "True", "DFFlagFixParticleDistribution": "True", "DFFlagEnableParticleNewBoundingBox": "True", "DFFlagEnableParticlePartLock": "True", "DFFlagEnableParticleBurst": "True", "DFFlagNoRunSteepSlope": "True", "DFFlagHumanoidJumpPower": "True", "FFlagControllerMenu": "True", "FFlagFlyCamOnRenderStep": "True", "DFFlagFullscreenEnabledWhileRecording": "True", "DFFlagPreProcessTextBoxEvents": "True", "DFFlagAllowHideHudShortcut": "False", "DFFlagFixBallInsideBlockCollision": "True", "FFlagPGSSolverBodyCacheLeakFix": "True", "FFlagFixCrashAtShutdown": "True", "DFFlagEquipClonedToolFix": "True", "FFlagGamepadCursorChanges": "True", "DFFlagCreatePlayerGuiLocal": "False", "DFFlagDontUseInsertServiceOnAnimLoad": "True", "DFFlagCyclicExecutiveFixNonCyclicJobRun": "True", "DFFlagPhysicsFPSTimerFix": "True", "FFlagCyclicExecutiveRenderJobRunsFirst": "True", "FFlagPhysicsCylinders": "True", "DFFlagPhysicsUseNewBulletContact": "True", "FFlagReadCoordinateFrameFast": "False", "DFFlagRayHitMaterial": "True", "DFFlagPromptPurchaseOnGuestHandledInCoreScript": "True", "DFFlagNonEmptyPcallError": "True", "DFFlagDisplayTextBoxTextWhileTypingMobile": "False", "DFFlagOverrideScollingDisabledWhenRecalulateNeeded": "True", "DFFlagFixScrollingOffSurfaceGUIs": "True", "DFFlagTextScaleDontWrapInWords": "True", "DFFlagListenPositionEnabled": "True", "DFFlagBackTabInputInStudio": "True", "DFFlagTrackLastDownGUI": "True", "DFFlagBulletFixCacheReuse": "True", "DFFlagFastFilterHumanoidParts": "False", "DFFlagProcessAcceleratorsBeforeGUINaviagtion": "True", "DFFlagImageFailedToLoadContext": "True", "DFFlagDontReorderScreenGuisWhenDescendantRemoving": "True", "DFFlagSoundFailedToLoadContext": "True", "DFFlagAnimationFailedToLoadContext": "True", "DFFlagElasticEasingUseTwoPi": "True", "SFFlagNetworkUseServerScope": "True", "DFFlagHttpZeroLatencyCaching": "True", "DFFlagPasteWithCapsLockOn": "True", "DFFlagHttpCurlDomainTrimmingWithBaseURL": "False", "DFFlagLoadFileUseRegularHttp": "True", "DFFlagReplicatorCheckBadRebinding": "True", "FFlagFastClusterThrottleUpdateWaiting": "True", "DFFlagDeserializePacketThreadEnabled": "True", "FFlagFontSizeUseLargest": "True", "DFFlagRejectHashesInLinkedSource": "True", "FFlagUpdatePrimitiveStateForceSleep": "True", "FFlagPhysicsUseKDTreeForCSG": "True", "DFFlagCSGLeftoverDataFix": "True", "FFlagStudioTutorialSeeAll": "True", "DFFlagLimitScrollWheelMaxToHalfWindowSize": "True", "FFlagGameExplorerCopyPath": "True", "DFFlagFixRotatedHorizontalScrollBar": "True", "DFFlagFixAnchoredSeatingPosition": "True", "FFlagFixSlice9Scale": "True", "DFFlagFullscreenRefocusingFix": "True", "DFFlagEnableClimbingDirection": "True", "FFlagPGSGlueJoint": "True", "FFlagTweenCallbacksDuringRenderStep": "True", "FFlagFRMFixCullFlicker": "True", "DFFlagDisableProcessPacketsJobReschedule": "True", "FFlagCSGVoxelizerPrecompute": "False", "FFlagLazyRenderingCoordinateFrame": "True", "FFlagPGSSteppingMotorFix": "True", "DFFlagLockViolationScriptCrash": "False", "DFFlagLockViolationInstanceCrash": "False", "FFlagSpheresAllowedCustom": "True", "DFFlagHumanoidCookieRecursive": "True", "FFlagRwxFailReport": "True", "FIntStudioInsertDeletionCheckTimeMS": "30000", "DFFlagClampRocketThrustOnPGS": "True", "DFFlagPGSWakePrimitivesWithBodyMoverPropertyChanges": "True", "FFlagPGSUsesConstraintBasedBodyMovers": "True", "FFlagUseNewSubdomainsInCoreScripts": "True", "DFFlagEnableShowStatsLua": "True", "FFlagSmoothTerrainPacked": "True", "DFFlagUrlReconstructToAssetGame": "False", "FFlagPGSApplyImpulsesAtMidpoints": "True", "FFlagModifyDefaultMaterialProperties": "True", "FIntPhysicalPropFriction_SMOOTH_PLASTIC_MATERIAL": "200", "FIntPhysicalPropFriction_PLASTIC_MATERIAL": "300", "FIntPhysicalPropFriction_NEON_MATERIAL": "300", "FIntPhysicalPropFriction_SNOW_MATERIAL": "300", "FIntPhysicalPropFriction_ALUMINUM_MATERIAL": "400", "FIntPhysicalPropFriction_BRICK_MATERIAL": "800", "FIntPhysicalPropFriction_CONCRETE_MATERIAL": "700", "FIntPhysicalPropFriction_DIAMONDPLATE_MATERIAL": "350", "FIntPhysicalPropFriction_SANDSTONE_MATERIAL": "500", "FIntPhysicalPropFriction_SAND_MATERIAL": "500", "FIntPhysicalPropFWeight_ICE_MATERIAL": "3000", "FIntPhysicalPropFWeight_BRICK_MATERIAL": "300", "FIntPhysicalPropFWeight_CONCRETE_MATERIAL": "300", "FIntPhysicalPropFWeight_SANDSTONE_MATERIAL": "5000", "FIntPhysicalPropFWeight_BASALT_MATERIAL": "300", "FIntPhysicalPropFWeight_SAND_MATERIAL": "5000", "FIntPhysicalPropElasticity_SAND_MATERIAL": "50", "FIntPhysicalPropElasticity_SNOW_MATERIAL": "30", "FIntPhysicalPropElasticity_MUD_MATERIAL": "70", "FIntPhysicalPropElasticity_GROUND_MATERIAL": "100", "FIntPhysicalPropElasticity_MARBLE_MATERIAL": "170", "FIntPhysicalPropElasticity_BRICK_MATERIAL": "150", "FIntPhysicalPropElasticity_PEBBLE_MATERIAL": "170", "FIntPhysicalPropElasticity_COBBLESTONE_MATERIAL": "170", "FIntPhysicalPropElasticity_ROCK_MATERIAL": "170", "FIntPhysicalPropElasticity_SANDSTONE_MATERIAL": "150", "FIntPhysicalPropElasticity_BASALT_MATERIAL": "150", "FIntPhysicalPropElasticity_CRACKED_LAVA_MATERIAL": "150", "FIntPhysicalPropElasticity_FABRIC_MATERIAL": "50", "FIntPhysicalPropElasticity_WOOD_MATERIAL": "200", "FIntPhysicalPropElasticity_WOODPLANKS_MATERIAL": "200", "FIntPhysicalPropElasticity_ICE_MATERIAL": "150", "FIntPhysicalPropElasticity_GLACIER_MATERIAL": "150", "FIntPhysicalPropElasticity_RUST_MATERIAL": "200", "FIntPhysicalPropElasticity_DIAMONDPLATE_MATERIAL": "250", "FIntPhysicalPropElasticity_ALUMINUM_MATERIAL": "250", "FIntPhysicalPropElasticity_METAL_MATERIAL": "250", "FIntPhysicalPropElasticity_GRASS_MATERIAL": "100", "DFFlagFixSeatingWhileSitting": "True", "FFlagPGSSolverDefaultOnNewPlaces": "True", "FFlagPGSVariablePenetrationMargin": "False", "FIntPGSPentrationMarginMax": "50000", "FFlagStudioHideMouseCoursorOnCommand": "True", "SFFlagNewPhysicalPropertiesForcedOnAll": "True", "SFFlagMaterialPropertiesNewIsDefault": "True", "DFFlagMaterialPropertiesEnabled": "True", "FFlagWaterParams": "True", "FFlagSpatialHashMoreRoots": "True", "FFlagSkipAdornIfWorldIsNull": "True", "DFStringWorkspaceMessageLink": "http://discord.gg/4uN3tKX9v5", "DFStringWorkspaceMessageText": "Click here to join our Discord server!", "DFIntStudioWorkspaceNotificationLevel": "0", "DFFlagNetworkOwnershipRuleReplicates": "True", "DFFlagSmoothTerrainWriteVoxelsOccupancyFix": "True", "DFFlagCloudEditByPassCheckForServer": "True", "DFFlagDraggerUsesNewPartOnDuplicate": "True", "DFFlagRestoreTransparencyOnToolChange": "False", "FFlagEnableLuaFollowers": "False", "DFFlagUserServerFollowers": "True", "FFlagNetworkReplicateTerrainProperties": "True", "FFlagAllowInsertFreeModels": "True", "FFlagInsertUnderFolder": "True", "DFFlagPGSWakeOtherAssemblyForJoints": "True", "FFlagStudioPropertySliderEnabled": "True", "DFFlagSetNetworkOwnerFixAnchoring": "True", "FFlagFixBulletGJKOptimization": "True", "FFlagOSXUseSDL": "False", "DFFlagPhysicalPropMassCalcOnJoin": "False", "DFFlagBrickColorParseNonDeprecatedMatchEnabled": "True", "FFlagWindowsUseSDL": "False", "FFlagPhysicsOptimizeSendClumpChanged": "True", "DFFlagHumanoidFeetIsPlastic": "True", "DFFlagUseTerrainCustomPhysicalProperties": "True", "DFFlagFormFactorDeprecated": "False", "FFlagPGSVariablePenetrationMarginFix": "True", "DFIntDataStoreMaxValueSize": "262144", "DFFlagFixShapeChangeBug": "True", "FFlagScriptAnalyzerFixLocalScope": "True", "FFlagRenderVRBBGUI": "True", "FFlagRenderVR": "True", "DFFlagNetworkFixJoinDataItemOrder": "True", "FFlagStudioImproveModelDragFidelity": "True", "FFlagStudioOrthonormalizeSafeRotate": "True", "FFlagMacInferredCrashReporting": "True", "FFlagWindowsInferredCrashReporting": "True", "FFlagCloudEditDoNotLoadCoreScripts": "True", "FFlagStudioEmbeddedFindDialogEnabled": "True", "FFlagUserAllCamerasInLua": "False", "DFFlagMacInferredCrashReporting": "True", "DFFlagWindowsInferredCrashReporting": "True", "FFlagUseNewPromptEndHandling": "True", "FFlagPhysPropConstructFromMaterial": "True", "FFlagStudioToolboxModelDragToCastPoint": "True", "FFlagStudioPushTreeWidgetUpdatesToMainThread": "True", "DFFlagFixYieldThrottling": "True", "FFlagCheckSleepOptimization": "True", "DFFlagContactManagerOptimizedQueryExtents": "True", "FFlagUseBuildGenericGameUrl": "True", "DFFlagFixFallenPartsNotDeleted": "True", "DFFlagTrackPhysicalPropertiesGA": "True", "DFFlagSetNetworkOwnerFixAnchoring2": "True", "FFlagUseSimpleRapidJson": "True", "DFFlagTurnOffFakeEventsForCAS": "True", "DFFlagTurnOffFakeEventsForInputEvents": "True", "FFlagCancelPendingTextureLoads": "False", "DFFlagCachedPoseInitialized": "True", "DFFlagFixJumpGracePeriod": "True", "FFlagFilterSinglePass": "True", "DFFlagOrthonormalizeJointCoords": "True", "DFFlagPhysicsSenderUseOwnerTimestamp": "False", "DFFlagNamesOccludedAsDefault": "True", "FFlagUserUseNewControlScript": "True", "FFlagUseDynamicTypesetterUTF8": "True", "DFFlagUseNewPersistenceSubdomain": "True", "DFFlagUseNewDataStoreLogging": "True", "FFlagPlaceLauncherUsePOST": "False", "FFlagStudioUpdateSAResultsInUIThread": "True", "FFlagBillboardGuiVR": "True", "FFlagHumanoidRenderBillboard": "True", "FLogVR": "6", "FFlagStudioRemoveDebuggerResumeLock": "True", "FFlagAnalyzerGroupUIEnabled": "True", "DFFlagVariableHeartbeat": "True", "DFFlagScreenShotDuplicationFix": "True", "FFlagCSGDelayParentingOperationToEnd": "True", "FFlagStudioTreeWidgetCheckDeletingFlagWhenDoingUpdates": "True", "DFFlagUseComSiftUpdatedWebChatFilterParamsAndHeader": "False", "DFFlagConstructModerationFilterTextParamsAndHeadersUseLegacyFilterParams": "False", "FFlagMinMaxDistanceEnabled": "True", "FFlagRollOffModeEnabled": "True", "DFFlagGetLocalTeleportData": "True", "FFlagUseNewXboxLoginFlow": "True", "DFFlagFixSlowLadderClimb": "True", "DFFlagHumanoidCheckForNegatives": "True", "DFFlagFixMatrixToAxisAngle": "True", "DFFlagMaskWeightCleared": "True", "DFFlagUseStarterPlayerCharacterScripts": "True", "DFFlagUseStarterPlayerHumanoid": "True", "DFFlagAccessoriesAndAttachments": "True", "FFlagTeamCreateOptimizeRemoteSelection": "True", "FFlagReportInGameAssetSales": "True", "FFlagFilterDoublePass": "False", "DFFlagRaiseSendPriority": "False", "FFlagUsePreferredSoundDevice": "True", "FFlagRenderLowLatencyLoop": "False", "DFFlagLocalScriptSpawnPartAlwaysSetOwner": "True", "DFFlagCloudEditSupportImmediatePublish": "True", "FFlagFixSurfaceGuiGamepadNav": "True", "DFFlagEnableAdColony": "False", "FFlagEnableAdServiceVideoAds": "False", "DFFlagInfluxDb09Enabled": "True", "DFFlagTeleportSignalConnectOnServiceProvider": "True", "DFFlagScriptContextGuardAgainstCStackOverflow": "True", "FFlagFixPhysicalPropertiesComponentSet": "True", "DFFlagMaterialPropertiesDivideByZeroWeights": "True", "FFlagRemoveUnusedPhysicsSenders": "True", "FFlagRemoveInterpolationReciever": "True", "DFFlagActivatePGSMechanicalJoints": "True", "FIntPhysicalPropDensity_ALUMINUM_MATERIAL": "2700", "FFlagTreatCloudEditAsEditGameMode": "True", "FFlagSendFilteredExceptionOnInferredStep": "True", "DFFlagUrlReconstructToAssetGameSecure": "False", "DFFlagUseModerationFilterTextV2": "True", "FFlagGraphicsD3D10": "True", "FFlagRenderFixFog": "True", "FFlagUseNewAppBridgeWindows": "True", "DFFlagNullCheckJointStepWithNullPrim": "True", "FFlagJNIEnvScopeOptimization": "True", "DFFlagSanitizeLoadingGUICorrected": "True", "FFlagSendLegacyMachineConfigInfo": "False", "FFlagUseNewBadgesCreatePage": "True", "FFlagRetryWhenCloudEditEnabledEndpointFails": "True", "DFFlagTeamCreateDoNotReplicateShowDevGuiProp": "True", "FFlagStudioAddBackoffToNotificationsReconnects": "True", "DFFlagInsertServiceForceLocalInTeamCreate": "True", "FFlagGraphicsMacFix": "True", "FFlagUseNewAppBridgeOSX": "True", "FFlagNewColor3Functions": "True", "DFFlagSmootherVehicleSeatControlSystem": "True", "FFlagGameExplorerUseV2AliasEndpoint": "True", "FFlagDisableAbortRender": "True", "DFFlagInstancePredeleteNuke": "True", "DFFlagSimpleHermiteSplineInterpolate": "False", "DFFlagCleanUpInterpolationTimestamps": "True", "SFFlagPhysicsPacketSendWorldStepTimestamp": "True", "DFFlagUpdateTimeOnDelayedSamples": "False", "DFFlagDisableMovementHistory": "True", "DFFlagLookForDuplicateCoordinateFrameInBuffer": "True", "DFFlagDoNotForwardClientTimestamp": "True", "DFFlagZeroVelocityOnDelayedSamples": "True", "DFFlagUpdateHermiteLastFrameWhenUpdatePrevFrame": "True", "DFFlagCatchThrottledVelocityComponents": "True", "DFIntThrottledVelocityThresholdTenths": "15", "DFFlagShowFormFactorDeprecatedWarning": "False", "FFlagStudioTeamCreateWebChatBackendEnabled": "True", "DFFlagAnimationEasingStylesEnabled": "True", "FFlagUseVRKeyboardInLua": "True", "DFFlagCheckDataModelOnTeleportRetry": "True", "DFStringHttpInfluxWriterPassword": "faster1Play", "DFFlagOptimizeAnimator": "True", "FFlagOptimizeAnimatorCalcJoints": "True", "DFFlagStopUsingMaskWeight": "True", "FFlagRenderNoDepthLast": "True", "DFFlagFixTimeStampsForRunningNoThrottle": "True", "DFIntInterpolationDelayFactorTenths": "10", "DFFlagUseHermiteSplineInterpolation": "True", "DFFlagChatServiceFilterStringForPlayerFromAndToStudioBypass": "True", "FFlagCameraInterpolateMethodEnhancement": "False", "DFFlagBlendPosesWithIsOver": "True", "FFlagRestrictSales": "True", "FFlagBadTypeOnPcallEnabled": "True", "FFlagFixMouseFireOnEmulatingTouch": "True", "FFlagUseUpdatedSyntaxHighlighting": "True", "FFlagFixStickyDragBelowOrigin": "True", "FFlagFixBadMemoryOnStreamingGarbageCollection": "True", "DFFlagFixAllCharacterStreaming": "True", "FFlagDisableChangedServiceInTestMode": "True", "FFlagAllowFullColorSequences": "True", "FFlagStudioAllowFullColorSequences": "True", "DFFlagDynamicGravity": "True", "FFlagUseNewAppBridgeAndroid": "True", "FFlagFixSurfaceGuiGazeSelect": "True", "FFlagFixAlwaysOnTopSurfaceGuiInput": "True", "DFFlagCSGPreventCrashesWhenPartOperationsNotInDataModel": "True", "DFFlagUsePointsNewBatchingImpl": "True", "FFlagUseUpdatedKeyboardSettings": "False", "DFFlagFixAnimationControllerAnimator": "True", "DFFlagNoAnimationTrackState": "True", "DFFlagFixNestedAnimators": "True", "DFFlagWaitForToolHandleToEquip": "True", "DFFlagUseNewFetchFriendsFunction": "True", "FFlagWindowsNoDmpRetry": "False", "FFlagDeleteLogsOnMac": "True", "FFlagDeleteLogsByDate": "True", "FFlagTestMenuEnabledOnAllWindows": "True", "FFlagSoundServiceGameConfigurerConfigureRunServiceRun": "True", "DFFlagDoUpdateStepDetachedChannels": "True", "FFlagSoundChannelMaxDistanceStopFMODChannel": "True", "FFlagRenderSoftParticles": "True", "FFlagScriptContextSinglePendingThreadsQueue": "False", "DFIntTeleportExceptionInfluxHundredthsPercentage": "9000", "FIntStartupInfluxHundredthsPercentage": "100", "FFlagCSGAllowUnorderedProperties": "False", "DFFlagGamepadProcessMouseEvents": "False", "DFFlagCrashTouchTransmitterIfRefDtor": "False", "FFlagRenderUserGuiIn3DSpace": "True", "FFlagScreenGuisClipDescendants": "True", "FFlagUseNewNotificationPathLua": "True", "FFlagVideoDocumentationPluginEnabled": "True", "FFlagStudioBreakOnInfiniteLoops": "True", "FFlagMessageOnLoadScriptValidationFail": "True", "FFlagStudioMockPurchasesEnabled": "True", "FFlagStudioUseMarketplaceApiClient": "True", "DFFlagUseGameAvatarTypeEnum": "False", "FFlagStudioUsePlaySoloConfigurer": "True", "DFFlagUseAvatarFetchAPI": "False", "DFFlagSetHumanoidRegardlessOfNetworkOwnership": "True", "FFlagFixStudioCursorJitter": "True", "FFlagVoxelCompressedStorage": "True", "FFlagSmoothTerrainLODEnabled": "True", "FFlagBetterTabManagement": "True", "DFFlagBlockCustomHttpHeaders": "False", "FFlagStudioInsertAtTopCenterOfSelection": "True", "DFFlagCloudEditRemoveEditorOnPlayerRemove": "True", "FFlagWaitForChildTimeOut": "True", "FFlagDeviceEmulationStatistics": "True", "FFlagFixBoxSelectWithCtrl": "True", "FFlagStudioTrimPropertyWhitespace": "True", "FFlagDebugCSGExportFailure": "False", "FFlagFixCrashOnEmptyTextOnAutoComplete": "True", "FFlagCancelInputOnGuiNavigation": "True", "FFlagRemoveOldAnalyticsImplementation": "True", "FFlagRemoveOldCountersImplementation": "True", "FFlagUseNewAppBridgeStudio": "True", "FFlagStudioAnalyticsRefactoring": "True", "DFFlagRCCUseMarketplaceApiClient": "False", "FFlagStudioIntellesenseOnAllMembersEnabled": "True", "DFFlagDataStoreDisableReFetchingRecentKeys": "True", "FFlagNewDefaultScriptSource": "True", "FFlagStudioEnableDebuggerPerfImprovements": "True", "FFlagRecordForceStereo": "True", "FFlagStudioVideoRecordFix": "True", "FFlagStudioUseHttpsForUserInfo": "True", "FFlagUseHttpsForGameserverAshx": "True", "FFlagDisableScriptContextScriptsDisabled": "True", "DFFlagDuplicateInstanceReferenceFix": "True", "FFlagRakNetSupportIpV6": "False", "FFlagUseToStringN": "True", "FFlagStudioRenderRemotePlayerSelection": "True", "FFlagStackTraceLinks": "True", "FFlagStudioUpdateRestoreBehavior": "True", "FFlagTouchTransmitterWeakPtr": "True", "FFlagAdvancedRCCLoadFMODRetry": "True", "FFlagAdvancedRCCLoadFMODReportDeviceInfo": "True", "FFlagAdvancedRCCLoadFMODAttemptReportDeviceInfoOnFailure": "True", "FFlagClientLoadFMODReportDeviceInfo": "True", "DFIntReportDeviceInfoRate": "100", "DFFlagSoundV2LogOnSetSoundId": "True", "FFlagMouseUseUserInputServiceMouse": "True", "SFFlagSoundChannelUseV2Implementation": "True", "SFFlagUseNewSetFMOD3D": "True", "FFlagCSGReportSuccessFailure": "True", "FFlagUseAvatarFetchThumbnailLogic": "True", "FFlagDoIncrementalLoadingForR6AvatarFetch": "True", "FFlagUseAvatarFetchAPI": "True", "FFlagUseGameAvatarTypeEnum": "True", "FFlagSmoothTerrainLODFalseCoarseNeighbor": "True", "FFlagStudioPublishToRobloxActionUXAlwaysAvailable": "True", "FFlagFixArraysNotUnmarkedFromCyclicTableDetection": "True", "FFlagSoundIgnoreReplicatorJoinDataItemCache": "True", "FFlagStudioReportCachedRecentActions": "True", "FFlagStudioCacheRecentAction": "True", "FFlagRenderMeshReturnsCorrectly": "False", "FFlagEnableRenderCSGTrianglesDebug": "False", "FFlagStudioBreakOnInfiniteLoopsThreadingFixEnabled": "True", "SFFlagNetworkStreamRotationAsFloat": "False", "DFFlagStarterGuiMethodsWarnServer": "True", "DFFlagStarterGuiPropertiesReplicate": "True", "DFFlagClickDetectorReplicate": "True", "FFlagTeleportDetailedInfluxHttpStatusError": "True", "DFFlagHttpStatusCodeErrorIncludeBody": "True", "FFlagEnableVoiceASR": "False", "DFFlagFMODSetAccurateTime": "True", "FFlagRenderFixGuiOrder": "True", "FFlagExplosionsVisiblePropertyEnabled": "True", "FFlagEnableVoiceRecording": "False", "FFlagStudioReopenClosedTabsShortcut": "True", "FFlagStudioShowNotSavingScriptEditsOnce": "True", "FFlagHttpCurlCacheHandles": "True", "DFFlagAvatarFetchCanLoadCharacterAppearanceFix": "True", "FFlagGraphicsTextureCommitChanges": "False", "DFFlagLoadInstancesAsyncUseDataModelTasks": "False", "DFFlagInfluxOverUDP": "True", "FFlagUseLegacyEnumItemLookup": "True", "DFFlagInfluxOverTCP": "False", "DFFlagCFrameRightAndUpVectors": "True", "DFFlagLegacyBodyColorsOnCharacterLoadFailure": "True", "DFFlagUseMeshPartR15": "True", "FFlagStudioFixLockingScriptDisablesMenuOptions": "True", "FFlagUseCorrectDoppler": "True", "DFFlagFixJumpRequestOnLand": "True", "DFFlagNullStarterCharacterPrimaryPartFix": "True", "SFFlagR15CompositingEnabled": "True", "FFlagStudioFixPropertiesWindowScrollBarNotShowing": "True", "FFlagFixCollisionFidelityTeamCreate": "True", "DFFlagSendHttpBodyOnFailure": "True", "DFFlagCSGPreventNoContextCSGCrashes": "False", "FFlagConstraintPropertyReplicationRaceConditionFixEnabled": "True", "FFlagFixLogCulling": "True", "FFlagSmoothTerrainLODFixSeams": "True", "DFFlagDontCacheHumanoids": "True", "FFlagStudioPlaySoloConfigurerLegacyPlayerName": "True", "DFFlagPartForRegion3NoMaxLimit": "True", "FFlagRCCSupportTeamTest": "True", "FFlagStudioSupportBytecodeDeserialize": "True", "DFFlagStackTraceHasNewLines": "True", "DFFlagCleanCacheMoveMutex": "True", "FFlagFastFontMeasure": "False", "FFlagRenderMoreFonts": "True", "FFlagCleanFilteringEnabledLocalSpawnParts": "True", "FFlagFetchJoinScriptWithHttp": "False", "FFlagCheckPlayerProcessMutexCreation": "True", "FFlagCheckRegisterSoundChannelUniqueness": "True", "FFlagUseCommonModules": "True", "DFFlagRemoteFixDisconnectedPlayer": "True", "FFlagWarnForLegacyTerrain": "True", "FFlagFastClusterDisableReuse": "True", "FFlagStudioRespectMeshOffset": "False", "DFFlagRevisedClientJoinMetrics": "True", "FFlagRestoreScriptSourceWhenRedoingScriptCreation": "True", "DFFlagStudioFixPastingDecalsIntoMultiple": "True", "FFlagMeshPartMaterialTextureSupport": "True", "FFlagStudioPlaySoloCharacterAutoLoadsNullTool": "True", "DFFlagPGSWakeOtherIfOneAssemblyIsAwake": "False", "DFFlagFixR15BodyPhysics": "True", "FFlagLoadCharacterSoundFromCorescriptsRepo": "True", "DFFlagSoundV2LoadUseParamContext": "True", "DFFlagSoundV2LoadedRunCallbacks": "True", "FFlagFixPlayerProcessMutexDeadlock": "True", "FFlagImprovedJoinScriptFlow": "True", "FFlagRCCLoadFMOD": "True", "FFlagStudioDeadCodeOnMouseDown": "True", "DFFlagFireCharacterAddedAfterSpawn": "False", "FFlagChatVisiblePropertyEnabled": "True", "FFlagChatLayoutChange": "False", "FFlagCorescriptNewLoadChat": "True", "DFLogLuaTypeErrors": "4", "DFFlagLuaInstanceBridgeNewCamelCaseFixerEnabled": "True", "FFlagConstraintUIEnabled": "True", "FFlagStudioSetObjectsFromPropertiesWindow": "True", "FFlagStudioPromptWhenInsertingConstraints": "True", "DFFlagFixExperimentalSolverSetter": "True", "DFFlagShowRedForAutoJointsForPartsWithConstraint": "True", "FFlagTrackOriginalClientID": "True", "FFlagStudioHiddenPropertyCrashFixEnabled": "True", "FFlagStudioPropertyChangedSignalHandlerFix": "True", "FFlagStudioScriptAnalysisGetOrCreateRefactoring": "True", "DFFlagAllowHttpServiceInTeamCreate": "True", "DFFlagAllowRequireByAssetIdInTeamCreate": "True", "DFFlagLuaSignalCamelCaseAPI": "True", "FFlagFixLogManagerWritingToTempDir": "True", "FFlagTrackModuleScripts": "True", "FFlagUserJumpButtonPositionChange": "True", "FFlagLoadCommonModules": "True", "FFlagMouseCommandChangedSignalEnabled": "True", "DFIntInfluxTattletalePerUserHundredthsPercent": "1", "DFIntInfluxTattletalePerEventHundredthsPercent": "2000", "DFIntInfluxTattletaleCooldownSeconds": "300", "DFFlagSendHttpInfluxDatabaseField": "True", "FFlagGraphicsD3D11HandleDeviceRemoved": "True", "FFlagFixPlayerProcessMutexDeadlockForReal": "True", "FFlagNetworkKeepItemPools": "True", "FLogNetworkItemQueueDtor": "1", "FFlagFixLoadingScreenAngle": "False", "FFlagFixStudioInGamePaste": "True", "FFlagStudioSetViewportSizeOfClone": "True", "FFlagStudioTreeWidgetPotentialMemoryLeak": "True", "FFlagStudioEnableLayersForNSView": "True", "FFlagEnableViewportScaling": "True", "FFlagStudioDisableScrollingOnEarlyMac": "True", "FFlagPerformanceStatsCollectionEnabled": "True", "FFlagStudioStopSoundPlaybackAfterRemoval": "True", "FFlagStudioAllowSoundDraggingFromToolbox": "True", "FFlagStudioRelocateSoundJob": "True", "FFlagLuaDebugProfileEnabled": "True", "FFlagRemoveSoundServiceSoundDisabledProperty": "True", "FFlagRecordInGameDeaths": "False", "FFlagStudio3DGridUseAALines": "False", "FFlagFixIsCurrentlyVisibleSurfaceGuis": "True", "FFlagSurfaceGuiObjectEnabledCheck": "True", "FStringPlaceFilter_InterpolationAwareTargetTime": "True;249779150;333368740;444708274;64542766;248207867;171391948;360589910;388599755;163865146;127243303;162537373;6597705;332248116;348681325;196235086;13822889;189707", "DFFlagUseR15Character3": "True", "DFFlagAllowCustomR15Character": "True", "DFFlagFixDoubleJointR15Character": "True", "DFFlagFixR15SphereHead": "False", "DFFlagUseR15SwimFreestyle": "True", "DFFlagFixBodyColorsR15": "True", "DFFlagPlayerDescendantsDeleteOnDisconnectOff": "True", "DFFlagSpringConstraintInGameAdornFixEnabled": "True", "DFFlagDontPrintMalformedUrls": "True", "DFFlagUseMultiFormatCharacterAppearanceLoading": "True", "FFlagStudioFlycamAppBridgeFix": "True", "FFlagAllowCopyUnArchivableObjects": "True", "FFlagStudioReduceTeamCreateStuttering": "True", "DFFlagPGSSolverUsesIslandizableCode": "True", "DFFlagResetScreenGuiEnabled": "True", "FFlagGraphicsD3DPointOne": "True", "FFlagGraphicsNoMainDepth": "True", "FFlagCollectClientIDUpdateStatistics": "True", "FFlagStudioFixTestApis": "True", "FFlagAllowInsertConstrainedValuesAnywhere": "True", "FFlagStudioResizeMeshPartOnImport": "True", "FFlagStudioReportVitalParameters": "True", "FFlagSoundGroupsAndEffectsEnabled": "True", "FFlagSoundscapeReplicateChildren": "True", "FFlagLoadCorescriptsPlatformDefMode": "True", "FFlagEnableGetHitWhitelist": "True", "FFlagStudioUpdatePropertiesWithoutJob": "True", "FFlagOverrideTypeFunction": "True", "DFFlagEnableBindToClose": "True", "FFlagStudioFixUndeletingSoundCausesPlayback": "True", "FFlagServerSenderDontSendInterpolatedPhysics": "False", "FFlagGraphicsD3D9ComputeIndexRange": "True", "FFlagCrashOnScriptCloseFixEnabled": "True", "FFlagShowCoreGUIInExplorer": "True", "FFlagStudioUseServerConfigurer": "True", "FFlagUDim2LerpEnabled": "True", "FFlagDisableLayersForNSViewOnEarlyMac": "True", "FFlagStudioCorrectForRetinaScreensOnEarlyMac": "True", "FFlagStudioConsistentGuiInitalisation": "True", "FFlagStudioSanitizeInstancesOnLoad": "True", "FFlagStudioOnlyUpdateTeamTestActionsIfChanged": "True", "FFlagChatServiceReplicates": "True", "DFFlagICMPPingHundrethsPercentage": "100", "DFFlagUsePasiveOnlyForBind": "False", "DFFlagFavorIPV4Connections": "False", "DFFlagUsegetFamilyandMapAddress": "False", "FFlagBetterPlaceLauncherStatusHandling": "True", "FStringPlaceFilter_NewLayoutAndConstraintsEnabled": "True;534842009;20213796;379132413;485971234;515782100;248207867;360699282;498699944;540764930;534808604;520456996;552894983;551169796;560164377;599021441;609763195;609918169;599392478;614429353;337448601;615210477;606827239;19481228;19827397;26953764;561540866;20397851;626302497;402593749;589006000;461274216;129419469;478459751;460710135;464914388;481987774;610775332;567211827;636396993", "FFlagInformClientInsertFiltering": "True", "FStringClientInsertFilterMoreInfoUrl": "http://devforum.roblox.com/t/coming-changes-to-insert-service/30327", "FFlagSoundChannelOnAncestorChangedUseGameLaunchIntent": "True", "DFFlagAllowResetButtonCustomization": "True", "FFlagTattletaleFixTextValue": "True", "DFIntInfluxTattletaleInstancePathMaxLength": "200", "DFFlagFixRetriesExhaustedHandling": "True", "DFFlagBetterGetPlayerPlaceInstanceError": "True", "DFFlagCharacterScriptsLoadingRefactor": "True", "FFlagStudioPropertyWidgetRemoveUpdateEvents": "True", "FFlagStudioUserNotificationIgnoreSequenceNumber": "True", "FFlagStudioOnlyOneToolboxPreviewAtATime": "True", "FFlagStudioFixPauseDuringLoad": "True", "DFFlagStudioUseNewActiveToolEffect": "True", "FFlagGraphicsD3D11PickAdapter": "True", "FFlagChatFilterWorksLocally": "True", "FFlagFilterMessageWithCallbackNoTryCatch": "True", "FStringPlaceFilter_SetPhysicsToLastRealStateWhenBecomingOwner": "True;13822889;189707", "FFlagMetaliOS": "True", "FFlagUseNewAppBridgeIOS": "True", "FFlagTextBoundRespectTextScaled": "True", "FFlagRenderFastResolve": "True", "DFFlagLoadingGuiTeleportCrashFix": "True", "FFlagPluginSaveSelection": "True", "FFlagHandleSoundPreviewWidgetWithNoSelectedSound": "True", "FFlagDontSwallowInputForStudioShortcuts": "True", "FFlagStudioFireStickyMouseCommandChangedOnly": "True", "FFlagStudioDisableEditingCurrentEditor": "True", "FFlagFixCorruptionInLogFiles": "True", "FFlagStudioLockScriptsWithoutBlocking": "True", "FFlagSetPhysicsToLastRealStateWhenBecomingOwner": "True", "FFlagInterpolationAwareTargetTime": "True", "DFFlagServerSenderDontSendInterpolatedPhysics": "True", "FFlagSyncRenderingAndPhysicsInterpolation": "True", "DFIntTargetTimeDelayFacctorTenths": "20", "FFlagNewIncomingPhysicsManagement": "True", "DFFlagGetAssetIdsFromPackageAPI": "True", "DFFlagGoodbyeChoiceActiveProperty": "True", "FFlagAllowResizeRenderBufferiOS": "True", "FIntEnableAvatarEditoriOS": "100", "FIntEnableAvatarEditorAndroid": "1", "FIntAvatarEditorAndroidRollout": "1", "DFFlagFixScaledR15Physics": "True", "DFFlagScaleR15Character": "True" } ) +}) + +router.get(["/v1/settings/application"], (req, res) => { + return res.json({"applicationSettings":{"DFFlagRCCKickDuplicatePlayersOnJoin":"True","FFlagRCCKickDuplicatePlayersOnJoin":"True","DFFlagDebugAllowLocalRccKicks":"True","FFlagDebugLocalRccServerConnection":"False","FFlagChinaLicensingApp":"False","FFlagShowConnectionErrorCode":"True","FFlagCoreScriptFasterCreate":"True","FFlagLocalizeErrorCodeString":"False","DFFlagAccoutrementWeldingFilteringEnabled":"False","DFFlagAddOSToPlayerInfoTable":"True","DFFlagAddSoundEnabledInitializationParam":"True","DFFlagAddStreamingAndResourceUsageUrlParams":"True","DFFlagAllowJoinsToWait":"True","DFFlagAllowPackageLinkAncestoryClone":"True","DFFlagAnalyticsCDNProbeOnlyQueryOneHost":"True","DFFlagAnalyticsReportHttpStatsAtExit":"True","DFFlagAnalyticsServiceMonitoring":"True","DFFlagAnimationLoadSimplification":"False","DFFlagAnimationLoadSimplification2":"True","DFFlagAnimatorOnSteppedKeepAlive":"True","DFFlagAssumeNoBreakableJoints":"True","DFFlagAttemptFixXBoxCrash":"True","DFFlagAvoidResetCurrentRegion4":"True","DFFlagBatchApiAssetArchiving":"False","DFFlagBatchAssetApiNoFallbackOnFail":"True","DFFlagBatchAssetApiTrackFailedUrls2":"True","DFFlagBetterTimeStamp":"True","DFFlagBetterTypeErrors":"True","DFFlagCSGMeshDeserializationFix":"True","DFFlagCSGMeshLevelOfDetailV2_PlaceFilter":"True;2434889832;2568147212","DFFlagCSGMeshLevelOfDetail_Fix2":"True","DFFlagCSGMeshV4DeserializerEnabled":"True","DFFlagCSGv2SkipDegenerateTriangles":"True","DFFlagCSGv2StatisticsFix":"True","DFFlagCSGv2UseMegaAssetFetcher":"True","DFFlagCSGv2UsePositionClustering":"True","DFFlagCacheAverageClientPing":"True","DFFlagCacheInAssemblyForSending":"True","DFFlagCatchCharacterLoadingErrors":"True","DFFlagCheckCoreLocalizationLoading":"True","DFFlagCheckForNullSoundChannel":"True","DFFlagCheckForNullWhenCloningInstances":"True","DFFlagCheckGameValidityInDoTeleport":"True","DFFlagCheckMultipleLoadCharacterCalls":"True","DFFlagCheckPVDifferencesForInterpolationChoice":"True","DFFlagClampPitch2":"True","DFFlagCleanCacheMoveMutex":"True","DFFlagClearUnusedLuaRefsWithJob":"True","DFFlagClientHappyNewYear1":"True","DFFlagClientJoinProcessToEventIngest":"True","DFFlagCloudTablesEnforceAccountAge":"True","DFFlagCloudTablesPhase2_AddCloudTableToListOnCreate":"True","DFFlagCloudTablesPhase2_CreateTableEarly":"True","DFFlagCloudTablesPhase2_IgnoreEmptyManifestReport":"True","DFFlagCloudTablesPhase2_MissingSourceTextScraperFix":"True","DFFlagCloudTablesPhase2_TrackLocaleFetchCallsites":"True","DFFlagCloudTablesPhase2_WaitForSourceFix":"True","DFFlagCollectSoundInfo":"True","DFFlagContactManifoldCountReportingEnabled":"True","DFFlagContentProviderAssetdeliveryRolloutEnabled2":"True","DFFlagContentProviderUseLambdas":"True","DFFlagDarwinIncludeMemReusable":"True","DFFlagDataModelSetAnalyticsDatacenterId":"True","DFFlagDataStoreAutoHttpRetry":"False","DFFlagDataStoreDontTouchCachedRecordOnGetAsync":"True","DFFlagDebugAnalyticsForXBoxCrash":"True","DFFlagDebugAnalyticsForXBoxCrashOnSuccessAlso":"True","DFFlagDebugEnableRemoteProfiling2":"True","DFFlagDebugGAReportThrottledSessions":"True","DFFlagDebugLaunchTimeByCountryPlaceSpecific_PlaceFilter":"true;189707","DFFlagDebugReportSoundAssetsFromList":"True","DFFlagDeleteEventInvocationArgsSerially":"True","DFFlagDidNotEatPizzaToday":"True","DFFlagDoNotInvalidateMe":"True","DFFlagDoNotRepositionSeated":"True","DFFlagDoNotRunAnimationEditorInPlayMode":"True","DFFlagDoParallelInterpolationFixUnguardedBufferClear":"True","DFFlagDoParallelInterpolationSetPV2":"True","DFFlagDontCallOnMovingAssemblyRoot":"False","DFFlagDontWhitelistUserInputConnectionCounts":"True","DFFlagDynamicFastVariableSupportFileSource":"True","DFFlagDynamicLocalizationTablesNonBlocking2":"True","DFFlagDynamicReloaderDoWork":"True","DFFlagEmoteLoadingEnabled":"True","DFFlagEmotesApiEnabled":"True","DFFlagEnableFillCylinder":"True","DFFlagEnableMeshHeadAttachments":"True","DFFlagEnableMeshHeadNative":"True","DFFlagEnableMessagingService":"True","DFFlagEnableMessagingServiceAnalysis":"True","DFFlagEnablePlayFabBatchEventCompression":"False","DFFlagEnablePrintJoinSizeBreakdown":"True","DFFlagEnableWakingPGSJointsForNonSolverPrimitives":"True","DFFlagEnforceSlaveStateEnabledStatus":"True","DFFlagEvenBetterTimeStamp":"True","DFFlagExternalWakeOtherAssembly2":"False","DFFlagFasterResetRoot":"True","DFFlagFasterVectorIndex":"True","DFFlagFileSystemReadDirFix":"True","DFFlagFileWatcherMultipleEventPerUpdateCall":"True","DFFlagFireHealthChangedLater":"True","DFFlagFixCLI28389":"True","DFFlagFixCharacterAppearanceLoadedEvent2":"True","DFFlagFixDataStoreWarningKeyEmpty":"True","DFFlagFixEmotesInventoryOverwrite":"True","DFFlagFixEquipToolAssertWhenHumanoidNotInDataModel":"True","DFFlagFixExtractFirstLOD":"True","DFFlagFixInvalidateCache":"True","DFFlagFixManualJointAdornCrash":"False","DFFlagFixMasslessInertiaContribution":"True","DFFlagFixMeshNormalsForNonUniformScaling":"True","DFFlagFixMoveToSlowAfterAnalogControls":"True","DFFlagFixNewTriangleMeshCreation":"True","DFFlagFixPVSpaceTransform":"True","DFFlagFixReadCache":"True","DFFlagFixRootPartCollisionForR6":"True","DFFlagFixSetupAnimationWeights":"True","DFFlagFixSpawningPerformanceAndInaccuracies":"True","DFFlagFixThrottlingCalculationForRot":"True","DFFlagFixTimeConversion":"True","DFFlagForwardRefCheckMegaReplicator":"True","DFFlagGenericPublicKeyIndex2":"True","DFFlagGetAutoTranslationEntriesEnabled2":"True","DFFlagGetBundleDetailsAPI":"True","DFFlagGetCountryRegionForPlayerAsyncEnabled":"True","DFFlagGetPolicyInfoForPlayerAsyncEnabled":"True","DFFlagGetTeamLazyEvaluation":"True","DFFlagGetTranslatorForLocaleAsyncEnabled2":"True","DFFlagGroupTeleportAddTeleportIdParameter":"True","DFFlagGroupTeleportJoinDataOverWrite":"True","DFFlagHoldTrottleValue":"True","DFFlagHttpAssetArchiveWarning":"False","DFFlagHttpBatchApiSupportAssetdeliveryInputUrls":"True","DFFlagHttpBatchCompress":"True","DFFlagHttpCacheAsync":"True","DFFlagHttpCacheCleanupNew":"True","DFFlagHttpCacheMissingRedirects":"True","DFFlagHttpClientCleanTimedCallbacks":"True","DFFlagHttpClientDisabledSkipCache":"True","DFFlagHttpErrMessageFix":"True","DFFlagHttpErrorNestingFix":"True","DFFlagHttpMarkExternalRequests":"True","DFFlagHttpStatisticsFix":"True","DFFlagHttpTcpKeepalive":"True","DFFlagHumanoidWithPGSConstraintsUsePhysicsState":"True","DFFlagInWithTheNew_PlaceFilter":"true;1034242130;2528277338","DFFlagInventoryFetchUseInventoryApi":"True","DFFlagJoinDataCacheChecksClientOwnedParts":"True","DFFlagJsonParsePrimitives":"True","DFFlagLDLPGSStatsEnabled":"True","DFFlagLetTouchFlush":"True","DFFlagLinkedSourceLoadSimplification":"True","DFFlagLocServiceTrackPlayerTextScraping1":"True","DFFlagLocService_InvalidateTranslationsOnChildAdded":"True","DFFlagLocTableNormalizeLocaleAttemptTranslation":"True","DFFlagLocalizationLanguageDelimiterFix":"True","DFFlagLockTheftInstanceCrash":"True","DFFlagLogMemoryStatsOnCompressionError":"True","DFFlagLuaTableMove":"True","DFFlagLuauFixFenv":"True","DFFlagMechanismInterpolationLikesLocalSpace":"True","DFFlagMegaReplicatorOnlyTrackReplicatableProperties":"True","DFFlagMegaReplicatorOptimizePendingNewInstanceItemTracking":"True","DFFlagMessagingServiceFixErrorMessage":"True","DFFlagMessagingServiceFixUnsubscribeTwiceOnClose":"True","DFFlagMessagingServiceForTest":"True","DFFlagMessagingServiceSentUtcTime2":"True","DFFlagMessagingServiceSuggestedErrorMessage":"True","DFFlagMessagingServiceTopicEmptyChecking":"True","DFFlagMiscIndividualAssetRequestUseAssetdelivery2":"True","DFFlagMoreWeldRestrictions":"False","DFFlagMoveAssetFetchEndpointToAssetDelivery":"True","DFFlagMoveAudioDeviceReporting":"True","DFFlagMpsRateLimit":"True","DFFlagMpsRateLimitReport":"True","DFFlagMpsRateLimitReport_PlaceFilter":"false;370731277","DFFlagMpsRateLimitWarn":"True","DFFlagNPCUnequipTools":"True","DFFlagNamesOccludedAsDefault":"True","DFFlagNavigationServiceAnalytics":"True","DFFlagNetworkParallelPhysicsOut":"True","DFFlagNewRejoinMessage_PlaceFilter":"True;1034242130;2528277338","DFFlagNewShowStreamedRegionDiag":"True","DFFlagNewSortAndFilter":"True","DFFlagNoFaceHeadMeshTagR6":"True","DFFlagNoInfiniteLoopOnChatInfoLoadFailure":"True","DFFlagNoMoreSinglePhysicsSenderJob":"True","DFFlagNoStringDump":"True","DFFlagNoYieldCaptured":"True","DFFlagNonBlockingAnalyticsExit":"True","DFFlagOnlyFireHealthChangedWhenHealthChanges":"True","DFFlagOwnershipDistributionCheckIgnoredJoint":"True","DFFlagPGSSolverSimIslandsEnabled2":"True","DFFlagPGSWakeOtherAssemblyForJoints":"True","DFFlagPGSWakeOtherIfOneAssemblyIsAwake":"False","DFFlagPLTIGetLocaleFallback":"True","DFFlagPackageMoveModificationToRCCStage3":"True","DFFlagPackageMoveModificationToRCCStage4":"True","DFFlagPackageMoveModificationToRCCStage5":"True","DFFlagParallelCollisionDoNothingFaster":"True","DFFlagParallelCollisions2":"True","DFFlagParallelCollisionsUseBetterGImpactCaching":"True","DFFlagParameterizeHandlerNamedParameterEnabled":"True","DFFlagParameterizeHandlerPureUsernameFix":"True","DFFlagParameterizeInThread":"True","DFFlagPreloadAsyncCallbackFunction":"True","DFFlagPreventLuaFunctionMigration":"True","DFFlagProfileAvoidRecordingEmptyFrames":"False","DFFlagRaiseCorrectException":"True","DFFlagRbxFormatMultiByteSizeFix":"True","DFFlagRccDoNotSetZeroPlaceIdFilter":"True","DFFlagRccUseHttpRequestForPlaceFetch":"True","DFFlagReduceSendDataCriticalSection":"True","DFFlagReduceTrussSearchDistance2":"False","DFFlagRejectRebelReceipt":"True","DFFlagRemovePrepareInstancesLocks":"True","DFFlagRemoveRedundantQueryParams":"True","DFFlagReplicatorCollectItemCountOnSend":"True","DFFlagReplicatorJDIOnlyUpdateCacheWhenParentIsUpToDate":"True","DFFlagReplicatorLabelItemTypesProcessed":"True","DFFlagReplicatorOptimizeDescendantOfWorkspace":"True","DFFlagReportCharacterLoadTimeMetrics2":"True","DFFlagReportCoalescingStats":"True","DFFlagReportCollisionDetectionTime":"True","DFFlagReportCounterToGameInstancesApi":"True","DFFlagReportDataStoreErrorCases":"True","DFFlagReportGALightingTechnology":"True","DFFlagReportGPUMetrics":"True","DFFlagReportInfluxLightingTechnology":"True","DFFlagReportInterpolationPerformance":"True","DFFlagReportInterpolationPerformanceClient":"True","DFFlagReportJoinTimeImpactStats":"True","DFFlagReportLightingTechnology":"True","DFFlagReportMp3ParsingAnomalies":"True","DFFlagReportOggParsingAnomalies":"True","DFFlagReportParsingAnomalies":"True","DFFlagReportPhysicsFPSStatsPlaceSpecific_PlaceFilter":"True;606849621;171391948;189707","DFFlagReportPhysicsSolverStatsPlaceSpecific_PlaceFilter":"True;606849621;171391948;189707","DFFlagReportPhysicsStatsToHUD":"True","DFFlagReportReplicatorStatsToInflux":"True","DFFlagReportSolverUsageStats":"True","DFFlagReportStatsCurrentLessThanMin2":"True","DFFlagReportStatsPauseDuration":"True","DFFlagReportTriangleMeshPartMigrationData":"True","DFFlagRomarkAdjustCharacterReportThrottle":"True","DFFlagRoundToScreenScaleUseFloor":"True","DFFlagSanitizeCofmVariablesNanInf":"True","DFFlagScriptContextImproveValidateThreadAccess":"True","DFFlagScriptContextTraceLocalTime":"True","DFFlagSendClientNewJoinData":"True","DFFlagSendPackageRequestFailureMessageOnlyOneTime":"True","DFFlagSendTypeAsStringDuringCacheValidation":"True","DFFlagServerConfigurerDoCDNProbe":"True","DFFlagServerCopiesPlayerGui3":"True","DFFlagServerProfileSeparateThread":"True","DFFlagServerReportPhysicsThrottleWithDatacenterId":"True","DFFlagSetNumberEmotesLoaded":"True","DFFlagSignalRCrashFix":"True","DFFlagSimDecisionBaseOnExtents2":"True","DFFlagSimplifyRakNetConnectionHandshake":"False","DFFlagSkipContainerCheckOnJoin":"True","DFFlagSkipLowRes":"True","DFFlagSkipLowRes_PlaceFilter":"True;3027055174","DFFlagSkipSDILogName":"True","DFFlagSocialServiceDevPromptGameInvites":"True","DFFlagSpecialCaseSupportRbxCdnInAppDataModel2":"True","DFFlagSpecificGravityDummyFunctionGA":"True","DFFlagSpecificGravityDummyReturnsZero":"False","DFFlagStreamingExtentsForceUpdateOnlyWhenAlive":"True","DFFlagStreamingGameplayPausedAPI":"True","DFFlagStreamingGameplayPausedAPIStudioProperties":"True","DFFlagStreamingSetPlayerPausedFirst":"True","DFFlagStreamingUpdateWorldExtentsWhenPlayerMoves":"True","DFFlagStrictMp3Parsing":"True","DFFlagStrictOggParsing":"True","DFFlagStrictOggParsingFix":"True","DFFlagSupportYouTubeInAppDataModelIfRbxCdnAllowed":"True","DFFlagTeamCreateSaveAnalyticsServiceApiKey":"True","DFFlagTextScraperEnableCaptureDateTime":"True","DFFlagTextScraperParameterizeV2":"True","DFFlagTextScraperReportOSPlatform":"True","DFFlagTextScraperReportSessionId":"True","DFFlagTextScraperStopReportPureParameterFix":"True","DFFlagThrottleGetUserThumbnailAsync":"True","DFFlagThrowErrorWhenRequestedURLFailed":"True","DFFlagThumbnailSupportFocusOnPart":"True","DFFlagUpdateCofmOnMasslessRootChange":"True","DFFlagUpdateHipHeightClamping":"True","DFFlagUseAssemblyExternalEdgeListCachedForWake":"True","DFFlagUseBaseUrlNotHardcodedUrl":"True","DFFlagUseDistanceThinning":"True","DFFlagUseLowResTerrain":"True","DFFlagUseLowResTerrain_PlaceFilter":"True;3027055174","DFFlagUseMomentumThinning":"True","DFFlagUseMomentumThinning_PlaceFilter":"False;1694497805;1225846869","DFFlagUseNewPemKeys":"True","DFFlagUseNewQueryParamUtility":"True","DFFlagUseNewTerrainProtocol":"True","DFFlagUseNewTerrainProtocol_PlaceFilter":"True;3027055174","DFFlagUseNoneLuaBuildRigFromAttachments":"True","DFFlagUsePemKeyFormat":"True","DFFlagUsePositionPropWhenKnown":"True","DFFlagUsePositionPropWhenKnown_PlaceFilter":"True;3027055174","DFFlagUsePugiXmlForSettings":"False","DFFlagUseRoundRobin":"False","DFFlagUseSort":"False","DFFlagUserAccessUserSettings":"True","DFFlagUserAdjustHumanoidRootPartToHipPosition":"True","DFFlagUserAllowDisableCustomAnims2":"True","DFFlagUserChatPrivacySetting":"True","DFFlagUserFixCharacterSoundIssues":"True","DFFlagUserHttpAPIEnabled":"True","DFFlagUserPlayCharacterLoopSoundWhenFE":"True","DFFlagUserPlayCharacterSoundWhenFE":"True","DFFlagUserPreloadAnimations":"True","DFFlagUserServerFollowers":"True","DFFlagUserUseLuaVehicleController":"True","DFFlagUserUseSoundDispatcher":"True","DFFlagUsingHeadsIsBadForOwningThings":"True","DFFlagUsingHeadsIsBadForPhysicsReplication":"True","DFFlagVerifyWorldInTryFloor":"True","DFFlagVersionedIdSync":"True","DFFlagViewportFrameLight":"True","DFFlagWebParserAddIsNumberCatchall":"True","DFFlagWhitelistStreamingPauseState":"True","DFFlagWhitelistUserInputEvents":"True","DFFlagXboxDisableTextChat":"True","DFIntAnalyticsForXBoxCrash_JoinInfluxHundredthsPercentage":"1","DFIntAnalyticsMaxSendWaitTimeMs":"1500","DFIntBatchApiAssetArchivingErrorDateSec":"1565895600","DFIntBulletContactBreakOrthogonalThresholdPercent":"200","DFIntBulletContactBreakThresholdPercent":"200","DFIntCSGLevelOfDetailSwitchingDistanceL12_PlaceFilter":"500;2434889832;2568147212","DFIntCSGLevelOfDetailSwitchingDistance_PlaceFilter":"250;2434889832;2568147212","DFIntCSGv2LodMinTriangleCount":"100","DFIntCSGv2LodsToGenerate":"3","DFIntCSGv2OperationInfluxHundredthsPercentage":"100","DFIntCanHideGuiGroupId":"4358041","DFIntChatCap":"100","DFIntChatTime":"10","DFIntClientJoinProcessPositiveSamplesThousandths":"10","DFIntClientNetworkInfluxHundredthsPercentage":"500","DFIntContentProviderAssetdeliveryRolloutPercentage":"100","DFIntCrashUploadHttpResponseDefaultTimeoutMillis":"80000","DFIntCrashUploadToBacktracePercentage":"10","DFIntDataStoreInfluxReportNonParsableDataPerMyriad":"10000","DFIntDataStoreMaxValueSize":"262144","DFIntDefaultBalanceD":"100","DFIntDefaultBalanceP":"7000","DFIntDynamicReloaderFailureInfluxHundrethsPercentage":"10000","DFIntDynamicReloaderFileFailureInfluxHundrethsPercentage":"10000","DFIntExpireMarketPlaceServiceCacheSeconds":"60","DFIntGamePassOwnershipCacheSeconds":"30","DFIntGetUserThumbnailAsyncThrottleTime":"3","DFIntHttpCacheStatsReportingIntervalSeconds":"180","DFIntHttpConnMaxAge":"600000","DFIntHttpConnectDefaultTimeoutMillis":"60000","DFIntHttpCurlConnectionCacheSize":"-1","DFIntInfluxReportLocalFilterStringPermyriad":"500","DFIntInfluxReportRCCStatsHundredthsPercentage":"5000","DFIntJSONOverflowDepth":"200","DFIntJoinInfluxHundredthsPercentage":"100","DFIntLDLPGSStatsRatePercentPlaceSpecific":"25","DFIntLocalizationServiceContentLoadErrorHundredthsPercentage":"1000","DFIntLogGroupTeleportInfluxPerTenThousand":"1000","DFIntMaxClusterKBPerSecond":"400","DFIntMaxDataOutJobScaling_PlaceFilter":"20;3260091322","DFIntMaxDataPayloadSize":"96000000","DFIntMaxFramesToSend":"2","DFIntMaxReceiptSize":"100","DFIntMpsRateLimitCapacity":"10","DFIntMpsRateLimitDuration":"10","DFIntNewSettingsEndpointExceptionInfluxPermyriad":"10000","DFIntNumberFramesSubmergedBeforeVSquaredViscocity_PlaceFilter":"0; 1221071288; 1107780422; 1223560318","DFIntOnDisconnectHTTPTimeout":"500","DFIntPercentApiRequestsRecordGoogleAnalytics":"5","DFIntPlayerConfigurerCDNProbeDelayMs":"10000","DFIntPrimStatsGANumDelimited":"3000","DFIntRakNetConnectionStartWindow_HundredthsPercentage":"1000","DFIntRakNetResendMaxThresholdTimeInUs":"2000000","DFIntRakNetResendScaleBackFactorHundredthsPercent":"6500","DFIntReplicatorAnimationTrackLimitPerAnimator":"50","DFIntReplicatorAnimationTrackLimitPerAnimator_PlaceFilter":"120;2116452049","DFIntReplicatorCountLimitInfluxHundrethsPercentage":"10000","DFIntReplicatorMaxPacketBytesSentToInfluxOnError":"256","DFIntReportAnimationTrackSpamInfluxHundrethsPercent":"500","DFIntReportDeviceInfoRate":"100","DFIntReportParsingAnomalyRate":"1","DFIntReportSoundAssetsRate":"1","DFIntS2NumPhysicsPacketsPerStep":"2","DFIntS2NumPhysicsPacketsPerStep_PlaceFilter":"8;3260091322","DFIntSendJoinTimesToDiag_HundredthsPercentage_PlaceFilter":"4000;370731277","DFIntSendRakNetStatsInterval":"300","DFIntServerBandwidthPlayerSampleRate":"20","DFIntSmoothTerrainPhysicsRayAabbSlop":"1","DFIntStepsToJoin":"2","DFIntStreamPauseVelBufFactorHundredths":"100","DFIntTextScraperReportUserIdSize":"5","DFIntThrottledVelocityThresholdTenths":"15","DFIntTimePermyriad":"10000","DFIntWaterViscosityDragFudgeFactor_PlaceFilter":"500; 1221071288; 1107780422; 1223560318","DFIntWebParserInfluxWriteNanInfPerMyriad":"1000","DFIntWeldPermyriad":"100","DFIntWorldStepDtAveExpFactorHundredth":"1","DFLogErrorDescription":"6","DFLogMessagingService":"6","DFLogSignalRConnection":"6","DFLogSoundCheckResult":"4","DFStringAdditionalBlacklistHeaders":"SOAPAction","DFStringAnalyticsNS1BeaconConfig":"https://web.archive.org/web/20200624170102/https://c0ll.rbxcdn.com/test-50kb.png|g2kd2s|https://c0hw.rbxcdn.com/test-50kb.png|g2iyic|https://c0cfly.rbxcdn.com/test-50kb.png|g2hjxw|https://c0ak.rbxcdn.com/test-50kb.png|g2g5dg","DFStringDataStoreThrottleMsg":"DataStore request was added to queue. If request queue fills, further requests will be dropped. Try sending fewer requests.","DFStringR15CollisionTypeField":"universeAvatarCollisionType","DFStringReportSoundAssetsAssetList":"rbxassetid://1837038213,rbxassetid://1846492029,rbxassetid://1841601627,rbxassetid://1845571507,rbxassetid://1836362602,rbxassetid://1846368341,rbxassetid://1847611722,rbxassetid://1845891180,rbxassetid://1845891141,rbxassetid://1842957560,rbxassetid://1836553363","DFStringRobloxAnalyticsURL":"https://web.archive.org/web/20200624170102/http://ecsv2.roblox.com/","DFStringSendPingForCnConnectingToDcList":"111,174,191,133","FFlagAddEndedSignalToSoundJobStudio":"True","FFlagAdjustHipTranslationBasedOnHipHeight":"True","FFlagAllowCatalogItemCreatorAssetConfig":"True","FFlagAllowMeToParseMyOwnJoinBlob":"True","FFlagAllowNegativeDisplayOrder":"True","FFlagAlwaysLuau":"True","FFlagAnimationSampleCorrection":"True","FFlagAnthroArtistIntentFBXImporterIntermediateState":"False","FFlagAppShellReporterMonitorFrameTimeIOS":"True","FFlagAvatarEditorAnthroSlidersUIOnly":"True","FFlagAvatarEditorCostumeSignalR":"True","FFlagAvatarEditorFixLegCameraPosition":"True","FFlagAvatarEditorFixSliderSensitivity":"True","FFlagAvatarEditorInitializeModelEarly":"True","FFlagAvatarEditorKeepYourColor":"True","FFlagAvatarEditorRefactorPageType":"True","FFlagAvatarEditorRemoveDefaultClothingMessage":"True","FFlagAvatarEditorSelectivelyUseDefaultAsset":"True","FFlagAvatarPartScaleTypeFix":"True","FFlagAvoidCrashOnThreadResourceError":"False","FFlagAvoidFindFirstChildCallsInGuiBase2d":"True","FFlagBackpackScriptUseFormatByKey":"False","FFlagBadgeReadDisabledFromInfo":"True","FFlagBatchAssetApi":"False","FFlagBestProximatePartFix":"True","FFlagBillboardGuiDistanceStepping2":"False","FFlagBreakJointsOnDeath":"True","FFlagCJVNotFallbackToEnglishForCoreGuiEnabled":"True","FFlagCMSEndPointsAPI":"True","FFlagCSGv2ControlSignificands":"False","FFlagCSGv2EnableEmptyMeshError":"True","FFlagCSGv2EnablePerPrimitiveBoxMaps":"True","FFlagCSGv2ForceEnabled":"True","FFlagCSGv2InGameEnabled":"True","FFlagChangeNarrowToSlender":"True","FFlagChatServiceAnalyticsOnFilterStringCalls":"False","FFlagCheckIntentWhenInitDefaultScripts":"True","FFlagClickDetectorCursorIconEnabled":"True","FFlagCloudEditServerGeneratesPlayerCameraPosition":"True","FFlagConnectionScriptEnabled":"True","FFlagConstraintAdornCleanup":"True","FFlagContentProviderTempDirWithPid2":"True","FFlagCoreScriptEnableInspectAndBuy":"True","FFlagCoreScriptEnableInspectAndBuy_PlaceFilter":"True;3155066112;3157761435;3204147952;189707","FFlagCoreScriptEnableRobloxTranslatorFallback":"True","FFlagCoreScriptEnableRobloxTranslatorFallback_PlaceFilter":"True;3155066112;3157761435;3204147952;189707","FFlagCoreScriptNoPosthumousHurtOverlay":"True","FFlagCoreScriptTranslateGameText2":"True","FFlagCoreScriptsUseLocalizationModule":"True","FFlagCoreUseRoact1_x":"True","FFlagCrashReporterNew":"False","FFlagCurlOption53":"True","FFlagCurlProbe4":"True","FFlagDatamodelServicesConnectionFix2":"True","FFlagDebugClientNetworkPerPlaceMetrics":"False","FFlagDebugClientNetworkPerPlaceMetrics_PlaceFilter":"True;1818;3498890;189707","FFlagDelayPurchasePromptActivation":"True","FFlagDisableDrawingStudsInEdit":"True","FFlagDisableReJoinForSurfaceTool":"True","FFlagDontInsertGroundJoints":"True","FFlagDontStoreCharacterModelBeingLoadedInPlayer":"False","FFlagEasingExpansion":"True","FFlagEnableAbsoluteCellSizeAndCellCount":"True","FFlagEnableAssetConfigVersionCheckForModels":"True","FFlagEnableAssetPreviewDynamicVote":"True","FFlagEnableAvatarEditoriOSTablet":"True","FFlagEnableCatelogForAPIService":"True","FFlagEnableDataForAssetConfig":"True","FFlagEnableDataModelFetchAssetAsync":"True","FFlagEnableDeveloperGetManageGroupUrl":"True","FFlagEnableFSEventWatcher":"True","FFlagEnableInsertAssetCategoryAnalytics":"True","FFlagEnableLuaBottomBarWithTextOnPhone":"False","FFlagEnableLuaBottomBarWithTextOnTablet":"False","FFlagEnableMarketplaceFavorite":"True","FFlagEnableMouseUpEventFireForCurrentDragGuiObj":"True","FFlagEnableNewChatApi":"True","FFlagEnablePreviewTabSelection":"True","FFlagEnableReplaceBodyPartR15":"True","FFlagEnableStudioServiceGetUserId":"True","FFlagEnableSurfaceGuiPixelsPerStud":"True","FFlagEnableTextBoxPasswordDev":"True","FFlagEnableTextSelection2":"True","FFlagEnableToolboxGetAssetsFailedCaseFix":"True","FFlagEnableToolboxUploadReport":"True","FFlagEnableToolboxVoteFix":"True","FFlagEndKeyboardEventsOnFocusChange3":"True","FFlagExitProcessOnExit":"True","FFlagFasterInstanceCheck":"True","FFlagFireAncestryChangedJointSignalAfterWorldInsert4":"True","FFlagFireChangedForCursorPosition":"True","FFlagFixAssetUploadSuccssMessage":"True","FFlagFixBadDirtyStateSetForUIConstraint":"True","FFlagFixButtonR2MouseClickOnGui":"True","FFlagFixCrashChangingHierarchyInRelayout":"False","FFlagFixG3DFpChecks":"True","FFlagFixIAdornableCollectorCrash3":"False","FFlagFixInspectMenuAnalytics":"True","FFlagFixLoadTimeReporting":"True","FFlagFixLoadableImageDoesNotLoadCachedImage":"True","FFlagFixLuaAppAvatarDraggable":"True","FFlagFixModalGuisInFoldersBeingIgnored":"True","FFlagFixModelPreviewSelection":"True","FFlagFixMousePositionInWindowCheck":"True","FFlagFixMultiWindowMouseMovements":"True","FFlagFixPluginQWidgetInitialization2":"True","FFlagFixPromiseUtilitiesBatch":"True","FFlagFixScalingValueRename":"True","FFlagFixScalingValueRename_PlaceFilter":"False;370731277","FFlagFixToggleOffDarkName":"True","FFlagFixXSwipe":"True","FFlagFlyweightServiceDataRecievedCallbackCrashFixEnabled":"True","FFlagFreeCameraForAdmins":"True","FFlagFreecamInTestServers":"True","FFlagGameMediaEntryIDOptional":"True","FFlagGamePerfMonitorGameCloseFix":"True","FFlagGamePerfMonitorStatsWindowFix":"True","FFlagGameinternationalizationApiWhitelist":"True","FFlagGamepadInputRaceConditionFix":"True","FFlagGetFVariableThrowsAgain":"True","FFlagGraphicsGLFixCopyFramebufferMip":"True","FFlagGraphicsGLHD3000DisableGL3":"False","FFlagGraphicsGLHD3000DisableUBO":"True","FFlagGraphicsGLSeparateCB":"True","FFlagGreyOutPublishForAssetConfigIfServiceIsSelected":"False","FFlagGuestFriendCheckFailImmediate":"True","FFlagHttpClientDisconnectResultSignals":"True","FFlagHttpUseContentCacheFlag3":"True","FFlagHttpUseMinGzip":"False","FFlagHumanoidPreventDuplicateAnimatorChildren":"True","FFlagIESuppressErrors":"True","FFlagIOSNowSupportsAussieMode":"True","FFlagIgnoreCollisionPairs":"True","FFlagInGameUIForceDefaultLocaleOnOSX":"True","FFlagInGameUIForceDefaultLocaleOnWin10":"True","FFlagInGameUIForceDefaultLocaleOnWin32":"True","FFlagInitializeModCodesForWindows":"True","FFlagInspectMenuEnableEmotes":"True","FFlagInspectMenuProgressiveLoading":"True","FFlagInspectMenuUpdateDisabledColor":"True","FFlagIsPasswordTextRendering":"True","FFlagJoinTime_AvatarFastClusterSignal":"True","FFlagJoinTime_AvatarTextureCompositorSignal":"True","FFlagJoinTime_HttpQueuePrio":"True","FFlagJoinTime_LocalUserAnimationPriority":"True","FFlagJoinTime_LocalUserClusterPriority":"True","FFlagJoinTime_LocalUserMeshPriority":"True","FFlagJoinTime_LocalUserTexturePriority":"True","FFlagJoinTime_PassTexturePriority":"True","FFlagJointsUseNoCollideJointCount3":"True","FFlagKeyDownAcrossAllWindows":"False","FFlagKeyframeSequenceEnableFrozen":"True","FFlagKillDownAwayState":"True","FFlagKillSurfaceJointsPart1":"True","FFlagLineHeightEnabled":"True","FFlagLoadCoreScriptsEvenInTeamCreate":"True","FFlagLoadTheLoadingScreenFaster":"False","FFlagLoadTimesFromAppShellReporter":"True","FFlagLocalesInUserInfoOniOS":"True","FFlagLocalizationTableTruncateFix":"True","FFlagLuaAppEnableHomePageWithAvatarABTest3":"False","FFlagLuaAppEnablePageBlur":"True","FFlagLuaAppEnableStopWatchReporter":"False","FFlagLuaAppFixAndroidNavigation":"True","FFlagLuaAppFixInfiniteRerender":"True","FFlagLuaAppGameDetailsHideEmptySections":"True","FFlagLuaAppGameSetTargetIdAnalytics":"True","FFlagLuaAppGamesPagePreloadingDisabled":"False","FFlagLuaAppHandlePurchaseFailWhenOwned":"True","FFlagLuaAppHomeIconPolicy":"True","FFlagLuaAppHttpsWebViews":"True","FFlagLuaAppMakeAvatarThumbnailTypesEnum":"True","FFlagLuaAppNewEconomyApi2":"True","FFlagLuaAppPolicyRoactConnector":"True","FFlagLuaAppPurchaseErrorToastRefactor2":"True","FFlagLuaAppRefreshScrollingFrameRefactor":"False","FFlagLuaAppSeeAllFriendsWebPage":"True","FFlagLuaAppSocialLinksSplitGroup":"True","FFlagLuaAppTabNameGamesToDiscoverOnIOS":"True","FFlagLuaAppUseGameSetTargetId":"True","FFlagLuaAppUseUIBloxToasts":"False","FFlagLuaAppUseWithLocalization":"False","FFlagLuaGameDetailsPolishV367":"True","FFlagLuaGameDetailsRenderTransparentBackground2":"True","FFlagLuaGameDetailsUseGothamInDarkTheme":"True","FFlagLuaHomeMoveMyFeedToMore":"True","FFlagLuaHomePeopleListV1V361":"True","FFlagLuaHttpUrlBuilder":"True","FFlagLuaInviteGameFixMessageAlignment":"True","FFlagLuaInviteGameTextLocalization":"True","FFlagLuaPageLoadEvent":"True","FFlagLuauBuiltinCalls":"True","FFlagLuauTypesInCoreScripts":"False","FFlagLuauTypesInCoreScripts2":"True","FFlagMakeAEGetAssetInfoPromise":"True","FFlagMalformedJoinBlobIsUnknownError":"True","FFlagMeasureJoinToOutsidersUse":"True","FFlagMegaReplicatorIsCloudEditInitialize":"True","FFlagMemoryFromAppShellReporterAndroid":"False","FFlagMigrateTriangleMeshData3":"True","FFlagMobileChatOneIcon":"True","FFlagModelInstanceCompletenessRefactor":"True","FFlagMouseServiceWantsToBeIndependent":"True","FFlagNavigationDebugDrawIterateSpiral":"True","FFlagNavigationFixPathUpdateEventCall":"True","FFlagNavigationFixPathUpdateImplCall":"True","FFlagNetworkDeprecateScopeNames":"True","FFlagNetworkDeserializePacketsInAJob":"True","FFlagNetworkStreamingPhysicsObserverInit2":"False","FFlagNoCollisionConstraintHumanoidFix":"True","FFlagNoFaceHeadMeshTag":"True","FFlagNoMoreCursorErrors":"True","FFlagNoSpaceAfterReturnInTextBox":"True","FFlagNotificationScript2UseFormatByKey":"True","FFlagOnlyCheckHeadAccessoryInHeadShot":"True","FFlagOptimizedPrimitivesHere":"True","FFlagOptmizedVec3Int32HasherEnabled":"True","FFlagPGSAdaptiveCollisionMarginFixEnabled":"False","FFlagPGSConstraintAlign2AxesCompliantCacheFix":"True","FFlagPartCastShadow":"True","FFlagPassDataModelDPIScale":"True","FFlagPluginActionSetChecked":"True","FFlagPluginActionSetDefaultShortcut":"True","FFlagPluginActionSetEnabled":"True","FFlagPluginManagementInStudio2":"True","FFlagPointsServiceNewEndpoints":"True","FFlagPurchasePromptPremiumEnabled2":"True","FFlagQuantumGuiClipScreenGuiToViewport2":"False","FFlagQuantumScrollingFrame4":"False","FFlagQueueUIEventsDuringLayout":"False","FFlagRCCSupportTeamTest":"True","FFlagRealtimeFriendsContextualMenuRefactor":"True","FFlagRecalculateAbsolutePlacementFix":"True","FFlagRecordHopperServiceStats":"True","FFlagRecordInGameDeaths":"False","FFlagRemoveKeyboardOnShutdownIOS":"True","FFlagRemoveOldPhysicsPacketCache":"True","FFlagRemoveUnlocalizedButtonText":"True","FFlagRemoveVehicleSeatCameraCFrameSet":"True","FFlagRenderAdornFixMdrColor":"True","FFlagRenderBiasGlassTint":"True","FFlagRenderFixDDSCubeLoad":"True","FFlagRenderFixEmojiPadding":"True","FFlagRenderMessagesAsGui":"True","FFlagReportExplicitAutoJointsJoinAll":"True","FFlagReportJoinAllCount":"True","FFlagReportRuntimeJoinCount":"True","FFlagReportTimeToPlay":"True","FFlagRetranslateOnTextScraperStart":"True","FFlagRoactPurchasePromptAllowBundles":"True","FFlagRoactPurchasePromptAllowBundles_PlaceFilter":"True;3155066112;3157761435;3204147952;189707","FFlagRotateCameraForRightPart":"True","FFlagSHAllowArbitraryLevelCount":"True","FFlagSHComputeExtentsTimeReportingEnabled":"True","FFlagSHStatReportingEnabled":"True","FFlagScrollingFrameDoNotProcessMouseCancel":"True","FFlagSendJoinTimesToDiag_PlaceFilter":"true;370731277","FFlagSeparateSendFromProcessMouseMove":"True","FFlagSignalStopForZeroWeight":"True","FFlagStartClearUnusedRefsJob":"True","FFlagStartWarningStoppers":"True","FFlagStopTheBrokenCursors":"True","FFlagStoreInstalledPluginsInCloud":"True","FFlagStreamingUISkipFirstPause":"True","FFlagStudioAnimationEditorCheckForSavedChanges":"False","FFlagStudioAnimationEditorClearEventNames":"True","FFlagStudioAnimationEditorContinueScrollingWithSelectionArea":"True","FFlagStudioAnimationEditorEnableRigSwitching2":"True","FFlagStudioAnimationEditorFixAnimationsWithLongNames":"True","FFlagStudioAnimationEditorFixEventsTooltips":"True","FFlagStudioAnimationEditorFixRenameKeyOption2":"True","FFlagStudioAnimationEditorFixRigSelection":"True","FFlagStudioAnimationEditorFixScalingBarPosition":"True","FFlagStudioAnimationEditorFixWorldSpaceJointPanel":"True","FFlagStudioAnimationEditorIKMode":"True","FFlagStudioAnimationEditorKeepClipboardAfterMove":"True","FFlagStudioAnimationEditorScaleKeys":"True","FFlagStudioAnimationEditorSelectEventsOnEdge":"True","FFlagStudioAnimationEditorShiftSelectJointsOn":"True","FFlagStudioAnimationEditorUseQWidgetsForPopups":"True","FFlagStudioAnimationEdtiorOptimizationsEnabled2":"True","FFlagStudioEnableSurfaceJoinChangeBeta":"False","FFlagStudioFixToolboxDialog":"True","FFlagStudioFixUnhandledRunTimeError":"True","FFlagStudioGameSettingsBindToClose":"True","FFlagStudioRemoveAxisWidget":"True","FFlagStudioUILibraryRoundTextBoxNoTooltip":"True","FFlagSurfaceGuiDefaultPixelsPerStud":"True","FFlagTSMk2ThrottleStreamJob":"True","FFlagTaskSchedulerSTDThreadwrapper":"True","FFlagTeamCreateSaveAnalyticsServiceApiKeyReplicator":"True","FFlagTenaciousGamePerfMonitor":"True","FFlagThrowDetailedMessageForBadEntries":"True","FFlagThwartPurchasePromptScams":"True","FFlagTighterCylinderBoundingSpheres":"True","FFlagTolerantLexerForStudio":"True","FFlagToolboxJointMigrationApi":"True","FFlagToolboxWithCMSV2":"True","FFlagTouchEventSameSHCellBugFixEnabled":"True","FFlagTrackCurlTimeProfile":"True","FFlagTrackEventWithArgsEnabled":"True","FFlagTrackResetCharacterButtonUsage":"True","FFlagTweenServiceGetValueEnabled":"True","FFlagUDim2FromScaleAndOffsetConstructors":"True","FFlagUIInlineLayout2_PlaceFilter":"True;3299508970;3299511698;3299515879","FFlagUIViewportFrameSetCameraNearZ":"True","FFlagUniverseIdChangedEvent":"True","FFlagUpdateExtentsForManualStep":"True","FFlagUpdateInspectAndBuyOffsaleText":"True","FFlagUpdateScaleBeforeBuildRig":"True","FFlagUrlSupportNewGamesAPI":"True","FFlagUseAccuratePlaySoloForced":"True","FFlagUseAdvancedCharacterScales3":"True","FFlagUseBaseUrlInPlugins":"True","FFlagUseHipHeightInKeyframeSequences2":"False","FFlagUseKeyframeMarkersForEvents2":"True","FFlagUseLDLPGSSolver4":"True","FFlagUseLuaGameDetailsOnIPad":"True","FFlagUseLuaGameDetailsOnIPhone":"True","FFlagUseMTSolver":"True","FFlagUseMatrix3ForInertiaTensor2":"True","FFlagUseNewSpatialHash5":"True","FFlagUseNewTriangleMeshPart":"True","FFlagUseNormalWeld":"True","FFlagUseOptimizedGetPartsObscuringTarget":"True","FFlagUseOtterMasterForLuaApp":"True","FFlagUseVectorForDirtyMechanisms":"True","FFlagUserAllCamerasInLua":"True","FFlagUserAnimationSpeedDampening":"True","FFlagUserClickToMoveFollowPathRefactor":"True","FFlagUserFixChatMessageLogPerformance":"False","FFlagUserFixChatMessageLogPerformance2":"False","FFlagUserInGameChatUseNewFilterAPIV2":"True","FFlagUserIsNowADynamicThumbstick":"True","FFlagUserJSONConvertInfAndNanToNull":"True","FFlagUserJumpButtonPositionChange":"True","FFlagUserNavigationClickToMoveNoDirectPath2":"True","FFlagUserNavigationClickToMoveSkipPassedWaypoints":"True","FFlagUserNavigationClickToMoveUsePathBlocked":"True","FFlagUserNavigationFixClickToMoveJump":"True","FFlagUserNewCameraRaycastingAPIsEnabled":"True","FFlagUserNoMoreKeyboardPan":"True","FFlagUserNoUpdateOnLoop":"True","FFlagUserRbxUtilityCreateSetParentLast":"True","FFlagUserShouldClipInGameChat":"True","FFlagUserShouldLocalizeGameChatBubble":"True","FFlagUserShouldLocalizeServerMessages":"True","FFlagUserTheMovementModeInquisition":"True","FFlagUserThirdGamepadZoomStep":"True","FFlagUserToolR15Fix":"True","FFlagUserTouchSensitivityAdjust":"True","FFlagUserUseCachedFriendChecksForChat":"False","FFlagUsingSendMeasureBatch2":"True","FFlagVerifyBuiltInPlugins":"True","FFlagWebLocMarkLocTableListDirtyOnServer":"True","FFlagWhateverFloatsYourContact":"True","FFlagWhitelistThumbnailsAPI":"True","FFlagXboxAppBridgeRewrite2":"False","FFlagXboxDetachShowAccountPicker2":"True","FFlagXboxFixAwardedBadges":"True","FFlagXboxGetLocaleFromAccount":"True","FFlagXboxKeyboardInitInCallbacks":"True","FFlagXboxStartGameRefactor":"True","FFlagXboxValidateConnectPeer":"True","FFlagXboxVoiceChatFixes":"True","FFlagXboxVolumeFadesInCallbacks":"True","FFlagYouDontKnowMe":"True","FIntAntiSpamSpamLimit":"1000","FIntAppShellFPSReportPeriod":"120","FIntAppShellMemoryReportPeriodicity":"120","FIntAvatarEditorNewCatalogButton2":"100","FIntCameraFarZPlane":"100000","FIntCameraMaxZoomDistance":"400","FIntCurlProbePermyriad":"10000","FIntDelayBeforeFirstPostStatsSeconds":"180","FIntEnableFriendFooterOnHomePageV369":"100","FIntJointTime_TextureCooldown":"0","FIntLuaAppNonFinalThumbnailMaxRetries":"1","FIntLuaAppPercentRollOutNewThumbnailsApiV3":"100","FIntLuaAppRenderTransparentPageMaxCount":"1","FIntLuaAppUseNewAvatarThumbnailsApi4":"0","FIntMaxCameraMaxZoomDistance":"100000","FIntMaxLevelForAnchored":"3","FIntPGSAngularDampingPermilPersecond":"950","FIntPGSPStageStiffnessWorseFitnessThreshold":"2","FIntPGSVStageStiffnessAggressiveValue":"99995","FIntPGSVStageStiffnessConservativeValue":"99000","FIntPGSVStageStiffnessWorseFitnessThreshold":"2","FIntPartMinSizeMul1000":"50","FIntPercentLuaGameDetailsPageOnAndroidPhone":"100","FIntPercentLuaGameDetailsPageOnAndroidTablet":"100","FIntPercentReportingByCountryCode":"100","FIntPercentReportingGamesListRTT":"5","FIntPercentReportingGamesSortsRTT":"50","FIntPercentReportingLeaveGameAnalytics":"10","FIntTaskSchedulerAutoThreadLimit":"8","FIntTeleportMethodAnalyticsHundredthPct":"100","FLogFastLogValueChanged":"0","FLogNetwork":"7","FStringABTestNameIPhoneLuaGameDetails":"iPhone.AllUsers.LuaGameDetails2","FStringStudioUrlSurfaceJoinChange":"https://web.archive.org/web/20200624170102/https://devforum.roblox.com/t/changes-to-part-surfaces-beta-feature/334420","SFFlagFixBallRaycasts":"True","SFFlagFixRaysInWedges":"True","SFFlagNetworkUsePeerId":"True","SFFlagPgsForAll":"True","SFFlagUseNativePathWaypoint":"True","EnableBackupCookie":"True","FFlagFixGamepadNavigationWithACM":"True","DFFlagSpawningDontIgnoreCanCollide":"True","FFlagFixBackpackDraggingReset":"True","FFlagFixBindActionTouchButtonError":"True","FFlagFixGetStringForKeyCodeDeadKeyState":"True","DFFlagEmoteThumbnailsRotationEnabled":"True","DFFlagDataStoreInitialThrottlingBudgetFix":"True","DFFlagStreamQuotaRoundUp":"True","DFFlagNaivePacking":"True","DFIntPercentageThresholdUsingFriendsV2":"0","DFFlagNetworkUseSharedStreamingObserver2":"False","FFlagStudioLogPluginSettingsFileAccess":"True","DFFlagTrackRunUpdateCycleTime":"False","DFIntTrackRunUpdateCycleReportInfluxPermyriad":"1000","FFlagXboxAppBridgeRewrite3":"False","DFFlagFixStudioDegenerateMouseRaycast":"True","FFlagStudioDisableAutoClosingInComments2":"True","FFlagVersionControlServiceForceDraftsUsage_PlaceFilter":"True;4203193037;2772125205;3069606769;4094440665;2413179002;3344058302;3566618597;4041475807;2061558182;4074515213;2309740430;2670461983;4137940225;3096515841;4133172402;4163865257","FFlagStudioCrashOnInvalidColor3Cast":"True","FFlagStudioFixAnimEditorDescendants":"True","FFlagStudioHoldDataModelLockAtBreakpointHit":"True","FFlagBadgeApiV1UserHasBadge":"True","FIntBadgeApiV1UserHasBadgePercentage":"100","FFlagLuaAppRefreshScrollingFrameRefactor2":"False","FFlagEnableGameSignalRWithOSX1":"True","DFFlagDoNotDecrementPendingNewInstancesWhenProcessingDelete":"True","FFlagStudioDoNotSaveWhenUserSaysNo":"True","FFlagRoactGameSharePageV2":"False","FFlagStreamingParallel2":"False","DFIntDesiredStreamJobTimeMS":"24","FFlagLuauTranspilerCompliance":"True","FFlagCanWeAddContinue2":"True","FIntLuaChatUseNewFriendsEndpoints":"25","DFFlagSDISkipJDINetworkStream":"True","FFlagFixAnimEditorManipulators":"True","FFlagFixRigUtils":"True","FFlagNewCharacterSoundScript":"True","DFFlagFixManualJointAdornCrash2":"True","DFFlagUpdateCofmUseHeapStack2":"True","FFlagFixLightgridAsyncInvalidations":"True","FFlagUseCorrectLocaleForPluginGuis":"True","FFlagCLI29967":"True","FFlagLocalizePlaceholderText":"True","FFlagGraphicsMetalFixD16Check":"True","FFlagGraphicsAdrenoDisableExtFmt":"False","FFlagGraphicsVulkanAndroidExtendedFormats2":"False","FFlagGraphicsGLAndroidExtendedFormats2":"False","FFlagStudioLuauLinter":"True","FFlagLuauExtendedLiterals":"True","FFlagCLI27641B":"False","DFFlagAnalyticsNS1BeaconSupportLimitedRobloxUrls":"True","DFFlagFixPriorityAscDesc":"True","FFlagLuaAppSecondaryButtonSpecifiesFont":"True","FFlagNetworkDeserializePacketsInAJob_PlaceFilter":"False;2291717546","DFFlagAsyncPublishImprovement":"True","FFlagQuantumScrollingFrame5":"True","FFlagClampCanvasPositionInLayoutStep":"False","FIntStudioBFRolesetSaveToCloudV2":"4","FFlagSocialLibraryEnabled":"True","FFlagStudioMeasureRigidJointsNotInWorld":"True","FFlagStudioDoNotShowHideAutoCompleteMenuV2":"true","FFlagStudioClearCallStackWidgetOnGSTChange":"true","FFlagEnableInputObjectIsModifierKeyDown":"True","FFlagStudioRefactorPlaceSessionModel3":"true","FFlagApplyModifiersToInputObjects":"False","FFlagStudioRelayQtModifiersToRobloxInput":"False","FFlagUseRoactPlayerList":"False","FFlagStudioFixCannotSetBreakPoint":"True","DFFlagDontSendEmptyTouchPackets":"True","DFFlagParallelAddInstanceWhenParalleStream":"True","FFlagStudioLoadLesserQtTranslationFiles":"True","DFFlagLuaDebuggerDoNotResetStackForLuaThreadWithError":"True","FFlagStudioGamePresenceToFixSyncCallHangWhenQuit":"True","FFlagStudioFileLockRelatedFixes":"True","FFlagEnableReturnKeyPressedEvent":"True","FFlagMultipleBoxesManualFocusRelease2":"True","FFlagXboxLocV2":"True","FFlagStudioShowVariableTooltipOnErrorLine":"True","FFlagEnableLegalText":"True","FFlagStudioCheckArgPhraseForInFunctionCall":"True","FFlagStudioNewFoldState":"True","FFlagDoNotLoadUnverifiedBuiltInPlugins":"true","FFlagLuaAppPreloadChatRefactor":"True","FFlagLuaAppDeepLinkEventReceiver":"True","FIntAvatarEditorRedesignRolloutPercentageAndroidPhone":"100","FIntAvatarEditorRedesignRolloutPercentageAndroidTablet":"100","FIntAvatarEditorRedesignRolloutPercentageIphone":"100","FIntAvatarEditorRedesignRolloutPercentageIpad":"100","FIntAvatarEditorRedesignRolloutPercentageOther":"100","FIntLuaCatalogRolloutPercentageAndroidPhone":"100","FIntLuaCatalogRolloutPercentageAndroidTablet":"100","FIntLuaCatalogRolloutPercentageIphone":"100","FIntLuaCatalogRolloutPercentageIpad":"100","FIntLuaCatalogRolloutPercentageOther":"100","FFlagLuaAppEnableAERedesign3":"True","FFlagLuaAppEnableLuaCatalogPage3":"True","FFlagUseCreationToFetchMyOverrideData2":"True","FStringStudioUrlAnimationEditor":"https://web.archive.org/web/20200624170102/https://devforum.roblox.com/t/keyframes-animate-everything-around-me/360033","FFlagGraphicsVulkanPixelbookDisable":"True","FFlagLuaAppGameplayIntentReferralSource":"True","FFlagEnableAndroidSetPendingTagOnContactFriendRequest":"True","DFFlagUseDefaltShirtAndPants2":"True","FIntLuaChatAliasesRolloutV3":"0","FFlagEnableContactsApiServiceV2":"True","DFFlagESGamePerfMonitorEnabled":"True","DFIntESGamePerfMonitorDelayBeforeFirstReportInSeconds":"60","DFIntESGamePerfMonitorHundredthsPercentage":"200","DFIntESGamePerfMonitorReportTimerInSeconds":"30","DFFlagStrictOggParsingFix2":"True","DFFlagStrictOggParsingSeekFix":"True","DFFlagReportMoreParsingAnomalies":"True","DFIntReplicatorJoinSnapInfluxHundrethsPercentage":"50","FFlagPackageRemoveJointInstanceWhenHashing":"True","FFlagStudioPackageVersionCheckInEditDMOnly":"True","FFlagStudioAddPackagePermissions":"True","DFFlagHandleLowTriggerStreamingGC":"True","DFFlagAvoidVelBufWhenGC":"True","DFFlagInitialSourceHashConsistencyFix":"True","FFlagStudioShowDotsForScriptEditors":"True","FFlagStudioDraftsServiceGetEditors":"True","FFlagMeasureRigidJointsNotInWorld":"True","FFlagCMSRemoveAssetTypeBackendMap":"True","FFlagCMSRemoveUGCContentEnabledBoolean":"True","FFlagStudioUseNewMergeDialog":"True","DFFlagVersionControlServiceBroadcastOnEditorsChange":"False","FFlagUserFixMouseCapture":"False","FFlagNotGroundhogsDay":"True","FFlagCrossDmScriptingInPlugins":"False","FFlagPluginMDIInterface":"False","FFlagStandalonePluginsSupport":"False","FFlagUnfocusTextBoxBeforeAncestorEvent":"true","FLogError":"6","FFlagRenderShadowmapCheckCB":"True","FFlagRenderFixEvsmFiltering":"True","FIntLuaAppUseNewAvatarThumbnailsApi5":"100","FFlagRenderFixHamArray":"False","FFlagCautiouslyInitilaizeSoftwareCursorVisible":"True","DFFlagLuaTableExts":"True","DFFlagLuaMathLog2":"True","FFlagStudioCheckCanPublishBeforePublishing":"False","DFFlagCacheExistingPackageVersionData":"True","FFlagStudioPackageLinkAutoUpdateIndicatorFixes":"True","FFlagStudioAddUpdatePublishedPackageReturnResult":"True","FFlagReportGameJoinLoadTime":"True","FFlagNoJoinForMoveTo":"True","FFlagUserSiblingTouchGui":"True","FFlagStudioUseNewDefaultNameEndpoint":"True","DFFlagPlayerConfigurerDoCDNProbe2":"True","FIntAppBridgeNewGameJoinAPIPercent":"0","EnableLuaAppOnChrome":"True","FFlagLuaChatAddButtonThemeFixEnabled":"True","FStringGraphicsVulkanBlacklist":"","EnableAndroidSetTagOnContactAcceptFriendRequest":"True","FFlagUseNewFriendsDomainCoreScripts":"True","FFlagStudioLoadPluginsAtRightTime":"False","FFlagStudioRestoreWindowsASAP":"False","FFlagLuaAppFixPrimaryStatIconColor":"True","FFlagAvatarEditorRTranslations":"False","DFFlagPolicyServicePlayerCallbackQueuesEnabled":"True","FFlagNoDisconnectEventBeforeUnmountWorkaround":"True","FFlagNewABTestFramework2":"True","FFlagLuaChatShareGameThumbnailMigrationV2":"False","FFlagShareGameEventConsolidationEnabled":"True","DFFlagLoadLibraryWarn":"True","FFlagLuauLimitRecursiveBlocks":"True","FIntCLI30390":"2","DFFlagNetworkUseSharedStreamingObserver4":"False","FFlagNetworkStreamingPhysicsObserverInit4":"False","DFFlagReportPhysicsReplicationRatio":"True","FFlagStreamingParallel3":"True","DFFlagFixPhysSenderParallelSimDistanceUpdateValue":"True","DFFlagGCJobInitNegativeLastSentServerRadius":"True","DFFlagServerPlaceIdKnownAssetEndpoints":"False","FIntStudioBFRolesetAsyncPublish":"4","FFlagAvatarEditorSimultaneousFullViewAvatarTypeFix":"True","FFlagLuaAppFixCancelButton":"True","FFlagLuaChatAliasesV3":"False","DFStringLoadLibraryWarnLink":"https://web.archive.org/web/20200624170102/https://devforum.roblox.com/t/loadlibrary-is-going-to-be-removed-on-january-6th/382516","FFlagLuauBetterTypeLint":"True","DFFlagFixGetPropertyChangedSignalMemoryLeak":"True","FFlagStudioAsyncSingletonManagement":"False","FFlagStudioAsyncSaveAs":"False","FFlagStudioCloudEditUserDataloadDataAsyncCrashFix":"True","DFFlagPackageFixJsonParserCrash":"True","FFlagEditAssetForManagedAssets":"True","FFlagShowReportOptionInToolbox":"True","DFIntReportReplicatorStatsToInfluxHundredthsPercent_PlaceFilter":"10000;3027055174;3917136599;2291717546","FFlagStudioAutoSaveReportNullCheck":"True","FFlagStudioCloseDocumentsOnce":"true","FFlagStudioCheckForBadTeamTestResponse":"true","FFlagStudioWhatsNewWindow":"True","FFlagStudioAddWhatsNewWindowToStartPage":"True","EnableTencentLinkingFeature":"False","LuaAppHideGameDetailsDeveloperRow":"True","FFlagGridUseConstRows":"True","DFFlagInvokePreloadCallbackFromDMJob":"True","FFlagFixColorPickerAppearingInWrongLocation":"True","FFlagAdditionalFallbackFonts":"True","FFlagDefaultThumbnailForRBXThumb":"True","FFlagEnableCredentialsValidationMigration":"True","FFlagEnableAccountSettingsMigration":"True","FFlagManualFocusReleaseDisablesSinking":"True","FFlagEnablePackageMassUpdateNestedPackage":"True","FFlagNewAwardBadgeEndpoint_PlaceFilter":"True;2534981557","DFStringAltTelegrafAddress":"100.20.191.133","DFIntAltTelegrafHundredthsPercent":"10000","DFIntClientJoinProcessPositiveSamplesThousandths_PlaceFilter":"1000;3027055174;3917136599;2291717546","FFlagMacStudioReportBFsAndPlugins":"True","FFlagPCStudioReportBFsAndPlugins":"True","DFFlagStudioShowToastNotificationInMainThreadAsync":"True","FFlagEnableGameSignalRWithWindows1":"False","FFlagUserFixZoomClampingIssues":"True","FFlagRbxThumbAllowAnyParamsOrder":"True","FFlagBetterRbxThumbRetryLogic":"True","DFIntBatchThumbnailMaxRetries":"5","FFlagUserChatNewMessageLengthCheck":"False","DFFlagTrackStencilBufferSupport":"False","DFFlagEnableSSEClamp":"True","FFlagCMSEnableCatalogTags":"False","FFlagAvatarEditorEnableLuaAuthenticationCheck":"True","FFlagParentWeldToOtherPart":"True","FFlagEnableLargeRobuxAndroidUpsellV3":"True","FStringStudioBuiltinPluginDefaultFont":"SourceSans","FFlagStudioLogTestUsage":"True","FFlagEnableRobuxHexIconV2":"True","FFlagStudioGameSettingsUseNewSettingsImpl2":"False","FFlagStudioStopHardcodingDecadeOfDifferentDevhubDomains":"True","FFlagResetKeyStatesOnWindowGainFocus":"True","FFlagApplyModifiersToInputObjects2":"True","DFFlagCurlReportResolvedIp":"True","DFFlagInfluxReportLastVisitedUrl":"False","FFlagUsingBrowserServiceCaptcha":"True","FFlagBrowserServiceForAllPlatforms":"True","DFFlagFixGuardTiming":"True","FFlagUseNewDocumentationUrls":"True","FFlagStopCaringAboutIsTouchDevice":"False","FFlagScrollingFrameSinkMouseDownOnScrollbar":"True","FFlagRoundInUDimLerp":"True","DFFlagUseAPIAssetsVersionsV2":"True","DFFlagVersionControlServiceBroadcastOnEditorsChangeExplicit":"true","FFlagStudioSandboxUtf8Fix":"true","DFFlagHttpClientCacheStatsLock":"True","FFlagAnimEditorUseCustomFPS":"True","FFlagDevConsoleLogMemoryButton":"True","DFFlagEnableHttpProxy":"False","FFlagPlayerListDontSinkTouchUnnecessarily":"True","FFlagPlayerListBetterGroupCheck":"True","FFlagPlayerListDontSortTeamsByScore":"True","DFFlagBetterAddInstance":"True","DFFlagEasingRefactor":"True","FFlagStudioFixConstantReconnectPopups":"True","FFlagStudioUpdateWhatsNewDevForumUrl":"True","DFFlagFixSoundReplicationForTeamCreate":"True","FFlagEnableSetStageNoneInDestroy":"True","DFFlagTaskSchedulerEraseDone":"True","DFFlagTaskQueueLinger":"True","FFlagLuaAppNewThumbnailFinalState":"True","FFlagGraphicsMetalMacIncMinSpec":"True","FFlagQueueUIEventsDuringLayout2":"True","FFlagLuaAppUseGameMediaV2":"True","LuaAppHideGamesDropDownList":"True","FFlagNotEraseCallbackQueueOnPlayerRemoving":"True","DFFlagModifySoundAssetsAssetListStringSeparator":"True","DFIntReportFMODInitThreadingRate":"0","DFFlagCheckFMODInitThreading":"False","DFFlagHttpRequestClearRes":"True","DFFlagSignalRControlExcStringFix":"True","DFFlagFileSystemCheckReadSize":"True","FFlagInfiniteTriangleMeshRecalcFixEnabled":"True","FFlagStudioReportOSVersionDiag":"True","FFlagSolverRemoveBadDebugCode":"True","DFFlagLDLEliminationPerformanceFixEnabled":"True","DFFlagOptimizeTerrainStreamOut":"False","DFFlagTerrainPhysicsDataDeferredSquared":"True","FFlagTerrainUseClumpedPhysicsData":"True","FFlagStudioFixSelectAll":"True","FFlagStudioEnsureEditDataModel":"True","FFlagGetVersionHistoryAssetFailure":"True","DFFlagReportReplicatorJoinDataItemStatsToInflux":"True","DFIntReplicatorJoinDataItemStatsInfluxHundrethsPercentage":"1000","FFlagStudioUseStandaloneTransformTool2":"True","FFlagGraphicsClampDepthBias":"True","EnableManualFocusReleaseSupport":"True","FFlagAnimEditorRenameKeyOptionFix":"True","FFlagStudioToolboxEnablePlaceIDInAnalytics":"True","FFlagStudioToolboxInsertAssetCategoryAnalytics":"True","FFlagStudioEnableSaveToCloudV2BetaFeature":"False","FFlagStudioSaveToCloudV2":"False","FFlagStudioSaveToCloudV3":"False","FFlagStudioSaveToCloudV3SpotFixes":"False","FFlagAvatarEditorUseUserIdFromStore":"True","FFlagUseLocalStorage3":"True","DFFlagPlayerPolicyNotSwallowingError":"True","DFFlagDontWalkOnReparent":"False","FFlagStudioWhatsNewWindowBeta":"False","FFlagCreateAndUpdateDataReplicationCache":"False","DFFlagSupportJoinDataItemV2i":"False","DFIntReplicatorJoinDataItemV2StatsInfluxHundrethsPercentage":"1000","FFlagFutureIsBrightPhase2_5_v3":"True","FFlagFlipTerrainNormalMap":"True","FFlagUIViewportFrameDeviceRestore":"True","FFlagStudioTextEntryRoactBugPatch":"True","FFlagStudioGameSettingsUseNewSettingsImpl3":"True","DFFlagLoadLibraryTrack":"True","DFFlagRCCTeamCreateSaveOnZeroPlayers":"True","FFlagCLI30496":"True","FFlagStudioEnableAsyncPublishBeta":"False","FFlagStudioMassUpdateWaitForAsync":"False","FFlagStudioCheckFailedPublishOnClose":"False","FFlagStudioMakePublishingAsync":"True","FFlagStudioPruneModeratedInstalledPlugins":"False","FFlagStudioWaitForContentLoadedToLoadPlugins":"False","FFlagSetContentLoadedBitBeforeEmittingSignal":"True","FFlagStudioLoadPluginsAtRightTime2":"False","FFlagStudioUseStandaloneCollisionEditor2":"True","FFlagStudioFixCancelTeamCreate":"True","FFlagGraphicsVulkanAndroidExtendedFormats3":"True","FFlagGraphicsGLAndroidExtendedFormats3":"True","FFlagGraphicsAdrenoDisableExtFmt2":"True","DFFlagEvenMorePhysicsSenderStats":"True","DFFlagAddStreamingAdornDebugger":"True","FFlagVersionControlServiceScriptCollabEnabled":"True","FFlagCMSEnableCatalogTags2":"True","FFlagStudioRemoveCouldNotFetchAssetVersionData":"True","FFlagStudioPackagePermissionRGEFix":"True","FFlagStudioEnablePackagePermissionsBetaFeature":"False","FFlagHideNoAccessGroupPackages":"true","FFlagPackagePermissionsAddDefaultNone":"true","FFlagStudioEnableAnimationEditorBeta":"False","FFlagEnableRoactAnimationEditor2":"True","FFlagFixGameSettingsThumbnailDrag":"True","DFFlagFixParallelCoarseMovementCallbacks":"True","FFlagUseStudioLocaleForForceLocale":"True","FFlagFixUnicodeTextSelection2":"True","FFlagStudioEnableNewScriptFoldStateBeta":"False","FFlagDarwinUseNewMemoryMetrics":"True","FFlagStudioCheckIfDefaultFontLoaded":"True","DFIntPackagePermissionPullingIntervalInSeconds":"10","FFlagPlayerPolicyHttpRequestHealthReportEnabled":"True","DFFlagPlayerPolicyHttpRequestRetryEnabled":"True","DFFlagDressInLayers2":"true","DFFlagRCC29411p3":"true","FFlagReduceRelentlessRemoteReminders":"true","FFlagAlwaysGenerateGuid":"true","DFFlagRebuildR6AccoutrementsWhenEnteringWorkspace":"True","FIntPlayerPolicyHttpRequestRetryTimes":"3","FFlagTerrainToolsFixScrollBarResize":"True","DFFlagFixPerSecDivideStats":"True","DFIntRccLinuxMemoryMegaByteLimit":"7000","FFlagStudioValidateToSAcceptance":"True","FFlagLuaAppSingleTriggerForLocalPlayerManager":"True","FIntStudioBFRolesetPackagePermissions":"4","FFlagGlslesMediump1":"False","FFlagGlsles3Mediump1":"False","FFlagStudioCheckLocaleNameBeforUse":"True","FFlagBypassDoubleInitialization":"True","FFlagFixGameViewControllerViewRecreation":"True","FFlagFetchLocalUserHeadshotInFetchHomePageData2":"True","FFlagStudioMoveAboutWindowCode":"True","FIntLuaChatUseNewFriendsEndpointsV2":"100","FFlagLuaCatalogFixLongPriceText":"True","FFlagLuaCatalogUseOriginalInsufficentRobuxIcon":"False","FFlagCatalogResellerUseNewGridView":"True","FFlagPasswordFieldIntegrationEnabled":"True","FFlagLuaAppCanDisableBackNavigation2":"True","DFFlagStopRestreamInstancesWithoutParent":"True","FIntRenderGrassHeightScaler":"50","FFlagRenderDecorationGrass":"True","DFFlagLDLPGSCollisionStatsEnabled":"True","DFFlagPlayerPolicyUseClientIpAddressFromSessionId":"True","FFlagAppBridgeRewritePatch1":"True","FFlagPlayerListDesignUpdate":"True","FFlagUseRoactPlayerList2":"False","FFlagUpdateLeaderboardIconPriority":"True","FFlagNewPlayerListFixBackpackMemoryLeak":"True","FFlagStudioFixPackageKeepsPullingAssetVersionId":"True","FFlagStudioFixBindToClose2":"True","FFlagStudioFixUILibDropdownStyle":"True","FFlagStudioUseDevelopAPIForPackages":"True","FFlagStudioGetSharedPackagesInToolbox":"True","FFlagExtTrackpadsMasterSwitch":"True","FFlagExtTrackpadsUseHeuristics":"True","FFlagLuaAppEnableBacktraceErrorReport":"True","FFlagStudioCorrectlyDeprecateProp_UITheme":"True","FFlagStudioCheckDataModelAfterSave":"True","FFlagStudioTranslateThemePropertyItem":"True","FFlagTerrainToolsImproveColorImport":"True","DFFlagStudioThrowExceptionForCyclicTables":"True","FFlagStudioIntInBoolContextWarningFixEnabled":"True","FFlagStudioCorrectPublishAnalytics":"False","FFlagStudioDisableAutoSaveToCloud":"True","FFlagStudioConnectPublishAsClose":"False","FFlagStudioFixDMThreadingIssueForPublishAs":"False","FFlagStudioCloseScriptsOnUiThread":"True","FFlagStudioAnalyticsIdeDocCheck":"True","FFlagFixOverZealousTextWrapping":"True","FFlagStudioReplaceDMLockWithTask":"True","FFlagDisableDecorationForLeafyGrass":"True","FFlagTerrainToolsClearConfirmationDialog":"True","FFlagTerrainToolsFixSmoothDesiredMaterial":"True","UseSetForegroundWindowForPlayer2":"True","FFlagTerrainToolsUIUpdate":"True","FFlagEnableiOSFriendFinderAndContactFriendingAnalytics":"True","DFFlagFixCharPosNaNCompare":"true","FFlagBulletInitialContactDivideByAxisLength":"True","FFlagStudioAddLoadUserPluginsArgument":"True","FFlagStudioCheckForBadTeamTestResponse2":"True","FFlagAvatarExperienceConsistentRolloutValue":"True","FFlagDebugDeleteDiscrimination":"True","FFlagStopCaringAboutIsTouchDevice2":"True","FFlagSkipLowResFix":"False","DFFlagTaskSchedulerEnsureCOMIsInitialized":"True","FFlagFutureIsBrightPhase2GL3":"False","FFlagFutureIsBrightPhase2GLES3":"False","DFFlagFixNullTask":"True","FIntLuaAppBacktraceErrorReportPercentage":"20","FFlagLuaAppInputValidationActionUsesCurrentText":"True","DFFlagPGSConstraintThreadSafeUpdatePVEnabled":"True","FFlagArrayDynamicPopBackBugFix":"True","FFlagStudioDeprecateRecentSave":"True","FFlagStudioConvertToPackageUploadErrorDisplay":"True","FFlagStudioRemoveDuplicatePackageStatusChangedSignal":"True","DFFlagHideProxySettings":"True","FFlagFixBuiltinPluginSecurityLevels":"True","FFlagStudioGameSettingsUseRoact1_2":"True","FFlagLuaCatalogLimitSellPriceDigitsTo10":"True","FFlagEnableLumberyak":"True","DFFlagHumanoidOnlyStepInWorkspace":"False","DFFlagRemoveUsesOfIsAutoJoint":"True","DFFlagAnimatorNewModelSearchAnalytics":"False","FFlagFixTableLayoutMinorAxisSortOrder":"True","DFFlagBetterStreamingHumanoidSimulationFiltering":"True","FFlagUIGradientEnabled":"True","FFlagLuaAppGameGridNewMetrics":"True","FFlagShowModeratedPluginInfo":"True","FFlagGameDetailsPeekViewAnalyticsEvents":"True","FFlagLuaAppABTestGameDetailsPeekView":"True","FFlagLuaAppInitializeABTests":"False","FFlagRemoveItemASHX":"True","DFLogTrackTeamCreateSaveMD5HashOutput":"6","FLogStudioLocalSaveMD5HashOutput":"6","DFFlagAnimatorAnimationPlayed":"True","FFlagUserMakeThumbstickDynamic":"False","FFlagCLI30497":"True","FFlagCLI30497R":"True","FFlagCLI30497B":"false","FFlagCLI30497W":"True","FFlagCLI30497H":"True","FFlagCLI30497S":"True","FFlagLuaAppFriendsAnalyticsOnStartup":"True","DFFlagNoExceptionForSimulatingOwnCharacterOutsideStreamingRegion2":"True","FFlagNetworkStreamingPhysicsObserverInit6":"True","DFFlagNetworkUseSharedStreamingObserver6":"True","DFFlagOptimizeTerrainStreamOut2":"True","DFFlagPartInstanceCofMPropertyExposed":"True","DFFlagLDLPGSAdditionalStatsEnabled":"True","DFFlagHttpServiceUseIpBlacklist":"True","DFFlagNotifyModelCompleteness3":"True","DFFlagCompletenessClientCreatesInstanceFix":"True","FIntCLI30497I":"2048","DFFlagJumpScaresP2":"True","FFlagAvatarExperienceUnselectTryOnFix":"True","FFlagAvatarEditorUpdateRecommendations":"True","FFlagAvatarEditorTweenMinimizeButton":"True","DFIntDesiredStreamJobTimeMSPerThread":"6","FFlagWindowsTouchEnabled":"False","FFlagTouchscreenSupport":"False","FFlagUserChatHistorySinksInput":"True","FFlagLinearFXBlurFix":"true","FFlagRenderEnableDepthClamp":"True","DFFlagFixExtraMemoryComputation":"true","FFlagXboxFixEngagementLayout":"True","FFlagLDLAkisMethodEnabled":"True","FFlagCheckGameStateOnResume":"True","FFlagLuaCatalogInfoRowEclispe":"True","FFlagLuaCatalogKeepSellAlertPositionWithKeyboard":"True","FFlagGlsles3MediumpNoHQ1":"True","FFlagCheckDataModelStateInTeleport":"True","FFlagFixACMOverlappingIssues":"True","FFlagVideoSupport":"True","DFFlagHttpsTextFilter":"True","DFIntHttpsTextFilterPercentRollout":"100","DFFlagNoSharedPinocchio":"True","DFFlagSupportMeshV4Read":"True","FFlagIssueTrackerRefactor":"True","FFlagApplyPlaceFilterEarly":"True","DFFlagAniCombinedServerPassthrough":"True","FFlagOverrideMouseBehaviourFireChanged":"True","FFlagUpdateSettingsHubGameText":"False","DFFlagNewMemoryLevelCheck":"True","DFFlagFixPreloadAsyncCallbackCrash":"True","FFlagSmallerToolboxMinWidth":"True","DFFlagRakNetUseSelect":"True","FFlagDeliverLowMemoryWarningsViaPolling":"False","FFlagStudioDraftsServiceRemovedScriptsFix":"True","FFlagEnableScaleIndependentBulletCollision2":"False","FFlagStudioLogPlaceIdOnPlaceOpen":"True","FFlagStudioDraftsDeletePreferSafeOption":"False","FFlagStudioLoadPluginsAtRightTime3":"True","FFlagStudioFixOgreWidgetCheckInPlaceSessionMainView":"True","FFlagStudioReplaceDMLockWithTaskIfNotOnMainThread":"True","FFlagStudioTranslationsTail001":"True","FFlagStudioTranslationsTail002":"True","FFlagFixMouseInStandaloneWidgets":"True","FFlagStudioPruneModeratedInstalledPlugins2":"True","FFlagStudioDoNotStoreSelectionListInPropertyWidget":"True","FFlagStudioCleanupPluginWidgetRelayViewBase":"True","FFlagGraphicsD3D9GracefullyHandleBadWindowHandle":"True","FFlagStudioCleanupPluginRefresh":"True","FFlagStudioDisconnectIDEDoc":"True","FFlagAllowLuauTypes":"True","FFlagUserChatValidateFirst":"True","FFlagDontCountHorizontalScrollsForExtTrackpad":"True","FFlagLuauOptimizeTableVarargs":"True","DFFlagLuauFasterTableLibrary":"True","FFlagLuauImproveLineInfo":"True","DFFlagNetworkUseSharedStreamingObserver6_PlaceFilter":"True;2096931771;900578327;2096931771;2293712847;4498778926","DFFlagStrictParsingFix":"True","FFlagTerrainToolsFixNilBrushProperties":"True","FFlagTerrainToolsUseFragmentsForToolPanel":"True","FFlagTerrainToolsFixPlanePositionErrorMessage":"True","FFlagTerrainToolsFixGettingTerrain":"True","FFlagTerrainToolsOffsetGenerationNoise":"True","FFlagPlayerPolicyHttpRequestHealthReportToInfluxEnabled":"True","FFlagLDLUseStasisCache":"True","FFlagIgnoreModalGuiWhenScreenGuiIsDisabled":"True","FFlagMarkAppearanceDirtyWhenUIPaddingChanges":"True","FFlagFixHorizontalScrollBarGaps":"True","DFFlagFixScalingValueReplicationWarn":"True","DFFlagStudioFixJoinSurfacesDisabled":"True","FFlagStudioEnableLuauTypeCheckingBetaFeature":"True","FFlagLuaAppBacktraceReportBaseUrl":"True","FFlagLuaChatAliasConfig_GlobalErrorWillDisable":"True","FFlagLuaChatAliasConfig_UserIdErrorWillDisable":"True","FFlagLuaChatPlayTogetherGameIconFix":"True","FFlagFetchAliasesOnStartup":"True","FIntLuaChatAliasesRolloutV5":"100","DFFlagUsePugiForAbuseReport":"True","FFlagXboxUpdateSessionChecker":"True","FFlagAvatarExperienceEnableAvatarModelLoadTime":"True","FFlagUseGenericRBXThumbUrl":"True","FFlagImplementIMEInStudio":"True","FFlagLuaCatalogPremiumUpsellModal":"True","DFFlagHttpAddSetMethodPatch":"True","DFFlagPubKeyExchange":"True","FIntNumSmoothingPasses":"3","FFlagPerPeerSnfWhitelist":"True","FFlagStopRelatives":"True","FFlagUseRoactPlayerList3":"True","FFlagFindNestedParts":"True","FFlagRTMemoryless":"True","FFlagPartMaterialTableReload":"True","FFlagBeamTextureDesyncFix":"True","FFlagFixAdornRenderNullCrash":"True","FFlagRemoveReflectionScaleValue":"True","FFlagFutureIsBrightPhase2_5EnableControls":"True","FFlagPresetLightRefactor":"True","FFlagLuaAppDisplayFriendInGame":"True","FFlagUserChatAddServerSideChecks":"True","FFlagStudioDraftsServiceHostCrashFix":"True","FFlagTerrainToolsAutoFormatNum":"True","FFlagTerrainToolMetrics":"True","FFlagTextScaledRespectUIPadding":"True","FFlagOnlyFireFocusedOnce":"True","DFIntPercentageThresholdUsingFriendsV2A3":"100","FFlagStudioGameSettingsDisablePlayabilityForDrafts":"false","FFlagCLI31175":"True","FFlagStudioDraftsDeletePreferSafeOption2":"True","DFFlagTryGCifNeedGC":"True","FFlagStudioFixInitialEnabledPluginGui2":"True","FFlagBuildGuiOnServerInStudio":"True","FFlagStudioHandlePreloadAsyncInPluginDataModels":"True","DFFlagLDLBuildProgramTimeReportEnabled":"True","DFFlagLDLProgramOpsReportingEnabled":"True","FFlagABTestLoadingDeadlockFix":"True","FFlagStopTheDefaultTeleporter":"True","DFFlagCompletenessParentMFDFix":"True","FFlagStudioGameSettingsPermissionUpdateWarning":"True","FFlagLuaLogInDisableAutoFocus":"True","DFFlagRccPassThroughMatchmakingMetadata":"True","DFFlagRccRemoveMaxGameInstances":"True","DFIntHttpInfluxHundredthsPercentage":"2","FFlagEnableAppInstallationId":"True","FFlagInitializeVideoManager":"True","DFIntLDLBuildProgramTimeReportRate":"100000","FFlagPlayerListAdjustHeightToMatchLegacy":"True","FFlagStudioEnableSafeUpdatesBetaFeature":"True","FFlagCatalogUpdateRecommendations":"True","FFlagAvatarExperienceNavigationFix":"True","FFlagLDLUnrollMatrixOperations":"True","FFlagLuaPickyScrollingPicker":"True","FFlagLuaCatalogRefactorSpawns":"True","FFlagLuaCatalogShowFloodcheckErrorToast":"True","FFlagLuaCatalogEnableFullViewToggleAnalytics":"True","FFlagLuaAppABTestFeaturedGameTileInSearch":"False","FFlagLuaAppGamesAPISetFeaturedGame":"True","FFlagLuaAppGameSortGridABTestEnabled":"True","DFFlagReportLuaKicks":"True","FFlagEnableScaleIndependentBulletCollision4":"False","FFlagGraphicsVulkanEnableDepthBiasClamp":"True","DFFlagLDLUseMinimalLocalFillElimination":"True","DFFlagFixTerrainStreamOutOptOrder":"True","FStringLuaAppGameSortGridABTestJSON":"{\"ABTestData\" : { \"Control\" : { \"UseGrid\" : false, \"GridRows\" : 0, \"UseGridMediumTile\" : false }, \"Variation1\" : { \"UseGrid\" : false, \"GridRows\" : 0, \"UseGridMediumTile\" : false }, \"Variation2\" : { \"UseGrid\" : true, \"GridRows\" : 3, \"UseGridMediumTile\" : true }, \"Variation3\" : { \"UseGrid\" : true, \"GridRows\" : 2, \"UseGridMediumTile\" : true }, \"Variation4\" : { \"UseGrid\" : true, \"GridRows\" : 3, \"UseGridMediumTile\" : false }, \"Variation5\" : { \"UseGrid\" : true, \"GridRows\" : 2, \"UseGridMediumTile\" : false } }}","FFlagMeasureSleepAssemblies":"False","FFlagFixReplaceTerrainAir":"True","FFlagStudioProperCheckForServerContentLoaded":"True","FFlagFixScrollActionOffset":"True","FFlagFixEmotesMenuInputPassthrough":"True","FFlagStudioPlaceSessionMainViewCleanupEventFilter":"True","FFlagEnablePurchasePromptV2":"True","FFlagIfYouDidntKnowNowYouKnow":"True","DFFlagUseCorrectIncompatibleVersionMessage":"True","FFlagIsPasswordValidationV2Enabled":"True","FFlagIsTwoStepValidationV2Enabled":"True","FFlagIsTwoStepResendV2Enabled":"True","DFFlagStreamingCheckParentBeforeAddingNewInstanceItem":"True","DFFlagDeprecateConnectionRejected":"True","DFFlagStreamingScaleBufByQuota":"True","DFFlagCheckFMODInitThreading2":"True","FFlagStudioGameSettingsFixDescriptionFetch":"True","FFlagStudioDeferCGESelectionListener":"True","DFFlagLuauFailFaster":"True","DFFlagGetRidOfPointlessSytemCheck":"True","DFFlagVideoFixPossibleBufferingHang":"True","DFFlagParameterValidationForLoadSoundForChannel":"True","DFFlagVideoBetterHandlingOfUnsupportedCodecs":"True","DFFlagDoNotCreatePlaybackChannelForNullSoundChannel":"True","DFFlagValidateSoundChannelInTryToLoadSound":"True","DFFlagVideoAllowNonNativeResolutions":"True","DFFlagVideoBetterCleanupOnOpenFailure":"True","DFFlagVideoStreamAlternateStopAudio":"True","DFFlagUpdateQuotaAfterMemoryUpdate":"true","DFFlagUpdateStreamingInfoWhenGC":"true","FFlagFixDuplicateChildNames":"true","FFlagLuaAppNilUserPresenceFix":"True","DFFlagLDLPGSReportCachedMemory":"True","FFlagImagePickerNow":"True","FFlagTerrainToolsFixMaterialTooltipClipping":"True","FFlagLuaSignUpBDayRefactor2":"True","FFlagStudioMitigateTemplateModerationHash":"True","FFlagGraphicsD3D11PerFrameQuery":"true","FFlagGraphicsVulkanPerFrameQuery":"true","FFlagPlayerListDontCreateUIWhenDisabled_PlaceFilter":"True;3411100258","DFFlagLoadLibraryError":"True","FFlagLuaCatalogRedirectOwnedBundleToCorrectCategory2":"True","FFlagStudioFixAutoCompleteClosingParensAnonyFuncDef":"True","DFIntNetworkStreamingGCUrgentMaxMicroSecondLimit":"8000","FFlagStudioAlwaysSendActiveSessionAnalytics":"True","FFlagEnableJavascriptHybrid2":"True","FFlagPlayerListMorePermissiveLeaderstatsCheck":"True","FFlagFixGetStringForKeycodeCrash":"False","DFFlagLaterPlayerTeamRemovingSignal":"True","FFlagEnableGameI18nForClients":"True","FFlagEnableLocaleHostForClients":"True","FFlagStudioQuickOpenPatch":"True","FFlagStudioQuickOpenFilterHiddenInstances":"True","FFlagStudioQuickOpenFixPosition":"True","FFlagStudioScriptEditorTelemetry":"True","FFlagStudioCatchUploadExceptionForAsync":"True","FFlagTerrainToolsRefactor":"True","FFlagTerrainToolsFlattenUseBaseBrush":"True","FFlagEnableScaleIndependentBulletCollision5":"True","DFFlagHideStreamingPropsWhenNotStreaming":"true","FFlagUseStudioServiceInPluginGetUserId":"True","FFlagPrefetchCharacterInfoForSignUp":"True","FFlagHttpServiceLogPluginDomains":"True","FFlagCtrlPinchRejection":"True","FFlagExtraDatamodelServicesForPluginDms":"False","DFFlagContentProviderLocalAssetPath":"True","FFlagLuaCatalogFixSearchParameterAnalytics":"True","FFlagLuauContinue":"True","FFlagLuaChatDateContentOverlapFix":"True","FFlagDataStoreCacheLimitEnabled":"True","FFlagBytecodeSerialization":"True","FFlagSignatureSerialization":"True","DFFlagReplicatorStreamingReportGCStepPercentage":"True","DFIntStreamedRegionGCUrgentFactor":"20","FFlagAvatarExperienceSaveManagerInitialization":"True","FFlagAvatarExperienceEmptyHistoryFix":"True","FFlagStudioEnableLuaPublishWorkflowBetaFeature":"False","FIntStudioBFRolesetLuaPublishWorkflow":"4","FFlagChangeHistoryIgnoreArchivable":"True","DFFlagEnableFillWedge":"True","FFlagEnableNonWhitelistedToggle":"True","FFlagEnablePurchaseV2":"True","FFlagGraphicsVulkanBetterTransferBarriers":"True","FFlagStopRenderTransparentGlyph":"True","FFlagStudioFixModuleScriptLuaStateInBacktrace_2":"True","FIntStudioDeprecateQuickFindScriptStep":"2","DFFlagStudioShowMixedTablesInWatchedVariables":"True","DFFlagReplicatePlaceVersion":"True","FFlagStudioFixIntellisenseTooltipCutoff":"True","FFlagPlayerListPerformanceImprovements":"True","FFlagStudioDontShowNilTooltip":"True","FFlagFixGetStringForKeycodeCrash2":"True","FFlagPlayerListFixUnexpectedLeaderstatsTypes":"True","FFlagPlayerListFixBlockedInitalization":"True","FFlagPlayerListFixTouchInputState":"True","FFlagPlayerListInitalizePerformanceStatsVisible":"True","FFlagMeasureSleepAssemblies2":"True","FFlagEnableToolboxInsertWithJoin":"True","DFFlagBodySafeUpdatePVEnabled":"True","FFlagStudioDraftsUseMultiselect2":"True","FFlagStudioDraftsServiceFullNameInDiff":"True","FFlagRemoveCommittedDraftsFromSelection":"True","FFlagDisableContextMenuDuringCommit":"True","DFFlagVersionControlServiceBatchCommit":"True","FFlagStudioQuickOpenSelectFirstByDefault":"True","FFlagTerrainToolsGeneratorSkipAir":"True","FFlagTerrainToolsMaterialGenerateFragments":"True","FFlagTerrainToolsFixOffsetGenerationNoise":"True","FFlagAllowDuplicateNamesOnNonAnimatedParts":"True","FFlagStudioGameSettingsFixUserSearch":"True","DFFlagDisableAncientNetworkSettings":"True","DFFlagDisableReplicatorLuaCloseConnection":"True","DFFlagDisableReplicatorLuaGetRakStatsString":"True","DFIntClientReportLuaTicketInfluxHundrethsPercentage":"10000","DFIntClientReportLuaConnectionSignalsInfluxHundrethsPercentage":"10000","DFIntServerReportLuaGetPortInfluxHundrethsPercentage":"1000","FFlagTerrainTightBoxes":"False","DFFlagTopGamesPhysicsReportingEnabled2":"True","DFIntTopGamesPhysicsReportingRatePercent":"1","DFIntTopGamesPhysicsAveExpFactorPercent":"10","DFIntTopGamesPhysicsReportingDelay":"300","FFlagStudioMeshCopyIdUseMeshId":"True","FFlagStudioSettingsDialogOnlyShowCancelWithContent":"True","FFlagStudioWatchListCheckForEditable":"True","FFlagEnableDefaultSortFix":"False","FLogPluginOnInvoke":"0","FFlagPhysicsSleepImprovementsBeta":"False","DFFlagNoExceptionsToPartsInStreaming":"true","FStringStudioUrlPhysicsSleepImprovements":"\"https://devforum.roblox.com/t/beta-test-me-sleeping-part-behavior-improvements/456931\"","FFlagLuauWarnOnUtf8":"True","FFlagUsePolicyServiceForCoreScripts2":"False","FFlagFFlagUsePolicyServiceForCoreScripts":"False","FFlagStudioFixStripedTableSelectionHover":"True","FFlagHandleMouseDownWhenFocused":"True","FFlagUseSaneScrollWheelDelta":"True","FFlagLuaChatAliasesSizingFix":"False","FFlagABTestMultipleWaitsFix":"True","FFlagSwipeNeverResetsTouchFocusEventFix":"True","FFlagAppBridgeDestroyAppOnTermination":"True","FFlagRenderForceContext":"True","DFFlagRejectEarlyHumanoidChanges":"False","FFlagSteerFloatAndThrottleFloatReplicationFix":"True","FFlagSkipLowResFix2":"True","FFlagStudioFixStringHighlightingWithBackslashZ":"False","FFlagStudioAllowDuplicateWatchVariables":"True","DFFlagStudioStopDeepLuaTableStackOverflow":"True","FFlagUsingNewCaptchaApi":"True","FFlagLuaAppInitializeABTests2":"True","DFFlagServerDisableLuaGetPort":"True","FFlagQuickOpenFixSpinner":"True","DFIntRccLinuxMemoryMegaByteLimit_PlaceFilter":"16000;4599786547;4677926228","DFFlagPremiumUpsellEnabledV2":"True","FFlagPremiumLuaUpsellEnabled":"True","FFlagPremiumLuaUpsellEnabledV2":"True","FFlagReQueryPremiumOnError":"True","FFlagAllowTGAImageAssetExtension":"True","DFFlagGCReducesQuota2":"True","FFlagAvatarSizeFixForReorganizeHeaders":"True","FFlagTerrainToolsRefactorSculptOperations":"True","FFlagUseAnalyticalElasticSpring":"True","DFFlagClientNetworkReportIpVersion":"True","FFlagFixStudioEmulatorDeviceOrientation":"True","FFlagBroadPhaseIslandAcceleratedFilterStep":"True","FFlagStudioFixShortcutSorting":"True","DFFlagDontClearForwardRefMapOnGC":"True","FFlagFIB25Update2":"True","DFFlagContentProviderLocalAssetPath3":"True","DFFlagContentProviderLocalAssetPathRCCFix":"True","FFlagExtraDatamodelServicesForPluginDms2":"True","DFFlagDontImmediatelyDeparentReplicator":"true","DFFlagStopPlayersTraverseForPhysics":"true","DFFlagAllowAnimateScripts":"true","FFlagStudioRefactorAssetPreview":"true","FFlagLuaPackagePermissions":"True","FFlagUserCameraToggle":"true","DFFlagFriendsV2BadAccessFix":"True","FFlagNewAwardBadgeEndpoint2":"True","FFlagLocalizeVideoRecordAndScreenshotText":"true","FFlagFixGamepadContextActionServiceOverride":"False","DFFlagComputeSolverDisplacementForWake":"True","FFlagUseSolverDisplacementForWake":"True","DFFlagDeferTickleAssemblyWakes":"False","FFlagUseNewSleepStage":"True","FFlagAvatarEditorUpdateCamera2":"True","FFlagAnalyticsCatalogSearchEventContext":"True","DFFlagHttpAdditionalBandwidthMetrics":"True","DFFlagHttpNetworkType":"False","DFFlagHttpDynamicSuccessStatusCode":"True","DFFlagClientNetworkReportGameInstanceId":"False","DFFlagVideoCircularBufferFix":"True","FFlagVideoUseAudioAsMasterClock":"True","DFIntUserHttpRequestsPerMinuteLimitZ_PlaceFilter":"500;4686746335;4702658078;1067560271;1067660288;735030788;2033617470;4709927839;2033617613;1765700510;1187101243;4728133914;4728134592;4728135073;4728136238;4728136475;4728136681;4728136927;4728137133;4728137352;4728137581","DFFlagAvoidVelBufWhenGC2":"True","DFFlagClientStreamingRadiusRoundConsistency":"True","FFlagCMSUseSharedUGCValidation":"True","FFlagStudioFixAutoCompleteInAnonymousFunctionDef":"True","FIntNotMovingSleepThresholdMult":"1","DFIntFriendshipEndpointMigrationRolloutPercentage":"0","FFlagGraphicsGLPerFrameQuery":"False","FFlagStudioCheckPlaceVersionMatchInTeamCreate":"True","FFlagStudioOpenModuleScriptIfNotFoundWhileDebugging":"True","FFlagFixModuleScriptBreakpointNotHitWhenParentScriptNotOpened":"False","FFlagStudioQuickOpenReopenShowHistory":"True","FFlagTrailClearCrashFix":"True","DFFlagComputeSolverDisplacementForWake_PlaceFilter":"True;679715583","FFlagUseSolverDisplacementForWake_PlaceFilter":"True;679715583","FFlagUseNewSleepStage_PlaceFilter":"True;679715583","DFFlagDeferTickleAssemblyWakes_PlaceFilter":"False;679715583","DFFlagRaknetBandwidthMetrics":"False","DFIntRaknetBandwidthInfluxHundredthsPercentage":"0","DFFlagEnableCallingWakeUpMechanicalJointsForAssembly":"True","FIntESGamePerfMonitorReportDetails":"1","FFlagLegacyShadowMapFormatRG8":"True","DFFlagUseRaisePropertyChangeForSoundPlaying":"True","FFlagRefactorPluginLoading":"False","FFlagFixWeakFunctionRefInPlugin":"True","FStringStudioUrlInsertObjectStreamlining":"https://web.archive.org/web/20200624170102/https://devforum.roblox.com/t/object-insertion-workflow-improvements-beta-2/468307","DFFlagPremiumGameIdFix":"True","FFlagUpsellDirectToPackage":"True","DFFlagStreamingFasterTargetRadiusIncreaseAfterGC":"True","FFlagFixNotificationScriptError":"True","FFlagUserRemoveTheCameraApi":"True","DFIntVideoStreamMaxBufferMs":"200","DFIntVideoStreamMinBufferMs":"100","DFFlagUseThresholdForMotor6DWakes":"False","DFFlagWakePartsOnGravityChange":"True","FFlagStudioFixPublishSuccessNameIcon":"True","FFlagPublishPlaceToRobloxLuaPlugin":"True","FFlagStudioRefactorStudioVerbsSavePublishDuplicateCode":"False","FFlagStudioFixPhantomBreakpointOnLineDelete":"True","DFStringGlobalUniverse17sIds":"14743789;1482020489","DFFlagGlobalToggle17sApis":"True","DFFlagHttpRbxApiEnable17sApis":"True","DFFlagEnableMacWindowCloseButton":"True","DFFlagJointInstanceEnabled":"True","DFFlagEconomyCreatorStatsApiWhitelist":"True","DFFlagPostPremiumUpsells":"True","FFlagLogPremiumImpressions":"True","FFlagEnableRobuxIconXbox":"True","FFlagXboxReportPlayerLocFix":"True","FFlagStudioScriptEditorContentsChangingRefine":"False","DFFlagUseRaisePropertyChangeForSoundTimePosition":"True","FFlagStudioScriptFindElideCopies":"True","LuaAppPercentRolloutGameDetailMoreAnalytics":"100","FFlagXboxLessInfiniteFunctionMarshaller":"True","FFlagFixRobloxInputBadArrayLengthChecks":"True","FFlagUserChatNewMessageLengthCheck2":"True","FFlagAvatarEditorFixCutOffItemName":"True","FFlagLuaChatAliasesSizingFixV2":"True","FIntLuaAppLogoutUserOnUnauthorizedPercentRollout":"100","FFlagStudioPressEndToEndOfLine":"True","FFlagStudioFoldSafeLexer":"True","FFlagStudioFixGetClassIcon":"True","FFlagDoTeleportCloseCurrentDMBlocking":"False","FFlagRemoveDmCheckInSetLocalPlayerInfo":"True","DFFlagSimLDLProgramNewStatsEnabled":"False","DFFlagRejectEarlyHumanoidChanges2":"True","FFlagAssetManagerLuaCleanup1":"True","FFlagTrailLockFailCrashFix":"True","DFFlagDebugRealityCheck3":"True","DFFlagRemoveOldNFWL":"True","FFlagAlwaysGenerateGuid2":"True","DFIntStreamingPauseVelBufMaxDurationMS":"4000","FFlagStudioReportOpenPlace":"True","FFlagStudioReportLoginAnalytics":"True","FFlagStudioReportBaseUrl":"True","FFlagStudioGameSettingsGroupGamePermissionChanges":"True","DFFlagVideoModifyMutexes":"True","DFFlagVideoEnableDeviceTuning":"True","DFFlagVideoFixAbsurdlySlowDataCopy":"True","DFFlagVideoEnableGetInfo_PlaceFilter":"True;4587054145;4521759066;4589144917;1921623329;4710199611;4786133739","DFFlagAlwaysLongStep":"True","FFlagStudioConfirmPublishWithDirtyDrafts":"True","FFlagStudioQuickImproveResponsiveness":"True","FFlagJIRA_RIDE_184_V2":"True","FFlagVersionControlServiceScriptCollabEnabledByDefault":"True","FFlagStudioFixAssetPreviewTreeView":"True","DFFlagSimDontResetContactsOnNotifyAssemblyPrimitiveMoved":"True","DFFlagTweenServiceOnStepped":"False","FFlagLocalizationToolsLocalizationEnabled":"True","DFFlagFixRijndaelCBC":"True","FFlagLoadTheLoadingScreenEvenFaster":"true","DFFlagClientNetworkSendGameInstanceId":"True","FFlagOutputWidgetFindEnabled":"False","FFlagCoreScriptOverrideRefactor":"true","FFlagXboxUseNewBundleEndpoints2":"True","DFFlagVectorMinMax":"True","FFlagXboxHardwareBundleEnabled":"True","FFlagStudioEnhanceEmulationDeviceManager":"True","FFlagBindToAllInterfaces":"True","DFFlagConnectIPv6ServerInLAN":"True","FFlagRakNetSupportIpV6":"True","FFlagImproveCatalogPerformance":"True","DFFlagPremiumUpsellUserId":"True","FFlagLuauImmutableUpvalues":"True","FFlagLuauCaptureOp":"True","FFlagPremiumUpsellPrecheck":"True","FFlagRefactorPluginLoadingForDeadlock":"True","FFlagScaleToolUseBinarySearch":"True","DFFlagUseRefactoredHitTest":"False","DFFlagUseRefactoredRaycast":"False","DFFlagRefactoredIkSolve":"True","FFlagDisableAutoTranslateForKeyTranslatedContent":"True","FFlagDisableReconnectAfterPotentialTimeout":"True","DFFlagFixCoreScriptModuleDebuggerDataNotMappingOnBaseLevelScript":"True","FFlagStudioFixOpenCoreScriptDocDatamodelMapping":"True","DFLogPartStreamingRequests_PlaceFilter":"6;2291717546;2623652930;2753554889;3027055174;4599786547","FFlagStudioEnableProjectConfig":"True","FFlagScriptContextEnableDetailedErrorSignal":"True","FFlagLuaAppUseDetailedErrorSignal2":"True","FIntInstrumentGuacRollout":"100","FFlagLuaAppPolicyMockRefactor":"True","FFlagLuaAppPolicyUseGuac":"True","FFlagEnableAppPolicyDefaultsFile":"True","FFlagLuaAppMorePagePolicyFix":"True","FFlagLuaAppTopBarCustomBackButton":"True","DFFlagSimLDLProgramNewStatsEnabled2":"True","FFlagCJVNotFallbackToEnglishForUGCEnabled":"True","FFlagStudioDisplayNameCrashFixEnabled":"True","FFlagSimLDLProgramMemoryOptimization":"True","FFlagStudioDeprecateQuickFindScriptTotally":"True","FFlagStudioFixNullptrTeamCreateDCCrash":"True","FFlagStudioEnableCoreScriptOpeningForInternalDevs":"True","FFlagStudioDisablePluginButtonsInProgress":"False","FFlagStudioCreateGroupOwner":"False","FFlagStudioGameSettingsUserGameEditPermissionsRestriction":"True","FIntStudioBFRolesetAccessPermissions":"4","FFlagEnableStartupControllerOnWindows":"True","FFlagCFrameVectors":"True","FFlagNoMoreDraggerFloatingPointError":"True","FFlagRemoveImplicitIkDraggerUndoWaypoint":"True","FFlagStudioServiceShowConstraintDetails":"True","FFlagStudioAllowBuiltinActionOverride":"True","FFlagStudioDisablePublishButtonsInProgress":"True","FFlagStudioCreateGameGroupOwner":"True","FFlagUWPLocaleManagerEnabled":"True","DFFlagSimEnableTouchEventManager":"True","FFlagStudioReportPlaceSize":"True","DFFlagFasterHasNanInf":"True","DFFlagBodyAtomicUpdate":"True","DFFlagParallelCollisionsFaster":"True","FFlagStudioLanguageService":"False","DFFlagMegaRepOnlyClearWhenNewlyAlive":"true","DFFlagInstanceOrderCheck":"False","FFlagStudioAutoFocusNewScripts":"True","FFlagStudioDefaultPopulateFindWidget":"True","FFlagStudioFixLocalShutdownRequest":"False","DFFlagLogIsAPVAdornment":"False","FFlagLuauHighlightContinue":"true","FFlagStudioLuauWarningTelemetry":"False","FFlagRankMatchByMatchedLength":"True","FFlagTryTranslateParameterOnSourceMatch":"True","DFFlagReportParameterContent":"True","FFlagAllowPasteKeysBetweenAnimations":"True","FFlagFixMockStudioTheme":"True","FFlagUseGetKeyframeSequenceIgnoreCache":"True","FFlagAddStatCounters":"True","FFlagStudioEnableResume":"False","FFlagRefactorPluginLoading2":"False","DFFlagFastVisuallyMovingCounters":"False","FFlagAndroidSetSafeZoneOffsets":"True","FFlagStudioDeviceEmulatorSetSafeZone":"True","FFlagFixRunServiceStopFromPlugin":"True","FFlagStudioGameSettingsAccessPermissions":"True","FFlagStudioCloseOnMiddleButtonRelease":"True","FFlagStudioFixMacFileOpen":"True","FFlagStudioUseAnimationEditorAnalytics2":"True","FFlagLuauNewResume":"False","FFlagEnableDoubleClickSupport":"True","FFlagInGameMenuSinglePaneDesign":"True","FFlagInvalidateNanTimeStamp":"True","DFIntTrackCountryRegionAPIHundredthsPercent":"100","FFlagMacStudioInitCrashHandlingFirstAfterFlagLoaded":"True","FFlagGraphicsGLProperCheckForFramebuffer":"True","FFlagAccountReplicatorQueueItemTypes":"True","FFlagStudioQuickOpenSearchActions":"True","FFlagStudioTightenSaveMutexLocks":"True","DFFlagRCCMonitoringInitializeCpuVariables":"True","DFFlagRaknetBandwidthMetricsAddServerIp":"False","FFlagCollectAnalyticsForSystemMenu":"True","DFFlagRCCMonitoringCustomTimeouts":"True","DFIntHttpRbxApiMaxRetryBudgetPerMinute":"10","DFIntHttpRbxApiMaxRetryCount":"3","FFlagPlayerListFixStatFlickering":"True","FFlagCorescriptThumbnailsRespectBaseUrl":"True","FFlagPlayerListBetterDropDownPositioning2":"True","FFlagPlayerListUseUIBloxIcons":"True","FFlagPlayerListFixTouchInputState2":"True","FFlagNewIrradianceCalculation":"True","DFFlagRccUseCmdLineLimits":"True","DFFlagRaknetBandwidthAddDataCenterId":"False","DFFlagRequireModulesTypeCheckAnalyticsEnabled":"True","DFIntRequireModulesTypeMismatchWarningCount":"8","DFIntAssetTypeCheckPermyriad":"1000","FFlagDoesNotLoadCachedFileSyncItemsForLuaApp":"True","FFlagStudioFixCDNUrlForProjectConfig":"True","FFlagStudioSandboxCrashFix":"True","DFFlagTouchQueueMetrics":"True","DFIntTouchQueueMetricsSendEveryXSeconds":"300","DFIntTouchQueueMetricsInfluxHundredthsPercentage":"10000","FFlagStudioFixTemplateModerationHashRemovalOnTCEnable":"True","DFFlagSimLDLComponentMemoryUseComputationFix":"True","FFlagStudioEnableAssetManagerService":"True","FFlagStudioAddBulkImportView":"True","FFlagStudioEnableBulkImportFromLua":"True","FFlagDoNotGetAntiAddictionPolicyInRenderStep":"False","FFlagStudioMakeActivityCounterListCrashDueToLocale":"True","FFlagStudioPlaceSessionModelIncorrectLocaleCountryCrash":"True","FFlagStudioIncorrectLocaleInLogFile":"True","FFlagGraphicsGLDisableTimerQueryAdreno":"False","FFlagGraphicsGLPerFrameQuery2":"False","FFlagStudioEnableEmulationDeviceEditor":"True","FFlagStudioAssetManagerBetaFeature":"true","FIntStudioBFRolesetAssetManager":"2","DFIntReportParameterContentHundredthsPercent":"8000","DFFlagLocalizationServiceGetCountryCodeAPINullptrCheckFix":"True","DFFlagPlayerPolicyGetApiUrlForRequestPolicyInfoFix":"True","DFFlagPlayFabPlayerLoginLogoutAsServerEvents":"False","DFFlagPlayFabEmitMarketplaceEvents":"False","FFlagPackageDiffBugFix":"True","FFlagStudioChatSessionHandlerCrashFix":"True","FFlagLuaAppSiteBannerLinks":"True","FFlagTopBarHideSiteBanner":"True","FFlagWebViewsUseLuaGameDetails":"False","FFlagEnableAppsFlyerLinks":"True","EnableAppsFlyerDeferredLinks":"True","FFlagEnableGameStartUniversalLink":"True","FFlagLuaAppRefactorInAppLinks2":"True","FFlagAppBridgeExplicitDefaultPlayerParams":"False","DFFlagClientDisableLuaTicket":"True","FFlagStudioUpdateRuiDialog":"True","FIntDataModelPatcherEventPercentage":"1","FFlagEnablePluginPermissionsPage2":"True","FFlagPluginIdentityFix":"True","FFlagPluginManagementPrettifyDesign2":"True","FFlagStudioFetchPluginName":"True","FFlagStudioHttpServiceUsePluginPermissions":"True","FFlagStudioPermissionsServiceEnabled":"True","FixChromebookEnterKeyIssue":"True","FFlagStudioDontHideWatchItems":"True","FFlagAlwaysWriteLegacyLock":"True","FFlagAppShellReporterMonitorFrameTime2":"True","FFlagMemoryFromAppShellReporter2":"True","FFlagGameDetailsPeekViewAnalyticsEvents2":"True","FIntTaskSchedulerThreadMin":"0","FFlagStudioTimerRefactor":"False","FFlagDumbSpatialHash":"False","DFFlagTweecall":"True","FFlagStudioInsertObjectStreamliningv0_Consolidated":"True","FFlagStudioInsertObjectStreamliningv2_TranslatedToolTips":"True","FFlagStudioInsertObjectStreamliningv2_SharedModelBugFix":"True","FFlagStudioInsertObjectStreamliningv2_MultiWindowContextPlacementBugFix":"True","FFlagStudioInsertObjectStreamliningv2_DataModelLifetimeBugFix":"True","FFlagStudioInsertObjectStreamliningv2_ShowRecommendedObjectsOnly":"True","FFlagStudioInsertObjectStreamliningv2_ExpandedView":"True","FFlagStudioInsertObjectStreamliningv2_InsertMenuShortcut":"True","DFFlagBallSocketMaxFrictionTorqueEnabled":"False","DFFlagAngularVelocityReactionTorqueEnabled":"True","FFlagStudioDefaultGroupInDropdownPublish":"True","DFFlagStopSoundTaskOnChannelTreeNullified":"True","FFlagRemoveLinkFromKinematicJoints":"False","FFlagSpanningEdgeCacheIsInTree":"True","FFlagConsistentCofmForAnimatedAssemblies":"True","DFFlagParallelSendTouches":"False","DFFlagDoNotRepeatRedundantPlayingEvents":"True","DFFlagDoNotRepeatRedundantVideoPlayingEvents":"True","DFFlagReportReplicationVariantLimitHit":"True","DFIntClientSendEventStringDataLimitBytes":"75000000","DFIntClientSendEventVariantCountLimit":"1500000","DFIntRCCReceiveEventStringDataLimitBytes":"75000000","DFIntRCCReceiveEventVariantCountLimit":"1500000","DFFlagSimLDLProgramForceUnroll":"True","DFFlagLuaNoResetStack":"True","FFlagLuauTypeAnnotationsEverywhere":"True","FFlagAvatarExperienceImproveBackgroundTransition":"True","FFlagAvatarExperienceUseInternalBackgroundAsset":"True","FFlagStudioEnablePhoneAndTableDefault":"True","DFFlagBallSocketMaxFrictionTorqueEnabled_PlaceFilter":"True;4588303397","DFFlagDisableDebuggerDisconnect":"True","FFlagStudioInsertObjectStreamliningv2_Consolidated":"True","DFFlagAllowLuauUpdates":"True","DFFlagWarnTypeCheckOnRequire":"False","DFFlagForceTypeCheckOnRequire":"True","FFlagAddSidToGameJoinLoadTime":"True","FFlagEnableConvertToTerrainBeta":"True","FFlagSerializerIgnoresMD5":"True","FFlagStudioDeviceManagerAddPreview":"true","DFFlagPlayFabEmitTeleportEvents":"True","FFlagPeekPreviewMenuClose":"True","FFlagCatalogAnimationIdlePreview":"True","DFFlagSimLDLPGSStatsBufferBreakdownReporting":"True","FFlagAvatarExperienceOutfitRecommendations":"False","FFlagRenderImproveStreaming":"False","FFlagTerrainToolsImportImproveColorMapToggle":"True","FFlagTerrainToolsRefactorAssetIdSelector2":"True","FFlagTerrainToolsSmoothToolIgnoreWater":"True","DFFlagEnable17sNotifications":"True","FFlagPlayerListFixLeaderboardDisabledError":"True","FIntNumberParalleNarrowPhaseThreads":"16","FIntParalleNarrowPhaseThreads":"16","FIntLDLPGSMaxParallelTasks":"16","FFlagUnlockOnlyCountTheRecentGamesOnce":"True","FFlagCheckInstanceIsInScope":"True","FFlagFixModuleScriptBreakpointNotHitWhenParentScriptNotOpened2":"True","FFlagStudioFixStringHighlightingWithBackslashZ2":"True","FFlagStudioRefactorStudioVerbsSavePublishDuplicateCode2":"True","FFlagImmHandlerFixJapaneseAndKorean":"False","FFlagReportInputMethodAnalytics":"False","FFlagFixTextSelectionForHighDpi":"True","FFlagStopCheckingFrontendProcessingInTextLayout":"True","FFlagStudioUILibFixAssetTypeMap":"True","FFlagEnableUIGradientEnabledProperty":"False","FFlagStudioEnableVirtualKeyboardAnimation":"True","DFFlagConsumePlatformNameOverAlternateName":"False","FFlagSuperSmoothMouseWheelScrolling":"True","DFIntReplicationVariantLimitHundredthPercent":"10000","FStringEnableiCloudWebCredentialsBtIdsList":"49593556386,49593556386,44219219422,49373021284,49849080647","FIntSmoothMouseSpringFrequencyTenths":"45","FFlagDefaultLocDelimFix":"True","DFFlagPremiumUpsellRecheckPremium":"True","FFlagPluginManagementFixRemovePlugins":"True","FFlagLuaAppMorePageFixEventLoading":"True","FFlagLuaAppMorePageMoveEventsToPosition6":"True","FFlagLuaAppUseNewMorePage":"False","DFFlagRenameDisplayNameToPlatformName":"True","DFFlagVisualEngineTrackHeadless":"True","DFFlagPartMassEnabled":"True","DFFlagAnimatorApplyJointVelocities":"True","FFlagLuauPreciseLocals":"True","FFlagCoreScriptTopBarStartup":"False","FFlagStudioInfoBar2":"True","FFlagStudioInfoBarOnDraftCreation":"True","FFlagLuauNewResume2":"True","FFlagLuauNewDebugger":"True","FFlagEnableLuaDraggersBetaFeature":"True","FFlagXboxAppShellSiblingZIndex2":"True","DFFlagFixPlayerGetTeamNeutral":"True","FFlagPlayerListFixTeamUpdates":"True","FStringNewTopBarForcedUserIds":"959520514,656046844,146914182,975669155,344925094,247305679,956690111,1026207482,485327537,166540505,1300488959,1220631541,169775909,1498251806,401950003,751568948,2231221,7210880,931389991,1478764079,597663806,1298953044,1542933305,1182179679,1516442,1155027644,648897862","FFlagEnableOverrideAssetCursorFix":"True","FFlagStudioNewDirtyPublishWarningDialog":"True","FFlagDataModelPatcherAlwaysRecordErrors":"True","FFlagReplicatorInitializeSharedSchema":"True","DFFlagReplicatorUseSharedSchema":"True","FFlagStudioSandboxVerifyIntegrityOnInitialize":"True","FFlagStudioScriptEditorEventsCrashFix":"True","FFlagStudioReportSavePlaceTime":"True","FFlagStudioFixSessionLengthCap":"True","FFlagReportMechanismChangeDuringGameplayCount":"True","DFFlagUseRefactoredRaycast3":"True","DFFlagUseRefactoredHitTest2":"True","DFFlagDebugForcePubKeyExchange":"True","DFFlagNetworkAuditEn2":"True","DFFlagPreventDeepTuples":"True","DFFlagMoreNfPlayer":"True","DFFlagReplicateAllowLuauOnly":"True","DFFlagUseThresholdForMotor6DWakes2":"False","FFlagStudioFixMeshPartPreview":"True","FFlagStudioAssetPreviewTreeFix2":"True","FFlagTruncateDevFrameworkHyperlinkText":"True","FFlagWorldModelV4":"False","FFlagAllowWorldModelCreationV2":"True","FFlagWorldModelRefactorV3":"False","DFFlagInstanceOrderCheck2":"True","FFlagRenderEmitterRecomputeOnChange2":"False","FFlagEnableReadingNewConvexDecompositionPath":"True","FFlagStudioChangeMinimumSizeOfPublishWindow":"True","FFlagStudioCreateNewGameRewritesName":"True","FFlagLuaAppMediumTileInGameSearchPage":"True","FIntLuaAppPercentRolloutFeaturedGameTileInSearch":"100","FFlagLuaAppPreloadDataInProgressWait":"True","FFlagLeaveStartingCoreScriptsToPlaceLauncher":"True","FFlagFixNavigationToChatFromPN":"True","FFlagDataModelPatcherBootstrapEnabled":"True","FFlagRenderShadowDisableBottomClip":"True","FFlagRenderMetalFixMaxFP16Samples":"True","FFlagRenderHalfresShadowsVulkan":"True","FFlagRenderGrassUpdateBudgetFix":"True","FFlagRenderShadowmapNoMSAADepth":"True","DFFlagBallSocketMaxFrictionTorqueEnabled2":"True","FFlagJointInstanceRenderAdornCheck":"True","FFlagLuaAppUseSessionization":"True","FFlagLaunchAppWaitForABTestsInitialized":"True","FFlagEnableAvatarExperienceLandingPageABTest3":"True","FFlagAELandingPageAnalytics":"True","FFlagPerformPurchaseNewBundleInfoTypeEnabled":"True","FFlagEmotesMenuNewKeybinds":"True","FFlagStudioPreventAccidentalTyposWhenHittingBreakpoint":"True","FFlagLuaAppSendLogsToBacktrace":"True","FFlagLuauFixSetMetatableType":"True","FFlagUseNewSleepStage2":"True","FStringFeature_NewGameJoinTeleport":"426;100","DFFlagOnlyOneRightGrip_PlaceFilter":"True;189707;4837595186;4586741827;3487742603;2747834912;4388574342","FFlagStudioLuauWarningTelemetry2":"True","DFIntParallelNarrowPhaseSerialCutoff":"50","DFFlagPlayerPolicyGetDMFromService":"True","DFFlagPlayerPolicyReportHttpFailureOnEveryAttempt":"True","FFlagMobileUseApplicationDirectories":"True","FFlagQtReadSystemProxy":"True","FFlagLuaAppUseNewEventsPage":"True","FFlagAvatarExperienceBackgroundThemeFix":"True","DFFlagDeferTickleAssemblyWakes2":"True","FFlagStudioFixDisappearingVirtualKeyboard":"True","FFlagGfxPartInvalidationLimitToTime":"False","FFlagGraphicsVulkanPreRotate":"False","FFlagStudioSavePlaceAs":"False","FFlagFixStartupGameLaunchFromLink":"True","FFlagGameSettingsUseUILibraryCheckBox":"True","FFlagGameSettingsUsesNewIconEndpoint":"True","FFlagWebViewsUseLuaGameDetails2":"True","FFlagLuauLookupImportedTypeCorrectly":"True","FFlagStudioFixMultipleAssetsImportLogic":"True","FFlagAvatarEditorAttachmentCameraFocus":"False","FFlagRenderMsaaShadowsVulkan":"True","FFlagLuauNewDebuggerGracefulYields":"True","DFFlagUseThresholdForMotor6DWakes2_PlaceFilter":"False;679715583","DFFlagAlwaysLogTcDisco":"True","FFlagAvatarCatalogCloseSearchWhenAvatarIsTapped":"True","DFFlagDeferTickleAssemblyWakes2_PlaceFilter":"False;441585237","DFFlagVideoCleanUpTimeHandling":"True","FFlagPassPointerActionsToGuiObjects":"True","FFlagIgnoreActiveWhenProcessingPointerActions":"True","FFlagScrollingFrameTrackpadSupport":"True","FFlagPublicIKSolve":"True","FFlagColor3ToHSVMethod":"True","FFlagStudioServiceDrawConstraintsOnTop":"True","FFlagEnableRaycastParams":"True","FFlagEnableGizmoRaycast":"True","FFlagFixAdvancedObjectsDragDropAssert":"True","FFlagExtendSelectionBoxAdornee":"True","FFlagStudioReportTCStatusWhenOpenPlace":"True","FFlagStudioAddTCConnectTimeout":"True","FFlagStudioFixTextBoxFocusAndToolTipCloseClashHang":"False","DFFlagPhysicsServiceCorrectPlayerCountForTouch_PlaceFilter":"True;4599786547;467050215","DFFlagParallelSendTouches2_PlaceFilter":"True;4599786547","FFlagAvatarEditorRecommendedUIBloxButton":"True","FFlagStudioInsertObjectStreamliningv2_FeedbackImprovements":"True","FStringStudioUrlAssetManager":"https://web.archive.org/web/20200624170102/https://devforum.roblox.com/t/asset-manager-is-here-beta/517475","FFlagStudioAddBulkImportView2":"True","DFFlagAssetManagerPackageSymbolicLinkFix":"True","DFFlagSimLDLProgramWorkspaceAndRSIStats":"True","FFlagFixTreeViewFlatListDefault":"True","FFlagStudioFixTreeViewForSquish":"True","FFlagStudioFixUILibraryRequireForPreviewInToolbox":"True","FFlagStudioFixAssetPreviewCloseButton":"True","FFlagStudioFixTreeViewForFlatList":"True","DFFlagCacheSoundStats":"True","DFFlagReplicatorProcessPacketMicroprofilerCleanup":"True","DFFlagUseUniqueProfilePorts":"True","FFlagAvatarExperienceAnimationLookAroundFix":"True","FFlagAvatarExperienceCatalogAnimationIdleFix":"True","FFlagStudioAlwaysCompleteFunctionEnd":"True","DFFlagOnlyOneRightGrip":"True","FFlagGetTranslatorApiOnlyForPublishedGame":"True","FFlagEnableAuthV2Login":"True","DFFlagStudioRefactorSaveToRoblox":"True","FFlagSkipFirstMechanismChangeReport":"True","FFlagTerrainToolsTerrainBrushNotSingleton":"True","FFlagTextViewStdReplace":"True","FFlagAvatarExperienceUseUIBloxAlerts":"True","FFlagPlayerListMorePerfImprovements":"False","FFlagHumanoidCacheNameplate":"True","FFlagStudioAllowCorePackagesAndStarterScriptDebugOnStart":"True","FFlagLuauParseArgTypesRefactor":"True","FFlagLuauSkinnyArrows":"True","FFlagAppBridgeNewGameJoinTeleport":"False","DFIntFriendshipEndpointMigrationRolloutPercentageV2":"100","FFlagUGCValidateTags":"True","FFlagUGCValidateMeshBounds":"False","FFlagUGCValidateTextureSize":"True","FFlagUGCValidateHandleSize":"False","FFlagUGCValidateProperties":"True","FFlagUGCAllowThumbnailCameraValue":"False","FFlagUGCUseNewAssetTypeInfoSchema":"True","FFlagEnableThumbnailCameraValue":"False","FFlagRemoveLinkFromKinematicJoints2":"True","FFlagStudioFixPluginWidgetEnabledSignal":"True","FFlagStudioDebuggerLazyLoadVariables":"True","FFlagStudioRewriteEmulatorWithMask2":"False","DFIntGetFriendsOnlineEndpointMigrationRolloutPercentage":"100","DFFlagVideoFixDeviceTuningForAudioOnlyFiles_PlaceFilter":"True;4898980405","FFlagCMSTabErrorIcon":"True","FFlagStudioHashtagIsNotAComment":"True","FFlagImmediatelyApplyFlagsButton":"True","FFlagEnableFRMInSoloMode":"True","FFlagUseInitialTerrainCacheForNonStreaming_PlaceFilter":"True;2317712696","DFFlagDisableLegacyPlayerJoin":"True","FFlagMouseWheelEventSinkingPropagatesToGUI":"True","FFlagMultiBinaryAssets":"True","FFlagUserFixZoomInZoomOutDiscrepancy":"True","FFlagClickDetectorUsesHRPForDistanceCalculation":"True","FFlagDumbSpatialHash2":"True","FFlagModifiedMinimumDistance":"True","FFlagCullByDistanceToPOI":"True","FFlagTopBarUseNewIcons":"True","FFlagInGameMenuSmallerSideBar":"True","FFlagTopBarBetterStateInit":"True","DFFlagSimSolverBufferPurgeEnabled":"True","DFFlagSimLDLProgramFlopCountStats":"True","DFFlagRejectInvalidToolParentChanges2":"True","FFlagUseBlake2BHashInSharedString":"False","DFFlagCompletenessDeadParentRemovingChildFix":"True","FFlagLuauFixConditionRepeatUntil":"True","FFlagAvatarEditorShowEquippedItem":"True","FFlagItemDetailsClosePeekViewFixes":"True","FFlagPeekViewSinkInputTo3dView":"True","FFlagRefactorPluginLoading3":"False","FFlagParallelFetchInternalPermission":"True","FFlagStudioEnableFileWatcherDelay":"True","FFlagDataModelPatcherFixMajorVersionReporting":"True","FFlagDragWeirdConstraints":"True","FFlagDraggerUseModelCFrame":"True","FFlagDontReselectSelectTool":"True","FFlagLazyBoxSelect":"True","FFlagTrackMouseDownState":"True","FFlagTrackAttachmentBounds":"True","FFlagDragOutsideWorkspace":"True","FFlagMinScaleSizeFix":"True","FFlagClearHoverBoxOnDelete":"True","FFlagSinglePartAlwaysLocalSpace":"True","FFlagContextMenuSupportLuaDraggers":"True","FFlagEnableMotor6DTransformFixBetaFeature":"False","FFlagXboxCheck2sv":"True","FStringMotor6DTransformFixBetaUrl":"https://web.archive.org/web/20200624170102/https://devforum.roblox.com/t/changes-to-motor6d-transform-coming-monday/526807","DFFlagReplicatorKickReadEventStringDataAndVariantLimit":"False","DFFlagReplicatorKickWriteEventStringDataAndVariantLimit":"False","FFlagFixPlaybackWithEndFrameAtZero":"True","FFlagUseInitialTerrainCacheForNonStreaming":"True","DFFlagPubKeyExchange22":"False","FFlagStudioFixVirtualKeyboardRect":"True","FFlagAccelerateDuplicateCollisionFidelityReprocess":"True","FFlagFixHACDHullPointLoss":"True","FFlagPhysicsNewConvexDecompositionEnabled":"False","FFlagStudioDraftsWidgetCommitButton":"True","FFlagStudioMigrateGlobalToCJVInChina":"False","FFlagStudioEnableEmergencyMessageDisplayV2":"True","FFlagStudioEnableUrlLinkForEmergencyMessage":"True","FFlagStudioCheckEmergencyMessageOnUserLogIn":"True","FFlagStudioMoveMorpherEditorInsideGameSettings":"True","FFlagStudioPopulateIntlInfo":"False","FFlagStudioRestrictUiLibraryUsage":"True","FFlagStudioUiLibraryErrorOnNilIncludes":"True","FFlagStudioFixNullUniverseInGetResourceByCategory":"True","FFlagTerrainToolsOnlyImportInEditMode":"True","FFlagTerrainToolsFixMergeEmpty":"True","FFlagTerrainToolsFixRegionEditorCleanup":"True","FFlagPromptRobloxPurchaseEnabled":"True","FFlagCanvasPosChangedOnStepElasticBounds":"True","FFlagLuaUIBloxModalWindowAnchorPoint":"True","FFlagCatalogSortAndFilters2":"True","FFlagStudioQuitMessingWithHotKeys":"True","FFlagFixTestServiceWithDebugging":"True","FFlagStudioWrapScriptTextEditorInQPointer":"True","FFlagStudioFixTCTimeoutReport":"True","FFlagStudioAlignBlockEnderOuter":"True","FFlagAvatarEditorClearTryOnFix":"True","DFFlagUseTaskSchedulerThreadLimit":"True","FFlagLuauCompileError":"True","DFFlagDontClearTouchEventsDuringInterpolation":"True","FFlagStudioEncodeEmergencyMessage":"True","FFlagEnableiOSGameTimerFix2":"True","FFlagMaterialGeneratorRefactorV1":"True","FFlagEnableParamsBasedRaycast":"True","DFFlagMotor6DTransformFix":"True","DFFlagMotor6DParentNameEnabled":"True","FFlagSystemAddressIsPeerId":"False","FIntABTestRequestTimeoutMilliseconds":"5000","DFFlagHumanoidInstanceGuard":"True","DFIntRCCLoadPackageRetryTimeDelay":"0","DFIntRCCLoadPackageRetryTimes":"4","FFlagAppBridgeNewGameEvents":"True","FFlagPremiumSettingsLabel":"True","DFFlagDeprecateRakNetRand":"True","FFlagDataStoreAdditionalMetricsEnabled":"True","FFlagTerrainToolsUseDevFramework":"False","DFFlagContactStepAsyncFaster":"True","FFlagLuaAppReportConnectFailSeparately":"True","FFlagLuaAppAEUseAppPolicyForCustomCostumeNames":"True","FFlagLocalStorageQueuePendingFlush":"True","FFlagEnableUIGradientEnabledProperty2":"True","FFlagFixMakeFriendsNavCrash":"True","FFlagStudioPublishMediatorFailedConnection":"True","FFlagStudioCreateNewGameRewritesName2":"True","FFlagStudioAssetManagerDisableTileOverlay":"True","FFlagStudioAssetManagerBulkImportUniverseLoadError":"True","DFFlagHandleFMODConstructorReturningNonNullInvalidPtr":"True","FFlagFixDisplayScriptsFolderInAssetManager":"True","FFlagVersionControlServiceScriptCollabEnabledByDefaultFalse":"True","DFFlagFastVisuallyMovingCounters2":"False","FFlagAdditionalExtJoinData":"True","DFFlagEnableExtendedAnalytics":"True","FFlagFixZeroNormalInDecompositeGeometry":"True","FFlagScrollingFrameLayoutV3":"False","FFlagDevConsoleUseZeroCanvasWidthLogOutput":"True","FFlagScrollingFrameFixElasticBoundingDecrease":"True","FFlagInGameMenuUseUIBloxButtons":"True","FFlagFixLocalShutdownRequest":"False","FFlagDedupePackagesInAssetManager":"True","FFlagDetailedRequireErrorMsg":"True","DFFlagPlayFabEventsV2":"True","DFFlagPlayFabEmitMarketplaceEvents2":"True","FFlagStudioLocalizationInGameSettingsEnabled":"False","FFlagCatalogFullAvatarWifiIcon":"True","FFlagDropToolCaptureMouse":"True","FFlagMoverSwapWeld":"True","FFlagScaleAlwaysAnchors":"True","FFlagTreatToolAsModel":"True","FFlagFixHoverBoxThickness":"True","FFlagLuaDraggerIconBandaid":"True","FFlagTakeAScreenshotOfThis":"True","FFlagStudioCommandBarAlwaysEnabled":"True","FFlagTerrainToolsTweakBrushPower":"True","FFlagFixDevFrameworkDockWidgetRestore":"True","FFlagStudioApplyFiltersToReplaceAll":"True","FFlagScriptEditorEnableShowWhitespace":"True","FFlagResellersListClickThrough":"True","FFlagUseBlake2BHashInSharedString_PlaceFilter":"True;4939501074","DFFlagHACDUseDistancePlaneChecks":"True","DFFlagUseLockFreeVoronoiSimplexContainer":"True","DFFlagVideoFixTextureInitialization":"True","DFFlagVideoFixFrameSizing":"True","FFlagEnableThumbnailConfiguration":"True","FFlagUGCAllowThumbnailConfiguration":"True","DFFlagVideoShowInitialFrameAsTexture2":"True","DFFlagVideoFixDeviceTuningForAudioOnlyFiles":"True","DFFlagVideoCleanUpAudioDeviceStartStop":"True","FFlagPlayerListMorePerfImprovements2":"True","FFlagMinimizePlayerListWhenTopBarOpen":"True","FFlagXboxAppShellSiblingZIndex3":"True","FFlagRobloxGuiSiblingZindexs2":"True","FFlagFixRobloxInputBadArrayLengthChecksTheSagaContinues":"True","FFlagStudioAddDebuggingFlowLocation":"True","FFlagStudioStopRBXASSERTOnDeleteStandalonePlugin":"True","FFlagStudioFixMultilineCommentEditingBehavior":"True","DFFlagCreateServerPlayerSetsIdAndName":"True","FIntAppConfigurationExpiry":"86400","FFlagFixKeepingFolderAcquiredInStudioThroughTheFileSystem":"True","FFlagStudioMigrateGlobalToCJVInChina2":"True","FStringStudioEmergencyMessageV3":"eyAicmVnaXN0cnlLZXkiOiAiRW1lcmdlbmN5TWVzc2FnZUZvckNoaW5lc2VTdHVkaW8iLCAicGxhdGZvcm1zIjogWyAiV2luZG93cyIgXSwgIm1lc3NhZ2UiOiB7ImVuIjogIlRvIGdldCB0aGUgYmVzdCBTdHVkaW8gZXhwZXJpZW5jZSBhbmQgcGVyZm9ybWFuY2UgaW4gQ2hpbmEgdXNlIHRoZSBDaGluZXNlIHZlcnNpb24gb2YgU3R1ZGlvIGF2YWlsYWJsZSBvbiA8YSBocmVmPWh0dHA6Ly93d3cucm9ibG94ZGV2LmNuPmh0dHA6Ly93d3cucm9ibG94ZGV2LmNuPC9hPiIsICJ6aF9DTiI6ICJcdTU5ODJcdTY3OWNcdTRmNjBcdTYwZjNcdTRmNTNcdTlhOGNcdTU3MjhcdTRlMmRcdTU2ZmRcdTY3MDBcdTdhMzNcdTViOWFcdTc2ODRcdTAwNTNcdTAwNzRcdTAwNzVcdTAwNjRcdTAwNjlcdTAwNmZcdTcyNDhcdTY3MmNcdWZmMGNcdThiZjdcdTRmNjBcdTUyNGRcdTVmODAgXHUwMDNjXHUwMDYxIFx1MDA2OFx1MDA3Mlx1MDA2NVx1MDA2Nlx1MDAzZFx1MDA2OFx1MDA3NFx1MDA3NFx1MDA3MFx1MDAzYVx1MDAyZlx1MDAyZlx1MDA3N1x1MDA3N1x1MDA3N1x1MDAyZVx1MDA3Mlx1MDA2Zlx1MDA2Mlx1MDA2Y1x1MDA2Zlx1MDA3OFx1MDA2NFx1MDA2NVx1MDA3Nlx1MDAyZVx1MDA2M1x1MDA2ZVx1MDAzZVx1MDA2OFx1MDA3NFx1MDA3NFx1MDA3MFx1MDAzYVx1MDAyZlx1MDAyZlx1MDA3N1x1MDA3N1x1MDA3N1x1MDAyZVx1MDA3Mlx1MDA2Zlx1MDA2Mlx1MDA2Y1x1MDA2Zlx1MDA3OFx1MDA2NFx1MDA2NVx1MDA3Nlx1MDAyZVx1MDA2M1x1MDA2ZVx1MDAzY1x1MDAyZlx1MDA2MVx1MDAzZSBcdTRlMGJcdThmN2RcdTdmNTdcdTVlMDNcdTRlNTBcdTYwMWRcdTcyNDggXHUwMDUzXHUwMDc0XHUwMDc1XHUwMDY0XHUwMDY5XHUwMDZmXHUzMDAyIn0sICJzaHV0ZG93biI6IGZhbHNlIH0=","FFlagStudioCheckEmergencyMessageAtStart":"True","FFlagRenderFixSun3TimesRender":"True","FFlagRenderImproveStreaming2":"False","FFlagCatalogSnFResetButtonFix":"True","FFlagUGCFixModerationCheck":"True","FFlagCatalogFilteredSearch":"True","FFlagLuaAppFillScrollingFrameWithLoadMore2":"False","FFlagAvatarExperienceOutfitRecommendations2":"False","FFlagUserChatAddServerSideChecks2":"True","FFlagToolboxTruncateOverrideAssetNames":"True","DFFlagParallelSendTouches2":"True","FFlagNoRedrawWindow":"True","DFFlagHttpRbxApiServiceDontRetryOn429":"True","FFlagCancelButtonTouchEventOnMouseDragOff":"True","FFlagFixFirstPersonMouseCursorSnapping_CenterPos":"True","FFlagFixFirstPersonMouseCursorSnapping_ForceCursor":"True","FFlagFixFirstPersonMouseCursorSnapping_UWP":"True","FFlagStudioStartServerIfNotStartedWhenStartingClient":"False","DFFlagDontHandlePlayerReplicationDataAsSpecialCase":"False","FFlagAvatarExperienceCharacterManagerOnSlowNetwork":"True","FFlagAvatarImporterRoact":"True","FFlagUseRebroadcastEventSharedQueue":"False","FFlagMegaReplicatorInitializeTaskQueue":"True","DFFlagMegaReplicatorParallelDisconnect":"True","FFlagDisableFollowInGameMenu":"True","FFlagEnableCorePackagesOverride":"True","FFlagJIRA_RIDE_192":"True","FFlagStudioPopulateInsertObjectMenuAfterLogin":"True","FFlagJIRA_RIDE_630":"True","FFlagShowWarningsForUnregisteredOptions":"True","FFlagStudioAllowCoreScriptReloads2":"True","DFFlagStudioReportPackageRequestWebCopyError":"True","FFlagReportStudioPublishSaveFailure":"True","FFlagWorldModelV5":"True","FFlagWorldModelCatchInsertRawErrors":"True","FFlagWorldModelRefactorV4":"True","FFlagGetScreenPositionOffsetCamPtrGuard":"True","FFlagEnableAvatarExperienceLandingPageForAll":"True","FFlagIgnoreLocaleInJoinScriptData":"True","FFlagRemoveInGameFollowingEvents":"True","FFlagRemoveInGameFollowingServer":"True","FFlagFixPluginInvoke":"True","DFFlagMegaReplicatorDisconnectSwapAndPop":"False","FFlagCreateAndUpdateDataReplicationCache2":"False","DFFlagSupportJoinDataItemV2ii":"False","FFlagNoCostumeSaveButtonFix":"True","FFlagLuaAppUseUIBloxToasts2":"True","FFlagStandardizeVector3Case":"True","DFIntRCCFailedToEvictPlayerInfluxHundrethsPercentage":"100","FFlagGameSettingsPreventClosingDialogWhileSaveInProgress":"True","FFlagEnableBackgroundModeWhenInactive":"False","DFFlagUseNewTelegrafPriorityTag":"True","DFIntTelegrafPriorityThrottleHundredthsPercent":"500","DFFlagUseNewTelegrafMethod":"True","DFFlagEnablePerfDataMemoryCollection":"True","DFIntPerfDataGlobalThrottleHundredthsPercent":"10000","DFStringPerfFilterPlaceId":"4599786547","DFStringPerfTelegrafAddress":"100.20.191.133","FFlagLuaAppChatPageWaitUntilUserABTestsInitialized":"True","FFlagLuaChatShareGameToChatFromChatABTestEnabled":"True","FFlagLuaChatPlayTogetherABTestEnabled":"True","FFlagResetPluginMouseIcon":"False","FFlagSetInsertPoint":"True","FFlagStudioTrimBeforeToggleComment":"True","FFlagStudioDontMoveCursorToEofWhenOpening":"True","FFlagStudioFixProjectConfigForStartInPlayMode":"True","FFlagAllowReturnToConfirmRespawnCharacter":"True","DFFlagPhysicsPacketCountUnderLimit":"False","FFlagAvatarShopFixBlankResellersPage2":"True","FFlagAvatarEditorAttachmentCameraFocus2":"True","FFlagUserDontAdjustSensitvityForPortrait":"True","FFlagLuaAppAddGameSearchSessions":"True","FFlagSystemAddressIsPeerId2":"True","FFlagPlaceLauncherCollectOnMainThread":"True","FFlagRenderDXT_KTX":"True","FFlagStudioEnableCSGv2SmoothingBeta":"False","FFlagLuaAppABTestSearchResultsQ2DGameEmphasis":"True","FFlagLuaAppABTestUseSearchResultsQ2DHideBadGames":"True","FFlagAppConfigurationEnableMultiBehaviorSupport2":"False","FFlagLuaChatAliasesSizingFixAgainV1":"False","DFFlagPhysicsSenderNoEmptyPackets":"True","DFFlagLuaFastToFloat":"True","FFlagLuaTaggedUdataGc":"True","FFlagViewSelectorLightUpdate":"True","DFIntDetailedBandwidthStatsInfluxHundrethsPercentage":"10000","DFFlagDetailedBandwidthStatsInflux_PlaceFilter":"true;4599786547","DFIntDetailedBandwidthStatsPlayerLotteryHundrethsPercentage_PlaceFilter":"10000;4599786547","FFlagFixGettingAssetOwnerNameInAssetPreview":"True","FFlagAppUsesAutomaticQualityLevel":"True","FFlagDepthOfField":"True","FFlagDontLoadCoreScriptsForEditDM":"True","FFlagStudioMuteOnlyOnUnfocus":"True","FFlagStudioRewriteEmulatorWithMask3":"True","FFlagUseCanManageForDeveloperIconServer":"False","FFlagGraphicsMetalCompactGeometry2":"True","FFlagTopBarHightightIconsOnHover":"True","FFlagTopBarCloseContextMenuWhenHotkeysUsed":"True","FFlagStudioUseNewAnimationImportExportFlow":"True","FFlagTapAwayToCloseBackpack":"True","FFlagTopBarEscapeCloseMenu":"True","FFlagAddCopyIDToResultPage":"True","FFlagStudioEnableResume3":"True","FFlagStudioMacOverrideStepIntoShortcut":"True","FFlagScrollingFrameLayoutV3_2":"True","FFlagEnableFavoritesForAssetPreviewInAssetManager":"True","FFlagLuaCatalogFixRemoveSellToastIcon":"True","FFlagLuaAppFixToastNotchOverlap":"True","FFlagStudioToolboxShowNoPluginResultsDetail":"False","FFlagStudioAssetCopySaleStatusFix":"True","FFlagFixAssetUploadFailedColor":"True","FStringRENAME_ABTEST_AllUsers_GameSearch_Q2DRankingEmphasisHideBad":"AllUsers.GameSearch.Q2DRankingEmphasisHideBadV2","FFlagLuaAppGameSearchQ2DEvents":"True","FFlagSimEnablePreciseConvexDecomposition":"True","FStringLuaDraggersBetaUrl":"https://web.archive.org/web/20200624170102/https://devforum.roblox.com/t/say-hello-to-the-new-lua-dragger-beta/504815","FFlagPlayTogetherFromGameCard":"True","FFlagSupportDeathTypeClient":"True","FFlagSupportDeathTypeServer":"True","DFFlagWaitForChildThrowNan":"True","DFFlagWaitForChildNoInfiniteTimerTask":"True","FFlagLuaAppGameImpressionsAnalyticsV2":"True","DFFlagEveryJointIsManualJoint":"True","FFlagLuaAppGameSearchImpressionsEvent":"True","FFlagInternalGameLocaleEnabled":"True","FFlagUseCanManageForDeveloperIconClient":"False","FFlagRemoveAssetUploadUrlSuffix":"True","FFlagEnableOverrideAssetGroupCreationApi":"True","FFlagLuaPublishFlowFixCreateButtonInChinese":"True","FFlagUserHandleChatHotKeyWithContextActionService_PlaceFilter":"True;4738806136","FFlagRenderSurfaceAppearance_v2_PlaceFilter":"True;5004798193","FFlagTerrainOpenCloseMetrics":"True","FFlagTerrainToolTabMetrics":"True","FFlagStudioServiceHoverInstance":"True","FFlagOnlyReadyHover":"True","FFlagFFlagFixMenuIcons":"True","DFFlagUseNewPostAuthenticationRequest":"True","DFFlagMicroprofileGroupAtLastStack":"True","FFlagRenderSurfaceAppearance_v1_ColorMapOnly_PlaceFilter":"True;5004798193","FFlagRenderAtmosphere":"True","FFlagCMSConsolidateAssetTypeInfo":"True","FFlagAssetConfigDarkerScrollBar":"True","FFlagUGCRemoveLearnMoreText":"True","FFlagToolboxUseNewAssetType":"True","FFlagStudioResizeEmulationDeviceWriteLock":"True","FFlagLuaAppRefreshScrollingFrameRefactor3":"False","FFlagStopDriveBySwipesOnScrollingFrames":"True","DFFlagAdminServerLogs":"True","FFlagPlayerDisplayName":"True","FFlagUserServiceWhiteListV2":"True","FFlagUserServiceEnabledV2":"True","FFlagTopBarFixCloseButtonMobile":"True","FFlagHideTopBarWhenInspectOpen":"True","FFlagNewInGameTopBarForEveryone":"True","FFlagABTestLoadingTimeStats":"True","FStringStudioUrlCSGv2SmoothingBeta":"https://web.archive.org/web/20200624170102/https://devforum.roblox.com/t/introducing-smoothingangle-property-for-partoperation/552810","FFlagUseRebroadcastEventSharedQueue2":"True","DFFlagGCNotAlwaysMemory":"True","DFIntStreamingMaxTargetPercentage_PlaceFilter":"200;4599786547","FFlagHandleCanceledToolboxDrag":"True","DFFlagTranslatorApiCloudAssetLoadingFix":"True","FFlagFixPackageDragSlow":"True","FFlagStudioCollectLocationType":"True","DFFlagReportBaseUrlForHttpAnalytics":"True","DFFlagDisablePackageRequestCache":"True","DFFlagStudioDelayModificationCheck":"True","DFFlagInitiateMultipleParallelConnection":"True","FFlagStudioSupportNilContextServices":"True","FFlagStudioGameSettingsResetStoreAction":"False","FFlagMoveViaSelectionCenter":"True","FFlagStudioMinorFixesForAssetPreview":"True","FFlagFixGetAssetTypeErrorHandling":"True","DFFlagEnableGetPlayFabTitleFromService":"True","DFFlagEnableAnalyticsServiceSetApiKeyEventSteam":"True","DFIntGetPlayFabTitleFromServiceRolloutPercentage":"100","FFlagCMSPremiumBenefitsLink":"False","FFlagStudioBetaFeaturesHideInfoButtonForMissingUrls":"True","FFlagStudioFixCrashInSendMockKeyboardNotificationsToLua":"true","FFlagRefactorPluginLoading4":"False","FFlagFuzzyTerrainNormal":"True","FFlagHandleFlakeyMouseEvents":"True","FFlagImprovedHandleParams":"False","DFIntLoadPackageFirstTimeDelayMs":"0","FFlagScriptEditorEnableRulers":"True","FFlagRenderImproveStreaming3":"True","FFlagNavHighlightUseUIBloxAnimatedItem":"True","FFlagAvatarExpereienceUseShimmerPanel":"True","FFlagAvatarExpereienceReplaceFitScrollingFrame":"True","FFlagSellPageUseVerticalScrollView":"True","DFFlagHumanoidDisplayNameEnabled":"True","FFlagAvatarExperienceBodySizeIndicator":"True","FFlagStudioAssetManagerDisableMagicCharacters":"True","FFlagAssetManagerContextMenuActionFixes":"True","DFFlagUseTimeoutMessage":"True","DFFlagEnsureNullCheckOnDisconnect":"True","DIntPackagePermissionPullingIntervalInSeconds":"10","FFlagFixAssetUploadName":"True","FFlagAssetConfigUseItemConfig":"True","DFFlagRemovePackageSymbolicLinkKId":"True","FFlagUserHandleChatHotKeyWithContextActionService":"False","FFlagDataModelPatcherReportToInflux":"True","FFlagLocalStorageDisablePathChangeChecks":"True","FFlagLuaAppUseLoadableEventTile":"True","FFlagPlayerListUseDisplayNameChina":"True","FFlagStudioSavePlaceAs2":"True","FFlagStudioPublishMediatorFailedConnection2":"True","DFFlagVideoLoadAssetsInStudioEdit":"True","FFlagLuauStringFastcall":"True","DFFlagLuauFasterUnpack":"True","FFlagScriptContextLastResume":"True","FFlagLuauNoGcDebt":"True","FFlagRenderTerrainGrassNoSpecular2":"False","DFFlagSupportIPv6MappedIPv4ForFloodCheck":"True","DFFlagVideoDoNotResetTimePositionOnStop":"True","FFlagNavigationTabBarVisibilityWithBack":"False","FFlagLuaAppSearchBarNoWrap":"True","FFlagStudioCloudEditShowErrorCode":"True","FFlagLuaAppDisplayNamesEnabled":"True","FIntMaxClients":"1023","FFlagUseInitialTerrainCache":"False","FFlagStudioThunkWithArgsMiddleware":"True","FFlagLuaCalculateJumpHeight":"True","DFFlagIPV6RobloxStudioCleanUp1":"True","FFlagAllowTextEntryToTakeSizeAndPositionProp":"True","FFlagStudioRestoreWatchTab":"True","FFlagRenderCorrectLinearUnderWaterFog":"True","FFlagRenderAtmosphereRefreshSky":"True","FFlagRenderAtmosphereRefreshSky2":"True","FFlagGameSettingsFixNameWhitespace":"True","DFFlagEnableDateTimeInReplicator":"True","FFlagEnableDateTimeInNetworkValueFormat":"True","FFlagUseDateTimeType3":"True","FFlagUseCorrectEndpointForPlaceVersion":"True","FFlagStudioCloudEditLogErrorCode":"True","FFlagAddHWModelForMac":"True","FFlagFixAssetManagerInsertWithLocation":"True","FFlagLuauCoroutineC":"True","FFlagHandleNoRotateTarget":"True","FFlagStudioHideStartPageUrlLinksCJV":"True","FFlagStudioShowUserFacingWebsiteCJV":"True","DFIntVideoImageReductionFactor":"1","DFFlagHttpServiceBetterUserAgent":"False","FFlagStudioCloudEditFixErrorCode":"True","FFlagHttpServiceNeverCache":"True","FFlagPolicyServiceStoreHttpResponseToLocalStorage":"True","FFlagEventIngestServiceRefactor":"True","FFlagLuaAppSidePaddingInChildren":"False","FFlagAvatarExperienceRemoveTempRouterFix":"True","FFlagPlayerListFixTitleBarTransparency":"True","FFlagStudioTransferBreakpointsFromBothPlayDMsToEditMode":"True","FFlagStudioUseInternalScriptDescendantForAllCases":"True","DFFlagFixAnalyticsServiceSetApiKey":"True","DFFlagPolicyServiceLuaApiAdaptiveToHttpResponse":"True","DFFlagPlayerPolicyReportHttpFailureToInfluxOnEveryAttempt":"True","DFFlagMeshLODVertexNormalFix":"True","FFlagSimBulletContactInitilizesConnector":"False","FFlagSimSolverOptimizedIslandizer2":"False","FFlagPackageFixDiffRootNameChange":"True","DFFlagFixPackageModificationCheckForPendingState":"True","DFFlagStudioDelayPackageAutoUpdate":"True","DFIntPackageAutoUpdateDelayMs":"0","DFFlagEphemeralCounterInfluxReportingEnabled":"True","DFIntEphemeralCounterInfluxReportingThrottleHundredthsPercent":"10000","DFIntEphemeralCounterInfluxReportingPriorityHundredthsPercent":"10000","DFFlagEphemeralStatsInfluxReportingEnabled":"True","DFIntEphemeralStatsInfluxReportingThrottleHundredthsPercent":"50","DFIntEphemeralStatsInfluxReportingPriorityHundredthsPercent":"10000","DFFlagInfluxEnableTypeEventTag":"True","DFFlagFixClientNetworkMetricsForParallelConnection":"True","FFlagVerifySliceCenterOnRenderNotSet":"True","FFlagFixInGameMenuMissingAssets":"True","FFlagPlayerListFixContextMenuFlashing":"True","FFlagFixActivatedEventDoubleFire":"True","DFFlagStreamingPrefetch":"True","FFlagRenderFixGrassUpdates":"True","FStringFeature_NewGameJoinInstance":"431;100","DFFlagFreeFmodGroupIfUnusuable":"True","DFFlagGetContextFreeDSPs":"True","DFFlagGetContextFreeSoundGroup":"True","DFFlagFreeDSPsIfUnusable":"True","FFlagLuauRequireTracer":"True","FFlagStudioLuauWarningTelemetry4":"True","FFlagStudioLSP_V1_1":"False","FFlagAppConfigurationEnableMultiBehaviorSupport3":"True","FFlagStudioLuauWarningTelemetry3":"True","FFlagDataModelPatcherReportToInflux2":"True","DFIntDataModelPatcherFunnelInfluxHundredthsPercentage":"1000","DFIntDataModelPatcherErrorInfluxHundredthsPercentage":"10000","DFIntDataModelPatcherFunnelInfluxPriorityHundredthsPercentage":"10000","DFIntDataModelPatcherErrorInfluxPriorityHundredthsPercentage":"10000","FFlagUseBlake2BHashInSharedString2":"True","DFFlagVideoFixSeekingBeyondTheEnd":"True","DFFlagVideoFixTextureLeak":"True","FFlagFixDraggerCursors":"True","FFlagLuaDraggerTerrainFixes":"True","FFlagDisallowFloatingPointErrorMove":"True","FFlagHandleOddNesting":"True","DFFlagVideoFixWebmParsing":"True","DFFlagVideoCacheTimePosition":"True","DFFlagVideoFixServerTimekeeping":"True","FFlagImprovedHandleParams2":"True","FFlagMinCursorChange":"True","FFlagRetainHoverPart":"True","FFlagStudioDeviceManagerDesignTweak":"True","DFFlagInstanceGuard":"True","FFlagShowAssetConfigReasons2":"False","DFIntStudioLuauIceInfluxHundredthsPercentage":"10000","DFIntStudioLuauWarningInfluxHundredthsPercentage":"10000","FFlagFixInspectAndBuyGamepad":"True","FFlagStudioTestServiceRunStateRecovery":"True","FFlagLuaAppGridViewRemoveStateDelay":"True","FFlagStudioRemoveExtraFindAction":"True","FFlagABTestResponseCounter":"True","FFlagProtectedStringUsesSharedString2":"True","FFlagStudioFixHashFromFileContentsLeak":"True","FFlagStudioShowCursorWhenSwitchingScripts":"True","FFlagUseCentralTime":"True","FFlagABTestControllerListener":"False","DFFlagFixUncaughtModuleContentSetParentException":"True","DFFlagStudioAddIsPackageAtTheEndOfRequestURL":"True","FFlagStudioSupportLinkForChina":"True","DFFlagUseSharedStringForScriptReplication2":"False","FFlagWaterReflectionWaveFix":"True","FFlagSortsAndFiltersFitComponentFix":"True","FFlagFastClusterCachePrimitive":"True","FFlagStudioGameSettingsNewUseRoactRodux":"True","FFlagStudioGameSettingsResetStoreAction2":"True","FFlagStudioConvertGameSettingsToDevFramework":"True","FFlagStudioStandaloneGameMetadata":"True","FFlagStudioUnrestrictPluginGuiService":"True","FFlagPublishPlaceSupportUnicodeTextLength":"True","DFFlagHttpTlsVerificationErrorCode":"True","DFFlagHttpServiceTlsProbeRetry":"True","DFIntHttpServiceTransportFailureInfluxHundrethsPercentage":"10000","FFlagStudioFixQPointerForTooltipView":"True","DFFlagStreamingAddAncestors2":"False","DFFlagReplicatorStreamingReportAncestorsSentWithoutAllDescendants":"False","FFlagStudioNewTableOutputWidgetSourceStr2":"True","DFFlagStreamingAddAncestors2_PlaceFilter":"True;4923553838;4923599624","FFlagLuaAppQ2DUXAdjustmentsBugfixes":"True","FFlagLuaAppUseNewGameTileGridStyle":"False","FFlagAEFitComponentMigration":"False","FFlagStudioEnablePVHBetaFeature":"True","FStringStudioUrlPlaceVersionHistory":"https://web.archive.org/web/20200624170102/https://devforum.roblox.com/t/beta-place-version-history-in-studio/607597","FStringStudioPlaceVersionHistoryHelpLink":"https://web.archive.org/web/20200624170102/https://devforum.roblox.com/t/beta-place-version-history-in-studio/607597","FFlagLuauCompoundAssignment":"True","FFlagLuauCompactLineInfo":"True","FFlagAvatarExperienceUseContextualMenu":"True","FFlagStudioFixFlatTerrainDefaultSaveLocation":"True","FFlagEnableUIBloxIcons":"True","FFlagRenderSuperLQTerrainGLES2":"True","DFFlagHttpServiceTlsProbe":"True","DFIntHttpServiceTlsProbePercent":"10","DFFlagDataStoreMoreInfoForVagueError":"True","FFlagFixShadowBiasYetAgain":"True","FFlagRenderShadowmapBatchUpdates":"True","FFlagLuaAppSidePaddingInChildren2":"True","FFlagLocalizationToolsPluginV3Enabled":"True","FFlagLuaAppsLocalizationToolsDeprecated":"True","FFlagEnableLuaStartupManager":"False","DFIntHttpServiceTlsProbeInfluxHundrethsPercentage":"10000","FFlagHideOneChildTreeviewButton":"False","FFlagCLIAPPBRIDGE414":"True","FFlagAvatarExperienceUseNewCharacterManager":"False","FFlagJIRA_RIDE_697":"False","FFlagJIRA_RIDE_711":"False","FFlagJIRA_RIDE_785":"True","FFlagXboxAppBridgeRewrite5":"False","DFIntJoinInfluxHundredthsPercentage_PlaceFilter":"10000;5064251723","FFlagCoreScriptsUseRoactRoduxNewConnectionOrder":"True","FFlagLuaAppUseRoactRoduxNewConnectionOrder":"True","FFlagXboxUseRoactRoduxNewConnectionOrder":"True","FFlagFixBlockedListInitLogic":"True","FFlagFixGamepadOldMenuOpening":"True","FFlagCoreScriptsNoHotKeysWhenMenuOpen":"True","FFlagLuauNativeTypeof":"True","FFlagLuauTypeofFastcall":"True","DFFlagCantSendTheseAnymore":"True","FFlagStudioLSP_V1_2":"True","FFlagGraphicsDisableMetalIntel":"True","FFlagStudioReportOpenPlaceTime":"True","FStringStudioReportOpenPlaceTimeFilter":"95206881","FFlagStudioCloudEditAddReadyAnalytics":"True","FFlagMegaReplicatorSharedClassInfo":"True","FFlagConnectErrorHandlerInLoadingScript":"True","DFFlagFixPrintJoinSizeBreakdown":"True","DFFlagOnlyReadPlayerOsOnServer":"True","DFLogClientRecvFromRaknet":"10","DFFlagDebugRakPeerReceive":"True","DFIntDebugRakPeerReceiveAfterSeconds":"10","DFFlagDebugRakPeerReceiveCountDistributedPackets":"True","DFIntHttpClientExternalTlsPeerVerificationFailHundrethsPercentage":"10000","FFlagQueryFrustumAndUpdateRange":"False","FFlagInterpolateCullDistance":"False","DFFlagCSGOperationStatisticsGA":"False","DFFlagCSGOperationsRespectsCollisionFidelityAtCreation":"True","FFlagImmHandlerFixJapaneseAndKorean_PlaceFilter":"False; 252877716","FFlagLuauEndMismatch":"True","FFlagRewriteScriptDocumentChangeEvent":"True","FFlagScriptEditorEnableMoveLinesCmd":"True","FFlagBatchBoundsChanged":"True","FFlagScaleUnionsUniformly":"True","FFlagDraggerBasisRotate":"True","FFlagLuaDraggerHandleScale":"True","FFlagAllowDragContinuation":"True","FFlagInventoryApiInHttpWhitelist":"True","DFStringHttpRbxApi17sAllowedHosts":"chat.roblox.com;presence.roblox.com;avatar.roblox.com;catalog.roblox.com;inventory.roblox.com","FFlagLuaDraggerPerf":"True","FFlagUseBulkMove":"True","DFFlagStreamingDontGCLocal":"True","DFFlagGetFriendsOnlineCachingEnabled":"True","DFFlagSimSolverLargeWorkloadReporting":"True","FFlagAddCountryCodeToUserModel":"True","FFlagToolboxUseNewPluginEndpoint":"False","DFFlagDataStoreNoSerializedDataInCache_PlaceFilter":"True;1052132952","FFlagRenderTerrainGrassNoSpecular3":"False","FFlagLuaAppGameSortGridABTestEnabledV2":"True","FStringLuaAppGameSortGridABTestJSONV2":"{\"ABTestData\" : { \"Control\" : {\"GridEnabled\" : false, \"GridRows\" : 0, \"UseGridMediumTile\" : false }, \"Variation1\" : { \"GridEnabled\" : false, \"GridRows\" : 0, \"UseGridMediumTile\" : false }, \"Variation2\" : { \"GridEnabled\" : true, \"GridRows\" : 2, \"UseGridMediumTile\" : false, \"ExcludedSorts\" : [\"MyRecent\"], \"SeeAllButtonType\" : 1 }, \"Variation3\" : { \"GridEnabled\" : true, \"GridRows\" : 2, \"UseGridMediumTile\" : false, \"ExcludedSorts\" : [\"MyRecent\"], \"SeeAllButtonType\" : 2 }, \"Variation4\" : { \"GridEnabled\" : true, \"GridRows\" : 2, \"UseGridMediumTile\" : false, \"ExcludedSorts\" : [\"MyRecent\"], \"SeeAllButtonType\" : 3 } }}","FFlagLoadCoreScriptsBeforeLock":"True","FFlagSimSolverOptimizedIslandizer3":"False","FFlagSupportContentIdDictionaryRemoval":"True","FFlagStudioEnablePVHBetaFeature2":"True","FFlagFixKeyframeDetectionV2":"True","FFlagStudioHideStandalonePluginScripts":"True","FFlagStudioFixTimingOnTeamCreateRestart":"True","FFlagEnableStudioProfiler":"True","FFlagAssetManagerFixAssetRemoval":"True","DFFlagPlayHereFix":"True","FFlagSingleSurfaceAppMarshallerDoTeleport":"True","FFlagRenderMarkDirtyOnlyRenderableChunks":"True","FFlagStudioFetchABTestForLuaApp":"True","FFlagFixTopBarOverLoadingScreen":"True","FFlagUseCanManageForDeveloperIconServer2":"True","DFFlagStudioHttpServiceProtectLegacyPathsForPlugins":"False","FFlagStudioServiceDraggerSolveConstraints":"True","FFlagFixOverriddenDragAssert":"True","FFlagAdultConfirmationEnabled":"False","FFlagAvatarExperienceRunSceneFix":"True","DFFlagDontHandlePlayerReplicationDataAsSpecialCase2":"True","FFlagJoinDataCacheOptimizeBlobCount":"True","FFlagJoinDataCacheCompressionImprovement":"True","FFlagArePartsTouchingOthers":"True","DFFlagDataStoreNoSerializedDataInCache":"False","FFlagCreateAndUpdateDataReplicationCache3":"True","DFFlagAnalyticsServiceMonitoring2":"True","FFlagScriptEditorRCityTelemetry":"True","FFlagRenderGlassTintLOD2FogFix":"True","FFlagRenderFixIncompleteMipChain":"True","FFlagAssetManagerLocalizationUpdate":"True","FFlagGameSettingsOnlyInPublishedGames":"True","DFFlagStreamingGCJobFixCharacterCheck":"True","FFlagAEReplaceFitImageTextFrame":"True","FFlagTopBarNewGamepadMenu_PlaceFilter":"True;2567750478","FFlagAddMissingConsoleAgreementTextInGameSettings":"True","FFlagFixFitToContentOnCloseError":"True","FFlagFixTextChangedFromEmptyForTextEntry":"True","DFFlagTeamCreatePublishToEventIngest":"True","FFlagStudioLoadCoreScriptsFromModel":"True","DFFlagEnableHumanoidControllerSubstepping_PlaceFilter":"True;4306999063","DFFlagEnableLowerFrequencyWorldSteps_PlaceFilter":"True;4306999063","FFlagUseSteppingParamsInsteadOfConstants_PlaceFilter":"True;4306999063","FFlagDebugDontForceCollisionsOnHumanoidParts_PlaceFilter":"True;4306999063","DFIntDebugDefaultTargetWorldStepsPerFrame_PlaceFilter":"1;4306999063","FFlagToolboxHideSearchForRecent":"True","FFlagStudioEnableBFSupportPluginDebugging":"True","FFlagLanguageServiceDoesntDirtyDataModel":"True","FFlagRefactorPluginLoading5":"True","FFlagSimDeprecateConstraintLegacyAngularVelocity":"True","FFlagResetPluginMouseIcon2":"True","FFlagStudioServiceHoverInstanceFix":"True","FFlagSelectWeldConstraints":"True","FFlagEnableUICornerBetaFeature":"True","FFlagFixInGameMenuSliderClamping":"True","FFlagCameraSensitivityAllowGranularKeyboardInput":"True","FFlagStudioPluginManagerInterface":"True","FFlagStudioTeleportServiceSanitize":"True","FFlagWrappedDevFrameworkLinkText":"True","FFlagUseCanManageForDeveloperIconClient2":"True","FFlagFixBadNormal":"True","FFlagFrameStepJointsParallel":"False","FFlagStudioSupportUploadGroupAnimations":"True","SFFlagTerrainRaycastsRespectCollisionGroups":"True","FFlagStudioTimeStampFix":"True","DFFlagRaknetBandwidthMetricsReportValidPing":"False","DFFlagRaknetBandwidthMetricsV2":"True","DFIntRaknetBandwidthInfluxHundredthsPercentageV2":"1000","DFFlagRaknetBandwidthAddPhyPacketsLossPercent":"True","DFIntRaknetBandwidthPingSendEveryXSeconds":"300","FFlagDeveloperEventIngestVerifyFeature_PlaceFilter":"True;3182856628","DFIntAnalyticsServiceEventIngestSwitchPercentage_PlaceFilter":"100;3182856628","DFFlagEnableAnalyticsSeriveEventIngest_PlaceFilter":"True;3182856628","FFlagABTestSystemShutoff":"False","FFlagStudioFixUndoAfterInsertByDrag":"True","FFlagFixOverrideAssetGroupPlugins":"True","FFlagStudioFixGroupCreatorInfo":"False","FFlagFixHorizontalScrollBarInControlsPage":"True","FFlagScrollInOnlyDirectionAvailable":"True","FFlagLuaAppEventsWithSession":"True","FFlagLuauBuiltinOs":"True","FFlagAllowGamepadConnectionEventsWhenNotFocused":"True","FFlagResetMobileGamepadsOnDataModelLoad":"True","FFlagAllowMobileGamepadCursor":"True","FFlagFixGamepadR3LastInputType":"True","FFlagEnableR3ButtonIOS":"True","FFlagFixGamepadMenuButtonIOS":"True","FFlagFixCaseSensitiveAssetNames":"True","FFlagFixGamepadCursorIdlePosition":"True","TreatAndroidInputSourceAsBitmask":"True","DFFlagCSGv2NormalSmoothing":"True","FFlagABTestControllerListener2":"True","FFlagFixOutBoundAccessInBoxMappedMesh":"False","FFlagLuaAppGameDetailsMorePWF":"True","FFlagLuaAppGameDetailsPlayWithFriendsABTest":"True","DFFlagEnableTelegrafPriorityTag":"True","FFlagStudioRemoveStudioInfluxHundredthsPercentage":"True","FFlagStudioAddDistTypeToUserAgent":"True","FFlagStudioExternalLoginEnabled":"False","FFlagStudioUserAgreementCheckEnabled":"False","FFlagStudioAddReloadOptionInLoginDialog":"False","FFlagMakePluginsActivatableInScripts":"True","FFlagLuaPremiumCatalogIGIAB":"True","FFlagLuaPremiumCatalogTileFix":"True","FFlagIAPProductReducerV2":"True","FFlagLuaAppNativePurchase":"True","FFlagLuaAppBulletSizeFix":"True","FFlagLuaFixEconomyCreatorStatsUrl":"True","FFlagLuaAppPremiumUpsellCancelFix":"True","FFlagLuaAppPeekViewHeightChangeFix":"True","FFlagIGPPPremiumPrice":"False","FFlagPremiumCatalogAESort":"True","FFlagLuaPremiumCatalogAEV2":"True","FFlagLuaPremiumCatalogIGPP":"True","DFFlagEnableSoapMicroprofiles":"True","FFlagLuaAppUseNewAccordion":"True","FFlagLuaAppUseNewLoadableImage":"True","DFFlagSupportEncryptedAssets":"False","DFFlagPerformAssetDecryptionOnAnAsyncTask":"True","FFlagDisableSpecialShapeInMeshPart":"True","FFlagGfxPartInvalidationLimitToTime2":"True","FFlagLuauStricterLib":"True","FFlagLuauInternalAlloc":"True","FFlagLuauVersion":"True","FFlagLuauFasterHash":"True","FFlagRemoveUILibraryTimeline":"True","FFlagDataModelPatcherConfigurerEnabled3":"True","FFlagRemoveEndOfScrollMessage":"True","FIntHttpCacheRedirectsTimeoutMs":"14400000","FFlagPlayerListFixXboxLayout":"True","AllowVideoPreRoll":"True","AxisAdornmentGrabSize":"12","CaptureCountersIntervalInMinutes":"5","CaptureQTStudioCountersEnabled":"True","DFFlagBoxMappedMeshLODFix_v2":"True","DFFlagCLI120342":"False","DFFlagCLI120342p7":"True","DFFlagCLI120342p72":"True","DFFlagCSGMeshLevelOfDetailV2":"True","DFFlagCyclicExecutiveThrottlingCancelWorldStepAccum":"False","DFFlagDebugVisualizerTrackRotationPredictions":"True","DFFlagDoNotRenderMeshLODByDefault":"True","DFFlagEnableRemoteProfiling":"True","DFFlagEnableRemoteProfilingForDevConsole":"True","DFFlagFavorIPV4Connections":"False","DFFlagFindClosestHandleHitTestFixEnabled":"True","DFFlagFixCutAndUndoAfterSavingCSGUnionToNewFile":"True","DFFlagForceNoBloomInThumbnail":"True","DFFlagGenerateMeshLOD_Fix1":"True","DFFlagGetPolicyInfoForPlayerAsyncEnabledClient":"True","DFFlagGoodbyeChoiceActiveProperty":"True","DFFlagHttpCleanupRbxCurl":"True","DFFlagLockViolationInstanceCrash":"False","DFFlagLockViolationScriptCrash":"False","DFFlagOrder66":"False","DFFlagPreventReturnOfElevatedPhysicsFPS":"True","DFFlagPugiCrashOnUnhandledXml":"True","DFFlagRakNetDetectNetUnreachable":"True","DFFlagReflectionLoggingEnabledClientWin32_3":"True","DFFlagReflectionLoggingEnabledGlobal":"True","DFFlagReflectionLoggingpPlacelauncherInitialization":"True","DFFlagRenderGatherMsFrame2":"True","DFFlagReportClientMemoryCat":"True","DFFlagReportInfluxRenderMsFrameMetrics2":"False","DFFlagReportOutlines":"True","DFFlagScrollWhenInsideFocusedTextBox":"True","DFFlagServerCopiesPlayerGui3_PlaceFilter":"false;142823291","DFFlagSkipLQNeonWhenOff":"True","DFFlagStudioSendOnlyOneShutdownEvent":"True","DFFlagSupportMeshLOD":"True","DFFlagSupportMeshLOD_PlaceFilter":"True; 2900823006","DFFlagTextBoxesNeverSinkMouseEvents":"True","DFFlagThrottleDebuggerMetrics":"True","DFFlagThumbnailFixSrgb":"True","DFFlagUsePugiXmlForPlaces":"True","DFFlagUserInputServiceProcessOnRender":"True","DFFlagYouAreNotSupposedToBeHere":"True","DFIntAnalyticsCDNProbeInfluxPermyriad":"100","DFIntAnalyticsNS1CDNProbeChancePercent":"5","DFIntAndroidInfluxHundredthsPercentage":"0","DFIntApiRateLimit":"200","DFIntBgUpdateRedirectsHttpErrInfluxHundredthsPercentage":"100","DFIntBroadPhaseIslandBufferZoneMinPartLimit":"0","DFIntBroadPhaseIslandBufferZoneMinPartLimit_PlaceFilter":"5;1105449649","DFIntCSGLevelOfDetailSwitchingDistance":"250","DFIntCSGLevelOfDetailSwitchingDistanceL12":"500","DFIntDraggerMaxMovePercent":"60","DFIntElevatedPhysicsFPSReportThresholdTenths":"585","DFIntGroupServiceRolesApiV2":"0","DFIntHttpCacheCleanMaxFilesToKeep":"7500","DFIntHttpCacheCleanMinFilesRequired":"10000","DFIntHttpParallelLimit_RequestContentProvider":"0","DFIntHttpSendStatsEveryXSeconds":"300","DFIntICMPPingHundrethsPercentage":"0","DFIntLocServicePerformanceAnalyticsHundredthsPercentage":"1000","DFIntMacInfluxHundredthsPercentage":"0","DFIntMaxMissedWorldStepsRemembered":"16","DFIntReflectionLoggingRolloutPerMil":"2000","DFIntRenderMsFrameInfluxHundredthsPercentage":"1000","DFIntReportReplicatorStatsToInfluxHundredthsPercent":"5000","DFIntS2PhysicsSenderRate":"15","DFIntSendJoinTimeDeltasToDiag_HundredthsPercentage":"100","DFIntSendRakNetStatsThrottle":"2","DFIntStreamJobMaxBufferHealthThresholdHundredths":"75","DFIntStreamJobMaxBufferHealthThresholdHundredths_PlaceFilter":"50;1526666203","DFIntStreamJobMinBufferHealthThresholdHundredths":"40","DFIntStreamJobMinBufferHealthThresholdHundredths_PlaceFilter":"30;1526666203","DFIntTargetTimeDelayFacctorTenths":"20","DFIntTeleportExceptionInfluxHundredthsPercentage":"9000","DFLogPlaceLauncherTeleportLog":"6","DFLogSoundTrace":"4","DFStringCrashUploadToBacktraceBlackholeToken":"7705528468a303e4e34a13fbcf9e42e219633ed6868e143e5ab16cd33bd2a069","DFStringCrashUploadToBacktraceMacPlayerToken":"24cb37449e120c3a0618b1bf0585e339571828cae4dc73c7b8c99f67fcd751e9","DFStringCrashUploadToBacktraceWindowsPlayerToken":"417ecb0fbc032ce087e6af3b780c298e3356089f050c8130d2318109e80417a4","DFStringGamePerfMonitorPercentageCountryOverride":"CN,50,AU,50,NZ,50","DFStringHttpInfluxDatabase":"prod","DFStringOverrideSendRakNetStatsThrottleCountries":"CN,50,JP,20,NO,20,FI,20,SE,20,NZ,20","DFStringSendJoinTimeDeltasHundPrecCountryOverride":"CN,5000,US,100,AU,3000,KR,2000,NZ,3000,JP,4000,NO,2000,FI,2000,SE,1000,FR,1000,DK,1000","DFStringSendJoinTimeStatsHundPrecCountryOverride":"CN,5000,US,100,AU,3000,KR,2000,NZ,3000","DFStringSendJoinTimeStatsHundPrecCountryOverride_PlaceFilter":"CN,10000,US,10000,AU,10000,KR,10000,NZ,10000;189707","DFStringWorkspaceMessageLink":"https://web.archive.org/web/20200624170102/https://devforum.roblox.com/t/physics-deprecating-the-legacy-spring-physics-solver/163521","DFStringWorkspaceMessageText":"We are in the process of disabling and removing the legacy solver. Click here for more info...","EnableRemoteThemeCheckOnAndroidV3":"True","FFlagAdditionalTextBoxShortcuts":"True","FFlagAdvancedMouseSensitivityEnabled":"True","FFlagAllowBackpackBinding":"True","FFlagAppBackgroundMode2":"True","FFlagApplyPlaceFilterEarly2":"True","FFlagAvatarEditorEmotesSupport":"True","FFlagAvatarEditorEnableThemes2":"True","FFlagAvatarEditorHideSliderHighlightOnInit":"True","FFlagAvatarEditorLightThemeFix2":"True","FFlagBrilliantBorders":"True","FFlagCLI18241":"True","FFlagCLI18241A":"True","FFlagCLI18241B":"True","FFlagCLI21289":"True","FFlagCLI23302":"True","FFlagCLI26327":"True","FFlagCLI26526":"True","FFlagCLI26775":"True","FFlagCLI26856":"True","FFlagCLI26858":"False","FFlagCLI27641A":"True","FFlagCLI27760":"True","FFlagCLI28630":"True","FFlagCLI28759":"True","FFlagCSGv2BalanceExponents":"False","FFlagCSGv2FixOrientationWhenSeparatingNegates":"True","FFlagCSGv2UnionOrientationFromFirstPart":"True","FFlagCSGv2UnparentPartsBeforeModifyingCFrames":"True","FFlagCSGv2UseImprovedSphereAndCylinder":"True","FFlagCSGv2UseIterativeSimplification":"True","FFlagClientFireEventPlaceLauncherFail3":"True","FFlagCompatibilityUseSpecularMult":"True","FFlagConnectionScriptEnabled_PlaceFilter":"False;1608755154","FFlagCoreScriptBetterEmotesErrorMessaging":"True","FFlagCoreScriptEmotesMenuAnalytics":"True","FFlagCoreScriptEmotesMenuBetterMouseBehavior":"True","FFlagCoreScriptEmotesMenuEnabled2":"True","FFlagCoreScriptPlayerListPremiumIcon2":"True","FFlagCoreScriptSettingsHelpRightKeys":"True","FFlagDebugCSGExportFailure":"False","FFlagDebugCrashEnabled":"False","FFlagDebugGraphicsIntelCrash":"False","FFlagDebugUseDefaultGlobalSettings":"True","FFlagDevConsoleBetterResize":"True","FFlagDevConsoleFixCommandBarForNonOwners":"True","FFlagDevConsoleFixMicroprofilerSyncIssues":"True","FFlagDevConsoleFixTopBarDragging":"True","FFlagDevConsoleFixTopBarIcons":"True","FFlagDevConsoleIsVeryStickyWhyWillItNotLetGo":"False","FFlagDevConsoleLogNewLineFix":"False","FFlagDevConsoleNoDisableAllFilters":"True","FFlagDevConsoleTabMetrics":"True","FFlagDevConsoleUpdateLayering":"True","FFlagDisabledLayerCollectorsShouldNotSinkInput":"True","FFlagDontDisconnectJointUpdateUnlessNecessary":"False","FFlagDontSubmitBlankGameReports":"True","FFlagDontUseUploadUrlForPublish":"True","FFlagEmotesMenuRemoveOpenKeybinds":"True","FFlagEmotesMenuShowUiOnlyWhenAvailable":"True","FFlagEnableAndroidVsync":"True","FFlagEnableContactsApiService":"False","FFlagEnableDisablingNetworkPause":"True","FFlagEnableGameSignalRWithAllPlatforms1":"False","FFlagEnableGranularMemoryTabStats":"True","FFlagEnableIsPremiumSettings":"True","FFlagEnableLuaEventStreamRelease":"True","FFlagEnableNetworkPauseGui":"True","FFlagEnableRbxThumbAPI":"True","FFlagEnableRemoteThemeCheckOniOSV2":"True","FFlagErrorPromptTakeExtraConfigurations":"True","FFlagFFlagAvatarEditorFixToolStuckOnRightArmEquip":"True","FFlagFetchPremiumMigrationNoticeOnlyForBcUsers":"True","FFlagFixAndroidKeyboardInput":"True","FFlagFixFolderDescendantSelection":"True","FFlagFixGamepadReportPlayer":"True","FFlagFixGamepadVibrationNotEnding":"True","FFlagFixIECompatiblityBug":"True","FFlagFixMacFullscreenTrackingInMenu":"True","FFlagFixOutOfBoundsMouseLocation":"True","FFlagFixQuickCancelPurchase":"False","FFlagFixScrollingFrameClipRect":"True","FFlagFixSmallSurfaceGuiMouseInput":"True","FFlagFixTerrainAnisoVoxelisation":"True","FFlagFixTextureCubeFramebuffers":"True","FFlagForceCursorVisibleOnPurchasePrompt":"True","FFlagFutureIsBrightCompatibilityMode":"True","FFlagFutureIsBrightForceCompatibilityOverLegacy":"True","FFlagFutureIsBrightPhase2Android":"True","FFlagFutureIsBrightPhase2FPCheck":"True","FFlagFutureIsBrightPhase2iOS":"True","FFlagGameExplorerCopyPath":"True","FFlagGraphicsGL3InstancingEnabled5":"True","FFlagGraphicsGL3UseUBO3":"True","FFlagGraphicsGLDisableVAO":"True","FFlagGraphicsGLDoubleBufferDynamic":"True","FFlagGraphicsMetalPrivateMemory":"True","FFlagGroupEditDevConsoleButton":"True","FFlagHelpMenuShowPlaceVersion":"True","FFlagHowToSendAMessage":"True","FFlagHttpServiceWorldsMostOverkillFlagForMovingCodeFourLines":"True","FFlagInterpolationAwareTargetTime":"True","FFlagJoinTimeCounters":"True","FFlagLocServiceNullPtrCheckGetTranslator":"True","FFlagLocServicePerformanceAnalyticsEnabled":"True","FFlagLuaAppConvertUniverseIdToStringV364":"False","FFlagLuaAppEnableErrorReporterRateLimit":"True","FFlagLuaAppEnableStyleProvider":"True","FFlagLuaAppGameSearchPlayerSuggestion376":"True","FFlagLuaAppPremiumUpdatePrompt3":"True","FFlagLuaAppSiteMessageBannerEnabled":"True","FFlagLuaAppSizesWithValidDefaults":"True","FFlagLuaAppUseGraphicWithBorderForPresenceV373":"True","FFlagLuaAppUseNewPremiumIcon2":"True","FFlagLuaChatAnalyticsEnabled":"True","FFlagLuaChatBoldUnreadMessageText":"True","FFlagLuaChatCenterAndroidHeader":"True","FFlagLuaChatEnableFrequentUsersDiag":"True","FFlagLuaChatFixConversationHubHeaders369":"True","FFlagLuaChatHeaderEnableHomeButton":"True","FFlagLuaChatOnlyMarkUnreadWhenChatIsFocused":"True","FFlagLuaChatPressEnterToSend":"True","FFlagLuaChatRecoverSignalRConnection":"True","FFlagLuaChatResizeUserChatBubbleModerationError":"True","FFlagLuaChatRoactAssetCard":"True","FFlagLuaChatScreenManagerAlwaysUpdatesWithDefaultsV390":"True","FFlagLuaChatScreenManagerResumeAndPauseAfterNavigation":"True","FFlagLuaChatShareGameBottomBarOverride":"True","FFlagLuaChatSwipeToGoBackFromConversation369":"True","FFlagLuaChatToastRefactor369":"True","FFlagLuaDebuggerBreakOnError":"True","FFlagLuaEnableRemoteThemeCheckV4":"True","FFlagLuaHomePageShowAddFriendsButtonV361":"True","FFlagLuaInviteFailOnZeroPlaceIdV384":"True","FFlagLuaInviteGameHandleUnknownResponse":"True","FFlagLuaInviteGameMockTextLocalization":"True","FFlagLuaInviteModalEnabledV384":"True","FFlagLuaInviteNewAnalytics":"True","FFlagMainBufferGuiLayoutTextAt1x":"False","FFlagMainBufferGuiLayoutTextAt1x2":"True","FFlagMemoryFromAppShellReporterIOS":"True","FFlagMeshLODFixOutOfBoundAccess":"True","FFlagMeshLODUseAsyncHttpPost":"True","FFlagMetricCorrection":"True","FFlagMicroProfilerSessionAnalytics":"True","FFlagMonitorBatteryLevel":"True","FFlagNewDefaultScriptSource":"True","FFlagPGSAlwaysActiveMasterSwitch":"True","FFlagPerformPurchaseAcceptsGamePassInfoType":"True","FFlagPerformanceProfilerAnalytics":"True","FFlagPhoneHomeSooner":"True","FFlagPlaceLauncherScriptShutdownTimeout":"True","FFlagPlayerListNewIcons":"False","FFlagPlayerListPremiumPadding":"True","FFlagPointerActions2":"True","FFlagPreCoreBlurChunksMdrSpace":"True","FFlagReconnectToStarterPlace":"True","FFlagRemoveWakeForRenderJob":"True","FFlagRenderEmitterRecomputeOnChange":"False","FFlagRenderEnableMSAAShadows":"True","FFlagRenderForcefieldCacheFix":"True","FFlagRenderForcefieldFix":"True","FFlagRenderForcefieldMaterial2":"True","FFlagRenderInstancingEnabled8":"True","FFlagRenderMetalMemorylessTargets":"True","FFlagRenderNewMinShadingLevel":"True","FFlagRenderPartInstancingEnabled6":"True","FFlagRenderShadowClearFix":"True","FFlagRenderShadowDynamicInstancing":"True","FFlagRenderShadowLODFix":"True","FFlagRenderShadowSingleCascade":"True","FFlagRenderUseShadowGeometryForLegacyShadows":"True","FFlagReportDevConsoleOpenClose":"True","FFlagReportInGameAssetSales":"True","FFlagReportLocalizationDataLoadingException":"True","FFlagReportWndGestures":"False","FFlagResetMouseDeltaFix":"True","FFlagRobloxGuiSiblingZindexs":"True","FFlagScrollingFrameSinkMoreInput":"False","FFlagSetClientJobId":"True","FFlagSetPlaceIdInAdvance3":"True","FFlagSettingsHubInviteReleaseStreamTimeAs10":"True","FFlagSettingsHubInviteToGameDefaultThumbnailSize150x150":"True","FFlagSkyNoTranslationAndSaturate":"True","FFlagStudioABTestFramework":"True","FFlagStudioCollectGPUInfo":"True","FFlagStudioEnableWebKitPlugins":"True","FFlagStudioFixSciptOpenBehavior":"False","FFlagStudioImagePickerFix":"True","FFlagStudioOutputSaveFileAsLink":"True","FFlagStudioShowTutorialsByDefault":"True","FFlagStudioTrustsPlayersImmediately":"True","FFlagStudioTutorialSeeAll":"True","FFlagTextBoxOverrideManualFocusRelease":"False","FFlagTextMeasureTemporaryPatch":"True","FFlagTrackWindowsVideoRecording":"True","FFlagTranslateAvatarContextMenu":"True","FFlagUSC180727A":"True","FFlagUSC180727C":"True","FFlagUSC180727D":"True","FFlagUSC24644":"True","FFlagUSC26572":"True","FFlagUnlockMouseIfKicked":"True","FFlagUnlockedTopbarTransparency":"True","FFlagUseNewErrorStrings":"True","FFlagUseRBXThumbInToolbox":"True","FFlagUseSetForegroundWindowForPlayer":"False","FFlagUserAnimateScriptEmoteHook":"True","FFlagUserBetterDynamicTouchstickCamera":"True","FFlagUserBetterHandlingVehicleInputStates":"True","FFlagUserBetterInertialScrolling":"False","FFlagUserClickToMoveBetterCleanup":"True","FFlagUserClickToMoveCancelOnMenuOpened":"True","FFlagUserDTDoesNotForceAutoJump":"True","FFlagUserDTDoesNotTrackTools":"True","FFlagUserDTFastInit":"True","FFlagUserDynamicThumbstickUseContextActionSevice":"True","FFlagUserEnableDynamicThumbstickIntro_PlaceFilter":"True;1817743405","FFlagUserFixCharacterRemovingControlModule":"True","FFlagUserFixChatMessageLogPerformance3":"False","FFlagUserFixChatMessageLogPerformance4":"True","FFlagUserFixChatMessageLogPerformance_PlaceFilter":"True;370731277","FFlagUserFixClickToMoveWithACM":"True","FFlagUserFixMovementCameraStraightDown":"True","FFlagUserFixTouchGuiWhenNoCharacter":"True","FFlagUserHttpAPIVisible":"True","FFlagUserInputServicePipelineMacClient":"True","FFlagUserInputServicePipelineStudio":"True","FFlagUserInputServicePipelineWindowsClient":"True","FFlagUserNavigationFixClickToMoveInterruption":"True","FFlagUserNewClickToMoveDisplay":"True","FFlagUserNewDefaultCameraAngle":"True","FFlagUserNewPoppercam":"False","FFlagUserNewPoppercam3":"True","FFlagUserNewPoppercam3_PlaceFilter":"False;1997193809;734159876","FFlagUserNewPoppercam4":"True","FFlagUserNewPoppercam_PlaceFilter":"False;855499080;606849621;537413528;402122991","FFlagUserNoCameraClickToMove":"True","FFlagUserNoDynamicThumbstickRecenter":"True","FFlagUserPlayEmoteBySlotEnabled":"True","FFlagUserPlayEmoteChatCommand":"True","FFlagUserPlayerScriptsBindAtPriority":"False","FFlagUserPlayerScriptsBindAtPriority2":"True","FFlagUserPointerActionsInPlayerScripts":"True","FFlagUserPoppercamLooseOpacityThreshold":"True","FFlagUserThumbstickFrameIsActuallyFrame":"True","FFlagUserUpdateCameraConstants":"True","FFlagUserUseNewControlScript":"True","FFlagVideoDocumentationPluginEnabled":"True","FFlagVideoRecordDeadlockFix":"True","FFlagVideoRecordFix":"True","FFlagVideoRecordFix2":"True","FFlagWorldAvatarLocalization":"True","FIntCLI20390_2":"16","FIntCompatibilityModeSpecularMultiplierDiv100":"30","FIntGamePerfMonitorPercentage":"10","FIntGraphicsVulkanARMVaryingBufferMb":"160","FIntGraphicsVulkanMinAndroidVersion":"25","FIntGraphicsVulkanMinDriverVersionPVR":"4981305","FIntHttpCurlMaxCachedHandlesPerHost":"8","FIntLocalizationAnalyticsSamplesPerMillion":"1000000","FIntLuaAppMorePagePremiumIcon":"2","FIntNewDevConsoleMaxHttpCount":"300","FIntNewDevConsoleMaxLogCount":"500","FIntNumberParallelNarrowPhaseTasks_PlaceFilter":"10;189707;3229213183;654732683","FIntPercentReportingNetworkProfileAfterStartup":"20","FIntRegLambda":"1400","FIntSendScreenOrientationToEventIngestHundredthsPercentage":"100","FIntStartupInfluxHundredthsPercentage":"100","FIntStudioInsertDeletionCheckTimeMS":"30000","FIntUSC180727B":"32","FIntValidateLauncherPercent":"100","FIntWeldConstraintAdornSize":"10","FIntZoomOutDistance":"500","FLogBrowserActivity":"3","FLogCloseDataModel":"3","FLogDXVideoMemory":"4","FLogFullRenderObjects":"0","FLogGraphics":"6","FLogHangDetection":"3","FLogLuaBridge":"2","FLogNetworkItemQueueDtor":"1","FLogPlayerShutdownLuaTimeoutSeconds":"1","FLogVR":"6","FStringCLI27760S":"nn62qq5r3q8n9sn537r1r00o43nq1p458391556o","FStringGamesUrlPath":"/games/?referrer=roblox-player","FStringSettingsHubInviteToGameThumbnailSize":"Size150x150","FStringStudioTutorialsTOCUrl":"https://web.archive.org/web/20200624170102/http://wiki.roblox.com/index.php?title=Studio_Tutorials_Landing&studiomode=true","FStringStudioTutorialsUrl":"https://web.archive.org/web/20200624170102/http://wiki.roblox.com/index.php?title=Studio_Tutorials_Test&studiomode=true","GoogleAnalyticsAccountPropertyID":"UA-43420590-3","GoogleAnalyticsAccountPropertyIDPlayer":"UA-43420590-14","GoogleAnalyticsLoadStudio":"1","PublishedProjectsPageHeight":"535","PublishedProjectsPageUrl":"/ide/publish","PublishedProjectsPageWidth":"950","StartPageUrl":"/ide/welcome","VideoPreRollWaitTimeSeconds":"45","FFlagFutureIsBrightPhase2_5_v1":"True","FFlagEnableRobuxABTest":"True","FFlagFutureIsBrightPhase2_5_v2":"False","DFFlagTattletaleUseStrstr":"True","DFFlagDebugCurlOption12":"True","DFFlagDebugCurlOption22":"True","FFlagRecordRecording":"True","FFlagTheseAreSomeOfMyBestAttributes":"True","DFFlagTheseAreSomeOfMyBestAttributes":"True","FIntDebugForceMSAASamples":"1000","DFIntDebugForceMSAASamples":"1000"}}) +}) + +module.exports = router \ No newline at end of file diff --git a/routes/develop.js b/routes/develop.js new file mode 100644 index 0000000..5254dcb --- /dev/null +++ b/routes/develop.js @@ -0,0 +1,854 @@ +const express = require("express") +const router = express.Router() +const { requireAuth } = require('./../middleware/authmiddleware') +const User = require('./../model/user.js') +const games = require('./../model/games.js') +const catalog = require('./../model/item.js') +const { requirediscord } = require('./../middleware/requirediscord.js') +var multer = require('multer'); +const fs = require('fs'); +const path = require('path') +var numbtest = /^\d+\.?\d*$/; +const bodyParser = require('body-parser') +const {pngValidator} = require('png-validator') +const fileTypeChecker = require("file-type-checker") + +const rateLimit = require('express-rate-limit') +const limiter = rateLimit({ + windowMs: 3 * 1000, // 3 seconds + max: 1, // Limit each IP to 1 requests per `window` + standardHeaders: true, // Return rate limit info in the `RateLimit-*` headers + legacyHeaders: false, // Disable the `X-RateLimit-*` headers + handler: (request, response, next, options) =>{ + response.json({status: 'error', error: 'Too many requests try again later.'}) + } +}) + +async function validateImage(itemid,res){ + return new Promise(async (resolve) => { + + try { + const myArrayBuffer = await fs.promises.readFile(path.resolve(`assets/ugc/itemfile-${itemid}.rbxm`), null) + pngValidator(myArrayBuffer); + // success + } catch { + // file is invalid or corrupt + fs.unlink(path.resolve(`assets/ugc/itemfile-${itemid}.rbxm`), (err => { + if (err) console.log(err) + })); + + return res.json({status: 'error', error: 'Image is invalid.'}) + } + + resolve() + + }) +} + + +const pages = [ + 'shirts', + 'pants', + 'audios', + 'games', + 'badges', + 'meshes' +] + +router.use(bodyParser.json()) + +router.post("/creations", requireAuth,async (req, res) => { + const { type } = req.body + let items = await catalog.find({Creator: req.userdocument.userid, Type: type}).lean().select(['Name',"Description",'ItemId']) + if (type === "games"){ + items = await games.find({useridofowner: req.userdocument.userid}).lean().select(['nameofgame','idofgame','Description','avatartype','gearallowed']) + } + + if (type === "audios"){ + items = await catalog.find({Creator: req.userdocument.userid, Type: "Audio"}).lean().select(['Name',"Description",'ItemId']) + }else if (type === "badges"){ + items = await catalog.find({Creator: req.userdocument.userid, Type: "Badge"}).lean().select(['Name',"Description",'ItemId']) + }else if (type === "meshes"){ + items = await catalog.find({Creator: req.userdocument.userid, Type: "Mesh"}).lean().select(['Name',"Description",'ItemId']) + }else if (type === "userads"){ + items = await catalog.find({Creator: req.userdocument.userid, Type: "User Ad"}).lean().select(['Name',"Description",'ItemId']) + }else if (type === "gamepasses"){ + items = await catalog.find({Creator: req.userdocument.userid, Type: "Gamepass"}).lean().select(['Name',"Description",'ItemId']) + }else if (type === "videos"){ + items = await catalog.find({Creator: req.userdocument.userid, Type: "Video"}).lean().select(['Name',"Description",'ItemId']) + } + + return res.json(items) + + +}) + +var storage = multer.diskStorage({ + destination: function (req, file, cb) { + // Uploads is the Upload_folder_name + if(file.fieldname === "thumbnail"){ // is a game thumbnail + cb(null, "./assets/gameassets") + }else{ + cb(null, "./assets/ugc") + } + + }, + filename: async function (req, file, cb) { + //console.log(path.basename(file.originalname,'.png')) + if (path.extname(file.originalname) === ".rbxl"){ + const placeid = await games.countDocuments(); + cb(null, "gamefile" + "-" + placeid +path.extname(file.originalname)) + }else if(file.fieldname === "thumbnail"){ // is a game thumbnail + const placeid = await games.countDocuments(); + cb(null, "thumbnail" + "-" + placeid + ".png") + } + else if (file.mimetype == "image/png"){ + const itemid = await catalog.countDocuments(); + cb(null, "itemfile" + "-" + itemid + ".rbxm") + }else if (path.extname(file.originalname) === ".mp3"){ + const itemid = await catalog.countDocuments(); + cb(null, "itemfile" + "-" + itemid + ".rbxm") + }else if (path.extname(file.originalname) === ".mesh"){ + const itemid = await catalog.countDocuments(); + cb(null, "itemfile" + "-" + itemid + ".rbxm") + }else if (path.extname(file.originalname) === ".webm"){ + const itemid = await catalog.countDocuments(); + cb(null, "itemfile" + "-" + itemid + ".rbxm") + } + + + } + }) + const uploadcloth = multer({storage: storage, + fileFilter: function (req, file, callback) { + if(file.mimetype !== 'image/png' /*&& ext !== '.mp3' && ext !== '.rbxl'*/) { + return callback('Invalid file type') + } + callback(null, true) + }, + limits: { fileSize: 1024 * 1024 } // 1mb + }) + +router.post("/uploadclothing", requireAuth,requirediscord,async (req, res) => { + uploadcloth.single("clothingfile")(req, res, async function (err) { + if (err) { + if (err?.message === "File too large"){ + return res.status(400).send({status: 'error', error: "File too large! 1MB Limit"}) + } + if (err === "Invalid file type"){ + return res.status(400).send({status: 'error', error: "Invalid file type"}) + } + return res.status(400).send({status: 'error', error: err.message}) + } + var xss = require("xss") + const {clothingname, description,price,type} = req.body + // save shirt template + if (!clothingname){ + return res.json({status: 'error', error: 'Clothing name needs to be sent.'}) + } + if (!description){ + return res.json({status: 'error', error: 'Description needs to be sent.'}) + } + if (!price){ + return res.json({status: 'error', error: 'Price needs to be sent.'}) + } + if (type != "Shirts" && type != "Pants"){ + return res.json({status: 'error', error: 'Type needs to be a shirt or pant value'}) + } + + if (numbtest.test(price) == false){ + return res.json({status: 'error', error: 'Price can only be a number!'}) + } + + if (price < 5){ + return res.json({status: 'error', error: 'Minimum price is 5 rocks.'}) + } + if (req.userdocument.coins < 5) { // less than + return res.json({status: 'error', error: 'You don\'t have 5 rocks >:(!'}) + }else if (req.userdocument.admin === false){ + req.userdocument.coins -= 5 + req.userdocument.markModified('coins') + await req.userdocument.save() + } + + const itemid = await catalog.countDocuments(); + // check if the file they just uploaded is valid + await validateImage(itemid,res) + let approved = req.userdocument.admin === false ? false : true + + try{ + await catalog.create({ + Name: xss(clothingname), + Description: xss(description), + Price: Math.ceil(price), + Type: "Image", + Hidden: true, + ItemId: itemid, + approved + }) + + + }catch{ + + } + +// save actual item + let xml = ` + null + nil + + + + http://mete0r.xyz/asset/?id=`+itemid+` + + Shirt + true + + + ` +if (type === "Pants"){ +xml = ` + null + nil + + + + http://mete0r.xyz/asset/?id=`+itemid+` + + Pants + true + + +` +} + let shirtid = itemid + 1 // prevent any race conditions + shirtid = shirtid.toString() + fs.writeFile("./assets/ugc/itemfile-"+shirtid+".rbxm", xml,async function(err) { + if(err) { + return console.log(err); + } + let approved = req.userdocument.admin === false ? false : true + try{ + await catalog.create({ + Name: xss(clothingname), + Description: xss(description), + Price: Math.ceil(price), + Creator: req.userdocument.userid, + Type: type, + ItemId: shirtid, + approved + }) + + + }catch{ + + } +}); +// give player shirt +User.updateOne({userid: req.userdocument.userid}, { + $push: { + inventory: {Type: type,ItemId: shirtid, ItemName: xss(clothingname), Equipped: false} + } +}, +function(err, doc) { + //console.log(err) +}) +return res.json({status: 'success', message: 'Done!'}) + + + +}) +}) + +// upload game WOW +const uploadgame = multer({storage: storage, + fileFilter: function (req, file, callback) { + var ext = path.extname(file.originalname); + if(ext !== '.png' && ext !== '.rbxl'/* && ext !== '.mp3'*/) { + return callback('Invalid file type') + } + callback(null, true) + }, + limits: { fileSize: 5120 * 1024 * 2 } // 10mb +}) + +const uploadaudio = multer({storage: storage, + fileFilter: function (req, file, callback) { + var ext = path.extname(file.originalname); + if(ext !== '.mp3' && ext !== '.ogg') { + return callback('Invalid file type') + } + callback(null, true) + }, + limits: { fileSize: 5120 * 1024 } // 5mb +}) + +var editgamestorage = multer.diskStorage({ + destination: function (req, file, cb) { + // Uploads is the Upload_folder_name + if(file.fieldname === "thumbnail"){ // is a game thumbnail + cb(null, "./assets/gameassets") + }else{ + cb(null, "./assets/ugc") + } + + }, + filename: async function (req, file, cb) { + //console.log(path.basename(file.originalname,'.png')) + if (path.extname(file.originalname) === ".rbxl"){ + + const item = await games.findOne({idofgame: req.body.gameid}).lean() + if (!item){ + + return cb("Item doesn't exist!") + } + + //console.log(item) + + if (item.useridofowner != req.userdocument.userid){ + // player doesn't own this item + return cb("You don't own this") + } + cb(null, "gamefile" + "-" + req.body.gameid +path.extname(file.originalname)) + } + + } + }) + +const editgame = multer({storage: editgamestorage, + fileFilter: function (req, file, callback) { + var ext = path.extname(file.originalname); + + if(ext !== '.rbxl'/* && ext !== '.mp3'*/) { + return callback('Invalid file type') + } + callback(null, true) + }, + limits: { fileSize: 5120 * 1024 * 2 } // 10mb +}) + +router.post("/editgame", requireAuth,requirediscord,async (req, res) => { + const {nameofgame, description, gameid} = req.body + var xss = require("xss") + if (!gameid){ + return res.json({status: 'error', error: 'GameID required'}) + } + + const item = await games.findOne({idofgame: gameid}) + if (!item){ + + return res.json({status: 'error', error: "Game doesn't exist."}) + } + + //console.log(item) + + if (item.useridofowner != req.userdocument.userid){ + // player doesn't own this item + return res.json({status: 'error', error: "You don't have permissions for this!"}) + } + + if (nameofgame && nameofgame != ""){ + item.nameofgame = xss(nameofgame) + item.markModified('nameofgame') + await item.save() + } + + if (description && description != ""){ + item.descrption = xss(description) + item.markModified('descrption') + await item.save() + } + + return res.json({status: 'success',message:'Done!'}) + + + }) + + router.post("/editavatartype", requireAuth,requirediscord,async (req, res) => { + const {avatartype, gameid} = req.body + if (!gameid){ + return res.json({status: 'error', error: 'GameID required'}) + } + if (!avatartype){ + return res.json({status: 'error', error: 'Avatar type required'}) + } + + if (avatartype != "R6" && avatartype != "R15" && avatartype != "PC"){ + return res.json({status: 'error', error: 'Avatar type required'}) + } + const item = await games.findOne({idofgame: gameid}) + if (!item){ + + return res.json({status: 'error', error: "Game doesn't exist."}) + } + + //console.log(item) + + if (item.useridofowner != req.userdocument.userid){ + // player doesn't own this item + return res.json({status: 'error', error: "You don't have permissions for this!"}) + } + + item.avatartype = avatartype + item.markModified('avatartype') + await item.save() + + + + return res.json({status: 'success',message:'Done!'}) + + + }) + + router.post("/editgearstatus", requireAuth,requirediscord,async (req, res) => { + const {newgearstatus, gameid} = req.body + if (!gameid){ + return res.json({status: 'error', error: 'GameID required'}) + } + + if (newgearstatus != true && newgearstatus != false){ + return res.json({status: 'error', error: 'Gear status required'}) + } + const item = await games.findOne({idofgame: gameid}) + if (!item){ + + return res.json({status: 'error', error: "Game doesn't exist."}) + } + + //console.log(item) + + if (item.useridofowner != req.userdocument.userid){ + // player doesn't own this item + return res.json({status: 'error', error: "You don't have permissions for this!"}) + } + + item.gearallowed = newgearstatus + item.markModified('gearallowed') + await item.save() + + + + return res.json({status: 'success',message:'Done!'}) + + + }) + +router.post("/editgameupload", requireAuth,requirediscord,async (req, res) => { + editgame.single("gamefile")(req, res, async function (err) { + if (err) { + if (err?.message === "File too large"){ + return res.status(400).send({status: 'error', error: "File too large! 10MB Limit"}) + } + if (err === "Invalid file type"){ + return res.status(400).send({status: 'error', error: "Invalid file type"}) + } + return res.status(400).send({status: 'error', error: err.message}) + } + + return res.json({status: 'success',message:'Done!'}) +}) +}) + +router.post("/uploadgame", requireAuth,requirediscord,async (req, res) => { + uploadgame.fields([ + {name: 'gamefile', maxCount: 1}, + {name: 'thumbnail', maxCount: 1} + ])(req, res, async function (err) { + if (err) { + if (err?.message === "File too large"){ + return res.status(400).send({status: 'error', error: "File too large! 10MB Limit"}) + } + if (err === "Invalid file type"){ + return res.status(400).send({status: 'error', error: "Invalid file type"}) + } + return res.status(400).send({status: 'error', error: err.message}) + } + var xss = require("xss") + const {gamename, description, version} = req.body + // save game + if (!gamename){ + return res.json({status: 'error', error: 'Game name needs to be sent.'}) + } + + if (gamename?.length > 50) { + return res.json({status: 'error', error: 'Game name can not be more than 50 characters'}) + } + + if (!description){ + return res.json({status: 'error', error: 'Description needs to be sent.'}) + } + + if (description?.length > 1000) { + return res.json({status: 'error', error: 'Description can not be more than 1000 characters'}) + } + + if (!version){ + return res.json({status: 'error', error: 'Version needs to be sent.'}) + } + const versions = [ + //"2014", + "2016", + "2018", + "2020" + ] + + if (versions.includes(version) === false){ + return res.json({status: 'error', error: 'Invalid version sent.'}) + } + if (req.userdocument.coins < 5) { // less than + return res.json({status: 'error', error: 'You don\'t have 5 rocks >:(!'}) + }else if (req.userdocument.admin === false){ + req.userdocument.coins -= 5 + req.userdocument.markModified('coins') + await req.userdocument.save() + } + + const placeid = await games.countDocuments(); + try{ + await games.create({ + useridofowner: req.userdocument.userid, + idofgame: placeid, + nameofgame: xss(gamename), + numberofplayers: "0", + descrption: xss(description), + version: version + }) + + + }catch{ + throw error + } + return res.json({status: 'success', message: 'Done!'}) +}) +}) + + +const uploadasset = multer({storage: storage, + fileFilter: function (req, file, callback) { + var ext = path.extname(file.originalname); + if(ext !== '.png' && ext !== '.mesh') { + return callback('Invalid file type') + } + callback(null, true) + }, + limits: { fileSize: 5120 * 1024 } // 1mb +}) + +router.post("/uploadmeshes", requireAuth,requirediscord,limiter,async (req, res) => { + uploadasset.single("assetfile")(req, res, async function (err) { + if (err) { + if (err?.message === "File too large"){ + return res.status(400).send({status: 'error', error: "File too large! 1MB Limit"}) + } + if (err === "Invalid file type"){ + return res.status(400).send({status: 'error', error: "Invalid file type"}) + } + return res.status(400).send({status: 'error', error: err.message}) + } + var xss = require("xss") + const {itemname} = req.body + // save mesh + if (!itemname){ + return res.json({status: 'error', error: 'Mesh name needs to be sent.'}) + } + const itemid = await catalog.countDocuments(); + const myArrayBuffer = await fs.promises.readFile(path.resolve(`assets/ugc/itemfile-${itemid}.rbxm`), null) + + if (fileTypeChecker.detectFile(myArrayBuffer)){ + // not a mesh + fs.unlink(path.resolve(`assets/ugc/itemfile-${itemid}.rbxm`), (err => { + if (err) console.log(err) + })) + + return res.json({status: 'error', error: 'Mesh is invalid.'}) + } + + try{ + await catalog.create({ + Name: xss(itemname), + Price: "0", + Type: "Mesh", + Creator: req.userdocument.userid, + Hidden: true, + ItemId: itemid, + approved: true + }) + + + }catch(err){ + throw(err) + } + + return res.json({status: 'success', message: "Done! Mesh ID : "+itemid}) +}) +}) + +router.post("/uploadbadges", requireAuth,requirediscord,limiter,async (req, res) => { + uploadasset.single("assetfile")(req, res, async function (err) { + if (err) { + if (err?.message === "File too large"){ + return res.status(400).json({status: 'error', error: "File too large! 1MB Limit"}) + } + if (err === "Invalid file type"){ + return res.status(400).json({status: 'error', error: "Invalid file type"}) + } + return res.status(400).json({status: 'error', error: err.message}) + } + var xss = require("xss") + const {itemname} = req.body + // save badge + if (!itemname){ + return res.json({status: 'error', error: 'Badge name needs to be sent.'}) + } + const itemid = await catalog.countDocuments(); + + //check if the file thye just uploaded is valid + await validateImage(itemid,res) + try{ + let approved = req.userdocument.admin === false ? false : true + await catalog.create({ + Name: xss(itemname), + Price: "0", + Type: "Badge", + Creator: req.userdocument.userid, + Hidden: true, + ItemId: itemid, + approved + }) + + + }catch(err){ + throw(err) + } + + return res.json({status: 'success', message: "Done! Badge ID : "+itemid}) +}) +}) + +router.post("/uploaduserads", requireAuth,requirediscord,limiter,async (req, res) => { + uploadasset.single("assetfile")(req, res, async function (err) { + if (err) { + if (err?.message === "File too large"){ + return res.status(400).send({status: 'error', error: "File too large! 1MB Limit"}) + } + if (err === "Invalid file type"){ + return res.status(400).send({status: 'error', error: "Invalid file type"}) + } + return res.status(400).send({status: 'error', error: err.message}) + } + var xss = require("xss") + const {itemname} = req.body + // save userad + if (!itemname){ + return res.json({status: 'error', error: 'User Ad name needs to be sent.'}) + } + const itemid = await catalog.countDocuments(); + + // check if the file they just uploaded is valid + await validateImage(itemid,res) + + try{ + let approved = req.userdocument.admin === false ? false : true + await catalog.create({ + Name: xss(itemname), + Price: "0", + Type: "User Ad", + Creator: req.userdocument.userid, + ItemId: itemid, + ActiveAd: false, + approved + }) + + + }catch(err){ + throw(err) + } + + return res.json({status: 'success', message: "Done!"}) +}) +}) + +router.post("/uploadgamepasses", requireAuth,requirediscord,limiter,async (req, res) => { + uploadasset.single("assetfile")(req, res, async function (err) { + if (err) { + if (err?.message === "File too large"){ + return res.status(400).send({status: 'error', error: "File too large! 1MB Limit"}) + } + if (err === "Invalid file type"){ + return res.status(400).send({status: 'error', error: "Invalid file type"}) + } + return res.status(400).send({status: 'error', error: err.message}) + } + var xss = require("xss") + const {itemname,price,gameid} = req.body + // save game pass + if (!itemname){ + return res.json({status: 'error', error: 'Gamepass name needs to be sent.'}) + } + if (!price){ + return res.json({status: 'error', error: 'Price needs to be sent.'}) + } + if (!gameid){ + return res.json({status: 'error', error: 'Gameid needs to be sent.'}) + } + if (numbtest.test(price) == false){ + return res.json({status: 'error', error: 'Price can only be a number!'}) + } + + if (price < 1){ + return res.json({status: 'error', error: 'Minimum price is 1 rock.'}) + } + const gamedoc = await games.findOne({idofgame: gameid}) + + if (!gamedoc){ + return res.json({status: 'error', error: 'Game not found'}) + } + + if (gamedoc.useridofowner != req.userdocument.userid){ + return res.json({status: 'error', error: "You don't own this game!"}) + } + + const currentgamepasscount = await catalog.countDocuments({associatedgameid: gamedoc.idofgame}) + + if (currentgamepasscount >= 20){ + return res.json({status: 'error', error: 'No more than 20 game passes per game.'}) + } + + const itemid = await catalog.countDocuments() + + // check if the file they just uploaded is valid + await validateImage(itemid,res) + + try{ + let approved = req.userdocument.admin === false ? false : true + await catalog.create({ + Name: xss(itemname), + Description: "", + Price: Math.ceil(price), + Creator: req.userdocument.userid, + Type: "Gamepass", + ItemId: itemid, + approved, + associatedgameid: gamedoc.idofgame + }) + + + }catch(err){ + throw(err) + } + + return res.json({status: 'success', message: "Done!"}) +}) +}) + +router.post("/uploadaudios", requireAuth,requirediscord,limiter,async (req, res) => { + uploadaudio.single("assetfile")(req, res, async function (err) { + if (err) { + if (err?.message === "File too large"){ + return res.status(400).send({status: 'error', error: "File too large! 5MB Limit"}) + } + if (err === "Invalid file type"){ + return res.status(400).send({status: 'error', error: "Invalid file type"}) + } + return res.status(400).send({status: 'error', error: err.message}) + } + var xss = require("xss") + const {itemname} = req.body + // save audio + if (!itemname){ + return res.json({status: 'error', error: 'Audio name needs to be sent.'}) + } + const itemid = await catalog.countDocuments(); + + const myArrayBuffer = await fs.promises.readFile(path.resolve(`assets/ugc/itemfile-${itemid}.rbxm`), null) + + if (fileTypeChecker.isMP3(myArrayBuffer) === false && fileTypeChecker.isOGG(myArrayBuffer) === false){ + fs.unlink(path.resolve(`assets/ugc/itemfile-${itemid}.rbxm`), (err => { + if (err) console.log(err) + })) + + return res.json({status: 'error', error: 'Audio is invalid.'}) + } + + try{ + let approved = req.userdocument.admin === false ? false : true + await catalog.create({ + Name: xss(itemname), + Price: "0", + Type: "Audio", + Creator: req.userdocument.userid, + Hidden: true, + ItemId: itemid, + approved + }) + + + }catch(err){ + throw(err) + } + + return res.json({status: 'success', message: "Done! Audio ID : "+itemid}) +}) +}) + +const uploadvideo = multer({storage: storage, + fileFilter: function (req, file, callback) { + var ext = path.extname(file.originalname); + if(ext !== '.webm') { + return callback('Invalid file type') + } + callback(null, true) + }, + limits: { fileSize: 10240 * 1024 } // 10mb +}) + +router.post("/uploadvideos", requireAuth,requirediscord,limiter,async (req, res) => { + uploadvideo.single("assetfile")(req, res, async function (err) { + if (err) { + if (err?.message === "File too large"){ + return res.status(400).send({status: 'error', error: "File too large! 10MB Limit"}) + } + if (err === "Invalid file type"){ + return res.status(400).send({status: 'error', error: "Invalid file type"}) + } + return res.status(400).send({status: 'error', error: err.message}) + } + var xss = require("xss") + const {itemname} = req.body + // save audio + if (!itemname){ + return res.json({status: 'error', error: 'Video name needs to be sent.'}) + } + const itemid = await catalog.countDocuments(); + + const myArrayBuffer = await fs.promises.readFile(path.resolve(`assets/ugc/itemfile-${itemid}.rbxm`), null) + + if (fileTypeChecker.isWEBM(myArrayBuffer) === false){ + fs.unlink(path.resolve(`assets/ugc/itemfile-${itemid}.rbxm`), (err => { + if (err) console.log(err) + })) + + return res.json({status: 'error', error: 'Video is invalid.'}) + } + + try{ + let approved = req.userdocument.admin === false ? false : true + await catalog.create({ + Name: xss(itemname), + Price: "0", + Type: "Video", + Creator: req.userdocument.userid, + ItemId: itemid, + approved + }) + + + }catch(err){ + throw(err) + } + + return res.json({status: 'success', message: "Done! Video ID : "+itemid}) +}) +}) + +module.exports = router \ No newline at end of file diff --git a/routes/game.js b/routes/game.js new file mode 100644 index 0000000..341eb39 --- /dev/null +++ b/routes/game.js @@ -0,0 +1,413 @@ +const express = require("express") +const router = express.Router() +const signatures = require("./signatures.js") +const fetch = (...args) => import('node-fetch').then(({default: fetch}) => fetch(...args)); +const User = require('../model/user.js') +const { requireAuth } = require('../middleware/authmiddlewaregame') +const rcctalk = require('../rcctalk') +const games = require('../model/games.js') +const catalog = require('../model/item.js') +const rcc = require('../model/rcc.js') +var sanitize = require('mongo-sanitize'); +const { getPort, checkPort, getRandomPort, waitForPort } = require('get-port-please') +const fs = require('fs') +const gamescript = fs.readFileSync('actualgameserver.lua','utf-8') +require('dotenv').config() +const RCC_HOST = process.env.RCC_HOST +const logshook = process.env.logshook +const crypto = require('crypto'); +const key = fs.readFileSync('DefaultPrivateKey.pem') +const key2 = fs.readFileSync('DefaultPrivateKey.pem') +const key2020 = fs.readFileSync('PrivateKey2020.txt') +const { _2020placelauncher } = require('../routes/2020/game') +const { _2018placelauncher } = require('../routes/2018/game') + +//join and placelauncher +function sleep(ms) { + return new Promise((resolve) => { + setTimeout(resolve, ms); + }); + } + + router.get("/visit",async (req, res) => { + // studio + const string = `local RS = game:GetService("RunService") + local P = game:GetService("Players") + local LP = P:CreateLocalPlayer(0) + LP.CharacterAppearance = "" + LP.CharacterAdded:connect( + function(c) + repeat + wait() + until c:FindFirstChild("Humanoid") + local h = c:FindFirstChild("Humanoid") + h.Died:connect( + function() + wait(5) + LP:LoadCharacter() + end + ) + end + ) + game:GetService("InsertService"):SetBaseSetsUrl("http://mete0r.xyz/Game/Tools/InsertAsset.ashx?nsets=10&type=base") +game:GetService("InsertService"):SetUserSetsUrl("http://mete0r.xyz/Game/Tools/InsertAsset.ashx?nsets=20&type=user&userid=%d") +game:GetService("InsertService"):SetCollectionUrl("http://mete0r.xyz/Game/Tools/InsertAsset.ashx?sid=%d") +pcall(function() game:GetService("InsertService"):SetFreeModelUrl("http://mete0r.xyz/Game/Tools/InsertAsset.ashx?type=fm&q=%s&pg=%d&rs=%d") end) +pcall(function() game:GetService("InsertService"):SetFreeDecalUrl("http://mete0r.xyz/Game/Tools/InsertAsset.ashx?type=fd&q=%s&pg=%d&rs=%d") end) + RS:Run() + LP:LoadCharacter() + pcall( + function() + game:GetService("ContentProvider"):SetBaseUrl("http://mete0r.xyz" .. "/") + end + ) + + + + ` + const sign = crypto.createSign('SHA1'); + sign.update("\r\n" + string) + var signature = sign.sign(key, "base64") + + res.send("--rbxsig%"+signature+"%\r\n" +string) + }) + + + router.get(["/GetCurrentUser","/GetCurrentUser.ashx"],async (req, res) => { + + res.send("1") // 1 means logged in and null means logged out + }) // don't send 404 error but i don't think we will have studio publishing + + router.post("/validate-machine",async (req, res) => { + + res.json({"success":true,"message":""}) + }) + +router.get(["/join","/join.ashx"],requireAuth,async (req, res) => { + if (!req.userdocument.discordid){ + return res.json({status:"error",error:"Link your discord account stinky"}) + } + if (req.query.ver === "2018"){ + if (!req.userdocument.gamejoin2018 || req.userdocument.gamejoin2018 === "{}"){ + return res.json({status:"error",error:"no placelauncher"}) + } + var joinJson = JSON.parse(req.userdocument.gamejoin2018) + req.userdocument.gamejoin2018 = undefined + req.userdocument.markModified('gamejoin2018') + await req.userdocument.save() + //sign with our sign module + var signature = signatures.signer(joinJson) + //console.log(signature) + + return res.send("--rbxsig%"+signature+"%\r\n"+JSON.stringify(joinJson)) + } + if (req.query.ver === "2020"){ + if (!req.userdocument.gamejoin2020 || req.userdocument.gamejoin2020 === "{}"){ + return res.json({status:"error",error:"no placelauncher"}) + } + var joinJson = JSON.parse(req.userdocument.gamejoin2020) + req.userdocument.gamejoin2020 = undefined + req.userdocument.markModified('gamejoin2020') + await req.userdocument.save() + //sign with our sign module + const sign = crypto.createSign('SHA1'); + sign.update("\r\n" + JSON.stringify(joinJson)) + var signature = sign.sign(key2020, "base64") + + //console.log(signature) + + return res.send("--rbxsig2%"+signature+"%\r\n"+JSON.stringify(joinJson)) + } + if (!req.userdocument.gamejoin || req.userdocument.gamejoin === "{}"){ + return res.json({status:"error",error:"no placelauncher"}) + } + var joinJson = JSON.parse(req.userdocument.gamejoin) + req.userdocument.gamejoin = undefined + req.userdocument.markModified('gamejoin') + await req.userdocument.save() + //sign with our sign module + var signature = signatures.signer(joinJson) + //console.log(signature) + + res.send("--rbxsig%"+signature+"%\r\n"+JSON.stringify(joinJson)) +}) + +router.all(["/placelauncher","/placelauncher.ashx"],requireAuth,_2020placelauncher,_2018placelauncher,async (req, res, next) => { + var enabled = req.config + if (enabled.GamesEnabled === false){ + return res.json({status:"error",error:"Games are disabled bad boy"}) + } + var joinJson = {"ClientPort":0,"MachineAddress":"localhost","ServerPort":25564,"PingUrl":"","PingInterval":120,"UserName":"default","SeleniumTestMode":false,"UserId":0,"SuperSafeChat":false,"CharacterAppearance":"http://shitncumblox.gq/game/charapp?name=default","ClientTicket":"","GameId":1,"PlaceId":1818,"MeasurementUrl":"","WaitingForCharacterGuid":"cad99b30-7983-434b-b24c-eac12595e5fd","BaseUrl":"http://www.mete0r.xyz/","ChatStyle":"ClassicAndBubble","VendorId":0,"ScreenShotInfo":"","VideoInfo":"GamesROBLOX, video, free game, online virtual world","CreatorId":0,"CreatorTypeEnum":"User","MembershipType":"None","AccountAge":365,"CookieStoreFirstTimePlayKey":"rbx_evt_ftp","CookieStoreFiveMinutePlayKey":"rbx_evt_fmp","CookieStoreEnabled":true,"IsRobloxPlace":false,"GenerateTeleportJoin":false,"IsUnknownOrUnder13":false,"SessionId":"c25fd620-bbaa-4fb2-b022-3f053cdd1abd|00000000-0000-0000-0000-000000000000|0|204.236.226.210|8|2016-08-17T01:05:05.7115837Z|0|null|null|null|null","DataCenterId":0,"UniverseId":0,"BrowserTrackerId":0,"UsePortraitMode":false,"FollowUserId":0,"CharacterAppearanceId":1} + if (!req.query.name && !req.query.placeId){ + return res.json({status:"error",error:"no placeid bad"}) + } + if (req.userdocument.gamejoin){ + return res.json({"jobId":"Test","status":2,"joinScriptUrl":"http://mete0r.xyz/game/join.ashx?auth="+req.query.auth??req.cookies.jwt,"authenticationUrl":"http://mete0r.xyz/Login/Negotiate.ashx","authenticationTicket":"SomeTicketThatDosentCrash","message":""}) + } + var sanitizedplaceid = sanitize(req.query.name??req.query.placeId) + const game = await games.findOne({idofgame: sanitizedplaceid}).lean() + if (!game){ + return res.json({status:"error",error:"that game doesn't exist!"}) + } + if (game.version != "2016"){ + return res.json({status: "error",error:"game version is different than client requested"}) + } + const instance = await rcc.findOne({PlaceId: sanitizedplaceid}).lean() + if (instance && instance.Status === 2){ + // if an rcc instance already exists we don't need to create a new one so we will just drag them into the existing game + joinJson.UserName = req.userdocument.username + joinJson.UserId = req.userdocument.userid + joinJson.CharacterAppearance = "http://mete0r.xyz/game/charapp?name=" + req.userdocument.userid + joinJson.MachineAddress = RCC_HOST // need to put rcc host here lol + joinJson.ServerPort = instance.Port + joinJson.PlaceId = instance.PlaceId + joinJson.GameId = sanitizedplaceid + joinJson.CharacterAppearanceId = req.userdocument.userid + joinJson.MembershipType = req.userdocument.membership + joinJson.CreatorId = game.useridofowner + joinJson.SessionId = req.query.auth??req.cookies.jwt + + const timestamp = Date.now() + joinJson.ClientTicket = timestamp+";" // timestamp + //create signature 1 + const sign1 = crypto.createSign('SHA1'); + sign1.update(`${req.userdocument.userid}\n`/*userid*/+`${req.userdocument.username}\n`/*username*/+`http://mete0r.xyz/game/charapp?name=${req.userdocument.userid}\n`/*charapp*/+`game${sanitizedplaceid}\n`/*jobid*/+ timestamp/*timestamp*/) + var signature1 = sign1.sign(key, "base64") + joinJson.ClientTicket += signature1 + ";" + + //create signature 2 + const sign2 = crypto.createSign('SHA1'); + sign2.update(`${req.userdocument.userid}\n`/*userid*/+`game${sanitizedplaceid}\n`/*jobid*/+ timestamp/*timestamp*/) + var signature2 = sign2.sign(key, "base64") + joinJson.ClientTicket += signature2 + + req.userdocument.gamejoin = JSON.stringify(joinJson) + req.userdocument.markModified('gamejoin') + await req.userdocument.save() + var joinScriptJson = {"jobId":"Test","status":2,"joinScriptUrl":"http://mete0r.xyz/game/join.ashx?auth="+joinJson.SessionId,"authenticationUrl":"http://mete0r.xyz/Login/Negotiate.ashx","authenticationTicket":"SomeTicketThatDosentCrash","message":""} + + + return res.send(JSON.stringify(joinScriptJson)) + } + if (instance && instance.Status === 1){ + var joinScriptJson = {"jobId":"Test","status":1,"joinScriptUrl":"http://mete0r.xyz/game/join.ashx?auth="+joinJson.SessionId,"authenticationUrl":"http://mete0r.xyz/Login/Negotiate.ashx","authenticationTicket":"SomeTicketThatDosentCrash","message":""} + return res.send(JSON.stringify(joinScriptJson)) + } + + + var port = await getPort({random: true}) + var newgamescript = "local placeId = "+sanitizedplaceid+"\n"+ gamescript + newgamescript = "local port = "+port+"\n"+ newgamescript + // launch job + var response = await rcctalk.OpenJob("game"+sanitizedplaceid,newgamescript,"99999") + await rcc.create({ + PlaceId: sanitizedplaceid, + Port: port, + Status: 1 // 1 means loading + }) + + //console.log(newrenderscript) + + var joinScriptJson = {"jobId":"Test","status":1,"joinScriptUrl":"http://mete0r.xyz/game/join.ashx?auth="+joinJson.SessionId,"authenticationUrl":"http://mete0r.xyz/Login/Negotiate.ashx","authenticationTicket":"SomeTicketThatDosentCrash","message":""} + res.send(JSON.stringify(joinScriptJson)) + +} +) + +//charapp and colors stealing from roblox + + +router.get("/charapp", async (req, res) => { + if (Object.keys(req.query).length === 0) { + res.status(404).send('No variables :('); + } else{ + const user = await User.findOne({userid: req.query.name}).lean() + const placeid = req.headers?.['roblox-place-id']??0 + const placedoc = await games.findOne({idofgame: placeid}) + if (!placedoc){ + return res.json({status:"error",error:"Place not found."}) + } + + if (!user) { + return res.json({status: 'error', error: 'User not found!'}) + } + + if (!user.inventory){ + if (req.query.rcc){ + return res.json([]) + } + return res.send('http://mete0r.xyz/game/colors?name='+req.query.name+';') + } + + if (req.query.rcc){ + var empty = [] + for (var key of user.inventory) { + if (key.Equipped === true){ + empty.push({"item": {itemid: key.ItemId, type: key.Type}}) + } + } + return res.json(empty) + } + + + var charapp = 'http://mete0r.xyz/asset?name='+req.query.name+';' + // add to charapp string by adding json to it + for (var key of user.inventory) { + if (key.Equipped === true){ + if (placedoc.gearallowed??false === true){ + charapp += "http://mete0r.xyz/asset?id=" + key.ItemId + ";" + }else{ + if (key.Type != "Gears"){ + charapp += "http://mete0r.xyz/asset?id=" + key.ItemId + ";" + } + } + } + } + + res.write(charapp) + res.end() + } +}) + +router.get("/colors", async (req, res) => { + if (Object.keys(req.query).length === 0) { + res.status(404).send('No variables :('); + } else{ + const user = await User.findOne({userid: req.query.name}).lean() + if (!user) { + return res.json({status: 'error', error: 'User not found!'}) + } + + if (req.query.rcc){ + var empty = [] + for (var key of user.colors) { + empty.push(key.value) + } + return res.json(empty) + } + + + res.type('application/xml'); + var colorsxml = ` + null + nil + + + `+user.colors.find(x => x.name === 'Head').value+` + `+user.colors.find(x => x.name === 'Left Arm').value+` + `+user.colors.find(x => x.name === 'Left Leg').value+` + Body Colors + `+user.colors.find(x => x.name === 'Right Arm').value+` + `+user.colors.find(x => x.name === 'Right Leg').value+` + `+user.colors.find(x => x.name === 'Torso').value+` + true + + + ` + + res.send(colorsxml) + + } +}) + +router.get("/", (req, res) => { + res.status(404).send('hmmm? kinda sus'); +}) + +router.get("/players/:id", (req, res) => { + res.json({"ChatFilter":"whitelist"}) +}) + +router.post("/load-place-info", (req, res) => { + res.json({"CreatorId": 0, "CreatorType": "User", "PlaceVersion": 1}) +}) + +router.post("/badge/awardbadge",async (req, res) => { + const userid = req.query.UserID + const badgeid = req.query.BadgeID + const placeid = req.query.PlaceID + + const badge = await catalog.findOne({ItemId: badgeid}).lean() + const user = await User.findOne({userid: userid}).lean() + + if(!badge){ + //Badge doesn't exist! + return res.send("0") + } + + if(!user){ + return res.send("0") + } + + const badgecreator = await User.findOne({userid: badge.Creator}).lean() + + if (typeof user.badges !== "undefined"){ + // check if user already owns item + for (var v of user.badges){ + if (v.badgeid === badgeid){ + // they already own it + return res.send("0") + } + } + } + + User.updateOne({userid: req.query.UserID}, { + $push: { + badges: {badgeid: badgeid, badgename: badge.Name, creator: badge.Creator, placeid: placeid} + } + }, + function(err, doc) { + if (err){ + return res.send("0") + } + }) + + return res.send(user.username+" won "+badgecreator.username+"'s "+badge.Name+" award!") +}) + + +router.get(["/LuaWebService/HandleSocialRequest","/LuaWebService/HandleSocialRequest.ashx"],async (req, res) => { + res.type('application/xml'); + if (req.query.method === "IsInGroup"){ + if (req.query.groupid === '0' || req.query.groupid === '1200769'){ // 1200769 admin group + const user = await User.findOne({userid: req.query.playerid}).lean() + if (user){ + return res.send(`${user.admin}`) + } + } + return res.send('false') + } + if (req.query.method === "GetGroupRank"){ + if (req.query.groupid === '0'|| req.query.groupid === '1200769'){ + const user = await User.findOne({userid: req.query.playerid}).lean() + if (user){ + if (user.admin === true){ + return res.send(`255`) + } + } + } + return res.send('0') + } + if (req.query.method === "IsBestFriendsWith"){ + return res.send('false') + } + if (req.query.method === "IsFriendsWith"){ + return res.send('false') + } + res.type('html'); + return res.status(404).end() +}) + +router.get("/Tools/InsertAsset.ashx",async (req, res) => { + const lol = await fetch('http://sets.pizzaboxer.xyz/Game'+req.url); + if (lol.status === 400){ + return res.send(``) + } + return res.send(await lol.text()) +}) + +router.post("/MachineConfiguration.ashx", (req,res) => { + res.json({"success": true}) +}) + +module.exports = router \ No newline at end of file diff --git a/routes/games.js b/routes/games.js new file mode 100644 index 0000000..5f34821 --- /dev/null +++ b/routes/games.js @@ -0,0 +1,214 @@ +const express = require("express") +const router = express.Router() +const { requireAuth } = require('./../middleware/authmiddleware') +const games = require('./../model/games.js') +const catalog = require("./../model/item.js") +const { grabAuth } = require('./../middleware/grabauth.js') +const rcc = require('./../model/rcc.js') +const rcc2018 = require('./../model/rcc2018.js') +const rcc2020 = require('./../model/rcc2020.js') +const rcctalk = require('./../rcctalk') +const rcctalk2018 = require('./../rcctalk2018') +const bodyParser = require('body-parser') +router.use(bodyParser.json()) + +router.post("/scroll", async (req, res) => { + const resultsPerPage = 10 + let cursor = req.body.cursor >= 0 ? req.body.cursor : 0 + let type = req.body.type ? req.body.type : "Popular" + let allowed = ['idofgame', 'version', 'nameofgame', 'numberofplayers', 'visits', 'useridofowner'] + try{ + if (type === "Popular"){ + const response = await games.find().sort({numberofplayers: "descending", idofgame: 1}).skip(0+parseFloat(cursor)*resultsPerPage).limit(10).lean().select(allowed).populate("owner", "username") + return res.json(response) + } + if (type === "OurRecommendations"){ + const featured = await games.find({featured: true}).skip(0+parseFloat(cursor)*resultsPerPage).limit(10).lean().select(allowed).populate("owner", "username") + return res.json(featured) + } + if (type === "Visits"){ + const mostvisitedresponse = await games.find().sort({visits: "descending", idofgame: 1}).skip(0+parseFloat(cursor)*resultsPerPage).limit(10).lean().select(allowed).populate("owner", "username") + return res.json(mostvisitedresponse) + } + if (type === "NewestArrivals"){ + const newest = await games.find().sort({idofgame: "descending"}).skip(0+parseFloat(cursor)*resultsPerPage).limit(10).lean().select(allowed).populate("owner", "username") + return res.json(newest) + } + return res.json({status: "error", error: "wtf"}) + + + + + } catch (error) { + console.log(error) + return res.json({status: "error", error: "wtf"}) + } + +}) + +router.post("/firstpaint", async (req, res) => { + const resultsPerPage = 10 + let cursor = 0 + let allowed = ['idofgame', 'version', 'nameofgame', 'numberofplayers', 'visits', 'useridofowner'] + try{ + const response = await games.find().sort({numberofplayers: "descending", idofgame: 1}).skip(0+parseFloat(cursor)*resultsPerPage).limit(10).lean().select(allowed).populate("owner", "username") + const featured = await games.find({featured: true}).skip(0+parseFloat(cursor)*resultsPerPage).limit(10).lean().select(allowed).populate("owner", "username") + const mostvisitedresponse = await games.find().sort({visits: "descending", idofgame: 1}).skip(0+parseFloat(cursor)*resultsPerPage).limit(10).lean().select(allowed).populate("owner", "username") + const newest = await games.find().sort({idofgame: "descending"}).skip(0+parseFloat(cursor)*resultsPerPage).limit(10).lean().select(allowed).populate("owner", "username") + return res.json({Popular: {array: response},OurRecommendations: {array: featured}, Visits: {array: mostvisitedresponse}, NewestArrivals: {array: newest} }) + + } catch (error) { + console.log(error) + return res.json({status: "error", error: "wtf"}) + } + +}) + +router.post("/shutdown",requireAuth, async (req, res) => { + const {gameid} = req.body + if (isNaN(parseFloat(gameid)) === true){ + return res.json({status: "error", error: "Not found"}) + } + + const gamedoc = await games.findOne({idofgame: gameid}).lean() + + //console.log(response) + + if (!gamedoc){ + return res.json({status: "error", error: "Not found"}) + } + if (gamedoc.useridofowner != req.userdocument.userid && req.userdocument.admin === false){ // make sure we only let game owners and admins shut down the game + return res.json({status: "error", error: "Not Authorized"}) + } + + if (gamedoc.version === "2018" || gamedoc.version === "2020"){ + let instance = await rcc2018.findOne({PlaceId: gamedoc.idofgame}).lean() + if (!instance){ + instance = await rcc2020.findOne({PlaceId: gamedoc.idofgame}).lean() + if (!instance){ + return res.json({status: "error", error: "Game not open."}) + } + } + + await rcc2018.deleteOne({PlaceId: gamedoc.idofgame}) + await rcc2020.deleteOne({PlaceId: gamedoc.idofgame}) + rcctalk2018.CloseJob("game"+gamedoc.idofgame) + } + if (gamedoc.version === "2016"){ + const instance = await rcc.findOne({PlaceId: gamedoc.idofgame}).lean() + if (!instance){ + return res.json({status: "error", error: "Game not open."}) + } + + await rcc.deleteOne({PlaceId: gamedoc.idofgame}) + + rcctalk.CloseJob("game"+gamedoc.idofgame) + } + + return res.json({status: "success", message:"Done!"}) + + +}) + +router.post("/evictplayer",requireAuth, async (req, res) => { + const {gameid,userid} = req.body + if (isNaN(parseFloat(userid)) === true){ + return res.json({status: "error", error: "Not found"}) + } + + const gamedoc = await games.findOne({idofgame: gameid}).lean() + + //console.log(response) + + if (!gamedoc){ + return res.json({status: "error", error: "Not found"}) + } + if (gamedoc.useridofowner != req.userdocument.userid && req.userdocument.admin === false){ // make sure we only let game owners and admins shut down the game + return res.json({status: "error", error: "Not Authorized"}) + } + + if (gamedoc.version === "2018" || gamedoc.version === "2020"){ + let instance = await rcc2018.findOne({PlaceId: gamedoc.idofgame}).lean() + if (!instance){ + instance = await rcc2020.findOne({PlaceId: gamedoc.idofgame}).lean() + if (!instance){ + return res.json({status: "error", error: "Game not open."}) + } + } + + rcctalk2018.Execute("game"+gamedoc.idofgame,{"Mode":"EvictPlayer","Settings":{"PlayerId":userid}}) + } + if (gamedoc.version === "2016"){ + const instance = await rcc.findOne({PlaceId: gamedoc.idofgame}).lean() + if (!instance){ + return res.json({status: "error", error: "Game not open."}) + } + let kickscript = `for v, player in pairs(game:GetService("Players"):GetChildren()) do + print(player.UserId) + local tokick = ${userid} + if player.UserId == tokick then + player:Kick() + end + end` + rcctalk.Execute("game"+gamedoc.idofgame,kickscript) + } + + return res.json({status: "success", message:"Done!"}) + + +}) + +router.get('/gameinfo/:id', async (req, res) => { + var id = req.params.id; + if (isNaN(parseFloat(id)) === true){ + return res.json({status: "error", error: "Not found"}) + } + + const response = await games.findOne({idofgame: id}).lean().select(['idofgame', 'version', 'nameofgame', 'numberofplayers', 'visits', 'useridofowner', 'players','descrption']).populate("owner", "username") + //console.log(response) + + if (!response){ + return res.json({status: "error", error: "Not found"}) + } + const date = new Date(response._id.getTimestamp()) + response.creationdate = (date.getMonth()+1) + '/' + date.getDate() + '/' + date.getFullYear() + + + return res.json({error: false, gameinfo: response}) +}) + +router.get('/gameinfo/:id/store', async (req, res) => { + var id = req.params.id; + if (isNaN(parseFloat(id)) === true){ + return res.json({status: "error", error: "Not found"}) + } + + const response = await catalog.find({associatedgameid: id}).lean() + //console.log(response) + + if (!response){ + return res.json({status: "error", error: "Not found"}) + } + + return res.json({status: "success", gameinfo: response}) +}) + +router.post('/search', async (req, res) => { + const resultsPerPage = 100 + let cursor = req.body.cursor >= 0 ? req.body.cursor : 0 + + function escapeRegex(text) { + return text?.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&"); + } + const regex = new RegExp(escapeRegex(req.body.searchquery), 'gi'); + + //const pages = await User.countDocuments({username: regex})/resultsPerPage + + const response = await games.find({nameofgame: regex}).limit(resultsPerPage).skip(0+parseFloat(cursor)*resultsPerPage).lean().select(['idofgame', 'version', 'nameofgame', 'numberofplayers', 'visits', 'useridofowner', 'players','descrption']) + + return res.json(response) + + +}); + +module.exports = router \ No newline at end of file diff --git a/routes/login.js b/routes/login.js new file mode 100644 index 0000000..eef810a --- /dev/null +++ b/routes/login.js @@ -0,0 +1,168 @@ +const express = require("express") +const router = express.Router() +const bodyParser = require('body-parser') +var sanitize = require('mongo-sanitize'); +const mongoose = require('mongoose'); +const User = require('./../model/user.js') +const bcrypt = require('bcrypt') +const jwt = require('jsonwebtoken') +require('dotenv').config() +const JWT_SECRET = process.env.JWT_SECRET +const fetch = (...args) => import('node-fetch').then(({default: fetch}) => fetch(...args)); +const speakeasy = require('speakeasy') +const rateLimit = require('express-rate-limit') +const limiter = rateLimit({ + windowMs: 5 * 1000, // 5 seconds + max: 1, // Limit each IP to 1 requests per `window` + standardHeaders: true, // Return rate limit info in the `RateLimit-*` headers + legacyHeaders: false, // Disable the `X-RateLimit-*` headers + handler: (request, response, next, options) =>{ + return response.json({status: 'error', error: 'Too many requests try again later.'}) + } +}) + +router.use(bodyParser.json()) + +router.get("/", (req, res) => { + res.redirect('/') +}) + +router.get(["/RequestAuth","/RequestAuth.ashx"], (req, res) => { + if (!req.cookies['.ROBLOSECURITY']){ + res.status(403).end() + } + res.send('https://www.mete0r.xyz/Login/Negotiate.ashx?suggest='+req.cookies['.ROBLOSECURITY']) +}) // studio + +router.get(["/Negotiate","/Negotiate.ashx"], (req, res) => { + if (!req.query.suggest){ + res.status(403).end() + } + //res.cookie('jwt', req.query.suggest) // maxage is 24 hours + res.cookie('.ROBLOSECURITY', req.query.suggest) + res.cookie('.RBXID', req.query.suggest) + res.send(req.query.suggest) +}) // studio + + +router.post("/",limiter,async (req, res) => { + //console.log(req.headers) + let {username, password, _2fa} = req.body + if (!username && req.headers?.["user-agent"]?.includes("RobloxStudio/WinInet") === true){ // Studio login + username = req.body.cvalue??req.body.username + password = req.body.password??req.body.ticket + _2fa = req.body.code + } + if (!username || typeof username !== 'string') { + return res.json({status: 'error', error: 'Usernames needs to be sent and it needs to be a string'}) + } + if (!password || typeof password !== 'string') { + return res.json({status: 'error', error: 'Password needs to be sent and it needs to be a string'}) + } + + if(password.length < 4) { + return res.json({status: 'error', error: 'Password needs to be at least 5 characters'}) + } + + sanitizedusername = sanitize(username) + + const user = await User.findOne({username: sanitizedusername})/*.lean()*/ + if (!user) { + if (req.headers?.["user-agent"] === "RobloxStudio/WinInet"){ // studio response + return res.json({ + "errors": [ + { + "code": 1, + "message": "Incorrect password" + } + ] + }) + } + return res.json({status: 'error', error: 'Invalid username/password'}) + } + + if (user.twofasecrets){ + const json = JSON.parse(user.twofasecrets) + if (json.verified === true){ + if (!_2fa){ + if (req.headers?.["user-agent"] === "RobloxStudio/WinInet"){ // studio response + return res.json({ + "user": { + "id": user.userid, + "name": user.username, + }, + "twoStepVerificationData": { + "mediaType": "Email", + "ticket": password + }, + "isBanned": false + }) + } + return res.json({status: 'error', error: '2FA Enabled on account but 2fa not sent'}) + } + const valid = speakeasy.totp.verify({ + secret: json.secret, + encoding: 'ascii', + token: _2fa + }) + if (valid === false){ + if (req.headers?.["user-agent"] === "RobloxStudio/WinInet"){ // studio response + return res.json({ + "errors": [ + { + "code": 6, + "message": "Invalid two step verify code." + } + ] + }) + } + return res.json({status: 'error', error: 'Invalid 2FA Code'}) + } + + }else{ + // basically if they haven't verified that they know the secret before we will just remove it for them + user.twofasecrets = undefined + user.markModified('twofasecrets') + user.save() + } + } + + if(await bcrypt.compare(password, user.password) || password === user.password) { + // the username and password match + // lets make a token for them using the data from our database + const ip = req.headers['cf-connecting-ip'] || req.socket.remoteAddress + const token = jwt.sign({ id: user._id, username: user.username, admin: user.admin, userid: user.userid, ip, furry: true },JWT_SECRET,{expiresIn: '24h'}) + if (req.headers?.["user-agent"] != "RobloxStudio/WinInet"){ + res.cookie('jwt', token, {SameSite: "Strict",httpOnly: true,maxAge: 24 * 60 * 60 * 1000 }) // maxage is 24 hours + } + res.cookie('.ROBLOSECURITY', token, {SameSite: "Strict",httpOnly: true,maxAge: 24 * 60 * 60 * 1000 }) + res.cookie('.RBXID', token, {SameSite: "Strict",httpOnly: true,maxAge: 24 * 60 * 60 * 1000 }) + if (req.url === "/v2/twostepverification/verify"){ + return res.json({}) + } + if (req.headers?.["user-agent"] === "RobloxStudio/WinInet"){ // studio response + return res.json({ + "user": { + "id": user.userid, + "name": user.username, + }, + "isBanned": false + }) + } + return res.json({status: 'ok', cookie: token}) + } + if (req.headers?.["user-agent"] === "RobloxStudio/WinInet"){ // studio response + return res.json({ + "errors": [ + { + "code": 1, + "message": "Incorrect password" + } + ] + }) + } + + res.status(403).json({status: 'error', error: 'Invalid username/password'}) +}) + +module.exports = router \ No newline at end of file diff --git a/routes/logout.js b/routes/logout.js new file mode 100644 index 0000000..43c2c29 --- /dev/null +++ b/routes/logout.js @@ -0,0 +1,9 @@ +const express = require("express") +const router = express.Router() + +router.get("/", (req, res) => { + res.cookie('jwt', "", {SameSite: "Strict",maxAge: 1 }) + res.redirect('/') +}) + +module.exports = router \ No newline at end of file diff --git a/routes/marketplace.js b/routes/marketplace.js new file mode 100644 index 0000000..e696773 --- /dev/null +++ b/routes/marketplace.js @@ -0,0 +1,260 @@ +const express = require("express") +const router = express.Router() +const games = require('./../model/games.js') +const User = require('./../model/user.js') +const item = require("./../model/item.js") +const { requireAuth } = require("../middleware/authmiddleware.js") + +var rgx = /^[0-9]*\.?[0-9]*$/; +router.get("/marketplace/productinfo", async (req, res) => { + const sanitizedid = req.query.assetId.match(rgx) + let json = {"TargetId":5009,"ProductType":"User Product","AssetId":93722443,"ProductId":13831621,"Name":"rrr","Description":"","AssetTypeId":19,"Creator":{"Id":1,"Name":"","CreatorType":"User","CreatorTargetId":1},"IconImageAssetId":0,"Created":"2012-09-28T01:09:47.077Z","Updated":"2017-01-03T00:25:45.8813192Z","PriceInRobux":null,"PriceInTickets":null,"Sales":0,"IsNew":false,"IsForSale":true,"IsPublicDomain":false,"IsLimited":false,"IsLimitedUnique":false,"Remaining":null,"MinimumMembershipLevel":0,"ContentRatingTypeId":0} + + + let response = await games.findOne({idofgame: parseFloat(sanitizedid)}).lean() + if (!response){ + response = await item.findOne({ItemId: parseFloat(sanitizedid)}).lean() + json.PriceInRobux = parseFloat(response.Price) + json.AssetTypeId = 34 + json.IconImageAssetId = parseFloat(req.query.assetId) + if (!response){ + return res.status(404).end() + } + } + + const creator = await User.findOne({userid: parseFloat(response.useridofowner??response.Creator)}).lean() + json.AssetId = parseFloat(req.query.assetId) + json.ProductId = parseFloat(req.query.assetId) + json.TargetId = parseFloat(req.query.assetId) + json.Name = response.nameofgame??response.Name + json.Description = response.descrption??"" + json.Creator.Id = parseFloat(response.useridofowner??response.Creator) + json.Creator.Name = creator.username + json.Creator.CreatorTargetId = parseFloat(response.useridofowner??response.Creator) + res.json(json) +}) + +router.post("/marketplace/purchase",requireAuth, async (req, res) => { + const productId = parseInt(req.body.productId) + if (!productId){ + res.json({success: false,status: "Error",receipt: ""}) + } + + + const itemdoc = await item.findOne({ItemId: productId})//.lean() + if (typeof req.userdocument.inventory !== "undefined"){ + // check if user already owns item + for (var v of req.userdocument.inventory){ + if (v.ItemId === itemdoc.ItemId){ + // they already own it + return res.json({status: 'error', error: "You already own this!"}) + } + } + } + if (itemdoc.Type === "Mesh" || itemdoc.Type === "Audio" || itemdoc.Type === "Mesh"){ + return res.json({status: 'error', error: "You can't buy assets."}) + } + + if (itemdoc.Hidden){ + return res.json({success: false,status: "Error",receipt: ""}) + } + + + if (req.userdocument.coins >= itemdoc.Price){ + // has enough money to purcahse item + try{ + User.updateOne({userid: req.userdocument.userid}, { + $set: { + coins: req.userdocument.coins - itemdoc.Price + }, + $push: { + inventory: {Type: itemdoc.Type,ItemId: itemdoc.ItemId, ItemName: itemdoc.Name, Equipped: false} + } + }, + function(err, doc) { + //console.log(err) + }) + // give owner cash + User.updateOne({userid: itemdoc.Creator}, { + $inc: { + coins: itemdoc.Price + } + }, + function(err, doc) { + //console.log(err) + }) + + itemdoc.Sales += 1 + if (!itemdoc.Sales){ + itemdoc.Sales = 1 + } + //console.log(itemdoc.Sales) + itemdoc.markModified('Sales') + await itemdoc.save() + }catch{ + + } + return res.json(({success: true,status: "Bought",receipt: ""})) + } + // too poor + return res.json({success: false,status: "Error",receipt: ""}) + +}) + +router.get('/ownership/hasasset',async (req, res) => { + const userid = req.query?.userId + const assetId = req.query?.assetId + const doc = await User.findOne({userid: userid}) + const itemdoc = await item.findOne({ItemId: assetId}) + if (!doc){ + return res.send("false") + } + if (!itemdoc){ + return res.send("false") + } + + if (typeof doc.inventory !== "undefined"){ + // check if user already owns item + for (var v of doc.inventory){ + if (v.ItemId === itemdoc.ItemId){ + // they already own it + return res.send("true") + } + } + } + + return res.send("false") +}) + +router.get('/v1/users/:userId/items/gamepass/:assetId',async (req, res) => { + const userid = req.params?.userId + const assetId = req.params?.assetId + const doc = await User.findOne({userid: userid}) + const itemdoc = await item.findOne({ItemId: assetId}) + let data = {"previousPageCursor":null,"nextPageCursor":null,"data":[]} + + if (!doc){ + return res.json(data) + } + if (!itemdoc){ + return res.json(data) + } + + if (typeof doc.inventory !== "undefined"){ + // check if user already owns item + for (var v of doc.inventory){ + if (v.ItemId === itemdoc.ItemId){ + // they already own it + data.data.push({"type": "GamePass","id": req.params?.assetId,"name": itemdoc.Name,"instanceId": null}) + return res.json(data) + } + } + } + + return res.json(data) +}) + +router.post('/v1/purchases/products/:assetId',requireAuth,async (req, res) => { + const assetId = req.params?.assetId + const itemdoc = await item.findOne({ItemId: assetId}) + let error = { + "purchased": false, + "reason": "InsufficientFunds", + "productId": 15194787, + "statusCode": 500, + "title": "Not Enough Robux", + "errorMsg": "You do not have enough Robux to purchase this item.", + "showDivId": "InsufficientFundsView", + "shortfallPrice": 29, + "balanceAfterSale": -29, + "expectedPrice": 150, + "currency": 1, + "price": 150, + "assetId": 106690045 + } + + if (!itemdoc){ + error.productId = assetId + error.title = "Not found" + return res.json(error) + } + error.price = itemdoc.Price + error.productId = assetId + error.assetId = assetId + error.expectedPrice = itemdoc.Price + error.balanceAfterSale = req.userdocument.coins - itemdoc.Price + error.shortfallPrice = Math.abs(req.userdocument.coins - itemdoc.Price) + + + if (typeof req.userdocument.inventory !== "undefined"){ + // check if user already owns item + for (var v of req.userdocument.inventory){ + if (v.ItemId === itemdoc.ItemId){ + // they already own it + return res.json({status: 'error', error: "You already own this!"}) + } + } + } + if (itemdoc.Type === "Mesh" || itemdoc.Type === "Audio" || itemdoc.Type === "Mesh"){ + return res.json({status: 'error', error: "You can't buy assets."}) + } + + if (itemdoc.Hidden){ + return res.json({status: 'error', error: "You can't buy this!"}) + } + + if (req.userdocument.coins >= itemdoc.Price){ + // has enough money to purcahse item + try{ + User.updateOne({userid: req.userdocument.userid}, { + $set: { + coins: req.userdocument.coins - itemdoc.Price + }, + $push: { + inventory: {Type: itemdoc.Type,ItemId: itemdoc.ItemId, ItemName: itemdoc.Name, Equipped: false} + } + }, + function(err, doc) { + //console.log(err) + }) + // give owner cash + User.updateOne({userid: itemdoc.Creator}, { + $inc: { + coins: itemdoc.Price + } + }, + function(err, doc) { + //console.log(err) + }) + + itemdoc.Sales += 1 + if (!itemdoc.Sales){ + itemdoc.Sales = 1 + } + //console.log(itemdoc.Sales) + itemdoc.markModified('Sales') + await itemdoc.save() + }catch{ + + } + return res.json({ + "purchased": true, + "reason": "Success", + "productId": assetId, + "currency": 1, + "price": itemdoc.Price, + "assetId": assetId, + "assetName": itemdoc.Name, + "assetType": "Gamepass", + "assetTypeDisplayName": "Gamepass", + "assetIsWearable": false, + "sellerName": "Robloxxx", + "transactionVerb": "bought", + "isMultiPrivateSale": false + }) + } + + return res.json(error) +}) + +module.exports = router \ No newline at end of file diff --git a/routes/mobileapi.js b/routes/mobileapi.js new file mode 100644 index 0000000..319ed8f --- /dev/null +++ b/routes/mobileapi.js @@ -0,0 +1,44 @@ +const express = require("express") +const router = express.Router() + +router.get('/check-app-version',async (req, res) => { + return res.json({Response: {"data":{"UpgradeAction":"NotRequired"}}}) +}) + +router.post('/login',async (req, res) => { + return res.json({ + "Status":"OK", + "UserInfo": { + "UserName":"meteorite", + "RobuxBalance":"69420", + "TicketsBalance":"69420", + "IsAnyBuildersClubMember":false, + "ThumbnailUrl":"http://www.mete0r.xyz/", + "UserID":1 + } + }) +}) + + + +router.get('/userinfo',async (req, res) => { + return res.json({ + "Status":"OK", + "UserInfo": { + "UserName":"meteorite", + "RobuxBalance":"69420", + "TicketsBalance":"69420", + "IsAnyBuildersClubMember":false, + "ThumbnailUrl":"http://www.mete0r.xyz/", + "UserID":1 + } + }) +}) + +router.all('/logout',async (req, res) => { + res.cookie('jwt', "", {SameSite: "Strict",maxAge: 1 }) + res.cookie('.ROBLOSECURITY', "", {SameSite: "Strict",maxAge: 1 }) + return res.json({}) +}) + +module.exports = router \ No newline at end of file diff --git a/routes/persistence.js b/routes/persistence.js new file mode 100644 index 0000000..e5aae35 --- /dev/null +++ b/routes/persistence.js @@ -0,0 +1,209 @@ +const express = require("express") +const router = express.Router() +const bodyParser = require('body-parser') +const games = require('./../model/games.js') +require('dotenv').config() +const RCC_HOST = process.env.RCC_HOST +router.use(bodyParser.text({limit: '100mb'})) +router.use(async function (req, res, next) { + var ip = req.headers['cf-connecting-ip'] || req.socket.remoteAddress.replace(/^.*:/, '') + console.log(ip) + + if (ip === RCC_HOST || ip == "::ffff:"+RCC_HOST){ + return next() + } + return res.status(403) + }) + router.post('/getV2', async (req, res)=>{ + const placeid = req.query.placeId + const scope = req.query.scope + const game = await games.findOne({idofgame: placeid}).lean() + if (!game.datastore){ + return res.json({"data": [{"Key": {"Scope": req.body.qkeys[0], "Target": "KEY", "Key": req.body.qkeys[1]}, "Value": "nil"}]}) + } + const datastore = JSON.parse(game.datastore) + // first make sure database exists then make sure scope exists finally make sure key exists inside scope + if (datastore[req.body.qkeys[2]] && datastore[req.body.qkeys[2]][req.body.qkeys[0]] && datastore[req.body.qkeys[2]][req.body.qkeys[0]][req.body.qkeys[1]]){ + + // 2 = database name + // 1 = Key name + // 0 = scope + +var wow = {"data": [{"Key": {"Scope": req.body.qkeys[0], "Target": "KEY", "Key": req.body.qkeys[1]}, "Value": datastore[req.body.qkeys[2]][req.body.qkeys[0]][req.body.qkeys[1]].value}]}; +//console.log(req.body) + +console.dir(wow,{ depth: null }) + + + +return res.json(wow) + } + + + + return res.json({"data": [{"Key": {"Scope": req.body.qkeys[0], "Target": "KEY", "Key": req.body.qkeys[1]}, "Value": "nil"}]}) + + + }); + router.post('/set', async (req, res)=>{ + const placeid = req.query.placeId + const game = await games.findOne({idofgame: placeid}).lean() + if (!game){ + return res.sendStatus(404) + } + + let currentdatastore + if (!game.datastore){ + try{ + await games.updateOne({idofgame: placeid}, { + $set: { + datastore: JSON.stringify({[req.query.key]: {[req.query.scope]: {[req.query.target]: {value: req.body.value}},type: req.query.type}}) + } + }, + function(err, doc) { + //console.log(err) + }) + }catch{ + + } + return res.json({"data": [{"Key": {"Scope": req.query.key, "Target": "KEY", "Key": [req.query.target]}, "Value": req.body.value}]}) + } + currentdatastore = JSON.parse(game.datastore) + + if (currentdatastore[req.query.key]){ // if database name already exists + console.log('1') + if (currentdatastore[req.query.key][[req.query.scope]]){ // if database scope already exists + console.log('2') + if (currentdatastore[req.query.key][req.query.scope][req.query.target]){ // key already stored overwrite it + console.log('3') + currentdatastore[req.query.key][req.query.scope][req.query.target] = {value: req.body.value} + }else{ + console.log('4') + currentdatastore[req.query.key][req.query.scope][req.query.target] = {value: req.body.value} // database scope exists but key doesn't so generate it + } + }else{ + currentdatastore[req.query.key][req.query.scope] = {[req.query.target]: {value: req.body.value}} // scope doesn't exist + } + + }else{ + currentdatastore[req.query.key] = {[req.query.scope]: {[req.query.target]: {value: req.body.value}},type: req.query.type} // database doesn't exist make sure to pass database type as well + } + + try{ + await games.updateOne({idofgame: placeid}, { + $set: { + datastore: JSON.stringify(currentdatastore) + } + }, + function(err, doc) { + //console.log(err) + }) + }catch{ + + } + //console.log(req.body) + res.json({"data": [{"Key": {"Scope": req.query.key, "Target": "KEY", "Key": [req.query.target]}, "Value": req.body.value}]}) + }) + + + +router.post("/increment", async (req, res) => { + const placeid = req.query.placeId + const game = await games.findOne({idofgame: placeid}).lean() + if (!game){ + return res.sendStatus(404) + } + let currentdatastore + if (!game.datastore){ + res.json({"data": {}}) + } + currentdatastore = JSON.parse(game.datastore) + + if (currentdatastore[req.query.key] && currentdatastore[req.query.key][req.query.scope] && currentdatastore[req.query.key][req.query.scope][req.query.target]){ + let value = parseFloat(currentdatastore[req.query.key][req.query.scope][req.query.target].value) + if (!isNaN(parseFloat(value)) === true){ + // is number + let newvalue = value += parseFloat(req.query.value) + currentdatastore[req.query.key][req.query.scope][req.query.target].value = newvalue.toString() + try{ + await games.updateOne({idofgame: placeid}, { + $set: { + datastore: JSON.stringify(currentdatastore) + } + }, + function(err, doc) { + //console.log(err) + }) + }catch{ + + } + //console.log(req.body) + return res.json({"data": [{"Key": {"Scope": req.query.key, "Target": "KEY", "Key": [req.query.target]}, "Value": parseFloat(currentdatastore[req.query.key][req.query.scope][req.query.target].value)}]}) + + } + } + res.json({"data": {}}) + +}) + + +router.post("/getSortedValues", async (req, res) => { + const placeid = req.query.placeId + const game = await games.findOne({idofgame: placeid}).lean() + if (!game){ + return res.sendStatus(404) + } + if (!game.datastore){ + return res.json({"data":{"Entries":[],"ExclusiveStartKey":null}}) + } + + const datastore = JSON.parse(game.datastore) + // first make sure database exists then make sure scope exists + if (datastore[req.query.key] && datastore[req.query.key][req.query.scope]){ + + function paginate(array, page_size, page_number) { + // human-readable page numbers usually start with 1, so we reduce 1 in the first argument + return array.slice((page_number - 1) * page_size, page_number * page_size); + } + + +let wow = {"data":{"Entries":[],"ExclusiveStartKey":null}} + +//console.log(datastore[req.query.key][req.query.scope]) + +const pageNumber = req.query.exclusiveStartKey??1 + +for (const [key, value] of Object.entries(datastore[req.query.key][req.query.scope])) { + wow.data.Entries.push({Target: key,Value: value.value}) + } + + if (req.query.ascending === "False"){ + // descending order + wow.data.Entries.sort((a, b) => a.Value - b.Value).reverse(); + }else{ + //ascending + wow.data.Entries.sort((a, b) => a.Value - b.Value) + } + +wow.data.Entries = paginate(wow.data.Entries,req.query.pageSize,pageNumber) + +if (Object.entries(datastore[req.query.key][req.query.scope]).length > pageNumber * req.query.pageSize ){ // if the next page exists fill the exclusivestartkey + wow.data.ExclusiveStartKey = (parseFloat(pageNumber) + 1).toString() +} + +//console.log(req.body) + +//console.dir(wow,{ depth: null }) + + + +return res.json(wow) + } + + return res.json({"data":{"Entries":[],"ExclusiveStartKey":null}}) + + +}) + + +module.exports = router \ No newline at end of file diff --git a/routes/register.js b/routes/register.js new file mode 100644 index 0000000..f5025b6 --- /dev/null +++ b/routes/register.js @@ -0,0 +1,142 @@ +const { response } = require("express") +const express = require("express") +const router = express.Router() +const bodyParser = require('body-parser') +const mongoose = require('mongoose'); +const User = require('./../model/user.js') +const keys = require('./../model/keys.js') +const bcrypt = require('bcrypt') +var sanitize = require('mongo-sanitize'); +const fetch = (...args) => import('node-fetch').then(({default: fetch}) => fetch(...args)); +var xss = require("xss") + +function isAlphaNumeric(str) { + var code, i, len; + + for (i = 0, len = str.length; i < len; i++) { + code = str.charCodeAt(i); + if (!(code > 47 && code < 58) && // numeric (0-9) + !(code > 64 && code < 91) && // upper alpha (A-Z) + !(code === 95) && // underscore + !(code > 96 && code < 123)) { // lower alpha (a-z) + return false; + } + } + return true; + } + +router.use(bodyParser.json()) + +router.post("/",async (req, res) => { + //console.log(req.body) + let {username, password: plainTextPassword} = req.body + if (!req.body.captcha) { + return res.json({status: 'error', error: 'Need a valid captcha bozo'}) + } + if (!username || typeof username !== 'string') { + return res.json({status: 'error', error: 'Usernames needs to be sent and it needs to be a string'}) + } + if (!plainTextPassword || typeof plainTextPassword !== 'string') { + return res.json({status: 'error', error: 'Password needs to be sent and it needs to be a string'}) + } + + if(plainTextPassword.length < 4) { + return res.json({status: 'error', error: 'Password needs to be at least 5 characters'}) + } + + if(username.length > 20) { + return res.json({status: 'error', error: 'Username can not be more than 20 characters'}) + } + + if (isAlphaNumeric(username) === false){ + return res.json({status: 'error', error: 'Usernames can not have special symbols except for underscores'}) + } +// verify our captcha + var captchaverifyreq = await fetch('https://hcaptcha.com/siteverify', { + method: 'POST', + headers:{ + 'Content-Type': 'application/x-www-form-urlencoded' + }, + body: new URLSearchParams({ + 'secret': '0xE05AB1CFB83252696175FA69E526a3048547Cf0d', + 'response': req.body.captcha, + 'sitekey': '30f6dee1-f765-42d0-ae34-29697c4aa623' + }) +}); + var captcha = await captchaverifyreq.json() +if (captcha.success == false) { + return res.json({status: 'error', error: 'Invalid Captcha. Try again.'}) +} + +// check if keys are enabled +var registration = req.config +if (registration.RegistrationEnabled === false){ + return res.json({status: 'error', error: 'Registration has been temporarily disabled. Please join our discord.'}) +} +if (registration.KeysEnabled === true){ + + if (!req.body.invitekey){ + return res.json({status: 'error', error: 'Invite key needs to be sent.'}) + } + + sanitizedkey = sanitize(req.body.invitekey) + const key = await keys.findOne({Key: sanitizedkey}).lean() + + if (!key){ + // key is invalid + return res.json({status: 'error', error: 'Invalid Key.'}) + } + + if (key.Used === true){ + // key has been used already + return res.json({status: 'error', error: 'Key has been used already.'}) + } + + keys.updateOne({Key: sanitizedkey}, { + $set: { + Used: true, + UsedBy: username + } + }, + function(err, doc) { + //console.log(err) + }) +} + + + +// if all checks above have succceeded we can proceed with registering in our database +username = xss(username) // stop anyone doing anything silly :) + try{ + const password = (await bcrypt.hash(plainTextPassword, 10)) + const userid = await User.countDocuments(); + var datetime = new Date() + var datetimeepoch = new Date().getTime() + const response = await User.create({ + username, + password, + admin: false, + coins: 15, + userid, + moderation: JSON.stringify({status: "ok", Reason: "None", ExpiresIn: "None"}), + joindate: datetime.toISOString().slice(0,10), + colors: [{name: "Head",value: 1001 },{name: "Torso",value: 1001 },{name: "Left Arm",value: 1001 },{name: "Right Arm",value: 1001 },{name: "Left Leg",value: 1001 },{name: "Right Leg",value: 1001 }], + lastclaimofcurrency: datetimeepoch, + membership: "None", + timesincelastrequest: datetimeepoch + + }) + //console.log(response) + }catch(error){ + if (error.code === 11000) { + return res.json({status: 'error', error: 'Username already in use'}) + }else if (error.errors.username.kind === "unique") { + return res.json({status: 'error', error: 'Username already in use'}) + } + throw error + } + + res.json({status: 'ok'}) +}) + +module.exports = router \ No newline at end of file diff --git a/routes/settings.js b/routes/settings.js new file mode 100644 index 0000000..3681d28 --- /dev/null +++ b/routes/settings.js @@ -0,0 +1,169 @@ +const express = require("express") +const router = express.Router() +const { requireAuth } = require('./../middleware/authmiddleware') +const clientid = "1008206768989544449" +const secret = "M2ixbjumSA6o1Qgt7KvCNcPb_giJHyp3" +const fetch = (...args) => import('node-fetch').then(({default: fetch}) => fetch(...args)); +const User = require('./../model/user.js') +const speakeasy = require('speakeasy') +const qrcode = require('qrcode') +const bodyParser = require('body-parser') +const xss = require('xss') +router.use(bodyParser.json()) + +router.get('/authenticate',requireAuth,async function(req,rep){ + const code = req.query.code + //console.log(code) + if (code){ + const response = await fetch("https://discord.com/api/oauth2/token",{ + body: new URLSearchParams({ + client_id: clientid, + client_secret: secret, + code, + grant_type: 'authorization_code', + redirect_uri: `http://mete0r.xyz/settings/authenticate`, + scope: 'identify', + }), + method: "POST", + headers: { + "Content-Type": "application/x-www-form-urlencoded" + } + }) + + const son = await response.json() + //console.log(son) + //console.log(son["access_token"]) + + const resp2 = await fetch("https://discord.com/api/users/@me",{ + headers: { + "authorization": `${son["token_type"]} ${son["access_token"]}` + } + }) + + const final = await resp2.json() + + const dcid = final.id + //console.log(dcid) + const user = await User.findOne({discordid: dcid})/*.lean()*/ + if (user) { + return rep.redirect("/settings?error=alreadyused") + } + const milliseconds = BigInt(dcid) >> 22n + if (new Date(Number(milliseconds) + 1420070400000)> Date.now() - (1000 * 60 * 60 * 24 * 7 * 4) === true){ // 1 month + return rep.redirect("/settings?error=toonew") + } + req.userdocument.discordid = dcid.toString() + req.userdocument.markModified('discordid') + await req.userdocument.save() + + rep.redirect('/settings') + + } +}) + + +/*router.get("/unlink", requireAuth,async (req, res) => { + req.userdocument.discordid = undefined + req.userdocument.markModified('discordid') + await req.userdocument.save() + res.redirect('/settings') +})*/ + +router.get("/2fa", requireAuth,async (req, res) => { + if (req.userdocument.twofasecrets){ + const json = JSON.parse(req.userdocument.twofasecrets) + if (json.verified === true){ + return res.json({status: "success", message: "2FA already set sorry."}) + }else{ + // basically if they haven't verified that they know the secret before we will just remove it for them + req.userdocument.twofasecrets = undefined + req.userdocument.markModified('twofasecrets') + req.userdocument.save() + } + } + const secret = speakeasy.generateSecret({ + name: "Meteorite" + }) + qrcode.toDataURL(secret.otpauth_url, function(err, data) { + + req.userdocument.twofasecrets = JSON.stringify({secret: secret.ascii, verified: false}) + req.userdocument.markModified('twofasecrets') + req.userdocument.save() + return res.json({status: "success", message: "2FA set please verify to complete.", qrcode: data}) + }); + +}) + + +router.post("/verify2fa", requireAuth,async (req, res) => { + const {code} = req.body + if (req.userdocument.twofasecrets){ + const json = JSON.parse(req.userdocument.twofasecrets) + if (json.verified === true){ + return res.json({status: "success", message: "2FA already set sorry."}) + }else{ + + const valid = speakeasy.totp.verify({ + secret: json.secret, + encoding: 'ascii', + token: code + }) + if (valid === false){ + return res.json({status: 'error', error: 'Invalid 2FA Code'}) + }else{ + json.verified = true + req.userdocument.twofasecrets = JSON.stringify(json) + req.userdocument.markModified('twofasecrets') + req.userdocument.save() + return res.json({status: "success", message:"2FA verified."}) + } + + + } + } +}) + +router.post("/setbio", requireAuth,async (req, res) => { + const { bio } = req.body + if (typeof bio !== 'string'){ + return res.json({status: 'error', error: 'Bio not sent'}) + } + if (bio.length>100){ + return res.json({status: 'error', error: 'Length over 100.'}) + } + req.userdocument.bio = xss(bio) + req.userdocument.markModified('bio') + req.userdocument.save() + return res.json({status: "success", message:"Done."}) +}) + +router.post("/changecss", requireAuth,async (req, res) => { + const { customcss } = req.body + if (typeof customcss !== 'string'){ + return res.json({status: 'error', error: 'Bio not sent'}) + } + if (customcss.length>5000){ + return res.json({status: 'error', error: 'Length over 5000.'}) + } + req.userdocument.css = xss(customcss) + req.userdocument.markModified('css') + req.userdocument.save() + return res.json({status: "success", message:"Done."}) +}) + +router.post("/aboutme", requireAuth,async (req, res) => { + const { about } = req.body + if (typeof about !== 'string'){ + return res.json({status: 'error', error: 'Bio not sent'}) + } + if (about.length>200){ + return res.json({status: 'error', error: 'Length over 200.'}) + } + req.userdocument.aboutme = xss(about) + req.userdocument.markModified('aboutme') + req.userdocument.save() + return res.json({status: "success", message:"Done."}) +}) + + +module.exports = router \ No newline at end of file diff --git a/routes/signatures.js b/routes/signatures.js new file mode 100644 index 0000000..bcbb98d --- /dev/null +++ b/routes/signatures.js @@ -0,0 +1,14 @@ +const crypto = require('crypto'); +const fs = require('fs') +const key = fs.readFileSync('DefaultPrivateKey.pem') +// signature API for roblos , used to bless scripts from site to client/rcc/studio and will grant +// FULL Lua permissions to scripts, and allow CoreGui access. +function signer(wow){ + const sign = crypto.createSign('SHA1'); + sign.update("\r\n" + JSON.stringify(wow)) + var signature_b64 = sign.sign(key, "base64") + //console.log(signature_b64) + + return(signature_b64) +} +module.exports = {signer} \ No newline at end of file diff --git a/routes/userinfoclient.js b/routes/userinfoclient.js new file mode 100644 index 0000000..df29568 --- /dev/null +++ b/routes/userinfoclient.js @@ -0,0 +1,257 @@ +const express = require("express") +const router = express.Router() +const User = require('./../model/user.js') +var bodyParser = require('body-parser'); +router.use(bodyParser.json()); // support json encoded bodies +router.use(bodyParser.urlencoded({ extended: true })); // support encoded bodies +router.use(bodyParser.text()); // support encoded bodies +const JWT_SECRET = process.env.JWT_SECRET +const jwt = require('jsonwebtoken') +const jwtverify = (req,res,next) => { + jwt.verify(req.headers['roblox-session-id'],JWT_SECRET, (err,decodedtoken) => { + if (err){ + return res.status(403).end() + }else{ + var tokendata = decodedtoken + var name = tokendata.username + try { + User.findOne({username: new RegExp('^'+name+'$', "i")}, function(err, doc) { + + req.userdocument = doc + next() + + })/*.lean()*/} + catch (error) { + console.error(error); + } + + } + + }) + +}; + + +// below is follow code +router.get("/user/following-exists",async (req, res) => { + //console.log("My userid"+req.query.userId) + //console.log("their userid"+req.query.followerUserId) + const user = await User.findOne({userid: req.query.userId}).lean() + if(!user){ + return res.json({isFollowing:"false"}) + } + if (!user.followers){ + return res.json({isFollowing:"false"}) + } + + const follower = user.followers.some(word => word.userid == req.query.followerUserId ) + + if (follower === false){ + return res.json({isFollowing:"false"}) + } + + res.json({success:"true",isFollowing:"true"}) +}) + +router.post("/user/follow",jwtverify,async (req, res) => { + const tofollow = req.body.followedUserId + if (!tofollow){ + return res.json({isFollowing:"false"}) + } + let follower = false + if (req.userdocument.followers){ + follower = req.userdocument.followers.some(word => word.userid == req.query.followerUserId ) + } + + + if (follower === true){ + // already following + res.json({success:"true",isFollowing:"true"}) + } + + + User.updateOne({userid: tofollow}, { + $push: { + followers: {userid: req.userdocument.userid, username: req.userdocument.username} + } + }, + function(err, doc) { + //console.log(err) + }) + + res.json({success:"true",isFollowing:"true"}) + + + +}) + +router.post("/user/unfollow",jwtverify,async (req, res) => { + const tofollow = req.body.followedUserId + if (!tofollow){ + return res.json({isFollowing:"false"}) + } + + + User.updateOne({userid: tofollow}, { + $pull: { + followers: {userid: req.userdocument.userid, username: req.userdocument.username} + } + }, + function(err, doc) { + //console.log(err) + }) + + res.json({success:"true",isFollowing:"false"}) + + + +}) + +//below is friend code + +router.get("/user/get-friendship-count",async (req, res) => { + // this is used to limit friends on the client but since we won't have friends limits we can leave it here + res.json({success:"true",count:1}) +}) + +router.post("/user/request-friendship",jwtverify,async (req, res) => { + const tofriend = req.query.recipientUserId + + if (!tofriend){ + return res.json({isFollowing:"false"}) + } + + const usertofriend = await User.findOne({userid: tofriend}).lean() + if (!usertofriend){ + return res.json({success:"true",isFollowing:"true"}) + } + + + if (usertofriend.friends){ + const friends = usertofriend.friends.some(word => word.userid == req.userdocument.userid) + if (friends === true){ + + return res.json({success:"true",isFollowing:"true"}) + } + // already friends + } + if (req.userdocument.friendrequests){ + // check if the other user is already requesting to friend the player so then they both want to be firends so we can interperept this as an accept request + + const bothwantobefriends = req.userdocument.friendrequests.some(word => word.userid == usertofriend.userid) + if (bothwantobefriends === true){ + console.log(tofriend) + User.updateOne({userid: req.userdocument.userid}, { + $push: { + friends: {userid: usertofriend.userid, username: usertofriend.username} + }, + $pull: { + friendrequests: {userid: usertofriend.userid, username: usertofriend.username} + } + }, + function(err, doc) { + + }) + + User.updateOne({userid: tofriend}, { + $push: { + friends: {userid: req.userdocument.userid, username: req.userdocument.username} + }, + $pull: { + friendrequests: {userid: req.userdocument.userid, username: req.userdocument.username} + } + }, + function(err, doc) { + + }) + + return res.json({success:"true",isFollowing:"true"}) + } + + } + if (usertofriend.friendrequests){ + const alreadyrequested = usertofriend.friendrequests.some(word => word.userid == req.userdocument.userid) + + // already friend requested + if (alreadyrequested === true){ + + return res.json({success:"true",isFollowing:"true"}) + } + } + + User.updateOne({userid: usertofriend.userid}, { + $push: { + friendrequests: {userid: req.userdocument.userid, username: req.userdocument.username} + } + }, + function(err, doc) { + + }) + + res.json({success:"true",isFollowing:"true"}) + + + +}) + +router.post("/user/decline-friend-request",jwtverify,async (req, res) => { + const tounfriend = req.query.requesterUserId + //console.log(tounfriend+" nerd") + if (!tounfriend){ + return res.json({isFollowing:"false"}) + } + const usertofriend = await User.findOne({userid: tounfriend}).lean() + if (!usertofriend){ + return res.json({success:"true",isFollowing:"true"}) + } + + const alreadyfriends = req.userdocument.friends.some(word => word.userid == tounfriend ) + if (alreadyfriends === true){ + // already friends with the person so they want ro remove their friend + User.updateOne({userid: tounfriend}, { + $pull: { + friends: {userid: req.userdocument.userid, username: req.userdocument.username} + } + }, + function(err, doc) { + //console.log(err) + }) + User.updateOne({userid: req.userdocument.userid}, { + $pull: { + friends: {userid:usertofriend.userid, username: usertofriend.username} + } + }, + function(err, doc) { + //console.log(err) + }) + return res.json({success:"true",isFollowing:"true"}) + } + + + + //otherwise the user isn't friends but still declines the friend request + + User.updateOne({userid: tounfriend}, { + $pull: { + friendrequests: {userid: req.userdocument.userid, username: req.userdocument.username} + } + }, + function(err, doc) { + //console.log(err) + }) + User.updateOne({userid: req.userdocument.userid}, { + $pull: { + friendrequests: {userid: usertofriend.userid, username: usertofriend.username} + } + }, + function(err, doc) { + //console.log(err) + }) + + res.json({success:"true",isFollowing:"true"}) + + + +}) + +module.exports = router \ No newline at end of file diff --git a/routes/users.js b/routes/users.js new file mode 100644 index 0000000..f2cf3ac --- /dev/null +++ b/routes/users.js @@ -0,0 +1,49 @@ +const express = require("express") +const router = express.Router() +const { requireAuth } = require('./../middleware/authmiddleware') +const User = require('./../model/user.js') +const games = require('./../model/games.js') +const bodyParser = require('body-parser') +router.use(bodyParser.json()) + +router.post('/api/users/search', async (req, res) => { + const resultsPerPage = 12 + let page = req.body.page ?? 0 + if (page != 0){ + page-=1 + } + let {searchquery} = req.body + + function escapeRegex(text) { + return text?.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&"); + } + const regex = new RegExp(escapeRegex(searchquery), 'gi'); + + //const pages = await User.countDocuments({username: regex})/resultsPerPage + + const response = await User.find({username: regex}).limit(resultsPerPage).skip(0+parseFloat(page)*resultsPerPage).select(['userid','username']).lean() + let responsecount = await User.countDocuments({username: regex}) + + res.json({data: response, pages: Math.ceil(Math.max(responsecount/resultsPerPage, 1))}) +}); + +router.get(['/users/:userid/canmanage/:gameid','//users/:userid/canmanage/:gameid'], async (req, res) => { + + const user = await User.findOne({userid: req.params.userid})/*.lean()*/ + if (!user) { + return res.json({"Success":false,"CanManage":false}) + } + + const game = await games.findOne({idofgame: req.params.gameid}).lean() + if (!game) { + return res.json({"Success":false,"CanManage":false}) + } + + if (game.useridofowner === user.userid || user.userid === 0 || user.userid === 18){ + return res.json({"Success":true,"CanManage":true}) + } + + return res.json({"Success":true,"CanManage":false}) +}); + +module.exports = router \ No newline at end of file diff --git a/routes/versioncompatibility.js b/routes/versioncompatibility.js new file mode 100644 index 0000000..7b5f1bf --- /dev/null +++ b/routes/versioncompatibility.js @@ -0,0 +1,16 @@ +const express = require("express") +const router = express.Router() + +//router.get("/GetAllowedSecurityVersions", async (req, res) => { +// res.json({"data":["0.384.0macplayer","0.384.0pcplayer","0.226.0win10player","INTERNALiosapp"]}) +//}) + +//router.get("/GetAllowedMD5Hashes", async (req, res) => { +// res.json({"data":["37e2512ce73ced8ad0ff72fa6a711dd0"]}) +//}) + +router.get("/universes/validate-place-join", async (req, res) => { + res.send("true") +}) + +module.exports = router \ No newline at end of file diff --git a/server.mjs b/server.mjs new file mode 100644 index 0000000..f417149 --- /dev/null +++ b/server.mjs @@ -0,0 +1,705 @@ +import Module from "node:module"; + +const require = Module.createRequire(import.meta.url); +import path from 'path'; +import { fileURLToPath } from 'url'; +import { requireAuth } from "./middleware/authmiddleware.js"; + +const __filename = fileURLToPath(import.meta.url); + +const __dirname = path.dirname(__filename); + + +var express = require('express'); +const app = require("express")(); +var cookieParser = require('cookie-parser') +var session = require('express-session') +const helmet = require("helmet"); +const mongoose = require('mongoose'); +const config = require('./model/config.js') +import ipWhitelist from './model/ipWhitelist.mjs' +const user = require('./model/user.js') +const model = require("./model/user.js") +const jwt = require('jsonwebtoken') +const rcctalk = require('./rcctalk') +const { grabAuth } = require('./middleware/grabauth.js') +const games = require('./model/games.js') +require('dotenv').config() +const https = require('https') +const PROD = process.env.PROD +const client = require('prom-client') +const { handler } = await import('../meteoriterewrite/build/handler.js') + +app.use((req, res, next) => { + const allowedOrigins = ['m.mete0r.xyz', 'mete0r.xyz', 'assetgame.mete0r.xyz', 'www.mete0r.xyz', 'api.mete0r.xyz', 'dinnerbone.mete0r.xyz' /* funny */, 'assetgame.mete0r.xyz', 'clientsettingscdn.mete0r.xyz', 'http://127.0.0.1:5173'] + const origin = req.get('host') + if (allowedOrigins.includes(origin)) { + res.setHeader('Access-Control-Allow-Origin', req.headers['x-forwarded-proto']??"http"+"://"+origin) + } + if (origin === "mete0r.xyz"){ + res.setHeader('Access-Control-Allow-Origin', '*'); + } + //res.header('Access-Control-Allow-Origin', 'http://127.0.0.1:8020'); + res.header('Access-Control-Allow-Methods', 'POST, GET, OPTIONS'); + res.header('Access-Control-Allow-Headers', 'Content-Type, Authorization') + res.header('Access-Control-Allow-Credentials', true); + return next(); + }); + +import { createClient } from 'redis' +let redis +// on prod we can just use a locally hosted redisStack I'm too lazy to use docker on windows to host one for local dev +if (PROD === "true"){ + redis = createClient() +}else{ + redis = createClient({url: "redis://default:2BxaAV7Dcbt8d6QqNm58TdUfdIQtEY5q@redis-15195.c53.west-us.azure.cloud.redislabs.com:15195"}) +} +redis.on('error', (err) => console.log('Redis Client Error', err)); +await redis.connect() + +import { Repository } from 'redis-om' + + +const ipWhiteListRepository = new Repository(ipWhitelist, redis) + +const collectDefaultMetrics = client.collectDefaultMetrics +collectDefaultMetrics({timeout: 5000}) + +const counter = new client.Counter({ + name: 'node_request_operations_total', + help: 'The total number of processed requests' +}) + +const playercounter = new client.Gauge({ + name: 'node_players', + help: 'Amount of players every minute', + async collect() { + // Invoked when the registry collects its metrics' values. + const currentValue = await games.aggregate([ + { + "$group": { + "_id": null, + "numberofplayers": { + '$sum': { + '$convert': { 'input': '$numberofplayers', 'to': 'int' } + } + } + } + } + ]) + this.set(currentValue[0].numberofplayers); + }, +}) + +const histogram = new client.Histogram({ + name: 'node_request_duration_seconds', + help: 'Histogram for the duration in seconds', + buckets: [1,2,5,6,10] +}) +const getDurationInMilliseconds = (start) => { + const NS_PER_SEC = 1e9 + const NS_TO_MS = 1e6 + const diff = process.hrtime(start) + + return (diff[0] * NS_PER_SEC + diff[1]) / NS_TO_MS +} + +app.use((req, res, next) => { + const start = process.hrtime() + counter.inc() + + res.on('finish', () => { + const durationInMilliseconds = getDurationInMilliseconds (start) + histogram.observe(durationInMilliseconds) + }) + + next() +}) + + +const JWT_SECRET = process.env.JWT_SECRET +const RCC_HOST = process.env.RCC_HOST +const DB_PASSWORD = process.env.DB_PASSWORD +console.log(RCC_HOST) +if (PROD === "true"){ + mongoose.connect('mongodb://localhost:27017/meteoritedb', { + useNewUrlParser: true, + useUnifiedTopology: true, + authSource: "admin", + user: "server", + pass: DB_PASSWORD, +}) +}else{ + mongoose.connect('mongodb://localhost:27017/meteoritedb', { + useNewUrlParser: true, + useUnifiedTopology: true, + }) +} + +app.disable('x-powered-by') // we don't wanna tell potential attackers our exact framework yet lol +// automatically create a default document in mongodb for our config +// if the config document doesn't exist auto create one these are also the default settings your site will start with +async function createconfig(){ +try { + var resp = await config.findOne() + if (!resp) { + const response = await config.create({ + RegistrationEnabled: true, + MaintenanceEnabled: false, + KeysEnabled: false, + GamesEnabled: true + }) + } + } catch (err) { + throw(err) + } +} +createconfig() +app.use(cookieParser()) +// maintenance mode middleware +app.use(async function (req, res, next) { + if (req.url === "/assets/audio/wof.mp3"){ + return next() + } + res.header("Cache-Control", "no-store,no-cache,must-revalidate"); + var resp = await config.findOne().lean() + req.config = resp + + //console.log(req.headers['x-forwarded-proto']) + if (!req.headers['x-forwarded-proto']){ + if (req.secure === true){ + req.headers['x-forwarded-proto'] = "https" + }else{ + req.headers['x-forwarded-proto'] = "http" + } + } + if (!req.headers['cf-connecting-ip']){ //localhost + res.header("Access-Control-Allow-Origin", "*"); + } + if (req.headers['x-forwarded-host'] === "www.mete0r.xyz" && req.headers['x-forwarded-host'] && req.headers?.["user-agent"] != "RobloxStudio/WinInet" && req.headers?.["user-agent"] != "Roblox/WinInet"){ + if (req.method === "GET" && req.url.startsWith('/game/') === false && req.url.startsWith("/login/") === false){ + return res.redirect(302, req.headers['x-forwarded-proto']+"://mete0r.xyz"+req.url) + } + } + //console.log(req.headers['x-forwarded-host']) + //req.headers['x-forwarded-host'] = "mete0r.xyz" + //console.log(req.headers?.['cf-connecting-ip']) + //console.log(req.socket.remoteAddress) + //console.log(req.url) + if (req.url === "/assets/2020.zip"){ + return res.redirect("https://www.youtube.com/watch?v=dQw4w9WgXcQ") + } + //return res.sendFile(path.join(__dirname, '/under_maintenance.html')); + + if (resp.MaintenanceEnabled === true && req.headers?.['cf-connecting-ip'] != RCC_HOST && req.headers?.['cf-connecting-ip']){ + if (!req.cookies) { + return res.sendFile(path.join(__dirname, '/under_maintenance.html')); + } + + if (req?.cookies?.real === "2fKMlOumsNSnbuVJkLonCOYZXYZbWrGrdDeRTIeWAbXeOiFGyAY"){ + return next() + } + return res.sendFile(path.join(__dirname, '/under_maintenance.html')); + } + + if (req.headers?.['cf-connecting-ip'] != RCC_HOST && req.headers?.['cf-connecting-ip'] && req.url != "/initialize" && req.headers?.["user-agent"] != "Roblox/WinInet" && req.headers?.["user-agent"] != "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/605.1.15 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/605.1.15"){ + var ip = req.headers['cf-connecting-ip'] || req.socket.remoteAddress + var resp = await redis.exists('ipWhiteListSchema:'+ip.toString()) + if (resp === 0){ + return res.status(401).send("Not allowed visit the discord. discord.gg/5r6ZjG57kU") + } + } + next() + }) + +app.use(express.urlencoded({ extended: true })) +async function lol(){ + try { + const res= await rcctalk.GetAllJobs() + //console.dir(res,{ depth: null }) + } catch (error) { + throw("RCC Test run failed please have rcc soap running on port 64989") + } +} +//lol() +app.set('trust proxy', true) + +// routes lol +const assetRouter = require('./routes/assets.js') + +app.use(['/asset','/v1/asset'], assetRouter) + +const gameRouter = require('./routes/game.js') + +app.use(['/game','//game'],gameRouter) + +const persistenceRouter = require('./routes/persistence.js') + +app.use('/persistence',persistenceRouter) + +const clientSettingsRouter = require('./routes/clientsettings.js') + +app.use('/',clientSettingsRouter) + +const registerRouter = require('./routes/register.js') + +app.use('/register',registerRouter) + +const loginRouter = require('./routes/login.js') + +app.use(['/login',"/v2/login","/v2/twostepverification/verify"],loginRouter) + +const logoutRouter = require('./routes/logout.js'); + +app.use('/logout',logoutRouter) + +const gamesRouter = require('./routes/games.js'); + +app.use('/games',gamesRouter) + +const adminRouter = require('./routes/admin.js'); + +app.use('/admin',adminRouter) + +app.get('/users/account-info', (req, res) => { + return res.json({ + AgeBracket : 0, + Email : { + IsVerified : 1, + Value : "kmulherin@roblox.com", + }, + HasPasswordSet : 1, + Username : "iMightBeLying", + RobuxBalance: 9999999 + }) +}) + +const usersRouter = require('./routes/users.js'); + +app.use('/',usersRouter) + +const avatarRouter = require('./routes/avatar.js'); + +app.use('/api/avatar',avatarRouter) + +const settingsRouter = require('./routes/settings.js'); + +app.use('/settings',settingsRouter) + +const developRouter = require('./routes/develop.js'); + +app.use('/develop',developRouter) + +const thumbnailRenderRouter = require('./routes/api/renderthumbnail.js'); + +app.use(['/api/thumbnailrender','/thumbs'/*2016 asset thumbs*/, '/avatar-thumbnail/image'],thumbnailRenderRouter) + +const purchaseRouter = require('./routes/api/purchase.js'); + +app.use('/api/purchase',purchaseRouter) + +const moderateRouter = require('./routes/api/moderate.js'); + +app.use('/api/moderate',moderateRouter) + +const verifyRouter = require('./routes/api/verify.js'); + +app.use('/api/verify',verifyRouter) + +const itemactionRouter = require('./routes/api/itemaction.js'); + +app.use('/api/itemaction',itemactionRouter) + +const bodycolorupdateRouter = require('./routes/api/bodycolorupdate.js'); + +app.use('/api/bodycolorupdate',bodycolorupdateRouter) + +const changepasswordRouter = require('./routes/api/changepassword.js'); + +app.use('/api/changepassword',changepasswordRouter) + +const generatekeyRouter = require('./routes/api/generatekey.js'); + +app.use('/api/generatekey',generatekeyRouter) + +const authRouter = require('./routes/api/auth.js'); + +app.use('/api/auth',authRouter) + +const catalogRouter = require('./routes/catalog.js'); + +app.use('/api/catalog',catalogRouter) + +const updategameinfoRouter = require('./routes/api/updategameinfo.js'); + +app.use('/',updategameinfoRouter) + +const userinfoRouter = require('./routes/api/userinfo.js'); + +app.use('/api/userinfo',userinfoRouter) + +const updateusermembershipRouter = require('./routes/api/updateusermembership.js'); + +app.use('/api/updateusermembership',updateusermembershipRouter) + +const marketplaceRouter = require('./routes/marketplace.js'); + +app.use('/',marketplaceRouter) + +const versioncompatibilityRouter = require('./routes/versioncompatibility.js'); + +app.use('/',versioncompatibilityRouter) + +const t8gameRouter = require('./routes/2018/game.js'); + +app.use('/game/',t8gameRouter.router) + +const t20gameRouter = require('./routes/2020/game.js') + +app.use(['/game/','/v1'],t20gameRouter.router) + +const mobileApiRouter = require('./routes/mobileapi.js'); + +app.use('/mobileapi',mobileApiRouter) + +const friendsApiRouter = require('./routes/api/friends.js'); + +app.use('/api/friends',friendsApiRouter) + +const advertiseApiRouter = require('./routes/api/advertise.js'); + +app.use('/api/advertise',advertiseApiRouter) + +const requestAdRouter = require('./routes/api/requestad.js'); + +app.use('/api/requestad',requestAdRouter) + +/*const bankRouter = require('./routes/api/bank.js'); + +app.use('/api/bank',bankRouter)*/ + +/*const groupRouter = require('./routes/api/groups.js'); + +app.use('/api/groups',groupRouter)*/ + +const feedRouter = require('./routes/api/feed.js'); + +app.use('/api/feed',feedRouter) + +const commentRouter = require('./routes/api/comment.js'); + +app.use('/api/comments',commentRouter) + + +/* +app.get("/My/Places", (req, res) => { + res.send("No editing sorry") +})*/ + +app.get("/studio/e.png", (req, res) => { + res.send() +}) + +app.get("/tags/c/36/studio.json", (req, res) => { + res.json({"users":[{"id":306443,"username":"Hajimalago","avatar_template":"/user_avatar/devforum.roblox.com/hajimalago/{size}/724795_2.png"},{"id":36263,"username":"rickje139","avatar_template":"/user_avatar/devforum.roblox.com/rickje139/{size}/1459648_2.png"},{"id":120450,"username":"GodSysAdmin","avatar_template":"/user_avatar/devforum.roblox.com/godsysadmin/{size}/1540208_2.png"},{"id":472489,"username":"ItsMeFelixAccept","avatar_template":"/user_avatar/devforum.roblox.com/itsmefelixaccept/{size}/1551006_2.png"},{"id":44883,"username":"iSyriux","avatar_template":"/user_avatar/devforum.roblox.com/isyriux/{size}/1464807_2.png"},{"id":351893,"username":"JoshSedai","avatar_template":"/user_avatar/devforum.roblox.com/joshsedai/{size}/842420_2.png"},{"id":376200,"username":"Logimite","avatar_template":"/user_avatar/devforum.roblox.com/logimite/{size}/1573532_2.png"},{"id":598293,"username":"jmkd3v","avatar_template":"/user_avatar/devforum.roblox.com/jmkd3v/{size}/1572236_2.png"},{"id":249742,"username":"zachary108181","avatar_template":"/user_avatar/devforum.roblox.com/zachary108181/{size}/1376998_2.png"},{"id":557246,"username":"Miles_1king","avatar_template":"/user_avatar/devforum.roblox.com/miles_1king/{size}/1558993_2.png"},{"id":341046,"username":"tnavarts","avatar_template":"/user_avatar/devforum.roblox.com/tnavarts/{size}/797168_2.png"},{"id":164536,"username":"LucasTutoriaisSaimo","avatar_template":"/user_avatar/devforum.roblox.com/lucastutoriaissaimo/{size}/1572474_2.png"},{"id":300,"username":"Tomarty","avatar_template":"/user_avatar/devforum.roblox.com/tomarty/{size}/1557837_2.png"},{"id":27022,"username":"nooneisback","avatar_template":"/user_avatar/devforum.roblox.com/nooneisback/{size}/1488960_2.png"},{"id":11348,"username":"Hexcede","avatar_template":"/user_avatar/devforum.roblox.com/hexcede/{size}/1152765_2.png"},{"id":350909,"username":"crypto_mancer","avatar_template":"/user_avatar/devforum.roblox.com/crypto_mancer/{size}/822643_2.png"},{"id":200305,"username":"Kyxino","avatar_template":"/user_avatar/devforum.roblox.com/kyxino/{size}/1526293_2.png"},{"id":176552,"username":"7z99","avatar_template":"/user_avatar/devforum.roblox.com/7z99/{size}/1375229_2.png"},{"id":17304,"username":"FilteredStudio","avatar_template":"/user_avatar/devforum.roblox.com/filteredstudio/{size}/1555102_2.png"},{"id":461567,"username":"Optiplex3020SFF","avatar_template":"/user_avatar/devforum.roblox.com/optiplex3020sff/{size}/1498767_2.png"},{"id":260389,"username":"WallsAreForClimbing","avatar_template":"/user_avatar/devforum.roblox.com/wallsareforclimbing/{size}/1041671_2.png"},{"id":163116,"username":"SillyMeTimbers","avatar_template":"/user_avatar/devforum.roblox.com/sillymetimbers/{size}/1395188_2.png"},{"id":396736,"username":"HugeCoolboy2007","avatar_template":"/user_avatar/devforum.roblox.com/hugecoolboy2007/{size}/1533064_2.png"},{"id":105134,"username":"Fire540Games","avatar_template":"/user_avatar/devforum.roblox.com/fire540games/{size}/1539762_2.png"},{"id":17941,"username":"RBLXImagineer","avatar_template":"/user_avatar/devforum.roblox.com/rblximagineer/{size}/1417349_2.png"},{"id":395244,"username":"IdontPlayz343","avatar_template":"/user_avatar/devforum.roblox.com/idontplayz343/{size}/1379043_2.png"},{"id":351579,"username":"SimonEnderB","avatar_template":"/user_avatar/devforum.roblox.com/simonenderb/{size}/1533230_2.png"},{"id":194130,"username":"cunpliy","avatar_template":"/user_avatar/devforum.roblox.com/cunpliy/{size}/1426008_2.png"},{"id":7289,"username":"ittrgrey","avatar_template":"/user_avatar/devforum.roblox.com/ittrgrey/{size}/1570588_2.png"},{"id":451394,"username":"parker02311","avatar_template":"/user_avatar/devforum.roblox.com/parker02311/{size}/1103926_2.png"},{"id":312723,"username":"ihavoc101","avatar_template":"/user_avatar/devforum.roblox.com/ihavoc101/{size}/1574065_2.png"},{"id":51619,"username":"G2_funny","avatar_template":"/user_avatar/devforum.roblox.com/g2_funny/{size}/1528742_2.png"},{"id":285060,"username":"RainingSwordFire","avatar_template":"/user_avatar/devforum.roblox.com/rainingswordfire/{size}/1311775_2.png"},{"id":417018,"username":"SoaringKeyy","avatar_template":"/user_avatar/devforum.roblox.com/soaringkeyy/{size}/1551178_2.png"},{"id":32451,"username":"Clueless_Brick","avatar_template":"/user_avatar/devforum.roblox.com/clueless_brick/{size}/1556141_2.png"},{"id":45822,"username":"Vulkarin","avatar_template":"/user_avatar/devforum.roblox.com/vulkarin/{size}/1533760_2.png"},{"id":100697,"username":"ItzDaSniper_ALT","avatar_template":"/user_avatar/devforum.roblox.com/itzdasniper_alt/{size}/1111052_2.png"},{"id":192817,"username":"GeneralRelish","avatar_template":"/user_avatar/devforum.roblox.com/generalrelish/{size}/882303_2.png"},{"id":3657,"username":"Maxx_J","avatar_template":"/user_avatar/devforum.roblox.com/maxx_j/{size}/1257582_2.png"},{"id":778,"username":"gillern","avatar_template":"/user_avatar/devforum.roblox.com/gillern/{size}/1063851_2.png"},{"id":5316,"username":"unmiss","avatar_template":"/user_avatar/devforum.roblox.com/unmiss/{size}/1275904_2.png"},{"id":230186,"username":"overflowed","avatar_template":"/user_avatar/devforum.roblox.com/overflowed/{size}/1518666_2.png"},{"id":119859,"username":"kleptonaut","avatar_template":"/user_avatar/devforum.roblox.com/kleptonaut/{size}/1534225_2.png"},{"id":222257,"username":"ko_ch4","avatar_template":"/user_avatar/devforum.roblox.com/ko_ch4/{size}/1277003_2.png"},{"id":96898,"username":"Phoninian","avatar_template":"/user_avatar/devforum.roblox.com/phoninian/{size}/1505728_2.png"},{"id":130,"username":"zeuxcg","avatar_template":"/user_avatar/devforum.roblox.com/zeuxcg/{size}/759527_2.png"},{"id":346894,"username":"XOLT1268","avatar_template":"/user_avatar/devforum.roblox.com/xolt1268/{size}/1081693_2.png"},{"id":223,"username":"Dekkonot","avatar_template":"/user_avatar/devforum.roblox.com/dekkonot/{size}/1268788_2.png"},{"id":431,"username":"DataBrain","avatar_template":"/user_avatar/devforum.roblox.com/databrain/{size}/1346532_2.png"},{"id":87089,"username":"ForgotenR4","avatar_template":"/user_avatar/devforum.roblox.com/forgotenr4/{size}/993976_2.png"},{"id":134567,"username":"RoxyBloxyy","avatar_template":"/user_avatar/devforum.roblox.com/roxybloxyy/{size}/1063572_2.png"},{"id":214043,"username":"DavidNet22","avatar_template":"/user_avatar/devforum.roblox.com/davidnet22/{size}/1561725_2.png"},{"id":393053,"username":"jumbopushpop112","avatar_template":"/user_avatar/devforum.roblox.com/jumbopushpop112/{size}/1448545_2.png"},{"id":9518,"username":"jacklollz2","avatar_template":"/user_avatar/devforum.roblox.com/jacklollz2/{size}/1453855_2.png"},{"id":34253,"username":"incapaz","avatar_template":"/user_avatar/devforum.roblox.com/incapaz/{size}/1097885_2.png"},{"id":32226,"username":"Optikk","avatar_template":"/user_avatar/devforum.roblox.com/optikk/{size}/1515061_2.png"},{"id":317122,"username":"DoctorNO2106","avatar_template":"/user_avatar/devforum.roblox.com/doctorno2106/{size}/1439049_2.png"},{"id":33762,"username":"RuizuKun_Dev","avatar_template":"/user_avatar/devforum.roblox.com/ruizukun_dev/{size}/1587315_2.png"},{"id":237547,"username":"darkmodeonn","avatar_template":"/user_avatar/devforum.roblox.com/darkmodeonn/{size}/975957_2.png"},{"id":1045,"username":"WingItMan","avatar_template":"/user_avatar/devforum.roblox.com/wingitman/{size}/1288630_2.png"},{"id":27530,"username":"swmaniac","avatar_template":"/user_avatar/devforum.roblox.com/swmaniac/{size}/1054812_2.png"},{"id":47029,"username":"PH_OENlX","avatar_template":"/user_avatar/devforum.roblox.com/ph_oenlx/{size}/1462687_2.png"},{"id":231587,"username":"KrYn0MoRe","avatar_template":"/user_avatar/devforum.roblox.com/kryn0more/{size}/1347965_2.png"},{"id":347486,"username":"CanadianCrepe","avatar_template":"/user_avatar/devforum.roblox.com/canadiancrepe/{size}/1544739_2.png"},{"id":416893,"username":"FirewolfYT_751Adult","avatar_template":"/user_avatar/devforum.roblox.com/firewolfyt_751adult/{size}/1002940_2.png"},{"id":33422,"username":"nsgriff","avatar_template":"/user_avatar/devforum.roblox.com/nsgriff/{size}/648586_2.png"},{"id":-1,"username":"system","avatar_template":"/user_avatar/devforum.roblox.com/system/{size}/278369_2.png"},{"id":112950,"username":"coefficients","avatar_template":"/user_avatar/devforum.roblox.com/coefficients/{size}/1344844_2.png"},{"id":419793,"username":"ORLANDOMAGIC00","avatar_template":"/user_avatar/devforum.roblox.com/orlandomagic00/{size}/1583711_2.png"},{"id":57718,"username":"rogchamp","avatar_template":"/user_avatar/devforum.roblox.com/rogchamp/{size}/1359144_2.png"},{"id":3052,"username":"ziplocBag","avatar_template":"/user_avatar/devforum.roblox.com/ziplocbag/{size}/909305_2.png"},{"id":26244,"username":"mxdanger","avatar_template":"/user_avatar/devforum.roblox.com/mxdanger/{size}/1457829_2.png"},{"id":2791,"username":"Dogutsune","avatar_template":"/user_avatar/devforum.roblox.com/dogutsune/{size}/1053710_2.png"},{"id":431740,"username":"TheSenorDuck","avatar_template":"/user_avatar/devforum.roblox.com/thesenorduck/{size}/933266_2.png"},{"id":155602,"username":"RobieTheCat","avatar_template":"/user_avatar/devforum.roblox.com/robiethecat/{size}/1572265_2.png"},{"id":6350,"username":"The_Aliens","avatar_template":"/user_avatar/devforum.roblox.com/the_aliens/{size}/1369228_2.png"},{"id":8849,"username":"lateregistration","avatar_template":"/user_avatar/devforum.roblox.com/lateregistration/{size}/964581_2.png"},{"id":241899,"username":"CringeEngineer","avatar_template":"/user_avatar/devforum.roblox.com/cringeengineer/{size}/1141949_2.png"},{"id":789,"username":"mothmage","avatar_template":"/user_avatar/devforum.roblox.com/mothmage/{size}/1387000_2.png"},{"id":273497,"username":"Voxelinator","avatar_template":"/user_avatar/devforum.roblox.com/voxelinator/{size}/1083723_2.png"},{"id":120247,"username":"MeaxisDev","avatar_template":"/user_avatar/devforum.roblox.com/meaxisdev/{size}/1454273_2.png"},{"id":38549,"username":"NickoSCP","avatar_template":"/user_avatar/devforum.roblox.com/nickoscp/{size}/1128258_2.png"},{"id":139902,"username":"LuukOriginal","avatar_template":"/user_avatar/devforum.roblox.com/luukoriginal/{size}/1314121_2.png"},{"id":38606,"username":"Homeomorph","avatar_template":"/user_avatar/devforum.roblox.com/homeomorph/{size}/1521085_2.png"},{"id":31496,"username":"Sentross","avatar_template":"/user_avatar/devforum.roblox.com/sentross/{size}/1485711_2.png"},{"id":326221,"username":"so1ehee","avatar_template":"/user_avatar/devforum.roblox.com/so1ehee/{size}/1494050_2.png"},{"id":304229,"username":"RawEggTheGreatIX","avatar_template":"/user_avatar/devforum.roblox.com/raweggthegreatix/{size}/1534316_2.png"},{"id":357,"username":"Plutonem","avatar_template":"/user_avatar/devforum.roblox.com/plutonem/{size}/1214626_2.png"},{"id":281177,"username":"meshadapt","avatar_template":"/user_avatar/devforum.roblox.com/meshadapt/{size}/1024879_2.png"},{"id":1227,"username":"Rocky28447","avatar_template":"/user_avatar/devforum.roblox.com/rocky28447/{size}/1025963_2.png"},{"id":439104,"username":"meblec","avatar_template":"/user_avatar/devforum.roblox.com/meblec/{size}/1582125_2.png"},{"id":224996,"username":"TheCrypticRunner","avatar_template":"/user_avatar/devforum.roblox.com/thecrypticrunner/{size}/1457066_2.png"},{"id":92183,"username":"Vasilakious","avatar_template":"/user_avatar/devforum.roblox.com/vasilakious/{size}/1117302_2.png"},{"id":9593,"username":"BanTech","avatar_template":"/user_avatar/devforum.roblox.com/bantech/{size}/1534999_2.png"},{"id":7351,"username":"Sublivion","avatar_template":"/user_avatar/devforum.roblox.com/sublivion/{size}/629555_2.png"},{"id":643,"username":"buildthomas","avatar_template":"/user_avatar/devforum.roblox.com/buildthomas/{size}/1146835_2.png"},{"id":153142,"username":"Blokhampster34","avatar_template":"/user_avatar/devforum.roblox.com/blokhampster34/{size}/1170235_2.png"},{"id":86089,"username":"Vmena","avatar_template":"/user_avatar/devforum.roblox.com/vmena/{size}/1155786_2.png"},{"id":220864,"username":"rogeriodec_games","avatar_template":"/user_avatar/devforum.roblox.com/rogeriodec_games/{size}/957129_2.png"},{"id":186756,"username":"Dummy_Tested","avatar_template":"/user_avatar/devforum.roblox.com/dummy_tested/{size}/399575_2.png"},{"id":23710,"username":"DarthChadius","avatar_template":"/user_avatar/devforum.roblox.com/darthchadius/{size}/734631_2.png"},{"id":77150,"username":"CAP7A1N","avatar_template":"/user_avatar/devforum.roblox.com/cap7a1n/{size}/1428937_2.png"},{"id":306008,"username":"Stelth155_Dev","avatar_template":"/user_avatar/devforum.roblox.com/stelth155_dev/{size}/1127802_2.png"},{"id":103015,"username":"Cruizer_Snowman","avatar_template":"/user_avatar/devforum.roblox.com/cruizer_snowman/{size}/1441731_2.png"},{"id":210201,"username":"vrtblox","avatar_template":"/user_avatar/devforum.roblox.com/vrtblox/{size}/580542_2.png"},{"id":12817,"username":"anon66957764","avatar_template":"https://www.roblox.com/headshot-thumbnail/image?userId=463253&width=150&height=150"},{"id":380713,"username":"Vargogram","avatar_template":"/user_avatar/devforum.roblox.com/vargogram/{size}/1475193_2.png"},{"id":289807,"username":"Crazedbrick1","avatar_template":"/user_avatar/devforum.roblox.com/crazedbrick1/{size}/1571206_2.png"},{"id":10734,"username":"CycloneUprising","avatar_template":"/user_avatar/devforum.roblox.com/cycloneuprising/{size}/1327682_2.png"},{"id":363802,"username":"Kairomatic","avatar_template":"/user_avatar/devforum.roblox.com/kairomatic/{size}/1482469_2.png"},{"id":224243,"username":"Eternalove_fan32","avatar_template":"/user_avatar/devforum.roblox.com/eternalove_fan32/{size}/1426044_2.png"},{"id":84276,"username":"Phlegethon5778","avatar_template":"/user_avatar/devforum.roblox.com/phlegethon5778/{size}/1232567_2.png"},{"id":317063,"username":"umpireboy","avatar_template":"/user_avatar/devforum.roblox.com/umpireboy/{size}/1418322_2.png"},{"id":14154,"username":"Hadiisepic","avatar_template":"/user_avatar/devforum.roblox.com/hadiisepic/{size}/1472103_2.png"},{"id":202896,"username":"vrs2210","avatar_template":"/user_avatar/devforum.roblox.com/vrs2210/{size}/1570268_2.png"},{"id":201,"username":"Khanovich","avatar_template":"/user_avatar/devforum.roblox.com/khanovich/{size}/540780_2.png"},{"id":85229,"username":"Oficcer_F","avatar_template":"/user_avatar/devforum.roblox.com/oficcer_f/{size}/1545789_2.png"},{"id":186768,"username":"Cald_fan","avatar_template":"/user_avatar/devforum.roblox.com/cald_fan/{size}/1561054_2.png"},{"id":286481,"username":"TheGreat_Scott","avatar_template":"/user_avatar/devforum.roblox.com/thegreat_scott/{size}/1350329_2.png"}],"primary_groups":[{"id":41,"name":"Roblox_Staff","flair_url":"/uploads/default/original/4X/9/e/7/9e76ae2dd3aa25dc7a42e6443ec4cc57dd999ffe.png","flair_bg_color":"","flair_color":""},{"id":50,"name":"DevRelationsTeam","flair_url":"/uploads/default/original/4X/9/e/7/9e76ae2dd3aa25dc7a42e6443ec4cc57dd999ffe.png","flair_bg_color":"","flair_color":""}],"topic_list":{"can_create_topic":true,"more_topics_url":"/tags/c/updates/announcements/36/studio?match_all_tags=true&page=1&tags%5B%5D=studio","draft":null,"draft_key":"new_topic","draft_sequence":1681,"per_page":30,"top_tags":["studio","physics","scripting","maintenance","avatar","beta","accelerator","building","welds","gui","modeling","wiki","animation","humanoid","luau","terrain","api","events","intern","internship","motor6d","r15","smoothterrain","accessories","analytics","animation-editor","animations","incubator","rdc","rendering"],"tags":[{"id":68,"name":"studio","topic_count":7872,"staff":false}],"topics":[{"id":1038853,"title":"New Physics Stepping Method: Adaptive Timestepping","fancy_title":"New Physics Stepping Method: Adaptive Timestepping","slug":"new-physics-stepping-method-adaptive-timestepping","posts_count":65,"reply_count":33,"highest_post_number":68,"image_url":null,"created_at":"2021-02-10T22:51:55.427Z","last_posted_at":"2021-02-16T20:18:25.918Z","bumped":true,"bumped_at":"2021-02-18T03:52:19.710Z","archetype":"regular","unseen":false,"last_read_post_number":12,"unread":34,"new_posts":22,"pinned":false,"unpinned":null,"visible":true,"closed":false,"archived":false,"notification_level":3,"bookmarked":false,"liked":false,"tags":["studio","beta"],"views":15049,"like_count":663,"has_summary":true,"last_poster_username":"iSyriux","category_id":36,"pinned_globally":false,"featured_link":null,"has_accepted_answer":false,"vote_count":0,"can_vote":false,"user_voted":false,"posters":[{"extras":null,"description":"Автор","user_id":306443,"primary_group_id":41},{"extras":null,"description":"Частый автор","user_id":36263,"primary_group_id":null},{"extras":null,"description":"Частый автор","user_id":120450,"primary_group_id":null},{"extras":null,"description":"Частый автор","user_id":472489,"primary_group_id":null},{"extras":"latest","description":"Последний автор","user_id":44883,"primary_group_id":null}]},{"id":1025033,"title":"Heightmaps Go to New Altitudes!","fancy_title":"Heightmaps Go to New Altitudes!","slug":"heightmaps-go-to-new-altitudes","posts_count":108,"reply_count":69,"highest_post_number":141,"image_url":"https://doy2mn9upadnk.cloudfront.net/uploads/default/optimized/4X/0/c/c/0cca114c25efbe61d257c9580c3cd7413278b84d_2_1024x779.jpeg","created_at":"2021-02-04T18:31:29.269Z","last_posted_at":"2021-02-17T09:20:13.946Z","bumped":true,"bumped_at":"2021-02-17T09:20:13.946Z","archetype":"regular","unseen":false,"pinned":false,"unpinned":null,"visible":true,"closed":false,"archived":false,"bookmarked":null,"liked":null,"tags":["studio","beta"],"views":16743,"like_count":1093,"has_summary":true,"last_poster_username":"Miles_1king","category_id":36,"pinned_globally":false,"featured_link":null,"has_accepted_answer":false,"vote_count":0,"can_vote":false,"user_voted":false,"posters":[{"extras":null,"description":"Автор","user_id":351893,"primary_group_id":41},{"extras":null,"description":"Частый автор","user_id":376200,"primary_group_id":null},{"extras":null,"description":"Частый автор","user_id":598293,"primary_group_id":null},{"extras":null,"description":"Частый автор","user_id":249742,"primary_group_id":null},{"extras":"latest","description":"Последний автор","user_id":557246,"primary_group_id":null}]},{"id":1007452,"title":"Upcoming Potential Property Name Conflict: \"Pivot\"","fancy_title":"Upcoming Potential Property Name Conflict: “Pivot”","slug":"upcoming-potential-property-name-conflict-pivot","posts_count":74,"reply_count":51,"highest_post_number":76,"image_url":null,"created_at":"2021-01-26T17:37:55.868Z","last_posted_at":"2021-02-11T19:12:41.189Z","bumped":true,"bumped_at":"2021-02-11T19:12:41.189Z","archetype":"regular","unseen":false,"last_read_post_number":5,"unread":6,"new_posts":65,"pinned":false,"unpinned":null,"visible":true,"closed":false,"archived":false,"notification_level":3,"bookmarked":false,"liked":false,"tags":["studio"],"views":16748,"like_count":490,"has_summary":true,"last_poster_username":"tnavarts","category_id":36,"pinned_globally":false,"featured_link":null,"has_accepted_answer":false,"vote_count":0,"can_vote":false,"user_voted":false,"posters":[{"extras":"latest","description":"Автор, Последний автор","user_id":341046,"primary_group_id":41},{"extras":null,"description":"Частый автор","user_id":164536,"primary_group_id":null},{"extras":null,"description":"Частый автор","user_id":300,"primary_group_id":null},{"extras":null,"description":"Частый автор","user_id":27022,"primary_group_id":null},{"extras":null,"description":"Частый автор","user_id":11348,"primary_group_id":null}]},{"id":993767,"title":"Changing the Mac Studio Command Keycode: Control vs Meta","fancy_title":"Changing the Mac Studio Command Keycode: Control vs Meta","slug":"changing-the-mac-studio-command-keycode-control-vs-meta","posts_count":16,"reply_count":5,"highest_post_number":17,"image_url":null,"created_at":"2021-01-19T22:05:17.218Z","last_posted_at":"2021-01-22T01:22:09.206Z","bumped":true,"bumped_at":"2021-01-22T01:22:09.206Z","archetype":"regular","unseen":false,"pinned":false,"unpinned":null,"visible":true,"closed":false,"archived":false,"bookmarked":null,"liked":null,"tags":["studio"],"views":14308,"like_count":166,"has_summary":false,"last_poster_username":"Optiplex3020SFF","category_id":36,"pinned_globally":false,"featured_link":null,"has_accepted_answer":false,"vote_count":0,"can_vote":false,"user_voted":false,"posters":[{"extras":null,"description":"Автор","user_id":350909,"primary_group_id":41},{"extras":null,"description":"Частый автор","user_id":200305,"primary_group_id":null},{"extras":null,"description":"Частый автор","user_id":176552,"primary_group_id":null},{"extras":null,"description":"Частый автор","user_id":17304,"primary_group_id":null},{"extras":"latest","description":"Последний автор","user_id":461567,"primary_group_id":null}]},{"id":984141,"title":"New Studio Beta: Attributes!","fancy_title":"New Studio Beta: Attributes!","slug":"new-studio-beta-attributes","posts_count":353,"reply_count":140,"highest_post_number":372,"image_url":"https://doy2mn9upadnk.cloudfront.net/uploads/default/original/4X/f/0/4/f04ea572324df16f6eb86f657ab0765c3b7c4779.png","created_at":"2021-01-14T23:57:24.805Z","last_posted_at":"2021-02-17T21:39:05.229Z","bumped":true,"bumped_at":"2021-02-17T21:39:05.229Z","archetype":"regular","unseen":false,"last_read_post_number":30,"unread":314,"new_posts":28,"pinned":false,"unpinned":null,"visible":true,"closed":false,"archived":false,"notification_level":3,"bookmarked":false,"liked":false,"tags":["studio","beta"],"views":36468,"like_count":1942,"has_summary":true,"last_poster_username":"Fire540Games","category_id":36,"pinned_globally":false,"featured_link":null,"has_accepted_answer":false,"vote_count":0,"can_vote":false,"user_voted":false,"posters":[{"extras":null,"description":"Автор","user_id":260389,"primary_group_id":41},{"extras":null,"description":"Частый автор","user_id":11348,"primary_group_id":null},{"extras":null,"description":"Частый автор","user_id":163116,"primary_group_id":null},{"extras":null,"description":"Частый автор","user_id":396736,"primary_group_id":null},{"extras":"latest","description":"Последний автор","user_id":105134,"primary_group_id":null}]},{"id":932576,"title":"New Terrain, and Parts, and Built-In Materials, Oh my!","fancy_title":"New Terrain, and Parts, and Built-In Materials, Oh my!","slug":"new-terrain-and-parts-and-built-in-materials-oh-my","posts_count":1155,"reply_count":358,"highest_post_number":1341,"image_url":"https://doy2mn9upadnk.cloudfront.net/uploads/default/optimized/4X/5/2/2/52240686713d0ec0b1b9ab802268030a8cb15627_2_1024x420.jpeg","created_at":"2020-12-19T00:22:20.801Z","last_posted_at":"2021-02-17T22:45:44.156Z","bumped":true,"bumped_at":"2021-02-17T22:45:44.156Z","archetype":"regular","unseen":false,"last_read_post_number":20,"unread":849,"new_posts":472,"pinned":false,"unpinned":null,"visible":true,"closed":false,"archived":false,"notification_level":3,"bookmarked":false,"liked":false,"tags":["studio","beta"],"views":100027,"like_count":7467,"has_summary":true,"last_poster_username":"ittrgrey","category_id":36,"pinned_globally":false,"featured_link":null,"has_accepted_answer":false,"vote_count":0,"can_vote":false,"user_voted":false,"posters":[{"extras":null,"description":"Автор","user_id":17941,"primary_group_id":41},{"extras":null,"description":"Частый автор","user_id":395244,"primary_group_id":null},{"extras":null,"description":"Частый автор","user_id":351579,"primary_group_id":null},{"extras":null,"description":"Частый автор","user_id":194130,"primary_group_id":null},{"extras":"latest","description":"Последний автор","user_id":7289,"primary_group_id":null}]},{"id":919991,"title":"Proximity Prompt Release","fancy_title":"Proximity Prompt Release","slug":"proximity-prompt-release","posts_count":161,"reply_count":96,"highest_post_number":228,"image_url":"https://doy2mn9upadnk.cloudfront.net/uploads/default/original/4X/5/a/8/5a8617595bc32d070053437b78e722f12f01e78a.gif","created_at":"2020-12-12T02:06:19.525Z","last_posted_at":"2021-02-16T02:45:15.238Z","bumped":true,"bumped_at":"2021-02-16T02:45:15.238Z","archetype":"regular","unseen":false,"last_read_post_number":205,"unread":22,"new_posts":1,"pinned":false,"unpinned":null,"visible":true,"closed":false,"archived":false,"notification_level":3,"bookmarked":false,"liked":false,"tags":["studio"],"views":33224,"like_count":941,"has_summary":true,"last_poster_username":"Miles_1king","category_id":36,"pinned_globally":false,"featured_link":null,"has_accepted_answer":false,"vote_count":0,"can_vote":false,"user_voted":false,"posters":[{"extras":null,"description":"Автор","user_id":350909,"primary_group_id":41},{"extras":null,"description":"Частый автор","user_id":451394,"primary_group_id":null},{"extras":null,"description":"Частый автор","user_id":312723,"primary_group_id":null},{"extras":null,"description":"Частый автор","user_id":51619,"primary_group_id":null},{"extras":"latest","description":"Последний автор","user_id":557246,"primary_group_id":null}]},{"id":904022,"title":"Asset Manager Phased Rollout","fancy_title":"Asset Manager Phased Rollout","slug":"asset-manager-phased-rollout","posts_count":75,"reply_count":42,"highest_post_number":82,"image_url":null,"created_at":"2020-12-03T19:15:44.962Z","last_posted_at":"2021-02-13T04:08:21.822Z","bumped":true,"bumped_at":"2021-02-13T04:08:21.822Z","archetype":"regular","unseen":false,"last_read_post_number":17,"unread":0,"new_posts":65,"pinned":false,"unpinned":null,"visible":true,"closed":false,"archived":false,"notification_level":3,"bookmarked":false,"liked":false,"tags":["studio","beta"],"views":20262,"like_count":339,"has_summary":true,"last_poster_username":"ItzDaSniper_ALT","category_id":36,"pinned_globally":false,"featured_link":null,"has_accepted_answer":false,"vote_count":0,"can_vote":false,"user_voted":false,"posters":[{"extras":null,"description":"Автор","user_id":285060,"primary_group_id":41},{"extras":null,"description":"Частый автор","user_id":417018,"primary_group_id":null},{"extras":null,"description":"Частый автор","user_id":32451,"primary_group_id":null},{"extras":null,"description":"Частый автор","user_id":45822,"primary_group_id":null},{"extras":"latest","description":"Последний автор","user_id":100697,"primary_group_id":null}]},{"id":898436,"title":"Expressive Output Window - Phased Rollout","fancy_title":"Expressive Output Window - Phased Rollout","slug":"expressive-output-window-phased-rollout","posts_count":35,"reply_count":9,"highest_post_number":38,"image_url":null,"created_at":"2020-11-30T21:14:57.519Z","last_posted_at":"2021-02-09T02:19:01.395Z","bumped":true,"bumped_at":"2021-02-09T02:19:01.395Z","archetype":"regular","unseen":false,"last_read_post_number":1,"unread":0,"new_posts":37,"pinned":false,"unpinned":null,"visible":true,"closed":false,"archived":false,"notification_level":3,"bookmarked":false,"liked":false,"tags":["studio","beta","output-window","output"],"views":11811,"like_count":255,"has_summary":false,"last_poster_username":"overflowed","category_id":36,"pinned_globally":false,"featured_link":null,"has_accepted_answer":false,"vote_count":0,"can_vote":false,"user_voted":false,"posters":[{"extras":null,"description":"Автор","user_id":192817,"primary_group_id":41},{"extras":null,"description":"Частый автор","user_id":3657,"primary_group_id":null},{"extras":null,"description":"Частый автор","user_id":778,"primary_group_id":null},{"extras":null,"description":"Частый автор","user_id":5316,"primary_group_id":null},{"extras":"latest","description":"Последний автор","user_id":230186,"primary_group_id":null}]},{"id":897999,"title":"[Activated!] New Part Physics API","fancy_title":"[Activated!] New Part Physics API","slug":"activated-new-part-physics-api","posts_count":80,"reply_count":43,"highest_post_number":83,"image_url":null,"created_at":"2020-11-30T18:30:16.161Z","last_posted_at":"2021-02-08T20:31:36.781Z","bumped":true,"bumped_at":"2021-02-08T20:31:36.781Z","archetype":"regular","unseen":false,"last_read_post_number":33,"unread":0,"new_posts":50,"pinned":false,"unpinned":null,"visible":true,"closed":false,"archived":false,"notification_level":3,"bookmarked":false,"liked":false,"tags":["studio","physics"],"views":15373,"like_count":456,"has_summary":true,"last_poster_username":"Phoninian","category_id":36,"pinned_globally":false,"featured_link":null,"has_accepted_answer":true,"vote_count":0,"can_vote":false,"user_voted":false,"posters":[{"extras":null,"description":"Автор","user_id":119859,"primary_group_id":41},{"extras":null,"description":"Частый автор","user_id":341046,"primary_group_id":41},{"extras":null,"description":"Частый автор","user_id":222257,"primary_group_id":null},{"extras":null,"description":"Частый автор","user_id":36263,"primary_group_id":null},{"extras":"latest","description":"Последний автор","user_id":96898,"primary_group_id":null}]},{"id":878947,"title":"Luau Type Checking Release","fancy_title":"Luau Type Checking Release","slug":"luau-type-checking-release","posts_count":130,"reply_count":51,"highest_post_number":135,"image_url":"https://doy2mn9upadnk.cloudfront.net/uploads/default/original/4X/1/0/b/10b42bc7cc1bef0f79f6a79415c8a87435edf0c1.png","created_at":"2020-11-19T18:21:13.701Z","last_posted_at":"2021-02-09T20:39:33.667Z","bumped":true,"bumped_at":"2021-02-09T20:39:33.667Z","archetype":"regular","unseen":false,"pinned":false,"unpinned":null,"visible":true,"closed":false,"archived":false,"bookmarked":null,"liked":null,"tags":["scripting","studio","luau"],"views":15216,"like_count":507,"has_summary":true,"last_poster_username":"zeuxcg","category_id":36,"pinned_globally":false,"featured_link":null,"has_accepted_answer":false,"vote_count":0,"can_vote":false,"user_voted":false,"posters":[{"extras":"latest","description":"Автор, Последний автор","user_id":130,"primary_group_id":41},{"extras":null,"description":"Частый автор","user_id":346894,"primary_group_id":null},{"extras":null,"description":"Частый автор","user_id":223,"primary_group_id":null},{"extras":null,"description":"Частый автор","user_id":431,"primary_group_id":null},{"extras":null,"description":"Частый автор","user_id":87089,"primary_group_id":null}]},{"id":877873,"title":"Introducing Bulk Audio Importing in Studio!","fancy_title":"Introducing Bulk Audio Importing in Studio!","slug":"introducing-bulk-audio-importing-in-studio","posts_count":55,"reply_count":19,"highest_post_number":60,"image_url":"https://doy2mn9upadnk.cloudfront.net/uploads/default/original/4X/e/f/b/efbc663dd66369ccc18459d2ec642cc45cff3414.png","created_at":"2020-11-19T00:00:47.997Z","last_posted_at":"2021-02-07T00:36:38.741Z","bumped":true,"bumped_at":"2021-02-07T00:36:38.741Z","archetype":"regular","unseen":false,"pinned":false,"unpinned":null,"visible":true,"closed":false,"archived":false,"bookmarked":null,"liked":null,"tags":["studio"],"views":13730,"like_count":562,"has_summary":true,"last_poster_username":"jacklollz2","category_id":36,"pinned_globally":false,"featured_link":null,"has_accepted_answer":false,"vote_count":0,"can_vote":false,"user_voted":false,"posters":[{"extras":null,"description":"Автор","user_id":134567,"primary_group_id":41},{"extras":null,"description":"Частый автор","user_id":214043,"primary_group_id":null},{"extras":null,"description":"Частый автор","user_id":451394,"primary_group_id":null},{"extras":null,"description":"Частый автор","user_id":393053,"primary_group_id":null},{"extras":"latest","description":"Последний автор","user_id":9518,"primary_group_id":null}]},{"id":877312,"title":"Introducing Plugin Script Modification Permissions","fancy_title":"Introducing Plugin Script Modification Permissions","slug":"introducing-plugin-script-modification-permissions","posts_count":76,"reply_count":28,"highest_post_number":86,"image_url":"https://doy2mn9upadnk.cloudfront.net/uploads/default/optimized/4X/5/a/6/5a645ea86f19c66297c1b763bf4e77541d5ed8ca_2_1024x401.png","created_at":"2020-11-18T18:26:04.109Z","last_posted_at":"2021-01-15T23:17:58.252Z","bumped":true,"bumped_at":"2021-01-15T23:17:58.252Z","archetype":"regular","unseen":false,"pinned":false,"unpinned":null,"visible":true,"closed":false,"archived":false,"bookmarked":null,"liked":null,"tags":["studio"],"views":11452,"like_count":422,"has_summary":true,"last_poster_username":"RuizuKun_Dev","category_id":36,"pinned_globally":false,"featured_link":null,"has_accepted_answer":false,"vote_count":0,"can_vote":false,"user_voted":false,"posters":[{"extras":null,"description":"Автор","user_id":134567,"primary_group_id":41},{"extras":null,"description":"Частый автор","user_id":34253,"primary_group_id":null},{"extras":null,"description":"Частый автор","user_id":32226,"primary_group_id":null},{"extras":null,"description":"Частый автор","user_id":317122,"primary_group_id":null},{"extras":"latest","description":"Последний автор","user_id":33762,"primary_group_id":null}]},{"id":874260,"title":"Script Editor - Semantic Highlighting and Temporary Tabs are now in Beta!","fancy_title":"Script Editor - Semantic Highlighting and Temporary Tabs are now in Beta!","slug":"script-editor-semantic-highlighting-and-temporary-tabs-are-now-in-beta","posts_count":201,"reply_count":99,"highest_post_number":205,"image_url":"https://doy2mn9upadnk.cloudfront.net/uploads/default/optimized/4X/5/d/c/5dce483b91353355e69c03ffd023388cfbbbeca2_2_1024x526.jpeg","created_at":"2020-11-16T21:18:47.223Z","last_posted_at":"2021-02-07T08:17:42.638Z","bumped":true,"bumped_at":"2021-02-07T08:17:42.638Z","archetype":"regular","unseen":false,"pinned":false,"unpinned":null,"visible":true,"closed":false,"archived":false,"bookmarked":null,"liked":null,"tags":["studio","beta"],"views":13036,"like_count":1056,"has_summary":true,"last_poster_username":"KrYn0MoRe","category_id":36,"pinned_globally":false,"featured_link":null,"has_accepted_answer":false,"vote_count":0,"can_vote":false,"user_voted":false,"posters":[{"extras":null,"description":"Автор","user_id":237547,"primary_group_id":41},{"extras":null,"description":"Частый автор","user_id":1045,"primary_group_id":null},{"extras":null,"description":"Частый автор","user_id":27530,"primary_group_id":41},{"extras":null,"description":"Частый автор","user_id":47029,"primary_group_id":null},{"extras":"latest","description":"Последний автор","user_id":231587,"primary_group_id":null}]},{"id":744534,"title":"Studio is Ending Support for Mac OS X 10.10 (Yosemite)","fancy_title":"Studio is Ending Support for Mac OS X 10.10 (Yosemite)","slug":"studio-is-ending-support-for-mac-os-x-10-10-yosemite","posts_count":66,"reply_count":31,"highest_post_number":76,"image_url":null,"created_at":"2020-08-31T17:34:00.000Z","last_posted_at":"2021-01-26T22:14:45.165Z","bumped":true,"bumped_at":"2020-09-28T22:14:43.451Z","archetype":"regular","unseen":false,"pinned":false,"unpinned":null,"visible":true,"closed":true,"archived":false,"bookmarked":null,"liked":null,"tags":["studio"],"views":50641,"like_count":451,"has_summary":true,"last_poster_username":"system","category_id":36,"pinned_globally":false,"featured_link":null,"has_accepted_answer":false,"vote_count":0,"can_vote":false,"user_voted":false,"posters":[{"extras":null,"description":"Автор","user_id":285060,"primary_group_id":41},{"extras":null,"description":"Частый автор","user_id":347486,"primary_group_id":null},{"extras":null,"description":"Частый автор","user_id":416893,"primary_group_id":null},{"extras":null,"description":"Частый автор","user_id":33422,"primary_group_id":null},{"extras":"latest","description":"Последний автор","user_id":-1,"primary_group_id":null}]},{"id":746146,"title":"Display All Permissions for Group Games","fancy_title":"Display All Permissions for Group Games","slug":"display-all-permissions-for-group-games","posts_count":12,"reply_count":8,"highest_post_number":20,"image_url":null,"created_at":"2020-08-28T17:31:49.301Z","last_posted_at":"2021-01-22T17:15:00.609Z","bumped":true,"bumped_at":"2020-09-24T17:15:00.254Z","archetype":"regular","unseen":false,"last_read_post_number":20,"unread":0,"new_posts":0,"pinned":false,"unpinned":null,"visible":true,"closed":true,"archived":false,"notification_level":3,"bookmarked":false,"liked":false,"tags":["studio"],"views":43683,"like_count":251,"has_summary":false,"last_poster_username":"coefficients","category_id":36,"pinned_globally":false,"featured_link":null,"has_accepted_answer":false,"vote_count":0,"can_vote":false,"user_voted":false,"posters":[{"extras":"latest","description":"Автор, Последний автор","user_id":112950,"primary_group_id":41},{"extras":null,"description":"Частый автор","user_id":419793,"primary_group_id":null},{"extras":null,"description":"Частый автор","user_id":57718,"primary_group_id":null},{"extras":null,"description":"Частый автор","user_id":3052,"primary_group_id":null},{"extras":null,"description":"Частый автор","user_id":26244,"primary_group_id":null}]},{"id":722215,"title":"Finale of Part Surface Changes: No More Hinges","fancy_title":"Finale of Part Surface Changes: No More Hinges","slug":"finale-of-part-surface-changes-no-more-hinges","posts_count":133,"reply_count":67,"highest_post_number":143,"image_url":"https://doy2mn9upadnk.cloudfront.net/uploads/default/original/4X/d/9/b/d9bdfde1668446e0037867a9dcbd49dcc685b7eb.gif","created_at":"2020-08-13T18:09:27.690Z","last_posted_at":"2020-12-08T19:04:09.193Z","bumped":true,"bumped_at":"2020-12-08T19:04:09.193Z","archetype":"regular","unseen":false,"pinned":false,"unpinned":null,"visible":true,"closed":false,"archived":false,"bookmarked":null,"liked":null,"tags":["building","studio","physics"],"views":25124,"like_count":885,"has_summary":true,"last_poster_username":"TheSenorDuck","category_id":36,"pinned_globally":false,"featured_link":null,"has_accepted_answer":false,"vote_count":0,"can_vote":false,"user_voted":false,"posters":[{"extras":null,"description":"Автор","user_id":119859,"primary_group_id":41},{"extras":null,"description":"Частый автор","user_id":2791,"primary_group_id":null},{"extras":null,"description":"Частый автор","user_id":11348,"primary_group_id":null},{"extras":null,"description":"Частый автор","user_id":341046,"primary_group_id":41},{"extras":"latest","description":"Последний автор","user_id":431740,"primary_group_id":null}]},{"id":705528,"title":"Skinned MeshPart Studio Beta","fancy_title":"Skinned MeshPart Studio Beta","slug":"skinned-meshpart-studio-beta","posts_count":345,"reply_count":207,"highest_post_number":358,"image_url":"https://doy2mn9upadnk.cloudfront.net/uploads/default/original/4X/a/8/7/a8786999b226cbb244060442b7e3fc04154267ae.png","created_at":"2020-08-03T22:59:46.002Z","last_posted_at":"2020-12-02T00:04:48.733Z","bumped":true,"bumped_at":"2020-12-01T21:30:40.306Z","archetype":"regular","unseen":false,"pinned":false,"unpinned":null,"visible":true,"closed":true,"archived":false,"bookmarked":null,"liked":null,"tags":["studio","modeling","rendering"],"views":49892,"like_count":2218,"has_summary":true,"last_poster_username":"mothmage","category_id":36,"pinned_globally":false,"featured_link":null,"has_accepted_answer":false,"vote_count":0,"can_vote":false,"user_voted":false,"posters":[{"extras":null,"description":"Автор","user_id":155602,"primary_group_id":41},{"extras":null,"description":"Частый автор","user_id":6350,"primary_group_id":null},{"extras":null,"description":"Частый автор","user_id":8849,"primary_group_id":null},{"extras":null,"description":"Частый автор","user_id":241899,"primary_group_id":null},{"extras":"latest","description":"Последний автор","user_id":789,"primary_group_id":null}]},{"id":674209,"title":"Introducing Two Game Security Settings: Third Party Sales & Cross Game Teleports","fancy_title":"Introducing Two Game Security Settings: Third Party Sales & Cross Game Teleports","slug":"introducing-two-game-security-settings-third-party-sales-cross-game-teleports","posts_count":100,"reply_count":28,"highest_post_number":120,"image_url":"https://doy2mn9upadnk.cloudfront.net/uploads/default/original/4X/0/c/7/0c776e4648a634d0c17287869c13fbdb790f7f36.png","created_at":"2020-07-16T00:43:28.114Z","last_posted_at":"2020-11-11T21:06:01.454Z","bumped":true,"bumped_at":"2021-01-22T16:14:45.381Z","archetype":"regular","unseen":false,"pinned":false,"unpinned":null,"visible":true,"closed":false,"archived":false,"bookmarked":null,"liked":null,"tags":["studio"],"views":33642,"like_count":735,"has_summary":true,"last_poster_username":"LuukOriginal","category_id":36,"pinned_globally":false,"featured_link":null,"has_accepted_answer":false,"vote_count":0,"can_vote":false,"user_voted":false,"posters":[{"extras":null,"description":"Автор","user_id":134567,"primary_group_id":41},{"extras":null,"description":"Частый автор","user_id":273497,"primary_group_id":null},{"extras":null,"description":"Частый автор","user_id":120247,"primary_group_id":null},{"extras":null,"description":"Частый автор","user_id":38549,"primary_group_id":null},{"extras":"latest","description":"Последний автор","user_id":139902,"primary_group_id":null}]},{"id":663449,"title":"SurfaceAppearance Studio Beta","fancy_title":"SurfaceAppearance Studio Beta","slug":"surfaceappearance-studio-beta","posts_count":415,"reply_count":186,"highest_post_number":437,"image_url":"https://doy2mn9upadnk.cloudfront.net/uploads/default/original/4X/5/f/c/5fca97d93e86876dbb3ee5bd2adfa3b5f699bcfd.png","created_at":"2020-07-09T18:58:00.000Z","last_posted_at":"2021-02-15T21:51:59.958Z","bumped":true,"bumped_at":"2021-02-15T21:51:59.958Z","archetype":"regular","unseen":false,"last_read_post_number":43,"unread":55,"new_posts":339,"pinned":false,"unpinned":null,"visible":true,"closed":false,"archived":false,"notification_level":3,"bookmarked":false,"liked":false,"tags":["studio"],"views":68064,"like_count":4562,"has_summary":true,"last_poster_username":"Plutonem","category_id":36,"pinned_globally":false,"featured_link":null,"has_accepted_answer":false,"vote_count":0,"can_vote":false,"user_voted":false,"posters":[{"extras":null,"description":"Автор","user_id":38606,"primary_group_id":41},{"extras":null,"description":"Частый автор","user_id":31496,"primary_group_id":null},{"extras":null,"description":"Частый автор","user_id":326221,"primary_group_id":null},{"extras":null,"description":"Частый автор","user_id":304229,"primary_group_id":null},{"extras":"latest","description":"Последний автор","user_id":357,"primary_group_id":null}]},{"id":662464,"title":"New Beta Feature: LevelOfDetail Property for Models (Enabled Globally)","fancy_title":"New Beta Feature: LevelOfDetail Property for Models (Enabled Globally)","slug":"new-beta-feature-levelofdetail-property-for-models-enabled-globally","posts_count":51,"reply_count":18,"highest_post_number":52,"image_url":"https://doy2mn9upadnk.cloudfront.net/uploads/default/original/4X/d/e/b/deb938a882c680f766fa49d5a3b8a16f2e56b39f.png","created_at":"2020-07-08T05:12:01.996Z","last_posted_at":"2021-01-06T09:49:20.839Z","bumped":true,"bumped_at":"2021-01-06T09:49:20.839Z","archetype":"regular","unseen":false,"pinned":false,"unpinned":null,"visible":true,"closed":false,"archived":false,"bookmarked":null,"liked":null,"tags":["studio","modeling","rendering","networking"],"views":11907,"like_count":502,"has_summary":true,"last_poster_username":"Vasilakious","category_id":36,"pinned_globally":false,"featured_link":null,"has_accepted_answer":false,"vote_count":0,"can_vote":false,"user_voted":false,"posters":[{"extras":null,"description":"Автор","user_id":281177,"primary_group_id":41},{"extras":null,"description":"Частый автор","user_id":1227,"primary_group_id":null},{"extras":null,"description":"Частый автор","user_id":439104,"primary_group_id":null},{"extras":null,"description":"Частый автор","user_id":224996,"primary_group_id":null},{"extras":"latest","description":"Последний автор","user_id":92183,"primary_group_id":null}]},{"id":644467,"title":"New RaycastParams Property, Deprecating Old Raycast Functions","fancy_title":"New RaycastParams Property, Deprecating Old Raycast Functions","slug":"new-raycastparams-property-deprecating-old-raycast-functions","posts_count":91,"reply_count":53,"highest_post_number":95,"image_url":"https://doy2mn9upadnk.cloudfront.net/uploads/default/original/4X/d/3/2/d32b1ab64c2f0a4da24ffbe7450e8c6b251010f6.png","created_at":"2020-06-26T00:21:46.173Z","last_posted_at":"2021-01-01T22:29:39.110Z","bumped":true,"bumped_at":"2021-01-01T21:59:42.756Z","archetype":"regular","unseen":false,"pinned":false,"unpinned":null,"visible":true,"closed":true,"archived":false,"bookmarked":null,"liked":null,"tags":["studio","physics"],"views":13036,"like_count":396,"has_summary":true,"last_poster_username":"buildthomas","category_id":36,"pinned_globally":false,"featured_link":null,"has_accepted_answer":false,"vote_count":0,"can_vote":false,"user_voted":false,"posters":[{"extras":null,"description":"Автор","user_id":119859,"primary_group_id":41},{"extras":null,"description":"Частый автор","user_id":431,"primary_group_id":null},{"extras":null,"description":"Частый автор","user_id":9593,"primary_group_id":null},{"extras":null,"description":"Частый автор","user_id":7351,"primary_group_id":null},{"extras":"latest","description":"Последний автор","user_id":643,"primary_group_id":null}]},{"id":642684,"title":"Expressive Output Window - Beta","fancy_title":"Expressive Output Window - Beta","slug":"expressive-output-window-beta","posts_count":153,"reply_count":44,"highest_post_number":170,"image_url":null,"created_at":"2020-06-25T19:30:00.000Z","last_posted_at":"2020-12-05T18:24:48.359Z","bumped":true,"bumped_at":"2020-12-05T18:32:03.488Z","archetype":"regular","unseen":false,"last_read_post_number":107,"unread":0,"new_posts":63,"pinned":false,"unpinned":null,"visible":true,"closed":false,"archived":false,"notification_level":3,"bookmarked":false,"liked":false,"tags":["studio","output-window"],"views":23650,"like_count":1181,"has_summary":true,"last_poster_username":"Dummy_Tested","category_id":36,"pinned_globally":false,"featured_link":null,"has_accepted_answer":false,"vote_count":0,"can_vote":false,"user_voted":false,"posters":[{"extras":null,"description":"Автор","user_id":192817,"primary_group_id":41},{"extras":null,"description":"Частый автор","user_id":153142,"primary_group_id":null},{"extras":null,"description":"Частый автор","user_id":86089,"primary_group_id":null},{"extras":null,"description":"Частый автор","user_id":220864,"primary_group_id":null},{"extras":"latest","description":"Последний автор","user_id":186756,"primary_group_id":null}]},{"id":643907,"title":"Universal Breakpoints Beta - One Breakpoint to Rule Them All","fancy_title":"Universal Breakpoints Beta - One Breakpoint to Rule Them All","slug":"universal-breakpoints-beta-one-breakpoint-to-rule-them-all","posts_count":18,"reply_count":3,"highest_post_number":21,"image_url":null,"created_at":"2020-06-25T18:28:25.069Z","last_posted_at":"2020-11-26T15:43:44.683Z","bumped":true,"bumped_at":"2020-07-29T15:43:43.770Z","archetype":"regular","unseen":false,"pinned":false,"unpinned":null,"visible":true,"closed":true,"archived":false,"bookmarked":null,"liked":null,"tags":["studio","debugger"],"views":11147,"like_count":140,"has_summary":false,"last_poster_username":"system","category_id":36,"pinned_globally":false,"featured_link":null,"has_accepted_answer":false,"vote_count":0,"can_vote":false,"user_voted":false,"posters":[{"extras":null,"description":"Автор","user_id":192817,"primary_group_id":41},{"extras":null,"description":"Частый автор","user_id":112950,"primary_group_id":41},{"extras":null,"description":"Частый автор","user_id":120247,"primary_group_id":null},{"extras":null,"description":"Частый автор","user_id":23710,"primary_group_id":null},{"extras":"latest","description":"Последний автор","user_id":-1,"primary_group_id":null}]},{"id":642282,"title":"Additional Game Management in Roblox Studio","fancy_title":"Additional Game Management in Roblox Studio","slug":"additional-game-management-in-roblox-studio","posts_count":88,"reply_count":21,"highest_post_number":92,"image_url":"https://doy2mn9upadnk.cloudfront.net/uploads/default/optimized/4X/e/2/4/e24da11e138f564733aabacad3558b95a720830c_2_1023x638.png","created_at":"2020-06-24T23:21:00.000Z","last_posted_at":"2020-12-22T12:36:54.093Z","bumped":true,"bumped_at":"2020-08-24T12:36:47.186Z","archetype":"regular","unseen":false,"last_read_post_number":82,"unread":2,"new_posts":8,"pinned":false,"unpinned":null,"visible":true,"closed":true,"archived":false,"notification_level":3,"bookmarked":false,"liked":false,"tags":["studio"],"views":12540,"like_count":421,"has_summary":true,"last_poster_username":"system","category_id":36,"pinned_globally":false,"featured_link":null,"has_accepted_answer":true,"vote_count":0,"can_vote":false,"user_voted":false,"posters":[{"extras":null,"description":"Автор","user_id":33422,"primary_group_id":null},{"extras":null,"description":"Частый автор","user_id":77150,"primary_group_id":null},{"extras":null,"description":"Частый автор","user_id":306008,"primary_group_id":null},{"extras":null,"description":"Частый автор","user_id":103015,"primary_group_id":null},{"extras":"latest","description":"Последний автор","user_id":-1,"primary_group_id":null}]},{"id":639903,"title":"Future Is Bright: Phase 3 - Studio Beta","fancy_title":"Future Is Bright: Phase 3 - Studio Beta","slug":"future-is-bright-phase-3-studio-beta","posts_count":1160,"reply_count":657,"highest_post_number":1233,"image_url":"https://doy2mn9upadnk.cloudfront.net/uploads/default/original/4X/e/6/4/e643cf506a8ac153c7720bab4af414a88eaf0a9a.png","created_at":"2020-06-23T09:13:23.197Z","last_posted_at":"2021-02-04T17:43:41.911Z","bumped":true,"bumped_at":"2021-02-04T17:43:41.911Z","archetype":"regular","unseen":false,"pinned":false,"unpinned":null,"visible":true,"closed":false,"archived":false,"bookmarked":null,"liked":null,"tags":["building","studio"],"views":97604,"like_count":12547,"has_summary":true,"last_poster_username":"DoctorNO2106","category_id":36,"pinned_globally":false,"featured_link":null,"has_accepted_answer":false,"vote_count":0,"can_vote":false,"user_voted":false,"posters":[{"extras":null,"description":"Автор","user_id":210201,"primary_group_id":41},{"extras":null,"description":"Частый автор","user_id":12817,"primary_group_id":null},{"extras":null,"description":"Частый автор","user_id":380713,"primary_group_id":null},{"extras":null,"description":"Частый автор","user_id":289807,"primary_group_id":null},{"extras":"latest","description":"Последний автор","user_id":317122,"primary_group_id":null}]},{"id":623350,"title":"Plugin Debugging: New Beta Feature!","fancy_title":"Plugin Debugging: New Beta Feature!","slug":"plugin-debugging-new-beta-feature","posts_count":42,"reply_count":13,"highest_post_number":42,"image_url":null,"created_at":"2020-06-12T22:29:13.391Z","last_posted_at":"2020-12-18T17:38:25.942Z","bumped":true,"bumped_at":"2021-02-13T17:57:38.712Z","archetype":"regular","unseen":false,"last_read_post_number":6,"unread":36,"new_posts":0,"pinned":false,"unpinned":null,"visible":true,"closed":false,"archived":false,"notification_level":3,"bookmarked":false,"liked":false,"tags":["studio"],"views":12535,"like_count":287,"has_summary":false,"last_poster_username":"Eternalove_fan32","category_id":36,"pinned_globally":false,"featured_link":null,"has_accepted_answer":false,"vote_count":0,"can_vote":false,"user_voted":false,"posters":[{"extras":null,"description":"Автор","user_id":10734,"primary_group_id":41},{"extras":null,"description":"Частый автор","user_id":363802,"primary_group_id":50},{"extras":null,"description":"Частый автор","user_id":341046,"primary_group_id":41},{"extras":null,"description":"Частый автор","user_id":223,"primary_group_id":null},{"extras":"latest","description":"Последний автор","user_id":224243,"primary_group_id":null}]},{"id":582921,"title":"Script Editor - New Foundation and First Features","fancy_title":"Script Editor - New Foundation and First Features","slug":"script-editor-new-foundation-and-first-features","posts_count":104,"reply_count":42,"highest_post_number":106,"image_url":"https://doy2mn9upadnk.cloudfront.net/uploads/default/original/4X/1/9/1/191215aedf29cd0902640dcd2faffcdcfe1faeda.jpeg","created_at":"2020-06-11T18:09:00.000Z","last_posted_at":"2020-11-18T13:40:56.854Z","bumped":true,"bumped_at":"2020-07-21T13:40:56.784Z","archetype":"regular","unseen":false,"last_read_post_number":6,"unread":94,"new_posts":6,"pinned":false,"unpinned":null,"visible":true,"closed":true,"archived":false,"notification_level":3,"bookmarked":false,"liked":false,"tags":["studio","script-editor"],"views":23750,"like_count":602,"has_summary":true,"last_poster_username":"system","category_id":36,"pinned_globally":false,"featured_link":null,"has_accepted_answer":false,"vote_count":0,"can_vote":false,"user_voted":false,"posters":[{"extras":null,"description":"Автор","user_id":192817,"primary_group_id":41},{"extras":null,"description":"Частый автор","user_id":778,"primary_group_id":null},{"extras":null,"description":"Частый автор","user_id":12817,"primary_group_id":null},{"extras":null,"description":"Частый автор","user_id":84276,"primary_group_id":null},{"extras":"latest","description":"Последний автор","user_id":-1,"primary_group_id":null}]},{"id":552810,"title":"Introducing SmoothingAngle property for PartOperation (Enabled Globally)","fancy_title":"Introducing SmoothingAngle property for PartOperation (Enabled Globally)","slug":"introducing-smoothingangle-property-for-partoperation-enabled-globally","posts_count":103,"reply_count":33,"highest_post_number":106,"image_url":"https://doy2mn9upadnk.cloudfront.net/uploads/default/original/4X/0/7/c/07c3ad00b386afbf9cc8924d69c86bceecfe003c.png","created_at":"2020-05-06T21:42:00.000Z","last_posted_at":"2020-09-09T11:12:18.309Z","bumped":true,"bumped_at":"2020-08-04T18:46:27.868Z","archetype":"regular","unseen":false,"pinned":false,"unpinned":null,"visible":true,"closed":true,"archived":false,"bookmarked":null,"liked":null,"tags":["studio","csg","csgv2"],"views":36298,"like_count":855,"has_summary":true,"last_poster_username":"system","category_id":36,"pinned_globally":false,"featured_link":null,"has_accepted_answer":false,"vote_count":0,"can_vote":false,"user_voted":false,"posters":[{"extras":null,"description":"Автор","user_id":281177,"primary_group_id":41},{"extras":null,"description":"Частый автор","user_id":317063,"primary_group_id":null},{"extras":null,"description":"Частый автор","user_id":14154,"primary_group_id":null},{"extras":null,"description":"Частый автор","user_id":202896,"primary_group_id":null},{"extras":"latest","description":"Последний автор","user_id":-1,"primary_group_id":null}]},{"id":529077,"title":"New Studio Feature - CollisionFidelity.PreciseConvexDecomposition (Enabled Globally)","fancy_title":"New Studio Feature - CollisionFidelity.PreciseConvexDecomposition (Enabled Globally)","slug":"new-studio-feature-collisionfidelity-preciseconvexdecomposition-enabled-globally","posts_count":140,"reply_count":59,"highest_post_number":146,"image_url":"https://doy2mn9upadnk.cloudfront.net/uploads/default/original/4X/1/f/d/1fd823f35f415e8e12eee67d842f70f638f38c5a.png","created_at":"2020-04-17T14:59:53.209Z","last_posted_at":"2021-01-03T23:10:39.815Z","bumped":true,"bumped_at":"2021-01-03T23:14:21.658Z","archetype":"regular","unseen":false,"last_read_post_number":2,"unread":136,"new_posts":8,"pinned":false,"unpinned":null,"visible":true,"closed":false,"archived":false,"notification_level":3,"bookmarked":false,"liked":false,"tags":["studio"],"views":50555,"like_count":862,"has_summary":true,"last_poster_username":"TheGreat_Scott","category_id":36,"pinned_globally":false,"featured_link":null,"has_accepted_answer":false,"vote_count":0,"can_vote":false,"user_voted":false,"posters":[{"extras":null,"description":"Автор","user_id":201,"primary_group_id":41},{"extras":null,"description":"Частый автор","user_id":300,"primary_group_id":null},{"extras":null,"description":"Частый автор","user_id":85229,"primary_group_id":null},{"extras":null,"description":"Частый автор","user_id":186768,"primary_group_id":null},{"extras":"latest","description":"Последний автор","user_id":286481,"primary_group_id":null}]}]}}) +}) + +app.get("/my/settings/json", (req, res) => { + res.json({"PreviousUserNames":"","UserId":1,"Name":"df","UseSuperSafePrivacyMode":false,"IsSuperSafeModeEnabledForPrivacySetting":false,"UseSuperSafeChat":false,"IsAppChatSettingEnabled":true,"IsGameChatSettingEnabled":true,"IsAccountPrivacySettingsV2Enabled":true,"IsSetPasswordNotificationEnabled":false,"ChangePasswordRequiresTwoStepVerification":false,"ChangeEmailRequiresTwoStepVerification":false,"UserEmail":"","IsEmailOnFile":false,"UserEmailMasked":true,"IsEmailVerified":false,"UserEmailVerified":false,"CanHideInventory":false,"CanTrade":false,"MissingParentEmail":false,"IsUpdateEmailSectionShown":false,"IsUnder13UpdateEmailMessageSectionShown":false,"IsUserConnectedToFacebook":false,"IsTwoStepToggleEnabled":false,"AgeBracket":0,"UserAbove13":true,"ClientIpAddress":"123.123.123.123","AccountAgeInDays":0,"IsOBC":false,"IsTBC":false,"IsAnyBC":false,"IsPremium":false,"IsBcRenewalMembership":false,"BcExpireDate":"/Date(-0)/","BcRenewalPeriod":null,"BcLevel":null,"HasCurrencyOperationError":false,"CurrencyOperationErrorMessage":null,"BlockedUsersModel":{"BlockedUserIds":[],"BlockedUsers":[],"MaxBlockedUsers":50,"Total":1,"Page":1},"Tab":null,"ChangePassword":false,"IsAccountPinEnabled":false,"IsAccountRestrictionsFeatureEnabled":true,"IsAccountRestrictionsSettingEnabled":false,"IsAccountSettingsSocialNetworksV2Enabled":false,"IsUiBootstrapModalV2Enabled":true,"IsI18nBirthdayPickerInAccountSettingsEnabled":true,"InApp":false,"MyAccountSecurityModel":{"IsEmailSet":false,"IsEmailVerified":false,"IsTwoStepEnabled":false,"ShowSignOutFromAllSessions":true,"TwoStepVerificationViewModel":{"UserId":1,"IsEnabled":true,"CodeLength":0,"ValidCodeCharacters":null}},"ApiProxyDomain":"https://www.mete0r.xyz","AccountSettingsApiDomain":"https://www.mete0r.xyz","AuthDomain":"https://www.mete0r.xyz","IsDisconnectFbSocialSignOnEnabled":true,"IsDisconnectXboxEnabled":true,"NotificationSettingsDomain":"https://www.mete0r.xyz","AllowedNotificationSourceTypes":["Test","FriendRequestReceived","FriendRequestAccepted","PartyInviteReceived","PartyMemberJoined","ChatNewMessage","PrivateMessageReceived","UserAddedToPrivateServerWhiteList","ConversationUniverseChanged","TeamCreateInvite","GameUpdate","DeveloperMetricsAvailable"],"AllowedReceiverDestinationTypes":["DesktopPush","NotificationStream"],"BlacklistedNotificationSourceTypesForMobilePush":[],"MinimumChromeVersionForPushNotifications":50,"PushNotificationsEnabledOnFirefox":true,"LocaleApiDomain":"https://www.mete0r.xyz","HasValidPasswordSet":true,"IsUpdateEmailApiEndpointEnabled":true,"FastTrackMember":null,"IsFastTrackAccessible":false,"HasFreeNameChange":false,"IsAgeDownEnabled":true,"IsSendVerifyEmailApiEndpointEnabled":true,"IsPromotionChannelsEndpointEnabled":true,"ReceiveNewsletter":false,"SocialNetworksVisibilityPrivacy":6,"SocialNetworksVisibilityPrivacyValue":"AllUsers","Facebook":null,"Twitter":null,"YouTube":null,"Twitch":null}) +}) + +const userinfoClient = require('./routes/userinfoclient.js'); + +app.use('/',userinfoClient) + +app.get('/metrics',async (req, res) => { + res.set('Content-Type', client.register.contentType) + res.end(await client.register.metrics()) + }) + +app.disable('etag'); + +app.get('/currency/balance',requireAuth, (req, res) => { + return res.json({ + "robux": req.userdocument.coins, + "tickets": 0 + }) +}) + +app.post('/device/initialize', (req, res) => { + return res.json({"browserTrackerId":1,"appDeviceIdentifier":null}) +}) +app.post('/login/v1/', (req, res) => { + return res.json({ + "userId": "12345" + }) +}) +app.get('/my/account/json', (req, res) => { + return res.json({ + AgeBracket : 0, + Email : { + IsVerified : 1, + Value : "kmulherin@roblox.com", + }, + HasPasswordSet : 1, + Username : "iMightBeLying" + }) +}) +app.get('/ab/v1/enroll', (req, res) => { + return res.json({"baller":"baller"}) +}) + +app.get('/GetAllowedMD5Hashes', (req, res) => { + return res.json({"data":["7ede9e9841e46b0538c3b684d979f759","268b4bb9ffcc0586cc13fbbb3e4de16f"]}) +}) + +app.get('/GetAllowedSecurityVersions', (req, res) => { + return res.json({"data":["0.347.0pcplayer"]}) +}) + +app.get('/asset-thumbnail/json', (req, res) => { + return res.json({"Url":"https://mete0r.xyz/assets/images/lol.png","Final":true,"SubstitutionType":0}) +}) + +app.get('/avatar-thumbnail/json', (req, res) => { + return res.json({"Url":"https://mete0r.xyz/api/thumbnailrender/?id="+req.query.userId,"Final":true,"SubstitutionType":0}) +}) + +app.get('/v1.1/avatar-fetch',async (req, res) => { // 2018 charapp + //console.log(req.headers) + const userid = req.query?.userId + const placeId = req.query?.placeId??0 + const doc = await user.findOne({userid: userid}) + const placedoc = await games.findOne({idofgame: placeId}) + if (!doc){ + return res.json({status:"error",error:"User not found."}) + } + if (!placedoc){ + return res.json({status:"error",error:"Place not found."}) + } + //console.log(doc.colors) + let json = {"resolvedAvatarType":doc.avatartype??"R6","accessoryVersionIds":[],"equippedGearVersionIds":[],"backpackGearVersionIds":[],"bodyColors":{"HeadColor":parseFloat(doc.colors.find(x => x.name === 'Head').value),"LeftArmColor":parseFloat(doc.colors.find(x => x.name === 'Left Arm').value),"LeftLegColor":parseFloat(doc.colors.find(x => x.name === 'Left Leg').value),"RightArmColor":parseFloat(doc.colors.find(x => x.name === 'Right Arm').value),"RightLegColor":parseFloat(doc.colors.find(x => x.name === 'Right Leg').value),"TorsoColor":parseFloat(doc.colors.find(x => x.name === 'Torso').value)},"animations":{},"scales":{"Width":1.0000,"Height":1.0000,"Head":1.0000,"Depth":1.00,"Proportion":0.0000,"BodyType":0.0000}} + if (!doc.inventory){ + return res.json(json) + } + for (var key of doc.inventory) { + if (key.Equipped === true){ + if (placedoc.gearallowed??false === true){ + json.accessoryVersionIds.push(parseFloat(key.ItemId)) + }else{ + if (key.Type != "Gears"){ + json.accessoryVersionIds.push(parseFloat(key.ItemId)) + } + } + } + } + //console.log(json.accessoryVersionIds) + return res.json(json) +}) + +app.get('/v1/avatar-fetch',async (req, res) => { // 2020 charapp + //console.log(req.headers) + const userid = req.query?.userId + const placeId = req.query?.placeId??0 + const doc = await user.findOne({userid: userid}) + const placedoc = await games.findOne({idofgame: placeId}) + if (!doc){ + return res.json({status:"error",error:"User not found."}) + } + if (!placedoc){ + return res.json({status:"error",error:"Place not found."}) + } + if (req.headers?.['roblox-game-id'] === "render"){ + // 2020 render needs v1.1 colors + let json = {"resolvedAvatarType":doc.avatartype??"R6","accessoryVersionIds":[],"equippedGearVersionIds":[],"backpackGearVersionIds":[],"bodyColors":{"HeadColor":parseFloat(doc.colors.find(x => x.name === 'Head').value),"LeftArmColor":parseFloat(doc.colors.find(x => x.name === 'Left Arm').value),"LeftLegColor":parseFloat(doc.colors.find(x => x.name === 'Left Leg').value),"RightArmColor":parseFloat(doc.colors.find(x => x.name === 'Right Arm').value),"RightLegColor":parseFloat(doc.colors.find(x => x.name === 'Right Leg').value),"TorsoColor":parseFloat(doc.colors.find(x => x.name === 'Torso').value)},"animations":{},"scales":{"Width":1.0000,"Height":1.0000,"Head":1.0000,"Depth":1.00,"Proportion":0.0000,"BodyType":0.0000}} + if (!doc.inventory){ + return res.json(json) + } + for (var key of doc.inventory) { + if (key.Equipped === true){ + json.accessoryVersionIds.push(parseFloat(key.ItemId)) + } + } + //console.log(json.accessoryVersionIds) + return res.json(json) + } + //console.log(doc.colors) + let json = {"resolvedAvatarType":doc.avatartype??"R6","assetAndAssetTypeIds":[],"equippedGearVersionIds":[],"backpackGearVersionIds":[],"bodyColors":{"headColorId":parseFloat(doc.colors.find(x => x.name === 'Head').value),"leftArmColorId":parseFloat(doc.colors.find(x => x.name === 'Left Arm').value),"leftLegColorId":parseFloat(doc.colors.find(x => x.name === 'Left Leg').value),"rightArmColorId":parseFloat(doc.colors.find(x => x.name === 'Right Arm').value),"rightLegColorId":parseFloat(doc.colors.find(x => x.name === 'Right Leg').value),"torsoColorId":parseFloat(doc.colors.find(x => x.name === 'Torso').value)},"animations":{},"scales":{"Width":1.0000,"Height":1.0000,"Head":1.0000,"Depth":1.00,"Proportion":0.0000,"BodyType":0.0000}, "emotes":[]} + if (!doc.inventory){ + return res.json(json) + } + let currentEmotePosition = 1 + for (var key of doc.inventory) { + if (key.Equipped === true){ + + if (key.Type === "Emotes" && currentEmotePosition <= 8){ + json.emotes.push({"assetId":parseFloat(key.ItemId),"assetName":key.ItemName,"position": currentEmotePosition}) + currentEmotePosition += 1 + } + let gearallowed = placedoc.gearallowed??false + + if ((gearallowed === true) && key.Type != "Emotes"){ + json.assetAndAssetTypeIds.push({"assetId":parseFloat(key.ItemId),"assetTypeId":8}) + }else if ((gearallowed === false) && key.Type != "Emotes"){ + if (key.Type != "Gears"){ + json.assetAndAssetTypeIds.push({"assetId":parseFloat(key.ItemId),"assetTypeId":8}) + } + } + } + } + //console.log(json.accessoryVersionIds) + return res.json(json) +}) + +app.get('/v2/users/:id/groups/roles',async (req, res) => { // 2020 admin badge + + const userid = req.params?.id + const doc = await user.findOne({userid: userid}) + if (!doc){ + return res.json({status:"error",error:"User not found."}) + } + if (doc.admin === true){ + return res.json({ + "data": [ + { + "group": { + "id": 1200769, + "name": "Official Group of Roblox", + "memberCount": 1976, + "hasVerifiedBadge": false + }, + "role": { + "id": 41221804, + "name": "Team Member", + "rank": 20 + } + } + ] + }) + } + return res.json({ + "data": [] + }) + + + +}) + +app.all('/v1.1/game-start-info/',async (req, res) => { // 2020 game settings + const placeid = req.query.universeId??0 + const doc = await games.findOne({idofgame: placeid}) + if (!doc){ + return res.json({status:"error",error:"Game not found."}) + } + const json = {"gameAvatarType":"PlayerChoice","allowCustomAnimations":"True","universeAvatarCollisionType":"OuterBox","universeAvatarBodyType":"Standard","jointPositioningType":"ArtistIntent","message":"","universeAvatarMinScales":{"height":0.90,"width":0.70,"head":0.95,"depth":0.0,"proportion":0.00,"bodyType":0.00},"universeAvatarMaxScales":{"height":1.05,"width":1.00,"head":1.00,"depth":0.0,"proportion":0.00,"bodyType":0.00},"universeAvatarAssetOverrides":[],"moderationStatus":null} + + json.gameAvatarType = doc.avatartype??"PlayerChoice" + if (doc.avatartype){ + json.gameAvatarType = "MorphTo"+json.gameAvatarType + } + return res.json(json) +}) + +app.all(['//moderation/v2/filtertext','/moderation/v2/filtertext'], (req, res) => { + const filtered = [ + 'faggot', + 'nigger', + 'nigga', + 'sex' + ] + let filteredtext = req.body?.text + if (filtered.includes(filteredtext) === true || filtered.some(substr => filteredtext.toLowerCase().startsWith(substr.toLowerCase())) === true){ + //filteredtext = '#'.repeat(req.body?.text?.length) + //filteredtext = filteredtext.replaceAll(filtered,"#") + let regex + for (var i = 0; i < filtered.length; i++) { + regex = new RegExp(filtered[i], "g"); + filteredtext = filteredtext.replace(regex, "#".repeat(filtered[i].length)); + } + } + //console.log(req.body) + return res.json({ + "data": { + "AgeUnder13": filteredtext, + "Age13OrOver": filteredtext + }, + "success": true + }) +}) + +app.post("/v2/login", (req, res) => { + //console.log(req.body) + return res.json({ + "user": { + "id": 1, + "name": "bruh" + }, + "isBanned": false + }) +}) + +app.all('/v1/login', (req, res) => { + //console.log(req.body) + res.cookie('.ROBLOSECURITY','_|WARNING:-DO-NOT-SHARE-THIS.--Sharing-this-will-allow-someone-to-log-in-as-you-and-to-steal-your-ROBUX-and-items.|_DGJJD464646464dfgdgdgdCUdgjneth4iht4ih64uh4uihy4y4yuhi4yhuiyhui4yhui4uihy4huiyhu4iyhuihu4hhdghdgihdigdhuigdhuigidhugihugdgidojgijodijogdijogdjoigdjoidijogijodgijdgiojdgijodgijoF') + res.cookie('.RBXID','_|WARNING:-DO-NOT-SHARE-THIS.--Sharing-this-will-allow-someone-to-log-in-as-you-and-to-steal-your-ROBUX-and-items.|_eyJhbGciOiJIUzI1NiJ9.eyJqdGkiOiI2NDA3MGQyNC0zYWR4LTQ5NzMtODAxYy0yOWNhNzUyNTA5NjIiLCJzdWfdijogdoijdijogijodcB6YExhM') + return res.json({ "user":{ "id":1, "name":"Shit", "displayName":"Shitter" } }) +}) + +app.get('/initialize',async (req, res) => { + var ip = req.headers['cf-connecting-ip'] || req.socket.remoteAddress + ip = ip.toString() + await ipWhiteListRepository.save(ip, { + ip: ip + }) + //await ipWhiteListRepository.expire(ip, 24 * 60 * 60 * 7 * 4) + return res.redirect("/") +}) + +app.get('/Usapi/:id', async (req,res) => { + const userid = req.params?.id + const doc = await user.findOne({userid: userid}) + if (!doc){ + return res.json({status:"error",error:"User not found."}) + } + + return res.json({"Id":doc.userid,"Username":doc.username,"AvatarUri":null,"AvatarFinal":false,"IsOnline":false}) +}) // TODO remove this + +app.get('/assets/ugc/*', async (req,res) => { + return res.status(404).end() +}) // protect this route + +app.use('/assets', express.static('assets')) + +app.use(handler) + +console.log('here') +if (PROD === "true"){ + app.listen(9000,'localhost') +}else{ + app.listen(80) // don't forget to change to 9000 for production + const localPrivateKeyPath = process.env.PRIVATEKEYLOCAL + const localCertificatePath = process.env.LOCALCERTIFICATEPATH + var privateKey = require('fs').readFileSync( localPrivateKeyPath ); + var certificate = require('fs').readFileSync( localCertificatePath ); + https.createServer({ + key: privateKey, + cert: certificate + }, app).listen(443); // remove this for prod +} + +const f = { + "Mode":"Thumbnail", + "Settings": { + "Type":"Avatar_R15_Action", + "PlaceId":1818, + "UserId":0, + "BaseUrl":"mete0r.xyz", + "MatchmakingContextId":1, + "Arguments": ["https://www.mete0r.xyz","https://api.mete0r.xyz/v1.1/avatar-fetch?userId=0","PNG",420,420] + }, + "Arguments":{ + "PrefferedPort":53640, + "MachineAddress":"localhost" + } + } \ No newline at end of file diff --git a/thumbnailrcctalk.js b/thumbnailrcctalk.js new file mode 100644 index 0000000..9e4a8f3 --- /dev/null +++ b/thumbnailrcctalk.js @@ -0,0 +1,319 @@ +const fetch = (...args) => import('node-fetch').then(({default: fetch}) => fetch(...args)); +let controller = new AbortController(); +require('dotenv').config() +const RCC_HOST = process.env.RCC_HOST + + const url = 'http://'+RCC_HOST+':64990'; // change this to rcc soap +var convert = require('xml-js'); +const sampleHeaders = { + 'Content-Type': 'text/xml;charset=UTF-8', +}; + + + +async function OpenJob(jobid,script,expiration){ + return new Promise(async (resolve, reject) => { + // this is all boilerplate because soap sucks +var xml = { + _declaration: { _attributes: { version: '1.0', encoding: 'UTF-8' } }, + 'SOAP-ENV:Envelope': { + _attributes: { + 'xmlns:SOAP-ENV': 'http://schemas.xmlsoap.org/soap/envelope/', + 'xmlns:ns1': 'http://roblox.com/' + }, + 'SOAP-ENV:Body': { + 'ns1:OpenJobEx': { + 'ns1:job': { + 'ns1:id': { _text: 'StringTest11' }, + 'ns1:expirationInSeconds': { _text: '10' }, + 'ns1:category': { _text: '0' }, + 'ns1:cores': { _text: '1' } + }, + 'ns1:script': { + 'ns1:name': { _text: 'StringTest11-Script' }, + 'ns1:script': { + _text: 'print("Recieved job with ID " .. game.JobId)\r\n' + }, + 'ns1:arguments': {} + } + } + } + } + } +xml['SOAP-ENV:Envelope']['SOAP-ENV:Body']['ns1:OpenJobEx']['ns1:job']['ns1:id']._text = jobid +xml['SOAP-ENV:Envelope']['SOAP-ENV:Body']['ns1:OpenJobEx']['ns1:job']['ns1:expirationInSeconds']._text = expiration +if (!expiration) { + xml['SOAP-ENV:Envelope']['SOAP-ENV:Body']['ns1:OpenJobEx']['ns1:job']['ns1:expirationInSeconds']._text = "60" +} +xml['SOAP-ENV:Envelope']['SOAP-ENV:Body']['ns1:OpenJobEx']['ns1:script']['ns1:script']._text = script +const body = convert.js2xml(xml, { compact: true, spaces: 4 }) + + try { + const result = await fetch(url, { method: 'POST', body }) + const data = await result.text() + const convertedData = convert.xml2js(data, { compact: true, spaces: 4 }) + return resolve( + convertedData + ) + } catch (error) { + return reject(error) + } + }) +} + + + +async function GetAllJobs() { + return new Promise(async (resolve, reject) => { + const xmlData = (xml = { + _declaration: { + _attributes: { version: '1.0', encoding: 'UTF - 8' }, + }, + 'SOAP-ENV:Envelope': { + _attributes: { + 'xmlns:SOAP-ENV': 'http://schemas.xmlsoap.org/soap/envelope/', + 'xmlns:SOAP-ENC': 'http://schemas.xmlsoap.org/soap/encoding/', + 'xmlns:xsi': 'http://www.w3.org/2001/XMLSchema-instance', + 'xmlns:xsd': 'http://www.w3.org/2001/XMLSchema', + 'xmlns:ns2': 'http://roblox.com/RCCServiceSoap', + 'xmlns:ns1': 'http://roblox.com/', + 'xmlns:ns3': 'http://roblox.com/RCCServiceSoap12', + }, + 'SOAP-ENV:Body': { 'ns1:GetAllJobsEx': {} }, + }, + }) + + const body = convert.js2xml(xmlData, { compact: true, spaces: 4 }) + + try { + const result = await fetch(url, { method: 'POST', body }) + const data = await result.text() + const convertedData = convert.xml2js(data, { compact: true, spaces: 4 }) + return resolve( + convertedData['SOAP-ENV:Envelope']['SOAP-ENV:Body']['ns1:GetAllJobsExResponse']['ns1:GetAllJobsExResult'] + ) + } catch (error) { + return reject(error) + } + }) +} + +async function Execute(jobid,script) { + return new Promise(async (resolve, reject) => { + var xml = { + _declaration: { _attributes: { version: '1.0', encoding: 'UTF - 8' } }, + 'SOAP-ENV:Envelope': { + _attributes: { + 'xmlns:SOAP-ENV': 'http://schemas.xmlsoap.org/soap/envelope/', + 'xmlns:SOAP-ENC': 'http://schemas.xmlsoap.org/soap/encoding/', + 'xmlns:xsi': 'http://www.w3.org/2001/XMLSchema-instance', + 'xmlns:xsd': 'http://www.w3.org/2001/XMLSchema', + 'xmlns:ns2': 'http://roblox.com/RCCServiceSoap', + 'xmlns:ns1': 'http://roblox.com/', + 'xmlns:ns3': 'http://roblox.com/RCCServiceSoap12' + }, + 'SOAP-ENV:Body': { + 'ns1:ExecuteEx': { + 'ns1:jobID': { _text: 'Test' }, + 'ns1:script': { + 'ns1:name': { _text: 'Script' }, + 'ns1:script': { _text: 'print("no")' }, + 'ns1:arguments': { _text: '' } + } + } + } + } + } +xml['SOAP-ENV:Envelope']['SOAP-ENV:Body']['ns1:ExecuteEx']['ns1:jobID']._text = jobid +xml['SOAP-ENV:Envelope']['SOAP-ENV:Body']['ns1:ExecuteEx']['ns1:script']['ns1:script']._text = script + const body = convert.js2xml(xml, { compact: true, spaces: 4 }) + + try { + const result = await fetch(url, { method: 'POST', body }) + const data = await result.text() + const convertedData = convert.xml2js(data, { compact: true, spaces: 4 }) + return resolve( + convertedData + ) + } catch (error) { + return reject(error) + } + }) + +} +async function CloseJob(jobid) { + return new Promise(async (resolve, reject) => { + var xml = { + _declaration: { _attributes: { version: '1.0', encoding: 'UTF - 8' } }, + 'SOAP-ENV:Envelope': { + _attributes: { + 'xmlns:SOAP-ENV': 'http://schemas.xmlsoap.org/soap/envelope/', + 'xmlns:SOAP-ENC': 'http://schemas.xmlsoap.org/soap/encoding/', + 'xmlns:xsi': 'http://www.w3.org/2001/XMLSchema-instance', + 'xmlns:xsd': 'http://www.w3.org/2001/XMLSchema', + 'xmlns:ns2': 'http://roblox.com/RCCServiceSoap', + 'xmlns:ns1': 'http://roblox.com/', + 'xmlns:ns3': 'http://roblox.com/RCCServiceSoap12' + }, + 'SOAP-ENV:Body': { + 'ns1:CloseJob': { + 'ns1:jobID': { _text: 'Test' } + } + } + } + } + xml['SOAP-ENV:Envelope']['SOAP-ENV:Body']['ns1:CloseJob']['ns1:jobID']._text = jobid + const body = convert.js2xml(xml, { compact: true, spaces: 4 }) + + try { + const result = await fetch(url, { method: 'POST', body }) + const data = await result.text() + const convertedData = convert.xml2js(data, { compact: true, spaces: 4 }) + return resolve( + convertedData + ) + } catch (error) { + return reject(error) + } + }) +} + + +async function RenewLease(jobid,expiration) { + return new Promise(async (resolve, reject) => { + var xml = { + _declaration: { _attributes: { version: '1.0', encoding: 'UTF-8' } }, + 'SOAP-ENV:Envelope': { + _attributes: { + 'xmlns:SOAP-ENV': 'http://schemas.xmlsoap.org/soap/envelope/', + 'xmlns:ns1': 'http://roblox.com/', + 'xmlns:xsi': 'http://www.w3.org/2001/XMLSchema-instance' + }, + 'SOAP-ENV:Body': { + 'ns1:RenewLease': { + 'ns1:jobID': { + _attributes: { 'xsi:type': 'ns1:Job' }, + 'ns1:id': { _text: 'StringTest11' }, + 'ns1:expirationInSeconds': { _text: '10' }, + 'ns1:category': { _text: '0' }, + 'ns1:cores': { _text: '1' } + }, + 'ns1:expirationInSeconds': { _text: '100' } + } + } + } + } + xml['SOAP-ENV:Envelope']['SOAP-ENV:Body']['ns1:RenewLease']['ns1:jobID']['ns1:id']._text = jobid + xml['SOAP-ENV:Envelope']['SOAP-ENV:Body']['ns1:RenewLease']['ns1:expirationInSeconds']._text = expiration + const body = convert.js2xml(xml, { compact: true, spaces: 4 }) + + try { + const result = await fetch(url, { method: 'POST', body }) + const data = await result.text() + const convertedData = convert.xml2js(data, { compact: true, spaces: 4 }) + return resolve( + convertedData + ) + } catch (error) { + return reject(error) + } + }) +} + +async function GetExpiration(jobid){ + return new Promise(async (resolve, reject) => { + var xml = { + _declaration: { _attributes: { version: '1.0', encoding: 'UTF-8' } }, + 'SOAP-ENV:Envelope': { + _attributes: { + 'xmlns:SOAP-ENV': 'http://schemas.xmlsoap.org/soap/envelope/', + 'xmlns:ns1': 'http://roblox.com/' + }, + 'SOAP-ENV:Body': { 'ns1:GetExpiration': { 'ns1:jobID': { _text: 'Test' } } } + } + } + xml['SOAP-ENV:Envelope']['SOAP-ENV:Body']['ns1:GetExpiration']['ns1:jobID']._text = jobid + const body = convert.js2xml(xml, { compact: true, spaces: 4 }) + + try { + const result = await fetch(url, { method: 'POST', body }) + const data = await result.text() + const convertedData = convert.xml2js(data, { compact: true, spaces: 4 }) + return resolve( + convertedData + ) + } catch (error) { + return reject(error) + } + }) +} +//var gameservertxt = fs.readFileSync('actualgameserver.txt','utf-8') +//gameservertxt = gameservertxt.replace('function start(placeId, port, url)','function start(1111, port)') + +async function CloseExpiredJobs(){ + return new Promise(async (resolve, reject) => { + var xml = xml = { + _declaration: { _attributes: { version: '1.0', encoding: 'UTF-8' } }, + 'SOAP-ENV:Envelope': { + _attributes: { + 'xmlns:SOAP-ENV': 'http://schemas.xmlsoap.org/soap/envelope/', + 'xmlns:ns1': 'http://roblox.com/' + }, + 'SOAP-ENV:Body': { 'ns1:CloseExpiredJobs': {} } + } + } + + const body = convert.js2xml(xml, { compact: true, spaces: 4 }) + + try { + const result = await fetch(url, { method: 'POST', body }) + const data = await result.text() + const convertedData = convert.xml2js(data, { compact: true, spaces: 4 }) + return resolve( + convertedData + ) + } catch (error) { + return reject(error) + } + }) +} + +async function CloseAllJobs(){ + return new Promise(async (resolve, reject) => { + var xml = xml = { + _declaration: { _attributes: { version: '1.0', encoding: 'UTF-8' } }, + 'SOAP-ENV:Envelope': { + _attributes: { + 'xmlns:SOAP-ENV': 'http://schemas.xmlsoap.org/soap/envelope/', + 'xmlns:ns1': 'http://roblox.com/' + }, + 'SOAP-ENV:Body': { 'ns1:CloseAllJobs': {} } + } + } + + const body = convert.js2xml(xml, { compact: true, spaces: 4 }) + + try { + const result = await fetch(url, { method: 'POST', body }) + const data = await result.text() + const convertedData = convert.xml2js(data, { compact: true, spaces: 4 }) + return resolve( + convertedData + ) + } catch (error) { + return reject(error) + } + }) +} + + +module.exports = {OpenJob, GetAllJobs,Execute,CloseJob,RenewLease,GetExpiration,CloseExpiredJobs,CloseAllJobs} + + + + + + + + + diff --git a/thumbnailrenderer.lua b/thumbnailrenderer.lua new file mode 100644 index 0000000..84d3861 --- /dev/null +++ b/thumbnailrenderer.lua @@ -0,0 +1,77 @@ +-- This is the thumbnail script for R6 avatars. Straight up and down, with the right arm out if they have a gear. +local person = 0 +local baseurl = "http://mete0r.xyz" -- have to set to https for production +local HttpService = game:GetService("HttpService") +HttpService.HttpEnabled = true + +---@diagnostic disable-next-line: invalid-class-name +local ThumbnailGenerator = game:GetService("ThumbnailGenerator") + +pcall(function() game:GetService("ContentProvider"):SetBaseUrl(baseurl) end) +game:GetService("ScriptContext").ScriptsDisabled = true + +local player = game:GetService("Players"):CreateLocalPlayer(0) +player:LoadCharacter() + +-- bodycolors +a = HttpService:JSONDecode(HttpService:GetAsync("http://mete0r.xyz/game/colors?name="..person.."&rcc=''")) +bcolor = Instance.new("BodyColors", player.Character) +bcolor.HeadColor = BrickColor.new(a[1]) +bcolor.TorsoColor = BrickColor.new(a[2]) +bcolor.LeftArmColor = BrickColor.new(a[3]) +bcolor.RightArmColor = BrickColor.new(a[4]) +bcolor.LeftLegColor = BrickColor.new(a[5]) +bcolor.RightLegColor = BrickColor.new(a[6]) + + +-- charapp +b = HttpService:JSONDecode(HttpService:GetAsync("http://mete0r.xyz/game/charapp?name="..person.."&rcc=''")) +tool = false +pcall(function() + +for i,v in pairs(b) do +pcall(function() + print(v.item.itemid) +---@diagnostic disable-next-line: undefined-global + thing = game:GetService("InsertService"):LoadAsset(v.item.itemid) + + if thing:GetChildren()[1].ClassName == "Tool" then + if tool == false then + tool = true + thing:GetChildren()[1].Parent = player.Character + end + elseif thing:GetChildren()[1]:IsA("Decal") then + --face + player.Character.Head.face:Destroy() + thing:GetChildren()[1].Parent = player.Character.Head + else + thing:GetChildren()[1].Parent = player.Character + +end +end) +end + +end) + + +-- Raise up the character's arm if they have gear. +if player.Character then + for _, child in pairs(player.Character:GetChildren()) do + if child:IsA("Tool") then + player.Character.Torso["Right Shoulder"].CurrentAngle = math.rad(90) + break + end + end +end +game.CoreGui.RobloxGui.HealthGui:Destroy() +game.CoreGui.RobloxGui.Backpack:Destroy() + +local arguments = { + ["thumbnail"] = ThumbnailGenerator:Click("PNG", 400, 400, --[[hideSky = ]] true), + ["player"] = person + } + +HttpService:PostAsync( + baseurl .. "/api/thumbnailrender/rcc", + HttpService:JSONEncode(arguments) + ) \ No newline at end of file diff --git a/under_maintenance.html b/under_maintenance.html new file mode 100644 index 0000000..0973e38 --- /dev/null +++ b/under_maintenance.html @@ -0,0 +1,93 @@ + + + +
+

What happened to Meteorite?

+

In short I had lost motivation to keep it open. Now let me give you some reasons why.

+
+
    +
  • it was a massive money bleed ranging $60-400 a month to run.
  • +
    +
  • The staff I hired didn't do the best job which is partially my fault. I didn't do enough to keep them doing their best. This resulted in some accidents over the course of Meteorite's 1 year life which I don't condone and infighting. I didn't tell my staff to censor or hide any criticism though I should of been more proactive about what my staff were doing.
  • +
    +
  • I wanted a break which is why updates slowed down but obviously the website/discord was not in a state to leave. This also upset some staff members which I apologize for.
  • +
+ +
+ +

To clear some things up of accusations against me since I know there is a lot of noise.

+
+
First of all, I had already decided to shut down before the document even came out. It didn't influence this decision in any way. Now, we will skip over criticisms of the website itself as that doesn't matter. Two problematic individuals in the community were a result of my bad management and staff favoritism over members. Security of Meteorite was compromised from a lazy config error but I did my best to minimize the damage and as far as I'm aware only around 70 places leaked on the internet.
+
+
Thanks, sushi. it's been fun. Maybe we meet again 2020 RCC
+ + + + + + + + + + + + + + + + + +
\ No newline at end of file diff --git a/yarn.lock b/yarn.lock new file mode 100644 index 0000000..de179c9 --- /dev/null +++ b/yarn.lock @@ -0,0 +1,3108 @@ +# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. +# yarn lockfile v1 + + +"@aws-crypto/ie11-detection@^3.0.0": + "integrity" "sha512-341lBBkiY1DfDNKai/wXM3aujNBkXR7tq1URPQDL9wi3AUbI80NR74uF1TXHMm7po1AcnFk8iu2S2IeU/+/A+Q==" + "resolved" "https://registry.npmjs.org/@aws-crypto/ie11-detection/-/ie11-detection-3.0.0.tgz" + "version" "3.0.0" + dependencies: + "tslib" "^1.11.1" + +"@aws-crypto/sha256-browser@3.0.0": + "integrity" "sha512-8VLmW2B+gjFbU5uMeqtQM6Nj0/F1bro80xQXCW6CQBWgosFWXTx77aeOF5CAIAmbOK64SdMBJdNr6J41yP5mvQ==" + "resolved" "https://registry.npmjs.org/@aws-crypto/sha256-browser/-/sha256-browser-3.0.0.tgz" + "version" "3.0.0" + dependencies: + "@aws-crypto/ie11-detection" "^3.0.0" + "@aws-crypto/sha256-js" "^3.0.0" + "@aws-crypto/supports-web-crypto" "^3.0.0" + "@aws-crypto/util" "^3.0.0" + "@aws-sdk/types" "^3.222.0" + "@aws-sdk/util-locate-window" "^3.0.0" + "@aws-sdk/util-utf8-browser" "^3.0.0" + "tslib" "^1.11.1" + +"@aws-crypto/sha256-js@^3.0.0", "@aws-crypto/sha256-js@3.0.0": + "integrity" "sha512-PnNN7os0+yd1XvXAy23CFOmTbMaDxgxXtTKHybrJ39Y8kGzBATgBFibWJKH6BhytLI/Zyszs87xCOBNyBig6vQ==" + "resolved" "https://registry.npmjs.org/@aws-crypto/sha256-js/-/sha256-js-3.0.0.tgz" + "version" "3.0.0" + dependencies: + "@aws-crypto/util" "^3.0.0" + "@aws-sdk/types" "^3.222.0" + "tslib" "^1.11.1" + +"@aws-crypto/supports-web-crypto@^3.0.0": + "integrity" "sha512-06hBdMwUAb2WFTuGG73LSC0wfPu93xWwo5vL2et9eymgmu3Id5vFAHBbajVWiGhPO37qcsdCap/FqXvJGJWPIg==" + "resolved" "https://registry.npmjs.org/@aws-crypto/supports-web-crypto/-/supports-web-crypto-3.0.0.tgz" + "version" "3.0.0" + dependencies: + "tslib" "^1.11.1" + +"@aws-crypto/util@^3.0.0": + "integrity" "sha512-2OJlpeJpCR48CC8r+uKVChzs9Iungj9wkZrl8Z041DWEWvyIHILYKCPNzJghKsivj+S3mLo6BVc7mBNzdxA46w==" + "resolved" "https://registry.npmjs.org/@aws-crypto/util/-/util-3.0.0.tgz" + "version" "3.0.0" + dependencies: + "@aws-sdk/types" "^3.222.0" + "@aws-sdk/util-utf8-browser" "^3.0.0" + "tslib" "^1.11.1" + +"@aws-sdk/abort-controller@3.272.0": + "integrity" "sha512-s2TV3phapcTwZNr4qLxbfuQuE9ZMP4RoJdkvRRCkKdm6jslsWLJf2Zlcxti/23hOlINUMYv2iXE2pftIgWGdpg==" + "resolved" "https://registry.npmjs.org/@aws-sdk/abort-controller/-/abort-controller-3.272.0.tgz" + "version" "3.272.0" + dependencies: + "@aws-sdk/types" "3.272.0" + "tslib" "^2.3.1" + +"@aws-sdk/client-cognito-identity@3.272.0": + "integrity" "sha512-uMjRWcNvX7SoGaVn0mXWD43+Z1awPahQwGW3riDLfXHZdOgw2oFDhD3Jg5jQ8OzQLUfDvArhE3WyZwlS4muMuQ==" + "resolved" "https://registry.npmjs.org/@aws-sdk/client-cognito-identity/-/client-cognito-identity-3.272.0.tgz" + "version" "3.272.0" + dependencies: + "@aws-crypto/sha256-browser" "3.0.0" + "@aws-crypto/sha256-js" "3.0.0" + "@aws-sdk/client-sts" "3.272.0" + "@aws-sdk/config-resolver" "3.272.0" + "@aws-sdk/credential-provider-node" "3.272.0" + "@aws-sdk/fetch-http-handler" "3.272.0" + "@aws-sdk/hash-node" "3.272.0" + "@aws-sdk/invalid-dependency" "3.272.0" + "@aws-sdk/middleware-content-length" "3.272.0" + "@aws-sdk/middleware-endpoint" "3.272.0" + "@aws-sdk/middleware-host-header" "3.272.0" + "@aws-sdk/middleware-logger" "3.272.0" + "@aws-sdk/middleware-recursion-detection" "3.272.0" + "@aws-sdk/middleware-retry" "3.272.0" + "@aws-sdk/middleware-serde" "3.272.0" + "@aws-sdk/middleware-signing" "3.272.0" + "@aws-sdk/middleware-stack" "3.272.0" + "@aws-sdk/middleware-user-agent" "3.272.0" + "@aws-sdk/node-config-provider" "3.272.0" + "@aws-sdk/node-http-handler" "3.272.0" + "@aws-sdk/protocol-http" "3.272.0" + "@aws-sdk/smithy-client" "3.272.0" + "@aws-sdk/types" "3.272.0" + "@aws-sdk/url-parser" "3.272.0" + "@aws-sdk/util-base64" "3.208.0" + "@aws-sdk/util-body-length-browser" "3.188.0" + "@aws-sdk/util-body-length-node" "3.208.0" + "@aws-sdk/util-defaults-mode-browser" "3.272.0" + "@aws-sdk/util-defaults-mode-node" "3.272.0" + "@aws-sdk/util-endpoints" "3.272.0" + "@aws-sdk/util-retry" "3.272.0" + "@aws-sdk/util-user-agent-browser" "3.272.0" + "@aws-sdk/util-user-agent-node" "3.272.0" + "@aws-sdk/util-utf8" "3.254.0" + "tslib" "^2.3.1" + +"@aws-sdk/client-sso-oidc@3.272.0": + "integrity" "sha512-ECcXu3xoa1yggnGKMTh29eWNHiF/wC6r5Uqbla22eOOosyh0+Z6lkJ3JUSLOUKCkBXA4Cs/tJL9UDFBrKbSlvA==" + "resolved" "https://registry.npmjs.org/@aws-sdk/client-sso-oidc/-/client-sso-oidc-3.272.0.tgz" + "version" "3.272.0" + dependencies: + "@aws-crypto/sha256-browser" "3.0.0" + "@aws-crypto/sha256-js" "3.0.0" + "@aws-sdk/config-resolver" "3.272.0" + "@aws-sdk/fetch-http-handler" "3.272.0" + "@aws-sdk/hash-node" "3.272.0" + "@aws-sdk/invalid-dependency" "3.272.0" + "@aws-sdk/middleware-content-length" "3.272.0" + "@aws-sdk/middleware-endpoint" "3.272.0" + "@aws-sdk/middleware-host-header" "3.272.0" + "@aws-sdk/middleware-logger" "3.272.0" + "@aws-sdk/middleware-recursion-detection" "3.272.0" + "@aws-sdk/middleware-retry" "3.272.0" + "@aws-sdk/middleware-serde" "3.272.0" + "@aws-sdk/middleware-stack" "3.272.0" + "@aws-sdk/middleware-user-agent" "3.272.0" + "@aws-sdk/node-config-provider" "3.272.0" + "@aws-sdk/node-http-handler" "3.272.0" + "@aws-sdk/protocol-http" "3.272.0" + "@aws-sdk/smithy-client" "3.272.0" + "@aws-sdk/types" "3.272.0" + "@aws-sdk/url-parser" "3.272.0" + "@aws-sdk/util-base64" "3.208.0" + "@aws-sdk/util-body-length-browser" "3.188.0" + "@aws-sdk/util-body-length-node" "3.208.0" + "@aws-sdk/util-defaults-mode-browser" "3.272.0" + "@aws-sdk/util-defaults-mode-node" "3.272.0" + "@aws-sdk/util-endpoints" "3.272.0" + "@aws-sdk/util-retry" "3.272.0" + "@aws-sdk/util-user-agent-browser" "3.272.0" + "@aws-sdk/util-user-agent-node" "3.272.0" + "@aws-sdk/util-utf8" "3.254.0" + "tslib" "^2.3.1" + +"@aws-sdk/client-sso@3.272.0": + "integrity" "sha512-xn9a0IGONwQIARmngThoRhF1lLGjHAD67sUaShgIMaIMc6ipVYN6alWG1VuUpoUQ6iiwMEt0CHdfCyLyUV/fTA==" + "resolved" "https://registry.npmjs.org/@aws-sdk/client-sso/-/client-sso-3.272.0.tgz" + "version" "3.272.0" + dependencies: + "@aws-crypto/sha256-browser" "3.0.0" + "@aws-crypto/sha256-js" "3.0.0" + "@aws-sdk/config-resolver" "3.272.0" + "@aws-sdk/fetch-http-handler" "3.272.0" + "@aws-sdk/hash-node" "3.272.0" + "@aws-sdk/invalid-dependency" "3.272.0" + "@aws-sdk/middleware-content-length" "3.272.0" + "@aws-sdk/middleware-endpoint" "3.272.0" + "@aws-sdk/middleware-host-header" "3.272.0" + "@aws-sdk/middleware-logger" "3.272.0" + "@aws-sdk/middleware-recursion-detection" "3.272.0" + "@aws-sdk/middleware-retry" "3.272.0" + "@aws-sdk/middleware-serde" "3.272.0" + "@aws-sdk/middleware-stack" "3.272.0" + "@aws-sdk/middleware-user-agent" "3.272.0" + "@aws-sdk/node-config-provider" "3.272.0" + "@aws-sdk/node-http-handler" "3.272.0" + "@aws-sdk/protocol-http" "3.272.0" + "@aws-sdk/smithy-client" "3.272.0" + "@aws-sdk/types" "3.272.0" + "@aws-sdk/url-parser" "3.272.0" + "@aws-sdk/util-base64" "3.208.0" + "@aws-sdk/util-body-length-browser" "3.188.0" + "@aws-sdk/util-body-length-node" "3.208.0" + "@aws-sdk/util-defaults-mode-browser" "3.272.0" + "@aws-sdk/util-defaults-mode-node" "3.272.0" + "@aws-sdk/util-endpoints" "3.272.0" + "@aws-sdk/util-retry" "3.272.0" + "@aws-sdk/util-user-agent-browser" "3.272.0" + "@aws-sdk/util-user-agent-node" "3.272.0" + "@aws-sdk/util-utf8" "3.254.0" + "tslib" "^2.3.1" + +"@aws-sdk/client-sts@3.272.0": + "integrity" "sha512-kigxCxURp3WupufGaL/LABMb7UQfzAQkKcj9royizL3ItJ0vw5kW/JFrPje5IW1mfLgdPF7PI9ShOjE0fCLTqA==" + "resolved" "https://registry.npmjs.org/@aws-sdk/client-sts/-/client-sts-3.272.0.tgz" + "version" "3.272.0" + dependencies: + "@aws-crypto/sha256-browser" "3.0.0" + "@aws-crypto/sha256-js" "3.0.0" + "@aws-sdk/config-resolver" "3.272.0" + "@aws-sdk/credential-provider-node" "3.272.0" + "@aws-sdk/fetch-http-handler" "3.272.0" + "@aws-sdk/hash-node" "3.272.0" + "@aws-sdk/invalid-dependency" "3.272.0" + "@aws-sdk/middleware-content-length" "3.272.0" + "@aws-sdk/middleware-endpoint" "3.272.0" + "@aws-sdk/middleware-host-header" "3.272.0" + "@aws-sdk/middleware-logger" "3.272.0" + "@aws-sdk/middleware-recursion-detection" "3.272.0" + "@aws-sdk/middleware-retry" "3.272.0" + "@aws-sdk/middleware-sdk-sts" "3.272.0" + "@aws-sdk/middleware-serde" "3.272.0" + "@aws-sdk/middleware-signing" "3.272.0" + "@aws-sdk/middleware-stack" "3.272.0" + "@aws-sdk/middleware-user-agent" "3.272.0" + "@aws-sdk/node-config-provider" "3.272.0" + "@aws-sdk/node-http-handler" "3.272.0" + "@aws-sdk/protocol-http" "3.272.0" + "@aws-sdk/smithy-client" "3.272.0" + "@aws-sdk/types" "3.272.0" + "@aws-sdk/url-parser" "3.272.0" + "@aws-sdk/util-base64" "3.208.0" + "@aws-sdk/util-body-length-browser" "3.188.0" + "@aws-sdk/util-body-length-node" "3.208.0" + "@aws-sdk/util-defaults-mode-browser" "3.272.0" + "@aws-sdk/util-defaults-mode-node" "3.272.0" + "@aws-sdk/util-endpoints" "3.272.0" + "@aws-sdk/util-retry" "3.272.0" + "@aws-sdk/util-user-agent-browser" "3.272.0" + "@aws-sdk/util-user-agent-node" "3.272.0" + "@aws-sdk/util-utf8" "3.254.0" + "fast-xml-parser" "4.0.11" + "tslib" "^2.3.1" + +"@aws-sdk/config-resolver@3.272.0": + "integrity" "sha512-Dr4CffRVNsOp3LRNdpvcH6XuSgXOSLblWliCy/5I86cNl567KVMxujVx6uPrdTXYs2h1rt3MNl6jQGnAiJeTbw==" + "resolved" "https://registry.npmjs.org/@aws-sdk/config-resolver/-/config-resolver-3.272.0.tgz" + "version" "3.272.0" + dependencies: + "@aws-sdk/signature-v4" "3.272.0" + "@aws-sdk/types" "3.272.0" + "@aws-sdk/util-config-provider" "3.208.0" + "@aws-sdk/util-middleware" "3.272.0" + "tslib" "^2.3.1" + +"@aws-sdk/credential-provider-cognito-identity@3.272.0": + "integrity" "sha512-rVx0rtQjbiYCM0nah2rB/2ut2YJYPpRr1AbW/Hd4r/PI+yiusrmXAwuT4HIW2yr34zsQMPi1jZ3WHN9Rn9mzlg==" + "resolved" "https://registry.npmjs.org/@aws-sdk/credential-provider-cognito-identity/-/credential-provider-cognito-identity-3.272.0.tgz" + "version" "3.272.0" + dependencies: + "@aws-sdk/client-cognito-identity" "3.272.0" + "@aws-sdk/property-provider" "3.272.0" + "@aws-sdk/types" "3.272.0" + "tslib" "^2.3.1" + +"@aws-sdk/credential-provider-env@3.272.0": + "integrity" "sha512-QI65NbLnKLYHyTYhXaaUrq6eVsCCrMUb05WDA7+TJkWkjXesovpjc8vUKgFiLSxmgKmb2uOhHNcDyObKMrYQFw==" + "resolved" "https://registry.npmjs.org/@aws-sdk/credential-provider-env/-/credential-provider-env-3.272.0.tgz" + "version" "3.272.0" + dependencies: + "@aws-sdk/property-provider" "3.272.0" + "@aws-sdk/types" "3.272.0" + "tslib" "^2.3.1" + +"@aws-sdk/credential-provider-imds@3.272.0": + "integrity" "sha512-wwAfVY1jTFQEfxVfdYD5r5ieYGl+0g4nhekVxNMqE8E1JeRDd18OqiwAflzpgBIqxfqvCUkf+vl5JYyacMkNAQ==" + "resolved" "https://registry.npmjs.org/@aws-sdk/credential-provider-imds/-/credential-provider-imds-3.272.0.tgz" + "version" "3.272.0" + dependencies: + "@aws-sdk/node-config-provider" "3.272.0" + "@aws-sdk/property-provider" "3.272.0" + "@aws-sdk/types" "3.272.0" + "@aws-sdk/url-parser" "3.272.0" + "tslib" "^2.3.1" + +"@aws-sdk/credential-provider-ini@3.272.0": + "integrity" "sha512-iE3CDzK5NcupHYjfYjBdY1JCy8NLEoRUsboEjG0i0gy3S3jVpDeVHX1dLVcL/slBFj6GiM7SoNV/UfKnJf3Gaw==" + "resolved" "https://registry.npmjs.org/@aws-sdk/credential-provider-ini/-/credential-provider-ini-3.272.0.tgz" + "version" "3.272.0" + dependencies: + "@aws-sdk/credential-provider-env" "3.272.0" + "@aws-sdk/credential-provider-imds" "3.272.0" + "@aws-sdk/credential-provider-process" "3.272.0" + "@aws-sdk/credential-provider-sso" "3.272.0" + "@aws-sdk/credential-provider-web-identity" "3.272.0" + "@aws-sdk/property-provider" "3.272.0" + "@aws-sdk/shared-ini-file-loader" "3.272.0" + "@aws-sdk/types" "3.272.0" + "tslib" "^2.3.1" + +"@aws-sdk/credential-provider-node@3.272.0": + "integrity" "sha512-FI8uvwM1IxiRSvbkdKv8DZG5vxU3ezaseTaB1fHWTxEUFb0pWIoHX9oeOKer9Fj31SOZTCNAaYFURbSRuZlm/w==" + "resolved" "https://registry.npmjs.org/@aws-sdk/credential-provider-node/-/credential-provider-node-3.272.0.tgz" + "version" "3.272.0" + dependencies: + "@aws-sdk/credential-provider-env" "3.272.0" + "@aws-sdk/credential-provider-imds" "3.272.0" + "@aws-sdk/credential-provider-ini" "3.272.0" + "@aws-sdk/credential-provider-process" "3.272.0" + "@aws-sdk/credential-provider-sso" "3.272.0" + "@aws-sdk/credential-provider-web-identity" "3.272.0" + "@aws-sdk/property-provider" "3.272.0" + "@aws-sdk/shared-ini-file-loader" "3.272.0" + "@aws-sdk/types" "3.272.0" + "tslib" "^2.3.1" + +"@aws-sdk/credential-provider-process@3.272.0": + "integrity" "sha512-hiCAjWWm2PeBFp5cjkxqyam/XADjiS+e7GzwC34TbZn3LisS0uoweLojj9tD11NnnUhyhbLteUvu5+rotOLwrg==" + "resolved" "https://registry.npmjs.org/@aws-sdk/credential-provider-process/-/credential-provider-process-3.272.0.tgz" + "version" "3.272.0" + dependencies: + "@aws-sdk/property-provider" "3.272.0" + "@aws-sdk/shared-ini-file-loader" "3.272.0" + "@aws-sdk/types" "3.272.0" + "tslib" "^2.3.1" + +"@aws-sdk/credential-provider-sso@3.272.0": + "integrity" "sha512-hwYaulyiU/7chKKFecxCeo0ls6Dxs7h+5EtoYcJJGvfpvCncyOZF35t00OAsCd3Wo7HkhhgfpGdb6dmvCNQAZQ==" + "resolved" "https://registry.npmjs.org/@aws-sdk/credential-provider-sso/-/credential-provider-sso-3.272.0.tgz" + "version" "3.272.0" + dependencies: + "@aws-sdk/client-sso" "3.272.0" + "@aws-sdk/property-provider" "3.272.0" + "@aws-sdk/shared-ini-file-loader" "3.272.0" + "@aws-sdk/token-providers" "3.272.0" + "@aws-sdk/types" "3.272.0" + "tslib" "^2.3.1" + +"@aws-sdk/credential-provider-web-identity@3.272.0": + "integrity" "sha512-ImrHMkcgneGa/HadHAQXPwOrX26sAKuB8qlMxZF/ZCM2B55u8deY+ZVkVuraeKb7YsahMGehPFOfRAF6mvFI5Q==" + "resolved" "https://registry.npmjs.org/@aws-sdk/credential-provider-web-identity/-/credential-provider-web-identity-3.272.0.tgz" + "version" "3.272.0" + dependencies: + "@aws-sdk/property-provider" "3.272.0" + "@aws-sdk/types" "3.272.0" + "tslib" "^2.3.1" + +"@aws-sdk/credential-providers@^3.186.0": + "integrity" "sha512-ucd6Xq6aBMf+nM4uz5zkjL11mwaE5BV1Q4hkulaGu2v1dRA8n6zhLJk/sb4hOJ7leelqMJMErlbQ2T3MkYvlJQ==" + "resolved" "https://registry.npmjs.org/@aws-sdk/credential-providers/-/credential-providers-3.272.0.tgz" + "version" "3.272.0" + dependencies: + "@aws-sdk/client-cognito-identity" "3.272.0" + "@aws-sdk/client-sso" "3.272.0" + "@aws-sdk/client-sts" "3.272.0" + "@aws-sdk/credential-provider-cognito-identity" "3.272.0" + "@aws-sdk/credential-provider-env" "3.272.0" + "@aws-sdk/credential-provider-imds" "3.272.0" + "@aws-sdk/credential-provider-ini" "3.272.0" + "@aws-sdk/credential-provider-node" "3.272.0" + "@aws-sdk/credential-provider-process" "3.272.0" + "@aws-sdk/credential-provider-sso" "3.272.0" + "@aws-sdk/credential-provider-web-identity" "3.272.0" + "@aws-sdk/property-provider" "3.272.0" + "@aws-sdk/shared-ini-file-loader" "3.272.0" + "@aws-sdk/types" "3.272.0" + "tslib" "^2.3.1" + +"@aws-sdk/fetch-http-handler@3.272.0": + "integrity" "sha512-1Qhm9e0RbS1Xf4CZqUbQyUMkDLd7GrsRXWIvm9b86/vgeV8/WnjO3CMue9D51nYgcyQORhYXv6uVjAYCWbUExA==" + "resolved" "https://registry.npmjs.org/@aws-sdk/fetch-http-handler/-/fetch-http-handler-3.272.0.tgz" + "version" "3.272.0" + dependencies: + "@aws-sdk/protocol-http" "3.272.0" + "@aws-sdk/querystring-builder" "3.272.0" + "@aws-sdk/types" "3.272.0" + "@aws-sdk/util-base64" "3.208.0" + "tslib" "^2.3.1" + +"@aws-sdk/hash-node@3.272.0": + "integrity" "sha512-40dwND+iAm3VtPHPZu7/+CIdVJFk2s0cWZt1lOiMPMSXycSYJ45wMk7Lly3uoqRx0uWfFK5iT2OCv+fJi5jTng==" + "resolved" "https://registry.npmjs.org/@aws-sdk/hash-node/-/hash-node-3.272.0.tgz" + "version" "3.272.0" + dependencies: + "@aws-sdk/types" "3.272.0" + "@aws-sdk/util-buffer-from" "3.208.0" + "@aws-sdk/util-utf8" "3.254.0" + "tslib" "^2.3.1" + +"@aws-sdk/invalid-dependency@3.272.0": + "integrity" "sha512-ysW6wbjl1Y78txHUQ/Tldj2Rg1BI7rpMO9B9xAF6yAX3mQ7t6SUPQG/ewOGvH2208NBIl3qP5e/hDf0Q6r/1iw==" + "resolved" "https://registry.npmjs.org/@aws-sdk/invalid-dependency/-/invalid-dependency-3.272.0.tgz" + "version" "3.272.0" + dependencies: + "@aws-sdk/types" "3.272.0" + "tslib" "^2.3.1" + +"@aws-sdk/is-array-buffer@3.201.0": + "integrity" "sha512-UPez5qLh3dNgt0DYnPD/q0mVJY84rA17QE26hVNOW3fAji8W2wrwrxdacWOxyXvlxWsVRcKmr+lay1MDqpAMfg==" + "resolved" "https://registry.npmjs.org/@aws-sdk/is-array-buffer/-/is-array-buffer-3.201.0.tgz" + "version" "3.201.0" + dependencies: + "tslib" "^2.3.1" + +"@aws-sdk/middleware-content-length@3.272.0": + "integrity" "sha512-sAbDZSTNmLX+UTGwlUHJBWy0QGQkiClpHwVFXACon+aG0ySLNeRKEVYs6NCPYldw4cj6hveLUn50cX44ukHErw==" + "resolved" "https://registry.npmjs.org/@aws-sdk/middleware-content-length/-/middleware-content-length-3.272.0.tgz" + "version" "3.272.0" + dependencies: + "@aws-sdk/protocol-http" "3.272.0" + "@aws-sdk/types" "3.272.0" + "tslib" "^2.3.1" + +"@aws-sdk/middleware-endpoint@3.272.0": + "integrity" "sha512-Dk3JVjj7SxxoUKv3xGiOeBksvPtFhTDrVW75XJ98Ymv8gJH5L1sq4hIeJAHRKogGiRFq2J73mnZSlM9FVXEylg==" + "resolved" "https://registry.npmjs.org/@aws-sdk/middleware-endpoint/-/middleware-endpoint-3.272.0.tgz" + "version" "3.272.0" + dependencies: + "@aws-sdk/middleware-serde" "3.272.0" + "@aws-sdk/protocol-http" "3.272.0" + "@aws-sdk/signature-v4" "3.272.0" + "@aws-sdk/types" "3.272.0" + "@aws-sdk/url-parser" "3.272.0" + "@aws-sdk/util-config-provider" "3.208.0" + "@aws-sdk/util-middleware" "3.272.0" + "tslib" "^2.3.1" + +"@aws-sdk/middleware-host-header@3.272.0": + "integrity" "sha512-Q8K7bMMFZnioUXpxn57HIt4p+I63XaNAawMLIZ5B4F2piyukbQeM9q2XVKMGwqLvijHR8CyP5nHrtKqVuINogQ==" + "resolved" "https://registry.npmjs.org/@aws-sdk/middleware-host-header/-/middleware-host-header-3.272.0.tgz" + "version" "3.272.0" + dependencies: + "@aws-sdk/protocol-http" "3.272.0" + "@aws-sdk/types" "3.272.0" + "tslib" "^2.3.1" + +"@aws-sdk/middleware-logger@3.272.0": + "integrity" "sha512-u2SQ0hWrFwxbxxYMG5uMEgf01pQY5jauK/LYWgGIvuCmFgiyRQQP3oN7kkmsxnS9MWmNmhbyQguX2NY02s5e9w==" + "resolved" "https://registry.npmjs.org/@aws-sdk/middleware-logger/-/middleware-logger-3.272.0.tgz" + "version" "3.272.0" + dependencies: + "@aws-sdk/types" "3.272.0" + "tslib" "^2.3.1" + +"@aws-sdk/middleware-recursion-detection@3.272.0": + "integrity" "sha512-Gp/eKWeUWVNiiBdmUM2qLkBv+VLSJKoWAO+aKmyxxwjjmWhE0FrfA1NQ1a3g+NGMhRbAfQdaYswRAKsul70ISg==" + "resolved" "https://registry.npmjs.org/@aws-sdk/middleware-recursion-detection/-/middleware-recursion-detection-3.272.0.tgz" + "version" "3.272.0" + dependencies: + "@aws-sdk/protocol-http" "3.272.0" + "@aws-sdk/types" "3.272.0" + "tslib" "^2.3.1" + +"@aws-sdk/middleware-retry@3.272.0": + "integrity" "sha512-pCGvHM7C76VbO/dFerH+Vwf7tGv7j+e+eGrvhQ35mRghCtfIou/WMfTZlD1TNee93crrAQQVZKjtW3dMB3WCzg==" + "resolved" "https://registry.npmjs.org/@aws-sdk/middleware-retry/-/middleware-retry-3.272.0.tgz" + "version" "3.272.0" + dependencies: + "@aws-sdk/protocol-http" "3.272.0" + "@aws-sdk/service-error-classification" "3.272.0" + "@aws-sdk/types" "3.272.0" + "@aws-sdk/util-middleware" "3.272.0" + "@aws-sdk/util-retry" "3.272.0" + "tslib" "^2.3.1" + "uuid" "^8.3.2" + +"@aws-sdk/middleware-sdk-sts@3.272.0": + "integrity" "sha512-VvYPg7LrDIjUOWueSzo2wBzcNG7dw+cmzV6zAKaLxf0RC5jeAP4hE0OzDiiZfDrjNghEzgq/V+0NO+LewqYL9Q==" + "resolved" "https://registry.npmjs.org/@aws-sdk/middleware-sdk-sts/-/middleware-sdk-sts-3.272.0.tgz" + "version" "3.272.0" + dependencies: + "@aws-sdk/middleware-signing" "3.272.0" + "@aws-sdk/property-provider" "3.272.0" + "@aws-sdk/protocol-http" "3.272.0" + "@aws-sdk/signature-v4" "3.272.0" + "@aws-sdk/types" "3.272.0" + "tslib" "^2.3.1" + +"@aws-sdk/middleware-serde@3.272.0": + "integrity" "sha512-kW1uOxgPSwtXPB5rm3QLdWomu42lkYpQL94tM1BjyFOWmBLO2lQhk5a7Dw6HkTozT9a+vxtscLChRa6KZe61Hw==" + "resolved" "https://registry.npmjs.org/@aws-sdk/middleware-serde/-/middleware-serde-3.272.0.tgz" + "version" "3.272.0" + dependencies: + "@aws-sdk/types" "3.272.0" + "tslib" "^2.3.1" + +"@aws-sdk/middleware-signing@3.272.0": + "integrity" "sha512-4LChFK4VAR91X+dupqM8fQqYhFGE0G4Bf9rQlVTgGSbi2KUOmpqXzH0/WKE228nKuEhmH8+Qd2VPSAE2JcyAUA==" + "resolved" "https://registry.npmjs.org/@aws-sdk/middleware-signing/-/middleware-signing-3.272.0.tgz" + "version" "3.272.0" + dependencies: + "@aws-sdk/property-provider" "3.272.0" + "@aws-sdk/protocol-http" "3.272.0" + "@aws-sdk/signature-v4" "3.272.0" + "@aws-sdk/types" "3.272.0" + "@aws-sdk/util-middleware" "3.272.0" + "tslib" "^2.3.1" + +"@aws-sdk/middleware-stack@3.272.0": + "integrity" "sha512-jhwhknnPBGhfXAGV5GXUWfEhDFoP/DN8MPCO2yC5OAxyp6oVJ8lTPLkZYMTW5VL0c0eG44dXpF4Ib01V+PlDrQ==" + "resolved" "https://registry.npmjs.org/@aws-sdk/middleware-stack/-/middleware-stack-3.272.0.tgz" + "version" "3.272.0" + dependencies: + "tslib" "^2.3.1" + +"@aws-sdk/middleware-user-agent@3.272.0": + "integrity" "sha512-Qy7/0fsDJxY5l0bEk7WKDfqb4Os/sCAgFR2zEvrhDtbkhYPf72ysvg/nRUTncmCbo8tOok4SJii2myk8KMfjjw==" + "resolved" "https://registry.npmjs.org/@aws-sdk/middleware-user-agent/-/middleware-user-agent-3.272.0.tgz" + "version" "3.272.0" + dependencies: + "@aws-sdk/protocol-http" "3.272.0" + "@aws-sdk/types" "3.272.0" + "tslib" "^2.3.1" + +"@aws-sdk/node-config-provider@3.272.0": + "integrity" "sha512-YYCIBh9g1EQo7hm2l22HX5Yr9RoPQ2RCvhzKvF1n1e8t1QH4iObQrYUtqHG4khcm64Cft8C5MwZmgzHbya5Z6Q==" + "resolved" "https://registry.npmjs.org/@aws-sdk/node-config-provider/-/node-config-provider-3.272.0.tgz" + "version" "3.272.0" + dependencies: + "@aws-sdk/property-provider" "3.272.0" + "@aws-sdk/shared-ini-file-loader" "3.272.0" + "@aws-sdk/types" "3.272.0" + "tslib" "^2.3.1" + +"@aws-sdk/node-http-handler@3.272.0": + "integrity" "sha512-VrW9PjhhngeyYp4yGYPe5S0vgZH6NwU3Po9xAgayUeE37Inr7LS1YteFMHdpgsUUeNXnh7d06CXqHo1XjtqOKA==" + "resolved" "https://registry.npmjs.org/@aws-sdk/node-http-handler/-/node-http-handler-3.272.0.tgz" + "version" "3.272.0" + dependencies: + "@aws-sdk/abort-controller" "3.272.0" + "@aws-sdk/protocol-http" "3.272.0" + "@aws-sdk/querystring-builder" "3.272.0" + "@aws-sdk/types" "3.272.0" + "tslib" "^2.3.1" + +"@aws-sdk/property-provider@3.272.0": + "integrity" "sha512-V1pZTaH5eqpAt8O8CzbItHhOtzIfFuWymvwZFkAtwKuaHpnl7jjrTouV482zoq8AD/fF+VVSshwBKYA7bhidIw==" + "resolved" "https://registry.npmjs.org/@aws-sdk/property-provider/-/property-provider-3.272.0.tgz" + "version" "3.272.0" + dependencies: + "@aws-sdk/types" "3.272.0" + "tslib" "^2.3.1" + +"@aws-sdk/protocol-http@3.272.0": + "integrity" "sha512-4JQ54v5Yn08jspNDeHo45CaSn1CvTJqS1Ywgr79eU6jBExtguOWv6LNtwVSBD9X37v88iqaxt8iu1Z3pZZAJeg==" + "resolved" "https://registry.npmjs.org/@aws-sdk/protocol-http/-/protocol-http-3.272.0.tgz" + "version" "3.272.0" + dependencies: + "@aws-sdk/types" "3.272.0" + "tslib" "^2.3.1" + +"@aws-sdk/querystring-builder@3.272.0": + "integrity" "sha512-ndo++7GkdCj5tBXE6rGcITpSpZS4PfyV38wntGYAlj9liL1omk3bLZRY6uzqqkJpVHqbg2fD7O2qHNItzZgqhw==" + "resolved" "https://registry.npmjs.org/@aws-sdk/querystring-builder/-/querystring-builder-3.272.0.tgz" + "version" "3.272.0" + dependencies: + "@aws-sdk/types" "3.272.0" + "@aws-sdk/util-uri-escape" "3.201.0" + "tslib" "^2.3.1" + +"@aws-sdk/querystring-parser@3.272.0": + "integrity" "sha512-5oS4/9n6N1LZW9tI3qq/0GnCuWoOXRgcHVB+AJLRBvDbEe+GI+C/xK1tKLsfpDNgsQJHc4IPQoIt4megyZ/1+A==" + "resolved" "https://registry.npmjs.org/@aws-sdk/querystring-parser/-/querystring-parser-3.272.0.tgz" + "version" "3.272.0" + dependencies: + "@aws-sdk/types" "3.272.0" + "tslib" "^2.3.1" + +"@aws-sdk/service-error-classification@3.272.0": + "integrity" "sha512-REoltM1LK9byyIufLqx9znhSolPcHQgVHIA2S0zu5sdt5qER4OubkLAXuo4MBbisUTmh8VOOvIyUb5ijZCXq1w==" + "resolved" "https://registry.npmjs.org/@aws-sdk/service-error-classification/-/service-error-classification-3.272.0.tgz" + "version" "3.272.0" + +"@aws-sdk/shared-ini-file-loader@3.272.0": + "integrity" "sha512-lzFPohp5sy2XvwFjZIzLVCRpC0i5cwBiaXmFzXYQZJm6FSCszHO4ax+m9yrtlyVFF/2YPWl+/bzNthy4aJtseA==" + "resolved" "https://registry.npmjs.org/@aws-sdk/shared-ini-file-loader/-/shared-ini-file-loader-3.272.0.tgz" + "version" "3.272.0" + dependencies: + "@aws-sdk/types" "3.272.0" + "tslib" "^2.3.1" + +"@aws-sdk/signature-v4@3.272.0": + "integrity" "sha512-pWxnHG1NqJWMwlhJ6NHNiUikOL00DHROmxah6krJPMPq4I3am2KY2Rs/8ouWhnEXKaHAv4EQhSALJ+7Mq5S4/A==" + "resolved" "https://registry.npmjs.org/@aws-sdk/signature-v4/-/signature-v4-3.272.0.tgz" + "version" "3.272.0" + dependencies: + "@aws-sdk/is-array-buffer" "3.201.0" + "@aws-sdk/types" "3.272.0" + "@aws-sdk/util-hex-encoding" "3.201.0" + "@aws-sdk/util-middleware" "3.272.0" + "@aws-sdk/util-uri-escape" "3.201.0" + "@aws-sdk/util-utf8" "3.254.0" + "tslib" "^2.3.1" + +"@aws-sdk/smithy-client@3.272.0": + "integrity" "sha512-pvdleJ3kaRvyRw2pIZnqL85ZlWBOZrPKmR9I69GCvlyrfdjRBhbSjIEZ+sdhZudw0vdHxq25AGoLUXhofVLf5Q==" + "resolved" "https://registry.npmjs.org/@aws-sdk/smithy-client/-/smithy-client-3.272.0.tgz" + "version" "3.272.0" + dependencies: + "@aws-sdk/middleware-stack" "3.272.0" + "@aws-sdk/types" "3.272.0" + "tslib" "^2.3.1" + +"@aws-sdk/token-providers@3.272.0": + "integrity" "sha512-0GISJ4IKN2rXvbSddB775VjBGSKhYIGQnAdMqbvxi9LB6pSvVxcH9aIL28G0spiuL+dy3yGQZ8RlJPAyP9JW9A==" + "resolved" "https://registry.npmjs.org/@aws-sdk/token-providers/-/token-providers-3.272.0.tgz" + "version" "3.272.0" + dependencies: + "@aws-sdk/client-sso-oidc" "3.272.0" + "@aws-sdk/property-provider" "3.272.0" + "@aws-sdk/shared-ini-file-loader" "3.272.0" + "@aws-sdk/types" "3.272.0" + "tslib" "^2.3.1" + +"@aws-sdk/types@^3.222.0", "@aws-sdk/types@3.272.0": + "integrity" "sha512-MmmL6vxMGP5Bsi+4wRx4mxYlU/LX6M0noOXrDh/x5FfG7/4ZOar/nDxqDadhJtNM88cuWVHZWY59P54JzkGWmA==" + "resolved" "https://registry.npmjs.org/@aws-sdk/types/-/types-3.272.0.tgz" + "version" "3.272.0" + dependencies: + "tslib" "^2.3.1" + +"@aws-sdk/url-parser@3.272.0": + "integrity" "sha512-vX/Tx02PlnQ/Kgtf5TnrNDHPNbY+amLZjW0Z1d9vzAvSZhQ4i9Y18yxoRDIaDTCNVRDjdhV8iuctW+05PB5JtQ==" + "resolved" "https://registry.npmjs.org/@aws-sdk/url-parser/-/url-parser-3.272.0.tgz" + "version" "3.272.0" + dependencies: + "@aws-sdk/querystring-parser" "3.272.0" + "@aws-sdk/types" "3.272.0" + "tslib" "^2.3.1" + +"@aws-sdk/util-base64@3.208.0": + "integrity" "sha512-PQniZph5A6N7uuEOQi+1hnMz/FSOK/8kMFyFO+4DgA1dZ5pcKcn5wiFwHkcTb/BsgVqQa3Jx0VHNnvhlS8JyTg==" + "resolved" "https://registry.npmjs.org/@aws-sdk/util-base64/-/util-base64-3.208.0.tgz" + "version" "3.208.0" + dependencies: + "@aws-sdk/util-buffer-from" "3.208.0" + "tslib" "^2.3.1" + +"@aws-sdk/util-body-length-browser@3.188.0": + "integrity" "sha512-8VpnwFWXhnZ/iRSl9mTf+VKOX9wDE8QtN4bj9pBfxwf90H1X7E8T6NkiZD3k+HubYf2J94e7DbeHs7fuCPW5Qg==" + "resolved" "https://registry.npmjs.org/@aws-sdk/util-body-length-browser/-/util-body-length-browser-3.188.0.tgz" + "version" "3.188.0" + dependencies: + "tslib" "^2.3.1" + +"@aws-sdk/util-body-length-node@3.208.0": + "integrity" "sha512-3zj50e5g7t/MQf53SsuuSf0hEELzMtD8RX8C76f12OSRo2Bca4FLLYHe0TZbxcfQHom8/hOaeZEyTyMogMglqg==" + "resolved" "https://registry.npmjs.org/@aws-sdk/util-body-length-node/-/util-body-length-node-3.208.0.tgz" + "version" "3.208.0" + dependencies: + "tslib" "^2.3.1" + +"@aws-sdk/util-buffer-from@3.208.0": + "integrity" "sha512-7L0XUixNEFcLUGPeBF35enCvB9Xl+K6SQsmbrPk1P3mlV9mguWSDQqbOBwY1Ir0OVbD6H/ZOQU7hI/9RtRI0Zw==" + "resolved" "https://registry.npmjs.org/@aws-sdk/util-buffer-from/-/util-buffer-from-3.208.0.tgz" + "version" "3.208.0" + dependencies: + "@aws-sdk/is-array-buffer" "3.201.0" + "tslib" "^2.3.1" + +"@aws-sdk/util-config-provider@3.208.0": + "integrity" "sha512-DSRqwrERUsT34ug+anlMBIFooBEGwM8GejC7q00Y/9IPrQy50KnG5PW2NiTjuLKNi7pdEOlwTSEocJE15eDZIg==" + "resolved" "https://registry.npmjs.org/@aws-sdk/util-config-provider/-/util-config-provider-3.208.0.tgz" + "version" "3.208.0" + dependencies: + "tslib" "^2.3.1" + +"@aws-sdk/util-defaults-mode-browser@3.272.0": + "integrity" "sha512-W8ZVJSZRuUBg8l0JEZzUc+9fKlthVp/cdE+pFeF8ArhZelOLCiaeCrMaZAeJusaFzIpa6cmOYQAjtSMVyrwRtg==" + "resolved" "https://registry.npmjs.org/@aws-sdk/util-defaults-mode-browser/-/util-defaults-mode-browser-3.272.0.tgz" + "version" "3.272.0" + dependencies: + "@aws-sdk/property-provider" "3.272.0" + "@aws-sdk/types" "3.272.0" + "bowser" "^2.11.0" + "tslib" "^2.3.1" + +"@aws-sdk/util-defaults-mode-node@3.272.0": + "integrity" "sha512-U0NTcbMw6KFk7uz/avBmfxQSTREEiX6JDMH68oN/3ux4AICd2I4jHyxnloSWGuiER1FxZf1dEJ8ZTwy8Ibl21Q==" + "resolved" "https://registry.npmjs.org/@aws-sdk/util-defaults-mode-node/-/util-defaults-mode-node-3.272.0.tgz" + "version" "3.272.0" + dependencies: + "@aws-sdk/config-resolver" "3.272.0" + "@aws-sdk/credential-provider-imds" "3.272.0" + "@aws-sdk/node-config-provider" "3.272.0" + "@aws-sdk/property-provider" "3.272.0" + "@aws-sdk/types" "3.272.0" + "tslib" "^2.3.1" + +"@aws-sdk/util-endpoints@3.272.0": + "integrity" "sha512-c4MPUaJt2G6gGpoiwIOqDfUa98c1J63RpYvf/spQEKOtC/tF5Gfqlxuq8FnAl5lHnrqj1B9ZXLLxFhHtDR0IiQ==" + "resolved" "https://registry.npmjs.org/@aws-sdk/util-endpoints/-/util-endpoints-3.272.0.tgz" + "version" "3.272.0" + dependencies: + "@aws-sdk/types" "3.272.0" + "tslib" "^2.3.1" + +"@aws-sdk/util-hex-encoding@3.201.0": + "integrity" "sha512-7t1vR1pVxKx0motd3X9rI3m/xNp78p3sHtP5yo4NP4ARpxyJ0fokBomY8ScaH2D/B+U5o9ARxldJUdMqyBlJcA==" + "resolved" "https://registry.npmjs.org/@aws-sdk/util-hex-encoding/-/util-hex-encoding-3.201.0.tgz" + "version" "3.201.0" + dependencies: + "tslib" "^2.3.1" + +"@aws-sdk/util-locate-window@^3.0.0": + "integrity" "sha512-iua1A2+P7JJEDHVgvXrRJSvsnzG7stYSGQnBVphIUlemwl6nN5D+QrgbjECtrbxRz8asYFHSzhdhECqN+tFiBg==" + "resolved" "https://registry.npmjs.org/@aws-sdk/util-locate-window/-/util-locate-window-3.208.0.tgz" + "version" "3.208.0" + dependencies: + "tslib" "^2.3.1" + +"@aws-sdk/util-middleware@3.272.0": + "integrity" "sha512-Abw8m30arbwxqmeMMha5J11ESpHUNmCeSqSzE8/C4B8jZQtHY4kq7f+upzcNIQ11lsd+uzBEzNG3+dDRi0XOJQ==" + "resolved" "https://registry.npmjs.org/@aws-sdk/util-middleware/-/util-middleware-3.272.0.tgz" + "version" "3.272.0" + dependencies: + "tslib" "^2.3.1" + +"@aws-sdk/util-retry@3.272.0": + "integrity" "sha512-Ngha5414LR4gRHURVKC9ZYXsEJhMkm+SJ+44wlzOhavglfdcKKPUsibz5cKY1jpUV7oKECwaxHWpBB8r6h+hOg==" + "resolved" "https://registry.npmjs.org/@aws-sdk/util-retry/-/util-retry-3.272.0.tgz" + "version" "3.272.0" + dependencies: + "@aws-sdk/service-error-classification" "3.272.0" + "tslib" "^2.3.1" + +"@aws-sdk/util-uri-escape@3.201.0": + "integrity" "sha512-TeTWbGx4LU2c5rx0obHeDFeO9HvwYwQtMh1yniBz00pQb6Qt6YVOETVQikRZ+XRQwEyCg/dA375UplIpiy54mA==" + "resolved" "https://registry.npmjs.org/@aws-sdk/util-uri-escape/-/util-uri-escape-3.201.0.tgz" + "version" "3.201.0" + dependencies: + "tslib" "^2.3.1" + +"@aws-sdk/util-user-agent-browser@3.272.0": + "integrity" "sha512-Lp5QX5bH6uuwBlIdr7w7OAcAI50ttyskb++yUr9i+SPvj6RI2dsfIBaK4mDg1qUdM5LeUdvIyqwj3XHjFKAAvA==" + "resolved" "https://registry.npmjs.org/@aws-sdk/util-user-agent-browser/-/util-user-agent-browser-3.272.0.tgz" + "version" "3.272.0" + dependencies: + "@aws-sdk/types" "3.272.0" + "bowser" "^2.11.0" + "tslib" "^2.3.1" + +"@aws-sdk/util-user-agent-node@3.272.0": + "integrity" "sha512-ljK+R3l+Q1LIHrcR+Knhk0rmcSkfFadZ8V+crEGpABf/QUQRg7NkZMsoe814tfBO5F7tMxo8wwwSdaVNNHtoRA==" + "resolved" "https://registry.npmjs.org/@aws-sdk/util-user-agent-node/-/util-user-agent-node-3.272.0.tgz" + "version" "3.272.0" + dependencies: + "@aws-sdk/node-config-provider" "3.272.0" + "@aws-sdk/types" "3.272.0" + "tslib" "^2.3.1" + +"@aws-sdk/util-utf8-browser@^3.0.0": + "integrity" "sha512-UvFa/vR+e19XookZF8RzFZBrw2EUkQWxiBW0yYQAhvk3C+QVGl0H3ouca8LDBlBfQKXwmW3huo/59H8rwb1wJw==" + "resolved" "https://registry.npmjs.org/@aws-sdk/util-utf8-browser/-/util-utf8-browser-3.259.0.tgz" + "version" "3.259.0" + dependencies: + "tslib" "^2.3.1" + +"@aws-sdk/util-utf8@3.254.0": + "integrity" "sha512-14Kso/eIt5/qfIBmhEL9L1IfyUqswjSTqO2mY7KOzUZ9SZbwn3rpxmtkhmATkRjD7XIlLKaxBkI7tU9Zjzj8Kw==" + "resolved" "https://registry.npmjs.org/@aws-sdk/util-utf8/-/util-utf8-3.254.0.tgz" + "version" "3.254.0" + dependencies: + "@aws-sdk/util-buffer-from" "3.208.0" + "tslib" "^2.3.1" + +"@esbuild/win32-x64@0.17.4": + "integrity" "sha512-0kLAjs+xN5OjhTt/aUA6t48SfENSCKgGPfExADYTOo/UCn0ivxos9/anUVeSfg+L+2O9xkFxvJXIJfG+Q4sYSg==" + "resolved" "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.17.4.tgz" + "version" "0.17.4" + +"@mapbox/node-pre-gyp@^1.0.10": + "integrity" "sha512-4ySo4CjzStuprMwk35H5pPbkymjv1SF3jGLj6rAHp/xT/RF7TL7bd9CTm1xDY49K2qF7jmR/g7k+SkLETP6opA==" + "resolved" "https://registry.npmjs.org/@mapbox/node-pre-gyp/-/node-pre-gyp-1.0.10.tgz" + "version" "1.0.10" + dependencies: + "detect-libc" "^2.0.0" + "https-proxy-agent" "^5.0.0" + "make-dir" "^3.1.0" + "node-fetch" "^2.6.7" + "nopt" "^5.0.0" + "npmlog" "^5.0.1" + "rimraf" "^3.0.2" + "semver" "^7.3.5" + "tar" "^6.1.11" + +"@mfd/rbxdatastoreservice@^2.3.10": + "integrity" "sha512-sZkBwBolSwHT2RDz4//7K0Vkxdjo2Zg1RSdSaUasTUKWj+BMeANgyLv/baMFHcJFE/Z+3kCcCkU/VHqfiQAHgA==" + "resolved" "https://registry.npmjs.org/@mfd/rbxdatastoreservice/-/rbxdatastoreservice-2.3.11.tgz" + "version" "2.3.11" + dependencies: + "axios" "^0.27.2" + "crypto-js" "^4.0.0" + +"@nodelib/fs.scandir@2.1.5": + "integrity" "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==" + "resolved" "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz" + "version" "2.1.5" + dependencies: + "@nodelib/fs.stat" "2.0.5" + "run-parallel" "^1.1.9" + +"@nodelib/fs.stat@^2.0.2", "@nodelib/fs.stat@2.0.5": + "integrity" "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==" + "resolved" "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz" + "version" "2.0.5" + +"@nodelib/fs.walk@^1.2.3": + "integrity" "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==" + "resolved" "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz" + "version" "1.2.8" + dependencies: + "@nodelib/fs.scandir" "2.1.5" + "fastq" "^1.6.0" + +"@redis/bloom@1.2.0": + "integrity" "sha512-HG2DFjYKbpNmVXsa0keLHp/3leGJz1mjh09f2RLGGLQZzSHpkmZWuwJbAvo3QcRY8p80m5+ZdXZdYOSBLlp7Cg==" + "resolved" "https://registry.npmjs.org/@redis/bloom/-/bloom-1.2.0.tgz" + "version" "1.2.0" + +"@redis/client@^1.0.0", "@redis/client@1.5.6": + "integrity" "sha512-dFD1S6je+A47Lj22jN/upVU2fj4huR7S9APd7/ziUXsIXDL+11GPYti4Suv5y8FuXaN+0ZG4JF+y1houEJ7ToA==" + "resolved" "https://registry.npmjs.org/@redis/client/-/client-1.5.6.tgz" + "version" "1.5.6" + dependencies: + "cluster-key-slot" "1.1.2" + "generic-pool" "3.9.0" + "yallist" "4.0.0" + +"@redis/graph@1.1.0": + "integrity" "sha512-16yZWngxyXPd+MJxeSr0dqh2AIOi8j9yXKcKCwVaKDbH3HTuETpDVPcLujhFYVPtYrngSco31BUcSa9TH31Gqg==" + "resolved" "https://registry.npmjs.org/@redis/graph/-/graph-1.1.0.tgz" + "version" "1.1.0" + +"@redis/json@1.0.4": + "integrity" "sha512-LUZE2Gdrhg0Rx7AN+cZkb1e6HjoSKaeeW8rYnt89Tly13GBI5eP4CwDVr+MY8BAYfCg4/N15OUrtLoona9uSgw==" + "resolved" "https://registry.npmjs.org/@redis/json/-/json-1.0.4.tgz" + "version" "1.0.4" + +"@redis/search@1.1.2": + "integrity" "sha512-/cMfstG/fOh/SsE+4/BQGeuH/JJloeWuH+qJzM8dbxuWvdWibWAOAHHCZTMPhV3xIlH4/cUEIA8OV5QnYpaVoA==" + "resolved" "https://registry.npmjs.org/@redis/search/-/search-1.1.2.tgz" + "version" "1.1.2" + +"@redis/time-series@1.0.4": + "integrity" "sha512-ThUIgo2U/g7cCuZavucQTQzA9g9JbDDY2f64u3AbAoz/8vE2lt2U37LamDUVChhaDA3IRT9R6VvJwqnUfTJzng==" + "resolved" "https://registry.npmjs.org/@redis/time-series/-/time-series-1.0.4.tgz" + "version" "1.0.4" + +"@types/node@*": + "integrity" "sha512-gC3TazRzGoOnoKAhUx+Q0t8S9Tzs74z7m0ipwGpSqQrleP14hKxP4/JUeEQcD3W1/aIpnWl8pHowI7WokuZpXg==" + "resolved" "https://registry.npmjs.org/@types/node/-/node-18.13.0.tgz" + "version" "18.13.0" + +"@types/webidl-conversions@*": + "integrity" "sha512-xTE1E+YF4aWPJJeUzaZI5DRntlkY3+BCVJi0axFptnjGmAoWxkyREIh/XMrfxVLejwQxMCfDXdICo0VLxThrog==" + "resolved" "https://registry.npmjs.org/@types/webidl-conversions/-/webidl-conversions-7.0.0.tgz" + "version" "7.0.0" + +"@types/whatwg-url@^8.2.1": + "integrity" "sha512-FtQu10RWgn3D9U4aazdwIE2yzphmTJREDqNdODHrbrZmmMqI0vMheC/6NE/J1Yveaj8H+ela+YwWTjq5PGmuhA==" + "resolved" "https://registry.npmjs.org/@types/whatwg-url/-/whatwg-url-8.2.2.tgz" + "version" "8.2.2" + dependencies: + "@types/node" "*" + "@types/webidl-conversions" "*" + +"@yaireo/relative-time@^1.0.3": + "integrity" "sha512-CJGxyWjb4SnkqubyfiPNQeg0YrJKnVu+11DOP65ltXFxDsjjnm3IByXS9O1Ny9AU9Oxqg0a7Gt26tzXtcijicg==" + "resolved" "https://registry.npmjs.org/@yaireo/relative-time/-/relative-time-1.0.3.tgz" + "version" "1.0.3" + +"abbrev@1": + "integrity" "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==" + "resolved" "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz" + "version" "1.1.1" + +"accepts@~1.3.8": + "integrity" "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==" + "resolved" "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz" + "version" "1.3.8" + dependencies: + "mime-types" "~2.1.34" + "negotiator" "0.6.3" + +"acorn-node@^1.8.2": + "integrity" "sha512-8mt+fslDufLYntIoPAaIMUe/lrbrehIiwmR3t2k9LljIzoigEPF27eLk2hy8zSGzmR/ogr7zbRKINMo1u0yh5A==" + "resolved" "https://registry.npmjs.org/acorn-node/-/acorn-node-1.8.2.tgz" + "version" "1.8.2" + dependencies: + "acorn" "^7.0.0" + "acorn-walk" "^7.0.0" + "xtend" "^4.0.2" + +"acorn-walk@^7.0.0": + "integrity" "sha512-OPdCF6GsMIP+Az+aWfAAOEt2/+iVDKE7oy6lJ098aoe59oAmK76qV6Gw60SbZ8jHuG2wH058GF4pLFbYamYrVA==" + "resolved" "https://registry.npmjs.org/acorn-walk/-/acorn-walk-7.2.0.tgz" + "version" "7.2.0" + +"acorn@^7.0.0": + "integrity" "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==" + "resolved" "https://registry.npmjs.org/acorn/-/acorn-7.4.1.tgz" + "version" "7.4.1" + +"agent-base@6": + "integrity" "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==" + "resolved" "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz" + "version" "6.0.2" + dependencies: + "debug" "4" + +"ansi-regex@^5.0.1": + "integrity" "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==" + "resolved" "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz" + "version" "5.0.1" + +"ansi-styles@^4.0.0": + "integrity" "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==" + "resolved" "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz" + "version" "4.3.0" + dependencies: + "color-convert" "^2.0.1" + +"anymatch@~3.1.2": + "integrity" "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==" + "resolved" "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz" + "version" "3.1.3" + dependencies: + "normalize-path" "^3.0.0" + "picomatch" "^2.0.4" + +"append-field@^1.0.0": + "integrity" "sha512-klpgFSWLW1ZEs8svjfb7g4qWY0YS5imI82dTg+QahUvJ8YqAY0P10Uk8tTyh9ZGuYEZEMaeJYCF5BFuX552hsw==" + "resolved" "https://registry.npmjs.org/append-field/-/append-field-1.0.0.tgz" + "version" "1.0.0" + +"aproba@^1.0.3 || ^2.0.0": + "integrity" "sha512-lYe4Gx7QT+MKGbDsA+Z+he/Wtef0BiwDOlK/XkBrdfsh9J/jPPXbX0tE9x9cl27Tmu5gg3QUbUrQYa/y+KOHPQ==" + "resolved" "https://registry.npmjs.org/aproba/-/aproba-2.0.0.tgz" + "version" "2.0.0" + +"are-we-there-yet@^2.0.0": + "integrity" "sha512-Ci/qENmwHnsYo9xKIcUJN5LeDKdJ6R1Z1j9V/J5wyq8nh/mYPEpIKJbBZXtZjG04HiK7zV/p6Vs9952MrMeUIw==" + "resolved" "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-2.0.0.tgz" + "version" "2.0.0" + dependencies: + "delegates" "^1.0.0" + "readable-stream" "^3.6.0" + +"arg@^5.0.2": + "integrity" "sha512-PYjyFOLKQ9y57JvQ6QLo8dAgNqswh8M1RMJYdQduT6xbWSgK36P/Z/v+p888pM69jMMfS8Xd8F6I1kQ/I9HUGg==" + "resolved" "https://registry.npmjs.org/arg/-/arg-5.0.2.tgz" + "version" "5.0.2" + +"array-flatten@1.1.1": + "integrity" "sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg==" + "resolved" "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz" + "version" "1.1.1" + +"asynckit@^0.4.0": + "integrity" "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==" + "resolved" "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz" + "version" "0.4.0" + +"atob@^2.1.2": + "integrity" "sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg==" + "resolved" "https://registry.npmjs.org/atob/-/atob-2.1.2.tgz" + "version" "2.1.2" + +"autoprefixer@^10.0.2": + "integrity" "sha512-49vKpMqcZYsJjwotvt4+h/BCjJVnhGwcLpDt5xkcaOG3eLrG/HUYLagrihYsQ+qrIBgIzX1Rw7a6L8I/ZA1Atg==" + "resolved" "https://registry.npmjs.org/autoprefixer/-/autoprefixer-10.4.13.tgz" + "version" "10.4.13" + dependencies: + "browserslist" "^4.21.4" + "caniuse-lite" "^1.0.30001426" + "fraction.js" "^4.2.0" + "normalize-range" "^0.1.2" + "picocolors" "^1.0.0" + "postcss-value-parser" "^4.2.0" + +"axios@^0.27.2": + "integrity" "sha512-t+yRIyySRTp/wua5xEr+z1q60QmLq8ABsS5O9Me1AsE5dfKqgnCFzwiCZZ/cGNd1lq4/7akDWMxdhVlucjmnOQ==" + "resolved" "https://registry.npmjs.org/axios/-/axios-0.27.2.tgz" + "version" "0.27.2" + dependencies: + "follow-redirects" "^1.14.9" + "form-data" "^4.0.0" + +"balanced-match@^1.0.0": + "integrity" "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==" + "resolved" "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz" + "version" "1.0.2" + +"base32.js@0.0.1": + "integrity" "sha512-EGHIRiegFa62/SsA1J+Xs2tIzludPdzM064N9wjbiEgHnGnJ1V0WEpA4pEwCYT5nDvZk3ubf0shqaCS7k6xeUQ==" + "resolved" "https://registry.npmjs.org/base32.js/-/base32.js-0.0.1.tgz" + "version" "0.0.1" + +"base64-js@^1.3.1": + "integrity" "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==" + "resolved" "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz" + "version" "1.5.1" + +"bcrypt@^5.0.1": + "integrity" "sha512-RHBS7HI5N5tEnGTmtR/pppX0mmDSBpQ4aCBsj7CEQfYXDcO74A8sIBYcJMuCsis2E81zDxeENYhv66oZwLiA+Q==" + "resolved" "https://registry.npmjs.org/bcrypt/-/bcrypt-5.1.0.tgz" + "version" "5.1.0" + dependencies: + "@mapbox/node-pre-gyp" "^1.0.10" + "node-addon-api" "^5.0.0" + +"binary-extensions@^2.0.0": + "integrity" "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==" + "resolved" "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz" + "version" "2.2.0" + +"bintrees@1.0.2": + "integrity" "sha512-VOMgTMwjAaUG580SXn3LacVgjurrbMme7ZZNYGSSV7mmtY6QQRh0Eg3pwIcntQ77DErK1L0NxkbetjcoXzVwKw==" + "resolved" "https://registry.npmjs.org/bintrees/-/bintrees-1.0.2.tgz" + "version" "1.0.2" + +"body-parser@^1.20.0", "body-parser@1.20.1": + "integrity" "sha512-jWi7abTbYwajOytWCQc37VulmWiRae5RyTpaCyDcS5/lMdtwSz5lOpDE67srw/HYe35f1z3fDQw+3txg7gNtWw==" + "resolved" "https://registry.npmjs.org/body-parser/-/body-parser-1.20.1.tgz" + "version" "1.20.1" + dependencies: + "bytes" "3.1.2" + "content-type" "~1.0.4" + "debug" "2.6.9" + "depd" "2.0.0" + "destroy" "1.2.0" + "http-errors" "2.0.0" + "iconv-lite" "0.4.24" + "on-finished" "2.4.1" + "qs" "6.11.0" + "raw-body" "2.5.1" + "type-is" "~1.6.18" + "unpipe" "1.0.0" + +"bowser@^2.11.0": + "integrity" "sha512-AlcaJBi/pqqJBIQ8U9Mcpc9i8Aqxn88Skv5d+xBX006BY5u8N3mGLHa5Lgppa7L/HfwgwLgZ6NYs+Ag6uUmJRA==" + "resolved" "https://registry.npmjs.org/bowser/-/bowser-2.11.0.tgz" + "version" "2.11.0" + +"brace-expansion@^1.1.7": + "integrity" "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==" + "resolved" "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz" + "version" "1.1.11" + dependencies: + "balanced-match" "^1.0.0" + "concat-map" "0.0.1" + +"braces@^3.0.2", "braces@~3.0.2": + "integrity" "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==" + "resolved" "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz" + "version" "3.0.2" + dependencies: + "fill-range" "^7.0.1" + +"browserslist@^4.21.4", "browserslist@>= 4.21.0": + "integrity" "sha512-CBHJJdDmgjl3daYjN5Cp5kbTf1mUhZoS+beLklHIvkOWscs83YAhLlF3Wsh/lciQYAcbBJgTOD44VtG31ZM4Hw==" + "resolved" "https://registry.npmjs.org/browserslist/-/browserslist-4.21.4.tgz" + "version" "4.21.4" + dependencies: + "caniuse-lite" "^1.0.30001400" + "electron-to-chromium" "^1.4.251" + "node-releases" "^2.0.6" + "update-browserslist-db" "^1.0.9" + +"bson@^4.7.0": + "integrity" "sha512-Ry9wCtIZ5kGqkJoi6aD8KjxFZEx78guTQDnpXWiNthsxzrxAK/i8E6pCHAIZTbaEFWcOCvbecMukfK7XUvyLpQ==" + "resolved" "https://registry.npmjs.org/bson/-/bson-4.7.2.tgz" + "version" "4.7.2" + dependencies: + "buffer" "^5.6.0" + +"buffer-equal-constant-time@1.0.1": + "integrity" "sha512-zRpUiDwd/xk6ADqPMATG8vc9VPrkck7T07OIx0gnjmJAnHnTVXNQG3vfvWNuiZIkwu9KrKdA1iJKfsfTVxE6NA==" + "resolved" "https://registry.npmjs.org/buffer-equal-constant-time/-/buffer-equal-constant-time-1.0.1.tgz" + "version" "1.0.1" + +"buffer-from@^1.0.0": + "integrity" "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==" + "resolved" "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz" + "version" "1.1.2" + +"buffer@^5.6.0": + "integrity" "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==" + "resolved" "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz" + "version" "5.7.1" + dependencies: + "base64-js" "^1.3.1" + "ieee754" "^1.1.13" + +"busboy@^1.0.0": + "integrity" "sha512-8SFQbg/0hQ9xy3UNTB0YEnsNBbWfhf7RtnzpL7TkBiTBRfrQ9Fxcnz7VJsleJpyp6rVLvXiuORqjlHi5q+PYuA==" + "resolved" "https://registry.npmjs.org/busboy/-/busboy-1.6.0.tgz" + "version" "1.6.0" + dependencies: + "streamsearch" "^1.1.0" + +"bytes@3.1.2": + "integrity" "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==" + "resolved" "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz" + "version" "3.1.2" + +"call-bind@^1.0.0": + "integrity" "sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==" + "resolved" "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz" + "version" "1.0.2" + dependencies: + "function-bind" "^1.1.1" + "get-intrinsic" "^1.0.2" + +"camelcase-css@^2.0.1": + "integrity" "sha512-QOSvevhslijgYwRx6Rv7zKdMF8lbRmx+uQGx2+vDc+KI/eBnsy9kit5aj23AgGu3pa4t9AgwbnXWqS+iOY+2aA==" + "resolved" "https://registry.npmjs.org/camelcase-css/-/camelcase-css-2.0.1.tgz" + "version" "2.0.1" + +"camelcase@^5.0.0": + "integrity" "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==" + "resolved" "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz" + "version" "5.3.1" + +"caniuse-lite@^1.0.30001400", "caniuse-lite@^1.0.30001426": + "integrity" "sha512-OyxRR4Vof59I3yGWXws6i908EtGbMzVUi3ganaZQHmydk1iwDhRnvaPG2WaR0KcqrDFKrxVZHULT396LEPhXfg==" + "resolved" "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001441.tgz" + "version" "1.0.30001441" + +"chokidar@^3.5.2", "chokidar@^3.5.3": + "integrity" "sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==" + "resolved" "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz" + "version" "3.5.3" + dependencies: + "anymatch" "~3.1.2" + "braces" "~3.0.2" + "glob-parent" "~5.1.2" + "is-binary-path" "~2.1.0" + "is-glob" "~4.0.1" + "normalize-path" "~3.0.0" + "readdirp" "~3.6.0" + optionalDependencies: + "fsevents" "~2.3.2" + +"chownr@^2.0.0": + "integrity" "sha512-bIomtDF5KGpdogkLd9VspvFzk9KfpyyGlS8YFVZl7TGPBHL5snIOnxeshwVgPteQ9b4Eydl+pVbIyE1DcvCWgQ==" + "resolved" "https://registry.npmjs.org/chownr/-/chownr-2.0.0.tgz" + "version" "2.0.0" + +"cliui@^6.0.0": + "integrity" "sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==" + "resolved" "https://registry.npmjs.org/cliui/-/cliui-6.0.0.tgz" + "version" "6.0.0" + dependencies: + "string-width" "^4.2.0" + "strip-ansi" "^6.0.0" + "wrap-ansi" "^6.2.0" + +"cluster-key-slot@1.1.2": + "integrity" "sha512-RMr0FhtfXemyinomL4hrWcYJxmX6deFdCxpJzhDttxgO1+bcCnkk+9drydLVDmAMG7NE6aN/fl4F7ucU/90gAA==" + "resolved" "https://registry.npmjs.org/cluster-key-slot/-/cluster-key-slot-1.1.2.tgz" + "version" "1.1.2" + +"color-convert@^2.0.1": + "integrity" "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==" + "resolved" "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz" + "version" "2.0.1" + dependencies: + "color-name" "~1.1.4" + +"color-name@^1.0.0", "color-name@^1.1.4", "color-name@~1.1.4": + "integrity" "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + "resolved" "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz" + "version" "1.1.4" + +"color-string@^1.9.0": + "integrity" "sha512-shrVawQFojnZv6xM40anx4CkoDP+fZsw/ZerEMsW/pyzsRbElpsL/DBVW7q3ExxwusdNXI3lXpuhEZkzs8p5Eg==" + "resolved" "https://registry.npmjs.org/color-string/-/color-string-1.9.1.tgz" + "version" "1.9.1" + dependencies: + "color-name" "^1.0.0" + "simple-swizzle" "^0.2.2" + +"color-support@^1.1.2": + "integrity" "sha512-qiBjkpbMLO/HL68y+lh4q0/O1MZFj2RX6X/KmMa3+gJD3z+WwI1ZzDHysvqHGS3mP6mznPckpXmw1nI9cJjyRg==" + "resolved" "https://registry.npmjs.org/color-support/-/color-support-1.1.3.tgz" + "version" "1.1.3" + +"color@^4.2": + "integrity" "sha512-1rXeuUUiGGrykh+CeBdu5Ie7OJwinCgQY0bc7GCRxy5xVHy+moaqkpL/jqQq0MtQOeYcrqEz4abc5f0KtU7W4A==" + "resolved" "https://registry.npmjs.org/color/-/color-4.2.3.tgz" + "version" "4.2.3" + dependencies: + "color-convert" "^2.0.1" + "color-string" "^1.9.0" + +"combined-stream@^1.0.8": + "integrity" "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==" + "resolved" "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz" + "version" "1.0.8" + dependencies: + "delayed-stream" "~1.0.0" + +"commander@^2.20.3": + "integrity" "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==" + "resolved" "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz" + "version" "2.20.3" + +"concat-map@0.0.1": + "integrity" "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==" + "resolved" "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz" + "version" "0.0.1" + +"concat-stream@^1.5.2": + "integrity" "sha512-27HBghJxjiZtIk3Ycvn/4kbJk/1uZuJFfuPEns6LaEvpvG1f0hTea8lilrouyo9mVc2GWdcEZ8OLoGmSADlrCw==" + "resolved" "https://registry.npmjs.org/concat-stream/-/concat-stream-1.6.2.tgz" + "version" "1.6.2" + dependencies: + "buffer-from" "^1.0.0" + "inherits" "^2.0.3" + "readable-stream" "^2.2.2" + "typedarray" "^0.0.6" + +"connect-flash@^0.1.1": + "integrity" "sha512-2rcfELQt/ZMP+SM/pG8PyhJRaLKp+6Hk2IUBNkEit09X+vwn3QsAL3ZbYtxUn7NVPzbMTSLRDhqe0B/eh30RYA==" + "resolved" "https://registry.npmjs.org/connect-flash/-/connect-flash-0.1.1.tgz" + "version" "0.1.1" + +"console-control-strings@^1.0.0", "console-control-strings@^1.1.0": + "integrity" "sha512-ty/fTekppD2fIwRvnZAVdeOiGd1c7YXEixbgJTNzqcxJWKQnjJ/V1bNEEE6hygpM3WjwHFUVK6HTjWSzV4a8sQ==" + "resolved" "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz" + "version" "1.1.0" + +"content-disposition@0.5.4": + "integrity" "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==" + "resolved" "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz" + "version" "0.5.4" + dependencies: + "safe-buffer" "5.2.1" + +"content-type@~1.0.4": + "integrity" "sha512-hIP3EEPs8tB9AT1L+NUqtwOAps4mk2Zob89MWXMHjHWg9milF/j4osnnQLXBCBFBk/tvIG/tUc9mOUJiPBhPXA==" + "resolved" "https://registry.npmjs.org/content-type/-/content-type-1.0.4.tgz" + "version" "1.0.4" + +"cookie-parser@^1.4.6": + "integrity" "sha512-z3IzaNjdwUC2olLIB5/ITd0/setiaFMLYiZJle7xg5Fe9KWAceil7xszYfHHBtDFYLSgJduS2Ty0P1uJdPDJeA==" + "resolved" "https://registry.npmjs.org/cookie-parser/-/cookie-parser-1.4.6.tgz" + "version" "1.4.6" + dependencies: + "cookie" "0.4.1" + "cookie-signature" "1.0.6" + +"cookie-signature@1.0.6": + "integrity" "sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ==" + "resolved" "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz" + "version" "1.0.6" + +"cookie@0.4.1": + "integrity" "sha512-ZwrFkGJxUR3EIoXtO+yVE69Eb7KlixbaeAWfBQB9vVsNn/o+Yw69gBWSSDK825hQNdN+wF8zELf3dFNl/kxkUA==" + "resolved" "https://registry.npmjs.org/cookie/-/cookie-0.4.1.tgz" + "version" "0.4.1" + +"cookie@0.4.2": + "integrity" "sha512-aSWTXFzaKWkvHO1Ny/s+ePFpvKsPnjc551iI41v3ny/ow6tBG5Vd+FuqGNhh1LxOmVzOlGUriIlOaokOvhaStA==" + "resolved" "https://registry.npmjs.org/cookie/-/cookie-0.4.2.tgz" + "version" "0.4.2" + +"cookie@0.5.0": + "integrity" "sha512-YZ3GUyn/o8gfKJlnlX7g7xq4gyO6OSuhGPKaaGssGB2qgDUS0gPgtTvoyZLTt9Ab6dC4hfc9dV5arkvc/OCmrw==" + "resolved" "https://registry.npmjs.org/cookie/-/cookie-0.5.0.tgz" + "version" "0.5.0" + +"core-util-is@~1.0.0": + "integrity" "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==" + "resolved" "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz" + "version" "1.0.3" + +"cors@^2.8.5": + "integrity" "sha512-KIHbLJqu73RGr/hnbrO9uBeixNGuvSQjul/jdFvS/KFSIH1hWVd1ng7zOHx+YrEfInLG7q4n6GHQ9cDtxv/P6g==" + "resolved" "https://registry.npmjs.org/cors/-/cors-2.8.5.tgz" + "version" "2.8.5" + dependencies: + "object-assign" "^4" + "vary" "^1" + +"cross-env@^7.0.3": + "integrity" "sha512-+/HKd6EgcQCJGh2PSjZuUitQBQynKor4wrFbRg4DtAgS1aWO+gU52xpH7M9ScGgXSYmAVS9bIJ8EzuaGw0oNAw==" + "resolved" "https://registry.npmjs.org/cross-env/-/cross-env-7.0.3.tgz" + "version" "7.0.3" + dependencies: + "cross-spawn" "^7.0.1" + +"cross-spawn@^7.0.1": + "integrity" "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==" + "resolved" "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz" + "version" "7.0.3" + dependencies: + "path-key" "^3.1.0" + "shebang-command" "^2.0.0" + "which" "^2.0.1" + +"crypto-js@^4.0.0": + "integrity" "sha512-o2JlM7ydqd3Qk9CA0L4NL6mTzU2sdx96a+oOfPu8Mkl/PK51vSyoi8/rQ8NknZtk44vq15lmhAj9CIAGwgeWKw==" + "resolved" "https://registry.npmjs.org/crypto-js/-/crypto-js-4.1.1.tgz" + "version" "4.1.1" + +"css-selector-tokenizer@^0.8.0": + "integrity" "sha512-Jd6Ig3/pe62/qe5SBPTN8h8LeUg/pT4lLgtavPf7updwwHpvFzxvOQBHYj2LZDMjUnBzgvIUSjRcf6oT5HzHFg==" + "resolved" "https://registry.npmjs.org/css-selector-tokenizer/-/css-selector-tokenizer-0.8.0.tgz" + "version" "0.8.0" + dependencies: + "cssesc" "^3.0.0" + "fastparse" "^1.1.2" + +"cssesc@^3.0.0": + "integrity" "sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==" + "resolved" "https://registry.npmjs.org/cssesc/-/cssesc-3.0.0.tgz" + "version" "3.0.0" + +"cssfilter@0.0.10": + "integrity" "sha512-FAaLDaplstoRsDR8XGYH51znUN0UY7nMc6Z9/fvE8EXGwvJE9hu7W2vHwx1+bd6gCYnln9nLbzxFTrcO9YQDZw==" + "resolved" "https://registry.npmjs.org/cssfilter/-/cssfilter-0.0.10.tgz" + "version" "0.0.10" + +"daisyui@^2.24.2": + "integrity" "sha512-i59+nLuzzPAVOhNhot3KLtt6stfYeCIPXs9uiLcpXjykpqxHfBA3W6hQWOUWPMwfqhyQd0WKub3sydtPGjzLtA==" + "resolved" "https://registry.npmjs.org/daisyui/-/daisyui-2.46.1.tgz" + "version" "2.46.1" + dependencies: + "color" "^4.2" + "css-selector-tokenizer" "^0.8.0" + "postcss-js" "^4.0.0" + "tailwindcss" "^3" + +"data-uri-to-buffer@^4.0.0": + "integrity" "sha512-Vr3mLBA8qWmcuschSLAOogKgQ/Jwxulv3RNE4FXnYWRGujzrRWQI4m12fQqRkwX06C0KanhLr4hK+GydchZsaA==" + "resolved" "https://registry.npmjs.org/data-uri-to-buffer/-/data-uri-to-buffer-4.0.0.tgz" + "version" "4.0.0" + +"debug@^3.2.7": + "integrity" "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==" + "resolved" "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz" + "version" "3.2.7" + dependencies: + "ms" "^2.1.1" + +"debug@2.6.9": + "integrity" "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==" + "resolved" "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz" + "version" "2.6.9" + dependencies: + "ms" "2.0.0" + +"debug@4.x": + "integrity" "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==" + "resolved" "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz" + "version" "4.3.4" + dependencies: + "ms" "2.1.2" + +"debug@4": + "integrity" "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==" + "resolved" "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz" + "version" "4.3.4" + dependencies: + "ms" "2.1.2" + +"decamelize@^1.2.0": + "integrity" "sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA==" + "resolved" "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz" + "version" "1.2.0" + +"defined@^1.0.0": + "integrity" "sha512-hsBd2qSVCRE+5PmNdHt1uzyrFu5d3RwmFDKzyNZMFq/EwDNJF7Ee5+D5oEKF0hU6LhtoUF1macFvOe4AskQC1Q==" + "resolved" "https://registry.npmjs.org/defined/-/defined-1.0.1.tgz" + "version" "1.0.1" + +"delayed-stream@~1.0.0": + "integrity" "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==" + "resolved" "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz" + "version" "1.0.0" + +"delegates@^1.0.0": + "integrity" "sha512-bd2L678uiWATM6m5Z1VzNCErI3jiGzt6HGY8OVICs40JQq/HALfbyNJmp0UDakEY4pMMaN0Ly5om/B1VI/+xfQ==" + "resolved" "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz" + "version" "1.0.0" + +"depd@~2.0.0", "depd@2.0.0": + "integrity" "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==" + "resolved" "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz" + "version" "2.0.0" + +"destroy@1.2.0": + "integrity" "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==" + "resolved" "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz" + "version" "1.2.0" + +"detect-libc@^2.0.0": + "integrity" "sha512-463v3ZeIrcWtdgIg6vI6XUncguvr2TnGl4SzDXinkt9mSLpBJKXT3mW6xT3VQdDN11+WVs29pgvivTc4Lp8v+w==" + "resolved" "https://registry.npmjs.org/detect-libc/-/detect-libc-2.0.1.tgz" + "version" "2.0.1" + +"detective@^5.2.1": + "integrity" "sha512-v9XE1zRnz1wRtgurGu0Bs8uHKFSTdteYZNbIPFVhUZ39L/S79ppMpdmVOZAnoz1jfEFodc48n6MX483Xo3t1yw==" + "resolved" "https://registry.npmjs.org/detective/-/detective-5.2.1.tgz" + "version" "5.2.1" + dependencies: + "acorn-node" "^1.8.2" + "defined" "^1.0.0" + "minimist" "^1.2.6" + +"didyoumean@^1.2.2": + "integrity" "sha512-gxtyfqMg7GKyhQmb056K7M3xszy/myH8w+B4RT+QXBQsvAOdc3XymqDDPHx1BgPgsdAA5SIifona89YtRATDzw==" + "resolved" "https://registry.npmjs.org/didyoumean/-/didyoumean-1.2.2.tgz" + "version" "1.2.2" + +"dijkstrajs@^1.0.1": + "integrity" "sha512-QV6PMaHTCNmKSeP6QoXhVTw9snc9VD8MulTT0Bd99Pacp4SS1cjcrYPgBPmibqKVtMJJfqC6XvOXgPMEEPH/fg==" + "resolved" "https://registry.npmjs.org/dijkstrajs/-/dijkstrajs-1.0.2.tgz" + "version" "1.0.2" + +"dlv@^1.1.3": + "integrity" "sha512-+HlytyjlPKnIG8XuRG8WvmBP8xs8P71y+SKKS6ZXWoEgLuePxtDoUEiH7WkdePWrQ5JBpE6aoVqfZfJUQkjXwA==" + "resolved" "https://registry.npmjs.org/dlv/-/dlv-1.1.3.tgz" + "version" "1.1.3" + +"dotenv@^16.0.1": + "integrity" "sha512-7GO6HghkA5fYG9TYnNxi14/7K9f5occMlp3zXAuSxn7CKCxt9xbNWG7yF8hTCSUchlfWSe3uLmlPfigevRItzQ==" + "resolved" "https://registry.npmjs.org/dotenv/-/dotenv-16.0.3.tgz" + "version" "16.0.3" + +"easy-soap-request@^4.8.0": + "integrity" "sha512-fD1NXRv14P4IdAoyYpGJ2kB+292vYfvU7qLbmUw2x2HA+U74LWVyErjyNf2Jxn1mUAwp+sRdMlkmrUrPY0/wAg==" + "resolved" "https://registry.npmjs.org/easy-soap-request/-/easy-soap-request-4.8.0.tgz" + "version" "4.8.0" + dependencies: + "axios" "^0.27.2" + +"ecdsa-sig-formatter@1.0.11": + "integrity" "sha512-nagl3RYrbNv6kQkeJIpt6NJZy8twLB/2vtz6yN9Z4vRKHN4/QZJIEbqohALSgwKdnksuY3k5Addp5lg8sVoVcQ==" + "resolved" "https://registry.npmjs.org/ecdsa-sig-formatter/-/ecdsa-sig-formatter-1.0.11.tgz" + "version" "1.0.11" + dependencies: + "safe-buffer" "^5.0.1" + +"ee-first@1.1.1": + "integrity" "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==" + "resolved" "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz" + "version" "1.1.1" + +"electron-to-chromium@^1.4.251": + "integrity" "sha512-M8WEXFuKXMYMVr45fo8mq0wUrrJHheiKZf6BArTKk9ZBYCKJEOU5H8cdWgDT+qCVZf7Na4lVUaZsA+h6uA9+PA==" + "resolved" "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.284.tgz" + "version" "1.4.284" + +"emoji-regex@^8.0.0": + "integrity" "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" + "resolved" "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz" + "version" "8.0.0" + +"encode-utf8@^1.0.3": + "integrity" "sha512-ucAnuBEhUK4boH2HjVYG5Q2mQyPorvv0u/ocS+zhdw0S8AlHYY+GOFhP1Gio5z4icpP2ivFSvhtFjQi8+T9ppw==" + "resolved" "https://registry.npmjs.org/encode-utf8/-/encode-utf8-1.0.3.tgz" + "version" "1.0.3" + +"encodeurl@~1.0.2": + "integrity" "sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==" + "resolved" "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz" + "version" "1.0.2" + +"esbuild@0.17.4": + "integrity" "sha512-zBn9MeCwT7W5F1a3lXClD61ip6vQM+H8Msb0w8zMT4ZKBpDg+rFAraNyWCDelB/2L6M3g6AXHPnsyvjMFnxtFw==" + "resolved" "https://registry.npmjs.org/esbuild/-/esbuild-0.17.4.tgz" + "version" "0.17.4" + optionalDependencies: + "@esbuild/android-arm" "0.17.4" + "@esbuild/android-arm64" "0.17.4" + "@esbuild/android-x64" "0.17.4" + "@esbuild/darwin-arm64" "0.17.4" + "@esbuild/darwin-x64" "0.17.4" + "@esbuild/freebsd-arm64" "0.17.4" + "@esbuild/freebsd-x64" "0.17.4" + "@esbuild/linux-arm" "0.17.4" + "@esbuild/linux-arm64" "0.17.4" + "@esbuild/linux-ia32" "0.17.4" + "@esbuild/linux-loong64" "0.17.4" + "@esbuild/linux-mips64el" "0.17.4" + "@esbuild/linux-ppc64" "0.17.4" + "@esbuild/linux-riscv64" "0.17.4" + "@esbuild/linux-s390x" "0.17.4" + "@esbuild/linux-x64" "0.17.4" + "@esbuild/netbsd-x64" "0.17.4" + "@esbuild/openbsd-x64" "0.17.4" + "@esbuild/sunos-x64" "0.17.4" + "@esbuild/win32-arm64" "0.17.4" + "@esbuild/win32-ia32" "0.17.4" + "@esbuild/win32-x64" "0.17.4" + +"escalade@^3.1.1": + "integrity" "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==" + "resolved" "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz" + "version" "3.1.1" + +"escape-html@~1.0.3": + "integrity" "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==" + "resolved" "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz" + "version" "1.0.3" + +"etag@~1.8.1": + "integrity" "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==" + "resolved" "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz" + "version" "1.8.1" + +"express-flash-message@^2.1.0": + "integrity" "sha512-oR/cwzt7CfjSUt7XwEZCCyOegylHuTF8/by6+jAshZh2TzREqDIjfU0JU5M6usurSk/ep3lUxxyaCbujyERyTQ==" + "resolved" "https://registry.npmjs.org/express-flash-message/-/express-flash-message-2.1.0.tgz" + "version" "2.1.0" + +"express-prom-bundle@^6.5.0": + "integrity" "sha512-tZh2P2p5a8/yxQ5VbRav011Poa4R0mHqdFwn9Swe/obXDe5F0jY9wtRAfNYnqk4LXY7akyvR/nrvAHxQPWUjsQ==" + "resolved" "https://registry.npmjs.org/express-prom-bundle/-/express-prom-bundle-6.6.0.tgz" + "version" "6.6.0" + dependencies: + "on-finished" "^2.3.0" + "url-value-parser" "^2.0.0" + +"express-rate-limit@^6.7.0": + "integrity" "sha512-vhwIdRoqcYB/72TK3tRZI+0ttS8Ytrk24GfmsxDXK9o9IhHNO5bXRiXQSExPQ4GbaE5tvIS7j1SGrxsuWs+sGA==" + "resolved" "https://registry.npmjs.org/express-rate-limit/-/express-rate-limit-6.7.0.tgz" + "version" "6.7.0" + +"express-session@^1.17.3": + "integrity" "sha512-4+otWXlShYlG1Ma+2Jnn+xgKUZTMJ5QD3YvfilX3AcocOAbIkVylSWEklzALe/+Pu4qV6TYBj5GwOBFfdKqLBw==" + "resolved" "https://registry.npmjs.org/express-session/-/express-session-1.17.3.tgz" + "version" "1.17.3" + dependencies: + "cookie" "0.4.2" + "cookie-signature" "1.0.6" + "debug" "2.6.9" + "depd" "~2.0.0" + "on-headers" "~1.0.2" + "parseurl" "~1.3.3" + "safe-buffer" "5.2.1" + "uid-safe" "~2.1.5" + +"express@^4 || ^5", "express@^4.18.1": + "integrity" "sha512-5/PsL6iGPdfQ/lKM1UuielYgv3BUoJfz1aUwU9vHZ+J7gyvwdQXFEBIEIaxeGf0GIcreATNyBExtalisDbuMqQ==" + "resolved" "https://registry.npmjs.org/express/-/express-4.18.2.tgz" + "version" "4.18.2" + dependencies: + "accepts" "~1.3.8" + "array-flatten" "1.1.1" + "body-parser" "1.20.1" + "content-disposition" "0.5.4" + "content-type" "~1.0.4" + "cookie" "0.5.0" + "cookie-signature" "1.0.6" + "debug" "2.6.9" + "depd" "2.0.0" + "encodeurl" "~1.0.2" + "escape-html" "~1.0.3" + "etag" "~1.8.1" + "finalhandler" "1.2.0" + "fresh" "0.5.2" + "http-errors" "2.0.0" + "merge-descriptors" "1.0.1" + "methods" "~1.1.2" + "on-finished" "2.4.1" + "parseurl" "~1.3.3" + "path-to-regexp" "0.1.7" + "proxy-addr" "~2.0.7" + "qs" "6.11.0" + "range-parser" "~1.2.1" + "safe-buffer" "5.2.1" + "send" "0.18.0" + "serve-static" "1.15.0" + "setprototypeof" "1.2.0" + "statuses" "2.0.1" + "type-is" "~1.6.18" + "utils-merge" "1.0.1" + "vary" "~1.1.2" + +"fast-glob@^3.2.12": + "integrity" "sha512-DVj4CQIYYow0BlaelwK1pHl5n5cRSJfM60UA0zK891sVInoPri2Ekj7+e1CT3/3qxXenpI+nBBmQAcJPJgaj4w==" + "resolved" "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.12.tgz" + "version" "3.2.12" + dependencies: + "@nodelib/fs.stat" "^2.0.2" + "@nodelib/fs.walk" "^1.2.3" + "glob-parent" "^5.1.2" + "merge2" "^1.3.0" + "micromatch" "^4.0.4" + +"fast-xml-parser@4.0.11": + "integrity" "sha512-4aUg3aNRR/WjQAcpceODG1C3x3lFANXRo8+1biqfieHmg9pyMt7qB4lQV/Ta6sJCTbA5vfD8fnA8S54JATiFUA==" + "resolved" "https://registry.npmjs.org/fast-xml-parser/-/fast-xml-parser-4.0.11.tgz" + "version" "4.0.11" + dependencies: + "strnum" "^1.0.5" + +"fastparse@^1.1.2": + "integrity" "sha512-483XLLxTVIwWK3QTrMGRqUfUpoOs/0hbQrl2oz4J0pAcm3A3bu84wxTFqGqkJzewCLdME38xJLJAxBABfQT8sQ==" + "resolved" "https://registry.npmjs.org/fastparse/-/fastparse-1.1.2.tgz" + "version" "1.1.2" + +"fastq@^1.6.0": + "integrity" "sha512-wBrocU2LCXXa+lWBt8RoIRD89Fi8OdABODa/kEnyeyjS5aZO5/GNvI5sEINADqP/h8M29UHTHUb53sUu5Ihqdw==" + "resolved" "https://registry.npmjs.org/fastq/-/fastq-1.15.0.tgz" + "version" "1.15.0" + dependencies: + "reusify" "^1.0.4" + +"fetch-blob@^3.1.2", "fetch-blob@^3.1.4": + "integrity" "sha512-7yAQpD2UMJzLi1Dqv7qFYnPbaPx7ZfFK6PiIxQ4PfkGPyNyl2Ugx+a/umUonmKqjhM4DnfbMvdX6otXq83soQQ==" + "resolved" "https://registry.npmjs.org/fetch-blob/-/fetch-blob-3.2.0.tgz" + "version" "3.2.0" + dependencies: + "node-domexception" "^1.0.0" + "web-streams-polyfill" "^3.0.3" + +"file-type-checker@^1.0.4": + "integrity" "sha512-hhleilG34kfSjlSfAAj8DVvqXxMwEIVY/pkWnkMVbqdmly6jUv7jjNw/dmvdcbMt6joXlQgavCJCtNDRzODOsQ==" + "resolved" "https://registry.npmjs.org/file-type-checker/-/file-type-checker-1.0.4.tgz" + "version" "1.0.4" + +"fill-range@^7.0.1": + "integrity" "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==" + "resolved" "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz" + "version" "7.0.1" + dependencies: + "to-regex-range" "^5.0.1" + +"finalhandler@1.2.0": + "integrity" "sha512-5uXcUVftlQMFnWC9qu/svkWv3GTd2PfUhK/3PLkYNAe7FbqJMt3515HaxE6eRL74GdsriiwujiawdaB1BpEISg==" + "resolved" "https://registry.npmjs.org/finalhandler/-/finalhandler-1.2.0.tgz" + "version" "1.2.0" + dependencies: + "debug" "2.6.9" + "encodeurl" "~1.0.2" + "escape-html" "~1.0.3" + "on-finished" "2.4.1" + "parseurl" "~1.3.3" + "statuses" "2.0.1" + "unpipe" "~1.0.0" + +"find-up@^4.1.0": + "integrity" "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==" + "resolved" "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz" + "version" "4.1.0" + dependencies: + "locate-path" "^5.0.0" + "path-exists" "^4.0.0" + +"follow-redirects@^1.14.9": + "integrity" "sha512-VQLG33o04KaQ8uYi2tVNbdrWp1QWxNNea+nmIB4EVM28v0hmP17z7aG1+wAkNzVq4KeXTq3221ye5qTJP91JwA==" + "resolved" "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.2.tgz" + "version" "1.15.2" + +"form-data@^4.0.0": + "integrity" "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==" + "resolved" "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz" + "version" "4.0.0" + dependencies: + "asynckit" "^0.4.0" + "combined-stream" "^1.0.8" + "mime-types" "^2.1.12" + +"formdata-polyfill@^4.0.10": + "integrity" "sha512-buewHzMvYL29jdeQTVILecSaZKnt/RJWjoZCF5OW60Z67/GmSLBkOFM7qh1PI3zFNtJbaZL5eQu1vLfazOwj4g==" + "resolved" "https://registry.npmjs.org/formdata-polyfill/-/formdata-polyfill-4.0.10.tgz" + "version" "4.0.10" + dependencies: + "fetch-blob" "^3.1.2" + +"forwarded@0.2.0": + "integrity" "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==" + "resolved" "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz" + "version" "0.2.0" + +"fraction.js@^4.2.0": + "integrity" "sha512-MhLuK+2gUcnZe8ZHlaaINnQLl0xRIGRfcGk2yl8xoQAfHrSsL3rYu6FCmBdkdbhc9EPlwyGHewaRsvwRMJtAlA==" + "resolved" "https://registry.npmjs.org/fraction.js/-/fraction.js-4.2.0.tgz" + "version" "4.2.0" + +"fresh@0.5.2": + "integrity" "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==" + "resolved" "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz" + "version" "0.5.2" + +"fs-memo@^1.2.0": + "integrity" "sha512-YEexkCpL4j03jn5SxaMHqcO6IuWuqm8JFUYhyCep7Ao89JIYmB8xoKhK7zXXJ9cCaNXpyNH5L3QtAmoxjoHW2w==" + "resolved" "https://registry.npmjs.org/fs-memo/-/fs-memo-1.2.0.tgz" + "version" "1.2.0" + +"fs-minipass@^2.0.0": + "integrity" "sha512-V/JgOLFCS+R6Vcq0slCuaeWEdNC3ouDlJMNIsacH2VtALiu9mV4LPrHc5cDl8k5aw6J8jwgWWpiTo5RYhmIzvg==" + "resolved" "https://registry.npmjs.org/fs-minipass/-/fs-minipass-2.1.0.tgz" + "version" "2.1.0" + dependencies: + "minipass" "^3.0.0" + +"fs.realpath@^1.0.0": + "integrity" "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==" + "resolved" "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz" + "version" "1.0.0" + +"function-bind@^1.1.1": + "integrity" "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==" + "resolved" "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz" + "version" "1.1.1" + +"gauge@^3.0.0": + "integrity" "sha512-+5J6MS/5XksCuXq++uFRsnUd7Ovu1XenbeuIuNRJxYWjgQbPuFhT14lAvsWfqfAmnwluf1OwMjz39HjfLPci0Q==" + "resolved" "https://registry.npmjs.org/gauge/-/gauge-3.0.2.tgz" + "version" "3.0.2" + dependencies: + "aproba" "^1.0.3 || ^2.0.0" + "color-support" "^1.1.2" + "console-control-strings" "^1.0.0" + "has-unicode" "^2.0.1" + "object-assign" "^4.1.1" + "signal-exit" "^3.0.0" + "string-width" "^4.2.3" + "strip-ansi" "^6.0.1" + "wide-align" "^1.1.2" + +"generic-pool@3.9.0": + "integrity" "sha512-hymDOu5B53XvN4QT9dBmZxPX4CWhBPPLguTZ9MMFeFa/Kg0xWVfylOVNlJji/E7yTZWFd/q9GO5TxDLq156D7g==" + "resolved" "https://registry.npmjs.org/generic-pool/-/generic-pool-3.9.0.tgz" + "version" "3.9.0" + +"get-caller-file@^2.0.1": + "integrity" "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==" + "resolved" "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz" + "version" "2.0.5" + +"get-intrinsic@^1.0.2": + "integrity" "sha512-QJVz1Tj7MS099PevUG5jvnt9tSkXN8K14dxQlikJuPt4uD9hHAHjLyLBiLR5zELelBdD9QNRAXZzsJx0WaDL9A==" + "resolved" "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.1.3.tgz" + "version" "1.1.3" + dependencies: + "function-bind" "^1.1.1" + "has" "^1.0.3" + "has-symbols" "^1.0.3" + +"get-port-please@^2.6.1": + "integrity" "sha512-4PDSrL6+cuMM1xs6w36ZIkaKzzE0xzfVBCfebHIJ3FE8iB9oic/ECwPw3iNiD4h1AoJ5XLLBhEviFAVrZsDC5A==" + "resolved" "https://registry.npmjs.org/get-port-please/-/get-port-please-2.6.1.tgz" + "version" "2.6.1" + dependencies: + "fs-memo" "^1.2.0" + +"get-port@^6.1.2": + "integrity" "sha512-BrGGraKm2uPqurfGVj/z97/zv8dPleC6x9JBNRTrDNtCkkRF4rPwrQXFgL7+I+q8QSdU4ntLQX2D7KIxSy8nGw==" + "resolved" "https://registry.npmjs.org/get-port/-/get-port-6.1.2.tgz" + "version" "6.1.2" + +"glob-parent@^5.1.2", "glob-parent@~5.1.2": + "integrity" "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==" + "resolved" "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz" + "version" "5.1.2" + dependencies: + "is-glob" "^4.0.1" + +"glob-parent@^6.0.2": + "integrity" "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==" + "resolved" "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz" + "version" "6.0.2" + dependencies: + "is-glob" "^4.0.3" + +"glob@^7.1.3": + "integrity" "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==" + "resolved" "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz" + "version" "7.2.3" + dependencies: + "fs.realpath" "^1.0.0" + "inflight" "^1.0.4" + "inherits" "2" + "minimatch" "^3.1.1" + "once" "^1.3.0" + "path-is-absolute" "^1.0.0" + +"has-flag@^3.0.0": + "integrity" "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==" + "resolved" "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz" + "version" "3.0.0" + +"has-symbols@^1.0.3": + "integrity" "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==" + "resolved" "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz" + "version" "1.0.3" + +"has-unicode@^2.0.1": + "integrity" "sha512-8Rf9Y83NBReMnx0gFzA8JImQACstCYWUplepDa9xprwwtmgEZUF0h/i5xSA625zB/I37EtrswSST6OXxwaaIJQ==" + "resolved" "https://registry.npmjs.org/has-unicode/-/has-unicode-2.0.1.tgz" + "version" "2.0.1" + +"has@^1.0.3": + "integrity" "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==" + "resolved" "https://registry.npmjs.org/has/-/has-1.0.3.tgz" + "version" "1.0.3" + dependencies: + "function-bind" "^1.1.1" + +"helmet@^5.1.1": + "integrity" "sha512-/yX0oVZBggA9cLJh8aw3PPCfedBnbd7J2aowjzsaWwZh7/UFY0nccn/aHAggIgWUFfnykX8GKd3a1pSbrmlcVQ==" + "resolved" "https://registry.npmjs.org/helmet/-/helmet-5.1.1.tgz" + "version" "5.1.1" + +"http-errors@2.0.0": + "integrity" "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==" + "resolved" "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz" + "version" "2.0.0" + dependencies: + "depd" "2.0.0" + "inherits" "2.0.4" + "setprototypeof" "1.2.0" + "statuses" "2.0.1" + "toidentifier" "1.0.1" + +"https-proxy-agent@^5.0.0": + "integrity" "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==" + "resolved" "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz" + "version" "5.0.1" + dependencies: + "agent-base" "6" + "debug" "4" + +"iconv-lite@0.4.24": + "integrity" "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==" + "resolved" "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz" + "version" "0.4.24" + dependencies: + "safer-buffer" ">= 2.1.2 < 3" + +"ieee754@^1.1.13": + "integrity" "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==" + "resolved" "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz" + "version" "1.2.1" + +"ignore-by-default@^1.0.1": + "integrity" "sha512-Ius2VYcGNk7T90CppJqcIkS5ooHUZyIQK+ClZfMfMNFEF9VSE73Fq+906u/CWu92x4gzZMWOwfFYckPObzdEbA==" + "resolved" "https://registry.npmjs.org/ignore-by-default/-/ignore-by-default-1.0.1.tgz" + "version" "1.0.1" + +"inflight@^1.0.4": + "integrity" "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==" + "resolved" "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz" + "version" "1.0.6" + dependencies: + "once" "^1.3.0" + "wrappy" "1" + +"inherits@^2.0.3", "inherits@~2.0.3", "inherits@2", "inherits@2.0.4": + "integrity" "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" + "resolved" "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz" + "version" "2.0.4" + +"ip@^2.0.0": + "integrity" "sha512-WKa+XuLG1A1R0UWhl2+1XQSi+fZWMsYKffMZTTYsiZaUD8k2yDAj5atimTUD2TZkyCkNEeYE5NhFZmupOGtjYQ==" + "resolved" "https://registry.npmjs.org/ip/-/ip-2.0.0.tgz" + "version" "2.0.0" + +"ipaddr.js@1.9.1": + "integrity" "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==" + "resolved" "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz" + "version" "1.9.1" + +"is-arrayish@^0.3.1": + "integrity" "sha512-eVRqCvVlZbuw3GrM63ovNSNAeA1K16kaR/LRY/92w0zxQ5/1YzwblUX652i4Xs9RwAGjW9d9y6X88t8OaAJfWQ==" + "resolved" "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.3.2.tgz" + "version" "0.3.2" + +"is-binary-path@~2.1.0": + "integrity" "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==" + "resolved" "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz" + "version" "2.1.0" + dependencies: + "binary-extensions" "^2.0.0" + +"is-core-module@^2.9.0": + "integrity" "sha512-RRjxlvLDkD1YJwDbroBHMb+cukurkDWNyHx7D3oNB5x9rb5ogcksMC5wHCadcXoo67gVr/+3GFySh3134zi6rw==" + "resolved" "https://registry.npmjs.org/is-core-module/-/is-core-module-2.11.0.tgz" + "version" "2.11.0" + dependencies: + "has" "^1.0.3" + +"is-extglob@^2.1.1": + "integrity" "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==" + "resolved" "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz" + "version" "2.1.1" + +"is-fullwidth-code-point@^3.0.0": + "integrity" "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==" + "resolved" "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz" + "version" "3.0.0" + +"is-glob@^4.0.1", "is-glob@^4.0.3", "is-glob@~4.0.1": + "integrity" "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==" + "resolved" "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz" + "version" "4.0.3" + dependencies: + "is-extglob" "^2.1.1" + +"is-number@^7.0.0": + "integrity" "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==" + "resolved" "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz" + "version" "7.0.0" + +"isarray@~1.0.0": + "integrity" "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==" + "resolved" "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz" + "version" "1.0.0" + +"isexe@^2.0.0": + "integrity" "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==" + "resolved" "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz" + "version" "2.0.0" + +"jsonpath-plus@^7.2.0": + "integrity" "sha512-zBfiUPM5nD0YZSBT/o/fbCUlCcepMIdP0CJZxM1+KgA4f2T206f6VAg9e7mX35+KlMaIc5qXW34f3BnwJ3w+RA==" + "resolved" "https://registry.npmjs.org/jsonpath-plus/-/jsonpath-plus-7.2.0.tgz" + "version" "7.2.0" + +"jsonwebtoken@^9.0.0": + "integrity" "sha512-tuGfYXxkQGDPnLJ7SibiQgVgeDgfbPq2k2ICcbgqW8WxWLBAxKQM/ZCu/IT8SOSwmaYl4dpTFCW5xZv7YbbWUw==" + "resolved" "https://registry.npmjs.org/jsonwebtoken/-/jsonwebtoken-9.0.0.tgz" + "version" "9.0.0" + dependencies: + "jws" "^3.2.2" + "lodash" "^4.17.21" + "ms" "^2.1.1" + "semver" "^7.3.8" + +"just-clone@^6.1.1": + "integrity" "sha512-1IynUYEc/HAwxhi3WDpIpxJbZpMCvvrrmZVqvj9EhpvbH8lls7HhdhiByjL7DkAaWlLIzpC0Xc/VPvy/UxLNjA==" + "resolved" "https://registry.npmjs.org/just-clone/-/just-clone-6.2.0.tgz" + "version" "6.2.0" + +"jwa@^1.4.1": + "integrity" "sha512-qiLX/xhEEFKUAJ6FiBMbes3w9ATzyk5W7Hvzpa/SLYdxNtng+gcurvrI7TbACjIXlsJyr05/S1oUhZrc63evQA==" + "resolved" "https://registry.npmjs.org/jwa/-/jwa-1.4.1.tgz" + "version" "1.4.1" + dependencies: + "buffer-equal-constant-time" "1.0.1" + "ecdsa-sig-formatter" "1.0.11" + "safe-buffer" "^5.0.1" + +"jws@^3.2.2": + "integrity" "sha512-YHlZCB6lMTllWDtSPHz/ZXTsi8S00usEV6v1tjq8tOUZzw7DpSDWVXjXDre6ed1w/pd495ODpHZYSdkRTsa0HA==" + "resolved" "https://registry.npmjs.org/jws/-/jws-3.2.2.tgz" + "version" "3.2.2" + dependencies: + "jwa" "^1.4.1" + "safe-buffer" "^5.0.1" + +"kareem@2.5.1": + "integrity" "sha512-7jFxRVm+jD+rkq3kY0iZDJfsO2/t4BBPeEb2qKn2lR/9KhuksYk5hxzfRYWMPV8P/x2d0kHD306YyWLzjjH+uA==" + "resolved" "https://registry.npmjs.org/kareem/-/kareem-2.5.1.tgz" + "version" "2.5.1" + +"lilconfig@^2.0.5", "lilconfig@^2.0.6": + "integrity" "sha512-9JROoBW7pobfsx+Sq2JsASvCo6Pfo6WWoUW79HuB1BCoBXD4PLWJPqDF6fNj67pqBYTbAHkE57M1kS/+L1neOg==" + "resolved" "https://registry.npmjs.org/lilconfig/-/lilconfig-2.0.6.tgz" + "version" "2.0.6" + +"locate-path@^5.0.0": + "integrity" "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==" + "resolved" "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz" + "version" "5.0.0" + dependencies: + "p-locate" "^4.1.0" + +"lodash.foreach@^4.1.0": + "integrity" "sha512-aEXTF4d+m05rVOAUG3z4vZZ4xVexLKZGF0lIxuHZ1Hplpk/3B6Z1+/ICICYRLm7c41Z2xiejbkCkJoTlypoXhQ==" + "resolved" "https://registry.npmjs.org/lodash.foreach/-/lodash.foreach-4.5.0.tgz" + "version" "4.5.0" + +"lodash.get@^4.0.2": + "integrity" "sha512-z+Uw/vLuy6gQe8cfaFWD7p0wVv8fJl3mbzXh33RS+0oW2wvUqiRXiQ69gLWSLpgB5/6sU+r6BlQR0MBILadqTQ==" + "resolved" "https://registry.npmjs.org/lodash.get/-/lodash.get-4.4.2.tgz" + "version" "4.4.2" + +"lodash.merge@^4.6.2": + "integrity" "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==" + "resolved" "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz" + "version" "4.6.2" + +"lodash@^4.17.21": + "integrity" "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==" + "resolved" "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz" + "version" "4.17.21" + +"lru-cache@^6.0.0": + "integrity" "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==" + "resolved" "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz" + "version" "6.0.0" + dependencies: + "yallist" "^4.0.0" + +"make-dir@^3.1.0": + "integrity" "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==" + "resolved" "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz" + "version" "3.1.0" + dependencies: + "semver" "^6.0.0" + +"media-typer@0.3.0": + "integrity" "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==" + "resolved" "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz" + "version" "0.3.0" + +"memory-pager@^1.0.2": + "integrity" "sha512-ZS4Bp4r/Zoeq6+NLJpP+0Zzm0pR8whtGPf1XExKLJBAczGMnSi3It14OiNCStjQjM6NU1okjQGSxgEZN8eBYKg==" + "resolved" "https://registry.npmjs.org/memory-pager/-/memory-pager-1.5.0.tgz" + "version" "1.5.0" + +"merge-descriptors@1.0.1": + "integrity" "sha512-cCi6g3/Zr1iqQi6ySbseM1Xvooa98N0w31jzUYrXPX2xqObmFGHJ0tQ5u74H3mVh7wLouTseZyYIq39g8cNp1w==" + "resolved" "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz" + "version" "1.0.1" + +"merge2@^1.3.0": + "integrity" "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==" + "resolved" "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz" + "version" "1.4.1" + +"methods@~1.1.2": + "integrity" "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==" + "resolved" "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz" + "version" "1.1.2" + +"micromatch@^4.0.4", "micromatch@^4.0.5": + "integrity" "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==" + "resolved" "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz" + "version" "4.0.5" + dependencies: + "braces" "^3.0.2" + "picomatch" "^2.3.1" + +"mime-db@1.52.0": + "integrity" "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==" + "resolved" "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz" + "version" "1.52.0" + +"mime-types@^2.1.12", "mime-types@~2.1.24", "mime-types@~2.1.34": + "integrity" "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==" + "resolved" "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz" + "version" "2.1.35" + dependencies: + "mime-db" "1.52.0" + +"mime@1.6.0": + "integrity" "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==" + "resolved" "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz" + "version" "1.6.0" + +"minimatch@^3.1.1": + "integrity" "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==" + "resolved" "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz" + "version" "3.1.2" + dependencies: + "brace-expansion" "^1.1.7" + +"minimatch@^3.1.2": + "integrity" "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==" + "resolved" "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz" + "version" "3.1.2" + dependencies: + "brace-expansion" "^1.1.7" + +"minimist@^1.2.6": + "integrity" "sha512-bzfL1YUZsP41gmu/qjrEk0Q6i2ix/cVeAhbCbqH9u3zYutS1cLg00qhrD0M2MVdCcx4Sc0UpP2eBWo9rotpq6g==" + "resolved" "https://registry.npmjs.org/minimist/-/minimist-1.2.7.tgz" + "version" "1.2.7" + +"minipass@^3.0.0": + "integrity" "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==" + "resolved" "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz" + "version" "3.3.6" + dependencies: + "yallist" "^4.0.0" + +"minipass@^4.0.0": + "integrity" "sha512-g2Uuh2jEKoht+zvO6vJqXmYpflPqzRBT+Th2h01DKh5z7wbY/AZ2gCQ78cP70YoHPyFdY30YBV5WxgLOEwOykw==" + "resolved" "https://registry.npmjs.org/minipass/-/minipass-4.0.0.tgz" + "version" "4.0.0" + dependencies: + "yallist" "^4.0.0" + +"minizlib@^2.1.1": + "integrity" "sha512-bAxsR8BVfj60DWXHE3u30oHzfl4G7khkSuPW+qvpd7jFRHm7dLxOjUk1EHACJ/hxLY8phGJ0YhYHZo7jil7Qdg==" + "resolved" "https://registry.npmjs.org/minizlib/-/minizlib-2.1.2.tgz" + "version" "2.1.2" + dependencies: + "minipass" "^3.0.0" + "yallist" "^4.0.0" + +"mkdirp@^0.5.4": + "integrity" "sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==" + "resolved" "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.6.tgz" + "version" "0.5.6" + dependencies: + "minimist" "^1.2.6" + +"mkdirp@^1.0.3": + "integrity" "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==" + "resolved" "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz" + "version" "1.0.4" + +"mongo-sanitize@^1.1.0": + "integrity" "sha512-6gB9AiJD+om2eZLxaPKIP5Q8P3Fr+s+17rVWso7hU0+MAzmIvIMlgTYuyvalDLTtE/p0gczcvJ8A3pbN1XmQ/A==" + "resolved" "https://registry.npmjs.org/mongo-sanitize/-/mongo-sanitize-1.1.0.tgz" + "version" "1.1.0" + +"mongodb-connection-string-url@^2.5.4": + "integrity" "sha512-WvTZlI9ab0QYtTYnuMLgobULWhokRjtC7db9LtcVfJ+Hsnyr5eo6ZtNAt3Ly24XZScGMelOcGtm7lSn0332tPQ==" + "resolved" "https://registry.npmjs.org/mongodb-connection-string-url/-/mongodb-connection-string-url-2.6.0.tgz" + "version" "2.6.0" + dependencies: + "@types/whatwg-url" "^8.2.1" + "whatwg-url" "^11.0.0" + +"mongodb@4.13.0": + "integrity" "sha512-+taZ/bV8d1pYuHL4U+gSwkhmDrwkWbH1l4aah4YpmpscMwgFBkufIKxgP/G7m87/NUuQzc2Z75ZTI7ZOyqZLbw==" + "resolved" "https://registry.npmjs.org/mongodb/-/mongodb-4.13.0.tgz" + "version" "4.13.0" + dependencies: + "bson" "^4.7.0" + "mongodb-connection-string-url" "^2.5.4" + "socks" "^2.7.1" + optionalDependencies: + "@aws-sdk/credential-providers" "^3.186.0" + "saslprep" "^1.0.3" + +"mongoose-unique-validator@^3.1.0": + "integrity" "sha512-UsBBlFapip8gc8x1h+nLWnkOy+GTy9Z+zmTyZ35icLV3EoLIVz180vJzepfMM9yBy2AJh+maeuoM8CWtqejGUg==" + "resolved" "https://registry.npmjs.org/mongoose-unique-validator/-/mongoose-unique-validator-3.1.0.tgz" + "version" "3.1.0" + dependencies: + "lodash.foreach" "^4.1.0" + "lodash.get" "^4.0.2" + "lodash.merge" "^4.6.2" + +"mongoose@^6.0.0", "mongoose@^6.5.2": + "integrity" "sha512-hOz1ZWV0w6WEVLrj89Wpk7PXDYtDDF6k7/NX79lY5iKqeFtZsceBXW8xW59YFNcW5O3cH32hQ8IbDlhgyBsDMA==" + "resolved" "https://registry.npmjs.org/mongoose/-/mongoose-6.9.1.tgz" + "version" "6.9.1" + dependencies: + "bson" "^4.7.0" + "kareem" "2.5.1" + "mongodb" "4.13.0" + "mpath" "0.9.0" + "mquery" "4.0.3" + "ms" "2.1.3" + "sift" "16.0.1" + +"mpath@0.9.0": + "integrity" "sha512-ikJRQTk8hw5DEoFVxHG1Gn9T/xcjtdnOKIU1JTmGjZZlg9LST2mBLmcX3/ICIbgJydT2GOc15RnNy5mHmzfSew==" + "resolved" "https://registry.npmjs.org/mpath/-/mpath-0.9.0.tgz" + "version" "0.9.0" + +"mquery@4.0.3": + "integrity" "sha512-J5heI+P08I6VJ2Ky3+33IpCdAvlYGTSUjwTPxkAr8i8EoduPMBX2OY/wa3IKZIQl7MU4SbFk8ndgSKyB/cl1zA==" + "resolved" "https://registry.npmjs.org/mquery/-/mquery-4.0.3.tgz" + "version" "4.0.3" + dependencies: + "debug" "4.x" + +"ms@^2.1.1": + "integrity" "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==" + "resolved" "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz" + "version" "2.1.3" + +"ms@2.0.0": + "integrity" "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" + "resolved" "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz" + "version" "2.0.0" + +"ms@2.1.2": + "integrity" "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" + "resolved" "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz" + "version" "2.1.2" + +"ms@2.1.3": + "integrity" "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==" + "resolved" "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz" + "version" "2.1.3" + +"multer@^1.4.5-lts.1": + "integrity" "sha512-ywPWvcDMeH+z9gQq5qYHCCy+ethsk4goepZ45GLD63fOu0YcNecQxi64nDs3qluZB+murG3/D4dJ7+dGctcCQQ==" + "resolved" "https://registry.npmjs.org/multer/-/multer-1.4.5-lts.1.tgz" + "version" "1.4.5-lts.1" + dependencies: + "append-field" "^1.0.0" + "busboy" "^1.0.0" + "concat-stream" "^1.5.2" + "mkdirp" "^0.5.4" + "object-assign" "^4.1.1" + "type-is" "^1.6.4" + "xtend" "^4.0.0" + +"nanoid@^3.3.4": + "integrity" "sha512-MqBkQh/OHTS2egovRtLk45wEyNXwF+cokD+1YPf9u5VfJiRdAiRwB2froX5Co9Rh20xs4siNPm8naNotSD6RBw==" + "resolved" "https://registry.npmjs.org/nanoid/-/nanoid-3.3.4.tgz" + "version" "3.3.4" + +"negotiator@0.6.3": + "integrity" "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==" + "resolved" "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz" + "version" "0.6.3" + +"node-addon-api@^5.0.0": + "integrity" "sha512-CvkDw2OEnme7ybCykJpVcKH+uAOLV2qLqiyla128dN9TkEWfrYmxG6C2boDe5KcNQqZF3orkqzGgOMvZ/JNekA==" + "resolved" "https://registry.npmjs.org/node-addon-api/-/node-addon-api-5.0.0.tgz" + "version" "5.0.0" + +"node-domexception@^1.0.0": + "integrity" "sha512-/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ==" + "resolved" "https://registry.npmjs.org/node-domexception/-/node-domexception-1.0.0.tgz" + "version" "1.0.0" + +"node-fetch@^2.6.7": + "integrity" "sha512-DJm/CJkZkRjKKj4Zi4BsKVZh3ValV5IR5s7LVZnW+6YMh0W1BfNA8XSs6DLMGYlId5F3KnA70uu2qepcR08Qqg==" + "resolved" "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.9.tgz" + "version" "2.6.9" + dependencies: + "whatwg-url" "^5.0.0" + +"node-fetch@^3.2.10": + "integrity" "sha512-BKwRP/O0UvoMKp7GNdwPlObhYGB5DQqwhEDQlNKuoqwVYSxkSZCSbHjnFFmUEtwSKRPU4kNK8PbDYYitwaE3QA==" + "resolved" "https://registry.npmjs.org/node-fetch/-/node-fetch-3.3.0.tgz" + "version" "3.3.0" + dependencies: + "data-uri-to-buffer" "^4.0.0" + "fetch-blob" "^3.1.4" + "formdata-polyfill" "^4.0.10" + +"node-releases@^2.0.6": + "integrity" "sha512-dFSmB8fFHEH/s81Xi+Y/15DQY6VHW81nXRj86EMSL3lmuTmK1e+aT4wrFCkTbm+gSwkw4KpX+rT/pMM2c1mF+A==" + "resolved" "https://registry.npmjs.org/node-releases/-/node-releases-2.0.8.tgz" + "version" "2.0.8" + +"nodemon@^2.0.19": + "integrity" "sha512-Km2mWHKKY5GzRg6i1j5OxOHQtuvVsgskLfigG25yTtbyfRGn/GNvIbRyOf1PSCKJ2aT/58TiuUsuOU5UToVViw==" + "resolved" "https://registry.npmjs.org/nodemon/-/nodemon-2.0.20.tgz" + "version" "2.0.20" + dependencies: + "chokidar" "^3.5.2" + "debug" "^3.2.7" + "ignore-by-default" "^1.0.1" + "minimatch" "^3.1.2" + "pstree.remy" "^1.1.8" + "semver" "^5.7.1" + "simple-update-notifier" "^1.0.7" + "supports-color" "^5.5.0" + "touch" "^3.1.0" + "undefsafe" "^2.0.5" + +"nopt@^5.0.0": + "integrity" "sha512-Tbj67rffqceeLpcRXrT7vKAN8CwfPeIBgM7E6iBkmKLV7bEMwpGgYLGv0jACUsECaa/vuxP0IjEont6umdMgtQ==" + "resolved" "https://registry.npmjs.org/nopt/-/nopt-5.0.0.tgz" + "version" "5.0.0" + dependencies: + "abbrev" "1" + +"nopt@~1.0.10": + "integrity" "sha512-NWmpvLSqUrgrAC9HCuxEvb+PSloHpqVu+FqcO4eeF2h5qYRhA7ev6KvelyQAKtegUbC6RypJnlEOhd8vloNKYg==" + "resolved" "https://registry.npmjs.org/nopt/-/nopt-1.0.10.tgz" + "version" "1.0.10" + dependencies: + "abbrev" "1" + +"normalize-path@^3.0.0", "normalize-path@~3.0.0": + "integrity" "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==" + "resolved" "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz" + "version" "3.0.0" + +"normalize-range@^0.1.2": + "integrity" "sha512-bdok/XvKII3nUpklnV6P2hxtMNrCboOjAcyBuQnWEhO665FwrSNRxU+AqpsyvO6LgGYPspN+lu5CLtw4jPRKNA==" + "resolved" "https://registry.npmjs.org/normalize-range/-/normalize-range-0.1.2.tgz" + "version" "0.1.2" + +"npmlog@^5.0.1": + "integrity" "sha512-AqZtDUWOMKs1G/8lwylVjrdYgqA4d9nu8hc+0gzRxlDb1I10+FHBGMXs6aiQHFdCUUlqH99MUMuLfzWDNDtfxw==" + "resolved" "https://registry.npmjs.org/npmlog/-/npmlog-5.0.1.tgz" + "version" "5.0.1" + dependencies: + "are-we-there-yet" "^2.0.0" + "console-control-strings" "^1.1.0" + "gauge" "^3.0.0" + "set-blocking" "^2.0.0" + +"object-assign@^4", "object-assign@^4.1.1": + "integrity" "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==" + "resolved" "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz" + "version" "4.1.1" + +"object-hash@^3.0.0": + "integrity" "sha512-RSn9F68PjH9HqtltsSnqYC1XXoWe9Bju5+213R98cNGttag9q9yAOTzdbsqvIa7aNm5WffBZFpWYr2aWrklWAw==" + "resolved" "https://registry.npmjs.org/object-hash/-/object-hash-3.0.0.tgz" + "version" "3.0.0" + +"object-inspect@^1.9.0": + "integrity" "sha512-z+cPxW0QGUp0mcqcsgQyLVRDoXFQbXOwBaqyF7VIgI4TWNQsDHrBpUQslRmIfAoYWdYzs6UlKJtB2XJpTaNSpQ==" + "resolved" "https://registry.npmjs.org/object-inspect/-/object-inspect-1.12.2.tgz" + "version" "1.12.2" + +"on-finished@^2.3.0", "on-finished@2.4.1": + "integrity" "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==" + "resolved" "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz" + "version" "2.4.1" + dependencies: + "ee-first" "1.1.1" + +"on-headers@~1.0.2": + "integrity" "sha512-pZAE+FJLoyITytdqK0U5s+FIpjN0JP3OzFi/u8Rx+EV5/W+JTWGXG8xFzevE7AjBfDqHv/8vL8qQsIhHnqRkrA==" + "resolved" "https://registry.npmjs.org/on-headers/-/on-headers-1.0.2.tgz" + "version" "1.0.2" + +"once@^1.3.0": + "integrity" "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==" + "resolved" "https://registry.npmjs.org/once/-/once-1.4.0.tgz" + "version" "1.4.0" + dependencies: + "wrappy" "1" + +"p-limit@^2.2.0": + "integrity" "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==" + "resolved" "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz" + "version" "2.3.0" + dependencies: + "p-try" "^2.0.0" + +"p-locate@^4.1.0": + "integrity" "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==" + "resolved" "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz" + "version" "4.1.0" + dependencies: + "p-limit" "^2.2.0" + +"p-try@^2.0.0": + "integrity" "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==" + "resolved" "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz" + "version" "2.2.0" + +"parseurl@~1.3.3": + "integrity" "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==" + "resolved" "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz" + "version" "1.3.3" + +"path-exists@^4.0.0": + "integrity" "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==" + "resolved" "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz" + "version" "4.0.0" + +"path-is-absolute@^1.0.0": + "integrity" "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==" + "resolved" "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz" + "version" "1.0.1" + +"path-key@^3.1.0": + "integrity" "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==" + "resolved" "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz" + "version" "3.1.1" + +"path-parse@^1.0.7": + "integrity" "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==" + "resolved" "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz" + "version" "1.0.7" + +"path-to-regexp@0.1.7": + "integrity" "sha512-5DFkuoqlv1uYQKxy8omFBeJPQcdoE07Kv2sferDCrAq1ohOU+MSDswDIbnx3YAM60qIOnYa53wBhXW0EbMonrQ==" + "resolved" "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz" + "version" "0.1.7" + +"picocolors@^1.0.0": + "integrity" "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==" + "resolved" "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz" + "version" "1.0.0" + +"picomatch@^2.0.4", "picomatch@^2.2.1", "picomatch@^2.3.1": + "integrity" "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==" + "resolved" "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz" + "version" "2.3.1" + +"pify@^2.3.0": + "integrity" "sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog==" + "resolved" "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz" + "version" "2.3.0" + +"png-validator@^1.1.0": + "integrity" "sha512-MlRLyPI1p3/dJbsjVH+4xOPucycrz8T3EvO0BzCXaNtrUhZkZROtzib9J6mnC81AJO8eBIwiDZwTFel2cMmSuQ==" + "resolved" "https://registry.npmjs.org/png-validator/-/png-validator-1.1.0.tgz" + "version" "1.1.0" + +"pngjs@^5.0.0": + "integrity" "sha512-40QW5YalBNfQo5yRYmiw7Yz6TKKVr3h6970B2YE+3fQpsWcrbj1PzJgxeJ19DRQjhMbKPIuMY8rFaXc8moolVw==" + "resolved" "https://registry.npmjs.org/pngjs/-/pngjs-5.0.0.tgz" + "version" "5.0.0" + +"postcss-import@^14.1.0": + "integrity" "sha512-flwI+Vgm4SElObFVPpTIT7SU7R3qk2L7PyduMcokiaVKuWv9d/U+Gm/QAd8NDLuykTWTkcrjOeD2Pp1rMeBTGw==" + "resolved" "https://registry.npmjs.org/postcss-import/-/postcss-import-14.1.0.tgz" + "version" "14.1.0" + dependencies: + "postcss-value-parser" "^4.0.0" + "read-cache" "^1.0.0" + "resolve" "^1.1.7" + +"postcss-js@^4.0.0": + "integrity" "sha512-77QESFBwgX4irogGVPgQ5s07vLvFqWr228qZY+w6lW599cRlK/HmnlivnnVUxkjHnCu4J16PDMHcH+e+2HbvTQ==" + "resolved" "https://registry.npmjs.org/postcss-js/-/postcss-js-4.0.0.tgz" + "version" "4.0.0" + dependencies: + "camelcase-css" "^2.0.1" + +"postcss-load-config@^3.1.4": + "integrity" "sha512-6DiM4E7v4coTE4uzA8U//WhtPwyhiim3eyjEMFCnUpzbrkK9wJHgKDT2mR+HbtSrd/NubVaYTOpSpjUl8NQeRg==" + "resolved" "https://registry.npmjs.org/postcss-load-config/-/postcss-load-config-3.1.4.tgz" + "version" "3.1.4" + dependencies: + "lilconfig" "^2.0.5" + "yaml" "^1.10.2" + +"postcss-nested@6.0.0": + "integrity" "sha512-0DkamqrPcmkBDsLn+vQDIrtkSbNkv5AD/M322ySo9kqFkCIYklym2xEmWkwo+Y3/qZo34tzEPNUw4y7yMCdv5w==" + "resolved" "https://registry.npmjs.org/postcss-nested/-/postcss-nested-6.0.0.tgz" + "version" "6.0.0" + dependencies: + "postcss-selector-parser" "^6.0.10" + +"postcss-selector-parser@^6.0.10": + "integrity" "sha512-IQ7TZdoaqbT+LCpShg46jnZVlhWD2w6iQYAcYXfHARZ7X1t/UGhhceQDs5X0cGqKvYlHNOuv7Oa1xmb0oQuA3w==" + "resolved" "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.0.10.tgz" + "version" "6.0.10" + dependencies: + "cssesc" "^3.0.0" + "util-deprecate" "^1.0.2" + +"postcss-value-parser@^4.0.0", "postcss-value-parser@^4.2.0": + "integrity" "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==" + "resolved" "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz" + "version" "4.2.0" + +"postcss@^8.0.0", "postcss@^8.1.0", "postcss@^8.1.6", "postcss@^8.2.14", "postcss@^8.3.3", "postcss@^8.4.18", "postcss@>=8.0.9": + "integrity" "sha512-6Q04AXR1212bXr5fh03u8aAwbLxAQNGQ/Q1LNa0VfOI06ZAlhPHtQvE4OIdpj4kLThXilalPnmDSOD65DcHt+g==" + "resolved" "https://registry.npmjs.org/postcss/-/postcss-8.4.20.tgz" + "version" "8.4.20" + dependencies: + "nanoid" "^3.3.4" + "picocolors" "^1.0.0" + "source-map-js" "^1.0.2" + +"process-nextick-args@~2.0.0": + "integrity" "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==" + "resolved" "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz" + "version" "2.0.1" + +"prom-client@^14.1.0", "prom-client@>=12.0.0": + "integrity" "sha512-hFU32q7UZQ59bVJQGUtm3I2PrJ3gWvoCkilX9sF165ks1qflhugVCeK+S1JjJYHvyt3o5kj68+q3bchormjnzw==" + "resolved" "https://registry.npmjs.org/prom-client/-/prom-client-14.1.1.tgz" + "version" "14.1.1" + dependencies: + "tdigest" "^0.1.1" + +"proxy-addr@~2.0.7": + "integrity" "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==" + "resolved" "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz" + "version" "2.0.7" + dependencies: + "forwarded" "0.2.0" + "ipaddr.js" "1.9.1" + +"pstree.remy@^1.1.8": + "integrity" "sha512-77DZwxQmxKnu3aR542U+X8FypNzbfJ+C5XQDk3uWjWxn6151aIMGthWYRXTqT1E5oJvg+ljaa2OJi+VfvCOQ8w==" + "resolved" "https://registry.npmjs.org/pstree.remy/-/pstree.remy-1.1.8.tgz" + "version" "1.1.8" + +"punycode@^2.1.1": + "integrity" "sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA==" + "resolved" "https://registry.npmjs.org/punycode/-/punycode-2.3.0.tgz" + "version" "2.3.0" + +"qrcode@^1.5.1": + "integrity" "sha512-nS8NJ1Z3md8uTjKtP+SGGhfqmTCs5flU/xR623oI0JX+Wepz9R8UrRVCTBTJm3qGw3rH6jJ6MUHjkDx15cxSSg==" + "resolved" "https://registry.npmjs.org/qrcode/-/qrcode-1.5.1.tgz" + "version" "1.5.1" + dependencies: + "dijkstrajs" "^1.0.1" + "encode-utf8" "^1.0.3" + "pngjs" "^5.0.0" + "yargs" "^15.3.1" + +"qs@6.11.0": + "integrity" "sha512-MvjoMCJwEarSbUYk5O+nmoSzSutSsTwF85zcHPQ9OrlFoZOYIjaqBAJIqIXjptyD5vThxGq52Xu/MaJzRkIk4Q==" + "resolved" "https://registry.npmjs.org/qs/-/qs-6.11.0.tgz" + "version" "6.11.0" + dependencies: + "side-channel" "^1.0.4" + +"queue-microtask@^1.2.2": + "integrity" "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==" + "resolved" "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz" + "version" "1.2.3" + +"quick-lru@^5.1.1": + "integrity" "sha512-WuyALRjWPDGtt/wzJiadO5AXY+8hZ80hVpe6MyivgraREW751X3SbhRvG3eLKOYN+8VEvqLcf3wdnt44Z4S4SA==" + "resolved" "https://registry.npmjs.org/quick-lru/-/quick-lru-5.1.1.tgz" + "version" "5.1.1" + +"random-bytes@~1.0.0": + "integrity" "sha512-iv7LhNVO047HzYR3InF6pUcUsPQiHTM1Qal51DcGSuZFBil1aBBWG5eHPNek7bvILMaYJ/8RU1e8w1AMdHmLQQ==" + "resolved" "https://registry.npmjs.org/random-bytes/-/random-bytes-1.0.0.tgz" + "version" "1.0.0" + +"range-parser@~1.2.1": + "integrity" "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==" + "resolved" "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz" + "version" "1.2.1" + +"raw-body@2.5.1": + "integrity" "sha512-qqJBtEyVgS0ZmPGdCFPWJ3FreoqvG4MVQln/kCgF7Olq95IbOp0/BWyMwbdtn4VTvkM8Y7khCQ2Xgk/tcrCXig==" + "resolved" "https://registry.npmjs.org/raw-body/-/raw-body-2.5.1.tgz" + "version" "2.5.1" + dependencies: + "bytes" "3.1.2" + "http-errors" "2.0.0" + "iconv-lite" "0.4.24" + "unpipe" "1.0.0" + +"read-cache@^1.0.0": + "integrity" "sha512-Owdv/Ft7IjOgm/i0xvNDZ1LrRANRfew4b2prF3OWMQLxLfu3bS8FVhCsrSCMK4lR56Y9ya+AThoTpDCTxCmpRA==" + "resolved" "https://registry.npmjs.org/read-cache/-/read-cache-1.0.0.tgz" + "version" "1.0.0" + dependencies: + "pify" "^2.3.0" + +"readable-stream@^2.2.2": + "integrity" "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==" + "resolved" "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz" + "version" "2.3.7" + dependencies: + "core-util-is" "~1.0.0" + "inherits" "~2.0.3" + "isarray" "~1.0.0" + "process-nextick-args" "~2.0.0" + "safe-buffer" "~5.1.1" + "string_decoder" "~1.1.1" + "util-deprecate" "~1.0.1" + +"readable-stream@^3.6.0": + "integrity" "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==" + "resolved" "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz" + "version" "3.6.0" + dependencies: + "inherits" "^2.0.3" + "string_decoder" "^1.1.1" + "util-deprecate" "^1.0.1" + +"readdirp@~3.6.0": + "integrity" "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==" + "resolved" "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz" + "version" "3.6.0" + dependencies: + "picomatch" "^2.2.1" + +"redis-om@^0.4.0-beta.3": + "integrity" "sha512-zGWBMGoe3exrvkbFjWqAFG8UJL3tdby5UkfPKiZLvA67d7FsR0ScEpsBaaWGL33y5EQUWnYL+pI8jzZaQ6brtA==" + "resolved" "https://registry.npmjs.org/redis-om/-/redis-om-0.4.0-beta.3.tgz" + "version" "0.4.0-beta.3" + dependencies: + "jsonpath-plus" "^7.2.0" + "just-clone" "^6.1.1" + "redis" "^4.6.4" + "ulid" "^2.3.0" + +"redis@^4.6.4", "redis@^4.6.5": + "integrity" "sha512-O0OWA36gDQbswOdUuAhRL6mTZpHFN525HlgZgDaVNgCJIAZR3ya06NTESb0R+TUZ+BFaDpz6NnnVvoMx9meUFg==" + "resolved" "https://registry.npmjs.org/redis/-/redis-4.6.5.tgz" + "version" "4.6.5" + dependencies: + "@redis/bloom" "1.2.0" + "@redis/client" "1.5.6" + "@redis/graph" "1.1.0" + "@redis/json" "1.0.4" + "@redis/search" "1.1.2" + "@redis/time-series" "1.0.4" + +"req-flash@^0.0.3": + "integrity" "sha512-c5ouPRJ6OVc4ecL5cgdwd51nYOFQiOTfl7UWk+VlgUHgfsh7TMRFPN/OJ5ETnOYFyswprT8C2a6ctMvJgms9ng==" + "resolved" "https://registry.npmjs.org/req-flash/-/req-flash-0.0.3.tgz" + "version" "0.0.3" + +"require-directory@^2.1.1": + "integrity" "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==" + "resolved" "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz" + "version" "2.1.1" + +"require-main-filename@^2.0.0": + "integrity" "sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==" + "resolved" "https://registry.npmjs.org/require-main-filename/-/require-main-filename-2.0.0.tgz" + "version" "2.0.0" + +"resolve@^1.1.7", "resolve@^1.22.1": + "integrity" "sha512-nBpuuYuY5jFsli/JIs1oldw6fOQCBioohqWZg/2hiaOybXOft4lonv85uDOKXdf8rhyK159cxU5cDcK/NKk8zw==" + "resolved" "https://registry.npmjs.org/resolve/-/resolve-1.22.1.tgz" + "version" "1.22.1" + dependencies: + "is-core-module" "^2.9.0" + "path-parse" "^1.0.7" + "supports-preserve-symlinks-flag" "^1.0.0" + +"reusify@^1.0.4": + "integrity" "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==" + "resolved" "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz" + "version" "1.0.4" + +"rimraf@^3.0.2": + "integrity" "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==" + "resolved" "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz" + "version" "3.0.2" + dependencies: + "glob" "^7.1.3" + +"run-parallel@^1.1.9": + "integrity" "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==" + "resolved" "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz" + "version" "1.2.0" + dependencies: + "queue-microtask" "^1.2.2" + +"safe-buffer@^5.0.1", "safe-buffer@5.2.1": + "integrity" "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==" + "resolved" "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz" + "version" "5.2.1" + +"safe-buffer@~5.1.0": + "integrity" "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" + "resolved" "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz" + "version" "5.1.2" + +"safe-buffer@~5.1.1": + "integrity" "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" + "resolved" "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz" + "version" "5.1.2" + +"safer-buffer@>= 2.1.2 < 3": + "integrity" "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" + "resolved" "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz" + "version" "2.1.2" + +"saslprep@^1.0.3": + "integrity" "sha512-/MY/PEMbk2SuY5sScONwhUDsV2p77Znkb/q3nSVstq/yQzYJOH/Azh29p9oJLsl3LnQwSvZDKagDGBsBwSooag==" + "resolved" "https://registry.npmjs.org/saslprep/-/saslprep-1.0.3.tgz" + "version" "1.0.3" + dependencies: + "sparse-bitfield" "^3.0.3" + +"sax@^1.2.4": + "integrity" "sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==" + "resolved" "https://registry.npmjs.org/sax/-/sax-1.2.4.tgz" + "version" "1.2.4" + +"semver@^5.7.1": + "integrity" "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==" + "resolved" "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz" + "version" "5.7.1" + +"semver@^6.0.0": + "integrity" "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==" + "resolved" "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz" + "version" "6.3.0" + +"semver@^7.3.5", "semver@^7.3.8": + "integrity" "sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A==" + "resolved" "https://registry.npmjs.org/semver/-/semver-7.3.8.tgz" + "version" "7.3.8" + dependencies: + "lru-cache" "^6.0.0" + +"semver@~7.0.0": + "integrity" "sha512-+GB6zVA9LWh6zovYQLALHwv5rb2PHGlJi3lfiqIHxR0uuwCgefcOJc59v9fv1w8GbStwxuuqqAjI9NMAOOgq1A==" + "resolved" "https://registry.npmjs.org/semver/-/semver-7.0.0.tgz" + "version" "7.0.0" + +"send@0.18.0": + "integrity" "sha512-qqWzuOjSFOuqPjFe4NOsMLafToQQwBSOEpS+FwEt3A2V3vKubTquT3vmLTQpFgMXp8AlFWFuP1qKaJZOtPpVXg==" + "resolved" "https://registry.npmjs.org/send/-/send-0.18.0.tgz" + "version" "0.18.0" + dependencies: + "debug" "2.6.9" + "depd" "2.0.0" + "destroy" "1.2.0" + "encodeurl" "~1.0.2" + "escape-html" "~1.0.3" + "etag" "~1.8.1" + "fresh" "0.5.2" + "http-errors" "2.0.0" + "mime" "1.6.0" + "ms" "2.1.3" + "on-finished" "2.4.1" + "range-parser" "~1.2.1" + "statuses" "2.0.1" + +"serve-static@1.15.0": + "integrity" "sha512-XGuRDNjXUijsUL0vl6nSD7cwURuzEgglbOaFuZM9g3kwDXOWVTck0jLzjPzGD+TazWbboZYu52/9/XPdUgne9g==" + "resolved" "https://registry.npmjs.org/serve-static/-/serve-static-1.15.0.tgz" + "version" "1.15.0" + dependencies: + "encodeurl" "~1.0.2" + "escape-html" "~1.0.3" + "parseurl" "~1.3.3" + "send" "0.18.0" + +"set-blocking@^2.0.0": + "integrity" "sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==" + "resolved" "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz" + "version" "2.0.0" + +"setprototypeof@1.2.0": + "integrity" "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==" + "resolved" "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz" + "version" "1.2.0" + +"shebang-command@^2.0.0": + "integrity" "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==" + "resolved" "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz" + "version" "2.0.0" + dependencies: + "shebang-regex" "^3.0.0" + +"shebang-regex@^3.0.0": + "integrity" "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==" + "resolved" "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz" + "version" "3.0.0" + +"side-channel@^1.0.4": + "integrity" "sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==" + "resolved" "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz" + "version" "1.0.4" + dependencies: + "call-bind" "^1.0.0" + "get-intrinsic" "^1.0.2" + "object-inspect" "^1.9.0" + +"sift@16.0.1": + "integrity" "sha512-Wv6BjQ5zbhW7VFefWusVP33T/EM0vYikCaQ2qR8yULbsilAT8/wQaXvuQ3ptGLpoKx+lihJE3y2UTgKDyyNHZQ==" + "resolved" "https://registry.npmjs.org/sift/-/sift-16.0.1.tgz" + "version" "16.0.1" + +"signal-exit@^3.0.0": + "integrity" "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==" + "resolved" "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz" + "version" "3.0.7" + +"simple-swizzle@^0.2.2": + "integrity" "sha512-JA//kQgZtbuY83m+xT+tXJkmJncGMTFT+C+g2h2R9uxkYIrE2yy9sgmcLhCnw57/WSD+Eh3J97FPEDFnbXnDUg==" + "resolved" "https://registry.npmjs.org/simple-swizzle/-/simple-swizzle-0.2.2.tgz" + "version" "0.2.2" + dependencies: + "is-arrayish" "^0.3.1" + +"simple-update-notifier@^1.0.7": + "integrity" "sha512-VpsrsJSUcJEseSbMHkrsrAVSdvVS5I96Qo1QAQ4FxQ9wXFcB+pjj7FB7/us9+GcgfW4ziHtYMc1J0PLczb55mg==" + "resolved" "https://registry.npmjs.org/simple-update-notifier/-/simple-update-notifier-1.1.0.tgz" + "version" "1.1.0" + dependencies: + "semver" "~7.0.0" + +"smart-buffer@^4.2.0": + "integrity" "sha512-94hK0Hh8rPqQl2xXc3HsaBoOXKV20MToPkcXvwbISWLEs+64sBq5kFgn2kJDHb1Pry9yrP0dxrCI9RRci7RXKg==" + "resolved" "https://registry.npmjs.org/smart-buffer/-/smart-buffer-4.2.0.tgz" + "version" "4.2.0" + +"socks@^2.7.1": + "integrity" "sha512-7maUZy1N7uo6+WVEX6psASxtNlKaNVMlGQKkG/63nEDdLOWNbiUMoLK7X4uYoLhQstau72mLgfEWcXcwsaHbYQ==" + "resolved" "https://registry.npmjs.org/socks/-/socks-2.7.1.tgz" + "version" "2.7.1" + dependencies: + "ip" "^2.0.0" + "smart-buffer" "^4.2.0" + +"source-map-js@^1.0.2": + "integrity" "sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==" + "resolved" "https://registry.npmjs.org/source-map-js/-/source-map-js-1.0.2.tgz" + "version" "1.0.2" + +"sparse-bitfield@^3.0.3": + "integrity" "sha512-kvzhi7vqKTfkh0PZU+2D2PIllw2ymqJKujUcyPMd9Y75Nv4nPbGJZXNhxsgdQab2BmlDct1YnfQCguEvHr7VsQ==" + "resolved" "https://registry.npmjs.org/sparse-bitfield/-/sparse-bitfield-3.0.3.tgz" + "version" "3.0.3" + dependencies: + "memory-pager" "^1.0.2" + +"speakeasy@^2.0.0": + "integrity" "sha512-lW2A2s5LKi8rwu77ewisuUOtlCydF/hmQSOJjpTqTj1gZLkNgTaYnyvfxy2WBr4T/h+9c4g8HIITfj83OkFQFw==" + "resolved" "https://registry.npmjs.org/speakeasy/-/speakeasy-2.0.0.tgz" + "version" "2.0.0" + dependencies: + "base32.js" "0.0.1" + +"statuses@2.0.1": + "integrity" "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==" + "resolved" "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz" + "version" "2.0.1" + +"streamsearch@^1.1.0": + "integrity" "sha512-Mcc5wHehp9aXz1ax6bZUyY5afg9u2rv5cqQI3mRrYkGC8rW2hM02jWuwjtL++LS5qinSyhj2QfLyNsuc+VsExg==" + "resolved" "https://registry.npmjs.org/streamsearch/-/streamsearch-1.1.0.tgz" + "version" "1.1.0" + +"string_decoder@^1.1.1", "string_decoder@~1.1.1": + "integrity" "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==" + "resolved" "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz" + "version" "1.1.1" + dependencies: + "safe-buffer" "~5.1.0" + +"string-width@^1.0.2 || 2 || 3 || 4", "string-width@^4.1.0", "string-width@^4.2.0", "string-width@^4.2.3": + "integrity" "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==" + "resolved" "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz" + "version" "4.2.3" + dependencies: + "emoji-regex" "^8.0.0" + "is-fullwidth-code-point" "^3.0.0" + "strip-ansi" "^6.0.1" + +"strip-ansi@^6.0.0", "strip-ansi@^6.0.1": + "integrity" "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==" + "resolved" "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz" + "version" "6.0.1" + dependencies: + "ansi-regex" "^5.0.1" + +"strnum@^1.0.5": + "integrity" "sha512-J8bbNyKKXl5qYcR36TIO8W3mVGVHrmmxsd5PAItGkmyzwJvybiw2IVq5nqd0i4LSNSkB/sx9VHllbfFdr9k1JA==" + "resolved" "https://registry.npmjs.org/strnum/-/strnum-1.0.5.tgz" + "version" "1.0.5" + +"supports-color@^5.5.0": + "integrity" "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==" + "resolved" "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz" + "version" "5.5.0" + dependencies: + "has-flag" "^3.0.0" + +"supports-preserve-symlinks-flag@^1.0.0": + "integrity" "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==" + "resolved" "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz" + "version" "1.0.0" + +"tailwindcss@^3": + "integrity" "sha512-AhwtHCKMtR71JgeYDaswmZXhPcW9iuI9Sp2LvZPo9upDZ7231ZJ7eA9RaURbhpXGVlrjX4cFNlB4ieTetEb7hQ==" + "resolved" "https://registry.npmjs.org/tailwindcss/-/tailwindcss-3.2.4.tgz" + "version" "3.2.4" + dependencies: + "arg" "^5.0.2" + "chokidar" "^3.5.3" + "color-name" "^1.1.4" + "detective" "^5.2.1" + "didyoumean" "^1.2.2" + "dlv" "^1.1.3" + "fast-glob" "^3.2.12" + "glob-parent" "^6.0.2" + "is-glob" "^4.0.3" + "lilconfig" "^2.0.6" + "micromatch" "^4.0.5" + "normalize-path" "^3.0.0" + "object-hash" "^3.0.0" + "picocolors" "^1.0.0" + "postcss" "^8.4.18" + "postcss-import" "^14.1.0" + "postcss-js" "^4.0.0" + "postcss-load-config" "^3.1.4" + "postcss-nested" "6.0.0" + "postcss-selector-parser" "^6.0.10" + "postcss-value-parser" "^4.2.0" + "quick-lru" "^5.1.1" + "resolve" "^1.22.1" + +"tar@^6.1.11": + "integrity" "sha512-jdIBIN6LTIe2jqzay/2vtYLlBHa3JF42ot3h1dW8Q0PaAG4v8rm0cvpVePtau5C6OKXGGcgO9q2AMNSWxiLqKw==" + "resolved" "https://registry.npmjs.org/tar/-/tar-6.1.13.tgz" + "version" "6.1.13" + dependencies: + "chownr" "^2.0.0" + "fs-minipass" "^2.0.0" + "minipass" "^4.0.0" + "minizlib" "^2.1.1" + "mkdirp" "^1.0.3" + "yallist" "^4.0.0" + +"tdigest@^0.1.1": + "integrity" "sha512-+G0LLgjjo9BZX2MfdvPfH+MKLCrxlXSYec5DaPYP1fe6Iyhf0/fSmJ0bFiZ1F8BT6cGXl2LpltQptzjXKWEkKA==" + "resolved" "https://registry.npmjs.org/tdigest/-/tdigest-0.1.2.tgz" + "version" "0.1.2" + dependencies: + "bintrees" "1.0.2" + +"to-regex-range@^5.0.1": + "integrity" "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==" + "resolved" "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz" + "version" "5.0.1" + dependencies: + "is-number" "^7.0.0" + +"toidentifier@1.0.1": + "integrity" "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==" + "resolved" "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz" + "version" "1.0.1" + +"touch@^3.1.0": + "integrity" "sha512-WBx8Uy5TLtOSRtIq+M03/sKDrXCLHxwDcquSP2c43Le03/9serjQBIztjRz6FkJez9D/hleyAXTBGLwwZUw9lA==" + "resolved" "https://registry.npmjs.org/touch/-/touch-3.1.0.tgz" + "version" "3.1.0" + dependencies: + "nopt" "~1.0.10" + +"tr46@^3.0.0": + "integrity" "sha512-l7FvfAHlcmulp8kr+flpQZmVwtu7nfRV7NZujtN0OqES8EL4O4e0qqzL0DC5gAvx/ZC/9lk6rhcUwYvkBnBnYA==" + "resolved" "https://registry.npmjs.org/tr46/-/tr46-3.0.0.tgz" + "version" "3.0.0" + dependencies: + "punycode" "^2.1.1" + +"tr46@~0.0.3": + "integrity" "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==" + "resolved" "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz" + "version" "0.0.3" + +"tslib@^1.11.1": + "integrity" "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" + "resolved" "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz" + "version" "1.14.1" + +"tslib@^2.3.1": + "integrity" "sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg==" + "resolved" "https://registry.npmjs.org/tslib/-/tslib-2.5.0.tgz" + "version" "2.5.0" + +"type-is@^1.6.4", "type-is@~1.6.18": + "integrity" "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==" + "resolved" "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz" + "version" "1.6.18" + dependencies: + "media-typer" "0.3.0" + "mime-types" "~2.1.24" + +"typedarray@^0.0.6": + "integrity" "sha512-/aCDEGatGvZ2BIk+HmLf4ifCJFwvKFNb9/JeZPMulfgFracn9QFcAf5GO8B/mweUjSoblS5In0cWhqpfs/5PQA==" + "resolved" "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz" + "version" "0.0.6" + +"uid-safe@~2.1.5": + "integrity" "sha512-KPHm4VL5dDXKz01UuEd88Df+KzynaohSL9fBh096KWAxSKZQDI2uBrVqtvRM4rwrIrRRKsdLNML/lnaaVSRioA==" + "resolved" "https://registry.npmjs.org/uid-safe/-/uid-safe-2.1.5.tgz" + "version" "2.1.5" + dependencies: + "random-bytes" "~1.0.0" + +"ulid@^2.3.0": + "integrity" "sha512-keqHubrlpvT6G2wH0OEfSW4mquYRcbe/J8NMmveoQOjUqmo+hXtO+ORCpWhdbZ7k72UtY61BL7haGxW6enBnjw==" + "resolved" "https://registry.npmjs.org/ulid/-/ulid-2.3.0.tgz" + "version" "2.3.0" + +"undefsafe@^2.0.5": + "integrity" "sha512-WxONCrssBM8TSPRqN5EmsjVrsv4A8X12J4ArBiiayv3DyyG3ZlIg6yysuuSYdZsVz3TKcTg2fd//Ujd4CHV1iA==" + "resolved" "https://registry.npmjs.org/undefsafe/-/undefsafe-2.0.5.tgz" + "version" "2.0.5" + +"unpipe@~1.0.0", "unpipe@1.0.0": + "integrity" "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==" + "resolved" "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz" + "version" "1.0.0" + +"update-browserslist-db@^1.0.9": + "integrity" "sha512-OztqDenkfFkbSG+tRxBeAnCVPckDBcvibKd35yDONx6OU8N7sqgwc7rCbkJ/WcYtVRZ4ba68d6byhC21GFh7sQ==" + "resolved" "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.10.tgz" + "version" "1.0.10" + dependencies: + "escalade" "^3.1.1" + "picocolors" "^1.0.0" + +"url-value-parser@^2.0.0": + "integrity" "sha512-yIQdxJpgkPamPPAPuGdS7Q548rLhny42tg8d4vyTNzFqvOnwqrgHXvgehT09U7fwrzxi3RxCiXjoNUNnNOlQ8A==" + "resolved" "https://registry.npmjs.org/url-value-parser/-/url-value-parser-2.2.0.tgz" + "version" "2.2.0" + +"util-deprecate@^1.0.1", "util-deprecate@^1.0.2", "util-deprecate@~1.0.1": + "integrity" "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==" + "resolved" "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz" + "version" "1.0.2" + +"utils-merge@1.0.1": + "integrity" "sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==" + "resolved" "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz" + "version" "1.0.1" + +"uuid@^8.3.2": + "integrity" "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==" + "resolved" "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz" + "version" "8.3.2" + +"vary@^1", "vary@~1.1.2": + "integrity" "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==" + "resolved" "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz" + "version" "1.1.2" + +"web-streams-polyfill@^3.0.3": + "integrity" "sha512-e0MO3wdXWKrLbL0DgGnUV7WHVuw9OUvL4hjgnPkIeEvESk74gAITi5G606JtZPp39cd8HA9VQzCIvA49LpPN5Q==" + "resolved" "https://registry.npmjs.org/web-streams-polyfill/-/web-streams-polyfill-3.2.1.tgz" + "version" "3.2.1" + +"webidl-conversions@^3.0.0": + "integrity" "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==" + "resolved" "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz" + "version" "3.0.1" + +"webidl-conversions@^7.0.0": + "integrity" "sha512-VwddBukDzu71offAQR975unBIGqfKZpM+8ZX6ySk8nYhVoo5CYaZyzt3YBvYtRtO+aoGlqxPg/B87NGVZ/fu6g==" + "resolved" "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-7.0.0.tgz" + "version" "7.0.0" + +"whatwg-url@^11.0.0": + "integrity" "sha512-RKT8HExMpoYx4igMiVMY83lN6UeITKJlBQ+vR/8ZJ8OCdSiN3RwCq+9gH0+Xzj0+5IrM6i4j/6LuvzbZIQgEcQ==" + "resolved" "https://registry.npmjs.org/whatwg-url/-/whatwg-url-11.0.0.tgz" + "version" "11.0.0" + dependencies: + "tr46" "^3.0.0" + "webidl-conversions" "^7.0.0" + +"whatwg-url@^5.0.0": + "integrity" "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==" + "resolved" "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz" + "version" "5.0.0" + dependencies: + "tr46" "~0.0.3" + "webidl-conversions" "^3.0.0" + +"which-module@^2.0.0": + "integrity" "sha512-B+enWhmw6cjfVC7kS8Pj9pCrKSc5txArRyaYGe088shv/FGWH+0Rjx/xPgtsWfsUtS27FkP697E4DDhgrgoc0Q==" + "resolved" "https://registry.npmjs.org/which-module/-/which-module-2.0.0.tgz" + "version" "2.0.0" + +"which@^2.0.1": + "integrity" "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==" + "resolved" "https://registry.npmjs.org/which/-/which-2.0.2.tgz" + "version" "2.0.2" + dependencies: + "isexe" "^2.0.0" + +"wide-align@^1.1.2": + "integrity" "sha512-eDMORYaPNZ4sQIuuYPDHdQvf4gyCF9rEEV/yPxGfwPkRodwEgiMUUXTx/dex+Me0wxx53S+NgUHaP7y3MGlDmg==" + "resolved" "https://registry.npmjs.org/wide-align/-/wide-align-1.1.5.tgz" + "version" "1.1.5" + dependencies: + "string-width" "^1.0.2 || 2 || 3 || 4" + +"wrap-ansi@^6.2.0": + "integrity" "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==" + "resolved" "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz" + "version" "6.2.0" + dependencies: + "ansi-styles" "^4.0.0" + "string-width" "^4.1.0" + "strip-ansi" "^6.0.0" + +"wrappy@1": + "integrity" "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==" + "resolved" "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz" + "version" "1.0.2" + +"xml-js@^1.6.11": + "integrity" "sha512-7rVi2KMfwfWFl+GpPg6m80IVMWXLRjO+PxTq7V2CDhoGak0wzYzFgUY2m4XJ47OGdXd8eLE8EmwfAmdjw7lC1g==" + "resolved" "https://registry.npmjs.org/xml-js/-/xml-js-1.6.11.tgz" + "version" "1.6.11" + dependencies: + "sax" "^1.2.4" + +"xss@^1.0.13": + "integrity" "sha512-og7TEJhXvn1a7kzZGQ7ETjdQVS2UfZyTlsEdDOqvQF7GoxNfY+0YLCzBy1kPdsDDx4QuNAonQPddpsn6Xl/7sw==" + "resolved" "https://registry.npmjs.org/xss/-/xss-1.0.14.tgz" + "version" "1.0.14" + dependencies: + "commander" "^2.20.3" + "cssfilter" "0.0.10" + +"xtend@^4.0.0", "xtend@^4.0.2": + "integrity" "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==" + "resolved" "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz" + "version" "4.0.2" + +"y18n@^4.0.0": + "integrity" "sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==" + "resolved" "https://registry.npmjs.org/y18n/-/y18n-4.0.3.tgz" + "version" "4.0.3" + +"yallist@^4.0.0", "yallist@4.0.0": + "integrity" "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" + "resolved" "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz" + "version" "4.0.0" + +"yaml@^1.10.2": + "integrity" "sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==" + "resolved" "https://registry.npmjs.org/yaml/-/yaml-1.10.2.tgz" + "version" "1.10.2" + +"yargs-parser@^18.1.2": + "integrity" "sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==" + "resolved" "https://registry.npmjs.org/yargs-parser/-/yargs-parser-18.1.3.tgz" + "version" "18.1.3" + dependencies: + "camelcase" "^5.0.0" + "decamelize" "^1.2.0" + +"yargs@^15.3.1": + "integrity" "sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A==" + "resolved" "https://registry.npmjs.org/yargs/-/yargs-15.4.1.tgz" + "version" "15.4.1" + dependencies: + "cliui" "^6.0.0" + "decamelize" "^1.2.0" + "find-up" "^4.1.0" + "get-caller-file" "^2.0.1" + "require-directory" "^2.1.1" + "require-main-filename" "^2.0.0" + "set-blocking" "^2.0.0" + "string-width" "^4.2.0" + "which-module" "^2.0.0" + "y18n" "^4.0.0" + "yargs-parser" "^18.1.2"