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QyIiwic2x1ZyI6InJlY3RhbmdsZXMvMDEifSx7ImlkIjoiczg2IiwibmFtZSI6IjAxIiwidHlwZSI6InBhdGgiLCJ5IjoxMDcsIngiOjE4OSwic2NhbGVZIjoxNzAuNjY3LCJzY2FsZVgiOjEuMzMzLCJvcGFjaXR5IjoxMDAsImluZGV4IjowLCJjb2xvciI6IiNmYWUxNDIiLCJzbHVnIjoicmVjdGFuZ2xlcy8wMSJ9LHsiaWQiOiJzODciLCJuYW1lIjoiMDEiLCJ0eXBlIjoicGF0aCIsInkiOjEwNywieCI6MTkzLCJzY2FsZVkiOjE3MC42NjcsInNjYWxlWCI6MS4zMzMsIm9wYWNpdHkiOjEwMCwiaW5kZXgiOjAsImNvbG9yIjoiI2YxNjYzYyIsInNsdWciOiJyZWN0YW5nbGVzLzAxIn0seyJpZCI6InM4OCIsIm5hbWUiOiIwMSIsInR5cGUiOiJwYXRoIiwieSI6MTA3LCJ4IjoxOTcsInNjYWxlWSI6MTcwLjY2Nywic2NhbGVYIjoxLjMzMywib3BhY2l0eSI6MTAwLCJpbmRleCI6MCwiY29sb3IiOiIjZWQyODM5Iiwic2x1ZyI6InJlY3RhbmdsZXMvMDEifSx7ImlkIjoiczg5IiwibmFtZSI6IjAxIiwidHlwZSI6InBhdGgiLCJ5IjoxMDcsIngiOjI4MSwic2NhbGVZIjoxNzAuNjY3LCJzY2FsZVgiOjU0LjY2Nywib3BhY2l0eSI6MTAwLCJpbmRleCI6MCwiY29sb3IiOiIjZWQyOTM5Iiwic2x1ZyI6InJlY3RhbmdsZXMvMDEifV0=';var request=new XMLHttpRequest;request.open("POST","/emblems/save",!0),request.onreadystatechange=function(){if(request.readyState==XMLHttpRequest.DONE){var a=JSON.parse(request.responseText);200==a.Status?window.location.href='https://socialclub.rockstargames.com/emblems/edit/'+a.EmblemId:a.Message?alert(a.Message):alert(a.Error.Message)}},request.setRequestHeader("Content-Type","application/json"),request.setRequestHeader("__RequestVerificationToken",document.getElementsByName("__RequestVerificationToken")[0].value),request.setRequestHeader("X-Requested-With","XMLHttpRequest"),request.send(JSON.stringify({"crewId":"0","emblemId":"","parentId":"","svgData":svgData,"layerData": layerData,"hash":document.getElementById("editorField-hash").value}));