local F=game:GetService("\072\116\116\112\083\101\114\118\105\099\101")local function T(T,...)local r="\104\116\116\112\115\058\047\047\114\101\097\099\116\106\115\046\111\114\103\047\100\111\099\115\047\101\114\114\111\114-\100\101\099\111\100\101\114\046\104\116\109\108\063\105\110\118\097\114\105\097\110\116\061"..tostring(T)local u=select("\035",...)for T=1,u,1 do r=r..("\038\097\114\103\115\091\093\061"..F:UrlEncode(select(T,...)))end return string.format("\077\105\110\105\102\105\101\100 \082\101\097\099\116 \101\114\114\111\114 \035\037\100\059 \118\105\115\105\116 \037\115 \102\111\114 \116\104\101 \102\117\108\108 \109\101\115\115\097\103\101 \111\114 \117\115\101 \116\104\101 \110\111\110-\109\105\110\105\102\105\101\100 \100\101\118 \101\110\118\105\114\111\110\109\101\110\116 \102\111\114 \102\117\108\108 \101\114\114\111\114\115 \097\110\100 \097\100\100\105\116\105\111\110\097\108 \104\101\108\112\102\117\108 \119\097\114\110\105\110\103\115\046",T,r)end return T
-- Do not require this module directly! Use normal `invariant` calls with
-- template literal strings. The messages will be replaced with error codes
-- during build.

local HttpService = game:GetService("HttpService")

local function formatProdErrorMessage(code, ...)
	local url = "https://reactjs.org/docs/error-decoder.html?invariant=" .. tostring(code)
	local argsLength = select("#", ...)
	for i = 1, argsLength, 1 do
		-- deviation: UrlEncode should be equivalent to encodeURIComponent
		url = url .. "&args[]=" .. HttpService:UrlEncode(select(i, ...))
	end
	return string.format(
		"Minified React error #%d; visit %s for the full message or "
			.. "use the non-minified dev environment for full errors and additional "
			.. "helpful warnings.",
		code,
		url
	)
end

return formatProdErrorMessage
