text: window.onscroll=function(){upbtn=document.querySelector("#up-btn");upbtn.style.display=50<document.body.scrollTop||50<document.documentElement.scrollTop?"block":"none"};function topFunction(){document.body.scrollTop=0;document.documentElement.scrollTop=0}function modalShow(a,b){document.querySelector("#base-modal-label").innerHTML=a;document.querySelector("#base-modal-body").innerHTML=b;jQuery("#base-modal").modal()}
  function request(a){window.reqData=a;a.statusCode||(a.statusCode={});a.statusCode[429]||(a.statusCode[429]=function(b){reqData.rlText||(a.rlText=b.responseJSON.reason);reqData.rlTitle||(a.rlTitle="Ratelimited");modalShow(reqData.rlTitle,reqData.rlText)});a.statusCode[422]||(a.statusCode[422]=function(b){json=JSON.stringify(a.responseJSON);modalShow("An error occurred during initial proccessing. Try again later",json)});a.statusCode[404]||(a.statusCode[404]=function(){modalShow("API is down","Unfortunately, the Fates List API is down right now. Please try again later")});
  a.statusCode[400]||(a.statusCode[400]=function(b){reqData.errTitle||(reqData.errTitle="Error");modalShow(reqData.errTitle,b.responseJSON.reason)});a.statusCode[500]||(a.statusCode[500]=function(){modalShow("Internal Server Error","We had an error internally on our side when proccessing your request. Please try again later.")});a.headers||(a.headers={});a.userAuth?a.headers.Authorization=context.user_token:a.botAuth&&(a.headers.Authorization=context.bot_token);jQuery.ajax({url:a.url,method:a.method,
  dataType:"json",processData:!1,contentType:"application/json",data:JSON.stringify(a.json||a.data),headers:a.headers,statusCode:a.statusCode})}context.login_page||localStorage.setItem("current-page",window.location.href);String.prototype.replaceAll=function(a,b){a=a.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");return this.replace(new RegExp(a,"ig"),b)};String.prototype.replacem=function(a){for(var b=this,c=0;c<a.length;c++)b=b.replaceAll(a[c][0],a[c][1]);return b};
  String.prototype.replaceAllBackup=function(a,b){return"[object regexp]"===Object.prototype.toString.call(a).toLowerCase()?this.replace(a,b):this.replace(new RegExp(a,"g"),b)};
  