util_1.VERY_LARGE_NUMBER,console.log("PvP health obtained."),util_1._.instance.prodigy.gameContainer.get(util_1._.player.hasMembership.toString().split('"')[1]).data.membership.active=!0,util_1._.player.appearanceChanged=!0,console.log("Premium membership enabled.");for(var o=0;o<100;o++)util_1._.player.achievements.data.progress[o]=10;console.log("Obtained all achievements."),util_1._.player.data.tower=100,console.log("Set tower floor to 100."),util_1._.constants.constants["GameConstants.Debug.EDUCATION_ENABLED"]=!1,console.log("Math Disabled."),util_1._.player.getMaxHearts=()=>util_1.VERY_LARGE_NUMBER,util_1._.player.pvpHP=util_1.VERY_LARGE_NUMBER,util_1._.player.data.hp=util_1.VERY_LARGE_NUMBER,console.log("Maxed out PvE health.");var a=(e,t)=>e.map((e=>({ID:e.ID,N:t}))).filter((e=>void 0!==e)),r=99e4;["boots","follow","fossil","hat","item","key","mathTownFrame","mathTownInterior","mount","outfit","spellRelic","weapon","currency"].forEach((e=>{util_1._.player.backpack.data[e]=a(util_1._.gameData[e].filter((t=>"follow"===e?![125,126,127,128,129,134,135,136,137].includes(t.ID):t)),r.value)})),util_1._.gameData.dorm.forEach((e=>util_1._.player.house.data.items[e.ID]={A:[],N:r.value}));for(var s=()=>util_1._.player.backpack.data.item.findIndex((e=>84===e.ID||85===e.ID||86===e.ID));s()>-1;)util_1._.player.backpack.data.item.splice(s(),1);swal_1.Toast.fire("Success!","All items added!","success"),console.log("All items added!"),util_1._.player.backpack.data.mount=a(util_1._.gameData.mount,1),console.log("Added all mounts."),util_1._.gameData.dorm.forEach((e=>util_1._.player.house.data.items[e.ID]={A:[],N:99e4.value})),console.log("Added 990000 of all furniture."),util_1._.gameData.pet.forEach((e=>{util_1._.player.kennel.addPet(e.ID.toString(),util_1.VERY_LARGE_NUMBER,26376,100)})),util_1._.player.kennel._encounterInfo._data.pets=[],util_1._.gameData.pet.map((e=>{util_1._.player.kennel._encounterInfo._data.pets.push({firstSeenDate:Date.now(),ID:e.ID,timesBattled:1,timesRescued:1})})),util_1._.player.kennel.petTeam.forEach((e=>{e&&e.assignRandomSpells&&e.assignRandomSpells()})),console.log("Added all pets."),util_1._.player._playerContainer.walkSpeed=20,console.log("Player walkspeed set to 20."),util_1._.player.equipment.setHat(200),util_1._.player.equipment.setBoots(93),util_1._.player.equipment.setOutfit(161),util_1._.player.equipment.setWeapon(196),(0,util_1.saveCharacter)(),console.log("Character Saved."),util_1._.player.appearanceChanged=!0,console.log("Appearance Refreshed."),util_1._.instance.prodigy.open.menuCloseAll(),console.log("Popups closed."),(0,util_1.saveCharacter)(),console.log("Character Saved."),console.log("Max Account Successful."),swal_1.Toast.fire("Maxed!","Check your backpack!","success")}else console.log("Cancelled")}))),new index_1.Hack(index_1.category.player,"Set Gold").setClick(_asyncToGenerator((function*(){var e=yield swal_1.NumberInput.fire("Gold Amount","What number do you want to set your gold to?","question");if(void 0!==e.value){if(e.value>1e7)return swal_1.Toast.fire("Error","Cannot have more than 10,000,000 gold.","error");util_1._.player.data.gold=+e.value,swal_1.Toast.fire("Success!","You now have ".concat(e.value," gold."),"success")}}))),new index_1.Hack(index_1.category.player,"Set Level").setClick(_asyncToGenerator((function*(){var e=yield swal_1.NumberInput.fire("Level","What number do you want to set your level to?","question");if(void 0!==e.value){if(1===e.value)return 0;var t=e.value-2;util_1._.player.data.stars=Math.round((1-Math.pow(1.042,t))/(1-1.042)*20+10),util_1._.player.data.level=+e.value,util_1._.player.getLevel=()=>util_1._.player.data.level,swal_1.Toast.fire("Success!","You are now level ".concat(e.value,"."),"success")}}))),new index_1.Hack(index_1.category.player,"Get member stars").setClick(_asyncToGenerator((function*(){var e=yield swal_1.NumberInput.fire("Stars","How many member stars do you want?","question");void 0!==e.value&&(util_1._.player.data.storedMemberStars=e.value,swal_1.Toast.fire("Success!","You have set your member stars to ".concat(e.value,"."),"success"))}))),new index_1.Hack(index_1.category.player,"Set Bounty Points").setClick(_asyncToGenerator((function*(){var e=yield swal_1.NumberInput.fire("Bounty Points","What number do you want to set your bounty points to? (Max is 100)","question");void 0!==e.value&&(util_1._.player.data.bountyScore=Math.min(+e.value,100),swal_1.Toast.fire("Success!","You now have ".concat(util_1._.player.data.bountyScore," bounty point").concat(1!=util_1._.player.data.bountyScore?"s":"","."),"success"))}))),new index_1.Hack(index_1.category.player,"Obtain Conjure Cubes").setClick(_asyncToGenerator((function*(){var e=yield swal_1.NumberInput.fire("Conjure Cubes","How many conjure cubes do you want to get? (Max 99)","question");if(void 0!==e.value){for(var t=0;tutil_1.VERY_LARGE_NUMBER,swal_1.Toast.fire("Success!","You now have lots of health!","success")}))),new index_1.Toggler(index_1.category.player,"Toggle membership").setEnabled(_asyncToGenerator((function*(){return util_1._.instance.prodigy.gameContainer.get(util_1._.player.hasMembership.toString().split('"')[1]).data.membership.active=!0,util_1._.player.appearanceChanged=!0,swal_1.Toast.fire("Success!","You now have Prodigy membership!","success")}))).setDisabled((()=>(util_1._.instance.prodigy.gameContainer.get(util_1._.player.hasMembership.toString().split('"')[1]).data.membership.active=!1,util_1._.player.appearanceChanged=!0,swal_1.Toast.fire("Success!","You no longer have Prodigy membership!","success")))),new index_1.Hack(index_1.category.player,"Set name (Client side only)").setClick(_asyncToGenerator((function*(){var e=yield swal_1.Input.fire("What would you like to set your name to?");if(e.value)return util_1._.player.getName=()=>e.value,util_1._.player.appearanceChanged=!0,swal_1.Toast.fire("Changed!","Your name was changed.")}))),new index_1.Hack(index_1.category.player,"Change Name","Change the name of your wizard.").setClick(_asyncToGenerator((function*(){var e=util_1._.gameData.name,t=document.createElement("div"),n=(e,t)=>{var n=document.createElement("select");for(var o of(n.classList.add("selectName"),e.entries())){var a=document.createElement("option");[a.value,a.innerText]=o,t(a.value)&&(a.selected=!0),n.options.add(a)}return n},o=(t,o)=>n(new Map(e.filter((e=>e.data.type===t)).map((e=>[e.ID.toString(),e.name]))),(e=>o(+e)));t.append(o(0,(e=>e===util_1._.player.name.data.firstName))),t.append(o(1,(e=>e===util_1._.player.name.data.middleName))),t.append(o(2,(e=>e===util_1._.player.name.data.lastName))),t.append(n(new Map([["null","[none]"]].concat(util_1._.gameData.nickname.map((e=>[e.ID.toString(),e.name])))),(e=>+e===util_1._.player.name.data.nickname||String(util_1._.player.name.data.nickname)===e)));var a=yield swal_1.Swal.fire({title:"Set Player Name",focusConfirm:!1,showCancelButton:!0,html:t,preConfirm:()=>Array.prototype.slice.call(document.querySelectorAll(".selectName")).map((e=>e.options[e.selectedIndex].value))});if(void 0!==a.value)return"null"===a.value[3]&&(a.value[3]=null),[util_1._.player.name.data.firstName,util_1._.player.name.data.middleName,util_1._.player.name.data.lastName,util_1._.player.name.data.nickname]=a.value.map((e=>e&&+e)),util_1._.player.appearanceChanged=!0,swal_1.Toast.fire("Name Changed!","Your name was successfully changed.","success")}))),new index_1.Hack(index_1.category.player,"Uncap player level (client side only)").setClick(_asyncToGenerator((function*(){var level=yield swal_1.NumberInput.fire("Level","What would you like to set your level to? (Can be >100)","question");level.value&&(localStorage.setItem("level",level.value),eval("_.player.getLevel = () => {return ".concat(level.value,"}")),swal_1.Toast.fire("Updated!","Your level has been successfully updated","success"))}))),new index_1.Hack(index_1.category.player,"Get all achievements").setClick(_asyncToGenerator((function*(){for(var e=0;e<100;e++)util_1._.player.achievements.data.progress[e]=10;return swal_1.Toast.fire("Success!","Obtained all achievements!","success")}))),new index_1.Hack(index_1.category.player,"Fix Morph Crash").setClick(_asyncToGenerator((function*(){util_1._.player.getPlayerData().playerTransformation=void 0,util_1._.player.appearanceChanged=!0,swal_1.Toast.fire("Success!","Fixed morph crash bug.","success")}))),new index_1.Hack(index_1.category.player,"Permanent Morph","Makes Your Current Morph Last Forever.").setClick(_asyncToGenerator((function*(){util_1._.player.data.playerTransformation?(util_1._.player.data.playerTransformation.maxTime=1/0,util_1._.player.data.playerTransformation.timeRemaining=1/0,swal_1.Toast.fire("Success!","You're morph will last forever!","success")):yield swal_1.Swal.fire("No Morph Active","Please use a Morph Marble and try again.","error")}))),new index_1.Hack(index_1.category.player,"Complete Current Task In Quest","Completes current task in quest. (Use this button a lot to complete a quest.)").setClick(_asyncToGenerator((function*(){var e={};Object.keys(util_1._.instance.prodigy.world.zones).forEach((t=>{e[t]=util_1._.instance.prodigy.world.zones[t].name}));var t=(yield swal_1.Input.fire({title:"What Quest Do You Want To Complete?",input:"select",inputOptions:e})).value;if(t){var n=util_1._.instance.prodigy.world.zones[t].getCurrentQuestID();util_1._.instance.prodigy.world.zones[t].completeQuest(n)?(util_1._.instance.prodigy.world.goToZoneHub(t),swal_1.Toast.fire("Success!","Completed current task in the ".concat(util_1._.instance.prodigy.world.zones[t].name," quest successfully!"),"success")):swal_1.Toast.fire("Could Not Complete Current Task In Quest.","There was an error completing the quest. Did you already complete it?","error")}}))),new index_1.Hack(index_1.category.player,"Set Dark Tower Floor").setClick(_asyncToGenerator((function*(){var e=yield swal_1.NumberInput.fire({title:"What floor do you want to be on, in the dark tower.",icon:"question",inputValidator:e=>(e>100||e<1)&&"You can only be on floors from 1-100 not ".concat(e)});e.value&&(util_1._.player.data.tower=parseInt(e.value),swal_1.Toast.fire("Success!","Successfully set dark tower floor to ".concat(e,"!"),"success"))}))),new index_1.Hack(index_1.category.player,"Get UserID").setClick(_asyncToGenerator((function*(){var e=util_1._.player.userID;navigator.clipboard.writeText(e).then((function(){console.log("Async: Copying to clipboard was successful!"),swal_1.Swal.fire({title:"User ID",html:"Here is your User ID:
".concat(e,"
You can use this for copying your account.
Your UserID is has also been copied to your clipboard."),icon:"info"})}),(function(t){console.error("Async: Could not copy text: ",t),swal_1.Swal.fire({title:"User ID",html:"Here is your User ID:
".concat(e,"
You can use this for copying your account."),icon:"info"})}))}))),new index_1.Hack(index_1.category.player,"Copy Account","Copy Account From userID").setClick(_asyncToGenerator((function*(){var e=(yield swal_1.NumberInput.fire("What is the userID of the account you want to copy?",void 0,"question")).value;if(e&&(yield swal_1.Confirm.fire("Are you sure you want to copy the account?","This will replace all data on your account with the account your copying."))){var t=yield(yield fetch("https://api.prodigygame.com/game-api/v2/characters/".concat(e,"?fields=inventory%2Cdata%2CisMember%2Ctutorial%2Cpets%2Cencounters%2Cquests%2Cappearance%2Cequipment%2Chouse%2Cachievements%2Cstate&userID=").concat(e),{headers:{Authorization:localStorage.JWT_TOKEN}})).json();yield fetch("https://api.prodigygame.com/game-api/v3/characters/".concat(e),{headers:{"Content-Type":"application/json",Authorization:localStorage.JWT_TOKEN},body:JSON.stringify({data:JSON.stringify(t[e]),userID:util_1._.player.userID}),method:"POST"}),swal_1.Toast.fire("Success!","Copied Account Successfully! Please reload.","success")}}))),new index_1.Hack(index_1.category.player,"Set Grade").setClick(_asyncToGenerator((function*(){var e=yield swal_1.NumberInput.fire("What number do you want to set your grade to?");e.value&&(util_1._.player.grade=parseInt(e.value),swal_1.Toast.fire("Success","Successfully changed grade to ".concat(e,"!"),"success"))}))),_asyncToGenerator((function*(){swal_1.Swal.fire({title:"ProdigyPNP",html:'\n \t \n This is free and open-source software.\n If you paid for this or accessed this behind a paywall/AdFly link, demand a refund. If you sell this software, or otherwise make a commercial advantage from it, you are violating\n our license.\n
\n \t ',icon:"info"})}))()}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),void 0===__WEBPACK_AMD_DEFINE_RESULT__||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)},4474:(module,exports,__webpack_require__)=>{var __webpack_unused_export__,__WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;function asyncGeneratorStep(e,t,n,o,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void n(e)}i.done?t(l):Promise.resolve(l).then(o,a)}function _asyncToGenerator(e){return function(){var t=this,n=arguments;return new Promise((function(o,a){var r=e.apply(t,n);function s(e){asyncGeneratorStep(r,o,a,s,i,"next",e)}function i(e){asyncGeneratorStep(r,o,a,s,i,"throw",e)}s(void 0)}))}}__WEBPACK_AMD_DEFINE_ARRAY__=[__webpack_require__,exports,__webpack_require__(4759),__webpack_require__(9820),__webpack_require__(2852)],__WEBPACK_AMD_DEFINE_RESULT__=function(require,exports,swal_1,index_1,util_1){"use strict";__webpack_unused_export__={value:!0},new index_1.Hack(index_1.category.utility,"Close all popups","Closes all popups in Prodigy.").setClick(_asyncToGenerator((function*(){util_1._.instance.prodigy.open.menuCloseAll(),swal_1.Toast.fire("Closed!","All open popups were closed.","success")}))),new index_1.Hack(index_1.category.utility,"Save Character Locally [Local]","Saves your character locally.").setClick(_asyncToGenerator((function*(){localStorage.setItem("playerData",JSON.stringify(util_1._.player.getUpdatedData(!0))),swal_1.Toast.fire("Success!","Note: Load Character will only work on this device.","success")}))),new index_1.Hack(index_1.category.utility,"Load local character [Local]","Loads your character locally.").setClick(_asyncToGenerator((function*(){if(localStorage.getItem("playerData")){var e=localStorage.getItem("playerData"),t=yield fetch("https://api.prodigygame.com/game-api/v3/characters/".concat(util_1._.player.userID),{headers:{accept:"*/*","accept-language":"en-US,en;q=0.9",authorization:localStorage.JWT_TOKEN,"content-type":"application/json","sec-ch-ua":'" Not;A Brand";v="99", "Google Chrome";v="91", "Chromium";v="91"',"sec-ch-ua-mobile":"?0","sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"same-site"},referrer:"https://play.prodigygame.com/",referrerPolicy:"strict-origin-when-cross-origin",body:JSON.stringify({data:e,userID:util_1._.player.userID}),method:"POST",mode:"cors"});if(!t.ok)return swal_1.Toast.fire("Request failed.","An error occurred while loading the character. Error code: ".concat(t.status),"error");swal_1.Toast.fire("Success!","Character has been successfully loaded. Reload for the changes to take effect.","success")}else swal_1.Toast.fire("Error","No saved character.","error")}))),new index_1.Hack(index_1.category.utility,"Save Character","Helps fix bugs where not all hacks save.").setClick(_asyncToGenerator((function*(){(0,util_1.saveCharacter)(),swal_1.Toast.fire("Success!","Your character has been saved!","success")}))),new index_1.Hack(index_1.category.utility,"Update menu","Updates menu to the latest version without needing to reload.").setClick(_asyncToGenerator((function*(){var _document$getElementB,_document$getElementB2;null===(_document$getElementB=document.getElementById("cheat-menu"))||void 0===_document$getElementB||_document$getElementB.remove(),null===(_document$getElementB2=document.getElementById("menu-toggler"))||void 0===_document$getElementB2||_document$getElementB2.remove(),_asyncToGenerator((function*(){eval(yield(yield fetch("https://raw.githubusercontent.com/ProdigyPNP/ProdigyMathGameHacking/master/cheatGUI/dist/bundle.js?updated=".concat(Date.now()))).text())}))(),swal_1.Toast.fire("Updated!","Cheat menu was updated.","success")}))),new index_1.Hack(index_1.category.utility,"Disable inactivity kick","Keeps you from being logged out for inactivity.").setClick(_asyncToGenerator((function*(){util_1._.constants.constants["GameConstants.Inactivity.LOG_OUT_TIMER_SECONDS"]=0,swal_1.Toast.fire("Success!","You now will never be logged out!","success")}))),new index_1.Toggler(index_1.category.utility,"Enable menu resize","Allows you to resize the menu via dragging the bottom right corner.").setEnabled(_asyncToGenerator((function*(){return document.getElementById("cheat-menu").style.resize="both",swal_1.Toast.fire("Success!","Drag the bottom right corner of the menu to resize it.","success")}))).setDisabled((()=>(document.getElementById("cheat-menu").style.resize="none",swal_1.Toast.fire("Success!","The menu position is now locked.","success")))),new index_1.Hack(index_1.category.utility,"Edit walkspeed","Lets you set your walkspeed.").setClick(_asyncToGenerator((function*(){var e=yield swal_1.Input.fire("What do you want to set your walk speed to?");if(e.value){if(util_1._.player._playerContainer)util_1._.player._playerContainer.walkSpeed=parseFloat(e.value)||1.5;else var t=setInterval((()=>{util_1._.player._playerContainer&&(clearInterval(t),util_1._.player._playerContainer.walkSpeed=parseFloat(e.value))}),100);swal_1.Toast.fire("Success!","Successfully made walk speed ".concat(parseFloat(e.value)||1.5,"!"),"success")}})));var teleportingInterval=-1;new index_1.Toggler(index_1.category.utility,"Toggle Click Teleporting").setEnabled(_asyncToGenerator((function*(){teleportingInterval=setInterval((()=>{try{util_1._.player._playerContainer.walkSpeed=500}catch(e){}})),swal_1.Toast.fire("Success!","Successfully enabled teleport click.","success")}))).setDisabled(_asyncToGenerator((function*(){clearInterval(teleportingInterval),util_1._.player._playerContainer.walkSpeed=1.5,swal_1.Toast.fire("Success!","Successfully disabled teleport click.","success")}))),new index_1.Toggler(index_1.category.utility,"Pause Game").setEnabled(_asyncToGenerator((function*(){util_1._.network.game._paused=!0,swal_1.Toast.fire("Success!","Successfully paused Prodigy.","success")}))).setDisabled(_asyncToGenerator((function*(){util_1._.network.game._paused=!1,swal_1.Toast.fire("Success!","Successfully resumed Prodigy.","success")}))),new index_1.Hack(index_1.category.utility,"Eval Console","Evaluate JavaScript code without opening F12").setClick(_asyncToGenerator((function*(){if((yield swal_1.Confirm.fire({title:"Important",html:"This hack is potentially dangerous, as it evaluates plain JavaScript code, with access to Prodigy's typings. Please do not paste code from random people on the internet here, that may be dangerous.
Proceed?",icon:"warning"})).value){var code=yield swal_1.Input.fire("Code:","Enter the code you want to evaluate.");if(code.value){try{eval(code.value)}catch(e){if(e)return void swal_1.Swal.fire({title:"Error",html:"Oops! There was an error with the code!
".concat(e,"
"),icon:"error"})}swal_1.Toast.fire("Evaluated!","Code was evaluated.","success")}}})))}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),void 0===__WEBPACK_AMD_DEFINE_RESULT__||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)},9820:function(e,t,n){var o,a;function r(e,t,n,o,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void n(e)}i.done?t(l):Promise.resolve(l).then(o,a)}function s(e){return function(){var t=this,n=arguments;return new Promise((function(o,a){var s=e.apply(t,n);function i(e){r(s,o,a,i,l,"next",e)}function l(e){r(s,o,a,i,l,"throw",e)}i(void 0)}))}}var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};o=[n,t,n(7046),n(2852),n(6455),n(158)],a=function(e,t,n,o,a){"use strict";var r,l,c,u;Object.defineProperty(t,"__esModule",{value:!0}),t.category=t.Toggler=t.Hack=t.addArea=t.toggler=t.wrapper=t.menu=void 0,a=i(a),t.menu=document.createElement("div"),t.wrapper=document.getElementById("game-wrapper"),null===(r=document.getElementById("cheat-menu"))||void 0===r||r.remove(),null===(l=document.getElementById("menu-toggler"))||void 0===l||l.remove(),t.menu.id="cheat-menu",t.menu.style="position: fixed;top: -10%;left: 10%;right: 10%;width: 80%;height: 80%;z-index: 2;background-color: rgba(0, 0, 0, 0.5);backdrop-filter: blur(5px);",null===(c=t.wrapper)||void 0===c||c.prepend(t.menu),t.toggler=document.createElement("button"),t.toggler.id="menu-toggler",t.toggler.style.fontSize="23px",t.toggler.style.height="26px",t.toggler.style.width="50px",t.toggler.style.border="1px solid rgba(0, 0, 0, 0.1)";var d=!1;null===(u=t.wrapper)||void 0===u||u.prepend(t.toggler),t.toggler.onclick=()=>{(d=!d)?(t.toggler.innerText="▼",t.menu.style.top="-100vh"):(t.toggler.innerText="▲",t.menu.style.top="10%")},t.toggler.onclick({});var p=document.createElement("DIV");p.classList.add("menu-left"),t.menu.append(p);var h=!0;t.addArea=e=>{var t=document.createElement("div");0==h?(t.append(document.createElement("br")),t.append(document.createElement("br"))):h=!1,t.classList.add("menu-area"),t.style.textAlign="center",p.append(t);var n=document.createElement("h1");return n.innerText=e,n.style.textAlign="center",n.style.color="white",t.append(n),t};var f=document.createElement("h1");f.classList.add("menu-title"),f.innerText="Prodigy Hacks",f.style.textAlign="center",p.append(f);var m=document.createElement("h2");m.style.fontSize="25px",m.style.color="white",m.innerHTML="
Press SHIFT to show/hide the menu. Scroll down in the menu for more hacks.",p.append(m);var g=document.createElement("h3");g.style.fontSize="20px",g.innerHTML="\nJoin our Discord https://dsc.gg/ProdigyPNP!
\n\n
\n",g.style.color="white",p.append(g);class y{constructor(e,t,n){this.parent=e,this.name="",this.description="",this.element=document.createElement("button"),this.element.classList.add("menu-hack"),this.parent.append(this.element),t&&this.setName(t),n&&this.setDesc(n)}setName(e){return this.element.innerText=e,this.name=e,this}setClick(e){var t=this;return this.element.onclick=s((function*(){yield e(),(0,o.saveCharacter)(),console.log("Triggered ".concat(t.name,"."))})),this}setDesc(e){return this.element.title=e,this.description=e,this}}t.Hack=y,t.Toggler=class extends y{constructor(e,t,n){var o;super(e,t,n),o=this,this.parent=e,this.element.setAttribute("status","false"),this.setClick(s((function*(){var e,t;o.status=!o.status,o.status?(localStorage.setItem(o.name,"true"),yield null===(e=o.enabled)||void 0===e?void 0:e.call(o)):(localStorage.setItem(o.name,"false"),yield null===(t=o.disabled)||void 0===t?void 0:t.call(o))})))}get status(){return JSON.parse(this.element.getAttribute("status"))}set status(e){this.element.setAttribute("status",e.toString())}setEnabled(e){return this.enabled=e,"true"===localStorage.getItem(this.name)&&this.element.click(),this}setDisabled(e){return this.disabled=e,this}},t.category={player:(0,t.addArea)("Player Hacks"),inventory:(0,t.addArea)("Inventory Hacks"),location:(0,t.addArea)("Location Hacks"),pets:(0,t.addArea)("Pet Hacks"),battle:(0,t.addArea)("Battle Hacks"),minigames:(0,t.addArea)("Minigame Hacks"),misc:(0,t.addArea)("Miscellaneous Hacks"),utility:(0,t.addArea)("Utility Hacks"),beta:(0,t.addArea)("Beta Testing | Beta Hacks may damage your account"),patched:(0,t.addArea)("Patched Hacks")},localStorage.hasTip||(s((function*(){yield a.default.fire({title:"Welcome!",html:"To get started with the hacks, click this dropdown!",icon:"info",backdrop:'\n\t\t url("https://i.imgur.com/CdV9piu.png")\n\t\t left top\n\t\t no-repeat\n\t\t '})}))(),localStorage.hasTip=!0),localStorage.getItem("level")&&(o._.player.getLevel=()=>localStorage.getItem("level"));var w=d.value;document.addEventListener("keydown",(function(e){"Shift"==e.key&&(1==w?(document.getElementById("cheat-menu").style.display="none",document.getElementById("menu-toggler").style.display="none",w=!1):(document.getElementById("cheat-menu").style.display="block",document.getElementById("menu-toggler").style.display="block",w=!0))}))}.apply(t,o),void 0===a||(e.exports=a)},2868:(e,t,n)=>{var o,a;function r(e,t,n,o,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void n(e)}i.done?t(l):Promise.resolve(l).then(o,a)}o=[n,t,n(2852),n(4759)],void 0===(a=function(e,t,n,o){"use strict";window.addEventListener("keydown",(e=>{switch(e.code){case"KeyX":n._.instance.prodigy.open.menuCloseAll();break;case"KeyK":var t=function(){var e,t=(e=function*(){if(!(yield o.Confirm.fire("Kit","Would you like to equip Celestial Gear?")).value)return console.log("Cancelled");n._.player.equipment.setHat(200),n._.player.equipment.setBoots(93),n._.player.equipment.setOutfit(161),n._.player.equipment.setWeapon(196),n._.player.appearanceChanged=!0,o.Toast.fire("Success!","You are now wearing Celestial Armor and wielding a Dual Blade.","success")},function(){var t=this,n=arguments;return new Promise((function(o,a){var s=e.apply(t,n);function i(e){r(s,o,a,i,l,"next",e)}function l(e){r(s,o,a,i,l,"throw",e)}i(void 0)}))});return function(){return t.apply(this,arguments)}}();t()}}))}.apply(t,o))||(e.exports=a)},4759:function(e,t,n){var o,a,r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};o=[n,t,n(6455)],a=function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Confirm=t.Toast=t.NumberInput=t.Input=t.Swal=void 0,n=r(n),t.Swal=n.default,t.Input=t.Swal.mixin({input:"text",showCancelButton:!0,showConfirmButton:!0}),t.NumberInput=t.Input.mixin({input:"number"}),t.Toast=t.Swal.mixin({toast:!0,position:"bottom"}),t.Confirm=t.Swal.mixin({icon:"warning",showCancelButton:!0,confirmButtonText:"Confirm",cancelButtonText:"Cancel"})}.apply(t,o),void 0===a||(e.exports=a)},2852:(e,t,n)=>{var o;o=function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pickRandom=t.locations=t.joinAsset=t.assetURL=t.saveCharacter=t.states=t.VERY_LARGE_NUMBER=t.getItem=t.gameData=t.prodigy=t.game=t._=void 0,t._=window._;var n=t._.instance;t.game=n.game,t.prodigy=n.prodigy,t.gameData=t._.instance.game.state.states.get("Boot").gameData,t.getItem=(e,n)=>{var o;return null!==(o=t._.gameData[e].find((e=>e.ID===n)))&&void 0!==o?o:null},t.VERY_LARGE_NUMBER=9e9,t.states=Object.fromEntries(t._.instance.game.state.states),t.saveCharacter=()=>{t._.network.processPlayer=!0,t._.player.forceSaveCharacter()},t.assetURL="https://raw.githubusercontent.com/ProdigyPNP/ProdigyMathGameHacking/master/cheatGUI/src/assets/",t.joinAsset=e=>"".concat(t.assetURL).concat(e),t.locations={academy:(0,t.joinAsset)("academy.png"),bonfire_spire:(0,t.joinAsset)("bonfire_spire.png"),forest:(0,t.joinAsset)("forest.png"),shipwreck_shore:(0,t.joinAsset)("shipwreck_shore.png"),shiverchill:(0,t.joinAsset)("shiverchill.png"),skywatch:(0,t.joinAsset)("skywatch.png"),dyno:(0,t.joinAsset)("dyno.png"),elemental_guardian:(0,t.joinAsset)("elemental_guardian.png"),darktower:(0,t.joinAsset)("darktower.png"),earthtower:(0,t.joinAsset)("earthtower.png"),crystal_caverns:(0,t.joinAsset)("crystal_caverns.png"),archives:(0,t.joinAsset)("archives.png"),house:(0,t.joinAsset)("house.png"),toyzone:(0,t.joinAsset)("toyzone.png"),tower_town:(0,t.joinAsset)("tower_town.png"),lamplight:(0,t.joinAsset)("lamplight.png")},t.pickRandom=e=>e[Math.floor(Math.random()*e.length)]}.apply(t,[n,t]),void 0===o||(e.exports=o)},450:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var o=n(3645),a=n.n(o)()((function(e){return e[1]}));a.push([e.id,"@import url(https://fonts.googleapis.com/css?family=Arvo:400,700|Sen:400,700,800&display=swap&subset=latin-ext);"]),a.push([e.id,'#game-wrapper{font-family:"Sen",sans-serif}#game-wrapper #cheat-menu{height:465px;background-color:rgba(238,238,238,.7333333333);padding:2px;position:absolute;top:0px;left:0px;transition:top .35s;padding:10px;border:10px solid rgba(0,0,0,.1);border-radius:15px;overflow-y:scroll;resize:none;overflow:auto}#game-wrapper .menu-left{width:100%;height:100%;float:center}#game-wrapper #menu-toggler{z-index:1;position:absolute;border-radius:3px;background-color:rgba(255,255,255,.7333333333);transition:background-color .15s}#game-wrapper #menu-toggler:hover{background-color:rgba(221,221,221,.7333333333)}#game-wrapper #menu-toggler:active{background-color:rgba(187,187,187,.7333333333)}#game-wrapper .menu-area h1{font-family:"Sen",sans-serif;font-size:30px;font-weight:700;color:#111;margin:10px}#game-wrapper .menu-area button{background-color:#000;color:#fff;border-radius:5px;border:1px solid #eee;padding:1%;transition:all .15s;margin:5px 5px;transition-property:border-color,background-color}#game-wrapper .menu-area button:hover{border-color:rgba(119,119,119,.8666666667);background-color:#ddd}#game-wrapper .menu-area button:active{border-color:#555;background-color:#bbb}#game-wrapper .menu-area button[status=true]{border-color:rgba(85,170,85,.8666666667);background-color:#9bee9b}#game-wrapper .menu-area button[status=true]:hover{border-color:rgba(179,187,176,.8666666667);background-color:#bffebf}#game-wrapper .menu-area button[status=true]:active{border-color:#4e5c50;background-color:#24be6a}#game-wrapper .menu-area button[status=false]{border-color:rgba(119,102,102,.8666666667);background-color:#9b9b9b}#game-wrapper .menu-area button[status=false]:hover{border-color:rgba(133,133,133,.8666666667);background-color:#bfbfbf}#game-wrapper .menu-area button[status=false]:active{border-color:#4c3e40;background-color:#be246a}#game-wrapper .menu-title{font-family:"Verdana",sans-serif;font-size:40px;font-weight:900;color:#fff}.radioDiv{width:125px;height:125px;display:inline-block;margin:7px;background-color:#5a7e3f;color:#000;background-size:cover;outline:#000 5px solid;vertical-align:top;font-weight:700;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-drag:none;cursor:pointer}.radioDiv:hover{background-blend-mode:overlay;color:#d3d3d3}.radioDiv:active{background-blend-mode:multiply;color:#fff}.radioDiv[checked]{background-blend-mode:color-dodge;color:#ffebcd}.radioDiv[checked]:active{background-blend-mode:color-burn;color:aqua}.radioSwal{width:-webkit-fit-content !important;width:-moz-fit-content !important;width:fit-content !important;min-width:32em !important;max-width:46em !important}.centeredMenu{position:fixed;top:-10%;left:10%;right:10%;width:80%;height:80%;z-index:2;background-color:rgba(0,0,0,.5);-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px)}',""]);const r=a},3645:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=e(t);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,o){"string"==typeof e&&(e=[[null,e,""]]);var a={};if(o)for(var r=0;r{t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let o=0,a=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(o++,"%c"===e&&(a=o))})),t.splice(a,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e},t.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=n(2447)(t);const{formatters:o}=e.exports;o.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},2447:(e,t,n)=>{e.exports=function(e){function t(e){let n,a,r,s=null;function i(...e){if(!i.enabled)return;const o=i,a=Number(new Date),r=a-(n||a);o.diff=r,o.prev=n,o.curr=a,n=a,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let s=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((n,a)=>{if("%%"===n)return"%";s++;const r=t.formatters[a];if("function"==typeof r){const t=e[s];n=r.call(o,t),e.splice(s,1),s--}return n})),t.formatArgs.call(o,e),(o.log||t.log).apply(o,e)}return i.namespace=e,i.useColors=t.useColors(),i.color=t.selectColor(e),i.extend=o,i.destroy=t.destroy,Object.defineProperty(i,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==s?s:(a!==t.namespaces&&(a=t.namespaces,r=t.enabled(e)),r),set:e=>{s=e}}),"function"==typeof t.init&&t.init(i),i}function o(e,n){const o=t(this.namespace+(void 0===n?":":n)+e);return o.log=this.log,o}function a(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){const e=[...t.names.map(a),...t.skips.map(a).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){let n;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const o=("string"==typeof e?e:"").split(/[\s,]+/),a=o.length;for(n=0;n{t[n]=e[n]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t{var t=1e3,n=60*t,o=60*n,a=24*o;function r(e,t,n,o){var a=t>=1.5*n;return Math.round(e/n)+" "+o+(a?"s":"")}e.exports=function(e,s){s=s||{};var i,l,c=typeof e;if("string"===c&&e.length>0)return function(e){if(!((e=String(e)).length>100)){var r=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(r){var s=parseFloat(r[1]);switch((r[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*s;case"weeks":case"week":case"w":return 6048e5*s;case"days":case"day":case"d":return s*a;case"hours":case"hour":case"hrs":case"hr":case"h":return s*o;case"minutes":case"minute":case"mins":case"min":case"m":return s*n;case"seconds":case"second":case"secs":case"sec":case"s":return s*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return s;default:return}}}}(e);if("number"===c&&isFinite(e))return s.long?(i=e,(l=Math.abs(i))>=a?r(i,l,a,"day"):l>=o?r(i,l,o,"hour"):l>=n?r(i,l,n,"minute"):l>=t?r(i,l,t,"second"):i+" ms"):function(e){var r=Math.abs(e);return r>=a?Math.round(e/a)+"d":r>=o?Math.round(e/o)+"h":r>=n?Math.round(e/n)+"m":r>=t?Math.round(e/t)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},158:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var o=n(3379),a=n.n(o),r=n(450);a()(r.Z,{insert:"head",singleton:!1});const s=r.Z.locals||{}},3379:(e,t,n)=>{"use strict";var o,a=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),r=[];function s(e){for(var t=-1,n=0;n(t=parseInt(t.getAttribute("tabindex")))?1:e1&&void 0!==arguments[1]?arguments[1]:"flex";e.style.display=t},ue=function(e){e.style.display="none"},de=function(e,t,n,o){var a=e.querySelector(t);a&&(a.style[n]=o)},pe=function(e,t,n){t?ce(e,n):ue(e)},he=function(e){return!(!e||!(e.offsetWidth||e.offsetHeight||e.getClientRects().length))},fe=function(e){return!!(e.scrollHeight>e.clientHeight)},me=function(e){var t=window.getComputedStyle(e),n=parseFloat(t.getPropertyValue("animation-duration")||"0"),o=parseFloat(t.getPropertyValue("transition-duration")||"0");return n>0||o>0},ge=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=G();he(n)&&(t&&(n.style.transition="none",n.style.width="100%"),setTimeout((function(){n.style.transition="width ".concat(e/1e3,"s linear"),n.style.width="0%"}),10))},ye=function(){return"undefined"==typeof window||"undefined"==typeof document},we='\n \n').replace(/(^|\n)\s*/g,""),be=function(e){Hn.isVisible()&&ne!==e.target.value&&Hn.resetValidationMessage(),ne=e.target.value},ve=function(e){var t,n,o,a,r,s,i,l,c,u,d=!!(t=A())&&(t.parentNode.removeChild(t),se([document.documentElement,document.body],[S["no-backdrop"],S["toast-shown"],S["has-column"]]),!0);if(ye())g("SweetAlert2 requires document to initialize");else{var p=document.createElement("div");p.className=S.container,d&&re(p,S["no-transition"]),Z(p,we);var h="string"==typeof(u=e.target)?document.querySelector(u):u;h.appendChild(p),function(e){var t=B();t.setAttribute("role",e.toast?"alert":"dialog"),t.setAttribute("aria-live",e.toast?"polite":"assertive"),e.toast||t.setAttribute("aria-modal","true")}(e),function(e){"rtl"===window.getComputedStyle(e).direction&&re(A(),S.rtl)}(h),n=R(),o=ie(n,S.input),a=ie(n,S.file),r=n.querySelector(".".concat(S.range," input")),s=n.querySelector(".".concat(S.range," output")),i=ie(n,S.select),l=n.querySelector(".".concat(S.checkbox," input")),c=ie(n,S.textarea),o.oninput=be,a.onchange=be,i.onchange=be,l.onchange=be,c.oninput=be,r.oninput=function(e){be(e),s.value=r.value},r.onchange=function(e){be(e),r.nextSibling.value=r.value}}},_e=function(t,n){t instanceof HTMLElement?n.appendChild(t):"object"===e(t)?ke(t,n):t&&Z(n,t)},ke=function(e,t){e.jquery?Ce(t,e):Z(t,e.toString())},Ce=function(e,t){if(e.textContent="",0 in t)for(var n=0;n in t;n++)e.appendChild(t[n].cloneNode(!0));else e.appendChild(t.cloneNode(!0))},xe=function(){if(ye())return!1;var e=document.createElement("div"),t={WebkitAnimation:"webkitAnimationEnd",OAnimation:"oAnimationEnd oanimationend",animation:"animationend"};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&void 0!==e.style[n])return t[n];return!1}(),Ee=function(e,t){var n=Y(),o=q(),a=H(),r=F(),s=U();t.showConfirmButton||t.showDenyButton||t.showCancelButton||ue(n),ee(n,t,"actions"),Se(a,"confirm",t),Se(r,"deny",t),Se(s,"cancel",t),function(e,t,n,o){if(!o.buttonsStyling)return se([e,t,n],S.styled);re([e,t,n],S.styled),o.confirmButtonColor&&(e.style.backgroundColor=o.confirmButtonColor),o.denyButtonColor&&(t.style.backgroundColor=o.denyButtonColor),o.cancelButtonColor&&(n.style.backgroundColor=o.cancelButtonColor)}(a,r,s,t),t.reverseButtons&&(n.insertBefore(s,o),n.insertBefore(r,o),n.insertBefore(a,o)),Z(o,t.loaderHtml),ee(o,t,"loader")};function Se(e,t,n){pe(e,n["show".concat(p(t),"Button")],"inline-block"),Z(e,n["".concat(t,"ButtonText")]),e.setAttribute("aria-label",n["".concat(t,"ButtonAriaLabel")]),e.className=S[t],ee(e,n,"".concat(t,"Button")),re(e,n["".concat(t,"ButtonClass")])}var Te=function(e,t){var n=A();if(n){(function(e,t){"string"==typeof t?e.style.background=t:t||re([document.documentElement,document.body],S["no-backdrop"])})(n,t.backdrop),!t.backdrop&&t.allowOutsideClick&&m('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`'),function(e,t){t in S?re(e,S[t]):(m('The "position" parameter is not valid, defaulting to "center"'),re(e,S.center))}(n,t.position),function(e,t){if(t&&"string"==typeof t){var n="grow-".concat(t);n in S&&re(e,S[n])}}(n,t.grow),ee(n,t,"container");var o=document.body.getAttribute("data-swal2-queue-step");o&&(n.setAttribute("data-queue-step",o),document.body.removeAttribute("data-swal2-queue-step"))}},Ae={promise:new WeakMap,innerParams:new WeakMap,domCache:new WeakMap},Pe=["input","file","range","select","radio","checkbox","textarea"],De=function(e){if(!Ne[e.input])return g('Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "'.concat(e.input,'"'));var t=Me(e.input),n=Ne[e.input](t,e);ce(n),setTimeout((function(){oe(n)}))},Be=function(e,t){var n=te(R(),e);if(n)for(var o in function(e){for(var t=0;to?"".concat(t,"px"):null})).observe(e,{attributes:!0,attributeFilter:["style"]})}return e};var Le=function(e,t){var n=M();ee(n,t,"htmlContainer"),t.html?(_e(t.html,n),ce(n,"block")):t.text?(n.textContent=t.text,ce(n,"block")):ue(n),function(e,t){var n=R(),o=Ae.innerParams.get(e),a=!o||t.input!==o.input;Pe.forEach((function(e){var o=S[e],r=ie(n,o);Be(e,t.inputAttributes),r.className=o,a&&ue(r)})),t.input&&(a&&De(t),Ie(t))}(e,t),ee(R(),t,"content")},je=function(e,t){for(var n in T)t.icon!==n&&se(e,T[n]);re(e,T[t.icon]),qe(e,t),He(),ee(e,t,"icon")},He=function(){for(var e=B(),t=window.getComputedStyle(e).getPropertyValue("background-color"),n=e.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix"),o=0;o\n \n \n \n '):"error"===t.icon?Z(e,'\n \n \n \n \n '):Z(e,Ue({question:"?",warning:"!",info:"i"}[t.icon]))},qe=function(e,t){if(t.iconColor){e.style.color=t.iconColor,e.style.borderColor=t.iconColor;for(var n=0,o=[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"];n').concat(e,"")},Ye=[],Ve=function(){return A()&&A().getAttribute("data-queue-step")},ze=function(e,t){var n=L();if(!t.progressSteps||0===t.progressSteps.length)return ue(n);ce(n),n.textContent="";var o=parseInt(void 0===t.currentProgressStep?Ve():t.currentProgressStep);o>=t.progressSteps.length&&m("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),t.progressSteps.forEach((function(e,a){var r=function(e){var t=document.createElement("li");return re(t,S["progress-step"]),Z(t,e),t}(e);if(n.appendChild(r),a===o&&re(r,S["active-progress-step"]),a!==t.progressSteps.length-1){var s=function(e){var t=document.createElement("li");return re(t,S["progress-step-line"]),e.progressStepsDistance&&(t.style.width=e.progressStepsDistance),t}(t);n.appendChild(s)}}))},Ge=function(e,t){var n=V();ee(n,t,"header"),ze(0,t),function(e,t){var n=Ae.innerParams.get(e),o=I();n&&t.icon===n.icon?(Fe(o,t),je(o,t)):t.icon||t.iconHtml?t.icon&&-1===Object.keys(T).indexOf(t.icon)?(g('Unknown icon! Expected "success", "error", "warning", "info" or "question", got "'.concat(t.icon,'"')),ue(o)):(ce(o),Fe(o,t),je(o,t),re(o,t.showClass.icon)):ue(o)}(e,t),function(e,t){var n=N();if(!t.imageUrl)return ue(n);ce(n,""),n.setAttribute("src",t.imageUrl),n.setAttribute("alt",t.imageAlt),le(n,"width",t.imageWidth),le(n,"height",t.imageHeight),n.className=S.image,ee(n,t,"image")}(0,t),function(e,t){var n=O();pe(n,t.title||t.titleText,"block"),t.title&&_e(t.title,n),t.titleText&&(n.innerText=t.titleText),ee(n,t,"title")}(0,t),function(e,t){var n=W();Z(n,t.closeButtonHtml),ee(n,t,"closeButton"),pe(n,t.showCloseButton),n.setAttribute("aria-label",t.closeButtonAriaLabel)}(0,t)},We=function(e,t){e.className="".concat(S.popup," ").concat(he(e)?t.showClass.popup:""),t.toast?(re([document.documentElement,document.body],S["toast-shown"]),re(e,S.toast)):re(e,S.modal),ee(e,t,"popup"),"string"==typeof t.customClass&&re(e,t.customClass),t.icon&&re(e,S["icon-".concat(t.icon)])},Ke=function(e,t){(function(e,t){var n=A(),o=B();t.toast?(le(n,"width",t.width),o.style.width="100%"):le(o,"width",t.width),le(o,"padding",t.padding),t.background&&(o.style.background=t.background),ue(j()),We(o,t)})(0,t),Te(0,t),Ge(e,t),Le(e,t),Ee(0,t),function(e,t){var n=z();pe(n,t.footer),t.footer&&_e(t.footer,n),ee(n,t,"footer")}(0,t),"function"==typeof t.didRender?t.didRender(B()):"function"==typeof t.onRender&&t.onRender(B())},$e=function(){return H()&&H().click()};var Je=function(e){var t=B();t||Hn.fire(),t=B();var n=Y(),o=q();!e&&he(H())&&(e=H()),ce(n),e&&(ue(e),o.setAttribute("data-button-to-replace",e.className)),o.parentNode.insertBefore(o,e),re([t,n],S.loading),ce(o),t.setAttribute("data-loading",!0),t.setAttribute("aria-busy",!0),t.focus()},Xe={},Ze=function(e){return new Promise((function(t){if(!e)return t();var n=window.scrollX,o=window.scrollY;Xe.restoreFocusTimeout=setTimeout((function(){Xe.previousActiveElement&&Xe.previousActiveElement.focus?(Xe.previousActiveElement.focus(),Xe.previousActiveElement=null):document.body&&document.body.focus(),t()}),100),void 0!==n&&void 0!==o&&window.scrollTo(n,o)}))},Qe=function(){if(Xe.timeout)return function(){var e=G(),t=parseInt(window.getComputedStyle(e).width);e.style.removeProperty("transition"),e.style.width="100%";var n=parseInt(window.getComputedStyle(e).width),o=parseInt(t/n*100);e.style.removeProperty("transition"),e.style.width="".concat(o,"%")}(),Xe.timeout.stop()},et=function(){if(Xe.timeout){var e=Xe.timeout.start();return ge(e),e}},tt=!1,nt={};var ot=function(e){for(var t=e.target;t&&t!==document;t=t.parentNode)for(var n in nt){var o=t.getAttribute(n);if(o)return void nt[n].fire({template:o})}},at={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,animation:!0,showClass:{popup:"swal2-show",backdrop:"swal2-backdrop-show",icon:"swal2-icon-show"},hideClass:{popup:"swal2-hide",backdrop:"swal2-backdrop-hide",icon:"swal2-icon-hide"},customClass:{},target:"body",backdrop:!0,heightAuto:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,stopKeydownPropagation:!0,keydownListenerCapture:!1,showConfirmButton:!0,showDenyButton:!1,showCancelButton:!1,preConfirm:void 0,preDeny:void 0,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:void 0,denyButtonText:"No",denyButtonAriaLabel:"",denyButtonColor:void 0,cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:void 0,buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusDeny:!1,focusCancel:!1,returnFocus:!0,showCloseButton:!1,closeButtonHtml:"×",closeButtonAriaLabel:"Close this dialog",loaderHtml:"",showLoaderOnConfirm:!1,showLoaderOnDeny:!1,imageUrl:void 0,imageWidth:void 0,imageHeight:void 0,imageAlt:"",timer:void 0,timerProgressBar:!1,width:void 0,padding:void 0,background:void 0,input:void 0,inputPlaceholder:"",inputLabel:"",inputValue:"",inputOptions:{},inputAutoTrim:!0,inputAttributes:{},inputValidator:void 0,returnInputValueOnDeny:!1,validationMessage:void 0,grow:!1,position:"center",progressSteps:[],currentProgressStep:void 0,progressStepsDistance:void 0,onBeforeOpen:void 0,onOpen:void 0,willOpen:void 0,didOpen:void 0,onRender:void 0,didRender:void 0,onClose:void 0,onAfterClose:void 0,willClose:void 0,didClose:void 0,onDestroy:void 0,didDestroy:void 0,scrollbarPadding:!0},rt=["allowEscapeKey","allowOutsideClick","background","buttonsStyling","cancelButtonAriaLabel","cancelButtonColor","cancelButtonText","closeButtonAriaLabel","closeButtonHtml","confirmButtonAriaLabel","confirmButtonColor","confirmButtonText","currentProgressStep","customClass","denyButtonAriaLabel","denyButtonColor","denyButtonText","didClose","didDestroy","footer","hideClass","html","icon","iconColor","iconHtml","imageAlt","imageHeight","imageUrl","imageWidth","onAfterClose","onClose","onDestroy","progressSteps","returnFocus","reverseButtons","showCancelButton","showCloseButton","showConfirmButton","showDenyButton","text","title","titleText","willClose"],st={animation:'showClass" and "hideClass',onBeforeOpen:"willOpen",onOpen:"didOpen",onRender:"didRender",onClose:"willClose",onAfterClose:"didClose",onDestroy:"didDestroy"},it=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],lt=function(e){return Object.prototype.hasOwnProperty.call(at,e)},ct=function(e){return st[e]},ut=function(e){lt(e)||m('Unknown parameter "'.concat(e,'"'))},dt=function(e){-1!==it.indexOf(e)&&m('The parameter "'.concat(e,'" is incompatible with toasts'))},pt=function(e){ct(e)&&w(e,ct(e))},ht=function(e){for(var t in e)ut(t),e.toast&&dt(t),pt(t)},ft=Object.freeze({isValidParameter:lt,isUpdatableParameter:function(e){return-1!==rt.indexOf(e)},isDeprecatedParameter:ct,argsToParams:function(t){var n={};return"object"!==e(t[0])||x(t[0])?["title","html","icon"].forEach((function(o,a){var r=t[a];"string"==typeof r||x(r)?n[o]=r:void 0!==r&&g("Unexpected type of ".concat(o,'! Expected "string" or "Element", got ').concat(e(r)))})):a(n,t[0]),n},isVisible:function(){return he(B())},clickConfirm:$e,clickDeny:function(){return F()&&F().click()},clickCancel:function(){return U()&&U().click()},getContainer:A,getPopup:B,getTitle:O,getContent:R,getHtmlContainer:M,getImage:N,getIcon:I,getInputLabel:function(){return D(S["input-label"])},getCloseButton:W,getActions:Y,getConfirmButton:H,getDenyButton:F,getCancelButton:U,getLoader:q,getHeader:V,getFooter:z,getTimerProgressBar:G,getFocusableElements:K,getValidationMessage:j,isLoading:function(){return B().hasAttribute("data-loading")},fire:function(){for(var e=this,t=arguments.length,n=new Array(t),o=0;o0&&void 0!==arguments[0]?arguments[0]:"data-swal-template"]=this,tt||(document.body.addEventListener("click",ot),tt=!0)}});function mt(){if(Ae.innerParams.get(this)){var e=Ae.domCache.get(this);ue(e.loader);var t=e.popup.getElementsByClassName(e.loader.getAttribute("data-button-to-replace"));t.length?ce(t[0],"inline-block"):!he(H())&&!he(F())&&!he(U())&&ue(e.actions),se([e.popup,e.actions],S.loading),e.popup.removeAttribute("aria-busy"),e.popup.removeAttribute("data-loading"),e.confirmButton.disabled=!1,e.denyButton.disabled=!1,e.cancelButton.disabled=!1}}var gt=function(){null===X.previousBodyPadding&&document.body.scrollHeight>window.innerHeight&&(X.previousBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight="".concat(X.previousBodyPadding+function(){var e=document.createElement("div");e.className=S["scrollbar-measure"],document.body.appendChild(e);var t=e.getBoundingClientRect().width-e.clientWidth;return document.body.removeChild(e),t}(),"px"))},yt=function(){if(!navigator.userAgent.match(/(CriOS|FxiOS|EdgiOS|YaBrowser|UCBrowser)/i)){B().scrollHeight>window.innerHeight-44&&(A().style.paddingBottom="".concat(44,"px"))}},wt=function(){var e,t=A();t.ontouchstart=function(t){e=bt(t)},t.ontouchmove=function(t){e&&(t.preventDefault(),t.stopPropagation())}},bt=function(e){var t=e.target,n=A();return!(vt(e)||_t(e)||t!==n&&(fe(n)||"INPUT"===t.tagName||fe(R())&&R().contains(t)))},vt=function(e){return e.touches&&e.touches.length&&"stylus"===e.touches[0].touchType},_t=function(e){return e.touches&&e.touches.length>1},kt=function(){return!!window.MSInputMethodContext&&!!document.documentMode},Ct=function(){var e=A(),t=B();e.style.removeProperty("align-items"),t.offsetTop<0&&(e.style.alignItems="flex-start")},xt={swalPromiseResolve:new WeakMap};function Et(e,t,n,o){J()?Bt(e,o):(Ze(n).then((function(){return Bt(e,o)})),Xe.keydownTarget.removeEventListener("keydown",Xe.keydownHandler,{capture:Xe.keydownListenerCapture}),Xe.keydownHandlerAdded=!1),t.parentNode&&!document.body.getAttribute("data-swal2-queue-step")&&t.parentNode.removeChild(t),$()&&(null!==X.previousBodyPadding&&(document.body.style.paddingRight="".concat(X.previousBodyPadding,"px"),X.previousBodyPadding=null),function(){if(Q(document.body,S.iosfix)){var e=parseInt(document.body.style.top,10);se(document.body,S.iosfix),document.body.style.top="",document.body.scrollTop=-1*e}}(),"undefined"!=typeof window&&kt()&&window.removeEventListener("resize",Ct),f(document.body.children).forEach((function(e){e.hasAttribute("data-previous-aria-hidden")?(e.setAttribute("aria-hidden",e.getAttribute("data-previous-aria-hidden")),e.removeAttribute("data-previous-aria-hidden")):e.removeAttribute("aria-hidden")}))),se([document.documentElement,document.body],[S.shown,S["height-auto"],S["no-backdrop"],S["toast-shown"]])}function St(e){var t=B();if(t){e=Tt(e);var n=Ae.innerParams.get(this);if(n&&!Q(t,n.hideClass.popup)){var o=xt.swalPromiseResolve.get(this);se(t,n.showClass.popup),re(t,n.hideClass.popup);var a=A();se(a,n.showClass.backdrop),re(a,n.hideClass.backdrop),At(this,t,n),o(e)}}}var Tt=function(e){return void 0===e?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:a({isConfirmed:!1,isDenied:!1,isDismissed:!1},e)},At=function(e,t,n){var o=A(),a=xe&&me(t),r=n.onClose,s=n.onAfterClose,i=n.willClose,l=n.didClose;Pt(t,i,r),a?Dt(e,t,o,n.returnFocus,l||s):Et(e,o,n.returnFocus,l||s)},Pt=function(e,t,n){null!==t&&"function"==typeof t?t(e):null!==n&&"function"==typeof n&&n(e)},Dt=function(e,t,n,o,a){Xe.swalCloseEventFinishedCallback=Et.bind(null,e,n,o,a),t.addEventListener(xe,(function(e){e.target===t&&(Xe.swalCloseEventFinishedCallback(),delete Xe.swalCloseEventFinishedCallback)}))},Bt=function(e,t){setTimeout((function(){"function"==typeof t&&t(),e._destroy()}))};function It(e,t,n){var o=Ae.domCache.get(e);t.forEach((function(e){o[e].disabled=n}))}function Ot(e,t){if(!e)return!1;if("radio"===e.type)for(var n=e.parentNode.parentNode.querySelectorAll("input"),o=0;o")),ve(e)}var Lt=["swal-title","swal-html","swal-footer"],jt=function(t){var n={};return f(t.querySelectorAll("swal-param")).forEach((function(t){zt(t,["name","value"]);var o=t.getAttribute("name"),a=t.getAttribute("value");"boolean"==typeof at[o]&&"false"===a&&(a=!1),"object"===e(at[o])&&(a=JSON.parse(a)),n[o]=a})),n},Ht=function(e){var t={};return f(e.querySelectorAll("swal-button")).forEach((function(e){zt(e,["type","color","aria-label"]);var n=e.getAttribute("type");t["".concat(n,"ButtonText")]=e.innerHTML,t["show".concat(p(n),"Button")]=!0,e.hasAttribute("color")&&(t["".concat(n,"ButtonColor")]=e.getAttribute("color")),e.hasAttribute("aria-label")&&(t["".concat(n,"ButtonAriaLabel")]=e.getAttribute("aria-label"))})),t},Ft=function(e){var t={},n=e.querySelector("swal-image");return n&&(zt(n,["src","width","height","alt"]),n.hasAttribute("src")&&(t.imageUrl=n.getAttribute("src")),n.hasAttribute("width")&&(t.imageWidth=n.getAttribute("width")),n.hasAttribute("height")&&(t.imageHeight=n.getAttribute("height")),n.hasAttribute("alt")&&(t.imageAlt=n.getAttribute("alt"))),t},qt=function(e){var t={},n=e.querySelector("swal-icon");return n&&(zt(n,["type","color"]),n.hasAttribute("type")&&(t.icon=n.getAttribute("type")),n.hasAttribute("color")&&(t.iconColor=n.getAttribute("color")),t.iconHtml=n.innerHTML),t},Ut=function(e){var t={},n=e.querySelector("swal-input");n&&(zt(n,["type","label","placeholder","value"]),t.input=n.getAttribute("type")||"text",n.hasAttribute("label")&&(t.inputLabel=n.getAttribute("label")),n.hasAttribute("placeholder")&&(t.inputPlaceholder=n.getAttribute("placeholder")),n.hasAttribute("value")&&(t.inputValue=n.getAttribute("value")));var o=e.querySelectorAll("swal-input-option");return o.length&&(t.inputOptions={},f(o).forEach((function(e){zt(e,["value"]);var n=e.getAttribute("value"),o=e.innerHTML;t.inputOptions[n]=o}))),t},Yt=function(e,t){var n={};for(var o in t){var a=t[o],r=e.querySelector(a);r&&(zt(r,[]),n[a.replace(/^swal-/,"")]=r.innerHTML.trim())}return n},Vt=function(e){var t=Lt.concat(["swal-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);f(e.querySelectorAll("*")).forEach((function(n){if(n.parentNode===e){var o=n.tagName.toLowerCase();-1===t.indexOf(o)&&m("Unrecognized element <".concat(o,">"))}}))},zt=function(e,t){f(e.attributes).forEach((function(n){-1===t.indexOf(n.name)&&m(['Unrecognized attribute "'.concat(n.name,'" on <').concat(e.tagName.toLowerCase(),">."),"".concat(t.length?"Allowed attributes are: ".concat(t.join(", ")):"To set the value, use HTML within the element.")])}))},Gt=function(e){var t=A(),n=B();"function"==typeof e.willOpen?e.willOpen(n):"function"==typeof e.onBeforeOpen&&e.onBeforeOpen(n);var o=window.getComputedStyle(document.body).overflowY;Xt(t,n,e),setTimeout((function(){$t(t,n)}),10),$()&&(Jt(t,e.scrollbarPadding,o),f(document.body.children).forEach((function(e){e===A()||function(e,t){if("function"==typeof e.contains)return e.contains(t)}(e,A())||(e.hasAttribute("aria-hidden")&&e.setAttribute("data-previous-aria-hidden",e.getAttribute("aria-hidden")),e.setAttribute("aria-hidden","true"))}))),J()||Xe.previousActiveElement||(Xe.previousActiveElement=document.activeElement),Wt(n,e),se(t,S["no-transition"])},Wt=function(e,t){"function"==typeof t.didOpen?setTimeout((function(){return t.didOpen(e)})):"function"==typeof t.onOpen&&setTimeout((function(){return t.onOpen(e)}))},Kt=function e(t){var n=B();if(t.target===n){var o=A();n.removeEventListener(xe,e),o.style.overflowY="auto"}},$t=function(e,t){xe&&me(t)?(e.style.overflowY="hidden",t.addEventListener(xe,Kt)):e.style.overflowY="auto"},Jt=function(e,t,n){(function(){if((/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)&&!Q(document.body,S.iosfix)){var e=document.body.scrollTop;document.body.style.top="".concat(-1*e,"px"),re(document.body,S.iosfix),wt(),yt()}})(),"undefined"!=typeof window&&kt()&&(Ct(),window.addEventListener("resize",Ct)),t&&"hidden"!==n&>(),setTimeout((function(){e.scrollTop=0}))},Xt=function(e,t,n){re(e,n.showClass.backdrop),t.style.setProperty("opacity","0","important"),ce(t),setTimeout((function(){re(t,n.showClass.popup),t.style.removeProperty("opacity")}),10),re([document.documentElement,document.body],S.shown),n.heightAuto&&n.backdrop&&!n.toast&&re([document.documentElement,document.body],S["height-auto"])},Zt=function(e){return e.checked?1:0},Qt=function(e){return e.checked?e.value:null},en=function(e){return e.files.length?null!==e.getAttribute("multiple")?e.files:e.files[0]:null},tn=function(t,n){var o=R(),a=function(e){return on[n.input](o,an(e),n)};v(n.inputOptions)||k(n.inputOptions)?(Je(H()),_(n.inputOptions).then((function(e){t.hideLoading(),a(e)}))):"object"===e(n.inputOptions)?a(n.inputOptions):g("Unexpected type of inputOptions! Expected object, Map or Promise, got ".concat(e(n.inputOptions)))},nn=function(e,t){var n=e.getInput();ue(n),_(t.inputValue).then((function(o){n.value="number"===t.input?parseFloat(o)||0:"".concat(o),ce(n),n.focus(),e.hideLoading()})).catch((function(t){g("Error in inputValue promise: ".concat(t)),n.value="",ce(n),n.focus(),e.hideLoading()}))},on={select:function(e,t,n){var o=ie(e,S.select),a=function(e,t,o){var a=document.createElement("option");a.value=o,Z(a,t),a.selected=rn(o,n.inputValue),e.appendChild(a)};t.forEach((function(e){var t=e[0],n=e[1];if(Array.isArray(n)){var r=document.createElement("optgroup");r.label=t,r.disabled=!1,o.appendChild(r),n.forEach((function(e){return a(r,e[1],e[0])}))}else a(o,n,t)})),o.focus()},radio:function(e,t,n){var o=ie(e,S.radio);t.forEach((function(e){var t=e[0],a=e[1],r=document.createElement("input"),s=document.createElement("label");r.type="radio",r.name=S.radio,r.value=t,rn(t,n.inputValue)&&(r.checked=!0);var i=document.createElement("span");Z(i,a),i.className=S.label,s.appendChild(r),s.appendChild(i),o.appendChild(s)}));var a=o.querySelectorAll("input");a.length&&a[0].focus()}},an=function t(n){var o=[];return"undefined"!=typeof Map&&n instanceof Map?n.forEach((function(n,a){var r=n;"object"===e(r)&&(r=t(r)),o.push([a,r])})):Object.keys(n).forEach((function(a){var r=n[a];"object"===e(r)&&(r=t(r)),o.push([a,r])})),o},rn=function(e,t){return t&&t.toString()===e.toString()},sn=function(e,t,n){var o=function(e,t){var n=e.getInput();if(!n)return null;switch(t.input){case"checkbox":return Zt(n);case"radio":return Qt(n);case"file":return en(n);default:return t.inputAutoTrim?n.value.trim():n.value}}(e,t);t.inputValidator?ln(e,t,o):e.getInput().checkValidity()?"deny"===n?cn(e,t,o):dn(e,t,o):(e.enableButtons(),e.showValidationMessage(t.validationMessage))},ln=function(e,t,n){e.disableInput(),Promise.resolve().then((function(){return _(t.inputValidator(n,t.validationMessage))})).then((function(o){e.enableButtons(),e.enableInput(),o?e.showValidationMessage(o):dn(e,t,n)}))},cn=function(e,t,n){t.showLoaderOnDeny&&Je(F()),t.preDeny?Promise.resolve().then((function(){return _(t.preDeny(n,t.validationMessage))})).then((function(t){!1===t?e.hideLoading():e.closePopup({isDenied:!0,value:void 0===t?n:t})})):e.closePopup({isDenied:!0,value:n})},un=function(e,t){e.closePopup({isConfirmed:!0,value:t})},dn=function(e,t,n){t.showLoaderOnConfirm&&Je(),t.preConfirm?(e.resetValidationMessage(),Promise.resolve().then((function(){return _(t.preConfirm(n,t.validationMessage))})).then((function(t){he(j())||!1===t?e.hideLoading():un(e,void 0===t?n:t)}))):un(e,n)},pn=function(e,t,n){var o=K();if(o.length)return(t+=n)===o.length?t=0:-1===t&&(t=o.length-1),o[t].focus();B().focus()},hn=["ArrowRight","ArrowDown","Right","Down"],fn=["ArrowLeft","ArrowUp","Left","Up"],mn=["Escape","Esc"],gn=function(e,t,n){var o=Ae.innerParams.get(e);o&&(o.stopKeydownPropagation&&t.stopPropagation(),"Enter"===t.key?yn(e,t,o):"Tab"===t.key?wn(t,o):-1!==[].concat(hn,fn).indexOf(t.key)?bn(t.key):-1!==mn.indexOf(t.key)&&vn(t,o,n))},yn=function(e,t,n){if(!t.isComposing&&t.target&&e.getInput()&&t.target.outerHTML===e.getInput().outerHTML){if(-1!==["textarea","file"].indexOf(n.input))return;$e(),t.preventDefault()}},wn=function(e,t){for(var n=e.target,o=K(),a=-1,r=0;r1&&void 0!==arguments[1]?arguments[1]:{};ht(a({},t,e)),Xe.currentInstance&&Xe.currentInstance._destroy(),Xe.currentInstance=this;var n=Sn(e,t);Nt(n),Object.freeze(n),Xe.timeout&&(Xe.timeout.stop(),delete Xe.timeout),clearTimeout(Xe.restoreFocusTimeout);var o=An(this);return Ke(this,n),Ae.innerParams.set(this,n),Tn(this,o,n)},update:function(e){var t=B(),n=Ae.innerParams.get(this);if(!t||Q(t,n.hideClass.popup))return m("You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.");var o={};Object.keys(e).forEach((function(t){Hn.isUpdatableParameter(t)?o[t]=e[t]:m('Invalid parameter to update: "'.concat(t,'". Updatable params are listed here: https://github.com/sweetalert2/sweetalert2/blob/master/src/utils/params.js\n\nIf you think this parameter should be updatable, request it here: https://github.com/sweetalert2/sweetalert2/issues/new?template=02_feature_request.md'))}));var r=a({},n,o);Ke(this,r),Ae.innerParams.set(this,r),Object.defineProperties(this,{params:{value:a({},this.params,e),writable:!1,enumerable:!0}})},_destroy:function(){var e=Ae.domCache.get(this),t=Ae.innerParams.get(this);t&&(e.popup&&Xe.swalCloseEventFinishedCallback&&(Xe.swalCloseEventFinishedCallback(),delete Xe.swalCloseEventFinishedCallback),Xe.deferDisposalTimer&&(clearTimeout(Xe.deferDisposalTimer),delete Xe.deferDisposalTimer),Rn(t),Mn(this))}}),jn=function(){function e(){if(t(this,e),"undefined"!=typeof window){"undefined"==typeof Promise&&g("This package requires a Promise library, please include a shim to enable it in this browser (See: https://github.com/sweetalert2/sweetalert2/wiki/Migration-from-SweetAlert-to-SweetAlert2#1-ie-support)"),On=this;for(var n=arguments.length,o=new Array(n),a=0;a:first-child,.swal2-container.swal2-bottom-left>:first-child,.swal2-container.swal2-bottom-right>:first-child,.swal2-container.swal2-bottom-start>:first-child,.swal2-container.swal2-bottom>:first-child{margin-top:auto}.swal2-container.swal2-grow-fullscreen>.swal2-modal{display:flex!important;flex:1;align-self:stretch;justify-content:center}.swal2-container.swal2-grow-row>.swal2-modal{display:flex!important;flex:1;align-content:center;justify-content:center}.swal2-container.swal2-grow-column{flex:1;flex-direction:column}.swal2-container.swal2-grow-column.swal2-bottom,.swal2-container.swal2-grow-column.swal2-center,.swal2-container.swal2-grow-column.swal2-top{align-items:center}.swal2-container.swal2-grow-column.swal2-bottom-left,.swal2-container.swal2-grow-column.swal2-bottom-start,.swal2-container.swal2-grow-column.swal2-center-left,.swal2-container.swal2-grow-column.swal2-center-start,.swal2-container.swal2-grow-column.swal2-top-left,.swal2-container.swal2-grow-column.swal2-top-start{align-items:flex-start}.swal2-container.swal2-grow-column.swal2-bottom-end,.swal2-container.swal2-grow-column.swal2-bottom-right,.swal2-container.swal2-grow-column.swal2-center-end,.swal2-container.swal2-grow-column.swal2-center-right,.swal2-container.swal2-grow-column.swal2-top-end,.swal2-container.swal2-grow-column.swal2-top-right{align-items:flex-end}.swal2-container.swal2-grow-column>.swal2-modal{display:flex!important;flex:1;align-content:center;justify-content:center}.swal2-container.swal2-no-transition{transition:none!important}.swal2-container:not(.swal2-top):not(.swal2-top-start):not(.swal2-top-end):not(.swal2-top-left):not(.swal2-top-right):not(.swal2-center-start):not(.swal2-center-end):not(.swal2-center-left):not(.swal2-center-right):not(.swal2-bottom):not(.swal2-bottom-start):not(.swal2-bottom-end):not(.swal2-bottom-left):not(.swal2-bottom-right):not(.swal2-grow-fullscreen)>.swal2-modal{margin:auto}@media all and (-ms-high-contrast:none),(-ms-high-contrast:active){.swal2-container .swal2-modal{margin:0!important}}.swal2-popup{display:none;position:relative;box-sizing:border-box;flex-direction:column;justify-content:center;width:32em;max-width:100%;padding:1.25em;border:none;border-radius:5px;background:#fff;font-family:inherit;font-size:1rem}.swal2-popup:focus{outline:0}.swal2-popup.swal2-loading{overflow-y:hidden}.swal2-header{display:flex;flex-direction:column;align-items:center;padding:0 1.8em}.swal2-title{position:relative;max-width:100%;margin:0 0 .4em;padding:0;color:#595959;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;word-wrap:break-word}.swal2-actions{display:flex;z-index:1;box-sizing:border-box;flex-wrap:wrap;align-items:center;justify-content:center;width:100%;margin:1.25em auto 0;padding:0}.swal2-actions:not(.swal2-loading) .swal2-styled[disabled]{opacity:.4}.swal2-actions:not(.swal2-loading) .swal2-styled:hover{background-image:linear-gradient(rgba(0,0,0,.1),rgba(0,0,0,.1))}.swal2-actions:not(.swal2-loading) .swal2-styled:active{background-image:linear-gradient(rgba(0,0,0,.2),rgba(0,0,0,.2))}.swal2-loader{display:none;align-items:center;justify-content:center;width:2.2em;height:2.2em;margin:0 1.875em;-webkit-animation:swal2-rotate-loading 1.5s linear 0s infinite normal;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border-width:.25em;border-style:solid;border-radius:100%;border-color:#2778c4 transparent #2778c4 transparent}.swal2-styled{margin:.3125em;padding:.625em 1.1em;box-shadow:none;font-weight:500}.swal2-styled:not([disabled]){cursor:pointer}.swal2-styled.swal2-confirm{border:0;border-radius:.25em;background:initial;background-color:#2778c4;color:#fff;font-size:1em}.swal2-styled.swal2-deny{border:0;border-radius:.25em;background:initial;background-color:#d14529;color:#fff;font-size:1em}.swal2-styled.swal2-cancel{border:0;border-radius:.25em;background:initial;background-color:#757575;color:#fff;font-size:1em}.swal2-styled:focus{outline:0;box-shadow:0 0 0 3px rgba(100,150,200,.5)}.swal2-styled::-moz-focus-inner{border:0}.swal2-footer{justify-content:center;margin:1.25em 0 0;padding:1em 0 0;border-top:1px solid #eee;color:#545454;font-size:1em}.swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;height:.25em;overflow:hidden;border-bottom-right-radius:5px;border-bottom-left-radius:5px}.swal2-timer-progress-bar{width:100%;height:.25em;background:rgba(0,0,0,.2)}.swal2-image{max-width:100%;margin:1.25em auto}.swal2-close{position:absolute;z-index:2;top:0;right:0;align-items:center;justify-content:center;width:1.2em;height:1.2em;padding:0;overflow:hidden;transition:color .1s ease-out;border:none;border-radius:5px;background:0 0;color:#ccc;font-family:serif;font-size:2.5em;line-height:1.2;cursor:pointer}.swal2-close:hover{transform:none;background:0 0;color:#f27474}.swal2-close:focus{outline:0;box-shadow:inset 0 0 0 3px rgba(100,150,200,.5)}.swal2-close::-moz-focus-inner{border:0}.swal2-content{z-index:1;justify-content:center;margin:0;padding:0 1.6em;color:#545454;font-size:1.125em;font-weight:400;line-height:normal;text-align:center;word-wrap:break-word}.swal2-checkbox,.swal2-file,.swal2-input,.swal2-radio,.swal2-select,.swal2-textarea{margin:1em auto}.swal2-file,.swal2-input,.swal2-textarea{box-sizing:border-box;width:100%;transition:border-color .3s,box-shadow .3s;border:1px solid #d9d9d9;border-radius:.1875em;background:inherit;box-shadow:inset 0 1px 1px rgba(0,0,0,.06);color:inherit;font-size:1.125em}.swal2-file.swal2-inputerror,.swal2-input.swal2-inputerror,.swal2-textarea.swal2-inputerror{border-color:#f27474!important;box-shadow:0 0 2px #f27474!important}.swal2-file:focus,.swal2-input:focus,.swal2-textarea:focus{border:1px solid #b4dbed;outline:0;box-shadow:0 0 0 3px rgba(100,150,200,.5)}.swal2-file::-moz-placeholder,.swal2-input::-moz-placeholder,.swal2-textarea::-moz-placeholder{color:#ccc}.swal2-file:-ms-input-placeholder,.swal2-input:-ms-input-placeholder,.swal2-textarea:-ms-input-placeholder{color:#ccc}.swal2-file::placeholder,.swal2-input::placeholder,.swal2-textarea::placeholder{color:#ccc}.swal2-range{margin:1em auto;background:#fff}.swal2-range input{width:80%}.swal2-range output{width:20%;color:inherit;font-weight:600;text-align:center}.swal2-range input,.swal2-range output{height:2.625em;padding:0;font-size:1.125em;line-height:2.625em}.swal2-input{height:2.625em;padding:0 .75em}.swal2-input[type=number]{max-width:10em}.swal2-file{background:inherit;font-size:1.125em}.swal2-textarea{height:6.75em;padding:.75em}.swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:inherit;color:inherit;font-size:1.125em}.swal2-checkbox,.swal2-radio{align-items:center;justify-content:center;background:#fff;color:inherit}.swal2-checkbox label,.swal2-radio label{margin:0 .6em;font-size:1.125em}.swal2-checkbox input,.swal2-radio input{flex-shrink:0;margin:0 .4em}.swal2-input-label{display:flex;justify-content:center;margin:1em auto}.swal2-validation-message{align-items:center;justify-content:center;margin:0 -2.7em;padding:.625em;overflow:hidden;background:#f0f0f0;color:#666;font-size:1em;font-weight:300}.swal2-validation-message::before{content:"!";display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center}.swal2-icon{position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:1.25em auto 1.875em;border:.25em solid transparent;border-radius:50%;border-color:#000;font-family:inherit;line-height:5em;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:3.75em}.swal2-icon.swal2-error{border-color:#f27474;color:#f27474}.swal2-icon.swal2-error .swal2-x-mark{position:relative;flex-grow:1}.swal2-icon.swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}.swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;transform:rotate(45deg)}.swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;transform:rotate(-45deg)}.swal2-icon.swal2-error.swal2-icon-show{-webkit-animation:swal2-animate-error-icon .5s;animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-error.swal2-icon-show .swal2-x-mark{-webkit-animation:swal2-animate-error-x-mark .5s;animation:swal2-animate-error-x-mark .5s}.swal2-icon.swal2-warning{border-color:#facea8;color:#f8bb86}.swal2-icon.swal2-info{border-color:#9de0f6;color:#3fc3ee}.swal2-icon.swal2-question{border-color:#c9dae1;color:#87adbd}.swal2-icon.swal2-success{border-color:#a5dc86;color:#a5dc86}.swal2-icon.swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;transform:rotate(45deg);border-radius:50%}.swal2-icon.swal2-success [class^=swal2-success-circular-line][class$=left]{top:-.4375em;left:-2.0635em;transform:rotate(-45deg);transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}.swal2-icon.swal2-success [class^=swal2-success-circular-line][class$=right]{top:-.6875em;left:1.875em;transform:rotate(-45deg);transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}.swal2-icon.swal2-success .swal2-success-ring{position:absolute;z-index:2;top:-.25em;left:-.25em;box-sizing:content-box;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%}.swal2-icon.swal2-success .swal2-success-fix{position:absolute;z-index:1;top:.5em;left:1.625em;width:.4375em;height:5.625em;transform:rotate(-45deg)}.swal2-icon.swal2-success [class^=swal2-success-line]{display:block;position:absolute;z-index:2;height:.3125em;border-radius:.125em;background-color:#a5dc86}.swal2-icon.swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.8125em;width:1.5625em;transform:rotate(45deg)}.swal2-icon.swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;transform:rotate(-45deg)}.swal2-icon.swal2-success.swal2-icon-show .swal2-success-line-tip{-webkit-animation:swal2-animate-success-line-tip .75s;animation:swal2-animate-success-line-tip .75s}.swal2-icon.swal2-success.swal2-icon-show .swal2-success-line-long{-webkit-animation:swal2-animate-success-line-long .75s;animation:swal2-animate-success-line-long .75s}.swal2-icon.swal2-success.swal2-icon-show .swal2-success-circular-line-right{-webkit-animation:swal2-rotate-success-circular-line 4.25s ease-in;animation:swal2-rotate-success-circular-line 4.25s ease-in}.swal2-progress-steps{flex-wrap:wrap;align-items:center;max-width:100%;margin:0 0 1.25em;padding:0;background:inherit;font-weight:600}.swal2-progress-steps li{display:inline-block;position:relative}.swal2-progress-steps .swal2-progress-step{z-index:20;flex-shrink:0;width:2em;height:2em;border-radius:2em;background:#2778c4;color:#fff;line-height:2em;text-align:center}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#2778c4}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:#add8e6;color:#fff}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:#add8e6}.swal2-progress-steps .swal2-progress-step-line{z-index:10;flex-shrink:0;width:2.5em;height:.4em;margin:0 -1px;background:#2778c4}[class^=swal2]{-webkit-tap-highlight-color:transparent}.swal2-show{-webkit-animation:swal2-show .3s;animation:swal2-show .3s}.swal2-hide{-webkit-animation:swal2-hide .15s forwards;animation:swal2-hide .15s forwards}.swal2-noanimation{transition:none}.swal2-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}.swal2-rtl .swal2-close{right:auto;left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}@supports (-ms-accelerator:true){.swal2-range input{width:100%!important}.swal2-range output{display:none}}@media all and (-ms-high-contrast:none),(-ms-high-contrast:active){.swal2-range input{width:100%!important}.swal2-range output{display:none}}@-webkit-keyframes swal2-toast-show{0%{transform:translateY(-.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0)}}@keyframes swal2-toast-show{0%{transform:translateY(-.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0)}}@-webkit-keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@-webkit-keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@-webkit-keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}@keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}@-webkit-keyframes swal2-show{0%{transform:scale(.7)}45%{transform:scale(1.05)}80%{transform:scale(.95)}100%{transform:scale(1)}}@keyframes swal2-show{0%{transform:scale(.7)}45%{transform:scale(1.05)}80%{transform:scale(.95)}100%{transform:scale(1)}}@-webkit-keyframes swal2-hide{0%{transform:scale(1);opacity:1}100%{transform:scale(.5);opacity:0}}@keyframes swal2-hide{0%{transform:scale(1);opacity:1}100%{transform:scale(.5);opacity:0}}@-webkit-keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@-webkit-keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@-webkit-keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@-webkit-keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(.4);opacity:0}50%{margin-top:1.625em;transform:scale(.4);opacity:0}80%{margin-top:-.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(.4);opacity:0}50%{margin-top:1.625em;transform:scale(.4);opacity:0}80%{margin-top:-.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@-webkit-keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0);opacity:1}}@keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0);opacity:1}}@-webkit-keyframes swal2-rotate-loading{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}@keyframes swal2-rotate-loading{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto!important}body.swal2-no-backdrop .swal2-container{top:auto;right:auto;bottom:auto;left:auto;max-width:calc(100% - .625em * 2);background-color:transparent!important}body.swal2-no-backdrop .swal2-container>.swal2-modal{box-shadow:0 0 10px rgba(0,0,0,.4)}body.swal2-no-backdrop .swal2-container.swal2-top{top:0;left:50%;transform:translateX(-50%)}body.swal2-no-backdrop .swal2-container.swal2-top-left,body.swal2-no-backdrop .swal2-container.swal2-top-start{top:0;left:0}body.swal2-no-backdrop .swal2-container.swal2-top-end,body.swal2-no-backdrop .swal2-container.swal2-top-right{top:0;right:0}body.swal2-no-backdrop .swal2-container.swal2-center{top:50%;left:50%;transform:translate(-50%,-50%)}body.swal2-no-backdrop .swal2-container.swal2-center-left,body.swal2-no-backdrop .swal2-container.swal2-center-start{top:50%;left:0;transform:translateY(-50%)}body.swal2-no-backdrop .swal2-container.swal2-center-end,body.swal2-no-backdrop .swal2-container.swal2-center-right{top:50%;right:0;transform:translateY(-50%)}body.swal2-no-backdrop .swal2-container.swal2-bottom{bottom:0;left:50%;transform:translateX(-50%)}body.swal2-no-backdrop .swal2-container.swal2-bottom-left,body.swal2-no-backdrop .swal2-container.swal2-bottom-start{bottom:0;left:0}body.swal2-no-backdrop .swal2-container.swal2-bottom-end,body.swal2-no-backdrop .swal2-container.swal2-bottom-right{right:0;bottom:0}@media print{body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow-y:scroll!important}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown) .swal2-container{position:static!important}}body.swal2-toast-shown .swal2-container{background-color:transparent}body.swal2-toast-shown .swal2-container.swal2-top{top:0;right:auto;bottom:auto;left:50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{top:0;right:0;bottom:auto;left:auto}body.swal2-toast-shown .swal2-container.swal2-top-left,body.swal2-toast-shown .swal2-container.swal2-top-start{top:0;right:auto;bottom:auto;left:0}body.swal2-toast-shown .swal2-container.swal2-center-left,body.swal2-toast-shown .swal2-container.swal2-center-start{top:50%;right:auto;bottom:auto;left:0;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{top:50%;right:auto;bottom:auto;left:50%;transform:translate(-50%,-50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{top:50%;right:0;bottom:auto;left:auto;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-left,body.swal2-toast-shown .swal2-container.swal2-bottom-start{top:auto;right:auto;bottom:0;left:0}body.swal2-toast-shown .swal2-container.swal2-bottom{top:auto;right:auto;bottom:0;left:50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{top:auto;right:0;bottom:0;left:auto}')},8419:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hasCORS=void 0;let n=!1;try{n="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(e){}t.hasCORS=n},5754:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decode=t.encode=void 0,t.encode=function(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t},t.decode=function(e){let t={},n=e.split("&");for(let e=0,o=n.length;e{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parse=void 0;const n=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,o=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];t.parse=function(e){const t=e,a=e.indexOf("["),r=e.indexOf("]");-1!=a&&-1!=r&&(e=e.substring(0,a)+e.substring(a,r).replace(/:/g,";")+e.substring(r,e.length));let s=n.exec(e||""),i={},l=14;for(;l--;)i[o[l]]=s[l]||"";return-1!=a&&-1!=r&&(i.source=t,i.host=i.host.substring(1,i.host.length-1).replace(/;/g,":"),i.authority=i.authority.replace("[","").replace("]","").replace(/;/g,":"),i.ipv6uri=!0),i.pathNames=function(e,t){const n=t.replace(/\/{2,9}/g,"/").split("/");return"/"!=t.substr(0,1)&&0!==t.length||n.splice(0,1),"/"==t.substr(t.length-1,1)&&n.splice(n.length-1,1),n}(0,i.path),i.queryKey=function(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,(function(e,t,o){t&&(n[t]=o)})),n}(0,i.query),i}},8726:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.yeast=t.decode=t.encode=void 0;const n="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),o={};let a,r=0,s=0;function i(e){let t="";do{t=n[e%64]+t,e=Math.floor(e/64)}while(e>0);return t}for(t.encode=i,t.decode=function(e){let t=0;for(s=0;s{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.globalThisShim=void 0,t.globalThisShim="undefined"!=typeof self?self:"undefined"!=typeof window?window:Function("return this")()},4679:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parse=t.installTimerFunctions=t.transports=t.Transport=t.protocol=t.Socket=void 0;const o=n(3481);Object.defineProperty(t,"Socket",{enumerable:!0,get:function(){return o.Socket}}),t.protocol=o.Socket.protocol;var a=n(9870);Object.defineProperty(t,"Transport",{enumerable:!0,get:function(){return a.Transport}});var r=n(7385);Object.defineProperty(t,"transports",{enumerable:!0,get:function(){return r.transports}});var s=n(9622);Object.defineProperty(t,"installTimerFunctions",{enumerable:!0,get:function(){return s.installTimerFunctions}});var i=n(5222);Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return i.parse}})},3481:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Socket=void 0;const a=n(7385),r=n(9622),s=n(5754),i=n(5222),l=o(n(1227)),c=n(5260),u=n(1373),d=(0,l.default)("engine.io-client:socket");class p extends c.Emitter{constructor(e,t={}){super(),e&&"object"==typeof e&&(t=e,e=null),e?(e=(0,i.parse)(e),t.hostname=e.host,t.secure="https"===e.protocol||"wss"===e.protocol,t.port=e.port,e.query&&(t.query=e.query)):t.host&&(t.hostname=(0,i.parse)(t.host).host),(0,r.installTimerFunctions)(this,t),this.secure=null!=t.secure?t.secure:"undefined"!=typeof location&&"https:"===location.protocol,t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.hostname=t.hostname||("undefined"!=typeof location?location.hostname:"localhost"),this.port=t.port||("undefined"!=typeof location&&location.port?location.port:this.secure?"443":"80"),this.transports=t.transports||["polling","websocket"],this.readyState="",this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!0},t),this.opts.path=this.opts.path.replace(/\/$/,"")+"/","string"==typeof this.opts.query&&(this.opts.query=(0,s.decode)(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,"function"==typeof addEventListener&&(this.opts.closeOnBeforeunload&&addEventListener("beforeunload",(()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())}),!1),"localhost"!==this.hostname&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(e){d('creating transport "%s"',e);const t=Object.assign({},this.opts.query);t.EIO=u.protocol,t.transport=e,this.id&&(t.sid=this.id);const n=Object.assign({},this.opts.transportOptions[e],this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port});return d("options: %j",n),new a.transports[e](n)}open(){let e;if(this.opts.rememberUpgrade&&p.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket"))e="websocket";else{if(0===this.transports.length)return void this.setTimeoutFn((()=>{this.emitReserved("error","No transports available")}),0);e=this.transports[0]}this.readyState="opening";try{e=this.createTransport(e)}catch(e){return d("error while creating transport: %s",e),this.transports.shift(),void this.open()}e.open(),this.setTransport(e)}setTransport(e){d("setting transport %s",e.name),this.transport&&(d("clearing existing transport %s",this.transport.name),this.transport.removeAllListeners()),this.transport=e,e.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",(e=>this.onClose("transport close",e)))}probe(e){d('probing transport "%s"',e);let t=this.createTransport(e),n=!1;p.priorWebsocketSuccess=!1;const o=()=>{n||(d('probe transport "%s" opened',e),t.send([{type:"ping",data:"probe"}]),t.once("packet",(o=>{if(!n)if("pong"===o.type&&"probe"===o.data){if(d('probe transport "%s" pong',e),this.upgrading=!0,this.emitReserved("upgrading",t),!t)return;p.priorWebsocketSuccess="websocket"===t.name,d('pausing current transport "%s"',this.transport.name),this.transport.pause((()=>{n||"closed"!==this.readyState&&(d("changing transport and sending upgrade packet"),c(),this.setTransport(t),t.send([{type:"upgrade"}]),this.emitReserved("upgrade",t),t=null,this.upgrading=!1,this.flush())}))}else{d('probe transport "%s" failed',e);const n=new Error("probe error");n.transport=t.name,this.emitReserved("upgradeError",n)}})))};function a(){n||(n=!0,c(),t.close(),t=null)}const r=n=>{const o=new Error("probe error: "+n);o.transport=t.name,a(),d('probe transport "%s" failed because of error: %s',e,n),this.emitReserved("upgradeError",o)};function s(){r("transport closed")}function i(){r("socket closed")}function l(e){t&&e.name!==t.name&&(d('"%s" works - aborting "%s"',e.name,t.name),a())}const c=()=>{t.removeListener("open",o),t.removeListener("error",r),t.removeListener("close",s),this.off("close",i),this.off("upgrading",l)};t.once("open",o),t.once("error",r),t.once("close",s),this.once("close",i),this.once("upgrading",l),t.open()}onOpen(){if(d("socket open"),this.readyState="open",p.priorWebsocketSuccess="websocket"===this.transport.name,this.emitReserved("open"),this.flush(),"open"===this.readyState&&this.opts.upgrade&&this.transport.pause){d("starting upgrade probes");let e=0;const t=this.upgrades.length;for(;e{this.onClose("ping timeout")}),this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,0===this.writeBuffer.length?this.emitReserved("drain"):this.flush()}flush(){if("closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const e=this.getWritablePackets();d("flushing %d packets in socket",e.length),this.transport.send(e),this.prevBufferLen=e.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&"polling"===this.transport.name&&this.writeBuffer.length>1))return this.writeBuffer;let e=1;for(let t=0;t0&&e>this.maxPayload)return d("only send %d out of %d packets",t,this.writeBuffer.length),this.writeBuffer.slice(0,t);e+=2}return d("payload size is %d (max: %d)",e,this.maxPayload),this.writeBuffer}write(e,t,n){return this.sendPacket("message",e,t,n),this}send(e,t,n){return this.sendPacket("message",e,t,n),this}sendPacket(e,t,n,o){if("function"==typeof t&&(o=t,t=void 0),"function"==typeof n&&(o=n,n=null),"closing"===this.readyState||"closed"===this.readyState)return;(n=n||{}).compress=!1!==n.compress;const a={type:e,data:t,options:n};this.emitReserved("packetCreate",a),this.writeBuffer.push(a),o&&this.once("flush",o),this.flush()}close(){const e=()=>{this.onClose("forced close"),d("socket closing - telling transport to close"),this.transport.close()},t=()=>{this.off("upgrade",t),this.off("upgradeError",t),e()},n=()=>{this.once("upgrade",t),this.once("upgradeError",t)};return"opening"!==this.readyState&&"open"!==this.readyState||(this.readyState="closing",this.writeBuffer.length?this.once("drain",(()=>{this.upgrading?n():e()})):this.upgrading?n():e()),this}onError(e){d("socket error %j",e),p.priorWebsocketSuccess=!1,this.emitReserved("error",e),this.onClose("transport error",e)}onClose(e,t){"opening"!==this.readyState&&"open"!==this.readyState&&"closing"!==this.readyState||(d('socket close with reason: "%s"',e),this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),"function"==typeof removeEventListener&&removeEventListener("offline",this.offlineEventListener,!1),this.readyState="closed",this.id=null,this.emitReserved("close",e,t),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(e){const t=[];let n=0;const o=e.length;for(;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.transports=void 0;const o=n(484),a=n(1308);t.transports={websocket:a.WS,polling:o.Polling}},484:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Request=t.Polling=void 0;const a=n(9870),r=o(n(1227)),s=n(8726),i=n(5754),l=n(1373),c=n(6666),u=n(5260),d=n(9622),p=n(6242),h=(0,r.default)("engine.io-client:polling");function f(){}const m=null!=new c.XHR({xdomain:!1}).responseType;class g extends a.Transport{constructor(e){if(super(e),this.polling=!1,"undefined"!=typeof location){const t="https:"===location.protocol;let n=location.port;n||(n=t?"443":"80"),this.xd="undefined"!=typeof location&&e.hostname!==location.hostname||n!==e.port,this.xs=e.secure!==t}const t=e&&e.forceBase64;this.supportsBinary=m&&!t}get name(){return"polling"}doOpen(){this.poll()}pause(e){this.readyState="pausing";const t=()=>{h("paused"),this.readyState="paused",e()};if(this.polling||!this.writable){let e=0;this.polling&&(h("we are currently polling - waiting to pause"),e++,this.once("pollComplete",(function(){h("pre-pause polling complete"),--e||t()}))),this.writable||(h("we are currently writing - waiting to pause"),e++,this.once("drain",(function(){h("pre-pause writing complete"),--e||t()})))}else t()}poll(){h("polling"),this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){h("polling got data %s",e),(0,l.decodePayload)(e,this.socket.binaryType).forEach((e=>{if("opening"===this.readyState&&"open"===e.type&&this.onOpen(),"close"===e.type)return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(e)})),"closed"!==this.readyState&&(this.polling=!1,this.emitReserved("pollComplete"),"open"===this.readyState?this.poll():h('ignoring poll - transport state "%s"',this.readyState))}doClose(){const e=()=>{h("writing close packet"),this.write([{type:"close"}])};"open"===this.readyState?(h("transport open - closing"),e()):(h("transport not open - deferring close"),this.once("open",e))}write(e){this.writable=!1,(0,l.encodePayload)(e,(e=>{this.doWrite(e,(()=>{this.writable=!0,this.emitReserved("drain")}))}))}uri(){let e=this.query||{};const t=this.opts.secure?"https":"http";let n="";!1!==this.opts.timestampRequests&&(e[this.opts.timestampParam]=(0,s.yeast)()),this.supportsBinary||e.sid||(e.b64=1),this.opts.port&&("https"===t&&443!==Number(this.opts.port)||"http"===t&&80!==Number(this.opts.port))&&(n=":"+this.opts.port);const o=(0,i.encode)(e);return t+"://"+(-1!==this.opts.hostname.indexOf(":")?"["+this.opts.hostname+"]":this.opts.hostname)+n+this.opts.path+(o.length?"?"+o:"")}request(e={}){return Object.assign(e,{xd:this.xd,xs:this.xs},this.opts),new y(this.uri(),e)}doWrite(e,t){const n=this.request({method:"POST",data:e});n.on("success",t),n.on("error",((e,t)=>{this.onError("xhr post error",e,t)}))}doPoll(){h("xhr poll");const e=this.request();e.on("data",this.onData.bind(this)),e.on("error",((e,t)=>{this.onError("xhr poll error",e,t)})),this.pollXhr=e}}t.Polling=g;class y extends u.Emitter{constructor(e,t){super(),(0,d.installTimerFunctions)(this,t),this.opts=t,this.method=t.method||"GET",this.uri=e,this.async=!1!==t.async,this.data=void 0!==t.data?t.data:null,this.create()}create(){const e=(0,d.pick)(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");e.xdomain=!!this.opts.xd,e.xscheme=!!this.opts.xs;const t=this.xhr=new c.XHR(e);try{h("xhr open %s: %s",this.method,this.uri),t.open(this.method,this.uri,this.async);try{if(this.opts.extraHeaders){t.setDisableHeaderCheck&&t.setDisableHeaderCheck(!0);for(let e in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(e)&&t.setRequestHeader(e,this.opts.extraHeaders[e])}}catch(e){}if("POST"===this.method)try{t.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(e){}try{t.setRequestHeader("Accept","*/*")}catch(e){}"withCredentials"in t&&(t.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(t.timeout=this.opts.requestTimeout),t.onreadystatechange=()=>{4===t.readyState&&(200===t.status||1223===t.status?this.onLoad():this.setTimeoutFn((()=>{this.onError("number"==typeof t.status?t.status:0)}),0))},h("xhr data %s",this.data),t.send(this.data)}catch(e){return void this.setTimeoutFn((()=>{this.onError(e)}),0)}"undefined"!=typeof document&&(this.index=y.requestsCount++,y.requests[this.index]=this)}onError(e){this.emitReserved("error",e,this.xhr),this.cleanup(!0)}cleanup(e){if(void 0!==this.xhr&&null!==this.xhr){if(this.xhr.onreadystatechange=f,e)try{this.xhr.abort()}catch(e){}"undefined"!=typeof document&&delete y.requests[this.index],this.xhr=null}}onLoad(){const e=this.xhr.responseText;null!==e&&(this.emitReserved("data",e),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}if(t.Request=y,y.requestsCount=0,y.requests={},"undefined"!=typeof document)if("function"==typeof attachEvent)attachEvent("onunload",w);else if("function"==typeof addEventListener){const e="onpagehide"in p.globalThisShim?"pagehide":"unload";addEventListener(e,w,!1)}function w(){for(let e in y.requests)y.requests.hasOwnProperty(e)&&y.requests[e].abort()}},5552:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultBinaryType=t.usingBrowserWebSocket=t.WebSocket=t.nextTick=void 0;const o=n(6242);t.nextTick="function"==typeof Promise&&"function"==typeof Promise.resolve?e=>Promise.resolve().then(e):(e,t)=>t(e,0),t.WebSocket=o.globalThisShim.WebSocket||o.globalThisShim.MozWebSocket,t.usingBrowserWebSocket=!0,t.defaultBinaryType="arraybuffer"},1308:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.WS=void 0;const a=n(9870),r=n(5754),s=n(8726),i=n(9622),l=n(5552),c=o(n(1227)),u=n(1373),d=(0,c.default)("engine.io-client:websocket"),p="undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase();class h extends a.Transport{constructor(e){super(e),this.supportsBinary=!e.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const e=this.uri(),t=this.opts.protocols,n=p?{}:(0,i.pick)(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(n.headers=this.opts.extraHeaders);try{this.ws=l.usingBrowserWebSocket&&!p?t?new l.WebSocket(e,t):new l.WebSocket(e):new l.WebSocket(e,t,n)}catch(e){return this.emitReserved("error",e)}this.ws.binaryType=this.socket.binaryType||l.defaultBinaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let t=0;t{const t={};!l.usingBrowserWebSocket&&(n.options&&(t.compress=n.options.compress),this.opts.perMessageDeflate)&&("string"==typeof e?Buffer.byteLength(e):e.length){this.writable=!0,this.emitReserved("drain")}),this.setTimeoutFn)}))}}doClose(){void 0!==this.ws&&(this.ws.close(),this.ws=null)}uri(){let e=this.query||{};const t=this.opts.secure?"wss":"ws";let n="";this.opts.port&&("wss"===t&&443!==Number(this.opts.port)||"ws"===t&&80!==Number(this.opts.port))&&(n=":"+this.opts.port),this.opts.timestampRequests&&(e[this.opts.timestampParam]=(0,s.yeast)()),this.supportsBinary||(e.b64=1);const o=(0,r.encode)(e);return t+"://"+(-1!==this.opts.hostname.indexOf(":")?"["+this.opts.hostname+"]":this.opts.hostname)+n+this.opts.path+(o.length?"?"+o:"")}check(){return!!l.WebSocket}}t.WS=h},6666:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.XHR=void 0;const o=n(8419),a=n(6242);t.XHR=function(e){const t=e.xdomain;try{if("undefined"!=typeof XMLHttpRequest&&(!t||o.hasCORS))return new XMLHttpRequest}catch(e){}if(!t)try{return new(a.globalThisShim[["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch(e){}}},9622:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.byteLength=t.installTimerFunctions=t.pick=void 0;const o=n(6242);t.pick=function(e,...t){return t.reduce(((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t)),{})};const a=setTimeout,r=clearTimeout;t.installTimerFunctions=function(e,t){t.useNativeTimers?(e.setTimeoutFn=a.bind(o.globalThisShim),e.clearTimeoutFn=r.bind(o.globalThisShim)):(e.setTimeoutFn=setTimeout.bind(o.globalThisShim),e.clearTimeoutFn=clearTimeout.bind(o.globalThisShim))},t.byteLength=function(e){return"string"==typeof e?function(e){let t=0,n=0;for(let o=0,a=e.length;o=57344?n+=3:(o++,n+=4);return n}(e):Math.ceil(1.33*(e.byteLength||e.size))}},3087:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ERROR_PACKET=t.PACKET_TYPES_REVERSE=t.PACKET_TYPES=void 0;const n=Object.create(null);t.PACKET_TYPES=n,n.open="0",n.close="1",n.ping="2",n.pong="3",n.message="4",n.upgrade="5",n.noop="6";const o=Object.create(null);t.PACKET_TYPES_REVERSE=o,Object.keys(n).forEach((e=>{o[n[e]]=e})),t.ERROR_PACKET={type:"error",data:"parser error"}},2469:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decode=t.encode=void 0;const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o="undefined"==typeof Uint8Array?[]:new Uint8Array(256);for(let e=0;e{let t,o=new Uint8Array(e),a=o.length,r="";for(t=0;t>2],r+=n[(3&o[t])<<4|o[t+1]>>4],r+=n[(15&o[t+1])<<2|o[t+2]>>6],r+=n[63&o[t+2]];return a%3==2?r=r.substring(0,r.length-1)+"=":a%3==1&&(r=r.substring(0,r.length-2)+"=="),r},t.decode=e=>{let t,n,a,r,s,i=.75*e.length,l=e.length,c=0;"="===e[e.length-1]&&(i--,"="===e[e.length-2]&&i--);const u=new ArrayBuffer(i),d=new Uint8Array(u);for(t=0;t>4,d[c++]=(15&a)<<4|r>>2,d[c++]=(3&r)<<6|63&s;return u}},7572:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=n(3087),a=n(2469),r="function"==typeof ArrayBuffer,s=(e,t)=>{if(r){const n=(0,a.decode)(e);return i(n,t)}return{base64:!0,data:e}},i=(e,t)=>"blob"===t&&e instanceof ArrayBuffer?new Blob([e]):e;t.default=(e,t)=>{if("string"!=typeof e)return{type:"message",data:i(e,t)};const n=e.charAt(0);return"b"===n?{type:"message",data:s(e.substring(1),t)}:o.PACKET_TYPES_REVERSE[n]?e.length>1?{type:o.PACKET_TYPES_REVERSE[n],data:e.substring(1)}:{type:o.PACKET_TYPES_REVERSE[n]}:o.ERROR_PACKET}},3908:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=n(3087),a="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),r="function"==typeof ArrayBuffer,s=(e,t)=>{const n=new FileReader;return n.onload=function(){const e=n.result.split(",")[1];t("b"+e)},n.readAsDataURL(e)};t.default=({type:e,data:t},n,i)=>{return a&&t instanceof Blob?n?i(t):s(t,i):r&&(t instanceof ArrayBuffer||(l=t,"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(l):l&&l.buffer instanceof ArrayBuffer))?n?i(t):s(new Blob([t]),i):i(o.PACKET_TYPES[e]+(t||""));var l}},1373:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodePayload=t.decodePacket=t.encodePayload=t.encodePacket=t.protocol=void 0;const o=n(3908);t.encodePacket=o.default;const a=n(7572);t.decodePacket=a.default;const r=String.fromCharCode(30);t.encodePayload=(e,t)=>{const n=e.length,a=new Array(n);let s=0;e.forEach(((e,i)=>{(0,o.default)(e,!1,(e=>{a[i]=e,++s===n&&t(a.join(r))}))}))},t.decodePayload=(e,t)=>{const n=e.split(r),o=[];for(let e=0;e{"use strict";function n(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}Object.defineProperty(t,"__esModule",{value:!0}),t.Backoff=void 0,t.Backoff=n,n.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=0==(1&Math.floor(10*t))?e-n:e+n}return 0|Math.min(e,this.max)},n.prototype.reset=function(){this.attempts=0},n.prototype.setMin=function(e){this.ms=e},n.prototype.setMax=function(e){this.max=e},n.prototype.setJitter=function(e){this.jitter=e}},7046:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.connect=t.io=t.Socket=t.Manager=t.protocol=void 0;const a=n(3084),r=n(4168);Object.defineProperty(t,"Manager",{enumerable:!0,get:function(){return r.Manager}});const s=n(8312);Object.defineProperty(t,"Socket",{enumerable:!0,get:function(){return s.Socket}});const i=o(n(1227)).default("socket.io-client"),l={};function c(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};const n=a.url(e,t.path||"/socket.io"),o=n.source,s=n.id,c=n.path,u=l[s]&&c in l[s].nsps;let d;return t.forceNew||t["force new connection"]||!1===t.multiplex||u?(i("ignoring socket cache for %s",o),d=new r.Manager(o,t)):(l[s]||(i("new io instance for %s",o),l[s]=new r.Manager(o,t)),d=l[s]),n.query&&!t.query&&(t.query=n.queryKey),d.socket(n.path,t)}t.io=c,t.connect=c,t.default=c,Object.assign(c,{Manager:r.Manager,Socket:s.Socket,io:c,connect:c});var u=n(7116);Object.defineProperty(t,"protocol",{enumerable:!0,get:function(){return u.protocol}}),e.exports=c},4168:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return a(t,e),t},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Manager=void 0;const i=n(4679),l=n(8312),c=r(n(7116)),u=n(7149),d=n(5159),p=n(5260),h=s(n(1227)).default("socket.io-client:manager");class f extends p.Emitter{constructor(e,t){var n;super(),this.nsps={},this.subs=[],e&&"object"==typeof e&&(t=e,e=void 0),(t=t||{}).path=t.path||"/socket.io",this.opts=t,i.installTimerFunctions(this,t),this.reconnection(!1!==t.reconnection),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor(null!==(n=t.randomizationFactor)&&void 0!==n?n:.5),this.backoff=new d.Backoff({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==t.timeout?2e4:t.timeout),this._readyState="closed",this.uri=e;const o=t.parser||c;this.encoder=new o.Encoder,this.decoder=new o.Decoder,this._autoConnect=!1!==t.autoConnect,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,this):this._reconnection}reconnectionAttempts(e){return void 0===e?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return void 0===e?this._reconnectionDelay:(this._reconnectionDelay=e,null===(t=this.backoff)||void 0===t||t.setMin(e),this)}randomizationFactor(e){var t;return void 0===e?this._randomizationFactor:(this._randomizationFactor=e,null===(t=this.backoff)||void 0===t||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return void 0===e?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,null===(t=this.backoff)||void 0===t||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()}open(e){if(h("readyState %s",this._readyState),~this._readyState.indexOf("open"))return this;h("opening %s",this.uri),this.engine=new i.Socket(this.uri,this.opts);const t=this.engine,n=this;this._readyState="opening",this.skipReconnect=!1;const o=u.on(t,"open",(function(){n.onopen(),e&&e()})),a=u.on(t,"error",(t=>{h("error"),n.cleanup(),n._readyState="closed",this.emitReserved("error",t),e?e(t):n.maybeReconnectOnOpen()}));if(!1!==this._timeout){const e=this._timeout;h("connect attempt will timeout after %d",e),0===e&&o();const n=this.setTimeoutFn((()=>{h("connect attempt timed out after %d",e),o(),t.close(),t.emit("error",new Error("timeout"))}),e);this.opts.autoUnref&&n.unref(),this.subs.push((function(){clearTimeout(n)}))}return this.subs.push(o),this.subs.push(a),this}connect(e){return this.open(e)}onopen(){h("open"),this.cleanup(),this._readyState="open",this.emitReserved("open");const e=this.engine;this.subs.push(u.on(e,"ping",this.onping.bind(this)),u.on(e,"data",this.ondata.bind(this)),u.on(e,"error",this.onerror.bind(this)),u.on(e,"close",this.onclose.bind(this)),u.on(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){this.decoder.add(e)}ondecoded(e){this.emitReserved("packet",e)}onerror(e){h("error",e),this.emitReserved("error",e)}socket(e,t){let n=this.nsps[e];return n||(n=new l.Socket(this,e,t),this.nsps[e]=n),n}_destroy(e){const t=Object.keys(this.nsps);for(const e of t)if(this.nsps[e].active)return void h("socket %s is still active, skipping close",e);this._close()}_packet(e){h("writing packet %j",e);const t=this.encoder.encode(e);for(let n=0;ne())),this.subs.length=0,this.decoder.destroy()}_close(){h("disconnect"),this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(e,t){h("closed due to %s",e),this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,t),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const e=this;if(this.backoff.attempts>=this._reconnectionAttempts)h("reconnect failed"),this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const t=this.backoff.duration();h("will wait %dms before reconnect attempt",t),this._reconnecting=!0;const n=this.setTimeoutFn((()=>{e.skipReconnect||(h("attempting reconnect"),this.emitReserved("reconnect_attempt",e.backoff.attempts),e.skipReconnect||e.open((t=>{t?(h("reconnect attempt error"),e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",t)):(h("reconnect success"),e.onreconnect())})))}),t);this.opts.autoUnref&&n.unref(),this.subs.push((function(){clearTimeout(n)}))}}onreconnect(){const e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}t.Manager=f},7149:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.on=void 0,t.on=function(e,t,n){return e.on(t,n),function(){e.off(t,n)}}},8312:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Socket=void 0;const a=n(7116),r=n(7149),s=n(5260),i=o(n(1227)).default("socket.io-client:socket"),l=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class c extends s.Emitter{constructor(e,t,n){super(),this.connected=!1,this.receiveBuffer=[],this.sendBuffer=[],this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=t,n&&n.auth&&(this.auth=n.auth),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const e=this.io;this.subs=[r.on(e,"open",this.onopen.bind(this)),r.on(e,"packet",this.onpacket.bind(this)),r.on(e,"error",this.onerror.bind(this)),r.on(e,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected||(this.subEvents(),this.io._reconnecting||this.io.open(),"open"===this.io._readyState&&this.onopen()),this}open(){return this.connect()}send(...e){return e.unshift("message"),this.emit.apply(this,e),this}emit(e,...t){if(l.hasOwnProperty(e))throw new Error('"'+e+'" is a reserved event name');t.unshift(e);const n={type:a.PacketType.EVENT,data:t,options:{}};if(n.options.compress=!1!==this.flags.compress,"function"==typeof t[t.length-1]){const e=this.ids++;i("emitting packet with ack id %d",e);const o=t.pop();this._registerAckCallback(e,o),n.id=e}const o=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return!this.flags.volatile||o&&this.connected?this.connected?(this.notifyOutgoingListeners(n),this.packet(n)):this.sendBuffer.push(n):i("discard packet as the transport is not currently writable"),this.flags={},this}_registerAckCallback(e,t){const n=this.flags.timeout;if(void 0===n)return void(this.acks[e]=t);const o=this.io.setTimeoutFn((()=>{delete this.acks[e];for(let t=0;t{this.io.clearTimeoutFn(o),t.apply(this,[null,...e])}}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){i("transport is open - connecting"),"function"==typeof this.auth?this.auth((e=>{this.packet({type:a.PacketType.CONNECT,data:e})})):this.packet({type:a.PacketType.CONNECT,data:this.auth})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,t){i("close (%s)",e),this.connected=!1,delete this.id,this.emitReserved("disconnect",e,t)}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case a.PacketType.CONNECT:if(e.data&&e.data.sid){const t=e.data.sid;this.onconnect(t)}else this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case a.PacketType.EVENT:case a.PacketType.BINARY_EVENT:this.onevent(e);break;case a.PacketType.ACK:case a.PacketType.BINARY_ACK:this.onack(e);break;case a.PacketType.DISCONNECT:this.ondisconnect();break;case a.PacketType.CONNECT_ERROR:this.destroy();const t=new Error(e.data.message);t.data=e.data.data,this.emitReserved("connect_error",t)}}onevent(e){const t=e.data||[];i("emitting event %j",t),null!=e.id&&(i("attaching ack callback to event"),t.push(this.ack(e.id))),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){const t=this._anyListeners.slice();for(const n of t)n.apply(this,e)}super.emit.apply(this,e)}ack(e){const t=this;let n=!1;return function(...o){n||(n=!0,i("sending ack %j",o),t.packet({type:a.PacketType.ACK,id:e,data:o}))}}onack(e){const t=this.acks[e.id];"function"==typeof t?(i("calling ack %s with %j",e.id,e.data),t.apply(this,e.data),delete this.acks[e.id]):i("bad ack %s",e.id)}onconnect(e){i("socket connected with id %s",e),this.id=e,this.connected=!0,this.emitBuffered(),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach((e=>this.emitEvent(e))),this.receiveBuffer=[],this.sendBuffer.forEach((e=>{this.notifyOutgoingListeners(e),this.packet(e)})),this.sendBuffer=[]}ondisconnect(){i("server disconnect (%s)",this.nsp),this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach((e=>e())),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&(i("performing disconnect (%s)",this.nsp),this.packet({type:a.PacketType.DISCONNECT})),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){const t=this._anyListeners;for(let n=0;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.reconstructPacket=t.deconstructPacket=void 0;const o=n(790);function a(e,t){if(!e)return e;if(o.isBinary(e)){const n={_placeholder:!0,num:t.length};return t.push(e),n}if(Array.isArray(e)){const n=new Array(e.length);for(let o=0;o{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Decoder=t.Encoder=t.PacketType=t.protocol=void 0;const o=n(5260),a=n(3155),r=n(790),s=n(1227).default("socket.io-parser");var i;t.protocol=5,function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"}(i=t.PacketType||(t.PacketType={})),t.Encoder=class{constructor(e){this.replacer=e}encode(e){return s("encoding packet %j",e),e.type!==i.EVENT&&e.type!==i.ACK||!r.hasBinary(e)?[this.encodeAsString(e)]:(e.type=e.type===i.EVENT?i.BINARY_EVENT:i.BINARY_ACK,this.encodeAsBinary(e))}encodeAsString(e){let t=""+e.type;return e.type!==i.BINARY_EVENT&&e.type!==i.BINARY_ACK||(t+=e.attachments+"-"),e.nsp&&"/"!==e.nsp&&(t+=e.nsp+","),null!=e.id&&(t+=e.id),null!=e.data&&(t+=JSON.stringify(e.data,this.replacer)),s("encoded %j as %s",e,t),t}encodeAsBinary(e){const t=a.deconstructPacket(e),n=this.encodeAsString(t.packet),o=t.buffers;return o.unshift(n),o}};class l extends o.Emitter{constructor(e){super(),this.reviver=e}add(e){let t;if("string"==typeof e)t=this.decodeString(e),t.type===i.BINARY_EVENT||t.type===i.BINARY_ACK?(this.reconstructor=new c(t),0===t.attachments&&super.emitReserved("decoded",t)):super.emitReserved("decoded",t);else{if(!r.isBinary(e)&&!e.base64)throw new Error("Unknown type: "+e);if(!this.reconstructor)throw new Error("got binary data when not reconstructing a packet");t=this.reconstructor.takeBinaryData(e),t&&(this.reconstructor=null,super.emitReserved("decoded",t))}}decodeString(e){let t=0;const n={type:Number(e.charAt(0))};if(void 0===i[n.type])throw new Error("unknown packet type "+n.type);if(n.type===i.BINARY_EVENT||n.type===i.BINARY_ACK){const o=t+1;for(;"-"!==e.charAt(++t)&&t!=e.length;);const a=e.substring(o,t);if(a!=Number(a)||"-"!==e.charAt(t))throw new Error("Illegal attachments");n.attachments=Number(a)}if("/"===e.charAt(t+1)){const o=t+1;for(;++t&&","!==e.charAt(t)&&t!==e.length;);n.nsp=e.substring(o,t)}else n.nsp="/";const o=e.charAt(t+1);if(""!==o&&Number(o)==o){const o=t+1;for(;++t;){const n=e.charAt(t);if(null==n||Number(n)!=n){--t;break}if(t===e.length)break}n.id=Number(e.substring(o,t+1))}if(e.charAt(++t)){const o=this.tryParse(e.substr(t));if(!l.isPayloadValid(n.type,o))throw new Error("invalid payload");n.data=o}return s("decoded %s as %j",e,n),n}tryParse(e){try{return JSON.parse(e,this.reviver)}catch(e){return!1}}static isPayloadValid(e,t){switch(e){case i.CONNECT:return"object"==typeof t;case i.DISCONNECT:return void 0===t;case i.CONNECT_ERROR:return"string"==typeof t||"object"==typeof t;case i.EVENT:case i.BINARY_EVENT:return Array.isArray(t)&&t.length>0;case i.ACK:case i.BINARY_ACK:return Array.isArray(t)}}destroy(){this.reconstructor&&this.reconstructor.finishedReconstruction()}}t.Decoder=l;class c{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){const e=a.reconstructPacket(this.reconPack,this.buffers);return this.finishedReconstruction(),e}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}},790:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hasBinary=t.isBinary=void 0;const n="function"==typeof ArrayBuffer,o=Object.prototype.toString,a="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===o.call(Blob),r="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===o.call(File);function s(e){return n&&(e instanceof ArrayBuffer||(e=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer)(e))||a&&e instanceof Blob||r&&e instanceof File}t.isBinary=s,t.hasBinary=function e(t,n){if(!t||"object"!=typeof t)return!1;if(Array.isArray(t)){for(let n=0,o=t.length;n{"use strict";function o(e){if(e)return function(e){for(var t in o.prototype)e[t]=o.prototype[t];return e}(e)}n.r(t),n.d(t,{Emitter:()=>o}),o.prototype.on=o.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},o.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},o.prototype.off=o.prototype.removeListener=o.prototype.removeAllListeners=o.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,o=this._callbacks["$"+e];if(!o)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var a=0;a{var t=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(t,{a:t}),t},__webpack_require__.d=(e,t)=>{for(var n in t)__webpack_require__.o(t,n)&&!__webpack_require__.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},__webpack_require__.nc=void 0,__webpack_require__(9820),__webpack_require__(8844),__webpack_require__(9155),__webpack_require__(8130),__webpack_require__(8346),__webpack_require__(3344),__webpack_require__(465),__webpack_require__(8603),__webpack_require__(7736),__webpack_require__(7939),__webpack_require__(4474),__webpack_require__(2868),__webpack_require__(4759);var __webpack_exports__=__webpack_require__(2852)})();
\ No newline at end of file
diff --git a/cheatGUI/src/hacks/pets.ts b/cheatGUI/src/hacks/pets.ts
index fb85e60..895bb54 100644
--- a/cheatGUI/src/hacks/pets.ts
+++ b/cheatGUI/src/hacks/pets.ts
@@ -15,7 +15,7 @@ import { TODO } from "../../../typings/util"; // Import Prodigy Util typings
// Begin Get All Pets
-new Hack(category.pets, "Get All Pets").setClick(async () => {
+new Hack (category.pets, "Get All Pets").setClick(async () => {
if (!(await Confirm.fire("Would you like to add all pets to your pets?")).value) {
@@ -51,7 +51,7 @@ new Hack(category.pets, "Get All Pets").setClick(async () => {
// Begin Get ALl Legacy Epics
-new Hack(category.pets, "Get All Legacy Epics").setClick(async () => {
+new Hack (category.pets, "Get All Legacy Epics").setClick(async () => {
if (!(await Confirm.fire("Would you like to add all legacy epics to your team?")).value) {
@@ -76,7 +76,7 @@ new Hack(category.pets, "Get All Legacy Epics").setClick(async () => {
// Begin Get All Mythical Epics
-new Hack(category.pets, "Get All Mythical Epics").setClick(async () => {
+new Hack (category.pets, "Get All Mythical Epics").setClick(async () => {
if (!(await Confirm.fire("Would you like to add all mythical epics to your pets?")).value) {
console.log("Cancelled");
@@ -104,7 +104,7 @@ new Hack(category.pets, "Get All Mythical Epics").setClick(async () => {
// Begin Clear Pets
-new Hack(category.pets, "Clear Pets").setClick(async () => {
+new Hack (category.pets, "Clear Pets").setClick(async () => {
if (!(await Confirm.fire("Would you like to delete all of your pets?")).value) {
console.log("Cancelled");
@@ -121,7 +121,7 @@ new Hack(category.pets, "Clear Pets").setClick(async () => {
// Begin Add Pet
-new Hack(category.pets, "Add Pet", "Adds a pet from a list.").setClick(async () => {
+new Hack (category.pets, "Add Pet", "Adds a pet from a list.").setClick(async () => {
const pet = await Swal.fire({
input: "select",
inputOptions: new Map(_.gameData.pet.map(x => [x.ID.toString(), `${x.ID}: ${x.data.name}`])),
@@ -145,7 +145,7 @@ new Hack(category.pets, "Add Pet", "Adds a pet from a list.").setClick(async ()
// Begin Uncap pet level
-new Hack(category.pets, "Uncap pet level [Client Side]", "Change your pet's level to anything, even over 100. This hack won't save when you reload Prodigy.").setClick(async () => {
+new Hack (category.pets, "Uncap pet level [Client Side]", "Change your pet's level to anything, even over 100. This hack won't save when you reload Prodigy.").setClick(async () => {
const petTeam = _.player.kennel.petTeam.slice(0);
petTeam.shift();
const names = petTeam.map(pet => pet.getName());
diff --git a/cheatGUI/src/utils/keybinds.ts b/cheatGUI/src/utils/keybinds.ts
index 35b350c..284f1e5 100644
--- a/cheatGUI/src/utils/keybinds.ts
+++ b/cheatGUI/src/utils/keybinds.ts
@@ -1,14 +1,44 @@
import { _ } from "../utils/util"; // Import Prodigy typings
+import { Confirm, Toast } from "../utils/swal"; // Import Swal, Toast, Confirm, Input, and NumberInput from swal
window.addEventListener("keydown", event => {
- // Close All Popups
- if (event.code === "KeyX") {
- _.instance.prodigy.open.menuCloseAll();
+
+
+
+ switch (event.code) {
+
+ case "KeyX":
+ // Close All Popups
+ _.instance.prodigy.open.menuCloseAll();
+ break;
+
+ case "KeyK":
+ // Gets you kitted up in Celestial Gear
+ const k = async () => {
+
+
+
+ if (!(
+ await Confirm.fire("Kit", "Would you like to equip Celestial Gear?")
+ ).value) {
+ return console.log("Cancelled");;
+ }
+
+ _.player.equipment.setHat(200);
+ _.player.equipment.setBoots(93);
+ _.player.equipment.setOutfit(161);
+ _.player.equipment.setWeapon(196);
+
+ _.player.appearanceChanged = true;
+
+ Toast.fire("Success!", "You are now wearing Celestial Armor and wielding a Dual Blade.", "success");
+ };
+ k();
+ break;
}
- // Close All Popups