From 82b22b1bbfc96d47e9d166939e446e602a5fe2f2 Mon Sep 17 00:00:00 2001 From: gemsvido Date: Sat, 27 Aug 2022 15:14:05 -0700 Subject: [PATCH 01/17] alright, i managed to get a selector. --- cheatGUI/dist/bundle.js | 2 +- cheatGUI/src/hacks/pets.ts | 25 +++++++++++++++++++++++++ cheatGUI/src/index.ts | 2 +- 3 files changed, 27 insertions(+), 2 deletions(-) diff --git a/cheatGUI/dist/bundle.js b/cheatGUI/dist/bundle.js index f35d187..229b405 100644 --- a/cheatGUI/dist/bundle.js +++ b/cheatGUI/dist/bundle.js @@ -1 +1 @@ -(()=>{var __webpack_modules__={8844:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))}}n=[o,t,o(4759),o(9820),o(2852),o(4719)],void 0===(a=function(e,t,o,n,a,r){"use strict";new n.Toggler(n.category.battle,"Disable math [PvP, PvE]","Disable math in PvP, PvE, anywhere! This doesn't work in the Floatling town.").setEnabled(s((function*(){return a._.constants.constants["GameConstants.Debug.EDUCATION_ENABLED"]=!1,o.Toast.fire("Enabled!","You will no longer do Math!","success")}))).setDisabled(s((function*(){return a._.constants.constants["GameConstants.Debug.EDUCATION_ENABLED"]=!0,o.Toast.fire("Disabled!","You will now do Math!","success")}))),new n.Toggler(n.category.battle,"Instant Kill [PvE]","Makes your spells do insane damage in PvE!").setEnabled(s((function*(){return a._.player.modifiers.damage=a.VERY_LARGE_NUMBER,o.Toast.fire("Enabled!","You will now do insane damage in PvE!","success")}))).setDisabled((()=>(a._.player.modifiers.damage=1,o.Toast.fire("Disabled!","You will no longer do insane damage in PvE!","success")))),new n.Hack(n.category.battle,"PvP Health [PvP]","Increases your HP in PvP by a hell ton.").setClick(s((function*(){return a._.player.pvpHP=a.VERY_LARGE_NUMBER,a._.player.getMaxHearts=()=>a.VERY_LARGE_NUMBER,o.Toast.fire("Success!","You now have lots of health!","success")}))),new n.Hack(n.category.battle,"Escape Battle [PvP, PvE]","Escape any battle, PvP or PvE!").setClick(s((function*(){var e=a.game.state.current;return"PVP"===e?(Object.fromEntries(a._.instance.game.state.states).PVP.endPVP(),o.Toast.fire("Escaped!","You have successfully escaped from the PvP battle.","success")):"CoOp"===e?(a.prodigy.world.$(a._.player.data.zone),o.Toast.fire("Escaped!","You have successfully escaped from the battle.","success")):["Battle","SecureBattle"].includes(e)?(Object.fromEntries(a._.instance.game.state.states)[e].runAwayCallback(),o.Toast.fire("Escaped!","You have successfully escaped from the PvE battle.","success")):o.Toast.fire("Invalid State.","You are currently not in a battle.","error")}))),new n.Hack(n.category.battle,"Win Battle [PvE]","Instantly win a battle in PvE.").setClick(s((function*(){var e=a.game.state.current;switch((0,r.BattleInfo)("Current State: "+e),e){case"PVP":case"CoOp":return o.Toast.fire("Invalid State.","PvP is not supported for this hack.","error");case"Battle":return Object.fromEntries(a._.instance.game.state.states).Battle.startVictory(),o.Toast.fire("Victory!","You have successfully won the battle.","success");case"SecureBattle":return Object.fromEntries(a._.instance.game.state.states).SecureBattle.battleVictory(),o.Toast.fire("Victory!","You have successfully won the battle.","success");default:return o.Toast.fire("Invalid State.","You are currently not in a battle.","error")}}))),new n.Hack(n.category.battle,"Set Battle Hearts [PvP, PvE]","Sets your hearts in battle, automatically raise your max hearts in PvP or PvE.").setClick(s((function*(){var e=yield o.NumberInput.fire("Health Amount","How much HP do you want?","question");if(void 0!==e.value)return a._.player.getMaxHearts=()=>+e.value,a._.player.pvpHP=+e.value,a._.player.data.hp=+e.value,o.Toast.fire("Success!","Your hearts have been set.","success")}))),new n.Hack(n.category.battle,"Fill Battle Energy [PvP, PvE]","Fills up your battle energy, if you are in PvP or PvE.").setClick(s((function*(){var e=a.game.state.getCurrentState();return"teams"in e?(e.teams[0].setEnergy(99),o.Toast.fire("Success!","Your battle energy has been filled.","success")):o.Toast.fire("Error","You are currently not in a battle.","error")}))),new n.Hack(n.category.battle,"Heal Team [PvE]","Instantly heals you and your pets, if you are in PvE.").setClick(s((function*(){var e=a.game.state.current;return"PVP"===e||"CoOp"===e?o.Toast.fire("Invalid State.","PvP is not supported for this hack.","error"):["Battle","SecureBattle"].includes(e)?(a._.player.heal(),o.Toast.fire("Success!","Your team has been healed successfully!","success")):o.Toast.fire("Invalid State.","Your are currently not in a battle.","error")})))}.apply(t,n))||(e.exports=a)},9155:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))}}n=[o,t,o(4759),o(9820),o(2852),o(112),o(3131),o(8238)],void 0===(a=function(e,t,o,n,a,r,i,c){"use strict";new n.Toggler(n.category.beta,"FPS Counter [BETA]","Shows you a framerate counter").setEnabled(s((function*(){(0,c.startFps)()}))).setDisabled(s((function*(){(0,c.stopFps)()}))),new n.Hack(n.category.beta,"Get all Runes [BETA]").setClick(s((function*(){if((yield o.Confirm.fire({title:"Hang on!",html:"This hack may damage your account with various bugs, for example you may be unable to do Rune Run.

Proceed?",icon:"warning"})).value){var e,t=parseInt((yield o.NumberInput.fire({title:"Amount",text:"How many of each would you like?",icon:"question",inputValidator:e=>e?"":"Please select which you'd like to get."})).value);if(!isNaN(t))return Array.from(a._.instance.prodigy.gameContainer._inversifyContainer._bindingDictionary._map).forEach((t=>{try{a._.instance.prodigy.gameContainer.get(t[0]).battleData&&(e=t[0])}catch(e){console.log("Error for ".concat(t[0]))}})),a._.instance.prodigy.gameContainer.get(e).battleData._secureCharacterState._data.inventory.orb=(0,r.runeify)(a._.gameData.orb,t),o.Toast.fire("Runes Added!","Your runes have been added!","success")}}))),new n.Hack(n.category.beta,"Edit Pet [BETA]","Edit a pet.").setClick(s((function*(){if(!(yield o.Confirm.fire({title:"Hang on!",html:"This hack may damage your account with various bugs, for example you may be unable to do Rune Run.

Proceed?",icon:"warning"})).value)return console.log("Cancelled.");var e=yield(0,r.getPet)("Choose the pet to edit.");if(void 0!==e){var t=a._.player.kennel.data[e],n=yield o.Swal.fire({input:"select",inputOptions:{level:"Level",attacks:"Attacks",name:"Name"},title:"Edit Property",text:"What do you want to edit?"});if(void 0!==n.value){if("level"===n.value){var s=yield o.NumberInput.fire("Level Number","What level do you want to set your pet to?","question");if(void 0===s.value)return;return t.level=+s.value,o.Toast.fire("Success!","The pet's level has been set.","success")}if("attacks"===n.value){var i=a._.gameData.spell,c=document.createElement("div"),l=document.createElement("select");for(var u of(l.classList.add("selectSpell"),i)){var d=document.createElement("option");d.value=u.ID.toString(),d.innerText="".concat(u.ID,": ").concat(u.name," (").concat(u.data.element,") - Damage: ").concat(u.data.damage),l.options.add(d)}c.append(l),c.append(l.cloneNode(!0));var p=yield o.Swal.fire({title:"Attack List",focusConfirm:!1,showCancelButton:!0,html:c,preConfirm:()=>Array.prototype.slice.call(document.querySelectorAll(".selectSpell")).map((e=>e.options[e.selectedIndex].value))});if(void 0===p.value)return;return t.foreignSpells.splice(0,2,...p.value.map((e=>+e))),o.Toast.fire("Attacks updated!","The attack list of the pet you selected has been edited.","success")}if("name"===n.value){var h=yield o.Input.fire("Input Name","What do you want to name the pet?","question");if(void 0===h.value)return;return t.nickname=h.value,o.Toast.fire("Successfully renamed!","The name of the pet has been changed.","success")}}}}))),new n.Hack(n.category.beta,"Morph Player [BETA]","Morph into a pet, furnishing, or follow.").setClick(s((function*(){if(!(yield o.Confirm.fire("This hack is in BETA","Expect bugs, and it might not work properly.")).value)return console.log("Cancelled");var e=yield o.Swal.fire({title:"Which morph type?",input:"select",inputOptions:{pet:"Pet",dorm:"Furniture",follow:"Follow"},inputPlaceholder:"Morph Type",inputValidator:e=>e?"":"Please select a morph type.",showCancelButton:!0});if(null!=e&&e.value){var t={};a._.gameData[e.value].forEach((e=>t[e.ID]="".concat(e.name," (").concat(e.ID,")")));var n=yield o.Swal.fire({title:"Which morph?",input:"select",inputOptions:t,inputPlaceholder:"Morph ID",inputValidator:e=>e?"":"Please select a morph ID.",showCancelButton:!0});if(null!=n&&n.value)return a._.player.getPlayerData().playerTransformation={transformType:e.value,transformID:n.value,maxTime:36e5,timeRemaining:36e5},a._.player.appearanceChanged=!0,o.Toast.fire("Morphed!","You've been morphed.","success")}}))),new n.Toggler(n.category.beta,"Toggle Close Popups [BETA]","Automatically closes popups in Prodigy.").setEnabled(s((function*(){return(0,i.PopupInterval)(!0),o.Toast.fire("Enabled","Toggle Close Popups is now enabled.","success")}))).setDisabled(s((function*(){return(0,i.PopupInterval)(!1),o.Toast.fire("Enabled","Toggle Close Popups is now disabled.","success")}))),new n.Hack(n.category.beta,"Hypermax Account [BETA]").setClick(s((function*(){if((yield o.Confirm.fire({title:"Hang on!",html:"This hack may damage your account with various bugs, for example you may be unable to do Rune Run.

Proceed?",icon:"warning"})).value){var e=a.game.state.current;"PVP"===e?Object.fromEntries(a._.instance.game.state.states).PVP.endPVP():"CoOp"===e?a.prodigy.world.$(a._.player.data.zone):["Battle","SecureBattle"].includes(e)&&Object.fromEntries(a._.instance.game.state.states)[e].runAwayCallback(),console.log("Escaped any battle."),a._.player.getPlayerData().playerTransformation=void 0,a._.player.appearanceChanged=!0,console.log("Fixed morph crash"),a._.player.kennel.petTeam.forEach((e=>{e&&e.assignRandomSpells&&e.assignRandomSpells()})),console.log("Fixed battle crash."),a._.player.data.gold=99e5,console.log("Set player gold to 9900000.");var t=100..value-2;a._.player.data.stars=Math.round((1-Math.pow(1.042,t))/(1-1.042)*20+10),a._.player.data.level=100,a._.player.getLevel=()=>a._.player.data.level,console.log("Set player level to 100"),a._.player.data.bountyScore=100,console.log("Set player's bounty points to 100.");for(var n=0;na.VERY_LARGE_NUMBER,console.log("PvP health obtained."),a._.instance.prodigy.gameContainer.get(a._.player.hasMembership.toString().split('"')[1]).data.membership.active=!0,a._.player.appearanceChanged=!0,console.log("Premium membership enabled.");for(var s=0;s<100;s++)a._.player.achievements.data.progress[s]=10;console.log("Obtained all achievements."),a._.player.data.tower=100,console.log("Set tower floor to 100."),a._.constants.constants["GameConstants.Debug.EDUCATION_ENABLED"]=!1,console.log("Math Disabled."),a._.player.getMaxHearts=()=>a.VERY_LARGE_NUMBER,a._.player.pvpHP=a.VERY_LARGE_NUMBER,a._.player.data.hp=a.VERY_LARGE_NUMBER,console.log("Maxed out PvE health.");var i,c=99e4;r.ids.forEach((e=>{a._.player.backpack.data[e]=(0,r.itemify)(a._.gameData[e].filter((t=>"follow"===e?![125,126,127,128,129,134,135,136,137].includes(t.ID):t)),c.value)})),a._.gameData.dorm.forEach((e=>a._.player.house.data.items[e.ID]={A:[],N:c.value}));for(var l=()=>a._.player.backpack.data.item.findIndex((e=>84===e.ID||85===e.ID||86===e.ID));l()>-1;)a._.player.backpack.data.item.splice(l(),1);return o.Toast.fire("Success!","All items added!","success"),console.log("All items added!"),a._.player.backpack.data.mount=(0,r.itemify)(a._.gameData.mount,1),console.log("Added all mounts."),a._.gameData.dorm.forEach((e=>a._.player.house.data.items[e.ID]={A:[],N:99e4.value})),console.log("Added 990000 of all furniture."),a._.gameData.pet.forEach((e=>{a._.player.kennel.addPet(e.ID.toString(),a.VERY_LARGE_NUMBER,26376,100)})),a._.player.kennel._encounterInfo._data.pets=[],a._.gameData.pet.map((e=>{a._.player.kennel._encounterInfo._data.pets.push({firstSeenDate:Date.now(),ID:e.ID,timesBattled:1,timesRescued:1})})),a._.player.kennel.petTeam.forEach((e=>{e&&e.assignRandomSpells&&e.assignRandomSpells()})),console.log("Added all pets."),a._.gameData.pet.filter((e=>[158,166,168].includes(e.ID))).forEach((e=>{a._.player.kennel.addPet(e.ID.toString(),a.VERY_LARGE_NUMBER,26376,100)})),a._.player.kennel.petTeam.forEach((e=>{e&&e.assignRandomSpells&&e.assignRandomSpells()})),console.log("Added Mythical Epics."),a._.gameData.pet.filter((e=>[125,126,127,128,129,130,131,132,133].includes(e.ID))).forEach((e=>{a._.player.kennel.addPet(e.ID.toString(),a.VERY_LARGE_NUMBER,26376,100)})),a._.player.kennel.petTeam.forEach((e=>{e&&e.assignRandomSpells&&e.assignRandomSpells()})),console.log("Added Legacy Epics."),a._.constants.constants["GameConstants.Inactivity.LOG_OUT_TIMER_SECONDS"]=0,console.log("Inactivity Kick Disabled."),a._.player._playerContainer.walkSpeed=20,console.log("Player walkspeed set to 20."),Array.from(a._.instance.prodigy.gameContainer._inversifyContainer._bindingDictionary._map).forEach((e=>{try{a._.instance.prodigy.gameContainer.get(e[0]).battleData&&(i=e[0])}catch(t){console.log("Error for ".concat(e[0]))}})),a._.instance.prodigy.gameContainer.get(i).battleData._secureCharacterState._data.inventory.orb=(0,r.runeify)(a._.gameData.orb,100),a._.player.equipment.setHat(200),a._.player.equipment.setBoots(93),a._.player.equipment.setOutfit(161),a._.player.equipment.setWeapon(196),(0,a.saveCharacter)(),console.log("Character Saved."),a._.player.appearanceChanged=!0,console.log("Appearance Refreshed."),a._.instance.prodigy.open.menuCloseAll(),console.log("Popups closed."),(0,a.saveCharacter)(),console.log("Character Saved."),console.log("Max Account Successful."),o.Toast.fire("Maxed!","Check your backpack!","success")}})))}.apply(t,n))||(e.exports=a)},8130:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))}}n=[o,t,o(9820),o(4759),o(2852),o(112)],void 0===(a=function(e,t,o,n,a,r){"use strict";new o.Hack(o.category.inventory,"Item stacker").setClick(s((function*(){var e=yield n.NumberInput.fire("Amount","How many of every item would you like?","question");if(e.value&&(yield n.Confirm.fire("Are you sure you want to get all items in the game?")).value){r.ids.forEach((t=>{a._.player.backpack.data[t]=(0,r.itemify)(a._.gameData[t].filter((e=>"follow"===t?![125,126,127,128,129,134,135,136,137].includes(e.ID):e)),e.value)})),a._.gameData.dorm.forEach((t=>a._.player.house.data.items[t.ID]={A:[],N:e.value}));for(var t=()=>a._.player.backpack.data.item.findIndex((e=>84===e.ID||85===e.ID||86===e.ID));t()>-1;)a._.player.backpack.data.item.splice(t(),1);return n.Toast.fire("Success!","All items added!","success")}}))),new o.Hack(o.category.inventory,"Clear inventory").setClick(s((function*(){(yield n.Confirm.fire("Are you sure you want to clear your inventory?")).value&&(Object.keys(a._.player.backpack.data).forEach((e=>a._.player.backpack.data[e]=[])),n.Toast.fire("Success!","Inventory cleared.","success"))}))),new o.Hack(o.category.inventory,"Selector (Basic)").setClick(s((function*(){yield n.Swal.fire({title:"What would you like to obtain?",input:"select",inputOptions:r.names,inputPlaceholder:"Select...",inputValidator:e=>e?"":"Please select which you'd like to obtain.",showCancelButton:!0}).then(function(){var e=s((function*(e){var t=parseInt(e.value),o=r.names[t],s=r.ids[t];if(o){var i=yield n.NumberInput.fire("Amount","How many each object would you like?","question");i.value&&(yield n.Confirm.fire("Are you sure you want to get all ".concat(o.toLowerCase(),"?"))).value&&(a._.player.backpack.data[s]=(0,r.itemify)(a._.gameData[s].filter((e=>"follow"===s?![125,126,127,128,129,134,135,136,137].includes(e.ID):e)),i.value),n.Toast.fire("".concat(o," Added!"),"All ".concat(o.toLowerCase()," have been added to your inventory!"),"success"),(0,a.saveCharacter)())}}));return function(t){return e.apply(this,arguments)}}())}))),new o.Hack(o.category.inventory,"Selector (Advanced)","Choose a specific object and quantity to obtain.").setClick(s((function*(){yield n.Swal.fire({title:"What would you like to obtain?",input:"select",inputOptions:r.names,inputPlaceholder:"Select...",inputValidator:e=>e?"":"Please select which you'd like to obtain.",showCancelButton:!0}).then(function(){var e=s((function*(e){if(a._.gameData[r.ids[e.value]]){var t=[];a._.gameData[r.ids[e.value]].forEach((e=>{t.push(e.data.name)})),yield n.Swal.fire({title:"What specific object categorized as ".concat(r.names[e.value].toLowerCase()," would you like to get?"),input:"select",inputOptions:t,inputPlaceholder:"Select...",inputValidator:e=>e?"":"Please select which you'd like to get.",showCancelButton:!0}).then(function(){var t=s((function*(t){var o=parseInt(t.value);if(a._.gameData[r.ids[e.value]][o]){var s=yield n.NumberInput.fire("Amount","How many of the object would you like?","question");if(s.value)return-1===a._.player.backpack.data[r.ids[e.value]].findIndex((t=>t.ID===a._.gameData[r.ids[e.value]][o].ID))?a._.player.backpack.data[r.ids[e.value]].push({ID:a._.gameData[r.ids[e.value]][o].ID,N:s.value}):a._.player.backpack.data[r.ids[e.value]].findIndex((t=>t.ID===a._.gameData[r.ids[e.value]][o].ID)),console.log(a._.gameData[r.ids[e.value]][o].ID),(0,a.saveCharacter)(),n.Toast.fire("".concat(r.names[e.value]," Added!"),"Your selected ".concat(r.names[e.value].toLowerCase()," have been added."),"success")}}));return function(e){return t.apply(this,arguments)}}())}}));return function(t){return e.apply(this,arguments)}}())}))),new o.Hack(o.category.inventory,"Obtain All Furniture").setClick(s((function*(){var e=yield n.NumberInput.fire("Amount","How many of each piece of furniture would you like?","question");if(e.value&&(yield n.Confirm.fire("Are you sure you want to get all furniture?")).value)return a._.gameData.dorm.forEach((t=>a._.player.house.data.items[t.ID]={A:[],N:e.value})),n.Toast.fire("Furniture Added!","All furniture has been added to your inventory!","success")}))),new o.Hack(o.category.inventory,"Obtain All Mounts","This gives you all of the mounts in the game.").setClick(s((function*(){return a._.player.backpack.data.mount=(0,r.itemify)(a._.gameData.mount,1),n.Toast.fire("Mounts Added!","All mounts have been added to your inventory!")}))),new o.Hack(o.category.inventory,"Remove item").setClick(s((function*(){var e=yield n.Swal.fire({title:"What category would you like to remove an item from?",input:"select",inputOptions:r.names,inputPlaceholder:"Select...",inputValidator:e=>e?"":"Please select which you'd like to obtain.",showCancelButton:!0});if(a._.gameData[r.ids[e.value]]){var t=a._.gameData[r.ids[e.value]].map((e=>e.data.name)),o=yield n.Swal.fire({title:"What specific object categorized as ".concat(r.names[e.value].toLowerCase()," would you like to remove?"),input:"select",inputOptions:t,inputPlaceholder:"Select...",inputValidator:e=>e?"":"Please select which you'd like to get.",showCancelButton:!0});if(o=parseInt(o.value),a._.gameData[r.ids[e.value]][o]){var s=yield n.NumberInput.fire("Amount","How many of the object would you like to remove?","question");if(s.value){if(-1!==a._.player.backpack.data[r.ids[e.value]].findIndex((t=>t.ID===a._.gameData[r.ids[e.value]][o].ID))){var i=a._.player.backpack.data[r.ids[e.value]].findIndex((t=>t.ID===a._.gameData[r.ids[e.value]][o].ID));return a._.player.backpack.data[r.ids[e.value]][i].N-=parseInt(s.value),a._.player.backpack.data[r.ids[e.value]][i].N<=0&&a._.player.backpack.data[r.ids[e.value]].splice(i,1),(0,a.saveCharacter)(),n.Toast.fire("Removed!","Successfully removed ".concat(s.value," ").concat(a._.gameData[r.ids[e.value]][o].name,"!"),"success")}yield n.Swal.fire("Item Does Not Exist","You do not have any ".concat(a._.gameData[r.ids[e.value]][o].name,"."),"error")}}}}))),new o.Hack(o.category.inventory,"Obtain All Furniture").setClick(s((function*(){return(yield n.Confirm.fire("Are you sure you want to get all furniture?")).value?(a._.gameData.dorm.forEach((e=>a._.player.house.data.items[e.ID]={A:[],N:a.VERY_LARGE_NUMBER})),n.Toast.fire("Furniture Added!","All furniture have been added to your inventory!","success")):console.log("Cancelled.")})))}.apply(t,n))||(e.exports=a)},8346:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))}}n=[o,t,o(9820),o(4759),o(2852),o(112)],void 0===(a=function(e,t,o,n,a,r){"use strict";new o.Hack(o.category.location,"Teleport To Map (interactive)").setClick(s((function*(){var e=n.Swal.mixin({focusConfirm:!1,showCancelButton:!0,preConfirm:()=>{var e;return null===(e=document.querySelector(".radioDiv[checked]"))||void 0===e?void 0:e.getAttribute("zone")}}),t=document.createElement("div");t.classList.add("radioContainer");var o=function(e){var o=document.createElement("DIV");o.classList.add("radioDiv"),o.setAttribute("zone",e);var n=a.locations[e];n?o.style.backgroundImage="url(".concat(n,")"):o.innerText=e,o.onclick=()=>{document.querySelectorAll(".radioDiv[checked]").forEach((e=>e.removeAttribute("checked"))),o.setAttribute("checked","")},t.append(o)};for(var r of Object.keys(a.prodigy.world.zones))o(r);var s=yield e.fire({title:"Teleport Zone",html:t,customClass:{popup:"radioSwal"}});if(s.value){var i=Object.keys(a.prodigy.world.zones[s.value].maps),c=yield n.Swal.fire({input:"select",inputOptions:new Map(i.map((e=>[e,e]))),title:"Map",text:"Which map in the zone do you want to teleport to?"});if(c.value){var l=(yield n.NumberInput.fire("Please enter the x to teleport to. (Try 500?)")).value||500,u=(yield n.NumberInput.fire("Please enter the y to teleport to. (Try 500?)")).value||500;return a.prodigy.world.zones[s.value].teleport(c.value,l,u,{},{}),n.Toast.fire("Teleported","You have been teleported!","success")}}}))),new o.Hack(o.category.location,"Teleport to house by userID").setClick(s((function*(){var e=(yield n.NumberInput.fire("Please enter the userID.")).value;if(e)return(0,r.toHouse)(e),n.Toast.fire("Teleported!","You have been teleported!","success")}))),new o.Hack(o.category.location,"Get Map Location").setClick(s((function*(){var e=a._.player.data.zone;navigator.clipboard.writeText(e).then(s((function*(){return console.log("Async: Copying to clipboard was successful!"),n.Swal.fire({title:"Map Location",html:"You are at
".concat(e," .
You can save this to get to the same zone.

Your location is has also been copied to your clipboard."),icon:"info"})})),function(){var t=s((function*(t){return console.error("Async: Could not copy text: ",t),n.Swal.fire({title:"Map Location",html:"You are at
".concat(e," .
You can save this to get to the same zone."),icon:"info"})}));return function(e){return t.apply(this,arguments)}}())})))}.apply(t,n))||(e.exports=a)},3344:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))}}n=[o,t,o(9820),o(2852),o(4759)],void 0===(a=function(e,t,o,n,a){"use strict";new o.Toggler(o.category.minigames,"69x Walk Speed [Dyno Dig]","Walk so fast that you're teleporting, in Dyno Dig.").setEnabled(s((function*(){return n._.instance.game.state.states.get("DinoDig").walkSpeed=69,a.Toast.fire("Enabled!","You will now walk so fast that you're teleporting in Dyno Dig.","success")}))).setDisabled(s((function*(){return n._.instance.game.state.states.get("DinoDig").walkSpeed=1.5,a.Toast.fire("Disabled!","You will now walk at normal speed, in Dyno Dig.","success")})))}.apply(t,n))||(e.exports=a)},465:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))}}n=[o,t,o(4759),o(9820),o(2852)],void 0===(a=function(e,t,o,n,a){"use strict";new n.Hack(n.category.misc,"Skip Tutorial").setClick(s((function*(){var e=(e,t,o,n)=>{a._.instance.prodigy.world.getZone(e).testQuest(t,o,n);try{Object.fromEntries(a._.instance.game.state.states).TileScreen.process()}catch(e){}};e("house",2),e("academy",2),a._.player.state.set("tutorial-0",4),a._.player.backpack.addKeyItem(13,0),a._.player.tutorial.data.menus[14]=[1],a._.instance.prodigy.open.map(!0,[]),a._.player.onTutorialComplete(),a._.player.data.level=Math.max(a._.player.data.level,5)}))),new n.Toggler(n.category.misc,"Disable Monster Encounters").setEnabled(s((function*(){return a._.constants.constants["GameConstants.Debug.SCALE_ENCOUNTER_DISTANCE"]=0,o.Toast.fire("Enabled!","Monsters will no longer battle you.","success")}))).setDisabled((()=>(a._.constants.constants["GameConstants.Debug.SCALE_ENCOUNTER_DISTANCE"]=1,o.Toast.fire("Disabled!","Monsters will now battle you.","success")))),new n.Toggler(n.category.misc,"Skip enemy turn").setEnabled(s((function*(){return a._.constants.constants["GameConstants.Battle.SKIP_ENEMY_TURN"]=!0,o.Toast.fire("Skipping!","Enemy turns will now be skipped.","success")}))).setDisabled((()=>(a._.constants.constants["GameConstants.Battle.SKIP_ENEMY_TURN"]=!1,o.Toast.fire("Disabled","Enemy turns will no longer be skipped.","success")))),new n.Hack(n.category.misc,"Bobbify","Converts your account into Bobby Fancywoman.").setClick(s((function*(){if((yield o.Confirm.fire("Are you sure you want your account to be turned into Bobby Fancywoman?","This action is not reversable.")).value)return a._.player.name.data.nickname=null,a._.player.name.data.firstName=44,a._.player.name.data.middleName=754,a._.player.name.data.lastName=882,a._.player.data.stars=-1e22,a._.player.data.level=69,a._.player.appearance.setGender("male"),a._.player.appearance.setEyeColor(1),a._.player.appearance.setFace(4),a._.player.appearance.setHair(19,1),a._.player.appearance.setSkinColor(1),a._.player.equipment.setFollow(19),a._.player.equipment.setHat(19),a._.player.equipment.setBoots(19),a._.player.equipment.setOutfit(19),a._.player.equipment.setWeapon(19),o.Toast.fire("Bobbified!","You are now Bobby Fancywoman.","success")}))),new n.Hack(n.category.misc,"Reset Account","Completely resets your account.").setClick(s((function*(){if((yield o.Confirm.fire("Are you sure you want to reset your account?","This action is not reversible.")).value)return a._.player.resetAccount(),o.Swal.fire("Reset!","Your account has been reset. Reload Prodigy for the full effect.","success")})));var r=null,i=0;new n.Hack(n.category.misc,"Chat Spammer","Cycles through chat messages pretty fast!").setClick(s((function*(){return r?o.Swal.fire("Already Enabled","Chat Spammer is already enabled. To disable chat spammer, reload Prodigy.","error"):(r=setInterval(s((function*(){a._.player.chatID=i,++i>1164&&(i=0)})),90),o.Toast.fire("Spamming!","You're now sending a chat message every 90 milliseconds!","success"))})));var c=null,l=0;new n.Hack(n.category.misc,"High Chat Spammer","Cycles through chat messages hella fast!").setClick(s((function*(){return c?o.Swal.fire("Already Enabled","High Chat Spammer is already enabled. To disable chat spammer, reload Prodigy.","error"):(yield o.Confirm.fire("Warning","This hack may cause lag on weak computers (ex. School Chromebooks).")).value?(c=setInterval(s((function*(){a._.player.chatID=l,++l>1164&&(l=0)})),30),o.Toast.fire("Spamming!","You're now sending a chat message every 30 milliseconds!","success")):console.log("Cancelled")})));var u=null,d=0;new n.Hack(n.category.misc,"Chat Spammer on Meth","Cycles through chat messages FAST ASF!").setClick(s((function*(){return u?o.Swal.fire("Already Enabled","Chat Spammer on Meth is already enabled. To disable chat spammer, reload Prodigy.","error"):(yield o.Confirm.fire("Warning","This hack may cause lag on weak computers (ex. School Chromebooks).")).value?(u=setInterval(s((function*(){a._.player.chatID=d,++d>1164&&(d=0)})),1),o.Toast.fire("Spamming!","You're now sending a chat message every 1 millisecond!","success")):console.log("Cancelled")}))),new n.Hack(n.category.misc,"[Fix] Fix Battle Crash").setClick(s((function*(){return a._.player.kennel.petTeam.forEach((e=>{e&&e.assignRandomSpells&&e.assignRandomSpells()})),o.Toast.fire("Success!","Fixed kennel attack bug!","success")}))),new n.Hack(n.category.misc,"[Fix] Stuck in Unfinished Tower Fix","Takes you out of an unfinished tower if you're stuck in one.").setClick(s((function*(){return a._.instance.prodigy.world.zones.house.teleport("exit"),o.Toast.fire("Success!","You've been teleported outside of your house.","success")}))),new n.Hack(n.category.misc,"uwu","OwO").setClick(s((function*(){return(yield o.Confirm.fire("Are you sure that you want to UwU OwO?","Reload Prodigy to revert UwU.")).value?(Object.chance=e=>{var t={},o=0;for(var n of Object.keys(e).sort(((e,o)=>t[e]-t[o])))t[n]=[],t[n][0]=o+1,t[n][1]=e[n]+o,o=e[n]+o;return t},Object.random=e=>{var t=Object.values(e),o=t[t.length-1][1],n=Math.randint(o);return Object.reverse(e)[t.find((e=>n>=e[0]&&n<=e[1]))]},Array.prototype.join=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:",";return"string"==typeof e?this.reduce(((t,o,n,a)=>t+(nt+(n0&&void 0!==arguments[0]?arguments[0]:",";return"string"==typeof e?this.reduce(((t,o,n)=>t+(n?e+o:o)),""):e instanceof Function?this.reduce(((t,o,n,a)=>t+(n?e(a[n],n,a)+o:o)),""):void 0},String.UWUFX=e=>{var t=Object.chance({"owo :3":20,"✧w✧":20,UwU:20,OwO:10,rawr:10,"uwu :3":5,":3 meow":15,":3":15,X3:15,"*purrs*":15,owo:15,uwu:15,"^w^":15,"x3 rawr":15,owowowowo:15});return e.split(" ").leftJoin(((e,t)=>0===Math.floor(6*Math.random())&&/[A-Za-z]/.test(e[0])?" ".concat(e[0],"-"):" ")).split(" ").join(((e,o)=>0===Math.floor(5*Math.random())?" ".concat(Object.random(t)," "):" "))},String.UWUTable={y:"wy",l:"w",r:"w",ss:"zs",n:"nw",ove:"uv",ome:"um",x:"ks",com:"cum",stu:"stew",au:"aw"},Math.randint=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Math.floor(Math.random()*e-t)+t},String.prototype.escapeRegex=function(){return this.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")},String.prototype.replaceAll=function(e,t){return this.replace(new RegExp(e.toString().escapeRegex(),"gi"),(e=>t))},Object.fromArrays=(e,t)=>{var o={};return e.forEach(((e,n)=>{o[e]=t[n]})),o},Object.reverse=e=>Object.fromArrays(Object.values(e),Object.keys(e)),String.prototype.bulkReplace=function(e){var t=this;for(var o in e)t=t.replaceAll(o,e[o]);return t},String.UWU=e=>String(e).bulkReplace(String.UWUTable),Object.keys(a._.localizer.dataSource._languageData).map((e=>a._.localizer.dataSource._languageData[e]=String.UWUFX(String.UWU(a._.localizer.dataSource._languageData[e])))),Object.values(a._.gameData).map((e=>e.map((e=>[e.data.name&&(e.data.name=String.UWUFX(String.UWU(e.data.name))),e.name&&(e.name=String.UWUFX(String.UWU(e.name))),e.data.flavorText&&(e.data.flavorText=String.UWUFX(String.UWU(e.data.flavorText)))])))),o.Toast.fire("uwu","Reload Prodigy to fix uwu.","success")):console.log("uwu cancelled")})))}.apply(t,n))||(e.exports=a)},8603:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))}}n=[o,t,o(4759),o(9820),o(2852)],void 0===(a=function(e,t,o,n,a){"use strict";var r=null;new n.Hack(n.category.patched,"Arena Point Increaser [Patched]").setClick(s((function*(){return r?o.Swal.fire("Already Enabled","Arena Point Increaser is already enabled.","error"):(yield o.Confirm.fire("This hack is patched.","Running it will probably do nothing.")).value?(r=setInterval(s((function*(){var e=yield(yield fetch("https://api.prodigygame.com/leaderboard-api/season/".concat(a.prodigy.pvpNetworkHandler.seasonID,"/user/").concat(a._.player.userID,"/pvp?userID=").concat(a._.player.userID),{headers:{authorization:"Bearer ".concat(a.prodigy.network.jwtAuthProvider.getToken()),"content-type":"application/x-www-form-urlencoded; charset=UTF-8"},body:"seasonID=".concat(a.prodigy.pvpNetworkHandler.seasonID,"&action=win"),method:"POST",mode:"cors"})).text();if(""!==e){var t=JSON.parse(e);console.log("[API] ".concat(t.points," Points (+100)"))}else console.log("[API] Failed to add points.")})),60500),o.Swal.fire("Enabled","Arena Point Increaser has been enabled.","success")):console.log("Cancelled")}))),new n.Hack(n.category.patched,"Disable Timeout Dialog [Patched]").setClick(s((function*(){return(yield o.Confirm.fire("This hack is patched.","Running it will probably do nothing.")).value?(a.prodigy.debugMisc.disableTimeoutDialogue(),o.Toast.fire("Enabled","Timeout Dialog has been disabled.","success")):console.log("Cancelled")})))}.apply(t,n))||(e.exports=a)},7736:(module,exports,__webpack_require__)=>{var __webpack_unused_export__,__WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;function asyncGeneratorStep(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function _asyncToGenerator(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var r=e.apply(t,o);function s(e){asyncGeneratorStep(r,n,a,s,i,"next",e)}function i(e){asyncGeneratorStep(r,n,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_require__(112)],__WEBPACK_AMD_DEFINE_RESULT__=function(require,exports,swal_1,index_1,util_1,hackify_1){"use strict";__webpack_unused_export__={value:!0},new index_1.Hack(index_1.category.pets,"Get All Pets").setClick(_asyncToGenerator((function*(){return(yield swal_1.Confirm.fire("Would you like to add all pets to your pets?")).value?(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()})),swal_1.Toast.fire("Success!","All pets have been added!","success")):console.log("Cancelled")}))),new index_1.Hack(index_1.category.pets,"Get All Legacy Epics").setClick(_asyncToGenerator((function*(){return(yield swal_1.Confirm.fire("Would you like to add all legacy epics to your team?")).value?(util_1._.gameData.pet.filter((e=>[125,126,127,128,129,130,131,132,133].includes(e.ID))).forEach((e=>{util_1._.player.kennel.addPet(e.ID.toString(),util_1.VERY_LARGE_NUMBER,26376,100)})),util_1._.player.kennel.petTeam.forEach((e=>{e&&e.assignRandomSpells&&e.assignRandomSpells()})),swal_1.Toast.fire("Success!","All legacy epics have been added!","success")):console.log("Cancelled")}))),new index_1.Hack(index_1.category.pets,"Get All Mythical Epics").setClick(_asyncToGenerator((function*(){return(yield swal_1.Confirm.fire("Would you like to add all mythical epics to your pets?")).value?(util_1._.gameData.pet.filter((e=>[156,157,158,160,168,170].includes(e.ID))).forEach((e=>{util_1._.player.kennel.addPet(e.ID.toString(),util_1.VERY_LARGE_NUMBER,26376,100)})),util_1._.player.kennel.petTeam.forEach((e=>{e&&e.assignRandomSpells&&e.assignRandomSpells()})),swal_1.Toast.fire("Success!","All mythical epics have been added!","success")):console.log("Cancelled")}))),new index_1.Hack(index_1.category.pets,"Clear Pets").setClick(_asyncToGenerator((function*(){return(yield swal_1.Confirm.fire("Would you like to delete all of your pets?")).value?(util_1._.player.kennel.data.length=0,swal_1.Toast.fire("Success!","Your pets have been cleared!","success")):console.log("Cancelled")}))),new index_1.Hack(index_1.category.pets,"Add Pet","Adds a pet from a list.").setClick(_asyncToGenerator((function*(){var e=yield swal_1.Swal.fire({input:"select",inputOptions:new Map(util_1._.gameData.pet.map((e=>[e.ID.toString(),"".concat(e.ID,": ").concat(e.data.name)]))),title:"Choose Pet",text:"Which pet do you want to obtain?"});if(void 0!==e.value)return util_1._.player.kennel.addPet(e.value),util_1._.player.kennel._encounterInfo._data.pets.push({firstSeenDate:Date.now(),ID:e.value,timesBattled:1,timesRescued:1}),swal_1.Toast.fire("Success!","Your chosen pet has been added to your pets!","success")}))),new index_1.Hack(index_1.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(_asyncToGenerator((function*(){var petTeam=util_1._.player.kennel.petTeam.slice(0);petTeam.shift();var names=petTeam.map((e=>e.getName())),pet=yield swal_1.Swal.fire({title:"Which pet would you like to edit?",input:"select",inputOptions:names,inputPlaceholder:"Select...",inputValidator:e=>e?"":"Please select which you'd like to obtain.",showCancelButton:!0}),amt=yield swal_1.NumberInput.fire("Level","What would you like to set your pet's level to? (Can be set over 100)","question");if(amt.value){var num=amt.value;return eval("_.player.kennel.petTeam[parseInt(".concat(pet.value,")+1].getLevel = () => {return ").concat(num,"}")),swal_1.Toast.fire("Updated!","The level of your pet was successfully updated. Note: this hack is client-side.","success")}}))),new index_1.Hack(index_1.category.pets,"Delete Pet","Delete a pet.").setClick(_asyncToGenerator((function*(){var e=yield(0,hackify_1.getPet)("Which pet do you wish to delete?");if(void 0!==e)return util_1._.player.kennel.data.splice(e,1),swal_1.Toast.fire("Successfully deleted!","The selected pet was deleted successfully.","success")})))}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),void 0===__WEBPACK_AMD_DEFINE_RESULT__||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)},7939:(module,exports,__webpack_require__)=>{var __webpack_unused_export__,__WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;function asyncGeneratorStep(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function _asyncToGenerator(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var r=e.apply(t,o);function s(e){asyncGeneratorStep(r,n,a,s,i,"next",e)}function i(e){asyncGeneratorStep(r,n,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_require__(112)],__WEBPACK_AMD_DEFINE_RESULT__=function(require,exports,swal_1,index_1,util_1,hackify_1){"use strict";__webpack_unused_export__={value:!0},new index_1.Hack(index_1.category.player,"Max Account").setClick(_asyncToGenerator((function*(){if(!(yield swal_1.Confirm.fire("Are you sure that you want to max your account?","We recommend doing this on an alt.")).value)return console.log("Cancelled");util_1._.player.data.gold=99e5,console.log("Set player gold to 9900000.");var e=100..value-2;util_1._.player.data.stars=Math.round((1-Math.pow(1.042,e))/(1-1.042)*20+10),util_1._.player.data.level=100,util_1._.player.getLevel=()=>util_1._.player.data.level,console.log("Set player level to 100"),util_1._.player.data.bountyScore=100,console.log("Set player's bounty points to 100.");for(var t=0;t{util_1._.player.backpack.data[e]=(0,hackify_1.itemify)(util_1._.gameData[e].filter((t=>"follow"===e?![125,126,127,128,129,134,135,136,137].includes(t.ID):t)),1..value)})),util_1._.gameData.dorm.forEach((e=>util_1._.player.house.data.items[e.ID]={A:[],N:1..value}));for(var n=()=>util_1._.player.backpack.data.item.findIndex((e=>84===e.ID||85===e.ID||86===e.ID));n()>-1;)util_1._.player.backpack.data.item.splice(n(),1);swal_1.Toast.fire("Success!","All items added!","success"),console.log("All items added!"),util_1._.player.backpack.data.mount=(0,hackify_1.itemify)(util_1._.gameData.mount,1),console.log("Added all mounts.");var a="currency";return util_1._.player.backpack.data[a]=(0,hackify_1.itemify)(util_1._.gameData[a].filter((e=>e)),6969420),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.equipment.setHat(200),util_1._.player.equipment.setBoots(93),util_1._.player.equipment.setOutfit(161),util_1._.player.equipment.setWeapon(196),util_1._.player.appearanceChanged=!0,console.log("Appearance Refreshed."),(0,util_1.saveCharacter)(),console.log("Character Saved."),console.log("Max Account Successful."),swal_1.Toast.fire("Maxed!","Check your backpack!","success")}))),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)return e.value>1e7?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;return 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");if(void 0!==e.value)return 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");if(void 0!==e.value)return 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;t(util_1._.instance.prodigy.gameContainer.get((0,hackify_1.getMemberModule)()).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"),o=(e,t)=>{var o=document.createElement("select");for(var n of(o.classList.add("selectName"),e.entries())){var a=document.createElement("option");[a.value,a.innerText]=n,t(a.value)&&(a.selected=!0),o.options.add(a)}return o},n=(t,n)=>o(new Map(e.filter((e=>e.data.type===t)).map((e=>[e.ID.toString(),e.name]))),(e=>n(+e)));t.append(n(0,(e=>e===util_1._.player.name.data.firstName))),t.append(n(1,(e=>e===util_1._.player.name.data.middleName))),t.append(n(2,(e=>e===util_1._.player.name.data.lastName))),t.append(o(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");if(level.value)return 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*(){return 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*(){return 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")):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 o=util_1._.instance.prodigy.world.zones[t].getCurrentQuestID();return util_1._.instance.prodigy.world.zones[t].completeQuest(o)?(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)});if(e.value)return 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.toString()).then((function(){return 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){return 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();return 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?");if(e.value)return util_1._.player.grade=parseInt(e.value),swal_1.Toast.fire("Success","Successfully changed grade to ".concat(e,"!"),"success")})))}.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,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function _asyncToGenerator(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var r=e.apply(t,o);function s(e){asyncGeneratorStep(r,n,a,s,i,"next",e)}function i(e){asyncGeneratorStep(r,n,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*(){return 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*(){return 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"});return t.ok?swal_1.Toast.fire("Success!","Character has been successfully loaded. Reload for the changes to take effect.","success"):swal_1.Toast.fire("Request failed.","An error occurred while loading the character. Error code: ".concat(t.status),"error")}return 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*(){return(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;return 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*(){return 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);return 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*(){return teleportingInterval=setInterval((()=>{try{util_1._.player._playerContainer.walkSpeed=500}catch(e){}})),swal_1.Toast.fire("Success!","Successfully enabled teleport click.","success")}))).setDisabled(_asyncToGenerator((function*(){return 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*(){return util_1._.network.game._paused=!0,swal_1.Toast.fire("Success!","Successfully paused Prodigy.","success")}))).setDisabled(_asyncToGenerator((function*(){return 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)return console.log("Cancelled.");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 swal_1.Swal.fire({title:"Error",html:"Oops! There was an error with the code!
 ".concat(e," "),icon:"error"})}return 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,o){var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))}}var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};n=[o,t,o(7046),o(2852),o(3526),o(6455),o(4759),o(4719),o(158)],a=function(e,t,o,n,a,r,c,l){"use strict";var u,d,p,h;Object.defineProperty(t,"__esModule",{value:!0}),t.category=t.Toggler=t.Hack=t.toggler=t.wrapper=t.menu=void 0,r=i(r),t.menu=document.createElement("div"),t.wrapper=document.getElementById("game-wrapper"),null===(u=document.getElementById("cheat-menu"))||void 0===u||u.remove(),null===(d=document.getElementById("menu-toggler"))||void 0===d||d.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===(p=t.wrapper)||void 0===p||p.prepend(t.menu),t.toggler=document.createElement("button"),t.toggler.id="menu-toggler";var m=!1;null===(h=t.wrapper)||void 0===h||h.prepend(t.toggler),t.toggler.onclick=()=>{(m=!m)?(t.toggler.innerText="▼",t.menu.style.top="-100vh"):(t.toggler.innerText="▲",t.menu.style.top="10%")},t.toggler.onclick({});var f=document.createElement("DIV");f.classList.add("menu-left"),t.menu.append(f);var g=!0,y=e=>{var t=document.createElement("div");0==g?(t.append(document.createElement("br")),t.append(document.createElement("br"))):g=!1,t.classList.add("menu-area"),t.style.textAlign="center",f.append(t);var o=document.createElement("h1");return o.innerText=e,o.style.textAlign="center",o.style.color="white",t.append(o),t},w=document.createElement("h1");w.classList.add("menu-title"),w.innerText="Prodigy Hacks",w.style.textAlign="center",f.append(w);var b=document.createElement("h2");b.style.fontSize="25px",b.style.color="white",b.innerHTML="
Press SHIFT to show/hide the menu. Scroll down in the menu for more hacks.",f.append(b);var v=document.createElement("h3");v.style.fontSize="20px",v.innerHTML="\n

Join our Discord https://dsc.gg/ProdigyPNP!

\n\n
\n",v.style.color="white",f.append(v);class _{constructor(e,t,o){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),o&&this.setDesc(o)}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,n.saveCharacter)(),console.log("Triggered ".concat(t.name,"."))})),this}setDesc(e){return this.element.title=e,this.description=e,this}}t.Hack=_,t.Toggler=class extends _{constructor(e,t,o){var n;super(e,t,o),n=this,this.parent=e,this.element.setAttribute("status","false"),this.setClick(s((function*(){var e,t;n.status=!n.status,n.status?(localStorage.setItem(n.name,"true"),yield null===(e=n.enabled)||void 0===e?void 0:e.call(n)):(localStorage.setItem(n.name,"false"),yield null===(t=n.disabled)||void 0===t?void 0:t.call(n))})))}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:y("Player Hacks"),inventory:y("Inventory Hacks"),location:y("Location Hacks"),pets:y("Pet Hacks"),battle:y("Battle Hacks"),minigames:y("Minigame Hacks"),misc:y("Miscellaneous Hacks"),utility:y("Utility Hacks"),beta:y("Beta Testing | Beta Hacks may damage your account"),patched:y("Patched Hacks")},localStorage.hasTip?(0,l.IndexInfo)("Player already has tip."):(s((function*(){yield r.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,(0,l.IndexInfo)("Player was shown the tip.")),localStorage.getItem("level")&&(n._.player.getLevel=()=>localStorage.getItem("level"),(0,l.IndexInfo)("Loaded menu from localStorage."));var k=!0;document.addEventListener("keydown",(function(e){"Shift"==e.key&&((0,l.IndexInfo)("Shift key was pressed."),1==k?((0,l.IndexInfo)("Hiding cheat menu..."),document.getElementById("cheat-menu").style.display="none",document.getElementById("menu-toggler").style.display="none",k=!1,(0,l.IndexInfo)("Hidden cheat menu.")):((0,l.IndexInfo)("Showing cheat menu..."),document.getElementById("cheat-menu").style.display="block",document.getElementById("menu-toggler").style.display="block",k=!0,(0,l.IndexInfo)("Shown cheat menu.")))})),s((function*(){var e,t;(yield c.License.fire("ProdigyPNP",'\n

\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 ')).value?yield(0,a.statusMessage)():(yield c.NoLicense.fire("ProdigyPNP License","\n

\n You need to agree to our license to use our hacks. If you changed your mind and now agree to our license, reload Prodigy.\n

\n ")).value?document.location="":(null===(e=document.getElementById("cheat-menu"))||void 0===e||e.remove(),null===(t=document.getElementById("menu-toggler"))||void 0===t||t.remove())}))()}.apply(t,n),void 0===a||(e.exports=a)},8238:(e,t,o)=>{var n,a;n=[o,t,o(9820)],a=function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stopFps=t.startFps=void 0;var n=document.createElement("button"),a=!1;t.startFps=function(){var e;a=!0,n.id="fps-counter",null===(e=o.wrapper)||void 0===e||e.prepend(n),setInterval((()=>{var e=_.player.game.fps._framerate;a?n.innerText=e.toFixed(2)+" FPS":n.remove()}),300)},t.stopFps=function(){var e;a=!1,null===(e=document.getElementById("fps-counter"))||void 0===e||e.remove()}}.apply(t,n),void 0===a||(e.exports=a)},112:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}n=[o,t,o(2852),o(4759)],a=function(e,t,o,n){"use strict";function a(e){o._.instance.prodigy.loading(!0);var t=t=>{var a=null!=t?t[e]:null;if(null!==a&&void 0!==a.house&&null!==a.house){o._.instance.prodigy.loading(!1);var r=o._.cloneDeep(o._.player.house);return r.setItems(a.house),void 0!==a.data.allowsHouseVisitors&&null!==a.data.allowsHouseVisitors&&a.data.allowsHouseVisitors?o._.instance.prodigy.world._("house",null,null,{house:r,getAllowsHouseVisitors:()=>void 0!==a.data.allowsHouseVisitors&&null!==a.data.allowsHouseVisitors&&a.data.allowsHouseVisitors,setAllowsHouseVisitors:e=>{a.data.allowsHouseVisitors=e}}):n.Swal.fire("Teleporting to ".concat(e," is not allowed."),"Try another user.","error")}};return o._.network.getCharData(e.toString(),["house","data"],t,t),n.Toast.fire("Teleported to house","You have been teleported to the house!","success")}Object.defineProperty(t,"__esModule",{value:!0}),t.getPet=t.teleportToHouse=t.toHouse=t.getMemberModule=t.runeify=t.itemify=t.ids=t.names=void 0,t.names=["Boots","Buddies","Fossils","Hats","Items","Key Items","Tower Town Frames","Tower Town Interiors","Mounts","Outfits","Relics","Weapons","Currencies"],t.ids=["boots","follow","fossil","hat","item","key","mathTownFrame","mathTownInterior","mount","outfit","spellRelic","weapon","currency"],t.itemify=(e,t)=>e.map((e=>({ID:e.ID,N:t}))).filter((e=>void 0!==e)),t.runeify=(e,t)=>e.map((e=>({ID:e.ID,quantity:t}))).filter((e=>void 0!==e)),t.getMemberModule=function(){return o._.player.hasMembership.toString().split('"')[1]},t.toHouse=function(e){if(o._.player.userID!==e){var t=o._.instance.prodigy.friendsListNetworkHandler.friendsList.length,r=o._.instance.prodigy.friendsListNetworkHandler.classList.length;o._.instance.prodigy.gameContainer.get("2e1-e659").create("house-visit","click","hub",t,r,null,null,e).broadcast()}var s=o._.instance.prodigy.world.getZone(o._.instance.prodigy.world.getCurrentZone());return s?s.handleLeaving(2,(()=>a(e))):n.Swal.fire({title:"Error",text:"You are not in a zone!",icon:"error"})},t.teleportToHouse=a;var s=function(){var e,t=(e=function*(e){return(yield n.Swal.fire({input:"select",inputOptions:new Map(o._.player.kennel.data.map(((e,t)=>{var n,a,r;return[t.toString(),"Level ".concat(e.level," - ").concat(null!==(n=null!==(a=e.nickname)&&void 0!==a?a:null===(r=o._.gameData.pet.find((t=>+t.ID==+e.ID)))||void 0===r?void 0:r.data.name)&&void 0!==n?n:"Unknown")]}))),title:"Choose Pet",text:e})).value},function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))});return function(e){return t.apply(this,arguments)}}();t.getPet=s}.apply(t,n),void 0===a||(e.exports=a)},2868:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}n=[o,t,o(2852),o(4759)],void 0===(a=function(e,t,o,n){"use strict";window.addEventListener("keydown",(e=>{switch(e.which){case 192:o._.instance.prodigy.open.menuCloseAll();break;case 220:var t=function(){var e,t=(e=function*(){if(!(yield n.Confirm.fire("Kit","Would you like to equip Celestial Gear?")).value)return console.log("Cancelled");o._.player.equipment.setHat(200),o._.player.equipment.setBoots(93),o._.player.equipment.setOutfit(161),o._.player.equipment.setWeapon(196),o._.player.appearanceChanged=!0,n.Toast.fire("Success!","You are now wearing Celestial Armor and wielding a Dual Blade.","success")},function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))});return function(){return t.apply(this,arguments)}}();t()}}))}.apply(t,n))||(e.exports=a)},4719:(e,t,o)=>{var n;n=function(e,t){"use strict";function o(e,o){return""==e||null==e?console.log("["+t.LogPrefix+":unknown] "+o):console.log("["+t.LogPrefix+":"+e+"] "+o)}function n(e,t,n){return o(t,"*"+e.toUpperCase()+"* "+n)}Object.defineProperty(t,"__esModule",{value:!0}),t.UtilityError=t.UtilitySuccess=t.UtilityInfo=t.PlayerError=t.PlayerSuccess=t.PlayerInfo=t.PetsError=t.PetsSuccess=t.PetsInfo=t.PatchedError=t.PatchedSuccess=t.PatchedInfo=t.MiscError=t.MiscSuccess=t.MiscInfo=t.MinigameError=t.MinigameSuccess=t.MinigameInfo=t.LocationError=t.LocationSuccess=t.LocationInfo=t.InventoryError=t.InventorySuccess=t.InventoryInfo=t.BetaError=t.BetaSuccess=t.BetaInfo=t.BattleError=t.BattleSuccess=t.BattleInfo=t.IndexError=t.IndexSuccess=t.IndexInfo=t.StatusLog=t.ConsoleLog=t.LogPrefix=void 0,t.LogPrefix="CheatGUI",t.ConsoleLog=o,t.StatusLog=n,t.IndexInfo=function(e){return n("info","index.ts",e)},t.IndexSuccess=function(e){return n("success","index.ts",e)},t.IndexError=function(e){return n("error","index.ts",e)},t.BattleInfo=function(e){return n("info","battle.ts",e)},t.BattleSuccess=function(e){return n("success","battle.ts",e)},t.BattleError=function(e){return n("error","battle.ts",e)},t.BetaInfo=function(e){return n("info","beta.ts",e)},t.BetaSuccess=function(e){return n("success","beta.ts",e)},t.BetaError=function(e){return n("error","beta.ts",e)},t.InventoryInfo=function(e){return n("info","inventory.ts",e)},t.InventorySuccess=function(e){return n("success","inventory.ts",e)},t.InventoryError=function(e){return n("error","inventory.ts",e)},t.LocationInfo=function(e){return n("info","location.ts",e)},t.LocationSuccess=function(e){return n("success","location.ts",e)},t.LocationError=function(e){return n("error","location.ts",e)},t.MinigameInfo=function(e){return n("info","minigame.ts",e)},t.MinigameSuccess=function(e){return n("success","minigame.ts",e)},t.MinigameError=function(e){return n("error","minigame.ts",e)},t.MiscInfo=function(e){return n("info","misc.ts",e)},t.MiscSuccess=function(e){return n("success","misc.ts",e)},t.MiscError=function(e){return n("error","misc.ts",e)},t.PatchedInfo=function(e){return n("info","patched.ts",e)},t.PatchedSuccess=function(e){return n("success","patched.ts",e)},t.PatchedError=function(e){return n("error","patched.ts",e)},t.PetsInfo=function(e){return n("info","pets.ts",e)},t.PetsSuccess=function(e){return n("success","pets.ts",e)},t.PetsError=function(e){return n("error","pets.ts",e)},t.PlayerInfo=function(e){return n("info","player.ts",e)},t.PlayerSuccess=function(e){return n("success","player.ts",e)},t.PlayerError=function(e){return n("error","player.ts",e)},t.UtilityInfo=function(e){return n("info","utility.ts",e)},t.UtilitySuccess=function(e){return n("success","utility.ts",e)},t.UtilityError=function(e){return n("error","utility.ts",e)}}.apply(t,[o,t]),void 0===n||(e.exports=n)},3131:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))}}n=[o,t,o(2852)],a=function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PopupInterval=void 0;var n=!1;t.PopupInterval=function(e){n=e},s((function*(){setInterval(s((function*(){n&&o._.instance.prodigy.open.menuCloseAll()})),200)}))()}.apply(t,n),void 0===a||(e.exports=a)},3526:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))}}n=[o,t,o(4759)],a=function(e,t,o){"use strict";function n(){return(n=s((function*(){var e=o.Swal.mixin({title:"PHEx 3.0.0",icon:"info",showCancelButton:!0,showConfirmButton:!0,confirmButtonText:"Update to 3.0.0",cancelButtonText:"I've already updated.",html:"

WE DID IT!! PHEx 3.0.0 IS NOW RELESED!!!

We've released a new version of PHEx! We strongly reccomend updating to PHEx 3.0.0.

Update now!

"});(yield(yield e.fire()).value)&&(window.location.href="https://github.com/ProdigyPNP/ProdigyMathGameHacking/releases/latest")}))).apply(this,arguments)}Object.defineProperty(t,"__esModule",{value:!0}),t.statusMessage=void 0,t.statusMessage=function(){return n.apply(this,arguments)}}.apply(t,n),void 0===a||(e.exports=a)},4759:function(e,t,o){var n,a,r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};n=[o,t,o(6455)],a=function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NoLicense=t.License=t.Info=t.Confirm=t.Toast=t.NumberInput=t.Input=t.Swal=void 0,o=r(o),t.Swal=o.default,t.Input=t.Swal.mixin({input:"text",showCancelButton:!0,showConfirmButton:!0,toast:!1}),t.NumberInput=t.Input.mixin({toast:!1,input:"number"}),t.Toast=t.Swal.mixin({toast:!0,position:"bottom"}),t.Confirm=t.Swal.mixin({icon:"warning",showCancelButton:!0,toast:!1,confirmButtonText:"Confirm",cancelButtonText:"Cancel"}),t.Info=t.Swal.mixin({icon:"info",showCancelButton:!1,toast:!1}),t.License=t.Swal.mixin({icon:"info",showCancelButton:!0,toast:!1,confirmButtonText:"Agree",cancelButtonText:"Disagree"}),t.NoLicense=t.Swal.mixin({icon:"error",showCancelButton:!0,toast:!1,confirmButtonText:"Reload",cancelButtonText:"Play without hacks"})}.apply(t,n),void 0===a||(e.exports=a)},2852:(e,t,o)=>{var n;n=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 o=t._.instance;t.game=o.game,t.prodigy=o.prodigy,t.gameData=t._.instance.game.state.states.get("Boot").gameData,t.getItem=(e,o)=>{var n;return null!==(n=t._.gameData[e].find((e=>e.ID===o)))&&void 0!==n?n: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,[o,t]),void 0===n||(e.exports=n)},450:(e,t,o)=>{"use strict";o.d(t,{Z:()=>i});var n=o(8081),a=o.n(n),r=o(3645),s=o.n(r)()(a());s.push([e.id,"@import url(https://fonts.googleapis.com/css?family=Arvo:400,700|Sen:400,700,800&display=swap&subset=latin-ext);"]),s.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;font-size:23px;height:26px;width:50px;border:1px solid rgba(0,0,0,.1)}#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 #fps-counter{z-index:2;position:absolute;border-radius:3px;background-color:rgba(255,255,255,.7333333333);transition:background-color .15s;width:130px;height:26px;font-size:23px;border:1px solid rgba(0,0,0,.1);margin-left:83%}#game-wrapper #fps-counter:hover{background-color:rgba(221,221,221,.7333333333)}#game-wrapper #fps-counter: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:rgba(0,0,0,.55);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;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 i=s},3645:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var o="",n=void 0!==t[5];return t[4]&&(o+="@supports (".concat(t[4],") {")),t[2]&&(o+="@media ".concat(t[2]," {")),n&&(o+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),o+=e(t),n&&(o+="}"),t[2]&&(o+="}"),t[4]&&(o+="}"),o})).join("")},t.i=function(e,o,n,a,r){"string"==typeof e&&(e=[[null,e,void 0]]);var s={};if(n)for(var i=0;i0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=r),o&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=o):u[2]=o),a&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=a):u[4]="".concat(a)),t.push(u))}},t}},8081:e=>{"use strict";e.exports=function(e){return e[1]}},1227:(e,t,o)=>{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 o="color: "+this.color;t.splice(1,0,o,"color: inherit");let n=0,a=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(n++,"%c"===e&&(a=n))})),t.splice(a,0,o)},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=o(2447)(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},2447:(e,t,o)=>{e.exports=function(e){function t(e){let o,a,r,s=null;function i(...e){if(!i.enabled)return;const n=i,a=Number(new Date),r=a-(o||a);n.diff=r,n.prev=o,n.curr=a,o=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,((o,a)=>{if("%%"===o)return"%";s++;const r=t.formatters[a];if("function"==typeof r){const t=e[s];o=r.call(n,t),e.splice(s,1),s--}return o})),t.formatArgs.call(n,e),(n.log||t.log).apply(n,e)}return i.namespace=e,i.useColors=t.useColors(),i.color=t.selectColor(e),i.extend=n,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 n(e,o){const n=t(this.namespace+(void 0===o?":":o)+e);return n.log=this.log,n}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 o;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const n=("string"==typeof e?e:"").split(/[\s,]+/),a=n.length;for(o=0;o{t[o]=e[o]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let o=0;for(let t=0;t{var t=1e3,o=60*t,n=60*o,a=24*n;function r(e,t,o,n){var a=t>=1.5*o;return Math.round(e/o)+" "+n+(a?"s":"")}e.exports=function(e,s){s=s||{};var i,c,l=typeof e;if("string"===l&&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*n;case"minutes":case"minute":case"mins":case"min":case"m":return s*o;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"===l&&isFinite(e))return s.long?(i=e,(c=Math.abs(i))>=a?r(i,c,a,"day"):c>=n?r(i,c,n,"hour"):c>=o?r(i,c,o,"minute"):c>=t?r(i,c,t,"second"):i+" ms"):function(e){var r=Math.abs(e);return r>=a?Math.round(e/a)+"d":r>=n?Math.round(e/n)+"h":r>=o?Math.round(e/o)+"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,o)=>{"use strict";o.r(t),o.d(t,{default:()=>y});var n=o(3379),a=o.n(n),r=o(7795),s=o.n(r),i=o(569),c=o.n(i),l=o(3565),u=o.n(l),d=o(9216),p=o.n(d),h=o(4589),m=o.n(h),f=o(450),g={};g.styleTagTransform=m(),g.setAttributes=u(),g.insert=c().bind(null,"head"),g.domAPI=s(),g.insertStyleElement=p(),a()(f.Z,g);const y=f.Z&&f.Z.locals?f.Z.locals:void 0},3379:e=>{"use strict";var t=[];function o(e){for(var o=-1,n=0;n{"use strict";var t={};e.exports=function(e,o){var n=function(e){if(void 0===t[e]){var o=document.querySelector(e);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(e){o=null}t[e]=o}return t[e]}(e);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(o)}},9216:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},3565:(e,t,o)=>{"use strict";e.exports=function(e){var t=o.nc;t&&e.setAttribute("nonce",t)}},7795:e=>{"use strict";e.exports=function(e){var t=e.insertStyleElement(e);return{update:function(o){!function(e,t,o){var n="";o.supports&&(n+="@supports (".concat(o.supports,") {")),o.media&&(n+="@media ".concat(o.media," {"));var a=void 0!==o.layer;a&&(n+="@layer".concat(o.layer.length>0?" ".concat(o.layer):""," {")),n+=o.css,a&&(n+="}"),o.media&&(n+="}"),o.supports&&(n+="}");var r=o.sourceMap;r&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(r))))," */")),t.styleTagTransform(n,e,t.options)}(t,e,o)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},4589:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},6455:function(e){e.exports=function(){"use strict";const e="SweetAlert2:",t=e=>e.charAt(0).toUpperCase()+e.slice(1),o=t=>{console.warn("".concat(e," ").concat("object"==typeof t?t.join(" "):t))},n=t=>{console.error("".concat(e," ").concat(t))},a=[],r=(e,t)=>{var n;n='"'.concat(e,'" is deprecated and will be removed in the next major release. Please use "').concat(t,'" instead.'),a.includes(n)||(a.push(n),o(n))},s=e=>"function"==typeof e?e():e,i=e=>e&&"function"==typeof e.toPromise,c=e=>i(e)?e.toPromise():Promise.resolve(e),l=e=>e&&Promise.resolve(e)===e,u={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,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",color:void 0,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,willOpen:void 0,didOpen:void 0,didRender:void 0,willClose:void 0,didClose:void 0,didDestroy:void 0,scrollbarPadding:!0},d=["allowEscapeKey","allowOutsideClick","background","buttonsStyling","cancelButtonAriaLabel","cancelButtonColor","cancelButtonText","closeButtonAriaLabel","closeButtonHtml","color","confirmButtonAriaLabel","confirmButtonColor","confirmButtonText","currentProgressStep","customClass","denyButtonAriaLabel","denyButtonColor","denyButtonText","didClose","didDestroy","footer","hideClass","html","icon","iconColor","iconHtml","imageAlt","imageHeight","imageUrl","imageWidth","preConfirm","preDeny","progressSteps","returnFocus","reverseButtons","showCancelButton","showCloseButton","showConfirmButton","showDenyButton","text","title","titleText","willClose"],p={},h=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],m=e=>Object.prototype.hasOwnProperty.call(u,e),f=e=>-1!==d.indexOf(e),g=e=>p[e],y=e=>{m(e)||o('Unknown parameter "'.concat(e,'"'))},w=e=>{h.includes(e)&&o('The parameter "'.concat(e,'" is incompatible with toasts'))},b=e=>{g(e)&&r(e,g(e))},v=e=>{const t={};for(const o in e)t[e[o]]="swal2-"+e[o];return t},_=v(["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","show","hide","close","title","html-container","actions","confirm","deny","cancel","default-outline","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","input-label","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loader","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error","no-war"]),k=v(["success","warning","info","question","error"]),C=()=>document.body.querySelector(".".concat(_.container)),x=e=>{const t=C();return t?t.querySelector(e):null},E=e=>x(".".concat(e)),S=()=>E(_.popup),T=()=>E(_.icon),P=()=>E(_.title),A=()=>E(_["html-container"]),I=()=>E(_.image),B=()=>E(_["progress-steps"]),D=()=>E(_["validation-message"]),O=()=>x(".".concat(_.actions," .").concat(_.confirm)),R=()=>x(".".concat(_.actions," .").concat(_.deny)),M=()=>x(".".concat(_.loader)),L=()=>x(".".concat(_.actions," .").concat(_.cancel)),N=()=>E(_.actions),j=()=>E(_.footer),H=()=>E(_["timer-progress-bar"]),F=()=>E(_.close),q=()=>{const e=Array.from(S().querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])')).sort(((e,t)=>{const o=parseInt(e.getAttribute("tabindex")),n=parseInt(t.getAttribute("tabindex"));return o>n?1:o"-1"!==e.getAttribute("tabindex")));return(e=>{const t=[];for(let o=0;ore(e)))},U=()=>V(document.body,_.shown)&&!V(document.body,_["toast-shown"])&&!V(document.body,_["no-backdrop"]),Y=()=>S()&&V(S(),_.toast),z={previousBodyPadding:null},W=(e,t)=>{if(e.textContent="",t){const o=(new DOMParser).parseFromString(t,"text/html");Array.from(o.querySelector("head").childNodes).forEach((t=>{e.appendChild(t)})),Array.from(o.querySelector("body").childNodes).forEach((t=>{e.appendChild(t)}))}},V=(e,t)=>{if(!t)return!1;const o=t.split(/\s+/);for(let t=0;t{if(((e,t)=>{Array.from(e.classList).forEach((o=>{Object.values(_).includes(o)||Object.values(k).includes(o)||Object.values(t.showClass).includes(o)||e.classList.remove(o)}))})(e,t),t.customClass&&t.customClass[n]){if("string"!=typeof t.customClass[n]&&!t.customClass[n].forEach)return o("Invalid type of customClass.".concat(n,'! Expected string or iterable object, got "').concat(typeof t.customClass[n],'"'));J(e,t.customClass[n])}},K=(e,t)=>{if(!t)return null;switch(t){case"select":case"textarea":case"file":return e.querySelector(".".concat(_.popup," > .").concat(_[t]));case"checkbox":return e.querySelector(".".concat(_.popup," > .").concat(_.checkbox," input"));case"radio":return e.querySelector(".".concat(_.popup," > .").concat(_.radio," input:checked"))||e.querySelector(".".concat(_.popup," > .").concat(_.radio," input:first-child"));case"range":return e.querySelector(".".concat(_.popup," > .").concat(_.range," input"));default:return e.querySelector(".".concat(_.popup," > .").concat(_.input))}},$=e=>{if(e.focus(),"file"!==e.type){const t=e.value;e.value="",e.value=t}},Z=(e,t,o)=>{e&&t&&("string"==typeof t&&(t=t.split(/\s+/).filter(Boolean)),t.forEach((t=>{Array.isArray(e)?e.forEach((e=>{o?e.classList.add(t):e.classList.remove(t)})):o?e.classList.add(t):e.classList.remove(t)})))},J=(e,t)=>{Z(e,t,!0)},X=(e,t)=>{Z(e,t,!1)},Q=(e,t)=>{const o=Array.from(e.children);for(let e=0;e{o==="".concat(parseInt(o))&&(o=parseInt(o)),o||0===parseInt(o)?e.style[t]="number"==typeof o?"".concat(o,"px"):o:e.style.removeProperty(t)},te=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"flex";e.style.display=t},oe=e=>{e.style.display="none"},ne=(e,t,o,n)=>{const a=e.querySelector(t);a&&(a.style[o]=n)},ae=function(e,t){t?te(e,arguments.length>2&&void 0!==arguments[2]?arguments[2]:"flex"):oe(e)},re=e=>!(!e||!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)),se=e=>!!(e.scrollHeight>e.clientHeight),ie=e=>{const t=window.getComputedStyle(e),o=parseFloat(t.getPropertyValue("animation-duration")||"0"),n=parseFloat(t.getPropertyValue("transition-duration")||"0");return o>0||n>0},ce=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const o=H();re(o)&&(t&&(o.style.transition="none",o.style.width="100%"),setTimeout((()=>{o.style.transition="width ".concat(e/1e3,"s linear"),o.style.width="0%"}),10))},le=()=>"undefined"==typeof window||"undefined"==typeof document,ue={},de=e=>new Promise((t=>{if(!e)return t();const o=window.scrollX,n=window.scrollY;ue.restoreFocusTimeout=setTimeout((()=>{ue.previousActiveElement instanceof HTMLElement?(ue.previousActiveElement.focus(),ue.previousActiveElement=null):document.body&&document.body.focus(),t()}),100),window.scrollTo(o,n)})),pe='\n
\n \n
    \n
    \n \n

    \n
    \n \n \n
    \n \n \n
    \n \n
    \n \n \n
    \n
    \n
    \n \n \n \n
    \n
    \n
    \n
    \n
    \n
    \n').replace(/(^|\n)\s*/g,""),he=()=>{ue.currentInstance.resetValidationMessage()},me=e=>{const t=(()=>{const e=C();return!!e&&(e.remove(),X([document.documentElement,document.body],[_["no-backdrop"],_["toast-shown"],_["has-column"]]),!0)})();if(le())return void n("SweetAlert2 requires document to initialize");const o=document.createElement("div");o.className=_.container,t&&J(o,_["no-transition"]),W(o,pe);const a="string"==typeof(r=e.target)?document.querySelector(r):r;var r;a.appendChild(o),(e=>{const t=S();t.setAttribute("role",e.toast?"alert":"dialog"),t.setAttribute("aria-live",e.toast?"polite":"assertive"),e.toast||t.setAttribute("aria-modal","true")})(e),(e=>{"rtl"===window.getComputedStyle(e).direction&&J(C(),_.rtl)})(a),(()=>{const e=S(),t=Q(e,_.input),o=Q(e,_.file),n=e.querySelector(".".concat(_.range," input")),a=e.querySelector(".".concat(_.range," output")),r=Q(e,_.select),s=e.querySelector(".".concat(_.checkbox," input")),i=Q(e,_.textarea);t.oninput=he,o.onchange=he,r.onchange=he,s.onchange=he,i.oninput=he,n.oninput=()=>{he(),a.value=n.value},n.onchange=()=>{he(),a.value=n.value}})()},fe=(e,t)=>{e instanceof HTMLElement?t.appendChild(e):"object"==typeof e?ge(e,t):e&&W(t,e)},ge=(e,t)=>{e.jquery?ye(t,e):W(t,e.toString())},ye=(e,t)=>{if(e.textContent="",0 in t)for(let o=0;o in t;o++)e.appendChild(t[o].cloneNode(!0));else e.appendChild(t.cloneNode(!0))},we=(()=>{if(le())return!1;const e=document.createElement("div"),t={WebkitAnimation:"webkitAnimationEnd",animation:"animationend"};for(const o in t)if(Object.prototype.hasOwnProperty.call(t,o)&&void 0!==e.style[o])return t[o];return!1})(),be=(e,t)=>{const o=N(),n=M();t.showConfirmButton||t.showDenyButton||t.showCancelButton?te(o):oe(o),G(o,t,"actions"),function(e,t,o){const n=O(),a=R(),r=L();ve(n,"confirm",o),ve(a,"deny",o),ve(r,"cancel",o),function(e,t,o,n){if(!n.buttonsStyling)return X([e,t,o],_.styled);J([e,t,o],_.styled),n.confirmButtonColor&&(e.style.backgroundColor=n.confirmButtonColor,J(e,_["default-outline"])),n.denyButtonColor&&(t.style.backgroundColor=n.denyButtonColor,J(t,_["default-outline"])),n.cancelButtonColor&&(o.style.backgroundColor=n.cancelButtonColor,J(o,_["default-outline"]))}(n,a,r,o),o.reverseButtons&&(o.toast?(e.insertBefore(r,n),e.insertBefore(a,n)):(e.insertBefore(r,t),e.insertBefore(a,t),e.insertBefore(n,t)))}(o,n,t),W(n,t.loaderHtml),G(n,t,"loader")};function ve(e,o,n){ae(e,n["show".concat(t(o),"Button")],"inline-block"),W(e,n["".concat(o,"ButtonText")]),e.setAttribute("aria-label",n["".concat(o,"ButtonAriaLabel")]),e.className=_[o],G(e,n,"".concat(o,"Button")),J(e,n["".concat(o,"ButtonClass")])}const _e=(e,t)=>{const n=C();n&&(function(e,t){"string"==typeof t?e.style.background=t:t||J([document.documentElement,document.body],_["no-backdrop"])}(n,t.backdrop),function(e,t){t in _?J(e,_[t]):(o('The "position" parameter is not valid, defaulting to "center"'),J(e,_.center))}(n,t.position),function(e,t){if(t&&"string"==typeof t){const o="grow-".concat(t);o in _&&J(e,_[o])}}(n,t.grow),G(n,t,"container"))};var ke={awaitingPromise:new WeakMap,promise:new WeakMap,innerParams:new WeakMap,domCache:new WeakMap};const Ce=["input","file","range","select","radio","checkbox","textarea"],xe=e=>{if(!Be[e.input])return n('Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "'.concat(e.input,'"'));const t=Ae(e.input),o=Be[e.input](t,e);te(t),setTimeout((()=>{$(o)}))},Ee=(e,t)=>{const o=K(S(),e);if(o){(e=>{for(let t=0;t{const t=Ae(e.input);"object"==typeof e.customClass&&J(t,e.customClass.input)},Te=(e,t)=>{e.placeholder&&!t.inputPlaceholder||(e.placeholder=t.inputPlaceholder)},Pe=(e,t,o)=>{if(o.inputLabel){e.id=_.input;const n=document.createElement("label"),a=_["input-label"];n.setAttribute("for",e.id),n.className=a,"object"==typeof o.customClass&&J(n,o.customClass.inputLabel),n.innerText=o.inputLabel,t.insertAdjacentElement("beforebegin",n)}},Ae=e=>Q(S(),_[e]||_.input),Ie=(e,t)=>{["string","number"].includes(typeof t)?e.value="".concat(t):l(t)||o('Unexpected type of inputValue! Expected "string", "number" or "Promise", got "'.concat(typeof t,'"'))},Be={};Be.text=Be.email=Be.password=Be.number=Be.tel=Be.url=(e,t)=>(Ie(e,t.inputValue),Pe(e,e,t),Te(e,t),e.type=t.input,e),Be.file=(e,t)=>(Pe(e,e,t),Te(e,t),e),Be.range=(e,t)=>{const o=e.querySelector("input"),n=e.querySelector("output");return Ie(o,t.inputValue),o.type=t.input,Ie(n,t.inputValue),Pe(o,e,t),e},Be.select=(e,t)=>{if(e.textContent="",t.inputPlaceholder){const o=document.createElement("option");W(o,t.inputPlaceholder),o.value="",o.disabled=!0,o.selected=!0,e.appendChild(o)}return Pe(e,e,t),e},Be.radio=e=>(e.textContent="",e),Be.checkbox=(e,t)=>{const o=K(S(),"checkbox");o.value="1",o.id=_.checkbox,o.checked=Boolean(t.inputValue);const n=e.querySelector("span");return W(n,t.inputPlaceholder),o},Be.textarea=(e,t)=>{Ie(e,t.inputValue),Te(e,t),Pe(e,e,t);return setTimeout((()=>{if("MutationObserver"in window){const t=parseInt(window.getComputedStyle(S()).width);new MutationObserver((()=>{const o=e.offsetWidth+(n=e,parseInt(window.getComputedStyle(n).marginLeft)+parseInt(window.getComputedStyle(n).marginRight));var n;S().style.width=o>t?"".concat(o,"px"):null})).observe(e,{attributes:!0,attributeFilter:["style"]})}})),e};const De=(e,t)=>{const o=A();G(o,t,"htmlContainer"),t.html?(fe(t.html,o),te(o,"block")):t.text?(o.textContent=t.text,te(o,"block")):oe(o),((e,t)=>{const o=S(),n=ke.innerParams.get(e),a=!n||t.input!==n.input;Ce.forEach((e=>{const n=Q(o,_[e]);Ee(e,t.inputAttributes),n.className=_[e],a&&oe(n)})),t.input&&(a&&xe(t),Se(t))})(e,t)},Oe=(e,t)=>{for(const o in k)t.icon!==o&&X(e,k[o]);J(e,k[t.icon]),Le(e,t),Re(),G(e,t,"icon")},Re=()=>{const e=S(),t=window.getComputedStyle(e).getPropertyValue("background-color"),o=e.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");for(let e=0;e{let o,n=e.innerHTML;t.iconHtml?o=Ne(t.iconHtml):"success"===t.icon?(o='\n
    \n \n
    \n
    \n',n=n.replace(/ style=".*?"/g,"")):o="error"===t.icon?'\n \n \n \n \n':Ne({question:"?",warning:"!",info:"i"}[t.icon]),n.trim()!==o.trim()&&W(e,o)},Le=(e,t)=>{if(t.iconColor){e.style.color=t.iconColor,e.style.borderColor=t.iconColor;for(const o of[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"])ne(e,o,"backgroundColor",t.iconColor);ne(e,".swal2-success-ring","borderColor",t.iconColor)}},Ne=e=>'
    ').concat(e,"
    "),je=e=>{const t=document.createElement("li");return J(t,_["progress-step"]),W(t,e),t},He=e=>{const t=document.createElement("li");return J(t,_["progress-step-line"]),e.progressStepsDistance&&ee(t,"width",e.progressStepsDistance),t},Fe=(e,t)=>{e.className="".concat(_.popup," ").concat(re(e)?t.showClass.popup:""),t.toast?(J([document.documentElement,document.body],_["toast-shown"]),J(e,_.toast)):J(e,_.modal),G(e,t,"popup"),"string"==typeof t.customClass&&J(e,t.customClass),t.icon&&J(e,_["icon-".concat(t.icon)])},qe=(e,t)=>{((e,t)=>{const o=C(),n=S();t.toast?(ee(o,"width",t.width),n.style.width="100%",n.insertBefore(M(),T())):ee(n,"width",t.width),ee(n,"padding",t.padding),t.color&&(n.style.color=t.color),t.background&&(n.style.background=t.background),oe(D()),Fe(n,t)})(0,t),_e(0,t),((e,t)=>{const n=B();if(!t.progressSteps||0===t.progressSteps.length)return oe(n);te(n),n.textContent="",t.currentProgressStep>=t.progressSteps.length&&o("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),t.progressSteps.forEach(((e,o)=>{const a=je(e);if(n.appendChild(a),o===t.currentProgressStep&&J(a,_["active-progress-step"]),o!==t.progressSteps.length-1){const e=He(t);n.appendChild(e)}}))})(0,t),((e,t)=>{const o=ke.innerParams.get(e),a=T();if(o&&t.icon===o.icon)return Me(a,t),void Oe(a,t);if(t.icon||t.iconHtml){if(t.icon&&-1===Object.keys(k).indexOf(t.icon))return n('Unknown icon! Expected "success", "error", "warning", "info" or "question", got "'.concat(t.icon,'"')),void oe(a);te(a),Me(a,t),Oe(a,t),J(a,t.showClass.icon)}else oe(a)})(e,t),((e,t)=>{const o=I();if(!t.imageUrl)return oe(o);te(o,""),o.setAttribute("src",t.imageUrl),o.setAttribute("alt",t.imageAlt),ee(o,"width",t.imageWidth),ee(o,"height",t.imageHeight),o.className=_.image,G(o,t,"image")})(0,t),((e,t)=>{const o=P();ae(o,t.title||t.titleText,"block"),t.title&&fe(t.title,o),t.titleText&&(o.innerText=t.titleText),G(o,t,"title")})(0,t),((e,t)=>{const o=F();W(o,t.closeButtonHtml),G(o,t,"closeButton"),ae(o,t.showCloseButton),o.setAttribute("aria-label",t.closeButtonAriaLabel)})(0,t),De(e,t),be(0,t),((e,t)=>{const o=j();ae(o,t.footer),t.footer&&fe(t.footer,o),G(o,t,"footer")})(0,t),"function"==typeof t.didRender&&t.didRender(S())},Ue=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),Ye=()=>{Array.from(document.body.children).forEach((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")}))},ze=["swal-title","swal-html","swal-footer"],We=e=>{const t={};return Array.from(e.querySelectorAll("swal-param")).forEach((e=>{Xe(e,["name","value"]);const o=e.getAttribute("name"),n=e.getAttribute("value");"boolean"==typeof u[o]&&"false"===n&&(t[o]=!1),"object"==typeof u[o]&&(t[o]=JSON.parse(n))})),t},Ve=e=>{const o={};return Array.from(e.querySelectorAll("swal-button")).forEach((e=>{Xe(e,["type","color","aria-label"]);const n=e.getAttribute("type");o["".concat(n,"ButtonText")]=e.innerHTML,o["show".concat(t(n),"Button")]=!0,e.hasAttribute("color")&&(o["".concat(n,"ButtonColor")]=e.getAttribute("color")),e.hasAttribute("aria-label")&&(o["".concat(n,"ButtonAriaLabel")]=e.getAttribute("aria-label"))})),o},Ge=e=>{const t={},o=e.querySelector("swal-image");return o&&(Xe(o,["src","width","height","alt"]),o.hasAttribute("src")&&(t.imageUrl=o.getAttribute("src")),o.hasAttribute("width")&&(t.imageWidth=o.getAttribute("width")),o.hasAttribute("height")&&(t.imageHeight=o.getAttribute("height")),o.hasAttribute("alt")&&(t.imageAlt=o.getAttribute("alt"))),t},Ke=e=>{const t={},o=e.querySelector("swal-icon");return o&&(Xe(o,["type","color"]),o.hasAttribute("type")&&(t.icon=o.getAttribute("type")),o.hasAttribute("color")&&(t.iconColor=o.getAttribute("color")),t.iconHtml=o.innerHTML),t},$e=e=>{const t={},o=e.querySelector("swal-input");o&&(Xe(o,["type","label","placeholder","value"]),t.input=o.getAttribute("type")||"text",o.hasAttribute("label")&&(t.inputLabel=o.getAttribute("label")),o.hasAttribute("placeholder")&&(t.inputPlaceholder=o.getAttribute("placeholder")),o.hasAttribute("value")&&(t.inputValue=o.getAttribute("value")));const n=Array.from(e.querySelectorAll("swal-input-option"));return n.length&&(t.inputOptions={},n.forEach((e=>{Xe(e,["value"]);const o=e.getAttribute("value"),n=e.innerHTML;t.inputOptions[o]=n}))),t},Ze=(e,t)=>{const o={};for(const n in t){const a=t[n],r=e.querySelector(a);r&&(Xe(r,[]),o[a.replace(/^swal-/,"")]=r.innerHTML.trim())}return o},Je=e=>{const t=ze.concat(["swal-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Array.from(e.children).forEach((e=>{const n=e.tagName.toLowerCase();-1===t.indexOf(n)&&o("Unrecognized element <".concat(n,">"))}))},Xe=(e,t)=>{Array.from(e.attributes).forEach((n=>{-1===t.indexOf(n.name)&&o(['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.")])}))};var Qe={email:(e,t)=>/^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]{2,24}$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid email address"),url:(e,t)=>/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid URL")};function et(e){(function(e){e.inputValidator||Object.keys(Qe).forEach((t=>{e.input===t&&(e.inputValidator=Qe[t])}))})(e),e.showLoaderOnConfirm&&!e.preConfirm&&o("showLoaderOnConfirm is set to true, but preConfirm is not defined.\nshowLoaderOnConfirm should be used together with preConfirm, see usage example:\nhttps://sweetalert2.github.io/#ajax-request"),function(e){(!e.target||"string"==typeof e.target&&!document.querySelector(e.target)||"string"!=typeof e.target&&!e.target.appendChild)&&(o('Target parameter is not valid, defaulting to "body"'),e.target="body")}(e),"string"==typeof e.title&&(e.title=e.title.split("\n").join("
    ")),me(e)}class tt{constructor(e,t){this.callback=e,this.remaining=t,this.running=!1,this.start()}start(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}stop(){return this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=(new Date).getTime()-this.started.getTime()),this.remaining}increase(e){const t=this.running;return t&&this.stop(),this.remaining+=e,t&&this.start(),this.remaining}getTimerLeft(){return this.running&&(this.stop(),this.start()),this.remaining}isRunning(){return this.running}}const ot=()=>{null===z.previousBodyPadding&&document.body.scrollHeight>window.innerHeight&&(z.previousBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight="".concat(z.previousBodyPadding+(()=>{const e=document.createElement("div");e.className=_["scrollbar-measure"],document.body.appendChild(e);const t=e.getBoundingClientRect().width-e.clientWidth;return document.body.removeChild(e),t})(),"px"))},nt=()=>{const e=navigator.userAgent,t=!!e.match(/iPad/i)||!!e.match(/iPhone/i),o=!!e.match(/WebKit/i);if(t&&o&&!e.match(/CriOS/i)){const e=44;S().scrollHeight>window.innerHeight-e&&(C().style.paddingBottom="".concat(e,"px"))}},at=()=>{const e=C();let t;e.ontouchstart=e=>{t=rt(e)},e.ontouchmove=e=>{t&&(e.preventDefault(),e.stopPropagation())}},rt=e=>{const t=e.target,o=C();return!(st(e)||it(e)||t!==o&&(se(o)||"INPUT"===t.tagName||"TEXTAREA"===t.tagName||se(A())&&A().contains(t)))},st=e=>e.touches&&e.touches.length&&"stylus"===e.touches[0].touchType,it=e=>e.touches&&e.touches.length>1,ct=e=>{const t=C(),o=S();"function"==typeof e.willOpen&&e.willOpen(o);const n=window.getComputedStyle(document.body).overflowY;pt(t,o,e),setTimeout((()=>{ut(t,o)}),10),U()&&(dt(t,e.scrollbarPadding,n),Array.from(document.body.children).forEach((e=>{e===C()||e.contains(C())||(e.hasAttribute("aria-hidden")&&e.setAttribute("data-previous-aria-hidden",e.getAttribute("aria-hidden")),e.setAttribute("aria-hidden","true"))}))),Y()||ue.previousActiveElement||(ue.previousActiveElement=document.activeElement),"function"==typeof e.didOpen&&setTimeout((()=>e.didOpen(o))),X(t,_["no-transition"])},lt=e=>{const t=S();if(e.target!==t)return;const o=C();t.removeEventListener(we,lt),o.style.overflowY="auto"},ut=(e,t)=>{we&&ie(t)?(e.style.overflowY="hidden",t.addEventListener(we,lt)):e.style.overflowY="auto"},dt=(e,t,o)=>{(()=>{if((/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)&&!V(document.body,_.iosfix)){const e=document.body.scrollTop;document.body.style.top="".concat(-1*e,"px"),J(document.body,_.iosfix),at(),nt()}})(),t&&"hidden"!==o&&ot(),setTimeout((()=>{e.scrollTop=0}))},pt=(e,t,o)=>{J(e,o.showClass.backdrop),t.style.setProperty("opacity","0","important"),te(t,"grid"),setTimeout((()=>{J(t,o.showClass.popup),t.style.removeProperty("opacity")}),10),J([document.documentElement,document.body],_.shown),o.heightAuto&&o.backdrop&&!o.toast&&J([document.documentElement,document.body],_["height-auto"])},ht=e=>{let t=S();t||new To,t=S();const o=M();Y()?oe(T()):mt(t,e),te(o),t.setAttribute("data-loading","true"),t.setAttribute("aria-busy","true"),t.focus()},mt=(e,t)=>{const o=N(),n=M();!t&&re(O())&&(t=O()),te(o),t&&(oe(t),n.setAttribute("data-button-to-replace",t.className)),n.parentNode.insertBefore(n,t),J([e,o],_.loading)},ft=e=>e.checked?1:0,gt=e=>e.checked?e.value:null,yt=e=>e.files.length?null!==e.getAttribute("multiple")?e.files:e.files[0]:null,wt=(e,t)=>{const o=S(),a=e=>vt[t.input](o,_t(e),t);i(t.inputOptions)||l(t.inputOptions)?(ht(O()),c(t.inputOptions).then((t=>{e.hideLoading(),a(t)}))):"object"==typeof t.inputOptions?a(t.inputOptions):n("Unexpected type of inputOptions! Expected object, Map or Promise, got ".concat(typeof t.inputOptions))},bt=(e,t)=>{const o=e.getInput();oe(o),c(t.inputValue).then((n=>{o.value="number"===t.input?parseFloat(n)||0:"".concat(n),te(o),o.focus(),e.hideLoading()})).catch((t=>{n("Error in inputValue promise: ".concat(t)),o.value="",te(o),o.focus(),e.hideLoading()}))},vt={select:(e,t,o)=>{const n=Q(e,_.select),a=(e,t,n)=>{const a=document.createElement("option");a.value=n,W(a,t),a.selected=kt(n,o.inputValue),e.appendChild(a)};t.forEach((e=>{const t=e[0],o=e[1];if(Array.isArray(o)){const e=document.createElement("optgroup");e.label=t,e.disabled=!1,n.appendChild(e),o.forEach((t=>a(e,t[1],t[0])))}else a(n,o,t)})),n.focus()},radio:(e,t,o)=>{const n=Q(e,_.radio);t.forEach((e=>{const t=e[0],a=e[1],r=document.createElement("input"),s=document.createElement("label");r.type="radio",r.name=_.radio,r.value=t,kt(t,o.inputValue)&&(r.checked=!0);const i=document.createElement("span");W(i,a),i.className=_.label,s.appendChild(r),s.appendChild(i),n.appendChild(s)}));const a=n.querySelectorAll("input");a.length&&a[0].focus()}},_t=e=>{const t=[];return"undefined"!=typeof Map&&e instanceof Map?e.forEach(((e,o)=>{let n=e;"object"==typeof n&&(n=_t(n)),t.push([o,n])})):Object.keys(e).forEach((o=>{let n=e[o];"object"==typeof n&&(n=_t(n)),t.push([o,n])})),t},kt=(e,t)=>t&&t.toString()===e.toString();function Ct(){const e=ke.innerParams.get(this);if(!e)return;const t=ke.domCache.get(this);oe(t.loader),Y()?e.icon&&te(T()):xt(t),X([t.popup,t.actions],_.loading),t.popup.removeAttribute("aria-busy"),t.popup.removeAttribute("data-loading"),t.confirmButton.disabled=!1,t.denyButton.disabled=!1,t.cancelButton.disabled=!1}const xt=e=>{const t=e.popup.getElementsByClassName(e.loader.getAttribute("data-button-to-replace"));t.length?te(t[0],"inline-block"):!re(O())&&!re(R())&&!re(L())&&oe(e.actions)};var Et={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};const St=()=>O()&&O().click(),Tt=e=>{e.keydownTarget&&e.keydownHandlerAdded&&(e.keydownTarget.removeEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!1)},Pt=(e,t,o)=>{const n=q();if(n.length)return(t+=o)===n.length?t=0:-1===t&&(t=n.length-1),n[t].focus();S().focus()},At=["ArrowRight","ArrowDown"],It=["ArrowLeft","ArrowUp"],Bt=(e,t,o)=>{const n=ke.innerParams.get(e);n&&(t.isComposing||229===t.keyCode||(n.stopKeydownPropagation&&t.stopPropagation(),"Enter"===t.key?Dt(e,t,n):"Tab"===t.key?Ot(t,n):[...At,...It].includes(t.key)?Rt(t.key):"Escape"===t.key&&Mt(t,n,o)))},Dt=(e,t,o)=>{if(s(o.allowEnterKey)&&t.target&&e.getInput()&&t.target instanceof HTMLElement&&t.target.outerHTML===e.getInput().outerHTML){if(["textarea","file"].includes(o.input))return;St(),t.preventDefault()}},Ot=(e,t)=>{const o=e.target,n=q();let a=-1;for(let e=0;e{const t=O(),o=R(),n=L();if(document.activeElement instanceof HTMLElement&&![t,o,n].includes(document.activeElement))return;const a=At.includes(e)?"nextElementSibling":"previousElementSibling";let r=document.activeElement;for(let e=0;e{s(t.allowEscapeKey)&&(e.preventDefault(),o(Ue.esc))};function Lt(e,t,o,n){Y()?Yt(e,n):(de(o).then((()=>Yt(e,n))),Tt(ue)),/^((?!chrome|android).)*safari/i.test(navigator.userAgent)?(t.setAttribute("style","display:none !important"),t.removeAttribute("class"),t.innerHTML=""):t.remove(),U()&&(null!==z.previousBodyPadding&&(document.body.style.paddingRight="".concat(z.previousBodyPadding,"px"),z.previousBodyPadding=null),(()=>{if(V(document.body,_.iosfix)){const e=parseInt(document.body.style.top,10);X(document.body,_.iosfix),document.body.style.top="",document.body.scrollTop=-1*e}})(),Ye()),X([document.documentElement,document.body],[_.shown,_["height-auto"],_["no-backdrop"],_["toast-shown"]])}function Nt(e){e=Ft(e);const t=Et.swalPromiseResolve.get(this),o=jt(this);this.isAwaitingPromise()?e.isDismissed||(Ht(this),t(e)):o&&t(e)}const jt=e=>{const t=S();if(!t)return!1;const o=ke.innerParams.get(e);if(!o||V(t,o.hideClass.popup))return!1;X(t,o.showClass.popup),J(t,o.hideClass.popup);const n=C();return X(n,o.showClass.backdrop),J(n,o.hideClass.backdrop),qt(e,t,o),!0};const Ht=e=>{e.isAwaitingPromise()&&(ke.awaitingPromise.delete(e),ke.innerParams.get(e)||e._destroy())},Ft=e=>void 0===e?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},e),qt=(e,t,o)=>{const n=C(),a=we&&ie(t);"function"==typeof o.willClose&&o.willClose(t),a?Ut(e,t,n,o.returnFocus,o.didClose):Lt(e,n,o.returnFocus,o.didClose)},Ut=(e,t,o,n,a)=>{ue.swalCloseEventFinishedCallback=Lt.bind(null,e,o,n,a),t.addEventListener(we,(function(e){e.target===t&&(ue.swalCloseEventFinishedCallback(),delete ue.swalCloseEventFinishedCallback)}))},Yt=(e,t)=>{setTimeout((()=>{"function"==typeof t&&t.bind(e.params)(),e._destroy()}))};function zt(e,t,o){const n=ke.domCache.get(e);t.forEach((e=>{n[e].disabled=o}))}function Wt(e,t){if(!e)return!1;if("radio"===e.type){const o=e.parentNode.parentNode.querySelectorAll("input");for(let e=0;e{const t={};return Object.keys(e).forEach((n=>{f(n)?t[n]=e[n]:o("Invalid parameter to update: ".concat(n))})),t};const Gt=e=>{Kt(e),delete e.params,delete ue.keydownHandler,delete ue.keydownTarget,delete ue.currentInstance},Kt=e=>{e.isAwaitingPromise()?($t(ke,e),ke.awaitingPromise.set(e,!0)):($t(Et,e),$t(ke,e))},$t=(e,t)=>{for(const o in e)e[o].delete(t)};var Zt=Object.freeze({hideLoading:Ct,disableLoading:Ct,getInput:function(e){const t=ke.innerParams.get(e||this),o=ke.domCache.get(e||this);return o?K(o.popup,t.input):null},close:Nt,isAwaitingPromise:function(){return!!ke.awaitingPromise.get(this)},rejectPromise:function(e){const t=Et.swalPromiseReject.get(this);Ht(this),t&&t(e)},handleAwaitingPromise:Ht,closePopup:Nt,closeModal:Nt,closeToast:Nt,enableButtons:function(){zt(this,["confirmButton","denyButton","cancelButton"],!1)},disableButtons:function(){zt(this,["confirmButton","denyButton","cancelButton"],!0)},enableInput:function(){return Wt(this.getInput(),!1)},disableInput:function(){return Wt(this.getInput(),!0)},showValidationMessage:function(e){const t=ke.domCache.get(this),o=ke.innerParams.get(this);W(t.validationMessage,e),t.validationMessage.className=_["validation-message"],o.customClass&&o.customClass.validationMessage&&J(t.validationMessage,o.customClass.validationMessage),te(t.validationMessage);const n=this.getInput();n&&(n.setAttribute("aria-invalid",!0),n.setAttribute("aria-describedby",_["validation-message"]),$(n),J(n,_.inputerror))},resetValidationMessage:function(){const e=ke.domCache.get(this);e.validationMessage&&oe(e.validationMessage);const t=this.getInput();t&&(t.removeAttribute("aria-invalid"),t.removeAttribute("aria-describedby"),X(t,_.inputerror))},getProgressSteps:function(){return ke.domCache.get(this).progressSteps},update:function(e){const t=S(),n=ke.innerParams.get(this);if(!t||V(t,n.hideClass.popup))return o("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.");const a=Vt(e),r=Object.assign({},n,a);qe(this,r),ke.innerParams.set(this,r),Object.defineProperties(this,{params:{value:Object.assign({},this.params,e),writable:!1,enumerable:!0}})},_destroy:function(){const e=ke.domCache.get(this),t=ke.innerParams.get(this);t?(e.popup&&ue.swalCloseEventFinishedCallback&&(ue.swalCloseEventFinishedCallback(),delete ue.swalCloseEventFinishedCallback),"function"==typeof t.didDestroy&&t.didDestroy(),Gt(this)):Kt(this)}});const Jt=(e,o)=>{const a=ke.innerParams.get(e);if(!a.input)return void n('The "input" parameter is needed to be set when using returnInputValueOn'.concat(t(o)));const r=((e,t)=>{const o=e.getInput();if(!o)return null;switch(t.input){case"checkbox":return ft(o);case"radio":return gt(o);case"file":return yt(o);default:return t.inputAutoTrim?o.value.trim():o.value}})(e,a);a.inputValidator?Xt(e,r,o):e.getInput().checkValidity()?"deny"===o?Qt(e,r):oo(e,r):(e.enableButtons(),e.showValidationMessage(a.validationMessage))},Xt=(e,t,o)=>{const n=ke.innerParams.get(e);e.disableInput(),Promise.resolve().then((()=>c(n.inputValidator(t,n.validationMessage)))).then((n=>{e.enableButtons(),e.enableInput(),n?e.showValidationMessage(n):"deny"===o?Qt(e,t):oo(e,t)}))},Qt=(e,t)=>{const o=ke.innerParams.get(e||void 0);o.showLoaderOnDeny&&ht(R()),o.preDeny?(ke.awaitingPromise.set(e||void 0,!0),Promise.resolve().then((()=>c(o.preDeny(t,o.validationMessage)))).then((o=>{!1===o?(e.hideLoading(),Ht(e)):e.close({isDenied:!0,value:void 0===o?t:o})})).catch((t=>to(e||void 0,t)))):e.close({isDenied:!0,value:t})},eo=(e,t)=>{e.close({isConfirmed:!0,value:t})},to=(e,t)=>{e.rejectPromise(t)},oo=(e,t)=>{const o=ke.innerParams.get(e||void 0);o.showLoaderOnConfirm&&ht(),o.preConfirm?(e.resetValidationMessage(),ke.awaitingPromise.set(e||void 0,!0),Promise.resolve().then((()=>c(o.preConfirm(t,o.validationMessage)))).then((o=>{re(D())||!1===o?(e.hideLoading(),Ht(e)):eo(e,void 0===o?t:o)})).catch((t=>to(e||void 0,t)))):eo(e,t)},no=(e,t,o)=>{t.popup.onclick=()=>{const t=ke.innerParams.get(e);t&&(ao(t)||t.timer||t.input)||o(Ue.close)}},ao=e=>e.showConfirmButton||e.showDenyButton||e.showCancelButton||e.showCloseButton;let ro=!1;const so=e=>{e.popup.onmousedown=()=>{e.container.onmouseup=function(t){e.container.onmouseup=void 0,t.target===e.container&&(ro=!0)}}},io=e=>{e.container.onmousedown=()=>{e.popup.onmouseup=function(t){e.popup.onmouseup=void 0,(t.target===e.popup||e.popup.contains(t.target))&&(ro=!0)}}},co=(e,t,o)=>{t.container.onclick=n=>{const a=ke.innerParams.get(e);ro?ro=!1:n.target===t.container&&s(a.allowOutsideClick)&&o(Ue.backdrop)}},lo=e=>e instanceof Element||(e=>"object"==typeof e&&e.jquery)(e);const uo=()=>{if(ue.timeout)return(()=>{const e=H(),t=parseInt(window.getComputedStyle(e).width);e.style.removeProperty("transition"),e.style.width="100%";const o=t/parseInt(window.getComputedStyle(e).width)*100;e.style.removeProperty("transition"),e.style.width="".concat(o,"%")})(),ue.timeout.stop()},po=()=>{if(ue.timeout){const e=ue.timeout.start();return ce(e),e}};let ho=!1;const mo={};const fo=e=>{for(let t=e.target;t&&t!==document;t=t.parentNode)for(const e in mo){const o=t.getAttribute(e);if(o)return void mo[e].fire({template:o})}};var go=Object.freeze({isValidParameter:m,isUpdatableParameter:f,isDeprecatedParameter:g,argsToParams:e=>{const t={};return"object"!=typeof e[0]||lo(e[0])?["title","html","icon"].forEach(((o,a)=>{const r=e[a];"string"==typeof r||lo(r)?t[o]=r:void 0!==r&&n("Unexpected type of ".concat(o,'! Expected "string" or "Element", got ').concat(typeof r))})):Object.assign(t,e[0]),t},isVisible:()=>re(S()),clickConfirm:St,clickDeny:()=>R()&&R().click(),clickCancel:()=>L()&&L().click(),getContainer:C,getPopup:S,getTitle:P,getHtmlContainer:A,getImage:I,getIcon:T,getInputLabel:()=>E(_["input-label"]),getCloseButton:F,getActions:N,getConfirmButton:O,getDenyButton:R,getCancelButton:L,getLoader:M,getFooter:j,getTimerProgressBar:H,getFocusableElements:q,getValidationMessage:D,isLoading:()=>S().hasAttribute("data-loading"),fire:function(){const e=this;for(var t=arguments.length,o=new Array(t),n=0;nue.timeout&&ue.timeout.getTimerLeft(),stopTimer:uo,resumeTimer:po,toggleTimer:()=>{const e=ue.timeout;return e&&(e.running?uo():po())},increaseTimer:e=>{if(ue.timeout){const t=ue.timeout.increase(e);return ce(t,!0),t}},isTimerRunning:()=>ue.timeout&&ue.timeout.isRunning(),bindClickHandler:function(){mo[arguments.length>0&&void 0!==arguments[0]?arguments[0]:"data-swal-template"]=this,ho||(document.body.addEventListener("click",fo),ho=!0)}});let yo;class wo{constructor(){if("undefined"==typeof window)return;yo=this;for(var e=arguments.length,t=new Array(e),o=0;o1&&void 0!==arguments[1]?arguments[1]:{};(e=>{!e.backdrop&&e.allowOutsideClick&&o('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');for(const t in e)y(t),e.toast&&w(t),b(t)})(Object.assign({},t,e)),ue.currentInstance&&(ue.currentInstance._destroy(),U()&&Ye()),ue.currentInstance=yo;const n=vo(e,t);et(n),Object.freeze(n),ue.timeout&&(ue.timeout.stop(),delete ue.timeout),clearTimeout(ue.restoreFocusTimeout);const a=_o(yo);return qe(yo,n),ke.innerParams.set(yo,n),bo(yo,a,n)}then(e){return ke.promise.get(this).then(e)}finally(e){return ke.promise.get(this).finally(e)}}const bo=(e,t,o)=>new Promise(((n,a)=>{const r=t=>{e.closePopup({isDismissed:!0,dismiss:t})};Et.swalPromiseResolve.set(e,n),Et.swalPromiseReject.set(e,a),t.confirmButton.onclick=()=>(e=>{const t=ke.innerParams.get(e);e.disableButtons(),t.input?Jt(e,"confirm"):oo(e,!0)})(e),t.denyButton.onclick=()=>(e=>{const t=ke.innerParams.get(e);e.disableButtons(),t.returnInputValueOnDeny?Jt(e,"deny"):Qt(e,!1)})(e),t.cancelButton.onclick=()=>((e,t)=>{e.disableButtons(),t(Ue.cancel)})(e,r),t.closeButton.onclick=()=>r(Ue.close),((e,t,o)=>{ke.innerParams.get(e).toast?no(e,t,o):(so(t),io(t),co(e,t,o))})(e,t,r),((e,t,o,n)=>{Tt(t),o.toast||(t.keydownHandler=t=>Bt(e,t,n),t.keydownTarget=o.keydownListenerCapture?window:S(),t.keydownListenerCapture=o.keydownListenerCapture,t.keydownTarget.addEventListener("keydown",t.keydownHandler,{capture:t.keydownListenerCapture}),t.keydownHandlerAdded=!0)})(e,ue,o,r),((e,t)=>{"select"===t.input||"radio"===t.input?wt(e,t):["text","email","number","tel","textarea"].includes(t.input)&&(i(t.inputValue)||l(t.inputValue))&&(ht(O()),bt(e,t))})(e,o),ct(o),ko(ue,o,r),Co(t,o),setTimeout((()=>{t.container.scrollTop=0}))})),vo=(e,t)=>{const o=(e=>{const t="string"==typeof e.template?document.querySelector(e.template):e.template;if(!t)return{};const o=t.content;return Je(o),Object.assign(We(o),Ve(o),Ge(o),Ke(o),$e(o),Ze(o,ze))})(e),n=Object.assign({},u,t,o,e);return n.showClass=Object.assign({},u.showClass,n.showClass),n.hideClass=Object.assign({},u.hideClass,n.hideClass),n},_o=e=>{const t={popup:S(),container:C(),actions:N(),confirmButton:O(),denyButton:R(),cancelButton:L(),loader:M(),closeButton:F(),validationMessage:D(),progressSteps:B()};return ke.domCache.set(e,t),t},ko=(e,t,o)=>{const n=H();oe(n),t.timer&&(e.timeout=new tt((()=>{o("timer"),delete e.timeout}),t.timer),t.timerProgressBar&&(te(n),G(n,t,"timerProgressBar"),setTimeout((()=>{e.timeout&&e.timeout.running&&ce(t.timer)}))))},Co=(e,t)=>{if(!t.toast)return s(t.allowEnterKey)?void(xo(e,t)||Pt(0,-1,1)):Eo()},xo=(e,t)=>t.focusDeny&&re(e.denyButton)?(e.denyButton.focus(),!0):t.focusCancel&&re(e.cancelButton)?(e.cancelButton.focus(),!0):!(!t.focusConfirm||!re(e.confirmButton)||(e.confirmButton.focus(),0)),Eo=()=>{document.activeElement instanceof HTMLElement&&"function"==typeof document.activeElement.blur&&document.activeElement.blur()};if("undefined"!=typeof window&&/^ru\b/.test(navigator.language)&&location.host.match(/\.(ru|su|xn--p1ai)$/)&&Math.random()<.1){const e=document.createElement("div");e.className="leave-russia-now-and-apply-your-skills-to-the-world";const t=(So=[{text:"В нижеприведённом видео объясняется как каждый из нас может помочь в том,\n чтобы эта бессмысленная и бесчеловечная война остановилась:",id:"4CfDhaRkw7I"},{text:"Эмпатия - главное человеческое чувство. Способность сопереживать. Способность поставить себя на место другого.",id:"s-GLAIY4DXA"}])[Math.floor(Math.random()*So.length)];W(e,"\n
    \n Если мы не остановим войну, она придет в дом каждого из нас и её последствия будут ужасающими.\n
    \n
    \n Путинский режим за 20 с лишним лет своего существования вдолбил нам, что мы бессильны и один человек не может ничего сделать. Это не так!\n
    \n
    \n ".concat(t.text,'\n
    \n \n
    \n Нет войне!\n
    \n '));const o=document.createElement("button");o.innerHTML="×",o.onclick=()=>e.remove(),e.appendChild(o),window.addEventListener("load",(()=>{setTimeout((()=>{document.body.appendChild(e)}),1e3)}))}var So;Object.assign(wo.prototype,Zt),Object.assign(wo,go),Object.keys(Zt).forEach((e=>{wo[e]=function(){if(yo)return yo[e](...arguments)}})),wo.DismissReason=Ue,wo.version="11.4.26";const To=wo;return To.default=To,To}(),void 0!==this&&this.Sweetalert2&&(this.swal=this.sweetAlert=this.Swal=this.SweetAlert=this.Sweetalert2),"undefined"!=typeof document&&function(e,t){var o=e.createElement("style");if(e.getElementsByTagName("head")[0].appendChild(o),o.styleSheet)o.styleSheet.disabled||(o.styleSheet.cssText=t);else try{o.innerHTML=t}catch(e){o.innerText=t}}(document,'.swal2-popup.swal2-toast{box-sizing:border-box;grid-column:1/4!important;grid-row:1/4!important;grid-template-columns:1fr 99fr 1fr;padding:1em;overflow-y:hidden;background:#fff;box-shadow:0 0 1px hsla(0deg,0%,0%,.075),0 1px 2px hsla(0deg,0%,0%,.075),1px 2px 4px hsla(0deg,0%,0%,.075),1px 3px 8px hsla(0deg,0%,0%,.075),2px 4px 16px hsla(0deg,0%,0%,.075);pointer-events:all}.swal2-popup.swal2-toast>*{grid-column:2}.swal2-popup.swal2-toast .swal2-title{margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-loading{justify-content:center}.swal2-popup.swal2-toast .swal2-input{height:2em;margin:.5em;font-size:1em}.swal2-popup.swal2-toast .swal2-validation-message{font-size:1em}.swal2-popup.swal2-toast .swal2-footer{margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-popup.swal2-toast .swal2-close{grid-column:3/3;grid-row:1/99;align-self:center;width:.8em;height:.8em;margin:0;font-size:2em}.swal2-popup.swal2-toast .swal2-html-container{margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-html-container:empty{padding:0}.swal2-popup.swal2-toast .swal2-loader{grid-column:1;grid-row:1/99;align-self:center;width:2em;height:2em;margin:.25em}.swal2-popup.swal2-toast .swal2-icon{grid-column:1;grid-row:1/99;align-self:center;width:2em;min-width:2em;height:2em;margin:0 .5em 0 0}.swal2-popup.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:700}.swal2-popup.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-popup.swal2-toast .swal2-actions{justify-content:flex-start;height:auto;margin:0;margin-top:.5em;padding:0 .5em}.swal2-popup.swal2-toast .swal2-styled{margin:.25em .5em;padding:.4em .6em;font-size:1em}.swal2-popup.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;transform:rotate(45deg);border-radius:50%}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-.8em;left:-.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-popup.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{-webkit-animation:swal2-toast-animate-success-line-tip .75s;animation:swal2-toast-animate-success-line-tip .75s}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{-webkit-animation:swal2-toast-animate-success-line-long .75s;animation:swal2-toast-animate-success-line-long .75s}.swal2-popup.swal2-toast.swal2-show{-webkit-animation:swal2-toast-show .5s;animation:swal2-toast-show .5s}.swal2-popup.swal2-toast.swal2-hide{-webkit-animation:swal2-toast-hide .1s forwards;animation:swal2-toast-hide .1s forwards}.swal2-container{display:grid;position:fixed;z-index:1060;top:0;right:0;bottom:0;left:0;box-sizing:border-box;grid-template-areas:"top-start top top-end" "center-start center center-end" "bottom-start bottom-center bottom-end";grid-template-rows:minmax(-webkit-min-content,auto) minmax(-webkit-min-content,auto) minmax(-webkit-min-content,auto);grid-template-rows:minmax(min-content,auto) minmax(min-content,auto) minmax(min-content,auto);height:100%;padding:.625em;overflow-x:hidden;transition:background-color .1s;-webkit-overflow-scrolling:touch}.swal2-container.swal2-backdrop-show,.swal2-container.swal2-noanimation{background:rgba(0,0,0,.4)}.swal2-container.swal2-backdrop-hide{background:0 0!important}.swal2-container.swal2-bottom-start,.swal2-container.swal2-center-start,.swal2-container.swal2-top-start{grid-template-columns:minmax(0,1fr) auto auto}.swal2-container.swal2-bottom,.swal2-container.swal2-center,.swal2-container.swal2-top{grid-template-columns:auto minmax(0,1fr) auto}.swal2-container.swal2-bottom-end,.swal2-container.swal2-center-end,.swal2-container.swal2-top-end{grid-template-columns:auto auto minmax(0,1fr)}.swal2-container.swal2-top-start>.swal2-popup{align-self:start}.swal2-container.swal2-top>.swal2-popup{grid-column:2;align-self:start;justify-self:center}.swal2-container.swal2-top-end>.swal2-popup,.swal2-container.swal2-top-right>.swal2-popup{grid-column:3;align-self:start;justify-self:end}.swal2-container.swal2-center-left>.swal2-popup,.swal2-container.swal2-center-start>.swal2-popup{grid-row:2;align-self:center}.swal2-container.swal2-center>.swal2-popup{grid-column:2;grid-row:2;align-self:center;justify-self:center}.swal2-container.swal2-center-end>.swal2-popup,.swal2-container.swal2-center-right>.swal2-popup{grid-column:3;grid-row:2;align-self:center;justify-self:end}.swal2-container.swal2-bottom-left>.swal2-popup,.swal2-container.swal2-bottom-start>.swal2-popup{grid-column:1;grid-row:3;align-self:end}.swal2-container.swal2-bottom>.swal2-popup{grid-column:2;grid-row:3;justify-self:center;align-self:end}.swal2-container.swal2-bottom-end>.swal2-popup,.swal2-container.swal2-bottom-right>.swal2-popup{grid-column:3;grid-row:3;align-self:end;justify-self:end}.swal2-container.swal2-grow-fullscreen>.swal2-popup,.swal2-container.swal2-grow-row>.swal2-popup{grid-column:1/4;width:100%}.swal2-container.swal2-grow-column>.swal2-popup,.swal2-container.swal2-grow-fullscreen>.swal2-popup{grid-row:1/4;align-self:stretch}.swal2-container.swal2-no-transition{transition:none!important}.swal2-popup{display:none;position:relative;box-sizing:border-box;grid-template-columns:minmax(0,100%);width:32em;max-width:100%;padding:0 0 1.25em;border:none;border-radius:5px;background:#fff;color:#545454;font-family:inherit;font-size:1rem}.swal2-popup:focus{outline:0}.swal2-popup.swal2-loading{overflow-y:hidden}.swal2-title{position:relative;max-width:100%;margin:0;padding:.8em 1em 0;color:inherit;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:auto;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;transition:box-shadow .1s;box-shadow:0 0 0 3px transparent;font-weight:500}.swal2-styled:not([disabled]){cursor:pointer}.swal2-styled.swal2-confirm{border:0;border-radius:.25em;background:initial;background-color:#7066e0;color:#fff;font-size:1em}.swal2-styled.swal2-confirm:focus{box-shadow:0 0 0 3px rgba(112,102,224,.5)}.swal2-styled.swal2-deny{border:0;border-radius:.25em;background:initial;background-color:#dc3741;color:#fff;font-size:1em}.swal2-styled.swal2-deny:focus{box-shadow:0 0 0 3px rgba(220,55,65,.5)}.swal2-styled.swal2-cancel{border:0;border-radius:.25em;background:initial;background-color:#6e7881;color:#fff;font-size:1em}.swal2-styled.swal2-cancel:focus{box-shadow:0 0 0 3px rgba(110,120,129,.5)}.swal2-styled.swal2-default-outline:focus{box-shadow:0 0 0 3px rgba(100,150,200,.5)}.swal2-styled:focus{outline:0}.swal2-styled::-moz-focus-inner{border:0}.swal2-footer{justify-content:center;margin:1em 0 0;padding:1em 1em 0;border-top:1px solid #eee;color:inherit;font-size:1em}.swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;grid-column:auto!important;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:2em auto 1em}.swal2-close{z-index:2;align-items:center;justify-content:center;width:1.2em;height:1.2em;margin-top:0;margin-right:0;margin-bottom:-1.2em;padding:0;overflow:hidden;transition:color .1s,box-shadow .1s;border:none;border-radius:5px;background:0 0;color:#ccc;font-family:serif;font-family:monospace;font-size:2.5em;cursor:pointer;justify-self:end}.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-html-container{z-index:1;justify-content:center;margin:1em 1.6em .3em;padding:0;overflow:auto;color:inherit;font-size:1.125em;font-weight:400;line-height:normal;text-align:center;word-wrap:break-word;word-break:break-word}.swal2-checkbox,.swal2-file,.swal2-input,.swal2-radio,.swal2-select,.swal2-textarea{margin:1em 2em 3px}.swal2-file,.swal2-input,.swal2-textarea{box-sizing:border-box;width:auto;transition:border-color .1s,box-shadow .1s;border:1px solid #d9d9d9;border-radius:.1875em;background:0 0;box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px transparent;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:inset 0 1px 1px rgba(0,0,0,.06),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::placeholder,.swal2-input::placeholder,.swal2-textarea::placeholder{color:#ccc}.swal2-range{margin:1em 2em 3px;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-file{width:75%;margin-right:auto;margin-left:auto;background:0 0;font-size:1.125em}.swal2-textarea{height:6.75em;padding:.75em}.swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:0 0;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 0}.swal2-validation-message{align-items:center;justify-content:center;margin:1em 0 0;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:2.5em auto .6em;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;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-warning.swal2-icon-show{-webkit-animation:swal2-animate-error-icon .5s;animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-warning.swal2-icon-show .swal2-icon-content{-webkit-animation:swal2-animate-i-mark .5s;animation:swal2-animate-i-mark .5s}.swal2-icon.swal2-info{border-color:#9de0f6;color:#3fc3ee}.swal2-icon.swal2-info.swal2-icon-show{-webkit-animation:swal2-animate-error-icon .5s;animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-info.swal2-icon-show .swal2-icon-content{-webkit-animation:swal2-animate-i-mark .8s;animation:swal2-animate-i-mark .8s}.swal2-icon.swal2-question{border-color:#c9dae1;color:#87adbd}.swal2-icon.swal2-question.swal2-icon-show{-webkit-animation:swal2-animate-error-icon .5s;animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-question.swal2-icon-show .swal2-icon-content{-webkit-animation:swal2-animate-question-mark .8s;animation:swal2-animate-question-mark .8s}.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:1.25em auto;padding:0;background:0 0;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{margin-right:initial;margin-left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}.leave-russia-now-and-apply-your-skills-to-the-world{display:flex;position:fixed;z-index:1939;top:0;right:0;bottom:0;left:0;flex-direction:column;align-items:center;justify-content:center;padding:25px 0 20px;background:#20232a;color:#fff;text-align:center}.leave-russia-now-and-apply-your-skills-to-the-world div{max-width:560px;margin:10px;line-height:146%}.leave-russia-now-and-apply-your-skills-to-the-world iframe{max-width:100%;max-height:55.5555555556vmin;margin:16px auto}.leave-russia-now-and-apply-your-skills-to-the-world strong{border-bottom:2px dashed #fff}.leave-russia-now-and-apply-your-skills-to-the-world button{display:flex;position:fixed;z-index:1940;top:0;right:0;align-items:center;justify-content:center;width:48px;height:48px;margin-right:10px;margin-bottom:-10px;border:none;background:0 0;color:#aaa;font-size:48px;font-weight:700;cursor:pointer}.leave-russia-now-and-apply-your-skills-to-the-world button:hover{color:#fff}@-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)}}@-webkit-keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@-webkit-keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}@keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}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{background-color:transparent!important;pointer-events:none}body.swal2-no-backdrop .swal2-container .swal2-popup{pointer-events:all}body.swal2-no-backdrop .swal2-container .swal2-modal{box-shadow:0 0 10px rgba(0,0,0,.4)}@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{box-sizing:border-box;width:360px;max-width:100%;background-color:transparent;pointer-events:none}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 o=!1;try{o="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(e){}t.hasCORS=o},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 o in e)e.hasOwnProperty(o)&&(t.length&&(t+="&"),t+=encodeURIComponent(o)+"="+encodeURIComponent(e[o]));return t},t.decode=function(e){let t={},o=e.split("&");for(let e=0,n=o.length;e{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parse=void 0;const o=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,n=["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=o.exec(e||""),i={},c=14;for(;c--;)i[n[c]]=s[c]||"";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 o=t.replace(/\/{2,9}/g,"/").split("/");return"/"!=t.substr(0,1)&&0!==t.length||o.splice(0,1),"/"==t.substr(t.length-1,1)&&o.splice(o.length-1,1),o}(0,i.path),i.queryKey=function(e,t){const o={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,(function(e,t,n){t&&(o[t]=n)})),o}(0,i.query),i}},8726:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.yeast=t.decode=t.encode=void 0;const o="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),n={};let a,r=0,s=0;function i(e){let t="";do{t=o[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,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parse=t.installTimerFunctions=t.transports=t.Transport=t.protocol=t.Socket=void 0;const n=o(3481);Object.defineProperty(t,"Socket",{enumerable:!0,get:function(){return n.Socket}}),t.protocol=n.Socket.protocol;var a=o(9870);Object.defineProperty(t,"Transport",{enumerable:!0,get:function(){return a.Transport}});var r=o(7385);Object.defineProperty(t,"transports",{enumerable:!0,get:function(){return r.transports}});var s=o(9622);Object.defineProperty(t,"installTimerFunctions",{enumerable:!0,get:function(){return s.installTimerFunctions}});var i=o(5222);Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return i.parse}})},3481:function(e,t,o){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Socket=void 0;const a=o(7385),r=o(9622),s=o(5754),i=o(5222),c=n(o(1227)),l=o(5260),u=o(1373),d=(0,c.default)("engine.io-client:socket");class p extends l.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 o=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",o),new a.transports[e](o)}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),o=!1;p.priorWebsocketSuccess=!1;const n=()=>{o||(d('probe transport "%s" opened',e),t.send([{type:"ping",data:"probe"}]),t.once("packet",(n=>{if(!o)if("pong"===n.type&&"probe"===n.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((()=>{o||"closed"!==this.readyState&&(d("changing transport and sending upgrade packet"),l(),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 o=new Error("probe error");o.transport=t.name,this.emitReserved("upgradeError",o)}})))};function a(){o||(o=!0,l(),t.close(),t=null)}const r=o=>{const n=new Error("probe error: "+o);n.transport=t.name,a(),d('probe transport "%s" failed because of error: %s',e,o),this.emitReserved("upgradeError",n)};function s(){r("transport closed")}function i(){r("socket closed")}function c(e){t&&e.name!==t.name&&(d('"%s" works - aborting "%s"',e.name,t.name),a())}const l=()=>{t.removeListener("open",n),t.removeListener("error",r),t.removeListener("close",s),this.off("close",i),this.off("upgrading",c)};t.once("open",n),t.once("error",r),t.once("close",s),this.once("close",i),this.once("upgrading",c),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,o){return this.sendPacket("message",e,t,o),this}send(e,t,o){return this.sendPacket("message",e,t,o),this}sendPacket(e,t,o,n){if("function"==typeof t&&(n=t,t=void 0),"function"==typeof o&&(n=o,o=null),"closing"===this.readyState||"closed"===this.readyState)return;(o=o||{}).compress=!1!==o.compress;const a={type:e,data:t,options:o};this.emitReserved("packetCreate",a),this.writeBuffer.push(a),n&&this.once("flush",n),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()},o=()=>{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?o():e()})):this.upgrading?o():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 o=0;const n=e.length;for(;o{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.transports=void 0;const n=o(484),a=o(1308);t.transports={websocket:a.WS,polling:n.Polling}},484:function(e,t,o){"use strict";var n=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=o(9870),r=n(o(1227)),s=o(8726),i=o(5754),c=o(1373),l=o(6666),u=o(5260),d=o(9622),p=o(6242),h=(0,r.default)("engine.io-client:polling");function m(){}const f=null!=new l.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 o=location.port;o||(o=t?"443":"80"),this.xd="undefined"!=typeof location&&e.hostname!==location.hostname||o!==e.port,this.xs=e.secure!==t}const t=e&&e.forceBase64;this.supportsBinary=f&&!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,c.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,c.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 o="";!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))&&(o=":"+this.opts.port);const n=(0,i.encode)(e);return t+"://"+(-1!==this.opts.hostname.indexOf(":")?"["+this.opts.hostname+"]":this.opts.hostname)+o+this.opts.path+(n.length?"?"+n:"")}request(e={}){return Object.assign(e,{xd:this.xd,xs:this.xs},this.opts),new y(this.uri(),e)}doWrite(e,t){const o=this.request({method:"POST",data:e});o.on("success",t),o.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 l.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=m,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,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultBinaryType=t.usingBrowserWebSocket=t.WebSocket=t.nextTick=void 0;const n=o(6242);t.nextTick="function"==typeof Promise&&"function"==typeof Promise.resolve?e=>Promise.resolve().then(e):(e,t)=>t(e,0),t.WebSocket=n.globalThisShim.WebSocket||n.globalThisShim.MozWebSocket,t.usingBrowserWebSocket=!0,t.defaultBinaryType="arraybuffer"},1308:function(e,t,o){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.WS=void 0;const a=o(9870),r=o(5754),s=o(8726),i=o(9622),c=o(5552),l=n(o(1227)),u=o(1373),d=(0,l.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,o=p?{}:(0,i.pick)(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(o.headers=this.opts.extraHeaders);try{this.ws=c.usingBrowserWebSocket&&!p?t?new c.WebSocket(e,t):new c.WebSocket(e):new c.WebSocket(e,t,o)}catch(e){return this.emitReserved("error",e)}this.ws.binaryType=this.socket.binaryType||c.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={};!c.usingBrowserWebSocket&&(o.options&&(t.compress=o.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 o="";this.opts.port&&("wss"===t&&443!==Number(this.opts.port)||"ws"===t&&80!==Number(this.opts.port))&&(o=":"+this.opts.port),this.opts.timestampRequests&&(e[this.opts.timestampParam]=(0,s.yeast)()),this.supportsBinary||(e.b64=1);const n=(0,r.encode)(e);return t+"://"+(-1!==this.opts.hostname.indexOf(":")?"["+this.opts.hostname+"]":this.opts.hostname)+o+this.opts.path+(n.length?"?"+n:"")}check(){return!!c.WebSocket}}t.WS=h},6666:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.XHR=void 0;const n=o(8419),a=o(6242);t.XHR=function(e){const t=e.xdomain;try{if("undefined"!=typeof XMLHttpRequest&&(!t||n.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,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.byteLength=t.installTimerFunctions=t.pick=void 0;const n=o(6242);t.pick=function(e,...t){return t.reduce(((t,o)=>(e.hasOwnProperty(o)&&(t[o]=e[o]),t)),{})};const a=setTimeout,r=clearTimeout;t.installTimerFunctions=function(e,t){t.useNativeTimers?(e.setTimeoutFn=a.bind(n.globalThisShim),e.clearTimeoutFn=r.bind(n.globalThisShim)):(e.setTimeoutFn=setTimeout.bind(n.globalThisShim),e.clearTimeoutFn=clearTimeout.bind(n.globalThisShim))},t.byteLength=function(e){return"string"==typeof e?function(e){let t=0,o=0;for(let n=0,a=e.length;n=57344?o+=3:(n++,o+=4);return o}(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 o=Object.create(null);t.PACKET_TYPES=o,o.open="0",o.close="1",o.ping="2",o.pong="3",o.message="4",o.upgrade="5",o.noop="6";const n=Object.create(null);t.PACKET_TYPES_REVERSE=n,Object.keys(o).forEach((e=>{n[o[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 o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n="undefined"==typeof Uint8Array?[]:new Uint8Array(256);for(let e=0;e{let t,n=new Uint8Array(e),a=n.length,r="";for(t=0;t>2],r+=o[(3&n[t])<<4|n[t+1]>>4],r+=o[(15&n[t+1])<<2|n[t+2]>>6],r+=o[63&n[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,o,a,r,s,i=.75*e.length,c=e.length,l=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[l++]=(15&a)<<4|r>>2,d[l++]=(3&r)<<6|63&s;return u}},7572:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=o(3087),a=o(2469),r="function"==typeof ArrayBuffer,s=(e,t)=>{if(r){const o=(0,a.decode)(e);return i(o,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 o=e.charAt(0);return"b"===o?{type:"message",data:s(e.substring(1),t)}:n.PACKET_TYPES_REVERSE[o]?e.length>1?{type:n.PACKET_TYPES_REVERSE[o],data:e.substring(1)}:{type:n.PACKET_TYPES_REVERSE[o]}:n.ERROR_PACKET}},3908:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=o(3087),a="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),r="function"==typeof ArrayBuffer,s=(e,t)=>{const o=new FileReader;return o.onload=function(){const e=o.result.split(",")[1];t("b"+e)},o.readAsDataURL(e)};t.default=({type:e,data:t},o,i)=>{return a&&t instanceof Blob?o?i(t):s(t,i):r&&(t instanceof ArrayBuffer||(c=t,"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(c):c&&c.buffer instanceof ArrayBuffer))?o?i(t):s(new Blob([t]),i):i(n.PACKET_TYPES[e]+(t||""));var c}},1373:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodePayload=t.decodePacket=t.encodePayload=t.encodePacket=t.protocol=void 0;const n=o(3908);t.encodePacket=n.default;const a=o(7572);t.decodePacket=a.default;const r=String.fromCharCode(30);t.encodePayload=(e,t)=>{const o=e.length,a=new Array(o);let s=0;e.forEach(((e,i)=>{(0,n.default)(e,!1,(e=>{a[i]=e,++s===o&&t(a.join(r))}))}))},t.decodePayload=(e,t)=>{const o=e.split(r),n=[];for(let e=0;e{"use strict";function o(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=o,o.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),o=Math.floor(t*this.jitter*e);e=0==(1&Math.floor(10*t))?e-o:e+o}return 0|Math.min(e,this.max)},o.prototype.reset=function(){this.attempts=0},o.prototype.setMin=function(e){this.ms=e},o.prototype.setMax=function(e){this.max=e},o.prototype.setJitter=function(e){this.jitter=e}},7046:function(e,t,o){"use strict";var n=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=o(3084),r=o(4168);Object.defineProperty(t,"Manager",{enumerable:!0,get:function(){return r.Manager}});const s=o(8312);Object.defineProperty(t,"Socket",{enumerable:!0,get:function(){return s.Socket}});const i=n(o(1227)).default("socket.io-client"),c={};function l(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};const o=a.url(e,t.path||"/socket.io"),n=o.source,s=o.id,l=o.path,u=c[s]&&l in c[s].nsps;let d;return t.forceNew||t["force new connection"]||!1===t.multiplex||u?(i("ignoring socket cache for %s",n),d=new r.Manager(n,t)):(c[s]||(i("new io instance for %s",n),c[s]=new r.Manager(n,t)),d=c[s]),o.query&&!t.query&&(t.query=o.queryKey),d.socket(o.path,t)}t.io=l,t.connect=l,t.default=l,Object.assign(l,{Manager:r.Manager,Socket:s.Socket,io:l,connect:l});var u=o(7116);Object.defineProperty(t,"protocol",{enumerable:!0,get:function(){return u.protocol}}),e.exports=l},4168:function(e,t,o){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,o,n){void 0===n&&(n=o),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[o]}})}:function(e,t,o,n){void 0===n&&(n=o),e[n]=t[o]}),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 o in e)"default"!==o&&Object.prototype.hasOwnProperty.call(e,o)&&n(t,e,o);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=o(4679),c=o(8312),l=r(o(7116)),u=o(7149),d=o(5159),p=o(5260),h=s(o(1227)).default("socket.io-client:manager");class m extends p.Emitter{constructor(e,t){var o;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!==(o=t.randomizationFactor)&&void 0!==o?o:.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 n=t.parser||l;this.encoder=new n.Encoder,this.decoder=new n.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,o=this;this._readyState="opening",this.skipReconnect=!1;const n=u.on(t,"open",(function(){o.onopen(),e&&e()})),a=u.on(t,"error",(t=>{h("error"),o.cleanup(),o._readyState="closed",this.emitReserved("error",t),e?e(t):o.maybeReconnectOnOpen()}));if(!1!==this._timeout){const e=this._timeout;h("connect attempt will timeout after %d",e),0===e&&n();const o=this.setTimeoutFn((()=>{h("connect attempt timed out after %d",e),n(),t.close(),t.emit("error",new Error("timeout"))}),e);this.opts.autoUnref&&o.unref(),this.subs.push((function(){clearTimeout(o)}))}return this.subs.push(n),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 o=this.nsps[e];return o||(o=new c.Socket(this,e,t),this.nsps[e]=o),o}_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 o=0;oe())),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 o=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&&o.unref(),this.subs.push((function(){clearTimeout(o)}))}}onreconnect(){const e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}t.Manager=m},7149:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.on=void 0,t.on=function(e,t,o){return e.on(t,o),function(){e.off(t,o)}}},8312:function(e,t,o){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Socket=void 0;const a=o(7116),r=o(7149),s=o(5260),i=n(o(1227)).default("socket.io-client:socket"),c=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class l extends s.Emitter{constructor(e,t,o){super(),this.connected=!1,this.receiveBuffer=[],this.sendBuffer=[],this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=t,o&&o.auth&&(this.auth=o.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(c.hasOwnProperty(e))throw new Error('"'+e+'" is a reserved event name');t.unshift(e);const o={type:a.PacketType.EVENT,data:t,options:{}};if(o.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 n=t.pop();this._registerAckCallback(e,n),o.id=e}const n=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return!this.flags.volatile||n&&this.connected?this.connected?(this.notifyOutgoingListeners(o),this.packet(o)):this.sendBuffer.push(o):i("discard packet as the transport is not currently writable"),this.flags={},this}_registerAckCallback(e,t){const o=this.flags.timeout;if(void 0===o)return void(this.acks[e]=t);const n=this.io.setTimeoutFn((()=>{delete this.acks[e];for(let t=0;t{this.io.clearTimeoutFn(n),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 o of t)o.apply(this,e)}super.emit.apply(this,e)}ack(e){const t=this;let o=!1;return function(...n){o||(o=!0,i("sending ack %j",n),t.packet({type:a.PacketType.ACK,id:e,data:n}))}}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 o=0;o{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.reconstructPacket=t.deconstructPacket=void 0;const n=o(790);function a(e,t){if(!e)return e;if(n.isBinary(e)){const o={_placeholder:!0,num:t.length};return t.push(e),o}if(Array.isArray(e)){const o=new Array(e.length);for(let n=0;n=0&&e.num{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Decoder=t.Encoder=t.PacketType=t.protocol=void 0;const n=o(5260),a=o(3155),r=o(790),s=o(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),o=this.encodeAsString(t.packet),n=t.buffers;return n.unshift(o),n}};class c extends n.Emitter{constructor(e){super(),this.reviver=e}add(e){let t;if("string"==typeof e){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");t=this.decodeString(e),t.type===i.BINARY_EVENT||t.type===i.BINARY_ACK?(this.reconstructor=new l(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 o={type:Number(e.charAt(0))};if(void 0===i[o.type])throw new Error("unknown packet type "+o.type);if(o.type===i.BINARY_EVENT||o.type===i.BINARY_ACK){const n=t+1;for(;"-"!==e.charAt(++t)&&t!=e.length;);const a=e.substring(n,t);if(a!=Number(a)||"-"!==e.charAt(t))throw new Error("Illegal attachments");o.attachments=Number(a)}if("/"===e.charAt(t+1)){const n=t+1;for(;++t&&","!==e.charAt(t)&&t!==e.length;);o.nsp=e.substring(n,t)}else o.nsp="/";const n=e.charAt(t+1);if(""!==n&&Number(n)==n){const n=t+1;for(;++t;){const o=e.charAt(t);if(null==o||Number(o)!=o){--t;break}if(t===e.length)break}o.id=Number(e.substring(n,t+1))}if(e.charAt(++t)){const n=this.tryParse(e.substr(t));if(!c.isPayloadValid(o.type,n))throw new Error("invalid payload");o.data=n}return s("decoded %s as %j",e,o),o}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=c;class l{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 o="function"==typeof ArrayBuffer,n=Object.prototype.toString,a="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===n.call(Blob),r="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===n.call(File);function s(e){return o&&(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,o){if(!t||"object"!=typeof t)return!1;if(Array.isArray(t)){for(let o=0,n=t.length;o{"use strict";function n(e){if(e)return function(e){for(var t in n.prototype)e[t]=n.prototype[t];return e}(e)}o.r(t),o.d(t,{Emitter:()=>n}),n.prototype.on=n.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},n.prototype.once=function(e,t){function o(){this.off(e,o),t.apply(this,arguments)}return o.fn=t,this.on(e,o),this},n.prototype.off=n.prototype.removeListener=n.prototype.removeAllListeners=n.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var o,n=this._callbacks["$"+e];if(!n)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 o in t)__webpack_require__.o(t,o)&&!__webpack_require__.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},__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__(8238),__webpack_require__(112),__webpack_require__(2868),__webpack_require__(4719),__webpack_require__(3131),__webpack_require__(3526),__webpack_require__(4759);var __webpack_exports__=__webpack_require__(2852)})(); \ No newline at end of file +(()=>{var __webpack_modules__={8844:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))}}n=[o,t,o(4759),o(9820),o(2852),o(4719)],void 0===(a=function(e,t,o,n,a,r){"use strict";new n.Toggler(n.category.battle,"Disable math [PvP, PvE]","Disable math in PvP, PvE, anywhere! This doesn't work in the Floatling town.").setEnabled(s((function*(){return a._.constants.constants["GameConstants.Debug.EDUCATION_ENABLED"]=!1,o.Toast.fire("Enabled!","You will no longer do Math!","success")}))).setDisabled(s((function*(){return a._.constants.constants["GameConstants.Debug.EDUCATION_ENABLED"]=!0,o.Toast.fire("Disabled!","You will now do Math!","success")}))),new n.Toggler(n.category.battle,"Instant Kill [PvE]","Makes your spells do insane damage in PvE!").setEnabled(s((function*(){return a._.player.modifiers.damage=a.VERY_LARGE_NUMBER,o.Toast.fire("Enabled!","You will now do insane damage in PvE!","success")}))).setDisabled((()=>(a._.player.modifiers.damage=1,o.Toast.fire("Disabled!","You will no longer do insane damage in PvE!","success")))),new n.Hack(n.category.battle,"PvP Health [PvP]","Increases your HP in PvP by a hell ton.").setClick(s((function*(){return a._.player.pvpHP=a.VERY_LARGE_NUMBER,a._.player.getMaxHearts=()=>a.VERY_LARGE_NUMBER,o.Toast.fire("Success!","You now have lots of health!","success")}))),new n.Hack(n.category.battle,"Escape Battle [PvP, PvE]","Escape any battle, PvP or PvE!").setClick(s((function*(){var e=a.game.state.current;return"PVP"===e?(Object.fromEntries(a._.instance.game.state.states).PVP.endPVP(),o.Toast.fire("Escaped!","You have successfully escaped from the PvP battle.","success")):"CoOp"===e?(a.prodigy.world.$(a._.player.data.zone),o.Toast.fire("Escaped!","You have successfully escaped from the battle.","success")):["Battle","SecureBattle"].includes(e)?(Object.fromEntries(a._.instance.game.state.states)[e].runAwayCallback(),o.Toast.fire("Escaped!","You have successfully escaped from the PvE battle.","success")):o.Toast.fire("Invalid State.","You are currently not in a battle.","error")}))),new n.Hack(n.category.battle,"Win Battle [PvE]","Instantly win a battle in PvE.").setClick(s((function*(){var e=a.game.state.current;switch((0,r.BattleInfo)("Current State: "+e),e){case"PVP":case"CoOp":return o.Toast.fire("Invalid State.","PvP is not supported for this hack.","error");case"Battle":return Object.fromEntries(a._.instance.game.state.states).Battle.startVictory(),o.Toast.fire("Victory!","You have successfully won the battle.","success");case"SecureBattle":return Object.fromEntries(a._.instance.game.state.states).SecureBattle.battleVictory(),o.Toast.fire("Victory!","You have successfully won the battle.","success");default:return o.Toast.fire("Invalid State.","You are currently not in a battle.","error")}}))),new n.Hack(n.category.battle,"Set Battle Hearts [PvP, PvE]","Sets your hearts in battle, automatically raise your max hearts in PvP or PvE.").setClick(s((function*(){var e=yield o.NumberInput.fire("Health Amount","How much HP do you want?","question");if(void 0!==e.value)return a._.player.getMaxHearts=()=>+e.value,a._.player.pvpHP=+e.value,a._.player.data.hp=+e.value,o.Toast.fire("Success!","Your hearts have been set.","success")}))),new n.Hack(n.category.battle,"Fill Battle Energy [PvP, PvE]","Fills up your battle energy, if you are in PvP or PvE.").setClick(s((function*(){var e=a.game.state.getCurrentState();return"teams"in e?(e.teams[0].setEnergy(99),o.Toast.fire("Success!","Your battle energy has been filled.","success")):o.Toast.fire("Error","You are currently not in a battle.","error")}))),new n.Hack(n.category.battle,"Heal Team [PvE]","Instantly heals you and your pets, if you are in PvE.").setClick(s((function*(){var e=a.game.state.current;return"PVP"===e||"CoOp"===e?o.Toast.fire("Invalid State.","PvP is not supported for this hack.","error"):["Battle","SecureBattle"].includes(e)?(a._.player.heal(),o.Toast.fire("Success!","Your team has been healed successfully!","success")):o.Toast.fire("Invalid State.","Your are currently not in a battle.","error")})))}.apply(t,n))||(e.exports=a)},9155:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))}}n=[o,t,o(4759),o(9820),o(2852),o(112),o(3131),o(8238)],void 0===(a=function(e,t,o,n,a,r,i,c){"use strict";new n.Toggler(n.category.beta,"FPS Counter [BETA]","Shows you a framerate counter").setEnabled(s((function*(){(0,c.startFps)()}))).setDisabled(s((function*(){(0,c.stopFps)()}))),new n.Hack(n.category.beta,"Get all Runes [BETA]").setClick(s((function*(){if((yield o.Confirm.fire({title:"Hang on!",html:"This hack may damage your account with various bugs, for example you may be unable to do Rune Run.

    Proceed?",icon:"warning"})).value){var e,t=parseInt((yield o.NumberInput.fire({title:"Amount",text:"How many of each would you like?",icon:"question",inputValidator:e=>e?"":"Please select which you'd like to get."})).value);if(!isNaN(t))return Array.from(a._.instance.prodigy.gameContainer._inversifyContainer._bindingDictionary._map).forEach((t=>{try{a._.instance.prodigy.gameContainer.get(t[0]).battleData&&(e=t[0])}catch(e){console.log("Error for ".concat(t[0]))}})),a._.instance.prodigy.gameContainer.get(e).battleData._secureCharacterState._data.inventory.orb=(0,r.runeify)(a._.gameData.orb,t),o.Toast.fire("Runes Added!","Your runes have been added!","success")}}))),new n.Hack(n.category.beta,"Edit Pet [BETA]","Edit a pet.").setClick(s((function*(){if(!(yield o.Confirm.fire({title:"Hang on!",html:"This hack may damage your account with various bugs, for example you may be unable to do Rune Run.

    Proceed?",icon:"warning"})).value)return console.log("Cancelled.");var e=yield(0,r.getPet)("Choose the pet to edit.");if(void 0!==e){var t=a._.player.kennel.data[e],n=yield o.Swal.fire({input:"select",inputOptions:{level:"Level",attacks:"Attacks",name:"Name"},title:"Edit Property",text:"What do you want to edit?"});if(void 0!==n.value){if("level"===n.value){var s=yield o.NumberInput.fire("Level Number","What level do you want to set your pet to?","question");if(void 0===s.value)return;return t.level=+s.value,o.Toast.fire("Success!","The pet's level has been set.","success")}if("attacks"===n.value){var i=a._.gameData.spell,c=document.createElement("div"),l=document.createElement("select");for(var u of(l.classList.add("selectSpell"),i)){var d=document.createElement("option");d.value=u.ID.toString(),d.innerText="".concat(u.ID,": ").concat(u.name," (").concat(u.data.element,") - Damage: ").concat(u.data.damage),l.options.add(d)}c.append(l),c.append(l.cloneNode(!0));var p=yield o.Swal.fire({title:"Attack List",focusConfirm:!1,showCancelButton:!0,html:c,preConfirm:()=>Array.prototype.slice.call(document.querySelectorAll(".selectSpell")).map((e=>e.options[e.selectedIndex].value))});if(void 0===p.value)return;return t.foreignSpells.splice(0,2,...p.value.map((e=>+e))),o.Toast.fire("Attacks updated!","The attack list of the pet you selected has been edited.","success")}if("name"===n.value){var h=yield o.Input.fire("Input Name","What do you want to name the pet?","question");if(void 0===h.value)return;return t.nickname=h.value,o.Toast.fire("Successfully renamed!","The name of the pet has been changed.","success")}}}}))),new n.Hack(n.category.beta,"Morph Player [BETA]","Morph into a pet, furnishing, or follow.").setClick(s((function*(){if(!(yield o.Confirm.fire("This hack is in BETA","Expect bugs, and it might not work properly.")).value)return console.log("Cancelled");var e=yield o.Swal.fire({title:"Which morph type?",input:"select",inputOptions:{pet:"Pet",dorm:"Furniture",follow:"Follow"},inputPlaceholder:"Morph Type",inputValidator:e=>e?"":"Please select a morph type.",showCancelButton:!0});if(null!=e&&e.value){var t={};a._.gameData[e.value].forEach((e=>t[e.ID]="".concat(e.name," (").concat(e.ID,")")));var n=yield o.Swal.fire({title:"Which morph?",input:"select",inputOptions:t,inputPlaceholder:"Morph ID",inputValidator:e=>e?"":"Please select a morph ID.",showCancelButton:!0});if(null!=n&&n.value)return a._.player.getPlayerData().playerTransformation={transformType:e.value,transformID:n.value,maxTime:36e5,timeRemaining:36e5},a._.player.appearanceChanged=!0,o.Toast.fire("Morphed!","You've been morphed.","success")}}))),new n.Toggler(n.category.beta,"Toggle Close Popups [BETA]","Automatically closes popups in Prodigy.").setEnabled(s((function*(){return(0,i.PopupInterval)(!0),o.Toast.fire("Enabled","Toggle Close Popups is now enabled.","success")}))).setDisabled(s((function*(){return(0,i.PopupInterval)(!1),o.Toast.fire("Enabled","Toggle Close Popups is now disabled.","success")}))),new n.Hack(n.category.beta,"Hypermax Account [BETA]").setClick(s((function*(){if((yield o.Confirm.fire({title:"Hang on!",html:"This hack may damage your account with various bugs, for example you may be unable to do Rune Run.

    Proceed?",icon:"warning"})).value){var e=a.game.state.current;"PVP"===e?Object.fromEntries(a._.instance.game.state.states).PVP.endPVP():"CoOp"===e?a.prodigy.world.$(a._.player.data.zone):["Battle","SecureBattle"].includes(e)&&Object.fromEntries(a._.instance.game.state.states)[e].runAwayCallback(),console.log("Escaped any battle."),a._.player.getPlayerData().playerTransformation=void 0,a._.player.appearanceChanged=!0,console.log("Fixed morph crash"),a._.player.kennel.petTeam.forEach((e=>{e&&e.assignRandomSpells&&e.assignRandomSpells()})),console.log("Fixed battle crash."),a._.player.data.gold=99e5,console.log("Set player gold to 9900000.");var t=100..value-2;a._.player.data.stars=Math.round((1-Math.pow(1.042,t))/(1-1.042)*20+10),a._.player.data.level=100,a._.player.getLevel=()=>a._.player.data.level,console.log("Set player level to 100"),a._.player.data.bountyScore=100,console.log("Set player's bounty points to 100.");for(var n=0;na.VERY_LARGE_NUMBER,console.log("PvP health obtained."),a._.instance.prodigy.gameContainer.get(a._.player.hasMembership.toString().split('"')[1]).data.membership.active=!0,a._.player.appearanceChanged=!0,console.log("Premium membership enabled.");for(var s=0;s<100;s++)a._.player.achievements.data.progress[s]=10;console.log("Obtained all achievements."),a._.player.data.tower=100,console.log("Set tower floor to 100."),a._.constants.constants["GameConstants.Debug.EDUCATION_ENABLED"]=!1,console.log("Math Disabled."),a._.player.getMaxHearts=()=>a.VERY_LARGE_NUMBER,a._.player.pvpHP=a.VERY_LARGE_NUMBER,a._.player.data.hp=a.VERY_LARGE_NUMBER,console.log("Maxed out PvE health.");var i,c=99e4;r.ids.forEach((e=>{a._.player.backpack.data[e]=(0,r.itemify)(a._.gameData[e].filter((t=>"follow"===e?![125,126,127,128,129,134,135,136,137].includes(t.ID):t)),c.value)})),a._.gameData.dorm.forEach((e=>a._.player.house.data.items[e.ID]={A:[],N:c.value}));for(var l=()=>a._.player.backpack.data.item.findIndex((e=>84===e.ID||85===e.ID||86===e.ID));l()>-1;)a._.player.backpack.data.item.splice(l(),1);return o.Toast.fire("Success!","All items added!","success"),console.log("All items added!"),a._.player.backpack.data.mount=(0,r.itemify)(a._.gameData.mount,1),console.log("Added all mounts."),a._.gameData.dorm.forEach((e=>a._.player.house.data.items[e.ID]={A:[],N:99e4.value})),console.log("Added 990000 of all furniture."),a._.gameData.pet.forEach((e=>{a._.player.kennel.addPet(e.ID.toString(),a.VERY_LARGE_NUMBER,26376,100)})),a._.player.kennel._encounterInfo._data.pets=[],a._.gameData.pet.map((e=>{a._.player.kennel._encounterInfo._data.pets.push({firstSeenDate:Date.now(),ID:e.ID,timesBattled:1,timesRescued:1})})),a._.player.kennel.petTeam.forEach((e=>{e&&e.assignRandomSpells&&e.assignRandomSpells()})),console.log("Added all pets."),a._.gameData.pet.filter((e=>[158,166,168].includes(e.ID))).forEach((e=>{a._.player.kennel.addPet(e.ID.toString(),a.VERY_LARGE_NUMBER,26376,100)})),a._.player.kennel.petTeam.forEach((e=>{e&&e.assignRandomSpells&&e.assignRandomSpells()})),console.log("Added Mythical Epics."),a._.gameData.pet.filter((e=>[125,126,127,128,129,130,131,132,133].includes(e.ID))).forEach((e=>{a._.player.kennel.addPet(e.ID.toString(),a.VERY_LARGE_NUMBER,26376,100)})),a._.player.kennel.petTeam.forEach((e=>{e&&e.assignRandomSpells&&e.assignRandomSpells()})),console.log("Added Legacy Epics."),a._.constants.constants["GameConstants.Inactivity.LOG_OUT_TIMER_SECONDS"]=0,console.log("Inactivity Kick Disabled."),a._.player._playerContainer.walkSpeed=20,console.log("Player walkspeed set to 20."),Array.from(a._.instance.prodigy.gameContainer._inversifyContainer._bindingDictionary._map).forEach((e=>{try{a._.instance.prodigy.gameContainer.get(e[0]).battleData&&(i=e[0])}catch(t){console.log("Error for ".concat(e[0]))}})),a._.instance.prodigy.gameContainer.get(i).battleData._secureCharacterState._data.inventory.orb=(0,r.runeify)(a._.gameData.orb,100),a._.player.equipment.setHat(200),a._.player.equipment.setBoots(93),a._.player.equipment.setOutfit(161),a._.player.equipment.setWeapon(196),(0,a.saveCharacter)(),console.log("Character Saved."),a._.player.appearanceChanged=!0,console.log("Appearance Refreshed."),a._.instance.prodigy.open.menuCloseAll(),console.log("Popups closed."),(0,a.saveCharacter)(),console.log("Character Saved."),console.log("Max Account Successful."),o.Toast.fire("Maxed!","Check your backpack!","success")}})))}.apply(t,n))||(e.exports=a)},8130:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))}}n=[o,t,o(9820),o(4759),o(2852),o(112)],void 0===(a=function(e,t,o,n,a,r){"use strict";new o.Hack(o.category.inventory,"Item stacker").setClick(s((function*(){var e=yield n.NumberInput.fire("Amount","How many of every item would you like?","question");if(e.value&&(yield n.Confirm.fire("Are you sure you want to get all items in the game?")).value){r.ids.forEach((t=>{a._.player.backpack.data[t]=(0,r.itemify)(a._.gameData[t].filter((e=>"follow"===t?![125,126,127,128,129,134,135,136,137].includes(e.ID):e)),e.value)})),a._.gameData.dorm.forEach((t=>a._.player.house.data.items[t.ID]={A:[],N:e.value}));for(var t=()=>a._.player.backpack.data.item.findIndex((e=>84===e.ID||85===e.ID||86===e.ID));t()>-1;)a._.player.backpack.data.item.splice(t(),1);return n.Toast.fire("Success!","All items added!","success")}}))),new o.Hack(o.category.inventory,"Clear inventory").setClick(s((function*(){(yield n.Confirm.fire("Are you sure you want to clear your inventory?")).value&&(Object.keys(a._.player.backpack.data).forEach((e=>a._.player.backpack.data[e]=[])),n.Toast.fire("Success!","Inventory cleared.","success"))}))),new o.Hack(o.category.inventory,"Selector (Basic)").setClick(s((function*(){yield n.Swal.fire({title:"What would you like to obtain?",input:"select",inputOptions:r.names,inputPlaceholder:"Select...",inputValidator:e=>e?"":"Please select which you'd like to obtain.",showCancelButton:!0}).then(function(){var e=s((function*(e){var t=parseInt(e.value),o=r.names[t],s=r.ids[t];if(o){var i=yield n.NumberInput.fire("Amount","How many each object would you like?","question");i.value&&(yield n.Confirm.fire("Are you sure you want to get all ".concat(o.toLowerCase(),"?"))).value&&(a._.player.backpack.data[s]=(0,r.itemify)(a._.gameData[s].filter((e=>"follow"===s?![125,126,127,128,129,134,135,136,137].includes(e.ID):e)),i.value),n.Toast.fire("".concat(o," Added!"),"All ".concat(o.toLowerCase()," have been added to your inventory!"),"success"),(0,a.saveCharacter)())}}));return function(t){return e.apply(this,arguments)}}())}))),new o.Hack(o.category.inventory,"Selector (Advanced)","Choose a specific object and quantity to obtain.").setClick(s((function*(){yield n.Swal.fire({title:"What would you like to obtain?",input:"select",inputOptions:r.names,inputPlaceholder:"Select...",inputValidator:e=>e?"":"Please select which you'd like to obtain.",showCancelButton:!0}).then(function(){var e=s((function*(e){if(a._.gameData[r.ids[e.value]]){var t=[];a._.gameData[r.ids[e.value]].forEach((e=>{t.push(e.data.name)})),yield n.Swal.fire({title:"What specific object categorized as ".concat(r.names[e.value].toLowerCase()," would you like to get?"),input:"select",inputOptions:t,inputPlaceholder:"Select...",inputValidator:e=>e?"":"Please select which you'd like to get.",showCancelButton:!0}).then(function(){var t=s((function*(t){var o=parseInt(t.value);if(a._.gameData[r.ids[e.value]][o]){var s=yield n.NumberInput.fire("Amount","How many of the object would you like?","question");if(s.value)return-1===a._.player.backpack.data[r.ids[e.value]].findIndex((t=>t.ID===a._.gameData[r.ids[e.value]][o].ID))?a._.player.backpack.data[r.ids[e.value]].push({ID:a._.gameData[r.ids[e.value]][o].ID,N:s.value}):a._.player.backpack.data[r.ids[e.value]].findIndex((t=>t.ID===a._.gameData[r.ids[e.value]][o].ID)),console.log(a._.gameData[r.ids[e.value]][o].ID),(0,a.saveCharacter)(),n.Toast.fire("".concat(r.names[e.value]," Added!"),"Your selected ".concat(r.names[e.value].toLowerCase()," have been added."),"success")}}));return function(e){return t.apply(this,arguments)}}())}}));return function(t){return e.apply(this,arguments)}}())}))),new o.Hack(o.category.inventory,"Obtain All Furniture").setClick(s((function*(){var e=yield n.NumberInput.fire("Amount","How many of each piece of furniture would you like?","question");if(e.value&&(yield n.Confirm.fire("Are you sure you want to get all furniture?")).value)return a._.gameData.dorm.forEach((t=>a._.player.house.data.items[t.ID]={A:[],N:e.value})),n.Toast.fire("Furniture Added!","All furniture has been added to your inventory!","success")}))),new o.Hack(o.category.inventory,"Obtain All Mounts","This gives you all of the mounts in the game.").setClick(s((function*(){return a._.player.backpack.data.mount=(0,r.itemify)(a._.gameData.mount,1),n.Toast.fire("Mounts Added!","All mounts have been added to your inventory!")}))),new o.Hack(o.category.inventory,"Remove item").setClick(s((function*(){var e=yield n.Swal.fire({title:"What category would you like to remove an item from?",input:"select",inputOptions:r.names,inputPlaceholder:"Select...",inputValidator:e=>e?"":"Please select which you'd like to obtain.",showCancelButton:!0});if(a._.gameData[r.ids[e.value]]){var t=a._.gameData[r.ids[e.value]].map((e=>e.data.name)),o=yield n.Swal.fire({title:"What specific object categorized as ".concat(r.names[e.value].toLowerCase()," would you like to remove?"),input:"select",inputOptions:t,inputPlaceholder:"Select...",inputValidator:e=>e?"":"Please select which you'd like to get.",showCancelButton:!0});if(o=parseInt(o.value),a._.gameData[r.ids[e.value]][o]){var s=yield n.NumberInput.fire("Amount","How many of the object would you like to remove?","question");if(s.value){if(-1!==a._.player.backpack.data[r.ids[e.value]].findIndex((t=>t.ID===a._.gameData[r.ids[e.value]][o].ID))){var i=a._.player.backpack.data[r.ids[e.value]].findIndex((t=>t.ID===a._.gameData[r.ids[e.value]][o].ID));return a._.player.backpack.data[r.ids[e.value]][i].N-=parseInt(s.value),a._.player.backpack.data[r.ids[e.value]][i].N<=0&&a._.player.backpack.data[r.ids[e.value]].splice(i,1),(0,a.saveCharacter)(),n.Toast.fire("Removed!","Successfully removed ".concat(s.value," ").concat(a._.gameData[r.ids[e.value]][o].name,"!"),"success")}yield n.Swal.fire("Item Does Not Exist","You do not have any ".concat(a._.gameData[r.ids[e.value]][o].name,"."),"error")}}}}))),new o.Hack(o.category.inventory,"Obtain All Furniture").setClick(s((function*(){return(yield n.Confirm.fire("Are you sure you want to get all furniture?")).value?(a._.gameData.dorm.forEach((e=>a._.player.house.data.items[e.ID]={A:[],N:a.VERY_LARGE_NUMBER})),n.Toast.fire("Furniture Added!","All furniture have been added to your inventory!","success")):console.log("Cancelled.")})))}.apply(t,n))||(e.exports=a)},8346:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))}}n=[o,t,o(9820),o(4759),o(2852),o(112)],void 0===(a=function(e,t,o,n,a,r){"use strict";new o.Hack(o.category.location,"Teleport To Map (interactive)").setClick(s((function*(){var e=n.Swal.mixin({focusConfirm:!1,showCancelButton:!0,preConfirm:()=>{var e;return null===(e=document.querySelector(".radioDiv[checked]"))||void 0===e?void 0:e.getAttribute("zone")}}),t=document.createElement("div");t.classList.add("radioContainer");var o=function(e){var o=document.createElement("DIV");o.classList.add("radioDiv"),o.setAttribute("zone",e);var n=a.locations[e];n?o.style.backgroundImage="url(".concat(n,")"):o.innerText=e,o.onclick=()=>{document.querySelectorAll(".radioDiv[checked]").forEach((e=>e.removeAttribute("checked"))),o.setAttribute("checked","")},t.append(o)};for(var r of Object.keys(a.prodigy.world.zones))o(r);var s=yield e.fire({title:"Teleport Zone",html:t,customClass:{popup:"radioSwal"}});if(s.value){var i=Object.keys(a.prodigy.world.zones[s.value].maps),c=yield n.Swal.fire({input:"select",inputOptions:new Map(i.map((e=>[e,e]))),title:"Map",text:"Which map in the zone do you want to teleport to?"});if(c.value){var l=(yield n.NumberInput.fire("Please enter the x to teleport to. (Try 500?)")).value||500,u=(yield n.NumberInput.fire("Please enter the y to teleport to. (Try 500?)")).value||500;return a.prodigy.world.zones[s.value].teleport(c.value,l,u,{},{}),n.Toast.fire("Teleported","You have been teleported!","success")}}}))),new o.Hack(o.category.location,"Teleport to house by userID").setClick(s((function*(){var e=(yield n.NumberInput.fire("Please enter the userID.")).value;if(e)return(0,r.toHouse)(e),n.Toast.fire("Teleported!","You have been teleported!","success")}))),new o.Hack(o.category.location,"Get Map Location").setClick(s((function*(){var e=a._.player.data.zone;navigator.clipboard.writeText(e).then(s((function*(){return console.log("Async: Copying to clipboard was successful!"),n.Swal.fire({title:"Map Location",html:"You are at
    ".concat(e," .
    You can save this to get to the same zone.

    Your location is has also been copied to your clipboard."),icon:"info"})})),function(){var t=s((function*(t){return console.error("Async: Could not copy text: ",t),n.Swal.fire({title:"Map Location",html:"You are at
    ".concat(e," .
    You can save this to get to the same zone."),icon:"info"})}));return function(e){return t.apply(this,arguments)}}())})))}.apply(t,n))||(e.exports=a)},3344:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))}}n=[o,t,o(9820),o(2852),o(4759)],void 0===(a=function(e,t,o,n,a){"use strict";new o.Toggler(o.category.minigames,"69x Walk Speed [Dyno Dig]","Walk so fast that you're teleporting, in Dyno Dig.").setEnabled(s((function*(){return n._.instance.game.state.states.get("DinoDig").walkSpeed=69,a.Toast.fire("Enabled!","You will now walk so fast that you're teleporting in Dyno Dig.","success")}))).setDisabled(s((function*(){return n._.instance.game.state.states.get("DinoDig").walkSpeed=1.5,a.Toast.fire("Disabled!","You will now walk at normal speed, in Dyno Dig.","success")})))}.apply(t,n))||(e.exports=a)},465:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))}}n=[o,t,o(4759),o(9820),o(2852)],void 0===(a=function(e,t,o,n,a){"use strict";new n.Hack(n.category.misc,"Skip Tutorial").setClick(s((function*(){var e=(e,t,o,n)=>{a._.instance.prodigy.world.getZone(e).testQuest(t,o,n);try{Object.fromEntries(a._.instance.game.state.states).TileScreen.process()}catch(e){}};e("house",2),e("academy",2),a._.player.state.set("tutorial-0",4),a._.player.backpack.addKeyItem(13,0),a._.player.tutorial.data.menus[14]=[1],a._.instance.prodigy.open.map(!0,[]),a._.player.onTutorialComplete(),a._.player.data.level=Math.max(a._.player.data.level,5)}))),new n.Toggler(n.category.misc,"Disable Monster Encounters").setEnabled(s((function*(){return a._.constants.constants["GameConstants.Debug.SCALE_ENCOUNTER_DISTANCE"]=0,o.Toast.fire("Enabled!","Monsters will no longer battle you.","success")}))).setDisabled((()=>(a._.constants.constants["GameConstants.Debug.SCALE_ENCOUNTER_DISTANCE"]=1,o.Toast.fire("Disabled!","Monsters will now battle you.","success")))),new n.Toggler(n.category.misc,"Skip enemy turn").setEnabled(s((function*(){return a._.constants.constants["GameConstants.Battle.SKIP_ENEMY_TURN"]=!0,o.Toast.fire("Skipping!","Enemy turns will now be skipped.","success")}))).setDisabled((()=>(a._.constants.constants["GameConstants.Battle.SKIP_ENEMY_TURN"]=!1,o.Toast.fire("Disabled","Enemy turns will no longer be skipped.","success")))),new n.Hack(n.category.misc,"Bobbify","Converts your account into Bobby Fancywoman.").setClick(s((function*(){if((yield o.Confirm.fire("Are you sure you want your account to be turned into Bobby Fancywoman?","This action is not reversable.")).value)return a._.player.name.data.nickname=null,a._.player.name.data.firstName=44,a._.player.name.data.middleName=754,a._.player.name.data.lastName=882,a._.player.data.stars=-1e22,a._.player.data.level=69,a._.player.appearance.setGender("male"),a._.player.appearance.setEyeColor(1),a._.player.appearance.setFace(4),a._.player.appearance.setHair(19,1),a._.player.appearance.setSkinColor(1),a._.player.equipment.setFollow(19),a._.player.equipment.setHat(19),a._.player.equipment.setBoots(19),a._.player.equipment.setOutfit(19),a._.player.equipment.setWeapon(19),o.Toast.fire("Bobbified!","You are now Bobby Fancywoman.","success")}))),new n.Hack(n.category.misc,"Reset Account","Completely resets your account.").setClick(s((function*(){if((yield o.Confirm.fire("Are you sure you want to reset your account?","This action is not reversible.")).value)return a._.player.resetAccount(),o.Swal.fire("Reset!","Your account has been reset. Reload Prodigy for the full effect.","success")})));var r=null,i=0;new n.Hack(n.category.misc,"Chat Spammer","Cycles through chat messages pretty fast!").setClick(s((function*(){return r?o.Swal.fire("Already Enabled","Chat Spammer is already enabled. To disable chat spammer, reload Prodigy.","error"):(r=setInterval(s((function*(){a._.player.chatID=i,++i>1164&&(i=0)})),90),o.Toast.fire("Spamming!","You're now sending a chat message every 90 milliseconds!","success"))})));var c=null,l=0;new n.Hack(n.category.misc,"High Chat Spammer","Cycles through chat messages hella fast!").setClick(s((function*(){return c?o.Swal.fire("Already Enabled","High Chat Spammer is already enabled. To disable chat spammer, reload Prodigy.","error"):(yield o.Confirm.fire("Warning","This hack may cause lag on weak computers (ex. School Chromebooks).")).value?(c=setInterval(s((function*(){a._.player.chatID=l,++l>1164&&(l=0)})),30),o.Toast.fire("Spamming!","You're now sending a chat message every 30 milliseconds!","success")):console.log("Cancelled")})));var u=null,d=0;new n.Hack(n.category.misc,"Chat Spammer on Meth","Cycles through chat messages FAST ASF!").setClick(s((function*(){return u?o.Swal.fire("Already Enabled","Chat Spammer on Meth is already enabled. To disable chat spammer, reload Prodigy.","error"):(yield o.Confirm.fire("Warning","This hack may cause lag on weak computers (ex. School Chromebooks).")).value?(u=setInterval(s((function*(){a._.player.chatID=d,++d>1164&&(d=0)})),1),o.Toast.fire("Spamming!","You're now sending a chat message every 1 millisecond!","success")):console.log("Cancelled")}))),new n.Hack(n.category.misc,"[Fix] Fix Battle Crash").setClick(s((function*(){return a._.player.kennel.petTeam.forEach((e=>{e&&e.assignRandomSpells&&e.assignRandomSpells()})),o.Toast.fire("Success!","Fixed kennel attack bug!","success")}))),new n.Hack(n.category.misc,"[Fix] Stuck in Unfinished Tower Fix","Takes you out of an unfinished tower if you're stuck in one.").setClick(s((function*(){return a._.instance.prodigy.world.zones.house.teleport("exit"),o.Toast.fire("Success!","You've been teleported outside of your house.","success")}))),new n.Hack(n.category.misc,"uwu","OwO").setClick(s((function*(){return(yield o.Confirm.fire("Are you sure that you want to UwU OwO?","Reload Prodigy to revert UwU.")).value?(Object.chance=e=>{var t={},o=0;for(var n of Object.keys(e).sort(((e,o)=>t[e]-t[o])))t[n]=[],t[n][0]=o+1,t[n][1]=e[n]+o,o=e[n]+o;return t},Object.random=e=>{var t=Object.values(e),o=t[t.length-1][1],n=Math.randint(o);return Object.reverse(e)[t.find((e=>n>=e[0]&&n<=e[1]))]},Array.prototype.join=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:",";return"string"==typeof e?this.reduce(((t,o,n,a)=>t+(nt+(n0&&void 0!==arguments[0]?arguments[0]:",";return"string"==typeof e?this.reduce(((t,o,n)=>t+(n?e+o:o)),""):e instanceof Function?this.reduce(((t,o,n,a)=>t+(n?e(a[n],n,a)+o:o)),""):void 0},String.UWUFX=e=>{var t=Object.chance({"owo :3":20,"✧w✧":20,UwU:20,OwO:10,rawr:10,"uwu :3":5,":3 meow":15,":3":15,X3:15,"*purrs*":15,owo:15,uwu:15,"^w^":15,"x3 rawr":15,owowowowo:15});return e.split(" ").leftJoin(((e,t)=>0===Math.floor(6*Math.random())&&/[A-Za-z]/.test(e[0])?" ".concat(e[0],"-"):" ")).split(" ").join(((e,o)=>0===Math.floor(5*Math.random())?" ".concat(Object.random(t)," "):" "))},String.UWUTable={y:"wy",l:"w",r:"w",ss:"zs",n:"nw",ove:"uv",ome:"um",x:"ks",com:"cum",stu:"stew",au:"aw"},Math.randint=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Math.floor(Math.random()*e-t)+t},String.prototype.escapeRegex=function(){return this.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")},String.prototype.replaceAll=function(e,t){return this.replace(new RegExp(e.toString().escapeRegex(),"gi"),(e=>t))},Object.fromArrays=(e,t)=>{var o={};return e.forEach(((e,n)=>{o[e]=t[n]})),o},Object.reverse=e=>Object.fromArrays(Object.values(e),Object.keys(e)),String.prototype.bulkReplace=function(e){var t=this;for(var o in e)t=t.replaceAll(o,e[o]);return t},String.UWU=e=>String(e).bulkReplace(String.UWUTable),Object.keys(a._.localizer.dataSource._languageData).map((e=>a._.localizer.dataSource._languageData[e]=String.UWUFX(String.UWU(a._.localizer.dataSource._languageData[e])))),Object.values(a._.gameData).map((e=>e.map((e=>[e.data.name&&(e.data.name=String.UWUFX(String.UWU(e.data.name))),e.name&&(e.name=String.UWUFX(String.UWU(e.name))),e.data.flavorText&&(e.data.flavorText=String.UWUFX(String.UWU(e.data.flavorText)))])))),o.Toast.fire("uwu","Reload Prodigy to fix uwu.","success")):console.log("uwu cancelled")})))}.apply(t,n))||(e.exports=a)},8603:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))}}n=[o,t,o(4759),o(9820),o(2852)],void 0===(a=function(e,t,o,n,a){"use strict";var r=null;new n.Hack(n.category.patched,"Arena Point Increaser [Patched]").setClick(s((function*(){return r?o.Swal.fire("Already Enabled","Arena Point Increaser is already enabled.","error"):(yield o.Confirm.fire("This hack is patched.","Running it will probably do nothing.")).value?(r=setInterval(s((function*(){var e=yield(yield fetch("https://api.prodigygame.com/leaderboard-api/season/".concat(a.prodigy.pvpNetworkHandler.seasonID,"/user/").concat(a._.player.userID,"/pvp?userID=").concat(a._.player.userID),{headers:{authorization:"Bearer ".concat(a.prodigy.network.jwtAuthProvider.getToken()),"content-type":"application/x-www-form-urlencoded; charset=UTF-8"},body:"seasonID=".concat(a.prodigy.pvpNetworkHandler.seasonID,"&action=win"),method:"POST",mode:"cors"})).text();if(""!==e){var t=JSON.parse(e);console.log("[API] ".concat(t.points," Points (+100)"))}else console.log("[API] Failed to add points.")})),60500),o.Swal.fire("Enabled","Arena Point Increaser has been enabled.","success")):console.log("Cancelled")}))),new n.Hack(n.category.patched,"Disable Timeout Dialog [Patched]").setClick(s((function*(){return(yield o.Confirm.fire("This hack is patched.","Running it will probably do nothing.")).value?(a.prodigy.debugMisc.disableTimeoutDialogue(),o.Toast.fire("Enabled","Timeout Dialog has been disabled.","success")):console.log("Cancelled")})))}.apply(t,n))||(e.exports=a)},7736:(module,exports,__webpack_require__)=>{var __webpack_unused_export__,__WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;function asyncGeneratorStep(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function _asyncToGenerator(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var r=e.apply(t,o);function s(e){asyncGeneratorStep(r,n,a,s,i,"next",e)}function i(e){asyncGeneratorStep(r,n,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_require__(112)],__WEBPACK_AMD_DEFINE_RESULT__=function(require,exports,swal_1,index_1,util_1,hackify_1){"use strict";__webpack_unused_export__={value:!0},new index_1.Hack(index_1.category.pets,"Get All Pets").setClick(_asyncToGenerator((function*(){return(yield swal_1.Confirm.fire("Would you like to add all pets to your pets?")).value?(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()})),swal_1.Toast.fire("Success!","All pets have been added!","success")):console.log("Cancelled")}))),new index_1.Hack(index_1.category.pets,"Get All Legacy Epics").setClick(_asyncToGenerator((function*(){return(yield swal_1.Confirm.fire("Would you like to add all legacy epics to your team?")).value?(util_1._.gameData.pet.filter((e=>[125,126,127,128,129,130,131,132,133].includes(e.ID))).forEach((e=>{util_1._.player.kennel.addPet(e.ID.toString(),util_1.VERY_LARGE_NUMBER,26376,100)})),util_1._.player.kennel.petTeam.forEach((e=>{e&&e.assignRandomSpells&&e.assignRandomSpells()})),swal_1.Toast.fire("Success!","All legacy epics have been added!","success")):console.log("Cancelled")}))),new index_1.Hack(index_1.category.pets,"Get All Mythical Epics").setClick(_asyncToGenerator((function*(){return(yield swal_1.Confirm.fire("Would you like to add all mythical epics to your pets?")).value?(util_1._.gameData.pet.filter((e=>[156,157,158,160,168,170].includes(e.ID))).forEach((e=>{util_1._.player.kennel.addPet(e.ID.toString(),util_1.VERY_LARGE_NUMBER,26376,100)})),util_1._.player.kennel.petTeam.forEach((e=>{e&&e.assignRandomSpells&&e.assignRandomSpells()})),swal_1.Toast.fire("Success!","All mythical epics have been added!","success")):console.log("Cancelled")}))),new index_1.Hack(index_1.category.pets,"Clear Pets").setClick(_asyncToGenerator((function*(){return(yield swal_1.Confirm.fire("Would you like to delete all of your pets?")).value?(util_1._.player.kennel.data.length=0,swal_1.Toast.fire("Success!","Your pets have been cleared!","success")):console.log("Cancelled")}))),new index_1.Hack(index_1.category.pets,"Add Pet","Adds a pet from a list.").setClick(_asyncToGenerator((function*(){var e=yield swal_1.Swal.fire({input:"select",inputOptions:new Map(util_1._.gameData.pet.map((e=>[e.ID.toString(),"".concat(e.ID,": ").concat(e.data.name)]))),title:"Choose Pet",text:"Which pet do you want to obtain?"});if(void 0!==e.value)return util_1._.player.kennel.addPet(e.value),util_1._.player.kennel._encounterInfo._data.pets.push({firstSeenDate:Date.now(),ID:e.value,timesBattled:1,timesRescued:1}),swal_1.Toast.fire("Success!","Your chosen pet has been added to your pets!","success")}))),new index_1.Hack(index_1.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(_asyncToGenerator((function*(){var petTeam=util_1._.player.kennel.petTeam.slice(0);petTeam.shift();var names=petTeam.map((e=>e.getName())),pet=yield swal_1.Swal.fire({title:"Which pet would you like to edit?",input:"select",inputOptions:names,inputPlaceholder:"Select...",inputValidator:e=>e?"":"Please select which you'd like to obtain.",showCancelButton:!0}),amt=yield swal_1.NumberInput.fire("Level","What would you like to set your pet's level to? (Can be set over 100)","question");if(amt.value){var num=amt.value;return eval("_.player.kennel.petTeam[parseInt(".concat(pet.value,")+1].getLevel = () => {return ").concat(num,"}")),swal_1.Toast.fire("Updated!","The level of your pet was successfully updated. Note: this hack is client-side.","success")}}))),new index_1.Hack(index_1.category.pets,"Delete Pet","Delete a pet.").setClick(_asyncToGenerator((function*(){var e=yield(0,hackify_1.getPet)("Which pet do you wish to delete?");if(void 0!==e)return util_1._.player.kennel.data.splice(e,1),swal_1.Toast.fire("Successfully deleted!","The selected pet was deleted successfully.","success")}))),new index_1.Hack(index_1.category.pets,"Edit Kennel","Allows you to directly edit your pets.").setClick(_asyncToGenerator((function*(){var e=new Map,t=e=>util_1._.player.kennel._petTeam[e];e.set("0","[0] Center - ".concat(t(0))),e.set("1","[1] Top - ".concat(t(1))),e.set("2","[2] Bottom - ".concat(t(2)));var o=yield swal_1.Swal.fire({input:"select",inputOptions:e,title:"Select Slot",text:"Select a slot to edit"});o.value&&(swal_1.Swal.fire("result",o.value),console.log(t(parseInt(o.value))))})))}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),void 0===__WEBPACK_AMD_DEFINE_RESULT__||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)},7939:(module,exports,__webpack_require__)=>{var __webpack_unused_export__,__WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;function asyncGeneratorStep(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function _asyncToGenerator(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var r=e.apply(t,o);function s(e){asyncGeneratorStep(r,n,a,s,i,"next",e)}function i(e){asyncGeneratorStep(r,n,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_require__(112)],__WEBPACK_AMD_DEFINE_RESULT__=function(require,exports,swal_1,index_1,util_1,hackify_1){"use strict";__webpack_unused_export__={value:!0},new index_1.Hack(index_1.category.player,"Max Account").setClick(_asyncToGenerator((function*(){if(!(yield swal_1.Confirm.fire("Are you sure that you want to max your account?","We recommend doing this on an alt.")).value)return console.log("Cancelled");util_1._.player.data.gold=99e5,console.log("Set player gold to 9900000.");var e=100..value-2;util_1._.player.data.stars=Math.round((1-Math.pow(1.042,e))/(1-1.042)*20+10),util_1._.player.data.level=100,util_1._.player.getLevel=()=>util_1._.player.data.level,console.log("Set player level to 100"),util_1._.player.data.bountyScore=100,console.log("Set player's bounty points to 100.");for(var t=0;t{util_1._.player.backpack.data[e]=(0,hackify_1.itemify)(util_1._.gameData[e].filter((t=>"follow"===e?![125,126,127,128,129,134,135,136,137].includes(t.ID):t)),1..value)})),util_1._.gameData.dorm.forEach((e=>util_1._.player.house.data.items[e.ID]={A:[],N:1..value}));for(var n=()=>util_1._.player.backpack.data.item.findIndex((e=>84===e.ID||85===e.ID||86===e.ID));n()>-1;)util_1._.player.backpack.data.item.splice(n(),1);swal_1.Toast.fire("Success!","All items added!","success"),console.log("All items added!"),util_1._.player.backpack.data.mount=(0,hackify_1.itemify)(util_1._.gameData.mount,1),console.log("Added all mounts.");var a="currency";return util_1._.player.backpack.data[a]=(0,hackify_1.itemify)(util_1._.gameData[a].filter((e=>e)),6969420),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.equipment.setHat(200),util_1._.player.equipment.setBoots(93),util_1._.player.equipment.setOutfit(161),util_1._.player.equipment.setWeapon(196),util_1._.player.appearanceChanged=!0,console.log("Appearance Refreshed."),(0,util_1.saveCharacter)(),console.log("Character Saved."),console.log("Max Account Successful."),swal_1.Toast.fire("Maxed!","Check your backpack!","success")}))),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)return e.value>1e7?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;return 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");if(void 0!==e.value)return 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");if(void 0!==e.value)return 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;t(util_1._.instance.prodigy.gameContainer.get((0,hackify_1.getMemberModule)()).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"),o=(e,t)=>{var o=document.createElement("select");for(var n of(o.classList.add("selectName"),e.entries())){var a=document.createElement("option");[a.value,a.innerText]=n,t(a.value)&&(a.selected=!0),o.options.add(a)}return o},n=(t,n)=>o(new Map(e.filter((e=>e.data.type===t)).map((e=>[e.ID.toString(),e.name]))),(e=>n(+e)));t.append(n(0,(e=>e===util_1._.player.name.data.firstName))),t.append(n(1,(e=>e===util_1._.player.name.data.middleName))),t.append(n(2,(e=>e===util_1._.player.name.data.lastName))),t.append(o(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");if(level.value)return 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*(){return 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*(){return 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")):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 o=util_1._.instance.prodigy.world.zones[t].getCurrentQuestID();return util_1._.instance.prodigy.world.zones[t].completeQuest(o)?(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)});if(e.value)return 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.toString()).then((function(){return 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){return 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();return 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?");if(e.value)return util_1._.player.grade=parseInt(e.value),swal_1.Toast.fire("Success","Successfully changed grade to ".concat(e,"!"),"success")})))}.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,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function _asyncToGenerator(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var r=e.apply(t,o);function s(e){asyncGeneratorStep(r,n,a,s,i,"next",e)}function i(e){asyncGeneratorStep(r,n,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*(){return 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*(){return 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"});return t.ok?swal_1.Toast.fire("Success!","Character has been successfully loaded. Reload for the changes to take effect.","success"):swal_1.Toast.fire("Request failed.","An error occurred while loading the character. Error code: ".concat(t.status),"error")}return 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*(){return(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;return 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*(){return 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);return 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*(){return teleportingInterval=setInterval((()=>{try{util_1._.player._playerContainer.walkSpeed=500}catch(e){}})),swal_1.Toast.fire("Success!","Successfully enabled teleport click.","success")}))).setDisabled(_asyncToGenerator((function*(){return 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*(){return util_1._.network.game._paused=!0,swal_1.Toast.fire("Success!","Successfully paused Prodigy.","success")}))).setDisabled(_asyncToGenerator((function*(){return 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)return console.log("Cancelled.");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 swal_1.Swal.fire({title:"Error",html:"Oops! There was an error with the code!
     ".concat(e," "),icon:"error"})}return 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,o){var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))}}var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};n=[o,t,o(7046),o(2852),o(3526),o(6455),o(4759),o(4719),o(158)],a=function(e,t,o,n,a,r,c,l){"use strict";var u,d,p,h;Object.defineProperty(t,"__esModule",{value:!0}),t.category=t.Toggler=t.Hack=t.toggler=t.wrapper=t.menu=void 0,r=i(r),t.menu=document.createElement("div"),t.wrapper=document.getElementById("game-wrapper"),null===(u=document.getElementById("cheat-menu"))||void 0===u||u.remove(),null===(d=document.getElementById("menu-toggler"))||void 0===d||d.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===(p=t.wrapper)||void 0===p||p.prepend(t.menu),t.toggler=document.createElement("button"),t.toggler.id="menu-toggler";var m=!1;null===(h=t.wrapper)||void 0===h||h.prepend(t.toggler),t.toggler.onclick=()=>{(m=!m)?(t.toggler.innerText="▼",t.menu.style.top="-100vh"):(t.toggler.innerText="▲",t.menu.style.top="10%")},t.toggler.onclick({});var f=document.createElement("DIV");f.classList.add("menu-left"),t.menu.append(f);var g=!0,y=e=>{var t=document.createElement("div");0==g?(t.append(document.createElement("br")),t.append(document.createElement("br"))):g=!1,t.classList.add("menu-area"),t.style.textAlign="center",f.append(t);var o=document.createElement("h1");return o.innerText=e,o.style.textAlign="center",o.style.color="white",t.append(o),t},w=document.createElement("h1");w.classList.add("menu-title"),w.innerText="Prodigy Hacks",w.style.textAlign="center",f.append(w);var b=document.createElement("h2");b.style.fontSize="25px",b.style.color="white",b.innerHTML="
    Press SHIFT to show/hide the menu. Scroll down in the menu for more hacks.",f.append(b);var v=document.createElement("h3");v.style.fontSize="20px",v.innerHTML="\n

    Join our Discord https://dsc.gg/ProdigyPNP!

    \n\n
    \n",v.style.color="white",f.append(v);class _{constructor(e,t,o){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),o&&this.setDesc(o)}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,n.saveCharacter)(),console.log("Triggered ".concat(t.name,"."))})),this}setDesc(e){return this.element.title=e,this.description=e,this}}t.Hack=_,t.Toggler=class extends _{constructor(e,t,o){var n;super(e,t,o),n=this,this.parent=e,this.element.setAttribute("status","false"),this.setClick(s((function*(){var e,t;n.status=!n.status,n.status?(localStorage.setItem(n.name,"true"),yield null===(e=n.enabled)||void 0===e?void 0:e.call(n)):(localStorage.setItem(n.name,"false"),yield null===(t=n.disabled)||void 0===t?void 0:t.call(n))})))}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:y("Player Hacks"),inventory:y("Inventory Hacks"),location:y("Location Hacks"),pets:y("Pet Hacks"),battle:y("Battle Hacks"),minigames:y("Minigame Hacks"),misc:y("Miscellaneous Hacks"),utility:y("Utility Hacks"),beta:y("Beta Testing | Beta Hacks may damage your account"),patched:y("Patched Hacks")},localStorage.hasTip?(0,l.IndexInfo)("Player already has tip."):(s((function*(){yield r.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,(0,l.IndexInfo)("Player was shown the tip.")),localStorage.getItem("level")&&(n._.player.getLevel=()=>localStorage.getItem("level"),(0,l.IndexInfo)("Loaded menu from localStorage."));var k=!0;document.addEventListener("keydown",(function(e){"Shift"==e.key&&((0,l.IndexInfo)("Shift key was pressed."),1==k?((0,l.IndexInfo)("Hiding cheat menu..."),document.getElementById("cheat-menu").style.display="none",document.getElementById("menu-toggler").style.display="none",k=!1,(0,l.IndexInfo)("Hidden cheat menu.")):((0,l.IndexInfo)("Showing cheat menu..."),document.getElementById("cheat-menu").style.display="block",document.getElementById("menu-toggler").style.display="block",k=!0,(0,l.IndexInfo)("Shown cheat menu.")))})),s((function*(){var e,t;(yield c.License.fire("ProdigyPNP",'\n

    \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 ')).value?yield(0,a.statusMessage)():(yield c.NoLicense.fire("ProdigyPNP License","\n

    \n You need to agree to our license to use our hacks. If you changed your mind and now agree to our license, reload Prodigy.\n

    \n ")).value?document.location="":(null===(e=document.getElementById("cheat-menu"))||void 0===e||e.remove(),null===(t=document.getElementById("menu-toggler"))||void 0===t||t.remove())}))()}.apply(t,n),void 0===a||(e.exports=a)},8238:(e,t,o)=>{var n,a;n=[o,t,o(9820)],a=function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stopFps=t.startFps=void 0;var n=document.createElement("button"),a=!1;t.startFps=function(){var e;a=!0,n.id="fps-counter",null===(e=o.wrapper)||void 0===e||e.prepend(n),setInterval((()=>{var e=_.player.game.fps._framerate;a?n.innerText=e.toFixed(2)+" FPS":n.remove()}),300)},t.stopFps=function(){var e;a=!1,null===(e=document.getElementById("fps-counter"))||void 0===e||e.remove()}}.apply(t,n),void 0===a||(e.exports=a)},112:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}n=[o,t,o(2852),o(4759)],a=function(e,t,o,n){"use strict";function a(e){o._.instance.prodigy.loading(!0);var t=t=>{var a=null!=t?t[e]:null;if(null!==a&&void 0!==a.house&&null!==a.house){o._.instance.prodigy.loading(!1);var r=o._.cloneDeep(o._.player.house);return r.setItems(a.house),void 0!==a.data.allowsHouseVisitors&&null!==a.data.allowsHouseVisitors&&a.data.allowsHouseVisitors?o._.instance.prodigy.world._("house",null,null,{house:r,getAllowsHouseVisitors:()=>void 0!==a.data.allowsHouseVisitors&&null!==a.data.allowsHouseVisitors&&a.data.allowsHouseVisitors,setAllowsHouseVisitors:e=>{a.data.allowsHouseVisitors=e}}):n.Swal.fire("Teleporting to ".concat(e," is not allowed."),"Try another user.","error")}};return o._.network.getCharData(e.toString(),["house","data"],t,t),n.Toast.fire("Teleported to house","You have been teleported to the house!","success")}Object.defineProperty(t,"__esModule",{value:!0}),t.getPet=t.teleportToHouse=t.toHouse=t.getMemberModule=t.runeify=t.itemify=t.ids=t.names=void 0,t.names=["Boots","Buddies","Fossils","Hats","Items","Key Items","Tower Town Frames","Tower Town Interiors","Mounts","Outfits","Relics","Weapons","Currencies"],t.ids=["boots","follow","fossil","hat","item","key","mathTownFrame","mathTownInterior","mount","outfit","spellRelic","weapon","currency"],t.itemify=(e,t)=>e.map((e=>({ID:e.ID,N:t}))).filter((e=>void 0!==e)),t.runeify=(e,t)=>e.map((e=>({ID:e.ID,quantity:t}))).filter((e=>void 0!==e)),t.getMemberModule=function(){return o._.player.hasMembership.toString().split('"')[1]},t.toHouse=function(e){if(o._.player.userID!==e){var t=o._.instance.prodigy.friendsListNetworkHandler.friendsList.length,r=o._.instance.prodigy.friendsListNetworkHandler.classList.length;o._.instance.prodigy.gameContainer.get("2e1-e659").create("house-visit","click","hub",t,r,null,null,e).broadcast()}var s=o._.instance.prodigy.world.getZone(o._.instance.prodigy.world.getCurrentZone());return s?s.handleLeaving(2,(()=>a(e))):n.Swal.fire({title:"Error",text:"You are not in a zone!",icon:"error"})},t.teleportToHouse=a;var s=function(){var e,t=(e=function*(e){return(yield n.Swal.fire({input:"select",inputOptions:new Map(o._.player.kennel.data.map(((e,t)=>{var n,a,r;return[t.toString(),"Level ".concat(e.level," - ").concat(null!==(n=null!==(a=e.nickname)&&void 0!==a?a:null===(r=o._.gameData.pet.find((t=>+t.ID==+e.ID)))||void 0===r?void 0:r.data.name)&&void 0!==n?n:"Unknown")]}))),title:"Choose Pet",text:e})).value},function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))});return function(e){return t.apply(this,arguments)}}();t.getPet=s}.apply(t,n),void 0===a||(e.exports=a)},2868:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}n=[o,t,o(2852),o(4759)],void 0===(a=function(e,t,o,n){"use strict";window.addEventListener("keydown",(e=>{switch(e.which){case 192:o._.instance.prodigy.open.menuCloseAll();break;case 220:var t=function(){var e,t=(e=function*(){if(!(yield n.Confirm.fire("Kit","Would you like to equip Celestial Gear?")).value)return console.log("Cancelled");o._.player.equipment.setHat(200),o._.player.equipment.setBoots(93),o._.player.equipment.setOutfit(161),o._.player.equipment.setWeapon(196),o._.player.appearanceChanged=!0,n.Toast.fire("Success!","You are now wearing Celestial Armor and wielding a Dual Blade.","success")},function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))});return function(){return t.apply(this,arguments)}}();t()}}))}.apply(t,n))||(e.exports=a)},4719:(e,t,o)=>{var n;n=function(e,t){"use strict";function o(e,o){return""==e||null==e?console.log("["+t.LogPrefix+":unknown] "+o):console.log("["+t.LogPrefix+":"+e+"] "+o)}function n(e,t,n){return o(t,"*"+e.toUpperCase()+"* "+n)}Object.defineProperty(t,"__esModule",{value:!0}),t.UtilityError=t.UtilitySuccess=t.UtilityInfo=t.PlayerError=t.PlayerSuccess=t.PlayerInfo=t.PetsError=t.PetsSuccess=t.PetsInfo=t.PatchedError=t.PatchedSuccess=t.PatchedInfo=t.MiscError=t.MiscSuccess=t.MiscInfo=t.MinigameError=t.MinigameSuccess=t.MinigameInfo=t.LocationError=t.LocationSuccess=t.LocationInfo=t.InventoryError=t.InventorySuccess=t.InventoryInfo=t.BetaError=t.BetaSuccess=t.BetaInfo=t.BattleError=t.BattleSuccess=t.BattleInfo=t.IndexError=t.IndexSuccess=t.IndexInfo=t.StatusLog=t.ConsoleLog=t.LogPrefix=void 0,t.LogPrefix="CheatGUI",t.ConsoleLog=o,t.StatusLog=n,t.IndexInfo=function(e){return n("info","index.ts",e)},t.IndexSuccess=function(e){return n("success","index.ts",e)},t.IndexError=function(e){return n("error","index.ts",e)},t.BattleInfo=function(e){return n("info","battle.ts",e)},t.BattleSuccess=function(e){return n("success","battle.ts",e)},t.BattleError=function(e){return n("error","battle.ts",e)},t.BetaInfo=function(e){return n("info","beta.ts",e)},t.BetaSuccess=function(e){return n("success","beta.ts",e)},t.BetaError=function(e){return n("error","beta.ts",e)},t.InventoryInfo=function(e){return n("info","inventory.ts",e)},t.InventorySuccess=function(e){return n("success","inventory.ts",e)},t.InventoryError=function(e){return n("error","inventory.ts",e)},t.LocationInfo=function(e){return n("info","location.ts",e)},t.LocationSuccess=function(e){return n("success","location.ts",e)},t.LocationError=function(e){return n("error","location.ts",e)},t.MinigameInfo=function(e){return n("info","minigame.ts",e)},t.MinigameSuccess=function(e){return n("success","minigame.ts",e)},t.MinigameError=function(e){return n("error","minigame.ts",e)},t.MiscInfo=function(e){return n("info","misc.ts",e)},t.MiscSuccess=function(e){return n("success","misc.ts",e)},t.MiscError=function(e){return n("error","misc.ts",e)},t.PatchedInfo=function(e){return n("info","patched.ts",e)},t.PatchedSuccess=function(e){return n("success","patched.ts",e)},t.PatchedError=function(e){return n("error","patched.ts",e)},t.PetsInfo=function(e){return n("info","pets.ts",e)},t.PetsSuccess=function(e){return n("success","pets.ts",e)},t.PetsError=function(e){return n("error","pets.ts",e)},t.PlayerInfo=function(e){return n("info","player.ts",e)},t.PlayerSuccess=function(e){return n("success","player.ts",e)},t.PlayerError=function(e){return n("error","player.ts",e)},t.UtilityInfo=function(e){return n("info","utility.ts",e)},t.UtilitySuccess=function(e){return n("success","utility.ts",e)},t.UtilityError=function(e){return n("error","utility.ts",e)}}.apply(t,[o,t]),void 0===n||(e.exports=n)},3131:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))}}n=[o,t,o(2852)],a=function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PopupInterval=void 0;var n=!1;t.PopupInterval=function(e){n=e},s((function*(){setInterval(s((function*(){n&&o._.instance.prodigy.open.menuCloseAll()})),200)}))()}.apply(t,n),void 0===a||(e.exports=a)},3526:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))}}n=[o,t,o(4759)],a=function(e,t,o){"use strict";function n(){return(n=s((function*(){var e=o.Swal.mixin({title:"PHEx 3.0.0",icon:"info",showCancelButton:!0,showConfirmButton:!0,confirmButtonText:"Update to 3.0.0",cancelButtonText:"I've already updated.",html:"

    WE DID IT!! PHEx 3.0.0 IS NOW RELESED!!!

    We've released a new version of PHEx! We strongly reccomend updating to PHEx 3.0.0.

    Update now!

    "});(yield(yield e.fire()).value)&&(window.location.href="https://github.com/ProdigyPNP/ProdigyMathGameHacking/releases/latest")}))).apply(this,arguments)}Object.defineProperty(t,"__esModule",{value:!0}),t.statusMessage=void 0,t.statusMessage=function(){return n.apply(this,arguments)}}.apply(t,n),void 0===a||(e.exports=a)},4759:function(e,t,o){var n,a,r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};n=[o,t,o(6455)],a=function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NoLicense=t.License=t.Info=t.Confirm=t.Toast=t.NumberInput=t.Input=t.Swal=void 0,o=r(o),t.Swal=o.default,t.Input=t.Swal.mixin({input:"text",showCancelButton:!0,showConfirmButton:!0,toast:!1}),t.NumberInput=t.Input.mixin({toast:!1,input:"number"}),t.Toast=t.Swal.mixin({toast:!0,position:"bottom"}),t.Confirm=t.Swal.mixin({icon:"warning",showCancelButton:!0,toast:!1,confirmButtonText:"Confirm",cancelButtonText:"Cancel"}),t.Info=t.Swal.mixin({icon:"info",showCancelButton:!1,toast:!1}),t.License=t.Swal.mixin({icon:"info",showCancelButton:!0,toast:!1,confirmButtonText:"Agree",cancelButtonText:"Disagree"}),t.NoLicense=t.Swal.mixin({icon:"error",showCancelButton:!0,toast:!1,confirmButtonText:"Reload",cancelButtonText:"Play without hacks"})}.apply(t,n),void 0===a||(e.exports=a)},2852:(e,t,o)=>{var n;n=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 o=t._.instance;t.game=o.game,t.prodigy=o.prodigy,t.gameData=t._.instance.game.state.states.get("Boot").gameData,t.getItem=(e,o)=>{var n;return null!==(n=t._.gameData[e].find((e=>e.ID===o)))&&void 0!==n?n: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,[o,t]),void 0===n||(e.exports=n)},450:(e,t,o)=>{"use strict";o.d(t,{Z:()=>i});var n=o(8081),a=o.n(n),r=o(3645),s=o.n(r)()(a());s.push([e.id,"@import url(https://fonts.googleapis.com/css?family=Arvo:400,700|Sen:400,700,800&display=swap&subset=latin-ext);"]),s.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;font-size:23px;height:26px;width:50px;border:1px solid rgba(0,0,0,.1)}#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 #fps-counter{z-index:2;position:absolute;border-radius:3px;background-color:rgba(255,255,255,.7333333333);transition:background-color .15s;width:130px;height:26px;font-size:23px;border:1px solid rgba(0,0,0,.1);margin-left:83%}#game-wrapper #fps-counter:hover{background-color:rgba(221,221,221,.7333333333)}#game-wrapper #fps-counter: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:rgba(0,0,0,.55);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;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 i=s},3645:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var o="",n=void 0!==t[5];return t[4]&&(o+="@supports (".concat(t[4],") {")),t[2]&&(o+="@media ".concat(t[2]," {")),n&&(o+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),o+=e(t),n&&(o+="}"),t[2]&&(o+="}"),t[4]&&(o+="}"),o})).join("")},t.i=function(e,o,n,a,r){"string"==typeof e&&(e=[[null,e,void 0]]);var s={};if(n)for(var i=0;i0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=r),o&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=o):u[2]=o),a&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=a):u[4]="".concat(a)),t.push(u))}},t}},8081:e=>{"use strict";e.exports=function(e){return e[1]}},1227:(e,t,o)=>{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 o="color: "+this.color;t.splice(1,0,o,"color: inherit");let n=0,a=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(n++,"%c"===e&&(a=n))})),t.splice(a,0,o)},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=o(2447)(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},2447:(e,t,o)=>{e.exports=function(e){function t(e){let o,a,r,s=null;function i(...e){if(!i.enabled)return;const n=i,a=Number(new Date),r=a-(o||a);n.diff=r,n.prev=o,n.curr=a,o=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,((o,a)=>{if("%%"===o)return"%";s++;const r=t.formatters[a];if("function"==typeof r){const t=e[s];o=r.call(n,t),e.splice(s,1),s--}return o})),t.formatArgs.call(n,e),(n.log||t.log).apply(n,e)}return i.namespace=e,i.useColors=t.useColors(),i.color=t.selectColor(e),i.extend=n,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 n(e,o){const n=t(this.namespace+(void 0===o?":":o)+e);return n.log=this.log,n}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 o;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const n=("string"==typeof e?e:"").split(/[\s,]+/),a=n.length;for(o=0;o{t[o]=e[o]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let o=0;for(let t=0;t{var t=1e3,o=60*t,n=60*o,a=24*n;function r(e,t,o,n){var a=t>=1.5*o;return Math.round(e/o)+" "+n+(a?"s":"")}e.exports=function(e,s){s=s||{};var i,c,l=typeof e;if("string"===l&&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*n;case"minutes":case"minute":case"mins":case"min":case"m":return s*o;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"===l&&isFinite(e))return s.long?(i=e,(c=Math.abs(i))>=a?r(i,c,a,"day"):c>=n?r(i,c,n,"hour"):c>=o?r(i,c,o,"minute"):c>=t?r(i,c,t,"second"):i+" ms"):function(e){var r=Math.abs(e);return r>=a?Math.round(e/a)+"d":r>=n?Math.round(e/n)+"h":r>=o?Math.round(e/o)+"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,o)=>{"use strict";o.r(t),o.d(t,{default:()=>y});var n=o(3379),a=o.n(n),r=o(7795),s=o.n(r),i=o(569),c=o.n(i),l=o(3565),u=o.n(l),d=o(9216),p=o.n(d),h=o(4589),m=o.n(h),f=o(450),g={};g.styleTagTransform=m(),g.setAttributes=u(),g.insert=c().bind(null,"head"),g.domAPI=s(),g.insertStyleElement=p(),a()(f.Z,g);const y=f.Z&&f.Z.locals?f.Z.locals:void 0},3379:e=>{"use strict";var t=[];function o(e){for(var o=-1,n=0;n{"use strict";var t={};e.exports=function(e,o){var n=function(e){if(void 0===t[e]){var o=document.querySelector(e);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(e){o=null}t[e]=o}return t[e]}(e);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(o)}},9216:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},3565:(e,t,o)=>{"use strict";e.exports=function(e){var t=o.nc;t&&e.setAttribute("nonce",t)}},7795:e=>{"use strict";e.exports=function(e){var t=e.insertStyleElement(e);return{update:function(o){!function(e,t,o){var n="";o.supports&&(n+="@supports (".concat(o.supports,") {")),o.media&&(n+="@media ".concat(o.media," {"));var a=void 0!==o.layer;a&&(n+="@layer".concat(o.layer.length>0?" ".concat(o.layer):""," {")),n+=o.css,a&&(n+="}"),o.media&&(n+="}"),o.supports&&(n+="}");var r=o.sourceMap;r&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(r))))," */")),t.styleTagTransform(n,e,t.options)}(t,e,o)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},4589:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},6455:function(e){e.exports=function(){"use strict";const e="SweetAlert2:",t=e=>e.charAt(0).toUpperCase()+e.slice(1),o=t=>{console.warn("".concat(e," ").concat("object"==typeof t?t.join(" "):t))},n=t=>{console.error("".concat(e," ").concat(t))},a=[],r=(e,t)=>{var n;n='"'.concat(e,'" is deprecated and will be removed in the next major release. Please use "').concat(t,'" instead.'),a.includes(n)||(a.push(n),o(n))},s=e=>"function"==typeof e?e():e,i=e=>e&&"function"==typeof e.toPromise,c=e=>i(e)?e.toPromise():Promise.resolve(e),l=e=>e&&Promise.resolve(e)===e,u={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,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",color:void 0,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,willOpen:void 0,didOpen:void 0,didRender:void 0,willClose:void 0,didClose:void 0,didDestroy:void 0,scrollbarPadding:!0},d=["allowEscapeKey","allowOutsideClick","background","buttonsStyling","cancelButtonAriaLabel","cancelButtonColor","cancelButtonText","closeButtonAriaLabel","closeButtonHtml","color","confirmButtonAriaLabel","confirmButtonColor","confirmButtonText","currentProgressStep","customClass","denyButtonAriaLabel","denyButtonColor","denyButtonText","didClose","didDestroy","footer","hideClass","html","icon","iconColor","iconHtml","imageAlt","imageHeight","imageUrl","imageWidth","preConfirm","preDeny","progressSteps","returnFocus","reverseButtons","showCancelButton","showCloseButton","showConfirmButton","showDenyButton","text","title","titleText","willClose"],p={},h=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],m=e=>Object.prototype.hasOwnProperty.call(u,e),f=e=>-1!==d.indexOf(e),g=e=>p[e],y=e=>{m(e)||o('Unknown parameter "'.concat(e,'"'))},w=e=>{h.includes(e)&&o('The parameter "'.concat(e,'" is incompatible with toasts'))},b=e=>{g(e)&&r(e,g(e))},v=e=>{const t={};for(const o in e)t[e[o]]="swal2-"+e[o];return t},_=v(["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","show","hide","close","title","html-container","actions","confirm","deny","cancel","default-outline","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","input-label","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loader","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error","no-war"]),k=v(["success","warning","info","question","error"]),C=()=>document.body.querySelector(".".concat(_.container)),x=e=>{const t=C();return t?t.querySelector(e):null},E=e=>x(".".concat(e)),S=()=>E(_.popup),T=()=>E(_.icon),P=()=>E(_.title),A=()=>E(_["html-container"]),I=()=>E(_.image),B=()=>E(_["progress-steps"]),D=()=>E(_["validation-message"]),O=()=>x(".".concat(_.actions," .").concat(_.confirm)),M=()=>x(".".concat(_.actions," .").concat(_.deny)),R=()=>x(".".concat(_.loader)),L=()=>x(".".concat(_.actions," .").concat(_.cancel)),N=()=>E(_.actions),j=()=>E(_.footer),H=()=>E(_["timer-progress-bar"]),F=()=>E(_.close),q=()=>{const e=Array.from(S().querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])')).sort(((e,t)=>{const o=parseInt(e.getAttribute("tabindex")),n=parseInt(t.getAttribute("tabindex"));return o>n?1:o"-1"!==e.getAttribute("tabindex")));return(e=>{const t=[];for(let o=0;ore(e)))},U=()=>V(document.body,_.shown)&&!V(document.body,_["toast-shown"])&&!V(document.body,_["no-backdrop"]),Y=()=>S()&&V(S(),_.toast),z={previousBodyPadding:null},W=(e,t)=>{if(e.textContent="",t){const o=(new DOMParser).parseFromString(t,"text/html");Array.from(o.querySelector("head").childNodes).forEach((t=>{e.appendChild(t)})),Array.from(o.querySelector("body").childNodes).forEach((t=>{e.appendChild(t)}))}},V=(e,t)=>{if(!t)return!1;const o=t.split(/\s+/);for(let t=0;t{if(((e,t)=>{Array.from(e.classList).forEach((o=>{Object.values(_).includes(o)||Object.values(k).includes(o)||Object.values(t.showClass).includes(o)||e.classList.remove(o)}))})(e,t),t.customClass&&t.customClass[n]){if("string"!=typeof t.customClass[n]&&!t.customClass[n].forEach)return o("Invalid type of customClass.".concat(n,'! Expected string or iterable object, got "').concat(typeof t.customClass[n],'"'));J(e,t.customClass[n])}},K=(e,t)=>{if(!t)return null;switch(t){case"select":case"textarea":case"file":return e.querySelector(".".concat(_.popup," > .").concat(_[t]));case"checkbox":return e.querySelector(".".concat(_.popup," > .").concat(_.checkbox," input"));case"radio":return e.querySelector(".".concat(_.popup," > .").concat(_.radio," input:checked"))||e.querySelector(".".concat(_.popup," > .").concat(_.radio," input:first-child"));case"range":return e.querySelector(".".concat(_.popup," > .").concat(_.range," input"));default:return e.querySelector(".".concat(_.popup," > .").concat(_.input))}},$=e=>{if(e.focus(),"file"!==e.type){const t=e.value;e.value="",e.value=t}},Z=(e,t,o)=>{e&&t&&("string"==typeof t&&(t=t.split(/\s+/).filter(Boolean)),t.forEach((t=>{Array.isArray(e)?e.forEach((e=>{o?e.classList.add(t):e.classList.remove(t)})):o?e.classList.add(t):e.classList.remove(t)})))},J=(e,t)=>{Z(e,t,!0)},X=(e,t)=>{Z(e,t,!1)},Q=(e,t)=>{const o=Array.from(e.children);for(let e=0;e{o==="".concat(parseInt(o))&&(o=parseInt(o)),o||0===parseInt(o)?e.style[t]="number"==typeof o?"".concat(o,"px"):o:e.style.removeProperty(t)},te=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"flex";e.style.display=t},oe=e=>{e.style.display="none"},ne=(e,t,o,n)=>{const a=e.querySelector(t);a&&(a.style[o]=n)},ae=function(e,t){t?te(e,arguments.length>2&&void 0!==arguments[2]?arguments[2]:"flex"):oe(e)},re=e=>!(!e||!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)),se=e=>!!(e.scrollHeight>e.clientHeight),ie=e=>{const t=window.getComputedStyle(e),o=parseFloat(t.getPropertyValue("animation-duration")||"0"),n=parseFloat(t.getPropertyValue("transition-duration")||"0");return o>0||n>0},ce=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const o=H();re(o)&&(t&&(o.style.transition="none",o.style.width="100%"),setTimeout((()=>{o.style.transition="width ".concat(e/1e3,"s linear"),o.style.width="0%"}),10))},le=()=>"undefined"==typeof window||"undefined"==typeof document,ue={},de=e=>new Promise((t=>{if(!e)return t();const o=window.scrollX,n=window.scrollY;ue.restoreFocusTimeout=setTimeout((()=>{ue.previousActiveElement instanceof HTMLElement?(ue.previousActiveElement.focus(),ue.previousActiveElement=null):document.body&&document.body.focus(),t()}),100),window.scrollTo(o,n)})),pe='\n
    \n \n
      \n
      \n \n

      \n
      \n \n \n
      \n \n \n
      \n \n
      \n \n \n
      \n
      \n
      \n \n \n \n
      \n
      \n
      \n
      \n
      \n
      \n').replace(/(^|\n)\s*/g,""),he=()=>{ue.currentInstance.resetValidationMessage()},me=e=>{const t=(()=>{const e=C();return!!e&&(e.remove(),X([document.documentElement,document.body],[_["no-backdrop"],_["toast-shown"],_["has-column"]]),!0)})();if(le())return void n("SweetAlert2 requires document to initialize");const o=document.createElement("div");o.className=_.container,t&&J(o,_["no-transition"]),W(o,pe);const a="string"==typeof(r=e.target)?document.querySelector(r):r;var r;a.appendChild(o),(e=>{const t=S();t.setAttribute("role",e.toast?"alert":"dialog"),t.setAttribute("aria-live",e.toast?"polite":"assertive"),e.toast||t.setAttribute("aria-modal","true")})(e),(e=>{"rtl"===window.getComputedStyle(e).direction&&J(C(),_.rtl)})(a),(()=>{const e=S(),t=Q(e,_.input),o=Q(e,_.file),n=e.querySelector(".".concat(_.range," input")),a=e.querySelector(".".concat(_.range," output")),r=Q(e,_.select),s=e.querySelector(".".concat(_.checkbox," input")),i=Q(e,_.textarea);t.oninput=he,o.onchange=he,r.onchange=he,s.onchange=he,i.oninput=he,n.oninput=()=>{he(),a.value=n.value},n.onchange=()=>{he(),a.value=n.value}})()},fe=(e,t)=>{e instanceof HTMLElement?t.appendChild(e):"object"==typeof e?ge(e,t):e&&W(t,e)},ge=(e,t)=>{e.jquery?ye(t,e):W(t,e.toString())},ye=(e,t)=>{if(e.textContent="",0 in t)for(let o=0;o in t;o++)e.appendChild(t[o].cloneNode(!0));else e.appendChild(t.cloneNode(!0))},we=(()=>{if(le())return!1;const e=document.createElement("div"),t={WebkitAnimation:"webkitAnimationEnd",animation:"animationend"};for(const o in t)if(Object.prototype.hasOwnProperty.call(t,o)&&void 0!==e.style[o])return t[o];return!1})(),be=(e,t)=>{const o=N(),n=R();t.showConfirmButton||t.showDenyButton||t.showCancelButton?te(o):oe(o),G(o,t,"actions"),function(e,t,o){const n=O(),a=M(),r=L();ve(n,"confirm",o),ve(a,"deny",o),ve(r,"cancel",o),function(e,t,o,n){if(!n.buttonsStyling)return X([e,t,o],_.styled);J([e,t,o],_.styled),n.confirmButtonColor&&(e.style.backgroundColor=n.confirmButtonColor,J(e,_["default-outline"])),n.denyButtonColor&&(t.style.backgroundColor=n.denyButtonColor,J(t,_["default-outline"])),n.cancelButtonColor&&(o.style.backgroundColor=n.cancelButtonColor,J(o,_["default-outline"]))}(n,a,r,o),o.reverseButtons&&(o.toast?(e.insertBefore(r,n),e.insertBefore(a,n)):(e.insertBefore(r,t),e.insertBefore(a,t),e.insertBefore(n,t)))}(o,n,t),W(n,t.loaderHtml),G(n,t,"loader")};function ve(e,o,n){ae(e,n["show".concat(t(o),"Button")],"inline-block"),W(e,n["".concat(o,"ButtonText")]),e.setAttribute("aria-label",n["".concat(o,"ButtonAriaLabel")]),e.className=_[o],G(e,n,"".concat(o,"Button")),J(e,n["".concat(o,"ButtonClass")])}const _e=(e,t)=>{const n=C();n&&(function(e,t){"string"==typeof t?e.style.background=t:t||J([document.documentElement,document.body],_["no-backdrop"])}(n,t.backdrop),function(e,t){t in _?J(e,_[t]):(o('The "position" parameter is not valid, defaulting to "center"'),J(e,_.center))}(n,t.position),function(e,t){if(t&&"string"==typeof t){const o="grow-".concat(t);o in _&&J(e,_[o])}}(n,t.grow),G(n,t,"container"))};var ke={awaitingPromise:new WeakMap,promise:new WeakMap,innerParams:new WeakMap,domCache:new WeakMap};const Ce=["input","file","range","select","radio","checkbox","textarea"],xe=e=>{if(!Be[e.input])return n('Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "'.concat(e.input,'"'));const t=Ae(e.input),o=Be[e.input](t,e);te(t),setTimeout((()=>{$(o)}))},Ee=(e,t)=>{const o=K(S(),e);if(o){(e=>{for(let t=0;t{const t=Ae(e.input);"object"==typeof e.customClass&&J(t,e.customClass.input)},Te=(e,t)=>{e.placeholder&&!t.inputPlaceholder||(e.placeholder=t.inputPlaceholder)},Pe=(e,t,o)=>{if(o.inputLabel){e.id=_.input;const n=document.createElement("label"),a=_["input-label"];n.setAttribute("for",e.id),n.className=a,"object"==typeof o.customClass&&J(n,o.customClass.inputLabel),n.innerText=o.inputLabel,t.insertAdjacentElement("beforebegin",n)}},Ae=e=>Q(S(),_[e]||_.input),Ie=(e,t)=>{["string","number"].includes(typeof t)?e.value="".concat(t):l(t)||o('Unexpected type of inputValue! Expected "string", "number" or "Promise", got "'.concat(typeof t,'"'))},Be={};Be.text=Be.email=Be.password=Be.number=Be.tel=Be.url=(e,t)=>(Ie(e,t.inputValue),Pe(e,e,t),Te(e,t),e.type=t.input,e),Be.file=(e,t)=>(Pe(e,e,t),Te(e,t),e),Be.range=(e,t)=>{const o=e.querySelector("input"),n=e.querySelector("output");return Ie(o,t.inputValue),o.type=t.input,Ie(n,t.inputValue),Pe(o,e,t),e},Be.select=(e,t)=>{if(e.textContent="",t.inputPlaceholder){const o=document.createElement("option");W(o,t.inputPlaceholder),o.value="",o.disabled=!0,o.selected=!0,e.appendChild(o)}return Pe(e,e,t),e},Be.radio=e=>(e.textContent="",e),Be.checkbox=(e,t)=>{const o=K(S(),"checkbox");o.value="1",o.id=_.checkbox,o.checked=Boolean(t.inputValue);const n=e.querySelector("span");return W(n,t.inputPlaceholder),o},Be.textarea=(e,t)=>{Ie(e,t.inputValue),Te(e,t),Pe(e,e,t);return setTimeout((()=>{if("MutationObserver"in window){const t=parseInt(window.getComputedStyle(S()).width);new MutationObserver((()=>{const o=e.offsetWidth+(n=e,parseInt(window.getComputedStyle(n).marginLeft)+parseInt(window.getComputedStyle(n).marginRight));var n;S().style.width=o>t?"".concat(o,"px"):null})).observe(e,{attributes:!0,attributeFilter:["style"]})}})),e};const De=(e,t)=>{const o=A();G(o,t,"htmlContainer"),t.html?(fe(t.html,o),te(o,"block")):t.text?(o.textContent=t.text,te(o,"block")):oe(o),((e,t)=>{const o=S(),n=ke.innerParams.get(e),a=!n||t.input!==n.input;Ce.forEach((e=>{const n=Q(o,_[e]);Ee(e,t.inputAttributes),n.className=_[e],a&&oe(n)})),t.input&&(a&&xe(t),Se(t))})(e,t)},Oe=(e,t)=>{for(const o in k)t.icon!==o&&X(e,k[o]);J(e,k[t.icon]),Le(e,t),Me(),G(e,t,"icon")},Me=()=>{const e=S(),t=window.getComputedStyle(e).getPropertyValue("background-color"),o=e.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");for(let e=0;e{let o,n=e.innerHTML;t.iconHtml?o=Ne(t.iconHtml):"success"===t.icon?(o='\n
      \n \n
      \n
      \n',n=n.replace(/ style=".*?"/g,"")):o="error"===t.icon?'\n \n \n \n \n':Ne({question:"?",warning:"!",info:"i"}[t.icon]),n.trim()!==o.trim()&&W(e,o)},Le=(e,t)=>{if(t.iconColor){e.style.color=t.iconColor,e.style.borderColor=t.iconColor;for(const o of[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"])ne(e,o,"backgroundColor",t.iconColor);ne(e,".swal2-success-ring","borderColor",t.iconColor)}},Ne=e=>'
      ').concat(e,"
      "),je=e=>{const t=document.createElement("li");return J(t,_["progress-step"]),W(t,e),t},He=e=>{const t=document.createElement("li");return J(t,_["progress-step-line"]),e.progressStepsDistance&&ee(t,"width",e.progressStepsDistance),t},Fe=(e,t)=>{e.className="".concat(_.popup," ").concat(re(e)?t.showClass.popup:""),t.toast?(J([document.documentElement,document.body],_["toast-shown"]),J(e,_.toast)):J(e,_.modal),G(e,t,"popup"),"string"==typeof t.customClass&&J(e,t.customClass),t.icon&&J(e,_["icon-".concat(t.icon)])},qe=(e,t)=>{((e,t)=>{const o=C(),n=S();t.toast?(ee(o,"width",t.width),n.style.width="100%",n.insertBefore(R(),T())):ee(n,"width",t.width),ee(n,"padding",t.padding),t.color&&(n.style.color=t.color),t.background&&(n.style.background=t.background),oe(D()),Fe(n,t)})(0,t),_e(0,t),((e,t)=>{const n=B();if(!t.progressSteps||0===t.progressSteps.length)return oe(n);te(n),n.textContent="",t.currentProgressStep>=t.progressSteps.length&&o("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),t.progressSteps.forEach(((e,o)=>{const a=je(e);if(n.appendChild(a),o===t.currentProgressStep&&J(a,_["active-progress-step"]),o!==t.progressSteps.length-1){const e=He(t);n.appendChild(e)}}))})(0,t),((e,t)=>{const o=ke.innerParams.get(e),a=T();if(o&&t.icon===o.icon)return Re(a,t),void Oe(a,t);if(t.icon||t.iconHtml){if(t.icon&&-1===Object.keys(k).indexOf(t.icon))return n('Unknown icon! Expected "success", "error", "warning", "info" or "question", got "'.concat(t.icon,'"')),void oe(a);te(a),Re(a,t),Oe(a,t),J(a,t.showClass.icon)}else oe(a)})(e,t),((e,t)=>{const o=I();if(!t.imageUrl)return oe(o);te(o,""),o.setAttribute("src",t.imageUrl),o.setAttribute("alt",t.imageAlt),ee(o,"width",t.imageWidth),ee(o,"height",t.imageHeight),o.className=_.image,G(o,t,"image")})(0,t),((e,t)=>{const o=P();ae(o,t.title||t.titleText,"block"),t.title&&fe(t.title,o),t.titleText&&(o.innerText=t.titleText),G(o,t,"title")})(0,t),((e,t)=>{const o=F();W(o,t.closeButtonHtml),G(o,t,"closeButton"),ae(o,t.showCloseButton),o.setAttribute("aria-label",t.closeButtonAriaLabel)})(0,t),De(e,t),be(0,t),((e,t)=>{const o=j();ae(o,t.footer),t.footer&&fe(t.footer,o),G(o,t,"footer")})(0,t),"function"==typeof t.didRender&&t.didRender(S())},Ue=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),Ye=()=>{Array.from(document.body.children).forEach((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")}))},ze=["swal-title","swal-html","swal-footer"],We=e=>{const t={};return Array.from(e.querySelectorAll("swal-param")).forEach((e=>{Xe(e,["name","value"]);const o=e.getAttribute("name"),n=e.getAttribute("value");"boolean"==typeof u[o]&&"false"===n&&(t[o]=!1),"object"==typeof u[o]&&(t[o]=JSON.parse(n))})),t},Ve=e=>{const o={};return Array.from(e.querySelectorAll("swal-button")).forEach((e=>{Xe(e,["type","color","aria-label"]);const n=e.getAttribute("type");o["".concat(n,"ButtonText")]=e.innerHTML,o["show".concat(t(n),"Button")]=!0,e.hasAttribute("color")&&(o["".concat(n,"ButtonColor")]=e.getAttribute("color")),e.hasAttribute("aria-label")&&(o["".concat(n,"ButtonAriaLabel")]=e.getAttribute("aria-label"))})),o},Ge=e=>{const t={},o=e.querySelector("swal-image");return o&&(Xe(o,["src","width","height","alt"]),o.hasAttribute("src")&&(t.imageUrl=o.getAttribute("src")),o.hasAttribute("width")&&(t.imageWidth=o.getAttribute("width")),o.hasAttribute("height")&&(t.imageHeight=o.getAttribute("height")),o.hasAttribute("alt")&&(t.imageAlt=o.getAttribute("alt"))),t},Ke=e=>{const t={},o=e.querySelector("swal-icon");return o&&(Xe(o,["type","color"]),o.hasAttribute("type")&&(t.icon=o.getAttribute("type")),o.hasAttribute("color")&&(t.iconColor=o.getAttribute("color")),t.iconHtml=o.innerHTML),t},$e=e=>{const t={},o=e.querySelector("swal-input");o&&(Xe(o,["type","label","placeholder","value"]),t.input=o.getAttribute("type")||"text",o.hasAttribute("label")&&(t.inputLabel=o.getAttribute("label")),o.hasAttribute("placeholder")&&(t.inputPlaceholder=o.getAttribute("placeholder")),o.hasAttribute("value")&&(t.inputValue=o.getAttribute("value")));const n=Array.from(e.querySelectorAll("swal-input-option"));return n.length&&(t.inputOptions={},n.forEach((e=>{Xe(e,["value"]);const o=e.getAttribute("value"),n=e.innerHTML;t.inputOptions[o]=n}))),t},Ze=(e,t)=>{const o={};for(const n in t){const a=t[n],r=e.querySelector(a);r&&(Xe(r,[]),o[a.replace(/^swal-/,"")]=r.innerHTML.trim())}return o},Je=e=>{const t=ze.concat(["swal-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Array.from(e.children).forEach((e=>{const n=e.tagName.toLowerCase();-1===t.indexOf(n)&&o("Unrecognized element <".concat(n,">"))}))},Xe=(e,t)=>{Array.from(e.attributes).forEach((n=>{-1===t.indexOf(n.name)&&o(['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.")])}))};var Qe={email:(e,t)=>/^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]{2,24}$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid email address"),url:(e,t)=>/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid URL")};function et(e){(function(e){e.inputValidator||Object.keys(Qe).forEach((t=>{e.input===t&&(e.inputValidator=Qe[t])}))})(e),e.showLoaderOnConfirm&&!e.preConfirm&&o("showLoaderOnConfirm is set to true, but preConfirm is not defined.\nshowLoaderOnConfirm should be used together with preConfirm, see usage example:\nhttps://sweetalert2.github.io/#ajax-request"),function(e){(!e.target||"string"==typeof e.target&&!document.querySelector(e.target)||"string"!=typeof e.target&&!e.target.appendChild)&&(o('Target parameter is not valid, defaulting to "body"'),e.target="body")}(e),"string"==typeof e.title&&(e.title=e.title.split("\n").join("
      ")),me(e)}class tt{constructor(e,t){this.callback=e,this.remaining=t,this.running=!1,this.start()}start(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}stop(){return this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=(new Date).getTime()-this.started.getTime()),this.remaining}increase(e){const t=this.running;return t&&this.stop(),this.remaining+=e,t&&this.start(),this.remaining}getTimerLeft(){return this.running&&(this.stop(),this.start()),this.remaining}isRunning(){return this.running}}const ot=()=>{null===z.previousBodyPadding&&document.body.scrollHeight>window.innerHeight&&(z.previousBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight="".concat(z.previousBodyPadding+(()=>{const e=document.createElement("div");e.className=_["scrollbar-measure"],document.body.appendChild(e);const t=e.getBoundingClientRect().width-e.clientWidth;return document.body.removeChild(e),t})(),"px"))},nt=()=>{const e=navigator.userAgent,t=!!e.match(/iPad/i)||!!e.match(/iPhone/i),o=!!e.match(/WebKit/i);if(t&&o&&!e.match(/CriOS/i)){const e=44;S().scrollHeight>window.innerHeight-e&&(C().style.paddingBottom="".concat(e,"px"))}},at=()=>{const e=C();let t;e.ontouchstart=e=>{t=rt(e)},e.ontouchmove=e=>{t&&(e.preventDefault(),e.stopPropagation())}},rt=e=>{const t=e.target,o=C();return!(st(e)||it(e)||t!==o&&(se(o)||"INPUT"===t.tagName||"TEXTAREA"===t.tagName||se(A())&&A().contains(t)))},st=e=>e.touches&&e.touches.length&&"stylus"===e.touches[0].touchType,it=e=>e.touches&&e.touches.length>1,ct=e=>{const t=C(),o=S();"function"==typeof e.willOpen&&e.willOpen(o);const n=window.getComputedStyle(document.body).overflowY;pt(t,o,e),setTimeout((()=>{ut(t,o)}),10),U()&&(dt(t,e.scrollbarPadding,n),Array.from(document.body.children).forEach((e=>{e===C()||e.contains(C())||(e.hasAttribute("aria-hidden")&&e.setAttribute("data-previous-aria-hidden",e.getAttribute("aria-hidden")),e.setAttribute("aria-hidden","true"))}))),Y()||ue.previousActiveElement||(ue.previousActiveElement=document.activeElement),"function"==typeof e.didOpen&&setTimeout((()=>e.didOpen(o))),X(t,_["no-transition"])},lt=e=>{const t=S();if(e.target!==t)return;const o=C();t.removeEventListener(we,lt),o.style.overflowY="auto"},ut=(e,t)=>{we&&ie(t)?(e.style.overflowY="hidden",t.addEventListener(we,lt)):e.style.overflowY="auto"},dt=(e,t,o)=>{(()=>{if((/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)&&!V(document.body,_.iosfix)){const e=document.body.scrollTop;document.body.style.top="".concat(-1*e,"px"),J(document.body,_.iosfix),at(),nt()}})(),t&&"hidden"!==o&&ot(),setTimeout((()=>{e.scrollTop=0}))},pt=(e,t,o)=>{J(e,o.showClass.backdrop),t.style.setProperty("opacity","0","important"),te(t,"grid"),setTimeout((()=>{J(t,o.showClass.popup),t.style.removeProperty("opacity")}),10),J([document.documentElement,document.body],_.shown),o.heightAuto&&o.backdrop&&!o.toast&&J([document.documentElement,document.body],_["height-auto"])},ht=e=>{let t=S();t||new To,t=S();const o=R();Y()?oe(T()):mt(t,e),te(o),t.setAttribute("data-loading","true"),t.setAttribute("aria-busy","true"),t.focus()},mt=(e,t)=>{const o=N(),n=R();!t&&re(O())&&(t=O()),te(o),t&&(oe(t),n.setAttribute("data-button-to-replace",t.className)),n.parentNode.insertBefore(n,t),J([e,o],_.loading)},ft=e=>e.checked?1:0,gt=e=>e.checked?e.value:null,yt=e=>e.files.length?null!==e.getAttribute("multiple")?e.files:e.files[0]:null,wt=(e,t)=>{const o=S(),a=e=>vt[t.input](o,_t(e),t);i(t.inputOptions)||l(t.inputOptions)?(ht(O()),c(t.inputOptions).then((t=>{e.hideLoading(),a(t)}))):"object"==typeof t.inputOptions?a(t.inputOptions):n("Unexpected type of inputOptions! Expected object, Map or Promise, got ".concat(typeof t.inputOptions))},bt=(e,t)=>{const o=e.getInput();oe(o),c(t.inputValue).then((n=>{o.value="number"===t.input?parseFloat(n)||0:"".concat(n),te(o),o.focus(),e.hideLoading()})).catch((t=>{n("Error in inputValue promise: ".concat(t)),o.value="",te(o),o.focus(),e.hideLoading()}))},vt={select:(e,t,o)=>{const n=Q(e,_.select),a=(e,t,n)=>{const a=document.createElement("option");a.value=n,W(a,t),a.selected=kt(n,o.inputValue),e.appendChild(a)};t.forEach((e=>{const t=e[0],o=e[1];if(Array.isArray(o)){const e=document.createElement("optgroup");e.label=t,e.disabled=!1,n.appendChild(e),o.forEach((t=>a(e,t[1],t[0])))}else a(n,o,t)})),n.focus()},radio:(e,t,o)=>{const n=Q(e,_.radio);t.forEach((e=>{const t=e[0],a=e[1],r=document.createElement("input"),s=document.createElement("label");r.type="radio",r.name=_.radio,r.value=t,kt(t,o.inputValue)&&(r.checked=!0);const i=document.createElement("span");W(i,a),i.className=_.label,s.appendChild(r),s.appendChild(i),n.appendChild(s)}));const a=n.querySelectorAll("input");a.length&&a[0].focus()}},_t=e=>{const t=[];return"undefined"!=typeof Map&&e instanceof Map?e.forEach(((e,o)=>{let n=e;"object"==typeof n&&(n=_t(n)),t.push([o,n])})):Object.keys(e).forEach((o=>{let n=e[o];"object"==typeof n&&(n=_t(n)),t.push([o,n])})),t},kt=(e,t)=>t&&t.toString()===e.toString();function Ct(){const e=ke.innerParams.get(this);if(!e)return;const t=ke.domCache.get(this);oe(t.loader),Y()?e.icon&&te(T()):xt(t),X([t.popup,t.actions],_.loading),t.popup.removeAttribute("aria-busy"),t.popup.removeAttribute("data-loading"),t.confirmButton.disabled=!1,t.denyButton.disabled=!1,t.cancelButton.disabled=!1}const xt=e=>{const t=e.popup.getElementsByClassName(e.loader.getAttribute("data-button-to-replace"));t.length?te(t[0],"inline-block"):!re(O())&&!re(M())&&!re(L())&&oe(e.actions)};var Et={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};const St=()=>O()&&O().click(),Tt=e=>{e.keydownTarget&&e.keydownHandlerAdded&&(e.keydownTarget.removeEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!1)},Pt=(e,t,o)=>{const n=q();if(n.length)return(t+=o)===n.length?t=0:-1===t&&(t=n.length-1),n[t].focus();S().focus()},At=["ArrowRight","ArrowDown"],It=["ArrowLeft","ArrowUp"],Bt=(e,t,o)=>{const n=ke.innerParams.get(e);n&&(t.isComposing||229===t.keyCode||(n.stopKeydownPropagation&&t.stopPropagation(),"Enter"===t.key?Dt(e,t,n):"Tab"===t.key?Ot(t,n):[...At,...It].includes(t.key)?Mt(t.key):"Escape"===t.key&&Rt(t,n,o)))},Dt=(e,t,o)=>{if(s(o.allowEnterKey)&&t.target&&e.getInput()&&t.target instanceof HTMLElement&&t.target.outerHTML===e.getInput().outerHTML){if(["textarea","file"].includes(o.input))return;St(),t.preventDefault()}},Ot=(e,t)=>{const o=e.target,n=q();let a=-1;for(let e=0;e{const t=O(),o=M(),n=L();if(document.activeElement instanceof HTMLElement&&![t,o,n].includes(document.activeElement))return;const a=At.includes(e)?"nextElementSibling":"previousElementSibling";let r=document.activeElement;for(let e=0;e{s(t.allowEscapeKey)&&(e.preventDefault(),o(Ue.esc))};function Lt(e,t,o,n){Y()?Yt(e,n):(de(o).then((()=>Yt(e,n))),Tt(ue)),/^((?!chrome|android).)*safari/i.test(navigator.userAgent)?(t.setAttribute("style","display:none !important"),t.removeAttribute("class"),t.innerHTML=""):t.remove(),U()&&(null!==z.previousBodyPadding&&(document.body.style.paddingRight="".concat(z.previousBodyPadding,"px"),z.previousBodyPadding=null),(()=>{if(V(document.body,_.iosfix)){const e=parseInt(document.body.style.top,10);X(document.body,_.iosfix),document.body.style.top="",document.body.scrollTop=-1*e}})(),Ye()),X([document.documentElement,document.body],[_.shown,_["height-auto"],_["no-backdrop"],_["toast-shown"]])}function Nt(e){e=Ft(e);const t=Et.swalPromiseResolve.get(this),o=jt(this);this.isAwaitingPromise()?e.isDismissed||(Ht(this),t(e)):o&&t(e)}const jt=e=>{const t=S();if(!t)return!1;const o=ke.innerParams.get(e);if(!o||V(t,o.hideClass.popup))return!1;X(t,o.showClass.popup),J(t,o.hideClass.popup);const n=C();return X(n,o.showClass.backdrop),J(n,o.hideClass.backdrop),qt(e,t,o),!0};const Ht=e=>{e.isAwaitingPromise()&&(ke.awaitingPromise.delete(e),ke.innerParams.get(e)||e._destroy())},Ft=e=>void 0===e?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},e),qt=(e,t,o)=>{const n=C(),a=we&&ie(t);"function"==typeof o.willClose&&o.willClose(t),a?Ut(e,t,n,o.returnFocus,o.didClose):Lt(e,n,o.returnFocus,o.didClose)},Ut=(e,t,o,n,a)=>{ue.swalCloseEventFinishedCallback=Lt.bind(null,e,o,n,a),t.addEventListener(we,(function(e){e.target===t&&(ue.swalCloseEventFinishedCallback(),delete ue.swalCloseEventFinishedCallback)}))},Yt=(e,t)=>{setTimeout((()=>{"function"==typeof t&&t.bind(e.params)(),e._destroy()}))};function zt(e,t,o){const n=ke.domCache.get(e);t.forEach((e=>{n[e].disabled=o}))}function Wt(e,t){if(!e)return!1;if("radio"===e.type){const o=e.parentNode.parentNode.querySelectorAll("input");for(let e=0;e{const t={};return Object.keys(e).forEach((n=>{f(n)?t[n]=e[n]:o("Invalid parameter to update: ".concat(n))})),t};const Gt=e=>{Kt(e),delete e.params,delete ue.keydownHandler,delete ue.keydownTarget,delete ue.currentInstance},Kt=e=>{e.isAwaitingPromise()?($t(ke,e),ke.awaitingPromise.set(e,!0)):($t(Et,e),$t(ke,e))},$t=(e,t)=>{for(const o in e)e[o].delete(t)};var Zt=Object.freeze({hideLoading:Ct,disableLoading:Ct,getInput:function(e){const t=ke.innerParams.get(e||this),o=ke.domCache.get(e||this);return o?K(o.popup,t.input):null},close:Nt,isAwaitingPromise:function(){return!!ke.awaitingPromise.get(this)},rejectPromise:function(e){const t=Et.swalPromiseReject.get(this);Ht(this),t&&t(e)},handleAwaitingPromise:Ht,closePopup:Nt,closeModal:Nt,closeToast:Nt,enableButtons:function(){zt(this,["confirmButton","denyButton","cancelButton"],!1)},disableButtons:function(){zt(this,["confirmButton","denyButton","cancelButton"],!0)},enableInput:function(){return Wt(this.getInput(),!1)},disableInput:function(){return Wt(this.getInput(),!0)},showValidationMessage:function(e){const t=ke.domCache.get(this),o=ke.innerParams.get(this);W(t.validationMessage,e),t.validationMessage.className=_["validation-message"],o.customClass&&o.customClass.validationMessage&&J(t.validationMessage,o.customClass.validationMessage),te(t.validationMessage);const n=this.getInput();n&&(n.setAttribute("aria-invalid",!0),n.setAttribute("aria-describedby",_["validation-message"]),$(n),J(n,_.inputerror))},resetValidationMessage:function(){const e=ke.domCache.get(this);e.validationMessage&&oe(e.validationMessage);const t=this.getInput();t&&(t.removeAttribute("aria-invalid"),t.removeAttribute("aria-describedby"),X(t,_.inputerror))},getProgressSteps:function(){return ke.domCache.get(this).progressSteps},update:function(e){const t=S(),n=ke.innerParams.get(this);if(!t||V(t,n.hideClass.popup))return o("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.");const a=Vt(e),r=Object.assign({},n,a);qe(this,r),ke.innerParams.set(this,r),Object.defineProperties(this,{params:{value:Object.assign({},this.params,e),writable:!1,enumerable:!0}})},_destroy:function(){const e=ke.domCache.get(this),t=ke.innerParams.get(this);t?(e.popup&&ue.swalCloseEventFinishedCallback&&(ue.swalCloseEventFinishedCallback(),delete ue.swalCloseEventFinishedCallback),"function"==typeof t.didDestroy&&t.didDestroy(),Gt(this)):Kt(this)}});const Jt=(e,o)=>{const a=ke.innerParams.get(e);if(!a.input)return void n('The "input" parameter is needed to be set when using returnInputValueOn'.concat(t(o)));const r=((e,t)=>{const o=e.getInput();if(!o)return null;switch(t.input){case"checkbox":return ft(o);case"radio":return gt(o);case"file":return yt(o);default:return t.inputAutoTrim?o.value.trim():o.value}})(e,a);a.inputValidator?Xt(e,r,o):e.getInput().checkValidity()?"deny"===o?Qt(e,r):oo(e,r):(e.enableButtons(),e.showValidationMessage(a.validationMessage))},Xt=(e,t,o)=>{const n=ke.innerParams.get(e);e.disableInput(),Promise.resolve().then((()=>c(n.inputValidator(t,n.validationMessage)))).then((n=>{e.enableButtons(),e.enableInput(),n?e.showValidationMessage(n):"deny"===o?Qt(e,t):oo(e,t)}))},Qt=(e,t)=>{const o=ke.innerParams.get(e||void 0);o.showLoaderOnDeny&&ht(M()),o.preDeny?(ke.awaitingPromise.set(e||void 0,!0),Promise.resolve().then((()=>c(o.preDeny(t,o.validationMessage)))).then((o=>{!1===o?(e.hideLoading(),Ht(e)):e.close({isDenied:!0,value:void 0===o?t:o})})).catch((t=>to(e||void 0,t)))):e.close({isDenied:!0,value:t})},eo=(e,t)=>{e.close({isConfirmed:!0,value:t})},to=(e,t)=>{e.rejectPromise(t)},oo=(e,t)=>{const o=ke.innerParams.get(e||void 0);o.showLoaderOnConfirm&&ht(),o.preConfirm?(e.resetValidationMessage(),ke.awaitingPromise.set(e||void 0,!0),Promise.resolve().then((()=>c(o.preConfirm(t,o.validationMessage)))).then((o=>{re(D())||!1===o?(e.hideLoading(),Ht(e)):eo(e,void 0===o?t:o)})).catch((t=>to(e||void 0,t)))):eo(e,t)},no=(e,t,o)=>{t.popup.onclick=()=>{const t=ke.innerParams.get(e);t&&(ao(t)||t.timer||t.input)||o(Ue.close)}},ao=e=>e.showConfirmButton||e.showDenyButton||e.showCancelButton||e.showCloseButton;let ro=!1;const so=e=>{e.popup.onmousedown=()=>{e.container.onmouseup=function(t){e.container.onmouseup=void 0,t.target===e.container&&(ro=!0)}}},io=e=>{e.container.onmousedown=()=>{e.popup.onmouseup=function(t){e.popup.onmouseup=void 0,(t.target===e.popup||e.popup.contains(t.target))&&(ro=!0)}}},co=(e,t,o)=>{t.container.onclick=n=>{const a=ke.innerParams.get(e);ro?ro=!1:n.target===t.container&&s(a.allowOutsideClick)&&o(Ue.backdrop)}},lo=e=>e instanceof Element||(e=>"object"==typeof e&&e.jquery)(e);const uo=()=>{if(ue.timeout)return(()=>{const e=H(),t=parseInt(window.getComputedStyle(e).width);e.style.removeProperty("transition"),e.style.width="100%";const o=t/parseInt(window.getComputedStyle(e).width)*100;e.style.removeProperty("transition"),e.style.width="".concat(o,"%")})(),ue.timeout.stop()},po=()=>{if(ue.timeout){const e=ue.timeout.start();return ce(e),e}};let ho=!1;const mo={};const fo=e=>{for(let t=e.target;t&&t!==document;t=t.parentNode)for(const e in mo){const o=t.getAttribute(e);if(o)return void mo[e].fire({template:o})}};var go=Object.freeze({isValidParameter:m,isUpdatableParameter:f,isDeprecatedParameter:g,argsToParams:e=>{const t={};return"object"!=typeof e[0]||lo(e[0])?["title","html","icon"].forEach(((o,a)=>{const r=e[a];"string"==typeof r||lo(r)?t[o]=r:void 0!==r&&n("Unexpected type of ".concat(o,'! Expected "string" or "Element", got ').concat(typeof r))})):Object.assign(t,e[0]),t},isVisible:()=>re(S()),clickConfirm:St,clickDeny:()=>M()&&M().click(),clickCancel:()=>L()&&L().click(),getContainer:C,getPopup:S,getTitle:P,getHtmlContainer:A,getImage:I,getIcon:T,getInputLabel:()=>E(_["input-label"]),getCloseButton:F,getActions:N,getConfirmButton:O,getDenyButton:M,getCancelButton:L,getLoader:R,getFooter:j,getTimerProgressBar:H,getFocusableElements:q,getValidationMessage:D,isLoading:()=>S().hasAttribute("data-loading"),fire:function(){const e=this;for(var t=arguments.length,o=new Array(t),n=0;nue.timeout&&ue.timeout.getTimerLeft(),stopTimer:uo,resumeTimer:po,toggleTimer:()=>{const e=ue.timeout;return e&&(e.running?uo():po())},increaseTimer:e=>{if(ue.timeout){const t=ue.timeout.increase(e);return ce(t,!0),t}},isTimerRunning:()=>ue.timeout&&ue.timeout.isRunning(),bindClickHandler:function(){mo[arguments.length>0&&void 0!==arguments[0]?arguments[0]:"data-swal-template"]=this,ho||(document.body.addEventListener("click",fo),ho=!0)}});let yo;class wo{constructor(){if("undefined"==typeof window)return;yo=this;for(var e=arguments.length,t=new Array(e),o=0;o1&&void 0!==arguments[1]?arguments[1]:{};(e=>{!e.backdrop&&e.allowOutsideClick&&o('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');for(const t in e)y(t),e.toast&&w(t),b(t)})(Object.assign({},t,e)),ue.currentInstance&&(ue.currentInstance._destroy(),U()&&Ye()),ue.currentInstance=yo;const n=vo(e,t);et(n),Object.freeze(n),ue.timeout&&(ue.timeout.stop(),delete ue.timeout),clearTimeout(ue.restoreFocusTimeout);const a=_o(yo);return qe(yo,n),ke.innerParams.set(yo,n),bo(yo,a,n)}then(e){return ke.promise.get(this).then(e)}finally(e){return ke.promise.get(this).finally(e)}}const bo=(e,t,o)=>new Promise(((n,a)=>{const r=t=>{e.closePopup({isDismissed:!0,dismiss:t})};Et.swalPromiseResolve.set(e,n),Et.swalPromiseReject.set(e,a),t.confirmButton.onclick=()=>(e=>{const t=ke.innerParams.get(e);e.disableButtons(),t.input?Jt(e,"confirm"):oo(e,!0)})(e),t.denyButton.onclick=()=>(e=>{const t=ke.innerParams.get(e);e.disableButtons(),t.returnInputValueOnDeny?Jt(e,"deny"):Qt(e,!1)})(e),t.cancelButton.onclick=()=>((e,t)=>{e.disableButtons(),t(Ue.cancel)})(e,r),t.closeButton.onclick=()=>r(Ue.close),((e,t,o)=>{ke.innerParams.get(e).toast?no(e,t,o):(so(t),io(t),co(e,t,o))})(e,t,r),((e,t,o,n)=>{Tt(t),o.toast||(t.keydownHandler=t=>Bt(e,t,n),t.keydownTarget=o.keydownListenerCapture?window:S(),t.keydownListenerCapture=o.keydownListenerCapture,t.keydownTarget.addEventListener("keydown",t.keydownHandler,{capture:t.keydownListenerCapture}),t.keydownHandlerAdded=!0)})(e,ue,o,r),((e,t)=>{"select"===t.input||"radio"===t.input?wt(e,t):["text","email","number","tel","textarea"].includes(t.input)&&(i(t.inputValue)||l(t.inputValue))&&(ht(O()),bt(e,t))})(e,o),ct(o),ko(ue,o,r),Co(t,o),setTimeout((()=>{t.container.scrollTop=0}))})),vo=(e,t)=>{const o=(e=>{const t="string"==typeof e.template?document.querySelector(e.template):e.template;if(!t)return{};const o=t.content;return Je(o),Object.assign(We(o),Ve(o),Ge(o),Ke(o),$e(o),Ze(o,ze))})(e),n=Object.assign({},u,t,o,e);return n.showClass=Object.assign({},u.showClass,n.showClass),n.hideClass=Object.assign({},u.hideClass,n.hideClass),n},_o=e=>{const t={popup:S(),container:C(),actions:N(),confirmButton:O(),denyButton:M(),cancelButton:L(),loader:R(),closeButton:F(),validationMessage:D(),progressSteps:B()};return ke.domCache.set(e,t),t},ko=(e,t,o)=>{const n=H();oe(n),t.timer&&(e.timeout=new tt((()=>{o("timer"),delete e.timeout}),t.timer),t.timerProgressBar&&(te(n),G(n,t,"timerProgressBar"),setTimeout((()=>{e.timeout&&e.timeout.running&&ce(t.timer)}))))},Co=(e,t)=>{if(!t.toast)return s(t.allowEnterKey)?void(xo(e,t)||Pt(0,-1,1)):Eo()},xo=(e,t)=>t.focusDeny&&re(e.denyButton)?(e.denyButton.focus(),!0):t.focusCancel&&re(e.cancelButton)?(e.cancelButton.focus(),!0):!(!t.focusConfirm||!re(e.confirmButton)||(e.confirmButton.focus(),0)),Eo=()=>{document.activeElement instanceof HTMLElement&&"function"==typeof document.activeElement.blur&&document.activeElement.blur()};if("undefined"!=typeof window&&/^ru\b/.test(navigator.language)&&location.host.match(/\.(ru|su|xn--p1ai)$/)&&Math.random()<.1){const e=document.createElement("div");e.className="leave-russia-now-and-apply-your-skills-to-the-world";const t=(So=[{text:"В нижеприведённом видео объясняется как каждый из нас может помочь в том,\n чтобы эта бессмысленная и бесчеловечная война остановилась:",id:"4CfDhaRkw7I"},{text:"Эмпатия - главное человеческое чувство. Способность сопереживать. Способность поставить себя на место другого.",id:"s-GLAIY4DXA"}])[Math.floor(Math.random()*So.length)];W(e,"\n
      \n Если мы не остановим войну, она придет в дом каждого из нас и её последствия будут ужасающими.\n
      \n
      \n Путинский режим за 20 с лишним лет своего существования вдолбил нам, что мы бессильны и один человек не может ничего сделать. Это не так!\n
      \n
      \n ".concat(t.text,'\n
      \n \n
      \n Нет войне!\n
      \n '));const o=document.createElement("button");o.innerHTML="×",o.onclick=()=>e.remove(),e.appendChild(o),window.addEventListener("load",(()=>{setTimeout((()=>{document.body.appendChild(e)}),1e3)}))}var So;Object.assign(wo.prototype,Zt),Object.assign(wo,go),Object.keys(Zt).forEach((e=>{wo[e]=function(){if(yo)return yo[e](...arguments)}})),wo.DismissReason=Ue,wo.version="11.4.26";const To=wo;return To.default=To,To}(),void 0!==this&&this.Sweetalert2&&(this.swal=this.sweetAlert=this.Swal=this.SweetAlert=this.Sweetalert2),"undefined"!=typeof document&&function(e,t){var o=e.createElement("style");if(e.getElementsByTagName("head")[0].appendChild(o),o.styleSheet)o.styleSheet.disabled||(o.styleSheet.cssText=t);else try{o.innerHTML=t}catch(e){o.innerText=t}}(document,'.swal2-popup.swal2-toast{box-sizing:border-box;grid-column:1/4!important;grid-row:1/4!important;grid-template-columns:1fr 99fr 1fr;padding:1em;overflow-y:hidden;background:#fff;box-shadow:0 0 1px hsla(0deg,0%,0%,.075),0 1px 2px hsla(0deg,0%,0%,.075),1px 2px 4px hsla(0deg,0%,0%,.075),1px 3px 8px hsla(0deg,0%,0%,.075),2px 4px 16px hsla(0deg,0%,0%,.075);pointer-events:all}.swal2-popup.swal2-toast>*{grid-column:2}.swal2-popup.swal2-toast .swal2-title{margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-loading{justify-content:center}.swal2-popup.swal2-toast .swal2-input{height:2em;margin:.5em;font-size:1em}.swal2-popup.swal2-toast .swal2-validation-message{font-size:1em}.swal2-popup.swal2-toast .swal2-footer{margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-popup.swal2-toast .swal2-close{grid-column:3/3;grid-row:1/99;align-self:center;width:.8em;height:.8em;margin:0;font-size:2em}.swal2-popup.swal2-toast .swal2-html-container{margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-html-container:empty{padding:0}.swal2-popup.swal2-toast .swal2-loader{grid-column:1;grid-row:1/99;align-self:center;width:2em;height:2em;margin:.25em}.swal2-popup.swal2-toast .swal2-icon{grid-column:1;grid-row:1/99;align-self:center;width:2em;min-width:2em;height:2em;margin:0 .5em 0 0}.swal2-popup.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:700}.swal2-popup.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-popup.swal2-toast .swal2-actions{justify-content:flex-start;height:auto;margin:0;margin-top:.5em;padding:0 .5em}.swal2-popup.swal2-toast .swal2-styled{margin:.25em .5em;padding:.4em .6em;font-size:1em}.swal2-popup.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;transform:rotate(45deg);border-radius:50%}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-.8em;left:-.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-popup.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{-webkit-animation:swal2-toast-animate-success-line-tip .75s;animation:swal2-toast-animate-success-line-tip .75s}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{-webkit-animation:swal2-toast-animate-success-line-long .75s;animation:swal2-toast-animate-success-line-long .75s}.swal2-popup.swal2-toast.swal2-show{-webkit-animation:swal2-toast-show .5s;animation:swal2-toast-show .5s}.swal2-popup.swal2-toast.swal2-hide{-webkit-animation:swal2-toast-hide .1s forwards;animation:swal2-toast-hide .1s forwards}.swal2-container{display:grid;position:fixed;z-index:1060;top:0;right:0;bottom:0;left:0;box-sizing:border-box;grid-template-areas:"top-start top top-end" "center-start center center-end" "bottom-start bottom-center bottom-end";grid-template-rows:minmax(-webkit-min-content,auto) minmax(-webkit-min-content,auto) minmax(-webkit-min-content,auto);grid-template-rows:minmax(min-content,auto) minmax(min-content,auto) minmax(min-content,auto);height:100%;padding:.625em;overflow-x:hidden;transition:background-color .1s;-webkit-overflow-scrolling:touch}.swal2-container.swal2-backdrop-show,.swal2-container.swal2-noanimation{background:rgba(0,0,0,.4)}.swal2-container.swal2-backdrop-hide{background:0 0!important}.swal2-container.swal2-bottom-start,.swal2-container.swal2-center-start,.swal2-container.swal2-top-start{grid-template-columns:minmax(0,1fr) auto auto}.swal2-container.swal2-bottom,.swal2-container.swal2-center,.swal2-container.swal2-top{grid-template-columns:auto minmax(0,1fr) auto}.swal2-container.swal2-bottom-end,.swal2-container.swal2-center-end,.swal2-container.swal2-top-end{grid-template-columns:auto auto minmax(0,1fr)}.swal2-container.swal2-top-start>.swal2-popup{align-self:start}.swal2-container.swal2-top>.swal2-popup{grid-column:2;align-self:start;justify-self:center}.swal2-container.swal2-top-end>.swal2-popup,.swal2-container.swal2-top-right>.swal2-popup{grid-column:3;align-self:start;justify-self:end}.swal2-container.swal2-center-left>.swal2-popup,.swal2-container.swal2-center-start>.swal2-popup{grid-row:2;align-self:center}.swal2-container.swal2-center>.swal2-popup{grid-column:2;grid-row:2;align-self:center;justify-self:center}.swal2-container.swal2-center-end>.swal2-popup,.swal2-container.swal2-center-right>.swal2-popup{grid-column:3;grid-row:2;align-self:center;justify-self:end}.swal2-container.swal2-bottom-left>.swal2-popup,.swal2-container.swal2-bottom-start>.swal2-popup{grid-column:1;grid-row:3;align-self:end}.swal2-container.swal2-bottom>.swal2-popup{grid-column:2;grid-row:3;justify-self:center;align-self:end}.swal2-container.swal2-bottom-end>.swal2-popup,.swal2-container.swal2-bottom-right>.swal2-popup{grid-column:3;grid-row:3;align-self:end;justify-self:end}.swal2-container.swal2-grow-fullscreen>.swal2-popup,.swal2-container.swal2-grow-row>.swal2-popup{grid-column:1/4;width:100%}.swal2-container.swal2-grow-column>.swal2-popup,.swal2-container.swal2-grow-fullscreen>.swal2-popup{grid-row:1/4;align-self:stretch}.swal2-container.swal2-no-transition{transition:none!important}.swal2-popup{display:none;position:relative;box-sizing:border-box;grid-template-columns:minmax(0,100%);width:32em;max-width:100%;padding:0 0 1.25em;border:none;border-radius:5px;background:#fff;color:#545454;font-family:inherit;font-size:1rem}.swal2-popup:focus{outline:0}.swal2-popup.swal2-loading{overflow-y:hidden}.swal2-title{position:relative;max-width:100%;margin:0;padding:.8em 1em 0;color:inherit;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:auto;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;transition:box-shadow .1s;box-shadow:0 0 0 3px transparent;font-weight:500}.swal2-styled:not([disabled]){cursor:pointer}.swal2-styled.swal2-confirm{border:0;border-radius:.25em;background:initial;background-color:#7066e0;color:#fff;font-size:1em}.swal2-styled.swal2-confirm:focus{box-shadow:0 0 0 3px rgba(112,102,224,.5)}.swal2-styled.swal2-deny{border:0;border-radius:.25em;background:initial;background-color:#dc3741;color:#fff;font-size:1em}.swal2-styled.swal2-deny:focus{box-shadow:0 0 0 3px rgba(220,55,65,.5)}.swal2-styled.swal2-cancel{border:0;border-radius:.25em;background:initial;background-color:#6e7881;color:#fff;font-size:1em}.swal2-styled.swal2-cancel:focus{box-shadow:0 0 0 3px rgba(110,120,129,.5)}.swal2-styled.swal2-default-outline:focus{box-shadow:0 0 0 3px rgba(100,150,200,.5)}.swal2-styled:focus{outline:0}.swal2-styled::-moz-focus-inner{border:0}.swal2-footer{justify-content:center;margin:1em 0 0;padding:1em 1em 0;border-top:1px solid #eee;color:inherit;font-size:1em}.swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;grid-column:auto!important;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:2em auto 1em}.swal2-close{z-index:2;align-items:center;justify-content:center;width:1.2em;height:1.2em;margin-top:0;margin-right:0;margin-bottom:-1.2em;padding:0;overflow:hidden;transition:color .1s,box-shadow .1s;border:none;border-radius:5px;background:0 0;color:#ccc;font-family:serif;font-family:monospace;font-size:2.5em;cursor:pointer;justify-self:end}.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-html-container{z-index:1;justify-content:center;margin:1em 1.6em .3em;padding:0;overflow:auto;color:inherit;font-size:1.125em;font-weight:400;line-height:normal;text-align:center;word-wrap:break-word;word-break:break-word}.swal2-checkbox,.swal2-file,.swal2-input,.swal2-radio,.swal2-select,.swal2-textarea{margin:1em 2em 3px}.swal2-file,.swal2-input,.swal2-textarea{box-sizing:border-box;width:auto;transition:border-color .1s,box-shadow .1s;border:1px solid #d9d9d9;border-radius:.1875em;background:0 0;box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px transparent;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:inset 0 1px 1px rgba(0,0,0,.06),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::placeholder,.swal2-input::placeholder,.swal2-textarea::placeholder{color:#ccc}.swal2-range{margin:1em 2em 3px;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-file{width:75%;margin-right:auto;margin-left:auto;background:0 0;font-size:1.125em}.swal2-textarea{height:6.75em;padding:.75em}.swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:0 0;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 0}.swal2-validation-message{align-items:center;justify-content:center;margin:1em 0 0;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:2.5em auto .6em;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;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-warning.swal2-icon-show{-webkit-animation:swal2-animate-error-icon .5s;animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-warning.swal2-icon-show .swal2-icon-content{-webkit-animation:swal2-animate-i-mark .5s;animation:swal2-animate-i-mark .5s}.swal2-icon.swal2-info{border-color:#9de0f6;color:#3fc3ee}.swal2-icon.swal2-info.swal2-icon-show{-webkit-animation:swal2-animate-error-icon .5s;animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-info.swal2-icon-show .swal2-icon-content{-webkit-animation:swal2-animate-i-mark .8s;animation:swal2-animate-i-mark .8s}.swal2-icon.swal2-question{border-color:#c9dae1;color:#87adbd}.swal2-icon.swal2-question.swal2-icon-show{-webkit-animation:swal2-animate-error-icon .5s;animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-question.swal2-icon-show .swal2-icon-content{-webkit-animation:swal2-animate-question-mark .8s;animation:swal2-animate-question-mark .8s}.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:1.25em auto;padding:0;background:0 0;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{margin-right:initial;margin-left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}.leave-russia-now-and-apply-your-skills-to-the-world{display:flex;position:fixed;z-index:1939;top:0;right:0;bottom:0;left:0;flex-direction:column;align-items:center;justify-content:center;padding:25px 0 20px;background:#20232a;color:#fff;text-align:center}.leave-russia-now-and-apply-your-skills-to-the-world div{max-width:560px;margin:10px;line-height:146%}.leave-russia-now-and-apply-your-skills-to-the-world iframe{max-width:100%;max-height:55.5555555556vmin;margin:16px auto}.leave-russia-now-and-apply-your-skills-to-the-world strong{border-bottom:2px dashed #fff}.leave-russia-now-and-apply-your-skills-to-the-world button{display:flex;position:fixed;z-index:1940;top:0;right:0;align-items:center;justify-content:center;width:48px;height:48px;margin-right:10px;margin-bottom:-10px;border:none;background:0 0;color:#aaa;font-size:48px;font-weight:700;cursor:pointer}.leave-russia-now-and-apply-your-skills-to-the-world button:hover{color:#fff}@-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)}}@-webkit-keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@-webkit-keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}@keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}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{background-color:transparent!important;pointer-events:none}body.swal2-no-backdrop .swal2-container .swal2-popup{pointer-events:all}body.swal2-no-backdrop .swal2-container .swal2-modal{box-shadow:0 0 10px rgba(0,0,0,.4)}@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{box-sizing:border-box;width:360px;max-width:100%;background-color:transparent;pointer-events:none}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 o=!1;try{o="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(e){}t.hasCORS=o},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 o in e)e.hasOwnProperty(o)&&(t.length&&(t+="&"),t+=encodeURIComponent(o)+"="+encodeURIComponent(e[o]));return t},t.decode=function(e){let t={},o=e.split("&");for(let e=0,n=o.length;e{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parse=void 0;const o=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,n=["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=o.exec(e||""),i={},c=14;for(;c--;)i[n[c]]=s[c]||"";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 o=t.replace(/\/{2,9}/g,"/").split("/");return"/"!=t.substr(0,1)&&0!==t.length||o.splice(0,1),"/"==t.substr(t.length-1,1)&&o.splice(o.length-1,1),o}(0,i.path),i.queryKey=function(e,t){const o={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,(function(e,t,n){t&&(o[t]=n)})),o}(0,i.query),i}},8726:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.yeast=t.decode=t.encode=void 0;const o="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),n={};let a,r=0,s=0;function i(e){let t="";do{t=o[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,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parse=t.installTimerFunctions=t.transports=t.Transport=t.protocol=t.Socket=void 0;const n=o(3481);Object.defineProperty(t,"Socket",{enumerable:!0,get:function(){return n.Socket}}),t.protocol=n.Socket.protocol;var a=o(9870);Object.defineProperty(t,"Transport",{enumerable:!0,get:function(){return a.Transport}});var r=o(7385);Object.defineProperty(t,"transports",{enumerable:!0,get:function(){return r.transports}});var s=o(9622);Object.defineProperty(t,"installTimerFunctions",{enumerable:!0,get:function(){return s.installTimerFunctions}});var i=o(5222);Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return i.parse}})},3481:function(e,t,o){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Socket=void 0;const a=o(7385),r=o(9622),s=o(5754),i=o(5222),c=n(o(1227)),l=o(5260),u=o(1373),d=(0,c.default)("engine.io-client:socket");class p extends l.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 o=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",o),new a.transports[e](o)}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),o=!1;p.priorWebsocketSuccess=!1;const n=()=>{o||(d('probe transport "%s" opened',e),t.send([{type:"ping",data:"probe"}]),t.once("packet",(n=>{if(!o)if("pong"===n.type&&"probe"===n.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((()=>{o||"closed"!==this.readyState&&(d("changing transport and sending upgrade packet"),l(),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 o=new Error("probe error");o.transport=t.name,this.emitReserved("upgradeError",o)}})))};function a(){o||(o=!0,l(),t.close(),t=null)}const r=o=>{const n=new Error("probe error: "+o);n.transport=t.name,a(),d('probe transport "%s" failed because of error: %s',e,o),this.emitReserved("upgradeError",n)};function s(){r("transport closed")}function i(){r("socket closed")}function c(e){t&&e.name!==t.name&&(d('"%s" works - aborting "%s"',e.name,t.name),a())}const l=()=>{t.removeListener("open",n),t.removeListener("error",r),t.removeListener("close",s),this.off("close",i),this.off("upgrading",c)};t.once("open",n),t.once("error",r),t.once("close",s),this.once("close",i),this.once("upgrading",c),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,o){return this.sendPacket("message",e,t,o),this}send(e,t,o){return this.sendPacket("message",e,t,o),this}sendPacket(e,t,o,n){if("function"==typeof t&&(n=t,t=void 0),"function"==typeof o&&(n=o,o=null),"closing"===this.readyState||"closed"===this.readyState)return;(o=o||{}).compress=!1!==o.compress;const a={type:e,data:t,options:o};this.emitReserved("packetCreate",a),this.writeBuffer.push(a),n&&this.once("flush",n),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()},o=()=>{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?o():e()})):this.upgrading?o():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 o=0;const n=e.length;for(;o{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.transports=void 0;const n=o(484),a=o(1308);t.transports={websocket:a.WS,polling:n.Polling}},484:function(e,t,o){"use strict";var n=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=o(9870),r=n(o(1227)),s=o(8726),i=o(5754),c=o(1373),l=o(6666),u=o(5260),d=o(9622),p=o(6242),h=(0,r.default)("engine.io-client:polling");function m(){}const f=null!=new l.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 o=location.port;o||(o=t?"443":"80"),this.xd="undefined"!=typeof location&&e.hostname!==location.hostname||o!==e.port,this.xs=e.secure!==t}const t=e&&e.forceBase64;this.supportsBinary=f&&!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,c.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,c.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 o="";!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))&&(o=":"+this.opts.port);const n=(0,i.encode)(e);return t+"://"+(-1!==this.opts.hostname.indexOf(":")?"["+this.opts.hostname+"]":this.opts.hostname)+o+this.opts.path+(n.length?"?"+n:"")}request(e={}){return Object.assign(e,{xd:this.xd,xs:this.xs},this.opts),new y(this.uri(),e)}doWrite(e,t){const o=this.request({method:"POST",data:e});o.on("success",t),o.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 l.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=m,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,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultBinaryType=t.usingBrowserWebSocket=t.WebSocket=t.nextTick=void 0;const n=o(6242);t.nextTick="function"==typeof Promise&&"function"==typeof Promise.resolve?e=>Promise.resolve().then(e):(e,t)=>t(e,0),t.WebSocket=n.globalThisShim.WebSocket||n.globalThisShim.MozWebSocket,t.usingBrowserWebSocket=!0,t.defaultBinaryType="arraybuffer"},1308:function(e,t,o){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.WS=void 0;const a=o(9870),r=o(5754),s=o(8726),i=o(9622),c=o(5552),l=n(o(1227)),u=o(1373),d=(0,l.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,o=p?{}:(0,i.pick)(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(o.headers=this.opts.extraHeaders);try{this.ws=c.usingBrowserWebSocket&&!p?t?new c.WebSocket(e,t):new c.WebSocket(e):new c.WebSocket(e,t,o)}catch(e){return this.emitReserved("error",e)}this.ws.binaryType=this.socket.binaryType||c.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={};!c.usingBrowserWebSocket&&(o.options&&(t.compress=o.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 o="";this.opts.port&&("wss"===t&&443!==Number(this.opts.port)||"ws"===t&&80!==Number(this.opts.port))&&(o=":"+this.opts.port),this.opts.timestampRequests&&(e[this.opts.timestampParam]=(0,s.yeast)()),this.supportsBinary||(e.b64=1);const n=(0,r.encode)(e);return t+"://"+(-1!==this.opts.hostname.indexOf(":")?"["+this.opts.hostname+"]":this.opts.hostname)+o+this.opts.path+(n.length?"?"+n:"")}check(){return!!c.WebSocket}}t.WS=h},6666:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.XHR=void 0;const n=o(8419),a=o(6242);t.XHR=function(e){const t=e.xdomain;try{if("undefined"!=typeof XMLHttpRequest&&(!t||n.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,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.byteLength=t.installTimerFunctions=t.pick=void 0;const n=o(6242);t.pick=function(e,...t){return t.reduce(((t,o)=>(e.hasOwnProperty(o)&&(t[o]=e[o]),t)),{})};const a=setTimeout,r=clearTimeout;t.installTimerFunctions=function(e,t){t.useNativeTimers?(e.setTimeoutFn=a.bind(n.globalThisShim),e.clearTimeoutFn=r.bind(n.globalThisShim)):(e.setTimeoutFn=setTimeout.bind(n.globalThisShim),e.clearTimeoutFn=clearTimeout.bind(n.globalThisShim))},t.byteLength=function(e){return"string"==typeof e?function(e){let t=0,o=0;for(let n=0,a=e.length;n=57344?o+=3:(n++,o+=4);return o}(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 o=Object.create(null);t.PACKET_TYPES=o,o.open="0",o.close="1",o.ping="2",o.pong="3",o.message="4",o.upgrade="5",o.noop="6";const n=Object.create(null);t.PACKET_TYPES_REVERSE=n,Object.keys(o).forEach((e=>{n[o[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 o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n="undefined"==typeof Uint8Array?[]:new Uint8Array(256);for(let e=0;e{let t,n=new Uint8Array(e),a=n.length,r="";for(t=0;t>2],r+=o[(3&n[t])<<4|n[t+1]>>4],r+=o[(15&n[t+1])<<2|n[t+2]>>6],r+=o[63&n[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,o,a,r,s,i=.75*e.length,c=e.length,l=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[l++]=(15&a)<<4|r>>2,d[l++]=(3&r)<<6|63&s;return u}},7572:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=o(3087),a=o(2469),r="function"==typeof ArrayBuffer,s=(e,t)=>{if(r){const o=(0,a.decode)(e);return i(o,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 o=e.charAt(0);return"b"===o?{type:"message",data:s(e.substring(1),t)}:n.PACKET_TYPES_REVERSE[o]?e.length>1?{type:n.PACKET_TYPES_REVERSE[o],data:e.substring(1)}:{type:n.PACKET_TYPES_REVERSE[o]}:n.ERROR_PACKET}},3908:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=o(3087),a="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),r="function"==typeof ArrayBuffer,s=(e,t)=>{const o=new FileReader;return o.onload=function(){const e=o.result.split(",")[1];t("b"+e)},o.readAsDataURL(e)};t.default=({type:e,data:t},o,i)=>{return a&&t instanceof Blob?o?i(t):s(t,i):r&&(t instanceof ArrayBuffer||(c=t,"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(c):c&&c.buffer instanceof ArrayBuffer))?o?i(t):s(new Blob([t]),i):i(n.PACKET_TYPES[e]+(t||""));var c}},1373:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodePayload=t.decodePacket=t.encodePayload=t.encodePacket=t.protocol=void 0;const n=o(3908);t.encodePacket=n.default;const a=o(7572);t.decodePacket=a.default;const r=String.fromCharCode(30);t.encodePayload=(e,t)=>{const o=e.length,a=new Array(o);let s=0;e.forEach(((e,i)=>{(0,n.default)(e,!1,(e=>{a[i]=e,++s===o&&t(a.join(r))}))}))},t.decodePayload=(e,t)=>{const o=e.split(r),n=[];for(let e=0;e{"use strict";function o(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=o,o.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),o=Math.floor(t*this.jitter*e);e=0==(1&Math.floor(10*t))?e-o:e+o}return 0|Math.min(e,this.max)},o.prototype.reset=function(){this.attempts=0},o.prototype.setMin=function(e){this.ms=e},o.prototype.setMax=function(e){this.max=e},o.prototype.setJitter=function(e){this.jitter=e}},7046:function(e,t,o){"use strict";var n=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=o(3084),r=o(4168);Object.defineProperty(t,"Manager",{enumerable:!0,get:function(){return r.Manager}});const s=o(8312);Object.defineProperty(t,"Socket",{enumerable:!0,get:function(){return s.Socket}});const i=n(o(1227)).default("socket.io-client"),c={};function l(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};const o=a.url(e,t.path||"/socket.io"),n=o.source,s=o.id,l=o.path,u=c[s]&&l in c[s].nsps;let d;return t.forceNew||t["force new connection"]||!1===t.multiplex||u?(i("ignoring socket cache for %s",n),d=new r.Manager(n,t)):(c[s]||(i("new io instance for %s",n),c[s]=new r.Manager(n,t)),d=c[s]),o.query&&!t.query&&(t.query=o.queryKey),d.socket(o.path,t)}t.io=l,t.connect=l,t.default=l,Object.assign(l,{Manager:r.Manager,Socket:s.Socket,io:l,connect:l});var u=o(7116);Object.defineProperty(t,"protocol",{enumerable:!0,get:function(){return u.protocol}}),e.exports=l},4168:function(e,t,o){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,o,n){void 0===n&&(n=o),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[o]}})}:function(e,t,o,n){void 0===n&&(n=o),e[n]=t[o]}),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 o in e)"default"!==o&&Object.prototype.hasOwnProperty.call(e,o)&&n(t,e,o);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=o(4679),c=o(8312),l=r(o(7116)),u=o(7149),d=o(5159),p=o(5260),h=s(o(1227)).default("socket.io-client:manager");class m extends p.Emitter{constructor(e,t){var o;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!==(o=t.randomizationFactor)&&void 0!==o?o:.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 n=t.parser||l;this.encoder=new n.Encoder,this.decoder=new n.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,o=this;this._readyState="opening",this.skipReconnect=!1;const n=u.on(t,"open",(function(){o.onopen(),e&&e()})),a=u.on(t,"error",(t=>{h("error"),o.cleanup(),o._readyState="closed",this.emitReserved("error",t),e?e(t):o.maybeReconnectOnOpen()}));if(!1!==this._timeout){const e=this._timeout;h("connect attempt will timeout after %d",e),0===e&&n();const o=this.setTimeoutFn((()=>{h("connect attempt timed out after %d",e),n(),t.close(),t.emit("error",new Error("timeout"))}),e);this.opts.autoUnref&&o.unref(),this.subs.push((function(){clearTimeout(o)}))}return this.subs.push(n),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 o=this.nsps[e];return o||(o=new c.Socket(this,e,t),this.nsps[e]=o),o}_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 o=0;oe())),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 o=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&&o.unref(),this.subs.push((function(){clearTimeout(o)}))}}onreconnect(){const e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}t.Manager=m},7149:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.on=void 0,t.on=function(e,t,o){return e.on(t,o),function(){e.off(t,o)}}},8312:function(e,t,o){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Socket=void 0;const a=o(7116),r=o(7149),s=o(5260),i=n(o(1227)).default("socket.io-client:socket"),c=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class l extends s.Emitter{constructor(e,t,o){super(),this.connected=!1,this.receiveBuffer=[],this.sendBuffer=[],this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=t,o&&o.auth&&(this.auth=o.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(c.hasOwnProperty(e))throw new Error('"'+e+'" is a reserved event name');t.unshift(e);const o={type:a.PacketType.EVENT,data:t,options:{}};if(o.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 n=t.pop();this._registerAckCallback(e,n),o.id=e}const n=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return!this.flags.volatile||n&&this.connected?this.connected?(this.notifyOutgoingListeners(o),this.packet(o)):this.sendBuffer.push(o):i("discard packet as the transport is not currently writable"),this.flags={},this}_registerAckCallback(e,t){const o=this.flags.timeout;if(void 0===o)return void(this.acks[e]=t);const n=this.io.setTimeoutFn((()=>{delete this.acks[e];for(let t=0;t{this.io.clearTimeoutFn(n),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 o of t)o.apply(this,e)}super.emit.apply(this,e)}ack(e){const t=this;let o=!1;return function(...n){o||(o=!0,i("sending ack %j",n),t.packet({type:a.PacketType.ACK,id:e,data:n}))}}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 o=0;o{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.reconstructPacket=t.deconstructPacket=void 0;const n=o(790);function a(e,t){if(!e)return e;if(n.isBinary(e)){const o={_placeholder:!0,num:t.length};return t.push(e),o}if(Array.isArray(e)){const o=new Array(e.length);for(let n=0;n=0&&e.num{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Decoder=t.Encoder=t.PacketType=t.protocol=void 0;const n=o(5260),a=o(3155),r=o(790),s=o(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),o=this.encodeAsString(t.packet),n=t.buffers;return n.unshift(o),n}};class c extends n.Emitter{constructor(e){super(),this.reviver=e}add(e){let t;if("string"==typeof e){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");t=this.decodeString(e),t.type===i.BINARY_EVENT||t.type===i.BINARY_ACK?(this.reconstructor=new l(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 o={type:Number(e.charAt(0))};if(void 0===i[o.type])throw new Error("unknown packet type "+o.type);if(o.type===i.BINARY_EVENT||o.type===i.BINARY_ACK){const n=t+1;for(;"-"!==e.charAt(++t)&&t!=e.length;);const a=e.substring(n,t);if(a!=Number(a)||"-"!==e.charAt(t))throw new Error("Illegal attachments");o.attachments=Number(a)}if("/"===e.charAt(t+1)){const n=t+1;for(;++t&&","!==e.charAt(t)&&t!==e.length;);o.nsp=e.substring(n,t)}else o.nsp="/";const n=e.charAt(t+1);if(""!==n&&Number(n)==n){const n=t+1;for(;++t;){const o=e.charAt(t);if(null==o||Number(o)!=o){--t;break}if(t===e.length)break}o.id=Number(e.substring(n,t+1))}if(e.charAt(++t)){const n=this.tryParse(e.substr(t));if(!c.isPayloadValid(o.type,n))throw new Error("invalid payload");o.data=n}return s("decoded %s as %j",e,o),o}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=c;class l{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 o="function"==typeof ArrayBuffer,n=Object.prototype.toString,a="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===n.call(Blob),r="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===n.call(File);function s(e){return o&&(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,o){if(!t||"object"!=typeof t)return!1;if(Array.isArray(t)){for(let o=0,n=t.length;o{"use strict";function n(e){if(e)return function(e){for(var t in n.prototype)e[t]=n.prototype[t];return e}(e)}o.r(t),o.d(t,{Emitter:()=>n}),n.prototype.on=n.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},n.prototype.once=function(e,t){function o(){this.off(e,o),t.apply(this,arguments)}return o.fn=t,this.on(e,o),this},n.prototype.off=n.prototype.removeListener=n.prototype.removeAllListeners=n.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var o,n=this._callbacks["$"+e];if(!n)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 o in t)__webpack_require__.o(t,o)&&!__webpack_require__.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},__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__(8238),__webpack_require__(112),__webpack_require__(2868),__webpack_require__(4719),__webpack_require__(3131),__webpack_require__(3526),__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 045721c..4270873 100644 --- a/cheatGUI/src/hacks/pets.ts +++ b/cheatGUI/src/hacks/pets.ts @@ -190,6 +190,31 @@ new Hack(category.pets, "Delete Pet", "Delete a pet.").setClick(async () => { // End Delete Pet +// Begin Edit Kennel +new Hack(category.pets, "Edit Kennel", "Allows you to directly edit your pets.").setClick(async () => { + + const options = new Map(); + const s = ((num : 0 | 1 | 2) : any => { return _.player.kennel._petTeam[num]; }); + options.set("0", `[0] Center - ${s(0)}`); + options.set("1", `[1] Top - ${s(1)}`); + options.set("2", `[2] Bottom - ${s(2)}`); + + + const KennelSlot = await Swal.fire({ + input: "select", + inputOptions: options, + title: "Select Slot", + text: "Select a slot to edit", + }); + + if (!KennelSlot.value) return; + + Swal.fire("result", KennelSlot.value); + // @ts-expect-error + console.log(s(parseInt(KennelSlot.value))); + +}); +// End Kennel // END PET HACKS diff --git a/cheatGUI/src/index.ts b/cheatGUI/src/index.ts index 5799edd..d4fe162 100644 --- a/cheatGUI/src/index.ts +++ b/cheatGUI/src/index.ts @@ -45,7 +45,7 @@ menuleft.classList.add("menu-left"); menu.append(menuleft); let firstCategory = true; -const addArea = (title: string) => { +const addArea = (title: string) : HTMLDivElement => { const area = document.createElement("div"); if (firstCategory == false) { From e55016d81aad4f178b333e7eaa7884df280d623f Mon Sep 17 00:00:00 2001 From: gemsvido Date: Sat, 27 Aug 2022 15:20:15 -0700 Subject: [PATCH 02/17] build bundle --- cheatGUI/dist/bundle.js | 1 + 1 file changed, 1 insertion(+) diff --git a/cheatGUI/dist/bundle.js b/cheatGUI/dist/bundle.js index e69de29..32268fd 100644 --- a/cheatGUI/dist/bundle.js +++ b/cheatGUI/dist/bundle.js @@ -0,0 +1 @@ +(()=>{var __webpack_modules__={8844:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))}}n=[o,t,o(4759),o(9820),o(2852),o(4719)],void 0===(a=function(e,t,o,n,a,r){"use strict";new n.Toggler(n.category.battle,"Disable math [PvP, PvE]","Disable math in PvP, PvE, anywhere! This doesn't work in the Floatling town.").setEnabled(s((function*(){return a._.constants.constants["GameConstants.Debug.EDUCATION_ENABLED"]=!1,o.Toast.fire("Enabled!","You will no longer do Math!","success")}))).setDisabled(s((function*(){return a._.constants.constants["GameConstants.Debug.EDUCATION_ENABLED"]=!0,o.Toast.fire("Disabled!","You will now do Math!","success")}))),new n.Toggler(n.category.battle,"Instant Kill [PvE]","Makes your spells do insane damage in PvE!").setEnabled(s((function*(){return a.player.modifiers.damage=a.VERY_LARGE_NUMBER,o.Toast.fire("Enabled!","You will now do insane damage in PvE!","success")}))).setDisabled((()=>(a.player.modifiers.damage=1,o.Toast.fire("Disabled!","You will no longer do insane damage in PvE!","success")))),new n.Hack(n.category.battle,"PvP Health [PvP]","Increases your HP in PvP by a hell ton.").setClick(s((function*(){return a.player.pvpHP=a.VERY_LARGE_NUMBER,a.player.getMaxHearts=()=>a.VERY_LARGE_NUMBER,o.Toast.fire("Success!","You now have lots of health!","success")}))),new n.Hack(n.category.battle,"Escape Battle [PvP, PvE]","Escape any battle, PvP or PvE!").setClick(s((function*(){var e=a.game.state.current;return"PVP"===e?(Object.fromEntries(a._.instance.game.state.states).PVP.endPVP(),o.Toast.fire("Escaped!","You have successfully escaped from the PvP battle.","success")):"CoOp"===e?(a.prodigy.world.$(a.player.data.zone),o.Toast.fire("Escaped!","You have successfully escaped from the battle.","success")):["Battle","SecureBattle"].includes(e)?(Object.fromEntries(a._.instance.game.state.states)[e].runAwayCallback(),o.Toast.fire("Escaped!","You have successfully escaped from the PvE battle.","success")):o.Toast.fire("Invalid State.","You are currently not in a battle.","error")}))),new n.Hack(n.category.battle,"Win Battle [PvE]","Instantly win a battle in PvE.").setClick(s((function*(){var e=a.game.state.current;switch((0,r.BattleInfo)("Current State: "+e),e){case"PVP":case"CoOp":return o.Toast.fire("Invalid State.","PvP is not supported for this hack.","error");case"Battle":return Object.fromEntries(a._.instance.game.state.states).Battle.startVictory(),o.Toast.fire("Victory!","You have successfully won the battle.","success");case"SecureBattle":return Object.fromEntries(a._.instance.game.state.states).SecureBattle.battleVictory(),o.Toast.fire("Victory!","You have successfully won the battle.","success");default:return o.Toast.fire("Invalid State.","You are currently not in a battle.","error")}}))),new n.Hack(n.category.battle,"Set Battle Hearts [PvP, PvE]","Sets your hearts in battle, automatically raise your max hearts in PvP or PvE.").setClick(s((function*(){var e=yield o.NumberInput.fire("Health Amount","How much HP do you want?","question");if(void 0!==e.value)return a.player.getMaxHearts=()=>+e.value,a.player.pvpHP=+e.value,a.player.data.hp=+e.value,o.Toast.fire("Success!","Your hearts have been set.","success")}))),new n.Hack(n.category.battle,"Fill Battle Energy [PvP, PvE]","Fills up your battle energy, if you are in PvP or PvE.").setClick(s((function*(){var e=a.game.state.getCurrentState();return"teams"in e?(e.teams[0].setEnergy(99),o.Toast.fire("Success!","Your battle energy has been filled.","success")):o.Toast.fire("Error","You are currently not in a battle.","error")}))),new n.Hack(n.category.battle,"Heal Team [PvE]","Instantly heals you and your pets, if you are in PvE.").setClick(s((function*(){var e=a.game.state.current;return"PVP"===e||"CoOp"===e?o.Toast.fire("Invalid State.","PvP is not supported for this hack.","error"):["Battle","SecureBattle"].includes(e)?(a.player.heal(),o.Toast.fire("Success!","Your team has been healed successfully!","success")):o.Toast.fire("Invalid State.","Your are currently not in a battle.","error")})))}.apply(t,n))||(e.exports=a)},9155:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))}}n=[o,t,o(4759),o(9820),o(2852),o(112),o(3131)],void 0===(a=function(e,t,o,n,a,r,i){"use strict";new n.Hack(n.category.beta,"Get all Runes [BETA]").setClick(s((function*(){if((yield o.Confirm.fire({title:"Hang on!",html:"This hack may damage your account with various bugs, for example you may be unable to do Rune Run.

      Proceed?",icon:"warning"})).value){var e,t=parseInt((yield o.NumberInput.fire({title:"Amount",text:"How many of each would you like?",icon:"question",inputValidator:e=>e?"":"Please select which you'd like to get."})).value);if(!isNaN(t))return Array.from(a._.instance.prodigy.gameContainer._inversifyContainer._bindingDictionary._map).forEach((t=>{try{a._.instance.prodigy.gameContainer.get(t[0]).battleData&&(e=t[0])}catch(e){console.log("Error for ".concat(t[0]))}})),a._.instance.prodigy.gameContainer.get(e).battleData._secureCharacterState._data.inventory.orb=(0,r.runeify)(a._.gameData.orb,t),o.Toast.fire("Runes Added!","Your runes have been added!","success")}}))),new n.Hack(n.category.beta,"Edit Pet [BETA]","Edit a pet.").setClick(s((function*(){if(!(yield o.Confirm.fire({title:"Hang on!",html:"This hack may damage your account with various bugs, for example you may be unable to do Rune Run.

      Proceed?",icon:"warning"})).value)return console.log("Cancelled.");var e=yield(0,r.getPet)("Choose the pet to edit.");if(void 0!==e){var t=a.player.kennel.data[e],n=yield o.Swal.fire({input:"select",inputOptions:{level:"Level",attacks:"Attacks",name:"Name"},title:"Edit Property",text:"What do you want to edit?"});if(void 0!==n.value){if("level"===n.value){var s=yield o.NumberInput.fire("Level Number","What level do you want to set your pet to?","question");if(void 0===s.value)return;return t.level=+s.value,o.Toast.fire("Success!","The pet's level has been set.","success")}if("attacks"===n.value){var i=a._.gameData.spell,c=document.createElement("div"),l=document.createElement("select");for(var u of(l.classList.add("selectSpell"),i)){var d=document.createElement("option");d.value=u.ID.toString(),d.innerText="".concat(u.ID,": ").concat(u.name," (").concat(u.data.element,") - Damage: ").concat(u.data.damage),l.options.add(d)}c.append(l),c.append(l.cloneNode(!0));var p=yield o.Swal.fire({title:"Attack List",focusConfirm:!1,showCancelButton:!0,html:c,preConfirm:()=>Array.prototype.slice.call(document.querySelectorAll(".selectSpell")).map((e=>e.options[e.selectedIndex].value))});if(void 0===p.value)return;return t.foreignSpells.splice(0,2,...p.value.map((e=>+e))),o.Toast.fire("Attacks updated!","The attack list of the pet you selected has been edited.","success")}if("name"===n.value){var h=yield o.Input.fire("Input Name","What do you want to name the pet?","question");if(void 0===h.value)return;return t.nickname=h.value,o.Toast.fire("Successfully renamed!","The name of the pet has been changed.","success")}}}}))),new n.Hack(n.category.beta,"Morph Player [BETA]","Morph into a pet, furnishing, or follow.").setClick(s((function*(){if(!(yield o.Confirm.fire("This hack is in BETA","Expect bugs, and it might not work properly.")).value)return console.log("Cancelled");var e=yield o.Swal.fire({title:"Which morph type?",input:"select",inputOptions:{pet:"Pet",dorm:"Furniture",follow:"Follow"},inputPlaceholder:"Morph Type",inputValidator:e=>e?"":"Please select a morph type.",showCancelButton:!0});if(null!=e&&e.value){var t={};a._.gameData[e.value].forEach((e=>t[e.ID]="".concat(e.name," (").concat(e.ID,")")));var n=yield o.Swal.fire({title:"Which morph?",input:"select",inputOptions:t,inputPlaceholder:"Morph ID",inputValidator:e=>e?"":"Please select a morph ID.",showCancelButton:!0});if(n.value)return a.player.getPlayerData().playerTransformation={transformType:e.value,transformID:n.value,maxTime:36e5,timeRemaining:36e5},a.player.appearanceChanged=!0,o.Toast.fire("Morphed!","You've been morphed.","success")}}))),new n.Toggler(n.category.beta,"Toggle Close Popups [BETA]","Automatically closes popups in Prodigy.").setEnabled(s((function*(){return(0,i.PopupInterval)(!0),o.Toast.fire("Enabled","Toggle Close Popups is now enabled.","success")}))).setDisabled(s((function*(){return(0,i.PopupInterval)(!1),o.Toast.fire("Enabled","Toggle Close Popups is now disabled.","success")}))),new n.Hack(n.category.beta,"Hypermax Account [BETA]").setClick(s((function*(){if((yield o.Confirm.fire({title:"Hang on!",html:"This hack will damage your account with various bugs, for example you may be unable to do Rune Run/Arena, amd you will recieve 418s and inavtivity kicks.

      Proceed?",icon:"warning"})).value){a.player.data.gold=99e5,console.log("Set player gold to 9900000.");var e=100..value-2;a.player.data.stars=Math.round((1-Math.pow(1.042,e))/(1-1.042)*20+10),a.player.data.level=100,a.player.getLevel=()=>a.player.data.level,console.log("Set player level to 100"),a.player.data.bountyScore=100,console.log("Set player's bounty points to 100.");for(var t=0;ta.VERY_LARGE_NUMBER,console.log("PvP health obtained.");for(var n=0;n<100;n++)a.player.achievements.data.progress[n]=10;console.log("Obtained all achievements."),a.player.data.tower=100,console.log("Set tower floor to 100."),a.player.getMaxHearts=()=>a.VERY_LARGE_NUMBER,a.player.pvpHP=a.VERY_LARGE_NUMBER,a.player.data.hp=a.VERY_LARGE_NUMBER,console.log("Maxed out PvE health.");var s,i=99e4;r.ids.forEach((e=>{a.player.backpack.data[e]=(0,r.itemify)(a._.gameData[e].filter((t=>"follow"===e?![125,126,127,128,129,134,135,136,137].includes(t.ID):t)),i.value)})),a._.gameData.dorm.forEach((e=>a.player.house.data.items[e.ID]={A:[],N:i.value}));for(var c=()=>a.player.backpack.data.item.findIndex((e=>84===e.ID||85===e.ID||86===e.ID));c()>-1;)a.player.backpack.data.item.splice(c(),1);return o.Toast.fire("Success!","All items added!","success"),console.log("All items added!"),a.player.backpack.data.mount=(0,r.itemify)(a._.gameData.mount,1),console.log("Added all mounts."),a._.gameData.dorm.forEach((e=>a.player.house.data.items[e.ID]={A:[],N:99e4.value})),console.log("Added 990000 of all furniture."),a._.gameData.pet.forEach((e=>{a.player.kennel.addPet(e.ID.toString(),a.VERY_LARGE_NUMBER,26376,100)})),a.player.kennel._encounterInfo._data.pets=[],a._.gameData.pet.map((e=>{a.player.kennel._encounterInfo._data.pets.push({firstSeenDate:Date.now(),ID:e.ID,timesBattled:1,timesRescued:1})})),a.player.kennel.petTeam.forEach((e=>{e&&e.assignRandomSpells&&e.assignRandomSpells()})),console.log("Added all pets."),a._.gameData.pet.filter((e=>[158,166,168].includes(e.ID))).forEach((e=>{a.player.kennel.addPet(e.ID.toString(),a.VERY_LARGE_NUMBER,26376,100)})),a.player.kennel.petTeam.forEach((e=>{e&&e.assignRandomSpells&&e.assignRandomSpells()})),console.log("Added Mythical Epics."),a._.gameData.pet.filter((e=>[125,126,127,128,129,130,131,132,133].includes(e.ID))).forEach((e=>{a.player.kennel.addPet(e.ID.toString(),a.VERY_LARGE_NUMBER,26376,100)})),a.player.kennel.petTeam.forEach((e=>{e&&e.assignRandomSpells&&e.assignRandomSpells()})),console.log("Added Legacy Epics."),a._.constants.constants["GameConstants.Inactivity.LOG_OUT_TIMER_SECONDS"]=0,console.log("Inactivity Kick Disabled."),a.player._playerContainer.walkSpeed=20,console.log("Player walkspeed set to 20."),Array.from(a._.instance.prodigy.gameContainer._inversifyContainer._bindingDictionary._map).forEach((e=>{try{a._.instance.prodigy.gameContainer.get(e[0]).battleData&&(s=e[0])}catch(t){console.log("Error for ".concat(e[0]))}})),a._.instance.prodigy.gameContainer.get(s).battleData._secureCharacterState._data.inventory.orb=(0,r.runeify)(a._.gameData.orb,100),a.player.equipment.setHat(200),a.player.equipment.setBoots(93),a.player.equipment.setOutfit(161),a.player.equipment.setWeapon(196),(0,a.saveCharacter)(),console.log("Character Saved."),a.player.appearanceChanged=!0,console.log("Appearance Refreshed."),a._.instance.prodigy.open.menuCloseAll(),console.log("Popups closed."),(0,a.saveCharacter)(),console.log("Character Saved."),console.log("Max Account Successful."),o.Toast.fire("Maxed!","Check your backpack!","success")}})))}.apply(t,n))||(e.exports=a)},8130:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))}}n=[o,t,o(9820),o(4759),o(2852),o(112)],void 0===(a=function(e,t,o,n,a,r){"use strict";new o.Hack(o.category.inventory,"Item stacker").setClick(s((function*(){var e=yield n.NumberInput.fire("Amount","How many of every item would you like?","question");if(e.value&&(yield n.Confirm.fire("Are you sure you want to get all items in the game?")).value){r.ids.forEach((t=>{a.player.backpack.data[t]=(0,r.itemify)(a._.gameData[t].filter((e=>"follow"===t?![125,126,127,128,129,134,135,136,137].includes(e.ID):e)),e.value)})),a._.gameData.dorm.forEach((t=>a.player.house.data.items[t.ID]={A:[],N:e.value}));for(var t=()=>a.player.backpack.data.item.findIndex((e=>84===e.ID||85===e.ID||86===e.ID));t()>-1;)a.player.backpack.data.item.splice(t(),1);return n.Toast.fire("Success!","All items added!","success")}}))),new o.Hack(o.category.inventory,"Clear inventory").setClick(s((function*(){(yield n.Confirm.fire("Are you sure you want to clear your inventory?")).value&&(Object.keys(a.player.backpack.data).forEach((e=>a.player.backpack.data[e]=[])),n.Toast.fire("Success!","Inventory cleared.","success"))}))),new o.Hack(o.category.inventory,"Selector (Basic)").setClick(s((function*(){yield n.Swal.fire({title:"What would you like to obtain?",input:"select",inputOptions:r.names,inputPlaceholder:"Select...",inputValidator:e=>e?"":"Please select which you'd like to obtain.",showCancelButton:!0}).then(function(){var e=s((function*(e){var t=parseInt(e.value),o=r.names[t],s=r.ids[t];if(o){var i=yield n.NumberInput.fire("Amount","How many each object would you like?","question");i.value&&(yield n.Confirm.fire("Are you sure you want to get all ".concat(o.toLowerCase(),"?"))).value&&(a.player.backpack.data[s]=(0,r.itemify)(a._.gameData[s].filter((e=>"follow"===s?![125,126,127,128,129,134,135,136,137].includes(e.ID):e)),i.value),n.Toast.fire("".concat(o," Added!"),"All ".concat(o.toLowerCase()," have been added to your inventory!"),"success"),(0,a.saveCharacter)())}}));return function(t){return e.apply(this,arguments)}}())}))),new o.Hack(o.category.inventory,"Selector (Advanced)","Choose a specific object and quantity to obtain.").setClick(s((function*(){yield n.Swal.fire({title:"What would you like to obtain?",input:"select",inputOptions:r.names,inputPlaceholder:"Select...",inputValidator:e=>e?"":"Please select which you'd like to obtain.",showCancelButton:!0}).then(function(){var e=s((function*(e){if(a._.gameData[r.ids[e.value]]){var t=[];a._.gameData[r.ids[e.value]].forEach((e=>{t.push(e.data.name)})),yield n.Swal.fire({title:"What specific object categorized as ".concat(r.names[e.value].toLowerCase()," would you like to get?"),input:"select",inputOptions:t,inputPlaceholder:"Select...",inputValidator:e=>e?"":"Please select which you'd like to get.",showCancelButton:!0}).then(function(){var t=s((function*(t){var o=parseInt(t.value);if(a._.gameData[r.ids[e.value]][o]){var s=yield n.NumberInput.fire("Amount","How many of the object would you like?","question");if(s.value)return-1===a.player.backpack.data[r.ids[e.value]].findIndex((t=>t.ID===a._.gameData[r.ids[e.value]][o].ID))?a.player.backpack.data[r.ids[e.value]].push({ID:a._.gameData[r.ids[e.value]][o].ID,N:s.value}):a.player.backpack.data[r.ids[e.value]].findIndex((t=>t.ID===a._.gameData[r.ids[e.value]][o].ID)),console.log(a._.gameData[r.ids[e.value]][o].ID),(0,a.saveCharacter)(),n.Toast.fire("".concat(r.names[e.value]," Added!"),"Your selected ".concat(r.names[e.value].toLowerCase()," have been added."),"success")}}));return function(e){return t.apply(this,arguments)}}())}}));return function(t){return e.apply(this,arguments)}}())}))),new o.Hack(o.category.inventory,"Obtain All Furniture").setClick(s((function*(){var e=yield n.NumberInput.fire("Amount","How many of each piece of furniture would you like?","question");if(e.value&&(yield n.Confirm.fire("Are you sure you want to get all furniture?")).value)return a._.gameData.dorm.forEach((t=>a.player.house.data.items[t.ID]={A:[],N:e.value})),n.Toast.fire("Furniture Added!","All furniture has been added to your inventory!","success")}))),new o.Hack(o.category.inventory,"Obtain All Mounts","This gives you all of the mounts in the game.").setClick(s((function*(){return a.player.backpack.data.mount=(0,r.itemify)(a._.gameData.mount,1),n.Toast.fire("Mounts Added!","All mounts have been added to your inventory!")}))),new o.Hack(o.category.inventory,"Remove item").setClick(s((function*(){var e=yield n.Swal.fire({title:"What category would you like to remove an item from?",input:"select",inputOptions:r.names,inputPlaceholder:"Select...",inputValidator:e=>e?"":"Please select which you'd like to obtain.",showCancelButton:!0});if(a._.gameData[r.ids[e.value]]){var t=a._.gameData[r.ids[e.value]].map((e=>e.data.name)),o=yield n.Swal.fire({title:"What specific object categorized as ".concat(r.names[e.value].toLowerCase()," would you like to remove?"),input:"select",inputOptions:t,inputPlaceholder:"Select...",inputValidator:e=>e?"":"Please select which you'd like to get.",showCancelButton:!0});if(o=parseInt(o.value),a._.gameData[r.ids[e.value]][o]){var s=yield n.NumberInput.fire("Amount","How many of the object would you like to remove?","question");if(s.value){if(-1!==a.player.backpack.data[r.ids[e.value]].findIndex((t=>t.ID===a._.gameData[r.ids[e.value]][o].ID))){var i=a.player.backpack.data[r.ids[e.value]].findIndex((t=>t.ID===a._.gameData[r.ids[e.value]][o].ID));return a.player.backpack.data[r.ids[e.value]][i].N-=parseInt(s.value),a.player.backpack.data[r.ids[e.value]][i].N<=0&&a.player.backpack.data[r.ids[e.value]].splice(i,1),(0,a.saveCharacter)(),n.Toast.fire("Removed!","Successfully removed ".concat(s.value," ").concat(a._.gameData[r.ids[e.value]][o].name,"!"),"success")}yield n.Swal.fire("Item Does Not Exist","You do not have any ".concat(a._.gameData[r.ids[e.value]][o].name,"."),"error")}}}}))),new o.Hack(o.category.inventory,"Obtain All Furniture").setClick(s((function*(){return(yield n.Confirm.fire("Are you sure you want to get all furniture?")).value?(a._.gameData.dorm.forEach((e=>a.player.house.data.items[e.ID]={A:[],N:a.VERY_LARGE_NUMBER})),n.Toast.fire("Furniture Added!","All furniture have been added to your inventory!","success")):console.log("Cancelled.")})))}.apply(t,n))||(e.exports=a)},8346:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))}}n=[o,t,o(9820),o(4759),o(2852),o(112)],void 0===(a=function(e,t,o,n,a,r){"use strict";new o.Hack(o.category.location,"Teleport To Map (interactive)").setClick(s((function*(){var e=n.Swal.mixin({focusConfirm:!1,showCancelButton:!0,preConfirm:()=>{var e;return null===(e=document.querySelector(".radioDiv[checked]"))||void 0===e?void 0:e.getAttribute("zone")}}),t=document.createElement("div");t.classList.add("radioContainer");var o=function(e){var o=document.createElement("DIV");o.classList.add("radioDiv"),o.setAttribute("zone",e);var n=a.locations[e];n?o.style.backgroundImage="url(".concat(n,")"):o.innerText=e,o.onclick=()=>{document.querySelectorAll(".radioDiv[checked]").forEach((e=>e.removeAttribute("checked"))),o.setAttribute("checked","")},t.append(o)};for(var r of Object.keys(a.prodigy.world.zones))o(r);var s=yield e.fire({title:"Teleport Zone",html:t,customClass:{popup:"radioSwal"}});if(s.value){var i=Object.keys(a.prodigy.world.zones[s.value].maps),c=yield n.Swal.fire({input:"select",inputOptions:new Map(i.map((e=>[e,e]))),title:"Map",text:"Which map in the zone do you want to teleport to?"});if(c.value){var l=(yield n.NumberInput.fire("Please enter the x to teleport to. (Try 500?)")).value||500,u=(yield n.NumberInput.fire("Please enter the y to teleport to. (Try 500?)")).value||500;return a.prodigy.world.zones[s.value].teleport(c.value,l,u,{},{}),n.Toast.fire("Teleported","You have been teleported!","success")}}}))),new o.Hack(o.category.location,"Teleport to house by userID").setClick(s((function*(){var e=(yield n.NumberInput.fire("Please enter the userID.")).value;if(e)return(0,r.toHouse)(e),n.Toast.fire("Teleported!","You have been teleported!","success")}))),new o.Hack(o.category.location,"Get Map Location").setClick(s((function*(){var e=a.player.data.zone;navigator.clipboard.writeText(e).then(s((function*(){return console.log("Async: Copying to clipboard was successful!"),n.Swal.fire({title:"Map Location",html:"You are at
      ".concat(e," .
      You can save this to get to the same zone.

      Your location is has also been copied to your clipboard."),icon:"info"})})),function(){var t=s((function*(t){return console.error("Async: Could not copy text: ",t),n.Swal.fire({title:"Map Location",html:"You are at
      ".concat(e," .
      You can save this to get to the same zone."),icon:"info"})}));return function(e){return t.apply(this,arguments)}}())})))}.apply(t,n))||(e.exports=a)},3344:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))}}n=[o,t,o(9820),o(2852),o(4759)],void 0===(a=function(e,t,o,n,a){"use strict";new o.Toggler(o.category.minigames,"69x Walk Speed [Dyno Dig]","Walk so fast that you're teleporting, in Dyno Dig.").setEnabled(s((function*(){return n._.instance.game.state.states.get("DinoDig").walkSpeed=69,a.Toast.fire("Enabled!","You will now walk so fast that you're teleporting in Dyno Dig.","success")}))).setDisabled(s((function*(){return n._.instance.game.state.states.get("DinoDig").walkSpeed=1.5,a.Toast.fire("Disabled!","You will now walk at normal speed, in Dyno Dig.","success")})))}.apply(t,n))||(e.exports=a)},465:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))}}n=[o,t,o(4759),o(9820),o(2852),o(8238)],void 0===(a=function(e,t,o,n,a,r){"use strict";new n.Hack(n.category.misc,"Skip Tutorial").setClick(s((function*(){var e=(e,t,o,n)=>{a._.instance.prodigy.world.getZone(e).testQuest(t,o,n);try{Object.fromEntries(a._.instance.game.state.states).TileScreen.process()}catch(e){}};e("house",2),e("academy",2),a.player.state.set("tutorial-0",4),a.player.backpack.addKeyItem(13,0),a.player.tutorial.data.menus[14]=[1],a._.instance.prodigy.open.map(!0,[]),a.player.onTutorialComplete(),a.player.data.level=Math.max(a.player.data.level,5)}))),new n.Toggler(n.category.misc,"Disable Monster Encounters").setEnabled(s((function*(){return a._.constants.constants["GameConstants.Debug.SCALE_ENCOUNTER_DISTANCE"]=0,o.Toast.fire("Enabled!","Monsters will no longer battle you.","success")}))).setDisabled((()=>(a._.constants.constants["GameConstants.Debug.SCALE_ENCOUNTER_DISTANCE"]=1,o.Toast.fire("Disabled!","Monsters will now battle you.","success")))),new n.Toggler(n.category.misc,"Skip enemy turn").setEnabled(s((function*(){return a._.constants.constants["GameConstants.Battle.SKIP_ENEMY_TURN"]=!0,o.Toast.fire("Skipping!","Enemy turns will now be skipped.","success")}))).setDisabled((()=>(a._.constants.constants["GameConstants.Battle.SKIP_ENEMY_TURN"]=!1,o.Toast.fire("Disabled","Enemy turns will no longer be skipped.","success")))),new n.Toggler(n.category.beta,"FPS Counter [BETA]","Shows you a framerate counter").setEnabled(s((function*(){(0,r.startFps)()}))).setDisabled(s((function*(){(0,r.stopFps)()})));try{var i=a.current.user.source.canSpin;new n.Toggler(n.category.misc,"Unlimited Spins","Lets you spin the wheel as many times as you want!").setEnabled(s((function*(){return a.player.canSpin=()=>{},o.Toast.fire("Enabled!","You can now spin the wheel as many times as you want!","success")}))).setDisabled(s((function*(){return a.player.canSpin=i,o.Toast.fire("Disabled!","You can now spin the wheel only when allowed.","success")})))}catch(e){console.error("Unlimited Spins ERROR: "+e)}new n.Hack(n.category.misc,"Bobbify","Converts your account into Bobby Fancywoman.").setClick(s((function*(){if((yield o.Confirm.fire("Are you sure you want your account to be turned into Bobby Fancywoman?","This action is not reversable.")).value)return a.player.name.data.nickname=null,a.player.name.data.firstName=44,a.player.name.data.middleName=754,a.player.name.data.lastName=882,a.player.data.stars=-1e22,a.player.data.level=69,a.player.appearance.setGender("male"),a.player.appearance.setEyeColor(1),a.player.appearance.setFace(4),a.player.appearance.setHair(19,1),a.player.appearance.setSkinColor(1),a.player.equipment.setFollow(19),a.player.equipment.setHat(19),a.player.equipment.setBoots(19),a.player.equipment.setOutfit(19),a.player.equipment.setWeapon(19),o.Toast.fire("Bobbified!","You are now Bobby Fancywoman.","success")}))),new n.Hack(n.category.misc,"Reset Account","Completely resets your account.").setClick(s((function*(){if((yield o.Confirm.fire("Are you sure you want to reset your account?","This action is not reversible.")).value)return a.player.resetAccount(),o.Swal.fire("Reset!","Your account has been reset. Reload Prodigy for the full effect.","success")})));var c=null,l=0;new n.Hack(n.category.misc,"Chat Spammer","Cycles through chat messages pretty fast!").setClick(s((function*(){return c?o.Swal.fire("Already Enabled","Chat Spammer is already enabled. To disable chat spammer, reload Prodigy.","error"):(c=setInterval(s((function*(){a.player.chatID=l,++l>1164&&(l=0)})),90),o.Toast.fire("Spamming!","You're now sending a chat message every 90 milliseconds!","success"))})));var u=null,d=0;new n.Hack(n.category.misc,"High Chat Spammer","Cycles through chat messages hella fast!").setClick(s((function*(){return u?o.Swal.fire("Already Enabled","High Chat Spammer is already enabled. To disable chat spammer, reload Prodigy.","error"):(yield o.Confirm.fire("Warning","This hack may cause lag on weak computers (ex. School Chromebooks).")).value?(u=setInterval(s((function*(){a.player.chatID=d,++d>1164&&(d=0)})),30),o.Toast.fire("Spamming!","You're now sending a chat message every 30 milliseconds!","success")):console.log("Cancelled")})));var p=null,h=0;new n.Hack(n.category.misc,"Chat Spammer on Meth","Cycles through chat messages FAST ASF!").setClick(s((function*(){return p?o.Swal.fire("Already Enabled","Chat Spammer on Meth is already enabled. To disable chat spammer, reload Prodigy.","error"):(yield o.Confirm.fire("Warning","This hack may cause lag on weak computers (ex. School Chromebooks).")).value?(p=setInterval(s((function*(){a.player.chatID=h,++h>1164&&(h=0)})),1),o.Toast.fire("Spamming!","You're now sending a chat message every 1 millisecond!","success")):console.log("Cancelled")}))),new n.Hack(n.category.misc,"[Fix] Fix Battle Crash").setClick(s((function*(){return a.player.kennel.petTeam.forEach((e=>{e&&e.assignRandomSpells&&e.assignRandomSpells()})),o.Toast.fire("Success!","Fixed kennel attack bug!","success")}))),new n.Hack(n.category.misc,"[Fix] Stuck in Unfinished Tower Fix","Takes you out of an unfinished tower if you're stuck in one.").setClick(s((function*(){return a._.instance.prodigy.world.zones.house.teleport("exit"),o.Toast.fire("Success!","You've been teleported outside of your house.","success")}))),new n.Hack(n.category.misc,"uwu","OwO").setClick(s((function*(){return(yield o.Confirm.fire("Are you sure that you want to UwU OwO?","Reload Prodigy to revert UwU.")).value?(Object.chance=e=>{var t={},o=0;for(var n of Object.keys(e).sort(((e,o)=>t[e]-t[o])))t[n]=[],t[n][0]=o+1,t[n][1]=e[n]+o,o=e[n]+o;return t},Object.random=e=>{var t=Object.values(e),o=t[t.length-1][1],n=Math.randint(o);return Object.reverse(e)[t.find((e=>n>=e[0]&&n<=e[1]))]},Array.prototype.join=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:",";return"string"==typeof e?this.reduce(((t,o,n,a)=>t+(nt+(n0&&void 0!==arguments[0]?arguments[0]:",";return"string"==typeof e?this.reduce(((t,o,n)=>t+(n?e+o:o)),""):e instanceof Function?this.reduce(((t,o,n,a)=>t+(n?e(a[n],n,a)+o:o)),""):void 0},String.UWUFX=e=>{var t=Object.chance({"owo :3":20,"✧w✧":20,UwU:20,OwO:10,rawr:10,"uwu :3":5,":3 meow":15,":3":15,X3:15,"*purrs*":15,owo:15,uwu:15,"^w^":15,"x3 rawr":15,owowowowo:15});return e.split(" ").leftJoin(((e,t)=>0===Math.floor(6*Math.random())&&/[A-Za-z]/.test(e[0])?" ".concat(e[0],"-"):" ")).split(" ").join(((e,o)=>0===Math.floor(5*Math.random())?" ".concat(Object.random(t)," "):" "))},String.UWUTable={y:"wy",l:"w",r:"w",ss:"zs",n:"nw",ove:"uv",ome:"um",x:"ks",com:"cum",stu:"stew",au:"aw"},Math.randint=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Math.floor(Math.random()*e-t)+t},String.prototype.escapeRegex=function(){return this.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")},String.prototype.replaceAll=function(e,t){return this.replace(new RegExp(e.toString().escapeRegex(),"gi"),(e=>t))},Object.fromArrays=(e,t)=>{var o={};return e.forEach(((e,n)=>{o[e]=t[n]})),o},Object.reverse=e=>Object.fromArrays(Object.values(e),Object.keys(e)),String.prototype.bulkReplace=function(e){var t=this;for(var o in e)t=t.replaceAll(o,e[o]);return t},String.UWU=e=>String(e).bulkReplace(String.UWUTable),Object.keys(a._.localizer.dataSource._languageData).map((e=>a._.localizer.dataSource._languageData[e]=String.UWUFX(String.UWU(a._.localizer.dataSource._languageData[e])))),Object.values(a._.gameData).map((e=>e.map((e=>[e.data.name&&(e.data.name=String.UWUFX(String.UWU(e.data.name))),e.name&&(e.name=String.UWUFX(String.UWU(e.name))),e.data.flavorText&&(e.data.flavorText=String.UWUFX(String.UWU(e.data.flavorText)))])))),o.Toast.fire("uwu","Reload Prodigy to fix uwu.","success")):console.log("uwu cancelled")})))}.apply(t,n))||(e.exports=a)},8603:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))}}n=[o,t,o(4759),o(9820),o(2852)],void 0===(a=function(e,t,o,n,a){"use strict";var r=null;new n.Hack(n.category.patched,"Arena Point Increaser [Patched]").setClick(s((function*(){return r?o.Swal.fire("Already Enabled","Arena Point Increaser is already enabled.","error"):(yield o.Confirm.fire("This hack is patched.","Running it will probably do nothing.")).value?(r=setInterval(s((function*(){var e=yield(yield fetch("https://api.prodigygame.com/leaderboard-api/season/".concat(a.prodigy.pvpNetworkHandler.seasonID,"/user/").concat(a.player.userID,"/pvp?userID=").concat(a.player.userID),{headers:{authorization:"Bearer ".concat(a.prodigy.network.jwtAuthProvider.getToken()),"content-type":"application/x-www-form-urlencoded; charset=UTF-8"},body:"seasonID=".concat(a.prodigy.pvpNetworkHandler.seasonID,"&action=win"),method:"POST",mode:"cors"})).text();if(""!==e){var t=JSON.parse(e);console.log("[API] ".concat(t.points," Points (+100)"))}else console.log("[API] Failed to add points.")})),60500),o.Swal.fire("Enabled","Arena Point Increaser has been enabled.","success")):console.log("Cancelled")}))),new n.Hack(n.category.patched,"Disable Timeout Dialog [Patched]").setClick(s((function*(){return(yield o.Confirm.fire("This hack is patched.","Running it will probably do nothing.")).value?(a.prodigy.debugMisc.disableTimeoutDialogue(),o.Toast.fire("Enabled","Timeout Dialog has been disabled.","success")):console.log("Cancelled")})))}.apply(t,n))||(e.exports=a)},7736:(module,exports,__webpack_require__)=>{var __webpack_unused_export__,__WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;function asyncGeneratorStep(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function _asyncToGenerator(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var r=e.apply(t,o);function s(e){asyncGeneratorStep(r,n,a,s,i,"next",e)}function i(e){asyncGeneratorStep(r,n,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_require__(112)],__WEBPACK_AMD_DEFINE_RESULT__=function(require,exports,swal_1,index_1,util_1,hackify_1){"use strict";__webpack_unused_export__={value:!0},new index_1.Hack(index_1.category.pets,"Get All Pets").setClick(_asyncToGenerator((function*(){return(yield swal_1.Confirm.fire("Would you like to add all pets to your pets?")).value?(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()})),swal_1.Toast.fire("Success!","All pets have been added!","success")):console.log("Cancelled")}))),new index_1.Hack(index_1.category.pets,"Get All Legacy Epics").setClick(_asyncToGenerator((function*(){return(yield swal_1.Confirm.fire("This may damage your account.","Attempting to add legacy epics may damage your account. Would you still like to add all legacy epics to your team?","warning")).value?(util_1._.gameData.pet.filter((e=>[125,126,127,128,129,130,131,132,133].includes(e.ID))).forEach((e=>{util_1.player.kennel.addPet(e.ID.toString(),util_1.VERY_LARGE_NUMBER,26376,100)})),util_1.player.kennel.petTeam.forEach((e=>{e&&e.assignRandomSpells&&e.assignRandomSpells()})),swal_1.Toast.fire("Success!","All legacy epics have been added!","success")):console.log("Cancelled")}))),new index_1.Hack(index_1.category.pets,"Get All Mythical Epics").setClick(_asyncToGenerator((function*(){return(yield swal_1.Confirm.fire("Would you like to add all mythical epics to your pets?")).value?(util_1._.gameData.pet.filter((e=>[158,164,165,166,167,168,169,170,171,189].includes(e.ID))).forEach((e=>{util_1.player.kennel.addPet(e.ID.toString(),util_1.VERY_LARGE_NUMBER,26376,100)})),util_1.player.kennel.petTeam.forEach((e=>{e&&e.assignRandomSpells&&e.assignRandomSpells()})),swal_1.Toast.fire("Success!","All mythical epics have been added!","success")):console.log("Cancelled")}))),new index_1.Hack(index_1.category.pets,"Clear Pets").setClick(_asyncToGenerator((function*(){return(yield swal_1.Confirm.fire("Would you like to delete all of your pets?")).value?(util_1.player.kennel.data.length=0,swal_1.Toast.fire("Success!","Your pets have been cleared!","success")):console.log("Cancelled")}))),new index_1.Hack(index_1.category.pets,"Add Pet","Adds a pet from a list.").setClick(_asyncToGenerator((function*(){var e=yield swal_1.Swal.fire({input:"select",inputOptions:new Map(util_1._.gameData.pet.map((e=>[e.ID.toString(),"".concat(e.ID,": ").concat(e.data.name)]))),title:"Choose Pet",text:"Which pet do you want to obtain?"});if(void 0!==e.value)return util_1.player.kennel.addPet(e.value),util_1.player.kennel._encounterInfo._data.pets.push({firstSeenDate:Date.now(),ID:e.value,timesBattled:1,timesRescued:1}),swal_1.Toast.fire("Success!","Your chosen pet has been added to your pets!","success")}))),new index_1.Hack(index_1.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(_asyncToGenerator((function*(){var petTeam=util_1.player.kennel.petTeam.slice(0);petTeam.shift();var names=petTeam.map((e=>e.getName())),pet=yield swal_1.Swal.fire({title:"Which pet would you like to edit?",input:"select",inputOptions:names,inputPlaceholder:"Select...",inputValidator:e=>e?"":"Please select which you'd like to obtain.",showCancelButton:!0}),amt=yield swal_1.NumberInput.fire("Level","What would you like to set your pet's level to? (Can be set over 100)","question");if(amt.value){var num=amt.value;return eval("player.kennel.petTeam[parseInt(".concat(pet.value,")+1].getLevel = () => {return ").concat(num,"}")),swal_1.Toast.fire("Updated!","The level of your pet was successfully updated. Note: this hack is client-side.","success")}}))),new index_1.Hack(index_1.category.pets,"Delete Pet","Delete a pet.").setClick(_asyncToGenerator((function*(){var e=yield(0,hackify_1.getPet)("Which pet do you wish to delete?");if(void 0!==e)return util_1.player.kennel.data.splice(e,1),swal_1.Toast.fire("Successfully deleted!","The selected pet was deleted successfully.","success")}))),new index_1.Hack(index_1.category.pets,"Edit Kennel","Allows you to directly edit your pets.").setClick(_asyncToGenerator((function*(){var e=new Map,t=e=>util_1._.player.kennel._petTeam[e];e.set("0","[0] Center - ".concat(t(0))),e.set("1","[1] Top - ".concat(t(1))),e.set("2","[2] Bottom - ".concat(t(2)));var o=yield swal_1.Swal.fire({input:"select",inputOptions:e,title:"Select Slot",text:"Select a slot to edit"});o.value&&(swal_1.Swal.fire("result",o.value),console.log(t(parseInt(o.value))))})))}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),void 0===__WEBPACK_AMD_DEFINE_RESULT__||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)},7939:(module,exports,__webpack_require__)=>{var __webpack_unused_export__,__WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;function asyncGeneratorStep(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function _asyncToGenerator(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var r=e.apply(t,o);function s(e){asyncGeneratorStep(r,n,a,s,i,"next",e)}function i(e){asyncGeneratorStep(r,n,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_require__(112)],__WEBPACK_AMD_DEFINE_RESULT__=function(require,exports,swal_1,index_1,util_1,hackify_1){"use strict";__webpack_unused_export__={value:!0},new index_1.Hack(index_1.category.player,"Max Account").setClick(_asyncToGenerator((function*(){if(!(yield swal_1.Confirm.fire("Are you sure that you want to max your account?","We recommend doing this on an alt.")).value)return console.log("Cancelled");util_1.player.data.gold=99e5,console.log("Set player gold to 9900000.");var e=100..value-2;util_1.player.data.stars=Math.round((1-Math.pow(1.042,e))/(1-1.042)*20+10),util_1.player.data.level=100,util_1.player.getLevel=()=>util_1.player.data.level,console.log("Set player level to 100"),util_1.player.data.bountyScore=100,console.log("Set player's bounty points to 100.");for(var t=0;t{util_1.player.backpack.data[e]=(0,hackify_1.itemify)(util_1._.gameData[e].filter((t=>"follow"===e?![125,126,127,128,129,134,135,136,137].includes(t.ID):t)),1..value)})),util_1._.gameData.dorm.forEach((e=>util_1.player.house.data.items[e.ID]={A:[],N:1..value}));for(var n=()=>util_1.player.backpack.data.item.findIndex((e=>84===e.ID||85===e.ID||86===e.ID));n()>-1;)util_1.player.backpack.data.item.splice(n(),1);swal_1.Toast.fire("Success!","All items added!","success"),console.log("All items added!"),util_1.player.backpack.data.mount=(0,hackify_1.itemify)(util_1._.gameData.mount,1),console.log("Added all mounts.");var a="currency";return util_1.player.backpack.data[a]=(0,hackify_1.itemify)(util_1._.gameData[a].filter((e=>e)),6969420),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.equipment.setHat(200),util_1.player.equipment.setBoots(93),util_1.player.equipment.setOutfit(161),util_1.player.equipment.setWeapon(196),util_1.player.appearanceChanged=!0,console.log("Appearance Refreshed."),(0,util_1.saveCharacter)(),console.log("Character Saved."),console.log("Max Account Successful."),swal_1.Toast.fire("Maxed!","Check your backpack!","success")}))),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)return e.value>1e7?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;return 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");if(void 0!==e.value)return 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");if(void 0!==e.value)return 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;t(util_1._.instance.prodigy.gameContainer.get((0,hackify_1.getMemberModule)()).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"),o=(e,t)=>{var o=document.createElement("select");for(var n of(o.classList.add("selectName"),e.entries())){var a=document.createElement("option");[a.value,a.innerText]=n,t(a.value)&&(a.selected=!0),o.options.add(a)}return o},n=(t,n)=>o(new Map(e.filter((e=>e.data.type===t)).map((e=>[e.ID.toString(),e.name]))),(e=>n(+e)));t.append(n(0,(e=>e===util_1.player.name.data.firstName))),t.append(n(1,(e=>e===util_1.player.name.data.middleName))),t.append(n(2,(e=>e===util_1.player.name.data.lastName))),t.append(o(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");if(level.value)return 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*(){return 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*(){return 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")):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 o=util_1._.instance.prodigy.world.zones[t].getCurrentQuestID();return util_1._.instance.prodigy.world.zones[t].completeQuest(o)?(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)});if(e.value)return 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.toString()).then((function(){return 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){return 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();return 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?");if(e.value)return util_1.player.grade=parseInt(e.value),swal_1.Toast.fire("Success","Successfully changed grade to ".concat(e,"!"),"success")})))}.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,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function _asyncToGenerator(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var r=e.apply(t,o);function s(e){asyncGeneratorStep(r,n,a,s,i,"next",e)}function i(e){asyncGeneratorStep(r,n,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*(){return 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,"Grab UserID of all players on screen","Shows you the UserID and name of every player currently shown on the screen.").setClick(_asyncToGenerator((function*(){var e=util_1.current.playerList;if(0===Object.keys(e).length)return swal_1.Toast.fire("No players found.","There are no other players on the screen.","error");var t="",o=0;return yield Object.keys(e).map((n=>{var a=Object.entries(e)[o][1].nameText.textSource.source;t+="
    • uID: ".concat(n," - ").concat(a,"
    • "),o++})),swal_1.Swal.fire({title:"All players on the screen:",html:t,icon:"info"})}))),new index_1.Hack(index_1.category.utility,"Save Character Locally [Local]","Saves your character locally.").setClick(_asyncToGenerator((function*(){return 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"});return t.ok?swal_1.Toast.fire("Success!","Character has been successfully loaded. Reload for the changes to take effect.","success"):swal_1.Toast.fire("Request failed.","An error occurred while loading the character. Error code: ".concat(t.status),"error")}return 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*(){return(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;return 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*(){return 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);return 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*(){return teleportingInterval=setInterval((()=>{try{util_1.player._playerContainer.walkSpeed=500}catch(e){}})),swal_1.Toast.fire("Success!","Successfully enabled teleport click.","success")}))).setDisabled(_asyncToGenerator((function*(){return 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*(){return util_1._.network.game._paused=!0,swal_1.Toast.fire("Success!","Successfully paused Prodigy.","success")}))).setDisabled(_asyncToGenerator((function*(){return 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)return console.log("Cancelled.");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 swal_1.Swal.fire({title:"Error",html:"Oops! There was an error with the code!
       ".concat(e," "),icon:"error"})}return 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,o){var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))}}var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};n=[o,t,o(7046),o(2852),o(3526),o(6455),o(4759),o(4719),o(158)],a=function(e,t,o,n,a,r,c,l){"use strict";var u,d,p,h;Object.defineProperty(t,"__esModule",{value:!0}),t.category=t.Toggler=t.Hack=t.toggler=t.wrapper=t.menu=void 0,r=i(r),t.menu=document.createElement("div"),t.wrapper=document.getElementById("game-wrapper"),null===(u=document.getElementById("cheat-menu"))||void 0===u||u.remove(),null===(d=document.getElementById("menu-toggler"))||void 0===d||d.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===(p=t.wrapper)||void 0===p||p.prepend(t.menu),t.toggler=document.createElement("button"),t.toggler.id="menu-toggler";var m=!1;null===(h=t.wrapper)||void 0===h||h.prepend(t.toggler),t.toggler.onclick=()=>{(m=!m)?(t.toggler.innerText="▼",t.menu.style.top="-100vh"):(t.toggler.innerText="▲",t.menu.style.top="10%")},t.toggler.onclick({});var f=document.createElement("DIV");f.classList.add("menu-left"),t.menu.append(f);var g=!0,y=e=>{var t=document.createElement("div");0==g?(t.append(document.createElement("br")),t.append(document.createElement("br"))):g=!1,t.classList.add("menu-area"),t.style.textAlign="center",f.append(t);var o=document.createElement("h1");return o.innerText=e,o.style.textAlign="center",o.style.color="white",t.append(o),t},w=document.createElement("h1");w.classList.add("menu-title"),w.innerText="Prodigy Hacks",w.style.textAlign="center",f.append(w);var b=document.createElement("h2");b.style.fontSize="25px",b.style.color="white",b.innerHTML="
      Press SHIFT to show/hide the menu. Scroll down in the menu for more hacks.",f.append(b);var v=document.createElement("h3");v.style.fontSize="20px",v.innerHTML="\n

      Join our Discord https://dsc.gg/ProdigyPNP!

      \n\n
      \n",v.style.color="white",f.append(v);class _{constructor(e,t,o){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),o&&this.setDesc(o)}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,n.saveCharacter)(),console.log("Triggered ".concat(t.name,"."))})),this}setDesc(e){return this.element.title=e,this.description=e,this}}t.Hack=_,t.Toggler=class extends _{constructor(e,t,o){var n;super(e,t,o),n=this,this.parent=e,this.element.setAttribute("status","false"),this.setClick(s((function*(){var e,t;n.status=!n.status,n.status?(localStorage.setItem(n.name,"true"),yield null===(e=n.enabled)||void 0===e?void 0:e.call(n)):(localStorage.setItem(n.name,"false"),yield null===(t=n.disabled)||void 0===t?void 0:t.call(n))})))}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:y("Player Hacks"),inventory:y("Inventory Hacks"),location:y("Location Hacks"),pets:y("Pet Hacks"),battle:y("Battle Hacks"),minigames:y("Minigame Hacks"),misc:y("Miscellaneous Hacks"),utility:y("Utility Hacks"),beta:y("Beta Testing | Beta Hacks may damage your account"),patched:y("Patched Hacks")},localStorage.hasTip?(0,l.IndexInfo)("Player already has tip."):(s((function*(){yield r.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,(0,l.IndexInfo)("Player was shown the tip.")),localStorage.getItem("level")&&(n._.player.getLevel=()=>localStorage.getItem("level"),(0,l.IndexInfo)("Loaded menu from localStorage."));var k=!0;document.addEventListener("keydown",(function(e){"Shift"==e.key&&((0,l.IndexInfo)("Shift key was pressed."),1==k?((0,l.IndexInfo)("Hiding cheat menu..."),document.getElementById("cheat-menu").style.display="none",document.getElementById("menu-toggler").style.display="none",k=!1,(0,l.IndexInfo)("Hidden cheat menu.")):((0,l.IndexInfo)("Showing cheat menu..."),document.getElementById("cheat-menu").style.display="block",document.getElementById("menu-toggler").style.display="block",k=!0,(0,l.IndexInfo)("Shown cheat menu.")))})),s((function*(){var e,t;(yield c.License.fire("ProdigyPNP",'\n

      \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 ')).value?yield(0,a.statusMessage)():(yield c.NoLicense.fire("ProdigyPNP License","\n

      \n You need to agree to our license to use our hacks. If you changed your mind and now agree to our license, reload Prodigy.\n

      \n ")).value?document.location="":(null===(e=document.getElementById("cheat-menu"))||void 0===e||e.remove(),null===(t=document.getElementById("menu-toggler"))||void 0===t||t.remove())}))()}.apply(t,n),void 0===a||(e.exports=a)},8238:(e,t,o)=>{var n,a;n=[o,t,o(9820)],a=function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stopFps=t.startFps=void 0;var n=document.createElement("button"),a=!1;t.startFps=function(){var e;a=!0,n.id="fps-counter",null===(e=o.wrapper)||void 0===e||e.prepend(n),setInterval((()=>{var e=_.player.game.fps._framerate;a?n.innerText=e.toFixed(2)+" FPS":n.remove()}),300)},t.stopFps=function(){var e;a=!1,null===(e=document.getElementById("fps-counter"))||void 0===e||e.remove()}}.apply(t,n),void 0===a||(e.exports=a)},112:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}n=[o,t,o(2852),o(4759)],a=function(e,t,o,n){"use strict";function a(e){o._.instance.prodigy.loading(!0);var t=t=>{var a=null!=t?t[e]:null;if(null!==a&&void 0!==a.house&&null!==a.house){o._.instance.prodigy.loading(!1);var r=o._.cloneDeep(o._.player.house);return r.setItems(a.house),void 0!==a.data.allowsHouseVisitors&&null!==a.data.allowsHouseVisitors&&a.data.allowsHouseVisitors?o._.instance.prodigy.world._("house",null,null,{house:r,getAllowsHouseVisitors:()=>void 0!==a.data.allowsHouseVisitors&&null!==a.data.allowsHouseVisitors&&a.data.allowsHouseVisitors,setAllowsHouseVisitors:e=>{a.data.allowsHouseVisitors=e}}):n.Swal.fire("Teleporting to ".concat(e," is not allowed."),"Try another user.","error")}};return o._.network.getCharData(e.toString(),["house","data"],t,t),n.Toast.fire("Teleported to house","You have been teleported to the house!","success")}Object.defineProperty(t,"__esModule",{value:!0}),t.getPet=t.teleportToHouse=t.toHouse=t.getMemberModule=t.runeify=t.itemify=t.ids=t.names=void 0,t.names=["Boots","Buddies","Fossils","Hats","Items","Key Items","Tower Town Frames","Tower Town Interiors","Mounts","Outfits","Relics","Weapons","Currencies"],t.ids=["boots","follow","fossil","hat","item","key","mathTownFrame","mathTownInterior","mount","outfit","spellRelic","weapon","currency"],t.itemify=(e,t)=>e.map((e=>({ID:e.ID,N:t}))).filter((e=>void 0!==e)),t.runeify=(e,t)=>e.map((e=>({ID:e.ID,quantity:t}))).filter((e=>void 0!==e)),t.getMemberModule=function(){return o._.player.hasMembership.toString().split('"')[1]},t.toHouse=function(e){if(o._.player.userID!==e){var t=o._.instance.prodigy.friendsListNetworkHandler.friendsList.length,r=o._.instance.prodigy.friendsListNetworkHandler.classList.length;o._.instance.prodigy.gameContainer.get("2e1-e659").create("house-visit","click","hub",t,r,null,null,e).broadcast()}var s=o._.instance.prodigy.world.getZone(o._.instance.prodigy.world.getCurrentZone());return s?s.handleLeaving(2,(()=>a(e))):n.Swal.fire({title:"Error",text:"You are not in a zone!",icon:"error"})},t.teleportToHouse=a;var s=function(){var e,t=(e=function*(e){return(yield n.Swal.fire({input:"select",inputOptions:new Map(o._.player.kennel.data.map(((e,t)=>{var n,a,r;return[t.toString(),"Level ".concat(e.level," - ").concat(null!==(n=null!==(a=e.nickname)&&void 0!==a?a:null===(r=o._.gameData.pet.find((t=>+t.ID==+e.ID)))||void 0===r?void 0:r.data.name)&&void 0!==n?n:"Unknown")]}))),title:"Choose Pet",text:e})).value},function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))});return function(e){return t.apply(this,arguments)}}();t.getPet=s}.apply(t,n),void 0===a||(e.exports=a)},2868:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}n=[o,t,o(2852),o(4759)],void 0===(a=function(e,t,o,n){"use strict";window.addEventListener("keydown",(e=>{switch(e.which){case 192:o._.instance.prodigy.open.menuCloseAll();break;case 220:var t=function(){var e,t=(e=function*(){if(!(yield n.Confirm.fire("Kit","Would you like to equip Celestial Gear?")).value)return console.log("Cancelled");o._.player.equipment.setHat(200),o._.player.equipment.setBoots(93),o._.player.equipment.setOutfit(161),o._.player.equipment.setWeapon(196),o._.player.appearanceChanged=!0,n.Toast.fire("Success!","You are now wearing Celestial Armor and wielding a Dual Blade.","success")},function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))});return function(){return t.apply(this,arguments)}}();t()}}))}.apply(t,n))||(e.exports=a)},4719:(e,t,o)=>{var n;n=function(e,t){"use strict";function o(e,o){return""==e||null==e?console.log("["+t.LogPrefix+":unknown] "+o):console.log("["+t.LogPrefix+":"+e+"] "+o)}function n(e,t,n){return o(t,"*"+e.toUpperCase()+"* "+n)}Object.defineProperty(t,"__esModule",{value:!0}),t.UtilityError=t.UtilitySuccess=t.UtilityInfo=t.PlayerError=t.PlayerSuccess=t.PlayerInfo=t.PetsError=t.PetsSuccess=t.PetsInfo=t.PatchedError=t.PatchedSuccess=t.PatchedInfo=t.MiscError=t.MiscSuccess=t.MiscInfo=t.MinigameError=t.MinigameSuccess=t.MinigameInfo=t.LocationError=t.LocationSuccess=t.LocationInfo=t.InventoryError=t.InventorySuccess=t.InventoryInfo=t.BetaError=t.BetaSuccess=t.BetaInfo=t.BattleError=t.BattleSuccess=t.BattleInfo=t.IndexError=t.IndexSuccess=t.IndexInfo=t.StatusLog=t.ConsoleLog=t.LogPrefix=void 0,t.LogPrefix="CheatGUI",t.ConsoleLog=o,t.StatusLog=n,t.IndexInfo=function(e){return n("info","index.ts",e)},t.IndexSuccess=function(e){return n("success","index.ts",e)},t.IndexError=function(e){return n("error","index.ts",e)},t.BattleInfo=function(e){return n("info","battle.ts",e)},t.BattleSuccess=function(e){return n("success","battle.ts",e)},t.BattleError=function(e){return n("error","battle.ts",e)},t.BetaInfo=function(e){return n("info","beta.ts",e)},t.BetaSuccess=function(e){return n("success","beta.ts",e)},t.BetaError=function(e){return n("error","beta.ts",e)},t.InventoryInfo=function(e){return n("info","inventory.ts",e)},t.InventorySuccess=function(e){return n("success","inventory.ts",e)},t.InventoryError=function(e){return n("error","inventory.ts",e)},t.LocationInfo=function(e){return n("info","location.ts",e)},t.LocationSuccess=function(e){return n("success","location.ts",e)},t.LocationError=function(e){return n("error","location.ts",e)},t.MinigameInfo=function(e){return n("info","minigame.ts",e)},t.MinigameSuccess=function(e){return n("success","minigame.ts",e)},t.MinigameError=function(e){return n("error","minigame.ts",e)},t.MiscInfo=function(e){return n("info","misc.ts",e)},t.MiscSuccess=function(e){return n("success","misc.ts",e)},t.MiscError=function(e){return n("error","misc.ts",e)},t.PatchedInfo=function(e){return n("info","patched.ts",e)},t.PatchedSuccess=function(e){return n("success","patched.ts",e)},t.PatchedError=function(e){return n("error","patched.ts",e)},t.PetsInfo=function(e){return n("info","pets.ts",e)},t.PetsSuccess=function(e){return n("success","pets.ts",e)},t.PetsError=function(e){return n("error","pets.ts",e)},t.PlayerInfo=function(e){return n("info","player.ts",e)},t.PlayerSuccess=function(e){return n("success","player.ts",e)},t.PlayerError=function(e){return n("error","player.ts",e)},t.UtilityInfo=function(e){return n("info","utility.ts",e)},t.UtilitySuccess=function(e){return n("success","utility.ts",e)},t.UtilityError=function(e){return n("error","utility.ts",e)}}.apply(t,[o,t]),void 0===n||(e.exports=n)},3131:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))}}n=[o,t,o(2852)],a=function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PopupInterval=void 0;var n=!1;t.PopupInterval=function(e){n=e},s((function*(){setInterval(s((function*(){n&&o._.instance.prodigy.open.menuCloseAll()})),200)}))()}.apply(t,n),void 0===a||(e.exports=a)},3526:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}n=[o,t,o(4759)],a=function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.statusMessage=void 0,t.statusMessage=function(){fetch("https://raw.githubusercontent.com/ProdigyPNP/ProdigyMathGameHacking/master/cheatGUI/statusmessage.json?updated=".concat(Date.now())).then((e=>e.json())).then(function(){var e,t=(e=function*(e){if(!1===e.enabled.value)return console.log("Status message is disabled.");yield o.Swal.fire({title:e.get("title"),html:e.get("html"),icon:e.get("icon")})},function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))});return function(e){return t.apply(this,arguments)}}())}}.apply(t,n),void 0===a||(e.exports=a)},4759:function(e,t,o){var n,a,r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};n=[o,t,o(6455)],a=function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NoLicense=t.License=t.Info=t.Confirm=t.Toast=t.NumberInput=t.Input=t.Swal=void 0,o=r(o),t.Swal=o.default,t.Input=t.Swal.mixin({input:"text",showCancelButton:!0,showConfirmButton:!0,toast:!1}),t.NumberInput=t.Input.mixin({toast:!1,input:"number"}),t.Toast=t.Swal.mixin({toast:!0,position:"bottom"}),t.Confirm=t.Swal.mixin({icon:"warning",showCancelButton:!0,toast:!1,confirmButtonText:"Confirm",cancelButtonText:"Cancel"}),t.Info=t.Swal.mixin({icon:"info",showCancelButton:!1,toast:!1}),t.License=t.Swal.mixin({icon:"info",showCancelButton:!0,toast:!1,confirmButtonText:"Agree",cancelButtonText:"Disagree"}),t.NoLicense=t.Swal.mixin({icon:"error",showCancelButton:!0,toast:!1,confirmButtonText:"Reload",cancelButtonText:"Play without hacks"})}.apply(t,n),void 0===a||(e.exports=a)},2852:(e,t,o)=>{var n;n=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.current=t.player=t._=void 0,t._=window._,t.player=t._.player,t.current=window.Boot.prototype.game._state._current;var o=t._.instance;t.game=o.game,t.prodigy=o.prodigy,t.gameData=t._.instance.game.state.states.get("Boot").gameData,t.getItem=(e,o)=>{var n;return null!==(n=t._.gameData[e].find((e=>e.ID===o)))&&void 0!==n?n: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,[o,t]),void 0===n||(e.exports=n)},450:(e,t,o)=>{"use strict";o.d(t,{Z:()=>i});var n=o(8081),a=o.n(n),r=o(3645),s=o.n(r)()(a());s.push([e.id,"@import url(https://fonts.googleapis.com/css?family=Arvo:400,700|Sen:400,700,800&display=swap&subset=latin-ext);"]),s.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;font-size:23px;height:26px;width:50px;border:1px solid rgba(0,0,0,.1)}#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 #fps-counter{z-index:2;position:absolute;border-radius:3px;background-color:rgba(255,255,255,.7333333333);transition:background-color .15s;width:130px;height:26px;font-size:23px;border:1px solid rgba(0,0,0,.1);margin-left:83%}#game-wrapper #fps-counter:hover{background-color:rgba(221,221,221,.7333333333)}#game-wrapper #fps-counter: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:rgba(0,0,0,.55);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;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 i=s},3645:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var o="",n=void 0!==t[5];return t[4]&&(o+="@supports (".concat(t[4],") {")),t[2]&&(o+="@media ".concat(t[2]," {")),n&&(o+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),o+=e(t),n&&(o+="}"),t[2]&&(o+="}"),t[4]&&(o+="}"),o})).join("")},t.i=function(e,o,n,a,r){"string"==typeof e&&(e=[[null,e,void 0]]);var s={};if(n)for(var i=0;i0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=r),o&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=o):u[2]=o),a&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=a):u[4]="".concat(a)),t.push(u))}},t}},8081:e=>{"use strict";e.exports=function(e){return e[1]}},1227:(e,t,o)=>{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 o="color: "+this.color;t.splice(1,0,o,"color: inherit");let n=0,a=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(n++,"%c"===e&&(a=n))})),t.splice(a,0,o)},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=o(2447)(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},2447:(e,t,o)=>{e.exports=function(e){function t(e){let o,a,r,s=null;function i(...e){if(!i.enabled)return;const n=i,a=Number(new Date),r=a-(o||a);n.diff=r,n.prev=o,n.curr=a,o=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,((o,a)=>{if("%%"===o)return"%";s++;const r=t.formatters[a];if("function"==typeof r){const t=e[s];o=r.call(n,t),e.splice(s,1),s--}return o})),t.formatArgs.call(n,e),(n.log||t.log).apply(n,e)}return i.namespace=e,i.useColors=t.useColors(),i.color=t.selectColor(e),i.extend=n,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 n(e,o){const n=t(this.namespace+(void 0===o?":":o)+e);return n.log=this.log,n}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 o;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const n=("string"==typeof e?e:"").split(/[\s,]+/),a=n.length;for(o=0;o{t[o]=e[o]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let o=0;for(let t=0;t{var t=1e3,o=60*t,n=60*o,a=24*n;function r(e,t,o,n){var a=t>=1.5*o;return Math.round(e/o)+" "+n+(a?"s":"")}e.exports=function(e,s){s=s||{};var i,c,l=typeof e;if("string"===l&&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*n;case"minutes":case"minute":case"mins":case"min":case"m":return s*o;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"===l&&isFinite(e))return s.long?(i=e,(c=Math.abs(i))>=a?r(i,c,a,"day"):c>=n?r(i,c,n,"hour"):c>=o?r(i,c,o,"minute"):c>=t?r(i,c,t,"second"):i+" ms"):function(e){var r=Math.abs(e);return r>=a?Math.round(e/a)+"d":r>=n?Math.round(e/n)+"h":r>=o?Math.round(e/o)+"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,o)=>{"use strict";o.r(t),o.d(t,{default:()=>y});var n=o(3379),a=o.n(n),r=o(7795),s=o.n(r),i=o(569),c=o.n(i),l=o(3565),u=o.n(l),d=o(9216),p=o.n(d),h=o(4589),m=o.n(h),f=o(450),g={};g.styleTagTransform=m(),g.setAttributes=u(),g.insert=c().bind(null,"head"),g.domAPI=s(),g.insertStyleElement=p(),a()(f.Z,g);const y=f.Z&&f.Z.locals?f.Z.locals:void 0},3379:e=>{"use strict";var t=[];function o(e){for(var o=-1,n=0;n{"use strict";var t={};e.exports=function(e,o){var n=function(e){if(void 0===t[e]){var o=document.querySelector(e);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(e){o=null}t[e]=o}return t[e]}(e);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(o)}},9216:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},3565:(e,t,o)=>{"use strict";e.exports=function(e){var t=o.nc;t&&e.setAttribute("nonce",t)}},7795:e=>{"use strict";e.exports=function(e){var t=e.insertStyleElement(e);return{update:function(o){!function(e,t,o){var n="";o.supports&&(n+="@supports (".concat(o.supports,") {")),o.media&&(n+="@media ".concat(o.media," {"));var a=void 0!==o.layer;a&&(n+="@layer".concat(o.layer.length>0?" ".concat(o.layer):""," {")),n+=o.css,a&&(n+="}"),o.media&&(n+="}"),o.supports&&(n+="}");var r=o.sourceMap;r&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(r))))," */")),t.styleTagTransform(n,e,t.options)}(t,e,o)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},4589:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},6455:function(e){e.exports=function(){"use strict";const e="SweetAlert2:",t=e=>e.charAt(0).toUpperCase()+e.slice(1),o=t=>{console.warn("".concat(e," ").concat("object"==typeof t?t.join(" "):t))},n=t=>{console.error("".concat(e," ").concat(t))},a=[],r=(e,t)=>{var n;n='"'.concat(e,'" is deprecated and will be removed in the next major release. Please use "').concat(t,'" instead.'),a.includes(n)||(a.push(n),o(n))},s=e=>"function"==typeof e?e():e,i=e=>e&&"function"==typeof e.toPromise,c=e=>i(e)?e.toPromise():Promise.resolve(e),l=e=>e&&Promise.resolve(e)===e,u={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,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",color:void 0,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,willOpen:void 0,didOpen:void 0,didRender:void 0,willClose:void 0,didClose:void 0,didDestroy:void 0,scrollbarPadding:!0},d=["allowEscapeKey","allowOutsideClick","background","buttonsStyling","cancelButtonAriaLabel","cancelButtonColor","cancelButtonText","closeButtonAriaLabel","closeButtonHtml","color","confirmButtonAriaLabel","confirmButtonColor","confirmButtonText","currentProgressStep","customClass","denyButtonAriaLabel","denyButtonColor","denyButtonText","didClose","didDestroy","footer","hideClass","html","icon","iconColor","iconHtml","imageAlt","imageHeight","imageUrl","imageWidth","preConfirm","preDeny","progressSteps","returnFocus","reverseButtons","showCancelButton","showCloseButton","showConfirmButton","showDenyButton","text","title","titleText","willClose"],p={},h=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],m=e=>Object.prototype.hasOwnProperty.call(u,e),f=e=>-1!==d.indexOf(e),g=e=>p[e],y=e=>{m(e)||o('Unknown parameter "'.concat(e,'"'))},w=e=>{h.includes(e)&&o('The parameter "'.concat(e,'" is incompatible with toasts'))},b=e=>{g(e)&&r(e,g(e))},v=e=>{const t={};for(const o in e)t[e[o]]="swal2-"+e[o];return t},_=v(["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","show","hide","close","title","html-container","actions","confirm","deny","cancel","default-outline","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","input-label","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loader","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error","no-war"]),k=v(["success","warning","info","question","error"]),C=()=>document.body.querySelector(".".concat(_.container)),x=e=>{const t=C();return t?t.querySelector(e):null},E=e=>x(".".concat(e)),S=()=>E(_.popup),T=()=>E(_.icon),P=()=>E(_.title),A=()=>E(_["html-container"]),I=()=>E(_.image),D=()=>E(_["progress-steps"]),B=()=>E(_["validation-message"]),O=()=>x(".".concat(_.actions," .").concat(_.confirm)),R=()=>x(".".concat(_.actions," .").concat(_.deny)),M=()=>x(".".concat(_.loader)),L=()=>x(".".concat(_.actions," .").concat(_.cancel)),N=()=>E(_.actions),j=()=>E(_.footer),H=()=>E(_["timer-progress-bar"]),F=()=>E(_.close),q=()=>{const e=Array.from(S().querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])')).sort(((e,t)=>{const o=parseInt(e.getAttribute("tabindex")),n=parseInt(t.getAttribute("tabindex"));return o>n?1:o"-1"!==e.getAttribute("tabindex")));return(e=>{const t=[];for(let o=0;ore(e)))},U=()=>G(document.body,_.shown)&&!G(document.body,_["toast-shown"])&&!G(document.body,_["no-backdrop"]),Y=()=>S()&&G(S(),_.toast),z={previousBodyPadding:null},W=(e,t)=>{if(e.textContent="",t){const o=(new DOMParser).parseFromString(t,"text/html");Array.from(o.querySelector("head").childNodes).forEach((t=>{e.appendChild(t)})),Array.from(o.querySelector("body").childNodes).forEach((t=>{e.appendChild(t)}))}},G=(e,t)=>{if(!t)return!1;const o=t.split(/\s+/);for(let t=0;t{if(((e,t)=>{Array.from(e.classList).forEach((o=>{Object.values(_).includes(o)||Object.values(k).includes(o)||Object.values(t.showClass).includes(o)||e.classList.remove(o)}))})(e,t),t.customClass&&t.customClass[n]){if("string"!=typeof t.customClass[n]&&!t.customClass[n].forEach)return o("Invalid type of customClass.".concat(n,'! Expected string or iterable object, got "').concat(typeof t.customClass[n],'"'));J(e,t.customClass[n])}},K=(e,t)=>{if(!t)return null;switch(t){case"select":case"textarea":case"file":return e.querySelector(".".concat(_.popup," > .").concat(_[t]));case"checkbox":return e.querySelector(".".concat(_.popup," > .").concat(_.checkbox," input"));case"radio":return e.querySelector(".".concat(_.popup," > .").concat(_.radio," input:checked"))||e.querySelector(".".concat(_.popup," > .").concat(_.radio," input:first-child"));case"range":return e.querySelector(".".concat(_.popup," > .").concat(_.range," input"));default:return e.querySelector(".".concat(_.popup," > .").concat(_.input))}},$=e=>{if(e.focus(),"file"!==e.type){const t=e.value;e.value="",e.value=t}},Z=(e,t,o)=>{e&&t&&("string"==typeof t&&(t=t.split(/\s+/).filter(Boolean)),t.forEach((t=>{Array.isArray(e)?e.forEach((e=>{o?e.classList.add(t):e.classList.remove(t)})):o?e.classList.add(t):e.classList.remove(t)})))},J=(e,t)=>{Z(e,t,!0)},X=(e,t)=>{Z(e,t,!1)},Q=(e,t)=>{const o=Array.from(e.children);for(let e=0;e{o==="".concat(parseInt(o))&&(o=parseInt(o)),o||0===parseInt(o)?e.style[t]="number"==typeof o?"".concat(o,"px"):o:e.style.removeProperty(t)},te=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"flex";e.style.display=t},oe=e=>{e.style.display="none"},ne=(e,t,o,n)=>{const a=e.querySelector(t);a&&(a.style[o]=n)},ae=function(e,t){t?te(e,arguments.length>2&&void 0!==arguments[2]?arguments[2]:"flex"):oe(e)},re=e=>!(!e||!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)),se=e=>!!(e.scrollHeight>e.clientHeight),ie=e=>{const t=window.getComputedStyle(e),o=parseFloat(t.getPropertyValue("animation-duration")||"0"),n=parseFloat(t.getPropertyValue("transition-duration")||"0");return o>0||n>0},ce=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const o=H();re(o)&&(t&&(o.style.transition="none",o.style.width="100%"),setTimeout((()=>{o.style.transition="width ".concat(e/1e3,"s linear"),o.style.width="0%"}),10))},le=()=>"undefined"==typeof window||"undefined"==typeof document,ue={},de=e=>new Promise((t=>{if(!e)return t();const o=window.scrollX,n=window.scrollY;ue.restoreFocusTimeout=setTimeout((()=>{ue.previousActiveElement instanceof HTMLElement?(ue.previousActiveElement.focus(),ue.previousActiveElement=null):document.body&&document.body.focus(),t()}),100),window.scrollTo(o,n)})),pe='\n
      \n \n
        \n
        \n \n

        \n
        \n \n \n
        \n \n \n
        \n \n
        \n \n \n
        \n
        \n
        \n \n \n \n
        \n
        \n
        \n
        \n
        \n
        \n').replace(/(^|\n)\s*/g,""),he=()=>{ue.currentInstance.resetValidationMessage()},me=e=>{const t=(()=>{const e=C();return!!e&&(e.remove(),X([document.documentElement,document.body],[_["no-backdrop"],_["toast-shown"],_["has-column"]]),!0)})();if(le())return void n("SweetAlert2 requires document to initialize");const o=document.createElement("div");o.className=_.container,t&&J(o,_["no-transition"]),W(o,pe);const a="string"==typeof(r=e.target)?document.querySelector(r):r;var r;a.appendChild(o),(e=>{const t=S();t.setAttribute("role",e.toast?"alert":"dialog"),t.setAttribute("aria-live",e.toast?"polite":"assertive"),e.toast||t.setAttribute("aria-modal","true")})(e),(e=>{"rtl"===window.getComputedStyle(e).direction&&J(C(),_.rtl)})(a),(()=>{const e=S(),t=Q(e,_.input),o=Q(e,_.file),n=e.querySelector(".".concat(_.range," input")),a=e.querySelector(".".concat(_.range," output")),r=Q(e,_.select),s=e.querySelector(".".concat(_.checkbox," input")),i=Q(e,_.textarea);t.oninput=he,o.onchange=he,r.onchange=he,s.onchange=he,i.oninput=he,n.oninput=()=>{he(),a.value=n.value},n.onchange=()=>{he(),a.value=n.value}})()},fe=(e,t)=>{e instanceof HTMLElement?t.appendChild(e):"object"==typeof e?ge(e,t):e&&W(t,e)},ge=(e,t)=>{e.jquery?ye(t,e):W(t,e.toString())},ye=(e,t)=>{if(e.textContent="",0 in t)for(let o=0;o in t;o++)e.appendChild(t[o].cloneNode(!0));else e.appendChild(t.cloneNode(!0))},we=(()=>{if(le())return!1;const e=document.createElement("div"),t={WebkitAnimation:"webkitAnimationEnd",animation:"animationend"};for(const o in t)if(Object.prototype.hasOwnProperty.call(t,o)&&void 0!==e.style[o])return t[o];return!1})(),be=(e,t)=>{const o=N(),n=M();t.showConfirmButton||t.showDenyButton||t.showCancelButton?te(o):oe(o),V(o,t,"actions"),function(e,t,o){const n=O(),a=R(),r=L();ve(n,"confirm",o),ve(a,"deny",o),ve(r,"cancel",o),function(e,t,o,n){if(!n.buttonsStyling)return X([e,t,o],_.styled);J([e,t,o],_.styled),n.confirmButtonColor&&(e.style.backgroundColor=n.confirmButtonColor,J(e,_["default-outline"])),n.denyButtonColor&&(t.style.backgroundColor=n.denyButtonColor,J(t,_["default-outline"])),n.cancelButtonColor&&(o.style.backgroundColor=n.cancelButtonColor,J(o,_["default-outline"]))}(n,a,r,o),o.reverseButtons&&(o.toast?(e.insertBefore(r,n),e.insertBefore(a,n)):(e.insertBefore(r,t),e.insertBefore(a,t),e.insertBefore(n,t)))}(o,n,t),W(n,t.loaderHtml),V(n,t,"loader")};function ve(e,o,n){ae(e,n["show".concat(t(o),"Button")],"inline-block"),W(e,n["".concat(o,"ButtonText")]),e.setAttribute("aria-label",n["".concat(o,"ButtonAriaLabel")]),e.className=_[o],V(e,n,"".concat(o,"Button")),J(e,n["".concat(o,"ButtonClass")])}const _e=(e,t)=>{const n=C();n&&(function(e,t){"string"==typeof t?e.style.background=t:t||J([document.documentElement,document.body],_["no-backdrop"])}(n,t.backdrop),function(e,t){t in _?J(e,_[t]):(o('The "position" parameter is not valid, defaulting to "center"'),J(e,_.center))}(n,t.position),function(e,t){if(t&&"string"==typeof t){const o="grow-".concat(t);o in _&&J(e,_[o])}}(n,t.grow),V(n,t,"container"))};var ke={awaitingPromise:new WeakMap,promise:new WeakMap,innerParams:new WeakMap,domCache:new WeakMap};const Ce=["input","file","range","select","radio","checkbox","textarea"],xe=e=>{if(!De[e.input])return n('Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "'.concat(e.input,'"'));const t=Ae(e.input),o=De[e.input](t,e);te(t),setTimeout((()=>{$(o)}))},Ee=(e,t)=>{const o=K(S(),e);if(o){(e=>{for(let t=0;t{const t=Ae(e.input);"object"==typeof e.customClass&&J(t,e.customClass.input)},Te=(e,t)=>{e.placeholder&&!t.inputPlaceholder||(e.placeholder=t.inputPlaceholder)},Pe=(e,t,o)=>{if(o.inputLabel){e.id=_.input;const n=document.createElement("label"),a=_["input-label"];n.setAttribute("for",e.id),n.className=a,"object"==typeof o.customClass&&J(n,o.customClass.inputLabel),n.innerText=o.inputLabel,t.insertAdjacentElement("beforebegin",n)}},Ae=e=>Q(S(),_[e]||_.input),Ie=(e,t)=>{["string","number"].includes(typeof t)?e.value="".concat(t):l(t)||o('Unexpected type of inputValue! Expected "string", "number" or "Promise", got "'.concat(typeof t,'"'))},De={};De.text=De.email=De.password=De.number=De.tel=De.url=(e,t)=>(Ie(e,t.inputValue),Pe(e,e,t),Te(e,t),e.type=t.input,e),De.file=(e,t)=>(Pe(e,e,t),Te(e,t),e),De.range=(e,t)=>{const o=e.querySelector("input"),n=e.querySelector("output");return Ie(o,t.inputValue),o.type=t.input,Ie(n,t.inputValue),Pe(o,e,t),e},De.select=(e,t)=>{if(e.textContent="",t.inputPlaceholder){const o=document.createElement("option");W(o,t.inputPlaceholder),o.value="",o.disabled=!0,o.selected=!0,e.appendChild(o)}return Pe(e,e,t),e},De.radio=e=>(e.textContent="",e),De.checkbox=(e,t)=>{const o=K(S(),"checkbox");o.value="1",o.id=_.checkbox,o.checked=Boolean(t.inputValue);const n=e.querySelector("span");return W(n,t.inputPlaceholder),o},De.textarea=(e,t)=>{Ie(e,t.inputValue),Te(e,t),Pe(e,e,t);return setTimeout((()=>{if("MutationObserver"in window){const t=parseInt(window.getComputedStyle(S()).width);new MutationObserver((()=>{const o=e.offsetWidth+(n=e,parseInt(window.getComputedStyle(n).marginLeft)+parseInt(window.getComputedStyle(n).marginRight));var n;S().style.width=o>t?"".concat(o,"px"):null})).observe(e,{attributes:!0,attributeFilter:["style"]})}})),e};const Be=(e,t)=>{const o=A();V(o,t,"htmlContainer"),t.html?(fe(t.html,o),te(o,"block")):t.text?(o.textContent=t.text,te(o,"block")):oe(o),((e,t)=>{const o=S(),n=ke.innerParams.get(e),a=!n||t.input!==n.input;Ce.forEach((e=>{const n=Q(o,_[e]);Ee(e,t.inputAttributes),n.className=_[e],a&&oe(n)})),t.input&&(a&&xe(t),Se(t))})(e,t)},Oe=(e,t)=>{for(const o in k)t.icon!==o&&X(e,k[o]);J(e,k[t.icon]),Le(e,t),Re(),V(e,t,"icon")},Re=()=>{const e=S(),t=window.getComputedStyle(e).getPropertyValue("background-color"),o=e.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");for(let e=0;e{let o,n=e.innerHTML;t.iconHtml?o=Ne(t.iconHtml):"success"===t.icon?(o='\n
        \n \n
        \n
        \n',n=n.replace(/ style=".*?"/g,"")):o="error"===t.icon?'\n \n \n \n \n':Ne({question:"?",warning:"!",info:"i"}[t.icon]),n.trim()!==o.trim()&&W(e,o)},Le=(e,t)=>{if(t.iconColor){e.style.color=t.iconColor,e.style.borderColor=t.iconColor;for(const o of[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"])ne(e,o,"backgroundColor",t.iconColor);ne(e,".swal2-success-ring","borderColor",t.iconColor)}},Ne=e=>'
        ').concat(e,"
        "),je=e=>{const t=document.createElement("li");return J(t,_["progress-step"]),W(t,e),t},He=e=>{const t=document.createElement("li");return J(t,_["progress-step-line"]),e.progressStepsDistance&&ee(t,"width",e.progressStepsDistance),t},Fe=(e,t)=>{e.className="".concat(_.popup," ").concat(re(e)?t.showClass.popup:""),t.toast?(J([document.documentElement,document.body],_["toast-shown"]),J(e,_.toast)):J(e,_.modal),V(e,t,"popup"),"string"==typeof t.customClass&&J(e,t.customClass),t.icon&&J(e,_["icon-".concat(t.icon)])},qe=(e,t)=>{((e,t)=>{const o=C(),n=S();t.toast?(ee(o,"width",t.width),n.style.width="100%",n.insertBefore(M(),T())):ee(n,"width",t.width),ee(n,"padding",t.padding),t.color&&(n.style.color=t.color),t.background&&(n.style.background=t.background),oe(B()),Fe(n,t)})(0,t),_e(0,t),((e,t)=>{const n=D();if(!t.progressSteps||0===t.progressSteps.length)return oe(n);te(n),n.textContent="",t.currentProgressStep>=t.progressSteps.length&&o("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),t.progressSteps.forEach(((e,o)=>{const a=je(e);if(n.appendChild(a),o===t.currentProgressStep&&J(a,_["active-progress-step"]),o!==t.progressSteps.length-1){const e=He(t);n.appendChild(e)}}))})(0,t),((e,t)=>{const o=ke.innerParams.get(e),a=T();if(o&&t.icon===o.icon)return Me(a,t),void Oe(a,t);if(t.icon||t.iconHtml){if(t.icon&&-1===Object.keys(k).indexOf(t.icon))return n('Unknown icon! Expected "success", "error", "warning", "info" or "question", got "'.concat(t.icon,'"')),void oe(a);te(a),Me(a,t),Oe(a,t),J(a,t.showClass.icon)}else oe(a)})(e,t),((e,t)=>{const o=I();if(!t.imageUrl)return oe(o);te(o,""),o.setAttribute("src",t.imageUrl),o.setAttribute("alt",t.imageAlt),ee(o,"width",t.imageWidth),ee(o,"height",t.imageHeight),o.className=_.image,V(o,t,"image")})(0,t),((e,t)=>{const o=P();ae(o,t.title||t.titleText,"block"),t.title&&fe(t.title,o),t.titleText&&(o.innerText=t.titleText),V(o,t,"title")})(0,t),((e,t)=>{const o=F();W(o,t.closeButtonHtml),V(o,t,"closeButton"),ae(o,t.showCloseButton),o.setAttribute("aria-label",t.closeButtonAriaLabel)})(0,t),Be(e,t),be(0,t),((e,t)=>{const o=j();ae(o,t.footer),t.footer&&fe(t.footer,o),V(o,t,"footer")})(0,t),"function"==typeof t.didRender&&t.didRender(S())},Ue=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),Ye=()=>{Array.from(document.body.children).forEach((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")}))},ze=["swal-title","swal-html","swal-footer"],We=e=>{const t={};return Array.from(e.querySelectorAll("swal-param")).forEach((e=>{Xe(e,["name","value"]);const o=e.getAttribute("name"),n=e.getAttribute("value");"boolean"==typeof u[o]&&"false"===n&&(t[o]=!1),"object"==typeof u[o]&&(t[o]=JSON.parse(n))})),t},Ge=e=>{const o={};return Array.from(e.querySelectorAll("swal-button")).forEach((e=>{Xe(e,["type","color","aria-label"]);const n=e.getAttribute("type");o["".concat(n,"ButtonText")]=e.innerHTML,o["show".concat(t(n),"Button")]=!0,e.hasAttribute("color")&&(o["".concat(n,"ButtonColor")]=e.getAttribute("color")),e.hasAttribute("aria-label")&&(o["".concat(n,"ButtonAriaLabel")]=e.getAttribute("aria-label"))})),o},Ve=e=>{const t={},o=e.querySelector("swal-image");return o&&(Xe(o,["src","width","height","alt"]),o.hasAttribute("src")&&(t.imageUrl=o.getAttribute("src")),o.hasAttribute("width")&&(t.imageWidth=o.getAttribute("width")),o.hasAttribute("height")&&(t.imageHeight=o.getAttribute("height")),o.hasAttribute("alt")&&(t.imageAlt=o.getAttribute("alt"))),t},Ke=e=>{const t={},o=e.querySelector("swal-icon");return o&&(Xe(o,["type","color"]),o.hasAttribute("type")&&(t.icon=o.getAttribute("type")),o.hasAttribute("color")&&(t.iconColor=o.getAttribute("color")),t.iconHtml=o.innerHTML),t},$e=e=>{const t={},o=e.querySelector("swal-input");o&&(Xe(o,["type","label","placeholder","value"]),t.input=o.getAttribute("type")||"text",o.hasAttribute("label")&&(t.inputLabel=o.getAttribute("label")),o.hasAttribute("placeholder")&&(t.inputPlaceholder=o.getAttribute("placeholder")),o.hasAttribute("value")&&(t.inputValue=o.getAttribute("value")));const n=Array.from(e.querySelectorAll("swal-input-option"));return n.length&&(t.inputOptions={},n.forEach((e=>{Xe(e,["value"]);const o=e.getAttribute("value"),n=e.innerHTML;t.inputOptions[o]=n}))),t},Ze=(e,t)=>{const o={};for(const n in t){const a=t[n],r=e.querySelector(a);r&&(Xe(r,[]),o[a.replace(/^swal-/,"")]=r.innerHTML.trim())}return o},Je=e=>{const t=ze.concat(["swal-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Array.from(e.children).forEach((e=>{const n=e.tagName.toLowerCase();-1===t.indexOf(n)&&o("Unrecognized element <".concat(n,">"))}))},Xe=(e,t)=>{Array.from(e.attributes).forEach((n=>{-1===t.indexOf(n.name)&&o(['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.")])}))};var Qe={email:(e,t)=>/^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]{2,24}$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid email address"),url:(e,t)=>/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid URL")};function et(e){(function(e){e.inputValidator||Object.keys(Qe).forEach((t=>{e.input===t&&(e.inputValidator=Qe[t])}))})(e),e.showLoaderOnConfirm&&!e.preConfirm&&o("showLoaderOnConfirm is set to true, but preConfirm is not defined.\nshowLoaderOnConfirm should be used together with preConfirm, see usage example:\nhttps://sweetalert2.github.io/#ajax-request"),function(e){(!e.target||"string"==typeof e.target&&!document.querySelector(e.target)||"string"!=typeof e.target&&!e.target.appendChild)&&(o('Target parameter is not valid, defaulting to "body"'),e.target="body")}(e),"string"==typeof e.title&&(e.title=e.title.split("\n").join("
        ")),me(e)}class tt{constructor(e,t){this.callback=e,this.remaining=t,this.running=!1,this.start()}start(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}stop(){return this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=(new Date).getTime()-this.started.getTime()),this.remaining}increase(e){const t=this.running;return t&&this.stop(),this.remaining+=e,t&&this.start(),this.remaining}getTimerLeft(){return this.running&&(this.stop(),this.start()),this.remaining}isRunning(){return this.running}}const ot=()=>{null===z.previousBodyPadding&&document.body.scrollHeight>window.innerHeight&&(z.previousBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight="".concat(z.previousBodyPadding+(()=>{const e=document.createElement("div");e.className=_["scrollbar-measure"],document.body.appendChild(e);const t=e.getBoundingClientRect().width-e.clientWidth;return document.body.removeChild(e),t})(),"px"))},nt=()=>{const e=navigator.userAgent,t=!!e.match(/iPad/i)||!!e.match(/iPhone/i),o=!!e.match(/WebKit/i);if(t&&o&&!e.match(/CriOS/i)){const e=44;S().scrollHeight>window.innerHeight-e&&(C().style.paddingBottom="".concat(e,"px"))}},at=()=>{const e=C();let t;e.ontouchstart=e=>{t=rt(e)},e.ontouchmove=e=>{t&&(e.preventDefault(),e.stopPropagation())}},rt=e=>{const t=e.target,o=C();return!(st(e)||it(e)||t!==o&&(se(o)||"INPUT"===t.tagName||"TEXTAREA"===t.tagName||se(A())&&A().contains(t)))},st=e=>e.touches&&e.touches.length&&"stylus"===e.touches[0].touchType,it=e=>e.touches&&e.touches.length>1,ct=e=>{const t=C(),o=S();"function"==typeof e.willOpen&&e.willOpen(o);const n=window.getComputedStyle(document.body).overflowY;pt(t,o,e),setTimeout((()=>{ut(t,o)}),10),U()&&(dt(t,e.scrollbarPadding,n),Array.from(document.body.children).forEach((e=>{e===C()||e.contains(C())||(e.hasAttribute("aria-hidden")&&e.setAttribute("data-previous-aria-hidden",e.getAttribute("aria-hidden")),e.setAttribute("aria-hidden","true"))}))),Y()||ue.previousActiveElement||(ue.previousActiveElement=document.activeElement),"function"==typeof e.didOpen&&setTimeout((()=>e.didOpen(o))),X(t,_["no-transition"])},lt=e=>{const t=S();if(e.target!==t)return;const o=C();t.removeEventListener(we,lt),o.style.overflowY="auto"},ut=(e,t)=>{we&&ie(t)?(e.style.overflowY="hidden",t.addEventListener(we,lt)):e.style.overflowY="auto"},dt=(e,t,o)=>{(()=>{if((/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)&&!G(document.body,_.iosfix)){const e=document.body.scrollTop;document.body.style.top="".concat(-1*e,"px"),J(document.body,_.iosfix),at(),nt()}})(),t&&"hidden"!==o&&ot(),setTimeout((()=>{e.scrollTop=0}))},pt=(e,t,o)=>{J(e,o.showClass.backdrop),t.style.setProperty("opacity","0","important"),te(t,"grid"),setTimeout((()=>{J(t,o.showClass.popup),t.style.removeProperty("opacity")}),10),J([document.documentElement,document.body],_.shown),o.heightAuto&&o.backdrop&&!o.toast&&J([document.documentElement,document.body],_["height-auto"])},ht=e=>{let t=S();t||new To,t=S();const o=M();Y()?oe(T()):mt(t,e),te(o),t.setAttribute("data-loading","true"),t.setAttribute("aria-busy","true"),t.focus()},mt=(e,t)=>{const o=N(),n=M();!t&&re(O())&&(t=O()),te(o),t&&(oe(t),n.setAttribute("data-button-to-replace",t.className)),n.parentNode.insertBefore(n,t),J([e,o],_.loading)},ft=e=>e.checked?1:0,gt=e=>e.checked?e.value:null,yt=e=>e.files.length?null!==e.getAttribute("multiple")?e.files:e.files[0]:null,wt=(e,t)=>{const o=S(),a=e=>vt[t.input](o,_t(e),t);i(t.inputOptions)||l(t.inputOptions)?(ht(O()),c(t.inputOptions).then((t=>{e.hideLoading(),a(t)}))):"object"==typeof t.inputOptions?a(t.inputOptions):n("Unexpected type of inputOptions! Expected object, Map or Promise, got ".concat(typeof t.inputOptions))},bt=(e,t)=>{const o=e.getInput();oe(o),c(t.inputValue).then((n=>{o.value="number"===t.input?parseFloat(n)||0:"".concat(n),te(o),o.focus(),e.hideLoading()})).catch((t=>{n("Error in inputValue promise: ".concat(t)),o.value="",te(o),o.focus(),e.hideLoading()}))},vt={select:(e,t,o)=>{const n=Q(e,_.select),a=(e,t,n)=>{const a=document.createElement("option");a.value=n,W(a,t),a.selected=kt(n,o.inputValue),e.appendChild(a)};t.forEach((e=>{const t=e[0],o=e[1];if(Array.isArray(o)){const e=document.createElement("optgroup");e.label=t,e.disabled=!1,n.appendChild(e),o.forEach((t=>a(e,t[1],t[0])))}else a(n,o,t)})),n.focus()},radio:(e,t,o)=>{const n=Q(e,_.radio);t.forEach((e=>{const t=e[0],a=e[1],r=document.createElement("input"),s=document.createElement("label");r.type="radio",r.name=_.radio,r.value=t,kt(t,o.inputValue)&&(r.checked=!0);const i=document.createElement("span");W(i,a),i.className=_.label,s.appendChild(r),s.appendChild(i),n.appendChild(s)}));const a=n.querySelectorAll("input");a.length&&a[0].focus()}},_t=e=>{const t=[];return"undefined"!=typeof Map&&e instanceof Map?e.forEach(((e,o)=>{let n=e;"object"==typeof n&&(n=_t(n)),t.push([o,n])})):Object.keys(e).forEach((o=>{let n=e[o];"object"==typeof n&&(n=_t(n)),t.push([o,n])})),t},kt=(e,t)=>t&&t.toString()===e.toString();function Ct(){const e=ke.innerParams.get(this);if(!e)return;const t=ke.domCache.get(this);oe(t.loader),Y()?e.icon&&te(T()):xt(t),X([t.popup,t.actions],_.loading),t.popup.removeAttribute("aria-busy"),t.popup.removeAttribute("data-loading"),t.confirmButton.disabled=!1,t.denyButton.disabled=!1,t.cancelButton.disabled=!1}const xt=e=>{const t=e.popup.getElementsByClassName(e.loader.getAttribute("data-button-to-replace"));t.length?te(t[0],"inline-block"):!re(O())&&!re(R())&&!re(L())&&oe(e.actions)};var Et={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};const St=()=>O()&&O().click(),Tt=e=>{e.keydownTarget&&e.keydownHandlerAdded&&(e.keydownTarget.removeEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!1)},Pt=(e,t,o)=>{const n=q();if(n.length)return(t+=o)===n.length?t=0:-1===t&&(t=n.length-1),n[t].focus();S().focus()},At=["ArrowRight","ArrowDown"],It=["ArrowLeft","ArrowUp"],Dt=(e,t,o)=>{const n=ke.innerParams.get(e);n&&(t.isComposing||229===t.keyCode||(n.stopKeydownPropagation&&t.stopPropagation(),"Enter"===t.key?Bt(e,t,n):"Tab"===t.key?Ot(t,n):[...At,...It].includes(t.key)?Rt(t.key):"Escape"===t.key&&Mt(t,n,o)))},Bt=(e,t,o)=>{if(s(o.allowEnterKey)&&t.target&&e.getInput()&&t.target instanceof HTMLElement&&t.target.outerHTML===e.getInput().outerHTML){if(["textarea","file"].includes(o.input))return;St(),t.preventDefault()}},Ot=(e,t)=>{const o=e.target,n=q();let a=-1;for(let e=0;e{const t=O(),o=R(),n=L();if(document.activeElement instanceof HTMLElement&&![t,o,n].includes(document.activeElement))return;const a=At.includes(e)?"nextElementSibling":"previousElementSibling";let r=document.activeElement;for(let e=0;e{s(t.allowEscapeKey)&&(e.preventDefault(),o(Ue.esc))};function Lt(e,t,o,n){Y()?Yt(e,n):(de(o).then((()=>Yt(e,n))),Tt(ue)),/^((?!chrome|android).)*safari/i.test(navigator.userAgent)?(t.setAttribute("style","display:none !important"),t.removeAttribute("class"),t.innerHTML=""):t.remove(),U()&&(null!==z.previousBodyPadding&&(document.body.style.paddingRight="".concat(z.previousBodyPadding,"px"),z.previousBodyPadding=null),(()=>{if(G(document.body,_.iosfix)){const e=parseInt(document.body.style.top,10);X(document.body,_.iosfix),document.body.style.top="",document.body.scrollTop=-1*e}})(),Ye()),X([document.documentElement,document.body],[_.shown,_["height-auto"],_["no-backdrop"],_["toast-shown"]])}function Nt(e){e=Ft(e);const t=Et.swalPromiseResolve.get(this),o=jt(this);this.isAwaitingPromise()?e.isDismissed||(Ht(this),t(e)):o&&t(e)}const jt=e=>{const t=S();if(!t)return!1;const o=ke.innerParams.get(e);if(!o||G(t,o.hideClass.popup))return!1;X(t,o.showClass.popup),J(t,o.hideClass.popup);const n=C();return X(n,o.showClass.backdrop),J(n,o.hideClass.backdrop),qt(e,t,o),!0};const Ht=e=>{e.isAwaitingPromise()&&(ke.awaitingPromise.delete(e),ke.innerParams.get(e)||e._destroy())},Ft=e=>void 0===e?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},e),qt=(e,t,o)=>{const n=C(),a=we&&ie(t);"function"==typeof o.willClose&&o.willClose(t),a?Ut(e,t,n,o.returnFocus,o.didClose):Lt(e,n,o.returnFocus,o.didClose)},Ut=(e,t,o,n,a)=>{ue.swalCloseEventFinishedCallback=Lt.bind(null,e,o,n,a),t.addEventListener(we,(function(e){e.target===t&&(ue.swalCloseEventFinishedCallback(),delete ue.swalCloseEventFinishedCallback)}))},Yt=(e,t)=>{setTimeout((()=>{"function"==typeof t&&t.bind(e.params)(),e._destroy()}))};function zt(e,t,o){const n=ke.domCache.get(e);t.forEach((e=>{n[e].disabled=o}))}function Wt(e,t){if(!e)return!1;if("radio"===e.type){const o=e.parentNode.parentNode.querySelectorAll("input");for(let e=0;e{const t={};return Object.keys(e).forEach((n=>{f(n)?t[n]=e[n]:o("Invalid parameter to update: ".concat(n))})),t};const Vt=e=>{Kt(e),delete e.params,delete ue.keydownHandler,delete ue.keydownTarget,delete ue.currentInstance},Kt=e=>{e.isAwaitingPromise()?($t(ke,e),ke.awaitingPromise.set(e,!0)):($t(Et,e),$t(ke,e))},$t=(e,t)=>{for(const o in e)e[o].delete(t)};var Zt=Object.freeze({hideLoading:Ct,disableLoading:Ct,getInput:function(e){const t=ke.innerParams.get(e||this),o=ke.domCache.get(e||this);return o?K(o.popup,t.input):null},close:Nt,isAwaitingPromise:function(){return!!ke.awaitingPromise.get(this)},rejectPromise:function(e){const t=Et.swalPromiseReject.get(this);Ht(this),t&&t(e)},handleAwaitingPromise:Ht,closePopup:Nt,closeModal:Nt,closeToast:Nt,enableButtons:function(){zt(this,["confirmButton","denyButton","cancelButton"],!1)},disableButtons:function(){zt(this,["confirmButton","denyButton","cancelButton"],!0)},enableInput:function(){return Wt(this.getInput(),!1)},disableInput:function(){return Wt(this.getInput(),!0)},showValidationMessage:function(e){const t=ke.domCache.get(this),o=ke.innerParams.get(this);W(t.validationMessage,e),t.validationMessage.className=_["validation-message"],o.customClass&&o.customClass.validationMessage&&J(t.validationMessage,o.customClass.validationMessage),te(t.validationMessage);const n=this.getInput();n&&(n.setAttribute("aria-invalid",!0),n.setAttribute("aria-describedby",_["validation-message"]),$(n),J(n,_.inputerror))},resetValidationMessage:function(){const e=ke.domCache.get(this);e.validationMessage&&oe(e.validationMessage);const t=this.getInput();t&&(t.removeAttribute("aria-invalid"),t.removeAttribute("aria-describedby"),X(t,_.inputerror))},getProgressSteps:function(){return ke.domCache.get(this).progressSteps},update:function(e){const t=S(),n=ke.innerParams.get(this);if(!t||G(t,n.hideClass.popup))return o("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.");const a=Gt(e),r=Object.assign({},n,a);qe(this,r),ke.innerParams.set(this,r),Object.defineProperties(this,{params:{value:Object.assign({},this.params,e),writable:!1,enumerable:!0}})},_destroy:function(){const e=ke.domCache.get(this),t=ke.innerParams.get(this);t?(e.popup&&ue.swalCloseEventFinishedCallback&&(ue.swalCloseEventFinishedCallback(),delete ue.swalCloseEventFinishedCallback),"function"==typeof t.didDestroy&&t.didDestroy(),Vt(this)):Kt(this)}});const Jt=(e,o)=>{const a=ke.innerParams.get(e);if(!a.input)return void n('The "input" parameter is needed to be set when using returnInputValueOn'.concat(t(o)));const r=((e,t)=>{const o=e.getInput();if(!o)return null;switch(t.input){case"checkbox":return ft(o);case"radio":return gt(o);case"file":return yt(o);default:return t.inputAutoTrim?o.value.trim():o.value}})(e,a);a.inputValidator?Xt(e,r,o):e.getInput().checkValidity()?"deny"===o?Qt(e,r):oo(e,r):(e.enableButtons(),e.showValidationMessage(a.validationMessage))},Xt=(e,t,o)=>{const n=ke.innerParams.get(e);e.disableInput(),Promise.resolve().then((()=>c(n.inputValidator(t,n.validationMessage)))).then((n=>{e.enableButtons(),e.enableInput(),n?e.showValidationMessage(n):"deny"===o?Qt(e,t):oo(e,t)}))},Qt=(e,t)=>{const o=ke.innerParams.get(e||void 0);o.showLoaderOnDeny&&ht(R()),o.preDeny?(ke.awaitingPromise.set(e||void 0,!0),Promise.resolve().then((()=>c(o.preDeny(t,o.validationMessage)))).then((o=>{!1===o?(e.hideLoading(),Ht(e)):e.close({isDenied:!0,value:void 0===o?t:o})})).catch((t=>to(e||void 0,t)))):e.close({isDenied:!0,value:t})},eo=(e,t)=>{e.close({isConfirmed:!0,value:t})},to=(e,t)=>{e.rejectPromise(t)},oo=(e,t)=>{const o=ke.innerParams.get(e||void 0);o.showLoaderOnConfirm&&ht(),o.preConfirm?(e.resetValidationMessage(),ke.awaitingPromise.set(e||void 0,!0),Promise.resolve().then((()=>c(o.preConfirm(t,o.validationMessage)))).then((o=>{re(B())||!1===o?(e.hideLoading(),Ht(e)):eo(e,void 0===o?t:o)})).catch((t=>to(e||void 0,t)))):eo(e,t)},no=(e,t,o)=>{t.popup.onclick=()=>{const t=ke.innerParams.get(e);t&&(ao(t)||t.timer||t.input)||o(Ue.close)}},ao=e=>e.showConfirmButton||e.showDenyButton||e.showCancelButton||e.showCloseButton;let ro=!1;const so=e=>{e.popup.onmousedown=()=>{e.container.onmouseup=function(t){e.container.onmouseup=void 0,t.target===e.container&&(ro=!0)}}},io=e=>{e.container.onmousedown=()=>{e.popup.onmouseup=function(t){e.popup.onmouseup=void 0,(t.target===e.popup||e.popup.contains(t.target))&&(ro=!0)}}},co=(e,t,o)=>{t.container.onclick=n=>{const a=ke.innerParams.get(e);ro?ro=!1:n.target===t.container&&s(a.allowOutsideClick)&&o(Ue.backdrop)}},lo=e=>e instanceof Element||(e=>"object"==typeof e&&e.jquery)(e);const uo=()=>{if(ue.timeout)return(()=>{const e=H(),t=parseInt(window.getComputedStyle(e).width);e.style.removeProperty("transition"),e.style.width="100%";const o=t/parseInt(window.getComputedStyle(e).width)*100;e.style.removeProperty("transition"),e.style.width="".concat(o,"%")})(),ue.timeout.stop()},po=()=>{if(ue.timeout){const e=ue.timeout.start();return ce(e),e}};let ho=!1;const mo={};const fo=e=>{for(let t=e.target;t&&t!==document;t=t.parentNode)for(const e in mo){const o=t.getAttribute(e);if(o)return void mo[e].fire({template:o})}};var go=Object.freeze({isValidParameter:m,isUpdatableParameter:f,isDeprecatedParameter:g,argsToParams:e=>{const t={};return"object"!=typeof e[0]||lo(e[0])?["title","html","icon"].forEach(((o,a)=>{const r=e[a];"string"==typeof r||lo(r)?t[o]=r:void 0!==r&&n("Unexpected type of ".concat(o,'! Expected "string" or "Element", got ').concat(typeof r))})):Object.assign(t,e[0]),t},isVisible:()=>re(S()),clickConfirm:St,clickDeny:()=>R()&&R().click(),clickCancel:()=>L()&&L().click(),getContainer:C,getPopup:S,getTitle:P,getHtmlContainer:A,getImage:I,getIcon:T,getInputLabel:()=>E(_["input-label"]),getCloseButton:F,getActions:N,getConfirmButton:O,getDenyButton:R,getCancelButton:L,getLoader:M,getFooter:j,getTimerProgressBar:H,getFocusableElements:q,getValidationMessage:B,isLoading:()=>S().hasAttribute("data-loading"),fire:function(){const e=this;for(var t=arguments.length,o=new Array(t),n=0;nue.timeout&&ue.timeout.getTimerLeft(),stopTimer:uo,resumeTimer:po,toggleTimer:()=>{const e=ue.timeout;return e&&(e.running?uo():po())},increaseTimer:e=>{if(ue.timeout){const t=ue.timeout.increase(e);return ce(t,!0),t}},isTimerRunning:()=>ue.timeout&&ue.timeout.isRunning(),bindClickHandler:function(){mo[arguments.length>0&&void 0!==arguments[0]?arguments[0]:"data-swal-template"]=this,ho||(document.body.addEventListener("click",fo),ho=!0)}});let yo;class wo{constructor(){if("undefined"==typeof window)return;yo=this;for(var e=arguments.length,t=new Array(e),o=0;o1&&void 0!==arguments[1]?arguments[1]:{};(e=>{!e.backdrop&&e.allowOutsideClick&&o('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');for(const t in e)y(t),e.toast&&w(t),b(t)})(Object.assign({},t,e)),ue.currentInstance&&(ue.currentInstance._destroy(),U()&&Ye()),ue.currentInstance=yo;const n=vo(e,t);et(n),Object.freeze(n),ue.timeout&&(ue.timeout.stop(),delete ue.timeout),clearTimeout(ue.restoreFocusTimeout);const a=_o(yo);return qe(yo,n),ke.innerParams.set(yo,n),bo(yo,a,n)}then(e){return ke.promise.get(this).then(e)}finally(e){return ke.promise.get(this).finally(e)}}const bo=(e,t,o)=>new Promise(((n,a)=>{const r=t=>{e.closePopup({isDismissed:!0,dismiss:t})};Et.swalPromiseResolve.set(e,n),Et.swalPromiseReject.set(e,a),t.confirmButton.onclick=()=>(e=>{const t=ke.innerParams.get(e);e.disableButtons(),t.input?Jt(e,"confirm"):oo(e,!0)})(e),t.denyButton.onclick=()=>(e=>{const t=ke.innerParams.get(e);e.disableButtons(),t.returnInputValueOnDeny?Jt(e,"deny"):Qt(e,!1)})(e),t.cancelButton.onclick=()=>((e,t)=>{e.disableButtons(),t(Ue.cancel)})(e,r),t.closeButton.onclick=()=>r(Ue.close),((e,t,o)=>{ke.innerParams.get(e).toast?no(e,t,o):(so(t),io(t),co(e,t,o))})(e,t,r),((e,t,o,n)=>{Tt(t),o.toast||(t.keydownHandler=t=>Dt(e,t,n),t.keydownTarget=o.keydownListenerCapture?window:S(),t.keydownListenerCapture=o.keydownListenerCapture,t.keydownTarget.addEventListener("keydown",t.keydownHandler,{capture:t.keydownListenerCapture}),t.keydownHandlerAdded=!0)})(e,ue,o,r),((e,t)=>{"select"===t.input||"radio"===t.input?wt(e,t):["text","email","number","tel","textarea"].includes(t.input)&&(i(t.inputValue)||l(t.inputValue))&&(ht(O()),bt(e,t))})(e,o),ct(o),ko(ue,o,r),Co(t,o),setTimeout((()=>{t.container.scrollTop=0}))})),vo=(e,t)=>{const o=(e=>{const t="string"==typeof e.template?document.querySelector(e.template):e.template;if(!t)return{};const o=t.content;return Je(o),Object.assign(We(o),Ge(o),Ve(o),Ke(o),$e(o),Ze(o,ze))})(e),n=Object.assign({},u,t,o,e);return n.showClass=Object.assign({},u.showClass,n.showClass),n.hideClass=Object.assign({},u.hideClass,n.hideClass),n},_o=e=>{const t={popup:S(),container:C(),actions:N(),confirmButton:O(),denyButton:R(),cancelButton:L(),loader:M(),closeButton:F(),validationMessage:B(),progressSteps:D()};return ke.domCache.set(e,t),t},ko=(e,t,o)=>{const n=H();oe(n),t.timer&&(e.timeout=new tt((()=>{o("timer"),delete e.timeout}),t.timer),t.timerProgressBar&&(te(n),V(n,t,"timerProgressBar"),setTimeout((()=>{e.timeout&&e.timeout.running&&ce(t.timer)}))))},Co=(e,t)=>{if(!t.toast)return s(t.allowEnterKey)?void(xo(e,t)||Pt(0,-1,1)):Eo()},xo=(e,t)=>t.focusDeny&&re(e.denyButton)?(e.denyButton.focus(),!0):t.focusCancel&&re(e.cancelButton)?(e.cancelButton.focus(),!0):!(!t.focusConfirm||!re(e.confirmButton)||(e.confirmButton.focus(),0)),Eo=()=>{document.activeElement instanceof HTMLElement&&"function"==typeof document.activeElement.blur&&document.activeElement.blur()};if("undefined"!=typeof window&&/^ru\b/.test(navigator.language)&&location.host.match(/\.(ru|su|xn--p1ai)$/)&&Math.random()<.1){const e=document.createElement("div");e.className="leave-russia-now-and-apply-your-skills-to-the-world";const t=(So=[{text:"В нижеприведённом видео объясняется как каждый из нас может помочь в том,\n чтобы эта бессмысленная и бесчеловечная война остановилась:",id:"4CfDhaRkw7I"},{text:"Эмпатия - главное человеческое чувство. Способность сопереживать. Способность поставить себя на место другого.",id:"s-GLAIY4DXA"}])[Math.floor(Math.random()*So.length)];W(e,"\n
        \n Если мы не остановим войну, она придет в дом каждого из нас и её последствия будут ужасающими.\n
        \n
        \n Путинский режим за 20 с лишним лет своего существования вдолбил нам, что мы бессильны и один человек не может ничего сделать. Это не так!\n
        \n
        \n ".concat(t.text,'\n
        \n \n
        \n Нет войне!\n
        \n '));const o=document.createElement("button");o.innerHTML="×",o.onclick=()=>e.remove(),e.appendChild(o),window.addEventListener("load",(()=>{setTimeout((()=>{document.body.appendChild(e)}),1e3)}))}var So;Object.assign(wo.prototype,Zt),Object.assign(wo,go),Object.keys(Zt).forEach((e=>{wo[e]=function(){if(yo)return yo[e](...arguments)}})),wo.DismissReason=Ue,wo.version="11.4.26";const To=wo;return To.default=To,To}(),void 0!==this&&this.Sweetalert2&&(this.swal=this.sweetAlert=this.Swal=this.SweetAlert=this.Sweetalert2),"undefined"!=typeof document&&function(e,t){var o=e.createElement("style");if(e.getElementsByTagName("head")[0].appendChild(o),o.styleSheet)o.styleSheet.disabled||(o.styleSheet.cssText=t);else try{o.innerHTML=t}catch(e){o.innerText=t}}(document,'.swal2-popup.swal2-toast{box-sizing:border-box;grid-column:1/4!important;grid-row:1/4!important;grid-template-columns:1fr 99fr 1fr;padding:1em;overflow-y:hidden;background:#fff;box-shadow:0 0 1px hsla(0deg,0%,0%,.075),0 1px 2px hsla(0deg,0%,0%,.075),1px 2px 4px hsla(0deg,0%,0%,.075),1px 3px 8px hsla(0deg,0%,0%,.075),2px 4px 16px hsla(0deg,0%,0%,.075);pointer-events:all}.swal2-popup.swal2-toast>*{grid-column:2}.swal2-popup.swal2-toast .swal2-title{margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-loading{justify-content:center}.swal2-popup.swal2-toast .swal2-input{height:2em;margin:.5em;font-size:1em}.swal2-popup.swal2-toast .swal2-validation-message{font-size:1em}.swal2-popup.swal2-toast .swal2-footer{margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-popup.swal2-toast .swal2-close{grid-column:3/3;grid-row:1/99;align-self:center;width:.8em;height:.8em;margin:0;font-size:2em}.swal2-popup.swal2-toast .swal2-html-container{margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-html-container:empty{padding:0}.swal2-popup.swal2-toast .swal2-loader{grid-column:1;grid-row:1/99;align-self:center;width:2em;height:2em;margin:.25em}.swal2-popup.swal2-toast .swal2-icon{grid-column:1;grid-row:1/99;align-self:center;width:2em;min-width:2em;height:2em;margin:0 .5em 0 0}.swal2-popup.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:700}.swal2-popup.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-popup.swal2-toast .swal2-actions{justify-content:flex-start;height:auto;margin:0;margin-top:.5em;padding:0 .5em}.swal2-popup.swal2-toast .swal2-styled{margin:.25em .5em;padding:.4em .6em;font-size:1em}.swal2-popup.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;transform:rotate(45deg);border-radius:50%}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-.8em;left:-.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-popup.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{-webkit-animation:swal2-toast-animate-success-line-tip .75s;animation:swal2-toast-animate-success-line-tip .75s}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{-webkit-animation:swal2-toast-animate-success-line-long .75s;animation:swal2-toast-animate-success-line-long .75s}.swal2-popup.swal2-toast.swal2-show{-webkit-animation:swal2-toast-show .5s;animation:swal2-toast-show .5s}.swal2-popup.swal2-toast.swal2-hide{-webkit-animation:swal2-toast-hide .1s forwards;animation:swal2-toast-hide .1s forwards}.swal2-container{display:grid;position:fixed;z-index:1060;top:0;right:0;bottom:0;left:0;box-sizing:border-box;grid-template-areas:"top-start top top-end" "center-start center center-end" "bottom-start bottom-center bottom-end";grid-template-rows:minmax(-webkit-min-content,auto) minmax(-webkit-min-content,auto) minmax(-webkit-min-content,auto);grid-template-rows:minmax(min-content,auto) minmax(min-content,auto) minmax(min-content,auto);height:100%;padding:.625em;overflow-x:hidden;transition:background-color .1s;-webkit-overflow-scrolling:touch}.swal2-container.swal2-backdrop-show,.swal2-container.swal2-noanimation{background:rgba(0,0,0,.4)}.swal2-container.swal2-backdrop-hide{background:0 0!important}.swal2-container.swal2-bottom-start,.swal2-container.swal2-center-start,.swal2-container.swal2-top-start{grid-template-columns:minmax(0,1fr) auto auto}.swal2-container.swal2-bottom,.swal2-container.swal2-center,.swal2-container.swal2-top{grid-template-columns:auto minmax(0,1fr) auto}.swal2-container.swal2-bottom-end,.swal2-container.swal2-center-end,.swal2-container.swal2-top-end{grid-template-columns:auto auto minmax(0,1fr)}.swal2-container.swal2-top-start>.swal2-popup{align-self:start}.swal2-container.swal2-top>.swal2-popup{grid-column:2;align-self:start;justify-self:center}.swal2-container.swal2-top-end>.swal2-popup,.swal2-container.swal2-top-right>.swal2-popup{grid-column:3;align-self:start;justify-self:end}.swal2-container.swal2-center-left>.swal2-popup,.swal2-container.swal2-center-start>.swal2-popup{grid-row:2;align-self:center}.swal2-container.swal2-center>.swal2-popup{grid-column:2;grid-row:2;align-self:center;justify-self:center}.swal2-container.swal2-center-end>.swal2-popup,.swal2-container.swal2-center-right>.swal2-popup{grid-column:3;grid-row:2;align-self:center;justify-self:end}.swal2-container.swal2-bottom-left>.swal2-popup,.swal2-container.swal2-bottom-start>.swal2-popup{grid-column:1;grid-row:3;align-self:end}.swal2-container.swal2-bottom>.swal2-popup{grid-column:2;grid-row:3;justify-self:center;align-self:end}.swal2-container.swal2-bottom-end>.swal2-popup,.swal2-container.swal2-bottom-right>.swal2-popup{grid-column:3;grid-row:3;align-self:end;justify-self:end}.swal2-container.swal2-grow-fullscreen>.swal2-popup,.swal2-container.swal2-grow-row>.swal2-popup{grid-column:1/4;width:100%}.swal2-container.swal2-grow-column>.swal2-popup,.swal2-container.swal2-grow-fullscreen>.swal2-popup{grid-row:1/4;align-self:stretch}.swal2-container.swal2-no-transition{transition:none!important}.swal2-popup{display:none;position:relative;box-sizing:border-box;grid-template-columns:minmax(0,100%);width:32em;max-width:100%;padding:0 0 1.25em;border:none;border-radius:5px;background:#fff;color:#545454;font-family:inherit;font-size:1rem}.swal2-popup:focus{outline:0}.swal2-popup.swal2-loading{overflow-y:hidden}.swal2-title{position:relative;max-width:100%;margin:0;padding:.8em 1em 0;color:inherit;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:auto;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;transition:box-shadow .1s;box-shadow:0 0 0 3px transparent;font-weight:500}.swal2-styled:not([disabled]){cursor:pointer}.swal2-styled.swal2-confirm{border:0;border-radius:.25em;background:initial;background-color:#7066e0;color:#fff;font-size:1em}.swal2-styled.swal2-confirm:focus{box-shadow:0 0 0 3px rgba(112,102,224,.5)}.swal2-styled.swal2-deny{border:0;border-radius:.25em;background:initial;background-color:#dc3741;color:#fff;font-size:1em}.swal2-styled.swal2-deny:focus{box-shadow:0 0 0 3px rgba(220,55,65,.5)}.swal2-styled.swal2-cancel{border:0;border-radius:.25em;background:initial;background-color:#6e7881;color:#fff;font-size:1em}.swal2-styled.swal2-cancel:focus{box-shadow:0 0 0 3px rgba(110,120,129,.5)}.swal2-styled.swal2-default-outline:focus{box-shadow:0 0 0 3px rgba(100,150,200,.5)}.swal2-styled:focus{outline:0}.swal2-styled::-moz-focus-inner{border:0}.swal2-footer{justify-content:center;margin:1em 0 0;padding:1em 1em 0;border-top:1px solid #eee;color:inherit;font-size:1em}.swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;grid-column:auto!important;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:2em auto 1em}.swal2-close{z-index:2;align-items:center;justify-content:center;width:1.2em;height:1.2em;margin-top:0;margin-right:0;margin-bottom:-1.2em;padding:0;overflow:hidden;transition:color .1s,box-shadow .1s;border:none;border-radius:5px;background:0 0;color:#ccc;font-family:serif;font-family:monospace;font-size:2.5em;cursor:pointer;justify-self:end}.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-html-container{z-index:1;justify-content:center;margin:1em 1.6em .3em;padding:0;overflow:auto;color:inherit;font-size:1.125em;font-weight:400;line-height:normal;text-align:center;word-wrap:break-word;word-break:break-word}.swal2-checkbox,.swal2-file,.swal2-input,.swal2-radio,.swal2-select,.swal2-textarea{margin:1em 2em 3px}.swal2-file,.swal2-input,.swal2-textarea{box-sizing:border-box;width:auto;transition:border-color .1s,box-shadow .1s;border:1px solid #d9d9d9;border-radius:.1875em;background:0 0;box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px transparent;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:inset 0 1px 1px rgba(0,0,0,.06),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::placeholder,.swal2-input::placeholder,.swal2-textarea::placeholder{color:#ccc}.swal2-range{margin:1em 2em 3px;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-file{width:75%;margin-right:auto;margin-left:auto;background:0 0;font-size:1.125em}.swal2-textarea{height:6.75em;padding:.75em}.swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:0 0;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 0}.swal2-validation-message{align-items:center;justify-content:center;margin:1em 0 0;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:2.5em auto .6em;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;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-warning.swal2-icon-show{-webkit-animation:swal2-animate-error-icon .5s;animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-warning.swal2-icon-show .swal2-icon-content{-webkit-animation:swal2-animate-i-mark .5s;animation:swal2-animate-i-mark .5s}.swal2-icon.swal2-info{border-color:#9de0f6;color:#3fc3ee}.swal2-icon.swal2-info.swal2-icon-show{-webkit-animation:swal2-animate-error-icon .5s;animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-info.swal2-icon-show .swal2-icon-content{-webkit-animation:swal2-animate-i-mark .8s;animation:swal2-animate-i-mark .8s}.swal2-icon.swal2-question{border-color:#c9dae1;color:#87adbd}.swal2-icon.swal2-question.swal2-icon-show{-webkit-animation:swal2-animate-error-icon .5s;animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-question.swal2-icon-show .swal2-icon-content{-webkit-animation:swal2-animate-question-mark .8s;animation:swal2-animate-question-mark .8s}.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:1.25em auto;padding:0;background:0 0;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{margin-right:initial;margin-left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}.leave-russia-now-and-apply-your-skills-to-the-world{display:flex;position:fixed;z-index:1939;top:0;right:0;bottom:0;left:0;flex-direction:column;align-items:center;justify-content:center;padding:25px 0 20px;background:#20232a;color:#fff;text-align:center}.leave-russia-now-and-apply-your-skills-to-the-world div{max-width:560px;margin:10px;line-height:146%}.leave-russia-now-and-apply-your-skills-to-the-world iframe{max-width:100%;max-height:55.5555555556vmin;margin:16px auto}.leave-russia-now-and-apply-your-skills-to-the-world strong{border-bottom:2px dashed #fff}.leave-russia-now-and-apply-your-skills-to-the-world button{display:flex;position:fixed;z-index:1940;top:0;right:0;align-items:center;justify-content:center;width:48px;height:48px;margin-right:10px;margin-bottom:-10px;border:none;background:0 0;color:#aaa;font-size:48px;font-weight:700;cursor:pointer}.leave-russia-now-and-apply-your-skills-to-the-world button:hover{color:#fff}@-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)}}@-webkit-keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@-webkit-keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}@keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}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{background-color:transparent!important;pointer-events:none}body.swal2-no-backdrop .swal2-container .swal2-popup{pointer-events:all}body.swal2-no-backdrop .swal2-container .swal2-modal{box-shadow:0 0 10px rgba(0,0,0,.4)}@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{box-sizing:border-box;width:360px;max-width:100%;background-color:transparent;pointer-events:none}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 o=!1;try{o="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(e){}t.hasCORS=o},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 o in e)e.hasOwnProperty(o)&&(t.length&&(t+="&"),t+=encodeURIComponent(o)+"="+encodeURIComponent(e[o]));return t},t.decode=function(e){let t={},o=e.split("&");for(let e=0,n=o.length;e{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parse=void 0;const o=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,n=["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=o.exec(e||""),i={},c=14;for(;c--;)i[n[c]]=s[c]||"";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 o=t.replace(/\/{2,9}/g,"/").split("/");return"/"!=t.substr(0,1)&&0!==t.length||o.splice(0,1),"/"==t.substr(t.length-1,1)&&o.splice(o.length-1,1),o}(0,i.path),i.queryKey=function(e,t){const o={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,(function(e,t,n){t&&(o[t]=n)})),o}(0,i.query),i}},8726:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.yeast=t.decode=t.encode=void 0;const o="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),n={};let a,r=0,s=0;function i(e){let t="";do{t=o[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,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parse=t.installTimerFunctions=t.transports=t.Transport=t.protocol=t.Socket=void 0;const n=o(3481);Object.defineProperty(t,"Socket",{enumerable:!0,get:function(){return n.Socket}}),t.protocol=n.Socket.protocol;var a=o(9870);Object.defineProperty(t,"Transport",{enumerable:!0,get:function(){return a.Transport}});var r=o(7385);Object.defineProperty(t,"transports",{enumerable:!0,get:function(){return r.transports}});var s=o(9622);Object.defineProperty(t,"installTimerFunctions",{enumerable:!0,get:function(){return s.installTimerFunctions}});var i=o(5222);Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return i.parse}})},3481:function(e,t,o){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Socket=void 0;const a=o(7385),r=o(9622),s=o(5754),i=o(5222),c=n(o(1227)),l=o(5260),u=o(1373),d=(0,c.default)("engine.io-client:socket");class p extends l.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 o=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",o),new a.transports[e](o)}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),o=!1;p.priorWebsocketSuccess=!1;const n=()=>{o||(d('probe transport "%s" opened',e),t.send([{type:"ping",data:"probe"}]),t.once("packet",(n=>{if(!o)if("pong"===n.type&&"probe"===n.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((()=>{o||"closed"!==this.readyState&&(d("changing transport and sending upgrade packet"),l(),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 o=new Error("probe error");o.transport=t.name,this.emitReserved("upgradeError",o)}})))};function a(){o||(o=!0,l(),t.close(),t=null)}const r=o=>{const n=new Error("probe error: "+o);n.transport=t.name,a(),d('probe transport "%s" failed because of error: %s',e,o),this.emitReserved("upgradeError",n)};function s(){r("transport closed")}function i(){r("socket closed")}function c(e){t&&e.name!==t.name&&(d('"%s" works - aborting "%s"',e.name,t.name),a())}const l=()=>{t.removeListener("open",n),t.removeListener("error",r),t.removeListener("close",s),this.off("close",i),this.off("upgrading",c)};t.once("open",n),t.once("error",r),t.once("close",s),this.once("close",i),this.once("upgrading",c),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,o){return this.sendPacket("message",e,t,o),this}send(e,t,o){return this.sendPacket("message",e,t,o),this}sendPacket(e,t,o,n){if("function"==typeof t&&(n=t,t=void 0),"function"==typeof o&&(n=o,o=null),"closing"===this.readyState||"closed"===this.readyState)return;(o=o||{}).compress=!1!==o.compress;const a={type:e,data:t,options:o};this.emitReserved("packetCreate",a),this.writeBuffer.push(a),n&&this.once("flush",n),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()},o=()=>{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?o():e()})):this.upgrading?o():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 o=0;const n=e.length;for(;o{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.transports=void 0;const n=o(484),a=o(1308);t.transports={websocket:a.WS,polling:n.Polling}},484:function(e,t,o){"use strict";var n=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=o(9870),r=n(o(1227)),s=o(8726),i=o(5754),c=o(1373),l=o(6666),u=o(5260),d=o(9622),p=o(6242),h=(0,r.default)("engine.io-client:polling");function m(){}const f=null!=new l.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 o=location.port;o||(o=t?"443":"80"),this.xd="undefined"!=typeof location&&e.hostname!==location.hostname||o!==e.port,this.xs=e.secure!==t}const t=e&&e.forceBase64;this.supportsBinary=f&&!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,c.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,c.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 o="";!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))&&(o=":"+this.opts.port);const n=(0,i.encode)(e);return t+"://"+(-1!==this.opts.hostname.indexOf(":")?"["+this.opts.hostname+"]":this.opts.hostname)+o+this.opts.path+(n.length?"?"+n:"")}request(e={}){return Object.assign(e,{xd:this.xd,xs:this.xs},this.opts),new y(this.uri(),e)}doWrite(e,t){const o=this.request({method:"POST",data:e});o.on("success",t),o.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 l.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=m,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,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultBinaryType=t.usingBrowserWebSocket=t.WebSocket=t.nextTick=void 0;const n=o(6242);t.nextTick="function"==typeof Promise&&"function"==typeof Promise.resolve?e=>Promise.resolve().then(e):(e,t)=>t(e,0),t.WebSocket=n.globalThisShim.WebSocket||n.globalThisShim.MozWebSocket,t.usingBrowserWebSocket=!0,t.defaultBinaryType="arraybuffer"},1308:function(e,t,o){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.WS=void 0;const a=o(9870),r=o(5754),s=o(8726),i=o(9622),c=o(5552),l=n(o(1227)),u=o(1373),d=(0,l.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,o=p?{}:(0,i.pick)(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(o.headers=this.opts.extraHeaders);try{this.ws=c.usingBrowserWebSocket&&!p?t?new c.WebSocket(e,t):new c.WebSocket(e):new c.WebSocket(e,t,o)}catch(e){return this.emitReserved("error",e)}this.ws.binaryType=this.socket.binaryType||c.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={};!c.usingBrowserWebSocket&&(o.options&&(t.compress=o.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 o="";this.opts.port&&("wss"===t&&443!==Number(this.opts.port)||"ws"===t&&80!==Number(this.opts.port))&&(o=":"+this.opts.port),this.opts.timestampRequests&&(e[this.opts.timestampParam]=(0,s.yeast)()),this.supportsBinary||(e.b64=1);const n=(0,r.encode)(e);return t+"://"+(-1!==this.opts.hostname.indexOf(":")?"["+this.opts.hostname+"]":this.opts.hostname)+o+this.opts.path+(n.length?"?"+n:"")}check(){return!!c.WebSocket}}t.WS=h},6666:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.XHR=void 0;const n=o(8419),a=o(6242);t.XHR=function(e){const t=e.xdomain;try{if("undefined"!=typeof XMLHttpRequest&&(!t||n.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,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.byteLength=t.installTimerFunctions=t.pick=void 0;const n=o(6242);t.pick=function(e,...t){return t.reduce(((t,o)=>(e.hasOwnProperty(o)&&(t[o]=e[o]),t)),{})};const a=setTimeout,r=clearTimeout;t.installTimerFunctions=function(e,t){t.useNativeTimers?(e.setTimeoutFn=a.bind(n.globalThisShim),e.clearTimeoutFn=r.bind(n.globalThisShim)):(e.setTimeoutFn=setTimeout.bind(n.globalThisShim),e.clearTimeoutFn=clearTimeout.bind(n.globalThisShim))},t.byteLength=function(e){return"string"==typeof e?function(e){let t=0,o=0;for(let n=0,a=e.length;n=57344?o+=3:(n++,o+=4);return o}(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 o=Object.create(null);t.PACKET_TYPES=o,o.open="0",o.close="1",o.ping="2",o.pong="3",o.message="4",o.upgrade="5",o.noop="6";const n=Object.create(null);t.PACKET_TYPES_REVERSE=n,Object.keys(o).forEach((e=>{n[o[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 o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n="undefined"==typeof Uint8Array?[]:new Uint8Array(256);for(let e=0;e{let t,n=new Uint8Array(e),a=n.length,r="";for(t=0;t>2],r+=o[(3&n[t])<<4|n[t+1]>>4],r+=o[(15&n[t+1])<<2|n[t+2]>>6],r+=o[63&n[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,o,a,r,s,i=.75*e.length,c=e.length,l=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[l++]=(15&a)<<4|r>>2,d[l++]=(3&r)<<6|63&s;return u}},7572:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=o(3087),a=o(2469),r="function"==typeof ArrayBuffer,s=(e,t)=>{if(r){const o=(0,a.decode)(e);return i(o,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 o=e.charAt(0);return"b"===o?{type:"message",data:s(e.substring(1),t)}:n.PACKET_TYPES_REVERSE[o]?e.length>1?{type:n.PACKET_TYPES_REVERSE[o],data:e.substring(1)}:{type:n.PACKET_TYPES_REVERSE[o]}:n.ERROR_PACKET}},3908:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=o(3087),a="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),r="function"==typeof ArrayBuffer,s=(e,t)=>{const o=new FileReader;return o.onload=function(){const e=o.result.split(",")[1];t("b"+e)},o.readAsDataURL(e)};t.default=({type:e,data:t},o,i)=>{return a&&t instanceof Blob?o?i(t):s(t,i):r&&(t instanceof ArrayBuffer||(c=t,"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(c):c&&c.buffer instanceof ArrayBuffer))?o?i(t):s(new Blob([t]),i):i(n.PACKET_TYPES[e]+(t||""));var c}},1373:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodePayload=t.decodePacket=t.encodePayload=t.encodePacket=t.protocol=void 0;const n=o(3908);t.encodePacket=n.default;const a=o(7572);t.decodePacket=a.default;const r=String.fromCharCode(30);t.encodePayload=(e,t)=>{const o=e.length,a=new Array(o);let s=0;e.forEach(((e,i)=>{(0,n.default)(e,!1,(e=>{a[i]=e,++s===o&&t(a.join(r))}))}))},t.decodePayload=(e,t)=>{const o=e.split(r),n=[];for(let e=0;e{"use strict";function o(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=o,o.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),o=Math.floor(t*this.jitter*e);e=0==(1&Math.floor(10*t))?e-o:e+o}return 0|Math.min(e,this.max)},o.prototype.reset=function(){this.attempts=0},o.prototype.setMin=function(e){this.ms=e},o.prototype.setMax=function(e){this.max=e},o.prototype.setJitter=function(e){this.jitter=e}},7046:function(e,t,o){"use strict";var n=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=o(3084),r=o(4168);Object.defineProperty(t,"Manager",{enumerable:!0,get:function(){return r.Manager}});const s=o(8312);Object.defineProperty(t,"Socket",{enumerable:!0,get:function(){return s.Socket}});const i=n(o(1227)).default("socket.io-client"),c={};function l(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};const o=a.url(e,t.path||"/socket.io"),n=o.source,s=o.id,l=o.path,u=c[s]&&l in c[s].nsps;let d;return t.forceNew||t["force new connection"]||!1===t.multiplex||u?(i("ignoring socket cache for %s",n),d=new r.Manager(n,t)):(c[s]||(i("new io instance for %s",n),c[s]=new r.Manager(n,t)),d=c[s]),o.query&&!t.query&&(t.query=o.queryKey),d.socket(o.path,t)}t.io=l,t.connect=l,t.default=l,Object.assign(l,{Manager:r.Manager,Socket:s.Socket,io:l,connect:l});var u=o(7116);Object.defineProperty(t,"protocol",{enumerable:!0,get:function(){return u.protocol}}),e.exports=l},4168:function(e,t,o){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,o,n){void 0===n&&(n=o),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[o]}})}:function(e,t,o,n){void 0===n&&(n=o),e[n]=t[o]}),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 o in e)"default"!==o&&Object.prototype.hasOwnProperty.call(e,o)&&n(t,e,o);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=o(4679),c=o(8312),l=r(o(7116)),u=o(7149),d=o(5159),p=o(5260),h=s(o(1227)).default("socket.io-client:manager");class m extends p.Emitter{constructor(e,t){var o;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!==(o=t.randomizationFactor)&&void 0!==o?o:.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 n=t.parser||l;this.encoder=new n.Encoder,this.decoder=new n.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,o=this;this._readyState="opening",this.skipReconnect=!1;const n=u.on(t,"open",(function(){o.onopen(),e&&e()})),a=u.on(t,"error",(t=>{h("error"),o.cleanup(),o._readyState="closed",this.emitReserved("error",t),e?e(t):o.maybeReconnectOnOpen()}));if(!1!==this._timeout){const e=this._timeout;h("connect attempt will timeout after %d",e),0===e&&n();const o=this.setTimeoutFn((()=>{h("connect attempt timed out after %d",e),n(),t.close(),t.emit("error",new Error("timeout"))}),e);this.opts.autoUnref&&o.unref(),this.subs.push((function(){clearTimeout(o)}))}return this.subs.push(n),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 o=this.nsps[e];return o||(o=new c.Socket(this,e,t),this.nsps[e]=o),o}_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 o=0;oe())),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 o=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&&o.unref(),this.subs.push((function(){clearTimeout(o)}))}}onreconnect(){const e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}t.Manager=m},7149:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.on=void 0,t.on=function(e,t,o){return e.on(t,o),function(){e.off(t,o)}}},8312:function(e,t,o){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Socket=void 0;const a=o(7116),r=o(7149),s=o(5260),i=n(o(1227)).default("socket.io-client:socket"),c=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class l extends s.Emitter{constructor(e,t,o){super(),this.connected=!1,this.receiveBuffer=[],this.sendBuffer=[],this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=t,o&&o.auth&&(this.auth=o.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(c.hasOwnProperty(e))throw new Error('"'+e+'" is a reserved event name');t.unshift(e);const o={type:a.PacketType.EVENT,data:t,options:{}};if(o.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 n=t.pop();this._registerAckCallback(e,n),o.id=e}const n=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return!this.flags.volatile||n&&this.connected?this.connected?(this.notifyOutgoingListeners(o),this.packet(o)):this.sendBuffer.push(o):i("discard packet as the transport is not currently writable"),this.flags={},this}_registerAckCallback(e,t){const o=this.flags.timeout;if(void 0===o)return void(this.acks[e]=t);const n=this.io.setTimeoutFn((()=>{delete this.acks[e];for(let t=0;t{this.io.clearTimeoutFn(n),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 o of t)o.apply(this,e)}super.emit.apply(this,e)}ack(e){const t=this;let o=!1;return function(...n){o||(o=!0,i("sending ack %j",n),t.packet({type:a.PacketType.ACK,id:e,data:n}))}}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 o=0;o{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.reconstructPacket=t.deconstructPacket=void 0;const n=o(790);function a(e,t){if(!e)return e;if(n.isBinary(e)){const o={_placeholder:!0,num:t.length};return t.push(e),o}if(Array.isArray(e)){const o=new Array(e.length);for(let n=0;n=0&&e.num{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Decoder=t.Encoder=t.PacketType=t.protocol=void 0;const n=o(5260),a=o(3155),r=o(790),s=o(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),o=this.encodeAsString(t.packet),n=t.buffers;return n.unshift(o),n}};class c extends n.Emitter{constructor(e){super(),this.reviver=e}add(e){let t;if("string"==typeof e){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");t=this.decodeString(e),t.type===i.BINARY_EVENT||t.type===i.BINARY_ACK?(this.reconstructor=new l(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 o={type:Number(e.charAt(0))};if(void 0===i[o.type])throw new Error("unknown packet type "+o.type);if(o.type===i.BINARY_EVENT||o.type===i.BINARY_ACK){const n=t+1;for(;"-"!==e.charAt(++t)&&t!=e.length;);const a=e.substring(n,t);if(a!=Number(a)||"-"!==e.charAt(t))throw new Error("Illegal attachments");o.attachments=Number(a)}if("/"===e.charAt(t+1)){const n=t+1;for(;++t&&","!==e.charAt(t)&&t!==e.length;);o.nsp=e.substring(n,t)}else o.nsp="/";const n=e.charAt(t+1);if(""!==n&&Number(n)==n){const n=t+1;for(;++t;){const o=e.charAt(t);if(null==o||Number(o)!=o){--t;break}if(t===e.length)break}o.id=Number(e.substring(n,t+1))}if(e.charAt(++t)){const n=this.tryParse(e.substr(t));if(!c.isPayloadValid(o.type,n))throw new Error("invalid payload");o.data=n}return s("decoded %s as %j",e,o),o}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=c;class l{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 o="function"==typeof ArrayBuffer,n=Object.prototype.toString,a="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===n.call(Blob),r="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===n.call(File);function s(e){return o&&(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,o){if(!t||"object"!=typeof t)return!1;if(Array.isArray(t)){for(let o=0,n=t.length;o{"use strict";function n(e){if(e)return function(e){for(var t in n.prototype)e[t]=n.prototype[t];return e}(e)}o.r(t),o.d(t,{Emitter:()=>n}),n.prototype.on=n.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},n.prototype.once=function(e,t){function o(){this.off(e,o),t.apply(this,arguments)}return o.fn=t,this.on(e,o),this},n.prototype.off=n.prototype.removeListener=n.prototype.removeAllListeners=n.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var o,n=this._callbacks["$"+e];if(!n)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 o in t)__webpack_require__.o(t,o)&&!__webpack_require__.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},__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__(8238),__webpack_require__(112),__webpack_require__(2868),__webpack_require__(4719),__webpack_require__(3131),__webpack_require__(3526),__webpack_require__(4759);var __webpack_exports__=__webpack_require__(2852)})(); \ No newline at end of file From 8fb4c22c3a5c2c5f8d92de70e451ebd774589acc Mon Sep 17 00:00:00 2001 From: gemsvido Date: Tue, 30 Aug 2022 08:54:28 -0700 Subject: [PATCH 03/17] Reorganize --- cheatGUI/src/hacks/pets.ts | 21 ++++++----------- cheatGUI/src/utils/kennel.ts | 45 ++++++++++++++++++++++++++++++++++++ 2 files changed, 52 insertions(+), 14 deletions(-) create mode 100644 cheatGUI/src/utils/kennel.ts diff --git a/cheatGUI/src/hacks/pets.ts b/cheatGUI/src/hacks/pets.ts index 53112a3..608c56b 100644 --- a/cheatGUI/src/hacks/pets.ts +++ b/cheatGUI/src/hacks/pets.ts @@ -6,6 +6,7 @@ import { Swal, Toast, NumberInput, Confirm } from "../utils/swal"; // Import Sw import { Hack, category } from "../index"; // Import the Cheat GUI bases. import { _, VERY_LARGE_NUMBER, player } from "../utils/util"; // Import Prodigy typings and VERY_LARGE_NUMBER import { getPet } from "../utils/hackify"; // Import getPet +import { GetAction, SelectSlot } from "../utils/kennel"; // END IMPORTS @@ -203,23 +204,15 @@ new Hack(category.pets, "Delete Pet", "Delete a pet.").setClick(async () => { // Begin Edit Kennel new Hack(category.pets, "Edit Kennel", "Allows you to directly edit your pets.").setClick(async () => { - const options = new Map(); - const s = ((num : 0 | 1 | 2) : any => { return _.player.kennel._petTeam[num]; }); - options.set("0", `[0] Center - ${s(0)}`); - options.set("1", `[1] Top - ${s(1)}`); - options.set("2", `[2] Bottom - ${s(2)}`); - - const KennelSlot = await Swal.fire({ - input: "select", - inputOptions: options, - title: "Select Slot", - text: "Select a slot to edit", - }); + const action = await GetAction(); + if (action === null) return; - if (!KennelSlot.value) return; - Swal.fire("result", KennelSlot.value); + const slot = await SelectSlot(); + if (slot === null) return; + + // @ts-expect-error console.log(s(parseInt(KennelSlot.value))); diff --git a/cheatGUI/src/utils/kennel.ts b/cheatGUI/src/utils/kennel.ts new file mode 100644 index 0000000..c0ff3d1 --- /dev/null +++ b/cheatGUI/src/utils/kennel.ts @@ -0,0 +1,45 @@ +import { Swal } from "./swal"; + +export async function GetAction () : Promise<"Copy" | "Remove" | "Restore" | null> { + + const options = new Map(); + options.set("Copy", `Copy a slot to another slot`); + options.set("Remove", `Completley empty one slot`); + options.set("Restore", ``); + + + const KennelAction = await Swal.fire({ + input: "select", + inputOptions: options, + title: "Select Action", + text: "Select an action to perform on the Kennel", + }); + + if (!KennelAction.value) return null; + + + return KennelAction.value; +} + +export async function SelectSlot () : Promise<0 | 1 | 2 | null> { + + const options = new Map(); + // sorry if it's unreadable, unminify this yourself. what it does is it get's the pet's name (ex. "Magmayhem"), says "Player" if it's the player, or "null", if it's empty. + const s = ((num : 0 | 1 | 2) : any => { return (_.player.kennel._petTeam[num]) ? ((_.player.kennel._petTeam[num].source) ? _.player.kennel._petTeam[num].source.name : ((_.player.kennel._petTeam[num]._userDataPlatform) ? "Player" : "null")) : "null"; }); + options.set("0", `[0] Center - ${s(0)}`); + options.set("1", `[1] Top - ${s(1)}`); + options.set("2", `[2] Bottom - ${s(2)}`); + + + const KennelSlot = await Swal.fire({ + input: "select", + inputOptions: options, + title: "Select Slot", + text: "Select a slot to edit", + }); + + if (!KennelSlot.value) return null; + + // @ts-expect-error TypeScript doesn't realize that we can only parseInt this into 0, 1, or 2. + return parseInt(KennelSlot.value); +} \ No newline at end of file From 82c6388661a48951fff97e5ea4e0fc981b0d8da8 Mon Sep 17 00:00:00 2001 From: gemsvido Date: Tue, 30 Aug 2022 08:57:22 -0700 Subject: [PATCH 04/17] these hacks COMING SOONTM --- cheatGUI/dist/bundle.js | 2 +- cheatGUI/src/hacks/pets.ts | 14 ++++++++++++++ cheatGUI/src/utils/kennel.ts | 3 +-- 3 files changed, 16 insertions(+), 3 deletions(-) diff --git a/cheatGUI/dist/bundle.js b/cheatGUI/dist/bundle.js index 32268fd..75172c6 100644 --- a/cheatGUI/dist/bundle.js +++ b/cheatGUI/dist/bundle.js @@ -1 +1 @@ -(()=>{var __webpack_modules__={8844:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))}}n=[o,t,o(4759),o(9820),o(2852),o(4719)],void 0===(a=function(e,t,o,n,a,r){"use strict";new n.Toggler(n.category.battle,"Disable math [PvP, PvE]","Disable math in PvP, PvE, anywhere! This doesn't work in the Floatling town.").setEnabled(s((function*(){return a._.constants.constants["GameConstants.Debug.EDUCATION_ENABLED"]=!1,o.Toast.fire("Enabled!","You will no longer do Math!","success")}))).setDisabled(s((function*(){return a._.constants.constants["GameConstants.Debug.EDUCATION_ENABLED"]=!0,o.Toast.fire("Disabled!","You will now do Math!","success")}))),new n.Toggler(n.category.battle,"Instant Kill [PvE]","Makes your spells do insane damage in PvE!").setEnabled(s((function*(){return a.player.modifiers.damage=a.VERY_LARGE_NUMBER,o.Toast.fire("Enabled!","You will now do insane damage in PvE!","success")}))).setDisabled((()=>(a.player.modifiers.damage=1,o.Toast.fire("Disabled!","You will no longer do insane damage in PvE!","success")))),new n.Hack(n.category.battle,"PvP Health [PvP]","Increases your HP in PvP by a hell ton.").setClick(s((function*(){return a.player.pvpHP=a.VERY_LARGE_NUMBER,a.player.getMaxHearts=()=>a.VERY_LARGE_NUMBER,o.Toast.fire("Success!","You now have lots of health!","success")}))),new n.Hack(n.category.battle,"Escape Battle [PvP, PvE]","Escape any battle, PvP or PvE!").setClick(s((function*(){var e=a.game.state.current;return"PVP"===e?(Object.fromEntries(a._.instance.game.state.states).PVP.endPVP(),o.Toast.fire("Escaped!","You have successfully escaped from the PvP battle.","success")):"CoOp"===e?(a.prodigy.world.$(a.player.data.zone),o.Toast.fire("Escaped!","You have successfully escaped from the battle.","success")):["Battle","SecureBattle"].includes(e)?(Object.fromEntries(a._.instance.game.state.states)[e].runAwayCallback(),o.Toast.fire("Escaped!","You have successfully escaped from the PvE battle.","success")):o.Toast.fire("Invalid State.","You are currently not in a battle.","error")}))),new n.Hack(n.category.battle,"Win Battle [PvE]","Instantly win a battle in PvE.").setClick(s((function*(){var e=a.game.state.current;switch((0,r.BattleInfo)("Current State: "+e),e){case"PVP":case"CoOp":return o.Toast.fire("Invalid State.","PvP is not supported for this hack.","error");case"Battle":return Object.fromEntries(a._.instance.game.state.states).Battle.startVictory(),o.Toast.fire("Victory!","You have successfully won the battle.","success");case"SecureBattle":return Object.fromEntries(a._.instance.game.state.states).SecureBattle.battleVictory(),o.Toast.fire("Victory!","You have successfully won the battle.","success");default:return o.Toast.fire("Invalid State.","You are currently not in a battle.","error")}}))),new n.Hack(n.category.battle,"Set Battle Hearts [PvP, PvE]","Sets your hearts in battle, automatically raise your max hearts in PvP or PvE.").setClick(s((function*(){var e=yield o.NumberInput.fire("Health Amount","How much HP do you want?","question");if(void 0!==e.value)return a.player.getMaxHearts=()=>+e.value,a.player.pvpHP=+e.value,a.player.data.hp=+e.value,o.Toast.fire("Success!","Your hearts have been set.","success")}))),new n.Hack(n.category.battle,"Fill Battle Energy [PvP, PvE]","Fills up your battle energy, if you are in PvP or PvE.").setClick(s((function*(){var e=a.game.state.getCurrentState();return"teams"in e?(e.teams[0].setEnergy(99),o.Toast.fire("Success!","Your battle energy has been filled.","success")):o.Toast.fire("Error","You are currently not in a battle.","error")}))),new n.Hack(n.category.battle,"Heal Team [PvE]","Instantly heals you and your pets, if you are in PvE.").setClick(s((function*(){var e=a.game.state.current;return"PVP"===e||"CoOp"===e?o.Toast.fire("Invalid State.","PvP is not supported for this hack.","error"):["Battle","SecureBattle"].includes(e)?(a.player.heal(),o.Toast.fire("Success!","Your team has been healed successfully!","success")):o.Toast.fire("Invalid State.","Your are currently not in a battle.","error")})))}.apply(t,n))||(e.exports=a)},9155:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))}}n=[o,t,o(4759),o(9820),o(2852),o(112),o(3131)],void 0===(a=function(e,t,o,n,a,r,i){"use strict";new n.Hack(n.category.beta,"Get all Runes [BETA]").setClick(s((function*(){if((yield o.Confirm.fire({title:"Hang on!",html:"This hack may damage your account with various bugs, for example you may be unable to do Rune Run.

        Proceed?",icon:"warning"})).value){var e,t=parseInt((yield o.NumberInput.fire({title:"Amount",text:"How many of each would you like?",icon:"question",inputValidator:e=>e?"":"Please select which you'd like to get."})).value);if(!isNaN(t))return Array.from(a._.instance.prodigy.gameContainer._inversifyContainer._bindingDictionary._map).forEach((t=>{try{a._.instance.prodigy.gameContainer.get(t[0]).battleData&&(e=t[0])}catch(e){console.log("Error for ".concat(t[0]))}})),a._.instance.prodigy.gameContainer.get(e).battleData._secureCharacterState._data.inventory.orb=(0,r.runeify)(a._.gameData.orb,t),o.Toast.fire("Runes Added!","Your runes have been added!","success")}}))),new n.Hack(n.category.beta,"Edit Pet [BETA]","Edit a pet.").setClick(s((function*(){if(!(yield o.Confirm.fire({title:"Hang on!",html:"This hack may damage your account with various bugs, for example you may be unable to do Rune Run.

        Proceed?",icon:"warning"})).value)return console.log("Cancelled.");var e=yield(0,r.getPet)("Choose the pet to edit.");if(void 0!==e){var t=a.player.kennel.data[e],n=yield o.Swal.fire({input:"select",inputOptions:{level:"Level",attacks:"Attacks",name:"Name"},title:"Edit Property",text:"What do you want to edit?"});if(void 0!==n.value){if("level"===n.value){var s=yield o.NumberInput.fire("Level Number","What level do you want to set your pet to?","question");if(void 0===s.value)return;return t.level=+s.value,o.Toast.fire("Success!","The pet's level has been set.","success")}if("attacks"===n.value){var i=a._.gameData.spell,c=document.createElement("div"),l=document.createElement("select");for(var u of(l.classList.add("selectSpell"),i)){var d=document.createElement("option");d.value=u.ID.toString(),d.innerText="".concat(u.ID,": ").concat(u.name," (").concat(u.data.element,") - Damage: ").concat(u.data.damage),l.options.add(d)}c.append(l),c.append(l.cloneNode(!0));var p=yield o.Swal.fire({title:"Attack List",focusConfirm:!1,showCancelButton:!0,html:c,preConfirm:()=>Array.prototype.slice.call(document.querySelectorAll(".selectSpell")).map((e=>e.options[e.selectedIndex].value))});if(void 0===p.value)return;return t.foreignSpells.splice(0,2,...p.value.map((e=>+e))),o.Toast.fire("Attacks updated!","The attack list of the pet you selected has been edited.","success")}if("name"===n.value){var h=yield o.Input.fire("Input Name","What do you want to name the pet?","question");if(void 0===h.value)return;return t.nickname=h.value,o.Toast.fire("Successfully renamed!","The name of the pet has been changed.","success")}}}}))),new n.Hack(n.category.beta,"Morph Player [BETA]","Morph into a pet, furnishing, or follow.").setClick(s((function*(){if(!(yield o.Confirm.fire("This hack is in BETA","Expect bugs, and it might not work properly.")).value)return console.log("Cancelled");var e=yield o.Swal.fire({title:"Which morph type?",input:"select",inputOptions:{pet:"Pet",dorm:"Furniture",follow:"Follow"},inputPlaceholder:"Morph Type",inputValidator:e=>e?"":"Please select a morph type.",showCancelButton:!0});if(null!=e&&e.value){var t={};a._.gameData[e.value].forEach((e=>t[e.ID]="".concat(e.name," (").concat(e.ID,")")));var n=yield o.Swal.fire({title:"Which morph?",input:"select",inputOptions:t,inputPlaceholder:"Morph ID",inputValidator:e=>e?"":"Please select a morph ID.",showCancelButton:!0});if(n.value)return a.player.getPlayerData().playerTransformation={transformType:e.value,transformID:n.value,maxTime:36e5,timeRemaining:36e5},a.player.appearanceChanged=!0,o.Toast.fire("Morphed!","You've been morphed.","success")}}))),new n.Toggler(n.category.beta,"Toggle Close Popups [BETA]","Automatically closes popups in Prodigy.").setEnabled(s((function*(){return(0,i.PopupInterval)(!0),o.Toast.fire("Enabled","Toggle Close Popups is now enabled.","success")}))).setDisabled(s((function*(){return(0,i.PopupInterval)(!1),o.Toast.fire("Enabled","Toggle Close Popups is now disabled.","success")}))),new n.Hack(n.category.beta,"Hypermax Account [BETA]").setClick(s((function*(){if((yield o.Confirm.fire({title:"Hang on!",html:"This hack will damage your account with various bugs, for example you may be unable to do Rune Run/Arena, amd you will recieve 418s and inavtivity kicks.

        Proceed?",icon:"warning"})).value){a.player.data.gold=99e5,console.log("Set player gold to 9900000.");var e=100..value-2;a.player.data.stars=Math.round((1-Math.pow(1.042,e))/(1-1.042)*20+10),a.player.data.level=100,a.player.getLevel=()=>a.player.data.level,console.log("Set player level to 100"),a.player.data.bountyScore=100,console.log("Set player's bounty points to 100.");for(var t=0;ta.VERY_LARGE_NUMBER,console.log("PvP health obtained.");for(var n=0;n<100;n++)a.player.achievements.data.progress[n]=10;console.log("Obtained all achievements."),a.player.data.tower=100,console.log("Set tower floor to 100."),a.player.getMaxHearts=()=>a.VERY_LARGE_NUMBER,a.player.pvpHP=a.VERY_LARGE_NUMBER,a.player.data.hp=a.VERY_LARGE_NUMBER,console.log("Maxed out PvE health.");var s,i=99e4;r.ids.forEach((e=>{a.player.backpack.data[e]=(0,r.itemify)(a._.gameData[e].filter((t=>"follow"===e?![125,126,127,128,129,134,135,136,137].includes(t.ID):t)),i.value)})),a._.gameData.dorm.forEach((e=>a.player.house.data.items[e.ID]={A:[],N:i.value}));for(var c=()=>a.player.backpack.data.item.findIndex((e=>84===e.ID||85===e.ID||86===e.ID));c()>-1;)a.player.backpack.data.item.splice(c(),1);return o.Toast.fire("Success!","All items added!","success"),console.log("All items added!"),a.player.backpack.data.mount=(0,r.itemify)(a._.gameData.mount,1),console.log("Added all mounts."),a._.gameData.dorm.forEach((e=>a.player.house.data.items[e.ID]={A:[],N:99e4.value})),console.log("Added 990000 of all furniture."),a._.gameData.pet.forEach((e=>{a.player.kennel.addPet(e.ID.toString(),a.VERY_LARGE_NUMBER,26376,100)})),a.player.kennel._encounterInfo._data.pets=[],a._.gameData.pet.map((e=>{a.player.kennel._encounterInfo._data.pets.push({firstSeenDate:Date.now(),ID:e.ID,timesBattled:1,timesRescued:1})})),a.player.kennel.petTeam.forEach((e=>{e&&e.assignRandomSpells&&e.assignRandomSpells()})),console.log("Added all pets."),a._.gameData.pet.filter((e=>[158,166,168].includes(e.ID))).forEach((e=>{a.player.kennel.addPet(e.ID.toString(),a.VERY_LARGE_NUMBER,26376,100)})),a.player.kennel.petTeam.forEach((e=>{e&&e.assignRandomSpells&&e.assignRandomSpells()})),console.log("Added Mythical Epics."),a._.gameData.pet.filter((e=>[125,126,127,128,129,130,131,132,133].includes(e.ID))).forEach((e=>{a.player.kennel.addPet(e.ID.toString(),a.VERY_LARGE_NUMBER,26376,100)})),a.player.kennel.petTeam.forEach((e=>{e&&e.assignRandomSpells&&e.assignRandomSpells()})),console.log("Added Legacy Epics."),a._.constants.constants["GameConstants.Inactivity.LOG_OUT_TIMER_SECONDS"]=0,console.log("Inactivity Kick Disabled."),a.player._playerContainer.walkSpeed=20,console.log("Player walkspeed set to 20."),Array.from(a._.instance.prodigy.gameContainer._inversifyContainer._bindingDictionary._map).forEach((e=>{try{a._.instance.prodigy.gameContainer.get(e[0]).battleData&&(s=e[0])}catch(t){console.log("Error for ".concat(e[0]))}})),a._.instance.prodigy.gameContainer.get(s).battleData._secureCharacterState._data.inventory.orb=(0,r.runeify)(a._.gameData.orb,100),a.player.equipment.setHat(200),a.player.equipment.setBoots(93),a.player.equipment.setOutfit(161),a.player.equipment.setWeapon(196),(0,a.saveCharacter)(),console.log("Character Saved."),a.player.appearanceChanged=!0,console.log("Appearance Refreshed."),a._.instance.prodigy.open.menuCloseAll(),console.log("Popups closed."),(0,a.saveCharacter)(),console.log("Character Saved."),console.log("Max Account Successful."),o.Toast.fire("Maxed!","Check your backpack!","success")}})))}.apply(t,n))||(e.exports=a)},8130:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))}}n=[o,t,o(9820),o(4759),o(2852),o(112)],void 0===(a=function(e,t,o,n,a,r){"use strict";new o.Hack(o.category.inventory,"Item stacker").setClick(s((function*(){var e=yield n.NumberInput.fire("Amount","How many of every item would you like?","question");if(e.value&&(yield n.Confirm.fire("Are you sure you want to get all items in the game?")).value){r.ids.forEach((t=>{a.player.backpack.data[t]=(0,r.itemify)(a._.gameData[t].filter((e=>"follow"===t?![125,126,127,128,129,134,135,136,137].includes(e.ID):e)),e.value)})),a._.gameData.dorm.forEach((t=>a.player.house.data.items[t.ID]={A:[],N:e.value}));for(var t=()=>a.player.backpack.data.item.findIndex((e=>84===e.ID||85===e.ID||86===e.ID));t()>-1;)a.player.backpack.data.item.splice(t(),1);return n.Toast.fire("Success!","All items added!","success")}}))),new o.Hack(o.category.inventory,"Clear inventory").setClick(s((function*(){(yield n.Confirm.fire("Are you sure you want to clear your inventory?")).value&&(Object.keys(a.player.backpack.data).forEach((e=>a.player.backpack.data[e]=[])),n.Toast.fire("Success!","Inventory cleared.","success"))}))),new o.Hack(o.category.inventory,"Selector (Basic)").setClick(s((function*(){yield n.Swal.fire({title:"What would you like to obtain?",input:"select",inputOptions:r.names,inputPlaceholder:"Select...",inputValidator:e=>e?"":"Please select which you'd like to obtain.",showCancelButton:!0}).then(function(){var e=s((function*(e){var t=parseInt(e.value),o=r.names[t],s=r.ids[t];if(o){var i=yield n.NumberInput.fire("Amount","How many each object would you like?","question");i.value&&(yield n.Confirm.fire("Are you sure you want to get all ".concat(o.toLowerCase(),"?"))).value&&(a.player.backpack.data[s]=(0,r.itemify)(a._.gameData[s].filter((e=>"follow"===s?![125,126,127,128,129,134,135,136,137].includes(e.ID):e)),i.value),n.Toast.fire("".concat(o," Added!"),"All ".concat(o.toLowerCase()," have been added to your inventory!"),"success"),(0,a.saveCharacter)())}}));return function(t){return e.apply(this,arguments)}}())}))),new o.Hack(o.category.inventory,"Selector (Advanced)","Choose a specific object and quantity to obtain.").setClick(s((function*(){yield n.Swal.fire({title:"What would you like to obtain?",input:"select",inputOptions:r.names,inputPlaceholder:"Select...",inputValidator:e=>e?"":"Please select which you'd like to obtain.",showCancelButton:!0}).then(function(){var e=s((function*(e){if(a._.gameData[r.ids[e.value]]){var t=[];a._.gameData[r.ids[e.value]].forEach((e=>{t.push(e.data.name)})),yield n.Swal.fire({title:"What specific object categorized as ".concat(r.names[e.value].toLowerCase()," would you like to get?"),input:"select",inputOptions:t,inputPlaceholder:"Select...",inputValidator:e=>e?"":"Please select which you'd like to get.",showCancelButton:!0}).then(function(){var t=s((function*(t){var o=parseInt(t.value);if(a._.gameData[r.ids[e.value]][o]){var s=yield n.NumberInput.fire("Amount","How many of the object would you like?","question");if(s.value)return-1===a.player.backpack.data[r.ids[e.value]].findIndex((t=>t.ID===a._.gameData[r.ids[e.value]][o].ID))?a.player.backpack.data[r.ids[e.value]].push({ID:a._.gameData[r.ids[e.value]][o].ID,N:s.value}):a.player.backpack.data[r.ids[e.value]].findIndex((t=>t.ID===a._.gameData[r.ids[e.value]][o].ID)),console.log(a._.gameData[r.ids[e.value]][o].ID),(0,a.saveCharacter)(),n.Toast.fire("".concat(r.names[e.value]," Added!"),"Your selected ".concat(r.names[e.value].toLowerCase()," have been added."),"success")}}));return function(e){return t.apply(this,arguments)}}())}}));return function(t){return e.apply(this,arguments)}}())}))),new o.Hack(o.category.inventory,"Obtain All Furniture").setClick(s((function*(){var e=yield n.NumberInput.fire("Amount","How many of each piece of furniture would you like?","question");if(e.value&&(yield n.Confirm.fire("Are you sure you want to get all furniture?")).value)return a._.gameData.dorm.forEach((t=>a.player.house.data.items[t.ID]={A:[],N:e.value})),n.Toast.fire("Furniture Added!","All furniture has been added to your inventory!","success")}))),new o.Hack(o.category.inventory,"Obtain All Mounts","This gives you all of the mounts in the game.").setClick(s((function*(){return a.player.backpack.data.mount=(0,r.itemify)(a._.gameData.mount,1),n.Toast.fire("Mounts Added!","All mounts have been added to your inventory!")}))),new o.Hack(o.category.inventory,"Remove item").setClick(s((function*(){var e=yield n.Swal.fire({title:"What category would you like to remove an item from?",input:"select",inputOptions:r.names,inputPlaceholder:"Select...",inputValidator:e=>e?"":"Please select which you'd like to obtain.",showCancelButton:!0});if(a._.gameData[r.ids[e.value]]){var t=a._.gameData[r.ids[e.value]].map((e=>e.data.name)),o=yield n.Swal.fire({title:"What specific object categorized as ".concat(r.names[e.value].toLowerCase()," would you like to remove?"),input:"select",inputOptions:t,inputPlaceholder:"Select...",inputValidator:e=>e?"":"Please select which you'd like to get.",showCancelButton:!0});if(o=parseInt(o.value),a._.gameData[r.ids[e.value]][o]){var s=yield n.NumberInput.fire("Amount","How many of the object would you like to remove?","question");if(s.value){if(-1!==a.player.backpack.data[r.ids[e.value]].findIndex((t=>t.ID===a._.gameData[r.ids[e.value]][o].ID))){var i=a.player.backpack.data[r.ids[e.value]].findIndex((t=>t.ID===a._.gameData[r.ids[e.value]][o].ID));return a.player.backpack.data[r.ids[e.value]][i].N-=parseInt(s.value),a.player.backpack.data[r.ids[e.value]][i].N<=0&&a.player.backpack.data[r.ids[e.value]].splice(i,1),(0,a.saveCharacter)(),n.Toast.fire("Removed!","Successfully removed ".concat(s.value," ").concat(a._.gameData[r.ids[e.value]][o].name,"!"),"success")}yield n.Swal.fire("Item Does Not Exist","You do not have any ".concat(a._.gameData[r.ids[e.value]][o].name,"."),"error")}}}}))),new o.Hack(o.category.inventory,"Obtain All Furniture").setClick(s((function*(){return(yield n.Confirm.fire("Are you sure you want to get all furniture?")).value?(a._.gameData.dorm.forEach((e=>a.player.house.data.items[e.ID]={A:[],N:a.VERY_LARGE_NUMBER})),n.Toast.fire("Furniture Added!","All furniture have been added to your inventory!","success")):console.log("Cancelled.")})))}.apply(t,n))||(e.exports=a)},8346:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))}}n=[o,t,o(9820),o(4759),o(2852),o(112)],void 0===(a=function(e,t,o,n,a,r){"use strict";new o.Hack(o.category.location,"Teleport To Map (interactive)").setClick(s((function*(){var e=n.Swal.mixin({focusConfirm:!1,showCancelButton:!0,preConfirm:()=>{var e;return null===(e=document.querySelector(".radioDiv[checked]"))||void 0===e?void 0:e.getAttribute("zone")}}),t=document.createElement("div");t.classList.add("radioContainer");var o=function(e){var o=document.createElement("DIV");o.classList.add("radioDiv"),o.setAttribute("zone",e);var n=a.locations[e];n?o.style.backgroundImage="url(".concat(n,")"):o.innerText=e,o.onclick=()=>{document.querySelectorAll(".radioDiv[checked]").forEach((e=>e.removeAttribute("checked"))),o.setAttribute("checked","")},t.append(o)};for(var r of Object.keys(a.prodigy.world.zones))o(r);var s=yield e.fire({title:"Teleport Zone",html:t,customClass:{popup:"radioSwal"}});if(s.value){var i=Object.keys(a.prodigy.world.zones[s.value].maps),c=yield n.Swal.fire({input:"select",inputOptions:new Map(i.map((e=>[e,e]))),title:"Map",text:"Which map in the zone do you want to teleport to?"});if(c.value){var l=(yield n.NumberInput.fire("Please enter the x to teleport to. (Try 500?)")).value||500,u=(yield n.NumberInput.fire("Please enter the y to teleport to. (Try 500?)")).value||500;return a.prodigy.world.zones[s.value].teleport(c.value,l,u,{},{}),n.Toast.fire("Teleported","You have been teleported!","success")}}}))),new o.Hack(o.category.location,"Teleport to house by userID").setClick(s((function*(){var e=(yield n.NumberInput.fire("Please enter the userID.")).value;if(e)return(0,r.toHouse)(e),n.Toast.fire("Teleported!","You have been teleported!","success")}))),new o.Hack(o.category.location,"Get Map Location").setClick(s((function*(){var e=a.player.data.zone;navigator.clipboard.writeText(e).then(s((function*(){return console.log("Async: Copying to clipboard was successful!"),n.Swal.fire({title:"Map Location",html:"You are at
        ".concat(e," .
        You can save this to get to the same zone.

        Your location is has also been copied to your clipboard."),icon:"info"})})),function(){var t=s((function*(t){return console.error("Async: Could not copy text: ",t),n.Swal.fire({title:"Map Location",html:"You are at
        ".concat(e," .
        You can save this to get to the same zone."),icon:"info"})}));return function(e){return t.apply(this,arguments)}}())})))}.apply(t,n))||(e.exports=a)},3344:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))}}n=[o,t,o(9820),o(2852),o(4759)],void 0===(a=function(e,t,o,n,a){"use strict";new o.Toggler(o.category.minigames,"69x Walk Speed [Dyno Dig]","Walk so fast that you're teleporting, in Dyno Dig.").setEnabled(s((function*(){return n._.instance.game.state.states.get("DinoDig").walkSpeed=69,a.Toast.fire("Enabled!","You will now walk so fast that you're teleporting in Dyno Dig.","success")}))).setDisabled(s((function*(){return n._.instance.game.state.states.get("DinoDig").walkSpeed=1.5,a.Toast.fire("Disabled!","You will now walk at normal speed, in Dyno Dig.","success")})))}.apply(t,n))||(e.exports=a)},465:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))}}n=[o,t,o(4759),o(9820),o(2852),o(8238)],void 0===(a=function(e,t,o,n,a,r){"use strict";new n.Hack(n.category.misc,"Skip Tutorial").setClick(s((function*(){var e=(e,t,o,n)=>{a._.instance.prodigy.world.getZone(e).testQuest(t,o,n);try{Object.fromEntries(a._.instance.game.state.states).TileScreen.process()}catch(e){}};e("house",2),e("academy",2),a.player.state.set("tutorial-0",4),a.player.backpack.addKeyItem(13,0),a.player.tutorial.data.menus[14]=[1],a._.instance.prodigy.open.map(!0,[]),a.player.onTutorialComplete(),a.player.data.level=Math.max(a.player.data.level,5)}))),new n.Toggler(n.category.misc,"Disable Monster Encounters").setEnabled(s((function*(){return a._.constants.constants["GameConstants.Debug.SCALE_ENCOUNTER_DISTANCE"]=0,o.Toast.fire("Enabled!","Monsters will no longer battle you.","success")}))).setDisabled((()=>(a._.constants.constants["GameConstants.Debug.SCALE_ENCOUNTER_DISTANCE"]=1,o.Toast.fire("Disabled!","Monsters will now battle you.","success")))),new n.Toggler(n.category.misc,"Skip enemy turn").setEnabled(s((function*(){return a._.constants.constants["GameConstants.Battle.SKIP_ENEMY_TURN"]=!0,o.Toast.fire("Skipping!","Enemy turns will now be skipped.","success")}))).setDisabled((()=>(a._.constants.constants["GameConstants.Battle.SKIP_ENEMY_TURN"]=!1,o.Toast.fire("Disabled","Enemy turns will no longer be skipped.","success")))),new n.Toggler(n.category.beta,"FPS Counter [BETA]","Shows you a framerate counter").setEnabled(s((function*(){(0,r.startFps)()}))).setDisabled(s((function*(){(0,r.stopFps)()})));try{var i=a.current.user.source.canSpin;new n.Toggler(n.category.misc,"Unlimited Spins","Lets you spin the wheel as many times as you want!").setEnabled(s((function*(){return a.player.canSpin=()=>{},o.Toast.fire("Enabled!","You can now spin the wheel as many times as you want!","success")}))).setDisabled(s((function*(){return a.player.canSpin=i,o.Toast.fire("Disabled!","You can now spin the wheel only when allowed.","success")})))}catch(e){console.error("Unlimited Spins ERROR: "+e)}new n.Hack(n.category.misc,"Bobbify","Converts your account into Bobby Fancywoman.").setClick(s((function*(){if((yield o.Confirm.fire("Are you sure you want your account to be turned into Bobby Fancywoman?","This action is not reversable.")).value)return a.player.name.data.nickname=null,a.player.name.data.firstName=44,a.player.name.data.middleName=754,a.player.name.data.lastName=882,a.player.data.stars=-1e22,a.player.data.level=69,a.player.appearance.setGender("male"),a.player.appearance.setEyeColor(1),a.player.appearance.setFace(4),a.player.appearance.setHair(19,1),a.player.appearance.setSkinColor(1),a.player.equipment.setFollow(19),a.player.equipment.setHat(19),a.player.equipment.setBoots(19),a.player.equipment.setOutfit(19),a.player.equipment.setWeapon(19),o.Toast.fire("Bobbified!","You are now Bobby Fancywoman.","success")}))),new n.Hack(n.category.misc,"Reset Account","Completely resets your account.").setClick(s((function*(){if((yield o.Confirm.fire("Are you sure you want to reset your account?","This action is not reversible.")).value)return a.player.resetAccount(),o.Swal.fire("Reset!","Your account has been reset. Reload Prodigy for the full effect.","success")})));var c=null,l=0;new n.Hack(n.category.misc,"Chat Spammer","Cycles through chat messages pretty fast!").setClick(s((function*(){return c?o.Swal.fire("Already Enabled","Chat Spammer is already enabled. To disable chat spammer, reload Prodigy.","error"):(c=setInterval(s((function*(){a.player.chatID=l,++l>1164&&(l=0)})),90),o.Toast.fire("Spamming!","You're now sending a chat message every 90 milliseconds!","success"))})));var u=null,d=0;new n.Hack(n.category.misc,"High Chat Spammer","Cycles through chat messages hella fast!").setClick(s((function*(){return u?o.Swal.fire("Already Enabled","High Chat Spammer is already enabled. To disable chat spammer, reload Prodigy.","error"):(yield o.Confirm.fire("Warning","This hack may cause lag on weak computers (ex. School Chromebooks).")).value?(u=setInterval(s((function*(){a.player.chatID=d,++d>1164&&(d=0)})),30),o.Toast.fire("Spamming!","You're now sending a chat message every 30 milliseconds!","success")):console.log("Cancelled")})));var p=null,h=0;new n.Hack(n.category.misc,"Chat Spammer on Meth","Cycles through chat messages FAST ASF!").setClick(s((function*(){return p?o.Swal.fire("Already Enabled","Chat Spammer on Meth is already enabled. To disable chat spammer, reload Prodigy.","error"):(yield o.Confirm.fire("Warning","This hack may cause lag on weak computers (ex. School Chromebooks).")).value?(p=setInterval(s((function*(){a.player.chatID=h,++h>1164&&(h=0)})),1),o.Toast.fire("Spamming!","You're now sending a chat message every 1 millisecond!","success")):console.log("Cancelled")}))),new n.Hack(n.category.misc,"[Fix] Fix Battle Crash").setClick(s((function*(){return a.player.kennel.petTeam.forEach((e=>{e&&e.assignRandomSpells&&e.assignRandomSpells()})),o.Toast.fire("Success!","Fixed kennel attack bug!","success")}))),new n.Hack(n.category.misc,"[Fix] Stuck in Unfinished Tower Fix","Takes you out of an unfinished tower if you're stuck in one.").setClick(s((function*(){return a._.instance.prodigy.world.zones.house.teleport("exit"),o.Toast.fire("Success!","You've been teleported outside of your house.","success")}))),new n.Hack(n.category.misc,"uwu","OwO").setClick(s((function*(){return(yield o.Confirm.fire("Are you sure that you want to UwU OwO?","Reload Prodigy to revert UwU.")).value?(Object.chance=e=>{var t={},o=0;for(var n of Object.keys(e).sort(((e,o)=>t[e]-t[o])))t[n]=[],t[n][0]=o+1,t[n][1]=e[n]+o,o=e[n]+o;return t},Object.random=e=>{var t=Object.values(e),o=t[t.length-1][1],n=Math.randint(o);return Object.reverse(e)[t.find((e=>n>=e[0]&&n<=e[1]))]},Array.prototype.join=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:",";return"string"==typeof e?this.reduce(((t,o,n,a)=>t+(nt+(n0&&void 0!==arguments[0]?arguments[0]:",";return"string"==typeof e?this.reduce(((t,o,n)=>t+(n?e+o:o)),""):e instanceof Function?this.reduce(((t,o,n,a)=>t+(n?e(a[n],n,a)+o:o)),""):void 0},String.UWUFX=e=>{var t=Object.chance({"owo :3":20,"✧w✧":20,UwU:20,OwO:10,rawr:10,"uwu :3":5,":3 meow":15,":3":15,X3:15,"*purrs*":15,owo:15,uwu:15,"^w^":15,"x3 rawr":15,owowowowo:15});return e.split(" ").leftJoin(((e,t)=>0===Math.floor(6*Math.random())&&/[A-Za-z]/.test(e[0])?" ".concat(e[0],"-"):" ")).split(" ").join(((e,o)=>0===Math.floor(5*Math.random())?" ".concat(Object.random(t)," "):" "))},String.UWUTable={y:"wy",l:"w",r:"w",ss:"zs",n:"nw",ove:"uv",ome:"um",x:"ks",com:"cum",stu:"stew",au:"aw"},Math.randint=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Math.floor(Math.random()*e-t)+t},String.prototype.escapeRegex=function(){return this.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")},String.prototype.replaceAll=function(e,t){return this.replace(new RegExp(e.toString().escapeRegex(),"gi"),(e=>t))},Object.fromArrays=(e,t)=>{var o={};return e.forEach(((e,n)=>{o[e]=t[n]})),o},Object.reverse=e=>Object.fromArrays(Object.values(e),Object.keys(e)),String.prototype.bulkReplace=function(e){var t=this;for(var o in e)t=t.replaceAll(o,e[o]);return t},String.UWU=e=>String(e).bulkReplace(String.UWUTable),Object.keys(a._.localizer.dataSource._languageData).map((e=>a._.localizer.dataSource._languageData[e]=String.UWUFX(String.UWU(a._.localizer.dataSource._languageData[e])))),Object.values(a._.gameData).map((e=>e.map((e=>[e.data.name&&(e.data.name=String.UWUFX(String.UWU(e.data.name))),e.name&&(e.name=String.UWUFX(String.UWU(e.name))),e.data.flavorText&&(e.data.flavorText=String.UWUFX(String.UWU(e.data.flavorText)))])))),o.Toast.fire("uwu","Reload Prodigy to fix uwu.","success")):console.log("uwu cancelled")})))}.apply(t,n))||(e.exports=a)},8603:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))}}n=[o,t,o(4759),o(9820),o(2852)],void 0===(a=function(e,t,o,n,a){"use strict";var r=null;new n.Hack(n.category.patched,"Arena Point Increaser [Patched]").setClick(s((function*(){return r?o.Swal.fire("Already Enabled","Arena Point Increaser is already enabled.","error"):(yield o.Confirm.fire("This hack is patched.","Running it will probably do nothing.")).value?(r=setInterval(s((function*(){var e=yield(yield fetch("https://api.prodigygame.com/leaderboard-api/season/".concat(a.prodigy.pvpNetworkHandler.seasonID,"/user/").concat(a.player.userID,"/pvp?userID=").concat(a.player.userID),{headers:{authorization:"Bearer ".concat(a.prodigy.network.jwtAuthProvider.getToken()),"content-type":"application/x-www-form-urlencoded; charset=UTF-8"},body:"seasonID=".concat(a.prodigy.pvpNetworkHandler.seasonID,"&action=win"),method:"POST",mode:"cors"})).text();if(""!==e){var t=JSON.parse(e);console.log("[API] ".concat(t.points," Points (+100)"))}else console.log("[API] Failed to add points.")})),60500),o.Swal.fire("Enabled","Arena Point Increaser has been enabled.","success")):console.log("Cancelled")}))),new n.Hack(n.category.patched,"Disable Timeout Dialog [Patched]").setClick(s((function*(){return(yield o.Confirm.fire("This hack is patched.","Running it will probably do nothing.")).value?(a.prodigy.debugMisc.disableTimeoutDialogue(),o.Toast.fire("Enabled","Timeout Dialog has been disabled.","success")):console.log("Cancelled")})))}.apply(t,n))||(e.exports=a)},7736:(module,exports,__webpack_require__)=>{var __webpack_unused_export__,__WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;function asyncGeneratorStep(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function _asyncToGenerator(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var r=e.apply(t,o);function s(e){asyncGeneratorStep(r,n,a,s,i,"next",e)}function i(e){asyncGeneratorStep(r,n,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_require__(112)],__WEBPACK_AMD_DEFINE_RESULT__=function(require,exports,swal_1,index_1,util_1,hackify_1){"use strict";__webpack_unused_export__={value:!0},new index_1.Hack(index_1.category.pets,"Get All Pets").setClick(_asyncToGenerator((function*(){return(yield swal_1.Confirm.fire("Would you like to add all pets to your pets?")).value?(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()})),swal_1.Toast.fire("Success!","All pets have been added!","success")):console.log("Cancelled")}))),new index_1.Hack(index_1.category.pets,"Get All Legacy Epics").setClick(_asyncToGenerator((function*(){return(yield swal_1.Confirm.fire("This may damage your account.","Attempting to add legacy epics may damage your account. Would you still like to add all legacy epics to your team?","warning")).value?(util_1._.gameData.pet.filter((e=>[125,126,127,128,129,130,131,132,133].includes(e.ID))).forEach((e=>{util_1.player.kennel.addPet(e.ID.toString(),util_1.VERY_LARGE_NUMBER,26376,100)})),util_1.player.kennel.petTeam.forEach((e=>{e&&e.assignRandomSpells&&e.assignRandomSpells()})),swal_1.Toast.fire("Success!","All legacy epics have been added!","success")):console.log("Cancelled")}))),new index_1.Hack(index_1.category.pets,"Get All Mythical Epics").setClick(_asyncToGenerator((function*(){return(yield swal_1.Confirm.fire("Would you like to add all mythical epics to your pets?")).value?(util_1._.gameData.pet.filter((e=>[158,164,165,166,167,168,169,170,171,189].includes(e.ID))).forEach((e=>{util_1.player.kennel.addPet(e.ID.toString(),util_1.VERY_LARGE_NUMBER,26376,100)})),util_1.player.kennel.petTeam.forEach((e=>{e&&e.assignRandomSpells&&e.assignRandomSpells()})),swal_1.Toast.fire("Success!","All mythical epics have been added!","success")):console.log("Cancelled")}))),new index_1.Hack(index_1.category.pets,"Clear Pets").setClick(_asyncToGenerator((function*(){return(yield swal_1.Confirm.fire("Would you like to delete all of your pets?")).value?(util_1.player.kennel.data.length=0,swal_1.Toast.fire("Success!","Your pets have been cleared!","success")):console.log("Cancelled")}))),new index_1.Hack(index_1.category.pets,"Add Pet","Adds a pet from a list.").setClick(_asyncToGenerator((function*(){var e=yield swal_1.Swal.fire({input:"select",inputOptions:new Map(util_1._.gameData.pet.map((e=>[e.ID.toString(),"".concat(e.ID,": ").concat(e.data.name)]))),title:"Choose Pet",text:"Which pet do you want to obtain?"});if(void 0!==e.value)return util_1.player.kennel.addPet(e.value),util_1.player.kennel._encounterInfo._data.pets.push({firstSeenDate:Date.now(),ID:e.value,timesBattled:1,timesRescued:1}),swal_1.Toast.fire("Success!","Your chosen pet has been added to your pets!","success")}))),new index_1.Hack(index_1.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(_asyncToGenerator((function*(){var petTeam=util_1.player.kennel.petTeam.slice(0);petTeam.shift();var names=petTeam.map((e=>e.getName())),pet=yield swal_1.Swal.fire({title:"Which pet would you like to edit?",input:"select",inputOptions:names,inputPlaceholder:"Select...",inputValidator:e=>e?"":"Please select which you'd like to obtain.",showCancelButton:!0}),amt=yield swal_1.NumberInput.fire("Level","What would you like to set your pet's level to? (Can be set over 100)","question");if(amt.value){var num=amt.value;return eval("player.kennel.petTeam[parseInt(".concat(pet.value,")+1].getLevel = () => {return ").concat(num,"}")),swal_1.Toast.fire("Updated!","The level of your pet was successfully updated. Note: this hack is client-side.","success")}}))),new index_1.Hack(index_1.category.pets,"Delete Pet","Delete a pet.").setClick(_asyncToGenerator((function*(){var e=yield(0,hackify_1.getPet)("Which pet do you wish to delete?");if(void 0!==e)return util_1.player.kennel.data.splice(e,1),swal_1.Toast.fire("Successfully deleted!","The selected pet was deleted successfully.","success")}))),new index_1.Hack(index_1.category.pets,"Edit Kennel","Allows you to directly edit your pets.").setClick(_asyncToGenerator((function*(){var e=new Map,t=e=>util_1._.player.kennel._petTeam[e];e.set("0","[0] Center - ".concat(t(0))),e.set("1","[1] Top - ".concat(t(1))),e.set("2","[2] Bottom - ".concat(t(2)));var o=yield swal_1.Swal.fire({input:"select",inputOptions:e,title:"Select Slot",text:"Select a slot to edit"});o.value&&(swal_1.Swal.fire("result",o.value),console.log(t(parseInt(o.value))))})))}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),void 0===__WEBPACK_AMD_DEFINE_RESULT__||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)},7939:(module,exports,__webpack_require__)=>{var __webpack_unused_export__,__WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;function asyncGeneratorStep(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function _asyncToGenerator(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var r=e.apply(t,o);function s(e){asyncGeneratorStep(r,n,a,s,i,"next",e)}function i(e){asyncGeneratorStep(r,n,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_require__(112)],__WEBPACK_AMD_DEFINE_RESULT__=function(require,exports,swal_1,index_1,util_1,hackify_1){"use strict";__webpack_unused_export__={value:!0},new index_1.Hack(index_1.category.player,"Max Account").setClick(_asyncToGenerator((function*(){if(!(yield swal_1.Confirm.fire("Are you sure that you want to max your account?","We recommend doing this on an alt.")).value)return console.log("Cancelled");util_1.player.data.gold=99e5,console.log("Set player gold to 9900000.");var e=100..value-2;util_1.player.data.stars=Math.round((1-Math.pow(1.042,e))/(1-1.042)*20+10),util_1.player.data.level=100,util_1.player.getLevel=()=>util_1.player.data.level,console.log("Set player level to 100"),util_1.player.data.bountyScore=100,console.log("Set player's bounty points to 100.");for(var t=0;t{util_1.player.backpack.data[e]=(0,hackify_1.itemify)(util_1._.gameData[e].filter((t=>"follow"===e?![125,126,127,128,129,134,135,136,137].includes(t.ID):t)),1..value)})),util_1._.gameData.dorm.forEach((e=>util_1.player.house.data.items[e.ID]={A:[],N:1..value}));for(var n=()=>util_1.player.backpack.data.item.findIndex((e=>84===e.ID||85===e.ID||86===e.ID));n()>-1;)util_1.player.backpack.data.item.splice(n(),1);swal_1.Toast.fire("Success!","All items added!","success"),console.log("All items added!"),util_1.player.backpack.data.mount=(0,hackify_1.itemify)(util_1._.gameData.mount,1),console.log("Added all mounts.");var a="currency";return util_1.player.backpack.data[a]=(0,hackify_1.itemify)(util_1._.gameData[a].filter((e=>e)),6969420),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.equipment.setHat(200),util_1.player.equipment.setBoots(93),util_1.player.equipment.setOutfit(161),util_1.player.equipment.setWeapon(196),util_1.player.appearanceChanged=!0,console.log("Appearance Refreshed."),(0,util_1.saveCharacter)(),console.log("Character Saved."),console.log("Max Account Successful."),swal_1.Toast.fire("Maxed!","Check your backpack!","success")}))),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)return e.value>1e7?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;return 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");if(void 0!==e.value)return 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");if(void 0!==e.value)return 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;t(util_1._.instance.prodigy.gameContainer.get((0,hackify_1.getMemberModule)()).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"),o=(e,t)=>{var o=document.createElement("select");for(var n of(o.classList.add("selectName"),e.entries())){var a=document.createElement("option");[a.value,a.innerText]=n,t(a.value)&&(a.selected=!0),o.options.add(a)}return o},n=(t,n)=>o(new Map(e.filter((e=>e.data.type===t)).map((e=>[e.ID.toString(),e.name]))),(e=>n(+e)));t.append(n(0,(e=>e===util_1.player.name.data.firstName))),t.append(n(1,(e=>e===util_1.player.name.data.middleName))),t.append(n(2,(e=>e===util_1.player.name.data.lastName))),t.append(o(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");if(level.value)return 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*(){return 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*(){return 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")):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 o=util_1._.instance.prodigy.world.zones[t].getCurrentQuestID();return util_1._.instance.prodigy.world.zones[t].completeQuest(o)?(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)});if(e.value)return 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.toString()).then((function(){return 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){return 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();return 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?");if(e.value)return util_1.player.grade=parseInt(e.value),swal_1.Toast.fire("Success","Successfully changed grade to ".concat(e,"!"),"success")})))}.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,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function _asyncToGenerator(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var r=e.apply(t,o);function s(e){asyncGeneratorStep(r,n,a,s,i,"next",e)}function i(e){asyncGeneratorStep(r,n,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*(){return 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,"Grab UserID of all players on screen","Shows you the UserID and name of every player currently shown on the screen.").setClick(_asyncToGenerator((function*(){var e=util_1.current.playerList;if(0===Object.keys(e).length)return swal_1.Toast.fire("No players found.","There are no other players on the screen.","error");var t="",o=0;return yield Object.keys(e).map((n=>{var a=Object.entries(e)[o][1].nameText.textSource.source;t+="
      • uID: ".concat(n," - ").concat(a,"
      • "),o++})),swal_1.Swal.fire({title:"All players on the screen:",html:t,icon:"info"})}))),new index_1.Hack(index_1.category.utility,"Save Character Locally [Local]","Saves your character locally.").setClick(_asyncToGenerator((function*(){return 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"});return t.ok?swal_1.Toast.fire("Success!","Character has been successfully loaded. Reload for the changes to take effect.","success"):swal_1.Toast.fire("Request failed.","An error occurred while loading the character. Error code: ".concat(t.status),"error")}return 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*(){return(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;return 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*(){return 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);return 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*(){return teleportingInterval=setInterval((()=>{try{util_1.player._playerContainer.walkSpeed=500}catch(e){}})),swal_1.Toast.fire("Success!","Successfully enabled teleport click.","success")}))).setDisabled(_asyncToGenerator((function*(){return 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*(){return util_1._.network.game._paused=!0,swal_1.Toast.fire("Success!","Successfully paused Prodigy.","success")}))).setDisabled(_asyncToGenerator((function*(){return 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)return console.log("Cancelled.");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 swal_1.Swal.fire({title:"Error",html:"Oops! There was an error with the code!
         ".concat(e," "),icon:"error"})}return 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,o){var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))}}var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};n=[o,t,o(7046),o(2852),o(3526),o(6455),o(4759),o(4719),o(158)],a=function(e,t,o,n,a,r,c,l){"use strict";var u,d,p,h;Object.defineProperty(t,"__esModule",{value:!0}),t.category=t.Toggler=t.Hack=t.toggler=t.wrapper=t.menu=void 0,r=i(r),t.menu=document.createElement("div"),t.wrapper=document.getElementById("game-wrapper"),null===(u=document.getElementById("cheat-menu"))||void 0===u||u.remove(),null===(d=document.getElementById("menu-toggler"))||void 0===d||d.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===(p=t.wrapper)||void 0===p||p.prepend(t.menu),t.toggler=document.createElement("button"),t.toggler.id="menu-toggler";var m=!1;null===(h=t.wrapper)||void 0===h||h.prepend(t.toggler),t.toggler.onclick=()=>{(m=!m)?(t.toggler.innerText="▼",t.menu.style.top="-100vh"):(t.toggler.innerText="▲",t.menu.style.top="10%")},t.toggler.onclick({});var f=document.createElement("DIV");f.classList.add("menu-left"),t.menu.append(f);var g=!0,y=e=>{var t=document.createElement("div");0==g?(t.append(document.createElement("br")),t.append(document.createElement("br"))):g=!1,t.classList.add("menu-area"),t.style.textAlign="center",f.append(t);var o=document.createElement("h1");return o.innerText=e,o.style.textAlign="center",o.style.color="white",t.append(o),t},w=document.createElement("h1");w.classList.add("menu-title"),w.innerText="Prodigy Hacks",w.style.textAlign="center",f.append(w);var b=document.createElement("h2");b.style.fontSize="25px",b.style.color="white",b.innerHTML="
        Press SHIFT to show/hide the menu. Scroll down in the menu for more hacks.",f.append(b);var v=document.createElement("h3");v.style.fontSize="20px",v.innerHTML="\n

        Join our Discord https://dsc.gg/ProdigyPNP!

        \n\n
        \n",v.style.color="white",f.append(v);class _{constructor(e,t,o){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),o&&this.setDesc(o)}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,n.saveCharacter)(),console.log("Triggered ".concat(t.name,"."))})),this}setDesc(e){return this.element.title=e,this.description=e,this}}t.Hack=_,t.Toggler=class extends _{constructor(e,t,o){var n;super(e,t,o),n=this,this.parent=e,this.element.setAttribute("status","false"),this.setClick(s((function*(){var e,t;n.status=!n.status,n.status?(localStorage.setItem(n.name,"true"),yield null===(e=n.enabled)||void 0===e?void 0:e.call(n)):(localStorage.setItem(n.name,"false"),yield null===(t=n.disabled)||void 0===t?void 0:t.call(n))})))}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:y("Player Hacks"),inventory:y("Inventory Hacks"),location:y("Location Hacks"),pets:y("Pet Hacks"),battle:y("Battle Hacks"),minigames:y("Minigame Hacks"),misc:y("Miscellaneous Hacks"),utility:y("Utility Hacks"),beta:y("Beta Testing | Beta Hacks may damage your account"),patched:y("Patched Hacks")},localStorage.hasTip?(0,l.IndexInfo)("Player already has tip."):(s((function*(){yield r.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,(0,l.IndexInfo)("Player was shown the tip.")),localStorage.getItem("level")&&(n._.player.getLevel=()=>localStorage.getItem("level"),(0,l.IndexInfo)("Loaded menu from localStorage."));var k=!0;document.addEventListener("keydown",(function(e){"Shift"==e.key&&((0,l.IndexInfo)("Shift key was pressed."),1==k?((0,l.IndexInfo)("Hiding cheat menu..."),document.getElementById("cheat-menu").style.display="none",document.getElementById("menu-toggler").style.display="none",k=!1,(0,l.IndexInfo)("Hidden cheat menu.")):((0,l.IndexInfo)("Showing cheat menu..."),document.getElementById("cheat-menu").style.display="block",document.getElementById("menu-toggler").style.display="block",k=!0,(0,l.IndexInfo)("Shown cheat menu.")))})),s((function*(){var e,t;(yield c.License.fire("ProdigyPNP",'\n

        \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 ')).value?yield(0,a.statusMessage)():(yield c.NoLicense.fire("ProdigyPNP License","\n

        \n You need to agree to our license to use our hacks. If you changed your mind and now agree to our license, reload Prodigy.\n

        \n ")).value?document.location="":(null===(e=document.getElementById("cheat-menu"))||void 0===e||e.remove(),null===(t=document.getElementById("menu-toggler"))||void 0===t||t.remove())}))()}.apply(t,n),void 0===a||(e.exports=a)},8238:(e,t,o)=>{var n,a;n=[o,t,o(9820)],a=function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stopFps=t.startFps=void 0;var n=document.createElement("button"),a=!1;t.startFps=function(){var e;a=!0,n.id="fps-counter",null===(e=o.wrapper)||void 0===e||e.prepend(n),setInterval((()=>{var e=_.player.game.fps._framerate;a?n.innerText=e.toFixed(2)+" FPS":n.remove()}),300)},t.stopFps=function(){var e;a=!1,null===(e=document.getElementById("fps-counter"))||void 0===e||e.remove()}}.apply(t,n),void 0===a||(e.exports=a)},112:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}n=[o,t,o(2852),o(4759)],a=function(e,t,o,n){"use strict";function a(e){o._.instance.prodigy.loading(!0);var t=t=>{var a=null!=t?t[e]:null;if(null!==a&&void 0!==a.house&&null!==a.house){o._.instance.prodigy.loading(!1);var r=o._.cloneDeep(o._.player.house);return r.setItems(a.house),void 0!==a.data.allowsHouseVisitors&&null!==a.data.allowsHouseVisitors&&a.data.allowsHouseVisitors?o._.instance.prodigy.world._("house",null,null,{house:r,getAllowsHouseVisitors:()=>void 0!==a.data.allowsHouseVisitors&&null!==a.data.allowsHouseVisitors&&a.data.allowsHouseVisitors,setAllowsHouseVisitors:e=>{a.data.allowsHouseVisitors=e}}):n.Swal.fire("Teleporting to ".concat(e," is not allowed."),"Try another user.","error")}};return o._.network.getCharData(e.toString(),["house","data"],t,t),n.Toast.fire("Teleported to house","You have been teleported to the house!","success")}Object.defineProperty(t,"__esModule",{value:!0}),t.getPet=t.teleportToHouse=t.toHouse=t.getMemberModule=t.runeify=t.itemify=t.ids=t.names=void 0,t.names=["Boots","Buddies","Fossils","Hats","Items","Key Items","Tower Town Frames","Tower Town Interiors","Mounts","Outfits","Relics","Weapons","Currencies"],t.ids=["boots","follow","fossil","hat","item","key","mathTownFrame","mathTownInterior","mount","outfit","spellRelic","weapon","currency"],t.itemify=(e,t)=>e.map((e=>({ID:e.ID,N:t}))).filter((e=>void 0!==e)),t.runeify=(e,t)=>e.map((e=>({ID:e.ID,quantity:t}))).filter((e=>void 0!==e)),t.getMemberModule=function(){return o._.player.hasMembership.toString().split('"')[1]},t.toHouse=function(e){if(o._.player.userID!==e){var t=o._.instance.prodigy.friendsListNetworkHandler.friendsList.length,r=o._.instance.prodigy.friendsListNetworkHandler.classList.length;o._.instance.prodigy.gameContainer.get("2e1-e659").create("house-visit","click","hub",t,r,null,null,e).broadcast()}var s=o._.instance.prodigy.world.getZone(o._.instance.prodigy.world.getCurrentZone());return s?s.handleLeaving(2,(()=>a(e))):n.Swal.fire({title:"Error",text:"You are not in a zone!",icon:"error"})},t.teleportToHouse=a;var s=function(){var e,t=(e=function*(e){return(yield n.Swal.fire({input:"select",inputOptions:new Map(o._.player.kennel.data.map(((e,t)=>{var n,a,r;return[t.toString(),"Level ".concat(e.level," - ").concat(null!==(n=null!==(a=e.nickname)&&void 0!==a?a:null===(r=o._.gameData.pet.find((t=>+t.ID==+e.ID)))||void 0===r?void 0:r.data.name)&&void 0!==n?n:"Unknown")]}))),title:"Choose Pet",text:e})).value},function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))});return function(e){return t.apply(this,arguments)}}();t.getPet=s}.apply(t,n),void 0===a||(e.exports=a)},2868:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}n=[o,t,o(2852),o(4759)],void 0===(a=function(e,t,o,n){"use strict";window.addEventListener("keydown",(e=>{switch(e.which){case 192:o._.instance.prodigy.open.menuCloseAll();break;case 220:var t=function(){var e,t=(e=function*(){if(!(yield n.Confirm.fire("Kit","Would you like to equip Celestial Gear?")).value)return console.log("Cancelled");o._.player.equipment.setHat(200),o._.player.equipment.setBoots(93),o._.player.equipment.setOutfit(161),o._.player.equipment.setWeapon(196),o._.player.appearanceChanged=!0,n.Toast.fire("Success!","You are now wearing Celestial Armor and wielding a Dual Blade.","success")},function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))});return function(){return t.apply(this,arguments)}}();t()}}))}.apply(t,n))||(e.exports=a)},4719:(e,t,o)=>{var n;n=function(e,t){"use strict";function o(e,o){return""==e||null==e?console.log("["+t.LogPrefix+":unknown] "+o):console.log("["+t.LogPrefix+":"+e+"] "+o)}function n(e,t,n){return o(t,"*"+e.toUpperCase()+"* "+n)}Object.defineProperty(t,"__esModule",{value:!0}),t.UtilityError=t.UtilitySuccess=t.UtilityInfo=t.PlayerError=t.PlayerSuccess=t.PlayerInfo=t.PetsError=t.PetsSuccess=t.PetsInfo=t.PatchedError=t.PatchedSuccess=t.PatchedInfo=t.MiscError=t.MiscSuccess=t.MiscInfo=t.MinigameError=t.MinigameSuccess=t.MinigameInfo=t.LocationError=t.LocationSuccess=t.LocationInfo=t.InventoryError=t.InventorySuccess=t.InventoryInfo=t.BetaError=t.BetaSuccess=t.BetaInfo=t.BattleError=t.BattleSuccess=t.BattleInfo=t.IndexError=t.IndexSuccess=t.IndexInfo=t.StatusLog=t.ConsoleLog=t.LogPrefix=void 0,t.LogPrefix="CheatGUI",t.ConsoleLog=o,t.StatusLog=n,t.IndexInfo=function(e){return n("info","index.ts",e)},t.IndexSuccess=function(e){return n("success","index.ts",e)},t.IndexError=function(e){return n("error","index.ts",e)},t.BattleInfo=function(e){return n("info","battle.ts",e)},t.BattleSuccess=function(e){return n("success","battle.ts",e)},t.BattleError=function(e){return n("error","battle.ts",e)},t.BetaInfo=function(e){return n("info","beta.ts",e)},t.BetaSuccess=function(e){return n("success","beta.ts",e)},t.BetaError=function(e){return n("error","beta.ts",e)},t.InventoryInfo=function(e){return n("info","inventory.ts",e)},t.InventorySuccess=function(e){return n("success","inventory.ts",e)},t.InventoryError=function(e){return n("error","inventory.ts",e)},t.LocationInfo=function(e){return n("info","location.ts",e)},t.LocationSuccess=function(e){return n("success","location.ts",e)},t.LocationError=function(e){return n("error","location.ts",e)},t.MinigameInfo=function(e){return n("info","minigame.ts",e)},t.MinigameSuccess=function(e){return n("success","minigame.ts",e)},t.MinigameError=function(e){return n("error","minigame.ts",e)},t.MiscInfo=function(e){return n("info","misc.ts",e)},t.MiscSuccess=function(e){return n("success","misc.ts",e)},t.MiscError=function(e){return n("error","misc.ts",e)},t.PatchedInfo=function(e){return n("info","patched.ts",e)},t.PatchedSuccess=function(e){return n("success","patched.ts",e)},t.PatchedError=function(e){return n("error","patched.ts",e)},t.PetsInfo=function(e){return n("info","pets.ts",e)},t.PetsSuccess=function(e){return n("success","pets.ts",e)},t.PetsError=function(e){return n("error","pets.ts",e)},t.PlayerInfo=function(e){return n("info","player.ts",e)},t.PlayerSuccess=function(e){return n("success","player.ts",e)},t.PlayerError=function(e){return n("error","player.ts",e)},t.UtilityInfo=function(e){return n("info","utility.ts",e)},t.UtilitySuccess=function(e){return n("success","utility.ts",e)},t.UtilityError=function(e){return n("error","utility.ts",e)}}.apply(t,[o,t]),void 0===n||(e.exports=n)},3131:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))}}n=[o,t,o(2852)],a=function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PopupInterval=void 0;var n=!1;t.PopupInterval=function(e){n=e},s((function*(){setInterval(s((function*(){n&&o._.instance.prodigy.open.menuCloseAll()})),200)}))()}.apply(t,n),void 0===a||(e.exports=a)},3526:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}n=[o,t,o(4759)],a=function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.statusMessage=void 0,t.statusMessage=function(){fetch("https://raw.githubusercontent.com/ProdigyPNP/ProdigyMathGameHacking/master/cheatGUI/statusmessage.json?updated=".concat(Date.now())).then((e=>e.json())).then(function(){var e,t=(e=function*(e){if(!1===e.enabled.value)return console.log("Status message is disabled.");yield o.Swal.fire({title:e.get("title"),html:e.get("html"),icon:e.get("icon")})},function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))});return function(e){return t.apply(this,arguments)}}())}}.apply(t,n),void 0===a||(e.exports=a)},4759:function(e,t,o){var n,a,r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};n=[o,t,o(6455)],a=function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NoLicense=t.License=t.Info=t.Confirm=t.Toast=t.NumberInput=t.Input=t.Swal=void 0,o=r(o),t.Swal=o.default,t.Input=t.Swal.mixin({input:"text",showCancelButton:!0,showConfirmButton:!0,toast:!1}),t.NumberInput=t.Input.mixin({toast:!1,input:"number"}),t.Toast=t.Swal.mixin({toast:!0,position:"bottom"}),t.Confirm=t.Swal.mixin({icon:"warning",showCancelButton:!0,toast:!1,confirmButtonText:"Confirm",cancelButtonText:"Cancel"}),t.Info=t.Swal.mixin({icon:"info",showCancelButton:!1,toast:!1}),t.License=t.Swal.mixin({icon:"info",showCancelButton:!0,toast:!1,confirmButtonText:"Agree",cancelButtonText:"Disagree"}),t.NoLicense=t.Swal.mixin({icon:"error",showCancelButton:!0,toast:!1,confirmButtonText:"Reload",cancelButtonText:"Play without hacks"})}.apply(t,n),void 0===a||(e.exports=a)},2852:(e,t,o)=>{var n;n=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.current=t.player=t._=void 0,t._=window._,t.player=t._.player,t.current=window.Boot.prototype.game._state._current;var o=t._.instance;t.game=o.game,t.prodigy=o.prodigy,t.gameData=t._.instance.game.state.states.get("Boot").gameData,t.getItem=(e,o)=>{var n;return null!==(n=t._.gameData[e].find((e=>e.ID===o)))&&void 0!==n?n: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,[o,t]),void 0===n||(e.exports=n)},450:(e,t,o)=>{"use strict";o.d(t,{Z:()=>i});var n=o(8081),a=o.n(n),r=o(3645),s=o.n(r)()(a());s.push([e.id,"@import url(https://fonts.googleapis.com/css?family=Arvo:400,700|Sen:400,700,800&display=swap&subset=latin-ext);"]),s.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;font-size:23px;height:26px;width:50px;border:1px solid rgba(0,0,0,.1)}#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 #fps-counter{z-index:2;position:absolute;border-radius:3px;background-color:rgba(255,255,255,.7333333333);transition:background-color .15s;width:130px;height:26px;font-size:23px;border:1px solid rgba(0,0,0,.1);margin-left:83%}#game-wrapper #fps-counter:hover{background-color:rgba(221,221,221,.7333333333)}#game-wrapper #fps-counter: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:rgba(0,0,0,.55);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;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 i=s},3645:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var o="",n=void 0!==t[5];return t[4]&&(o+="@supports (".concat(t[4],") {")),t[2]&&(o+="@media ".concat(t[2]," {")),n&&(o+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),o+=e(t),n&&(o+="}"),t[2]&&(o+="}"),t[4]&&(o+="}"),o})).join("")},t.i=function(e,o,n,a,r){"string"==typeof e&&(e=[[null,e,void 0]]);var s={};if(n)for(var i=0;i0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=r),o&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=o):u[2]=o),a&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=a):u[4]="".concat(a)),t.push(u))}},t}},8081:e=>{"use strict";e.exports=function(e){return e[1]}},1227:(e,t,o)=>{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 o="color: "+this.color;t.splice(1,0,o,"color: inherit");let n=0,a=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(n++,"%c"===e&&(a=n))})),t.splice(a,0,o)},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=o(2447)(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},2447:(e,t,o)=>{e.exports=function(e){function t(e){let o,a,r,s=null;function i(...e){if(!i.enabled)return;const n=i,a=Number(new Date),r=a-(o||a);n.diff=r,n.prev=o,n.curr=a,o=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,((o,a)=>{if("%%"===o)return"%";s++;const r=t.formatters[a];if("function"==typeof r){const t=e[s];o=r.call(n,t),e.splice(s,1),s--}return o})),t.formatArgs.call(n,e),(n.log||t.log).apply(n,e)}return i.namespace=e,i.useColors=t.useColors(),i.color=t.selectColor(e),i.extend=n,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 n(e,o){const n=t(this.namespace+(void 0===o?":":o)+e);return n.log=this.log,n}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 o;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const n=("string"==typeof e?e:"").split(/[\s,]+/),a=n.length;for(o=0;o{t[o]=e[o]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let o=0;for(let t=0;t{var t=1e3,o=60*t,n=60*o,a=24*n;function r(e,t,o,n){var a=t>=1.5*o;return Math.round(e/o)+" "+n+(a?"s":"")}e.exports=function(e,s){s=s||{};var i,c,l=typeof e;if("string"===l&&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*n;case"minutes":case"minute":case"mins":case"min":case"m":return s*o;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"===l&&isFinite(e))return s.long?(i=e,(c=Math.abs(i))>=a?r(i,c,a,"day"):c>=n?r(i,c,n,"hour"):c>=o?r(i,c,o,"minute"):c>=t?r(i,c,t,"second"):i+" ms"):function(e){var r=Math.abs(e);return r>=a?Math.round(e/a)+"d":r>=n?Math.round(e/n)+"h":r>=o?Math.round(e/o)+"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,o)=>{"use strict";o.r(t),o.d(t,{default:()=>y});var n=o(3379),a=o.n(n),r=o(7795),s=o.n(r),i=o(569),c=o.n(i),l=o(3565),u=o.n(l),d=o(9216),p=o.n(d),h=o(4589),m=o.n(h),f=o(450),g={};g.styleTagTransform=m(),g.setAttributes=u(),g.insert=c().bind(null,"head"),g.domAPI=s(),g.insertStyleElement=p(),a()(f.Z,g);const y=f.Z&&f.Z.locals?f.Z.locals:void 0},3379:e=>{"use strict";var t=[];function o(e){for(var o=-1,n=0;n{"use strict";var t={};e.exports=function(e,o){var n=function(e){if(void 0===t[e]){var o=document.querySelector(e);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(e){o=null}t[e]=o}return t[e]}(e);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(o)}},9216:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},3565:(e,t,o)=>{"use strict";e.exports=function(e){var t=o.nc;t&&e.setAttribute("nonce",t)}},7795:e=>{"use strict";e.exports=function(e){var t=e.insertStyleElement(e);return{update:function(o){!function(e,t,o){var n="";o.supports&&(n+="@supports (".concat(o.supports,") {")),o.media&&(n+="@media ".concat(o.media," {"));var a=void 0!==o.layer;a&&(n+="@layer".concat(o.layer.length>0?" ".concat(o.layer):""," {")),n+=o.css,a&&(n+="}"),o.media&&(n+="}"),o.supports&&(n+="}");var r=o.sourceMap;r&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(r))))," */")),t.styleTagTransform(n,e,t.options)}(t,e,o)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},4589:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},6455:function(e){e.exports=function(){"use strict";const e="SweetAlert2:",t=e=>e.charAt(0).toUpperCase()+e.slice(1),o=t=>{console.warn("".concat(e," ").concat("object"==typeof t?t.join(" "):t))},n=t=>{console.error("".concat(e," ").concat(t))},a=[],r=(e,t)=>{var n;n='"'.concat(e,'" is deprecated and will be removed in the next major release. Please use "').concat(t,'" instead.'),a.includes(n)||(a.push(n),o(n))},s=e=>"function"==typeof e?e():e,i=e=>e&&"function"==typeof e.toPromise,c=e=>i(e)?e.toPromise():Promise.resolve(e),l=e=>e&&Promise.resolve(e)===e,u={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,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",color:void 0,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,willOpen:void 0,didOpen:void 0,didRender:void 0,willClose:void 0,didClose:void 0,didDestroy:void 0,scrollbarPadding:!0},d=["allowEscapeKey","allowOutsideClick","background","buttonsStyling","cancelButtonAriaLabel","cancelButtonColor","cancelButtonText","closeButtonAriaLabel","closeButtonHtml","color","confirmButtonAriaLabel","confirmButtonColor","confirmButtonText","currentProgressStep","customClass","denyButtonAriaLabel","denyButtonColor","denyButtonText","didClose","didDestroy","footer","hideClass","html","icon","iconColor","iconHtml","imageAlt","imageHeight","imageUrl","imageWidth","preConfirm","preDeny","progressSteps","returnFocus","reverseButtons","showCancelButton","showCloseButton","showConfirmButton","showDenyButton","text","title","titleText","willClose"],p={},h=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],m=e=>Object.prototype.hasOwnProperty.call(u,e),f=e=>-1!==d.indexOf(e),g=e=>p[e],y=e=>{m(e)||o('Unknown parameter "'.concat(e,'"'))},w=e=>{h.includes(e)&&o('The parameter "'.concat(e,'" is incompatible with toasts'))},b=e=>{g(e)&&r(e,g(e))},v=e=>{const t={};for(const o in e)t[e[o]]="swal2-"+e[o];return t},_=v(["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","show","hide","close","title","html-container","actions","confirm","deny","cancel","default-outline","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","input-label","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loader","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error","no-war"]),k=v(["success","warning","info","question","error"]),C=()=>document.body.querySelector(".".concat(_.container)),x=e=>{const t=C();return t?t.querySelector(e):null},E=e=>x(".".concat(e)),S=()=>E(_.popup),T=()=>E(_.icon),P=()=>E(_.title),A=()=>E(_["html-container"]),I=()=>E(_.image),D=()=>E(_["progress-steps"]),B=()=>E(_["validation-message"]),O=()=>x(".".concat(_.actions," .").concat(_.confirm)),R=()=>x(".".concat(_.actions," .").concat(_.deny)),M=()=>x(".".concat(_.loader)),L=()=>x(".".concat(_.actions," .").concat(_.cancel)),N=()=>E(_.actions),j=()=>E(_.footer),H=()=>E(_["timer-progress-bar"]),F=()=>E(_.close),q=()=>{const e=Array.from(S().querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])')).sort(((e,t)=>{const o=parseInt(e.getAttribute("tabindex")),n=parseInt(t.getAttribute("tabindex"));return o>n?1:o"-1"!==e.getAttribute("tabindex")));return(e=>{const t=[];for(let o=0;ore(e)))},U=()=>G(document.body,_.shown)&&!G(document.body,_["toast-shown"])&&!G(document.body,_["no-backdrop"]),Y=()=>S()&&G(S(),_.toast),z={previousBodyPadding:null},W=(e,t)=>{if(e.textContent="",t){const o=(new DOMParser).parseFromString(t,"text/html");Array.from(o.querySelector("head").childNodes).forEach((t=>{e.appendChild(t)})),Array.from(o.querySelector("body").childNodes).forEach((t=>{e.appendChild(t)}))}},G=(e,t)=>{if(!t)return!1;const o=t.split(/\s+/);for(let t=0;t{if(((e,t)=>{Array.from(e.classList).forEach((o=>{Object.values(_).includes(o)||Object.values(k).includes(o)||Object.values(t.showClass).includes(o)||e.classList.remove(o)}))})(e,t),t.customClass&&t.customClass[n]){if("string"!=typeof t.customClass[n]&&!t.customClass[n].forEach)return o("Invalid type of customClass.".concat(n,'! Expected string or iterable object, got "').concat(typeof t.customClass[n],'"'));J(e,t.customClass[n])}},K=(e,t)=>{if(!t)return null;switch(t){case"select":case"textarea":case"file":return e.querySelector(".".concat(_.popup," > .").concat(_[t]));case"checkbox":return e.querySelector(".".concat(_.popup," > .").concat(_.checkbox," input"));case"radio":return e.querySelector(".".concat(_.popup," > .").concat(_.radio," input:checked"))||e.querySelector(".".concat(_.popup," > .").concat(_.radio," input:first-child"));case"range":return e.querySelector(".".concat(_.popup," > .").concat(_.range," input"));default:return e.querySelector(".".concat(_.popup," > .").concat(_.input))}},$=e=>{if(e.focus(),"file"!==e.type){const t=e.value;e.value="",e.value=t}},Z=(e,t,o)=>{e&&t&&("string"==typeof t&&(t=t.split(/\s+/).filter(Boolean)),t.forEach((t=>{Array.isArray(e)?e.forEach((e=>{o?e.classList.add(t):e.classList.remove(t)})):o?e.classList.add(t):e.classList.remove(t)})))},J=(e,t)=>{Z(e,t,!0)},X=(e,t)=>{Z(e,t,!1)},Q=(e,t)=>{const o=Array.from(e.children);for(let e=0;e{o==="".concat(parseInt(o))&&(o=parseInt(o)),o||0===parseInt(o)?e.style[t]="number"==typeof o?"".concat(o,"px"):o:e.style.removeProperty(t)},te=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"flex";e.style.display=t},oe=e=>{e.style.display="none"},ne=(e,t,o,n)=>{const a=e.querySelector(t);a&&(a.style[o]=n)},ae=function(e,t){t?te(e,arguments.length>2&&void 0!==arguments[2]?arguments[2]:"flex"):oe(e)},re=e=>!(!e||!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)),se=e=>!!(e.scrollHeight>e.clientHeight),ie=e=>{const t=window.getComputedStyle(e),o=parseFloat(t.getPropertyValue("animation-duration")||"0"),n=parseFloat(t.getPropertyValue("transition-duration")||"0");return o>0||n>0},ce=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const o=H();re(o)&&(t&&(o.style.transition="none",o.style.width="100%"),setTimeout((()=>{o.style.transition="width ".concat(e/1e3,"s linear"),o.style.width="0%"}),10))},le=()=>"undefined"==typeof window||"undefined"==typeof document,ue={},de=e=>new Promise((t=>{if(!e)return t();const o=window.scrollX,n=window.scrollY;ue.restoreFocusTimeout=setTimeout((()=>{ue.previousActiveElement instanceof HTMLElement?(ue.previousActiveElement.focus(),ue.previousActiveElement=null):document.body&&document.body.focus(),t()}),100),window.scrollTo(o,n)})),pe='\n
        \n \n
          \n
          \n \n

          \n
          \n \n \n
          \n \n \n
          \n \n
          \n \n \n
          \n
          \n
          \n \n \n \n
          \n
          \n
          \n
          \n
          \n
          \n').replace(/(^|\n)\s*/g,""),he=()=>{ue.currentInstance.resetValidationMessage()},me=e=>{const t=(()=>{const e=C();return!!e&&(e.remove(),X([document.documentElement,document.body],[_["no-backdrop"],_["toast-shown"],_["has-column"]]),!0)})();if(le())return void n("SweetAlert2 requires document to initialize");const o=document.createElement("div");o.className=_.container,t&&J(o,_["no-transition"]),W(o,pe);const a="string"==typeof(r=e.target)?document.querySelector(r):r;var r;a.appendChild(o),(e=>{const t=S();t.setAttribute("role",e.toast?"alert":"dialog"),t.setAttribute("aria-live",e.toast?"polite":"assertive"),e.toast||t.setAttribute("aria-modal","true")})(e),(e=>{"rtl"===window.getComputedStyle(e).direction&&J(C(),_.rtl)})(a),(()=>{const e=S(),t=Q(e,_.input),o=Q(e,_.file),n=e.querySelector(".".concat(_.range," input")),a=e.querySelector(".".concat(_.range," output")),r=Q(e,_.select),s=e.querySelector(".".concat(_.checkbox," input")),i=Q(e,_.textarea);t.oninput=he,o.onchange=he,r.onchange=he,s.onchange=he,i.oninput=he,n.oninput=()=>{he(),a.value=n.value},n.onchange=()=>{he(),a.value=n.value}})()},fe=(e,t)=>{e instanceof HTMLElement?t.appendChild(e):"object"==typeof e?ge(e,t):e&&W(t,e)},ge=(e,t)=>{e.jquery?ye(t,e):W(t,e.toString())},ye=(e,t)=>{if(e.textContent="",0 in t)for(let o=0;o in t;o++)e.appendChild(t[o].cloneNode(!0));else e.appendChild(t.cloneNode(!0))},we=(()=>{if(le())return!1;const e=document.createElement("div"),t={WebkitAnimation:"webkitAnimationEnd",animation:"animationend"};for(const o in t)if(Object.prototype.hasOwnProperty.call(t,o)&&void 0!==e.style[o])return t[o];return!1})(),be=(e,t)=>{const o=N(),n=M();t.showConfirmButton||t.showDenyButton||t.showCancelButton?te(o):oe(o),V(o,t,"actions"),function(e,t,o){const n=O(),a=R(),r=L();ve(n,"confirm",o),ve(a,"deny",o),ve(r,"cancel",o),function(e,t,o,n){if(!n.buttonsStyling)return X([e,t,o],_.styled);J([e,t,o],_.styled),n.confirmButtonColor&&(e.style.backgroundColor=n.confirmButtonColor,J(e,_["default-outline"])),n.denyButtonColor&&(t.style.backgroundColor=n.denyButtonColor,J(t,_["default-outline"])),n.cancelButtonColor&&(o.style.backgroundColor=n.cancelButtonColor,J(o,_["default-outline"]))}(n,a,r,o),o.reverseButtons&&(o.toast?(e.insertBefore(r,n),e.insertBefore(a,n)):(e.insertBefore(r,t),e.insertBefore(a,t),e.insertBefore(n,t)))}(o,n,t),W(n,t.loaderHtml),V(n,t,"loader")};function ve(e,o,n){ae(e,n["show".concat(t(o),"Button")],"inline-block"),W(e,n["".concat(o,"ButtonText")]),e.setAttribute("aria-label",n["".concat(o,"ButtonAriaLabel")]),e.className=_[o],V(e,n,"".concat(o,"Button")),J(e,n["".concat(o,"ButtonClass")])}const _e=(e,t)=>{const n=C();n&&(function(e,t){"string"==typeof t?e.style.background=t:t||J([document.documentElement,document.body],_["no-backdrop"])}(n,t.backdrop),function(e,t){t in _?J(e,_[t]):(o('The "position" parameter is not valid, defaulting to "center"'),J(e,_.center))}(n,t.position),function(e,t){if(t&&"string"==typeof t){const o="grow-".concat(t);o in _&&J(e,_[o])}}(n,t.grow),V(n,t,"container"))};var ke={awaitingPromise:new WeakMap,promise:new WeakMap,innerParams:new WeakMap,domCache:new WeakMap};const Ce=["input","file","range","select","radio","checkbox","textarea"],xe=e=>{if(!De[e.input])return n('Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "'.concat(e.input,'"'));const t=Ae(e.input),o=De[e.input](t,e);te(t),setTimeout((()=>{$(o)}))},Ee=(e,t)=>{const o=K(S(),e);if(o){(e=>{for(let t=0;t{const t=Ae(e.input);"object"==typeof e.customClass&&J(t,e.customClass.input)},Te=(e,t)=>{e.placeholder&&!t.inputPlaceholder||(e.placeholder=t.inputPlaceholder)},Pe=(e,t,o)=>{if(o.inputLabel){e.id=_.input;const n=document.createElement("label"),a=_["input-label"];n.setAttribute("for",e.id),n.className=a,"object"==typeof o.customClass&&J(n,o.customClass.inputLabel),n.innerText=o.inputLabel,t.insertAdjacentElement("beforebegin",n)}},Ae=e=>Q(S(),_[e]||_.input),Ie=(e,t)=>{["string","number"].includes(typeof t)?e.value="".concat(t):l(t)||o('Unexpected type of inputValue! Expected "string", "number" or "Promise", got "'.concat(typeof t,'"'))},De={};De.text=De.email=De.password=De.number=De.tel=De.url=(e,t)=>(Ie(e,t.inputValue),Pe(e,e,t),Te(e,t),e.type=t.input,e),De.file=(e,t)=>(Pe(e,e,t),Te(e,t),e),De.range=(e,t)=>{const o=e.querySelector("input"),n=e.querySelector("output");return Ie(o,t.inputValue),o.type=t.input,Ie(n,t.inputValue),Pe(o,e,t),e},De.select=(e,t)=>{if(e.textContent="",t.inputPlaceholder){const o=document.createElement("option");W(o,t.inputPlaceholder),o.value="",o.disabled=!0,o.selected=!0,e.appendChild(o)}return Pe(e,e,t),e},De.radio=e=>(e.textContent="",e),De.checkbox=(e,t)=>{const o=K(S(),"checkbox");o.value="1",o.id=_.checkbox,o.checked=Boolean(t.inputValue);const n=e.querySelector("span");return W(n,t.inputPlaceholder),o},De.textarea=(e,t)=>{Ie(e,t.inputValue),Te(e,t),Pe(e,e,t);return setTimeout((()=>{if("MutationObserver"in window){const t=parseInt(window.getComputedStyle(S()).width);new MutationObserver((()=>{const o=e.offsetWidth+(n=e,parseInt(window.getComputedStyle(n).marginLeft)+parseInt(window.getComputedStyle(n).marginRight));var n;S().style.width=o>t?"".concat(o,"px"):null})).observe(e,{attributes:!0,attributeFilter:["style"]})}})),e};const Be=(e,t)=>{const o=A();V(o,t,"htmlContainer"),t.html?(fe(t.html,o),te(o,"block")):t.text?(o.textContent=t.text,te(o,"block")):oe(o),((e,t)=>{const o=S(),n=ke.innerParams.get(e),a=!n||t.input!==n.input;Ce.forEach((e=>{const n=Q(o,_[e]);Ee(e,t.inputAttributes),n.className=_[e],a&&oe(n)})),t.input&&(a&&xe(t),Se(t))})(e,t)},Oe=(e,t)=>{for(const o in k)t.icon!==o&&X(e,k[o]);J(e,k[t.icon]),Le(e,t),Re(),V(e,t,"icon")},Re=()=>{const e=S(),t=window.getComputedStyle(e).getPropertyValue("background-color"),o=e.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");for(let e=0;e{let o,n=e.innerHTML;t.iconHtml?o=Ne(t.iconHtml):"success"===t.icon?(o='\n
          \n \n
          \n
          \n',n=n.replace(/ style=".*?"/g,"")):o="error"===t.icon?'\n \n \n \n \n':Ne({question:"?",warning:"!",info:"i"}[t.icon]),n.trim()!==o.trim()&&W(e,o)},Le=(e,t)=>{if(t.iconColor){e.style.color=t.iconColor,e.style.borderColor=t.iconColor;for(const o of[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"])ne(e,o,"backgroundColor",t.iconColor);ne(e,".swal2-success-ring","borderColor",t.iconColor)}},Ne=e=>'
          ').concat(e,"
          "),je=e=>{const t=document.createElement("li");return J(t,_["progress-step"]),W(t,e),t},He=e=>{const t=document.createElement("li");return J(t,_["progress-step-line"]),e.progressStepsDistance&&ee(t,"width",e.progressStepsDistance),t},Fe=(e,t)=>{e.className="".concat(_.popup," ").concat(re(e)?t.showClass.popup:""),t.toast?(J([document.documentElement,document.body],_["toast-shown"]),J(e,_.toast)):J(e,_.modal),V(e,t,"popup"),"string"==typeof t.customClass&&J(e,t.customClass),t.icon&&J(e,_["icon-".concat(t.icon)])},qe=(e,t)=>{((e,t)=>{const o=C(),n=S();t.toast?(ee(o,"width",t.width),n.style.width="100%",n.insertBefore(M(),T())):ee(n,"width",t.width),ee(n,"padding",t.padding),t.color&&(n.style.color=t.color),t.background&&(n.style.background=t.background),oe(B()),Fe(n,t)})(0,t),_e(0,t),((e,t)=>{const n=D();if(!t.progressSteps||0===t.progressSteps.length)return oe(n);te(n),n.textContent="",t.currentProgressStep>=t.progressSteps.length&&o("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),t.progressSteps.forEach(((e,o)=>{const a=je(e);if(n.appendChild(a),o===t.currentProgressStep&&J(a,_["active-progress-step"]),o!==t.progressSteps.length-1){const e=He(t);n.appendChild(e)}}))})(0,t),((e,t)=>{const o=ke.innerParams.get(e),a=T();if(o&&t.icon===o.icon)return Me(a,t),void Oe(a,t);if(t.icon||t.iconHtml){if(t.icon&&-1===Object.keys(k).indexOf(t.icon))return n('Unknown icon! Expected "success", "error", "warning", "info" or "question", got "'.concat(t.icon,'"')),void oe(a);te(a),Me(a,t),Oe(a,t),J(a,t.showClass.icon)}else oe(a)})(e,t),((e,t)=>{const o=I();if(!t.imageUrl)return oe(o);te(o,""),o.setAttribute("src",t.imageUrl),o.setAttribute("alt",t.imageAlt),ee(o,"width",t.imageWidth),ee(o,"height",t.imageHeight),o.className=_.image,V(o,t,"image")})(0,t),((e,t)=>{const o=P();ae(o,t.title||t.titleText,"block"),t.title&&fe(t.title,o),t.titleText&&(o.innerText=t.titleText),V(o,t,"title")})(0,t),((e,t)=>{const o=F();W(o,t.closeButtonHtml),V(o,t,"closeButton"),ae(o,t.showCloseButton),o.setAttribute("aria-label",t.closeButtonAriaLabel)})(0,t),Be(e,t),be(0,t),((e,t)=>{const o=j();ae(o,t.footer),t.footer&&fe(t.footer,o),V(o,t,"footer")})(0,t),"function"==typeof t.didRender&&t.didRender(S())},Ue=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),Ye=()=>{Array.from(document.body.children).forEach((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")}))},ze=["swal-title","swal-html","swal-footer"],We=e=>{const t={};return Array.from(e.querySelectorAll("swal-param")).forEach((e=>{Xe(e,["name","value"]);const o=e.getAttribute("name"),n=e.getAttribute("value");"boolean"==typeof u[o]&&"false"===n&&(t[o]=!1),"object"==typeof u[o]&&(t[o]=JSON.parse(n))})),t},Ge=e=>{const o={};return Array.from(e.querySelectorAll("swal-button")).forEach((e=>{Xe(e,["type","color","aria-label"]);const n=e.getAttribute("type");o["".concat(n,"ButtonText")]=e.innerHTML,o["show".concat(t(n),"Button")]=!0,e.hasAttribute("color")&&(o["".concat(n,"ButtonColor")]=e.getAttribute("color")),e.hasAttribute("aria-label")&&(o["".concat(n,"ButtonAriaLabel")]=e.getAttribute("aria-label"))})),o},Ve=e=>{const t={},o=e.querySelector("swal-image");return o&&(Xe(o,["src","width","height","alt"]),o.hasAttribute("src")&&(t.imageUrl=o.getAttribute("src")),o.hasAttribute("width")&&(t.imageWidth=o.getAttribute("width")),o.hasAttribute("height")&&(t.imageHeight=o.getAttribute("height")),o.hasAttribute("alt")&&(t.imageAlt=o.getAttribute("alt"))),t},Ke=e=>{const t={},o=e.querySelector("swal-icon");return o&&(Xe(o,["type","color"]),o.hasAttribute("type")&&(t.icon=o.getAttribute("type")),o.hasAttribute("color")&&(t.iconColor=o.getAttribute("color")),t.iconHtml=o.innerHTML),t},$e=e=>{const t={},o=e.querySelector("swal-input");o&&(Xe(o,["type","label","placeholder","value"]),t.input=o.getAttribute("type")||"text",o.hasAttribute("label")&&(t.inputLabel=o.getAttribute("label")),o.hasAttribute("placeholder")&&(t.inputPlaceholder=o.getAttribute("placeholder")),o.hasAttribute("value")&&(t.inputValue=o.getAttribute("value")));const n=Array.from(e.querySelectorAll("swal-input-option"));return n.length&&(t.inputOptions={},n.forEach((e=>{Xe(e,["value"]);const o=e.getAttribute("value"),n=e.innerHTML;t.inputOptions[o]=n}))),t},Ze=(e,t)=>{const o={};for(const n in t){const a=t[n],r=e.querySelector(a);r&&(Xe(r,[]),o[a.replace(/^swal-/,"")]=r.innerHTML.trim())}return o},Je=e=>{const t=ze.concat(["swal-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Array.from(e.children).forEach((e=>{const n=e.tagName.toLowerCase();-1===t.indexOf(n)&&o("Unrecognized element <".concat(n,">"))}))},Xe=(e,t)=>{Array.from(e.attributes).forEach((n=>{-1===t.indexOf(n.name)&&o(['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.")])}))};var Qe={email:(e,t)=>/^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]{2,24}$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid email address"),url:(e,t)=>/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid URL")};function et(e){(function(e){e.inputValidator||Object.keys(Qe).forEach((t=>{e.input===t&&(e.inputValidator=Qe[t])}))})(e),e.showLoaderOnConfirm&&!e.preConfirm&&o("showLoaderOnConfirm is set to true, but preConfirm is not defined.\nshowLoaderOnConfirm should be used together with preConfirm, see usage example:\nhttps://sweetalert2.github.io/#ajax-request"),function(e){(!e.target||"string"==typeof e.target&&!document.querySelector(e.target)||"string"!=typeof e.target&&!e.target.appendChild)&&(o('Target parameter is not valid, defaulting to "body"'),e.target="body")}(e),"string"==typeof e.title&&(e.title=e.title.split("\n").join("
          ")),me(e)}class tt{constructor(e,t){this.callback=e,this.remaining=t,this.running=!1,this.start()}start(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}stop(){return this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=(new Date).getTime()-this.started.getTime()),this.remaining}increase(e){const t=this.running;return t&&this.stop(),this.remaining+=e,t&&this.start(),this.remaining}getTimerLeft(){return this.running&&(this.stop(),this.start()),this.remaining}isRunning(){return this.running}}const ot=()=>{null===z.previousBodyPadding&&document.body.scrollHeight>window.innerHeight&&(z.previousBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight="".concat(z.previousBodyPadding+(()=>{const e=document.createElement("div");e.className=_["scrollbar-measure"],document.body.appendChild(e);const t=e.getBoundingClientRect().width-e.clientWidth;return document.body.removeChild(e),t})(),"px"))},nt=()=>{const e=navigator.userAgent,t=!!e.match(/iPad/i)||!!e.match(/iPhone/i),o=!!e.match(/WebKit/i);if(t&&o&&!e.match(/CriOS/i)){const e=44;S().scrollHeight>window.innerHeight-e&&(C().style.paddingBottom="".concat(e,"px"))}},at=()=>{const e=C();let t;e.ontouchstart=e=>{t=rt(e)},e.ontouchmove=e=>{t&&(e.preventDefault(),e.stopPropagation())}},rt=e=>{const t=e.target,o=C();return!(st(e)||it(e)||t!==o&&(se(o)||"INPUT"===t.tagName||"TEXTAREA"===t.tagName||se(A())&&A().contains(t)))},st=e=>e.touches&&e.touches.length&&"stylus"===e.touches[0].touchType,it=e=>e.touches&&e.touches.length>1,ct=e=>{const t=C(),o=S();"function"==typeof e.willOpen&&e.willOpen(o);const n=window.getComputedStyle(document.body).overflowY;pt(t,o,e),setTimeout((()=>{ut(t,o)}),10),U()&&(dt(t,e.scrollbarPadding,n),Array.from(document.body.children).forEach((e=>{e===C()||e.contains(C())||(e.hasAttribute("aria-hidden")&&e.setAttribute("data-previous-aria-hidden",e.getAttribute("aria-hidden")),e.setAttribute("aria-hidden","true"))}))),Y()||ue.previousActiveElement||(ue.previousActiveElement=document.activeElement),"function"==typeof e.didOpen&&setTimeout((()=>e.didOpen(o))),X(t,_["no-transition"])},lt=e=>{const t=S();if(e.target!==t)return;const o=C();t.removeEventListener(we,lt),o.style.overflowY="auto"},ut=(e,t)=>{we&&ie(t)?(e.style.overflowY="hidden",t.addEventListener(we,lt)):e.style.overflowY="auto"},dt=(e,t,o)=>{(()=>{if((/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)&&!G(document.body,_.iosfix)){const e=document.body.scrollTop;document.body.style.top="".concat(-1*e,"px"),J(document.body,_.iosfix),at(),nt()}})(),t&&"hidden"!==o&&ot(),setTimeout((()=>{e.scrollTop=0}))},pt=(e,t,o)=>{J(e,o.showClass.backdrop),t.style.setProperty("opacity","0","important"),te(t,"grid"),setTimeout((()=>{J(t,o.showClass.popup),t.style.removeProperty("opacity")}),10),J([document.documentElement,document.body],_.shown),o.heightAuto&&o.backdrop&&!o.toast&&J([document.documentElement,document.body],_["height-auto"])},ht=e=>{let t=S();t||new To,t=S();const o=M();Y()?oe(T()):mt(t,e),te(o),t.setAttribute("data-loading","true"),t.setAttribute("aria-busy","true"),t.focus()},mt=(e,t)=>{const o=N(),n=M();!t&&re(O())&&(t=O()),te(o),t&&(oe(t),n.setAttribute("data-button-to-replace",t.className)),n.parentNode.insertBefore(n,t),J([e,o],_.loading)},ft=e=>e.checked?1:0,gt=e=>e.checked?e.value:null,yt=e=>e.files.length?null!==e.getAttribute("multiple")?e.files:e.files[0]:null,wt=(e,t)=>{const o=S(),a=e=>vt[t.input](o,_t(e),t);i(t.inputOptions)||l(t.inputOptions)?(ht(O()),c(t.inputOptions).then((t=>{e.hideLoading(),a(t)}))):"object"==typeof t.inputOptions?a(t.inputOptions):n("Unexpected type of inputOptions! Expected object, Map or Promise, got ".concat(typeof t.inputOptions))},bt=(e,t)=>{const o=e.getInput();oe(o),c(t.inputValue).then((n=>{o.value="number"===t.input?parseFloat(n)||0:"".concat(n),te(o),o.focus(),e.hideLoading()})).catch((t=>{n("Error in inputValue promise: ".concat(t)),o.value="",te(o),o.focus(),e.hideLoading()}))},vt={select:(e,t,o)=>{const n=Q(e,_.select),a=(e,t,n)=>{const a=document.createElement("option");a.value=n,W(a,t),a.selected=kt(n,o.inputValue),e.appendChild(a)};t.forEach((e=>{const t=e[0],o=e[1];if(Array.isArray(o)){const e=document.createElement("optgroup");e.label=t,e.disabled=!1,n.appendChild(e),o.forEach((t=>a(e,t[1],t[0])))}else a(n,o,t)})),n.focus()},radio:(e,t,o)=>{const n=Q(e,_.radio);t.forEach((e=>{const t=e[0],a=e[1],r=document.createElement("input"),s=document.createElement("label");r.type="radio",r.name=_.radio,r.value=t,kt(t,o.inputValue)&&(r.checked=!0);const i=document.createElement("span");W(i,a),i.className=_.label,s.appendChild(r),s.appendChild(i),n.appendChild(s)}));const a=n.querySelectorAll("input");a.length&&a[0].focus()}},_t=e=>{const t=[];return"undefined"!=typeof Map&&e instanceof Map?e.forEach(((e,o)=>{let n=e;"object"==typeof n&&(n=_t(n)),t.push([o,n])})):Object.keys(e).forEach((o=>{let n=e[o];"object"==typeof n&&(n=_t(n)),t.push([o,n])})),t},kt=(e,t)=>t&&t.toString()===e.toString();function Ct(){const e=ke.innerParams.get(this);if(!e)return;const t=ke.domCache.get(this);oe(t.loader),Y()?e.icon&&te(T()):xt(t),X([t.popup,t.actions],_.loading),t.popup.removeAttribute("aria-busy"),t.popup.removeAttribute("data-loading"),t.confirmButton.disabled=!1,t.denyButton.disabled=!1,t.cancelButton.disabled=!1}const xt=e=>{const t=e.popup.getElementsByClassName(e.loader.getAttribute("data-button-to-replace"));t.length?te(t[0],"inline-block"):!re(O())&&!re(R())&&!re(L())&&oe(e.actions)};var Et={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};const St=()=>O()&&O().click(),Tt=e=>{e.keydownTarget&&e.keydownHandlerAdded&&(e.keydownTarget.removeEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!1)},Pt=(e,t,o)=>{const n=q();if(n.length)return(t+=o)===n.length?t=0:-1===t&&(t=n.length-1),n[t].focus();S().focus()},At=["ArrowRight","ArrowDown"],It=["ArrowLeft","ArrowUp"],Dt=(e,t,o)=>{const n=ke.innerParams.get(e);n&&(t.isComposing||229===t.keyCode||(n.stopKeydownPropagation&&t.stopPropagation(),"Enter"===t.key?Bt(e,t,n):"Tab"===t.key?Ot(t,n):[...At,...It].includes(t.key)?Rt(t.key):"Escape"===t.key&&Mt(t,n,o)))},Bt=(e,t,o)=>{if(s(o.allowEnterKey)&&t.target&&e.getInput()&&t.target instanceof HTMLElement&&t.target.outerHTML===e.getInput().outerHTML){if(["textarea","file"].includes(o.input))return;St(),t.preventDefault()}},Ot=(e,t)=>{const o=e.target,n=q();let a=-1;for(let e=0;e{const t=O(),o=R(),n=L();if(document.activeElement instanceof HTMLElement&&![t,o,n].includes(document.activeElement))return;const a=At.includes(e)?"nextElementSibling":"previousElementSibling";let r=document.activeElement;for(let e=0;e{s(t.allowEscapeKey)&&(e.preventDefault(),o(Ue.esc))};function Lt(e,t,o,n){Y()?Yt(e,n):(de(o).then((()=>Yt(e,n))),Tt(ue)),/^((?!chrome|android).)*safari/i.test(navigator.userAgent)?(t.setAttribute("style","display:none !important"),t.removeAttribute("class"),t.innerHTML=""):t.remove(),U()&&(null!==z.previousBodyPadding&&(document.body.style.paddingRight="".concat(z.previousBodyPadding,"px"),z.previousBodyPadding=null),(()=>{if(G(document.body,_.iosfix)){const e=parseInt(document.body.style.top,10);X(document.body,_.iosfix),document.body.style.top="",document.body.scrollTop=-1*e}})(),Ye()),X([document.documentElement,document.body],[_.shown,_["height-auto"],_["no-backdrop"],_["toast-shown"]])}function Nt(e){e=Ft(e);const t=Et.swalPromiseResolve.get(this),o=jt(this);this.isAwaitingPromise()?e.isDismissed||(Ht(this),t(e)):o&&t(e)}const jt=e=>{const t=S();if(!t)return!1;const o=ke.innerParams.get(e);if(!o||G(t,o.hideClass.popup))return!1;X(t,o.showClass.popup),J(t,o.hideClass.popup);const n=C();return X(n,o.showClass.backdrop),J(n,o.hideClass.backdrop),qt(e,t,o),!0};const Ht=e=>{e.isAwaitingPromise()&&(ke.awaitingPromise.delete(e),ke.innerParams.get(e)||e._destroy())},Ft=e=>void 0===e?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},e),qt=(e,t,o)=>{const n=C(),a=we&&ie(t);"function"==typeof o.willClose&&o.willClose(t),a?Ut(e,t,n,o.returnFocus,o.didClose):Lt(e,n,o.returnFocus,o.didClose)},Ut=(e,t,o,n,a)=>{ue.swalCloseEventFinishedCallback=Lt.bind(null,e,o,n,a),t.addEventListener(we,(function(e){e.target===t&&(ue.swalCloseEventFinishedCallback(),delete ue.swalCloseEventFinishedCallback)}))},Yt=(e,t)=>{setTimeout((()=>{"function"==typeof t&&t.bind(e.params)(),e._destroy()}))};function zt(e,t,o){const n=ke.domCache.get(e);t.forEach((e=>{n[e].disabled=o}))}function Wt(e,t){if(!e)return!1;if("radio"===e.type){const o=e.parentNode.parentNode.querySelectorAll("input");for(let e=0;e{const t={};return Object.keys(e).forEach((n=>{f(n)?t[n]=e[n]:o("Invalid parameter to update: ".concat(n))})),t};const Vt=e=>{Kt(e),delete e.params,delete ue.keydownHandler,delete ue.keydownTarget,delete ue.currentInstance},Kt=e=>{e.isAwaitingPromise()?($t(ke,e),ke.awaitingPromise.set(e,!0)):($t(Et,e),$t(ke,e))},$t=(e,t)=>{for(const o in e)e[o].delete(t)};var Zt=Object.freeze({hideLoading:Ct,disableLoading:Ct,getInput:function(e){const t=ke.innerParams.get(e||this),o=ke.domCache.get(e||this);return o?K(o.popup,t.input):null},close:Nt,isAwaitingPromise:function(){return!!ke.awaitingPromise.get(this)},rejectPromise:function(e){const t=Et.swalPromiseReject.get(this);Ht(this),t&&t(e)},handleAwaitingPromise:Ht,closePopup:Nt,closeModal:Nt,closeToast:Nt,enableButtons:function(){zt(this,["confirmButton","denyButton","cancelButton"],!1)},disableButtons:function(){zt(this,["confirmButton","denyButton","cancelButton"],!0)},enableInput:function(){return Wt(this.getInput(),!1)},disableInput:function(){return Wt(this.getInput(),!0)},showValidationMessage:function(e){const t=ke.domCache.get(this),o=ke.innerParams.get(this);W(t.validationMessage,e),t.validationMessage.className=_["validation-message"],o.customClass&&o.customClass.validationMessage&&J(t.validationMessage,o.customClass.validationMessage),te(t.validationMessage);const n=this.getInput();n&&(n.setAttribute("aria-invalid",!0),n.setAttribute("aria-describedby",_["validation-message"]),$(n),J(n,_.inputerror))},resetValidationMessage:function(){const e=ke.domCache.get(this);e.validationMessage&&oe(e.validationMessage);const t=this.getInput();t&&(t.removeAttribute("aria-invalid"),t.removeAttribute("aria-describedby"),X(t,_.inputerror))},getProgressSteps:function(){return ke.domCache.get(this).progressSteps},update:function(e){const t=S(),n=ke.innerParams.get(this);if(!t||G(t,n.hideClass.popup))return o("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.");const a=Gt(e),r=Object.assign({},n,a);qe(this,r),ke.innerParams.set(this,r),Object.defineProperties(this,{params:{value:Object.assign({},this.params,e),writable:!1,enumerable:!0}})},_destroy:function(){const e=ke.domCache.get(this),t=ke.innerParams.get(this);t?(e.popup&&ue.swalCloseEventFinishedCallback&&(ue.swalCloseEventFinishedCallback(),delete ue.swalCloseEventFinishedCallback),"function"==typeof t.didDestroy&&t.didDestroy(),Vt(this)):Kt(this)}});const Jt=(e,o)=>{const a=ke.innerParams.get(e);if(!a.input)return void n('The "input" parameter is needed to be set when using returnInputValueOn'.concat(t(o)));const r=((e,t)=>{const o=e.getInput();if(!o)return null;switch(t.input){case"checkbox":return ft(o);case"radio":return gt(o);case"file":return yt(o);default:return t.inputAutoTrim?o.value.trim():o.value}})(e,a);a.inputValidator?Xt(e,r,o):e.getInput().checkValidity()?"deny"===o?Qt(e,r):oo(e,r):(e.enableButtons(),e.showValidationMessage(a.validationMessage))},Xt=(e,t,o)=>{const n=ke.innerParams.get(e);e.disableInput(),Promise.resolve().then((()=>c(n.inputValidator(t,n.validationMessage)))).then((n=>{e.enableButtons(),e.enableInput(),n?e.showValidationMessage(n):"deny"===o?Qt(e,t):oo(e,t)}))},Qt=(e,t)=>{const o=ke.innerParams.get(e||void 0);o.showLoaderOnDeny&&ht(R()),o.preDeny?(ke.awaitingPromise.set(e||void 0,!0),Promise.resolve().then((()=>c(o.preDeny(t,o.validationMessage)))).then((o=>{!1===o?(e.hideLoading(),Ht(e)):e.close({isDenied:!0,value:void 0===o?t:o})})).catch((t=>to(e||void 0,t)))):e.close({isDenied:!0,value:t})},eo=(e,t)=>{e.close({isConfirmed:!0,value:t})},to=(e,t)=>{e.rejectPromise(t)},oo=(e,t)=>{const o=ke.innerParams.get(e||void 0);o.showLoaderOnConfirm&&ht(),o.preConfirm?(e.resetValidationMessage(),ke.awaitingPromise.set(e||void 0,!0),Promise.resolve().then((()=>c(o.preConfirm(t,o.validationMessage)))).then((o=>{re(B())||!1===o?(e.hideLoading(),Ht(e)):eo(e,void 0===o?t:o)})).catch((t=>to(e||void 0,t)))):eo(e,t)},no=(e,t,o)=>{t.popup.onclick=()=>{const t=ke.innerParams.get(e);t&&(ao(t)||t.timer||t.input)||o(Ue.close)}},ao=e=>e.showConfirmButton||e.showDenyButton||e.showCancelButton||e.showCloseButton;let ro=!1;const so=e=>{e.popup.onmousedown=()=>{e.container.onmouseup=function(t){e.container.onmouseup=void 0,t.target===e.container&&(ro=!0)}}},io=e=>{e.container.onmousedown=()=>{e.popup.onmouseup=function(t){e.popup.onmouseup=void 0,(t.target===e.popup||e.popup.contains(t.target))&&(ro=!0)}}},co=(e,t,o)=>{t.container.onclick=n=>{const a=ke.innerParams.get(e);ro?ro=!1:n.target===t.container&&s(a.allowOutsideClick)&&o(Ue.backdrop)}},lo=e=>e instanceof Element||(e=>"object"==typeof e&&e.jquery)(e);const uo=()=>{if(ue.timeout)return(()=>{const e=H(),t=parseInt(window.getComputedStyle(e).width);e.style.removeProperty("transition"),e.style.width="100%";const o=t/parseInt(window.getComputedStyle(e).width)*100;e.style.removeProperty("transition"),e.style.width="".concat(o,"%")})(),ue.timeout.stop()},po=()=>{if(ue.timeout){const e=ue.timeout.start();return ce(e),e}};let ho=!1;const mo={};const fo=e=>{for(let t=e.target;t&&t!==document;t=t.parentNode)for(const e in mo){const o=t.getAttribute(e);if(o)return void mo[e].fire({template:o})}};var go=Object.freeze({isValidParameter:m,isUpdatableParameter:f,isDeprecatedParameter:g,argsToParams:e=>{const t={};return"object"!=typeof e[0]||lo(e[0])?["title","html","icon"].forEach(((o,a)=>{const r=e[a];"string"==typeof r||lo(r)?t[o]=r:void 0!==r&&n("Unexpected type of ".concat(o,'! Expected "string" or "Element", got ').concat(typeof r))})):Object.assign(t,e[0]),t},isVisible:()=>re(S()),clickConfirm:St,clickDeny:()=>R()&&R().click(),clickCancel:()=>L()&&L().click(),getContainer:C,getPopup:S,getTitle:P,getHtmlContainer:A,getImage:I,getIcon:T,getInputLabel:()=>E(_["input-label"]),getCloseButton:F,getActions:N,getConfirmButton:O,getDenyButton:R,getCancelButton:L,getLoader:M,getFooter:j,getTimerProgressBar:H,getFocusableElements:q,getValidationMessage:B,isLoading:()=>S().hasAttribute("data-loading"),fire:function(){const e=this;for(var t=arguments.length,o=new Array(t),n=0;nue.timeout&&ue.timeout.getTimerLeft(),stopTimer:uo,resumeTimer:po,toggleTimer:()=>{const e=ue.timeout;return e&&(e.running?uo():po())},increaseTimer:e=>{if(ue.timeout){const t=ue.timeout.increase(e);return ce(t,!0),t}},isTimerRunning:()=>ue.timeout&&ue.timeout.isRunning(),bindClickHandler:function(){mo[arguments.length>0&&void 0!==arguments[0]?arguments[0]:"data-swal-template"]=this,ho||(document.body.addEventListener("click",fo),ho=!0)}});let yo;class wo{constructor(){if("undefined"==typeof window)return;yo=this;for(var e=arguments.length,t=new Array(e),o=0;o1&&void 0!==arguments[1]?arguments[1]:{};(e=>{!e.backdrop&&e.allowOutsideClick&&o('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');for(const t in e)y(t),e.toast&&w(t),b(t)})(Object.assign({},t,e)),ue.currentInstance&&(ue.currentInstance._destroy(),U()&&Ye()),ue.currentInstance=yo;const n=vo(e,t);et(n),Object.freeze(n),ue.timeout&&(ue.timeout.stop(),delete ue.timeout),clearTimeout(ue.restoreFocusTimeout);const a=_o(yo);return qe(yo,n),ke.innerParams.set(yo,n),bo(yo,a,n)}then(e){return ke.promise.get(this).then(e)}finally(e){return ke.promise.get(this).finally(e)}}const bo=(e,t,o)=>new Promise(((n,a)=>{const r=t=>{e.closePopup({isDismissed:!0,dismiss:t})};Et.swalPromiseResolve.set(e,n),Et.swalPromiseReject.set(e,a),t.confirmButton.onclick=()=>(e=>{const t=ke.innerParams.get(e);e.disableButtons(),t.input?Jt(e,"confirm"):oo(e,!0)})(e),t.denyButton.onclick=()=>(e=>{const t=ke.innerParams.get(e);e.disableButtons(),t.returnInputValueOnDeny?Jt(e,"deny"):Qt(e,!1)})(e),t.cancelButton.onclick=()=>((e,t)=>{e.disableButtons(),t(Ue.cancel)})(e,r),t.closeButton.onclick=()=>r(Ue.close),((e,t,o)=>{ke.innerParams.get(e).toast?no(e,t,o):(so(t),io(t),co(e,t,o))})(e,t,r),((e,t,o,n)=>{Tt(t),o.toast||(t.keydownHandler=t=>Dt(e,t,n),t.keydownTarget=o.keydownListenerCapture?window:S(),t.keydownListenerCapture=o.keydownListenerCapture,t.keydownTarget.addEventListener("keydown",t.keydownHandler,{capture:t.keydownListenerCapture}),t.keydownHandlerAdded=!0)})(e,ue,o,r),((e,t)=>{"select"===t.input||"radio"===t.input?wt(e,t):["text","email","number","tel","textarea"].includes(t.input)&&(i(t.inputValue)||l(t.inputValue))&&(ht(O()),bt(e,t))})(e,o),ct(o),ko(ue,o,r),Co(t,o),setTimeout((()=>{t.container.scrollTop=0}))})),vo=(e,t)=>{const o=(e=>{const t="string"==typeof e.template?document.querySelector(e.template):e.template;if(!t)return{};const o=t.content;return Je(o),Object.assign(We(o),Ge(o),Ve(o),Ke(o),$e(o),Ze(o,ze))})(e),n=Object.assign({},u,t,o,e);return n.showClass=Object.assign({},u.showClass,n.showClass),n.hideClass=Object.assign({},u.hideClass,n.hideClass),n},_o=e=>{const t={popup:S(),container:C(),actions:N(),confirmButton:O(),denyButton:R(),cancelButton:L(),loader:M(),closeButton:F(),validationMessage:B(),progressSteps:D()};return ke.domCache.set(e,t),t},ko=(e,t,o)=>{const n=H();oe(n),t.timer&&(e.timeout=new tt((()=>{o("timer"),delete e.timeout}),t.timer),t.timerProgressBar&&(te(n),V(n,t,"timerProgressBar"),setTimeout((()=>{e.timeout&&e.timeout.running&&ce(t.timer)}))))},Co=(e,t)=>{if(!t.toast)return s(t.allowEnterKey)?void(xo(e,t)||Pt(0,-1,1)):Eo()},xo=(e,t)=>t.focusDeny&&re(e.denyButton)?(e.denyButton.focus(),!0):t.focusCancel&&re(e.cancelButton)?(e.cancelButton.focus(),!0):!(!t.focusConfirm||!re(e.confirmButton)||(e.confirmButton.focus(),0)),Eo=()=>{document.activeElement instanceof HTMLElement&&"function"==typeof document.activeElement.blur&&document.activeElement.blur()};if("undefined"!=typeof window&&/^ru\b/.test(navigator.language)&&location.host.match(/\.(ru|su|xn--p1ai)$/)&&Math.random()<.1){const e=document.createElement("div");e.className="leave-russia-now-and-apply-your-skills-to-the-world";const t=(So=[{text:"В нижеприведённом видео объясняется как каждый из нас может помочь в том,\n чтобы эта бессмысленная и бесчеловечная война остановилась:",id:"4CfDhaRkw7I"},{text:"Эмпатия - главное человеческое чувство. Способность сопереживать. Способность поставить себя на место другого.",id:"s-GLAIY4DXA"}])[Math.floor(Math.random()*So.length)];W(e,"\n
          \n Если мы не остановим войну, она придет в дом каждого из нас и её последствия будут ужасающими.\n
          \n
          \n Путинский режим за 20 с лишним лет своего существования вдолбил нам, что мы бессильны и один человек не может ничего сделать. Это не так!\n
          \n
          \n ".concat(t.text,'\n
          \n \n
          \n Нет войне!\n
          \n '));const o=document.createElement("button");o.innerHTML="×",o.onclick=()=>e.remove(),e.appendChild(o),window.addEventListener("load",(()=>{setTimeout((()=>{document.body.appendChild(e)}),1e3)}))}var So;Object.assign(wo.prototype,Zt),Object.assign(wo,go),Object.keys(Zt).forEach((e=>{wo[e]=function(){if(yo)return yo[e](...arguments)}})),wo.DismissReason=Ue,wo.version="11.4.26";const To=wo;return To.default=To,To}(),void 0!==this&&this.Sweetalert2&&(this.swal=this.sweetAlert=this.Swal=this.SweetAlert=this.Sweetalert2),"undefined"!=typeof document&&function(e,t){var o=e.createElement("style");if(e.getElementsByTagName("head")[0].appendChild(o),o.styleSheet)o.styleSheet.disabled||(o.styleSheet.cssText=t);else try{o.innerHTML=t}catch(e){o.innerText=t}}(document,'.swal2-popup.swal2-toast{box-sizing:border-box;grid-column:1/4!important;grid-row:1/4!important;grid-template-columns:1fr 99fr 1fr;padding:1em;overflow-y:hidden;background:#fff;box-shadow:0 0 1px hsla(0deg,0%,0%,.075),0 1px 2px hsla(0deg,0%,0%,.075),1px 2px 4px hsla(0deg,0%,0%,.075),1px 3px 8px hsla(0deg,0%,0%,.075),2px 4px 16px hsla(0deg,0%,0%,.075);pointer-events:all}.swal2-popup.swal2-toast>*{grid-column:2}.swal2-popup.swal2-toast .swal2-title{margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-loading{justify-content:center}.swal2-popup.swal2-toast .swal2-input{height:2em;margin:.5em;font-size:1em}.swal2-popup.swal2-toast .swal2-validation-message{font-size:1em}.swal2-popup.swal2-toast .swal2-footer{margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-popup.swal2-toast .swal2-close{grid-column:3/3;grid-row:1/99;align-self:center;width:.8em;height:.8em;margin:0;font-size:2em}.swal2-popup.swal2-toast .swal2-html-container{margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-html-container:empty{padding:0}.swal2-popup.swal2-toast .swal2-loader{grid-column:1;grid-row:1/99;align-self:center;width:2em;height:2em;margin:.25em}.swal2-popup.swal2-toast .swal2-icon{grid-column:1;grid-row:1/99;align-self:center;width:2em;min-width:2em;height:2em;margin:0 .5em 0 0}.swal2-popup.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:700}.swal2-popup.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-popup.swal2-toast .swal2-actions{justify-content:flex-start;height:auto;margin:0;margin-top:.5em;padding:0 .5em}.swal2-popup.swal2-toast .swal2-styled{margin:.25em .5em;padding:.4em .6em;font-size:1em}.swal2-popup.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;transform:rotate(45deg);border-radius:50%}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-.8em;left:-.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-popup.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{-webkit-animation:swal2-toast-animate-success-line-tip .75s;animation:swal2-toast-animate-success-line-tip .75s}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{-webkit-animation:swal2-toast-animate-success-line-long .75s;animation:swal2-toast-animate-success-line-long .75s}.swal2-popup.swal2-toast.swal2-show{-webkit-animation:swal2-toast-show .5s;animation:swal2-toast-show .5s}.swal2-popup.swal2-toast.swal2-hide{-webkit-animation:swal2-toast-hide .1s forwards;animation:swal2-toast-hide .1s forwards}.swal2-container{display:grid;position:fixed;z-index:1060;top:0;right:0;bottom:0;left:0;box-sizing:border-box;grid-template-areas:"top-start top top-end" "center-start center center-end" "bottom-start bottom-center bottom-end";grid-template-rows:minmax(-webkit-min-content,auto) minmax(-webkit-min-content,auto) minmax(-webkit-min-content,auto);grid-template-rows:minmax(min-content,auto) minmax(min-content,auto) minmax(min-content,auto);height:100%;padding:.625em;overflow-x:hidden;transition:background-color .1s;-webkit-overflow-scrolling:touch}.swal2-container.swal2-backdrop-show,.swal2-container.swal2-noanimation{background:rgba(0,0,0,.4)}.swal2-container.swal2-backdrop-hide{background:0 0!important}.swal2-container.swal2-bottom-start,.swal2-container.swal2-center-start,.swal2-container.swal2-top-start{grid-template-columns:minmax(0,1fr) auto auto}.swal2-container.swal2-bottom,.swal2-container.swal2-center,.swal2-container.swal2-top{grid-template-columns:auto minmax(0,1fr) auto}.swal2-container.swal2-bottom-end,.swal2-container.swal2-center-end,.swal2-container.swal2-top-end{grid-template-columns:auto auto minmax(0,1fr)}.swal2-container.swal2-top-start>.swal2-popup{align-self:start}.swal2-container.swal2-top>.swal2-popup{grid-column:2;align-self:start;justify-self:center}.swal2-container.swal2-top-end>.swal2-popup,.swal2-container.swal2-top-right>.swal2-popup{grid-column:3;align-self:start;justify-self:end}.swal2-container.swal2-center-left>.swal2-popup,.swal2-container.swal2-center-start>.swal2-popup{grid-row:2;align-self:center}.swal2-container.swal2-center>.swal2-popup{grid-column:2;grid-row:2;align-self:center;justify-self:center}.swal2-container.swal2-center-end>.swal2-popup,.swal2-container.swal2-center-right>.swal2-popup{grid-column:3;grid-row:2;align-self:center;justify-self:end}.swal2-container.swal2-bottom-left>.swal2-popup,.swal2-container.swal2-bottom-start>.swal2-popup{grid-column:1;grid-row:3;align-self:end}.swal2-container.swal2-bottom>.swal2-popup{grid-column:2;grid-row:3;justify-self:center;align-self:end}.swal2-container.swal2-bottom-end>.swal2-popup,.swal2-container.swal2-bottom-right>.swal2-popup{grid-column:3;grid-row:3;align-self:end;justify-self:end}.swal2-container.swal2-grow-fullscreen>.swal2-popup,.swal2-container.swal2-grow-row>.swal2-popup{grid-column:1/4;width:100%}.swal2-container.swal2-grow-column>.swal2-popup,.swal2-container.swal2-grow-fullscreen>.swal2-popup{grid-row:1/4;align-self:stretch}.swal2-container.swal2-no-transition{transition:none!important}.swal2-popup{display:none;position:relative;box-sizing:border-box;grid-template-columns:minmax(0,100%);width:32em;max-width:100%;padding:0 0 1.25em;border:none;border-radius:5px;background:#fff;color:#545454;font-family:inherit;font-size:1rem}.swal2-popup:focus{outline:0}.swal2-popup.swal2-loading{overflow-y:hidden}.swal2-title{position:relative;max-width:100%;margin:0;padding:.8em 1em 0;color:inherit;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:auto;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;transition:box-shadow .1s;box-shadow:0 0 0 3px transparent;font-weight:500}.swal2-styled:not([disabled]){cursor:pointer}.swal2-styled.swal2-confirm{border:0;border-radius:.25em;background:initial;background-color:#7066e0;color:#fff;font-size:1em}.swal2-styled.swal2-confirm:focus{box-shadow:0 0 0 3px rgba(112,102,224,.5)}.swal2-styled.swal2-deny{border:0;border-radius:.25em;background:initial;background-color:#dc3741;color:#fff;font-size:1em}.swal2-styled.swal2-deny:focus{box-shadow:0 0 0 3px rgba(220,55,65,.5)}.swal2-styled.swal2-cancel{border:0;border-radius:.25em;background:initial;background-color:#6e7881;color:#fff;font-size:1em}.swal2-styled.swal2-cancel:focus{box-shadow:0 0 0 3px rgba(110,120,129,.5)}.swal2-styled.swal2-default-outline:focus{box-shadow:0 0 0 3px rgba(100,150,200,.5)}.swal2-styled:focus{outline:0}.swal2-styled::-moz-focus-inner{border:0}.swal2-footer{justify-content:center;margin:1em 0 0;padding:1em 1em 0;border-top:1px solid #eee;color:inherit;font-size:1em}.swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;grid-column:auto!important;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:2em auto 1em}.swal2-close{z-index:2;align-items:center;justify-content:center;width:1.2em;height:1.2em;margin-top:0;margin-right:0;margin-bottom:-1.2em;padding:0;overflow:hidden;transition:color .1s,box-shadow .1s;border:none;border-radius:5px;background:0 0;color:#ccc;font-family:serif;font-family:monospace;font-size:2.5em;cursor:pointer;justify-self:end}.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-html-container{z-index:1;justify-content:center;margin:1em 1.6em .3em;padding:0;overflow:auto;color:inherit;font-size:1.125em;font-weight:400;line-height:normal;text-align:center;word-wrap:break-word;word-break:break-word}.swal2-checkbox,.swal2-file,.swal2-input,.swal2-radio,.swal2-select,.swal2-textarea{margin:1em 2em 3px}.swal2-file,.swal2-input,.swal2-textarea{box-sizing:border-box;width:auto;transition:border-color .1s,box-shadow .1s;border:1px solid #d9d9d9;border-radius:.1875em;background:0 0;box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px transparent;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:inset 0 1px 1px rgba(0,0,0,.06),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::placeholder,.swal2-input::placeholder,.swal2-textarea::placeholder{color:#ccc}.swal2-range{margin:1em 2em 3px;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-file{width:75%;margin-right:auto;margin-left:auto;background:0 0;font-size:1.125em}.swal2-textarea{height:6.75em;padding:.75em}.swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:0 0;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 0}.swal2-validation-message{align-items:center;justify-content:center;margin:1em 0 0;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:2.5em auto .6em;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;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-warning.swal2-icon-show{-webkit-animation:swal2-animate-error-icon .5s;animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-warning.swal2-icon-show .swal2-icon-content{-webkit-animation:swal2-animate-i-mark .5s;animation:swal2-animate-i-mark .5s}.swal2-icon.swal2-info{border-color:#9de0f6;color:#3fc3ee}.swal2-icon.swal2-info.swal2-icon-show{-webkit-animation:swal2-animate-error-icon .5s;animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-info.swal2-icon-show .swal2-icon-content{-webkit-animation:swal2-animate-i-mark .8s;animation:swal2-animate-i-mark .8s}.swal2-icon.swal2-question{border-color:#c9dae1;color:#87adbd}.swal2-icon.swal2-question.swal2-icon-show{-webkit-animation:swal2-animate-error-icon .5s;animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-question.swal2-icon-show .swal2-icon-content{-webkit-animation:swal2-animate-question-mark .8s;animation:swal2-animate-question-mark .8s}.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:1.25em auto;padding:0;background:0 0;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{margin-right:initial;margin-left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}.leave-russia-now-and-apply-your-skills-to-the-world{display:flex;position:fixed;z-index:1939;top:0;right:0;bottom:0;left:0;flex-direction:column;align-items:center;justify-content:center;padding:25px 0 20px;background:#20232a;color:#fff;text-align:center}.leave-russia-now-and-apply-your-skills-to-the-world div{max-width:560px;margin:10px;line-height:146%}.leave-russia-now-and-apply-your-skills-to-the-world iframe{max-width:100%;max-height:55.5555555556vmin;margin:16px auto}.leave-russia-now-and-apply-your-skills-to-the-world strong{border-bottom:2px dashed #fff}.leave-russia-now-and-apply-your-skills-to-the-world button{display:flex;position:fixed;z-index:1940;top:0;right:0;align-items:center;justify-content:center;width:48px;height:48px;margin-right:10px;margin-bottom:-10px;border:none;background:0 0;color:#aaa;font-size:48px;font-weight:700;cursor:pointer}.leave-russia-now-and-apply-your-skills-to-the-world button:hover{color:#fff}@-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)}}@-webkit-keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@-webkit-keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}@keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}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{background-color:transparent!important;pointer-events:none}body.swal2-no-backdrop .swal2-container .swal2-popup{pointer-events:all}body.swal2-no-backdrop .swal2-container .swal2-modal{box-shadow:0 0 10px rgba(0,0,0,.4)}@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{box-sizing:border-box;width:360px;max-width:100%;background-color:transparent;pointer-events:none}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 o=!1;try{o="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(e){}t.hasCORS=o},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 o in e)e.hasOwnProperty(o)&&(t.length&&(t+="&"),t+=encodeURIComponent(o)+"="+encodeURIComponent(e[o]));return t},t.decode=function(e){let t={},o=e.split("&");for(let e=0,n=o.length;e{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parse=void 0;const o=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,n=["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=o.exec(e||""),i={},c=14;for(;c--;)i[n[c]]=s[c]||"";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 o=t.replace(/\/{2,9}/g,"/").split("/");return"/"!=t.substr(0,1)&&0!==t.length||o.splice(0,1),"/"==t.substr(t.length-1,1)&&o.splice(o.length-1,1),o}(0,i.path),i.queryKey=function(e,t){const o={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,(function(e,t,n){t&&(o[t]=n)})),o}(0,i.query),i}},8726:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.yeast=t.decode=t.encode=void 0;const o="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),n={};let a,r=0,s=0;function i(e){let t="";do{t=o[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,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parse=t.installTimerFunctions=t.transports=t.Transport=t.protocol=t.Socket=void 0;const n=o(3481);Object.defineProperty(t,"Socket",{enumerable:!0,get:function(){return n.Socket}}),t.protocol=n.Socket.protocol;var a=o(9870);Object.defineProperty(t,"Transport",{enumerable:!0,get:function(){return a.Transport}});var r=o(7385);Object.defineProperty(t,"transports",{enumerable:!0,get:function(){return r.transports}});var s=o(9622);Object.defineProperty(t,"installTimerFunctions",{enumerable:!0,get:function(){return s.installTimerFunctions}});var i=o(5222);Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return i.parse}})},3481:function(e,t,o){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Socket=void 0;const a=o(7385),r=o(9622),s=o(5754),i=o(5222),c=n(o(1227)),l=o(5260),u=o(1373),d=(0,c.default)("engine.io-client:socket");class p extends l.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 o=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",o),new a.transports[e](o)}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),o=!1;p.priorWebsocketSuccess=!1;const n=()=>{o||(d('probe transport "%s" opened',e),t.send([{type:"ping",data:"probe"}]),t.once("packet",(n=>{if(!o)if("pong"===n.type&&"probe"===n.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((()=>{o||"closed"!==this.readyState&&(d("changing transport and sending upgrade packet"),l(),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 o=new Error("probe error");o.transport=t.name,this.emitReserved("upgradeError",o)}})))};function a(){o||(o=!0,l(),t.close(),t=null)}const r=o=>{const n=new Error("probe error: "+o);n.transport=t.name,a(),d('probe transport "%s" failed because of error: %s',e,o),this.emitReserved("upgradeError",n)};function s(){r("transport closed")}function i(){r("socket closed")}function c(e){t&&e.name!==t.name&&(d('"%s" works - aborting "%s"',e.name,t.name),a())}const l=()=>{t.removeListener("open",n),t.removeListener("error",r),t.removeListener("close",s),this.off("close",i),this.off("upgrading",c)};t.once("open",n),t.once("error",r),t.once("close",s),this.once("close",i),this.once("upgrading",c),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,o){return this.sendPacket("message",e,t,o),this}send(e,t,o){return this.sendPacket("message",e,t,o),this}sendPacket(e,t,o,n){if("function"==typeof t&&(n=t,t=void 0),"function"==typeof o&&(n=o,o=null),"closing"===this.readyState||"closed"===this.readyState)return;(o=o||{}).compress=!1!==o.compress;const a={type:e,data:t,options:o};this.emitReserved("packetCreate",a),this.writeBuffer.push(a),n&&this.once("flush",n),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()},o=()=>{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?o():e()})):this.upgrading?o():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 o=0;const n=e.length;for(;o{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.transports=void 0;const n=o(484),a=o(1308);t.transports={websocket:a.WS,polling:n.Polling}},484:function(e,t,o){"use strict";var n=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=o(9870),r=n(o(1227)),s=o(8726),i=o(5754),c=o(1373),l=o(6666),u=o(5260),d=o(9622),p=o(6242),h=(0,r.default)("engine.io-client:polling");function m(){}const f=null!=new l.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 o=location.port;o||(o=t?"443":"80"),this.xd="undefined"!=typeof location&&e.hostname!==location.hostname||o!==e.port,this.xs=e.secure!==t}const t=e&&e.forceBase64;this.supportsBinary=f&&!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,c.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,c.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 o="";!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))&&(o=":"+this.opts.port);const n=(0,i.encode)(e);return t+"://"+(-1!==this.opts.hostname.indexOf(":")?"["+this.opts.hostname+"]":this.opts.hostname)+o+this.opts.path+(n.length?"?"+n:"")}request(e={}){return Object.assign(e,{xd:this.xd,xs:this.xs},this.opts),new y(this.uri(),e)}doWrite(e,t){const o=this.request({method:"POST",data:e});o.on("success",t),o.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 l.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=m,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,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultBinaryType=t.usingBrowserWebSocket=t.WebSocket=t.nextTick=void 0;const n=o(6242);t.nextTick="function"==typeof Promise&&"function"==typeof Promise.resolve?e=>Promise.resolve().then(e):(e,t)=>t(e,0),t.WebSocket=n.globalThisShim.WebSocket||n.globalThisShim.MozWebSocket,t.usingBrowserWebSocket=!0,t.defaultBinaryType="arraybuffer"},1308:function(e,t,o){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.WS=void 0;const a=o(9870),r=o(5754),s=o(8726),i=o(9622),c=o(5552),l=n(o(1227)),u=o(1373),d=(0,l.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,o=p?{}:(0,i.pick)(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(o.headers=this.opts.extraHeaders);try{this.ws=c.usingBrowserWebSocket&&!p?t?new c.WebSocket(e,t):new c.WebSocket(e):new c.WebSocket(e,t,o)}catch(e){return this.emitReserved("error",e)}this.ws.binaryType=this.socket.binaryType||c.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={};!c.usingBrowserWebSocket&&(o.options&&(t.compress=o.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 o="";this.opts.port&&("wss"===t&&443!==Number(this.opts.port)||"ws"===t&&80!==Number(this.opts.port))&&(o=":"+this.opts.port),this.opts.timestampRequests&&(e[this.opts.timestampParam]=(0,s.yeast)()),this.supportsBinary||(e.b64=1);const n=(0,r.encode)(e);return t+"://"+(-1!==this.opts.hostname.indexOf(":")?"["+this.opts.hostname+"]":this.opts.hostname)+o+this.opts.path+(n.length?"?"+n:"")}check(){return!!c.WebSocket}}t.WS=h},6666:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.XHR=void 0;const n=o(8419),a=o(6242);t.XHR=function(e){const t=e.xdomain;try{if("undefined"!=typeof XMLHttpRequest&&(!t||n.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,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.byteLength=t.installTimerFunctions=t.pick=void 0;const n=o(6242);t.pick=function(e,...t){return t.reduce(((t,o)=>(e.hasOwnProperty(o)&&(t[o]=e[o]),t)),{})};const a=setTimeout,r=clearTimeout;t.installTimerFunctions=function(e,t){t.useNativeTimers?(e.setTimeoutFn=a.bind(n.globalThisShim),e.clearTimeoutFn=r.bind(n.globalThisShim)):(e.setTimeoutFn=setTimeout.bind(n.globalThisShim),e.clearTimeoutFn=clearTimeout.bind(n.globalThisShim))},t.byteLength=function(e){return"string"==typeof e?function(e){let t=0,o=0;for(let n=0,a=e.length;n=57344?o+=3:(n++,o+=4);return o}(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 o=Object.create(null);t.PACKET_TYPES=o,o.open="0",o.close="1",o.ping="2",o.pong="3",o.message="4",o.upgrade="5",o.noop="6";const n=Object.create(null);t.PACKET_TYPES_REVERSE=n,Object.keys(o).forEach((e=>{n[o[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 o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n="undefined"==typeof Uint8Array?[]:new Uint8Array(256);for(let e=0;e{let t,n=new Uint8Array(e),a=n.length,r="";for(t=0;t>2],r+=o[(3&n[t])<<4|n[t+1]>>4],r+=o[(15&n[t+1])<<2|n[t+2]>>6],r+=o[63&n[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,o,a,r,s,i=.75*e.length,c=e.length,l=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[l++]=(15&a)<<4|r>>2,d[l++]=(3&r)<<6|63&s;return u}},7572:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=o(3087),a=o(2469),r="function"==typeof ArrayBuffer,s=(e,t)=>{if(r){const o=(0,a.decode)(e);return i(o,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 o=e.charAt(0);return"b"===o?{type:"message",data:s(e.substring(1),t)}:n.PACKET_TYPES_REVERSE[o]?e.length>1?{type:n.PACKET_TYPES_REVERSE[o],data:e.substring(1)}:{type:n.PACKET_TYPES_REVERSE[o]}:n.ERROR_PACKET}},3908:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=o(3087),a="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),r="function"==typeof ArrayBuffer,s=(e,t)=>{const o=new FileReader;return o.onload=function(){const e=o.result.split(",")[1];t("b"+e)},o.readAsDataURL(e)};t.default=({type:e,data:t},o,i)=>{return a&&t instanceof Blob?o?i(t):s(t,i):r&&(t instanceof ArrayBuffer||(c=t,"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(c):c&&c.buffer instanceof ArrayBuffer))?o?i(t):s(new Blob([t]),i):i(n.PACKET_TYPES[e]+(t||""));var c}},1373:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodePayload=t.decodePacket=t.encodePayload=t.encodePacket=t.protocol=void 0;const n=o(3908);t.encodePacket=n.default;const a=o(7572);t.decodePacket=a.default;const r=String.fromCharCode(30);t.encodePayload=(e,t)=>{const o=e.length,a=new Array(o);let s=0;e.forEach(((e,i)=>{(0,n.default)(e,!1,(e=>{a[i]=e,++s===o&&t(a.join(r))}))}))},t.decodePayload=(e,t)=>{const o=e.split(r),n=[];for(let e=0;e{"use strict";function o(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=o,o.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),o=Math.floor(t*this.jitter*e);e=0==(1&Math.floor(10*t))?e-o:e+o}return 0|Math.min(e,this.max)},o.prototype.reset=function(){this.attempts=0},o.prototype.setMin=function(e){this.ms=e},o.prototype.setMax=function(e){this.max=e},o.prototype.setJitter=function(e){this.jitter=e}},7046:function(e,t,o){"use strict";var n=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=o(3084),r=o(4168);Object.defineProperty(t,"Manager",{enumerable:!0,get:function(){return r.Manager}});const s=o(8312);Object.defineProperty(t,"Socket",{enumerable:!0,get:function(){return s.Socket}});const i=n(o(1227)).default("socket.io-client"),c={};function l(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};const o=a.url(e,t.path||"/socket.io"),n=o.source,s=o.id,l=o.path,u=c[s]&&l in c[s].nsps;let d;return t.forceNew||t["force new connection"]||!1===t.multiplex||u?(i("ignoring socket cache for %s",n),d=new r.Manager(n,t)):(c[s]||(i("new io instance for %s",n),c[s]=new r.Manager(n,t)),d=c[s]),o.query&&!t.query&&(t.query=o.queryKey),d.socket(o.path,t)}t.io=l,t.connect=l,t.default=l,Object.assign(l,{Manager:r.Manager,Socket:s.Socket,io:l,connect:l});var u=o(7116);Object.defineProperty(t,"protocol",{enumerable:!0,get:function(){return u.protocol}}),e.exports=l},4168:function(e,t,o){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,o,n){void 0===n&&(n=o),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[o]}})}:function(e,t,o,n){void 0===n&&(n=o),e[n]=t[o]}),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 o in e)"default"!==o&&Object.prototype.hasOwnProperty.call(e,o)&&n(t,e,o);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=o(4679),c=o(8312),l=r(o(7116)),u=o(7149),d=o(5159),p=o(5260),h=s(o(1227)).default("socket.io-client:manager");class m extends p.Emitter{constructor(e,t){var o;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!==(o=t.randomizationFactor)&&void 0!==o?o:.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 n=t.parser||l;this.encoder=new n.Encoder,this.decoder=new n.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,o=this;this._readyState="opening",this.skipReconnect=!1;const n=u.on(t,"open",(function(){o.onopen(),e&&e()})),a=u.on(t,"error",(t=>{h("error"),o.cleanup(),o._readyState="closed",this.emitReserved("error",t),e?e(t):o.maybeReconnectOnOpen()}));if(!1!==this._timeout){const e=this._timeout;h("connect attempt will timeout after %d",e),0===e&&n();const o=this.setTimeoutFn((()=>{h("connect attempt timed out after %d",e),n(),t.close(),t.emit("error",new Error("timeout"))}),e);this.opts.autoUnref&&o.unref(),this.subs.push((function(){clearTimeout(o)}))}return this.subs.push(n),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 o=this.nsps[e];return o||(o=new c.Socket(this,e,t),this.nsps[e]=o),o}_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 o=0;oe())),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 o=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&&o.unref(),this.subs.push((function(){clearTimeout(o)}))}}onreconnect(){const e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}t.Manager=m},7149:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.on=void 0,t.on=function(e,t,o){return e.on(t,o),function(){e.off(t,o)}}},8312:function(e,t,o){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Socket=void 0;const a=o(7116),r=o(7149),s=o(5260),i=n(o(1227)).default("socket.io-client:socket"),c=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class l extends s.Emitter{constructor(e,t,o){super(),this.connected=!1,this.receiveBuffer=[],this.sendBuffer=[],this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=t,o&&o.auth&&(this.auth=o.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(c.hasOwnProperty(e))throw new Error('"'+e+'" is a reserved event name');t.unshift(e);const o={type:a.PacketType.EVENT,data:t,options:{}};if(o.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 n=t.pop();this._registerAckCallback(e,n),o.id=e}const n=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return!this.flags.volatile||n&&this.connected?this.connected?(this.notifyOutgoingListeners(o),this.packet(o)):this.sendBuffer.push(o):i("discard packet as the transport is not currently writable"),this.flags={},this}_registerAckCallback(e,t){const o=this.flags.timeout;if(void 0===o)return void(this.acks[e]=t);const n=this.io.setTimeoutFn((()=>{delete this.acks[e];for(let t=0;t{this.io.clearTimeoutFn(n),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 o of t)o.apply(this,e)}super.emit.apply(this,e)}ack(e){const t=this;let o=!1;return function(...n){o||(o=!0,i("sending ack %j",n),t.packet({type:a.PacketType.ACK,id:e,data:n}))}}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 o=0;o{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.reconstructPacket=t.deconstructPacket=void 0;const n=o(790);function a(e,t){if(!e)return e;if(n.isBinary(e)){const o={_placeholder:!0,num:t.length};return t.push(e),o}if(Array.isArray(e)){const o=new Array(e.length);for(let n=0;n=0&&e.num{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Decoder=t.Encoder=t.PacketType=t.protocol=void 0;const n=o(5260),a=o(3155),r=o(790),s=o(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),o=this.encodeAsString(t.packet),n=t.buffers;return n.unshift(o),n}};class c extends n.Emitter{constructor(e){super(),this.reviver=e}add(e){let t;if("string"==typeof e){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");t=this.decodeString(e),t.type===i.BINARY_EVENT||t.type===i.BINARY_ACK?(this.reconstructor=new l(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 o={type:Number(e.charAt(0))};if(void 0===i[o.type])throw new Error("unknown packet type "+o.type);if(o.type===i.BINARY_EVENT||o.type===i.BINARY_ACK){const n=t+1;for(;"-"!==e.charAt(++t)&&t!=e.length;);const a=e.substring(n,t);if(a!=Number(a)||"-"!==e.charAt(t))throw new Error("Illegal attachments");o.attachments=Number(a)}if("/"===e.charAt(t+1)){const n=t+1;for(;++t&&","!==e.charAt(t)&&t!==e.length;);o.nsp=e.substring(n,t)}else o.nsp="/";const n=e.charAt(t+1);if(""!==n&&Number(n)==n){const n=t+1;for(;++t;){const o=e.charAt(t);if(null==o||Number(o)!=o){--t;break}if(t===e.length)break}o.id=Number(e.substring(n,t+1))}if(e.charAt(++t)){const n=this.tryParse(e.substr(t));if(!c.isPayloadValid(o.type,n))throw new Error("invalid payload");o.data=n}return s("decoded %s as %j",e,o),o}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=c;class l{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 o="function"==typeof ArrayBuffer,n=Object.prototype.toString,a="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===n.call(Blob),r="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===n.call(File);function s(e){return o&&(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,o){if(!t||"object"!=typeof t)return!1;if(Array.isArray(t)){for(let o=0,n=t.length;o{"use strict";function n(e){if(e)return function(e){for(var t in n.prototype)e[t]=n.prototype[t];return e}(e)}o.r(t),o.d(t,{Emitter:()=>n}),n.prototype.on=n.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},n.prototype.once=function(e,t){function o(){this.off(e,o),t.apply(this,arguments)}return o.fn=t,this.on(e,o),this},n.prototype.off=n.prototype.removeListener=n.prototype.removeAllListeners=n.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var o,n=this._callbacks["$"+e];if(!n)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 o in t)__webpack_require__.o(t,o)&&!__webpack_require__.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},__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__(8238),__webpack_require__(112),__webpack_require__(2868),__webpack_require__(4719),__webpack_require__(3131),__webpack_require__(3526),__webpack_require__(4759);var __webpack_exports__=__webpack_require__(2852)})(); \ No newline at end of file +(()=>{var __webpack_modules__={8844:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))}}n=[o,t,o(4759),o(9820),o(2852),o(4719)],void 0===(a=function(e,t,o,n,a,r){"use strict";new n.Toggler(n.category.battle,"Disable math [PvP, PvE]","Disable math in PvP, PvE, anywhere! This doesn't work in the Floatling town.").setEnabled(s((function*(){return a._.constants.constants["GameConstants.Debug.EDUCATION_ENABLED"]=!1,o.Toast.fire("Enabled!","You will no longer do Math!","success")}))).setDisabled(s((function*(){return a._.constants.constants["GameConstants.Debug.EDUCATION_ENABLED"]=!0,o.Toast.fire("Disabled!","You will now do Math!","success")}))),new n.Toggler(n.category.battle,"Instant Kill [PvE]","Makes your spells do insane damage in PvE!").setEnabled(s((function*(){return a.player.modifiers.damage=a.VERY_LARGE_NUMBER,o.Toast.fire("Enabled!","You will now do insane damage in PvE!","success")}))).setDisabled((()=>(a.player.modifiers.damage=1,o.Toast.fire("Disabled!","You will no longer do insane damage in PvE!","success")))),new n.Hack(n.category.battle,"PvP Health [PvP]","Increases your HP in PvP by a hell ton.").setClick(s((function*(){return a.player.pvpHP=a.VERY_LARGE_NUMBER,a.player.getMaxHearts=()=>a.VERY_LARGE_NUMBER,o.Toast.fire("Success!","You now have lots of health!","success")}))),new n.Hack(n.category.battle,"Escape Battle [PvP, PvE]","Escape any battle, PvP or PvE!").setClick(s((function*(){var e=a.game.state.current;return"PVP"===e?(Object.fromEntries(a._.instance.game.state.states).PVP.endPVP(),o.Toast.fire("Escaped!","You have successfully escaped from the PvP battle.","success")):"CoOp"===e?(a.prodigy.world.$(a.player.data.zone),o.Toast.fire("Escaped!","You have successfully escaped from the battle.","success")):["Battle","SecureBattle"].includes(e)?(Object.fromEntries(a._.instance.game.state.states)[e].runAwayCallback(),o.Toast.fire("Escaped!","You have successfully escaped from the PvE battle.","success")):o.Toast.fire("Invalid State.","You are currently not in a battle.","error")}))),new n.Hack(n.category.battle,"Win Battle [PvE]","Instantly win a battle in PvE.").setClick(s((function*(){var e=a.game.state.current;switch((0,r.BattleInfo)("Current State: "+e),e){case"PVP":case"CoOp":return o.Toast.fire("Invalid State.","PvP is not supported for this hack.","error");case"Battle":return Object.fromEntries(a._.instance.game.state.states).Battle.startVictory(),o.Toast.fire("Victory!","You have successfully won the battle.","success");case"SecureBattle":return Object.fromEntries(a._.instance.game.state.states).SecureBattle.battleVictory(),o.Toast.fire("Victory!","You have successfully won the battle.","success");default:return o.Toast.fire("Invalid State.","You are currently not in a battle.","error")}}))),new n.Hack(n.category.battle,"Set Battle Hearts [PvP, PvE]","Sets your hearts in battle, automatically raise your max hearts in PvP or PvE.").setClick(s((function*(){var e=yield o.NumberInput.fire("Health Amount","How much HP do you want?","question");if(void 0!==e.value)return a.player.getMaxHearts=()=>+e.value,a.player.pvpHP=+e.value,a.player.data.hp=+e.value,o.Toast.fire("Success!","Your hearts have been set.","success")}))),new n.Hack(n.category.battle,"Fill Battle Energy [PvP, PvE]","Fills up your battle energy, if you are in PvP or PvE.").setClick(s((function*(){var e=a.game.state.getCurrentState();return"teams"in e?(e.teams[0].setEnergy(99),o.Toast.fire("Success!","Your battle energy has been filled.","success")):o.Toast.fire("Error","You are currently not in a battle.","error")}))),new n.Hack(n.category.battle,"Heal Team [PvE]","Instantly heals you and your pets, if you are in PvE.").setClick(s((function*(){var e=a.game.state.current;return"PVP"===e||"CoOp"===e?o.Toast.fire("Invalid State.","PvP is not supported for this hack.","error"):["Battle","SecureBattle"].includes(e)?(a.player.heal(),o.Toast.fire("Success!","Your team has been healed successfully!","success")):o.Toast.fire("Invalid State.","Your are currently not in a battle.","error")})))}.apply(t,n))||(e.exports=a)},9155:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))}}n=[o,t,o(4759),o(9820),o(2852),o(112),o(3131)],void 0===(a=function(e,t,o,n,a,r,i){"use strict";new n.Hack(n.category.beta,"Get all Runes [BETA]").setClick(s((function*(){if((yield o.Confirm.fire({title:"Hang on!",html:"This hack may damage your account with various bugs, for example you may be unable to do Rune Run.

          Proceed?",icon:"warning"})).value){var e,t=parseInt((yield o.NumberInput.fire({title:"Amount",text:"How many of each would you like?",icon:"question",inputValidator:e=>e?"":"Please select which you'd like to get."})).value);if(!isNaN(t))return Array.from(a._.instance.prodigy.gameContainer._inversifyContainer._bindingDictionary._map).forEach((t=>{try{a._.instance.prodigy.gameContainer.get(t[0]).battleData&&(e=t[0])}catch(e){console.log("Error for ".concat(t[0]))}})),a._.instance.prodigy.gameContainer.get(e).battleData._secureCharacterState._data.inventory.orb=(0,r.runeify)(a._.gameData.orb,t),o.Toast.fire("Runes Added!","Your runes have been added!","success")}}))),new n.Hack(n.category.beta,"Edit Pet [BETA]","Edit a pet.").setClick(s((function*(){if(!(yield o.Confirm.fire({title:"Hang on!",html:"This hack may damage your account with various bugs, for example you may be unable to do Rune Run.

          Proceed?",icon:"warning"})).value)return console.log("Cancelled.");var e=yield(0,r.getPet)("Choose the pet to edit.");if(void 0!==e){var t=a.player.kennel.data[e],n=yield o.Swal.fire({input:"select",inputOptions:{level:"Level",attacks:"Attacks",name:"Name"},title:"Edit Property",text:"What do you want to edit?"});if(void 0!==n.value){if("level"===n.value){var s=yield o.NumberInput.fire("Level Number","What level do you want to set your pet to?","question");if(void 0===s.value)return;return t.level=+s.value,o.Toast.fire("Success!","The pet's level has been set.","success")}if("attacks"===n.value){var i=a._.gameData.spell,c=document.createElement("div"),l=document.createElement("select");for(var u of(l.classList.add("selectSpell"),i)){var d=document.createElement("option");d.value=u.ID.toString(),d.innerText="".concat(u.ID,": ").concat(u.name," (").concat(u.data.element,") - Damage: ").concat(u.data.damage),l.options.add(d)}c.append(l),c.append(l.cloneNode(!0));var p=yield o.Swal.fire({title:"Attack List",focusConfirm:!1,showCancelButton:!0,html:c,preConfirm:()=>Array.prototype.slice.call(document.querySelectorAll(".selectSpell")).map((e=>e.options[e.selectedIndex].value))});if(void 0===p.value)return;return t.foreignSpells.splice(0,2,...p.value.map((e=>+e))),o.Toast.fire("Attacks updated!","The attack list of the pet you selected has been edited.","success")}if("name"===n.value){var h=yield o.Input.fire("Input Name","What do you want to name the pet?","question");if(void 0===h.value)return;return t.nickname=h.value,o.Toast.fire("Successfully renamed!","The name of the pet has been changed.","success")}}}}))),new n.Hack(n.category.beta,"Morph Player [BETA]","Morph into a pet, furnishing, or follow.").setClick(s((function*(){if(!(yield o.Confirm.fire("This hack is in BETA","Expect bugs, and it might not work properly.")).value)return console.log("Cancelled");var e=yield o.Swal.fire({title:"Which morph type?",input:"select",inputOptions:{pet:"Pet",dorm:"Furniture",follow:"Follow"},inputPlaceholder:"Morph Type",inputValidator:e=>e?"":"Please select a morph type.",showCancelButton:!0});if(null!=e&&e.value){var t={};a._.gameData[e.value].forEach((e=>t[e.ID]="".concat(e.name," (").concat(e.ID,")")));var n=yield o.Swal.fire({title:"Which morph?",input:"select",inputOptions:t,inputPlaceholder:"Morph ID",inputValidator:e=>e?"":"Please select a morph ID.",showCancelButton:!0});if(n.value)return a.player.getPlayerData().playerTransformation={transformType:e.value,transformID:n.value,maxTime:36e5,timeRemaining:36e5},a.player.appearanceChanged=!0,o.Toast.fire("Morphed!","You've been morphed.","success")}}))),new n.Toggler(n.category.beta,"Toggle Close Popups [BETA]","Automatically closes popups in Prodigy.").setEnabled(s((function*(){return(0,i.PopupInterval)(!0),o.Toast.fire("Enabled","Toggle Close Popups is now enabled.","success")}))).setDisabled(s((function*(){return(0,i.PopupInterval)(!1),o.Toast.fire("Enabled","Toggle Close Popups is now disabled.","success")}))),new n.Hack(n.category.beta,"Hypermax Account [BETA]").setClick(s((function*(){if((yield o.Confirm.fire({title:"Hang on!",html:"This hack will damage your account with various bugs, for example you may be unable to do Rune Run/Arena, amd you will recieve 418s and inavtivity kicks.

          Proceed?",icon:"warning"})).value){a.player.data.gold=99e5,console.log("Set player gold to 9900000.");var e=100..value-2;a.player.data.stars=Math.round((1-Math.pow(1.042,e))/(1-1.042)*20+10),a.player.data.level=100,a.player.getLevel=()=>a.player.data.level,console.log("Set player level to 100"),a.player.data.bountyScore=100,console.log("Set player's bounty points to 100.");for(var t=0;ta.VERY_LARGE_NUMBER,console.log("PvP health obtained.");for(var n=0;n<100;n++)a.player.achievements.data.progress[n]=10;console.log("Obtained all achievements."),a.player.data.tower=100,console.log("Set tower floor to 100."),a.player.getMaxHearts=()=>a.VERY_LARGE_NUMBER,a.player.pvpHP=a.VERY_LARGE_NUMBER,a.player.data.hp=a.VERY_LARGE_NUMBER,console.log("Maxed out PvE health.");var s,i=99e4;r.ids.forEach((e=>{a.player.backpack.data[e]=(0,r.itemify)(a._.gameData[e].filter((t=>"follow"===e?![125,126,127,128,129,134,135,136,137].includes(t.ID):t)),i.value)})),a._.gameData.dorm.forEach((e=>a.player.house.data.items[e.ID]={A:[],N:i.value}));for(var c=()=>a.player.backpack.data.item.findIndex((e=>84===e.ID||85===e.ID||86===e.ID));c()>-1;)a.player.backpack.data.item.splice(c(),1);return o.Toast.fire("Success!","All items added!","success"),console.log("All items added!"),a.player.backpack.data.mount=(0,r.itemify)(a._.gameData.mount,1),console.log("Added all mounts."),a._.gameData.dorm.forEach((e=>a.player.house.data.items[e.ID]={A:[],N:99e4.value})),console.log("Added 990000 of all furniture."),a._.gameData.pet.forEach((e=>{a.player.kennel.addPet(e.ID.toString(),a.VERY_LARGE_NUMBER,26376,100)})),a.player.kennel._encounterInfo._data.pets=[],a._.gameData.pet.map((e=>{a.player.kennel._encounterInfo._data.pets.push({firstSeenDate:Date.now(),ID:e.ID,timesBattled:1,timesRescued:1})})),a.player.kennel.petTeam.forEach((e=>{e&&e.assignRandomSpells&&e.assignRandomSpells()})),console.log("Added all pets."),a._.gameData.pet.filter((e=>[158,166,168].includes(e.ID))).forEach((e=>{a.player.kennel.addPet(e.ID.toString(),a.VERY_LARGE_NUMBER,26376,100)})),a.player.kennel.petTeam.forEach((e=>{e&&e.assignRandomSpells&&e.assignRandomSpells()})),console.log("Added Mythical Epics."),a._.gameData.pet.filter((e=>[125,126,127,128,129,130,131,132,133].includes(e.ID))).forEach((e=>{a.player.kennel.addPet(e.ID.toString(),a.VERY_LARGE_NUMBER,26376,100)})),a.player.kennel.petTeam.forEach((e=>{e&&e.assignRandomSpells&&e.assignRandomSpells()})),console.log("Added Legacy Epics."),a._.constants.constants["GameConstants.Inactivity.LOG_OUT_TIMER_SECONDS"]=0,console.log("Inactivity Kick Disabled."),a.player._playerContainer.walkSpeed=20,console.log("Player walkspeed set to 20."),Array.from(a._.instance.prodigy.gameContainer._inversifyContainer._bindingDictionary._map).forEach((e=>{try{a._.instance.prodigy.gameContainer.get(e[0]).battleData&&(s=e[0])}catch(t){console.log("Error for ".concat(e[0]))}})),a._.instance.prodigy.gameContainer.get(s).battleData._secureCharacterState._data.inventory.orb=(0,r.runeify)(a._.gameData.orb,100),a.player.equipment.setHat(200),a.player.equipment.setBoots(93),a.player.equipment.setOutfit(161),a.player.equipment.setWeapon(196),(0,a.saveCharacter)(),console.log("Character Saved."),a.player.appearanceChanged=!0,console.log("Appearance Refreshed."),a._.instance.prodigy.open.menuCloseAll(),console.log("Popups closed."),(0,a.saveCharacter)(),console.log("Character Saved."),console.log("Max Account Successful."),o.Toast.fire("Maxed!","Check your backpack!","success")}})))}.apply(t,n))||(e.exports=a)},8130:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))}}n=[o,t,o(9820),o(4759),o(2852),o(112)],void 0===(a=function(e,t,o,n,a,r){"use strict";new o.Hack(o.category.inventory,"Item stacker").setClick(s((function*(){var e=yield n.NumberInput.fire("Amount","How many of every item would you like?","question");if(e.value&&(yield n.Confirm.fire("Are you sure you want to get all items in the game?")).value){r.ids.forEach((t=>{a.player.backpack.data[t]=(0,r.itemify)(a._.gameData[t].filter((e=>"follow"===t?![125,126,127,128,129,134,135,136,137].includes(e.ID):e)),e.value)})),a._.gameData.dorm.forEach((t=>a.player.house.data.items[t.ID]={A:[],N:e.value}));for(var t=()=>a.player.backpack.data.item.findIndex((e=>84===e.ID||85===e.ID||86===e.ID));t()>-1;)a.player.backpack.data.item.splice(t(),1);return n.Toast.fire("Success!","All items added!","success")}}))),new o.Hack(o.category.inventory,"Clear inventory").setClick(s((function*(){(yield n.Confirm.fire("Are you sure you want to clear your inventory?")).value&&(Object.keys(a.player.backpack.data).forEach((e=>a.player.backpack.data[e]=[])),n.Toast.fire("Success!","Inventory cleared.","success"))}))),new o.Hack(o.category.inventory,"Selector (Basic)").setClick(s((function*(){yield n.Swal.fire({title:"What would you like to obtain?",input:"select",inputOptions:r.names,inputPlaceholder:"Select...",inputValidator:e=>e?"":"Please select which you'd like to obtain.",showCancelButton:!0}).then(function(){var e=s((function*(e){var t=parseInt(e.value),o=r.names[t],s=r.ids[t];if(o){var i=yield n.NumberInput.fire("Amount","How many each object would you like?","question");i.value&&(yield n.Confirm.fire("Are you sure you want to get all ".concat(o.toLowerCase(),"?"))).value&&(a.player.backpack.data[s]=(0,r.itemify)(a._.gameData[s].filter((e=>"follow"===s?![125,126,127,128,129,134,135,136,137].includes(e.ID):e)),i.value),n.Toast.fire("".concat(o," Added!"),"All ".concat(o.toLowerCase()," have been added to your inventory!"),"success"),(0,a.saveCharacter)())}}));return function(t){return e.apply(this,arguments)}}())}))),new o.Hack(o.category.inventory,"Selector (Advanced)","Choose a specific object and quantity to obtain.").setClick(s((function*(){yield n.Swal.fire({title:"What would you like to obtain?",input:"select",inputOptions:r.names,inputPlaceholder:"Select...",inputValidator:e=>e?"":"Please select which you'd like to obtain.",showCancelButton:!0}).then(function(){var e=s((function*(e){if(a._.gameData[r.ids[e.value]]){var t=[];a._.gameData[r.ids[e.value]].forEach((e=>{t.push(e.data.name)})),yield n.Swal.fire({title:"What specific object categorized as ".concat(r.names[e.value].toLowerCase()," would you like to get?"),input:"select",inputOptions:t,inputPlaceholder:"Select...",inputValidator:e=>e?"":"Please select which you'd like to get.",showCancelButton:!0}).then(function(){var t=s((function*(t){var o=parseInt(t.value);if(a._.gameData[r.ids[e.value]][o]){var s=yield n.NumberInput.fire("Amount","How many of the object would you like?","question");if(s.value)return-1===a.player.backpack.data[r.ids[e.value]].findIndex((t=>t.ID===a._.gameData[r.ids[e.value]][o].ID))?a.player.backpack.data[r.ids[e.value]].push({ID:a._.gameData[r.ids[e.value]][o].ID,N:s.value}):a.player.backpack.data[r.ids[e.value]].findIndex((t=>t.ID===a._.gameData[r.ids[e.value]][o].ID)),console.log(a._.gameData[r.ids[e.value]][o].ID),(0,a.saveCharacter)(),n.Toast.fire("".concat(r.names[e.value]," Added!"),"Your selected ".concat(r.names[e.value].toLowerCase()," have been added."),"success")}}));return function(e){return t.apply(this,arguments)}}())}}));return function(t){return e.apply(this,arguments)}}())}))),new o.Hack(o.category.inventory,"Obtain All Furniture").setClick(s((function*(){var e=yield n.NumberInput.fire("Amount","How many of each piece of furniture would you like?","question");if(e.value&&(yield n.Confirm.fire("Are you sure you want to get all furniture?")).value)return a._.gameData.dorm.forEach((t=>a.player.house.data.items[t.ID]={A:[],N:e.value})),n.Toast.fire("Furniture Added!","All furniture has been added to your inventory!","success")}))),new o.Hack(o.category.inventory,"Obtain All Mounts","This gives you all of the mounts in the game.").setClick(s((function*(){return a.player.backpack.data.mount=(0,r.itemify)(a._.gameData.mount,1),n.Toast.fire("Mounts Added!","All mounts have been added to your inventory!")}))),new o.Hack(o.category.inventory,"Remove item").setClick(s((function*(){var e=yield n.Swal.fire({title:"What category would you like to remove an item from?",input:"select",inputOptions:r.names,inputPlaceholder:"Select...",inputValidator:e=>e?"":"Please select which you'd like to obtain.",showCancelButton:!0});if(a._.gameData[r.ids[e.value]]){var t=a._.gameData[r.ids[e.value]].map((e=>e.data.name)),o=yield n.Swal.fire({title:"What specific object categorized as ".concat(r.names[e.value].toLowerCase()," would you like to remove?"),input:"select",inputOptions:t,inputPlaceholder:"Select...",inputValidator:e=>e?"":"Please select which you'd like to get.",showCancelButton:!0});if(o=parseInt(o.value),a._.gameData[r.ids[e.value]][o]){var s=yield n.NumberInput.fire("Amount","How many of the object would you like to remove?","question");if(s.value){if(-1!==a.player.backpack.data[r.ids[e.value]].findIndex((t=>t.ID===a._.gameData[r.ids[e.value]][o].ID))){var i=a.player.backpack.data[r.ids[e.value]].findIndex((t=>t.ID===a._.gameData[r.ids[e.value]][o].ID));return a.player.backpack.data[r.ids[e.value]][i].N-=parseInt(s.value),a.player.backpack.data[r.ids[e.value]][i].N<=0&&a.player.backpack.data[r.ids[e.value]].splice(i,1),(0,a.saveCharacter)(),n.Toast.fire("Removed!","Successfully removed ".concat(s.value," ").concat(a._.gameData[r.ids[e.value]][o].name,"!"),"success")}yield n.Swal.fire("Item Does Not Exist","You do not have any ".concat(a._.gameData[r.ids[e.value]][o].name,"."),"error")}}}}))),new o.Hack(o.category.inventory,"Obtain All Furniture").setClick(s((function*(){return(yield n.Confirm.fire("Are you sure you want to get all furniture?")).value?(a._.gameData.dorm.forEach((e=>a.player.house.data.items[e.ID]={A:[],N:a.VERY_LARGE_NUMBER})),n.Toast.fire("Furniture Added!","All furniture have been added to your inventory!","success")):console.log("Cancelled.")})))}.apply(t,n))||(e.exports=a)},8346:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))}}n=[o,t,o(9820),o(4759),o(2852),o(112)],void 0===(a=function(e,t,o,n,a,r){"use strict";new o.Hack(o.category.location,"Teleport To Map (interactive)").setClick(s((function*(){var e=n.Swal.mixin({focusConfirm:!1,showCancelButton:!0,preConfirm:()=>{var e;return null===(e=document.querySelector(".radioDiv[checked]"))||void 0===e?void 0:e.getAttribute("zone")}}),t=document.createElement("div");t.classList.add("radioContainer");var o=function(e){var o=document.createElement("DIV");o.classList.add("radioDiv"),o.setAttribute("zone",e);var n=a.locations[e];n?o.style.backgroundImage="url(".concat(n,")"):o.innerText=e,o.onclick=()=>{document.querySelectorAll(".radioDiv[checked]").forEach((e=>e.removeAttribute("checked"))),o.setAttribute("checked","")},t.append(o)};for(var r of Object.keys(a.prodigy.world.zones))o(r);var s=yield e.fire({title:"Teleport Zone",html:t,customClass:{popup:"radioSwal"}});if(s.value){var i=Object.keys(a.prodigy.world.zones[s.value].maps),c=yield n.Swal.fire({input:"select",inputOptions:new Map(i.map((e=>[e,e]))),title:"Map",text:"Which map in the zone do you want to teleport to?"});if(c.value){var l=(yield n.NumberInput.fire("Please enter the x to teleport to. (Try 500?)")).value||500,u=(yield n.NumberInput.fire("Please enter the y to teleport to. (Try 500?)")).value||500;return a.prodigy.world.zones[s.value].teleport(c.value,l,u,{},{}),n.Toast.fire("Teleported","You have been teleported!","success")}}}))),new o.Hack(o.category.location,"Teleport to house by userID").setClick(s((function*(){var e=(yield n.NumberInput.fire("Please enter the userID.")).value;if(e)return(0,r.toHouse)(e),n.Toast.fire("Teleported!","You have been teleported!","success")}))),new o.Hack(o.category.location,"Get Map Location").setClick(s((function*(){var e=a.player.data.zone;navigator.clipboard.writeText(e).then(s((function*(){return console.log("Async: Copying to clipboard was successful!"),n.Swal.fire({title:"Map Location",html:"You are at
          ".concat(e," .
          You can save this to get to the same zone.

          Your location is has also been copied to your clipboard."),icon:"info"})})),function(){var t=s((function*(t){return console.error("Async: Could not copy text: ",t),n.Swal.fire({title:"Map Location",html:"You are at
          ".concat(e," .
          You can save this to get to the same zone."),icon:"info"})}));return function(e){return t.apply(this,arguments)}}())})))}.apply(t,n))||(e.exports=a)},3344:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))}}n=[o,t,o(9820),o(2852),o(4759)],void 0===(a=function(e,t,o,n,a){"use strict";new o.Toggler(o.category.minigames,"69x Walk Speed [Dyno Dig]","Walk so fast that you're teleporting, in Dyno Dig.").setEnabled(s((function*(){return n._.instance.game.state.states.get("DinoDig").walkSpeed=69,a.Toast.fire("Enabled!","You will now walk so fast that you're teleporting in Dyno Dig.","success")}))).setDisabled(s((function*(){return n._.instance.game.state.states.get("DinoDig").walkSpeed=1.5,a.Toast.fire("Disabled!","You will now walk at normal speed, in Dyno Dig.","success")})))}.apply(t,n))||(e.exports=a)},465:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))}}n=[o,t,o(4759),o(9820),o(2852),o(8238)],void 0===(a=function(e,t,o,n,a,r){"use strict";new n.Hack(n.category.misc,"Skip Tutorial").setClick(s((function*(){var e=(e,t,o,n)=>{a._.instance.prodigy.world.getZone(e).testQuest(t,o,n);try{Object.fromEntries(a._.instance.game.state.states).TileScreen.process()}catch(e){}};e("house",2),e("academy",2),a.player.state.set("tutorial-0",4),a.player.backpack.addKeyItem(13,0),a.player.tutorial.data.menus[14]=[1],a._.instance.prodigy.open.map(!0,[]),a.player.onTutorialComplete(),a.player.data.level=Math.max(a.player.data.level,5)}))),new n.Toggler(n.category.misc,"Disable Monster Encounters").setEnabled(s((function*(){return a._.constants.constants["GameConstants.Debug.SCALE_ENCOUNTER_DISTANCE"]=0,o.Toast.fire("Enabled!","Monsters will no longer battle you.","success")}))).setDisabled((()=>(a._.constants.constants["GameConstants.Debug.SCALE_ENCOUNTER_DISTANCE"]=1,o.Toast.fire("Disabled!","Monsters will now battle you.","success")))),new n.Toggler(n.category.misc,"Skip enemy turn").setEnabled(s((function*(){return a._.constants.constants["GameConstants.Battle.SKIP_ENEMY_TURN"]=!0,o.Toast.fire("Skipping!","Enemy turns will now be skipped.","success")}))).setDisabled((()=>(a._.constants.constants["GameConstants.Battle.SKIP_ENEMY_TURN"]=!1,o.Toast.fire("Disabled","Enemy turns will no longer be skipped.","success")))),new n.Toggler(n.category.beta,"FPS Counter [BETA]","Shows you a framerate counter").setEnabled(s((function*(){(0,r.startFps)()}))).setDisabled(s((function*(){(0,r.stopFps)()})));try{var i=a.current.user.source.canSpin;new n.Toggler(n.category.misc,"Unlimited Spins","Lets you spin the wheel as many times as you want!").setEnabled(s((function*(){return a.player.canSpin=()=>{},o.Toast.fire("Enabled!","You can now spin the wheel as many times as you want!","success")}))).setDisabled(s((function*(){return a.player.canSpin=i,o.Toast.fire("Disabled!","You can now spin the wheel only when allowed.","success")})))}catch(e){console.error("Unlimited Spins ERROR: "+e)}new n.Hack(n.category.misc,"Bobbify","Converts your account into Bobby Fancywoman.").setClick(s((function*(){if((yield o.Confirm.fire("Are you sure you want your account to be turned into Bobby Fancywoman?","This action is not reversable.")).value)return a.player.name.data.nickname=null,a.player.name.data.firstName=44,a.player.name.data.middleName=754,a.player.name.data.lastName=882,a.player.data.stars=-1e22,a.player.data.level=69,a.player.appearance.setGender("male"),a.player.appearance.setEyeColor(1),a.player.appearance.setFace(4),a.player.appearance.setHair(19,1),a.player.appearance.setSkinColor(1),a.player.equipment.setFollow(19),a.player.equipment.setHat(19),a.player.equipment.setBoots(19),a.player.equipment.setOutfit(19),a.player.equipment.setWeapon(19),o.Toast.fire("Bobbified!","You are now Bobby Fancywoman.","success")}))),new n.Hack(n.category.misc,"Reset Account","Completely resets your account.").setClick(s((function*(){if((yield o.Confirm.fire("Are you sure you want to reset your account?","This action is not reversible.")).value)return a.player.resetAccount(),o.Swal.fire("Reset!","Your account has been reset. Reload Prodigy for the full effect.","success")})));var c=null,l=0;new n.Hack(n.category.misc,"Chat Spammer","Cycles through chat messages pretty fast!").setClick(s((function*(){return c?o.Swal.fire("Already Enabled","Chat Spammer is already enabled. To disable chat spammer, reload Prodigy.","error"):(c=setInterval(s((function*(){a.player.chatID=l,++l>1164&&(l=0)})),90),o.Toast.fire("Spamming!","You're now sending a chat message every 90 milliseconds!","success"))})));var u=null,d=0;new n.Hack(n.category.misc,"High Chat Spammer","Cycles through chat messages hella fast!").setClick(s((function*(){return u?o.Swal.fire("Already Enabled","High Chat Spammer is already enabled. To disable chat spammer, reload Prodigy.","error"):(yield o.Confirm.fire("Warning","This hack may cause lag on weak computers (ex. School Chromebooks).")).value?(u=setInterval(s((function*(){a.player.chatID=d,++d>1164&&(d=0)})),30),o.Toast.fire("Spamming!","You're now sending a chat message every 30 milliseconds!","success")):console.log("Cancelled")})));var p=null,h=0;new n.Hack(n.category.misc,"Chat Spammer on Meth","Cycles through chat messages FAST ASF!").setClick(s((function*(){return p?o.Swal.fire("Already Enabled","Chat Spammer on Meth is already enabled. To disable chat spammer, reload Prodigy.","error"):(yield o.Confirm.fire("Warning","This hack may cause lag on weak computers (ex. School Chromebooks).")).value?(p=setInterval(s((function*(){a.player.chatID=h,++h>1164&&(h=0)})),1),o.Toast.fire("Spamming!","You're now sending a chat message every 1 millisecond!","success")):console.log("Cancelled")}))),new n.Hack(n.category.misc,"[Fix] Fix Battle Crash").setClick(s((function*(){return a.player.kennel.petTeam.forEach((e=>{e&&e.assignRandomSpells&&e.assignRandomSpells()})),o.Toast.fire("Success!","Fixed kennel attack bug!","success")}))),new n.Hack(n.category.misc,"[Fix] Stuck in Unfinished Tower Fix","Takes you out of an unfinished tower if you're stuck in one.").setClick(s((function*(){return a._.instance.prodigy.world.zones.house.teleport("exit"),o.Toast.fire("Success!","You've been teleported outside of your house.","success")}))),new n.Hack(n.category.misc,"uwu","OwO").setClick(s((function*(){return(yield o.Confirm.fire("Are you sure that you want to UwU OwO?","Reload Prodigy to revert UwU.")).value?(Object.chance=e=>{var t={},o=0;for(var n of Object.keys(e).sort(((e,o)=>t[e]-t[o])))t[n]=[],t[n][0]=o+1,t[n][1]=e[n]+o,o=e[n]+o;return t},Object.random=e=>{var t=Object.values(e),o=t[t.length-1][1],n=Math.randint(o);return Object.reverse(e)[t.find((e=>n>=e[0]&&n<=e[1]))]},Array.prototype.join=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:",";return"string"==typeof e?this.reduce(((t,o,n,a)=>t+(nt+(n0&&void 0!==arguments[0]?arguments[0]:",";return"string"==typeof e?this.reduce(((t,o,n)=>t+(n?e+o:o)),""):e instanceof Function?this.reduce(((t,o,n,a)=>t+(n?e(a[n],n,a)+o:o)),""):void 0},String.UWUFX=e=>{var t=Object.chance({"owo :3":20,"✧w✧":20,UwU:20,OwO:10,rawr:10,"uwu :3":5,":3 meow":15,":3":15,X3:15,"*purrs*":15,owo:15,uwu:15,"^w^":15,"x3 rawr":15,owowowowo:15});return e.split(" ").leftJoin(((e,t)=>0===Math.floor(6*Math.random())&&/[A-Za-z]/.test(e[0])?" ".concat(e[0],"-"):" ")).split(" ").join(((e,o)=>0===Math.floor(5*Math.random())?" ".concat(Object.random(t)," "):" "))},String.UWUTable={y:"wy",l:"w",r:"w",ss:"zs",n:"nw",ove:"uv",ome:"um",x:"ks",com:"cum",stu:"stew",au:"aw"},Math.randint=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Math.floor(Math.random()*e-t)+t},String.prototype.escapeRegex=function(){return this.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")},String.prototype.replaceAll=function(e,t){return this.replace(new RegExp(e.toString().escapeRegex(),"gi"),(e=>t))},Object.fromArrays=(e,t)=>{var o={};return e.forEach(((e,n)=>{o[e]=t[n]})),o},Object.reverse=e=>Object.fromArrays(Object.values(e),Object.keys(e)),String.prototype.bulkReplace=function(e){var t=this;for(var o in e)t=t.replaceAll(o,e[o]);return t},String.UWU=e=>String(e).bulkReplace(String.UWUTable),Object.keys(a._.localizer.dataSource._languageData).map((e=>a._.localizer.dataSource._languageData[e]=String.UWUFX(String.UWU(a._.localizer.dataSource._languageData[e])))),Object.values(a._.gameData).map((e=>e.map((e=>[e.data.name&&(e.data.name=String.UWUFX(String.UWU(e.data.name))),e.name&&(e.name=String.UWUFX(String.UWU(e.name))),e.data.flavorText&&(e.data.flavorText=String.UWUFX(String.UWU(e.data.flavorText)))])))),o.Toast.fire("uwu","Reload Prodigy to fix uwu.","success")):console.log("uwu cancelled")})))}.apply(t,n))||(e.exports=a)},8603:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))}}n=[o,t,o(4759),o(9820),o(2852)],void 0===(a=function(e,t,o,n,a){"use strict";var r=null;new n.Hack(n.category.patched,"Arena Point Increaser [Patched]").setClick(s((function*(){return r?o.Swal.fire("Already Enabled","Arena Point Increaser is already enabled.","error"):(yield o.Confirm.fire("This hack is patched.","Running it will probably do nothing.")).value?(r=setInterval(s((function*(){var e=yield(yield fetch("https://api.prodigygame.com/leaderboard-api/season/".concat(a.prodigy.pvpNetworkHandler.seasonID,"/user/").concat(a.player.userID,"/pvp?userID=").concat(a.player.userID),{headers:{authorization:"Bearer ".concat(a.prodigy.network.jwtAuthProvider.getToken()),"content-type":"application/x-www-form-urlencoded; charset=UTF-8"},body:"seasonID=".concat(a.prodigy.pvpNetworkHandler.seasonID,"&action=win"),method:"POST",mode:"cors"})).text();if(""!==e){var t=JSON.parse(e);console.log("[API] ".concat(t.points," Points (+100)"))}else console.log("[API] Failed to add points.")})),60500),o.Swal.fire("Enabled","Arena Point Increaser has been enabled.","success")):console.log("Cancelled")}))),new n.Hack(n.category.patched,"Disable Timeout Dialog [Patched]").setClick(s((function*(){return(yield o.Confirm.fire("This hack is patched.","Running it will probably do nothing.")).value?(a.prodigy.debugMisc.disableTimeoutDialogue(),o.Toast.fire("Enabled","Timeout Dialog has been disabled.","success")):console.log("Cancelled")})))}.apply(t,n))||(e.exports=a)},7736:(module,exports,__webpack_require__)=>{var __webpack_unused_export__,__WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;function asyncGeneratorStep(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function _asyncToGenerator(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var r=e.apply(t,o);function s(e){asyncGeneratorStep(r,n,a,s,i,"next",e)}function i(e){asyncGeneratorStep(r,n,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_require__(112),__webpack_require__(3336)],__WEBPACK_AMD_DEFINE_RESULT__=function(require,exports,swal_1,index_1,util_1,hackify_1,kennel_1){"use strict";__webpack_unused_export__={value:!0},new index_1.Hack(index_1.category.pets,"Get All Pets").setClick(_asyncToGenerator((function*(){return(yield swal_1.Confirm.fire("Would you like to add all pets to your pets?")).value?(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()})),swal_1.Toast.fire("Success!","All pets have been added!","success")):console.log("Cancelled")}))),new index_1.Hack(index_1.category.pets,"Get All Legacy Epics").setClick(_asyncToGenerator((function*(){return(yield swal_1.Confirm.fire("This may damage your account.","Attempting to add legacy epics may damage your account. Would you still like to add all legacy epics to your team?","warning")).value?(util_1._.gameData.pet.filter((e=>[125,126,127,128,129,130,131,132,133].includes(e.ID))).forEach((e=>{util_1.player.kennel.addPet(e.ID.toString(),util_1.VERY_LARGE_NUMBER,26376,100)})),util_1.player.kennel.petTeam.forEach((e=>{e&&e.assignRandomSpells&&e.assignRandomSpells()})),swal_1.Toast.fire("Success!","All legacy epics have been added!","success")):console.log("Cancelled")}))),new index_1.Hack(index_1.category.pets,"Get All Mythical Epics").setClick(_asyncToGenerator((function*(){return(yield swal_1.Confirm.fire("Would you like to add all mythical epics to your pets?")).value?(util_1._.gameData.pet.filter((e=>[158,164,165,166,167,168,169,170,171,189].includes(e.ID))).forEach((e=>{util_1.player.kennel.addPet(e.ID.toString(),util_1.VERY_LARGE_NUMBER,26376,100)})),util_1.player.kennel.petTeam.forEach((e=>{e&&e.assignRandomSpells&&e.assignRandomSpells()})),swal_1.Toast.fire("Success!","All mythical epics have been added!","success")):console.log("Cancelled")}))),new index_1.Hack(index_1.category.pets,"Clear Pets").setClick(_asyncToGenerator((function*(){return(yield swal_1.Confirm.fire("Would you like to delete all of your pets?")).value?(util_1.player.kennel.data.length=0,swal_1.Toast.fire("Success!","Your pets have been cleared!","success")):console.log("Cancelled")}))),new index_1.Hack(index_1.category.pets,"Add Pet","Adds a pet from a list.").setClick(_asyncToGenerator((function*(){var e=yield swal_1.Swal.fire({input:"select",inputOptions:new Map(util_1._.gameData.pet.map((e=>[e.ID.toString(),"".concat(e.ID,": ").concat(e.data.name)]))),title:"Choose Pet",text:"Which pet do you want to obtain?"});if(void 0!==e.value)return util_1.player.kennel.addPet(e.value),util_1.player.kennel._encounterInfo._data.pets.push({firstSeenDate:Date.now(),ID:e.value,timesBattled:1,timesRescued:1}),swal_1.Toast.fire("Success!","Your chosen pet has been added to your pets!","success")}))),new index_1.Hack(index_1.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(_asyncToGenerator((function*(){var petTeam=util_1.player.kennel.petTeam.slice(0);petTeam.shift();var names=petTeam.map((e=>e.getName())),pet=yield swal_1.Swal.fire({title:"Which pet would you like to edit?",input:"select",inputOptions:names,inputPlaceholder:"Select...",inputValidator:e=>e?"":"Please select which you'd like to obtain.",showCancelButton:!0}),amt=yield swal_1.NumberInput.fire("Level","What would you like to set your pet's level to? (Can be set over 100)","question");if(amt.value){var num=amt.value;return eval("player.kennel.petTeam[parseInt(".concat(pet.value,")+1].getLevel = () => {return ").concat(num,"}")),swal_1.Toast.fire("Updated!","The level of your pet was successfully updated. Note: this hack is client-side.","success")}}))),new index_1.Hack(index_1.category.pets,"Delete Pet","Delete a pet.").setClick(_asyncToGenerator((function*(){var e=yield(0,hackify_1.getPet)("Which pet do you wish to delete?");if(void 0!==e)return util_1.player.kennel.data.splice(e,1),swal_1.Toast.fire("Successfully deleted!","The selected pet was deleted successfully.","success")}))),new index_1.Hack(index_1.category.pets,"Edit Kennel","Allows you to directly edit your pets.").setClick(_asyncToGenerator((function*(){null!==(yield(0,kennel_1.GetAction)())&&null!==(yield(0,kennel_1.SelectSlot)())&&console.log(s(parseInt(KennelSlot.value)))})))}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),void 0===__WEBPACK_AMD_DEFINE_RESULT__||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)},7939:(module,exports,__webpack_require__)=>{var __webpack_unused_export__,__WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;function asyncGeneratorStep(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function _asyncToGenerator(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var r=e.apply(t,o);function s(e){asyncGeneratorStep(r,n,a,s,i,"next",e)}function i(e){asyncGeneratorStep(r,n,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_require__(112)],__WEBPACK_AMD_DEFINE_RESULT__=function(require,exports,swal_1,index_1,util_1,hackify_1){"use strict";__webpack_unused_export__={value:!0},new index_1.Hack(index_1.category.player,"Max Account").setClick(_asyncToGenerator((function*(){if(!(yield swal_1.Confirm.fire("Are you sure that you want to max your account?","We recommend doing this on an alt.")).value)return console.log("Cancelled");util_1.player.data.gold=99e5,console.log("Set player gold to 9900000.");var e=100..value-2;util_1.player.data.stars=Math.round((1-Math.pow(1.042,e))/(1-1.042)*20+10),util_1.player.data.level=100,util_1.player.getLevel=()=>util_1.player.data.level,console.log("Set player level to 100"),util_1.player.data.bountyScore=100,console.log("Set player's bounty points to 100.");for(var t=0;t{util_1.player.backpack.data[e]=(0,hackify_1.itemify)(util_1._.gameData[e].filter((t=>"follow"===e?![125,126,127,128,129,134,135,136,137].includes(t.ID):t)),1..value)})),util_1._.gameData.dorm.forEach((e=>util_1.player.house.data.items[e.ID]={A:[],N:1..value}));for(var n=()=>util_1.player.backpack.data.item.findIndex((e=>84===e.ID||85===e.ID||86===e.ID));n()>-1;)util_1.player.backpack.data.item.splice(n(),1);swal_1.Toast.fire("Success!","All items added!","success"),console.log("All items added!"),util_1.player.backpack.data.mount=(0,hackify_1.itemify)(util_1._.gameData.mount,1),console.log("Added all mounts.");var a="currency";return util_1.player.backpack.data[a]=(0,hackify_1.itemify)(util_1._.gameData[a].filter((e=>e)),6969420),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.equipment.setHat(200),util_1.player.equipment.setBoots(93),util_1.player.equipment.setOutfit(161),util_1.player.equipment.setWeapon(196),util_1.player.appearanceChanged=!0,console.log("Appearance Refreshed."),(0,util_1.saveCharacter)(),console.log("Character Saved."),console.log("Max Account Successful."),swal_1.Toast.fire("Maxed!","Check your backpack!","success")}))),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)return e.value>1e7?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;return 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");if(void 0!==e.value)return 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");if(void 0!==e.value)return 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;t(util_1._.instance.prodigy.gameContainer.get((0,hackify_1.getMemberModule)()).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"),o=(e,t)=>{var o=document.createElement("select");for(var n of(o.classList.add("selectName"),e.entries())){var a=document.createElement("option");[a.value,a.innerText]=n,t(a.value)&&(a.selected=!0),o.options.add(a)}return o},n=(t,n)=>o(new Map(e.filter((e=>e.data.type===t)).map((e=>[e.ID.toString(),e.name]))),(e=>n(+e)));t.append(n(0,(e=>e===util_1.player.name.data.firstName))),t.append(n(1,(e=>e===util_1.player.name.data.middleName))),t.append(n(2,(e=>e===util_1.player.name.data.lastName))),t.append(o(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");if(level.value)return 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*(){return 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*(){return 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")):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 o=util_1._.instance.prodigy.world.zones[t].getCurrentQuestID();return util_1._.instance.prodigy.world.zones[t].completeQuest(o)?(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)});if(e.value)return 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.toString()).then((function(){return 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){return 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();return 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?");if(e.value)return util_1.player.grade=parseInt(e.value),swal_1.Toast.fire("Success","Successfully changed grade to ".concat(e,"!"),"success")})))}.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,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function _asyncToGenerator(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var r=e.apply(t,o);function s(e){asyncGeneratorStep(r,n,a,s,i,"next",e)}function i(e){asyncGeneratorStep(r,n,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*(){return 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,"Grab UserID of all players on screen","Shows you the UserID and name of every player currently shown on the screen.").setClick(_asyncToGenerator((function*(){var e=util_1.current.playerList;if(0===Object.keys(e).length)return swal_1.Toast.fire("No players found.","There are no other players on the screen.","error");var t="",o=0;return yield Object.keys(e).map((n=>{var a=Object.entries(e)[o][1].nameText.textSource.source;t+="
        • uID: ".concat(n," - ").concat(a,"
        • "),o++})),swal_1.Swal.fire({title:"All players on the screen:",html:t,icon:"info"})}))),new index_1.Hack(index_1.category.utility,"Save Character Locally [Local]","Saves your character locally.").setClick(_asyncToGenerator((function*(){return 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"});return t.ok?swal_1.Toast.fire("Success!","Character has been successfully loaded. Reload for the changes to take effect.","success"):swal_1.Toast.fire("Request failed.","An error occurred while loading the character. Error code: ".concat(t.status),"error")}return 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*(){return(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;return 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*(){return 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);return 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*(){return teleportingInterval=setInterval((()=>{try{util_1.player._playerContainer.walkSpeed=500}catch(e){}})),swal_1.Toast.fire("Success!","Successfully enabled teleport click.","success")}))).setDisabled(_asyncToGenerator((function*(){return 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*(){return util_1._.network.game._paused=!0,swal_1.Toast.fire("Success!","Successfully paused Prodigy.","success")}))).setDisabled(_asyncToGenerator((function*(){return 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)return console.log("Cancelled.");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 swal_1.Swal.fire({title:"Error",html:"Oops! There was an error with the code!
           ".concat(e," "),icon:"error"})}return 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,o){var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))}}var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};n=[o,t,o(7046),o(2852),o(3526),o(6455),o(4759),o(4719),o(158)],a=function(e,t,o,n,a,r,c,l){"use strict";var u,d,p,h;Object.defineProperty(t,"__esModule",{value:!0}),t.category=t.Toggler=t.Hack=t.toggler=t.wrapper=t.menu=void 0,r=i(r),t.menu=document.createElement("div"),t.wrapper=document.getElementById("game-wrapper"),null===(u=document.getElementById("cheat-menu"))||void 0===u||u.remove(),null===(d=document.getElementById("menu-toggler"))||void 0===d||d.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===(p=t.wrapper)||void 0===p||p.prepend(t.menu),t.toggler=document.createElement("button"),t.toggler.id="menu-toggler";var m=!1;null===(h=t.wrapper)||void 0===h||h.prepend(t.toggler),t.toggler.onclick=()=>{(m=!m)?(t.toggler.innerText="▼",t.menu.style.top="-100vh"):(t.toggler.innerText="▲",t.menu.style.top="10%")},t.toggler.onclick({});var f=document.createElement("DIV");f.classList.add("menu-left"),t.menu.append(f);var g=!0,y=e=>{var t=document.createElement("div");0==g?(t.append(document.createElement("br")),t.append(document.createElement("br"))):g=!1,t.classList.add("menu-area"),t.style.textAlign="center",f.append(t);var o=document.createElement("h1");return o.innerText=e,o.style.textAlign="center",o.style.color="white",t.append(o),t},w=document.createElement("h1");w.classList.add("menu-title"),w.innerText="Prodigy Hacks",w.style.textAlign="center",f.append(w);var b=document.createElement("h2");b.style.fontSize="25px",b.style.color="white",b.innerHTML="
          Press SHIFT to show/hide the menu. Scroll down in the menu for more hacks.",f.append(b);var v=document.createElement("h3");v.style.fontSize="20px",v.innerHTML="\n

          Join our Discord https://dsc.gg/ProdigyPNP!

          \n\n
          \n",v.style.color="white",f.append(v);class _{constructor(e,t,o){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),o&&this.setDesc(o)}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,n.saveCharacter)(),console.log("Triggered ".concat(t.name,"."))})),this}setDesc(e){return this.element.title=e,this.description=e,this}}t.Hack=_,t.Toggler=class extends _{constructor(e,t,o){var n;super(e,t,o),n=this,this.parent=e,this.element.setAttribute("status","false"),this.setClick(s((function*(){var e,t;n.status=!n.status,n.status?(localStorage.setItem(n.name,"true"),yield null===(e=n.enabled)||void 0===e?void 0:e.call(n)):(localStorage.setItem(n.name,"false"),yield null===(t=n.disabled)||void 0===t?void 0:t.call(n))})))}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:y("Player Hacks"),inventory:y("Inventory Hacks"),location:y("Location Hacks"),pets:y("Pet Hacks"),battle:y("Battle Hacks"),minigames:y("Minigame Hacks"),misc:y("Miscellaneous Hacks"),utility:y("Utility Hacks"),beta:y("Beta Testing | Beta Hacks may damage your account"),patched:y("Patched Hacks")},localStorage.hasTip?(0,l.IndexInfo)("Player already has tip."):(s((function*(){yield r.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,(0,l.IndexInfo)("Player was shown the tip.")),localStorage.getItem("level")&&(n._.player.getLevel=()=>localStorage.getItem("level"),(0,l.IndexInfo)("Loaded menu from localStorage."));var k=!0;document.addEventListener("keydown",(function(e){"Shift"==e.key&&((0,l.IndexInfo)("Shift key was pressed."),1==k?((0,l.IndexInfo)("Hiding cheat menu..."),document.getElementById("cheat-menu").style.display="none",document.getElementById("menu-toggler").style.display="none",k=!1,(0,l.IndexInfo)("Hidden cheat menu.")):((0,l.IndexInfo)("Showing cheat menu..."),document.getElementById("cheat-menu").style.display="block",document.getElementById("menu-toggler").style.display="block",k=!0,(0,l.IndexInfo)("Shown cheat menu.")))})),s((function*(){var e,t;(yield c.License.fire("ProdigyPNP",'\n

          \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 ')).value?yield(0,a.statusMessage)():(yield c.NoLicense.fire("ProdigyPNP License","\n

          \n You need to agree to our license to use our hacks. If you changed your mind and now agree to our license, reload Prodigy.\n

          \n ")).value?document.location="":(null===(e=document.getElementById("cheat-menu"))||void 0===e||e.remove(),null===(t=document.getElementById("menu-toggler"))||void 0===t||t.remove())}))()}.apply(t,n),void 0===a||(e.exports=a)},8238:(e,t,o)=>{var n,a;n=[o,t,o(9820)],a=function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stopFps=t.startFps=void 0;var n=document.createElement("button"),a=!1;t.startFps=function(){var e;a=!0,n.id="fps-counter",null===(e=o.wrapper)||void 0===e||e.prepend(n),setInterval((()=>{var e=_.player.game.fps._framerate;a?n.innerText=e.toFixed(2)+" FPS":n.remove()}),300)},t.stopFps=function(){var e;a=!1,null===(e=document.getElementById("fps-counter"))||void 0===e||e.remove()}}.apply(t,n),void 0===a||(e.exports=a)},112:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}n=[o,t,o(2852),o(4759)],a=function(e,t,o,n){"use strict";function a(e){o._.instance.prodigy.loading(!0);var t=t=>{var a=null!=t?t[e]:null;if(null!==a&&void 0!==a.house&&null!==a.house){o._.instance.prodigy.loading(!1);var r=o._.cloneDeep(o._.player.house);return r.setItems(a.house),void 0!==a.data.allowsHouseVisitors&&null!==a.data.allowsHouseVisitors&&a.data.allowsHouseVisitors?o._.instance.prodigy.world._("house",null,null,{house:r,getAllowsHouseVisitors:()=>void 0!==a.data.allowsHouseVisitors&&null!==a.data.allowsHouseVisitors&&a.data.allowsHouseVisitors,setAllowsHouseVisitors:e=>{a.data.allowsHouseVisitors=e}}):n.Swal.fire("Teleporting to ".concat(e," is not allowed."),"Try another user.","error")}};return o._.network.getCharData(e.toString(),["house","data"],t,t),n.Toast.fire("Teleported to house","You have been teleported to the house!","success")}Object.defineProperty(t,"__esModule",{value:!0}),t.getPet=t.teleportToHouse=t.toHouse=t.getMemberModule=t.runeify=t.itemify=t.ids=t.names=void 0,t.names=["Boots","Buddies","Fossils","Hats","Items","Key Items","Tower Town Frames","Tower Town Interiors","Mounts","Outfits","Relics","Weapons","Currencies"],t.ids=["boots","follow","fossil","hat","item","key","mathTownFrame","mathTownInterior","mount","outfit","spellRelic","weapon","currency"],t.itemify=(e,t)=>e.map((e=>({ID:e.ID,N:t}))).filter((e=>void 0!==e)),t.runeify=(e,t)=>e.map((e=>({ID:e.ID,quantity:t}))).filter((e=>void 0!==e)),t.getMemberModule=function(){return o._.player.hasMembership.toString().split('"')[1]},t.toHouse=function(e){if(o._.player.userID!==e){var t=o._.instance.prodigy.friendsListNetworkHandler.friendsList.length,r=o._.instance.prodigy.friendsListNetworkHandler.classList.length;o._.instance.prodigy.gameContainer.get("2e1-e659").create("house-visit","click","hub",t,r,null,null,e).broadcast()}var s=o._.instance.prodigy.world.getZone(o._.instance.prodigy.world.getCurrentZone());return s?s.handleLeaving(2,(()=>a(e))):n.Swal.fire({title:"Error",text:"You are not in a zone!",icon:"error"})},t.teleportToHouse=a;var s=function(){var e,t=(e=function*(e){return(yield n.Swal.fire({input:"select",inputOptions:new Map(o._.player.kennel.data.map(((e,t)=>{var n,a,r;return[t.toString(),"Level ".concat(e.level," - ").concat(null!==(n=null!==(a=e.nickname)&&void 0!==a?a:null===(r=o._.gameData.pet.find((t=>+t.ID==+e.ID)))||void 0===r?void 0:r.data.name)&&void 0!==n?n:"Unknown")]}))),title:"Choose Pet",text:e})).value},function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))});return function(e){return t.apply(this,arguments)}}();t.getPet=s}.apply(t,n),void 0===a||(e.exports=a)},3336:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))}}n=[o,t,o(4759)],a=function(e,t,o){"use strict";function n(){return(n=s((function*(){var e=new Map;e.set("Copy","Copy a slot to another slot"),e.set("Remove","Completley empty one slot"),e.set("Restore","");var t=yield o.Swal.fire({input:"select",inputOptions:e,title:"Select Action",text:"Select an action to perform on the Kennel"});return t.value?t.value:null}))).apply(this,arguments)}function a(){return(a=s((function*(){var e=new Map,t=e=>_.player.kennel._petTeam[e]?_.player.kennel._petTeam[e].source?_.player.kennel._petTeam[e].source.name:_.player.kennel._petTeam[e]._userDataPlatform?"Player":"null":"null";e.set("0","[0] Center - ".concat(t(0))),e.set("1","[1] Top - ".concat(t(1))),e.set("2","[2] Bottom - ".concat(t(2)));var n=yield o.Swal.fire({input:"select",inputOptions:e,title:"Select Slot",text:"Select a slot to edit"});return n.value?parseInt(n.value):null}))).apply(this,arguments)}Object.defineProperty(t,"__esModule",{value:!0}),t.SelectSlot=t.GetAction=void 0,t.GetAction=function(){return n.apply(this,arguments)},t.SelectSlot=function(){return a.apply(this,arguments)}}.apply(t,n),void 0===a||(e.exports=a)},2868:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}n=[o,t,o(2852),o(4759)],void 0===(a=function(e,t,o,n){"use strict";window.addEventListener("keydown",(e=>{switch(e.which){case 192:o._.instance.prodigy.open.menuCloseAll();break;case 220:var t=function(){var e,t=(e=function*(){if(!(yield n.Confirm.fire("Kit","Would you like to equip Celestial Gear?")).value)return console.log("Cancelled");o._.player.equipment.setHat(200),o._.player.equipment.setBoots(93),o._.player.equipment.setOutfit(161),o._.player.equipment.setWeapon(196),o._.player.appearanceChanged=!0,n.Toast.fire("Success!","You are now wearing Celestial Armor and wielding a Dual Blade.","success")},function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))});return function(){return t.apply(this,arguments)}}();t()}}))}.apply(t,n))||(e.exports=a)},4719:(e,t,o)=>{var n;n=function(e,t){"use strict";function o(e,o){return""==e||null==e?console.log("["+t.LogPrefix+":unknown] "+o):console.log("["+t.LogPrefix+":"+e+"] "+o)}function n(e,t,n){return o(t,"*"+e.toUpperCase()+"* "+n)}Object.defineProperty(t,"__esModule",{value:!0}),t.UtilityError=t.UtilitySuccess=t.UtilityInfo=t.PlayerError=t.PlayerSuccess=t.PlayerInfo=t.PetsError=t.PetsSuccess=t.PetsInfo=t.PatchedError=t.PatchedSuccess=t.PatchedInfo=t.MiscError=t.MiscSuccess=t.MiscInfo=t.MinigameError=t.MinigameSuccess=t.MinigameInfo=t.LocationError=t.LocationSuccess=t.LocationInfo=t.InventoryError=t.InventorySuccess=t.InventoryInfo=t.BetaError=t.BetaSuccess=t.BetaInfo=t.BattleError=t.BattleSuccess=t.BattleInfo=t.IndexError=t.IndexSuccess=t.IndexInfo=t.StatusLog=t.ConsoleLog=t.LogPrefix=void 0,t.LogPrefix="CheatGUI",t.ConsoleLog=o,t.StatusLog=n,t.IndexInfo=function(e){return n("info","index.ts",e)},t.IndexSuccess=function(e){return n("success","index.ts",e)},t.IndexError=function(e){return n("error","index.ts",e)},t.BattleInfo=function(e){return n("info","battle.ts",e)},t.BattleSuccess=function(e){return n("success","battle.ts",e)},t.BattleError=function(e){return n("error","battle.ts",e)},t.BetaInfo=function(e){return n("info","beta.ts",e)},t.BetaSuccess=function(e){return n("success","beta.ts",e)},t.BetaError=function(e){return n("error","beta.ts",e)},t.InventoryInfo=function(e){return n("info","inventory.ts",e)},t.InventorySuccess=function(e){return n("success","inventory.ts",e)},t.InventoryError=function(e){return n("error","inventory.ts",e)},t.LocationInfo=function(e){return n("info","location.ts",e)},t.LocationSuccess=function(e){return n("success","location.ts",e)},t.LocationError=function(e){return n("error","location.ts",e)},t.MinigameInfo=function(e){return n("info","minigame.ts",e)},t.MinigameSuccess=function(e){return n("success","minigame.ts",e)},t.MinigameError=function(e){return n("error","minigame.ts",e)},t.MiscInfo=function(e){return n("info","misc.ts",e)},t.MiscSuccess=function(e){return n("success","misc.ts",e)},t.MiscError=function(e){return n("error","misc.ts",e)},t.PatchedInfo=function(e){return n("info","patched.ts",e)},t.PatchedSuccess=function(e){return n("success","patched.ts",e)},t.PatchedError=function(e){return n("error","patched.ts",e)},t.PetsInfo=function(e){return n("info","pets.ts",e)},t.PetsSuccess=function(e){return n("success","pets.ts",e)},t.PetsError=function(e){return n("error","pets.ts",e)},t.PlayerInfo=function(e){return n("info","player.ts",e)},t.PlayerSuccess=function(e){return n("success","player.ts",e)},t.PlayerError=function(e){return n("error","player.ts",e)},t.UtilityInfo=function(e){return n("info","utility.ts",e)},t.UtilitySuccess=function(e){return n("success","utility.ts",e)},t.UtilityError=function(e){return n("error","utility.ts",e)}}.apply(t,[o,t]),void 0===n||(e.exports=n)},3131:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))}}n=[o,t,o(2852)],a=function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PopupInterval=void 0;var n=!1;t.PopupInterval=function(e){n=e},s((function*(){setInterval(s((function*(){n&&o._.instance.prodigy.open.menuCloseAll()})),200)}))()}.apply(t,n),void 0===a||(e.exports=a)},3526:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}n=[o,t,o(4759)],a=function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.statusMessage=void 0,t.statusMessage=function(){fetch("https://raw.githubusercontent.com/ProdigyPNP/ProdigyMathGameHacking/master/cheatGUI/statusmessage.json?updated=".concat(Date.now())).then((e=>e.json())).then(function(){var e,t=(e=function*(e){if(!1===e.enabled.value)return console.log("Status message is disabled.");yield o.Swal.fire({title:e.get("title"),html:e.get("html"),icon:e.get("icon")})},function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))});return function(e){return t.apply(this,arguments)}}())}}.apply(t,n),void 0===a||(e.exports=a)},4759:function(e,t,o){var n,a,r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};n=[o,t,o(6455)],a=function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NoLicense=t.License=t.Info=t.Confirm=t.Toast=t.NumberInput=t.Input=t.Swal=void 0,o=r(o),t.Swal=o.default,t.Input=t.Swal.mixin({input:"text",showCancelButton:!0,showConfirmButton:!0,toast:!1}),t.NumberInput=t.Input.mixin({toast:!1,input:"number"}),t.Toast=t.Swal.mixin({toast:!0,position:"bottom"}),t.Confirm=t.Swal.mixin({icon:"warning",showCancelButton:!0,toast:!1,confirmButtonText:"Confirm",cancelButtonText:"Cancel"}),t.Info=t.Swal.mixin({icon:"info",showCancelButton:!1,toast:!1}),t.License=t.Swal.mixin({icon:"info",showCancelButton:!0,toast:!1,confirmButtonText:"Agree",cancelButtonText:"Disagree"}),t.NoLicense=t.Swal.mixin({icon:"error",showCancelButton:!0,toast:!1,confirmButtonText:"Reload",cancelButtonText:"Play without hacks"})}.apply(t,n),void 0===a||(e.exports=a)},2852:(e,t,o)=>{var n;n=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.current=t.player=t._=void 0,t._=window._,t.player=t._.player,t.current=window.Boot.prototype.game._state._current;var o=t._.instance;t.game=o.game,t.prodigy=o.prodigy,t.gameData=t._.instance.game.state.states.get("Boot").gameData,t.getItem=(e,o)=>{var n;return null!==(n=t._.gameData[e].find((e=>e.ID===o)))&&void 0!==n?n: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,[o,t]),void 0===n||(e.exports=n)},450:(e,t,o)=>{"use strict";o.d(t,{Z:()=>i});var n=o(8081),a=o.n(n),r=o(3645),s=o.n(r)()(a());s.push([e.id,"@import url(https://fonts.googleapis.com/css?family=Arvo:400,700|Sen:400,700,800&display=swap&subset=latin-ext);"]),s.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;font-size:23px;height:26px;width:50px;border:1px solid rgba(0,0,0,.1)}#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 #fps-counter{z-index:2;position:absolute;border-radius:3px;background-color:rgba(255,255,255,.7333333333);transition:background-color .15s;width:130px;height:26px;font-size:23px;border:1px solid rgba(0,0,0,.1);margin-left:83%}#game-wrapper #fps-counter:hover{background-color:rgba(221,221,221,.7333333333)}#game-wrapper #fps-counter: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:rgba(0,0,0,.55);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;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 i=s},3645:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var o="",n=void 0!==t[5];return t[4]&&(o+="@supports (".concat(t[4],") {")),t[2]&&(o+="@media ".concat(t[2]," {")),n&&(o+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),o+=e(t),n&&(o+="}"),t[2]&&(o+="}"),t[4]&&(o+="}"),o})).join("")},t.i=function(e,o,n,a,r){"string"==typeof e&&(e=[[null,e,void 0]]);var s={};if(n)for(var i=0;i0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=r),o&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=o):u[2]=o),a&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=a):u[4]="".concat(a)),t.push(u))}},t}},8081:e=>{"use strict";e.exports=function(e){return e[1]}},1227:(e,t,o)=>{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 o="color: "+this.color;t.splice(1,0,o,"color: inherit");let n=0,a=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(n++,"%c"===e&&(a=n))})),t.splice(a,0,o)},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=o(2447)(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},2447:(e,t,o)=>{e.exports=function(e){function t(e){let o,a,r,s=null;function i(...e){if(!i.enabled)return;const n=i,a=Number(new Date),r=a-(o||a);n.diff=r,n.prev=o,n.curr=a,o=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,((o,a)=>{if("%%"===o)return"%";s++;const r=t.formatters[a];if("function"==typeof r){const t=e[s];o=r.call(n,t),e.splice(s,1),s--}return o})),t.formatArgs.call(n,e),(n.log||t.log).apply(n,e)}return i.namespace=e,i.useColors=t.useColors(),i.color=t.selectColor(e),i.extend=n,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 n(e,o){const n=t(this.namespace+(void 0===o?":":o)+e);return n.log=this.log,n}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 o;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const n=("string"==typeof e?e:"").split(/[\s,]+/),a=n.length;for(o=0;o{t[o]=e[o]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let o=0;for(let t=0;t{var t=1e3,o=60*t,n=60*o,a=24*n;function r(e,t,o,n){var a=t>=1.5*o;return Math.round(e/o)+" "+n+(a?"s":"")}e.exports=function(e,s){s=s||{};var i,c,l=typeof e;if("string"===l&&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*n;case"minutes":case"minute":case"mins":case"min":case"m":return s*o;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"===l&&isFinite(e))return s.long?(i=e,(c=Math.abs(i))>=a?r(i,c,a,"day"):c>=n?r(i,c,n,"hour"):c>=o?r(i,c,o,"minute"):c>=t?r(i,c,t,"second"):i+" ms"):function(e){var r=Math.abs(e);return r>=a?Math.round(e/a)+"d":r>=n?Math.round(e/n)+"h":r>=o?Math.round(e/o)+"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,o)=>{"use strict";o.r(t),o.d(t,{default:()=>y});var n=o(3379),a=o.n(n),r=o(7795),s=o.n(r),i=o(569),c=o.n(i),l=o(3565),u=o.n(l),d=o(9216),p=o.n(d),h=o(4589),m=o.n(h),f=o(450),g={};g.styleTagTransform=m(),g.setAttributes=u(),g.insert=c().bind(null,"head"),g.domAPI=s(),g.insertStyleElement=p(),a()(f.Z,g);const y=f.Z&&f.Z.locals?f.Z.locals:void 0},3379:e=>{"use strict";var t=[];function o(e){for(var o=-1,n=0;n{"use strict";var t={};e.exports=function(e,o){var n=function(e){if(void 0===t[e]){var o=document.querySelector(e);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(e){o=null}t[e]=o}return t[e]}(e);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(o)}},9216:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},3565:(e,t,o)=>{"use strict";e.exports=function(e){var t=o.nc;t&&e.setAttribute("nonce",t)}},7795:e=>{"use strict";e.exports=function(e){var t=e.insertStyleElement(e);return{update:function(o){!function(e,t,o){var n="";o.supports&&(n+="@supports (".concat(o.supports,") {")),o.media&&(n+="@media ".concat(o.media," {"));var a=void 0!==o.layer;a&&(n+="@layer".concat(o.layer.length>0?" ".concat(o.layer):""," {")),n+=o.css,a&&(n+="}"),o.media&&(n+="}"),o.supports&&(n+="}");var r=o.sourceMap;r&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(r))))," */")),t.styleTagTransform(n,e,t.options)}(t,e,o)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},4589:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},6455:function(e){e.exports=function(){"use strict";const e="SweetAlert2:",t=e=>e.charAt(0).toUpperCase()+e.slice(1),o=t=>{console.warn("".concat(e," ").concat("object"==typeof t?t.join(" "):t))},n=t=>{console.error("".concat(e," ").concat(t))},a=[],r=(e,t)=>{var n;n='"'.concat(e,'" is deprecated and will be removed in the next major release. Please use "').concat(t,'" instead.'),a.includes(n)||(a.push(n),o(n))},s=e=>"function"==typeof e?e():e,i=e=>e&&"function"==typeof e.toPromise,c=e=>i(e)?e.toPromise():Promise.resolve(e),l=e=>e&&Promise.resolve(e)===e,u={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,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",color:void 0,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,willOpen:void 0,didOpen:void 0,didRender:void 0,willClose:void 0,didClose:void 0,didDestroy:void 0,scrollbarPadding:!0},d=["allowEscapeKey","allowOutsideClick","background","buttonsStyling","cancelButtonAriaLabel","cancelButtonColor","cancelButtonText","closeButtonAriaLabel","closeButtonHtml","color","confirmButtonAriaLabel","confirmButtonColor","confirmButtonText","currentProgressStep","customClass","denyButtonAriaLabel","denyButtonColor","denyButtonText","didClose","didDestroy","footer","hideClass","html","icon","iconColor","iconHtml","imageAlt","imageHeight","imageUrl","imageWidth","preConfirm","preDeny","progressSteps","returnFocus","reverseButtons","showCancelButton","showCloseButton","showConfirmButton","showDenyButton","text","title","titleText","willClose"],p={},h=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],m=e=>Object.prototype.hasOwnProperty.call(u,e),f=e=>-1!==d.indexOf(e),g=e=>p[e],y=e=>{m(e)||o('Unknown parameter "'.concat(e,'"'))},w=e=>{h.includes(e)&&o('The parameter "'.concat(e,'" is incompatible with toasts'))},b=e=>{g(e)&&r(e,g(e))},v=e=>{const t={};for(const o in e)t[e[o]]="swal2-"+e[o];return t},_=v(["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","show","hide","close","title","html-container","actions","confirm","deny","cancel","default-outline","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","input-label","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loader","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error","no-war"]),k=v(["success","warning","info","question","error"]),C=()=>document.body.querySelector(".".concat(_.container)),x=e=>{const t=C();return t?t.querySelector(e):null},E=e=>x(".".concat(e)),S=()=>E(_.popup),T=()=>E(_.icon),P=()=>E(_.title),A=()=>E(_["html-container"]),I=()=>E(_.image),D=()=>E(_["progress-steps"]),B=()=>E(_["validation-message"]),O=()=>x(".".concat(_.actions," .").concat(_.confirm)),R=()=>x(".".concat(_.actions," .").concat(_.deny)),M=()=>x(".".concat(_.loader)),L=()=>x(".".concat(_.actions," .").concat(_.cancel)),N=()=>E(_.actions),j=()=>E(_.footer),H=()=>E(_["timer-progress-bar"]),F=()=>E(_.close),q=()=>{const e=Array.from(S().querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])')).sort(((e,t)=>{const o=parseInt(e.getAttribute("tabindex")),n=parseInt(t.getAttribute("tabindex"));return o>n?1:o"-1"!==e.getAttribute("tabindex")));return(e=>{const t=[];for(let o=0;ore(e)))},U=()=>G(document.body,_.shown)&&!G(document.body,_["toast-shown"])&&!G(document.body,_["no-backdrop"]),Y=()=>S()&&G(S(),_.toast),z={previousBodyPadding:null},W=(e,t)=>{if(e.textContent="",t){const o=(new DOMParser).parseFromString(t,"text/html");Array.from(o.querySelector("head").childNodes).forEach((t=>{e.appendChild(t)})),Array.from(o.querySelector("body").childNodes).forEach((t=>{e.appendChild(t)}))}},G=(e,t)=>{if(!t)return!1;const o=t.split(/\s+/);for(let t=0;t{if(((e,t)=>{Array.from(e.classList).forEach((o=>{Object.values(_).includes(o)||Object.values(k).includes(o)||Object.values(t.showClass).includes(o)||e.classList.remove(o)}))})(e,t),t.customClass&&t.customClass[n]){if("string"!=typeof t.customClass[n]&&!t.customClass[n].forEach)return o("Invalid type of customClass.".concat(n,'! Expected string or iterable object, got "').concat(typeof t.customClass[n],'"'));J(e,t.customClass[n])}},K=(e,t)=>{if(!t)return null;switch(t){case"select":case"textarea":case"file":return e.querySelector(".".concat(_.popup," > .").concat(_[t]));case"checkbox":return e.querySelector(".".concat(_.popup," > .").concat(_.checkbox," input"));case"radio":return e.querySelector(".".concat(_.popup," > .").concat(_.radio," input:checked"))||e.querySelector(".".concat(_.popup," > .").concat(_.radio," input:first-child"));case"range":return e.querySelector(".".concat(_.popup," > .").concat(_.range," input"));default:return e.querySelector(".".concat(_.popup," > .").concat(_.input))}},$=e=>{if(e.focus(),"file"!==e.type){const t=e.value;e.value="",e.value=t}},Z=(e,t,o)=>{e&&t&&("string"==typeof t&&(t=t.split(/\s+/).filter(Boolean)),t.forEach((t=>{Array.isArray(e)?e.forEach((e=>{o?e.classList.add(t):e.classList.remove(t)})):o?e.classList.add(t):e.classList.remove(t)})))},J=(e,t)=>{Z(e,t,!0)},X=(e,t)=>{Z(e,t,!1)},Q=(e,t)=>{const o=Array.from(e.children);for(let e=0;e{o==="".concat(parseInt(o))&&(o=parseInt(o)),o||0===parseInt(o)?e.style[t]="number"==typeof o?"".concat(o,"px"):o:e.style.removeProperty(t)},te=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"flex";e.style.display=t},oe=e=>{e.style.display="none"},ne=(e,t,o,n)=>{const a=e.querySelector(t);a&&(a.style[o]=n)},ae=function(e,t){t?te(e,arguments.length>2&&void 0!==arguments[2]?arguments[2]:"flex"):oe(e)},re=e=>!(!e||!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)),se=e=>!!(e.scrollHeight>e.clientHeight),ie=e=>{const t=window.getComputedStyle(e),o=parseFloat(t.getPropertyValue("animation-duration")||"0"),n=parseFloat(t.getPropertyValue("transition-duration")||"0");return o>0||n>0},ce=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const o=H();re(o)&&(t&&(o.style.transition="none",o.style.width="100%"),setTimeout((()=>{o.style.transition="width ".concat(e/1e3,"s linear"),o.style.width="0%"}),10))},le=()=>"undefined"==typeof window||"undefined"==typeof document,ue={},de=e=>new Promise((t=>{if(!e)return t();const o=window.scrollX,n=window.scrollY;ue.restoreFocusTimeout=setTimeout((()=>{ue.previousActiveElement instanceof HTMLElement?(ue.previousActiveElement.focus(),ue.previousActiveElement=null):document.body&&document.body.focus(),t()}),100),window.scrollTo(o,n)})),pe='\n
          \n \n
            \n
            \n \n

            \n
            \n \n \n
            \n \n \n
            \n \n
            \n \n \n
            \n
            \n
            \n \n \n \n
            \n
            \n
            \n
            \n
            \n
            \n').replace(/(^|\n)\s*/g,""),he=()=>{ue.currentInstance.resetValidationMessage()},me=e=>{const t=(()=>{const e=C();return!!e&&(e.remove(),X([document.documentElement,document.body],[_["no-backdrop"],_["toast-shown"],_["has-column"]]),!0)})();if(le())return void n("SweetAlert2 requires document to initialize");const o=document.createElement("div");o.className=_.container,t&&J(o,_["no-transition"]),W(o,pe);const a="string"==typeof(r=e.target)?document.querySelector(r):r;var r;a.appendChild(o),(e=>{const t=S();t.setAttribute("role",e.toast?"alert":"dialog"),t.setAttribute("aria-live",e.toast?"polite":"assertive"),e.toast||t.setAttribute("aria-modal","true")})(e),(e=>{"rtl"===window.getComputedStyle(e).direction&&J(C(),_.rtl)})(a),(()=>{const e=S(),t=Q(e,_.input),o=Q(e,_.file),n=e.querySelector(".".concat(_.range," input")),a=e.querySelector(".".concat(_.range," output")),r=Q(e,_.select),s=e.querySelector(".".concat(_.checkbox," input")),i=Q(e,_.textarea);t.oninput=he,o.onchange=he,r.onchange=he,s.onchange=he,i.oninput=he,n.oninput=()=>{he(),a.value=n.value},n.onchange=()=>{he(),a.value=n.value}})()},fe=(e,t)=>{e instanceof HTMLElement?t.appendChild(e):"object"==typeof e?ge(e,t):e&&W(t,e)},ge=(e,t)=>{e.jquery?ye(t,e):W(t,e.toString())},ye=(e,t)=>{if(e.textContent="",0 in t)for(let o=0;o in t;o++)e.appendChild(t[o].cloneNode(!0));else e.appendChild(t.cloneNode(!0))},we=(()=>{if(le())return!1;const e=document.createElement("div"),t={WebkitAnimation:"webkitAnimationEnd",animation:"animationend"};for(const o in t)if(Object.prototype.hasOwnProperty.call(t,o)&&void 0!==e.style[o])return t[o];return!1})(),be=(e,t)=>{const o=N(),n=M();t.showConfirmButton||t.showDenyButton||t.showCancelButton?te(o):oe(o),V(o,t,"actions"),function(e,t,o){const n=O(),a=R(),r=L();ve(n,"confirm",o),ve(a,"deny",o),ve(r,"cancel",o),function(e,t,o,n){if(!n.buttonsStyling)return X([e,t,o],_.styled);J([e,t,o],_.styled),n.confirmButtonColor&&(e.style.backgroundColor=n.confirmButtonColor,J(e,_["default-outline"])),n.denyButtonColor&&(t.style.backgroundColor=n.denyButtonColor,J(t,_["default-outline"])),n.cancelButtonColor&&(o.style.backgroundColor=n.cancelButtonColor,J(o,_["default-outline"]))}(n,a,r,o),o.reverseButtons&&(o.toast?(e.insertBefore(r,n),e.insertBefore(a,n)):(e.insertBefore(r,t),e.insertBefore(a,t),e.insertBefore(n,t)))}(o,n,t),W(n,t.loaderHtml),V(n,t,"loader")};function ve(e,o,n){ae(e,n["show".concat(t(o),"Button")],"inline-block"),W(e,n["".concat(o,"ButtonText")]),e.setAttribute("aria-label",n["".concat(o,"ButtonAriaLabel")]),e.className=_[o],V(e,n,"".concat(o,"Button")),J(e,n["".concat(o,"ButtonClass")])}const _e=(e,t)=>{const n=C();n&&(function(e,t){"string"==typeof t?e.style.background=t:t||J([document.documentElement,document.body],_["no-backdrop"])}(n,t.backdrop),function(e,t){t in _?J(e,_[t]):(o('The "position" parameter is not valid, defaulting to "center"'),J(e,_.center))}(n,t.position),function(e,t){if(t&&"string"==typeof t){const o="grow-".concat(t);o in _&&J(e,_[o])}}(n,t.grow),V(n,t,"container"))};var ke={awaitingPromise:new WeakMap,promise:new WeakMap,innerParams:new WeakMap,domCache:new WeakMap};const Ce=["input","file","range","select","radio","checkbox","textarea"],xe=e=>{if(!De[e.input])return n('Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "'.concat(e.input,'"'));const t=Ae(e.input),o=De[e.input](t,e);te(t),setTimeout((()=>{$(o)}))},Ee=(e,t)=>{const o=K(S(),e);if(o){(e=>{for(let t=0;t{const t=Ae(e.input);"object"==typeof e.customClass&&J(t,e.customClass.input)},Te=(e,t)=>{e.placeholder&&!t.inputPlaceholder||(e.placeholder=t.inputPlaceholder)},Pe=(e,t,o)=>{if(o.inputLabel){e.id=_.input;const n=document.createElement("label"),a=_["input-label"];n.setAttribute("for",e.id),n.className=a,"object"==typeof o.customClass&&J(n,o.customClass.inputLabel),n.innerText=o.inputLabel,t.insertAdjacentElement("beforebegin",n)}},Ae=e=>Q(S(),_[e]||_.input),Ie=(e,t)=>{["string","number"].includes(typeof t)?e.value="".concat(t):l(t)||o('Unexpected type of inputValue! Expected "string", "number" or "Promise", got "'.concat(typeof t,'"'))},De={};De.text=De.email=De.password=De.number=De.tel=De.url=(e,t)=>(Ie(e,t.inputValue),Pe(e,e,t),Te(e,t),e.type=t.input,e),De.file=(e,t)=>(Pe(e,e,t),Te(e,t),e),De.range=(e,t)=>{const o=e.querySelector("input"),n=e.querySelector("output");return Ie(o,t.inputValue),o.type=t.input,Ie(n,t.inputValue),Pe(o,e,t),e},De.select=(e,t)=>{if(e.textContent="",t.inputPlaceholder){const o=document.createElement("option");W(o,t.inputPlaceholder),o.value="",o.disabled=!0,o.selected=!0,e.appendChild(o)}return Pe(e,e,t),e},De.radio=e=>(e.textContent="",e),De.checkbox=(e,t)=>{const o=K(S(),"checkbox");o.value="1",o.id=_.checkbox,o.checked=Boolean(t.inputValue);const n=e.querySelector("span");return W(n,t.inputPlaceholder),o},De.textarea=(e,t)=>{Ie(e,t.inputValue),Te(e,t),Pe(e,e,t);return setTimeout((()=>{if("MutationObserver"in window){const t=parseInt(window.getComputedStyle(S()).width);new MutationObserver((()=>{const o=e.offsetWidth+(n=e,parseInt(window.getComputedStyle(n).marginLeft)+parseInt(window.getComputedStyle(n).marginRight));var n;S().style.width=o>t?"".concat(o,"px"):null})).observe(e,{attributes:!0,attributeFilter:["style"]})}})),e};const Be=(e,t)=>{const o=A();V(o,t,"htmlContainer"),t.html?(fe(t.html,o),te(o,"block")):t.text?(o.textContent=t.text,te(o,"block")):oe(o),((e,t)=>{const o=S(),n=ke.innerParams.get(e),a=!n||t.input!==n.input;Ce.forEach((e=>{const n=Q(o,_[e]);Ee(e,t.inputAttributes),n.className=_[e],a&&oe(n)})),t.input&&(a&&xe(t),Se(t))})(e,t)},Oe=(e,t)=>{for(const o in k)t.icon!==o&&X(e,k[o]);J(e,k[t.icon]),Le(e,t),Re(),V(e,t,"icon")},Re=()=>{const e=S(),t=window.getComputedStyle(e).getPropertyValue("background-color"),o=e.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");for(let e=0;e{let o,n=e.innerHTML;t.iconHtml?o=Ne(t.iconHtml):"success"===t.icon?(o='\n
            \n \n
            \n
            \n',n=n.replace(/ style=".*?"/g,"")):o="error"===t.icon?'\n \n \n \n \n':Ne({question:"?",warning:"!",info:"i"}[t.icon]),n.trim()!==o.trim()&&W(e,o)},Le=(e,t)=>{if(t.iconColor){e.style.color=t.iconColor,e.style.borderColor=t.iconColor;for(const o of[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"])ne(e,o,"backgroundColor",t.iconColor);ne(e,".swal2-success-ring","borderColor",t.iconColor)}},Ne=e=>'
            ').concat(e,"
            "),je=e=>{const t=document.createElement("li");return J(t,_["progress-step"]),W(t,e),t},He=e=>{const t=document.createElement("li");return J(t,_["progress-step-line"]),e.progressStepsDistance&&ee(t,"width",e.progressStepsDistance),t},Fe=(e,t)=>{e.className="".concat(_.popup," ").concat(re(e)?t.showClass.popup:""),t.toast?(J([document.documentElement,document.body],_["toast-shown"]),J(e,_.toast)):J(e,_.modal),V(e,t,"popup"),"string"==typeof t.customClass&&J(e,t.customClass),t.icon&&J(e,_["icon-".concat(t.icon)])},qe=(e,t)=>{((e,t)=>{const o=C(),n=S();t.toast?(ee(o,"width",t.width),n.style.width="100%",n.insertBefore(M(),T())):ee(n,"width",t.width),ee(n,"padding",t.padding),t.color&&(n.style.color=t.color),t.background&&(n.style.background=t.background),oe(B()),Fe(n,t)})(0,t),_e(0,t),((e,t)=>{const n=D();if(!t.progressSteps||0===t.progressSteps.length)return oe(n);te(n),n.textContent="",t.currentProgressStep>=t.progressSteps.length&&o("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),t.progressSteps.forEach(((e,o)=>{const a=je(e);if(n.appendChild(a),o===t.currentProgressStep&&J(a,_["active-progress-step"]),o!==t.progressSteps.length-1){const e=He(t);n.appendChild(e)}}))})(0,t),((e,t)=>{const o=ke.innerParams.get(e),a=T();if(o&&t.icon===o.icon)return Me(a,t),void Oe(a,t);if(t.icon||t.iconHtml){if(t.icon&&-1===Object.keys(k).indexOf(t.icon))return n('Unknown icon! Expected "success", "error", "warning", "info" or "question", got "'.concat(t.icon,'"')),void oe(a);te(a),Me(a,t),Oe(a,t),J(a,t.showClass.icon)}else oe(a)})(e,t),((e,t)=>{const o=I();if(!t.imageUrl)return oe(o);te(o,""),o.setAttribute("src",t.imageUrl),o.setAttribute("alt",t.imageAlt),ee(o,"width",t.imageWidth),ee(o,"height",t.imageHeight),o.className=_.image,V(o,t,"image")})(0,t),((e,t)=>{const o=P();ae(o,t.title||t.titleText,"block"),t.title&&fe(t.title,o),t.titleText&&(o.innerText=t.titleText),V(o,t,"title")})(0,t),((e,t)=>{const o=F();W(o,t.closeButtonHtml),V(o,t,"closeButton"),ae(o,t.showCloseButton),o.setAttribute("aria-label",t.closeButtonAriaLabel)})(0,t),Be(e,t),be(0,t),((e,t)=>{const o=j();ae(o,t.footer),t.footer&&fe(t.footer,o),V(o,t,"footer")})(0,t),"function"==typeof t.didRender&&t.didRender(S())},Ue=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),Ye=()=>{Array.from(document.body.children).forEach((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")}))},ze=["swal-title","swal-html","swal-footer"],We=e=>{const t={};return Array.from(e.querySelectorAll("swal-param")).forEach((e=>{Xe(e,["name","value"]);const o=e.getAttribute("name"),n=e.getAttribute("value");"boolean"==typeof u[o]&&"false"===n&&(t[o]=!1),"object"==typeof u[o]&&(t[o]=JSON.parse(n))})),t},Ge=e=>{const o={};return Array.from(e.querySelectorAll("swal-button")).forEach((e=>{Xe(e,["type","color","aria-label"]);const n=e.getAttribute("type");o["".concat(n,"ButtonText")]=e.innerHTML,o["show".concat(t(n),"Button")]=!0,e.hasAttribute("color")&&(o["".concat(n,"ButtonColor")]=e.getAttribute("color")),e.hasAttribute("aria-label")&&(o["".concat(n,"ButtonAriaLabel")]=e.getAttribute("aria-label"))})),o},Ve=e=>{const t={},o=e.querySelector("swal-image");return o&&(Xe(o,["src","width","height","alt"]),o.hasAttribute("src")&&(t.imageUrl=o.getAttribute("src")),o.hasAttribute("width")&&(t.imageWidth=o.getAttribute("width")),o.hasAttribute("height")&&(t.imageHeight=o.getAttribute("height")),o.hasAttribute("alt")&&(t.imageAlt=o.getAttribute("alt"))),t},Ke=e=>{const t={},o=e.querySelector("swal-icon");return o&&(Xe(o,["type","color"]),o.hasAttribute("type")&&(t.icon=o.getAttribute("type")),o.hasAttribute("color")&&(t.iconColor=o.getAttribute("color")),t.iconHtml=o.innerHTML),t},$e=e=>{const t={},o=e.querySelector("swal-input");o&&(Xe(o,["type","label","placeholder","value"]),t.input=o.getAttribute("type")||"text",o.hasAttribute("label")&&(t.inputLabel=o.getAttribute("label")),o.hasAttribute("placeholder")&&(t.inputPlaceholder=o.getAttribute("placeholder")),o.hasAttribute("value")&&(t.inputValue=o.getAttribute("value")));const n=Array.from(e.querySelectorAll("swal-input-option"));return n.length&&(t.inputOptions={},n.forEach((e=>{Xe(e,["value"]);const o=e.getAttribute("value"),n=e.innerHTML;t.inputOptions[o]=n}))),t},Ze=(e,t)=>{const o={};for(const n in t){const a=t[n],r=e.querySelector(a);r&&(Xe(r,[]),o[a.replace(/^swal-/,"")]=r.innerHTML.trim())}return o},Je=e=>{const t=ze.concat(["swal-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Array.from(e.children).forEach((e=>{const n=e.tagName.toLowerCase();-1===t.indexOf(n)&&o("Unrecognized element <".concat(n,">"))}))},Xe=(e,t)=>{Array.from(e.attributes).forEach((n=>{-1===t.indexOf(n.name)&&o(['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.")])}))};var Qe={email:(e,t)=>/^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]{2,24}$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid email address"),url:(e,t)=>/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid URL")};function et(e){(function(e){e.inputValidator||Object.keys(Qe).forEach((t=>{e.input===t&&(e.inputValidator=Qe[t])}))})(e),e.showLoaderOnConfirm&&!e.preConfirm&&o("showLoaderOnConfirm is set to true, but preConfirm is not defined.\nshowLoaderOnConfirm should be used together with preConfirm, see usage example:\nhttps://sweetalert2.github.io/#ajax-request"),function(e){(!e.target||"string"==typeof e.target&&!document.querySelector(e.target)||"string"!=typeof e.target&&!e.target.appendChild)&&(o('Target parameter is not valid, defaulting to "body"'),e.target="body")}(e),"string"==typeof e.title&&(e.title=e.title.split("\n").join("
            ")),me(e)}class tt{constructor(e,t){this.callback=e,this.remaining=t,this.running=!1,this.start()}start(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}stop(){return this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=(new Date).getTime()-this.started.getTime()),this.remaining}increase(e){const t=this.running;return t&&this.stop(),this.remaining+=e,t&&this.start(),this.remaining}getTimerLeft(){return this.running&&(this.stop(),this.start()),this.remaining}isRunning(){return this.running}}const ot=()=>{null===z.previousBodyPadding&&document.body.scrollHeight>window.innerHeight&&(z.previousBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight="".concat(z.previousBodyPadding+(()=>{const e=document.createElement("div");e.className=_["scrollbar-measure"],document.body.appendChild(e);const t=e.getBoundingClientRect().width-e.clientWidth;return document.body.removeChild(e),t})(),"px"))},nt=()=>{const e=navigator.userAgent,t=!!e.match(/iPad/i)||!!e.match(/iPhone/i),o=!!e.match(/WebKit/i);if(t&&o&&!e.match(/CriOS/i)){const e=44;S().scrollHeight>window.innerHeight-e&&(C().style.paddingBottom="".concat(e,"px"))}},at=()=>{const e=C();let t;e.ontouchstart=e=>{t=rt(e)},e.ontouchmove=e=>{t&&(e.preventDefault(),e.stopPropagation())}},rt=e=>{const t=e.target,o=C();return!(st(e)||it(e)||t!==o&&(se(o)||"INPUT"===t.tagName||"TEXTAREA"===t.tagName||se(A())&&A().contains(t)))},st=e=>e.touches&&e.touches.length&&"stylus"===e.touches[0].touchType,it=e=>e.touches&&e.touches.length>1,ct=e=>{const t=C(),o=S();"function"==typeof e.willOpen&&e.willOpen(o);const n=window.getComputedStyle(document.body).overflowY;pt(t,o,e),setTimeout((()=>{ut(t,o)}),10),U()&&(dt(t,e.scrollbarPadding,n),Array.from(document.body.children).forEach((e=>{e===C()||e.contains(C())||(e.hasAttribute("aria-hidden")&&e.setAttribute("data-previous-aria-hidden",e.getAttribute("aria-hidden")),e.setAttribute("aria-hidden","true"))}))),Y()||ue.previousActiveElement||(ue.previousActiveElement=document.activeElement),"function"==typeof e.didOpen&&setTimeout((()=>e.didOpen(o))),X(t,_["no-transition"])},lt=e=>{const t=S();if(e.target!==t)return;const o=C();t.removeEventListener(we,lt),o.style.overflowY="auto"},ut=(e,t)=>{we&&ie(t)?(e.style.overflowY="hidden",t.addEventListener(we,lt)):e.style.overflowY="auto"},dt=(e,t,o)=>{(()=>{if((/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)&&!G(document.body,_.iosfix)){const e=document.body.scrollTop;document.body.style.top="".concat(-1*e,"px"),J(document.body,_.iosfix),at(),nt()}})(),t&&"hidden"!==o&&ot(),setTimeout((()=>{e.scrollTop=0}))},pt=(e,t,o)=>{J(e,o.showClass.backdrop),t.style.setProperty("opacity","0","important"),te(t,"grid"),setTimeout((()=>{J(t,o.showClass.popup),t.style.removeProperty("opacity")}),10),J([document.documentElement,document.body],_.shown),o.heightAuto&&o.backdrop&&!o.toast&&J([document.documentElement,document.body],_["height-auto"])},ht=e=>{let t=S();t||new To,t=S();const o=M();Y()?oe(T()):mt(t,e),te(o),t.setAttribute("data-loading","true"),t.setAttribute("aria-busy","true"),t.focus()},mt=(e,t)=>{const o=N(),n=M();!t&&re(O())&&(t=O()),te(o),t&&(oe(t),n.setAttribute("data-button-to-replace",t.className)),n.parentNode.insertBefore(n,t),J([e,o],_.loading)},ft=e=>e.checked?1:0,gt=e=>e.checked?e.value:null,yt=e=>e.files.length?null!==e.getAttribute("multiple")?e.files:e.files[0]:null,wt=(e,t)=>{const o=S(),a=e=>vt[t.input](o,_t(e),t);i(t.inputOptions)||l(t.inputOptions)?(ht(O()),c(t.inputOptions).then((t=>{e.hideLoading(),a(t)}))):"object"==typeof t.inputOptions?a(t.inputOptions):n("Unexpected type of inputOptions! Expected object, Map or Promise, got ".concat(typeof t.inputOptions))},bt=(e,t)=>{const o=e.getInput();oe(o),c(t.inputValue).then((n=>{o.value="number"===t.input?parseFloat(n)||0:"".concat(n),te(o),o.focus(),e.hideLoading()})).catch((t=>{n("Error in inputValue promise: ".concat(t)),o.value="",te(o),o.focus(),e.hideLoading()}))},vt={select:(e,t,o)=>{const n=Q(e,_.select),a=(e,t,n)=>{const a=document.createElement("option");a.value=n,W(a,t),a.selected=kt(n,o.inputValue),e.appendChild(a)};t.forEach((e=>{const t=e[0],o=e[1];if(Array.isArray(o)){const e=document.createElement("optgroup");e.label=t,e.disabled=!1,n.appendChild(e),o.forEach((t=>a(e,t[1],t[0])))}else a(n,o,t)})),n.focus()},radio:(e,t,o)=>{const n=Q(e,_.radio);t.forEach((e=>{const t=e[0],a=e[1],r=document.createElement("input"),s=document.createElement("label");r.type="radio",r.name=_.radio,r.value=t,kt(t,o.inputValue)&&(r.checked=!0);const i=document.createElement("span");W(i,a),i.className=_.label,s.appendChild(r),s.appendChild(i),n.appendChild(s)}));const a=n.querySelectorAll("input");a.length&&a[0].focus()}},_t=e=>{const t=[];return"undefined"!=typeof Map&&e instanceof Map?e.forEach(((e,o)=>{let n=e;"object"==typeof n&&(n=_t(n)),t.push([o,n])})):Object.keys(e).forEach((o=>{let n=e[o];"object"==typeof n&&(n=_t(n)),t.push([o,n])})),t},kt=(e,t)=>t&&t.toString()===e.toString();function Ct(){const e=ke.innerParams.get(this);if(!e)return;const t=ke.domCache.get(this);oe(t.loader),Y()?e.icon&&te(T()):xt(t),X([t.popup,t.actions],_.loading),t.popup.removeAttribute("aria-busy"),t.popup.removeAttribute("data-loading"),t.confirmButton.disabled=!1,t.denyButton.disabled=!1,t.cancelButton.disabled=!1}const xt=e=>{const t=e.popup.getElementsByClassName(e.loader.getAttribute("data-button-to-replace"));t.length?te(t[0],"inline-block"):!re(O())&&!re(R())&&!re(L())&&oe(e.actions)};var Et={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};const St=()=>O()&&O().click(),Tt=e=>{e.keydownTarget&&e.keydownHandlerAdded&&(e.keydownTarget.removeEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!1)},Pt=(e,t,o)=>{const n=q();if(n.length)return(t+=o)===n.length?t=0:-1===t&&(t=n.length-1),n[t].focus();S().focus()},At=["ArrowRight","ArrowDown"],It=["ArrowLeft","ArrowUp"],Dt=(e,t,o)=>{const n=ke.innerParams.get(e);n&&(t.isComposing||229===t.keyCode||(n.stopKeydownPropagation&&t.stopPropagation(),"Enter"===t.key?Bt(e,t,n):"Tab"===t.key?Ot(t,n):[...At,...It].includes(t.key)?Rt(t.key):"Escape"===t.key&&Mt(t,n,o)))},Bt=(e,t,o)=>{if(s(o.allowEnterKey)&&t.target&&e.getInput()&&t.target instanceof HTMLElement&&t.target.outerHTML===e.getInput().outerHTML){if(["textarea","file"].includes(o.input))return;St(),t.preventDefault()}},Ot=(e,t)=>{const o=e.target,n=q();let a=-1;for(let e=0;e{const t=O(),o=R(),n=L();if(document.activeElement instanceof HTMLElement&&![t,o,n].includes(document.activeElement))return;const a=At.includes(e)?"nextElementSibling":"previousElementSibling";let r=document.activeElement;for(let e=0;e{s(t.allowEscapeKey)&&(e.preventDefault(),o(Ue.esc))};function Lt(e,t,o,n){Y()?Yt(e,n):(de(o).then((()=>Yt(e,n))),Tt(ue)),/^((?!chrome|android).)*safari/i.test(navigator.userAgent)?(t.setAttribute("style","display:none !important"),t.removeAttribute("class"),t.innerHTML=""):t.remove(),U()&&(null!==z.previousBodyPadding&&(document.body.style.paddingRight="".concat(z.previousBodyPadding,"px"),z.previousBodyPadding=null),(()=>{if(G(document.body,_.iosfix)){const e=parseInt(document.body.style.top,10);X(document.body,_.iosfix),document.body.style.top="",document.body.scrollTop=-1*e}})(),Ye()),X([document.documentElement,document.body],[_.shown,_["height-auto"],_["no-backdrop"],_["toast-shown"]])}function Nt(e){e=Ft(e);const t=Et.swalPromiseResolve.get(this),o=jt(this);this.isAwaitingPromise()?e.isDismissed||(Ht(this),t(e)):o&&t(e)}const jt=e=>{const t=S();if(!t)return!1;const o=ke.innerParams.get(e);if(!o||G(t,o.hideClass.popup))return!1;X(t,o.showClass.popup),J(t,o.hideClass.popup);const n=C();return X(n,o.showClass.backdrop),J(n,o.hideClass.backdrop),qt(e,t,o),!0};const Ht=e=>{e.isAwaitingPromise()&&(ke.awaitingPromise.delete(e),ke.innerParams.get(e)||e._destroy())},Ft=e=>void 0===e?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},e),qt=(e,t,o)=>{const n=C(),a=we&&ie(t);"function"==typeof o.willClose&&o.willClose(t),a?Ut(e,t,n,o.returnFocus,o.didClose):Lt(e,n,o.returnFocus,o.didClose)},Ut=(e,t,o,n,a)=>{ue.swalCloseEventFinishedCallback=Lt.bind(null,e,o,n,a),t.addEventListener(we,(function(e){e.target===t&&(ue.swalCloseEventFinishedCallback(),delete ue.swalCloseEventFinishedCallback)}))},Yt=(e,t)=>{setTimeout((()=>{"function"==typeof t&&t.bind(e.params)(),e._destroy()}))};function zt(e,t,o){const n=ke.domCache.get(e);t.forEach((e=>{n[e].disabled=o}))}function Wt(e,t){if(!e)return!1;if("radio"===e.type){const o=e.parentNode.parentNode.querySelectorAll("input");for(let e=0;e{const t={};return Object.keys(e).forEach((n=>{f(n)?t[n]=e[n]:o("Invalid parameter to update: ".concat(n))})),t};const Vt=e=>{Kt(e),delete e.params,delete ue.keydownHandler,delete ue.keydownTarget,delete ue.currentInstance},Kt=e=>{e.isAwaitingPromise()?($t(ke,e),ke.awaitingPromise.set(e,!0)):($t(Et,e),$t(ke,e))},$t=(e,t)=>{for(const o in e)e[o].delete(t)};var Zt=Object.freeze({hideLoading:Ct,disableLoading:Ct,getInput:function(e){const t=ke.innerParams.get(e||this),o=ke.domCache.get(e||this);return o?K(o.popup,t.input):null},close:Nt,isAwaitingPromise:function(){return!!ke.awaitingPromise.get(this)},rejectPromise:function(e){const t=Et.swalPromiseReject.get(this);Ht(this),t&&t(e)},handleAwaitingPromise:Ht,closePopup:Nt,closeModal:Nt,closeToast:Nt,enableButtons:function(){zt(this,["confirmButton","denyButton","cancelButton"],!1)},disableButtons:function(){zt(this,["confirmButton","denyButton","cancelButton"],!0)},enableInput:function(){return Wt(this.getInput(),!1)},disableInput:function(){return Wt(this.getInput(),!0)},showValidationMessage:function(e){const t=ke.domCache.get(this),o=ke.innerParams.get(this);W(t.validationMessage,e),t.validationMessage.className=_["validation-message"],o.customClass&&o.customClass.validationMessage&&J(t.validationMessage,o.customClass.validationMessage),te(t.validationMessage);const n=this.getInput();n&&(n.setAttribute("aria-invalid",!0),n.setAttribute("aria-describedby",_["validation-message"]),$(n),J(n,_.inputerror))},resetValidationMessage:function(){const e=ke.domCache.get(this);e.validationMessage&&oe(e.validationMessage);const t=this.getInput();t&&(t.removeAttribute("aria-invalid"),t.removeAttribute("aria-describedby"),X(t,_.inputerror))},getProgressSteps:function(){return ke.domCache.get(this).progressSteps},update:function(e){const t=S(),n=ke.innerParams.get(this);if(!t||G(t,n.hideClass.popup))return o("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.");const a=Gt(e),r=Object.assign({},n,a);qe(this,r),ke.innerParams.set(this,r),Object.defineProperties(this,{params:{value:Object.assign({},this.params,e),writable:!1,enumerable:!0}})},_destroy:function(){const e=ke.domCache.get(this),t=ke.innerParams.get(this);t?(e.popup&&ue.swalCloseEventFinishedCallback&&(ue.swalCloseEventFinishedCallback(),delete ue.swalCloseEventFinishedCallback),"function"==typeof t.didDestroy&&t.didDestroy(),Vt(this)):Kt(this)}});const Jt=(e,o)=>{const a=ke.innerParams.get(e);if(!a.input)return void n('The "input" parameter is needed to be set when using returnInputValueOn'.concat(t(o)));const r=((e,t)=>{const o=e.getInput();if(!o)return null;switch(t.input){case"checkbox":return ft(o);case"radio":return gt(o);case"file":return yt(o);default:return t.inputAutoTrim?o.value.trim():o.value}})(e,a);a.inputValidator?Xt(e,r,o):e.getInput().checkValidity()?"deny"===o?Qt(e,r):oo(e,r):(e.enableButtons(),e.showValidationMessage(a.validationMessage))},Xt=(e,t,o)=>{const n=ke.innerParams.get(e);e.disableInput(),Promise.resolve().then((()=>c(n.inputValidator(t,n.validationMessage)))).then((n=>{e.enableButtons(),e.enableInput(),n?e.showValidationMessage(n):"deny"===o?Qt(e,t):oo(e,t)}))},Qt=(e,t)=>{const o=ke.innerParams.get(e||void 0);o.showLoaderOnDeny&&ht(R()),o.preDeny?(ke.awaitingPromise.set(e||void 0,!0),Promise.resolve().then((()=>c(o.preDeny(t,o.validationMessage)))).then((o=>{!1===o?(e.hideLoading(),Ht(e)):e.close({isDenied:!0,value:void 0===o?t:o})})).catch((t=>to(e||void 0,t)))):e.close({isDenied:!0,value:t})},eo=(e,t)=>{e.close({isConfirmed:!0,value:t})},to=(e,t)=>{e.rejectPromise(t)},oo=(e,t)=>{const o=ke.innerParams.get(e||void 0);o.showLoaderOnConfirm&&ht(),o.preConfirm?(e.resetValidationMessage(),ke.awaitingPromise.set(e||void 0,!0),Promise.resolve().then((()=>c(o.preConfirm(t,o.validationMessage)))).then((o=>{re(B())||!1===o?(e.hideLoading(),Ht(e)):eo(e,void 0===o?t:o)})).catch((t=>to(e||void 0,t)))):eo(e,t)},no=(e,t,o)=>{t.popup.onclick=()=>{const t=ke.innerParams.get(e);t&&(ao(t)||t.timer||t.input)||o(Ue.close)}},ao=e=>e.showConfirmButton||e.showDenyButton||e.showCancelButton||e.showCloseButton;let ro=!1;const so=e=>{e.popup.onmousedown=()=>{e.container.onmouseup=function(t){e.container.onmouseup=void 0,t.target===e.container&&(ro=!0)}}},io=e=>{e.container.onmousedown=()=>{e.popup.onmouseup=function(t){e.popup.onmouseup=void 0,(t.target===e.popup||e.popup.contains(t.target))&&(ro=!0)}}},co=(e,t,o)=>{t.container.onclick=n=>{const a=ke.innerParams.get(e);ro?ro=!1:n.target===t.container&&s(a.allowOutsideClick)&&o(Ue.backdrop)}},lo=e=>e instanceof Element||(e=>"object"==typeof e&&e.jquery)(e);const uo=()=>{if(ue.timeout)return(()=>{const e=H(),t=parseInt(window.getComputedStyle(e).width);e.style.removeProperty("transition"),e.style.width="100%";const o=t/parseInt(window.getComputedStyle(e).width)*100;e.style.removeProperty("transition"),e.style.width="".concat(o,"%")})(),ue.timeout.stop()},po=()=>{if(ue.timeout){const e=ue.timeout.start();return ce(e),e}};let ho=!1;const mo={};const fo=e=>{for(let t=e.target;t&&t!==document;t=t.parentNode)for(const e in mo){const o=t.getAttribute(e);if(o)return void mo[e].fire({template:o})}};var go=Object.freeze({isValidParameter:m,isUpdatableParameter:f,isDeprecatedParameter:g,argsToParams:e=>{const t={};return"object"!=typeof e[0]||lo(e[0])?["title","html","icon"].forEach(((o,a)=>{const r=e[a];"string"==typeof r||lo(r)?t[o]=r:void 0!==r&&n("Unexpected type of ".concat(o,'! Expected "string" or "Element", got ').concat(typeof r))})):Object.assign(t,e[0]),t},isVisible:()=>re(S()),clickConfirm:St,clickDeny:()=>R()&&R().click(),clickCancel:()=>L()&&L().click(),getContainer:C,getPopup:S,getTitle:P,getHtmlContainer:A,getImage:I,getIcon:T,getInputLabel:()=>E(_["input-label"]),getCloseButton:F,getActions:N,getConfirmButton:O,getDenyButton:R,getCancelButton:L,getLoader:M,getFooter:j,getTimerProgressBar:H,getFocusableElements:q,getValidationMessage:B,isLoading:()=>S().hasAttribute("data-loading"),fire:function(){const e=this;for(var t=arguments.length,o=new Array(t),n=0;nue.timeout&&ue.timeout.getTimerLeft(),stopTimer:uo,resumeTimer:po,toggleTimer:()=>{const e=ue.timeout;return e&&(e.running?uo():po())},increaseTimer:e=>{if(ue.timeout){const t=ue.timeout.increase(e);return ce(t,!0),t}},isTimerRunning:()=>ue.timeout&&ue.timeout.isRunning(),bindClickHandler:function(){mo[arguments.length>0&&void 0!==arguments[0]?arguments[0]:"data-swal-template"]=this,ho||(document.body.addEventListener("click",fo),ho=!0)}});let yo;class wo{constructor(){if("undefined"==typeof window)return;yo=this;for(var e=arguments.length,t=new Array(e),o=0;o1&&void 0!==arguments[1]?arguments[1]:{};(e=>{!e.backdrop&&e.allowOutsideClick&&o('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');for(const t in e)y(t),e.toast&&w(t),b(t)})(Object.assign({},t,e)),ue.currentInstance&&(ue.currentInstance._destroy(),U()&&Ye()),ue.currentInstance=yo;const n=vo(e,t);et(n),Object.freeze(n),ue.timeout&&(ue.timeout.stop(),delete ue.timeout),clearTimeout(ue.restoreFocusTimeout);const a=_o(yo);return qe(yo,n),ke.innerParams.set(yo,n),bo(yo,a,n)}then(e){return ke.promise.get(this).then(e)}finally(e){return ke.promise.get(this).finally(e)}}const bo=(e,t,o)=>new Promise(((n,a)=>{const r=t=>{e.closePopup({isDismissed:!0,dismiss:t})};Et.swalPromiseResolve.set(e,n),Et.swalPromiseReject.set(e,a),t.confirmButton.onclick=()=>(e=>{const t=ke.innerParams.get(e);e.disableButtons(),t.input?Jt(e,"confirm"):oo(e,!0)})(e),t.denyButton.onclick=()=>(e=>{const t=ke.innerParams.get(e);e.disableButtons(),t.returnInputValueOnDeny?Jt(e,"deny"):Qt(e,!1)})(e),t.cancelButton.onclick=()=>((e,t)=>{e.disableButtons(),t(Ue.cancel)})(e,r),t.closeButton.onclick=()=>r(Ue.close),((e,t,o)=>{ke.innerParams.get(e).toast?no(e,t,o):(so(t),io(t),co(e,t,o))})(e,t,r),((e,t,o,n)=>{Tt(t),o.toast||(t.keydownHandler=t=>Dt(e,t,n),t.keydownTarget=o.keydownListenerCapture?window:S(),t.keydownListenerCapture=o.keydownListenerCapture,t.keydownTarget.addEventListener("keydown",t.keydownHandler,{capture:t.keydownListenerCapture}),t.keydownHandlerAdded=!0)})(e,ue,o,r),((e,t)=>{"select"===t.input||"radio"===t.input?wt(e,t):["text","email","number","tel","textarea"].includes(t.input)&&(i(t.inputValue)||l(t.inputValue))&&(ht(O()),bt(e,t))})(e,o),ct(o),ko(ue,o,r),Co(t,o),setTimeout((()=>{t.container.scrollTop=0}))})),vo=(e,t)=>{const o=(e=>{const t="string"==typeof e.template?document.querySelector(e.template):e.template;if(!t)return{};const o=t.content;return Je(o),Object.assign(We(o),Ge(o),Ve(o),Ke(o),$e(o),Ze(o,ze))})(e),n=Object.assign({},u,t,o,e);return n.showClass=Object.assign({},u.showClass,n.showClass),n.hideClass=Object.assign({},u.hideClass,n.hideClass),n},_o=e=>{const t={popup:S(),container:C(),actions:N(),confirmButton:O(),denyButton:R(),cancelButton:L(),loader:M(),closeButton:F(),validationMessage:B(),progressSteps:D()};return ke.domCache.set(e,t),t},ko=(e,t,o)=>{const n=H();oe(n),t.timer&&(e.timeout=new tt((()=>{o("timer"),delete e.timeout}),t.timer),t.timerProgressBar&&(te(n),V(n,t,"timerProgressBar"),setTimeout((()=>{e.timeout&&e.timeout.running&&ce(t.timer)}))))},Co=(e,t)=>{if(!t.toast)return s(t.allowEnterKey)?void(xo(e,t)||Pt(0,-1,1)):Eo()},xo=(e,t)=>t.focusDeny&&re(e.denyButton)?(e.denyButton.focus(),!0):t.focusCancel&&re(e.cancelButton)?(e.cancelButton.focus(),!0):!(!t.focusConfirm||!re(e.confirmButton)||(e.confirmButton.focus(),0)),Eo=()=>{document.activeElement instanceof HTMLElement&&"function"==typeof document.activeElement.blur&&document.activeElement.blur()};if("undefined"!=typeof window&&/^ru\b/.test(navigator.language)&&location.host.match(/\.(ru|su|xn--p1ai)$/)&&Math.random()<.1){const e=document.createElement("div");e.className="leave-russia-now-and-apply-your-skills-to-the-world";const t=(So=[{text:"В нижеприведённом видео объясняется как каждый из нас может помочь в том,\n чтобы эта бессмысленная и бесчеловечная война остановилась:",id:"4CfDhaRkw7I"},{text:"Эмпатия - главное человеческое чувство. Способность сопереживать. Способность поставить себя на место другого.",id:"s-GLAIY4DXA"}])[Math.floor(Math.random()*So.length)];W(e,"\n
            \n Если мы не остановим войну, она придет в дом каждого из нас и её последствия будут ужасающими.\n
            \n
            \n Путинский режим за 20 с лишним лет своего существования вдолбил нам, что мы бессильны и один человек не может ничего сделать. Это не так!\n
            \n
            \n ".concat(t.text,'\n
            \n \n
            \n Нет войне!\n
            \n '));const o=document.createElement("button");o.innerHTML="×",o.onclick=()=>e.remove(),e.appendChild(o),window.addEventListener("load",(()=>{setTimeout((()=>{document.body.appendChild(e)}),1e3)}))}var So;Object.assign(wo.prototype,Zt),Object.assign(wo,go),Object.keys(Zt).forEach((e=>{wo[e]=function(){if(yo)return yo[e](...arguments)}})),wo.DismissReason=Ue,wo.version="11.4.26";const To=wo;return To.default=To,To}(),void 0!==this&&this.Sweetalert2&&(this.swal=this.sweetAlert=this.Swal=this.SweetAlert=this.Sweetalert2),"undefined"!=typeof document&&function(e,t){var o=e.createElement("style");if(e.getElementsByTagName("head")[0].appendChild(o),o.styleSheet)o.styleSheet.disabled||(o.styleSheet.cssText=t);else try{o.innerHTML=t}catch(e){o.innerText=t}}(document,'.swal2-popup.swal2-toast{box-sizing:border-box;grid-column:1/4!important;grid-row:1/4!important;grid-template-columns:1fr 99fr 1fr;padding:1em;overflow-y:hidden;background:#fff;box-shadow:0 0 1px hsla(0deg,0%,0%,.075),0 1px 2px hsla(0deg,0%,0%,.075),1px 2px 4px hsla(0deg,0%,0%,.075),1px 3px 8px hsla(0deg,0%,0%,.075),2px 4px 16px hsla(0deg,0%,0%,.075);pointer-events:all}.swal2-popup.swal2-toast>*{grid-column:2}.swal2-popup.swal2-toast .swal2-title{margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-loading{justify-content:center}.swal2-popup.swal2-toast .swal2-input{height:2em;margin:.5em;font-size:1em}.swal2-popup.swal2-toast .swal2-validation-message{font-size:1em}.swal2-popup.swal2-toast .swal2-footer{margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-popup.swal2-toast .swal2-close{grid-column:3/3;grid-row:1/99;align-self:center;width:.8em;height:.8em;margin:0;font-size:2em}.swal2-popup.swal2-toast .swal2-html-container{margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-html-container:empty{padding:0}.swal2-popup.swal2-toast .swal2-loader{grid-column:1;grid-row:1/99;align-self:center;width:2em;height:2em;margin:.25em}.swal2-popup.swal2-toast .swal2-icon{grid-column:1;grid-row:1/99;align-self:center;width:2em;min-width:2em;height:2em;margin:0 .5em 0 0}.swal2-popup.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:700}.swal2-popup.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-popup.swal2-toast .swal2-actions{justify-content:flex-start;height:auto;margin:0;margin-top:.5em;padding:0 .5em}.swal2-popup.swal2-toast .swal2-styled{margin:.25em .5em;padding:.4em .6em;font-size:1em}.swal2-popup.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;transform:rotate(45deg);border-radius:50%}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-.8em;left:-.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-popup.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{-webkit-animation:swal2-toast-animate-success-line-tip .75s;animation:swal2-toast-animate-success-line-tip .75s}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{-webkit-animation:swal2-toast-animate-success-line-long .75s;animation:swal2-toast-animate-success-line-long .75s}.swal2-popup.swal2-toast.swal2-show{-webkit-animation:swal2-toast-show .5s;animation:swal2-toast-show .5s}.swal2-popup.swal2-toast.swal2-hide{-webkit-animation:swal2-toast-hide .1s forwards;animation:swal2-toast-hide .1s forwards}.swal2-container{display:grid;position:fixed;z-index:1060;top:0;right:0;bottom:0;left:0;box-sizing:border-box;grid-template-areas:"top-start top top-end" "center-start center center-end" "bottom-start bottom-center bottom-end";grid-template-rows:minmax(-webkit-min-content,auto) minmax(-webkit-min-content,auto) minmax(-webkit-min-content,auto);grid-template-rows:minmax(min-content,auto) minmax(min-content,auto) minmax(min-content,auto);height:100%;padding:.625em;overflow-x:hidden;transition:background-color .1s;-webkit-overflow-scrolling:touch}.swal2-container.swal2-backdrop-show,.swal2-container.swal2-noanimation{background:rgba(0,0,0,.4)}.swal2-container.swal2-backdrop-hide{background:0 0!important}.swal2-container.swal2-bottom-start,.swal2-container.swal2-center-start,.swal2-container.swal2-top-start{grid-template-columns:minmax(0,1fr) auto auto}.swal2-container.swal2-bottom,.swal2-container.swal2-center,.swal2-container.swal2-top{grid-template-columns:auto minmax(0,1fr) auto}.swal2-container.swal2-bottom-end,.swal2-container.swal2-center-end,.swal2-container.swal2-top-end{grid-template-columns:auto auto minmax(0,1fr)}.swal2-container.swal2-top-start>.swal2-popup{align-self:start}.swal2-container.swal2-top>.swal2-popup{grid-column:2;align-self:start;justify-self:center}.swal2-container.swal2-top-end>.swal2-popup,.swal2-container.swal2-top-right>.swal2-popup{grid-column:3;align-self:start;justify-self:end}.swal2-container.swal2-center-left>.swal2-popup,.swal2-container.swal2-center-start>.swal2-popup{grid-row:2;align-self:center}.swal2-container.swal2-center>.swal2-popup{grid-column:2;grid-row:2;align-self:center;justify-self:center}.swal2-container.swal2-center-end>.swal2-popup,.swal2-container.swal2-center-right>.swal2-popup{grid-column:3;grid-row:2;align-self:center;justify-self:end}.swal2-container.swal2-bottom-left>.swal2-popup,.swal2-container.swal2-bottom-start>.swal2-popup{grid-column:1;grid-row:3;align-self:end}.swal2-container.swal2-bottom>.swal2-popup{grid-column:2;grid-row:3;justify-self:center;align-self:end}.swal2-container.swal2-bottom-end>.swal2-popup,.swal2-container.swal2-bottom-right>.swal2-popup{grid-column:3;grid-row:3;align-self:end;justify-self:end}.swal2-container.swal2-grow-fullscreen>.swal2-popup,.swal2-container.swal2-grow-row>.swal2-popup{grid-column:1/4;width:100%}.swal2-container.swal2-grow-column>.swal2-popup,.swal2-container.swal2-grow-fullscreen>.swal2-popup{grid-row:1/4;align-self:stretch}.swal2-container.swal2-no-transition{transition:none!important}.swal2-popup{display:none;position:relative;box-sizing:border-box;grid-template-columns:minmax(0,100%);width:32em;max-width:100%;padding:0 0 1.25em;border:none;border-radius:5px;background:#fff;color:#545454;font-family:inherit;font-size:1rem}.swal2-popup:focus{outline:0}.swal2-popup.swal2-loading{overflow-y:hidden}.swal2-title{position:relative;max-width:100%;margin:0;padding:.8em 1em 0;color:inherit;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:auto;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;transition:box-shadow .1s;box-shadow:0 0 0 3px transparent;font-weight:500}.swal2-styled:not([disabled]){cursor:pointer}.swal2-styled.swal2-confirm{border:0;border-radius:.25em;background:initial;background-color:#7066e0;color:#fff;font-size:1em}.swal2-styled.swal2-confirm:focus{box-shadow:0 0 0 3px rgba(112,102,224,.5)}.swal2-styled.swal2-deny{border:0;border-radius:.25em;background:initial;background-color:#dc3741;color:#fff;font-size:1em}.swal2-styled.swal2-deny:focus{box-shadow:0 0 0 3px rgba(220,55,65,.5)}.swal2-styled.swal2-cancel{border:0;border-radius:.25em;background:initial;background-color:#6e7881;color:#fff;font-size:1em}.swal2-styled.swal2-cancel:focus{box-shadow:0 0 0 3px rgba(110,120,129,.5)}.swal2-styled.swal2-default-outline:focus{box-shadow:0 0 0 3px rgba(100,150,200,.5)}.swal2-styled:focus{outline:0}.swal2-styled::-moz-focus-inner{border:0}.swal2-footer{justify-content:center;margin:1em 0 0;padding:1em 1em 0;border-top:1px solid #eee;color:inherit;font-size:1em}.swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;grid-column:auto!important;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:2em auto 1em}.swal2-close{z-index:2;align-items:center;justify-content:center;width:1.2em;height:1.2em;margin-top:0;margin-right:0;margin-bottom:-1.2em;padding:0;overflow:hidden;transition:color .1s,box-shadow .1s;border:none;border-radius:5px;background:0 0;color:#ccc;font-family:serif;font-family:monospace;font-size:2.5em;cursor:pointer;justify-self:end}.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-html-container{z-index:1;justify-content:center;margin:1em 1.6em .3em;padding:0;overflow:auto;color:inherit;font-size:1.125em;font-weight:400;line-height:normal;text-align:center;word-wrap:break-word;word-break:break-word}.swal2-checkbox,.swal2-file,.swal2-input,.swal2-radio,.swal2-select,.swal2-textarea{margin:1em 2em 3px}.swal2-file,.swal2-input,.swal2-textarea{box-sizing:border-box;width:auto;transition:border-color .1s,box-shadow .1s;border:1px solid #d9d9d9;border-radius:.1875em;background:0 0;box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px transparent;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:inset 0 1px 1px rgba(0,0,0,.06),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::placeholder,.swal2-input::placeholder,.swal2-textarea::placeholder{color:#ccc}.swal2-range{margin:1em 2em 3px;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-file{width:75%;margin-right:auto;margin-left:auto;background:0 0;font-size:1.125em}.swal2-textarea{height:6.75em;padding:.75em}.swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:0 0;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 0}.swal2-validation-message{align-items:center;justify-content:center;margin:1em 0 0;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:2.5em auto .6em;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;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-warning.swal2-icon-show{-webkit-animation:swal2-animate-error-icon .5s;animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-warning.swal2-icon-show .swal2-icon-content{-webkit-animation:swal2-animate-i-mark .5s;animation:swal2-animate-i-mark .5s}.swal2-icon.swal2-info{border-color:#9de0f6;color:#3fc3ee}.swal2-icon.swal2-info.swal2-icon-show{-webkit-animation:swal2-animate-error-icon .5s;animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-info.swal2-icon-show .swal2-icon-content{-webkit-animation:swal2-animate-i-mark .8s;animation:swal2-animate-i-mark .8s}.swal2-icon.swal2-question{border-color:#c9dae1;color:#87adbd}.swal2-icon.swal2-question.swal2-icon-show{-webkit-animation:swal2-animate-error-icon .5s;animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-question.swal2-icon-show .swal2-icon-content{-webkit-animation:swal2-animate-question-mark .8s;animation:swal2-animate-question-mark .8s}.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:1.25em auto;padding:0;background:0 0;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{margin-right:initial;margin-left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}.leave-russia-now-and-apply-your-skills-to-the-world{display:flex;position:fixed;z-index:1939;top:0;right:0;bottom:0;left:0;flex-direction:column;align-items:center;justify-content:center;padding:25px 0 20px;background:#20232a;color:#fff;text-align:center}.leave-russia-now-and-apply-your-skills-to-the-world div{max-width:560px;margin:10px;line-height:146%}.leave-russia-now-and-apply-your-skills-to-the-world iframe{max-width:100%;max-height:55.5555555556vmin;margin:16px auto}.leave-russia-now-and-apply-your-skills-to-the-world strong{border-bottom:2px dashed #fff}.leave-russia-now-and-apply-your-skills-to-the-world button{display:flex;position:fixed;z-index:1940;top:0;right:0;align-items:center;justify-content:center;width:48px;height:48px;margin-right:10px;margin-bottom:-10px;border:none;background:0 0;color:#aaa;font-size:48px;font-weight:700;cursor:pointer}.leave-russia-now-and-apply-your-skills-to-the-world button:hover{color:#fff}@-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)}}@-webkit-keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@-webkit-keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}@keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}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{background-color:transparent!important;pointer-events:none}body.swal2-no-backdrop .swal2-container .swal2-popup{pointer-events:all}body.swal2-no-backdrop .swal2-container .swal2-modal{box-shadow:0 0 10px rgba(0,0,0,.4)}@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{box-sizing:border-box;width:360px;max-width:100%;background-color:transparent;pointer-events:none}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 o=!1;try{o="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(e){}t.hasCORS=o},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 o in e)e.hasOwnProperty(o)&&(t.length&&(t+="&"),t+=encodeURIComponent(o)+"="+encodeURIComponent(e[o]));return t},t.decode=function(e){let t={},o=e.split("&");for(let e=0,n=o.length;e{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parse=void 0;const o=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,n=["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=o.exec(e||""),i={},c=14;for(;c--;)i[n[c]]=s[c]||"";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 o=t.replace(/\/{2,9}/g,"/").split("/");return"/"!=t.substr(0,1)&&0!==t.length||o.splice(0,1),"/"==t.substr(t.length-1,1)&&o.splice(o.length-1,1),o}(0,i.path),i.queryKey=function(e,t){const o={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,(function(e,t,n){t&&(o[t]=n)})),o}(0,i.query),i}},8726:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.yeast=t.decode=t.encode=void 0;const o="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),n={};let a,r=0,s=0;function i(e){let t="";do{t=o[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,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parse=t.installTimerFunctions=t.transports=t.Transport=t.protocol=t.Socket=void 0;const n=o(3481);Object.defineProperty(t,"Socket",{enumerable:!0,get:function(){return n.Socket}}),t.protocol=n.Socket.protocol;var a=o(9870);Object.defineProperty(t,"Transport",{enumerable:!0,get:function(){return a.Transport}});var r=o(7385);Object.defineProperty(t,"transports",{enumerable:!0,get:function(){return r.transports}});var s=o(9622);Object.defineProperty(t,"installTimerFunctions",{enumerable:!0,get:function(){return s.installTimerFunctions}});var i=o(5222);Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return i.parse}})},3481:function(e,t,o){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Socket=void 0;const a=o(7385),r=o(9622),s=o(5754),i=o(5222),c=n(o(1227)),l=o(5260),u=o(1373),d=(0,c.default)("engine.io-client:socket");class p extends l.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 o=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",o),new a.transports[e](o)}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),o=!1;p.priorWebsocketSuccess=!1;const n=()=>{o||(d('probe transport "%s" opened',e),t.send([{type:"ping",data:"probe"}]),t.once("packet",(n=>{if(!o)if("pong"===n.type&&"probe"===n.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((()=>{o||"closed"!==this.readyState&&(d("changing transport and sending upgrade packet"),l(),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 o=new Error("probe error");o.transport=t.name,this.emitReserved("upgradeError",o)}})))};function a(){o||(o=!0,l(),t.close(),t=null)}const r=o=>{const n=new Error("probe error: "+o);n.transport=t.name,a(),d('probe transport "%s" failed because of error: %s',e,o),this.emitReserved("upgradeError",n)};function s(){r("transport closed")}function i(){r("socket closed")}function c(e){t&&e.name!==t.name&&(d('"%s" works - aborting "%s"',e.name,t.name),a())}const l=()=>{t.removeListener("open",n),t.removeListener("error",r),t.removeListener("close",s),this.off("close",i),this.off("upgrading",c)};t.once("open",n),t.once("error",r),t.once("close",s),this.once("close",i),this.once("upgrading",c),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,o){return this.sendPacket("message",e,t,o),this}send(e,t,o){return this.sendPacket("message",e,t,o),this}sendPacket(e,t,o,n){if("function"==typeof t&&(n=t,t=void 0),"function"==typeof o&&(n=o,o=null),"closing"===this.readyState||"closed"===this.readyState)return;(o=o||{}).compress=!1!==o.compress;const a={type:e,data:t,options:o};this.emitReserved("packetCreate",a),this.writeBuffer.push(a),n&&this.once("flush",n),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()},o=()=>{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?o():e()})):this.upgrading?o():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 o=0;const n=e.length;for(;o{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.transports=void 0;const n=o(484),a=o(1308);t.transports={websocket:a.WS,polling:n.Polling}},484:function(e,t,o){"use strict";var n=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=o(9870),r=n(o(1227)),s=o(8726),i=o(5754),c=o(1373),l=o(6666),u=o(5260),d=o(9622),p=o(6242),h=(0,r.default)("engine.io-client:polling");function m(){}const f=null!=new l.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 o=location.port;o||(o=t?"443":"80"),this.xd="undefined"!=typeof location&&e.hostname!==location.hostname||o!==e.port,this.xs=e.secure!==t}const t=e&&e.forceBase64;this.supportsBinary=f&&!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,c.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,c.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 o="";!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))&&(o=":"+this.opts.port);const n=(0,i.encode)(e);return t+"://"+(-1!==this.opts.hostname.indexOf(":")?"["+this.opts.hostname+"]":this.opts.hostname)+o+this.opts.path+(n.length?"?"+n:"")}request(e={}){return Object.assign(e,{xd:this.xd,xs:this.xs},this.opts),new y(this.uri(),e)}doWrite(e,t){const o=this.request({method:"POST",data:e});o.on("success",t),o.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 l.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=m,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,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultBinaryType=t.usingBrowserWebSocket=t.WebSocket=t.nextTick=void 0;const n=o(6242);t.nextTick="function"==typeof Promise&&"function"==typeof Promise.resolve?e=>Promise.resolve().then(e):(e,t)=>t(e,0),t.WebSocket=n.globalThisShim.WebSocket||n.globalThisShim.MozWebSocket,t.usingBrowserWebSocket=!0,t.defaultBinaryType="arraybuffer"},1308:function(e,t,o){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.WS=void 0;const a=o(9870),r=o(5754),s=o(8726),i=o(9622),c=o(5552),l=n(o(1227)),u=o(1373),d=(0,l.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,o=p?{}:(0,i.pick)(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(o.headers=this.opts.extraHeaders);try{this.ws=c.usingBrowserWebSocket&&!p?t?new c.WebSocket(e,t):new c.WebSocket(e):new c.WebSocket(e,t,o)}catch(e){return this.emitReserved("error",e)}this.ws.binaryType=this.socket.binaryType||c.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={};!c.usingBrowserWebSocket&&(o.options&&(t.compress=o.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 o="";this.opts.port&&("wss"===t&&443!==Number(this.opts.port)||"ws"===t&&80!==Number(this.opts.port))&&(o=":"+this.opts.port),this.opts.timestampRequests&&(e[this.opts.timestampParam]=(0,s.yeast)()),this.supportsBinary||(e.b64=1);const n=(0,r.encode)(e);return t+"://"+(-1!==this.opts.hostname.indexOf(":")?"["+this.opts.hostname+"]":this.opts.hostname)+o+this.opts.path+(n.length?"?"+n:"")}check(){return!!c.WebSocket}}t.WS=h},6666:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.XHR=void 0;const n=o(8419),a=o(6242);t.XHR=function(e){const t=e.xdomain;try{if("undefined"!=typeof XMLHttpRequest&&(!t||n.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,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.byteLength=t.installTimerFunctions=t.pick=void 0;const n=o(6242);t.pick=function(e,...t){return t.reduce(((t,o)=>(e.hasOwnProperty(o)&&(t[o]=e[o]),t)),{})};const a=setTimeout,r=clearTimeout;t.installTimerFunctions=function(e,t){t.useNativeTimers?(e.setTimeoutFn=a.bind(n.globalThisShim),e.clearTimeoutFn=r.bind(n.globalThisShim)):(e.setTimeoutFn=setTimeout.bind(n.globalThisShim),e.clearTimeoutFn=clearTimeout.bind(n.globalThisShim))},t.byteLength=function(e){return"string"==typeof e?function(e){let t=0,o=0;for(let n=0,a=e.length;n=57344?o+=3:(n++,o+=4);return o}(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 o=Object.create(null);t.PACKET_TYPES=o,o.open="0",o.close="1",o.ping="2",o.pong="3",o.message="4",o.upgrade="5",o.noop="6";const n=Object.create(null);t.PACKET_TYPES_REVERSE=n,Object.keys(o).forEach((e=>{n[o[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 o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n="undefined"==typeof Uint8Array?[]:new Uint8Array(256);for(let e=0;e{let t,n=new Uint8Array(e),a=n.length,r="";for(t=0;t>2],r+=o[(3&n[t])<<4|n[t+1]>>4],r+=o[(15&n[t+1])<<2|n[t+2]>>6],r+=o[63&n[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,o,a,r,s,i=.75*e.length,c=e.length,l=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[l++]=(15&a)<<4|r>>2,d[l++]=(3&r)<<6|63&s;return u}},7572:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=o(3087),a=o(2469),r="function"==typeof ArrayBuffer,s=(e,t)=>{if(r){const o=(0,a.decode)(e);return i(o,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 o=e.charAt(0);return"b"===o?{type:"message",data:s(e.substring(1),t)}:n.PACKET_TYPES_REVERSE[o]?e.length>1?{type:n.PACKET_TYPES_REVERSE[o],data:e.substring(1)}:{type:n.PACKET_TYPES_REVERSE[o]}:n.ERROR_PACKET}},3908:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=o(3087),a="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),r="function"==typeof ArrayBuffer,s=(e,t)=>{const o=new FileReader;return o.onload=function(){const e=o.result.split(",")[1];t("b"+e)},o.readAsDataURL(e)};t.default=({type:e,data:t},o,i)=>{return a&&t instanceof Blob?o?i(t):s(t,i):r&&(t instanceof ArrayBuffer||(c=t,"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(c):c&&c.buffer instanceof ArrayBuffer))?o?i(t):s(new Blob([t]),i):i(n.PACKET_TYPES[e]+(t||""));var c}},1373:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodePayload=t.decodePacket=t.encodePayload=t.encodePacket=t.protocol=void 0;const n=o(3908);t.encodePacket=n.default;const a=o(7572);t.decodePacket=a.default;const r=String.fromCharCode(30);t.encodePayload=(e,t)=>{const o=e.length,a=new Array(o);let s=0;e.forEach(((e,i)=>{(0,n.default)(e,!1,(e=>{a[i]=e,++s===o&&t(a.join(r))}))}))},t.decodePayload=(e,t)=>{const o=e.split(r),n=[];for(let e=0;e{"use strict";function o(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=o,o.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),o=Math.floor(t*this.jitter*e);e=0==(1&Math.floor(10*t))?e-o:e+o}return 0|Math.min(e,this.max)},o.prototype.reset=function(){this.attempts=0},o.prototype.setMin=function(e){this.ms=e},o.prototype.setMax=function(e){this.max=e},o.prototype.setJitter=function(e){this.jitter=e}},7046:function(e,t,o){"use strict";var n=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=o(3084),r=o(4168);Object.defineProperty(t,"Manager",{enumerable:!0,get:function(){return r.Manager}});const s=o(8312);Object.defineProperty(t,"Socket",{enumerable:!0,get:function(){return s.Socket}});const i=n(o(1227)).default("socket.io-client"),c={};function l(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};const o=a.url(e,t.path||"/socket.io"),n=o.source,s=o.id,l=o.path,u=c[s]&&l in c[s].nsps;let d;return t.forceNew||t["force new connection"]||!1===t.multiplex||u?(i("ignoring socket cache for %s",n),d=new r.Manager(n,t)):(c[s]||(i("new io instance for %s",n),c[s]=new r.Manager(n,t)),d=c[s]),o.query&&!t.query&&(t.query=o.queryKey),d.socket(o.path,t)}t.io=l,t.connect=l,t.default=l,Object.assign(l,{Manager:r.Manager,Socket:s.Socket,io:l,connect:l});var u=o(7116);Object.defineProperty(t,"protocol",{enumerable:!0,get:function(){return u.protocol}}),e.exports=l},4168:function(e,t,o){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,o,n){void 0===n&&(n=o),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[o]}})}:function(e,t,o,n){void 0===n&&(n=o),e[n]=t[o]}),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 o in e)"default"!==o&&Object.prototype.hasOwnProperty.call(e,o)&&n(t,e,o);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=o(4679),c=o(8312),l=r(o(7116)),u=o(7149),d=o(5159),p=o(5260),h=s(o(1227)).default("socket.io-client:manager");class m extends p.Emitter{constructor(e,t){var o;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!==(o=t.randomizationFactor)&&void 0!==o?o:.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 n=t.parser||l;this.encoder=new n.Encoder,this.decoder=new n.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,o=this;this._readyState="opening",this.skipReconnect=!1;const n=u.on(t,"open",(function(){o.onopen(),e&&e()})),a=u.on(t,"error",(t=>{h("error"),o.cleanup(),o._readyState="closed",this.emitReserved("error",t),e?e(t):o.maybeReconnectOnOpen()}));if(!1!==this._timeout){const e=this._timeout;h("connect attempt will timeout after %d",e),0===e&&n();const o=this.setTimeoutFn((()=>{h("connect attempt timed out after %d",e),n(),t.close(),t.emit("error",new Error("timeout"))}),e);this.opts.autoUnref&&o.unref(),this.subs.push((function(){clearTimeout(o)}))}return this.subs.push(n),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 o=this.nsps[e];return o||(o=new c.Socket(this,e,t),this.nsps[e]=o),o}_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 o=0;oe())),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 o=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&&o.unref(),this.subs.push((function(){clearTimeout(o)}))}}onreconnect(){const e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}t.Manager=m},7149:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.on=void 0,t.on=function(e,t,o){return e.on(t,o),function(){e.off(t,o)}}},8312:function(e,t,o){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Socket=void 0;const a=o(7116),r=o(7149),s=o(5260),i=n(o(1227)).default("socket.io-client:socket"),c=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class l extends s.Emitter{constructor(e,t,o){super(),this.connected=!1,this.receiveBuffer=[],this.sendBuffer=[],this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=t,o&&o.auth&&(this.auth=o.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(c.hasOwnProperty(e))throw new Error('"'+e+'" is a reserved event name');t.unshift(e);const o={type:a.PacketType.EVENT,data:t,options:{}};if(o.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 n=t.pop();this._registerAckCallback(e,n),o.id=e}const n=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return!this.flags.volatile||n&&this.connected?this.connected?(this.notifyOutgoingListeners(o),this.packet(o)):this.sendBuffer.push(o):i("discard packet as the transport is not currently writable"),this.flags={},this}_registerAckCallback(e,t){const o=this.flags.timeout;if(void 0===o)return void(this.acks[e]=t);const n=this.io.setTimeoutFn((()=>{delete this.acks[e];for(let t=0;t{this.io.clearTimeoutFn(n),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 o of t)o.apply(this,e)}super.emit.apply(this,e)}ack(e){const t=this;let o=!1;return function(...n){o||(o=!0,i("sending ack %j",n),t.packet({type:a.PacketType.ACK,id:e,data:n}))}}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 o=0;o{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.reconstructPacket=t.deconstructPacket=void 0;const n=o(790);function a(e,t){if(!e)return e;if(n.isBinary(e)){const o={_placeholder:!0,num:t.length};return t.push(e),o}if(Array.isArray(e)){const o=new Array(e.length);for(let n=0;n=0&&e.num{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Decoder=t.Encoder=t.PacketType=t.protocol=void 0;const n=o(5260),a=o(3155),r=o(790),s=o(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),o=this.encodeAsString(t.packet),n=t.buffers;return n.unshift(o),n}};class c extends n.Emitter{constructor(e){super(),this.reviver=e}add(e){let t;if("string"==typeof e){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");t=this.decodeString(e),t.type===i.BINARY_EVENT||t.type===i.BINARY_ACK?(this.reconstructor=new l(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 o={type:Number(e.charAt(0))};if(void 0===i[o.type])throw new Error("unknown packet type "+o.type);if(o.type===i.BINARY_EVENT||o.type===i.BINARY_ACK){const n=t+1;for(;"-"!==e.charAt(++t)&&t!=e.length;);const a=e.substring(n,t);if(a!=Number(a)||"-"!==e.charAt(t))throw new Error("Illegal attachments");o.attachments=Number(a)}if("/"===e.charAt(t+1)){const n=t+1;for(;++t&&","!==e.charAt(t)&&t!==e.length;);o.nsp=e.substring(n,t)}else o.nsp="/";const n=e.charAt(t+1);if(""!==n&&Number(n)==n){const n=t+1;for(;++t;){const o=e.charAt(t);if(null==o||Number(o)!=o){--t;break}if(t===e.length)break}o.id=Number(e.substring(n,t+1))}if(e.charAt(++t)){const n=this.tryParse(e.substr(t));if(!c.isPayloadValid(o.type,n))throw new Error("invalid payload");o.data=n}return s("decoded %s as %j",e,o),o}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=c;class l{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 o="function"==typeof ArrayBuffer,n=Object.prototype.toString,a="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===n.call(Blob),r="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===n.call(File);function s(e){return o&&(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,o){if(!t||"object"!=typeof t)return!1;if(Array.isArray(t)){for(let o=0,n=t.length;o{"use strict";function n(e){if(e)return function(e){for(var t in n.prototype)e[t]=n.prototype[t];return e}(e)}o.r(t),o.d(t,{Emitter:()=>n}),n.prototype.on=n.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},n.prototype.once=function(e,t){function o(){this.off(e,o),t.apply(this,arguments)}return o.fn=t,this.on(e,o),this},n.prototype.off=n.prototype.removeListener=n.prototype.removeAllListeners=n.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var o,n=this._callbacks["$"+e];if(!n)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 o in t)__webpack_require__.o(t,o)&&!__webpack_require__.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},__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__(8238),__webpack_require__(112),__webpack_require__(3336),__webpack_require__(2868),__webpack_require__(4719),__webpack_require__(3131),__webpack_require__(3526),__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 608c56b..5448a72 100644 --- a/cheatGUI/src/hacks/pets.ts +++ b/cheatGUI/src/hacks/pets.ts @@ -220,4 +220,18 @@ new Hack(category.pets, "Edit Kennel", "Allows you to directly edit your pets.") // End Kennel +// Begin Backup Kennel +new Hack(category.pets, "Backup Kennel", "Makes a backup of your kennel to your chrome local storage.").setClick(async () => { + +}); +// End Backup Kennel + + +// Begin Restore Kennel +new Hack(category.pets, "Restore Kennel", "Restores a backup of your kennel from the local storage... if you have one.").setClick(async () => { + +}); +// End Restore Kennel + + // END PET HACKS diff --git a/cheatGUI/src/utils/kennel.ts b/cheatGUI/src/utils/kennel.ts index c0ff3d1..b13e423 100644 --- a/cheatGUI/src/utils/kennel.ts +++ b/cheatGUI/src/utils/kennel.ts @@ -1,11 +1,10 @@ import { Swal } from "./swal"; -export async function GetAction () : Promise<"Copy" | "Remove" | "Restore" | null> { +export async function GetAction () : Promise<"Copy" | "Remove" | null> { const options = new Map(); options.set("Copy", `Copy a slot to another slot`); options.set("Remove", `Completley empty one slot`); - options.set("Restore", ``); const KennelAction = await Swal.fire({ From d7fd15db9b5dc538f61c4e9aede231aa7dfef2ec Mon Sep 17 00:00:00 2001 From: gemsvido Date: Tue, 30 Aug 2022 09:05:42 -0700 Subject: [PATCH 05/17] backups [JSON.parse encounters errors :(] --- cheatGUI/dist/bundle.js | 2 +- cheatGUI/src/hacks/pets.ts | 17 ++++++++++++++--- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/cheatGUI/dist/bundle.js b/cheatGUI/dist/bundle.js index 75172c6..686d685 100644 --- a/cheatGUI/dist/bundle.js +++ b/cheatGUI/dist/bundle.js @@ -1 +1 @@ -(()=>{var __webpack_modules__={8844:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))}}n=[o,t,o(4759),o(9820),o(2852),o(4719)],void 0===(a=function(e,t,o,n,a,r){"use strict";new n.Toggler(n.category.battle,"Disable math [PvP, PvE]","Disable math in PvP, PvE, anywhere! This doesn't work in the Floatling town.").setEnabled(s((function*(){return a._.constants.constants["GameConstants.Debug.EDUCATION_ENABLED"]=!1,o.Toast.fire("Enabled!","You will no longer do Math!","success")}))).setDisabled(s((function*(){return a._.constants.constants["GameConstants.Debug.EDUCATION_ENABLED"]=!0,o.Toast.fire("Disabled!","You will now do Math!","success")}))),new n.Toggler(n.category.battle,"Instant Kill [PvE]","Makes your spells do insane damage in PvE!").setEnabled(s((function*(){return a.player.modifiers.damage=a.VERY_LARGE_NUMBER,o.Toast.fire("Enabled!","You will now do insane damage in PvE!","success")}))).setDisabled((()=>(a.player.modifiers.damage=1,o.Toast.fire("Disabled!","You will no longer do insane damage in PvE!","success")))),new n.Hack(n.category.battle,"PvP Health [PvP]","Increases your HP in PvP by a hell ton.").setClick(s((function*(){return a.player.pvpHP=a.VERY_LARGE_NUMBER,a.player.getMaxHearts=()=>a.VERY_LARGE_NUMBER,o.Toast.fire("Success!","You now have lots of health!","success")}))),new n.Hack(n.category.battle,"Escape Battle [PvP, PvE]","Escape any battle, PvP or PvE!").setClick(s((function*(){var e=a.game.state.current;return"PVP"===e?(Object.fromEntries(a._.instance.game.state.states).PVP.endPVP(),o.Toast.fire("Escaped!","You have successfully escaped from the PvP battle.","success")):"CoOp"===e?(a.prodigy.world.$(a.player.data.zone),o.Toast.fire("Escaped!","You have successfully escaped from the battle.","success")):["Battle","SecureBattle"].includes(e)?(Object.fromEntries(a._.instance.game.state.states)[e].runAwayCallback(),o.Toast.fire("Escaped!","You have successfully escaped from the PvE battle.","success")):o.Toast.fire("Invalid State.","You are currently not in a battle.","error")}))),new n.Hack(n.category.battle,"Win Battle [PvE]","Instantly win a battle in PvE.").setClick(s((function*(){var e=a.game.state.current;switch((0,r.BattleInfo)("Current State: "+e),e){case"PVP":case"CoOp":return o.Toast.fire("Invalid State.","PvP is not supported for this hack.","error");case"Battle":return Object.fromEntries(a._.instance.game.state.states).Battle.startVictory(),o.Toast.fire("Victory!","You have successfully won the battle.","success");case"SecureBattle":return Object.fromEntries(a._.instance.game.state.states).SecureBattle.battleVictory(),o.Toast.fire("Victory!","You have successfully won the battle.","success");default:return o.Toast.fire("Invalid State.","You are currently not in a battle.","error")}}))),new n.Hack(n.category.battle,"Set Battle Hearts [PvP, PvE]","Sets your hearts in battle, automatically raise your max hearts in PvP or PvE.").setClick(s((function*(){var e=yield o.NumberInput.fire("Health Amount","How much HP do you want?","question");if(void 0!==e.value)return a.player.getMaxHearts=()=>+e.value,a.player.pvpHP=+e.value,a.player.data.hp=+e.value,o.Toast.fire("Success!","Your hearts have been set.","success")}))),new n.Hack(n.category.battle,"Fill Battle Energy [PvP, PvE]","Fills up your battle energy, if you are in PvP or PvE.").setClick(s((function*(){var e=a.game.state.getCurrentState();return"teams"in e?(e.teams[0].setEnergy(99),o.Toast.fire("Success!","Your battle energy has been filled.","success")):o.Toast.fire("Error","You are currently not in a battle.","error")}))),new n.Hack(n.category.battle,"Heal Team [PvE]","Instantly heals you and your pets, if you are in PvE.").setClick(s((function*(){var e=a.game.state.current;return"PVP"===e||"CoOp"===e?o.Toast.fire("Invalid State.","PvP is not supported for this hack.","error"):["Battle","SecureBattle"].includes(e)?(a.player.heal(),o.Toast.fire("Success!","Your team has been healed successfully!","success")):o.Toast.fire("Invalid State.","Your are currently not in a battle.","error")})))}.apply(t,n))||(e.exports=a)},9155:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))}}n=[o,t,o(4759),o(9820),o(2852),o(112),o(3131)],void 0===(a=function(e,t,o,n,a,r,i){"use strict";new n.Hack(n.category.beta,"Get all Runes [BETA]").setClick(s((function*(){if((yield o.Confirm.fire({title:"Hang on!",html:"This hack may damage your account with various bugs, for example you may be unable to do Rune Run.

            Proceed?",icon:"warning"})).value){var e,t=parseInt((yield o.NumberInput.fire({title:"Amount",text:"How many of each would you like?",icon:"question",inputValidator:e=>e?"":"Please select which you'd like to get."})).value);if(!isNaN(t))return Array.from(a._.instance.prodigy.gameContainer._inversifyContainer._bindingDictionary._map).forEach((t=>{try{a._.instance.prodigy.gameContainer.get(t[0]).battleData&&(e=t[0])}catch(e){console.log("Error for ".concat(t[0]))}})),a._.instance.prodigy.gameContainer.get(e).battleData._secureCharacterState._data.inventory.orb=(0,r.runeify)(a._.gameData.orb,t),o.Toast.fire("Runes Added!","Your runes have been added!","success")}}))),new n.Hack(n.category.beta,"Edit Pet [BETA]","Edit a pet.").setClick(s((function*(){if(!(yield o.Confirm.fire({title:"Hang on!",html:"This hack may damage your account with various bugs, for example you may be unable to do Rune Run.

            Proceed?",icon:"warning"})).value)return console.log("Cancelled.");var e=yield(0,r.getPet)("Choose the pet to edit.");if(void 0!==e){var t=a.player.kennel.data[e],n=yield o.Swal.fire({input:"select",inputOptions:{level:"Level",attacks:"Attacks",name:"Name"},title:"Edit Property",text:"What do you want to edit?"});if(void 0!==n.value){if("level"===n.value){var s=yield o.NumberInput.fire("Level Number","What level do you want to set your pet to?","question");if(void 0===s.value)return;return t.level=+s.value,o.Toast.fire("Success!","The pet's level has been set.","success")}if("attacks"===n.value){var i=a._.gameData.spell,c=document.createElement("div"),l=document.createElement("select");for(var u of(l.classList.add("selectSpell"),i)){var d=document.createElement("option");d.value=u.ID.toString(),d.innerText="".concat(u.ID,": ").concat(u.name," (").concat(u.data.element,") - Damage: ").concat(u.data.damage),l.options.add(d)}c.append(l),c.append(l.cloneNode(!0));var p=yield o.Swal.fire({title:"Attack List",focusConfirm:!1,showCancelButton:!0,html:c,preConfirm:()=>Array.prototype.slice.call(document.querySelectorAll(".selectSpell")).map((e=>e.options[e.selectedIndex].value))});if(void 0===p.value)return;return t.foreignSpells.splice(0,2,...p.value.map((e=>+e))),o.Toast.fire("Attacks updated!","The attack list of the pet you selected has been edited.","success")}if("name"===n.value){var h=yield o.Input.fire("Input Name","What do you want to name the pet?","question");if(void 0===h.value)return;return t.nickname=h.value,o.Toast.fire("Successfully renamed!","The name of the pet has been changed.","success")}}}}))),new n.Hack(n.category.beta,"Morph Player [BETA]","Morph into a pet, furnishing, or follow.").setClick(s((function*(){if(!(yield o.Confirm.fire("This hack is in BETA","Expect bugs, and it might not work properly.")).value)return console.log("Cancelled");var e=yield o.Swal.fire({title:"Which morph type?",input:"select",inputOptions:{pet:"Pet",dorm:"Furniture",follow:"Follow"},inputPlaceholder:"Morph Type",inputValidator:e=>e?"":"Please select a morph type.",showCancelButton:!0});if(null!=e&&e.value){var t={};a._.gameData[e.value].forEach((e=>t[e.ID]="".concat(e.name," (").concat(e.ID,")")));var n=yield o.Swal.fire({title:"Which morph?",input:"select",inputOptions:t,inputPlaceholder:"Morph ID",inputValidator:e=>e?"":"Please select a morph ID.",showCancelButton:!0});if(n.value)return a.player.getPlayerData().playerTransformation={transformType:e.value,transformID:n.value,maxTime:36e5,timeRemaining:36e5},a.player.appearanceChanged=!0,o.Toast.fire("Morphed!","You've been morphed.","success")}}))),new n.Toggler(n.category.beta,"Toggle Close Popups [BETA]","Automatically closes popups in Prodigy.").setEnabled(s((function*(){return(0,i.PopupInterval)(!0),o.Toast.fire("Enabled","Toggle Close Popups is now enabled.","success")}))).setDisabled(s((function*(){return(0,i.PopupInterval)(!1),o.Toast.fire("Enabled","Toggle Close Popups is now disabled.","success")}))),new n.Hack(n.category.beta,"Hypermax Account [BETA]").setClick(s((function*(){if((yield o.Confirm.fire({title:"Hang on!",html:"This hack will damage your account with various bugs, for example you may be unable to do Rune Run/Arena, amd you will recieve 418s and inavtivity kicks.

            Proceed?",icon:"warning"})).value){a.player.data.gold=99e5,console.log("Set player gold to 9900000.");var e=100..value-2;a.player.data.stars=Math.round((1-Math.pow(1.042,e))/(1-1.042)*20+10),a.player.data.level=100,a.player.getLevel=()=>a.player.data.level,console.log("Set player level to 100"),a.player.data.bountyScore=100,console.log("Set player's bounty points to 100.");for(var t=0;ta.VERY_LARGE_NUMBER,console.log("PvP health obtained.");for(var n=0;n<100;n++)a.player.achievements.data.progress[n]=10;console.log("Obtained all achievements."),a.player.data.tower=100,console.log("Set tower floor to 100."),a.player.getMaxHearts=()=>a.VERY_LARGE_NUMBER,a.player.pvpHP=a.VERY_LARGE_NUMBER,a.player.data.hp=a.VERY_LARGE_NUMBER,console.log("Maxed out PvE health.");var s,i=99e4;r.ids.forEach((e=>{a.player.backpack.data[e]=(0,r.itemify)(a._.gameData[e].filter((t=>"follow"===e?![125,126,127,128,129,134,135,136,137].includes(t.ID):t)),i.value)})),a._.gameData.dorm.forEach((e=>a.player.house.data.items[e.ID]={A:[],N:i.value}));for(var c=()=>a.player.backpack.data.item.findIndex((e=>84===e.ID||85===e.ID||86===e.ID));c()>-1;)a.player.backpack.data.item.splice(c(),1);return o.Toast.fire("Success!","All items added!","success"),console.log("All items added!"),a.player.backpack.data.mount=(0,r.itemify)(a._.gameData.mount,1),console.log("Added all mounts."),a._.gameData.dorm.forEach((e=>a.player.house.data.items[e.ID]={A:[],N:99e4.value})),console.log("Added 990000 of all furniture."),a._.gameData.pet.forEach((e=>{a.player.kennel.addPet(e.ID.toString(),a.VERY_LARGE_NUMBER,26376,100)})),a.player.kennel._encounterInfo._data.pets=[],a._.gameData.pet.map((e=>{a.player.kennel._encounterInfo._data.pets.push({firstSeenDate:Date.now(),ID:e.ID,timesBattled:1,timesRescued:1})})),a.player.kennel.petTeam.forEach((e=>{e&&e.assignRandomSpells&&e.assignRandomSpells()})),console.log("Added all pets."),a._.gameData.pet.filter((e=>[158,166,168].includes(e.ID))).forEach((e=>{a.player.kennel.addPet(e.ID.toString(),a.VERY_LARGE_NUMBER,26376,100)})),a.player.kennel.petTeam.forEach((e=>{e&&e.assignRandomSpells&&e.assignRandomSpells()})),console.log("Added Mythical Epics."),a._.gameData.pet.filter((e=>[125,126,127,128,129,130,131,132,133].includes(e.ID))).forEach((e=>{a.player.kennel.addPet(e.ID.toString(),a.VERY_LARGE_NUMBER,26376,100)})),a.player.kennel.petTeam.forEach((e=>{e&&e.assignRandomSpells&&e.assignRandomSpells()})),console.log("Added Legacy Epics."),a._.constants.constants["GameConstants.Inactivity.LOG_OUT_TIMER_SECONDS"]=0,console.log("Inactivity Kick Disabled."),a.player._playerContainer.walkSpeed=20,console.log("Player walkspeed set to 20."),Array.from(a._.instance.prodigy.gameContainer._inversifyContainer._bindingDictionary._map).forEach((e=>{try{a._.instance.prodigy.gameContainer.get(e[0]).battleData&&(s=e[0])}catch(t){console.log("Error for ".concat(e[0]))}})),a._.instance.prodigy.gameContainer.get(s).battleData._secureCharacterState._data.inventory.orb=(0,r.runeify)(a._.gameData.orb,100),a.player.equipment.setHat(200),a.player.equipment.setBoots(93),a.player.equipment.setOutfit(161),a.player.equipment.setWeapon(196),(0,a.saveCharacter)(),console.log("Character Saved."),a.player.appearanceChanged=!0,console.log("Appearance Refreshed."),a._.instance.prodigy.open.menuCloseAll(),console.log("Popups closed."),(0,a.saveCharacter)(),console.log("Character Saved."),console.log("Max Account Successful."),o.Toast.fire("Maxed!","Check your backpack!","success")}})))}.apply(t,n))||(e.exports=a)},8130:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))}}n=[o,t,o(9820),o(4759),o(2852),o(112)],void 0===(a=function(e,t,o,n,a,r){"use strict";new o.Hack(o.category.inventory,"Item stacker").setClick(s((function*(){var e=yield n.NumberInput.fire("Amount","How many of every item would you like?","question");if(e.value&&(yield n.Confirm.fire("Are you sure you want to get all items in the game?")).value){r.ids.forEach((t=>{a.player.backpack.data[t]=(0,r.itemify)(a._.gameData[t].filter((e=>"follow"===t?![125,126,127,128,129,134,135,136,137].includes(e.ID):e)),e.value)})),a._.gameData.dorm.forEach((t=>a.player.house.data.items[t.ID]={A:[],N:e.value}));for(var t=()=>a.player.backpack.data.item.findIndex((e=>84===e.ID||85===e.ID||86===e.ID));t()>-1;)a.player.backpack.data.item.splice(t(),1);return n.Toast.fire("Success!","All items added!","success")}}))),new o.Hack(o.category.inventory,"Clear inventory").setClick(s((function*(){(yield n.Confirm.fire("Are you sure you want to clear your inventory?")).value&&(Object.keys(a.player.backpack.data).forEach((e=>a.player.backpack.data[e]=[])),n.Toast.fire("Success!","Inventory cleared.","success"))}))),new o.Hack(o.category.inventory,"Selector (Basic)").setClick(s((function*(){yield n.Swal.fire({title:"What would you like to obtain?",input:"select",inputOptions:r.names,inputPlaceholder:"Select...",inputValidator:e=>e?"":"Please select which you'd like to obtain.",showCancelButton:!0}).then(function(){var e=s((function*(e){var t=parseInt(e.value),o=r.names[t],s=r.ids[t];if(o){var i=yield n.NumberInput.fire("Amount","How many each object would you like?","question");i.value&&(yield n.Confirm.fire("Are you sure you want to get all ".concat(o.toLowerCase(),"?"))).value&&(a.player.backpack.data[s]=(0,r.itemify)(a._.gameData[s].filter((e=>"follow"===s?![125,126,127,128,129,134,135,136,137].includes(e.ID):e)),i.value),n.Toast.fire("".concat(o," Added!"),"All ".concat(o.toLowerCase()," have been added to your inventory!"),"success"),(0,a.saveCharacter)())}}));return function(t){return e.apply(this,arguments)}}())}))),new o.Hack(o.category.inventory,"Selector (Advanced)","Choose a specific object and quantity to obtain.").setClick(s((function*(){yield n.Swal.fire({title:"What would you like to obtain?",input:"select",inputOptions:r.names,inputPlaceholder:"Select...",inputValidator:e=>e?"":"Please select which you'd like to obtain.",showCancelButton:!0}).then(function(){var e=s((function*(e){if(a._.gameData[r.ids[e.value]]){var t=[];a._.gameData[r.ids[e.value]].forEach((e=>{t.push(e.data.name)})),yield n.Swal.fire({title:"What specific object categorized as ".concat(r.names[e.value].toLowerCase()," would you like to get?"),input:"select",inputOptions:t,inputPlaceholder:"Select...",inputValidator:e=>e?"":"Please select which you'd like to get.",showCancelButton:!0}).then(function(){var t=s((function*(t){var o=parseInt(t.value);if(a._.gameData[r.ids[e.value]][o]){var s=yield n.NumberInput.fire("Amount","How many of the object would you like?","question");if(s.value)return-1===a.player.backpack.data[r.ids[e.value]].findIndex((t=>t.ID===a._.gameData[r.ids[e.value]][o].ID))?a.player.backpack.data[r.ids[e.value]].push({ID:a._.gameData[r.ids[e.value]][o].ID,N:s.value}):a.player.backpack.data[r.ids[e.value]].findIndex((t=>t.ID===a._.gameData[r.ids[e.value]][o].ID)),console.log(a._.gameData[r.ids[e.value]][o].ID),(0,a.saveCharacter)(),n.Toast.fire("".concat(r.names[e.value]," Added!"),"Your selected ".concat(r.names[e.value].toLowerCase()," have been added."),"success")}}));return function(e){return t.apply(this,arguments)}}())}}));return function(t){return e.apply(this,arguments)}}())}))),new o.Hack(o.category.inventory,"Obtain All Furniture").setClick(s((function*(){var e=yield n.NumberInput.fire("Amount","How many of each piece of furniture would you like?","question");if(e.value&&(yield n.Confirm.fire("Are you sure you want to get all furniture?")).value)return a._.gameData.dorm.forEach((t=>a.player.house.data.items[t.ID]={A:[],N:e.value})),n.Toast.fire("Furniture Added!","All furniture has been added to your inventory!","success")}))),new o.Hack(o.category.inventory,"Obtain All Mounts","This gives you all of the mounts in the game.").setClick(s((function*(){return a.player.backpack.data.mount=(0,r.itemify)(a._.gameData.mount,1),n.Toast.fire("Mounts Added!","All mounts have been added to your inventory!")}))),new o.Hack(o.category.inventory,"Remove item").setClick(s((function*(){var e=yield n.Swal.fire({title:"What category would you like to remove an item from?",input:"select",inputOptions:r.names,inputPlaceholder:"Select...",inputValidator:e=>e?"":"Please select which you'd like to obtain.",showCancelButton:!0});if(a._.gameData[r.ids[e.value]]){var t=a._.gameData[r.ids[e.value]].map((e=>e.data.name)),o=yield n.Swal.fire({title:"What specific object categorized as ".concat(r.names[e.value].toLowerCase()," would you like to remove?"),input:"select",inputOptions:t,inputPlaceholder:"Select...",inputValidator:e=>e?"":"Please select which you'd like to get.",showCancelButton:!0});if(o=parseInt(o.value),a._.gameData[r.ids[e.value]][o]){var s=yield n.NumberInput.fire("Amount","How many of the object would you like to remove?","question");if(s.value){if(-1!==a.player.backpack.data[r.ids[e.value]].findIndex((t=>t.ID===a._.gameData[r.ids[e.value]][o].ID))){var i=a.player.backpack.data[r.ids[e.value]].findIndex((t=>t.ID===a._.gameData[r.ids[e.value]][o].ID));return a.player.backpack.data[r.ids[e.value]][i].N-=parseInt(s.value),a.player.backpack.data[r.ids[e.value]][i].N<=0&&a.player.backpack.data[r.ids[e.value]].splice(i,1),(0,a.saveCharacter)(),n.Toast.fire("Removed!","Successfully removed ".concat(s.value," ").concat(a._.gameData[r.ids[e.value]][o].name,"!"),"success")}yield n.Swal.fire("Item Does Not Exist","You do not have any ".concat(a._.gameData[r.ids[e.value]][o].name,"."),"error")}}}}))),new o.Hack(o.category.inventory,"Obtain All Furniture").setClick(s((function*(){return(yield n.Confirm.fire("Are you sure you want to get all furniture?")).value?(a._.gameData.dorm.forEach((e=>a.player.house.data.items[e.ID]={A:[],N:a.VERY_LARGE_NUMBER})),n.Toast.fire("Furniture Added!","All furniture have been added to your inventory!","success")):console.log("Cancelled.")})))}.apply(t,n))||(e.exports=a)},8346:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))}}n=[o,t,o(9820),o(4759),o(2852),o(112)],void 0===(a=function(e,t,o,n,a,r){"use strict";new o.Hack(o.category.location,"Teleport To Map (interactive)").setClick(s((function*(){var e=n.Swal.mixin({focusConfirm:!1,showCancelButton:!0,preConfirm:()=>{var e;return null===(e=document.querySelector(".radioDiv[checked]"))||void 0===e?void 0:e.getAttribute("zone")}}),t=document.createElement("div");t.classList.add("radioContainer");var o=function(e){var o=document.createElement("DIV");o.classList.add("radioDiv"),o.setAttribute("zone",e);var n=a.locations[e];n?o.style.backgroundImage="url(".concat(n,")"):o.innerText=e,o.onclick=()=>{document.querySelectorAll(".radioDiv[checked]").forEach((e=>e.removeAttribute("checked"))),o.setAttribute("checked","")},t.append(o)};for(var r of Object.keys(a.prodigy.world.zones))o(r);var s=yield e.fire({title:"Teleport Zone",html:t,customClass:{popup:"radioSwal"}});if(s.value){var i=Object.keys(a.prodigy.world.zones[s.value].maps),c=yield n.Swal.fire({input:"select",inputOptions:new Map(i.map((e=>[e,e]))),title:"Map",text:"Which map in the zone do you want to teleport to?"});if(c.value){var l=(yield n.NumberInput.fire("Please enter the x to teleport to. (Try 500?)")).value||500,u=(yield n.NumberInput.fire("Please enter the y to teleport to. (Try 500?)")).value||500;return a.prodigy.world.zones[s.value].teleport(c.value,l,u,{},{}),n.Toast.fire("Teleported","You have been teleported!","success")}}}))),new o.Hack(o.category.location,"Teleport to house by userID").setClick(s((function*(){var e=(yield n.NumberInput.fire("Please enter the userID.")).value;if(e)return(0,r.toHouse)(e),n.Toast.fire("Teleported!","You have been teleported!","success")}))),new o.Hack(o.category.location,"Get Map Location").setClick(s((function*(){var e=a.player.data.zone;navigator.clipboard.writeText(e).then(s((function*(){return console.log("Async: Copying to clipboard was successful!"),n.Swal.fire({title:"Map Location",html:"You are at
            ".concat(e," .
            You can save this to get to the same zone.

            Your location is has also been copied to your clipboard."),icon:"info"})})),function(){var t=s((function*(t){return console.error("Async: Could not copy text: ",t),n.Swal.fire({title:"Map Location",html:"You are at
            ".concat(e," .
            You can save this to get to the same zone."),icon:"info"})}));return function(e){return t.apply(this,arguments)}}())})))}.apply(t,n))||(e.exports=a)},3344:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))}}n=[o,t,o(9820),o(2852),o(4759)],void 0===(a=function(e,t,o,n,a){"use strict";new o.Toggler(o.category.minigames,"69x Walk Speed [Dyno Dig]","Walk so fast that you're teleporting, in Dyno Dig.").setEnabled(s((function*(){return n._.instance.game.state.states.get("DinoDig").walkSpeed=69,a.Toast.fire("Enabled!","You will now walk so fast that you're teleporting in Dyno Dig.","success")}))).setDisabled(s((function*(){return n._.instance.game.state.states.get("DinoDig").walkSpeed=1.5,a.Toast.fire("Disabled!","You will now walk at normal speed, in Dyno Dig.","success")})))}.apply(t,n))||(e.exports=a)},465:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))}}n=[o,t,o(4759),o(9820),o(2852),o(8238)],void 0===(a=function(e,t,o,n,a,r){"use strict";new n.Hack(n.category.misc,"Skip Tutorial").setClick(s((function*(){var e=(e,t,o,n)=>{a._.instance.prodigy.world.getZone(e).testQuest(t,o,n);try{Object.fromEntries(a._.instance.game.state.states).TileScreen.process()}catch(e){}};e("house",2),e("academy",2),a.player.state.set("tutorial-0",4),a.player.backpack.addKeyItem(13,0),a.player.tutorial.data.menus[14]=[1],a._.instance.prodigy.open.map(!0,[]),a.player.onTutorialComplete(),a.player.data.level=Math.max(a.player.data.level,5)}))),new n.Toggler(n.category.misc,"Disable Monster Encounters").setEnabled(s((function*(){return a._.constants.constants["GameConstants.Debug.SCALE_ENCOUNTER_DISTANCE"]=0,o.Toast.fire("Enabled!","Monsters will no longer battle you.","success")}))).setDisabled((()=>(a._.constants.constants["GameConstants.Debug.SCALE_ENCOUNTER_DISTANCE"]=1,o.Toast.fire("Disabled!","Monsters will now battle you.","success")))),new n.Toggler(n.category.misc,"Skip enemy turn").setEnabled(s((function*(){return a._.constants.constants["GameConstants.Battle.SKIP_ENEMY_TURN"]=!0,o.Toast.fire("Skipping!","Enemy turns will now be skipped.","success")}))).setDisabled((()=>(a._.constants.constants["GameConstants.Battle.SKIP_ENEMY_TURN"]=!1,o.Toast.fire("Disabled","Enemy turns will no longer be skipped.","success")))),new n.Toggler(n.category.beta,"FPS Counter [BETA]","Shows you a framerate counter").setEnabled(s((function*(){(0,r.startFps)()}))).setDisabled(s((function*(){(0,r.stopFps)()})));try{var i=a.current.user.source.canSpin;new n.Toggler(n.category.misc,"Unlimited Spins","Lets you spin the wheel as many times as you want!").setEnabled(s((function*(){return a.player.canSpin=()=>{},o.Toast.fire("Enabled!","You can now spin the wheel as many times as you want!","success")}))).setDisabled(s((function*(){return a.player.canSpin=i,o.Toast.fire("Disabled!","You can now spin the wheel only when allowed.","success")})))}catch(e){console.error("Unlimited Spins ERROR: "+e)}new n.Hack(n.category.misc,"Bobbify","Converts your account into Bobby Fancywoman.").setClick(s((function*(){if((yield o.Confirm.fire("Are you sure you want your account to be turned into Bobby Fancywoman?","This action is not reversable.")).value)return a.player.name.data.nickname=null,a.player.name.data.firstName=44,a.player.name.data.middleName=754,a.player.name.data.lastName=882,a.player.data.stars=-1e22,a.player.data.level=69,a.player.appearance.setGender("male"),a.player.appearance.setEyeColor(1),a.player.appearance.setFace(4),a.player.appearance.setHair(19,1),a.player.appearance.setSkinColor(1),a.player.equipment.setFollow(19),a.player.equipment.setHat(19),a.player.equipment.setBoots(19),a.player.equipment.setOutfit(19),a.player.equipment.setWeapon(19),o.Toast.fire("Bobbified!","You are now Bobby Fancywoman.","success")}))),new n.Hack(n.category.misc,"Reset Account","Completely resets your account.").setClick(s((function*(){if((yield o.Confirm.fire("Are you sure you want to reset your account?","This action is not reversible.")).value)return a.player.resetAccount(),o.Swal.fire("Reset!","Your account has been reset. Reload Prodigy for the full effect.","success")})));var c=null,l=0;new n.Hack(n.category.misc,"Chat Spammer","Cycles through chat messages pretty fast!").setClick(s((function*(){return c?o.Swal.fire("Already Enabled","Chat Spammer is already enabled. To disable chat spammer, reload Prodigy.","error"):(c=setInterval(s((function*(){a.player.chatID=l,++l>1164&&(l=0)})),90),o.Toast.fire("Spamming!","You're now sending a chat message every 90 milliseconds!","success"))})));var u=null,d=0;new n.Hack(n.category.misc,"High Chat Spammer","Cycles through chat messages hella fast!").setClick(s((function*(){return u?o.Swal.fire("Already Enabled","High Chat Spammer is already enabled. To disable chat spammer, reload Prodigy.","error"):(yield o.Confirm.fire("Warning","This hack may cause lag on weak computers (ex. School Chromebooks).")).value?(u=setInterval(s((function*(){a.player.chatID=d,++d>1164&&(d=0)})),30),o.Toast.fire("Spamming!","You're now sending a chat message every 30 milliseconds!","success")):console.log("Cancelled")})));var p=null,h=0;new n.Hack(n.category.misc,"Chat Spammer on Meth","Cycles through chat messages FAST ASF!").setClick(s((function*(){return p?o.Swal.fire("Already Enabled","Chat Spammer on Meth is already enabled. To disable chat spammer, reload Prodigy.","error"):(yield o.Confirm.fire("Warning","This hack may cause lag on weak computers (ex. School Chromebooks).")).value?(p=setInterval(s((function*(){a.player.chatID=h,++h>1164&&(h=0)})),1),o.Toast.fire("Spamming!","You're now sending a chat message every 1 millisecond!","success")):console.log("Cancelled")}))),new n.Hack(n.category.misc,"[Fix] Fix Battle Crash").setClick(s((function*(){return a.player.kennel.petTeam.forEach((e=>{e&&e.assignRandomSpells&&e.assignRandomSpells()})),o.Toast.fire("Success!","Fixed kennel attack bug!","success")}))),new n.Hack(n.category.misc,"[Fix] Stuck in Unfinished Tower Fix","Takes you out of an unfinished tower if you're stuck in one.").setClick(s((function*(){return a._.instance.prodigy.world.zones.house.teleport("exit"),o.Toast.fire("Success!","You've been teleported outside of your house.","success")}))),new n.Hack(n.category.misc,"uwu","OwO").setClick(s((function*(){return(yield o.Confirm.fire("Are you sure that you want to UwU OwO?","Reload Prodigy to revert UwU.")).value?(Object.chance=e=>{var t={},o=0;for(var n of Object.keys(e).sort(((e,o)=>t[e]-t[o])))t[n]=[],t[n][0]=o+1,t[n][1]=e[n]+o,o=e[n]+o;return t},Object.random=e=>{var t=Object.values(e),o=t[t.length-1][1],n=Math.randint(o);return Object.reverse(e)[t.find((e=>n>=e[0]&&n<=e[1]))]},Array.prototype.join=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:",";return"string"==typeof e?this.reduce(((t,o,n,a)=>t+(nt+(n0&&void 0!==arguments[0]?arguments[0]:",";return"string"==typeof e?this.reduce(((t,o,n)=>t+(n?e+o:o)),""):e instanceof Function?this.reduce(((t,o,n,a)=>t+(n?e(a[n],n,a)+o:o)),""):void 0},String.UWUFX=e=>{var t=Object.chance({"owo :3":20,"✧w✧":20,UwU:20,OwO:10,rawr:10,"uwu :3":5,":3 meow":15,":3":15,X3:15,"*purrs*":15,owo:15,uwu:15,"^w^":15,"x3 rawr":15,owowowowo:15});return e.split(" ").leftJoin(((e,t)=>0===Math.floor(6*Math.random())&&/[A-Za-z]/.test(e[0])?" ".concat(e[0],"-"):" ")).split(" ").join(((e,o)=>0===Math.floor(5*Math.random())?" ".concat(Object.random(t)," "):" "))},String.UWUTable={y:"wy",l:"w",r:"w",ss:"zs",n:"nw",ove:"uv",ome:"um",x:"ks",com:"cum",stu:"stew",au:"aw"},Math.randint=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Math.floor(Math.random()*e-t)+t},String.prototype.escapeRegex=function(){return this.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")},String.prototype.replaceAll=function(e,t){return this.replace(new RegExp(e.toString().escapeRegex(),"gi"),(e=>t))},Object.fromArrays=(e,t)=>{var o={};return e.forEach(((e,n)=>{o[e]=t[n]})),o},Object.reverse=e=>Object.fromArrays(Object.values(e),Object.keys(e)),String.prototype.bulkReplace=function(e){var t=this;for(var o in e)t=t.replaceAll(o,e[o]);return t},String.UWU=e=>String(e).bulkReplace(String.UWUTable),Object.keys(a._.localizer.dataSource._languageData).map((e=>a._.localizer.dataSource._languageData[e]=String.UWUFX(String.UWU(a._.localizer.dataSource._languageData[e])))),Object.values(a._.gameData).map((e=>e.map((e=>[e.data.name&&(e.data.name=String.UWUFX(String.UWU(e.data.name))),e.name&&(e.name=String.UWUFX(String.UWU(e.name))),e.data.flavorText&&(e.data.flavorText=String.UWUFX(String.UWU(e.data.flavorText)))])))),o.Toast.fire("uwu","Reload Prodigy to fix uwu.","success")):console.log("uwu cancelled")})))}.apply(t,n))||(e.exports=a)},8603:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))}}n=[o,t,o(4759),o(9820),o(2852)],void 0===(a=function(e,t,o,n,a){"use strict";var r=null;new n.Hack(n.category.patched,"Arena Point Increaser [Patched]").setClick(s((function*(){return r?o.Swal.fire("Already Enabled","Arena Point Increaser is already enabled.","error"):(yield o.Confirm.fire("This hack is patched.","Running it will probably do nothing.")).value?(r=setInterval(s((function*(){var e=yield(yield fetch("https://api.prodigygame.com/leaderboard-api/season/".concat(a.prodigy.pvpNetworkHandler.seasonID,"/user/").concat(a.player.userID,"/pvp?userID=").concat(a.player.userID),{headers:{authorization:"Bearer ".concat(a.prodigy.network.jwtAuthProvider.getToken()),"content-type":"application/x-www-form-urlencoded; charset=UTF-8"},body:"seasonID=".concat(a.prodigy.pvpNetworkHandler.seasonID,"&action=win"),method:"POST",mode:"cors"})).text();if(""!==e){var t=JSON.parse(e);console.log("[API] ".concat(t.points," Points (+100)"))}else console.log("[API] Failed to add points.")})),60500),o.Swal.fire("Enabled","Arena Point Increaser has been enabled.","success")):console.log("Cancelled")}))),new n.Hack(n.category.patched,"Disable Timeout Dialog [Patched]").setClick(s((function*(){return(yield o.Confirm.fire("This hack is patched.","Running it will probably do nothing.")).value?(a.prodigy.debugMisc.disableTimeoutDialogue(),o.Toast.fire("Enabled","Timeout Dialog has been disabled.","success")):console.log("Cancelled")})))}.apply(t,n))||(e.exports=a)},7736:(module,exports,__webpack_require__)=>{var __webpack_unused_export__,__WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;function asyncGeneratorStep(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function _asyncToGenerator(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var r=e.apply(t,o);function s(e){asyncGeneratorStep(r,n,a,s,i,"next",e)}function i(e){asyncGeneratorStep(r,n,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_require__(112),__webpack_require__(3336)],__WEBPACK_AMD_DEFINE_RESULT__=function(require,exports,swal_1,index_1,util_1,hackify_1,kennel_1){"use strict";__webpack_unused_export__={value:!0},new index_1.Hack(index_1.category.pets,"Get All Pets").setClick(_asyncToGenerator((function*(){return(yield swal_1.Confirm.fire("Would you like to add all pets to your pets?")).value?(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()})),swal_1.Toast.fire("Success!","All pets have been added!","success")):console.log("Cancelled")}))),new index_1.Hack(index_1.category.pets,"Get All Legacy Epics").setClick(_asyncToGenerator((function*(){return(yield swal_1.Confirm.fire("This may damage your account.","Attempting to add legacy epics may damage your account. Would you still like to add all legacy epics to your team?","warning")).value?(util_1._.gameData.pet.filter((e=>[125,126,127,128,129,130,131,132,133].includes(e.ID))).forEach((e=>{util_1.player.kennel.addPet(e.ID.toString(),util_1.VERY_LARGE_NUMBER,26376,100)})),util_1.player.kennel.petTeam.forEach((e=>{e&&e.assignRandomSpells&&e.assignRandomSpells()})),swal_1.Toast.fire("Success!","All legacy epics have been added!","success")):console.log("Cancelled")}))),new index_1.Hack(index_1.category.pets,"Get All Mythical Epics").setClick(_asyncToGenerator((function*(){return(yield swal_1.Confirm.fire("Would you like to add all mythical epics to your pets?")).value?(util_1._.gameData.pet.filter((e=>[158,164,165,166,167,168,169,170,171,189].includes(e.ID))).forEach((e=>{util_1.player.kennel.addPet(e.ID.toString(),util_1.VERY_LARGE_NUMBER,26376,100)})),util_1.player.kennel.petTeam.forEach((e=>{e&&e.assignRandomSpells&&e.assignRandomSpells()})),swal_1.Toast.fire("Success!","All mythical epics have been added!","success")):console.log("Cancelled")}))),new index_1.Hack(index_1.category.pets,"Clear Pets").setClick(_asyncToGenerator((function*(){return(yield swal_1.Confirm.fire("Would you like to delete all of your pets?")).value?(util_1.player.kennel.data.length=0,swal_1.Toast.fire("Success!","Your pets have been cleared!","success")):console.log("Cancelled")}))),new index_1.Hack(index_1.category.pets,"Add Pet","Adds a pet from a list.").setClick(_asyncToGenerator((function*(){var e=yield swal_1.Swal.fire({input:"select",inputOptions:new Map(util_1._.gameData.pet.map((e=>[e.ID.toString(),"".concat(e.ID,": ").concat(e.data.name)]))),title:"Choose Pet",text:"Which pet do you want to obtain?"});if(void 0!==e.value)return util_1.player.kennel.addPet(e.value),util_1.player.kennel._encounterInfo._data.pets.push({firstSeenDate:Date.now(),ID:e.value,timesBattled:1,timesRescued:1}),swal_1.Toast.fire("Success!","Your chosen pet has been added to your pets!","success")}))),new index_1.Hack(index_1.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(_asyncToGenerator((function*(){var petTeam=util_1.player.kennel.petTeam.slice(0);petTeam.shift();var names=petTeam.map((e=>e.getName())),pet=yield swal_1.Swal.fire({title:"Which pet would you like to edit?",input:"select",inputOptions:names,inputPlaceholder:"Select...",inputValidator:e=>e?"":"Please select which you'd like to obtain.",showCancelButton:!0}),amt=yield swal_1.NumberInput.fire("Level","What would you like to set your pet's level to? (Can be set over 100)","question");if(amt.value){var num=amt.value;return eval("player.kennel.petTeam[parseInt(".concat(pet.value,")+1].getLevel = () => {return ").concat(num,"}")),swal_1.Toast.fire("Updated!","The level of your pet was successfully updated. Note: this hack is client-side.","success")}}))),new index_1.Hack(index_1.category.pets,"Delete Pet","Delete a pet.").setClick(_asyncToGenerator((function*(){var e=yield(0,hackify_1.getPet)("Which pet do you wish to delete?");if(void 0!==e)return util_1.player.kennel.data.splice(e,1),swal_1.Toast.fire("Successfully deleted!","The selected pet was deleted successfully.","success")}))),new index_1.Hack(index_1.category.pets,"Edit Kennel","Allows you to directly edit your pets.").setClick(_asyncToGenerator((function*(){null!==(yield(0,kennel_1.GetAction)())&&null!==(yield(0,kennel_1.SelectSlot)())&&console.log(s(parseInt(KennelSlot.value)))})))}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),void 0===__WEBPACK_AMD_DEFINE_RESULT__||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)},7939:(module,exports,__webpack_require__)=>{var __webpack_unused_export__,__WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;function asyncGeneratorStep(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function _asyncToGenerator(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var r=e.apply(t,o);function s(e){asyncGeneratorStep(r,n,a,s,i,"next",e)}function i(e){asyncGeneratorStep(r,n,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_require__(112)],__WEBPACK_AMD_DEFINE_RESULT__=function(require,exports,swal_1,index_1,util_1,hackify_1){"use strict";__webpack_unused_export__={value:!0},new index_1.Hack(index_1.category.player,"Max Account").setClick(_asyncToGenerator((function*(){if(!(yield swal_1.Confirm.fire("Are you sure that you want to max your account?","We recommend doing this on an alt.")).value)return console.log("Cancelled");util_1.player.data.gold=99e5,console.log("Set player gold to 9900000.");var e=100..value-2;util_1.player.data.stars=Math.round((1-Math.pow(1.042,e))/(1-1.042)*20+10),util_1.player.data.level=100,util_1.player.getLevel=()=>util_1.player.data.level,console.log("Set player level to 100"),util_1.player.data.bountyScore=100,console.log("Set player's bounty points to 100.");for(var t=0;t{util_1.player.backpack.data[e]=(0,hackify_1.itemify)(util_1._.gameData[e].filter((t=>"follow"===e?![125,126,127,128,129,134,135,136,137].includes(t.ID):t)),1..value)})),util_1._.gameData.dorm.forEach((e=>util_1.player.house.data.items[e.ID]={A:[],N:1..value}));for(var n=()=>util_1.player.backpack.data.item.findIndex((e=>84===e.ID||85===e.ID||86===e.ID));n()>-1;)util_1.player.backpack.data.item.splice(n(),1);swal_1.Toast.fire("Success!","All items added!","success"),console.log("All items added!"),util_1.player.backpack.data.mount=(0,hackify_1.itemify)(util_1._.gameData.mount,1),console.log("Added all mounts.");var a="currency";return util_1.player.backpack.data[a]=(0,hackify_1.itemify)(util_1._.gameData[a].filter((e=>e)),6969420),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.equipment.setHat(200),util_1.player.equipment.setBoots(93),util_1.player.equipment.setOutfit(161),util_1.player.equipment.setWeapon(196),util_1.player.appearanceChanged=!0,console.log("Appearance Refreshed."),(0,util_1.saveCharacter)(),console.log("Character Saved."),console.log("Max Account Successful."),swal_1.Toast.fire("Maxed!","Check your backpack!","success")}))),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)return e.value>1e7?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;return 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");if(void 0!==e.value)return 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");if(void 0!==e.value)return 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;t(util_1._.instance.prodigy.gameContainer.get((0,hackify_1.getMemberModule)()).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"),o=(e,t)=>{var o=document.createElement("select");for(var n of(o.classList.add("selectName"),e.entries())){var a=document.createElement("option");[a.value,a.innerText]=n,t(a.value)&&(a.selected=!0),o.options.add(a)}return o},n=(t,n)=>o(new Map(e.filter((e=>e.data.type===t)).map((e=>[e.ID.toString(),e.name]))),(e=>n(+e)));t.append(n(0,(e=>e===util_1.player.name.data.firstName))),t.append(n(1,(e=>e===util_1.player.name.data.middleName))),t.append(n(2,(e=>e===util_1.player.name.data.lastName))),t.append(o(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");if(level.value)return 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*(){return 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*(){return 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")):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 o=util_1._.instance.prodigy.world.zones[t].getCurrentQuestID();return util_1._.instance.prodigy.world.zones[t].completeQuest(o)?(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)});if(e.value)return 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.toString()).then((function(){return 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){return 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();return 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?");if(e.value)return util_1.player.grade=parseInt(e.value),swal_1.Toast.fire("Success","Successfully changed grade to ".concat(e,"!"),"success")})))}.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,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function _asyncToGenerator(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var r=e.apply(t,o);function s(e){asyncGeneratorStep(r,n,a,s,i,"next",e)}function i(e){asyncGeneratorStep(r,n,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*(){return 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,"Grab UserID of all players on screen","Shows you the UserID and name of every player currently shown on the screen.").setClick(_asyncToGenerator((function*(){var e=util_1.current.playerList;if(0===Object.keys(e).length)return swal_1.Toast.fire("No players found.","There are no other players on the screen.","error");var t="",o=0;return yield Object.keys(e).map((n=>{var a=Object.entries(e)[o][1].nameText.textSource.source;t+="
          • uID: ".concat(n," - ").concat(a,"
          • "),o++})),swal_1.Swal.fire({title:"All players on the screen:",html:t,icon:"info"})}))),new index_1.Hack(index_1.category.utility,"Save Character Locally [Local]","Saves your character locally.").setClick(_asyncToGenerator((function*(){return 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"});return t.ok?swal_1.Toast.fire("Success!","Character has been successfully loaded. Reload for the changes to take effect.","success"):swal_1.Toast.fire("Request failed.","An error occurred while loading the character. Error code: ".concat(t.status),"error")}return 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*(){return(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;return 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*(){return 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);return 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*(){return teleportingInterval=setInterval((()=>{try{util_1.player._playerContainer.walkSpeed=500}catch(e){}})),swal_1.Toast.fire("Success!","Successfully enabled teleport click.","success")}))).setDisabled(_asyncToGenerator((function*(){return 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*(){return util_1._.network.game._paused=!0,swal_1.Toast.fire("Success!","Successfully paused Prodigy.","success")}))).setDisabled(_asyncToGenerator((function*(){return 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)return console.log("Cancelled.");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 swal_1.Swal.fire({title:"Error",html:"Oops! There was an error with the code!
             ".concat(e," "),icon:"error"})}return 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,o){var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))}}var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};n=[o,t,o(7046),o(2852),o(3526),o(6455),o(4759),o(4719),o(158)],a=function(e,t,o,n,a,r,c,l){"use strict";var u,d,p,h;Object.defineProperty(t,"__esModule",{value:!0}),t.category=t.Toggler=t.Hack=t.toggler=t.wrapper=t.menu=void 0,r=i(r),t.menu=document.createElement("div"),t.wrapper=document.getElementById("game-wrapper"),null===(u=document.getElementById("cheat-menu"))||void 0===u||u.remove(),null===(d=document.getElementById("menu-toggler"))||void 0===d||d.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===(p=t.wrapper)||void 0===p||p.prepend(t.menu),t.toggler=document.createElement("button"),t.toggler.id="menu-toggler";var m=!1;null===(h=t.wrapper)||void 0===h||h.prepend(t.toggler),t.toggler.onclick=()=>{(m=!m)?(t.toggler.innerText="▼",t.menu.style.top="-100vh"):(t.toggler.innerText="▲",t.menu.style.top="10%")},t.toggler.onclick({});var f=document.createElement("DIV");f.classList.add("menu-left"),t.menu.append(f);var g=!0,y=e=>{var t=document.createElement("div");0==g?(t.append(document.createElement("br")),t.append(document.createElement("br"))):g=!1,t.classList.add("menu-area"),t.style.textAlign="center",f.append(t);var o=document.createElement("h1");return o.innerText=e,o.style.textAlign="center",o.style.color="white",t.append(o),t},w=document.createElement("h1");w.classList.add("menu-title"),w.innerText="Prodigy Hacks",w.style.textAlign="center",f.append(w);var b=document.createElement("h2");b.style.fontSize="25px",b.style.color="white",b.innerHTML="
            Press SHIFT to show/hide the menu. Scroll down in the menu for more hacks.",f.append(b);var v=document.createElement("h3");v.style.fontSize="20px",v.innerHTML="\n

            Join our Discord https://dsc.gg/ProdigyPNP!

            \n\n
            \n",v.style.color="white",f.append(v);class _{constructor(e,t,o){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),o&&this.setDesc(o)}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,n.saveCharacter)(),console.log("Triggered ".concat(t.name,"."))})),this}setDesc(e){return this.element.title=e,this.description=e,this}}t.Hack=_,t.Toggler=class extends _{constructor(e,t,o){var n;super(e,t,o),n=this,this.parent=e,this.element.setAttribute("status","false"),this.setClick(s((function*(){var e,t;n.status=!n.status,n.status?(localStorage.setItem(n.name,"true"),yield null===(e=n.enabled)||void 0===e?void 0:e.call(n)):(localStorage.setItem(n.name,"false"),yield null===(t=n.disabled)||void 0===t?void 0:t.call(n))})))}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:y("Player Hacks"),inventory:y("Inventory Hacks"),location:y("Location Hacks"),pets:y("Pet Hacks"),battle:y("Battle Hacks"),minigames:y("Minigame Hacks"),misc:y("Miscellaneous Hacks"),utility:y("Utility Hacks"),beta:y("Beta Testing | Beta Hacks may damage your account"),patched:y("Patched Hacks")},localStorage.hasTip?(0,l.IndexInfo)("Player already has tip."):(s((function*(){yield r.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,(0,l.IndexInfo)("Player was shown the tip.")),localStorage.getItem("level")&&(n._.player.getLevel=()=>localStorage.getItem("level"),(0,l.IndexInfo)("Loaded menu from localStorage."));var k=!0;document.addEventListener("keydown",(function(e){"Shift"==e.key&&((0,l.IndexInfo)("Shift key was pressed."),1==k?((0,l.IndexInfo)("Hiding cheat menu..."),document.getElementById("cheat-menu").style.display="none",document.getElementById("menu-toggler").style.display="none",k=!1,(0,l.IndexInfo)("Hidden cheat menu.")):((0,l.IndexInfo)("Showing cheat menu..."),document.getElementById("cheat-menu").style.display="block",document.getElementById("menu-toggler").style.display="block",k=!0,(0,l.IndexInfo)("Shown cheat menu.")))})),s((function*(){var e,t;(yield c.License.fire("ProdigyPNP",'\n

            \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 ')).value?yield(0,a.statusMessage)():(yield c.NoLicense.fire("ProdigyPNP License","\n

            \n You need to agree to our license to use our hacks. If you changed your mind and now agree to our license, reload Prodigy.\n

            \n ")).value?document.location="":(null===(e=document.getElementById("cheat-menu"))||void 0===e||e.remove(),null===(t=document.getElementById("menu-toggler"))||void 0===t||t.remove())}))()}.apply(t,n),void 0===a||(e.exports=a)},8238:(e,t,o)=>{var n,a;n=[o,t,o(9820)],a=function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stopFps=t.startFps=void 0;var n=document.createElement("button"),a=!1;t.startFps=function(){var e;a=!0,n.id="fps-counter",null===(e=o.wrapper)||void 0===e||e.prepend(n),setInterval((()=>{var e=_.player.game.fps._framerate;a?n.innerText=e.toFixed(2)+" FPS":n.remove()}),300)},t.stopFps=function(){var e;a=!1,null===(e=document.getElementById("fps-counter"))||void 0===e||e.remove()}}.apply(t,n),void 0===a||(e.exports=a)},112:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}n=[o,t,o(2852),o(4759)],a=function(e,t,o,n){"use strict";function a(e){o._.instance.prodigy.loading(!0);var t=t=>{var a=null!=t?t[e]:null;if(null!==a&&void 0!==a.house&&null!==a.house){o._.instance.prodigy.loading(!1);var r=o._.cloneDeep(o._.player.house);return r.setItems(a.house),void 0!==a.data.allowsHouseVisitors&&null!==a.data.allowsHouseVisitors&&a.data.allowsHouseVisitors?o._.instance.prodigy.world._("house",null,null,{house:r,getAllowsHouseVisitors:()=>void 0!==a.data.allowsHouseVisitors&&null!==a.data.allowsHouseVisitors&&a.data.allowsHouseVisitors,setAllowsHouseVisitors:e=>{a.data.allowsHouseVisitors=e}}):n.Swal.fire("Teleporting to ".concat(e," is not allowed."),"Try another user.","error")}};return o._.network.getCharData(e.toString(),["house","data"],t,t),n.Toast.fire("Teleported to house","You have been teleported to the house!","success")}Object.defineProperty(t,"__esModule",{value:!0}),t.getPet=t.teleportToHouse=t.toHouse=t.getMemberModule=t.runeify=t.itemify=t.ids=t.names=void 0,t.names=["Boots","Buddies","Fossils","Hats","Items","Key Items","Tower Town Frames","Tower Town Interiors","Mounts","Outfits","Relics","Weapons","Currencies"],t.ids=["boots","follow","fossil","hat","item","key","mathTownFrame","mathTownInterior","mount","outfit","spellRelic","weapon","currency"],t.itemify=(e,t)=>e.map((e=>({ID:e.ID,N:t}))).filter((e=>void 0!==e)),t.runeify=(e,t)=>e.map((e=>({ID:e.ID,quantity:t}))).filter((e=>void 0!==e)),t.getMemberModule=function(){return o._.player.hasMembership.toString().split('"')[1]},t.toHouse=function(e){if(o._.player.userID!==e){var t=o._.instance.prodigy.friendsListNetworkHandler.friendsList.length,r=o._.instance.prodigy.friendsListNetworkHandler.classList.length;o._.instance.prodigy.gameContainer.get("2e1-e659").create("house-visit","click","hub",t,r,null,null,e).broadcast()}var s=o._.instance.prodigy.world.getZone(o._.instance.prodigy.world.getCurrentZone());return s?s.handleLeaving(2,(()=>a(e))):n.Swal.fire({title:"Error",text:"You are not in a zone!",icon:"error"})},t.teleportToHouse=a;var s=function(){var e,t=(e=function*(e){return(yield n.Swal.fire({input:"select",inputOptions:new Map(o._.player.kennel.data.map(((e,t)=>{var n,a,r;return[t.toString(),"Level ".concat(e.level," - ").concat(null!==(n=null!==(a=e.nickname)&&void 0!==a?a:null===(r=o._.gameData.pet.find((t=>+t.ID==+e.ID)))||void 0===r?void 0:r.data.name)&&void 0!==n?n:"Unknown")]}))),title:"Choose Pet",text:e})).value},function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))});return function(e){return t.apply(this,arguments)}}();t.getPet=s}.apply(t,n),void 0===a||(e.exports=a)},3336:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))}}n=[o,t,o(4759)],a=function(e,t,o){"use strict";function n(){return(n=s((function*(){var e=new Map;e.set("Copy","Copy a slot to another slot"),e.set("Remove","Completley empty one slot"),e.set("Restore","");var t=yield o.Swal.fire({input:"select",inputOptions:e,title:"Select Action",text:"Select an action to perform on the Kennel"});return t.value?t.value:null}))).apply(this,arguments)}function a(){return(a=s((function*(){var e=new Map,t=e=>_.player.kennel._petTeam[e]?_.player.kennel._petTeam[e].source?_.player.kennel._petTeam[e].source.name:_.player.kennel._petTeam[e]._userDataPlatform?"Player":"null":"null";e.set("0","[0] Center - ".concat(t(0))),e.set("1","[1] Top - ".concat(t(1))),e.set("2","[2] Bottom - ".concat(t(2)));var n=yield o.Swal.fire({input:"select",inputOptions:e,title:"Select Slot",text:"Select a slot to edit"});return n.value?parseInt(n.value):null}))).apply(this,arguments)}Object.defineProperty(t,"__esModule",{value:!0}),t.SelectSlot=t.GetAction=void 0,t.GetAction=function(){return n.apply(this,arguments)},t.SelectSlot=function(){return a.apply(this,arguments)}}.apply(t,n),void 0===a||(e.exports=a)},2868:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}n=[o,t,o(2852),o(4759)],void 0===(a=function(e,t,o,n){"use strict";window.addEventListener("keydown",(e=>{switch(e.which){case 192:o._.instance.prodigy.open.menuCloseAll();break;case 220:var t=function(){var e,t=(e=function*(){if(!(yield n.Confirm.fire("Kit","Would you like to equip Celestial Gear?")).value)return console.log("Cancelled");o._.player.equipment.setHat(200),o._.player.equipment.setBoots(93),o._.player.equipment.setOutfit(161),o._.player.equipment.setWeapon(196),o._.player.appearanceChanged=!0,n.Toast.fire("Success!","You are now wearing Celestial Armor and wielding a Dual Blade.","success")},function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))});return function(){return t.apply(this,arguments)}}();t()}}))}.apply(t,n))||(e.exports=a)},4719:(e,t,o)=>{var n;n=function(e,t){"use strict";function o(e,o){return""==e||null==e?console.log("["+t.LogPrefix+":unknown] "+o):console.log("["+t.LogPrefix+":"+e+"] "+o)}function n(e,t,n){return o(t,"*"+e.toUpperCase()+"* "+n)}Object.defineProperty(t,"__esModule",{value:!0}),t.UtilityError=t.UtilitySuccess=t.UtilityInfo=t.PlayerError=t.PlayerSuccess=t.PlayerInfo=t.PetsError=t.PetsSuccess=t.PetsInfo=t.PatchedError=t.PatchedSuccess=t.PatchedInfo=t.MiscError=t.MiscSuccess=t.MiscInfo=t.MinigameError=t.MinigameSuccess=t.MinigameInfo=t.LocationError=t.LocationSuccess=t.LocationInfo=t.InventoryError=t.InventorySuccess=t.InventoryInfo=t.BetaError=t.BetaSuccess=t.BetaInfo=t.BattleError=t.BattleSuccess=t.BattleInfo=t.IndexError=t.IndexSuccess=t.IndexInfo=t.StatusLog=t.ConsoleLog=t.LogPrefix=void 0,t.LogPrefix="CheatGUI",t.ConsoleLog=o,t.StatusLog=n,t.IndexInfo=function(e){return n("info","index.ts",e)},t.IndexSuccess=function(e){return n("success","index.ts",e)},t.IndexError=function(e){return n("error","index.ts",e)},t.BattleInfo=function(e){return n("info","battle.ts",e)},t.BattleSuccess=function(e){return n("success","battle.ts",e)},t.BattleError=function(e){return n("error","battle.ts",e)},t.BetaInfo=function(e){return n("info","beta.ts",e)},t.BetaSuccess=function(e){return n("success","beta.ts",e)},t.BetaError=function(e){return n("error","beta.ts",e)},t.InventoryInfo=function(e){return n("info","inventory.ts",e)},t.InventorySuccess=function(e){return n("success","inventory.ts",e)},t.InventoryError=function(e){return n("error","inventory.ts",e)},t.LocationInfo=function(e){return n("info","location.ts",e)},t.LocationSuccess=function(e){return n("success","location.ts",e)},t.LocationError=function(e){return n("error","location.ts",e)},t.MinigameInfo=function(e){return n("info","minigame.ts",e)},t.MinigameSuccess=function(e){return n("success","minigame.ts",e)},t.MinigameError=function(e){return n("error","minigame.ts",e)},t.MiscInfo=function(e){return n("info","misc.ts",e)},t.MiscSuccess=function(e){return n("success","misc.ts",e)},t.MiscError=function(e){return n("error","misc.ts",e)},t.PatchedInfo=function(e){return n("info","patched.ts",e)},t.PatchedSuccess=function(e){return n("success","patched.ts",e)},t.PatchedError=function(e){return n("error","patched.ts",e)},t.PetsInfo=function(e){return n("info","pets.ts",e)},t.PetsSuccess=function(e){return n("success","pets.ts",e)},t.PetsError=function(e){return n("error","pets.ts",e)},t.PlayerInfo=function(e){return n("info","player.ts",e)},t.PlayerSuccess=function(e){return n("success","player.ts",e)},t.PlayerError=function(e){return n("error","player.ts",e)},t.UtilityInfo=function(e){return n("info","utility.ts",e)},t.UtilitySuccess=function(e){return n("success","utility.ts",e)},t.UtilityError=function(e){return n("error","utility.ts",e)}}.apply(t,[o,t]),void 0===n||(e.exports=n)},3131:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))}}n=[o,t,o(2852)],a=function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PopupInterval=void 0;var n=!1;t.PopupInterval=function(e){n=e},s((function*(){setInterval(s((function*(){n&&o._.instance.prodigy.open.menuCloseAll()})),200)}))()}.apply(t,n),void 0===a||(e.exports=a)},3526:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}n=[o,t,o(4759)],a=function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.statusMessage=void 0,t.statusMessage=function(){fetch("https://raw.githubusercontent.com/ProdigyPNP/ProdigyMathGameHacking/master/cheatGUI/statusmessage.json?updated=".concat(Date.now())).then((e=>e.json())).then(function(){var e,t=(e=function*(e){if(!1===e.enabled.value)return console.log("Status message is disabled.");yield o.Swal.fire({title:e.get("title"),html:e.get("html"),icon:e.get("icon")})},function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))});return function(e){return t.apply(this,arguments)}}())}}.apply(t,n),void 0===a||(e.exports=a)},4759:function(e,t,o){var n,a,r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};n=[o,t,o(6455)],a=function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NoLicense=t.License=t.Info=t.Confirm=t.Toast=t.NumberInput=t.Input=t.Swal=void 0,o=r(o),t.Swal=o.default,t.Input=t.Swal.mixin({input:"text",showCancelButton:!0,showConfirmButton:!0,toast:!1}),t.NumberInput=t.Input.mixin({toast:!1,input:"number"}),t.Toast=t.Swal.mixin({toast:!0,position:"bottom"}),t.Confirm=t.Swal.mixin({icon:"warning",showCancelButton:!0,toast:!1,confirmButtonText:"Confirm",cancelButtonText:"Cancel"}),t.Info=t.Swal.mixin({icon:"info",showCancelButton:!1,toast:!1}),t.License=t.Swal.mixin({icon:"info",showCancelButton:!0,toast:!1,confirmButtonText:"Agree",cancelButtonText:"Disagree"}),t.NoLicense=t.Swal.mixin({icon:"error",showCancelButton:!0,toast:!1,confirmButtonText:"Reload",cancelButtonText:"Play without hacks"})}.apply(t,n),void 0===a||(e.exports=a)},2852:(e,t,o)=>{var n;n=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.current=t.player=t._=void 0,t._=window._,t.player=t._.player,t.current=window.Boot.prototype.game._state._current;var o=t._.instance;t.game=o.game,t.prodigy=o.prodigy,t.gameData=t._.instance.game.state.states.get("Boot").gameData,t.getItem=(e,o)=>{var n;return null!==(n=t._.gameData[e].find((e=>e.ID===o)))&&void 0!==n?n: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,[o,t]),void 0===n||(e.exports=n)},450:(e,t,o)=>{"use strict";o.d(t,{Z:()=>i});var n=o(8081),a=o.n(n),r=o(3645),s=o.n(r)()(a());s.push([e.id,"@import url(https://fonts.googleapis.com/css?family=Arvo:400,700|Sen:400,700,800&display=swap&subset=latin-ext);"]),s.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;font-size:23px;height:26px;width:50px;border:1px solid rgba(0,0,0,.1)}#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 #fps-counter{z-index:2;position:absolute;border-radius:3px;background-color:rgba(255,255,255,.7333333333);transition:background-color .15s;width:130px;height:26px;font-size:23px;border:1px solid rgba(0,0,0,.1);margin-left:83%}#game-wrapper #fps-counter:hover{background-color:rgba(221,221,221,.7333333333)}#game-wrapper #fps-counter: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:rgba(0,0,0,.55);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;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 i=s},3645:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var o="",n=void 0!==t[5];return t[4]&&(o+="@supports (".concat(t[4],") {")),t[2]&&(o+="@media ".concat(t[2]," {")),n&&(o+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),o+=e(t),n&&(o+="}"),t[2]&&(o+="}"),t[4]&&(o+="}"),o})).join("")},t.i=function(e,o,n,a,r){"string"==typeof e&&(e=[[null,e,void 0]]);var s={};if(n)for(var i=0;i0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=r),o&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=o):u[2]=o),a&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=a):u[4]="".concat(a)),t.push(u))}},t}},8081:e=>{"use strict";e.exports=function(e){return e[1]}},1227:(e,t,o)=>{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 o="color: "+this.color;t.splice(1,0,o,"color: inherit");let n=0,a=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(n++,"%c"===e&&(a=n))})),t.splice(a,0,o)},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=o(2447)(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},2447:(e,t,o)=>{e.exports=function(e){function t(e){let o,a,r,s=null;function i(...e){if(!i.enabled)return;const n=i,a=Number(new Date),r=a-(o||a);n.diff=r,n.prev=o,n.curr=a,o=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,((o,a)=>{if("%%"===o)return"%";s++;const r=t.formatters[a];if("function"==typeof r){const t=e[s];o=r.call(n,t),e.splice(s,1),s--}return o})),t.formatArgs.call(n,e),(n.log||t.log).apply(n,e)}return i.namespace=e,i.useColors=t.useColors(),i.color=t.selectColor(e),i.extend=n,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 n(e,o){const n=t(this.namespace+(void 0===o?":":o)+e);return n.log=this.log,n}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 o;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const n=("string"==typeof e?e:"").split(/[\s,]+/),a=n.length;for(o=0;o{t[o]=e[o]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let o=0;for(let t=0;t{var t=1e3,o=60*t,n=60*o,a=24*n;function r(e,t,o,n){var a=t>=1.5*o;return Math.round(e/o)+" "+n+(a?"s":"")}e.exports=function(e,s){s=s||{};var i,c,l=typeof e;if("string"===l&&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*n;case"minutes":case"minute":case"mins":case"min":case"m":return s*o;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"===l&&isFinite(e))return s.long?(i=e,(c=Math.abs(i))>=a?r(i,c,a,"day"):c>=n?r(i,c,n,"hour"):c>=o?r(i,c,o,"minute"):c>=t?r(i,c,t,"second"):i+" ms"):function(e){var r=Math.abs(e);return r>=a?Math.round(e/a)+"d":r>=n?Math.round(e/n)+"h":r>=o?Math.round(e/o)+"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,o)=>{"use strict";o.r(t),o.d(t,{default:()=>y});var n=o(3379),a=o.n(n),r=o(7795),s=o.n(r),i=o(569),c=o.n(i),l=o(3565),u=o.n(l),d=o(9216),p=o.n(d),h=o(4589),m=o.n(h),f=o(450),g={};g.styleTagTransform=m(),g.setAttributes=u(),g.insert=c().bind(null,"head"),g.domAPI=s(),g.insertStyleElement=p(),a()(f.Z,g);const y=f.Z&&f.Z.locals?f.Z.locals:void 0},3379:e=>{"use strict";var t=[];function o(e){for(var o=-1,n=0;n{"use strict";var t={};e.exports=function(e,o){var n=function(e){if(void 0===t[e]){var o=document.querySelector(e);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(e){o=null}t[e]=o}return t[e]}(e);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(o)}},9216:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},3565:(e,t,o)=>{"use strict";e.exports=function(e){var t=o.nc;t&&e.setAttribute("nonce",t)}},7795:e=>{"use strict";e.exports=function(e){var t=e.insertStyleElement(e);return{update:function(o){!function(e,t,o){var n="";o.supports&&(n+="@supports (".concat(o.supports,") {")),o.media&&(n+="@media ".concat(o.media," {"));var a=void 0!==o.layer;a&&(n+="@layer".concat(o.layer.length>0?" ".concat(o.layer):""," {")),n+=o.css,a&&(n+="}"),o.media&&(n+="}"),o.supports&&(n+="}");var r=o.sourceMap;r&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(r))))," */")),t.styleTagTransform(n,e,t.options)}(t,e,o)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},4589:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},6455:function(e){e.exports=function(){"use strict";const e="SweetAlert2:",t=e=>e.charAt(0).toUpperCase()+e.slice(1),o=t=>{console.warn("".concat(e," ").concat("object"==typeof t?t.join(" "):t))},n=t=>{console.error("".concat(e," ").concat(t))},a=[],r=(e,t)=>{var n;n='"'.concat(e,'" is deprecated and will be removed in the next major release. Please use "').concat(t,'" instead.'),a.includes(n)||(a.push(n),o(n))},s=e=>"function"==typeof e?e():e,i=e=>e&&"function"==typeof e.toPromise,c=e=>i(e)?e.toPromise():Promise.resolve(e),l=e=>e&&Promise.resolve(e)===e,u={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,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",color:void 0,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,willOpen:void 0,didOpen:void 0,didRender:void 0,willClose:void 0,didClose:void 0,didDestroy:void 0,scrollbarPadding:!0},d=["allowEscapeKey","allowOutsideClick","background","buttonsStyling","cancelButtonAriaLabel","cancelButtonColor","cancelButtonText","closeButtonAriaLabel","closeButtonHtml","color","confirmButtonAriaLabel","confirmButtonColor","confirmButtonText","currentProgressStep","customClass","denyButtonAriaLabel","denyButtonColor","denyButtonText","didClose","didDestroy","footer","hideClass","html","icon","iconColor","iconHtml","imageAlt","imageHeight","imageUrl","imageWidth","preConfirm","preDeny","progressSteps","returnFocus","reverseButtons","showCancelButton","showCloseButton","showConfirmButton","showDenyButton","text","title","titleText","willClose"],p={},h=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],m=e=>Object.prototype.hasOwnProperty.call(u,e),f=e=>-1!==d.indexOf(e),g=e=>p[e],y=e=>{m(e)||o('Unknown parameter "'.concat(e,'"'))},w=e=>{h.includes(e)&&o('The parameter "'.concat(e,'" is incompatible with toasts'))},b=e=>{g(e)&&r(e,g(e))},v=e=>{const t={};for(const o in e)t[e[o]]="swal2-"+e[o];return t},_=v(["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","show","hide","close","title","html-container","actions","confirm","deny","cancel","default-outline","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","input-label","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loader","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error","no-war"]),k=v(["success","warning","info","question","error"]),C=()=>document.body.querySelector(".".concat(_.container)),x=e=>{const t=C();return t?t.querySelector(e):null},E=e=>x(".".concat(e)),S=()=>E(_.popup),T=()=>E(_.icon),P=()=>E(_.title),A=()=>E(_["html-container"]),I=()=>E(_.image),D=()=>E(_["progress-steps"]),B=()=>E(_["validation-message"]),O=()=>x(".".concat(_.actions," .").concat(_.confirm)),R=()=>x(".".concat(_.actions," .").concat(_.deny)),M=()=>x(".".concat(_.loader)),L=()=>x(".".concat(_.actions," .").concat(_.cancel)),N=()=>E(_.actions),j=()=>E(_.footer),H=()=>E(_["timer-progress-bar"]),F=()=>E(_.close),q=()=>{const e=Array.from(S().querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])')).sort(((e,t)=>{const o=parseInt(e.getAttribute("tabindex")),n=parseInt(t.getAttribute("tabindex"));return o>n?1:o"-1"!==e.getAttribute("tabindex")));return(e=>{const t=[];for(let o=0;ore(e)))},U=()=>G(document.body,_.shown)&&!G(document.body,_["toast-shown"])&&!G(document.body,_["no-backdrop"]),Y=()=>S()&&G(S(),_.toast),z={previousBodyPadding:null},W=(e,t)=>{if(e.textContent="",t){const o=(new DOMParser).parseFromString(t,"text/html");Array.from(o.querySelector("head").childNodes).forEach((t=>{e.appendChild(t)})),Array.from(o.querySelector("body").childNodes).forEach((t=>{e.appendChild(t)}))}},G=(e,t)=>{if(!t)return!1;const o=t.split(/\s+/);for(let t=0;t{if(((e,t)=>{Array.from(e.classList).forEach((o=>{Object.values(_).includes(o)||Object.values(k).includes(o)||Object.values(t.showClass).includes(o)||e.classList.remove(o)}))})(e,t),t.customClass&&t.customClass[n]){if("string"!=typeof t.customClass[n]&&!t.customClass[n].forEach)return o("Invalid type of customClass.".concat(n,'! Expected string or iterable object, got "').concat(typeof t.customClass[n],'"'));J(e,t.customClass[n])}},K=(e,t)=>{if(!t)return null;switch(t){case"select":case"textarea":case"file":return e.querySelector(".".concat(_.popup," > .").concat(_[t]));case"checkbox":return e.querySelector(".".concat(_.popup," > .").concat(_.checkbox," input"));case"radio":return e.querySelector(".".concat(_.popup," > .").concat(_.radio," input:checked"))||e.querySelector(".".concat(_.popup," > .").concat(_.radio," input:first-child"));case"range":return e.querySelector(".".concat(_.popup," > .").concat(_.range," input"));default:return e.querySelector(".".concat(_.popup," > .").concat(_.input))}},$=e=>{if(e.focus(),"file"!==e.type){const t=e.value;e.value="",e.value=t}},Z=(e,t,o)=>{e&&t&&("string"==typeof t&&(t=t.split(/\s+/).filter(Boolean)),t.forEach((t=>{Array.isArray(e)?e.forEach((e=>{o?e.classList.add(t):e.classList.remove(t)})):o?e.classList.add(t):e.classList.remove(t)})))},J=(e,t)=>{Z(e,t,!0)},X=(e,t)=>{Z(e,t,!1)},Q=(e,t)=>{const o=Array.from(e.children);for(let e=0;e{o==="".concat(parseInt(o))&&(o=parseInt(o)),o||0===parseInt(o)?e.style[t]="number"==typeof o?"".concat(o,"px"):o:e.style.removeProperty(t)},te=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"flex";e.style.display=t},oe=e=>{e.style.display="none"},ne=(e,t,o,n)=>{const a=e.querySelector(t);a&&(a.style[o]=n)},ae=function(e,t){t?te(e,arguments.length>2&&void 0!==arguments[2]?arguments[2]:"flex"):oe(e)},re=e=>!(!e||!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)),se=e=>!!(e.scrollHeight>e.clientHeight),ie=e=>{const t=window.getComputedStyle(e),o=parseFloat(t.getPropertyValue("animation-duration")||"0"),n=parseFloat(t.getPropertyValue("transition-duration")||"0");return o>0||n>0},ce=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const o=H();re(o)&&(t&&(o.style.transition="none",o.style.width="100%"),setTimeout((()=>{o.style.transition="width ".concat(e/1e3,"s linear"),o.style.width="0%"}),10))},le=()=>"undefined"==typeof window||"undefined"==typeof document,ue={},de=e=>new Promise((t=>{if(!e)return t();const o=window.scrollX,n=window.scrollY;ue.restoreFocusTimeout=setTimeout((()=>{ue.previousActiveElement instanceof HTMLElement?(ue.previousActiveElement.focus(),ue.previousActiveElement=null):document.body&&document.body.focus(),t()}),100),window.scrollTo(o,n)})),pe='\n
            \n \n
              \n
              \n \n

              \n
              \n \n \n
              \n \n \n
              \n \n
              \n \n \n
              \n
              \n
              \n \n \n \n
              \n
              \n
              \n
              \n
              \n
              \n').replace(/(^|\n)\s*/g,""),he=()=>{ue.currentInstance.resetValidationMessage()},me=e=>{const t=(()=>{const e=C();return!!e&&(e.remove(),X([document.documentElement,document.body],[_["no-backdrop"],_["toast-shown"],_["has-column"]]),!0)})();if(le())return void n("SweetAlert2 requires document to initialize");const o=document.createElement("div");o.className=_.container,t&&J(o,_["no-transition"]),W(o,pe);const a="string"==typeof(r=e.target)?document.querySelector(r):r;var r;a.appendChild(o),(e=>{const t=S();t.setAttribute("role",e.toast?"alert":"dialog"),t.setAttribute("aria-live",e.toast?"polite":"assertive"),e.toast||t.setAttribute("aria-modal","true")})(e),(e=>{"rtl"===window.getComputedStyle(e).direction&&J(C(),_.rtl)})(a),(()=>{const e=S(),t=Q(e,_.input),o=Q(e,_.file),n=e.querySelector(".".concat(_.range," input")),a=e.querySelector(".".concat(_.range," output")),r=Q(e,_.select),s=e.querySelector(".".concat(_.checkbox," input")),i=Q(e,_.textarea);t.oninput=he,o.onchange=he,r.onchange=he,s.onchange=he,i.oninput=he,n.oninput=()=>{he(),a.value=n.value},n.onchange=()=>{he(),a.value=n.value}})()},fe=(e,t)=>{e instanceof HTMLElement?t.appendChild(e):"object"==typeof e?ge(e,t):e&&W(t,e)},ge=(e,t)=>{e.jquery?ye(t,e):W(t,e.toString())},ye=(e,t)=>{if(e.textContent="",0 in t)for(let o=0;o in t;o++)e.appendChild(t[o].cloneNode(!0));else e.appendChild(t.cloneNode(!0))},we=(()=>{if(le())return!1;const e=document.createElement("div"),t={WebkitAnimation:"webkitAnimationEnd",animation:"animationend"};for(const o in t)if(Object.prototype.hasOwnProperty.call(t,o)&&void 0!==e.style[o])return t[o];return!1})(),be=(e,t)=>{const o=N(),n=M();t.showConfirmButton||t.showDenyButton||t.showCancelButton?te(o):oe(o),V(o,t,"actions"),function(e,t,o){const n=O(),a=R(),r=L();ve(n,"confirm",o),ve(a,"deny",o),ve(r,"cancel",o),function(e,t,o,n){if(!n.buttonsStyling)return X([e,t,o],_.styled);J([e,t,o],_.styled),n.confirmButtonColor&&(e.style.backgroundColor=n.confirmButtonColor,J(e,_["default-outline"])),n.denyButtonColor&&(t.style.backgroundColor=n.denyButtonColor,J(t,_["default-outline"])),n.cancelButtonColor&&(o.style.backgroundColor=n.cancelButtonColor,J(o,_["default-outline"]))}(n,a,r,o),o.reverseButtons&&(o.toast?(e.insertBefore(r,n),e.insertBefore(a,n)):(e.insertBefore(r,t),e.insertBefore(a,t),e.insertBefore(n,t)))}(o,n,t),W(n,t.loaderHtml),V(n,t,"loader")};function ve(e,o,n){ae(e,n["show".concat(t(o),"Button")],"inline-block"),W(e,n["".concat(o,"ButtonText")]),e.setAttribute("aria-label",n["".concat(o,"ButtonAriaLabel")]),e.className=_[o],V(e,n,"".concat(o,"Button")),J(e,n["".concat(o,"ButtonClass")])}const _e=(e,t)=>{const n=C();n&&(function(e,t){"string"==typeof t?e.style.background=t:t||J([document.documentElement,document.body],_["no-backdrop"])}(n,t.backdrop),function(e,t){t in _?J(e,_[t]):(o('The "position" parameter is not valid, defaulting to "center"'),J(e,_.center))}(n,t.position),function(e,t){if(t&&"string"==typeof t){const o="grow-".concat(t);o in _&&J(e,_[o])}}(n,t.grow),V(n,t,"container"))};var ke={awaitingPromise:new WeakMap,promise:new WeakMap,innerParams:new WeakMap,domCache:new WeakMap};const Ce=["input","file","range","select","radio","checkbox","textarea"],xe=e=>{if(!De[e.input])return n('Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "'.concat(e.input,'"'));const t=Ae(e.input),o=De[e.input](t,e);te(t),setTimeout((()=>{$(o)}))},Ee=(e,t)=>{const o=K(S(),e);if(o){(e=>{for(let t=0;t{const t=Ae(e.input);"object"==typeof e.customClass&&J(t,e.customClass.input)},Te=(e,t)=>{e.placeholder&&!t.inputPlaceholder||(e.placeholder=t.inputPlaceholder)},Pe=(e,t,o)=>{if(o.inputLabel){e.id=_.input;const n=document.createElement("label"),a=_["input-label"];n.setAttribute("for",e.id),n.className=a,"object"==typeof o.customClass&&J(n,o.customClass.inputLabel),n.innerText=o.inputLabel,t.insertAdjacentElement("beforebegin",n)}},Ae=e=>Q(S(),_[e]||_.input),Ie=(e,t)=>{["string","number"].includes(typeof t)?e.value="".concat(t):l(t)||o('Unexpected type of inputValue! Expected "string", "number" or "Promise", got "'.concat(typeof t,'"'))},De={};De.text=De.email=De.password=De.number=De.tel=De.url=(e,t)=>(Ie(e,t.inputValue),Pe(e,e,t),Te(e,t),e.type=t.input,e),De.file=(e,t)=>(Pe(e,e,t),Te(e,t),e),De.range=(e,t)=>{const o=e.querySelector("input"),n=e.querySelector("output");return Ie(o,t.inputValue),o.type=t.input,Ie(n,t.inputValue),Pe(o,e,t),e},De.select=(e,t)=>{if(e.textContent="",t.inputPlaceholder){const o=document.createElement("option");W(o,t.inputPlaceholder),o.value="",o.disabled=!0,o.selected=!0,e.appendChild(o)}return Pe(e,e,t),e},De.radio=e=>(e.textContent="",e),De.checkbox=(e,t)=>{const o=K(S(),"checkbox");o.value="1",o.id=_.checkbox,o.checked=Boolean(t.inputValue);const n=e.querySelector("span");return W(n,t.inputPlaceholder),o},De.textarea=(e,t)=>{Ie(e,t.inputValue),Te(e,t),Pe(e,e,t);return setTimeout((()=>{if("MutationObserver"in window){const t=parseInt(window.getComputedStyle(S()).width);new MutationObserver((()=>{const o=e.offsetWidth+(n=e,parseInt(window.getComputedStyle(n).marginLeft)+parseInt(window.getComputedStyle(n).marginRight));var n;S().style.width=o>t?"".concat(o,"px"):null})).observe(e,{attributes:!0,attributeFilter:["style"]})}})),e};const Be=(e,t)=>{const o=A();V(o,t,"htmlContainer"),t.html?(fe(t.html,o),te(o,"block")):t.text?(o.textContent=t.text,te(o,"block")):oe(o),((e,t)=>{const o=S(),n=ke.innerParams.get(e),a=!n||t.input!==n.input;Ce.forEach((e=>{const n=Q(o,_[e]);Ee(e,t.inputAttributes),n.className=_[e],a&&oe(n)})),t.input&&(a&&xe(t),Se(t))})(e,t)},Oe=(e,t)=>{for(const o in k)t.icon!==o&&X(e,k[o]);J(e,k[t.icon]),Le(e,t),Re(),V(e,t,"icon")},Re=()=>{const e=S(),t=window.getComputedStyle(e).getPropertyValue("background-color"),o=e.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");for(let e=0;e{let o,n=e.innerHTML;t.iconHtml?o=Ne(t.iconHtml):"success"===t.icon?(o='\n
              \n \n
              \n
              \n',n=n.replace(/ style=".*?"/g,"")):o="error"===t.icon?'\n \n \n \n \n':Ne({question:"?",warning:"!",info:"i"}[t.icon]),n.trim()!==o.trim()&&W(e,o)},Le=(e,t)=>{if(t.iconColor){e.style.color=t.iconColor,e.style.borderColor=t.iconColor;for(const o of[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"])ne(e,o,"backgroundColor",t.iconColor);ne(e,".swal2-success-ring","borderColor",t.iconColor)}},Ne=e=>'
              ').concat(e,"
              "),je=e=>{const t=document.createElement("li");return J(t,_["progress-step"]),W(t,e),t},He=e=>{const t=document.createElement("li");return J(t,_["progress-step-line"]),e.progressStepsDistance&&ee(t,"width",e.progressStepsDistance),t},Fe=(e,t)=>{e.className="".concat(_.popup," ").concat(re(e)?t.showClass.popup:""),t.toast?(J([document.documentElement,document.body],_["toast-shown"]),J(e,_.toast)):J(e,_.modal),V(e,t,"popup"),"string"==typeof t.customClass&&J(e,t.customClass),t.icon&&J(e,_["icon-".concat(t.icon)])},qe=(e,t)=>{((e,t)=>{const o=C(),n=S();t.toast?(ee(o,"width",t.width),n.style.width="100%",n.insertBefore(M(),T())):ee(n,"width",t.width),ee(n,"padding",t.padding),t.color&&(n.style.color=t.color),t.background&&(n.style.background=t.background),oe(B()),Fe(n,t)})(0,t),_e(0,t),((e,t)=>{const n=D();if(!t.progressSteps||0===t.progressSteps.length)return oe(n);te(n),n.textContent="",t.currentProgressStep>=t.progressSteps.length&&o("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),t.progressSteps.forEach(((e,o)=>{const a=je(e);if(n.appendChild(a),o===t.currentProgressStep&&J(a,_["active-progress-step"]),o!==t.progressSteps.length-1){const e=He(t);n.appendChild(e)}}))})(0,t),((e,t)=>{const o=ke.innerParams.get(e),a=T();if(o&&t.icon===o.icon)return Me(a,t),void Oe(a,t);if(t.icon||t.iconHtml){if(t.icon&&-1===Object.keys(k).indexOf(t.icon))return n('Unknown icon! Expected "success", "error", "warning", "info" or "question", got "'.concat(t.icon,'"')),void oe(a);te(a),Me(a,t),Oe(a,t),J(a,t.showClass.icon)}else oe(a)})(e,t),((e,t)=>{const o=I();if(!t.imageUrl)return oe(o);te(o,""),o.setAttribute("src",t.imageUrl),o.setAttribute("alt",t.imageAlt),ee(o,"width",t.imageWidth),ee(o,"height",t.imageHeight),o.className=_.image,V(o,t,"image")})(0,t),((e,t)=>{const o=P();ae(o,t.title||t.titleText,"block"),t.title&&fe(t.title,o),t.titleText&&(o.innerText=t.titleText),V(o,t,"title")})(0,t),((e,t)=>{const o=F();W(o,t.closeButtonHtml),V(o,t,"closeButton"),ae(o,t.showCloseButton),o.setAttribute("aria-label",t.closeButtonAriaLabel)})(0,t),Be(e,t),be(0,t),((e,t)=>{const o=j();ae(o,t.footer),t.footer&&fe(t.footer,o),V(o,t,"footer")})(0,t),"function"==typeof t.didRender&&t.didRender(S())},Ue=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),Ye=()=>{Array.from(document.body.children).forEach((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")}))},ze=["swal-title","swal-html","swal-footer"],We=e=>{const t={};return Array.from(e.querySelectorAll("swal-param")).forEach((e=>{Xe(e,["name","value"]);const o=e.getAttribute("name"),n=e.getAttribute("value");"boolean"==typeof u[o]&&"false"===n&&(t[o]=!1),"object"==typeof u[o]&&(t[o]=JSON.parse(n))})),t},Ge=e=>{const o={};return Array.from(e.querySelectorAll("swal-button")).forEach((e=>{Xe(e,["type","color","aria-label"]);const n=e.getAttribute("type");o["".concat(n,"ButtonText")]=e.innerHTML,o["show".concat(t(n),"Button")]=!0,e.hasAttribute("color")&&(o["".concat(n,"ButtonColor")]=e.getAttribute("color")),e.hasAttribute("aria-label")&&(o["".concat(n,"ButtonAriaLabel")]=e.getAttribute("aria-label"))})),o},Ve=e=>{const t={},o=e.querySelector("swal-image");return o&&(Xe(o,["src","width","height","alt"]),o.hasAttribute("src")&&(t.imageUrl=o.getAttribute("src")),o.hasAttribute("width")&&(t.imageWidth=o.getAttribute("width")),o.hasAttribute("height")&&(t.imageHeight=o.getAttribute("height")),o.hasAttribute("alt")&&(t.imageAlt=o.getAttribute("alt"))),t},Ke=e=>{const t={},o=e.querySelector("swal-icon");return o&&(Xe(o,["type","color"]),o.hasAttribute("type")&&(t.icon=o.getAttribute("type")),o.hasAttribute("color")&&(t.iconColor=o.getAttribute("color")),t.iconHtml=o.innerHTML),t},$e=e=>{const t={},o=e.querySelector("swal-input");o&&(Xe(o,["type","label","placeholder","value"]),t.input=o.getAttribute("type")||"text",o.hasAttribute("label")&&(t.inputLabel=o.getAttribute("label")),o.hasAttribute("placeholder")&&(t.inputPlaceholder=o.getAttribute("placeholder")),o.hasAttribute("value")&&(t.inputValue=o.getAttribute("value")));const n=Array.from(e.querySelectorAll("swal-input-option"));return n.length&&(t.inputOptions={},n.forEach((e=>{Xe(e,["value"]);const o=e.getAttribute("value"),n=e.innerHTML;t.inputOptions[o]=n}))),t},Ze=(e,t)=>{const o={};for(const n in t){const a=t[n],r=e.querySelector(a);r&&(Xe(r,[]),o[a.replace(/^swal-/,"")]=r.innerHTML.trim())}return o},Je=e=>{const t=ze.concat(["swal-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Array.from(e.children).forEach((e=>{const n=e.tagName.toLowerCase();-1===t.indexOf(n)&&o("Unrecognized element <".concat(n,">"))}))},Xe=(e,t)=>{Array.from(e.attributes).forEach((n=>{-1===t.indexOf(n.name)&&o(['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.")])}))};var Qe={email:(e,t)=>/^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]{2,24}$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid email address"),url:(e,t)=>/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid URL")};function et(e){(function(e){e.inputValidator||Object.keys(Qe).forEach((t=>{e.input===t&&(e.inputValidator=Qe[t])}))})(e),e.showLoaderOnConfirm&&!e.preConfirm&&o("showLoaderOnConfirm is set to true, but preConfirm is not defined.\nshowLoaderOnConfirm should be used together with preConfirm, see usage example:\nhttps://sweetalert2.github.io/#ajax-request"),function(e){(!e.target||"string"==typeof e.target&&!document.querySelector(e.target)||"string"!=typeof e.target&&!e.target.appendChild)&&(o('Target parameter is not valid, defaulting to "body"'),e.target="body")}(e),"string"==typeof e.title&&(e.title=e.title.split("\n").join("
              ")),me(e)}class tt{constructor(e,t){this.callback=e,this.remaining=t,this.running=!1,this.start()}start(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}stop(){return this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=(new Date).getTime()-this.started.getTime()),this.remaining}increase(e){const t=this.running;return t&&this.stop(),this.remaining+=e,t&&this.start(),this.remaining}getTimerLeft(){return this.running&&(this.stop(),this.start()),this.remaining}isRunning(){return this.running}}const ot=()=>{null===z.previousBodyPadding&&document.body.scrollHeight>window.innerHeight&&(z.previousBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight="".concat(z.previousBodyPadding+(()=>{const e=document.createElement("div");e.className=_["scrollbar-measure"],document.body.appendChild(e);const t=e.getBoundingClientRect().width-e.clientWidth;return document.body.removeChild(e),t})(),"px"))},nt=()=>{const e=navigator.userAgent,t=!!e.match(/iPad/i)||!!e.match(/iPhone/i),o=!!e.match(/WebKit/i);if(t&&o&&!e.match(/CriOS/i)){const e=44;S().scrollHeight>window.innerHeight-e&&(C().style.paddingBottom="".concat(e,"px"))}},at=()=>{const e=C();let t;e.ontouchstart=e=>{t=rt(e)},e.ontouchmove=e=>{t&&(e.preventDefault(),e.stopPropagation())}},rt=e=>{const t=e.target,o=C();return!(st(e)||it(e)||t!==o&&(se(o)||"INPUT"===t.tagName||"TEXTAREA"===t.tagName||se(A())&&A().contains(t)))},st=e=>e.touches&&e.touches.length&&"stylus"===e.touches[0].touchType,it=e=>e.touches&&e.touches.length>1,ct=e=>{const t=C(),o=S();"function"==typeof e.willOpen&&e.willOpen(o);const n=window.getComputedStyle(document.body).overflowY;pt(t,o,e),setTimeout((()=>{ut(t,o)}),10),U()&&(dt(t,e.scrollbarPadding,n),Array.from(document.body.children).forEach((e=>{e===C()||e.contains(C())||(e.hasAttribute("aria-hidden")&&e.setAttribute("data-previous-aria-hidden",e.getAttribute("aria-hidden")),e.setAttribute("aria-hidden","true"))}))),Y()||ue.previousActiveElement||(ue.previousActiveElement=document.activeElement),"function"==typeof e.didOpen&&setTimeout((()=>e.didOpen(o))),X(t,_["no-transition"])},lt=e=>{const t=S();if(e.target!==t)return;const o=C();t.removeEventListener(we,lt),o.style.overflowY="auto"},ut=(e,t)=>{we&&ie(t)?(e.style.overflowY="hidden",t.addEventListener(we,lt)):e.style.overflowY="auto"},dt=(e,t,o)=>{(()=>{if((/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)&&!G(document.body,_.iosfix)){const e=document.body.scrollTop;document.body.style.top="".concat(-1*e,"px"),J(document.body,_.iosfix),at(),nt()}})(),t&&"hidden"!==o&&ot(),setTimeout((()=>{e.scrollTop=0}))},pt=(e,t,o)=>{J(e,o.showClass.backdrop),t.style.setProperty("opacity","0","important"),te(t,"grid"),setTimeout((()=>{J(t,o.showClass.popup),t.style.removeProperty("opacity")}),10),J([document.documentElement,document.body],_.shown),o.heightAuto&&o.backdrop&&!o.toast&&J([document.documentElement,document.body],_["height-auto"])},ht=e=>{let t=S();t||new To,t=S();const o=M();Y()?oe(T()):mt(t,e),te(o),t.setAttribute("data-loading","true"),t.setAttribute("aria-busy","true"),t.focus()},mt=(e,t)=>{const o=N(),n=M();!t&&re(O())&&(t=O()),te(o),t&&(oe(t),n.setAttribute("data-button-to-replace",t.className)),n.parentNode.insertBefore(n,t),J([e,o],_.loading)},ft=e=>e.checked?1:0,gt=e=>e.checked?e.value:null,yt=e=>e.files.length?null!==e.getAttribute("multiple")?e.files:e.files[0]:null,wt=(e,t)=>{const o=S(),a=e=>vt[t.input](o,_t(e),t);i(t.inputOptions)||l(t.inputOptions)?(ht(O()),c(t.inputOptions).then((t=>{e.hideLoading(),a(t)}))):"object"==typeof t.inputOptions?a(t.inputOptions):n("Unexpected type of inputOptions! Expected object, Map or Promise, got ".concat(typeof t.inputOptions))},bt=(e,t)=>{const o=e.getInput();oe(o),c(t.inputValue).then((n=>{o.value="number"===t.input?parseFloat(n)||0:"".concat(n),te(o),o.focus(),e.hideLoading()})).catch((t=>{n("Error in inputValue promise: ".concat(t)),o.value="",te(o),o.focus(),e.hideLoading()}))},vt={select:(e,t,o)=>{const n=Q(e,_.select),a=(e,t,n)=>{const a=document.createElement("option");a.value=n,W(a,t),a.selected=kt(n,o.inputValue),e.appendChild(a)};t.forEach((e=>{const t=e[0],o=e[1];if(Array.isArray(o)){const e=document.createElement("optgroup");e.label=t,e.disabled=!1,n.appendChild(e),o.forEach((t=>a(e,t[1],t[0])))}else a(n,o,t)})),n.focus()},radio:(e,t,o)=>{const n=Q(e,_.radio);t.forEach((e=>{const t=e[0],a=e[1],r=document.createElement("input"),s=document.createElement("label");r.type="radio",r.name=_.radio,r.value=t,kt(t,o.inputValue)&&(r.checked=!0);const i=document.createElement("span");W(i,a),i.className=_.label,s.appendChild(r),s.appendChild(i),n.appendChild(s)}));const a=n.querySelectorAll("input");a.length&&a[0].focus()}},_t=e=>{const t=[];return"undefined"!=typeof Map&&e instanceof Map?e.forEach(((e,o)=>{let n=e;"object"==typeof n&&(n=_t(n)),t.push([o,n])})):Object.keys(e).forEach((o=>{let n=e[o];"object"==typeof n&&(n=_t(n)),t.push([o,n])})),t},kt=(e,t)=>t&&t.toString()===e.toString();function Ct(){const e=ke.innerParams.get(this);if(!e)return;const t=ke.domCache.get(this);oe(t.loader),Y()?e.icon&&te(T()):xt(t),X([t.popup,t.actions],_.loading),t.popup.removeAttribute("aria-busy"),t.popup.removeAttribute("data-loading"),t.confirmButton.disabled=!1,t.denyButton.disabled=!1,t.cancelButton.disabled=!1}const xt=e=>{const t=e.popup.getElementsByClassName(e.loader.getAttribute("data-button-to-replace"));t.length?te(t[0],"inline-block"):!re(O())&&!re(R())&&!re(L())&&oe(e.actions)};var Et={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};const St=()=>O()&&O().click(),Tt=e=>{e.keydownTarget&&e.keydownHandlerAdded&&(e.keydownTarget.removeEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!1)},Pt=(e,t,o)=>{const n=q();if(n.length)return(t+=o)===n.length?t=0:-1===t&&(t=n.length-1),n[t].focus();S().focus()},At=["ArrowRight","ArrowDown"],It=["ArrowLeft","ArrowUp"],Dt=(e,t,o)=>{const n=ke.innerParams.get(e);n&&(t.isComposing||229===t.keyCode||(n.stopKeydownPropagation&&t.stopPropagation(),"Enter"===t.key?Bt(e,t,n):"Tab"===t.key?Ot(t,n):[...At,...It].includes(t.key)?Rt(t.key):"Escape"===t.key&&Mt(t,n,o)))},Bt=(e,t,o)=>{if(s(o.allowEnterKey)&&t.target&&e.getInput()&&t.target instanceof HTMLElement&&t.target.outerHTML===e.getInput().outerHTML){if(["textarea","file"].includes(o.input))return;St(),t.preventDefault()}},Ot=(e,t)=>{const o=e.target,n=q();let a=-1;for(let e=0;e{const t=O(),o=R(),n=L();if(document.activeElement instanceof HTMLElement&&![t,o,n].includes(document.activeElement))return;const a=At.includes(e)?"nextElementSibling":"previousElementSibling";let r=document.activeElement;for(let e=0;e{s(t.allowEscapeKey)&&(e.preventDefault(),o(Ue.esc))};function Lt(e,t,o,n){Y()?Yt(e,n):(de(o).then((()=>Yt(e,n))),Tt(ue)),/^((?!chrome|android).)*safari/i.test(navigator.userAgent)?(t.setAttribute("style","display:none !important"),t.removeAttribute("class"),t.innerHTML=""):t.remove(),U()&&(null!==z.previousBodyPadding&&(document.body.style.paddingRight="".concat(z.previousBodyPadding,"px"),z.previousBodyPadding=null),(()=>{if(G(document.body,_.iosfix)){const e=parseInt(document.body.style.top,10);X(document.body,_.iosfix),document.body.style.top="",document.body.scrollTop=-1*e}})(),Ye()),X([document.documentElement,document.body],[_.shown,_["height-auto"],_["no-backdrop"],_["toast-shown"]])}function Nt(e){e=Ft(e);const t=Et.swalPromiseResolve.get(this),o=jt(this);this.isAwaitingPromise()?e.isDismissed||(Ht(this),t(e)):o&&t(e)}const jt=e=>{const t=S();if(!t)return!1;const o=ke.innerParams.get(e);if(!o||G(t,o.hideClass.popup))return!1;X(t,o.showClass.popup),J(t,o.hideClass.popup);const n=C();return X(n,o.showClass.backdrop),J(n,o.hideClass.backdrop),qt(e,t,o),!0};const Ht=e=>{e.isAwaitingPromise()&&(ke.awaitingPromise.delete(e),ke.innerParams.get(e)||e._destroy())},Ft=e=>void 0===e?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},e),qt=(e,t,o)=>{const n=C(),a=we&&ie(t);"function"==typeof o.willClose&&o.willClose(t),a?Ut(e,t,n,o.returnFocus,o.didClose):Lt(e,n,o.returnFocus,o.didClose)},Ut=(e,t,o,n,a)=>{ue.swalCloseEventFinishedCallback=Lt.bind(null,e,o,n,a),t.addEventListener(we,(function(e){e.target===t&&(ue.swalCloseEventFinishedCallback(),delete ue.swalCloseEventFinishedCallback)}))},Yt=(e,t)=>{setTimeout((()=>{"function"==typeof t&&t.bind(e.params)(),e._destroy()}))};function zt(e,t,o){const n=ke.domCache.get(e);t.forEach((e=>{n[e].disabled=o}))}function Wt(e,t){if(!e)return!1;if("radio"===e.type){const o=e.parentNode.parentNode.querySelectorAll("input");for(let e=0;e{const t={};return Object.keys(e).forEach((n=>{f(n)?t[n]=e[n]:o("Invalid parameter to update: ".concat(n))})),t};const Vt=e=>{Kt(e),delete e.params,delete ue.keydownHandler,delete ue.keydownTarget,delete ue.currentInstance},Kt=e=>{e.isAwaitingPromise()?($t(ke,e),ke.awaitingPromise.set(e,!0)):($t(Et,e),$t(ke,e))},$t=(e,t)=>{for(const o in e)e[o].delete(t)};var Zt=Object.freeze({hideLoading:Ct,disableLoading:Ct,getInput:function(e){const t=ke.innerParams.get(e||this),o=ke.domCache.get(e||this);return o?K(o.popup,t.input):null},close:Nt,isAwaitingPromise:function(){return!!ke.awaitingPromise.get(this)},rejectPromise:function(e){const t=Et.swalPromiseReject.get(this);Ht(this),t&&t(e)},handleAwaitingPromise:Ht,closePopup:Nt,closeModal:Nt,closeToast:Nt,enableButtons:function(){zt(this,["confirmButton","denyButton","cancelButton"],!1)},disableButtons:function(){zt(this,["confirmButton","denyButton","cancelButton"],!0)},enableInput:function(){return Wt(this.getInput(),!1)},disableInput:function(){return Wt(this.getInput(),!0)},showValidationMessage:function(e){const t=ke.domCache.get(this),o=ke.innerParams.get(this);W(t.validationMessage,e),t.validationMessage.className=_["validation-message"],o.customClass&&o.customClass.validationMessage&&J(t.validationMessage,o.customClass.validationMessage),te(t.validationMessage);const n=this.getInput();n&&(n.setAttribute("aria-invalid",!0),n.setAttribute("aria-describedby",_["validation-message"]),$(n),J(n,_.inputerror))},resetValidationMessage:function(){const e=ke.domCache.get(this);e.validationMessage&&oe(e.validationMessage);const t=this.getInput();t&&(t.removeAttribute("aria-invalid"),t.removeAttribute("aria-describedby"),X(t,_.inputerror))},getProgressSteps:function(){return ke.domCache.get(this).progressSteps},update:function(e){const t=S(),n=ke.innerParams.get(this);if(!t||G(t,n.hideClass.popup))return o("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.");const a=Gt(e),r=Object.assign({},n,a);qe(this,r),ke.innerParams.set(this,r),Object.defineProperties(this,{params:{value:Object.assign({},this.params,e),writable:!1,enumerable:!0}})},_destroy:function(){const e=ke.domCache.get(this),t=ke.innerParams.get(this);t?(e.popup&&ue.swalCloseEventFinishedCallback&&(ue.swalCloseEventFinishedCallback(),delete ue.swalCloseEventFinishedCallback),"function"==typeof t.didDestroy&&t.didDestroy(),Vt(this)):Kt(this)}});const Jt=(e,o)=>{const a=ke.innerParams.get(e);if(!a.input)return void n('The "input" parameter is needed to be set when using returnInputValueOn'.concat(t(o)));const r=((e,t)=>{const o=e.getInput();if(!o)return null;switch(t.input){case"checkbox":return ft(o);case"radio":return gt(o);case"file":return yt(o);default:return t.inputAutoTrim?o.value.trim():o.value}})(e,a);a.inputValidator?Xt(e,r,o):e.getInput().checkValidity()?"deny"===o?Qt(e,r):oo(e,r):(e.enableButtons(),e.showValidationMessage(a.validationMessage))},Xt=(e,t,o)=>{const n=ke.innerParams.get(e);e.disableInput(),Promise.resolve().then((()=>c(n.inputValidator(t,n.validationMessage)))).then((n=>{e.enableButtons(),e.enableInput(),n?e.showValidationMessage(n):"deny"===o?Qt(e,t):oo(e,t)}))},Qt=(e,t)=>{const o=ke.innerParams.get(e||void 0);o.showLoaderOnDeny&&ht(R()),o.preDeny?(ke.awaitingPromise.set(e||void 0,!0),Promise.resolve().then((()=>c(o.preDeny(t,o.validationMessage)))).then((o=>{!1===o?(e.hideLoading(),Ht(e)):e.close({isDenied:!0,value:void 0===o?t:o})})).catch((t=>to(e||void 0,t)))):e.close({isDenied:!0,value:t})},eo=(e,t)=>{e.close({isConfirmed:!0,value:t})},to=(e,t)=>{e.rejectPromise(t)},oo=(e,t)=>{const o=ke.innerParams.get(e||void 0);o.showLoaderOnConfirm&&ht(),o.preConfirm?(e.resetValidationMessage(),ke.awaitingPromise.set(e||void 0,!0),Promise.resolve().then((()=>c(o.preConfirm(t,o.validationMessage)))).then((o=>{re(B())||!1===o?(e.hideLoading(),Ht(e)):eo(e,void 0===o?t:o)})).catch((t=>to(e||void 0,t)))):eo(e,t)},no=(e,t,o)=>{t.popup.onclick=()=>{const t=ke.innerParams.get(e);t&&(ao(t)||t.timer||t.input)||o(Ue.close)}},ao=e=>e.showConfirmButton||e.showDenyButton||e.showCancelButton||e.showCloseButton;let ro=!1;const so=e=>{e.popup.onmousedown=()=>{e.container.onmouseup=function(t){e.container.onmouseup=void 0,t.target===e.container&&(ro=!0)}}},io=e=>{e.container.onmousedown=()=>{e.popup.onmouseup=function(t){e.popup.onmouseup=void 0,(t.target===e.popup||e.popup.contains(t.target))&&(ro=!0)}}},co=(e,t,o)=>{t.container.onclick=n=>{const a=ke.innerParams.get(e);ro?ro=!1:n.target===t.container&&s(a.allowOutsideClick)&&o(Ue.backdrop)}},lo=e=>e instanceof Element||(e=>"object"==typeof e&&e.jquery)(e);const uo=()=>{if(ue.timeout)return(()=>{const e=H(),t=parseInt(window.getComputedStyle(e).width);e.style.removeProperty("transition"),e.style.width="100%";const o=t/parseInt(window.getComputedStyle(e).width)*100;e.style.removeProperty("transition"),e.style.width="".concat(o,"%")})(),ue.timeout.stop()},po=()=>{if(ue.timeout){const e=ue.timeout.start();return ce(e),e}};let ho=!1;const mo={};const fo=e=>{for(let t=e.target;t&&t!==document;t=t.parentNode)for(const e in mo){const o=t.getAttribute(e);if(o)return void mo[e].fire({template:o})}};var go=Object.freeze({isValidParameter:m,isUpdatableParameter:f,isDeprecatedParameter:g,argsToParams:e=>{const t={};return"object"!=typeof e[0]||lo(e[0])?["title","html","icon"].forEach(((o,a)=>{const r=e[a];"string"==typeof r||lo(r)?t[o]=r:void 0!==r&&n("Unexpected type of ".concat(o,'! Expected "string" or "Element", got ').concat(typeof r))})):Object.assign(t,e[0]),t},isVisible:()=>re(S()),clickConfirm:St,clickDeny:()=>R()&&R().click(),clickCancel:()=>L()&&L().click(),getContainer:C,getPopup:S,getTitle:P,getHtmlContainer:A,getImage:I,getIcon:T,getInputLabel:()=>E(_["input-label"]),getCloseButton:F,getActions:N,getConfirmButton:O,getDenyButton:R,getCancelButton:L,getLoader:M,getFooter:j,getTimerProgressBar:H,getFocusableElements:q,getValidationMessage:B,isLoading:()=>S().hasAttribute("data-loading"),fire:function(){const e=this;for(var t=arguments.length,o=new Array(t),n=0;nue.timeout&&ue.timeout.getTimerLeft(),stopTimer:uo,resumeTimer:po,toggleTimer:()=>{const e=ue.timeout;return e&&(e.running?uo():po())},increaseTimer:e=>{if(ue.timeout){const t=ue.timeout.increase(e);return ce(t,!0),t}},isTimerRunning:()=>ue.timeout&&ue.timeout.isRunning(),bindClickHandler:function(){mo[arguments.length>0&&void 0!==arguments[0]?arguments[0]:"data-swal-template"]=this,ho||(document.body.addEventListener("click",fo),ho=!0)}});let yo;class wo{constructor(){if("undefined"==typeof window)return;yo=this;for(var e=arguments.length,t=new Array(e),o=0;o1&&void 0!==arguments[1]?arguments[1]:{};(e=>{!e.backdrop&&e.allowOutsideClick&&o('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');for(const t in e)y(t),e.toast&&w(t),b(t)})(Object.assign({},t,e)),ue.currentInstance&&(ue.currentInstance._destroy(),U()&&Ye()),ue.currentInstance=yo;const n=vo(e,t);et(n),Object.freeze(n),ue.timeout&&(ue.timeout.stop(),delete ue.timeout),clearTimeout(ue.restoreFocusTimeout);const a=_o(yo);return qe(yo,n),ke.innerParams.set(yo,n),bo(yo,a,n)}then(e){return ke.promise.get(this).then(e)}finally(e){return ke.promise.get(this).finally(e)}}const bo=(e,t,o)=>new Promise(((n,a)=>{const r=t=>{e.closePopup({isDismissed:!0,dismiss:t})};Et.swalPromiseResolve.set(e,n),Et.swalPromiseReject.set(e,a),t.confirmButton.onclick=()=>(e=>{const t=ke.innerParams.get(e);e.disableButtons(),t.input?Jt(e,"confirm"):oo(e,!0)})(e),t.denyButton.onclick=()=>(e=>{const t=ke.innerParams.get(e);e.disableButtons(),t.returnInputValueOnDeny?Jt(e,"deny"):Qt(e,!1)})(e),t.cancelButton.onclick=()=>((e,t)=>{e.disableButtons(),t(Ue.cancel)})(e,r),t.closeButton.onclick=()=>r(Ue.close),((e,t,o)=>{ke.innerParams.get(e).toast?no(e,t,o):(so(t),io(t),co(e,t,o))})(e,t,r),((e,t,o,n)=>{Tt(t),o.toast||(t.keydownHandler=t=>Dt(e,t,n),t.keydownTarget=o.keydownListenerCapture?window:S(),t.keydownListenerCapture=o.keydownListenerCapture,t.keydownTarget.addEventListener("keydown",t.keydownHandler,{capture:t.keydownListenerCapture}),t.keydownHandlerAdded=!0)})(e,ue,o,r),((e,t)=>{"select"===t.input||"radio"===t.input?wt(e,t):["text","email","number","tel","textarea"].includes(t.input)&&(i(t.inputValue)||l(t.inputValue))&&(ht(O()),bt(e,t))})(e,o),ct(o),ko(ue,o,r),Co(t,o),setTimeout((()=>{t.container.scrollTop=0}))})),vo=(e,t)=>{const o=(e=>{const t="string"==typeof e.template?document.querySelector(e.template):e.template;if(!t)return{};const o=t.content;return Je(o),Object.assign(We(o),Ge(o),Ve(o),Ke(o),$e(o),Ze(o,ze))})(e),n=Object.assign({},u,t,o,e);return n.showClass=Object.assign({},u.showClass,n.showClass),n.hideClass=Object.assign({},u.hideClass,n.hideClass),n},_o=e=>{const t={popup:S(),container:C(),actions:N(),confirmButton:O(),denyButton:R(),cancelButton:L(),loader:M(),closeButton:F(),validationMessage:B(),progressSteps:D()};return ke.domCache.set(e,t),t},ko=(e,t,o)=>{const n=H();oe(n),t.timer&&(e.timeout=new tt((()=>{o("timer"),delete e.timeout}),t.timer),t.timerProgressBar&&(te(n),V(n,t,"timerProgressBar"),setTimeout((()=>{e.timeout&&e.timeout.running&&ce(t.timer)}))))},Co=(e,t)=>{if(!t.toast)return s(t.allowEnterKey)?void(xo(e,t)||Pt(0,-1,1)):Eo()},xo=(e,t)=>t.focusDeny&&re(e.denyButton)?(e.denyButton.focus(),!0):t.focusCancel&&re(e.cancelButton)?(e.cancelButton.focus(),!0):!(!t.focusConfirm||!re(e.confirmButton)||(e.confirmButton.focus(),0)),Eo=()=>{document.activeElement instanceof HTMLElement&&"function"==typeof document.activeElement.blur&&document.activeElement.blur()};if("undefined"!=typeof window&&/^ru\b/.test(navigator.language)&&location.host.match(/\.(ru|su|xn--p1ai)$/)&&Math.random()<.1){const e=document.createElement("div");e.className="leave-russia-now-and-apply-your-skills-to-the-world";const t=(So=[{text:"В нижеприведённом видео объясняется как каждый из нас может помочь в том,\n чтобы эта бессмысленная и бесчеловечная война остановилась:",id:"4CfDhaRkw7I"},{text:"Эмпатия - главное человеческое чувство. Способность сопереживать. Способность поставить себя на место другого.",id:"s-GLAIY4DXA"}])[Math.floor(Math.random()*So.length)];W(e,"\n
              \n Если мы не остановим войну, она придет в дом каждого из нас и её последствия будут ужасающими.\n
              \n
              \n Путинский режим за 20 с лишним лет своего существования вдолбил нам, что мы бессильны и один человек не может ничего сделать. Это не так!\n
              \n
              \n ".concat(t.text,'\n
              \n \n
              \n Нет войне!\n
              \n '));const o=document.createElement("button");o.innerHTML="×",o.onclick=()=>e.remove(),e.appendChild(o),window.addEventListener("load",(()=>{setTimeout((()=>{document.body.appendChild(e)}),1e3)}))}var So;Object.assign(wo.prototype,Zt),Object.assign(wo,go),Object.keys(Zt).forEach((e=>{wo[e]=function(){if(yo)return yo[e](...arguments)}})),wo.DismissReason=Ue,wo.version="11.4.26";const To=wo;return To.default=To,To}(),void 0!==this&&this.Sweetalert2&&(this.swal=this.sweetAlert=this.Swal=this.SweetAlert=this.Sweetalert2),"undefined"!=typeof document&&function(e,t){var o=e.createElement("style");if(e.getElementsByTagName("head")[0].appendChild(o),o.styleSheet)o.styleSheet.disabled||(o.styleSheet.cssText=t);else try{o.innerHTML=t}catch(e){o.innerText=t}}(document,'.swal2-popup.swal2-toast{box-sizing:border-box;grid-column:1/4!important;grid-row:1/4!important;grid-template-columns:1fr 99fr 1fr;padding:1em;overflow-y:hidden;background:#fff;box-shadow:0 0 1px hsla(0deg,0%,0%,.075),0 1px 2px hsla(0deg,0%,0%,.075),1px 2px 4px hsla(0deg,0%,0%,.075),1px 3px 8px hsla(0deg,0%,0%,.075),2px 4px 16px hsla(0deg,0%,0%,.075);pointer-events:all}.swal2-popup.swal2-toast>*{grid-column:2}.swal2-popup.swal2-toast .swal2-title{margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-loading{justify-content:center}.swal2-popup.swal2-toast .swal2-input{height:2em;margin:.5em;font-size:1em}.swal2-popup.swal2-toast .swal2-validation-message{font-size:1em}.swal2-popup.swal2-toast .swal2-footer{margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-popup.swal2-toast .swal2-close{grid-column:3/3;grid-row:1/99;align-self:center;width:.8em;height:.8em;margin:0;font-size:2em}.swal2-popup.swal2-toast .swal2-html-container{margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-html-container:empty{padding:0}.swal2-popup.swal2-toast .swal2-loader{grid-column:1;grid-row:1/99;align-self:center;width:2em;height:2em;margin:.25em}.swal2-popup.swal2-toast .swal2-icon{grid-column:1;grid-row:1/99;align-self:center;width:2em;min-width:2em;height:2em;margin:0 .5em 0 0}.swal2-popup.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:700}.swal2-popup.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-popup.swal2-toast .swal2-actions{justify-content:flex-start;height:auto;margin:0;margin-top:.5em;padding:0 .5em}.swal2-popup.swal2-toast .swal2-styled{margin:.25em .5em;padding:.4em .6em;font-size:1em}.swal2-popup.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;transform:rotate(45deg);border-radius:50%}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-.8em;left:-.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-popup.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{-webkit-animation:swal2-toast-animate-success-line-tip .75s;animation:swal2-toast-animate-success-line-tip .75s}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{-webkit-animation:swal2-toast-animate-success-line-long .75s;animation:swal2-toast-animate-success-line-long .75s}.swal2-popup.swal2-toast.swal2-show{-webkit-animation:swal2-toast-show .5s;animation:swal2-toast-show .5s}.swal2-popup.swal2-toast.swal2-hide{-webkit-animation:swal2-toast-hide .1s forwards;animation:swal2-toast-hide .1s forwards}.swal2-container{display:grid;position:fixed;z-index:1060;top:0;right:0;bottom:0;left:0;box-sizing:border-box;grid-template-areas:"top-start top top-end" "center-start center center-end" "bottom-start bottom-center bottom-end";grid-template-rows:minmax(-webkit-min-content,auto) minmax(-webkit-min-content,auto) minmax(-webkit-min-content,auto);grid-template-rows:minmax(min-content,auto) minmax(min-content,auto) minmax(min-content,auto);height:100%;padding:.625em;overflow-x:hidden;transition:background-color .1s;-webkit-overflow-scrolling:touch}.swal2-container.swal2-backdrop-show,.swal2-container.swal2-noanimation{background:rgba(0,0,0,.4)}.swal2-container.swal2-backdrop-hide{background:0 0!important}.swal2-container.swal2-bottom-start,.swal2-container.swal2-center-start,.swal2-container.swal2-top-start{grid-template-columns:minmax(0,1fr) auto auto}.swal2-container.swal2-bottom,.swal2-container.swal2-center,.swal2-container.swal2-top{grid-template-columns:auto minmax(0,1fr) auto}.swal2-container.swal2-bottom-end,.swal2-container.swal2-center-end,.swal2-container.swal2-top-end{grid-template-columns:auto auto minmax(0,1fr)}.swal2-container.swal2-top-start>.swal2-popup{align-self:start}.swal2-container.swal2-top>.swal2-popup{grid-column:2;align-self:start;justify-self:center}.swal2-container.swal2-top-end>.swal2-popup,.swal2-container.swal2-top-right>.swal2-popup{grid-column:3;align-self:start;justify-self:end}.swal2-container.swal2-center-left>.swal2-popup,.swal2-container.swal2-center-start>.swal2-popup{grid-row:2;align-self:center}.swal2-container.swal2-center>.swal2-popup{grid-column:2;grid-row:2;align-self:center;justify-self:center}.swal2-container.swal2-center-end>.swal2-popup,.swal2-container.swal2-center-right>.swal2-popup{grid-column:3;grid-row:2;align-self:center;justify-self:end}.swal2-container.swal2-bottom-left>.swal2-popup,.swal2-container.swal2-bottom-start>.swal2-popup{grid-column:1;grid-row:3;align-self:end}.swal2-container.swal2-bottom>.swal2-popup{grid-column:2;grid-row:3;justify-self:center;align-self:end}.swal2-container.swal2-bottom-end>.swal2-popup,.swal2-container.swal2-bottom-right>.swal2-popup{grid-column:3;grid-row:3;align-self:end;justify-self:end}.swal2-container.swal2-grow-fullscreen>.swal2-popup,.swal2-container.swal2-grow-row>.swal2-popup{grid-column:1/4;width:100%}.swal2-container.swal2-grow-column>.swal2-popup,.swal2-container.swal2-grow-fullscreen>.swal2-popup{grid-row:1/4;align-self:stretch}.swal2-container.swal2-no-transition{transition:none!important}.swal2-popup{display:none;position:relative;box-sizing:border-box;grid-template-columns:minmax(0,100%);width:32em;max-width:100%;padding:0 0 1.25em;border:none;border-radius:5px;background:#fff;color:#545454;font-family:inherit;font-size:1rem}.swal2-popup:focus{outline:0}.swal2-popup.swal2-loading{overflow-y:hidden}.swal2-title{position:relative;max-width:100%;margin:0;padding:.8em 1em 0;color:inherit;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:auto;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;transition:box-shadow .1s;box-shadow:0 0 0 3px transparent;font-weight:500}.swal2-styled:not([disabled]){cursor:pointer}.swal2-styled.swal2-confirm{border:0;border-radius:.25em;background:initial;background-color:#7066e0;color:#fff;font-size:1em}.swal2-styled.swal2-confirm:focus{box-shadow:0 0 0 3px rgba(112,102,224,.5)}.swal2-styled.swal2-deny{border:0;border-radius:.25em;background:initial;background-color:#dc3741;color:#fff;font-size:1em}.swal2-styled.swal2-deny:focus{box-shadow:0 0 0 3px rgba(220,55,65,.5)}.swal2-styled.swal2-cancel{border:0;border-radius:.25em;background:initial;background-color:#6e7881;color:#fff;font-size:1em}.swal2-styled.swal2-cancel:focus{box-shadow:0 0 0 3px rgba(110,120,129,.5)}.swal2-styled.swal2-default-outline:focus{box-shadow:0 0 0 3px rgba(100,150,200,.5)}.swal2-styled:focus{outline:0}.swal2-styled::-moz-focus-inner{border:0}.swal2-footer{justify-content:center;margin:1em 0 0;padding:1em 1em 0;border-top:1px solid #eee;color:inherit;font-size:1em}.swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;grid-column:auto!important;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:2em auto 1em}.swal2-close{z-index:2;align-items:center;justify-content:center;width:1.2em;height:1.2em;margin-top:0;margin-right:0;margin-bottom:-1.2em;padding:0;overflow:hidden;transition:color .1s,box-shadow .1s;border:none;border-radius:5px;background:0 0;color:#ccc;font-family:serif;font-family:monospace;font-size:2.5em;cursor:pointer;justify-self:end}.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-html-container{z-index:1;justify-content:center;margin:1em 1.6em .3em;padding:0;overflow:auto;color:inherit;font-size:1.125em;font-weight:400;line-height:normal;text-align:center;word-wrap:break-word;word-break:break-word}.swal2-checkbox,.swal2-file,.swal2-input,.swal2-radio,.swal2-select,.swal2-textarea{margin:1em 2em 3px}.swal2-file,.swal2-input,.swal2-textarea{box-sizing:border-box;width:auto;transition:border-color .1s,box-shadow .1s;border:1px solid #d9d9d9;border-radius:.1875em;background:0 0;box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px transparent;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:inset 0 1px 1px rgba(0,0,0,.06),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::placeholder,.swal2-input::placeholder,.swal2-textarea::placeholder{color:#ccc}.swal2-range{margin:1em 2em 3px;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-file{width:75%;margin-right:auto;margin-left:auto;background:0 0;font-size:1.125em}.swal2-textarea{height:6.75em;padding:.75em}.swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:0 0;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 0}.swal2-validation-message{align-items:center;justify-content:center;margin:1em 0 0;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:2.5em auto .6em;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;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-warning.swal2-icon-show{-webkit-animation:swal2-animate-error-icon .5s;animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-warning.swal2-icon-show .swal2-icon-content{-webkit-animation:swal2-animate-i-mark .5s;animation:swal2-animate-i-mark .5s}.swal2-icon.swal2-info{border-color:#9de0f6;color:#3fc3ee}.swal2-icon.swal2-info.swal2-icon-show{-webkit-animation:swal2-animate-error-icon .5s;animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-info.swal2-icon-show .swal2-icon-content{-webkit-animation:swal2-animate-i-mark .8s;animation:swal2-animate-i-mark .8s}.swal2-icon.swal2-question{border-color:#c9dae1;color:#87adbd}.swal2-icon.swal2-question.swal2-icon-show{-webkit-animation:swal2-animate-error-icon .5s;animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-question.swal2-icon-show .swal2-icon-content{-webkit-animation:swal2-animate-question-mark .8s;animation:swal2-animate-question-mark .8s}.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:1.25em auto;padding:0;background:0 0;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{margin-right:initial;margin-left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}.leave-russia-now-and-apply-your-skills-to-the-world{display:flex;position:fixed;z-index:1939;top:0;right:0;bottom:0;left:0;flex-direction:column;align-items:center;justify-content:center;padding:25px 0 20px;background:#20232a;color:#fff;text-align:center}.leave-russia-now-and-apply-your-skills-to-the-world div{max-width:560px;margin:10px;line-height:146%}.leave-russia-now-and-apply-your-skills-to-the-world iframe{max-width:100%;max-height:55.5555555556vmin;margin:16px auto}.leave-russia-now-and-apply-your-skills-to-the-world strong{border-bottom:2px dashed #fff}.leave-russia-now-and-apply-your-skills-to-the-world button{display:flex;position:fixed;z-index:1940;top:0;right:0;align-items:center;justify-content:center;width:48px;height:48px;margin-right:10px;margin-bottom:-10px;border:none;background:0 0;color:#aaa;font-size:48px;font-weight:700;cursor:pointer}.leave-russia-now-and-apply-your-skills-to-the-world button:hover{color:#fff}@-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)}}@-webkit-keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@-webkit-keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}@keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}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{background-color:transparent!important;pointer-events:none}body.swal2-no-backdrop .swal2-container .swal2-popup{pointer-events:all}body.swal2-no-backdrop .swal2-container .swal2-modal{box-shadow:0 0 10px rgba(0,0,0,.4)}@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{box-sizing:border-box;width:360px;max-width:100%;background-color:transparent;pointer-events:none}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 o=!1;try{o="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(e){}t.hasCORS=o},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 o in e)e.hasOwnProperty(o)&&(t.length&&(t+="&"),t+=encodeURIComponent(o)+"="+encodeURIComponent(e[o]));return t},t.decode=function(e){let t={},o=e.split("&");for(let e=0,n=o.length;e{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parse=void 0;const o=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,n=["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=o.exec(e||""),i={},c=14;for(;c--;)i[n[c]]=s[c]||"";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 o=t.replace(/\/{2,9}/g,"/").split("/");return"/"!=t.substr(0,1)&&0!==t.length||o.splice(0,1),"/"==t.substr(t.length-1,1)&&o.splice(o.length-1,1),o}(0,i.path),i.queryKey=function(e,t){const o={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,(function(e,t,n){t&&(o[t]=n)})),o}(0,i.query),i}},8726:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.yeast=t.decode=t.encode=void 0;const o="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),n={};let a,r=0,s=0;function i(e){let t="";do{t=o[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,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parse=t.installTimerFunctions=t.transports=t.Transport=t.protocol=t.Socket=void 0;const n=o(3481);Object.defineProperty(t,"Socket",{enumerable:!0,get:function(){return n.Socket}}),t.protocol=n.Socket.protocol;var a=o(9870);Object.defineProperty(t,"Transport",{enumerable:!0,get:function(){return a.Transport}});var r=o(7385);Object.defineProperty(t,"transports",{enumerable:!0,get:function(){return r.transports}});var s=o(9622);Object.defineProperty(t,"installTimerFunctions",{enumerable:!0,get:function(){return s.installTimerFunctions}});var i=o(5222);Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return i.parse}})},3481:function(e,t,o){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Socket=void 0;const a=o(7385),r=o(9622),s=o(5754),i=o(5222),c=n(o(1227)),l=o(5260),u=o(1373),d=(0,c.default)("engine.io-client:socket");class p extends l.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 o=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",o),new a.transports[e](o)}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),o=!1;p.priorWebsocketSuccess=!1;const n=()=>{o||(d('probe transport "%s" opened',e),t.send([{type:"ping",data:"probe"}]),t.once("packet",(n=>{if(!o)if("pong"===n.type&&"probe"===n.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((()=>{o||"closed"!==this.readyState&&(d("changing transport and sending upgrade packet"),l(),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 o=new Error("probe error");o.transport=t.name,this.emitReserved("upgradeError",o)}})))};function a(){o||(o=!0,l(),t.close(),t=null)}const r=o=>{const n=new Error("probe error: "+o);n.transport=t.name,a(),d('probe transport "%s" failed because of error: %s',e,o),this.emitReserved("upgradeError",n)};function s(){r("transport closed")}function i(){r("socket closed")}function c(e){t&&e.name!==t.name&&(d('"%s" works - aborting "%s"',e.name,t.name),a())}const l=()=>{t.removeListener("open",n),t.removeListener("error",r),t.removeListener("close",s),this.off("close",i),this.off("upgrading",c)};t.once("open",n),t.once("error",r),t.once("close",s),this.once("close",i),this.once("upgrading",c),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,o){return this.sendPacket("message",e,t,o),this}send(e,t,o){return this.sendPacket("message",e,t,o),this}sendPacket(e,t,o,n){if("function"==typeof t&&(n=t,t=void 0),"function"==typeof o&&(n=o,o=null),"closing"===this.readyState||"closed"===this.readyState)return;(o=o||{}).compress=!1!==o.compress;const a={type:e,data:t,options:o};this.emitReserved("packetCreate",a),this.writeBuffer.push(a),n&&this.once("flush",n),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()},o=()=>{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?o():e()})):this.upgrading?o():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 o=0;const n=e.length;for(;o{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.transports=void 0;const n=o(484),a=o(1308);t.transports={websocket:a.WS,polling:n.Polling}},484:function(e,t,o){"use strict";var n=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=o(9870),r=n(o(1227)),s=o(8726),i=o(5754),c=o(1373),l=o(6666),u=o(5260),d=o(9622),p=o(6242),h=(0,r.default)("engine.io-client:polling");function m(){}const f=null!=new l.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 o=location.port;o||(o=t?"443":"80"),this.xd="undefined"!=typeof location&&e.hostname!==location.hostname||o!==e.port,this.xs=e.secure!==t}const t=e&&e.forceBase64;this.supportsBinary=f&&!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,c.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,c.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 o="";!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))&&(o=":"+this.opts.port);const n=(0,i.encode)(e);return t+"://"+(-1!==this.opts.hostname.indexOf(":")?"["+this.opts.hostname+"]":this.opts.hostname)+o+this.opts.path+(n.length?"?"+n:"")}request(e={}){return Object.assign(e,{xd:this.xd,xs:this.xs},this.opts),new y(this.uri(),e)}doWrite(e,t){const o=this.request({method:"POST",data:e});o.on("success",t),o.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 l.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=m,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,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultBinaryType=t.usingBrowserWebSocket=t.WebSocket=t.nextTick=void 0;const n=o(6242);t.nextTick="function"==typeof Promise&&"function"==typeof Promise.resolve?e=>Promise.resolve().then(e):(e,t)=>t(e,0),t.WebSocket=n.globalThisShim.WebSocket||n.globalThisShim.MozWebSocket,t.usingBrowserWebSocket=!0,t.defaultBinaryType="arraybuffer"},1308:function(e,t,o){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.WS=void 0;const a=o(9870),r=o(5754),s=o(8726),i=o(9622),c=o(5552),l=n(o(1227)),u=o(1373),d=(0,l.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,o=p?{}:(0,i.pick)(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(o.headers=this.opts.extraHeaders);try{this.ws=c.usingBrowserWebSocket&&!p?t?new c.WebSocket(e,t):new c.WebSocket(e):new c.WebSocket(e,t,o)}catch(e){return this.emitReserved("error",e)}this.ws.binaryType=this.socket.binaryType||c.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={};!c.usingBrowserWebSocket&&(o.options&&(t.compress=o.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 o="";this.opts.port&&("wss"===t&&443!==Number(this.opts.port)||"ws"===t&&80!==Number(this.opts.port))&&(o=":"+this.opts.port),this.opts.timestampRequests&&(e[this.opts.timestampParam]=(0,s.yeast)()),this.supportsBinary||(e.b64=1);const n=(0,r.encode)(e);return t+"://"+(-1!==this.opts.hostname.indexOf(":")?"["+this.opts.hostname+"]":this.opts.hostname)+o+this.opts.path+(n.length?"?"+n:"")}check(){return!!c.WebSocket}}t.WS=h},6666:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.XHR=void 0;const n=o(8419),a=o(6242);t.XHR=function(e){const t=e.xdomain;try{if("undefined"!=typeof XMLHttpRequest&&(!t||n.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,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.byteLength=t.installTimerFunctions=t.pick=void 0;const n=o(6242);t.pick=function(e,...t){return t.reduce(((t,o)=>(e.hasOwnProperty(o)&&(t[o]=e[o]),t)),{})};const a=setTimeout,r=clearTimeout;t.installTimerFunctions=function(e,t){t.useNativeTimers?(e.setTimeoutFn=a.bind(n.globalThisShim),e.clearTimeoutFn=r.bind(n.globalThisShim)):(e.setTimeoutFn=setTimeout.bind(n.globalThisShim),e.clearTimeoutFn=clearTimeout.bind(n.globalThisShim))},t.byteLength=function(e){return"string"==typeof e?function(e){let t=0,o=0;for(let n=0,a=e.length;n=57344?o+=3:(n++,o+=4);return o}(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 o=Object.create(null);t.PACKET_TYPES=o,o.open="0",o.close="1",o.ping="2",o.pong="3",o.message="4",o.upgrade="5",o.noop="6";const n=Object.create(null);t.PACKET_TYPES_REVERSE=n,Object.keys(o).forEach((e=>{n[o[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 o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n="undefined"==typeof Uint8Array?[]:new Uint8Array(256);for(let e=0;e{let t,n=new Uint8Array(e),a=n.length,r="";for(t=0;t>2],r+=o[(3&n[t])<<4|n[t+1]>>4],r+=o[(15&n[t+1])<<2|n[t+2]>>6],r+=o[63&n[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,o,a,r,s,i=.75*e.length,c=e.length,l=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[l++]=(15&a)<<4|r>>2,d[l++]=(3&r)<<6|63&s;return u}},7572:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=o(3087),a=o(2469),r="function"==typeof ArrayBuffer,s=(e,t)=>{if(r){const o=(0,a.decode)(e);return i(o,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 o=e.charAt(0);return"b"===o?{type:"message",data:s(e.substring(1),t)}:n.PACKET_TYPES_REVERSE[o]?e.length>1?{type:n.PACKET_TYPES_REVERSE[o],data:e.substring(1)}:{type:n.PACKET_TYPES_REVERSE[o]}:n.ERROR_PACKET}},3908:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=o(3087),a="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),r="function"==typeof ArrayBuffer,s=(e,t)=>{const o=new FileReader;return o.onload=function(){const e=o.result.split(",")[1];t("b"+e)},o.readAsDataURL(e)};t.default=({type:e,data:t},o,i)=>{return a&&t instanceof Blob?o?i(t):s(t,i):r&&(t instanceof ArrayBuffer||(c=t,"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(c):c&&c.buffer instanceof ArrayBuffer))?o?i(t):s(new Blob([t]),i):i(n.PACKET_TYPES[e]+(t||""));var c}},1373:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodePayload=t.decodePacket=t.encodePayload=t.encodePacket=t.protocol=void 0;const n=o(3908);t.encodePacket=n.default;const a=o(7572);t.decodePacket=a.default;const r=String.fromCharCode(30);t.encodePayload=(e,t)=>{const o=e.length,a=new Array(o);let s=0;e.forEach(((e,i)=>{(0,n.default)(e,!1,(e=>{a[i]=e,++s===o&&t(a.join(r))}))}))},t.decodePayload=(e,t)=>{const o=e.split(r),n=[];for(let e=0;e{"use strict";function o(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=o,o.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),o=Math.floor(t*this.jitter*e);e=0==(1&Math.floor(10*t))?e-o:e+o}return 0|Math.min(e,this.max)},o.prototype.reset=function(){this.attempts=0},o.prototype.setMin=function(e){this.ms=e},o.prototype.setMax=function(e){this.max=e},o.prototype.setJitter=function(e){this.jitter=e}},7046:function(e,t,o){"use strict";var n=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=o(3084),r=o(4168);Object.defineProperty(t,"Manager",{enumerable:!0,get:function(){return r.Manager}});const s=o(8312);Object.defineProperty(t,"Socket",{enumerable:!0,get:function(){return s.Socket}});const i=n(o(1227)).default("socket.io-client"),c={};function l(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};const o=a.url(e,t.path||"/socket.io"),n=o.source,s=o.id,l=o.path,u=c[s]&&l in c[s].nsps;let d;return t.forceNew||t["force new connection"]||!1===t.multiplex||u?(i("ignoring socket cache for %s",n),d=new r.Manager(n,t)):(c[s]||(i("new io instance for %s",n),c[s]=new r.Manager(n,t)),d=c[s]),o.query&&!t.query&&(t.query=o.queryKey),d.socket(o.path,t)}t.io=l,t.connect=l,t.default=l,Object.assign(l,{Manager:r.Manager,Socket:s.Socket,io:l,connect:l});var u=o(7116);Object.defineProperty(t,"protocol",{enumerable:!0,get:function(){return u.protocol}}),e.exports=l},4168:function(e,t,o){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,o,n){void 0===n&&(n=o),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[o]}})}:function(e,t,o,n){void 0===n&&(n=o),e[n]=t[o]}),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 o in e)"default"!==o&&Object.prototype.hasOwnProperty.call(e,o)&&n(t,e,o);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=o(4679),c=o(8312),l=r(o(7116)),u=o(7149),d=o(5159),p=o(5260),h=s(o(1227)).default("socket.io-client:manager");class m extends p.Emitter{constructor(e,t){var o;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!==(o=t.randomizationFactor)&&void 0!==o?o:.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 n=t.parser||l;this.encoder=new n.Encoder,this.decoder=new n.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,o=this;this._readyState="opening",this.skipReconnect=!1;const n=u.on(t,"open",(function(){o.onopen(),e&&e()})),a=u.on(t,"error",(t=>{h("error"),o.cleanup(),o._readyState="closed",this.emitReserved("error",t),e?e(t):o.maybeReconnectOnOpen()}));if(!1!==this._timeout){const e=this._timeout;h("connect attempt will timeout after %d",e),0===e&&n();const o=this.setTimeoutFn((()=>{h("connect attempt timed out after %d",e),n(),t.close(),t.emit("error",new Error("timeout"))}),e);this.opts.autoUnref&&o.unref(),this.subs.push((function(){clearTimeout(o)}))}return this.subs.push(n),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 o=this.nsps[e];return o||(o=new c.Socket(this,e,t),this.nsps[e]=o),o}_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 o=0;oe())),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 o=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&&o.unref(),this.subs.push((function(){clearTimeout(o)}))}}onreconnect(){const e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}t.Manager=m},7149:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.on=void 0,t.on=function(e,t,o){return e.on(t,o),function(){e.off(t,o)}}},8312:function(e,t,o){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Socket=void 0;const a=o(7116),r=o(7149),s=o(5260),i=n(o(1227)).default("socket.io-client:socket"),c=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class l extends s.Emitter{constructor(e,t,o){super(),this.connected=!1,this.receiveBuffer=[],this.sendBuffer=[],this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=t,o&&o.auth&&(this.auth=o.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(c.hasOwnProperty(e))throw new Error('"'+e+'" is a reserved event name');t.unshift(e);const o={type:a.PacketType.EVENT,data:t,options:{}};if(o.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 n=t.pop();this._registerAckCallback(e,n),o.id=e}const n=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return!this.flags.volatile||n&&this.connected?this.connected?(this.notifyOutgoingListeners(o),this.packet(o)):this.sendBuffer.push(o):i("discard packet as the transport is not currently writable"),this.flags={},this}_registerAckCallback(e,t){const o=this.flags.timeout;if(void 0===o)return void(this.acks[e]=t);const n=this.io.setTimeoutFn((()=>{delete this.acks[e];for(let t=0;t{this.io.clearTimeoutFn(n),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 o of t)o.apply(this,e)}super.emit.apply(this,e)}ack(e){const t=this;let o=!1;return function(...n){o||(o=!0,i("sending ack %j",n),t.packet({type:a.PacketType.ACK,id:e,data:n}))}}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 o=0;o{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.reconstructPacket=t.deconstructPacket=void 0;const n=o(790);function a(e,t){if(!e)return e;if(n.isBinary(e)){const o={_placeholder:!0,num:t.length};return t.push(e),o}if(Array.isArray(e)){const o=new Array(e.length);for(let n=0;n=0&&e.num{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Decoder=t.Encoder=t.PacketType=t.protocol=void 0;const n=o(5260),a=o(3155),r=o(790),s=o(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),o=this.encodeAsString(t.packet),n=t.buffers;return n.unshift(o),n}};class c extends n.Emitter{constructor(e){super(),this.reviver=e}add(e){let t;if("string"==typeof e){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");t=this.decodeString(e),t.type===i.BINARY_EVENT||t.type===i.BINARY_ACK?(this.reconstructor=new l(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 o={type:Number(e.charAt(0))};if(void 0===i[o.type])throw new Error("unknown packet type "+o.type);if(o.type===i.BINARY_EVENT||o.type===i.BINARY_ACK){const n=t+1;for(;"-"!==e.charAt(++t)&&t!=e.length;);const a=e.substring(n,t);if(a!=Number(a)||"-"!==e.charAt(t))throw new Error("Illegal attachments");o.attachments=Number(a)}if("/"===e.charAt(t+1)){const n=t+1;for(;++t&&","!==e.charAt(t)&&t!==e.length;);o.nsp=e.substring(n,t)}else o.nsp="/";const n=e.charAt(t+1);if(""!==n&&Number(n)==n){const n=t+1;for(;++t;){const o=e.charAt(t);if(null==o||Number(o)!=o){--t;break}if(t===e.length)break}o.id=Number(e.substring(n,t+1))}if(e.charAt(++t)){const n=this.tryParse(e.substr(t));if(!c.isPayloadValid(o.type,n))throw new Error("invalid payload");o.data=n}return s("decoded %s as %j",e,o),o}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=c;class l{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 o="function"==typeof ArrayBuffer,n=Object.prototype.toString,a="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===n.call(Blob),r="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===n.call(File);function s(e){return o&&(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,o){if(!t||"object"!=typeof t)return!1;if(Array.isArray(t)){for(let o=0,n=t.length;o{"use strict";function n(e){if(e)return function(e){for(var t in n.prototype)e[t]=n.prototype[t];return e}(e)}o.r(t),o.d(t,{Emitter:()=>n}),n.prototype.on=n.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},n.prototype.once=function(e,t){function o(){this.off(e,o),t.apply(this,arguments)}return o.fn=t,this.on(e,o),this},n.prototype.off=n.prototype.removeListener=n.prototype.removeAllListeners=n.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var o,n=this._callbacks["$"+e];if(!n)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 o in t)__webpack_require__.o(t,o)&&!__webpack_require__.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},__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__(8238),__webpack_require__(112),__webpack_require__(3336),__webpack_require__(2868),__webpack_require__(4719),__webpack_require__(3131),__webpack_require__(3526),__webpack_require__(4759);var __webpack_exports__=__webpack_require__(2852)})(); \ No newline at end of file +(()=>{var __webpack_modules__={8844:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))}}n=[o,t,o(4759),o(9820),o(2852),o(4719)],void 0===(a=function(e,t,o,n,a,r){"use strict";new n.Toggler(n.category.battle,"Disable math [PvP, PvE]","Disable math in PvP, PvE, anywhere! This doesn't work in the Floatling town.").setEnabled(s((function*(){return a._.constants.constants["GameConstants.Debug.EDUCATION_ENABLED"]=!1,o.Toast.fire("Enabled!","You will no longer do Math!","success")}))).setDisabled(s((function*(){return a._.constants.constants["GameConstants.Debug.EDUCATION_ENABLED"]=!0,o.Toast.fire("Disabled!","You will now do Math!","success")}))),new n.Toggler(n.category.battle,"Instant Kill [PvE]","Makes your spells do insane damage in PvE!").setEnabled(s((function*(){return a.player.modifiers.damage=a.VERY_LARGE_NUMBER,o.Toast.fire("Enabled!","You will now do insane damage in PvE!","success")}))).setDisabled((()=>(a.player.modifiers.damage=1,o.Toast.fire("Disabled!","You will no longer do insane damage in PvE!","success")))),new n.Hack(n.category.battle,"PvP Health [PvP]","Increases your HP in PvP by a hell ton.").setClick(s((function*(){return a.player.pvpHP=a.VERY_LARGE_NUMBER,a.player.getMaxHearts=()=>a.VERY_LARGE_NUMBER,o.Toast.fire("Success!","You now have lots of health!","success")}))),new n.Hack(n.category.battle,"Escape Battle [PvP, PvE]","Escape any battle, PvP or PvE!").setClick(s((function*(){var e=a.game.state.current;return"PVP"===e?(Object.fromEntries(a._.instance.game.state.states).PVP.endPVP(),o.Toast.fire("Escaped!","You have successfully escaped from the PvP battle.","success")):"CoOp"===e?(a.prodigy.world.$(a.player.data.zone),o.Toast.fire("Escaped!","You have successfully escaped from the battle.","success")):["Battle","SecureBattle"].includes(e)?(Object.fromEntries(a._.instance.game.state.states)[e].runAwayCallback(),o.Toast.fire("Escaped!","You have successfully escaped from the PvE battle.","success")):o.Toast.fire("Invalid State.","You are currently not in a battle.","error")}))),new n.Hack(n.category.battle,"Win Battle [PvE]","Instantly win a battle in PvE.").setClick(s((function*(){var e=a.game.state.current;switch((0,r.BattleInfo)("Current State: "+e),e){case"PVP":case"CoOp":return o.Toast.fire("Invalid State.","PvP is not supported for this hack.","error");case"Battle":return Object.fromEntries(a._.instance.game.state.states).Battle.startVictory(),o.Toast.fire("Victory!","You have successfully won the battle.","success");case"SecureBattle":return Object.fromEntries(a._.instance.game.state.states).SecureBattle.battleVictory(),o.Toast.fire("Victory!","You have successfully won the battle.","success");default:return o.Toast.fire("Invalid State.","You are currently not in a battle.","error")}}))),new n.Hack(n.category.battle,"Set Battle Hearts [PvP, PvE]","Sets your hearts in battle, automatically raise your max hearts in PvP or PvE.").setClick(s((function*(){var e=yield o.NumberInput.fire("Health Amount","How much HP do you want?","question");if(void 0!==e.value)return a.player.getMaxHearts=()=>+e.value,a.player.pvpHP=+e.value,a.player.data.hp=+e.value,o.Toast.fire("Success!","Your hearts have been set.","success")}))),new n.Hack(n.category.battle,"Fill Battle Energy [PvP, PvE]","Fills up your battle energy, if you are in PvP or PvE.").setClick(s((function*(){var e=a.game.state.getCurrentState();return"teams"in e?(e.teams[0].setEnergy(99),o.Toast.fire("Success!","Your battle energy has been filled.","success")):o.Toast.fire("Error","You are currently not in a battle.","error")}))),new n.Hack(n.category.battle,"Heal Team [PvE]","Instantly heals you and your pets, if you are in PvE.").setClick(s((function*(){var e=a.game.state.current;return"PVP"===e||"CoOp"===e?o.Toast.fire("Invalid State.","PvP is not supported for this hack.","error"):["Battle","SecureBattle"].includes(e)?(a.player.heal(),o.Toast.fire("Success!","Your team has been healed successfully!","success")):o.Toast.fire("Invalid State.","Your are currently not in a battle.","error")})))}.apply(t,n))||(e.exports=a)},9155:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))}}n=[o,t,o(4759),o(9820),o(2852),o(112),o(3131)],void 0===(a=function(e,t,o,n,a,r,i){"use strict";new n.Hack(n.category.beta,"Get all Runes [BETA]").setClick(s((function*(){if((yield o.Confirm.fire({title:"Hang on!",html:"This hack may damage your account with various bugs, for example you may be unable to do Rune Run.

              Proceed?",icon:"warning"})).value){var e,t=parseInt((yield o.NumberInput.fire({title:"Amount",text:"How many of each would you like?",icon:"question",inputValidator:e=>e?"":"Please select which you'd like to get."})).value);if(!isNaN(t))return Array.from(a._.instance.prodigy.gameContainer._inversifyContainer._bindingDictionary._map).forEach((t=>{try{a._.instance.prodigy.gameContainer.get(t[0]).battleData&&(e=t[0])}catch(e){console.log("Error for ".concat(t[0]))}})),a._.instance.prodigy.gameContainer.get(e).battleData._secureCharacterState._data.inventory.orb=(0,r.runeify)(a._.gameData.orb,t),o.Toast.fire("Runes Added!","Your runes have been added!","success")}}))),new n.Hack(n.category.beta,"Edit Pet [BETA]","Edit a pet.").setClick(s((function*(){if(!(yield o.Confirm.fire({title:"Hang on!",html:"This hack may damage your account with various bugs, for example you may be unable to do Rune Run.

              Proceed?",icon:"warning"})).value)return console.log("Cancelled.");var e=yield(0,r.getPet)("Choose the pet to edit.");if(void 0!==e){var t=a.player.kennel.data[e],n=yield o.Swal.fire({input:"select",inputOptions:{level:"Level",attacks:"Attacks",name:"Name"},title:"Edit Property",text:"What do you want to edit?"});if(void 0!==n.value){if("level"===n.value){var s=yield o.NumberInput.fire("Level Number","What level do you want to set your pet to?","question");if(void 0===s.value)return;return t.level=+s.value,o.Toast.fire("Success!","The pet's level has been set.","success")}if("attacks"===n.value){var i=a._.gameData.spell,c=document.createElement("div"),l=document.createElement("select");for(var u of(l.classList.add("selectSpell"),i)){var d=document.createElement("option");d.value=u.ID.toString(),d.innerText="".concat(u.ID,": ").concat(u.name," (").concat(u.data.element,") - Damage: ").concat(u.data.damage),l.options.add(d)}c.append(l),c.append(l.cloneNode(!0));var p=yield o.Swal.fire({title:"Attack List",focusConfirm:!1,showCancelButton:!0,html:c,preConfirm:()=>Array.prototype.slice.call(document.querySelectorAll(".selectSpell")).map((e=>e.options[e.selectedIndex].value))});if(void 0===p.value)return;return t.foreignSpells.splice(0,2,...p.value.map((e=>+e))),o.Toast.fire("Attacks updated!","The attack list of the pet you selected has been edited.","success")}if("name"===n.value){var h=yield o.Input.fire("Input Name","What do you want to name the pet?","question");if(void 0===h.value)return;return t.nickname=h.value,o.Toast.fire("Successfully renamed!","The name of the pet has been changed.","success")}}}}))),new n.Hack(n.category.beta,"Morph Player [BETA]","Morph into a pet, furnishing, or follow.").setClick(s((function*(){if(!(yield o.Confirm.fire("This hack is in BETA","Expect bugs, and it might not work properly.")).value)return console.log("Cancelled");var e=yield o.Swal.fire({title:"Which morph type?",input:"select",inputOptions:{pet:"Pet",dorm:"Furniture",follow:"Follow"},inputPlaceholder:"Morph Type",inputValidator:e=>e?"":"Please select a morph type.",showCancelButton:!0});if(null!=e&&e.value){var t={};a._.gameData[e.value].forEach((e=>t[e.ID]="".concat(e.name," (").concat(e.ID,")")));var n=yield o.Swal.fire({title:"Which morph?",input:"select",inputOptions:t,inputPlaceholder:"Morph ID",inputValidator:e=>e?"":"Please select a morph ID.",showCancelButton:!0});if(n.value)return a.player.getPlayerData().playerTransformation={transformType:e.value,transformID:n.value,maxTime:36e5,timeRemaining:36e5},a.player.appearanceChanged=!0,o.Toast.fire("Morphed!","You've been morphed.","success")}}))),new n.Toggler(n.category.beta,"Toggle Close Popups [BETA]","Automatically closes popups in Prodigy.").setEnabled(s((function*(){return(0,i.PopupInterval)(!0),o.Toast.fire("Enabled","Toggle Close Popups is now enabled.","success")}))).setDisabled(s((function*(){return(0,i.PopupInterval)(!1),o.Toast.fire("Enabled","Toggle Close Popups is now disabled.","success")}))),new n.Hack(n.category.beta,"Hypermax Account [BETA]").setClick(s((function*(){if((yield o.Confirm.fire({title:"Hang on!",html:"This hack will damage your account with various bugs, for example you may be unable to do Rune Run/Arena, amd you will recieve 418s and inavtivity kicks.

              Proceed?",icon:"warning"})).value){a.player.data.gold=99e5,console.log("Set player gold to 9900000.");var e=100..value-2;a.player.data.stars=Math.round((1-Math.pow(1.042,e))/(1-1.042)*20+10),a.player.data.level=100,a.player.getLevel=()=>a.player.data.level,console.log("Set player level to 100"),a.player.data.bountyScore=100,console.log("Set player's bounty points to 100.");for(var t=0;ta.VERY_LARGE_NUMBER,console.log("PvP health obtained.");for(var n=0;n<100;n++)a.player.achievements.data.progress[n]=10;console.log("Obtained all achievements."),a.player.data.tower=100,console.log("Set tower floor to 100."),a.player.getMaxHearts=()=>a.VERY_LARGE_NUMBER,a.player.pvpHP=a.VERY_LARGE_NUMBER,a.player.data.hp=a.VERY_LARGE_NUMBER,console.log("Maxed out PvE health.");var s,i=99e4;r.ids.forEach((e=>{a.player.backpack.data[e]=(0,r.itemify)(a._.gameData[e].filter((t=>"follow"===e?![125,126,127,128,129,134,135,136,137].includes(t.ID):t)),i.value)})),a._.gameData.dorm.forEach((e=>a.player.house.data.items[e.ID]={A:[],N:i.value}));for(var c=()=>a.player.backpack.data.item.findIndex((e=>84===e.ID||85===e.ID||86===e.ID));c()>-1;)a.player.backpack.data.item.splice(c(),1);return o.Toast.fire("Success!","All items added!","success"),console.log("All items added!"),a.player.backpack.data.mount=(0,r.itemify)(a._.gameData.mount,1),console.log("Added all mounts."),a._.gameData.dorm.forEach((e=>a.player.house.data.items[e.ID]={A:[],N:99e4.value})),console.log("Added 990000 of all furniture."),a._.gameData.pet.forEach((e=>{a.player.kennel.addPet(e.ID.toString(),a.VERY_LARGE_NUMBER,26376,100)})),a.player.kennel._encounterInfo._data.pets=[],a._.gameData.pet.map((e=>{a.player.kennel._encounterInfo._data.pets.push({firstSeenDate:Date.now(),ID:e.ID,timesBattled:1,timesRescued:1})})),a.player.kennel.petTeam.forEach((e=>{e&&e.assignRandomSpells&&e.assignRandomSpells()})),console.log("Added all pets."),a._.gameData.pet.filter((e=>[158,166,168].includes(e.ID))).forEach((e=>{a.player.kennel.addPet(e.ID.toString(),a.VERY_LARGE_NUMBER,26376,100)})),a.player.kennel.petTeam.forEach((e=>{e&&e.assignRandomSpells&&e.assignRandomSpells()})),console.log("Added Mythical Epics."),a._.gameData.pet.filter((e=>[125,126,127,128,129,130,131,132,133].includes(e.ID))).forEach((e=>{a.player.kennel.addPet(e.ID.toString(),a.VERY_LARGE_NUMBER,26376,100)})),a.player.kennel.petTeam.forEach((e=>{e&&e.assignRandomSpells&&e.assignRandomSpells()})),console.log("Added Legacy Epics."),a._.constants.constants["GameConstants.Inactivity.LOG_OUT_TIMER_SECONDS"]=0,console.log("Inactivity Kick Disabled."),a.player._playerContainer.walkSpeed=20,console.log("Player walkspeed set to 20."),Array.from(a._.instance.prodigy.gameContainer._inversifyContainer._bindingDictionary._map).forEach((e=>{try{a._.instance.prodigy.gameContainer.get(e[0]).battleData&&(s=e[0])}catch(t){console.log("Error for ".concat(e[0]))}})),a._.instance.prodigy.gameContainer.get(s).battleData._secureCharacterState._data.inventory.orb=(0,r.runeify)(a._.gameData.orb,100),a.player.equipment.setHat(200),a.player.equipment.setBoots(93),a.player.equipment.setOutfit(161),a.player.equipment.setWeapon(196),(0,a.saveCharacter)(),console.log("Character Saved."),a.player.appearanceChanged=!0,console.log("Appearance Refreshed."),a._.instance.prodigy.open.menuCloseAll(),console.log("Popups closed."),(0,a.saveCharacter)(),console.log("Character Saved."),console.log("Max Account Successful."),o.Toast.fire("Maxed!","Check your backpack!","success")}})))}.apply(t,n))||(e.exports=a)},8130:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))}}n=[o,t,o(9820),o(4759),o(2852),o(112)],void 0===(a=function(e,t,o,n,a,r){"use strict";new o.Hack(o.category.inventory,"Item stacker").setClick(s((function*(){var e=yield n.NumberInput.fire("Amount","How many of every item would you like?","question");if(e.value&&(yield n.Confirm.fire("Are you sure you want to get all items in the game?")).value){r.ids.forEach((t=>{a.player.backpack.data[t]=(0,r.itemify)(a._.gameData[t].filter((e=>"follow"===t?![125,126,127,128,129,134,135,136,137].includes(e.ID):e)),e.value)})),a._.gameData.dorm.forEach((t=>a.player.house.data.items[t.ID]={A:[],N:e.value}));for(var t=()=>a.player.backpack.data.item.findIndex((e=>84===e.ID||85===e.ID||86===e.ID));t()>-1;)a.player.backpack.data.item.splice(t(),1);return n.Toast.fire("Success!","All items added!","success")}}))),new o.Hack(o.category.inventory,"Clear inventory").setClick(s((function*(){(yield n.Confirm.fire("Are you sure you want to clear your inventory?")).value&&(Object.keys(a.player.backpack.data).forEach((e=>a.player.backpack.data[e]=[])),n.Toast.fire("Success!","Inventory cleared.","success"))}))),new o.Hack(o.category.inventory,"Selector (Basic)").setClick(s((function*(){yield n.Swal.fire({title:"What would you like to obtain?",input:"select",inputOptions:r.names,inputPlaceholder:"Select...",inputValidator:e=>e?"":"Please select which you'd like to obtain.",showCancelButton:!0}).then(function(){var e=s((function*(e){var t=parseInt(e.value),o=r.names[t],s=r.ids[t];if(o){var i=yield n.NumberInput.fire("Amount","How many each object would you like?","question");i.value&&(yield n.Confirm.fire("Are you sure you want to get all ".concat(o.toLowerCase(),"?"))).value&&(a.player.backpack.data[s]=(0,r.itemify)(a._.gameData[s].filter((e=>"follow"===s?![125,126,127,128,129,134,135,136,137].includes(e.ID):e)),i.value),n.Toast.fire("".concat(o," Added!"),"All ".concat(o.toLowerCase()," have been added to your inventory!"),"success"),(0,a.saveCharacter)())}}));return function(t){return e.apply(this,arguments)}}())}))),new o.Hack(o.category.inventory,"Selector (Advanced)","Choose a specific object and quantity to obtain.").setClick(s((function*(){yield n.Swal.fire({title:"What would you like to obtain?",input:"select",inputOptions:r.names,inputPlaceholder:"Select...",inputValidator:e=>e?"":"Please select which you'd like to obtain.",showCancelButton:!0}).then(function(){var e=s((function*(e){if(a._.gameData[r.ids[e.value]]){var t=[];a._.gameData[r.ids[e.value]].forEach((e=>{t.push(e.data.name)})),yield n.Swal.fire({title:"What specific object categorized as ".concat(r.names[e.value].toLowerCase()," would you like to get?"),input:"select",inputOptions:t,inputPlaceholder:"Select...",inputValidator:e=>e?"":"Please select which you'd like to get.",showCancelButton:!0}).then(function(){var t=s((function*(t){var o=parseInt(t.value);if(a._.gameData[r.ids[e.value]][o]){var s=yield n.NumberInput.fire("Amount","How many of the object would you like?","question");if(s.value)return-1===a.player.backpack.data[r.ids[e.value]].findIndex((t=>t.ID===a._.gameData[r.ids[e.value]][o].ID))?a.player.backpack.data[r.ids[e.value]].push({ID:a._.gameData[r.ids[e.value]][o].ID,N:s.value}):a.player.backpack.data[r.ids[e.value]].findIndex((t=>t.ID===a._.gameData[r.ids[e.value]][o].ID)),console.log(a._.gameData[r.ids[e.value]][o].ID),(0,a.saveCharacter)(),n.Toast.fire("".concat(r.names[e.value]," Added!"),"Your selected ".concat(r.names[e.value].toLowerCase()," have been added."),"success")}}));return function(e){return t.apply(this,arguments)}}())}}));return function(t){return e.apply(this,arguments)}}())}))),new o.Hack(o.category.inventory,"Obtain All Furniture").setClick(s((function*(){var e=yield n.NumberInput.fire("Amount","How many of each piece of furniture would you like?","question");if(e.value&&(yield n.Confirm.fire("Are you sure you want to get all furniture?")).value)return a._.gameData.dorm.forEach((t=>a.player.house.data.items[t.ID]={A:[],N:e.value})),n.Toast.fire("Furniture Added!","All furniture has been added to your inventory!","success")}))),new o.Hack(o.category.inventory,"Obtain All Mounts","This gives you all of the mounts in the game.").setClick(s((function*(){return a.player.backpack.data.mount=(0,r.itemify)(a._.gameData.mount,1),n.Toast.fire("Mounts Added!","All mounts have been added to your inventory!")}))),new o.Hack(o.category.inventory,"Remove item").setClick(s((function*(){var e=yield n.Swal.fire({title:"What category would you like to remove an item from?",input:"select",inputOptions:r.names,inputPlaceholder:"Select...",inputValidator:e=>e?"":"Please select which you'd like to obtain.",showCancelButton:!0});if(a._.gameData[r.ids[e.value]]){var t=a._.gameData[r.ids[e.value]].map((e=>e.data.name)),o=yield n.Swal.fire({title:"What specific object categorized as ".concat(r.names[e.value].toLowerCase()," would you like to remove?"),input:"select",inputOptions:t,inputPlaceholder:"Select...",inputValidator:e=>e?"":"Please select which you'd like to get.",showCancelButton:!0});if(o=parseInt(o.value),a._.gameData[r.ids[e.value]][o]){var s=yield n.NumberInput.fire("Amount","How many of the object would you like to remove?","question");if(s.value){if(-1!==a.player.backpack.data[r.ids[e.value]].findIndex((t=>t.ID===a._.gameData[r.ids[e.value]][o].ID))){var i=a.player.backpack.data[r.ids[e.value]].findIndex((t=>t.ID===a._.gameData[r.ids[e.value]][o].ID));return a.player.backpack.data[r.ids[e.value]][i].N-=parseInt(s.value),a.player.backpack.data[r.ids[e.value]][i].N<=0&&a.player.backpack.data[r.ids[e.value]].splice(i,1),(0,a.saveCharacter)(),n.Toast.fire("Removed!","Successfully removed ".concat(s.value," ").concat(a._.gameData[r.ids[e.value]][o].name,"!"),"success")}yield n.Swal.fire("Item Does Not Exist","You do not have any ".concat(a._.gameData[r.ids[e.value]][o].name,"."),"error")}}}}))),new o.Hack(o.category.inventory,"Obtain All Furniture").setClick(s((function*(){return(yield n.Confirm.fire("Are you sure you want to get all furniture?")).value?(a._.gameData.dorm.forEach((e=>a.player.house.data.items[e.ID]={A:[],N:a.VERY_LARGE_NUMBER})),n.Toast.fire("Furniture Added!","All furniture have been added to your inventory!","success")):console.log("Cancelled.")})))}.apply(t,n))||(e.exports=a)},8346:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))}}n=[o,t,o(9820),o(4759),o(2852),o(112)],void 0===(a=function(e,t,o,n,a,r){"use strict";new o.Hack(o.category.location,"Teleport To Map (interactive)").setClick(s((function*(){var e=n.Swal.mixin({focusConfirm:!1,showCancelButton:!0,preConfirm:()=>{var e;return null===(e=document.querySelector(".radioDiv[checked]"))||void 0===e?void 0:e.getAttribute("zone")}}),t=document.createElement("div");t.classList.add("radioContainer");var o=function(e){var o=document.createElement("DIV");o.classList.add("radioDiv"),o.setAttribute("zone",e);var n=a.locations[e];n?o.style.backgroundImage="url(".concat(n,")"):o.innerText=e,o.onclick=()=>{document.querySelectorAll(".radioDiv[checked]").forEach((e=>e.removeAttribute("checked"))),o.setAttribute("checked","")},t.append(o)};for(var r of Object.keys(a.prodigy.world.zones))o(r);var s=yield e.fire({title:"Teleport Zone",html:t,customClass:{popup:"radioSwal"}});if(s.value){var i=Object.keys(a.prodigy.world.zones[s.value].maps),c=yield n.Swal.fire({input:"select",inputOptions:new Map(i.map((e=>[e,e]))),title:"Map",text:"Which map in the zone do you want to teleport to?"});if(c.value){var l=(yield n.NumberInput.fire("Please enter the x to teleport to. (Try 500?)")).value||500,u=(yield n.NumberInput.fire("Please enter the y to teleport to. (Try 500?)")).value||500;return a.prodigy.world.zones[s.value].teleport(c.value,l,u,{},{}),n.Toast.fire("Teleported","You have been teleported!","success")}}}))),new o.Hack(o.category.location,"Teleport to house by userID").setClick(s((function*(){var e=(yield n.NumberInput.fire("Please enter the userID.")).value;if(e)return(0,r.toHouse)(e),n.Toast.fire("Teleported!","You have been teleported!","success")}))),new o.Hack(o.category.location,"Get Map Location").setClick(s((function*(){var e=a.player.data.zone;navigator.clipboard.writeText(e).then(s((function*(){return console.log("Async: Copying to clipboard was successful!"),n.Swal.fire({title:"Map Location",html:"You are at
              ".concat(e," .
              You can save this to get to the same zone.

              Your location is has also been copied to your clipboard."),icon:"info"})})),function(){var t=s((function*(t){return console.error("Async: Could not copy text: ",t),n.Swal.fire({title:"Map Location",html:"You are at
              ".concat(e," .
              You can save this to get to the same zone."),icon:"info"})}));return function(e){return t.apply(this,arguments)}}())})))}.apply(t,n))||(e.exports=a)},3344:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))}}n=[o,t,o(9820),o(2852),o(4759)],void 0===(a=function(e,t,o,n,a){"use strict";new o.Toggler(o.category.minigames,"69x Walk Speed [Dyno Dig]","Walk so fast that you're teleporting, in Dyno Dig.").setEnabled(s((function*(){return n._.instance.game.state.states.get("DinoDig").walkSpeed=69,a.Toast.fire("Enabled!","You will now walk so fast that you're teleporting in Dyno Dig.","success")}))).setDisabled(s((function*(){return n._.instance.game.state.states.get("DinoDig").walkSpeed=1.5,a.Toast.fire("Disabled!","You will now walk at normal speed, in Dyno Dig.","success")})))}.apply(t,n))||(e.exports=a)},465:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))}}n=[o,t,o(4759),o(9820),o(2852),o(8238)],void 0===(a=function(e,t,o,n,a,r){"use strict";new n.Hack(n.category.misc,"Skip Tutorial").setClick(s((function*(){var e=(e,t,o,n)=>{a._.instance.prodigy.world.getZone(e).testQuest(t,o,n);try{Object.fromEntries(a._.instance.game.state.states).TileScreen.process()}catch(e){}};e("house",2),e("academy",2),a.player.state.set("tutorial-0",4),a.player.backpack.addKeyItem(13,0),a.player.tutorial.data.menus[14]=[1],a._.instance.prodigy.open.map(!0,[]),a.player.onTutorialComplete(),a.player.data.level=Math.max(a.player.data.level,5)}))),new n.Toggler(n.category.misc,"Disable Monster Encounters").setEnabled(s((function*(){return a._.constants.constants["GameConstants.Debug.SCALE_ENCOUNTER_DISTANCE"]=0,o.Toast.fire("Enabled!","Monsters will no longer battle you.","success")}))).setDisabled((()=>(a._.constants.constants["GameConstants.Debug.SCALE_ENCOUNTER_DISTANCE"]=1,o.Toast.fire("Disabled!","Monsters will now battle you.","success")))),new n.Toggler(n.category.misc,"Skip enemy turn").setEnabled(s((function*(){return a._.constants.constants["GameConstants.Battle.SKIP_ENEMY_TURN"]=!0,o.Toast.fire("Skipping!","Enemy turns will now be skipped.","success")}))).setDisabled((()=>(a._.constants.constants["GameConstants.Battle.SKIP_ENEMY_TURN"]=!1,o.Toast.fire("Disabled","Enemy turns will no longer be skipped.","success")))),new n.Toggler(n.category.beta,"FPS Counter [BETA]","Shows you a framerate counter").setEnabled(s((function*(){(0,r.startFps)()}))).setDisabled(s((function*(){(0,r.stopFps)()})));try{var i=a.current.user.source.canSpin;new n.Toggler(n.category.misc,"Unlimited Spins","Lets you spin the wheel as many times as you want!").setEnabled(s((function*(){return a.player.canSpin=()=>{},o.Toast.fire("Enabled!","You can now spin the wheel as many times as you want!","success")}))).setDisabled(s((function*(){return a.player.canSpin=i,o.Toast.fire("Disabled!","You can now spin the wheel only when allowed.","success")})))}catch(e){console.error("Unlimited Spins ERROR: "+e)}new n.Hack(n.category.misc,"Bobbify","Converts your account into Bobby Fancywoman.").setClick(s((function*(){if((yield o.Confirm.fire("Are you sure you want your account to be turned into Bobby Fancywoman?","This action is not reversable.")).value)return a.player.name.data.nickname=null,a.player.name.data.firstName=44,a.player.name.data.middleName=754,a.player.name.data.lastName=882,a.player.data.stars=-1e22,a.player.data.level=69,a.player.appearance.setGender("male"),a.player.appearance.setEyeColor(1),a.player.appearance.setFace(4),a.player.appearance.setHair(19,1),a.player.appearance.setSkinColor(1),a.player.equipment.setFollow(19),a.player.equipment.setHat(19),a.player.equipment.setBoots(19),a.player.equipment.setOutfit(19),a.player.equipment.setWeapon(19),o.Toast.fire("Bobbified!","You are now Bobby Fancywoman.","success")}))),new n.Hack(n.category.misc,"Reset Account","Completely resets your account.").setClick(s((function*(){if((yield o.Confirm.fire("Are you sure you want to reset your account?","This action is not reversible.")).value)return a.player.resetAccount(),o.Swal.fire("Reset!","Your account has been reset. Reload Prodigy for the full effect.","success")})));var c=null,l=0;new n.Hack(n.category.misc,"Chat Spammer","Cycles through chat messages pretty fast!").setClick(s((function*(){return c?o.Swal.fire("Already Enabled","Chat Spammer is already enabled. To disable chat spammer, reload Prodigy.","error"):(c=setInterval(s((function*(){a.player.chatID=l,++l>1164&&(l=0)})),90),o.Toast.fire("Spamming!","You're now sending a chat message every 90 milliseconds!","success"))})));var u=null,d=0;new n.Hack(n.category.misc,"High Chat Spammer","Cycles through chat messages hella fast!").setClick(s((function*(){return u?o.Swal.fire("Already Enabled","High Chat Spammer is already enabled. To disable chat spammer, reload Prodigy.","error"):(yield o.Confirm.fire("Warning","This hack may cause lag on weak computers (ex. School Chromebooks).")).value?(u=setInterval(s((function*(){a.player.chatID=d,++d>1164&&(d=0)})),30),o.Toast.fire("Spamming!","You're now sending a chat message every 30 milliseconds!","success")):console.log("Cancelled")})));var p=null,h=0;new n.Hack(n.category.misc,"Chat Spammer on Meth","Cycles through chat messages FAST ASF!").setClick(s((function*(){return p?o.Swal.fire("Already Enabled","Chat Spammer on Meth is already enabled. To disable chat spammer, reload Prodigy.","error"):(yield o.Confirm.fire("Warning","This hack may cause lag on weak computers (ex. School Chromebooks).")).value?(p=setInterval(s((function*(){a.player.chatID=h,++h>1164&&(h=0)})),1),o.Toast.fire("Spamming!","You're now sending a chat message every 1 millisecond!","success")):console.log("Cancelled")}))),new n.Hack(n.category.misc,"[Fix] Fix Battle Crash").setClick(s((function*(){return a.player.kennel.petTeam.forEach((e=>{e&&e.assignRandomSpells&&e.assignRandomSpells()})),o.Toast.fire("Success!","Fixed kennel attack bug!","success")}))),new n.Hack(n.category.misc,"[Fix] Stuck in Unfinished Tower Fix","Takes you out of an unfinished tower if you're stuck in one.").setClick(s((function*(){return a._.instance.prodigy.world.zones.house.teleport("exit"),o.Toast.fire("Success!","You've been teleported outside of your house.","success")}))),new n.Hack(n.category.misc,"uwu","OwO").setClick(s((function*(){return(yield o.Confirm.fire("Are you sure that you want to UwU OwO?","Reload Prodigy to revert UwU.")).value?(Object.chance=e=>{var t={},o=0;for(var n of Object.keys(e).sort(((e,o)=>t[e]-t[o])))t[n]=[],t[n][0]=o+1,t[n][1]=e[n]+o,o=e[n]+o;return t},Object.random=e=>{var t=Object.values(e),o=t[t.length-1][1],n=Math.randint(o);return Object.reverse(e)[t.find((e=>n>=e[0]&&n<=e[1]))]},Array.prototype.join=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:",";return"string"==typeof e?this.reduce(((t,o,n,a)=>t+(nt+(n0&&void 0!==arguments[0]?arguments[0]:",";return"string"==typeof e?this.reduce(((t,o,n)=>t+(n?e+o:o)),""):e instanceof Function?this.reduce(((t,o,n,a)=>t+(n?e(a[n],n,a)+o:o)),""):void 0},String.UWUFX=e=>{var t=Object.chance({"owo :3":20,"✧w✧":20,UwU:20,OwO:10,rawr:10,"uwu :3":5,":3 meow":15,":3":15,X3:15,"*purrs*":15,owo:15,uwu:15,"^w^":15,"x3 rawr":15,owowowowo:15});return e.split(" ").leftJoin(((e,t)=>0===Math.floor(6*Math.random())&&/[A-Za-z]/.test(e[0])?" ".concat(e[0],"-"):" ")).split(" ").join(((e,o)=>0===Math.floor(5*Math.random())?" ".concat(Object.random(t)," "):" "))},String.UWUTable={y:"wy",l:"w",r:"w",ss:"zs",n:"nw",ove:"uv",ome:"um",x:"ks",com:"cum",stu:"stew",au:"aw"},Math.randint=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Math.floor(Math.random()*e-t)+t},String.prototype.escapeRegex=function(){return this.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")},String.prototype.replaceAll=function(e,t){return this.replace(new RegExp(e.toString().escapeRegex(),"gi"),(e=>t))},Object.fromArrays=(e,t)=>{var o={};return e.forEach(((e,n)=>{o[e]=t[n]})),o},Object.reverse=e=>Object.fromArrays(Object.values(e),Object.keys(e)),String.prototype.bulkReplace=function(e){var t=this;for(var o in e)t=t.replaceAll(o,e[o]);return t},String.UWU=e=>String(e).bulkReplace(String.UWUTable),Object.keys(a._.localizer.dataSource._languageData).map((e=>a._.localizer.dataSource._languageData[e]=String.UWUFX(String.UWU(a._.localizer.dataSource._languageData[e])))),Object.values(a._.gameData).map((e=>e.map((e=>[e.data.name&&(e.data.name=String.UWUFX(String.UWU(e.data.name))),e.name&&(e.name=String.UWUFX(String.UWU(e.name))),e.data.flavorText&&(e.data.flavorText=String.UWUFX(String.UWU(e.data.flavorText)))])))),o.Toast.fire("uwu","Reload Prodigy to fix uwu.","success")):console.log("uwu cancelled")})))}.apply(t,n))||(e.exports=a)},8603:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))}}n=[o,t,o(4759),o(9820),o(2852)],void 0===(a=function(e,t,o,n,a){"use strict";var r=null;new n.Hack(n.category.patched,"Arena Point Increaser [Patched]").setClick(s((function*(){return r?o.Swal.fire("Already Enabled","Arena Point Increaser is already enabled.","error"):(yield o.Confirm.fire("This hack is patched.","Running it will probably do nothing.")).value?(r=setInterval(s((function*(){var e=yield(yield fetch("https://api.prodigygame.com/leaderboard-api/season/".concat(a.prodigy.pvpNetworkHandler.seasonID,"/user/").concat(a.player.userID,"/pvp?userID=").concat(a.player.userID),{headers:{authorization:"Bearer ".concat(a.prodigy.network.jwtAuthProvider.getToken()),"content-type":"application/x-www-form-urlencoded; charset=UTF-8"},body:"seasonID=".concat(a.prodigy.pvpNetworkHandler.seasonID,"&action=win"),method:"POST",mode:"cors"})).text();if(""!==e){var t=JSON.parse(e);console.log("[API] ".concat(t.points," Points (+100)"))}else console.log("[API] Failed to add points.")})),60500),o.Swal.fire("Enabled","Arena Point Increaser has been enabled.","success")):console.log("Cancelled")}))),new n.Hack(n.category.patched,"Disable Timeout Dialog [Patched]").setClick(s((function*(){return(yield o.Confirm.fire("This hack is patched.","Running it will probably do nothing.")).value?(a.prodigy.debugMisc.disableTimeoutDialogue(),o.Toast.fire("Enabled","Timeout Dialog has been disabled.","success")):console.log("Cancelled")})))}.apply(t,n))||(e.exports=a)},7736:(module,exports,__webpack_require__)=>{var __webpack_unused_export__,__WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;function asyncGeneratorStep(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function _asyncToGenerator(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var r=e.apply(t,o);function s(e){asyncGeneratorStep(r,n,a,s,i,"next",e)}function i(e){asyncGeneratorStep(r,n,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_require__(112),__webpack_require__(3336)],__WEBPACK_AMD_DEFINE_RESULT__=function(require,exports,swal_1,index_1,util_1,hackify_1,kennel_1){"use strict";__webpack_unused_export__={value:!0},new index_1.Hack(index_1.category.pets,"Get All Pets").setClick(_asyncToGenerator((function*(){return(yield swal_1.Confirm.fire("Would you like to add all pets to your pets?")).value?(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()})),swal_1.Toast.fire("Success!","All pets have been added!","success")):console.log("Cancelled")}))),new index_1.Hack(index_1.category.pets,"Get All Legacy Epics").setClick(_asyncToGenerator((function*(){return(yield swal_1.Confirm.fire("This may damage your account.","Attempting to add legacy epics may damage your account. Would you still like to add all legacy epics to your team?","warning")).value?(util_1._.gameData.pet.filter((e=>[125,126,127,128,129,130,131,132,133].includes(e.ID))).forEach((e=>{util_1.player.kennel.addPet(e.ID.toString(),util_1.VERY_LARGE_NUMBER,26376,100)})),util_1.player.kennel.petTeam.forEach((e=>{e&&e.assignRandomSpells&&e.assignRandomSpells()})),swal_1.Toast.fire("Success!","All legacy epics have been added!","success")):console.log("Cancelled")}))),new index_1.Hack(index_1.category.pets,"Get All Mythical Epics").setClick(_asyncToGenerator((function*(){return(yield swal_1.Confirm.fire("Would you like to add all mythical epics to your pets?")).value?(util_1._.gameData.pet.filter((e=>[158,164,165,166,167,168,169,170,171,189].includes(e.ID))).forEach((e=>{util_1.player.kennel.addPet(e.ID.toString(),util_1.VERY_LARGE_NUMBER,26376,100)})),util_1.player.kennel.petTeam.forEach((e=>{e&&e.assignRandomSpells&&e.assignRandomSpells()})),swal_1.Toast.fire("Success!","All mythical epics have been added!","success")):console.log("Cancelled")}))),new index_1.Hack(index_1.category.pets,"Clear Pets").setClick(_asyncToGenerator((function*(){return(yield swal_1.Confirm.fire("Would you like to delete all of your pets?")).value?(util_1.player.kennel.data.length=0,swal_1.Toast.fire("Success!","Your pets have been cleared!","success")):console.log("Cancelled")}))),new index_1.Hack(index_1.category.pets,"Add Pet","Adds a pet from a list.").setClick(_asyncToGenerator((function*(){var e=yield swal_1.Swal.fire({input:"select",inputOptions:new Map(util_1._.gameData.pet.map((e=>[e.ID.toString(),"".concat(e.ID,": ").concat(e.data.name)]))),title:"Choose Pet",text:"Which pet do you want to obtain?"});if(void 0!==e.value)return util_1.player.kennel.addPet(e.value),util_1.player.kennel._encounterInfo._data.pets.push({firstSeenDate:Date.now(),ID:e.value,timesBattled:1,timesRescued:1}),swal_1.Toast.fire("Success!","Your chosen pet has been added to your pets!","success")}))),new index_1.Hack(index_1.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(_asyncToGenerator((function*(){var petTeam=util_1.player.kennel.petTeam.slice(0);petTeam.shift();var names=petTeam.map((e=>e.getName())),pet=yield swal_1.Swal.fire({title:"Which pet would you like to edit?",input:"select",inputOptions:names,inputPlaceholder:"Select...",inputValidator:e=>e?"":"Please select which you'd like to obtain.",showCancelButton:!0}),amt=yield swal_1.NumberInput.fire("Level","What would you like to set your pet's level to? (Can be set over 100)","question");if(amt.value){var num=amt.value;return eval("player.kennel.petTeam[parseInt(".concat(pet.value,")+1].getLevel = () => {return ").concat(num,"}")),swal_1.Toast.fire("Updated!","The level of your pet was successfully updated. Note: this hack is client-side.","success")}}))),new index_1.Hack(index_1.category.pets,"Delete Pet","Delete a pet.").setClick(_asyncToGenerator((function*(){var e=yield(0,hackify_1.getPet)("Which pet do you wish to delete?");if(void 0!==e)return util_1.player.kennel.data.splice(e,1),swal_1.Toast.fire("Successfully deleted!","The selected pet was deleted successfully.","success")}))),new index_1.Hack(index_1.category.pets,"Edit Kennel","Allows you to directly edit your pets.").setClick(_asyncToGenerator((function*(){null!==(yield(0,kennel_1.GetAction)())&&null!==(yield(0,kennel_1.SelectSlot)())&&console.log(s(parseInt(KennelSlot.value)))}))),new index_1.Hack(index_1.category.pets,"Backup Kennel","Makes a backup of your kennel to your chrome local storage.").setClick(_asyncToGenerator((function*(){return localStorage.setItem("prodigy-kennel-backup",JSON.stringify(util_1._.player.kennel._petTeam)),swal_1.Toast.fire("Backed up!","Your kennel is now backed up to the local storage.","success")}))),new index_1.Hack(index_1.category.pets,"Restore Kennel","Restores a backup of your kennel from the local storage... if you have one.").setClick(_asyncToGenerator((function*(){var e=localStorage.getItem("prodigy-kennel-backup");return null===e?swal_1.Swal.fire({title:"No backup found",html:"There is no backup of your kennel in the local storage. Make sure to back up your kennel before trying to load it.",icon:"error"}):(util_1._.player.kennel._petTeam=JSON.parse(e),swal_1.Toast.fire("Restored!","Your kennel backup should be restored","success"))})))}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),void 0===__WEBPACK_AMD_DEFINE_RESULT__||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)},7939:(module,exports,__webpack_require__)=>{var __webpack_unused_export__,__WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;function asyncGeneratorStep(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function _asyncToGenerator(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var r=e.apply(t,o);function s(e){asyncGeneratorStep(r,n,a,s,i,"next",e)}function i(e){asyncGeneratorStep(r,n,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_require__(112)],__WEBPACK_AMD_DEFINE_RESULT__=function(require,exports,swal_1,index_1,util_1,hackify_1){"use strict";__webpack_unused_export__={value:!0},new index_1.Hack(index_1.category.player,"Max Account").setClick(_asyncToGenerator((function*(){if(!(yield swal_1.Confirm.fire("Are you sure that you want to max your account?","We recommend doing this on an alt.")).value)return console.log("Cancelled");util_1.player.data.gold=99e5,console.log("Set player gold to 9900000.");var e=100..value-2;util_1.player.data.stars=Math.round((1-Math.pow(1.042,e))/(1-1.042)*20+10),util_1.player.data.level=100,util_1.player.getLevel=()=>util_1.player.data.level,console.log("Set player level to 100"),util_1.player.data.bountyScore=100,console.log("Set player's bounty points to 100.");for(var t=0;t{util_1.player.backpack.data[e]=(0,hackify_1.itemify)(util_1._.gameData[e].filter((t=>"follow"===e?![125,126,127,128,129,134,135,136,137].includes(t.ID):t)),1..value)})),util_1._.gameData.dorm.forEach((e=>util_1.player.house.data.items[e.ID]={A:[],N:1..value}));for(var n=()=>util_1.player.backpack.data.item.findIndex((e=>84===e.ID||85===e.ID||86===e.ID));n()>-1;)util_1.player.backpack.data.item.splice(n(),1);swal_1.Toast.fire("Success!","All items added!","success"),console.log("All items added!"),util_1.player.backpack.data.mount=(0,hackify_1.itemify)(util_1._.gameData.mount,1),console.log("Added all mounts.");var a="currency";return util_1.player.backpack.data[a]=(0,hackify_1.itemify)(util_1._.gameData[a].filter((e=>e)),6969420),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.equipment.setHat(200),util_1.player.equipment.setBoots(93),util_1.player.equipment.setOutfit(161),util_1.player.equipment.setWeapon(196),util_1.player.appearanceChanged=!0,console.log("Appearance Refreshed."),(0,util_1.saveCharacter)(),console.log("Character Saved."),console.log("Max Account Successful."),swal_1.Toast.fire("Maxed!","Check your backpack!","success")}))),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)return e.value>1e7?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;return 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");if(void 0!==e.value)return 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");if(void 0!==e.value)return 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;t(util_1._.instance.prodigy.gameContainer.get((0,hackify_1.getMemberModule)()).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"),o=(e,t)=>{var o=document.createElement("select");for(var n of(o.classList.add("selectName"),e.entries())){var a=document.createElement("option");[a.value,a.innerText]=n,t(a.value)&&(a.selected=!0),o.options.add(a)}return o},n=(t,n)=>o(new Map(e.filter((e=>e.data.type===t)).map((e=>[e.ID.toString(),e.name]))),(e=>n(+e)));t.append(n(0,(e=>e===util_1.player.name.data.firstName))),t.append(n(1,(e=>e===util_1.player.name.data.middleName))),t.append(n(2,(e=>e===util_1.player.name.data.lastName))),t.append(o(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");if(level.value)return 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*(){return 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*(){return 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")):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 o=util_1._.instance.prodigy.world.zones[t].getCurrentQuestID();return util_1._.instance.prodigy.world.zones[t].completeQuest(o)?(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)});if(e.value)return 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.toString()).then((function(){return 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){return 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();return 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?");if(e.value)return util_1.player.grade=parseInt(e.value),swal_1.Toast.fire("Success","Successfully changed grade to ".concat(e,"!"),"success")})))}.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,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function _asyncToGenerator(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var r=e.apply(t,o);function s(e){asyncGeneratorStep(r,n,a,s,i,"next",e)}function i(e){asyncGeneratorStep(r,n,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*(){return 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,"Grab UserID of all players on screen","Shows you the UserID and name of every player currently shown on the screen.").setClick(_asyncToGenerator((function*(){var e=util_1.current.playerList;if(0===Object.keys(e).length)return swal_1.Toast.fire("No players found.","There are no other players on the screen.","error");var t="",o=0;return yield Object.keys(e).map((n=>{var a=Object.entries(e)[o][1].nameText.textSource.source;t+="
            • uID: ".concat(n," - ").concat(a,"
            • "),o++})),swal_1.Swal.fire({title:"All players on the screen:",html:t,icon:"info"})}))),new index_1.Hack(index_1.category.utility,"Save Character Locally [Local]","Saves your character locally.").setClick(_asyncToGenerator((function*(){return 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"});return t.ok?swal_1.Toast.fire("Success!","Character has been successfully loaded. Reload for the changes to take effect.","success"):swal_1.Toast.fire("Request failed.","An error occurred while loading the character. Error code: ".concat(t.status),"error")}return 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*(){return(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;return 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*(){return 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);return 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*(){return teleportingInterval=setInterval((()=>{try{util_1.player._playerContainer.walkSpeed=500}catch(e){}})),swal_1.Toast.fire("Success!","Successfully enabled teleport click.","success")}))).setDisabled(_asyncToGenerator((function*(){return 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*(){return util_1._.network.game._paused=!0,swal_1.Toast.fire("Success!","Successfully paused Prodigy.","success")}))).setDisabled(_asyncToGenerator((function*(){return 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)return console.log("Cancelled.");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 swal_1.Swal.fire({title:"Error",html:"Oops! There was an error with the code!
               ".concat(e," "),icon:"error"})}return 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,o){var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))}}var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};n=[o,t,o(7046),o(2852),o(3526),o(6455),o(4759),o(4719),o(158)],a=function(e,t,o,n,a,r,c,l){"use strict";var u,d,p,h;Object.defineProperty(t,"__esModule",{value:!0}),t.category=t.Toggler=t.Hack=t.toggler=t.wrapper=t.menu=void 0,r=i(r),t.menu=document.createElement("div"),t.wrapper=document.getElementById("game-wrapper"),null===(u=document.getElementById("cheat-menu"))||void 0===u||u.remove(),null===(d=document.getElementById("menu-toggler"))||void 0===d||d.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===(p=t.wrapper)||void 0===p||p.prepend(t.menu),t.toggler=document.createElement("button"),t.toggler.id="menu-toggler";var m=!1;null===(h=t.wrapper)||void 0===h||h.prepend(t.toggler),t.toggler.onclick=()=>{(m=!m)?(t.toggler.innerText="▼",t.menu.style.top="-100vh"):(t.toggler.innerText="▲",t.menu.style.top="10%")},t.toggler.onclick({});var f=document.createElement("DIV");f.classList.add("menu-left"),t.menu.append(f);var g=!0,y=e=>{var t=document.createElement("div");0==g?(t.append(document.createElement("br")),t.append(document.createElement("br"))):g=!1,t.classList.add("menu-area"),t.style.textAlign="center",f.append(t);var o=document.createElement("h1");return o.innerText=e,o.style.textAlign="center",o.style.color="white",t.append(o),t},w=document.createElement("h1");w.classList.add("menu-title"),w.innerText="Prodigy Hacks",w.style.textAlign="center",f.append(w);var b=document.createElement("h2");b.style.fontSize="25px",b.style.color="white",b.innerHTML="
              Press SHIFT to show/hide the menu. Scroll down in the menu for more hacks.",f.append(b);var v=document.createElement("h3");v.style.fontSize="20px",v.innerHTML="\n

              Join our Discord https://dsc.gg/ProdigyPNP!

              \n\n
              \n",v.style.color="white",f.append(v);class _{constructor(e,t,o){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),o&&this.setDesc(o)}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,n.saveCharacter)(),console.log("Triggered ".concat(t.name,"."))})),this}setDesc(e){return this.element.title=e,this.description=e,this}}t.Hack=_,t.Toggler=class extends _{constructor(e,t,o){var n;super(e,t,o),n=this,this.parent=e,this.element.setAttribute("status","false"),this.setClick(s((function*(){var e,t;n.status=!n.status,n.status?(localStorage.setItem(n.name,"true"),yield null===(e=n.enabled)||void 0===e?void 0:e.call(n)):(localStorage.setItem(n.name,"false"),yield null===(t=n.disabled)||void 0===t?void 0:t.call(n))})))}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:y("Player Hacks"),inventory:y("Inventory Hacks"),location:y("Location Hacks"),pets:y("Pet Hacks"),battle:y("Battle Hacks"),minigames:y("Minigame Hacks"),misc:y("Miscellaneous Hacks"),utility:y("Utility Hacks"),beta:y("Beta Testing | Beta Hacks may damage your account"),patched:y("Patched Hacks")},localStorage.hasTip?(0,l.IndexInfo)("Player already has tip."):(s((function*(){yield r.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,(0,l.IndexInfo)("Player was shown the tip.")),localStorage.getItem("level")&&(n._.player.getLevel=()=>localStorage.getItem("level"),(0,l.IndexInfo)("Loaded menu from localStorage."));var k=!0;document.addEventListener("keydown",(function(e){"Shift"==e.key&&((0,l.IndexInfo)("Shift key was pressed."),1==k?((0,l.IndexInfo)("Hiding cheat menu..."),document.getElementById("cheat-menu").style.display="none",document.getElementById("menu-toggler").style.display="none",k=!1,(0,l.IndexInfo)("Hidden cheat menu.")):((0,l.IndexInfo)("Showing cheat menu..."),document.getElementById("cheat-menu").style.display="block",document.getElementById("menu-toggler").style.display="block",k=!0,(0,l.IndexInfo)("Shown cheat menu.")))})),s((function*(){var e,t;(yield c.License.fire("ProdigyPNP",'\n

              \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 ')).value?yield(0,a.statusMessage)():(yield c.NoLicense.fire("ProdigyPNP License","\n

              \n You need to agree to our license to use our hacks. If you changed your mind and now agree to our license, reload Prodigy.\n

              \n ")).value?document.location="":(null===(e=document.getElementById("cheat-menu"))||void 0===e||e.remove(),null===(t=document.getElementById("menu-toggler"))||void 0===t||t.remove())}))()}.apply(t,n),void 0===a||(e.exports=a)},8238:(e,t,o)=>{var n,a;n=[o,t,o(9820)],a=function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stopFps=t.startFps=void 0;var n=document.createElement("button"),a=!1;t.startFps=function(){var e;a=!0,n.id="fps-counter",null===(e=o.wrapper)||void 0===e||e.prepend(n),setInterval((()=>{var e=_.player.game.fps._framerate;a?n.innerText=e.toFixed(2)+" FPS":n.remove()}),300)},t.stopFps=function(){var e;a=!1,null===(e=document.getElementById("fps-counter"))||void 0===e||e.remove()}}.apply(t,n),void 0===a||(e.exports=a)},112:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}n=[o,t,o(2852),o(4759)],a=function(e,t,o,n){"use strict";function a(e){o._.instance.prodigy.loading(!0);var t=t=>{var a=null!=t?t[e]:null;if(null!==a&&void 0!==a.house&&null!==a.house){o._.instance.prodigy.loading(!1);var r=o._.cloneDeep(o._.player.house);return r.setItems(a.house),void 0!==a.data.allowsHouseVisitors&&null!==a.data.allowsHouseVisitors&&a.data.allowsHouseVisitors?o._.instance.prodigy.world._("house",null,null,{house:r,getAllowsHouseVisitors:()=>void 0!==a.data.allowsHouseVisitors&&null!==a.data.allowsHouseVisitors&&a.data.allowsHouseVisitors,setAllowsHouseVisitors:e=>{a.data.allowsHouseVisitors=e}}):n.Swal.fire("Teleporting to ".concat(e," is not allowed."),"Try another user.","error")}};return o._.network.getCharData(e.toString(),["house","data"],t,t),n.Toast.fire("Teleported to house","You have been teleported to the house!","success")}Object.defineProperty(t,"__esModule",{value:!0}),t.getPet=t.teleportToHouse=t.toHouse=t.getMemberModule=t.runeify=t.itemify=t.ids=t.names=void 0,t.names=["Boots","Buddies","Fossils","Hats","Items","Key Items","Tower Town Frames","Tower Town Interiors","Mounts","Outfits","Relics","Weapons","Currencies"],t.ids=["boots","follow","fossil","hat","item","key","mathTownFrame","mathTownInterior","mount","outfit","spellRelic","weapon","currency"],t.itemify=(e,t)=>e.map((e=>({ID:e.ID,N:t}))).filter((e=>void 0!==e)),t.runeify=(e,t)=>e.map((e=>({ID:e.ID,quantity:t}))).filter((e=>void 0!==e)),t.getMemberModule=function(){return o._.player.hasMembership.toString().split('"')[1]},t.toHouse=function(e){if(o._.player.userID!==e){var t=o._.instance.prodigy.friendsListNetworkHandler.friendsList.length,r=o._.instance.prodigy.friendsListNetworkHandler.classList.length;o._.instance.prodigy.gameContainer.get("2e1-e659").create("house-visit","click","hub",t,r,null,null,e).broadcast()}var s=o._.instance.prodigy.world.getZone(o._.instance.prodigy.world.getCurrentZone());return s?s.handleLeaving(2,(()=>a(e))):n.Swal.fire({title:"Error",text:"You are not in a zone!",icon:"error"})},t.teleportToHouse=a;var s=function(){var e,t=(e=function*(e){return(yield n.Swal.fire({input:"select",inputOptions:new Map(o._.player.kennel.data.map(((e,t)=>{var n,a,r;return[t.toString(),"Level ".concat(e.level," - ").concat(null!==(n=null!==(a=e.nickname)&&void 0!==a?a:null===(r=o._.gameData.pet.find((t=>+t.ID==+e.ID)))||void 0===r?void 0:r.data.name)&&void 0!==n?n:"Unknown")]}))),title:"Choose Pet",text:e})).value},function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))});return function(e){return t.apply(this,arguments)}}();t.getPet=s}.apply(t,n),void 0===a||(e.exports=a)},3336:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))}}n=[o,t,o(4759)],a=function(e,t,o){"use strict";function n(){return(n=s((function*(){var e=new Map;e.set("Copy","Copy a slot to another slot"),e.set("Remove","Completley empty one slot");var t=yield o.Swal.fire({input:"select",inputOptions:e,title:"Select Action",text:"Select an action to perform on the Kennel"});return t.value?t.value:null}))).apply(this,arguments)}function a(){return(a=s((function*(){var e=new Map,t=e=>_.player.kennel._petTeam[e]?_.player.kennel._petTeam[e].source?_.player.kennel._petTeam[e].source.name:_.player.kennel._petTeam[e]._userDataPlatform?"Player":"null":"null";e.set("0","[0] Center - ".concat(t(0))),e.set("1","[1] Top - ".concat(t(1))),e.set("2","[2] Bottom - ".concat(t(2)));var n=yield o.Swal.fire({input:"select",inputOptions:e,title:"Select Slot",text:"Select a slot to edit"});return n.value?parseInt(n.value):null}))).apply(this,arguments)}Object.defineProperty(t,"__esModule",{value:!0}),t.SelectSlot=t.GetAction=void 0,t.GetAction=function(){return n.apply(this,arguments)},t.SelectSlot=function(){return a.apply(this,arguments)}}.apply(t,n),void 0===a||(e.exports=a)},2868:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}n=[o,t,o(2852),o(4759)],void 0===(a=function(e,t,o,n){"use strict";window.addEventListener("keydown",(e=>{switch(e.which){case 192:o._.instance.prodigy.open.menuCloseAll();break;case 220:var t=function(){var e,t=(e=function*(){if(!(yield n.Confirm.fire("Kit","Would you like to equip Celestial Gear?")).value)return console.log("Cancelled");o._.player.equipment.setHat(200),o._.player.equipment.setBoots(93),o._.player.equipment.setOutfit(161),o._.player.equipment.setWeapon(196),o._.player.appearanceChanged=!0,n.Toast.fire("Success!","You are now wearing Celestial Armor and wielding a Dual Blade.","success")},function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))});return function(){return t.apply(this,arguments)}}();t()}}))}.apply(t,n))||(e.exports=a)},4719:(e,t,o)=>{var n;n=function(e,t){"use strict";function o(e,o){return""==e||null==e?console.log("["+t.LogPrefix+":unknown] "+o):console.log("["+t.LogPrefix+":"+e+"] "+o)}function n(e,t,n){return o(t,"*"+e.toUpperCase()+"* "+n)}Object.defineProperty(t,"__esModule",{value:!0}),t.UtilityError=t.UtilitySuccess=t.UtilityInfo=t.PlayerError=t.PlayerSuccess=t.PlayerInfo=t.PetsError=t.PetsSuccess=t.PetsInfo=t.PatchedError=t.PatchedSuccess=t.PatchedInfo=t.MiscError=t.MiscSuccess=t.MiscInfo=t.MinigameError=t.MinigameSuccess=t.MinigameInfo=t.LocationError=t.LocationSuccess=t.LocationInfo=t.InventoryError=t.InventorySuccess=t.InventoryInfo=t.BetaError=t.BetaSuccess=t.BetaInfo=t.BattleError=t.BattleSuccess=t.BattleInfo=t.IndexError=t.IndexSuccess=t.IndexInfo=t.StatusLog=t.ConsoleLog=t.LogPrefix=void 0,t.LogPrefix="CheatGUI",t.ConsoleLog=o,t.StatusLog=n,t.IndexInfo=function(e){return n("info","index.ts",e)},t.IndexSuccess=function(e){return n("success","index.ts",e)},t.IndexError=function(e){return n("error","index.ts",e)},t.BattleInfo=function(e){return n("info","battle.ts",e)},t.BattleSuccess=function(e){return n("success","battle.ts",e)},t.BattleError=function(e){return n("error","battle.ts",e)},t.BetaInfo=function(e){return n("info","beta.ts",e)},t.BetaSuccess=function(e){return n("success","beta.ts",e)},t.BetaError=function(e){return n("error","beta.ts",e)},t.InventoryInfo=function(e){return n("info","inventory.ts",e)},t.InventorySuccess=function(e){return n("success","inventory.ts",e)},t.InventoryError=function(e){return n("error","inventory.ts",e)},t.LocationInfo=function(e){return n("info","location.ts",e)},t.LocationSuccess=function(e){return n("success","location.ts",e)},t.LocationError=function(e){return n("error","location.ts",e)},t.MinigameInfo=function(e){return n("info","minigame.ts",e)},t.MinigameSuccess=function(e){return n("success","minigame.ts",e)},t.MinigameError=function(e){return n("error","minigame.ts",e)},t.MiscInfo=function(e){return n("info","misc.ts",e)},t.MiscSuccess=function(e){return n("success","misc.ts",e)},t.MiscError=function(e){return n("error","misc.ts",e)},t.PatchedInfo=function(e){return n("info","patched.ts",e)},t.PatchedSuccess=function(e){return n("success","patched.ts",e)},t.PatchedError=function(e){return n("error","patched.ts",e)},t.PetsInfo=function(e){return n("info","pets.ts",e)},t.PetsSuccess=function(e){return n("success","pets.ts",e)},t.PetsError=function(e){return n("error","pets.ts",e)},t.PlayerInfo=function(e){return n("info","player.ts",e)},t.PlayerSuccess=function(e){return n("success","player.ts",e)},t.PlayerError=function(e){return n("error","player.ts",e)},t.UtilityInfo=function(e){return n("info","utility.ts",e)},t.UtilitySuccess=function(e){return n("success","utility.ts",e)},t.UtilityError=function(e){return n("error","utility.ts",e)}}.apply(t,[o,t]),void 0===n||(e.exports=n)},3131:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))}}n=[o,t,o(2852)],a=function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PopupInterval=void 0;var n=!1;t.PopupInterval=function(e){n=e},s((function*(){setInterval(s((function*(){n&&o._.instance.prodigy.open.menuCloseAll()})),200)}))()}.apply(t,n),void 0===a||(e.exports=a)},3526:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}n=[o,t,o(4759)],a=function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.statusMessage=void 0,t.statusMessage=function(){fetch("https://raw.githubusercontent.com/ProdigyPNP/ProdigyMathGameHacking/master/cheatGUI/statusmessage.json?updated=".concat(Date.now())).then((e=>e.json())).then(function(){var e,t=(e=function*(e){if(!1===e.enabled.value)return console.log("Status message is disabled.");yield o.Swal.fire({title:e.get("title"),html:e.get("html"),icon:e.get("icon")})},function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))});return function(e){return t.apply(this,arguments)}}())}}.apply(t,n),void 0===a||(e.exports=a)},4759:function(e,t,o){var n,a,r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};n=[o,t,o(6455)],a=function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NoLicense=t.License=t.Info=t.Confirm=t.Toast=t.NumberInput=t.Input=t.Swal=void 0,o=r(o),t.Swal=o.default,t.Input=t.Swal.mixin({input:"text",showCancelButton:!0,showConfirmButton:!0,toast:!1}),t.NumberInput=t.Input.mixin({toast:!1,input:"number"}),t.Toast=t.Swal.mixin({toast:!0,position:"bottom"}),t.Confirm=t.Swal.mixin({icon:"warning",showCancelButton:!0,toast:!1,confirmButtonText:"Confirm",cancelButtonText:"Cancel"}),t.Info=t.Swal.mixin({icon:"info",showCancelButton:!1,toast:!1}),t.License=t.Swal.mixin({icon:"info",showCancelButton:!0,toast:!1,confirmButtonText:"Agree",cancelButtonText:"Disagree"}),t.NoLicense=t.Swal.mixin({icon:"error",showCancelButton:!0,toast:!1,confirmButtonText:"Reload",cancelButtonText:"Play without hacks"})}.apply(t,n),void 0===a||(e.exports=a)},2852:(e,t,o)=>{var n;n=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.current=t.player=t._=void 0,t._=window._,t.player=t._.player,t.current=window.Boot.prototype.game._state._current;var o=t._.instance;t.game=o.game,t.prodigy=o.prodigy,t.gameData=t._.instance.game.state.states.get("Boot").gameData,t.getItem=(e,o)=>{var n;return null!==(n=t._.gameData[e].find((e=>e.ID===o)))&&void 0!==n?n: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,[o,t]),void 0===n||(e.exports=n)},450:(e,t,o)=>{"use strict";o.d(t,{Z:()=>i});var n=o(8081),a=o.n(n),r=o(3645),s=o.n(r)()(a());s.push([e.id,"@import url(https://fonts.googleapis.com/css?family=Arvo:400,700|Sen:400,700,800&display=swap&subset=latin-ext);"]),s.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;font-size:23px;height:26px;width:50px;border:1px solid rgba(0,0,0,.1)}#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 #fps-counter{z-index:2;position:absolute;border-radius:3px;background-color:rgba(255,255,255,.7333333333);transition:background-color .15s;width:130px;height:26px;font-size:23px;border:1px solid rgba(0,0,0,.1);margin-left:83%}#game-wrapper #fps-counter:hover{background-color:rgba(221,221,221,.7333333333)}#game-wrapper #fps-counter: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:rgba(0,0,0,.55);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;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 i=s},3645:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var o="",n=void 0!==t[5];return t[4]&&(o+="@supports (".concat(t[4],") {")),t[2]&&(o+="@media ".concat(t[2]," {")),n&&(o+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),o+=e(t),n&&(o+="}"),t[2]&&(o+="}"),t[4]&&(o+="}"),o})).join("")},t.i=function(e,o,n,a,r){"string"==typeof e&&(e=[[null,e,void 0]]);var s={};if(n)for(var i=0;i0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=r),o&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=o):u[2]=o),a&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=a):u[4]="".concat(a)),t.push(u))}},t}},8081:e=>{"use strict";e.exports=function(e){return e[1]}},1227:(e,t,o)=>{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 o="color: "+this.color;t.splice(1,0,o,"color: inherit");let n=0,a=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(n++,"%c"===e&&(a=n))})),t.splice(a,0,o)},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=o(2447)(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},2447:(e,t,o)=>{e.exports=function(e){function t(e){let o,a,r,s=null;function i(...e){if(!i.enabled)return;const n=i,a=Number(new Date),r=a-(o||a);n.diff=r,n.prev=o,n.curr=a,o=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,((o,a)=>{if("%%"===o)return"%";s++;const r=t.formatters[a];if("function"==typeof r){const t=e[s];o=r.call(n,t),e.splice(s,1),s--}return o})),t.formatArgs.call(n,e),(n.log||t.log).apply(n,e)}return i.namespace=e,i.useColors=t.useColors(),i.color=t.selectColor(e),i.extend=n,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 n(e,o){const n=t(this.namespace+(void 0===o?":":o)+e);return n.log=this.log,n}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 o;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const n=("string"==typeof e?e:"").split(/[\s,]+/),a=n.length;for(o=0;o{t[o]=e[o]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let o=0;for(let t=0;t{var t=1e3,o=60*t,n=60*o,a=24*n;function r(e,t,o,n){var a=t>=1.5*o;return Math.round(e/o)+" "+n+(a?"s":"")}e.exports=function(e,s){s=s||{};var i,c,l=typeof e;if("string"===l&&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*n;case"minutes":case"minute":case"mins":case"min":case"m":return s*o;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"===l&&isFinite(e))return s.long?(i=e,(c=Math.abs(i))>=a?r(i,c,a,"day"):c>=n?r(i,c,n,"hour"):c>=o?r(i,c,o,"minute"):c>=t?r(i,c,t,"second"):i+" ms"):function(e){var r=Math.abs(e);return r>=a?Math.round(e/a)+"d":r>=n?Math.round(e/n)+"h":r>=o?Math.round(e/o)+"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,o)=>{"use strict";o.r(t),o.d(t,{default:()=>y});var n=o(3379),a=o.n(n),r=o(7795),s=o.n(r),i=o(569),c=o.n(i),l=o(3565),u=o.n(l),d=o(9216),p=o.n(d),h=o(4589),m=o.n(h),f=o(450),g={};g.styleTagTransform=m(),g.setAttributes=u(),g.insert=c().bind(null,"head"),g.domAPI=s(),g.insertStyleElement=p(),a()(f.Z,g);const y=f.Z&&f.Z.locals?f.Z.locals:void 0},3379:e=>{"use strict";var t=[];function o(e){for(var o=-1,n=0;n{"use strict";var t={};e.exports=function(e,o){var n=function(e){if(void 0===t[e]){var o=document.querySelector(e);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(e){o=null}t[e]=o}return t[e]}(e);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(o)}},9216:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},3565:(e,t,o)=>{"use strict";e.exports=function(e){var t=o.nc;t&&e.setAttribute("nonce",t)}},7795:e=>{"use strict";e.exports=function(e){var t=e.insertStyleElement(e);return{update:function(o){!function(e,t,o){var n="";o.supports&&(n+="@supports (".concat(o.supports,") {")),o.media&&(n+="@media ".concat(o.media," {"));var a=void 0!==o.layer;a&&(n+="@layer".concat(o.layer.length>0?" ".concat(o.layer):""," {")),n+=o.css,a&&(n+="}"),o.media&&(n+="}"),o.supports&&(n+="}");var r=o.sourceMap;r&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(r))))," */")),t.styleTagTransform(n,e,t.options)}(t,e,o)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},4589:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},6455:function(e){e.exports=function(){"use strict";const e="SweetAlert2:",t=e=>e.charAt(0).toUpperCase()+e.slice(1),o=t=>{console.warn("".concat(e," ").concat("object"==typeof t?t.join(" "):t))},n=t=>{console.error("".concat(e," ").concat(t))},a=[],r=(e,t)=>{var n;n='"'.concat(e,'" is deprecated and will be removed in the next major release. Please use "').concat(t,'" instead.'),a.includes(n)||(a.push(n),o(n))},s=e=>"function"==typeof e?e():e,i=e=>e&&"function"==typeof e.toPromise,c=e=>i(e)?e.toPromise():Promise.resolve(e),l=e=>e&&Promise.resolve(e)===e,u={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,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",color:void 0,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,willOpen:void 0,didOpen:void 0,didRender:void 0,willClose:void 0,didClose:void 0,didDestroy:void 0,scrollbarPadding:!0},d=["allowEscapeKey","allowOutsideClick","background","buttonsStyling","cancelButtonAriaLabel","cancelButtonColor","cancelButtonText","closeButtonAriaLabel","closeButtonHtml","color","confirmButtonAriaLabel","confirmButtonColor","confirmButtonText","currentProgressStep","customClass","denyButtonAriaLabel","denyButtonColor","denyButtonText","didClose","didDestroy","footer","hideClass","html","icon","iconColor","iconHtml","imageAlt","imageHeight","imageUrl","imageWidth","preConfirm","preDeny","progressSteps","returnFocus","reverseButtons","showCancelButton","showCloseButton","showConfirmButton","showDenyButton","text","title","titleText","willClose"],p={},h=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],m=e=>Object.prototype.hasOwnProperty.call(u,e),f=e=>-1!==d.indexOf(e),g=e=>p[e],y=e=>{m(e)||o('Unknown parameter "'.concat(e,'"'))},w=e=>{h.includes(e)&&o('The parameter "'.concat(e,'" is incompatible with toasts'))},b=e=>{g(e)&&r(e,g(e))},v=e=>{const t={};for(const o in e)t[e[o]]="swal2-"+e[o];return t},_=v(["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","show","hide","close","title","html-container","actions","confirm","deny","cancel","default-outline","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","input-label","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loader","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error","no-war"]),k=v(["success","warning","info","question","error"]),C=()=>document.body.querySelector(".".concat(_.container)),x=e=>{const t=C();return t?t.querySelector(e):null},E=e=>x(".".concat(e)),S=()=>E(_.popup),T=()=>E(_.icon),P=()=>E(_.title),A=()=>E(_["html-container"]),I=()=>E(_.image),D=()=>E(_["progress-steps"]),B=()=>E(_["validation-message"]),O=()=>x(".".concat(_.actions," .").concat(_.confirm)),R=()=>x(".".concat(_.actions," .").concat(_.deny)),M=()=>x(".".concat(_.loader)),L=()=>x(".".concat(_.actions," .").concat(_.cancel)),N=()=>E(_.actions),j=()=>E(_.footer),H=()=>E(_["timer-progress-bar"]),F=()=>E(_.close),q=()=>{const e=Array.from(S().querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])')).sort(((e,t)=>{const o=parseInt(e.getAttribute("tabindex")),n=parseInt(t.getAttribute("tabindex"));return o>n?1:o"-1"!==e.getAttribute("tabindex")));return(e=>{const t=[];for(let o=0;ore(e)))},U=()=>G(document.body,_.shown)&&!G(document.body,_["toast-shown"])&&!G(document.body,_["no-backdrop"]),Y=()=>S()&&G(S(),_.toast),z={previousBodyPadding:null},W=(e,t)=>{if(e.textContent="",t){const o=(new DOMParser).parseFromString(t,"text/html");Array.from(o.querySelector("head").childNodes).forEach((t=>{e.appendChild(t)})),Array.from(o.querySelector("body").childNodes).forEach((t=>{e.appendChild(t)}))}},G=(e,t)=>{if(!t)return!1;const o=t.split(/\s+/);for(let t=0;t{if(((e,t)=>{Array.from(e.classList).forEach((o=>{Object.values(_).includes(o)||Object.values(k).includes(o)||Object.values(t.showClass).includes(o)||e.classList.remove(o)}))})(e,t),t.customClass&&t.customClass[n]){if("string"!=typeof t.customClass[n]&&!t.customClass[n].forEach)return o("Invalid type of customClass.".concat(n,'! Expected string or iterable object, got "').concat(typeof t.customClass[n],'"'));J(e,t.customClass[n])}},K=(e,t)=>{if(!t)return null;switch(t){case"select":case"textarea":case"file":return e.querySelector(".".concat(_.popup," > .").concat(_[t]));case"checkbox":return e.querySelector(".".concat(_.popup," > .").concat(_.checkbox," input"));case"radio":return e.querySelector(".".concat(_.popup," > .").concat(_.radio," input:checked"))||e.querySelector(".".concat(_.popup," > .").concat(_.radio," input:first-child"));case"range":return e.querySelector(".".concat(_.popup," > .").concat(_.range," input"));default:return e.querySelector(".".concat(_.popup," > .").concat(_.input))}},$=e=>{if(e.focus(),"file"!==e.type){const t=e.value;e.value="",e.value=t}},Z=(e,t,o)=>{e&&t&&("string"==typeof t&&(t=t.split(/\s+/).filter(Boolean)),t.forEach((t=>{Array.isArray(e)?e.forEach((e=>{o?e.classList.add(t):e.classList.remove(t)})):o?e.classList.add(t):e.classList.remove(t)})))},J=(e,t)=>{Z(e,t,!0)},X=(e,t)=>{Z(e,t,!1)},Q=(e,t)=>{const o=Array.from(e.children);for(let e=0;e{o==="".concat(parseInt(o))&&(o=parseInt(o)),o||0===parseInt(o)?e.style[t]="number"==typeof o?"".concat(o,"px"):o:e.style.removeProperty(t)},te=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"flex";e.style.display=t},oe=e=>{e.style.display="none"},ne=(e,t,o,n)=>{const a=e.querySelector(t);a&&(a.style[o]=n)},ae=function(e,t){t?te(e,arguments.length>2&&void 0!==arguments[2]?arguments[2]:"flex"):oe(e)},re=e=>!(!e||!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)),se=e=>!!(e.scrollHeight>e.clientHeight),ie=e=>{const t=window.getComputedStyle(e),o=parseFloat(t.getPropertyValue("animation-duration")||"0"),n=parseFloat(t.getPropertyValue("transition-duration")||"0");return o>0||n>0},ce=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const o=H();re(o)&&(t&&(o.style.transition="none",o.style.width="100%"),setTimeout((()=>{o.style.transition="width ".concat(e/1e3,"s linear"),o.style.width="0%"}),10))},le=()=>"undefined"==typeof window||"undefined"==typeof document,ue={},de=e=>new Promise((t=>{if(!e)return t();const o=window.scrollX,n=window.scrollY;ue.restoreFocusTimeout=setTimeout((()=>{ue.previousActiveElement instanceof HTMLElement?(ue.previousActiveElement.focus(),ue.previousActiveElement=null):document.body&&document.body.focus(),t()}),100),window.scrollTo(o,n)})),pe='\n
              \n \n
                \n
                \n \n

                \n
                \n \n \n
                \n \n \n
                \n \n
                \n \n \n
                \n
                \n
                \n \n \n \n
                \n
                \n
                \n
                \n
                \n
                \n').replace(/(^|\n)\s*/g,""),he=()=>{ue.currentInstance.resetValidationMessage()},me=e=>{const t=(()=>{const e=C();return!!e&&(e.remove(),X([document.documentElement,document.body],[_["no-backdrop"],_["toast-shown"],_["has-column"]]),!0)})();if(le())return void n("SweetAlert2 requires document to initialize");const o=document.createElement("div");o.className=_.container,t&&J(o,_["no-transition"]),W(o,pe);const a="string"==typeof(r=e.target)?document.querySelector(r):r;var r;a.appendChild(o),(e=>{const t=S();t.setAttribute("role",e.toast?"alert":"dialog"),t.setAttribute("aria-live",e.toast?"polite":"assertive"),e.toast||t.setAttribute("aria-modal","true")})(e),(e=>{"rtl"===window.getComputedStyle(e).direction&&J(C(),_.rtl)})(a),(()=>{const e=S(),t=Q(e,_.input),o=Q(e,_.file),n=e.querySelector(".".concat(_.range," input")),a=e.querySelector(".".concat(_.range," output")),r=Q(e,_.select),s=e.querySelector(".".concat(_.checkbox," input")),i=Q(e,_.textarea);t.oninput=he,o.onchange=he,r.onchange=he,s.onchange=he,i.oninput=he,n.oninput=()=>{he(),a.value=n.value},n.onchange=()=>{he(),a.value=n.value}})()},fe=(e,t)=>{e instanceof HTMLElement?t.appendChild(e):"object"==typeof e?ge(e,t):e&&W(t,e)},ge=(e,t)=>{e.jquery?ye(t,e):W(t,e.toString())},ye=(e,t)=>{if(e.textContent="",0 in t)for(let o=0;o in t;o++)e.appendChild(t[o].cloneNode(!0));else e.appendChild(t.cloneNode(!0))},we=(()=>{if(le())return!1;const e=document.createElement("div"),t={WebkitAnimation:"webkitAnimationEnd",animation:"animationend"};for(const o in t)if(Object.prototype.hasOwnProperty.call(t,o)&&void 0!==e.style[o])return t[o];return!1})(),be=(e,t)=>{const o=N(),n=M();t.showConfirmButton||t.showDenyButton||t.showCancelButton?te(o):oe(o),V(o,t,"actions"),function(e,t,o){const n=O(),a=R(),r=L();ve(n,"confirm",o),ve(a,"deny",o),ve(r,"cancel",o),function(e,t,o,n){if(!n.buttonsStyling)return X([e,t,o],_.styled);J([e,t,o],_.styled),n.confirmButtonColor&&(e.style.backgroundColor=n.confirmButtonColor,J(e,_["default-outline"])),n.denyButtonColor&&(t.style.backgroundColor=n.denyButtonColor,J(t,_["default-outline"])),n.cancelButtonColor&&(o.style.backgroundColor=n.cancelButtonColor,J(o,_["default-outline"]))}(n,a,r,o),o.reverseButtons&&(o.toast?(e.insertBefore(r,n),e.insertBefore(a,n)):(e.insertBefore(r,t),e.insertBefore(a,t),e.insertBefore(n,t)))}(o,n,t),W(n,t.loaderHtml),V(n,t,"loader")};function ve(e,o,n){ae(e,n["show".concat(t(o),"Button")],"inline-block"),W(e,n["".concat(o,"ButtonText")]),e.setAttribute("aria-label",n["".concat(o,"ButtonAriaLabel")]),e.className=_[o],V(e,n,"".concat(o,"Button")),J(e,n["".concat(o,"ButtonClass")])}const _e=(e,t)=>{const n=C();n&&(function(e,t){"string"==typeof t?e.style.background=t:t||J([document.documentElement,document.body],_["no-backdrop"])}(n,t.backdrop),function(e,t){t in _?J(e,_[t]):(o('The "position" parameter is not valid, defaulting to "center"'),J(e,_.center))}(n,t.position),function(e,t){if(t&&"string"==typeof t){const o="grow-".concat(t);o in _&&J(e,_[o])}}(n,t.grow),V(n,t,"container"))};var ke={awaitingPromise:new WeakMap,promise:new WeakMap,innerParams:new WeakMap,domCache:new WeakMap};const Ce=["input","file","range","select","radio","checkbox","textarea"],xe=e=>{if(!De[e.input])return n('Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "'.concat(e.input,'"'));const t=Ae(e.input),o=De[e.input](t,e);te(t),setTimeout((()=>{$(o)}))},Ee=(e,t)=>{const o=K(S(),e);if(o){(e=>{for(let t=0;t{const t=Ae(e.input);"object"==typeof e.customClass&&J(t,e.customClass.input)},Te=(e,t)=>{e.placeholder&&!t.inputPlaceholder||(e.placeholder=t.inputPlaceholder)},Pe=(e,t,o)=>{if(o.inputLabel){e.id=_.input;const n=document.createElement("label"),a=_["input-label"];n.setAttribute("for",e.id),n.className=a,"object"==typeof o.customClass&&J(n,o.customClass.inputLabel),n.innerText=o.inputLabel,t.insertAdjacentElement("beforebegin",n)}},Ae=e=>Q(S(),_[e]||_.input),Ie=(e,t)=>{["string","number"].includes(typeof t)?e.value="".concat(t):l(t)||o('Unexpected type of inputValue! Expected "string", "number" or "Promise", got "'.concat(typeof t,'"'))},De={};De.text=De.email=De.password=De.number=De.tel=De.url=(e,t)=>(Ie(e,t.inputValue),Pe(e,e,t),Te(e,t),e.type=t.input,e),De.file=(e,t)=>(Pe(e,e,t),Te(e,t),e),De.range=(e,t)=>{const o=e.querySelector("input"),n=e.querySelector("output");return Ie(o,t.inputValue),o.type=t.input,Ie(n,t.inputValue),Pe(o,e,t),e},De.select=(e,t)=>{if(e.textContent="",t.inputPlaceholder){const o=document.createElement("option");W(o,t.inputPlaceholder),o.value="",o.disabled=!0,o.selected=!0,e.appendChild(o)}return Pe(e,e,t),e},De.radio=e=>(e.textContent="",e),De.checkbox=(e,t)=>{const o=K(S(),"checkbox");o.value="1",o.id=_.checkbox,o.checked=Boolean(t.inputValue);const n=e.querySelector("span");return W(n,t.inputPlaceholder),o},De.textarea=(e,t)=>{Ie(e,t.inputValue),Te(e,t),Pe(e,e,t);return setTimeout((()=>{if("MutationObserver"in window){const t=parseInt(window.getComputedStyle(S()).width);new MutationObserver((()=>{const o=e.offsetWidth+(n=e,parseInt(window.getComputedStyle(n).marginLeft)+parseInt(window.getComputedStyle(n).marginRight));var n;S().style.width=o>t?"".concat(o,"px"):null})).observe(e,{attributes:!0,attributeFilter:["style"]})}})),e};const Be=(e,t)=>{const o=A();V(o,t,"htmlContainer"),t.html?(fe(t.html,o),te(o,"block")):t.text?(o.textContent=t.text,te(o,"block")):oe(o),((e,t)=>{const o=S(),n=ke.innerParams.get(e),a=!n||t.input!==n.input;Ce.forEach((e=>{const n=Q(o,_[e]);Ee(e,t.inputAttributes),n.className=_[e],a&&oe(n)})),t.input&&(a&&xe(t),Se(t))})(e,t)},Oe=(e,t)=>{for(const o in k)t.icon!==o&&X(e,k[o]);J(e,k[t.icon]),Le(e,t),Re(),V(e,t,"icon")},Re=()=>{const e=S(),t=window.getComputedStyle(e).getPropertyValue("background-color"),o=e.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");for(let e=0;e{let o,n=e.innerHTML;t.iconHtml?o=Ne(t.iconHtml):"success"===t.icon?(o='\n
                \n \n
                \n
                \n',n=n.replace(/ style=".*?"/g,"")):o="error"===t.icon?'\n \n \n \n \n':Ne({question:"?",warning:"!",info:"i"}[t.icon]),n.trim()!==o.trim()&&W(e,o)},Le=(e,t)=>{if(t.iconColor){e.style.color=t.iconColor,e.style.borderColor=t.iconColor;for(const o of[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"])ne(e,o,"backgroundColor",t.iconColor);ne(e,".swal2-success-ring","borderColor",t.iconColor)}},Ne=e=>'
                ').concat(e,"
                "),je=e=>{const t=document.createElement("li");return J(t,_["progress-step"]),W(t,e),t},He=e=>{const t=document.createElement("li");return J(t,_["progress-step-line"]),e.progressStepsDistance&&ee(t,"width",e.progressStepsDistance),t},Fe=(e,t)=>{e.className="".concat(_.popup," ").concat(re(e)?t.showClass.popup:""),t.toast?(J([document.documentElement,document.body],_["toast-shown"]),J(e,_.toast)):J(e,_.modal),V(e,t,"popup"),"string"==typeof t.customClass&&J(e,t.customClass),t.icon&&J(e,_["icon-".concat(t.icon)])},qe=(e,t)=>{((e,t)=>{const o=C(),n=S();t.toast?(ee(o,"width",t.width),n.style.width="100%",n.insertBefore(M(),T())):ee(n,"width",t.width),ee(n,"padding",t.padding),t.color&&(n.style.color=t.color),t.background&&(n.style.background=t.background),oe(B()),Fe(n,t)})(0,t),_e(0,t),((e,t)=>{const n=D();if(!t.progressSteps||0===t.progressSteps.length)return oe(n);te(n),n.textContent="",t.currentProgressStep>=t.progressSteps.length&&o("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),t.progressSteps.forEach(((e,o)=>{const a=je(e);if(n.appendChild(a),o===t.currentProgressStep&&J(a,_["active-progress-step"]),o!==t.progressSteps.length-1){const e=He(t);n.appendChild(e)}}))})(0,t),((e,t)=>{const o=ke.innerParams.get(e),a=T();if(o&&t.icon===o.icon)return Me(a,t),void Oe(a,t);if(t.icon||t.iconHtml){if(t.icon&&-1===Object.keys(k).indexOf(t.icon))return n('Unknown icon! Expected "success", "error", "warning", "info" or "question", got "'.concat(t.icon,'"')),void oe(a);te(a),Me(a,t),Oe(a,t),J(a,t.showClass.icon)}else oe(a)})(e,t),((e,t)=>{const o=I();if(!t.imageUrl)return oe(o);te(o,""),o.setAttribute("src",t.imageUrl),o.setAttribute("alt",t.imageAlt),ee(o,"width",t.imageWidth),ee(o,"height",t.imageHeight),o.className=_.image,V(o,t,"image")})(0,t),((e,t)=>{const o=P();ae(o,t.title||t.titleText,"block"),t.title&&fe(t.title,o),t.titleText&&(o.innerText=t.titleText),V(o,t,"title")})(0,t),((e,t)=>{const o=F();W(o,t.closeButtonHtml),V(o,t,"closeButton"),ae(o,t.showCloseButton),o.setAttribute("aria-label",t.closeButtonAriaLabel)})(0,t),Be(e,t),be(0,t),((e,t)=>{const o=j();ae(o,t.footer),t.footer&&fe(t.footer,o),V(o,t,"footer")})(0,t),"function"==typeof t.didRender&&t.didRender(S())},Ue=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),Ye=()=>{Array.from(document.body.children).forEach((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")}))},ze=["swal-title","swal-html","swal-footer"],We=e=>{const t={};return Array.from(e.querySelectorAll("swal-param")).forEach((e=>{Xe(e,["name","value"]);const o=e.getAttribute("name"),n=e.getAttribute("value");"boolean"==typeof u[o]&&"false"===n&&(t[o]=!1),"object"==typeof u[o]&&(t[o]=JSON.parse(n))})),t},Ge=e=>{const o={};return Array.from(e.querySelectorAll("swal-button")).forEach((e=>{Xe(e,["type","color","aria-label"]);const n=e.getAttribute("type");o["".concat(n,"ButtonText")]=e.innerHTML,o["show".concat(t(n),"Button")]=!0,e.hasAttribute("color")&&(o["".concat(n,"ButtonColor")]=e.getAttribute("color")),e.hasAttribute("aria-label")&&(o["".concat(n,"ButtonAriaLabel")]=e.getAttribute("aria-label"))})),o},Ve=e=>{const t={},o=e.querySelector("swal-image");return o&&(Xe(o,["src","width","height","alt"]),o.hasAttribute("src")&&(t.imageUrl=o.getAttribute("src")),o.hasAttribute("width")&&(t.imageWidth=o.getAttribute("width")),o.hasAttribute("height")&&(t.imageHeight=o.getAttribute("height")),o.hasAttribute("alt")&&(t.imageAlt=o.getAttribute("alt"))),t},Ke=e=>{const t={},o=e.querySelector("swal-icon");return o&&(Xe(o,["type","color"]),o.hasAttribute("type")&&(t.icon=o.getAttribute("type")),o.hasAttribute("color")&&(t.iconColor=o.getAttribute("color")),t.iconHtml=o.innerHTML),t},$e=e=>{const t={},o=e.querySelector("swal-input");o&&(Xe(o,["type","label","placeholder","value"]),t.input=o.getAttribute("type")||"text",o.hasAttribute("label")&&(t.inputLabel=o.getAttribute("label")),o.hasAttribute("placeholder")&&(t.inputPlaceholder=o.getAttribute("placeholder")),o.hasAttribute("value")&&(t.inputValue=o.getAttribute("value")));const n=Array.from(e.querySelectorAll("swal-input-option"));return n.length&&(t.inputOptions={},n.forEach((e=>{Xe(e,["value"]);const o=e.getAttribute("value"),n=e.innerHTML;t.inputOptions[o]=n}))),t},Ze=(e,t)=>{const o={};for(const n in t){const a=t[n],r=e.querySelector(a);r&&(Xe(r,[]),o[a.replace(/^swal-/,"")]=r.innerHTML.trim())}return o},Je=e=>{const t=ze.concat(["swal-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Array.from(e.children).forEach((e=>{const n=e.tagName.toLowerCase();-1===t.indexOf(n)&&o("Unrecognized element <".concat(n,">"))}))},Xe=(e,t)=>{Array.from(e.attributes).forEach((n=>{-1===t.indexOf(n.name)&&o(['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.")])}))};var Qe={email:(e,t)=>/^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]{2,24}$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid email address"),url:(e,t)=>/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid URL")};function et(e){(function(e){e.inputValidator||Object.keys(Qe).forEach((t=>{e.input===t&&(e.inputValidator=Qe[t])}))})(e),e.showLoaderOnConfirm&&!e.preConfirm&&o("showLoaderOnConfirm is set to true, but preConfirm is not defined.\nshowLoaderOnConfirm should be used together with preConfirm, see usage example:\nhttps://sweetalert2.github.io/#ajax-request"),function(e){(!e.target||"string"==typeof e.target&&!document.querySelector(e.target)||"string"!=typeof e.target&&!e.target.appendChild)&&(o('Target parameter is not valid, defaulting to "body"'),e.target="body")}(e),"string"==typeof e.title&&(e.title=e.title.split("\n").join("
                ")),me(e)}class tt{constructor(e,t){this.callback=e,this.remaining=t,this.running=!1,this.start()}start(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}stop(){return this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=(new Date).getTime()-this.started.getTime()),this.remaining}increase(e){const t=this.running;return t&&this.stop(),this.remaining+=e,t&&this.start(),this.remaining}getTimerLeft(){return this.running&&(this.stop(),this.start()),this.remaining}isRunning(){return this.running}}const ot=()=>{null===z.previousBodyPadding&&document.body.scrollHeight>window.innerHeight&&(z.previousBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight="".concat(z.previousBodyPadding+(()=>{const e=document.createElement("div");e.className=_["scrollbar-measure"],document.body.appendChild(e);const t=e.getBoundingClientRect().width-e.clientWidth;return document.body.removeChild(e),t})(),"px"))},nt=()=>{const e=navigator.userAgent,t=!!e.match(/iPad/i)||!!e.match(/iPhone/i),o=!!e.match(/WebKit/i);if(t&&o&&!e.match(/CriOS/i)){const e=44;S().scrollHeight>window.innerHeight-e&&(C().style.paddingBottom="".concat(e,"px"))}},at=()=>{const e=C();let t;e.ontouchstart=e=>{t=rt(e)},e.ontouchmove=e=>{t&&(e.preventDefault(),e.stopPropagation())}},rt=e=>{const t=e.target,o=C();return!(st(e)||it(e)||t!==o&&(se(o)||"INPUT"===t.tagName||"TEXTAREA"===t.tagName||se(A())&&A().contains(t)))},st=e=>e.touches&&e.touches.length&&"stylus"===e.touches[0].touchType,it=e=>e.touches&&e.touches.length>1,ct=e=>{const t=C(),o=S();"function"==typeof e.willOpen&&e.willOpen(o);const n=window.getComputedStyle(document.body).overflowY;pt(t,o,e),setTimeout((()=>{ut(t,o)}),10),U()&&(dt(t,e.scrollbarPadding,n),Array.from(document.body.children).forEach((e=>{e===C()||e.contains(C())||(e.hasAttribute("aria-hidden")&&e.setAttribute("data-previous-aria-hidden",e.getAttribute("aria-hidden")),e.setAttribute("aria-hidden","true"))}))),Y()||ue.previousActiveElement||(ue.previousActiveElement=document.activeElement),"function"==typeof e.didOpen&&setTimeout((()=>e.didOpen(o))),X(t,_["no-transition"])},lt=e=>{const t=S();if(e.target!==t)return;const o=C();t.removeEventListener(we,lt),o.style.overflowY="auto"},ut=(e,t)=>{we&&ie(t)?(e.style.overflowY="hidden",t.addEventListener(we,lt)):e.style.overflowY="auto"},dt=(e,t,o)=>{(()=>{if((/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)&&!G(document.body,_.iosfix)){const e=document.body.scrollTop;document.body.style.top="".concat(-1*e,"px"),J(document.body,_.iosfix),at(),nt()}})(),t&&"hidden"!==o&&ot(),setTimeout((()=>{e.scrollTop=0}))},pt=(e,t,o)=>{J(e,o.showClass.backdrop),t.style.setProperty("opacity","0","important"),te(t,"grid"),setTimeout((()=>{J(t,o.showClass.popup),t.style.removeProperty("opacity")}),10),J([document.documentElement,document.body],_.shown),o.heightAuto&&o.backdrop&&!o.toast&&J([document.documentElement,document.body],_["height-auto"])},ht=e=>{let t=S();t||new To,t=S();const o=M();Y()?oe(T()):mt(t,e),te(o),t.setAttribute("data-loading","true"),t.setAttribute("aria-busy","true"),t.focus()},mt=(e,t)=>{const o=N(),n=M();!t&&re(O())&&(t=O()),te(o),t&&(oe(t),n.setAttribute("data-button-to-replace",t.className)),n.parentNode.insertBefore(n,t),J([e,o],_.loading)},ft=e=>e.checked?1:0,gt=e=>e.checked?e.value:null,yt=e=>e.files.length?null!==e.getAttribute("multiple")?e.files:e.files[0]:null,wt=(e,t)=>{const o=S(),a=e=>vt[t.input](o,_t(e),t);i(t.inputOptions)||l(t.inputOptions)?(ht(O()),c(t.inputOptions).then((t=>{e.hideLoading(),a(t)}))):"object"==typeof t.inputOptions?a(t.inputOptions):n("Unexpected type of inputOptions! Expected object, Map or Promise, got ".concat(typeof t.inputOptions))},bt=(e,t)=>{const o=e.getInput();oe(o),c(t.inputValue).then((n=>{o.value="number"===t.input?parseFloat(n)||0:"".concat(n),te(o),o.focus(),e.hideLoading()})).catch((t=>{n("Error in inputValue promise: ".concat(t)),o.value="",te(o),o.focus(),e.hideLoading()}))},vt={select:(e,t,o)=>{const n=Q(e,_.select),a=(e,t,n)=>{const a=document.createElement("option");a.value=n,W(a,t),a.selected=kt(n,o.inputValue),e.appendChild(a)};t.forEach((e=>{const t=e[0],o=e[1];if(Array.isArray(o)){const e=document.createElement("optgroup");e.label=t,e.disabled=!1,n.appendChild(e),o.forEach((t=>a(e,t[1],t[0])))}else a(n,o,t)})),n.focus()},radio:(e,t,o)=>{const n=Q(e,_.radio);t.forEach((e=>{const t=e[0],a=e[1],r=document.createElement("input"),s=document.createElement("label");r.type="radio",r.name=_.radio,r.value=t,kt(t,o.inputValue)&&(r.checked=!0);const i=document.createElement("span");W(i,a),i.className=_.label,s.appendChild(r),s.appendChild(i),n.appendChild(s)}));const a=n.querySelectorAll("input");a.length&&a[0].focus()}},_t=e=>{const t=[];return"undefined"!=typeof Map&&e instanceof Map?e.forEach(((e,o)=>{let n=e;"object"==typeof n&&(n=_t(n)),t.push([o,n])})):Object.keys(e).forEach((o=>{let n=e[o];"object"==typeof n&&(n=_t(n)),t.push([o,n])})),t},kt=(e,t)=>t&&t.toString()===e.toString();function Ct(){const e=ke.innerParams.get(this);if(!e)return;const t=ke.domCache.get(this);oe(t.loader),Y()?e.icon&&te(T()):xt(t),X([t.popup,t.actions],_.loading),t.popup.removeAttribute("aria-busy"),t.popup.removeAttribute("data-loading"),t.confirmButton.disabled=!1,t.denyButton.disabled=!1,t.cancelButton.disabled=!1}const xt=e=>{const t=e.popup.getElementsByClassName(e.loader.getAttribute("data-button-to-replace"));t.length?te(t[0],"inline-block"):!re(O())&&!re(R())&&!re(L())&&oe(e.actions)};var Et={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};const St=()=>O()&&O().click(),Tt=e=>{e.keydownTarget&&e.keydownHandlerAdded&&(e.keydownTarget.removeEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!1)},Pt=(e,t,o)=>{const n=q();if(n.length)return(t+=o)===n.length?t=0:-1===t&&(t=n.length-1),n[t].focus();S().focus()},At=["ArrowRight","ArrowDown"],It=["ArrowLeft","ArrowUp"],Dt=(e,t,o)=>{const n=ke.innerParams.get(e);n&&(t.isComposing||229===t.keyCode||(n.stopKeydownPropagation&&t.stopPropagation(),"Enter"===t.key?Bt(e,t,n):"Tab"===t.key?Ot(t,n):[...At,...It].includes(t.key)?Rt(t.key):"Escape"===t.key&&Mt(t,n,o)))},Bt=(e,t,o)=>{if(s(o.allowEnterKey)&&t.target&&e.getInput()&&t.target instanceof HTMLElement&&t.target.outerHTML===e.getInput().outerHTML){if(["textarea","file"].includes(o.input))return;St(),t.preventDefault()}},Ot=(e,t)=>{const o=e.target,n=q();let a=-1;for(let e=0;e{const t=O(),o=R(),n=L();if(document.activeElement instanceof HTMLElement&&![t,o,n].includes(document.activeElement))return;const a=At.includes(e)?"nextElementSibling":"previousElementSibling";let r=document.activeElement;for(let e=0;e{s(t.allowEscapeKey)&&(e.preventDefault(),o(Ue.esc))};function Lt(e,t,o,n){Y()?Yt(e,n):(de(o).then((()=>Yt(e,n))),Tt(ue)),/^((?!chrome|android).)*safari/i.test(navigator.userAgent)?(t.setAttribute("style","display:none !important"),t.removeAttribute("class"),t.innerHTML=""):t.remove(),U()&&(null!==z.previousBodyPadding&&(document.body.style.paddingRight="".concat(z.previousBodyPadding,"px"),z.previousBodyPadding=null),(()=>{if(G(document.body,_.iosfix)){const e=parseInt(document.body.style.top,10);X(document.body,_.iosfix),document.body.style.top="",document.body.scrollTop=-1*e}})(),Ye()),X([document.documentElement,document.body],[_.shown,_["height-auto"],_["no-backdrop"],_["toast-shown"]])}function Nt(e){e=Ft(e);const t=Et.swalPromiseResolve.get(this),o=jt(this);this.isAwaitingPromise()?e.isDismissed||(Ht(this),t(e)):o&&t(e)}const jt=e=>{const t=S();if(!t)return!1;const o=ke.innerParams.get(e);if(!o||G(t,o.hideClass.popup))return!1;X(t,o.showClass.popup),J(t,o.hideClass.popup);const n=C();return X(n,o.showClass.backdrop),J(n,o.hideClass.backdrop),qt(e,t,o),!0};const Ht=e=>{e.isAwaitingPromise()&&(ke.awaitingPromise.delete(e),ke.innerParams.get(e)||e._destroy())},Ft=e=>void 0===e?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},e),qt=(e,t,o)=>{const n=C(),a=we&&ie(t);"function"==typeof o.willClose&&o.willClose(t),a?Ut(e,t,n,o.returnFocus,o.didClose):Lt(e,n,o.returnFocus,o.didClose)},Ut=(e,t,o,n,a)=>{ue.swalCloseEventFinishedCallback=Lt.bind(null,e,o,n,a),t.addEventListener(we,(function(e){e.target===t&&(ue.swalCloseEventFinishedCallback(),delete ue.swalCloseEventFinishedCallback)}))},Yt=(e,t)=>{setTimeout((()=>{"function"==typeof t&&t.bind(e.params)(),e._destroy()}))};function zt(e,t,o){const n=ke.domCache.get(e);t.forEach((e=>{n[e].disabled=o}))}function Wt(e,t){if(!e)return!1;if("radio"===e.type){const o=e.parentNode.parentNode.querySelectorAll("input");for(let e=0;e{const t={};return Object.keys(e).forEach((n=>{f(n)?t[n]=e[n]:o("Invalid parameter to update: ".concat(n))})),t};const Vt=e=>{Kt(e),delete e.params,delete ue.keydownHandler,delete ue.keydownTarget,delete ue.currentInstance},Kt=e=>{e.isAwaitingPromise()?($t(ke,e),ke.awaitingPromise.set(e,!0)):($t(Et,e),$t(ke,e))},$t=(e,t)=>{for(const o in e)e[o].delete(t)};var Zt=Object.freeze({hideLoading:Ct,disableLoading:Ct,getInput:function(e){const t=ke.innerParams.get(e||this),o=ke.domCache.get(e||this);return o?K(o.popup,t.input):null},close:Nt,isAwaitingPromise:function(){return!!ke.awaitingPromise.get(this)},rejectPromise:function(e){const t=Et.swalPromiseReject.get(this);Ht(this),t&&t(e)},handleAwaitingPromise:Ht,closePopup:Nt,closeModal:Nt,closeToast:Nt,enableButtons:function(){zt(this,["confirmButton","denyButton","cancelButton"],!1)},disableButtons:function(){zt(this,["confirmButton","denyButton","cancelButton"],!0)},enableInput:function(){return Wt(this.getInput(),!1)},disableInput:function(){return Wt(this.getInput(),!0)},showValidationMessage:function(e){const t=ke.domCache.get(this),o=ke.innerParams.get(this);W(t.validationMessage,e),t.validationMessage.className=_["validation-message"],o.customClass&&o.customClass.validationMessage&&J(t.validationMessage,o.customClass.validationMessage),te(t.validationMessage);const n=this.getInput();n&&(n.setAttribute("aria-invalid",!0),n.setAttribute("aria-describedby",_["validation-message"]),$(n),J(n,_.inputerror))},resetValidationMessage:function(){const e=ke.domCache.get(this);e.validationMessage&&oe(e.validationMessage);const t=this.getInput();t&&(t.removeAttribute("aria-invalid"),t.removeAttribute("aria-describedby"),X(t,_.inputerror))},getProgressSteps:function(){return ke.domCache.get(this).progressSteps},update:function(e){const t=S(),n=ke.innerParams.get(this);if(!t||G(t,n.hideClass.popup))return o("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.");const a=Gt(e),r=Object.assign({},n,a);qe(this,r),ke.innerParams.set(this,r),Object.defineProperties(this,{params:{value:Object.assign({},this.params,e),writable:!1,enumerable:!0}})},_destroy:function(){const e=ke.domCache.get(this),t=ke.innerParams.get(this);t?(e.popup&&ue.swalCloseEventFinishedCallback&&(ue.swalCloseEventFinishedCallback(),delete ue.swalCloseEventFinishedCallback),"function"==typeof t.didDestroy&&t.didDestroy(),Vt(this)):Kt(this)}});const Jt=(e,o)=>{const a=ke.innerParams.get(e);if(!a.input)return void n('The "input" parameter is needed to be set when using returnInputValueOn'.concat(t(o)));const r=((e,t)=>{const o=e.getInput();if(!o)return null;switch(t.input){case"checkbox":return ft(o);case"radio":return gt(o);case"file":return yt(o);default:return t.inputAutoTrim?o.value.trim():o.value}})(e,a);a.inputValidator?Xt(e,r,o):e.getInput().checkValidity()?"deny"===o?Qt(e,r):oo(e,r):(e.enableButtons(),e.showValidationMessage(a.validationMessage))},Xt=(e,t,o)=>{const n=ke.innerParams.get(e);e.disableInput(),Promise.resolve().then((()=>c(n.inputValidator(t,n.validationMessage)))).then((n=>{e.enableButtons(),e.enableInput(),n?e.showValidationMessage(n):"deny"===o?Qt(e,t):oo(e,t)}))},Qt=(e,t)=>{const o=ke.innerParams.get(e||void 0);o.showLoaderOnDeny&&ht(R()),o.preDeny?(ke.awaitingPromise.set(e||void 0,!0),Promise.resolve().then((()=>c(o.preDeny(t,o.validationMessage)))).then((o=>{!1===o?(e.hideLoading(),Ht(e)):e.close({isDenied:!0,value:void 0===o?t:o})})).catch((t=>to(e||void 0,t)))):e.close({isDenied:!0,value:t})},eo=(e,t)=>{e.close({isConfirmed:!0,value:t})},to=(e,t)=>{e.rejectPromise(t)},oo=(e,t)=>{const o=ke.innerParams.get(e||void 0);o.showLoaderOnConfirm&&ht(),o.preConfirm?(e.resetValidationMessage(),ke.awaitingPromise.set(e||void 0,!0),Promise.resolve().then((()=>c(o.preConfirm(t,o.validationMessage)))).then((o=>{re(B())||!1===o?(e.hideLoading(),Ht(e)):eo(e,void 0===o?t:o)})).catch((t=>to(e||void 0,t)))):eo(e,t)},no=(e,t,o)=>{t.popup.onclick=()=>{const t=ke.innerParams.get(e);t&&(ao(t)||t.timer||t.input)||o(Ue.close)}},ao=e=>e.showConfirmButton||e.showDenyButton||e.showCancelButton||e.showCloseButton;let ro=!1;const so=e=>{e.popup.onmousedown=()=>{e.container.onmouseup=function(t){e.container.onmouseup=void 0,t.target===e.container&&(ro=!0)}}},io=e=>{e.container.onmousedown=()=>{e.popup.onmouseup=function(t){e.popup.onmouseup=void 0,(t.target===e.popup||e.popup.contains(t.target))&&(ro=!0)}}},co=(e,t,o)=>{t.container.onclick=n=>{const a=ke.innerParams.get(e);ro?ro=!1:n.target===t.container&&s(a.allowOutsideClick)&&o(Ue.backdrop)}},lo=e=>e instanceof Element||(e=>"object"==typeof e&&e.jquery)(e);const uo=()=>{if(ue.timeout)return(()=>{const e=H(),t=parseInt(window.getComputedStyle(e).width);e.style.removeProperty("transition"),e.style.width="100%";const o=t/parseInt(window.getComputedStyle(e).width)*100;e.style.removeProperty("transition"),e.style.width="".concat(o,"%")})(),ue.timeout.stop()},po=()=>{if(ue.timeout){const e=ue.timeout.start();return ce(e),e}};let ho=!1;const mo={};const fo=e=>{for(let t=e.target;t&&t!==document;t=t.parentNode)for(const e in mo){const o=t.getAttribute(e);if(o)return void mo[e].fire({template:o})}};var go=Object.freeze({isValidParameter:m,isUpdatableParameter:f,isDeprecatedParameter:g,argsToParams:e=>{const t={};return"object"!=typeof e[0]||lo(e[0])?["title","html","icon"].forEach(((o,a)=>{const r=e[a];"string"==typeof r||lo(r)?t[o]=r:void 0!==r&&n("Unexpected type of ".concat(o,'! Expected "string" or "Element", got ').concat(typeof r))})):Object.assign(t,e[0]),t},isVisible:()=>re(S()),clickConfirm:St,clickDeny:()=>R()&&R().click(),clickCancel:()=>L()&&L().click(),getContainer:C,getPopup:S,getTitle:P,getHtmlContainer:A,getImage:I,getIcon:T,getInputLabel:()=>E(_["input-label"]),getCloseButton:F,getActions:N,getConfirmButton:O,getDenyButton:R,getCancelButton:L,getLoader:M,getFooter:j,getTimerProgressBar:H,getFocusableElements:q,getValidationMessage:B,isLoading:()=>S().hasAttribute("data-loading"),fire:function(){const e=this;for(var t=arguments.length,o=new Array(t),n=0;nue.timeout&&ue.timeout.getTimerLeft(),stopTimer:uo,resumeTimer:po,toggleTimer:()=>{const e=ue.timeout;return e&&(e.running?uo():po())},increaseTimer:e=>{if(ue.timeout){const t=ue.timeout.increase(e);return ce(t,!0),t}},isTimerRunning:()=>ue.timeout&&ue.timeout.isRunning(),bindClickHandler:function(){mo[arguments.length>0&&void 0!==arguments[0]?arguments[0]:"data-swal-template"]=this,ho||(document.body.addEventListener("click",fo),ho=!0)}});let yo;class wo{constructor(){if("undefined"==typeof window)return;yo=this;for(var e=arguments.length,t=new Array(e),o=0;o1&&void 0!==arguments[1]?arguments[1]:{};(e=>{!e.backdrop&&e.allowOutsideClick&&o('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');for(const t in e)y(t),e.toast&&w(t),b(t)})(Object.assign({},t,e)),ue.currentInstance&&(ue.currentInstance._destroy(),U()&&Ye()),ue.currentInstance=yo;const n=vo(e,t);et(n),Object.freeze(n),ue.timeout&&(ue.timeout.stop(),delete ue.timeout),clearTimeout(ue.restoreFocusTimeout);const a=_o(yo);return qe(yo,n),ke.innerParams.set(yo,n),bo(yo,a,n)}then(e){return ke.promise.get(this).then(e)}finally(e){return ke.promise.get(this).finally(e)}}const bo=(e,t,o)=>new Promise(((n,a)=>{const r=t=>{e.closePopup({isDismissed:!0,dismiss:t})};Et.swalPromiseResolve.set(e,n),Et.swalPromiseReject.set(e,a),t.confirmButton.onclick=()=>(e=>{const t=ke.innerParams.get(e);e.disableButtons(),t.input?Jt(e,"confirm"):oo(e,!0)})(e),t.denyButton.onclick=()=>(e=>{const t=ke.innerParams.get(e);e.disableButtons(),t.returnInputValueOnDeny?Jt(e,"deny"):Qt(e,!1)})(e),t.cancelButton.onclick=()=>((e,t)=>{e.disableButtons(),t(Ue.cancel)})(e,r),t.closeButton.onclick=()=>r(Ue.close),((e,t,o)=>{ke.innerParams.get(e).toast?no(e,t,o):(so(t),io(t),co(e,t,o))})(e,t,r),((e,t,o,n)=>{Tt(t),o.toast||(t.keydownHandler=t=>Dt(e,t,n),t.keydownTarget=o.keydownListenerCapture?window:S(),t.keydownListenerCapture=o.keydownListenerCapture,t.keydownTarget.addEventListener("keydown",t.keydownHandler,{capture:t.keydownListenerCapture}),t.keydownHandlerAdded=!0)})(e,ue,o,r),((e,t)=>{"select"===t.input||"radio"===t.input?wt(e,t):["text","email","number","tel","textarea"].includes(t.input)&&(i(t.inputValue)||l(t.inputValue))&&(ht(O()),bt(e,t))})(e,o),ct(o),ko(ue,o,r),Co(t,o),setTimeout((()=>{t.container.scrollTop=0}))})),vo=(e,t)=>{const o=(e=>{const t="string"==typeof e.template?document.querySelector(e.template):e.template;if(!t)return{};const o=t.content;return Je(o),Object.assign(We(o),Ge(o),Ve(o),Ke(o),$e(o),Ze(o,ze))})(e),n=Object.assign({},u,t,o,e);return n.showClass=Object.assign({},u.showClass,n.showClass),n.hideClass=Object.assign({},u.hideClass,n.hideClass),n},_o=e=>{const t={popup:S(),container:C(),actions:N(),confirmButton:O(),denyButton:R(),cancelButton:L(),loader:M(),closeButton:F(),validationMessage:B(),progressSteps:D()};return ke.domCache.set(e,t),t},ko=(e,t,o)=>{const n=H();oe(n),t.timer&&(e.timeout=new tt((()=>{o("timer"),delete e.timeout}),t.timer),t.timerProgressBar&&(te(n),V(n,t,"timerProgressBar"),setTimeout((()=>{e.timeout&&e.timeout.running&&ce(t.timer)}))))},Co=(e,t)=>{if(!t.toast)return s(t.allowEnterKey)?void(xo(e,t)||Pt(0,-1,1)):Eo()},xo=(e,t)=>t.focusDeny&&re(e.denyButton)?(e.denyButton.focus(),!0):t.focusCancel&&re(e.cancelButton)?(e.cancelButton.focus(),!0):!(!t.focusConfirm||!re(e.confirmButton)||(e.confirmButton.focus(),0)),Eo=()=>{document.activeElement instanceof HTMLElement&&"function"==typeof document.activeElement.blur&&document.activeElement.blur()};if("undefined"!=typeof window&&/^ru\b/.test(navigator.language)&&location.host.match(/\.(ru|su|xn--p1ai)$/)&&Math.random()<.1){const e=document.createElement("div");e.className="leave-russia-now-and-apply-your-skills-to-the-world";const t=(So=[{text:"В нижеприведённом видео объясняется как каждый из нас может помочь в том,\n чтобы эта бессмысленная и бесчеловечная война остановилась:",id:"4CfDhaRkw7I"},{text:"Эмпатия - главное человеческое чувство. Способность сопереживать. Способность поставить себя на место другого.",id:"s-GLAIY4DXA"}])[Math.floor(Math.random()*So.length)];W(e,"\n
                \n Если мы не остановим войну, она придет в дом каждого из нас и её последствия будут ужасающими.\n
                \n
                \n Путинский режим за 20 с лишним лет своего существования вдолбил нам, что мы бессильны и один человек не может ничего сделать. Это не так!\n
                \n
                \n ".concat(t.text,'\n
                \n \n
                \n Нет войне!\n
                \n '));const o=document.createElement("button");o.innerHTML="×",o.onclick=()=>e.remove(),e.appendChild(o),window.addEventListener("load",(()=>{setTimeout((()=>{document.body.appendChild(e)}),1e3)}))}var So;Object.assign(wo.prototype,Zt),Object.assign(wo,go),Object.keys(Zt).forEach((e=>{wo[e]=function(){if(yo)return yo[e](...arguments)}})),wo.DismissReason=Ue,wo.version="11.4.26";const To=wo;return To.default=To,To}(),void 0!==this&&this.Sweetalert2&&(this.swal=this.sweetAlert=this.Swal=this.SweetAlert=this.Sweetalert2),"undefined"!=typeof document&&function(e,t){var o=e.createElement("style");if(e.getElementsByTagName("head")[0].appendChild(o),o.styleSheet)o.styleSheet.disabled||(o.styleSheet.cssText=t);else try{o.innerHTML=t}catch(e){o.innerText=t}}(document,'.swal2-popup.swal2-toast{box-sizing:border-box;grid-column:1/4!important;grid-row:1/4!important;grid-template-columns:1fr 99fr 1fr;padding:1em;overflow-y:hidden;background:#fff;box-shadow:0 0 1px hsla(0deg,0%,0%,.075),0 1px 2px hsla(0deg,0%,0%,.075),1px 2px 4px hsla(0deg,0%,0%,.075),1px 3px 8px hsla(0deg,0%,0%,.075),2px 4px 16px hsla(0deg,0%,0%,.075);pointer-events:all}.swal2-popup.swal2-toast>*{grid-column:2}.swal2-popup.swal2-toast .swal2-title{margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-loading{justify-content:center}.swal2-popup.swal2-toast .swal2-input{height:2em;margin:.5em;font-size:1em}.swal2-popup.swal2-toast .swal2-validation-message{font-size:1em}.swal2-popup.swal2-toast .swal2-footer{margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-popup.swal2-toast .swal2-close{grid-column:3/3;grid-row:1/99;align-self:center;width:.8em;height:.8em;margin:0;font-size:2em}.swal2-popup.swal2-toast .swal2-html-container{margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-html-container:empty{padding:0}.swal2-popup.swal2-toast .swal2-loader{grid-column:1;grid-row:1/99;align-self:center;width:2em;height:2em;margin:.25em}.swal2-popup.swal2-toast .swal2-icon{grid-column:1;grid-row:1/99;align-self:center;width:2em;min-width:2em;height:2em;margin:0 .5em 0 0}.swal2-popup.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:700}.swal2-popup.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-popup.swal2-toast .swal2-actions{justify-content:flex-start;height:auto;margin:0;margin-top:.5em;padding:0 .5em}.swal2-popup.swal2-toast .swal2-styled{margin:.25em .5em;padding:.4em .6em;font-size:1em}.swal2-popup.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;transform:rotate(45deg);border-radius:50%}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-.8em;left:-.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-popup.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{-webkit-animation:swal2-toast-animate-success-line-tip .75s;animation:swal2-toast-animate-success-line-tip .75s}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{-webkit-animation:swal2-toast-animate-success-line-long .75s;animation:swal2-toast-animate-success-line-long .75s}.swal2-popup.swal2-toast.swal2-show{-webkit-animation:swal2-toast-show .5s;animation:swal2-toast-show .5s}.swal2-popup.swal2-toast.swal2-hide{-webkit-animation:swal2-toast-hide .1s forwards;animation:swal2-toast-hide .1s forwards}.swal2-container{display:grid;position:fixed;z-index:1060;top:0;right:0;bottom:0;left:0;box-sizing:border-box;grid-template-areas:"top-start top top-end" "center-start center center-end" "bottom-start bottom-center bottom-end";grid-template-rows:minmax(-webkit-min-content,auto) minmax(-webkit-min-content,auto) minmax(-webkit-min-content,auto);grid-template-rows:minmax(min-content,auto) minmax(min-content,auto) minmax(min-content,auto);height:100%;padding:.625em;overflow-x:hidden;transition:background-color .1s;-webkit-overflow-scrolling:touch}.swal2-container.swal2-backdrop-show,.swal2-container.swal2-noanimation{background:rgba(0,0,0,.4)}.swal2-container.swal2-backdrop-hide{background:0 0!important}.swal2-container.swal2-bottom-start,.swal2-container.swal2-center-start,.swal2-container.swal2-top-start{grid-template-columns:minmax(0,1fr) auto auto}.swal2-container.swal2-bottom,.swal2-container.swal2-center,.swal2-container.swal2-top{grid-template-columns:auto minmax(0,1fr) auto}.swal2-container.swal2-bottom-end,.swal2-container.swal2-center-end,.swal2-container.swal2-top-end{grid-template-columns:auto auto minmax(0,1fr)}.swal2-container.swal2-top-start>.swal2-popup{align-self:start}.swal2-container.swal2-top>.swal2-popup{grid-column:2;align-self:start;justify-self:center}.swal2-container.swal2-top-end>.swal2-popup,.swal2-container.swal2-top-right>.swal2-popup{grid-column:3;align-self:start;justify-self:end}.swal2-container.swal2-center-left>.swal2-popup,.swal2-container.swal2-center-start>.swal2-popup{grid-row:2;align-self:center}.swal2-container.swal2-center>.swal2-popup{grid-column:2;grid-row:2;align-self:center;justify-self:center}.swal2-container.swal2-center-end>.swal2-popup,.swal2-container.swal2-center-right>.swal2-popup{grid-column:3;grid-row:2;align-self:center;justify-self:end}.swal2-container.swal2-bottom-left>.swal2-popup,.swal2-container.swal2-bottom-start>.swal2-popup{grid-column:1;grid-row:3;align-self:end}.swal2-container.swal2-bottom>.swal2-popup{grid-column:2;grid-row:3;justify-self:center;align-self:end}.swal2-container.swal2-bottom-end>.swal2-popup,.swal2-container.swal2-bottom-right>.swal2-popup{grid-column:3;grid-row:3;align-self:end;justify-self:end}.swal2-container.swal2-grow-fullscreen>.swal2-popup,.swal2-container.swal2-grow-row>.swal2-popup{grid-column:1/4;width:100%}.swal2-container.swal2-grow-column>.swal2-popup,.swal2-container.swal2-grow-fullscreen>.swal2-popup{grid-row:1/4;align-self:stretch}.swal2-container.swal2-no-transition{transition:none!important}.swal2-popup{display:none;position:relative;box-sizing:border-box;grid-template-columns:minmax(0,100%);width:32em;max-width:100%;padding:0 0 1.25em;border:none;border-radius:5px;background:#fff;color:#545454;font-family:inherit;font-size:1rem}.swal2-popup:focus{outline:0}.swal2-popup.swal2-loading{overflow-y:hidden}.swal2-title{position:relative;max-width:100%;margin:0;padding:.8em 1em 0;color:inherit;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:auto;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;transition:box-shadow .1s;box-shadow:0 0 0 3px transparent;font-weight:500}.swal2-styled:not([disabled]){cursor:pointer}.swal2-styled.swal2-confirm{border:0;border-radius:.25em;background:initial;background-color:#7066e0;color:#fff;font-size:1em}.swal2-styled.swal2-confirm:focus{box-shadow:0 0 0 3px rgba(112,102,224,.5)}.swal2-styled.swal2-deny{border:0;border-radius:.25em;background:initial;background-color:#dc3741;color:#fff;font-size:1em}.swal2-styled.swal2-deny:focus{box-shadow:0 0 0 3px rgba(220,55,65,.5)}.swal2-styled.swal2-cancel{border:0;border-radius:.25em;background:initial;background-color:#6e7881;color:#fff;font-size:1em}.swal2-styled.swal2-cancel:focus{box-shadow:0 0 0 3px rgba(110,120,129,.5)}.swal2-styled.swal2-default-outline:focus{box-shadow:0 0 0 3px rgba(100,150,200,.5)}.swal2-styled:focus{outline:0}.swal2-styled::-moz-focus-inner{border:0}.swal2-footer{justify-content:center;margin:1em 0 0;padding:1em 1em 0;border-top:1px solid #eee;color:inherit;font-size:1em}.swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;grid-column:auto!important;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:2em auto 1em}.swal2-close{z-index:2;align-items:center;justify-content:center;width:1.2em;height:1.2em;margin-top:0;margin-right:0;margin-bottom:-1.2em;padding:0;overflow:hidden;transition:color .1s,box-shadow .1s;border:none;border-radius:5px;background:0 0;color:#ccc;font-family:serif;font-family:monospace;font-size:2.5em;cursor:pointer;justify-self:end}.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-html-container{z-index:1;justify-content:center;margin:1em 1.6em .3em;padding:0;overflow:auto;color:inherit;font-size:1.125em;font-weight:400;line-height:normal;text-align:center;word-wrap:break-word;word-break:break-word}.swal2-checkbox,.swal2-file,.swal2-input,.swal2-radio,.swal2-select,.swal2-textarea{margin:1em 2em 3px}.swal2-file,.swal2-input,.swal2-textarea{box-sizing:border-box;width:auto;transition:border-color .1s,box-shadow .1s;border:1px solid #d9d9d9;border-radius:.1875em;background:0 0;box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px transparent;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:inset 0 1px 1px rgba(0,0,0,.06),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::placeholder,.swal2-input::placeholder,.swal2-textarea::placeholder{color:#ccc}.swal2-range{margin:1em 2em 3px;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-file{width:75%;margin-right:auto;margin-left:auto;background:0 0;font-size:1.125em}.swal2-textarea{height:6.75em;padding:.75em}.swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:0 0;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 0}.swal2-validation-message{align-items:center;justify-content:center;margin:1em 0 0;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:2.5em auto .6em;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;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-warning.swal2-icon-show{-webkit-animation:swal2-animate-error-icon .5s;animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-warning.swal2-icon-show .swal2-icon-content{-webkit-animation:swal2-animate-i-mark .5s;animation:swal2-animate-i-mark .5s}.swal2-icon.swal2-info{border-color:#9de0f6;color:#3fc3ee}.swal2-icon.swal2-info.swal2-icon-show{-webkit-animation:swal2-animate-error-icon .5s;animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-info.swal2-icon-show .swal2-icon-content{-webkit-animation:swal2-animate-i-mark .8s;animation:swal2-animate-i-mark .8s}.swal2-icon.swal2-question{border-color:#c9dae1;color:#87adbd}.swal2-icon.swal2-question.swal2-icon-show{-webkit-animation:swal2-animate-error-icon .5s;animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-question.swal2-icon-show .swal2-icon-content{-webkit-animation:swal2-animate-question-mark .8s;animation:swal2-animate-question-mark .8s}.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:1.25em auto;padding:0;background:0 0;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{margin-right:initial;margin-left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}.leave-russia-now-and-apply-your-skills-to-the-world{display:flex;position:fixed;z-index:1939;top:0;right:0;bottom:0;left:0;flex-direction:column;align-items:center;justify-content:center;padding:25px 0 20px;background:#20232a;color:#fff;text-align:center}.leave-russia-now-and-apply-your-skills-to-the-world div{max-width:560px;margin:10px;line-height:146%}.leave-russia-now-and-apply-your-skills-to-the-world iframe{max-width:100%;max-height:55.5555555556vmin;margin:16px auto}.leave-russia-now-and-apply-your-skills-to-the-world strong{border-bottom:2px dashed #fff}.leave-russia-now-and-apply-your-skills-to-the-world button{display:flex;position:fixed;z-index:1940;top:0;right:0;align-items:center;justify-content:center;width:48px;height:48px;margin-right:10px;margin-bottom:-10px;border:none;background:0 0;color:#aaa;font-size:48px;font-weight:700;cursor:pointer}.leave-russia-now-and-apply-your-skills-to-the-world button:hover{color:#fff}@-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)}}@-webkit-keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@-webkit-keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}@keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}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{background-color:transparent!important;pointer-events:none}body.swal2-no-backdrop .swal2-container .swal2-popup{pointer-events:all}body.swal2-no-backdrop .swal2-container .swal2-modal{box-shadow:0 0 10px rgba(0,0,0,.4)}@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{box-sizing:border-box;width:360px;max-width:100%;background-color:transparent;pointer-events:none}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 o=!1;try{o="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(e){}t.hasCORS=o},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 o in e)e.hasOwnProperty(o)&&(t.length&&(t+="&"),t+=encodeURIComponent(o)+"="+encodeURIComponent(e[o]));return t},t.decode=function(e){let t={},o=e.split("&");for(let e=0,n=o.length;e{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parse=void 0;const o=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,n=["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=o.exec(e||""),i={},c=14;for(;c--;)i[n[c]]=s[c]||"";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 o=t.replace(/\/{2,9}/g,"/").split("/");return"/"!=t.substr(0,1)&&0!==t.length||o.splice(0,1),"/"==t.substr(t.length-1,1)&&o.splice(o.length-1,1),o}(0,i.path),i.queryKey=function(e,t){const o={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,(function(e,t,n){t&&(o[t]=n)})),o}(0,i.query),i}},8726:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.yeast=t.decode=t.encode=void 0;const o="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),n={};let a,r=0,s=0;function i(e){let t="";do{t=o[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,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parse=t.installTimerFunctions=t.transports=t.Transport=t.protocol=t.Socket=void 0;const n=o(3481);Object.defineProperty(t,"Socket",{enumerable:!0,get:function(){return n.Socket}}),t.protocol=n.Socket.protocol;var a=o(9870);Object.defineProperty(t,"Transport",{enumerable:!0,get:function(){return a.Transport}});var r=o(7385);Object.defineProperty(t,"transports",{enumerable:!0,get:function(){return r.transports}});var s=o(9622);Object.defineProperty(t,"installTimerFunctions",{enumerable:!0,get:function(){return s.installTimerFunctions}});var i=o(5222);Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return i.parse}})},3481:function(e,t,o){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Socket=void 0;const a=o(7385),r=o(9622),s=o(5754),i=o(5222),c=n(o(1227)),l=o(5260),u=o(1373),d=(0,c.default)("engine.io-client:socket");class p extends l.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 o=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",o),new a.transports[e](o)}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),o=!1;p.priorWebsocketSuccess=!1;const n=()=>{o||(d('probe transport "%s" opened',e),t.send([{type:"ping",data:"probe"}]),t.once("packet",(n=>{if(!o)if("pong"===n.type&&"probe"===n.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((()=>{o||"closed"!==this.readyState&&(d("changing transport and sending upgrade packet"),l(),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 o=new Error("probe error");o.transport=t.name,this.emitReserved("upgradeError",o)}})))};function a(){o||(o=!0,l(),t.close(),t=null)}const r=o=>{const n=new Error("probe error: "+o);n.transport=t.name,a(),d('probe transport "%s" failed because of error: %s',e,o),this.emitReserved("upgradeError",n)};function s(){r("transport closed")}function i(){r("socket closed")}function c(e){t&&e.name!==t.name&&(d('"%s" works - aborting "%s"',e.name,t.name),a())}const l=()=>{t.removeListener("open",n),t.removeListener("error",r),t.removeListener("close",s),this.off("close",i),this.off("upgrading",c)};t.once("open",n),t.once("error",r),t.once("close",s),this.once("close",i),this.once("upgrading",c),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,o){return this.sendPacket("message",e,t,o),this}send(e,t,o){return this.sendPacket("message",e,t,o),this}sendPacket(e,t,o,n){if("function"==typeof t&&(n=t,t=void 0),"function"==typeof o&&(n=o,o=null),"closing"===this.readyState||"closed"===this.readyState)return;(o=o||{}).compress=!1!==o.compress;const a={type:e,data:t,options:o};this.emitReserved("packetCreate",a),this.writeBuffer.push(a),n&&this.once("flush",n),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()},o=()=>{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?o():e()})):this.upgrading?o():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 o=0;const n=e.length;for(;o{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.transports=void 0;const n=o(484),a=o(1308);t.transports={websocket:a.WS,polling:n.Polling}},484:function(e,t,o){"use strict";var n=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=o(9870),r=n(o(1227)),s=o(8726),i=o(5754),c=o(1373),l=o(6666),u=o(5260),d=o(9622),p=o(6242),h=(0,r.default)("engine.io-client:polling");function m(){}const f=null!=new l.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 o=location.port;o||(o=t?"443":"80"),this.xd="undefined"!=typeof location&&e.hostname!==location.hostname||o!==e.port,this.xs=e.secure!==t}const t=e&&e.forceBase64;this.supportsBinary=f&&!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,c.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,c.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 o="";!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))&&(o=":"+this.opts.port);const n=(0,i.encode)(e);return t+"://"+(-1!==this.opts.hostname.indexOf(":")?"["+this.opts.hostname+"]":this.opts.hostname)+o+this.opts.path+(n.length?"?"+n:"")}request(e={}){return Object.assign(e,{xd:this.xd,xs:this.xs},this.opts),new y(this.uri(),e)}doWrite(e,t){const o=this.request({method:"POST",data:e});o.on("success",t),o.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 l.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=m,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,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultBinaryType=t.usingBrowserWebSocket=t.WebSocket=t.nextTick=void 0;const n=o(6242);t.nextTick="function"==typeof Promise&&"function"==typeof Promise.resolve?e=>Promise.resolve().then(e):(e,t)=>t(e,0),t.WebSocket=n.globalThisShim.WebSocket||n.globalThisShim.MozWebSocket,t.usingBrowserWebSocket=!0,t.defaultBinaryType="arraybuffer"},1308:function(e,t,o){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.WS=void 0;const a=o(9870),r=o(5754),s=o(8726),i=o(9622),c=o(5552),l=n(o(1227)),u=o(1373),d=(0,l.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,o=p?{}:(0,i.pick)(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(o.headers=this.opts.extraHeaders);try{this.ws=c.usingBrowserWebSocket&&!p?t?new c.WebSocket(e,t):new c.WebSocket(e):new c.WebSocket(e,t,o)}catch(e){return this.emitReserved("error",e)}this.ws.binaryType=this.socket.binaryType||c.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={};!c.usingBrowserWebSocket&&(o.options&&(t.compress=o.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 o="";this.opts.port&&("wss"===t&&443!==Number(this.opts.port)||"ws"===t&&80!==Number(this.opts.port))&&(o=":"+this.opts.port),this.opts.timestampRequests&&(e[this.opts.timestampParam]=(0,s.yeast)()),this.supportsBinary||(e.b64=1);const n=(0,r.encode)(e);return t+"://"+(-1!==this.opts.hostname.indexOf(":")?"["+this.opts.hostname+"]":this.opts.hostname)+o+this.opts.path+(n.length?"?"+n:"")}check(){return!!c.WebSocket}}t.WS=h},6666:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.XHR=void 0;const n=o(8419),a=o(6242);t.XHR=function(e){const t=e.xdomain;try{if("undefined"!=typeof XMLHttpRequest&&(!t||n.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,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.byteLength=t.installTimerFunctions=t.pick=void 0;const n=o(6242);t.pick=function(e,...t){return t.reduce(((t,o)=>(e.hasOwnProperty(o)&&(t[o]=e[o]),t)),{})};const a=setTimeout,r=clearTimeout;t.installTimerFunctions=function(e,t){t.useNativeTimers?(e.setTimeoutFn=a.bind(n.globalThisShim),e.clearTimeoutFn=r.bind(n.globalThisShim)):(e.setTimeoutFn=setTimeout.bind(n.globalThisShim),e.clearTimeoutFn=clearTimeout.bind(n.globalThisShim))},t.byteLength=function(e){return"string"==typeof e?function(e){let t=0,o=0;for(let n=0,a=e.length;n=57344?o+=3:(n++,o+=4);return o}(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 o=Object.create(null);t.PACKET_TYPES=o,o.open="0",o.close="1",o.ping="2",o.pong="3",o.message="4",o.upgrade="5",o.noop="6";const n=Object.create(null);t.PACKET_TYPES_REVERSE=n,Object.keys(o).forEach((e=>{n[o[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 o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n="undefined"==typeof Uint8Array?[]:new Uint8Array(256);for(let e=0;e{let t,n=new Uint8Array(e),a=n.length,r="";for(t=0;t>2],r+=o[(3&n[t])<<4|n[t+1]>>4],r+=o[(15&n[t+1])<<2|n[t+2]>>6],r+=o[63&n[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,o,a,r,s,i=.75*e.length,c=e.length,l=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[l++]=(15&a)<<4|r>>2,d[l++]=(3&r)<<6|63&s;return u}},7572:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=o(3087),a=o(2469),r="function"==typeof ArrayBuffer,s=(e,t)=>{if(r){const o=(0,a.decode)(e);return i(o,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 o=e.charAt(0);return"b"===o?{type:"message",data:s(e.substring(1),t)}:n.PACKET_TYPES_REVERSE[o]?e.length>1?{type:n.PACKET_TYPES_REVERSE[o],data:e.substring(1)}:{type:n.PACKET_TYPES_REVERSE[o]}:n.ERROR_PACKET}},3908:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=o(3087),a="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),r="function"==typeof ArrayBuffer,s=(e,t)=>{const o=new FileReader;return o.onload=function(){const e=o.result.split(",")[1];t("b"+e)},o.readAsDataURL(e)};t.default=({type:e,data:t},o,i)=>{return a&&t instanceof Blob?o?i(t):s(t,i):r&&(t instanceof ArrayBuffer||(c=t,"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(c):c&&c.buffer instanceof ArrayBuffer))?o?i(t):s(new Blob([t]),i):i(n.PACKET_TYPES[e]+(t||""));var c}},1373:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodePayload=t.decodePacket=t.encodePayload=t.encodePacket=t.protocol=void 0;const n=o(3908);t.encodePacket=n.default;const a=o(7572);t.decodePacket=a.default;const r=String.fromCharCode(30);t.encodePayload=(e,t)=>{const o=e.length,a=new Array(o);let s=0;e.forEach(((e,i)=>{(0,n.default)(e,!1,(e=>{a[i]=e,++s===o&&t(a.join(r))}))}))},t.decodePayload=(e,t)=>{const o=e.split(r),n=[];for(let e=0;e{"use strict";function o(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=o,o.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),o=Math.floor(t*this.jitter*e);e=0==(1&Math.floor(10*t))?e-o:e+o}return 0|Math.min(e,this.max)},o.prototype.reset=function(){this.attempts=0},o.prototype.setMin=function(e){this.ms=e},o.prototype.setMax=function(e){this.max=e},o.prototype.setJitter=function(e){this.jitter=e}},7046:function(e,t,o){"use strict";var n=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=o(3084),r=o(4168);Object.defineProperty(t,"Manager",{enumerable:!0,get:function(){return r.Manager}});const s=o(8312);Object.defineProperty(t,"Socket",{enumerable:!0,get:function(){return s.Socket}});const i=n(o(1227)).default("socket.io-client"),c={};function l(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};const o=a.url(e,t.path||"/socket.io"),n=o.source,s=o.id,l=o.path,u=c[s]&&l in c[s].nsps;let d;return t.forceNew||t["force new connection"]||!1===t.multiplex||u?(i("ignoring socket cache for %s",n),d=new r.Manager(n,t)):(c[s]||(i("new io instance for %s",n),c[s]=new r.Manager(n,t)),d=c[s]),o.query&&!t.query&&(t.query=o.queryKey),d.socket(o.path,t)}t.io=l,t.connect=l,t.default=l,Object.assign(l,{Manager:r.Manager,Socket:s.Socket,io:l,connect:l});var u=o(7116);Object.defineProperty(t,"protocol",{enumerable:!0,get:function(){return u.protocol}}),e.exports=l},4168:function(e,t,o){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,o,n){void 0===n&&(n=o),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[o]}})}:function(e,t,o,n){void 0===n&&(n=o),e[n]=t[o]}),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 o in e)"default"!==o&&Object.prototype.hasOwnProperty.call(e,o)&&n(t,e,o);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=o(4679),c=o(8312),l=r(o(7116)),u=o(7149),d=o(5159),p=o(5260),h=s(o(1227)).default("socket.io-client:manager");class m extends p.Emitter{constructor(e,t){var o;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!==(o=t.randomizationFactor)&&void 0!==o?o:.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 n=t.parser||l;this.encoder=new n.Encoder,this.decoder=new n.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,o=this;this._readyState="opening",this.skipReconnect=!1;const n=u.on(t,"open",(function(){o.onopen(),e&&e()})),a=u.on(t,"error",(t=>{h("error"),o.cleanup(),o._readyState="closed",this.emitReserved("error",t),e?e(t):o.maybeReconnectOnOpen()}));if(!1!==this._timeout){const e=this._timeout;h("connect attempt will timeout after %d",e),0===e&&n();const o=this.setTimeoutFn((()=>{h("connect attempt timed out after %d",e),n(),t.close(),t.emit("error",new Error("timeout"))}),e);this.opts.autoUnref&&o.unref(),this.subs.push((function(){clearTimeout(o)}))}return this.subs.push(n),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 o=this.nsps[e];return o||(o=new c.Socket(this,e,t),this.nsps[e]=o),o}_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 o=0;oe())),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 o=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&&o.unref(),this.subs.push((function(){clearTimeout(o)}))}}onreconnect(){const e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}t.Manager=m},7149:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.on=void 0,t.on=function(e,t,o){return e.on(t,o),function(){e.off(t,o)}}},8312:function(e,t,o){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Socket=void 0;const a=o(7116),r=o(7149),s=o(5260),i=n(o(1227)).default("socket.io-client:socket"),c=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class l extends s.Emitter{constructor(e,t,o){super(),this.connected=!1,this.receiveBuffer=[],this.sendBuffer=[],this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=t,o&&o.auth&&(this.auth=o.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(c.hasOwnProperty(e))throw new Error('"'+e+'" is a reserved event name');t.unshift(e);const o={type:a.PacketType.EVENT,data:t,options:{}};if(o.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 n=t.pop();this._registerAckCallback(e,n),o.id=e}const n=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return!this.flags.volatile||n&&this.connected?this.connected?(this.notifyOutgoingListeners(o),this.packet(o)):this.sendBuffer.push(o):i("discard packet as the transport is not currently writable"),this.flags={},this}_registerAckCallback(e,t){const o=this.flags.timeout;if(void 0===o)return void(this.acks[e]=t);const n=this.io.setTimeoutFn((()=>{delete this.acks[e];for(let t=0;t{this.io.clearTimeoutFn(n),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 o of t)o.apply(this,e)}super.emit.apply(this,e)}ack(e){const t=this;let o=!1;return function(...n){o||(o=!0,i("sending ack %j",n),t.packet({type:a.PacketType.ACK,id:e,data:n}))}}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 o=0;o{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.reconstructPacket=t.deconstructPacket=void 0;const n=o(790);function a(e,t){if(!e)return e;if(n.isBinary(e)){const o={_placeholder:!0,num:t.length};return t.push(e),o}if(Array.isArray(e)){const o=new Array(e.length);for(let n=0;n=0&&e.num{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Decoder=t.Encoder=t.PacketType=t.protocol=void 0;const n=o(5260),a=o(3155),r=o(790),s=o(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),o=this.encodeAsString(t.packet),n=t.buffers;return n.unshift(o),n}};class c extends n.Emitter{constructor(e){super(),this.reviver=e}add(e){let t;if("string"==typeof e){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");t=this.decodeString(e),t.type===i.BINARY_EVENT||t.type===i.BINARY_ACK?(this.reconstructor=new l(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 o={type:Number(e.charAt(0))};if(void 0===i[o.type])throw new Error("unknown packet type "+o.type);if(o.type===i.BINARY_EVENT||o.type===i.BINARY_ACK){const n=t+1;for(;"-"!==e.charAt(++t)&&t!=e.length;);const a=e.substring(n,t);if(a!=Number(a)||"-"!==e.charAt(t))throw new Error("Illegal attachments");o.attachments=Number(a)}if("/"===e.charAt(t+1)){const n=t+1;for(;++t&&","!==e.charAt(t)&&t!==e.length;);o.nsp=e.substring(n,t)}else o.nsp="/";const n=e.charAt(t+1);if(""!==n&&Number(n)==n){const n=t+1;for(;++t;){const o=e.charAt(t);if(null==o||Number(o)!=o){--t;break}if(t===e.length)break}o.id=Number(e.substring(n,t+1))}if(e.charAt(++t)){const n=this.tryParse(e.substr(t));if(!c.isPayloadValid(o.type,n))throw new Error("invalid payload");o.data=n}return s("decoded %s as %j",e,o),o}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=c;class l{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 o="function"==typeof ArrayBuffer,n=Object.prototype.toString,a="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===n.call(Blob),r="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===n.call(File);function s(e){return o&&(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,o){if(!t||"object"!=typeof t)return!1;if(Array.isArray(t)){for(let o=0,n=t.length;o{"use strict";function n(e){if(e)return function(e){for(var t in n.prototype)e[t]=n.prototype[t];return e}(e)}o.r(t),o.d(t,{Emitter:()=>n}),n.prototype.on=n.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},n.prototype.once=function(e,t){function o(){this.off(e,o),t.apply(this,arguments)}return o.fn=t,this.on(e,o),this},n.prototype.off=n.prototype.removeListener=n.prototype.removeAllListeners=n.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var o,n=this._callbacks["$"+e];if(!n)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 o in t)__webpack_require__.o(t,o)&&!__webpack_require__.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},__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__(8238),__webpack_require__(112),__webpack_require__(3336),__webpack_require__(2868),__webpack_require__(4719),__webpack_require__(3131),__webpack_require__(3526),__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 5448a72..cf42bd3 100644 --- a/cheatGUI/src/hacks/pets.ts +++ b/cheatGUI/src/hacks/pets.ts @@ -217,19 +217,30 @@ new Hack(category.pets, "Edit Kennel", "Allows you to directly edit your pets.") console.log(s(parseInt(KennelSlot.value))); }); -// End Kennel +// End Edit Kennel // Begin Backup Kennel new Hack(category.pets, "Backup Kennel", "Makes a backup of your kennel to your chrome local storage.").setClick(async () => { - + localStorage.setItem("prodigy-kennel-backup", JSON.stringify(_.player.kennel._petTeam)); + return Toast.fire("Backed up!", "Your kennel is now backed up to the local storage.", "success"); }); // End Backup Kennel // Begin Restore Kennel new Hack(category.pets, "Restore Kennel", "Restores a backup of your kennel from the local storage... if you have one.").setClick(async () => { - + const backup : string | null = localStorage.getItem("prodigy-kennel-backup"); + if (backup === null) { + return Swal.fire({ + title: "No backup found", + html: "There is no backup of your kennel in the local storage. Make sure to back up your kennel before trying to load it.", + icon: "error" + }); + } else { + _.player.kennel._petTeam = JSON.parse(backup); + return Toast.fire("Restored!", "Your kennel backup should be restored", "success"); + } }); // End Restore Kennel From 97e659bb5595e8f982c9889daf50c7ed4e389fa9 Mon Sep 17 00:00:00 2001 From: gemsvido Date: Wed, 31 Aug 2022 16:25:51 -0700 Subject: [PATCH 06/17] we fixed it a long time ago --- meta/webstores/FIREFOX.md | 5 ----- 1 file changed, 5 deletions(-) diff --git a/meta/webstores/FIREFOX.md b/meta/webstores/FIREFOX.md index 601f647..33b1f01 100644 --- a/meta/webstores/FIREFOX.md +++ b/meta/webstores/FIREFOX.md @@ -1,10 +1,5 @@ ## How to hack Prodigy: Mozilla Firefox (Firefox Addons Store) -
                - -### WARNING: Sorry, but PHEx currently doesn't work on Firefox. Use a different browser for now. - -
                From 0fcf33538d2d470ee8a2bf988e6f58e8bf3ea013 Mon Sep 17 00:00:00 2001 From: gemsvido Date: Wed, 31 Aug 2022 16:34:25 -0700 Subject: [PATCH 07/17] copy paste ends lives i guess. --- meta/manual/FIREFOX.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/manual/FIREFOX.md b/meta/manual/FIREFOX.md index 8257fa6..2e63fa4 100644 --- a/meta/manual/FIREFOX.md +++ b/meta/manual/FIREFOX.md @@ -7,7 +7,7 @@
                1. Open **Firefox**. -2. In Brave, enter ``about:debugging#/runtime/this-firefox`` in the URL bar. +2. In Firefox, enter ``about:debugging#/runtime/this-firefox`` in the URL bar. 4. Next to **Temporary Extensions**, you should see a button that says **Load Temporary Add-on...**. 5. [Download PHEx.zip](https://github.com/ProdigyPNP/ProdigyMathGameHacking/releases/2.2.1). Only versions 2.x.x will work, because Firefox currently does not support Manifest V3 extensions. 6. Go back to the add-on debugging page and click **Load Temporary Add-on...**. From 7bb73af672f9c27379b357aaf7c7c87341f520b1 Mon Sep 17 00:00:00 2001 From: gemsvido Date: Wed, 31 Aug 2022 16:35:05 -0700 Subject: [PATCH 08/17] phex 3.0.1 fixes mozilla fiefox --- meta/manual/FIREFOX.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meta/manual/FIREFOX.md b/meta/manual/FIREFOX.md index 2e63fa4..8e40c97 100644 --- a/meta/manual/FIREFOX.md +++ b/meta/manual/FIREFOX.md @@ -9,9 +9,9 @@ 1. Open **Firefox**. 2. In Firefox, enter ``about:debugging#/runtime/this-firefox`` in the URL bar. 4. Next to **Temporary Extensions**, you should see a button that says **Load Temporary Add-on...**. -5. [Download PHEx.zip](https://github.com/ProdigyPNP/ProdigyMathGameHacking/releases/2.2.1). Only versions 2.x.x will work, because Firefox currently does not support Manifest V3 extensions. +5. [Download PHEx.zip](https://github.com/ProdigyPNP/ProdigyMathGameHacking/releases/latest). 6. Go back to the add-on debugging page and click **Load Temporary Add-on...**. -7. Select `2.x.x-PHEx.zip`. +7. Select `x.x.x-PHEx.zip`. 8. You should see a new extension called `Prodigy Hacking Extension | PHEx` in your extensions. 9. Go to [Prodigy](https://play.prodigygame.com) (``play.prodigygame.com``). 10. Log in as usual to Prodigy. REMEMBER THAT WE STILL RECCOMMEND YOU TO LOG IN WITH A SECOND ACCOUNT TO PREVENT ACCEDENTALLY CORRUPTING YOUR MAIN ACCOUNT. From 365011537ab7e21e63a689ad441d785af990f74c Mon Sep 17 00:00:00 2001 From: gemsvido Date: Thu, 1 Sep 2022 00:03:14 -0700 Subject: [PATCH 09/17] All we gotta do now is fix the insane size due to circular prodigy objects (aka shit) --- cheatGUI/dist/bundle.js | 3 ++- cheatGUI/dist/bundle.js.LICENSE.txt | 1 + cheatGUI/package-lock.json | 7 +++---- cheatGUI/package.json | 3 ++- cheatGUI/src/hacks/inventory.ts | 5 ----- cheatGUI/src/hacks/pets.ts | 8 +++++--- cheatGUI/src/hacks/utility.ts | 3 ++- cheatGUI/src/utils/hackify.ts | 7 ++++--- cheatGUI/src/utils/kennel.ts | 2 +- cheatGUI/tsconfig.json | 2 +- 10 files changed, 21 insertions(+), 20 deletions(-) create mode 100644 cheatGUI/dist/bundle.js.LICENSE.txt diff --git a/cheatGUI/dist/bundle.js b/cheatGUI/dist/bundle.js index 686d685..b1a786a 100644 --- a/cheatGUI/dist/bundle.js +++ b/cheatGUI/dist/bundle.js @@ -1 +1,2 @@ -(()=>{var __webpack_modules__={8844:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))}}n=[o,t,o(4759),o(9820),o(2852),o(4719)],void 0===(a=function(e,t,o,n,a,r){"use strict";new n.Toggler(n.category.battle,"Disable math [PvP, PvE]","Disable math in PvP, PvE, anywhere! This doesn't work in the Floatling town.").setEnabled(s((function*(){return a._.constants.constants["GameConstants.Debug.EDUCATION_ENABLED"]=!1,o.Toast.fire("Enabled!","You will no longer do Math!","success")}))).setDisabled(s((function*(){return a._.constants.constants["GameConstants.Debug.EDUCATION_ENABLED"]=!0,o.Toast.fire("Disabled!","You will now do Math!","success")}))),new n.Toggler(n.category.battle,"Instant Kill [PvE]","Makes your spells do insane damage in PvE!").setEnabled(s((function*(){return a.player.modifiers.damage=a.VERY_LARGE_NUMBER,o.Toast.fire("Enabled!","You will now do insane damage in PvE!","success")}))).setDisabled((()=>(a.player.modifiers.damage=1,o.Toast.fire("Disabled!","You will no longer do insane damage in PvE!","success")))),new n.Hack(n.category.battle,"PvP Health [PvP]","Increases your HP in PvP by a hell ton.").setClick(s((function*(){return a.player.pvpHP=a.VERY_LARGE_NUMBER,a.player.getMaxHearts=()=>a.VERY_LARGE_NUMBER,o.Toast.fire("Success!","You now have lots of health!","success")}))),new n.Hack(n.category.battle,"Escape Battle [PvP, PvE]","Escape any battle, PvP or PvE!").setClick(s((function*(){var e=a.game.state.current;return"PVP"===e?(Object.fromEntries(a._.instance.game.state.states).PVP.endPVP(),o.Toast.fire("Escaped!","You have successfully escaped from the PvP battle.","success")):"CoOp"===e?(a.prodigy.world.$(a.player.data.zone),o.Toast.fire("Escaped!","You have successfully escaped from the battle.","success")):["Battle","SecureBattle"].includes(e)?(Object.fromEntries(a._.instance.game.state.states)[e].runAwayCallback(),o.Toast.fire("Escaped!","You have successfully escaped from the PvE battle.","success")):o.Toast.fire("Invalid State.","You are currently not in a battle.","error")}))),new n.Hack(n.category.battle,"Win Battle [PvE]","Instantly win a battle in PvE.").setClick(s((function*(){var e=a.game.state.current;switch((0,r.BattleInfo)("Current State: "+e),e){case"PVP":case"CoOp":return o.Toast.fire("Invalid State.","PvP is not supported for this hack.","error");case"Battle":return Object.fromEntries(a._.instance.game.state.states).Battle.startVictory(),o.Toast.fire("Victory!","You have successfully won the battle.","success");case"SecureBattle":return Object.fromEntries(a._.instance.game.state.states).SecureBattle.battleVictory(),o.Toast.fire("Victory!","You have successfully won the battle.","success");default:return o.Toast.fire("Invalid State.","You are currently not in a battle.","error")}}))),new n.Hack(n.category.battle,"Set Battle Hearts [PvP, PvE]","Sets your hearts in battle, automatically raise your max hearts in PvP or PvE.").setClick(s((function*(){var e=yield o.NumberInput.fire("Health Amount","How much HP do you want?","question");if(void 0!==e.value)return a.player.getMaxHearts=()=>+e.value,a.player.pvpHP=+e.value,a.player.data.hp=+e.value,o.Toast.fire("Success!","Your hearts have been set.","success")}))),new n.Hack(n.category.battle,"Fill Battle Energy [PvP, PvE]","Fills up your battle energy, if you are in PvP or PvE.").setClick(s((function*(){var e=a.game.state.getCurrentState();return"teams"in e?(e.teams[0].setEnergy(99),o.Toast.fire("Success!","Your battle energy has been filled.","success")):o.Toast.fire("Error","You are currently not in a battle.","error")}))),new n.Hack(n.category.battle,"Heal Team [PvE]","Instantly heals you and your pets, if you are in PvE.").setClick(s((function*(){var e=a.game.state.current;return"PVP"===e||"CoOp"===e?o.Toast.fire("Invalid State.","PvP is not supported for this hack.","error"):["Battle","SecureBattle"].includes(e)?(a.player.heal(),o.Toast.fire("Success!","Your team has been healed successfully!","success")):o.Toast.fire("Invalid State.","Your are currently not in a battle.","error")})))}.apply(t,n))||(e.exports=a)},9155:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))}}n=[o,t,o(4759),o(9820),o(2852),o(112),o(3131)],void 0===(a=function(e,t,o,n,a,r,i){"use strict";new n.Hack(n.category.beta,"Get all Runes [BETA]").setClick(s((function*(){if((yield o.Confirm.fire({title:"Hang on!",html:"This hack may damage your account with various bugs, for example you may be unable to do Rune Run.

                Proceed?",icon:"warning"})).value){var e,t=parseInt((yield o.NumberInput.fire({title:"Amount",text:"How many of each would you like?",icon:"question",inputValidator:e=>e?"":"Please select which you'd like to get."})).value);if(!isNaN(t))return Array.from(a._.instance.prodigy.gameContainer._inversifyContainer._bindingDictionary._map).forEach((t=>{try{a._.instance.prodigy.gameContainer.get(t[0]).battleData&&(e=t[0])}catch(e){console.log("Error for ".concat(t[0]))}})),a._.instance.prodigy.gameContainer.get(e).battleData._secureCharacterState._data.inventory.orb=(0,r.runeify)(a._.gameData.orb,t),o.Toast.fire("Runes Added!","Your runes have been added!","success")}}))),new n.Hack(n.category.beta,"Edit Pet [BETA]","Edit a pet.").setClick(s((function*(){if(!(yield o.Confirm.fire({title:"Hang on!",html:"This hack may damage your account with various bugs, for example you may be unable to do Rune Run.

                Proceed?",icon:"warning"})).value)return console.log("Cancelled.");var e=yield(0,r.getPet)("Choose the pet to edit.");if(void 0!==e){var t=a.player.kennel.data[e],n=yield o.Swal.fire({input:"select",inputOptions:{level:"Level",attacks:"Attacks",name:"Name"},title:"Edit Property",text:"What do you want to edit?"});if(void 0!==n.value){if("level"===n.value){var s=yield o.NumberInput.fire("Level Number","What level do you want to set your pet to?","question");if(void 0===s.value)return;return t.level=+s.value,o.Toast.fire("Success!","The pet's level has been set.","success")}if("attacks"===n.value){var i=a._.gameData.spell,c=document.createElement("div"),l=document.createElement("select");for(var u of(l.classList.add("selectSpell"),i)){var d=document.createElement("option");d.value=u.ID.toString(),d.innerText="".concat(u.ID,": ").concat(u.name," (").concat(u.data.element,") - Damage: ").concat(u.data.damage),l.options.add(d)}c.append(l),c.append(l.cloneNode(!0));var p=yield o.Swal.fire({title:"Attack List",focusConfirm:!1,showCancelButton:!0,html:c,preConfirm:()=>Array.prototype.slice.call(document.querySelectorAll(".selectSpell")).map((e=>e.options[e.selectedIndex].value))});if(void 0===p.value)return;return t.foreignSpells.splice(0,2,...p.value.map((e=>+e))),o.Toast.fire("Attacks updated!","The attack list of the pet you selected has been edited.","success")}if("name"===n.value){var h=yield o.Input.fire("Input Name","What do you want to name the pet?","question");if(void 0===h.value)return;return t.nickname=h.value,o.Toast.fire("Successfully renamed!","The name of the pet has been changed.","success")}}}}))),new n.Hack(n.category.beta,"Morph Player [BETA]","Morph into a pet, furnishing, or follow.").setClick(s((function*(){if(!(yield o.Confirm.fire("This hack is in BETA","Expect bugs, and it might not work properly.")).value)return console.log("Cancelled");var e=yield o.Swal.fire({title:"Which morph type?",input:"select",inputOptions:{pet:"Pet",dorm:"Furniture",follow:"Follow"},inputPlaceholder:"Morph Type",inputValidator:e=>e?"":"Please select a morph type.",showCancelButton:!0});if(null!=e&&e.value){var t={};a._.gameData[e.value].forEach((e=>t[e.ID]="".concat(e.name," (").concat(e.ID,")")));var n=yield o.Swal.fire({title:"Which morph?",input:"select",inputOptions:t,inputPlaceholder:"Morph ID",inputValidator:e=>e?"":"Please select a morph ID.",showCancelButton:!0});if(n.value)return a.player.getPlayerData().playerTransformation={transformType:e.value,transformID:n.value,maxTime:36e5,timeRemaining:36e5},a.player.appearanceChanged=!0,o.Toast.fire("Morphed!","You've been morphed.","success")}}))),new n.Toggler(n.category.beta,"Toggle Close Popups [BETA]","Automatically closes popups in Prodigy.").setEnabled(s((function*(){return(0,i.PopupInterval)(!0),o.Toast.fire("Enabled","Toggle Close Popups is now enabled.","success")}))).setDisabled(s((function*(){return(0,i.PopupInterval)(!1),o.Toast.fire("Enabled","Toggle Close Popups is now disabled.","success")}))),new n.Hack(n.category.beta,"Hypermax Account [BETA]").setClick(s((function*(){if((yield o.Confirm.fire({title:"Hang on!",html:"This hack will damage your account with various bugs, for example you may be unable to do Rune Run/Arena, amd you will recieve 418s and inavtivity kicks.

                Proceed?",icon:"warning"})).value){a.player.data.gold=99e5,console.log("Set player gold to 9900000.");var e=100..value-2;a.player.data.stars=Math.round((1-Math.pow(1.042,e))/(1-1.042)*20+10),a.player.data.level=100,a.player.getLevel=()=>a.player.data.level,console.log("Set player level to 100"),a.player.data.bountyScore=100,console.log("Set player's bounty points to 100.");for(var t=0;ta.VERY_LARGE_NUMBER,console.log("PvP health obtained.");for(var n=0;n<100;n++)a.player.achievements.data.progress[n]=10;console.log("Obtained all achievements."),a.player.data.tower=100,console.log("Set tower floor to 100."),a.player.getMaxHearts=()=>a.VERY_LARGE_NUMBER,a.player.pvpHP=a.VERY_LARGE_NUMBER,a.player.data.hp=a.VERY_LARGE_NUMBER,console.log("Maxed out PvE health.");var s,i=99e4;r.ids.forEach((e=>{a.player.backpack.data[e]=(0,r.itemify)(a._.gameData[e].filter((t=>"follow"===e?![125,126,127,128,129,134,135,136,137].includes(t.ID):t)),i.value)})),a._.gameData.dorm.forEach((e=>a.player.house.data.items[e.ID]={A:[],N:i.value}));for(var c=()=>a.player.backpack.data.item.findIndex((e=>84===e.ID||85===e.ID||86===e.ID));c()>-1;)a.player.backpack.data.item.splice(c(),1);return o.Toast.fire("Success!","All items added!","success"),console.log("All items added!"),a.player.backpack.data.mount=(0,r.itemify)(a._.gameData.mount,1),console.log("Added all mounts."),a._.gameData.dorm.forEach((e=>a.player.house.data.items[e.ID]={A:[],N:99e4.value})),console.log("Added 990000 of all furniture."),a._.gameData.pet.forEach((e=>{a.player.kennel.addPet(e.ID.toString(),a.VERY_LARGE_NUMBER,26376,100)})),a.player.kennel._encounterInfo._data.pets=[],a._.gameData.pet.map((e=>{a.player.kennel._encounterInfo._data.pets.push({firstSeenDate:Date.now(),ID:e.ID,timesBattled:1,timesRescued:1})})),a.player.kennel.petTeam.forEach((e=>{e&&e.assignRandomSpells&&e.assignRandomSpells()})),console.log("Added all pets."),a._.gameData.pet.filter((e=>[158,166,168].includes(e.ID))).forEach((e=>{a.player.kennel.addPet(e.ID.toString(),a.VERY_LARGE_NUMBER,26376,100)})),a.player.kennel.petTeam.forEach((e=>{e&&e.assignRandomSpells&&e.assignRandomSpells()})),console.log("Added Mythical Epics."),a._.gameData.pet.filter((e=>[125,126,127,128,129,130,131,132,133].includes(e.ID))).forEach((e=>{a.player.kennel.addPet(e.ID.toString(),a.VERY_LARGE_NUMBER,26376,100)})),a.player.kennel.petTeam.forEach((e=>{e&&e.assignRandomSpells&&e.assignRandomSpells()})),console.log("Added Legacy Epics."),a._.constants.constants["GameConstants.Inactivity.LOG_OUT_TIMER_SECONDS"]=0,console.log("Inactivity Kick Disabled."),a.player._playerContainer.walkSpeed=20,console.log("Player walkspeed set to 20."),Array.from(a._.instance.prodigy.gameContainer._inversifyContainer._bindingDictionary._map).forEach((e=>{try{a._.instance.prodigy.gameContainer.get(e[0]).battleData&&(s=e[0])}catch(t){console.log("Error for ".concat(e[0]))}})),a._.instance.prodigy.gameContainer.get(s).battleData._secureCharacterState._data.inventory.orb=(0,r.runeify)(a._.gameData.orb,100),a.player.equipment.setHat(200),a.player.equipment.setBoots(93),a.player.equipment.setOutfit(161),a.player.equipment.setWeapon(196),(0,a.saveCharacter)(),console.log("Character Saved."),a.player.appearanceChanged=!0,console.log("Appearance Refreshed."),a._.instance.prodigy.open.menuCloseAll(),console.log("Popups closed."),(0,a.saveCharacter)(),console.log("Character Saved."),console.log("Max Account Successful."),o.Toast.fire("Maxed!","Check your backpack!","success")}})))}.apply(t,n))||(e.exports=a)},8130:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))}}n=[o,t,o(9820),o(4759),o(2852),o(112)],void 0===(a=function(e,t,o,n,a,r){"use strict";new o.Hack(o.category.inventory,"Item stacker").setClick(s((function*(){var e=yield n.NumberInput.fire("Amount","How many of every item would you like?","question");if(e.value&&(yield n.Confirm.fire("Are you sure you want to get all items in the game?")).value){r.ids.forEach((t=>{a.player.backpack.data[t]=(0,r.itemify)(a._.gameData[t].filter((e=>"follow"===t?![125,126,127,128,129,134,135,136,137].includes(e.ID):e)),e.value)})),a._.gameData.dorm.forEach((t=>a.player.house.data.items[t.ID]={A:[],N:e.value}));for(var t=()=>a.player.backpack.data.item.findIndex((e=>84===e.ID||85===e.ID||86===e.ID));t()>-1;)a.player.backpack.data.item.splice(t(),1);return n.Toast.fire("Success!","All items added!","success")}}))),new o.Hack(o.category.inventory,"Clear inventory").setClick(s((function*(){(yield n.Confirm.fire("Are you sure you want to clear your inventory?")).value&&(Object.keys(a.player.backpack.data).forEach((e=>a.player.backpack.data[e]=[])),n.Toast.fire("Success!","Inventory cleared.","success"))}))),new o.Hack(o.category.inventory,"Selector (Basic)").setClick(s((function*(){yield n.Swal.fire({title:"What would you like to obtain?",input:"select",inputOptions:r.names,inputPlaceholder:"Select...",inputValidator:e=>e?"":"Please select which you'd like to obtain.",showCancelButton:!0}).then(function(){var e=s((function*(e){var t=parseInt(e.value),o=r.names[t],s=r.ids[t];if(o){var i=yield n.NumberInput.fire("Amount","How many each object would you like?","question");i.value&&(yield n.Confirm.fire("Are you sure you want to get all ".concat(o.toLowerCase(),"?"))).value&&(a.player.backpack.data[s]=(0,r.itemify)(a._.gameData[s].filter((e=>"follow"===s?![125,126,127,128,129,134,135,136,137].includes(e.ID):e)),i.value),n.Toast.fire("".concat(o," Added!"),"All ".concat(o.toLowerCase()," have been added to your inventory!"),"success"),(0,a.saveCharacter)())}}));return function(t){return e.apply(this,arguments)}}())}))),new o.Hack(o.category.inventory,"Selector (Advanced)","Choose a specific object and quantity to obtain.").setClick(s((function*(){yield n.Swal.fire({title:"What would you like to obtain?",input:"select",inputOptions:r.names,inputPlaceholder:"Select...",inputValidator:e=>e?"":"Please select which you'd like to obtain.",showCancelButton:!0}).then(function(){var e=s((function*(e){if(a._.gameData[r.ids[e.value]]){var t=[];a._.gameData[r.ids[e.value]].forEach((e=>{t.push(e.data.name)})),yield n.Swal.fire({title:"What specific object categorized as ".concat(r.names[e.value].toLowerCase()," would you like to get?"),input:"select",inputOptions:t,inputPlaceholder:"Select...",inputValidator:e=>e?"":"Please select which you'd like to get.",showCancelButton:!0}).then(function(){var t=s((function*(t){var o=parseInt(t.value);if(a._.gameData[r.ids[e.value]][o]){var s=yield n.NumberInput.fire("Amount","How many of the object would you like?","question");if(s.value)return-1===a.player.backpack.data[r.ids[e.value]].findIndex((t=>t.ID===a._.gameData[r.ids[e.value]][o].ID))?a.player.backpack.data[r.ids[e.value]].push({ID:a._.gameData[r.ids[e.value]][o].ID,N:s.value}):a.player.backpack.data[r.ids[e.value]].findIndex((t=>t.ID===a._.gameData[r.ids[e.value]][o].ID)),console.log(a._.gameData[r.ids[e.value]][o].ID),(0,a.saveCharacter)(),n.Toast.fire("".concat(r.names[e.value]," Added!"),"Your selected ".concat(r.names[e.value].toLowerCase()," have been added."),"success")}}));return function(e){return t.apply(this,arguments)}}())}}));return function(t){return e.apply(this,arguments)}}())}))),new o.Hack(o.category.inventory,"Obtain All Furniture").setClick(s((function*(){var e=yield n.NumberInput.fire("Amount","How many of each piece of furniture would you like?","question");if(e.value&&(yield n.Confirm.fire("Are you sure you want to get all furniture?")).value)return a._.gameData.dorm.forEach((t=>a.player.house.data.items[t.ID]={A:[],N:e.value})),n.Toast.fire("Furniture Added!","All furniture has been added to your inventory!","success")}))),new o.Hack(o.category.inventory,"Obtain All Mounts","This gives you all of the mounts in the game.").setClick(s((function*(){return a.player.backpack.data.mount=(0,r.itemify)(a._.gameData.mount,1),n.Toast.fire("Mounts Added!","All mounts have been added to your inventory!")}))),new o.Hack(o.category.inventory,"Remove item").setClick(s((function*(){var e=yield n.Swal.fire({title:"What category would you like to remove an item from?",input:"select",inputOptions:r.names,inputPlaceholder:"Select...",inputValidator:e=>e?"":"Please select which you'd like to obtain.",showCancelButton:!0});if(a._.gameData[r.ids[e.value]]){var t=a._.gameData[r.ids[e.value]].map((e=>e.data.name)),o=yield n.Swal.fire({title:"What specific object categorized as ".concat(r.names[e.value].toLowerCase()," would you like to remove?"),input:"select",inputOptions:t,inputPlaceholder:"Select...",inputValidator:e=>e?"":"Please select which you'd like to get.",showCancelButton:!0});if(o=parseInt(o.value),a._.gameData[r.ids[e.value]][o]){var s=yield n.NumberInput.fire("Amount","How many of the object would you like to remove?","question");if(s.value){if(-1!==a.player.backpack.data[r.ids[e.value]].findIndex((t=>t.ID===a._.gameData[r.ids[e.value]][o].ID))){var i=a.player.backpack.data[r.ids[e.value]].findIndex((t=>t.ID===a._.gameData[r.ids[e.value]][o].ID));return a.player.backpack.data[r.ids[e.value]][i].N-=parseInt(s.value),a.player.backpack.data[r.ids[e.value]][i].N<=0&&a.player.backpack.data[r.ids[e.value]].splice(i,1),(0,a.saveCharacter)(),n.Toast.fire("Removed!","Successfully removed ".concat(s.value," ").concat(a._.gameData[r.ids[e.value]][o].name,"!"),"success")}yield n.Swal.fire("Item Does Not Exist","You do not have any ".concat(a._.gameData[r.ids[e.value]][o].name,"."),"error")}}}}))),new o.Hack(o.category.inventory,"Obtain All Furniture").setClick(s((function*(){return(yield n.Confirm.fire("Are you sure you want to get all furniture?")).value?(a._.gameData.dorm.forEach((e=>a.player.house.data.items[e.ID]={A:[],N:a.VERY_LARGE_NUMBER})),n.Toast.fire("Furniture Added!","All furniture have been added to your inventory!","success")):console.log("Cancelled.")})))}.apply(t,n))||(e.exports=a)},8346:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))}}n=[o,t,o(9820),o(4759),o(2852),o(112)],void 0===(a=function(e,t,o,n,a,r){"use strict";new o.Hack(o.category.location,"Teleport To Map (interactive)").setClick(s((function*(){var e=n.Swal.mixin({focusConfirm:!1,showCancelButton:!0,preConfirm:()=>{var e;return null===(e=document.querySelector(".radioDiv[checked]"))||void 0===e?void 0:e.getAttribute("zone")}}),t=document.createElement("div");t.classList.add("radioContainer");var o=function(e){var o=document.createElement("DIV");o.classList.add("radioDiv"),o.setAttribute("zone",e);var n=a.locations[e];n?o.style.backgroundImage="url(".concat(n,")"):o.innerText=e,o.onclick=()=>{document.querySelectorAll(".radioDiv[checked]").forEach((e=>e.removeAttribute("checked"))),o.setAttribute("checked","")},t.append(o)};for(var r of Object.keys(a.prodigy.world.zones))o(r);var s=yield e.fire({title:"Teleport Zone",html:t,customClass:{popup:"radioSwal"}});if(s.value){var i=Object.keys(a.prodigy.world.zones[s.value].maps),c=yield n.Swal.fire({input:"select",inputOptions:new Map(i.map((e=>[e,e]))),title:"Map",text:"Which map in the zone do you want to teleport to?"});if(c.value){var l=(yield n.NumberInput.fire("Please enter the x to teleport to. (Try 500?)")).value||500,u=(yield n.NumberInput.fire("Please enter the y to teleport to. (Try 500?)")).value||500;return a.prodigy.world.zones[s.value].teleport(c.value,l,u,{},{}),n.Toast.fire("Teleported","You have been teleported!","success")}}}))),new o.Hack(o.category.location,"Teleport to house by userID").setClick(s((function*(){var e=(yield n.NumberInput.fire("Please enter the userID.")).value;if(e)return(0,r.toHouse)(e),n.Toast.fire("Teleported!","You have been teleported!","success")}))),new o.Hack(o.category.location,"Get Map Location").setClick(s((function*(){var e=a.player.data.zone;navigator.clipboard.writeText(e).then(s((function*(){return console.log("Async: Copying to clipboard was successful!"),n.Swal.fire({title:"Map Location",html:"You are at
                ".concat(e," .
                You can save this to get to the same zone.

                Your location is has also been copied to your clipboard."),icon:"info"})})),function(){var t=s((function*(t){return console.error("Async: Could not copy text: ",t),n.Swal.fire({title:"Map Location",html:"You are at
                ".concat(e," .
                You can save this to get to the same zone."),icon:"info"})}));return function(e){return t.apply(this,arguments)}}())})))}.apply(t,n))||(e.exports=a)},3344:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))}}n=[o,t,o(9820),o(2852),o(4759)],void 0===(a=function(e,t,o,n,a){"use strict";new o.Toggler(o.category.minigames,"69x Walk Speed [Dyno Dig]","Walk so fast that you're teleporting, in Dyno Dig.").setEnabled(s((function*(){return n._.instance.game.state.states.get("DinoDig").walkSpeed=69,a.Toast.fire("Enabled!","You will now walk so fast that you're teleporting in Dyno Dig.","success")}))).setDisabled(s((function*(){return n._.instance.game.state.states.get("DinoDig").walkSpeed=1.5,a.Toast.fire("Disabled!","You will now walk at normal speed, in Dyno Dig.","success")})))}.apply(t,n))||(e.exports=a)},465:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))}}n=[o,t,o(4759),o(9820),o(2852),o(8238)],void 0===(a=function(e,t,o,n,a,r){"use strict";new n.Hack(n.category.misc,"Skip Tutorial").setClick(s((function*(){var e=(e,t,o,n)=>{a._.instance.prodigy.world.getZone(e).testQuest(t,o,n);try{Object.fromEntries(a._.instance.game.state.states).TileScreen.process()}catch(e){}};e("house",2),e("academy",2),a.player.state.set("tutorial-0",4),a.player.backpack.addKeyItem(13,0),a.player.tutorial.data.menus[14]=[1],a._.instance.prodigy.open.map(!0,[]),a.player.onTutorialComplete(),a.player.data.level=Math.max(a.player.data.level,5)}))),new n.Toggler(n.category.misc,"Disable Monster Encounters").setEnabled(s((function*(){return a._.constants.constants["GameConstants.Debug.SCALE_ENCOUNTER_DISTANCE"]=0,o.Toast.fire("Enabled!","Monsters will no longer battle you.","success")}))).setDisabled((()=>(a._.constants.constants["GameConstants.Debug.SCALE_ENCOUNTER_DISTANCE"]=1,o.Toast.fire("Disabled!","Monsters will now battle you.","success")))),new n.Toggler(n.category.misc,"Skip enemy turn").setEnabled(s((function*(){return a._.constants.constants["GameConstants.Battle.SKIP_ENEMY_TURN"]=!0,o.Toast.fire("Skipping!","Enemy turns will now be skipped.","success")}))).setDisabled((()=>(a._.constants.constants["GameConstants.Battle.SKIP_ENEMY_TURN"]=!1,o.Toast.fire("Disabled","Enemy turns will no longer be skipped.","success")))),new n.Toggler(n.category.beta,"FPS Counter [BETA]","Shows you a framerate counter").setEnabled(s((function*(){(0,r.startFps)()}))).setDisabled(s((function*(){(0,r.stopFps)()})));try{var i=a.current.user.source.canSpin;new n.Toggler(n.category.misc,"Unlimited Spins","Lets you spin the wheel as many times as you want!").setEnabled(s((function*(){return a.player.canSpin=()=>{},o.Toast.fire("Enabled!","You can now spin the wheel as many times as you want!","success")}))).setDisabled(s((function*(){return a.player.canSpin=i,o.Toast.fire("Disabled!","You can now spin the wheel only when allowed.","success")})))}catch(e){console.error("Unlimited Spins ERROR: "+e)}new n.Hack(n.category.misc,"Bobbify","Converts your account into Bobby Fancywoman.").setClick(s((function*(){if((yield o.Confirm.fire("Are you sure you want your account to be turned into Bobby Fancywoman?","This action is not reversable.")).value)return a.player.name.data.nickname=null,a.player.name.data.firstName=44,a.player.name.data.middleName=754,a.player.name.data.lastName=882,a.player.data.stars=-1e22,a.player.data.level=69,a.player.appearance.setGender("male"),a.player.appearance.setEyeColor(1),a.player.appearance.setFace(4),a.player.appearance.setHair(19,1),a.player.appearance.setSkinColor(1),a.player.equipment.setFollow(19),a.player.equipment.setHat(19),a.player.equipment.setBoots(19),a.player.equipment.setOutfit(19),a.player.equipment.setWeapon(19),o.Toast.fire("Bobbified!","You are now Bobby Fancywoman.","success")}))),new n.Hack(n.category.misc,"Reset Account","Completely resets your account.").setClick(s((function*(){if((yield o.Confirm.fire("Are you sure you want to reset your account?","This action is not reversible.")).value)return a.player.resetAccount(),o.Swal.fire("Reset!","Your account has been reset. Reload Prodigy for the full effect.","success")})));var c=null,l=0;new n.Hack(n.category.misc,"Chat Spammer","Cycles through chat messages pretty fast!").setClick(s((function*(){return c?o.Swal.fire("Already Enabled","Chat Spammer is already enabled. To disable chat spammer, reload Prodigy.","error"):(c=setInterval(s((function*(){a.player.chatID=l,++l>1164&&(l=0)})),90),o.Toast.fire("Spamming!","You're now sending a chat message every 90 milliseconds!","success"))})));var u=null,d=0;new n.Hack(n.category.misc,"High Chat Spammer","Cycles through chat messages hella fast!").setClick(s((function*(){return u?o.Swal.fire("Already Enabled","High Chat Spammer is already enabled. To disable chat spammer, reload Prodigy.","error"):(yield o.Confirm.fire("Warning","This hack may cause lag on weak computers (ex. School Chromebooks).")).value?(u=setInterval(s((function*(){a.player.chatID=d,++d>1164&&(d=0)})),30),o.Toast.fire("Spamming!","You're now sending a chat message every 30 milliseconds!","success")):console.log("Cancelled")})));var p=null,h=0;new n.Hack(n.category.misc,"Chat Spammer on Meth","Cycles through chat messages FAST ASF!").setClick(s((function*(){return p?o.Swal.fire("Already Enabled","Chat Spammer on Meth is already enabled. To disable chat spammer, reload Prodigy.","error"):(yield o.Confirm.fire("Warning","This hack may cause lag on weak computers (ex. School Chromebooks).")).value?(p=setInterval(s((function*(){a.player.chatID=h,++h>1164&&(h=0)})),1),o.Toast.fire("Spamming!","You're now sending a chat message every 1 millisecond!","success")):console.log("Cancelled")}))),new n.Hack(n.category.misc,"[Fix] Fix Battle Crash").setClick(s((function*(){return a.player.kennel.petTeam.forEach((e=>{e&&e.assignRandomSpells&&e.assignRandomSpells()})),o.Toast.fire("Success!","Fixed kennel attack bug!","success")}))),new n.Hack(n.category.misc,"[Fix] Stuck in Unfinished Tower Fix","Takes you out of an unfinished tower if you're stuck in one.").setClick(s((function*(){return a._.instance.prodigy.world.zones.house.teleport("exit"),o.Toast.fire("Success!","You've been teleported outside of your house.","success")}))),new n.Hack(n.category.misc,"uwu","OwO").setClick(s((function*(){return(yield o.Confirm.fire("Are you sure that you want to UwU OwO?","Reload Prodigy to revert UwU.")).value?(Object.chance=e=>{var t={},o=0;for(var n of Object.keys(e).sort(((e,o)=>t[e]-t[o])))t[n]=[],t[n][0]=o+1,t[n][1]=e[n]+o,o=e[n]+o;return t},Object.random=e=>{var t=Object.values(e),o=t[t.length-1][1],n=Math.randint(o);return Object.reverse(e)[t.find((e=>n>=e[0]&&n<=e[1]))]},Array.prototype.join=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:",";return"string"==typeof e?this.reduce(((t,o,n,a)=>t+(nt+(n0&&void 0!==arguments[0]?arguments[0]:",";return"string"==typeof e?this.reduce(((t,o,n)=>t+(n?e+o:o)),""):e instanceof Function?this.reduce(((t,o,n,a)=>t+(n?e(a[n],n,a)+o:o)),""):void 0},String.UWUFX=e=>{var t=Object.chance({"owo :3":20,"✧w✧":20,UwU:20,OwO:10,rawr:10,"uwu :3":5,":3 meow":15,":3":15,X3:15,"*purrs*":15,owo:15,uwu:15,"^w^":15,"x3 rawr":15,owowowowo:15});return e.split(" ").leftJoin(((e,t)=>0===Math.floor(6*Math.random())&&/[A-Za-z]/.test(e[0])?" ".concat(e[0],"-"):" ")).split(" ").join(((e,o)=>0===Math.floor(5*Math.random())?" ".concat(Object.random(t)," "):" "))},String.UWUTable={y:"wy",l:"w",r:"w",ss:"zs",n:"nw",ove:"uv",ome:"um",x:"ks",com:"cum",stu:"stew",au:"aw"},Math.randint=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Math.floor(Math.random()*e-t)+t},String.prototype.escapeRegex=function(){return this.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")},String.prototype.replaceAll=function(e,t){return this.replace(new RegExp(e.toString().escapeRegex(),"gi"),(e=>t))},Object.fromArrays=(e,t)=>{var o={};return e.forEach(((e,n)=>{o[e]=t[n]})),o},Object.reverse=e=>Object.fromArrays(Object.values(e),Object.keys(e)),String.prototype.bulkReplace=function(e){var t=this;for(var o in e)t=t.replaceAll(o,e[o]);return t},String.UWU=e=>String(e).bulkReplace(String.UWUTable),Object.keys(a._.localizer.dataSource._languageData).map((e=>a._.localizer.dataSource._languageData[e]=String.UWUFX(String.UWU(a._.localizer.dataSource._languageData[e])))),Object.values(a._.gameData).map((e=>e.map((e=>[e.data.name&&(e.data.name=String.UWUFX(String.UWU(e.data.name))),e.name&&(e.name=String.UWUFX(String.UWU(e.name))),e.data.flavorText&&(e.data.flavorText=String.UWUFX(String.UWU(e.data.flavorText)))])))),o.Toast.fire("uwu","Reload Prodigy to fix uwu.","success")):console.log("uwu cancelled")})))}.apply(t,n))||(e.exports=a)},8603:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))}}n=[o,t,o(4759),o(9820),o(2852)],void 0===(a=function(e,t,o,n,a){"use strict";var r=null;new n.Hack(n.category.patched,"Arena Point Increaser [Patched]").setClick(s((function*(){return r?o.Swal.fire("Already Enabled","Arena Point Increaser is already enabled.","error"):(yield o.Confirm.fire("This hack is patched.","Running it will probably do nothing.")).value?(r=setInterval(s((function*(){var e=yield(yield fetch("https://api.prodigygame.com/leaderboard-api/season/".concat(a.prodigy.pvpNetworkHandler.seasonID,"/user/").concat(a.player.userID,"/pvp?userID=").concat(a.player.userID),{headers:{authorization:"Bearer ".concat(a.prodigy.network.jwtAuthProvider.getToken()),"content-type":"application/x-www-form-urlencoded; charset=UTF-8"},body:"seasonID=".concat(a.prodigy.pvpNetworkHandler.seasonID,"&action=win"),method:"POST",mode:"cors"})).text();if(""!==e){var t=JSON.parse(e);console.log("[API] ".concat(t.points," Points (+100)"))}else console.log("[API] Failed to add points.")})),60500),o.Swal.fire("Enabled","Arena Point Increaser has been enabled.","success")):console.log("Cancelled")}))),new n.Hack(n.category.patched,"Disable Timeout Dialog [Patched]").setClick(s((function*(){return(yield o.Confirm.fire("This hack is patched.","Running it will probably do nothing.")).value?(a.prodigy.debugMisc.disableTimeoutDialogue(),o.Toast.fire("Enabled","Timeout Dialog has been disabled.","success")):console.log("Cancelled")})))}.apply(t,n))||(e.exports=a)},7736:(module,exports,__webpack_require__)=>{var __webpack_unused_export__,__WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;function asyncGeneratorStep(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function _asyncToGenerator(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var r=e.apply(t,o);function s(e){asyncGeneratorStep(r,n,a,s,i,"next",e)}function i(e){asyncGeneratorStep(r,n,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_require__(112),__webpack_require__(3336)],__WEBPACK_AMD_DEFINE_RESULT__=function(require,exports,swal_1,index_1,util_1,hackify_1,kennel_1){"use strict";__webpack_unused_export__={value:!0},new index_1.Hack(index_1.category.pets,"Get All Pets").setClick(_asyncToGenerator((function*(){return(yield swal_1.Confirm.fire("Would you like to add all pets to your pets?")).value?(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()})),swal_1.Toast.fire("Success!","All pets have been added!","success")):console.log("Cancelled")}))),new index_1.Hack(index_1.category.pets,"Get All Legacy Epics").setClick(_asyncToGenerator((function*(){return(yield swal_1.Confirm.fire("This may damage your account.","Attempting to add legacy epics may damage your account. Would you still like to add all legacy epics to your team?","warning")).value?(util_1._.gameData.pet.filter((e=>[125,126,127,128,129,130,131,132,133].includes(e.ID))).forEach((e=>{util_1.player.kennel.addPet(e.ID.toString(),util_1.VERY_LARGE_NUMBER,26376,100)})),util_1.player.kennel.petTeam.forEach((e=>{e&&e.assignRandomSpells&&e.assignRandomSpells()})),swal_1.Toast.fire("Success!","All legacy epics have been added!","success")):console.log("Cancelled")}))),new index_1.Hack(index_1.category.pets,"Get All Mythical Epics").setClick(_asyncToGenerator((function*(){return(yield swal_1.Confirm.fire("Would you like to add all mythical epics to your pets?")).value?(util_1._.gameData.pet.filter((e=>[158,164,165,166,167,168,169,170,171,189].includes(e.ID))).forEach((e=>{util_1.player.kennel.addPet(e.ID.toString(),util_1.VERY_LARGE_NUMBER,26376,100)})),util_1.player.kennel.petTeam.forEach((e=>{e&&e.assignRandomSpells&&e.assignRandomSpells()})),swal_1.Toast.fire("Success!","All mythical epics have been added!","success")):console.log("Cancelled")}))),new index_1.Hack(index_1.category.pets,"Clear Pets").setClick(_asyncToGenerator((function*(){return(yield swal_1.Confirm.fire("Would you like to delete all of your pets?")).value?(util_1.player.kennel.data.length=0,swal_1.Toast.fire("Success!","Your pets have been cleared!","success")):console.log("Cancelled")}))),new index_1.Hack(index_1.category.pets,"Add Pet","Adds a pet from a list.").setClick(_asyncToGenerator((function*(){var e=yield swal_1.Swal.fire({input:"select",inputOptions:new Map(util_1._.gameData.pet.map((e=>[e.ID.toString(),"".concat(e.ID,": ").concat(e.data.name)]))),title:"Choose Pet",text:"Which pet do you want to obtain?"});if(void 0!==e.value)return util_1.player.kennel.addPet(e.value),util_1.player.kennel._encounterInfo._data.pets.push({firstSeenDate:Date.now(),ID:e.value,timesBattled:1,timesRescued:1}),swal_1.Toast.fire("Success!","Your chosen pet has been added to your pets!","success")}))),new index_1.Hack(index_1.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(_asyncToGenerator((function*(){var petTeam=util_1.player.kennel.petTeam.slice(0);petTeam.shift();var names=petTeam.map((e=>e.getName())),pet=yield swal_1.Swal.fire({title:"Which pet would you like to edit?",input:"select",inputOptions:names,inputPlaceholder:"Select...",inputValidator:e=>e?"":"Please select which you'd like to obtain.",showCancelButton:!0}),amt=yield swal_1.NumberInput.fire("Level","What would you like to set your pet's level to? (Can be set over 100)","question");if(amt.value){var num=amt.value;return eval("player.kennel.petTeam[parseInt(".concat(pet.value,")+1].getLevel = () => {return ").concat(num,"}")),swal_1.Toast.fire("Updated!","The level of your pet was successfully updated. Note: this hack is client-side.","success")}}))),new index_1.Hack(index_1.category.pets,"Delete Pet","Delete a pet.").setClick(_asyncToGenerator((function*(){var e=yield(0,hackify_1.getPet)("Which pet do you wish to delete?");if(void 0!==e)return util_1.player.kennel.data.splice(e,1),swal_1.Toast.fire("Successfully deleted!","The selected pet was deleted successfully.","success")}))),new index_1.Hack(index_1.category.pets,"Edit Kennel","Allows you to directly edit your pets.").setClick(_asyncToGenerator((function*(){null!==(yield(0,kennel_1.GetAction)())&&null!==(yield(0,kennel_1.SelectSlot)())&&console.log(s(parseInt(KennelSlot.value)))}))),new index_1.Hack(index_1.category.pets,"Backup Kennel","Makes a backup of your kennel to your chrome local storage.").setClick(_asyncToGenerator((function*(){return localStorage.setItem("prodigy-kennel-backup",JSON.stringify(util_1._.player.kennel._petTeam)),swal_1.Toast.fire("Backed up!","Your kennel is now backed up to the local storage.","success")}))),new index_1.Hack(index_1.category.pets,"Restore Kennel","Restores a backup of your kennel from the local storage... if you have one.").setClick(_asyncToGenerator((function*(){var e=localStorage.getItem("prodigy-kennel-backup");return null===e?swal_1.Swal.fire({title:"No backup found",html:"There is no backup of your kennel in the local storage. Make sure to back up your kennel before trying to load it.",icon:"error"}):(util_1._.player.kennel._petTeam=JSON.parse(e),swal_1.Toast.fire("Restored!","Your kennel backup should be restored","success"))})))}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),void 0===__WEBPACK_AMD_DEFINE_RESULT__||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)},7939:(module,exports,__webpack_require__)=>{var __webpack_unused_export__,__WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;function asyncGeneratorStep(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function _asyncToGenerator(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var r=e.apply(t,o);function s(e){asyncGeneratorStep(r,n,a,s,i,"next",e)}function i(e){asyncGeneratorStep(r,n,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_require__(112)],__WEBPACK_AMD_DEFINE_RESULT__=function(require,exports,swal_1,index_1,util_1,hackify_1){"use strict";__webpack_unused_export__={value:!0},new index_1.Hack(index_1.category.player,"Max Account").setClick(_asyncToGenerator((function*(){if(!(yield swal_1.Confirm.fire("Are you sure that you want to max your account?","We recommend doing this on an alt.")).value)return console.log("Cancelled");util_1.player.data.gold=99e5,console.log("Set player gold to 9900000.");var e=100..value-2;util_1.player.data.stars=Math.round((1-Math.pow(1.042,e))/(1-1.042)*20+10),util_1.player.data.level=100,util_1.player.getLevel=()=>util_1.player.data.level,console.log("Set player level to 100"),util_1.player.data.bountyScore=100,console.log("Set player's bounty points to 100.");for(var t=0;t{util_1.player.backpack.data[e]=(0,hackify_1.itemify)(util_1._.gameData[e].filter((t=>"follow"===e?![125,126,127,128,129,134,135,136,137].includes(t.ID):t)),1..value)})),util_1._.gameData.dorm.forEach((e=>util_1.player.house.data.items[e.ID]={A:[],N:1..value}));for(var n=()=>util_1.player.backpack.data.item.findIndex((e=>84===e.ID||85===e.ID||86===e.ID));n()>-1;)util_1.player.backpack.data.item.splice(n(),1);swal_1.Toast.fire("Success!","All items added!","success"),console.log("All items added!"),util_1.player.backpack.data.mount=(0,hackify_1.itemify)(util_1._.gameData.mount,1),console.log("Added all mounts.");var a="currency";return util_1.player.backpack.data[a]=(0,hackify_1.itemify)(util_1._.gameData[a].filter((e=>e)),6969420),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.equipment.setHat(200),util_1.player.equipment.setBoots(93),util_1.player.equipment.setOutfit(161),util_1.player.equipment.setWeapon(196),util_1.player.appearanceChanged=!0,console.log("Appearance Refreshed."),(0,util_1.saveCharacter)(),console.log("Character Saved."),console.log("Max Account Successful."),swal_1.Toast.fire("Maxed!","Check your backpack!","success")}))),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)return e.value>1e7?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;return 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");if(void 0!==e.value)return 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");if(void 0!==e.value)return 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;t(util_1._.instance.prodigy.gameContainer.get((0,hackify_1.getMemberModule)()).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"),o=(e,t)=>{var o=document.createElement("select");for(var n of(o.classList.add("selectName"),e.entries())){var a=document.createElement("option");[a.value,a.innerText]=n,t(a.value)&&(a.selected=!0),o.options.add(a)}return o},n=(t,n)=>o(new Map(e.filter((e=>e.data.type===t)).map((e=>[e.ID.toString(),e.name]))),(e=>n(+e)));t.append(n(0,(e=>e===util_1.player.name.data.firstName))),t.append(n(1,(e=>e===util_1.player.name.data.middleName))),t.append(n(2,(e=>e===util_1.player.name.data.lastName))),t.append(o(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");if(level.value)return 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*(){return 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*(){return 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")):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 o=util_1._.instance.prodigy.world.zones[t].getCurrentQuestID();return util_1._.instance.prodigy.world.zones[t].completeQuest(o)?(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)});if(e.value)return 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.toString()).then((function(){return 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){return 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();return 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?");if(e.value)return util_1.player.grade=parseInt(e.value),swal_1.Toast.fire("Success","Successfully changed grade to ".concat(e,"!"),"success")})))}.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,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function _asyncToGenerator(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var r=e.apply(t,o);function s(e){asyncGeneratorStep(r,n,a,s,i,"next",e)}function i(e){asyncGeneratorStep(r,n,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*(){return 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,"Grab UserID of all players on screen","Shows you the UserID and name of every player currently shown on the screen.").setClick(_asyncToGenerator((function*(){var e=util_1.current.playerList;if(0===Object.keys(e).length)return swal_1.Toast.fire("No players found.","There are no other players on the screen.","error");var t="",o=0;return yield Object.keys(e).map((n=>{var a=Object.entries(e)[o][1].nameText.textSource.source;t+="
              • uID: ".concat(n," - ").concat(a,"
              • "),o++})),swal_1.Swal.fire({title:"All players on the screen:",html:t,icon:"info"})}))),new index_1.Hack(index_1.category.utility,"Save Character Locally [Local]","Saves your character locally.").setClick(_asyncToGenerator((function*(){return 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"});return t.ok?swal_1.Toast.fire("Success!","Character has been successfully loaded. Reload for the changes to take effect.","success"):swal_1.Toast.fire("Request failed.","An error occurred while loading the character. Error code: ".concat(t.status),"error")}return 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*(){return(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;return 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*(){return 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);return 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*(){return teleportingInterval=setInterval((()=>{try{util_1.player._playerContainer.walkSpeed=500}catch(e){}})),swal_1.Toast.fire("Success!","Successfully enabled teleport click.","success")}))).setDisabled(_asyncToGenerator((function*(){return 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*(){return util_1._.network.game._paused=!0,swal_1.Toast.fire("Success!","Successfully paused Prodigy.","success")}))).setDisabled(_asyncToGenerator((function*(){return 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)return console.log("Cancelled.");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 swal_1.Swal.fire({title:"Error",html:"Oops! There was an error with the code!
                 ".concat(e," "),icon:"error"})}return 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,o){var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))}}var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};n=[o,t,o(7046),o(2852),o(3526),o(6455),o(4759),o(4719),o(158)],a=function(e,t,o,n,a,r,c,l){"use strict";var u,d,p,h;Object.defineProperty(t,"__esModule",{value:!0}),t.category=t.Toggler=t.Hack=t.toggler=t.wrapper=t.menu=void 0,r=i(r),t.menu=document.createElement("div"),t.wrapper=document.getElementById("game-wrapper"),null===(u=document.getElementById("cheat-menu"))||void 0===u||u.remove(),null===(d=document.getElementById("menu-toggler"))||void 0===d||d.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===(p=t.wrapper)||void 0===p||p.prepend(t.menu),t.toggler=document.createElement("button"),t.toggler.id="menu-toggler";var m=!1;null===(h=t.wrapper)||void 0===h||h.prepend(t.toggler),t.toggler.onclick=()=>{(m=!m)?(t.toggler.innerText="▼",t.menu.style.top="-100vh"):(t.toggler.innerText="▲",t.menu.style.top="10%")},t.toggler.onclick({});var f=document.createElement("DIV");f.classList.add("menu-left"),t.menu.append(f);var g=!0,y=e=>{var t=document.createElement("div");0==g?(t.append(document.createElement("br")),t.append(document.createElement("br"))):g=!1,t.classList.add("menu-area"),t.style.textAlign="center",f.append(t);var o=document.createElement("h1");return o.innerText=e,o.style.textAlign="center",o.style.color="white",t.append(o),t},w=document.createElement("h1");w.classList.add("menu-title"),w.innerText="Prodigy Hacks",w.style.textAlign="center",f.append(w);var b=document.createElement("h2");b.style.fontSize="25px",b.style.color="white",b.innerHTML="
                Press SHIFT to show/hide the menu. Scroll down in the menu for more hacks.",f.append(b);var v=document.createElement("h3");v.style.fontSize="20px",v.innerHTML="\n

                Join our Discord https://dsc.gg/ProdigyPNP!

                \n\n
                \n",v.style.color="white",f.append(v);class _{constructor(e,t,o){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),o&&this.setDesc(o)}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,n.saveCharacter)(),console.log("Triggered ".concat(t.name,"."))})),this}setDesc(e){return this.element.title=e,this.description=e,this}}t.Hack=_,t.Toggler=class extends _{constructor(e,t,o){var n;super(e,t,o),n=this,this.parent=e,this.element.setAttribute("status","false"),this.setClick(s((function*(){var e,t;n.status=!n.status,n.status?(localStorage.setItem(n.name,"true"),yield null===(e=n.enabled)||void 0===e?void 0:e.call(n)):(localStorage.setItem(n.name,"false"),yield null===(t=n.disabled)||void 0===t?void 0:t.call(n))})))}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:y("Player Hacks"),inventory:y("Inventory Hacks"),location:y("Location Hacks"),pets:y("Pet Hacks"),battle:y("Battle Hacks"),minigames:y("Minigame Hacks"),misc:y("Miscellaneous Hacks"),utility:y("Utility Hacks"),beta:y("Beta Testing | Beta Hacks may damage your account"),patched:y("Patched Hacks")},localStorage.hasTip?(0,l.IndexInfo)("Player already has tip."):(s((function*(){yield r.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,(0,l.IndexInfo)("Player was shown the tip.")),localStorage.getItem("level")&&(n._.player.getLevel=()=>localStorage.getItem("level"),(0,l.IndexInfo)("Loaded menu from localStorage."));var k=!0;document.addEventListener("keydown",(function(e){"Shift"==e.key&&((0,l.IndexInfo)("Shift key was pressed."),1==k?((0,l.IndexInfo)("Hiding cheat menu..."),document.getElementById("cheat-menu").style.display="none",document.getElementById("menu-toggler").style.display="none",k=!1,(0,l.IndexInfo)("Hidden cheat menu.")):((0,l.IndexInfo)("Showing cheat menu..."),document.getElementById("cheat-menu").style.display="block",document.getElementById("menu-toggler").style.display="block",k=!0,(0,l.IndexInfo)("Shown cheat menu.")))})),s((function*(){var e,t;(yield c.License.fire("ProdigyPNP",'\n

                \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 ')).value?yield(0,a.statusMessage)():(yield c.NoLicense.fire("ProdigyPNP License","\n

                \n You need to agree to our license to use our hacks. If you changed your mind and now agree to our license, reload Prodigy.\n

                \n ")).value?document.location="":(null===(e=document.getElementById("cheat-menu"))||void 0===e||e.remove(),null===(t=document.getElementById("menu-toggler"))||void 0===t||t.remove())}))()}.apply(t,n),void 0===a||(e.exports=a)},8238:(e,t,o)=>{var n,a;n=[o,t,o(9820)],a=function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stopFps=t.startFps=void 0;var n=document.createElement("button"),a=!1;t.startFps=function(){var e;a=!0,n.id="fps-counter",null===(e=o.wrapper)||void 0===e||e.prepend(n),setInterval((()=>{var e=_.player.game.fps._framerate;a?n.innerText=e.toFixed(2)+" FPS":n.remove()}),300)},t.stopFps=function(){var e;a=!1,null===(e=document.getElementById("fps-counter"))||void 0===e||e.remove()}}.apply(t,n),void 0===a||(e.exports=a)},112:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}n=[o,t,o(2852),o(4759)],a=function(e,t,o,n){"use strict";function a(e){o._.instance.prodigy.loading(!0);var t=t=>{var a=null!=t?t[e]:null;if(null!==a&&void 0!==a.house&&null!==a.house){o._.instance.prodigy.loading(!1);var r=o._.cloneDeep(o._.player.house);return r.setItems(a.house),void 0!==a.data.allowsHouseVisitors&&null!==a.data.allowsHouseVisitors&&a.data.allowsHouseVisitors?o._.instance.prodigy.world._("house",null,null,{house:r,getAllowsHouseVisitors:()=>void 0!==a.data.allowsHouseVisitors&&null!==a.data.allowsHouseVisitors&&a.data.allowsHouseVisitors,setAllowsHouseVisitors:e=>{a.data.allowsHouseVisitors=e}}):n.Swal.fire("Teleporting to ".concat(e," is not allowed."),"Try another user.","error")}};return o._.network.getCharData(e.toString(),["house","data"],t,t),n.Toast.fire("Teleported to house","You have been teleported to the house!","success")}Object.defineProperty(t,"__esModule",{value:!0}),t.getPet=t.teleportToHouse=t.toHouse=t.getMemberModule=t.runeify=t.itemify=t.ids=t.names=void 0,t.names=["Boots","Buddies","Fossils","Hats","Items","Key Items","Tower Town Frames","Tower Town Interiors","Mounts","Outfits","Relics","Weapons","Currencies"],t.ids=["boots","follow","fossil","hat","item","key","mathTownFrame","mathTownInterior","mount","outfit","spellRelic","weapon","currency"],t.itemify=(e,t)=>e.map((e=>({ID:e.ID,N:t}))).filter((e=>void 0!==e)),t.runeify=(e,t)=>e.map((e=>({ID:e.ID,quantity:t}))).filter((e=>void 0!==e)),t.getMemberModule=function(){return o._.player.hasMembership.toString().split('"')[1]},t.toHouse=function(e){if(o._.player.userID!==e){var t=o._.instance.prodigy.friendsListNetworkHandler.friendsList.length,r=o._.instance.prodigy.friendsListNetworkHandler.classList.length;o._.instance.prodigy.gameContainer.get("2e1-e659").create("house-visit","click","hub",t,r,null,null,e).broadcast()}var s=o._.instance.prodigy.world.getZone(o._.instance.prodigy.world.getCurrentZone());return s?s.handleLeaving(2,(()=>a(e))):n.Swal.fire({title:"Error",text:"You are not in a zone!",icon:"error"})},t.teleportToHouse=a;var s=function(){var e,t=(e=function*(e){return(yield n.Swal.fire({input:"select",inputOptions:new Map(o._.player.kennel.data.map(((e,t)=>{var n,a,r;return[t.toString(),"Level ".concat(e.level," - ").concat(null!==(n=null!==(a=e.nickname)&&void 0!==a?a:null===(r=o._.gameData.pet.find((t=>+t.ID==+e.ID)))||void 0===r?void 0:r.data.name)&&void 0!==n?n:"Unknown")]}))),title:"Choose Pet",text:e})).value},function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))});return function(e){return t.apply(this,arguments)}}();t.getPet=s}.apply(t,n),void 0===a||(e.exports=a)},3336:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))}}n=[o,t,o(4759)],a=function(e,t,o){"use strict";function n(){return(n=s((function*(){var e=new Map;e.set("Copy","Copy a slot to another slot"),e.set("Remove","Completley empty one slot");var t=yield o.Swal.fire({input:"select",inputOptions:e,title:"Select Action",text:"Select an action to perform on the Kennel"});return t.value?t.value:null}))).apply(this,arguments)}function a(){return(a=s((function*(){var e=new Map,t=e=>_.player.kennel._petTeam[e]?_.player.kennel._petTeam[e].source?_.player.kennel._petTeam[e].source.name:_.player.kennel._petTeam[e]._userDataPlatform?"Player":"null":"null";e.set("0","[0] Center - ".concat(t(0))),e.set("1","[1] Top - ".concat(t(1))),e.set("2","[2] Bottom - ".concat(t(2)));var n=yield o.Swal.fire({input:"select",inputOptions:e,title:"Select Slot",text:"Select a slot to edit"});return n.value?parseInt(n.value):null}))).apply(this,arguments)}Object.defineProperty(t,"__esModule",{value:!0}),t.SelectSlot=t.GetAction=void 0,t.GetAction=function(){return n.apply(this,arguments)},t.SelectSlot=function(){return a.apply(this,arguments)}}.apply(t,n),void 0===a||(e.exports=a)},2868:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}n=[o,t,o(2852),o(4759)],void 0===(a=function(e,t,o,n){"use strict";window.addEventListener("keydown",(e=>{switch(e.which){case 192:o._.instance.prodigy.open.menuCloseAll();break;case 220:var t=function(){var e,t=(e=function*(){if(!(yield n.Confirm.fire("Kit","Would you like to equip Celestial Gear?")).value)return console.log("Cancelled");o._.player.equipment.setHat(200),o._.player.equipment.setBoots(93),o._.player.equipment.setOutfit(161),o._.player.equipment.setWeapon(196),o._.player.appearanceChanged=!0,n.Toast.fire("Success!","You are now wearing Celestial Armor and wielding a Dual Blade.","success")},function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))});return function(){return t.apply(this,arguments)}}();t()}}))}.apply(t,n))||(e.exports=a)},4719:(e,t,o)=>{var n;n=function(e,t){"use strict";function o(e,o){return""==e||null==e?console.log("["+t.LogPrefix+":unknown] "+o):console.log("["+t.LogPrefix+":"+e+"] "+o)}function n(e,t,n){return o(t,"*"+e.toUpperCase()+"* "+n)}Object.defineProperty(t,"__esModule",{value:!0}),t.UtilityError=t.UtilitySuccess=t.UtilityInfo=t.PlayerError=t.PlayerSuccess=t.PlayerInfo=t.PetsError=t.PetsSuccess=t.PetsInfo=t.PatchedError=t.PatchedSuccess=t.PatchedInfo=t.MiscError=t.MiscSuccess=t.MiscInfo=t.MinigameError=t.MinigameSuccess=t.MinigameInfo=t.LocationError=t.LocationSuccess=t.LocationInfo=t.InventoryError=t.InventorySuccess=t.InventoryInfo=t.BetaError=t.BetaSuccess=t.BetaInfo=t.BattleError=t.BattleSuccess=t.BattleInfo=t.IndexError=t.IndexSuccess=t.IndexInfo=t.StatusLog=t.ConsoleLog=t.LogPrefix=void 0,t.LogPrefix="CheatGUI",t.ConsoleLog=o,t.StatusLog=n,t.IndexInfo=function(e){return n("info","index.ts",e)},t.IndexSuccess=function(e){return n("success","index.ts",e)},t.IndexError=function(e){return n("error","index.ts",e)},t.BattleInfo=function(e){return n("info","battle.ts",e)},t.BattleSuccess=function(e){return n("success","battle.ts",e)},t.BattleError=function(e){return n("error","battle.ts",e)},t.BetaInfo=function(e){return n("info","beta.ts",e)},t.BetaSuccess=function(e){return n("success","beta.ts",e)},t.BetaError=function(e){return n("error","beta.ts",e)},t.InventoryInfo=function(e){return n("info","inventory.ts",e)},t.InventorySuccess=function(e){return n("success","inventory.ts",e)},t.InventoryError=function(e){return n("error","inventory.ts",e)},t.LocationInfo=function(e){return n("info","location.ts",e)},t.LocationSuccess=function(e){return n("success","location.ts",e)},t.LocationError=function(e){return n("error","location.ts",e)},t.MinigameInfo=function(e){return n("info","minigame.ts",e)},t.MinigameSuccess=function(e){return n("success","minigame.ts",e)},t.MinigameError=function(e){return n("error","minigame.ts",e)},t.MiscInfo=function(e){return n("info","misc.ts",e)},t.MiscSuccess=function(e){return n("success","misc.ts",e)},t.MiscError=function(e){return n("error","misc.ts",e)},t.PatchedInfo=function(e){return n("info","patched.ts",e)},t.PatchedSuccess=function(e){return n("success","patched.ts",e)},t.PatchedError=function(e){return n("error","patched.ts",e)},t.PetsInfo=function(e){return n("info","pets.ts",e)},t.PetsSuccess=function(e){return n("success","pets.ts",e)},t.PetsError=function(e){return n("error","pets.ts",e)},t.PlayerInfo=function(e){return n("info","player.ts",e)},t.PlayerSuccess=function(e){return n("success","player.ts",e)},t.PlayerError=function(e){return n("error","player.ts",e)},t.UtilityInfo=function(e){return n("info","utility.ts",e)},t.UtilitySuccess=function(e){return n("success","utility.ts",e)},t.UtilityError=function(e){return n("error","utility.ts",e)}}.apply(t,[o,t]),void 0===n||(e.exports=n)},3131:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))}}n=[o,t,o(2852)],a=function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PopupInterval=void 0;var n=!1;t.PopupInterval=function(e){n=e},s((function*(){setInterval(s((function*(){n&&o._.instance.prodigy.open.menuCloseAll()})),200)}))()}.apply(t,n),void 0===a||(e.exports=a)},3526:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}n=[o,t,o(4759)],a=function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.statusMessage=void 0,t.statusMessage=function(){fetch("https://raw.githubusercontent.com/ProdigyPNP/ProdigyMathGameHacking/master/cheatGUI/statusmessage.json?updated=".concat(Date.now())).then((e=>e.json())).then(function(){var e,t=(e=function*(e){if(!1===e.enabled.value)return console.log("Status message is disabled.");yield o.Swal.fire({title:e.get("title"),html:e.get("html"),icon:e.get("icon")})},function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))});return function(e){return t.apply(this,arguments)}}())}}.apply(t,n),void 0===a||(e.exports=a)},4759:function(e,t,o){var n,a,r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};n=[o,t,o(6455)],a=function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NoLicense=t.License=t.Info=t.Confirm=t.Toast=t.NumberInput=t.Input=t.Swal=void 0,o=r(o),t.Swal=o.default,t.Input=t.Swal.mixin({input:"text",showCancelButton:!0,showConfirmButton:!0,toast:!1}),t.NumberInput=t.Input.mixin({toast:!1,input:"number"}),t.Toast=t.Swal.mixin({toast:!0,position:"bottom"}),t.Confirm=t.Swal.mixin({icon:"warning",showCancelButton:!0,toast:!1,confirmButtonText:"Confirm",cancelButtonText:"Cancel"}),t.Info=t.Swal.mixin({icon:"info",showCancelButton:!1,toast:!1}),t.License=t.Swal.mixin({icon:"info",showCancelButton:!0,toast:!1,confirmButtonText:"Agree",cancelButtonText:"Disagree"}),t.NoLicense=t.Swal.mixin({icon:"error",showCancelButton:!0,toast:!1,confirmButtonText:"Reload",cancelButtonText:"Play without hacks"})}.apply(t,n),void 0===a||(e.exports=a)},2852:(e,t,o)=>{var n;n=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.current=t.player=t._=void 0,t._=window._,t.player=t._.player,t.current=window.Boot.prototype.game._state._current;var o=t._.instance;t.game=o.game,t.prodigy=o.prodigy,t.gameData=t._.instance.game.state.states.get("Boot").gameData,t.getItem=(e,o)=>{var n;return null!==(n=t._.gameData[e].find((e=>e.ID===o)))&&void 0!==n?n: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,[o,t]),void 0===n||(e.exports=n)},450:(e,t,o)=>{"use strict";o.d(t,{Z:()=>i});var n=o(8081),a=o.n(n),r=o(3645),s=o.n(r)()(a());s.push([e.id,"@import url(https://fonts.googleapis.com/css?family=Arvo:400,700|Sen:400,700,800&display=swap&subset=latin-ext);"]),s.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;font-size:23px;height:26px;width:50px;border:1px solid rgba(0,0,0,.1)}#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 #fps-counter{z-index:2;position:absolute;border-radius:3px;background-color:rgba(255,255,255,.7333333333);transition:background-color .15s;width:130px;height:26px;font-size:23px;border:1px solid rgba(0,0,0,.1);margin-left:83%}#game-wrapper #fps-counter:hover{background-color:rgba(221,221,221,.7333333333)}#game-wrapper #fps-counter: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:rgba(0,0,0,.55);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;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 i=s},3645:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var o="",n=void 0!==t[5];return t[4]&&(o+="@supports (".concat(t[4],") {")),t[2]&&(o+="@media ".concat(t[2]," {")),n&&(o+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),o+=e(t),n&&(o+="}"),t[2]&&(o+="}"),t[4]&&(o+="}"),o})).join("")},t.i=function(e,o,n,a,r){"string"==typeof e&&(e=[[null,e,void 0]]);var s={};if(n)for(var i=0;i0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=r),o&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=o):u[2]=o),a&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=a):u[4]="".concat(a)),t.push(u))}},t}},8081:e=>{"use strict";e.exports=function(e){return e[1]}},1227:(e,t,o)=>{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 o="color: "+this.color;t.splice(1,0,o,"color: inherit");let n=0,a=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(n++,"%c"===e&&(a=n))})),t.splice(a,0,o)},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=o(2447)(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},2447:(e,t,o)=>{e.exports=function(e){function t(e){let o,a,r,s=null;function i(...e){if(!i.enabled)return;const n=i,a=Number(new Date),r=a-(o||a);n.diff=r,n.prev=o,n.curr=a,o=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,((o,a)=>{if("%%"===o)return"%";s++;const r=t.formatters[a];if("function"==typeof r){const t=e[s];o=r.call(n,t),e.splice(s,1),s--}return o})),t.formatArgs.call(n,e),(n.log||t.log).apply(n,e)}return i.namespace=e,i.useColors=t.useColors(),i.color=t.selectColor(e),i.extend=n,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 n(e,o){const n=t(this.namespace+(void 0===o?":":o)+e);return n.log=this.log,n}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 o;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const n=("string"==typeof e?e:"").split(/[\s,]+/),a=n.length;for(o=0;o{t[o]=e[o]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let o=0;for(let t=0;t{var t=1e3,o=60*t,n=60*o,a=24*n;function r(e,t,o,n){var a=t>=1.5*o;return Math.round(e/o)+" "+n+(a?"s":"")}e.exports=function(e,s){s=s||{};var i,c,l=typeof e;if("string"===l&&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*n;case"minutes":case"minute":case"mins":case"min":case"m":return s*o;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"===l&&isFinite(e))return s.long?(i=e,(c=Math.abs(i))>=a?r(i,c,a,"day"):c>=n?r(i,c,n,"hour"):c>=o?r(i,c,o,"minute"):c>=t?r(i,c,t,"second"):i+" ms"):function(e){var r=Math.abs(e);return r>=a?Math.round(e/a)+"d":r>=n?Math.round(e/n)+"h":r>=o?Math.round(e/o)+"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,o)=>{"use strict";o.r(t),o.d(t,{default:()=>y});var n=o(3379),a=o.n(n),r=o(7795),s=o.n(r),i=o(569),c=o.n(i),l=o(3565),u=o.n(l),d=o(9216),p=o.n(d),h=o(4589),m=o.n(h),f=o(450),g={};g.styleTagTransform=m(),g.setAttributes=u(),g.insert=c().bind(null,"head"),g.domAPI=s(),g.insertStyleElement=p(),a()(f.Z,g);const y=f.Z&&f.Z.locals?f.Z.locals:void 0},3379:e=>{"use strict";var t=[];function o(e){for(var o=-1,n=0;n{"use strict";var t={};e.exports=function(e,o){var n=function(e){if(void 0===t[e]){var o=document.querySelector(e);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(e){o=null}t[e]=o}return t[e]}(e);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(o)}},9216:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},3565:(e,t,o)=>{"use strict";e.exports=function(e){var t=o.nc;t&&e.setAttribute("nonce",t)}},7795:e=>{"use strict";e.exports=function(e){var t=e.insertStyleElement(e);return{update:function(o){!function(e,t,o){var n="";o.supports&&(n+="@supports (".concat(o.supports,") {")),o.media&&(n+="@media ".concat(o.media," {"));var a=void 0!==o.layer;a&&(n+="@layer".concat(o.layer.length>0?" ".concat(o.layer):""," {")),n+=o.css,a&&(n+="}"),o.media&&(n+="}"),o.supports&&(n+="}");var r=o.sourceMap;r&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(r))))," */")),t.styleTagTransform(n,e,t.options)}(t,e,o)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},4589:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},6455:function(e){e.exports=function(){"use strict";const e="SweetAlert2:",t=e=>e.charAt(0).toUpperCase()+e.slice(1),o=t=>{console.warn("".concat(e," ").concat("object"==typeof t?t.join(" "):t))},n=t=>{console.error("".concat(e," ").concat(t))},a=[],r=(e,t)=>{var n;n='"'.concat(e,'" is deprecated and will be removed in the next major release. Please use "').concat(t,'" instead.'),a.includes(n)||(a.push(n),o(n))},s=e=>"function"==typeof e?e():e,i=e=>e&&"function"==typeof e.toPromise,c=e=>i(e)?e.toPromise():Promise.resolve(e),l=e=>e&&Promise.resolve(e)===e,u={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,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",color:void 0,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,willOpen:void 0,didOpen:void 0,didRender:void 0,willClose:void 0,didClose:void 0,didDestroy:void 0,scrollbarPadding:!0},d=["allowEscapeKey","allowOutsideClick","background","buttonsStyling","cancelButtonAriaLabel","cancelButtonColor","cancelButtonText","closeButtonAriaLabel","closeButtonHtml","color","confirmButtonAriaLabel","confirmButtonColor","confirmButtonText","currentProgressStep","customClass","denyButtonAriaLabel","denyButtonColor","denyButtonText","didClose","didDestroy","footer","hideClass","html","icon","iconColor","iconHtml","imageAlt","imageHeight","imageUrl","imageWidth","preConfirm","preDeny","progressSteps","returnFocus","reverseButtons","showCancelButton","showCloseButton","showConfirmButton","showDenyButton","text","title","titleText","willClose"],p={},h=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],m=e=>Object.prototype.hasOwnProperty.call(u,e),f=e=>-1!==d.indexOf(e),g=e=>p[e],y=e=>{m(e)||o('Unknown parameter "'.concat(e,'"'))},w=e=>{h.includes(e)&&o('The parameter "'.concat(e,'" is incompatible with toasts'))},b=e=>{g(e)&&r(e,g(e))},v=e=>{const t={};for(const o in e)t[e[o]]="swal2-"+e[o];return t},_=v(["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","show","hide","close","title","html-container","actions","confirm","deny","cancel","default-outline","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","input-label","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loader","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error","no-war"]),k=v(["success","warning","info","question","error"]),C=()=>document.body.querySelector(".".concat(_.container)),x=e=>{const t=C();return t?t.querySelector(e):null},E=e=>x(".".concat(e)),S=()=>E(_.popup),T=()=>E(_.icon),P=()=>E(_.title),A=()=>E(_["html-container"]),I=()=>E(_.image),D=()=>E(_["progress-steps"]),B=()=>E(_["validation-message"]),O=()=>x(".".concat(_.actions," .").concat(_.confirm)),R=()=>x(".".concat(_.actions," .").concat(_.deny)),M=()=>x(".".concat(_.loader)),L=()=>x(".".concat(_.actions," .").concat(_.cancel)),N=()=>E(_.actions),j=()=>E(_.footer),H=()=>E(_["timer-progress-bar"]),F=()=>E(_.close),q=()=>{const e=Array.from(S().querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])')).sort(((e,t)=>{const o=parseInt(e.getAttribute("tabindex")),n=parseInt(t.getAttribute("tabindex"));return o>n?1:o"-1"!==e.getAttribute("tabindex")));return(e=>{const t=[];for(let o=0;ore(e)))},U=()=>G(document.body,_.shown)&&!G(document.body,_["toast-shown"])&&!G(document.body,_["no-backdrop"]),Y=()=>S()&&G(S(),_.toast),z={previousBodyPadding:null},W=(e,t)=>{if(e.textContent="",t){const o=(new DOMParser).parseFromString(t,"text/html");Array.from(o.querySelector("head").childNodes).forEach((t=>{e.appendChild(t)})),Array.from(o.querySelector("body").childNodes).forEach((t=>{e.appendChild(t)}))}},G=(e,t)=>{if(!t)return!1;const o=t.split(/\s+/);for(let t=0;t{if(((e,t)=>{Array.from(e.classList).forEach((o=>{Object.values(_).includes(o)||Object.values(k).includes(o)||Object.values(t.showClass).includes(o)||e.classList.remove(o)}))})(e,t),t.customClass&&t.customClass[n]){if("string"!=typeof t.customClass[n]&&!t.customClass[n].forEach)return o("Invalid type of customClass.".concat(n,'! Expected string or iterable object, got "').concat(typeof t.customClass[n],'"'));J(e,t.customClass[n])}},K=(e,t)=>{if(!t)return null;switch(t){case"select":case"textarea":case"file":return e.querySelector(".".concat(_.popup," > .").concat(_[t]));case"checkbox":return e.querySelector(".".concat(_.popup," > .").concat(_.checkbox," input"));case"radio":return e.querySelector(".".concat(_.popup," > .").concat(_.radio," input:checked"))||e.querySelector(".".concat(_.popup," > .").concat(_.radio," input:first-child"));case"range":return e.querySelector(".".concat(_.popup," > .").concat(_.range," input"));default:return e.querySelector(".".concat(_.popup," > .").concat(_.input))}},$=e=>{if(e.focus(),"file"!==e.type){const t=e.value;e.value="",e.value=t}},Z=(e,t,o)=>{e&&t&&("string"==typeof t&&(t=t.split(/\s+/).filter(Boolean)),t.forEach((t=>{Array.isArray(e)?e.forEach((e=>{o?e.classList.add(t):e.classList.remove(t)})):o?e.classList.add(t):e.classList.remove(t)})))},J=(e,t)=>{Z(e,t,!0)},X=(e,t)=>{Z(e,t,!1)},Q=(e,t)=>{const o=Array.from(e.children);for(let e=0;e{o==="".concat(parseInt(o))&&(o=parseInt(o)),o||0===parseInt(o)?e.style[t]="number"==typeof o?"".concat(o,"px"):o:e.style.removeProperty(t)},te=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"flex";e.style.display=t},oe=e=>{e.style.display="none"},ne=(e,t,o,n)=>{const a=e.querySelector(t);a&&(a.style[o]=n)},ae=function(e,t){t?te(e,arguments.length>2&&void 0!==arguments[2]?arguments[2]:"flex"):oe(e)},re=e=>!(!e||!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)),se=e=>!!(e.scrollHeight>e.clientHeight),ie=e=>{const t=window.getComputedStyle(e),o=parseFloat(t.getPropertyValue("animation-duration")||"0"),n=parseFloat(t.getPropertyValue("transition-duration")||"0");return o>0||n>0},ce=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const o=H();re(o)&&(t&&(o.style.transition="none",o.style.width="100%"),setTimeout((()=>{o.style.transition="width ".concat(e/1e3,"s linear"),o.style.width="0%"}),10))},le=()=>"undefined"==typeof window||"undefined"==typeof document,ue={},de=e=>new Promise((t=>{if(!e)return t();const o=window.scrollX,n=window.scrollY;ue.restoreFocusTimeout=setTimeout((()=>{ue.previousActiveElement instanceof HTMLElement?(ue.previousActiveElement.focus(),ue.previousActiveElement=null):document.body&&document.body.focus(),t()}),100),window.scrollTo(o,n)})),pe='\n
                \n \n
                  \n
                  \n \n

                  \n
                  \n \n \n
                  \n \n \n
                  \n \n
                  \n \n \n
                  \n
                  \n
                  \n \n \n \n
                  \n
                  \n
                  \n
                  \n
                  \n
                  \n').replace(/(^|\n)\s*/g,""),he=()=>{ue.currentInstance.resetValidationMessage()},me=e=>{const t=(()=>{const e=C();return!!e&&(e.remove(),X([document.documentElement,document.body],[_["no-backdrop"],_["toast-shown"],_["has-column"]]),!0)})();if(le())return void n("SweetAlert2 requires document to initialize");const o=document.createElement("div");o.className=_.container,t&&J(o,_["no-transition"]),W(o,pe);const a="string"==typeof(r=e.target)?document.querySelector(r):r;var r;a.appendChild(o),(e=>{const t=S();t.setAttribute("role",e.toast?"alert":"dialog"),t.setAttribute("aria-live",e.toast?"polite":"assertive"),e.toast||t.setAttribute("aria-modal","true")})(e),(e=>{"rtl"===window.getComputedStyle(e).direction&&J(C(),_.rtl)})(a),(()=>{const e=S(),t=Q(e,_.input),o=Q(e,_.file),n=e.querySelector(".".concat(_.range," input")),a=e.querySelector(".".concat(_.range," output")),r=Q(e,_.select),s=e.querySelector(".".concat(_.checkbox," input")),i=Q(e,_.textarea);t.oninput=he,o.onchange=he,r.onchange=he,s.onchange=he,i.oninput=he,n.oninput=()=>{he(),a.value=n.value},n.onchange=()=>{he(),a.value=n.value}})()},fe=(e,t)=>{e instanceof HTMLElement?t.appendChild(e):"object"==typeof e?ge(e,t):e&&W(t,e)},ge=(e,t)=>{e.jquery?ye(t,e):W(t,e.toString())},ye=(e,t)=>{if(e.textContent="",0 in t)for(let o=0;o in t;o++)e.appendChild(t[o].cloneNode(!0));else e.appendChild(t.cloneNode(!0))},we=(()=>{if(le())return!1;const e=document.createElement("div"),t={WebkitAnimation:"webkitAnimationEnd",animation:"animationend"};for(const o in t)if(Object.prototype.hasOwnProperty.call(t,o)&&void 0!==e.style[o])return t[o];return!1})(),be=(e,t)=>{const o=N(),n=M();t.showConfirmButton||t.showDenyButton||t.showCancelButton?te(o):oe(o),V(o,t,"actions"),function(e,t,o){const n=O(),a=R(),r=L();ve(n,"confirm",o),ve(a,"deny",o),ve(r,"cancel",o),function(e,t,o,n){if(!n.buttonsStyling)return X([e,t,o],_.styled);J([e,t,o],_.styled),n.confirmButtonColor&&(e.style.backgroundColor=n.confirmButtonColor,J(e,_["default-outline"])),n.denyButtonColor&&(t.style.backgroundColor=n.denyButtonColor,J(t,_["default-outline"])),n.cancelButtonColor&&(o.style.backgroundColor=n.cancelButtonColor,J(o,_["default-outline"]))}(n,a,r,o),o.reverseButtons&&(o.toast?(e.insertBefore(r,n),e.insertBefore(a,n)):(e.insertBefore(r,t),e.insertBefore(a,t),e.insertBefore(n,t)))}(o,n,t),W(n,t.loaderHtml),V(n,t,"loader")};function ve(e,o,n){ae(e,n["show".concat(t(o),"Button")],"inline-block"),W(e,n["".concat(o,"ButtonText")]),e.setAttribute("aria-label",n["".concat(o,"ButtonAriaLabel")]),e.className=_[o],V(e,n,"".concat(o,"Button")),J(e,n["".concat(o,"ButtonClass")])}const _e=(e,t)=>{const n=C();n&&(function(e,t){"string"==typeof t?e.style.background=t:t||J([document.documentElement,document.body],_["no-backdrop"])}(n,t.backdrop),function(e,t){t in _?J(e,_[t]):(o('The "position" parameter is not valid, defaulting to "center"'),J(e,_.center))}(n,t.position),function(e,t){if(t&&"string"==typeof t){const o="grow-".concat(t);o in _&&J(e,_[o])}}(n,t.grow),V(n,t,"container"))};var ke={awaitingPromise:new WeakMap,promise:new WeakMap,innerParams:new WeakMap,domCache:new WeakMap};const Ce=["input","file","range","select","radio","checkbox","textarea"],xe=e=>{if(!De[e.input])return n('Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "'.concat(e.input,'"'));const t=Ae(e.input),o=De[e.input](t,e);te(t),setTimeout((()=>{$(o)}))},Ee=(e,t)=>{const o=K(S(),e);if(o){(e=>{for(let t=0;t{const t=Ae(e.input);"object"==typeof e.customClass&&J(t,e.customClass.input)},Te=(e,t)=>{e.placeholder&&!t.inputPlaceholder||(e.placeholder=t.inputPlaceholder)},Pe=(e,t,o)=>{if(o.inputLabel){e.id=_.input;const n=document.createElement("label"),a=_["input-label"];n.setAttribute("for",e.id),n.className=a,"object"==typeof o.customClass&&J(n,o.customClass.inputLabel),n.innerText=o.inputLabel,t.insertAdjacentElement("beforebegin",n)}},Ae=e=>Q(S(),_[e]||_.input),Ie=(e,t)=>{["string","number"].includes(typeof t)?e.value="".concat(t):l(t)||o('Unexpected type of inputValue! Expected "string", "number" or "Promise", got "'.concat(typeof t,'"'))},De={};De.text=De.email=De.password=De.number=De.tel=De.url=(e,t)=>(Ie(e,t.inputValue),Pe(e,e,t),Te(e,t),e.type=t.input,e),De.file=(e,t)=>(Pe(e,e,t),Te(e,t),e),De.range=(e,t)=>{const o=e.querySelector("input"),n=e.querySelector("output");return Ie(o,t.inputValue),o.type=t.input,Ie(n,t.inputValue),Pe(o,e,t),e},De.select=(e,t)=>{if(e.textContent="",t.inputPlaceholder){const o=document.createElement("option");W(o,t.inputPlaceholder),o.value="",o.disabled=!0,o.selected=!0,e.appendChild(o)}return Pe(e,e,t),e},De.radio=e=>(e.textContent="",e),De.checkbox=(e,t)=>{const o=K(S(),"checkbox");o.value="1",o.id=_.checkbox,o.checked=Boolean(t.inputValue);const n=e.querySelector("span");return W(n,t.inputPlaceholder),o},De.textarea=(e,t)=>{Ie(e,t.inputValue),Te(e,t),Pe(e,e,t);return setTimeout((()=>{if("MutationObserver"in window){const t=parseInt(window.getComputedStyle(S()).width);new MutationObserver((()=>{const o=e.offsetWidth+(n=e,parseInt(window.getComputedStyle(n).marginLeft)+parseInt(window.getComputedStyle(n).marginRight));var n;S().style.width=o>t?"".concat(o,"px"):null})).observe(e,{attributes:!0,attributeFilter:["style"]})}})),e};const Be=(e,t)=>{const o=A();V(o,t,"htmlContainer"),t.html?(fe(t.html,o),te(o,"block")):t.text?(o.textContent=t.text,te(o,"block")):oe(o),((e,t)=>{const o=S(),n=ke.innerParams.get(e),a=!n||t.input!==n.input;Ce.forEach((e=>{const n=Q(o,_[e]);Ee(e,t.inputAttributes),n.className=_[e],a&&oe(n)})),t.input&&(a&&xe(t),Se(t))})(e,t)},Oe=(e,t)=>{for(const o in k)t.icon!==o&&X(e,k[o]);J(e,k[t.icon]),Le(e,t),Re(),V(e,t,"icon")},Re=()=>{const e=S(),t=window.getComputedStyle(e).getPropertyValue("background-color"),o=e.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");for(let e=0;e{let o,n=e.innerHTML;t.iconHtml?o=Ne(t.iconHtml):"success"===t.icon?(o='\n
                  \n \n
                  \n
                  \n',n=n.replace(/ style=".*?"/g,"")):o="error"===t.icon?'\n \n \n \n \n':Ne({question:"?",warning:"!",info:"i"}[t.icon]),n.trim()!==o.trim()&&W(e,o)},Le=(e,t)=>{if(t.iconColor){e.style.color=t.iconColor,e.style.borderColor=t.iconColor;for(const o of[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"])ne(e,o,"backgroundColor",t.iconColor);ne(e,".swal2-success-ring","borderColor",t.iconColor)}},Ne=e=>'
                  ').concat(e,"
                  "),je=e=>{const t=document.createElement("li");return J(t,_["progress-step"]),W(t,e),t},He=e=>{const t=document.createElement("li");return J(t,_["progress-step-line"]),e.progressStepsDistance&&ee(t,"width",e.progressStepsDistance),t},Fe=(e,t)=>{e.className="".concat(_.popup," ").concat(re(e)?t.showClass.popup:""),t.toast?(J([document.documentElement,document.body],_["toast-shown"]),J(e,_.toast)):J(e,_.modal),V(e,t,"popup"),"string"==typeof t.customClass&&J(e,t.customClass),t.icon&&J(e,_["icon-".concat(t.icon)])},qe=(e,t)=>{((e,t)=>{const o=C(),n=S();t.toast?(ee(o,"width",t.width),n.style.width="100%",n.insertBefore(M(),T())):ee(n,"width",t.width),ee(n,"padding",t.padding),t.color&&(n.style.color=t.color),t.background&&(n.style.background=t.background),oe(B()),Fe(n,t)})(0,t),_e(0,t),((e,t)=>{const n=D();if(!t.progressSteps||0===t.progressSteps.length)return oe(n);te(n),n.textContent="",t.currentProgressStep>=t.progressSteps.length&&o("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),t.progressSteps.forEach(((e,o)=>{const a=je(e);if(n.appendChild(a),o===t.currentProgressStep&&J(a,_["active-progress-step"]),o!==t.progressSteps.length-1){const e=He(t);n.appendChild(e)}}))})(0,t),((e,t)=>{const o=ke.innerParams.get(e),a=T();if(o&&t.icon===o.icon)return Me(a,t),void Oe(a,t);if(t.icon||t.iconHtml){if(t.icon&&-1===Object.keys(k).indexOf(t.icon))return n('Unknown icon! Expected "success", "error", "warning", "info" or "question", got "'.concat(t.icon,'"')),void oe(a);te(a),Me(a,t),Oe(a,t),J(a,t.showClass.icon)}else oe(a)})(e,t),((e,t)=>{const o=I();if(!t.imageUrl)return oe(o);te(o,""),o.setAttribute("src",t.imageUrl),o.setAttribute("alt",t.imageAlt),ee(o,"width",t.imageWidth),ee(o,"height",t.imageHeight),o.className=_.image,V(o,t,"image")})(0,t),((e,t)=>{const o=P();ae(o,t.title||t.titleText,"block"),t.title&&fe(t.title,o),t.titleText&&(o.innerText=t.titleText),V(o,t,"title")})(0,t),((e,t)=>{const o=F();W(o,t.closeButtonHtml),V(o,t,"closeButton"),ae(o,t.showCloseButton),o.setAttribute("aria-label",t.closeButtonAriaLabel)})(0,t),Be(e,t),be(0,t),((e,t)=>{const o=j();ae(o,t.footer),t.footer&&fe(t.footer,o),V(o,t,"footer")})(0,t),"function"==typeof t.didRender&&t.didRender(S())},Ue=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),Ye=()=>{Array.from(document.body.children).forEach((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")}))},ze=["swal-title","swal-html","swal-footer"],We=e=>{const t={};return Array.from(e.querySelectorAll("swal-param")).forEach((e=>{Xe(e,["name","value"]);const o=e.getAttribute("name"),n=e.getAttribute("value");"boolean"==typeof u[o]&&"false"===n&&(t[o]=!1),"object"==typeof u[o]&&(t[o]=JSON.parse(n))})),t},Ge=e=>{const o={};return Array.from(e.querySelectorAll("swal-button")).forEach((e=>{Xe(e,["type","color","aria-label"]);const n=e.getAttribute("type");o["".concat(n,"ButtonText")]=e.innerHTML,o["show".concat(t(n),"Button")]=!0,e.hasAttribute("color")&&(o["".concat(n,"ButtonColor")]=e.getAttribute("color")),e.hasAttribute("aria-label")&&(o["".concat(n,"ButtonAriaLabel")]=e.getAttribute("aria-label"))})),o},Ve=e=>{const t={},o=e.querySelector("swal-image");return o&&(Xe(o,["src","width","height","alt"]),o.hasAttribute("src")&&(t.imageUrl=o.getAttribute("src")),o.hasAttribute("width")&&(t.imageWidth=o.getAttribute("width")),o.hasAttribute("height")&&(t.imageHeight=o.getAttribute("height")),o.hasAttribute("alt")&&(t.imageAlt=o.getAttribute("alt"))),t},Ke=e=>{const t={},o=e.querySelector("swal-icon");return o&&(Xe(o,["type","color"]),o.hasAttribute("type")&&(t.icon=o.getAttribute("type")),o.hasAttribute("color")&&(t.iconColor=o.getAttribute("color")),t.iconHtml=o.innerHTML),t},$e=e=>{const t={},o=e.querySelector("swal-input");o&&(Xe(o,["type","label","placeholder","value"]),t.input=o.getAttribute("type")||"text",o.hasAttribute("label")&&(t.inputLabel=o.getAttribute("label")),o.hasAttribute("placeholder")&&(t.inputPlaceholder=o.getAttribute("placeholder")),o.hasAttribute("value")&&(t.inputValue=o.getAttribute("value")));const n=Array.from(e.querySelectorAll("swal-input-option"));return n.length&&(t.inputOptions={},n.forEach((e=>{Xe(e,["value"]);const o=e.getAttribute("value"),n=e.innerHTML;t.inputOptions[o]=n}))),t},Ze=(e,t)=>{const o={};for(const n in t){const a=t[n],r=e.querySelector(a);r&&(Xe(r,[]),o[a.replace(/^swal-/,"")]=r.innerHTML.trim())}return o},Je=e=>{const t=ze.concat(["swal-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Array.from(e.children).forEach((e=>{const n=e.tagName.toLowerCase();-1===t.indexOf(n)&&o("Unrecognized element <".concat(n,">"))}))},Xe=(e,t)=>{Array.from(e.attributes).forEach((n=>{-1===t.indexOf(n.name)&&o(['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.")])}))};var Qe={email:(e,t)=>/^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]{2,24}$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid email address"),url:(e,t)=>/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid URL")};function et(e){(function(e){e.inputValidator||Object.keys(Qe).forEach((t=>{e.input===t&&(e.inputValidator=Qe[t])}))})(e),e.showLoaderOnConfirm&&!e.preConfirm&&o("showLoaderOnConfirm is set to true, but preConfirm is not defined.\nshowLoaderOnConfirm should be used together with preConfirm, see usage example:\nhttps://sweetalert2.github.io/#ajax-request"),function(e){(!e.target||"string"==typeof e.target&&!document.querySelector(e.target)||"string"!=typeof e.target&&!e.target.appendChild)&&(o('Target parameter is not valid, defaulting to "body"'),e.target="body")}(e),"string"==typeof e.title&&(e.title=e.title.split("\n").join("
                  ")),me(e)}class tt{constructor(e,t){this.callback=e,this.remaining=t,this.running=!1,this.start()}start(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}stop(){return this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=(new Date).getTime()-this.started.getTime()),this.remaining}increase(e){const t=this.running;return t&&this.stop(),this.remaining+=e,t&&this.start(),this.remaining}getTimerLeft(){return this.running&&(this.stop(),this.start()),this.remaining}isRunning(){return this.running}}const ot=()=>{null===z.previousBodyPadding&&document.body.scrollHeight>window.innerHeight&&(z.previousBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight="".concat(z.previousBodyPadding+(()=>{const e=document.createElement("div");e.className=_["scrollbar-measure"],document.body.appendChild(e);const t=e.getBoundingClientRect().width-e.clientWidth;return document.body.removeChild(e),t})(),"px"))},nt=()=>{const e=navigator.userAgent,t=!!e.match(/iPad/i)||!!e.match(/iPhone/i),o=!!e.match(/WebKit/i);if(t&&o&&!e.match(/CriOS/i)){const e=44;S().scrollHeight>window.innerHeight-e&&(C().style.paddingBottom="".concat(e,"px"))}},at=()=>{const e=C();let t;e.ontouchstart=e=>{t=rt(e)},e.ontouchmove=e=>{t&&(e.preventDefault(),e.stopPropagation())}},rt=e=>{const t=e.target,o=C();return!(st(e)||it(e)||t!==o&&(se(o)||"INPUT"===t.tagName||"TEXTAREA"===t.tagName||se(A())&&A().contains(t)))},st=e=>e.touches&&e.touches.length&&"stylus"===e.touches[0].touchType,it=e=>e.touches&&e.touches.length>1,ct=e=>{const t=C(),o=S();"function"==typeof e.willOpen&&e.willOpen(o);const n=window.getComputedStyle(document.body).overflowY;pt(t,o,e),setTimeout((()=>{ut(t,o)}),10),U()&&(dt(t,e.scrollbarPadding,n),Array.from(document.body.children).forEach((e=>{e===C()||e.contains(C())||(e.hasAttribute("aria-hidden")&&e.setAttribute("data-previous-aria-hidden",e.getAttribute("aria-hidden")),e.setAttribute("aria-hidden","true"))}))),Y()||ue.previousActiveElement||(ue.previousActiveElement=document.activeElement),"function"==typeof e.didOpen&&setTimeout((()=>e.didOpen(o))),X(t,_["no-transition"])},lt=e=>{const t=S();if(e.target!==t)return;const o=C();t.removeEventListener(we,lt),o.style.overflowY="auto"},ut=(e,t)=>{we&&ie(t)?(e.style.overflowY="hidden",t.addEventListener(we,lt)):e.style.overflowY="auto"},dt=(e,t,o)=>{(()=>{if((/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)&&!G(document.body,_.iosfix)){const e=document.body.scrollTop;document.body.style.top="".concat(-1*e,"px"),J(document.body,_.iosfix),at(),nt()}})(),t&&"hidden"!==o&&ot(),setTimeout((()=>{e.scrollTop=0}))},pt=(e,t,o)=>{J(e,o.showClass.backdrop),t.style.setProperty("opacity","0","important"),te(t,"grid"),setTimeout((()=>{J(t,o.showClass.popup),t.style.removeProperty("opacity")}),10),J([document.documentElement,document.body],_.shown),o.heightAuto&&o.backdrop&&!o.toast&&J([document.documentElement,document.body],_["height-auto"])},ht=e=>{let t=S();t||new To,t=S();const o=M();Y()?oe(T()):mt(t,e),te(o),t.setAttribute("data-loading","true"),t.setAttribute("aria-busy","true"),t.focus()},mt=(e,t)=>{const o=N(),n=M();!t&&re(O())&&(t=O()),te(o),t&&(oe(t),n.setAttribute("data-button-to-replace",t.className)),n.parentNode.insertBefore(n,t),J([e,o],_.loading)},ft=e=>e.checked?1:0,gt=e=>e.checked?e.value:null,yt=e=>e.files.length?null!==e.getAttribute("multiple")?e.files:e.files[0]:null,wt=(e,t)=>{const o=S(),a=e=>vt[t.input](o,_t(e),t);i(t.inputOptions)||l(t.inputOptions)?(ht(O()),c(t.inputOptions).then((t=>{e.hideLoading(),a(t)}))):"object"==typeof t.inputOptions?a(t.inputOptions):n("Unexpected type of inputOptions! Expected object, Map or Promise, got ".concat(typeof t.inputOptions))},bt=(e,t)=>{const o=e.getInput();oe(o),c(t.inputValue).then((n=>{o.value="number"===t.input?parseFloat(n)||0:"".concat(n),te(o),o.focus(),e.hideLoading()})).catch((t=>{n("Error in inputValue promise: ".concat(t)),o.value="",te(o),o.focus(),e.hideLoading()}))},vt={select:(e,t,o)=>{const n=Q(e,_.select),a=(e,t,n)=>{const a=document.createElement("option");a.value=n,W(a,t),a.selected=kt(n,o.inputValue),e.appendChild(a)};t.forEach((e=>{const t=e[0],o=e[1];if(Array.isArray(o)){const e=document.createElement("optgroup");e.label=t,e.disabled=!1,n.appendChild(e),o.forEach((t=>a(e,t[1],t[0])))}else a(n,o,t)})),n.focus()},radio:(e,t,o)=>{const n=Q(e,_.radio);t.forEach((e=>{const t=e[0],a=e[1],r=document.createElement("input"),s=document.createElement("label");r.type="radio",r.name=_.radio,r.value=t,kt(t,o.inputValue)&&(r.checked=!0);const i=document.createElement("span");W(i,a),i.className=_.label,s.appendChild(r),s.appendChild(i),n.appendChild(s)}));const a=n.querySelectorAll("input");a.length&&a[0].focus()}},_t=e=>{const t=[];return"undefined"!=typeof Map&&e instanceof Map?e.forEach(((e,o)=>{let n=e;"object"==typeof n&&(n=_t(n)),t.push([o,n])})):Object.keys(e).forEach((o=>{let n=e[o];"object"==typeof n&&(n=_t(n)),t.push([o,n])})),t},kt=(e,t)=>t&&t.toString()===e.toString();function Ct(){const e=ke.innerParams.get(this);if(!e)return;const t=ke.domCache.get(this);oe(t.loader),Y()?e.icon&&te(T()):xt(t),X([t.popup,t.actions],_.loading),t.popup.removeAttribute("aria-busy"),t.popup.removeAttribute("data-loading"),t.confirmButton.disabled=!1,t.denyButton.disabled=!1,t.cancelButton.disabled=!1}const xt=e=>{const t=e.popup.getElementsByClassName(e.loader.getAttribute("data-button-to-replace"));t.length?te(t[0],"inline-block"):!re(O())&&!re(R())&&!re(L())&&oe(e.actions)};var Et={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};const St=()=>O()&&O().click(),Tt=e=>{e.keydownTarget&&e.keydownHandlerAdded&&(e.keydownTarget.removeEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!1)},Pt=(e,t,o)=>{const n=q();if(n.length)return(t+=o)===n.length?t=0:-1===t&&(t=n.length-1),n[t].focus();S().focus()},At=["ArrowRight","ArrowDown"],It=["ArrowLeft","ArrowUp"],Dt=(e,t,o)=>{const n=ke.innerParams.get(e);n&&(t.isComposing||229===t.keyCode||(n.stopKeydownPropagation&&t.stopPropagation(),"Enter"===t.key?Bt(e,t,n):"Tab"===t.key?Ot(t,n):[...At,...It].includes(t.key)?Rt(t.key):"Escape"===t.key&&Mt(t,n,o)))},Bt=(e,t,o)=>{if(s(o.allowEnterKey)&&t.target&&e.getInput()&&t.target instanceof HTMLElement&&t.target.outerHTML===e.getInput().outerHTML){if(["textarea","file"].includes(o.input))return;St(),t.preventDefault()}},Ot=(e,t)=>{const o=e.target,n=q();let a=-1;for(let e=0;e{const t=O(),o=R(),n=L();if(document.activeElement instanceof HTMLElement&&![t,o,n].includes(document.activeElement))return;const a=At.includes(e)?"nextElementSibling":"previousElementSibling";let r=document.activeElement;for(let e=0;e{s(t.allowEscapeKey)&&(e.preventDefault(),o(Ue.esc))};function Lt(e,t,o,n){Y()?Yt(e,n):(de(o).then((()=>Yt(e,n))),Tt(ue)),/^((?!chrome|android).)*safari/i.test(navigator.userAgent)?(t.setAttribute("style","display:none !important"),t.removeAttribute("class"),t.innerHTML=""):t.remove(),U()&&(null!==z.previousBodyPadding&&(document.body.style.paddingRight="".concat(z.previousBodyPadding,"px"),z.previousBodyPadding=null),(()=>{if(G(document.body,_.iosfix)){const e=parseInt(document.body.style.top,10);X(document.body,_.iosfix),document.body.style.top="",document.body.scrollTop=-1*e}})(),Ye()),X([document.documentElement,document.body],[_.shown,_["height-auto"],_["no-backdrop"],_["toast-shown"]])}function Nt(e){e=Ft(e);const t=Et.swalPromiseResolve.get(this),o=jt(this);this.isAwaitingPromise()?e.isDismissed||(Ht(this),t(e)):o&&t(e)}const jt=e=>{const t=S();if(!t)return!1;const o=ke.innerParams.get(e);if(!o||G(t,o.hideClass.popup))return!1;X(t,o.showClass.popup),J(t,o.hideClass.popup);const n=C();return X(n,o.showClass.backdrop),J(n,o.hideClass.backdrop),qt(e,t,o),!0};const Ht=e=>{e.isAwaitingPromise()&&(ke.awaitingPromise.delete(e),ke.innerParams.get(e)||e._destroy())},Ft=e=>void 0===e?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},e),qt=(e,t,o)=>{const n=C(),a=we&&ie(t);"function"==typeof o.willClose&&o.willClose(t),a?Ut(e,t,n,o.returnFocus,o.didClose):Lt(e,n,o.returnFocus,o.didClose)},Ut=(e,t,o,n,a)=>{ue.swalCloseEventFinishedCallback=Lt.bind(null,e,o,n,a),t.addEventListener(we,(function(e){e.target===t&&(ue.swalCloseEventFinishedCallback(),delete ue.swalCloseEventFinishedCallback)}))},Yt=(e,t)=>{setTimeout((()=>{"function"==typeof t&&t.bind(e.params)(),e._destroy()}))};function zt(e,t,o){const n=ke.domCache.get(e);t.forEach((e=>{n[e].disabled=o}))}function Wt(e,t){if(!e)return!1;if("radio"===e.type){const o=e.parentNode.parentNode.querySelectorAll("input");for(let e=0;e{const t={};return Object.keys(e).forEach((n=>{f(n)?t[n]=e[n]:o("Invalid parameter to update: ".concat(n))})),t};const Vt=e=>{Kt(e),delete e.params,delete ue.keydownHandler,delete ue.keydownTarget,delete ue.currentInstance},Kt=e=>{e.isAwaitingPromise()?($t(ke,e),ke.awaitingPromise.set(e,!0)):($t(Et,e),$t(ke,e))},$t=(e,t)=>{for(const o in e)e[o].delete(t)};var Zt=Object.freeze({hideLoading:Ct,disableLoading:Ct,getInput:function(e){const t=ke.innerParams.get(e||this),o=ke.domCache.get(e||this);return o?K(o.popup,t.input):null},close:Nt,isAwaitingPromise:function(){return!!ke.awaitingPromise.get(this)},rejectPromise:function(e){const t=Et.swalPromiseReject.get(this);Ht(this),t&&t(e)},handleAwaitingPromise:Ht,closePopup:Nt,closeModal:Nt,closeToast:Nt,enableButtons:function(){zt(this,["confirmButton","denyButton","cancelButton"],!1)},disableButtons:function(){zt(this,["confirmButton","denyButton","cancelButton"],!0)},enableInput:function(){return Wt(this.getInput(),!1)},disableInput:function(){return Wt(this.getInput(),!0)},showValidationMessage:function(e){const t=ke.domCache.get(this),o=ke.innerParams.get(this);W(t.validationMessage,e),t.validationMessage.className=_["validation-message"],o.customClass&&o.customClass.validationMessage&&J(t.validationMessage,o.customClass.validationMessage),te(t.validationMessage);const n=this.getInput();n&&(n.setAttribute("aria-invalid",!0),n.setAttribute("aria-describedby",_["validation-message"]),$(n),J(n,_.inputerror))},resetValidationMessage:function(){const e=ke.domCache.get(this);e.validationMessage&&oe(e.validationMessage);const t=this.getInput();t&&(t.removeAttribute("aria-invalid"),t.removeAttribute("aria-describedby"),X(t,_.inputerror))},getProgressSteps:function(){return ke.domCache.get(this).progressSteps},update:function(e){const t=S(),n=ke.innerParams.get(this);if(!t||G(t,n.hideClass.popup))return o("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.");const a=Gt(e),r=Object.assign({},n,a);qe(this,r),ke.innerParams.set(this,r),Object.defineProperties(this,{params:{value:Object.assign({},this.params,e),writable:!1,enumerable:!0}})},_destroy:function(){const e=ke.domCache.get(this),t=ke.innerParams.get(this);t?(e.popup&&ue.swalCloseEventFinishedCallback&&(ue.swalCloseEventFinishedCallback(),delete ue.swalCloseEventFinishedCallback),"function"==typeof t.didDestroy&&t.didDestroy(),Vt(this)):Kt(this)}});const Jt=(e,o)=>{const a=ke.innerParams.get(e);if(!a.input)return void n('The "input" parameter is needed to be set when using returnInputValueOn'.concat(t(o)));const r=((e,t)=>{const o=e.getInput();if(!o)return null;switch(t.input){case"checkbox":return ft(o);case"radio":return gt(o);case"file":return yt(o);default:return t.inputAutoTrim?o.value.trim():o.value}})(e,a);a.inputValidator?Xt(e,r,o):e.getInput().checkValidity()?"deny"===o?Qt(e,r):oo(e,r):(e.enableButtons(),e.showValidationMessage(a.validationMessage))},Xt=(e,t,o)=>{const n=ke.innerParams.get(e);e.disableInput(),Promise.resolve().then((()=>c(n.inputValidator(t,n.validationMessage)))).then((n=>{e.enableButtons(),e.enableInput(),n?e.showValidationMessage(n):"deny"===o?Qt(e,t):oo(e,t)}))},Qt=(e,t)=>{const o=ke.innerParams.get(e||void 0);o.showLoaderOnDeny&&ht(R()),o.preDeny?(ke.awaitingPromise.set(e||void 0,!0),Promise.resolve().then((()=>c(o.preDeny(t,o.validationMessage)))).then((o=>{!1===o?(e.hideLoading(),Ht(e)):e.close({isDenied:!0,value:void 0===o?t:o})})).catch((t=>to(e||void 0,t)))):e.close({isDenied:!0,value:t})},eo=(e,t)=>{e.close({isConfirmed:!0,value:t})},to=(e,t)=>{e.rejectPromise(t)},oo=(e,t)=>{const o=ke.innerParams.get(e||void 0);o.showLoaderOnConfirm&&ht(),o.preConfirm?(e.resetValidationMessage(),ke.awaitingPromise.set(e||void 0,!0),Promise.resolve().then((()=>c(o.preConfirm(t,o.validationMessage)))).then((o=>{re(B())||!1===o?(e.hideLoading(),Ht(e)):eo(e,void 0===o?t:o)})).catch((t=>to(e||void 0,t)))):eo(e,t)},no=(e,t,o)=>{t.popup.onclick=()=>{const t=ke.innerParams.get(e);t&&(ao(t)||t.timer||t.input)||o(Ue.close)}},ao=e=>e.showConfirmButton||e.showDenyButton||e.showCancelButton||e.showCloseButton;let ro=!1;const so=e=>{e.popup.onmousedown=()=>{e.container.onmouseup=function(t){e.container.onmouseup=void 0,t.target===e.container&&(ro=!0)}}},io=e=>{e.container.onmousedown=()=>{e.popup.onmouseup=function(t){e.popup.onmouseup=void 0,(t.target===e.popup||e.popup.contains(t.target))&&(ro=!0)}}},co=(e,t,o)=>{t.container.onclick=n=>{const a=ke.innerParams.get(e);ro?ro=!1:n.target===t.container&&s(a.allowOutsideClick)&&o(Ue.backdrop)}},lo=e=>e instanceof Element||(e=>"object"==typeof e&&e.jquery)(e);const uo=()=>{if(ue.timeout)return(()=>{const e=H(),t=parseInt(window.getComputedStyle(e).width);e.style.removeProperty("transition"),e.style.width="100%";const o=t/parseInt(window.getComputedStyle(e).width)*100;e.style.removeProperty("transition"),e.style.width="".concat(o,"%")})(),ue.timeout.stop()},po=()=>{if(ue.timeout){const e=ue.timeout.start();return ce(e),e}};let ho=!1;const mo={};const fo=e=>{for(let t=e.target;t&&t!==document;t=t.parentNode)for(const e in mo){const o=t.getAttribute(e);if(o)return void mo[e].fire({template:o})}};var go=Object.freeze({isValidParameter:m,isUpdatableParameter:f,isDeprecatedParameter:g,argsToParams:e=>{const t={};return"object"!=typeof e[0]||lo(e[0])?["title","html","icon"].forEach(((o,a)=>{const r=e[a];"string"==typeof r||lo(r)?t[o]=r:void 0!==r&&n("Unexpected type of ".concat(o,'! Expected "string" or "Element", got ').concat(typeof r))})):Object.assign(t,e[0]),t},isVisible:()=>re(S()),clickConfirm:St,clickDeny:()=>R()&&R().click(),clickCancel:()=>L()&&L().click(),getContainer:C,getPopup:S,getTitle:P,getHtmlContainer:A,getImage:I,getIcon:T,getInputLabel:()=>E(_["input-label"]),getCloseButton:F,getActions:N,getConfirmButton:O,getDenyButton:R,getCancelButton:L,getLoader:M,getFooter:j,getTimerProgressBar:H,getFocusableElements:q,getValidationMessage:B,isLoading:()=>S().hasAttribute("data-loading"),fire:function(){const e=this;for(var t=arguments.length,o=new Array(t),n=0;nue.timeout&&ue.timeout.getTimerLeft(),stopTimer:uo,resumeTimer:po,toggleTimer:()=>{const e=ue.timeout;return e&&(e.running?uo():po())},increaseTimer:e=>{if(ue.timeout){const t=ue.timeout.increase(e);return ce(t,!0),t}},isTimerRunning:()=>ue.timeout&&ue.timeout.isRunning(),bindClickHandler:function(){mo[arguments.length>0&&void 0!==arguments[0]?arguments[0]:"data-swal-template"]=this,ho||(document.body.addEventListener("click",fo),ho=!0)}});let yo;class wo{constructor(){if("undefined"==typeof window)return;yo=this;for(var e=arguments.length,t=new Array(e),o=0;o1&&void 0!==arguments[1]?arguments[1]:{};(e=>{!e.backdrop&&e.allowOutsideClick&&o('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');for(const t in e)y(t),e.toast&&w(t),b(t)})(Object.assign({},t,e)),ue.currentInstance&&(ue.currentInstance._destroy(),U()&&Ye()),ue.currentInstance=yo;const n=vo(e,t);et(n),Object.freeze(n),ue.timeout&&(ue.timeout.stop(),delete ue.timeout),clearTimeout(ue.restoreFocusTimeout);const a=_o(yo);return qe(yo,n),ke.innerParams.set(yo,n),bo(yo,a,n)}then(e){return ke.promise.get(this).then(e)}finally(e){return ke.promise.get(this).finally(e)}}const bo=(e,t,o)=>new Promise(((n,a)=>{const r=t=>{e.closePopup({isDismissed:!0,dismiss:t})};Et.swalPromiseResolve.set(e,n),Et.swalPromiseReject.set(e,a),t.confirmButton.onclick=()=>(e=>{const t=ke.innerParams.get(e);e.disableButtons(),t.input?Jt(e,"confirm"):oo(e,!0)})(e),t.denyButton.onclick=()=>(e=>{const t=ke.innerParams.get(e);e.disableButtons(),t.returnInputValueOnDeny?Jt(e,"deny"):Qt(e,!1)})(e),t.cancelButton.onclick=()=>((e,t)=>{e.disableButtons(),t(Ue.cancel)})(e,r),t.closeButton.onclick=()=>r(Ue.close),((e,t,o)=>{ke.innerParams.get(e).toast?no(e,t,o):(so(t),io(t),co(e,t,o))})(e,t,r),((e,t,o,n)=>{Tt(t),o.toast||(t.keydownHandler=t=>Dt(e,t,n),t.keydownTarget=o.keydownListenerCapture?window:S(),t.keydownListenerCapture=o.keydownListenerCapture,t.keydownTarget.addEventListener("keydown",t.keydownHandler,{capture:t.keydownListenerCapture}),t.keydownHandlerAdded=!0)})(e,ue,o,r),((e,t)=>{"select"===t.input||"radio"===t.input?wt(e,t):["text","email","number","tel","textarea"].includes(t.input)&&(i(t.inputValue)||l(t.inputValue))&&(ht(O()),bt(e,t))})(e,o),ct(o),ko(ue,o,r),Co(t,o),setTimeout((()=>{t.container.scrollTop=0}))})),vo=(e,t)=>{const o=(e=>{const t="string"==typeof e.template?document.querySelector(e.template):e.template;if(!t)return{};const o=t.content;return Je(o),Object.assign(We(o),Ge(o),Ve(o),Ke(o),$e(o),Ze(o,ze))})(e),n=Object.assign({},u,t,o,e);return n.showClass=Object.assign({},u.showClass,n.showClass),n.hideClass=Object.assign({},u.hideClass,n.hideClass),n},_o=e=>{const t={popup:S(),container:C(),actions:N(),confirmButton:O(),denyButton:R(),cancelButton:L(),loader:M(),closeButton:F(),validationMessage:B(),progressSteps:D()};return ke.domCache.set(e,t),t},ko=(e,t,o)=>{const n=H();oe(n),t.timer&&(e.timeout=new tt((()=>{o("timer"),delete e.timeout}),t.timer),t.timerProgressBar&&(te(n),V(n,t,"timerProgressBar"),setTimeout((()=>{e.timeout&&e.timeout.running&&ce(t.timer)}))))},Co=(e,t)=>{if(!t.toast)return s(t.allowEnterKey)?void(xo(e,t)||Pt(0,-1,1)):Eo()},xo=(e,t)=>t.focusDeny&&re(e.denyButton)?(e.denyButton.focus(),!0):t.focusCancel&&re(e.cancelButton)?(e.cancelButton.focus(),!0):!(!t.focusConfirm||!re(e.confirmButton)||(e.confirmButton.focus(),0)),Eo=()=>{document.activeElement instanceof HTMLElement&&"function"==typeof document.activeElement.blur&&document.activeElement.blur()};if("undefined"!=typeof window&&/^ru\b/.test(navigator.language)&&location.host.match(/\.(ru|su|xn--p1ai)$/)&&Math.random()<.1){const e=document.createElement("div");e.className="leave-russia-now-and-apply-your-skills-to-the-world";const t=(So=[{text:"В нижеприведённом видео объясняется как каждый из нас может помочь в том,\n чтобы эта бессмысленная и бесчеловечная война остановилась:",id:"4CfDhaRkw7I"},{text:"Эмпатия - главное человеческое чувство. Способность сопереживать. Способность поставить себя на место другого.",id:"s-GLAIY4DXA"}])[Math.floor(Math.random()*So.length)];W(e,"\n
                  \n Если мы не остановим войну, она придет в дом каждого из нас и её последствия будут ужасающими.\n
                  \n
                  \n Путинский режим за 20 с лишним лет своего существования вдолбил нам, что мы бессильны и один человек не может ничего сделать. Это не так!\n
                  \n
                  \n ".concat(t.text,'\n
                  \n \n
                  \n Нет войне!\n
                  \n '));const o=document.createElement("button");o.innerHTML="×",o.onclick=()=>e.remove(),e.appendChild(o),window.addEventListener("load",(()=>{setTimeout((()=>{document.body.appendChild(e)}),1e3)}))}var So;Object.assign(wo.prototype,Zt),Object.assign(wo,go),Object.keys(Zt).forEach((e=>{wo[e]=function(){if(yo)return yo[e](...arguments)}})),wo.DismissReason=Ue,wo.version="11.4.26";const To=wo;return To.default=To,To}(),void 0!==this&&this.Sweetalert2&&(this.swal=this.sweetAlert=this.Swal=this.SweetAlert=this.Sweetalert2),"undefined"!=typeof document&&function(e,t){var o=e.createElement("style");if(e.getElementsByTagName("head")[0].appendChild(o),o.styleSheet)o.styleSheet.disabled||(o.styleSheet.cssText=t);else try{o.innerHTML=t}catch(e){o.innerText=t}}(document,'.swal2-popup.swal2-toast{box-sizing:border-box;grid-column:1/4!important;grid-row:1/4!important;grid-template-columns:1fr 99fr 1fr;padding:1em;overflow-y:hidden;background:#fff;box-shadow:0 0 1px hsla(0deg,0%,0%,.075),0 1px 2px hsla(0deg,0%,0%,.075),1px 2px 4px hsla(0deg,0%,0%,.075),1px 3px 8px hsla(0deg,0%,0%,.075),2px 4px 16px hsla(0deg,0%,0%,.075);pointer-events:all}.swal2-popup.swal2-toast>*{grid-column:2}.swal2-popup.swal2-toast .swal2-title{margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-loading{justify-content:center}.swal2-popup.swal2-toast .swal2-input{height:2em;margin:.5em;font-size:1em}.swal2-popup.swal2-toast .swal2-validation-message{font-size:1em}.swal2-popup.swal2-toast .swal2-footer{margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-popup.swal2-toast .swal2-close{grid-column:3/3;grid-row:1/99;align-self:center;width:.8em;height:.8em;margin:0;font-size:2em}.swal2-popup.swal2-toast .swal2-html-container{margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-html-container:empty{padding:0}.swal2-popup.swal2-toast .swal2-loader{grid-column:1;grid-row:1/99;align-self:center;width:2em;height:2em;margin:.25em}.swal2-popup.swal2-toast .swal2-icon{grid-column:1;grid-row:1/99;align-self:center;width:2em;min-width:2em;height:2em;margin:0 .5em 0 0}.swal2-popup.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:700}.swal2-popup.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-popup.swal2-toast .swal2-actions{justify-content:flex-start;height:auto;margin:0;margin-top:.5em;padding:0 .5em}.swal2-popup.swal2-toast .swal2-styled{margin:.25em .5em;padding:.4em .6em;font-size:1em}.swal2-popup.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;transform:rotate(45deg);border-radius:50%}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-.8em;left:-.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-popup.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{-webkit-animation:swal2-toast-animate-success-line-tip .75s;animation:swal2-toast-animate-success-line-tip .75s}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{-webkit-animation:swal2-toast-animate-success-line-long .75s;animation:swal2-toast-animate-success-line-long .75s}.swal2-popup.swal2-toast.swal2-show{-webkit-animation:swal2-toast-show .5s;animation:swal2-toast-show .5s}.swal2-popup.swal2-toast.swal2-hide{-webkit-animation:swal2-toast-hide .1s forwards;animation:swal2-toast-hide .1s forwards}.swal2-container{display:grid;position:fixed;z-index:1060;top:0;right:0;bottom:0;left:0;box-sizing:border-box;grid-template-areas:"top-start top top-end" "center-start center center-end" "bottom-start bottom-center bottom-end";grid-template-rows:minmax(-webkit-min-content,auto) minmax(-webkit-min-content,auto) minmax(-webkit-min-content,auto);grid-template-rows:minmax(min-content,auto) minmax(min-content,auto) minmax(min-content,auto);height:100%;padding:.625em;overflow-x:hidden;transition:background-color .1s;-webkit-overflow-scrolling:touch}.swal2-container.swal2-backdrop-show,.swal2-container.swal2-noanimation{background:rgba(0,0,0,.4)}.swal2-container.swal2-backdrop-hide{background:0 0!important}.swal2-container.swal2-bottom-start,.swal2-container.swal2-center-start,.swal2-container.swal2-top-start{grid-template-columns:minmax(0,1fr) auto auto}.swal2-container.swal2-bottom,.swal2-container.swal2-center,.swal2-container.swal2-top{grid-template-columns:auto minmax(0,1fr) auto}.swal2-container.swal2-bottom-end,.swal2-container.swal2-center-end,.swal2-container.swal2-top-end{grid-template-columns:auto auto minmax(0,1fr)}.swal2-container.swal2-top-start>.swal2-popup{align-self:start}.swal2-container.swal2-top>.swal2-popup{grid-column:2;align-self:start;justify-self:center}.swal2-container.swal2-top-end>.swal2-popup,.swal2-container.swal2-top-right>.swal2-popup{grid-column:3;align-self:start;justify-self:end}.swal2-container.swal2-center-left>.swal2-popup,.swal2-container.swal2-center-start>.swal2-popup{grid-row:2;align-self:center}.swal2-container.swal2-center>.swal2-popup{grid-column:2;grid-row:2;align-self:center;justify-self:center}.swal2-container.swal2-center-end>.swal2-popup,.swal2-container.swal2-center-right>.swal2-popup{grid-column:3;grid-row:2;align-self:center;justify-self:end}.swal2-container.swal2-bottom-left>.swal2-popup,.swal2-container.swal2-bottom-start>.swal2-popup{grid-column:1;grid-row:3;align-self:end}.swal2-container.swal2-bottom>.swal2-popup{grid-column:2;grid-row:3;justify-self:center;align-self:end}.swal2-container.swal2-bottom-end>.swal2-popup,.swal2-container.swal2-bottom-right>.swal2-popup{grid-column:3;grid-row:3;align-self:end;justify-self:end}.swal2-container.swal2-grow-fullscreen>.swal2-popup,.swal2-container.swal2-grow-row>.swal2-popup{grid-column:1/4;width:100%}.swal2-container.swal2-grow-column>.swal2-popup,.swal2-container.swal2-grow-fullscreen>.swal2-popup{grid-row:1/4;align-self:stretch}.swal2-container.swal2-no-transition{transition:none!important}.swal2-popup{display:none;position:relative;box-sizing:border-box;grid-template-columns:minmax(0,100%);width:32em;max-width:100%;padding:0 0 1.25em;border:none;border-radius:5px;background:#fff;color:#545454;font-family:inherit;font-size:1rem}.swal2-popup:focus{outline:0}.swal2-popup.swal2-loading{overflow-y:hidden}.swal2-title{position:relative;max-width:100%;margin:0;padding:.8em 1em 0;color:inherit;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:auto;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;transition:box-shadow .1s;box-shadow:0 0 0 3px transparent;font-weight:500}.swal2-styled:not([disabled]){cursor:pointer}.swal2-styled.swal2-confirm{border:0;border-radius:.25em;background:initial;background-color:#7066e0;color:#fff;font-size:1em}.swal2-styled.swal2-confirm:focus{box-shadow:0 0 0 3px rgba(112,102,224,.5)}.swal2-styled.swal2-deny{border:0;border-radius:.25em;background:initial;background-color:#dc3741;color:#fff;font-size:1em}.swal2-styled.swal2-deny:focus{box-shadow:0 0 0 3px rgba(220,55,65,.5)}.swal2-styled.swal2-cancel{border:0;border-radius:.25em;background:initial;background-color:#6e7881;color:#fff;font-size:1em}.swal2-styled.swal2-cancel:focus{box-shadow:0 0 0 3px rgba(110,120,129,.5)}.swal2-styled.swal2-default-outline:focus{box-shadow:0 0 0 3px rgba(100,150,200,.5)}.swal2-styled:focus{outline:0}.swal2-styled::-moz-focus-inner{border:0}.swal2-footer{justify-content:center;margin:1em 0 0;padding:1em 1em 0;border-top:1px solid #eee;color:inherit;font-size:1em}.swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;grid-column:auto!important;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:2em auto 1em}.swal2-close{z-index:2;align-items:center;justify-content:center;width:1.2em;height:1.2em;margin-top:0;margin-right:0;margin-bottom:-1.2em;padding:0;overflow:hidden;transition:color .1s,box-shadow .1s;border:none;border-radius:5px;background:0 0;color:#ccc;font-family:serif;font-family:monospace;font-size:2.5em;cursor:pointer;justify-self:end}.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-html-container{z-index:1;justify-content:center;margin:1em 1.6em .3em;padding:0;overflow:auto;color:inherit;font-size:1.125em;font-weight:400;line-height:normal;text-align:center;word-wrap:break-word;word-break:break-word}.swal2-checkbox,.swal2-file,.swal2-input,.swal2-radio,.swal2-select,.swal2-textarea{margin:1em 2em 3px}.swal2-file,.swal2-input,.swal2-textarea{box-sizing:border-box;width:auto;transition:border-color .1s,box-shadow .1s;border:1px solid #d9d9d9;border-radius:.1875em;background:0 0;box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px transparent;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:inset 0 1px 1px rgba(0,0,0,.06),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::placeholder,.swal2-input::placeholder,.swal2-textarea::placeholder{color:#ccc}.swal2-range{margin:1em 2em 3px;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-file{width:75%;margin-right:auto;margin-left:auto;background:0 0;font-size:1.125em}.swal2-textarea{height:6.75em;padding:.75em}.swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:0 0;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 0}.swal2-validation-message{align-items:center;justify-content:center;margin:1em 0 0;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:2.5em auto .6em;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;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-warning.swal2-icon-show{-webkit-animation:swal2-animate-error-icon .5s;animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-warning.swal2-icon-show .swal2-icon-content{-webkit-animation:swal2-animate-i-mark .5s;animation:swal2-animate-i-mark .5s}.swal2-icon.swal2-info{border-color:#9de0f6;color:#3fc3ee}.swal2-icon.swal2-info.swal2-icon-show{-webkit-animation:swal2-animate-error-icon .5s;animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-info.swal2-icon-show .swal2-icon-content{-webkit-animation:swal2-animate-i-mark .8s;animation:swal2-animate-i-mark .8s}.swal2-icon.swal2-question{border-color:#c9dae1;color:#87adbd}.swal2-icon.swal2-question.swal2-icon-show{-webkit-animation:swal2-animate-error-icon .5s;animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-question.swal2-icon-show .swal2-icon-content{-webkit-animation:swal2-animate-question-mark .8s;animation:swal2-animate-question-mark .8s}.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:1.25em auto;padding:0;background:0 0;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{margin-right:initial;margin-left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}.leave-russia-now-and-apply-your-skills-to-the-world{display:flex;position:fixed;z-index:1939;top:0;right:0;bottom:0;left:0;flex-direction:column;align-items:center;justify-content:center;padding:25px 0 20px;background:#20232a;color:#fff;text-align:center}.leave-russia-now-and-apply-your-skills-to-the-world div{max-width:560px;margin:10px;line-height:146%}.leave-russia-now-and-apply-your-skills-to-the-world iframe{max-width:100%;max-height:55.5555555556vmin;margin:16px auto}.leave-russia-now-and-apply-your-skills-to-the-world strong{border-bottom:2px dashed #fff}.leave-russia-now-and-apply-your-skills-to-the-world button{display:flex;position:fixed;z-index:1940;top:0;right:0;align-items:center;justify-content:center;width:48px;height:48px;margin-right:10px;margin-bottom:-10px;border:none;background:0 0;color:#aaa;font-size:48px;font-weight:700;cursor:pointer}.leave-russia-now-and-apply-your-skills-to-the-world button:hover{color:#fff}@-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)}}@-webkit-keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@-webkit-keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}@keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}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{background-color:transparent!important;pointer-events:none}body.swal2-no-backdrop .swal2-container .swal2-popup{pointer-events:all}body.swal2-no-backdrop .swal2-container .swal2-modal{box-shadow:0 0 10px rgba(0,0,0,.4)}@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{box-sizing:border-box;width:360px;max-width:100%;background-color:transparent;pointer-events:none}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 o=!1;try{o="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(e){}t.hasCORS=o},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 o in e)e.hasOwnProperty(o)&&(t.length&&(t+="&"),t+=encodeURIComponent(o)+"="+encodeURIComponent(e[o]));return t},t.decode=function(e){let t={},o=e.split("&");for(let e=0,n=o.length;e{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parse=void 0;const o=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,n=["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=o.exec(e||""),i={},c=14;for(;c--;)i[n[c]]=s[c]||"";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 o=t.replace(/\/{2,9}/g,"/").split("/");return"/"!=t.substr(0,1)&&0!==t.length||o.splice(0,1),"/"==t.substr(t.length-1,1)&&o.splice(o.length-1,1),o}(0,i.path),i.queryKey=function(e,t){const o={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,(function(e,t,n){t&&(o[t]=n)})),o}(0,i.query),i}},8726:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.yeast=t.decode=t.encode=void 0;const o="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),n={};let a,r=0,s=0;function i(e){let t="";do{t=o[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,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parse=t.installTimerFunctions=t.transports=t.Transport=t.protocol=t.Socket=void 0;const n=o(3481);Object.defineProperty(t,"Socket",{enumerable:!0,get:function(){return n.Socket}}),t.protocol=n.Socket.protocol;var a=o(9870);Object.defineProperty(t,"Transport",{enumerable:!0,get:function(){return a.Transport}});var r=o(7385);Object.defineProperty(t,"transports",{enumerable:!0,get:function(){return r.transports}});var s=o(9622);Object.defineProperty(t,"installTimerFunctions",{enumerable:!0,get:function(){return s.installTimerFunctions}});var i=o(5222);Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return i.parse}})},3481:function(e,t,o){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Socket=void 0;const a=o(7385),r=o(9622),s=o(5754),i=o(5222),c=n(o(1227)),l=o(5260),u=o(1373),d=(0,c.default)("engine.io-client:socket");class p extends l.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 o=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",o),new a.transports[e](o)}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),o=!1;p.priorWebsocketSuccess=!1;const n=()=>{o||(d('probe transport "%s" opened',e),t.send([{type:"ping",data:"probe"}]),t.once("packet",(n=>{if(!o)if("pong"===n.type&&"probe"===n.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((()=>{o||"closed"!==this.readyState&&(d("changing transport and sending upgrade packet"),l(),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 o=new Error("probe error");o.transport=t.name,this.emitReserved("upgradeError",o)}})))};function a(){o||(o=!0,l(),t.close(),t=null)}const r=o=>{const n=new Error("probe error: "+o);n.transport=t.name,a(),d('probe transport "%s" failed because of error: %s',e,o),this.emitReserved("upgradeError",n)};function s(){r("transport closed")}function i(){r("socket closed")}function c(e){t&&e.name!==t.name&&(d('"%s" works - aborting "%s"',e.name,t.name),a())}const l=()=>{t.removeListener("open",n),t.removeListener("error",r),t.removeListener("close",s),this.off("close",i),this.off("upgrading",c)};t.once("open",n),t.once("error",r),t.once("close",s),this.once("close",i),this.once("upgrading",c),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,o){return this.sendPacket("message",e,t,o),this}send(e,t,o){return this.sendPacket("message",e,t,o),this}sendPacket(e,t,o,n){if("function"==typeof t&&(n=t,t=void 0),"function"==typeof o&&(n=o,o=null),"closing"===this.readyState||"closed"===this.readyState)return;(o=o||{}).compress=!1!==o.compress;const a={type:e,data:t,options:o};this.emitReserved("packetCreate",a),this.writeBuffer.push(a),n&&this.once("flush",n),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()},o=()=>{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?o():e()})):this.upgrading?o():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 o=0;const n=e.length;for(;o{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.transports=void 0;const n=o(484),a=o(1308);t.transports={websocket:a.WS,polling:n.Polling}},484:function(e,t,o){"use strict";var n=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=o(9870),r=n(o(1227)),s=o(8726),i=o(5754),c=o(1373),l=o(6666),u=o(5260),d=o(9622),p=o(6242),h=(0,r.default)("engine.io-client:polling");function m(){}const f=null!=new l.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 o=location.port;o||(o=t?"443":"80"),this.xd="undefined"!=typeof location&&e.hostname!==location.hostname||o!==e.port,this.xs=e.secure!==t}const t=e&&e.forceBase64;this.supportsBinary=f&&!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,c.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,c.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 o="";!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))&&(o=":"+this.opts.port);const n=(0,i.encode)(e);return t+"://"+(-1!==this.opts.hostname.indexOf(":")?"["+this.opts.hostname+"]":this.opts.hostname)+o+this.opts.path+(n.length?"?"+n:"")}request(e={}){return Object.assign(e,{xd:this.xd,xs:this.xs},this.opts),new y(this.uri(),e)}doWrite(e,t){const o=this.request({method:"POST",data:e});o.on("success",t),o.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 l.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=m,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,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultBinaryType=t.usingBrowserWebSocket=t.WebSocket=t.nextTick=void 0;const n=o(6242);t.nextTick="function"==typeof Promise&&"function"==typeof Promise.resolve?e=>Promise.resolve().then(e):(e,t)=>t(e,0),t.WebSocket=n.globalThisShim.WebSocket||n.globalThisShim.MozWebSocket,t.usingBrowserWebSocket=!0,t.defaultBinaryType="arraybuffer"},1308:function(e,t,o){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.WS=void 0;const a=o(9870),r=o(5754),s=o(8726),i=o(9622),c=o(5552),l=n(o(1227)),u=o(1373),d=(0,l.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,o=p?{}:(0,i.pick)(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(o.headers=this.opts.extraHeaders);try{this.ws=c.usingBrowserWebSocket&&!p?t?new c.WebSocket(e,t):new c.WebSocket(e):new c.WebSocket(e,t,o)}catch(e){return this.emitReserved("error",e)}this.ws.binaryType=this.socket.binaryType||c.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={};!c.usingBrowserWebSocket&&(o.options&&(t.compress=o.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 o="";this.opts.port&&("wss"===t&&443!==Number(this.opts.port)||"ws"===t&&80!==Number(this.opts.port))&&(o=":"+this.opts.port),this.opts.timestampRequests&&(e[this.opts.timestampParam]=(0,s.yeast)()),this.supportsBinary||(e.b64=1);const n=(0,r.encode)(e);return t+"://"+(-1!==this.opts.hostname.indexOf(":")?"["+this.opts.hostname+"]":this.opts.hostname)+o+this.opts.path+(n.length?"?"+n:"")}check(){return!!c.WebSocket}}t.WS=h},6666:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.XHR=void 0;const n=o(8419),a=o(6242);t.XHR=function(e){const t=e.xdomain;try{if("undefined"!=typeof XMLHttpRequest&&(!t||n.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,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.byteLength=t.installTimerFunctions=t.pick=void 0;const n=o(6242);t.pick=function(e,...t){return t.reduce(((t,o)=>(e.hasOwnProperty(o)&&(t[o]=e[o]),t)),{})};const a=setTimeout,r=clearTimeout;t.installTimerFunctions=function(e,t){t.useNativeTimers?(e.setTimeoutFn=a.bind(n.globalThisShim),e.clearTimeoutFn=r.bind(n.globalThisShim)):(e.setTimeoutFn=setTimeout.bind(n.globalThisShim),e.clearTimeoutFn=clearTimeout.bind(n.globalThisShim))},t.byteLength=function(e){return"string"==typeof e?function(e){let t=0,o=0;for(let n=0,a=e.length;n=57344?o+=3:(n++,o+=4);return o}(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 o=Object.create(null);t.PACKET_TYPES=o,o.open="0",o.close="1",o.ping="2",o.pong="3",o.message="4",o.upgrade="5",o.noop="6";const n=Object.create(null);t.PACKET_TYPES_REVERSE=n,Object.keys(o).forEach((e=>{n[o[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 o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n="undefined"==typeof Uint8Array?[]:new Uint8Array(256);for(let e=0;e{let t,n=new Uint8Array(e),a=n.length,r="";for(t=0;t>2],r+=o[(3&n[t])<<4|n[t+1]>>4],r+=o[(15&n[t+1])<<2|n[t+2]>>6],r+=o[63&n[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,o,a,r,s,i=.75*e.length,c=e.length,l=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[l++]=(15&a)<<4|r>>2,d[l++]=(3&r)<<6|63&s;return u}},7572:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=o(3087),a=o(2469),r="function"==typeof ArrayBuffer,s=(e,t)=>{if(r){const o=(0,a.decode)(e);return i(o,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 o=e.charAt(0);return"b"===o?{type:"message",data:s(e.substring(1),t)}:n.PACKET_TYPES_REVERSE[o]?e.length>1?{type:n.PACKET_TYPES_REVERSE[o],data:e.substring(1)}:{type:n.PACKET_TYPES_REVERSE[o]}:n.ERROR_PACKET}},3908:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=o(3087),a="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),r="function"==typeof ArrayBuffer,s=(e,t)=>{const o=new FileReader;return o.onload=function(){const e=o.result.split(",")[1];t("b"+e)},o.readAsDataURL(e)};t.default=({type:e,data:t},o,i)=>{return a&&t instanceof Blob?o?i(t):s(t,i):r&&(t instanceof ArrayBuffer||(c=t,"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(c):c&&c.buffer instanceof ArrayBuffer))?o?i(t):s(new Blob([t]),i):i(n.PACKET_TYPES[e]+(t||""));var c}},1373:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodePayload=t.decodePacket=t.encodePayload=t.encodePacket=t.protocol=void 0;const n=o(3908);t.encodePacket=n.default;const a=o(7572);t.decodePacket=a.default;const r=String.fromCharCode(30);t.encodePayload=(e,t)=>{const o=e.length,a=new Array(o);let s=0;e.forEach(((e,i)=>{(0,n.default)(e,!1,(e=>{a[i]=e,++s===o&&t(a.join(r))}))}))},t.decodePayload=(e,t)=>{const o=e.split(r),n=[];for(let e=0;e{"use strict";function o(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=o,o.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),o=Math.floor(t*this.jitter*e);e=0==(1&Math.floor(10*t))?e-o:e+o}return 0|Math.min(e,this.max)},o.prototype.reset=function(){this.attempts=0},o.prototype.setMin=function(e){this.ms=e},o.prototype.setMax=function(e){this.max=e},o.prototype.setJitter=function(e){this.jitter=e}},7046:function(e,t,o){"use strict";var n=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=o(3084),r=o(4168);Object.defineProperty(t,"Manager",{enumerable:!0,get:function(){return r.Manager}});const s=o(8312);Object.defineProperty(t,"Socket",{enumerable:!0,get:function(){return s.Socket}});const i=n(o(1227)).default("socket.io-client"),c={};function l(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};const o=a.url(e,t.path||"/socket.io"),n=o.source,s=o.id,l=o.path,u=c[s]&&l in c[s].nsps;let d;return t.forceNew||t["force new connection"]||!1===t.multiplex||u?(i("ignoring socket cache for %s",n),d=new r.Manager(n,t)):(c[s]||(i("new io instance for %s",n),c[s]=new r.Manager(n,t)),d=c[s]),o.query&&!t.query&&(t.query=o.queryKey),d.socket(o.path,t)}t.io=l,t.connect=l,t.default=l,Object.assign(l,{Manager:r.Manager,Socket:s.Socket,io:l,connect:l});var u=o(7116);Object.defineProperty(t,"protocol",{enumerable:!0,get:function(){return u.protocol}}),e.exports=l},4168:function(e,t,o){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,o,n){void 0===n&&(n=o),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[o]}})}:function(e,t,o,n){void 0===n&&(n=o),e[n]=t[o]}),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 o in e)"default"!==o&&Object.prototype.hasOwnProperty.call(e,o)&&n(t,e,o);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=o(4679),c=o(8312),l=r(o(7116)),u=o(7149),d=o(5159),p=o(5260),h=s(o(1227)).default("socket.io-client:manager");class m extends p.Emitter{constructor(e,t){var o;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!==(o=t.randomizationFactor)&&void 0!==o?o:.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 n=t.parser||l;this.encoder=new n.Encoder,this.decoder=new n.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,o=this;this._readyState="opening",this.skipReconnect=!1;const n=u.on(t,"open",(function(){o.onopen(),e&&e()})),a=u.on(t,"error",(t=>{h("error"),o.cleanup(),o._readyState="closed",this.emitReserved("error",t),e?e(t):o.maybeReconnectOnOpen()}));if(!1!==this._timeout){const e=this._timeout;h("connect attempt will timeout after %d",e),0===e&&n();const o=this.setTimeoutFn((()=>{h("connect attempt timed out after %d",e),n(),t.close(),t.emit("error",new Error("timeout"))}),e);this.opts.autoUnref&&o.unref(),this.subs.push((function(){clearTimeout(o)}))}return this.subs.push(n),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 o=this.nsps[e];return o||(o=new c.Socket(this,e,t),this.nsps[e]=o),o}_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 o=0;oe())),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 o=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&&o.unref(),this.subs.push((function(){clearTimeout(o)}))}}onreconnect(){const e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}t.Manager=m},7149:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.on=void 0,t.on=function(e,t,o){return e.on(t,o),function(){e.off(t,o)}}},8312:function(e,t,o){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Socket=void 0;const a=o(7116),r=o(7149),s=o(5260),i=n(o(1227)).default("socket.io-client:socket"),c=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class l extends s.Emitter{constructor(e,t,o){super(),this.connected=!1,this.receiveBuffer=[],this.sendBuffer=[],this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=t,o&&o.auth&&(this.auth=o.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(c.hasOwnProperty(e))throw new Error('"'+e+'" is a reserved event name');t.unshift(e);const o={type:a.PacketType.EVENT,data:t,options:{}};if(o.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 n=t.pop();this._registerAckCallback(e,n),o.id=e}const n=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return!this.flags.volatile||n&&this.connected?this.connected?(this.notifyOutgoingListeners(o),this.packet(o)):this.sendBuffer.push(o):i("discard packet as the transport is not currently writable"),this.flags={},this}_registerAckCallback(e,t){const o=this.flags.timeout;if(void 0===o)return void(this.acks[e]=t);const n=this.io.setTimeoutFn((()=>{delete this.acks[e];for(let t=0;t{this.io.clearTimeoutFn(n),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 o of t)o.apply(this,e)}super.emit.apply(this,e)}ack(e){const t=this;let o=!1;return function(...n){o||(o=!0,i("sending ack %j",n),t.packet({type:a.PacketType.ACK,id:e,data:n}))}}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 o=0;o{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.reconstructPacket=t.deconstructPacket=void 0;const n=o(790);function a(e,t){if(!e)return e;if(n.isBinary(e)){const o={_placeholder:!0,num:t.length};return t.push(e),o}if(Array.isArray(e)){const o=new Array(e.length);for(let n=0;n=0&&e.num{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Decoder=t.Encoder=t.PacketType=t.protocol=void 0;const n=o(5260),a=o(3155),r=o(790),s=o(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),o=this.encodeAsString(t.packet),n=t.buffers;return n.unshift(o),n}};class c extends n.Emitter{constructor(e){super(),this.reviver=e}add(e){let t;if("string"==typeof e){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");t=this.decodeString(e),t.type===i.BINARY_EVENT||t.type===i.BINARY_ACK?(this.reconstructor=new l(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 o={type:Number(e.charAt(0))};if(void 0===i[o.type])throw new Error("unknown packet type "+o.type);if(o.type===i.BINARY_EVENT||o.type===i.BINARY_ACK){const n=t+1;for(;"-"!==e.charAt(++t)&&t!=e.length;);const a=e.substring(n,t);if(a!=Number(a)||"-"!==e.charAt(t))throw new Error("Illegal attachments");o.attachments=Number(a)}if("/"===e.charAt(t+1)){const n=t+1;for(;++t&&","!==e.charAt(t)&&t!==e.length;);o.nsp=e.substring(n,t)}else o.nsp="/";const n=e.charAt(t+1);if(""!==n&&Number(n)==n){const n=t+1;for(;++t;){const o=e.charAt(t);if(null==o||Number(o)!=o){--t;break}if(t===e.length)break}o.id=Number(e.substring(n,t+1))}if(e.charAt(++t)){const n=this.tryParse(e.substr(t));if(!c.isPayloadValid(o.type,n))throw new Error("invalid payload");o.data=n}return s("decoded %s as %j",e,o),o}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=c;class l{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 o="function"==typeof ArrayBuffer,n=Object.prototype.toString,a="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===n.call(Blob),r="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===n.call(File);function s(e){return o&&(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,o){if(!t||"object"!=typeof t)return!1;if(Array.isArray(t)){for(let o=0,n=t.length;o{"use strict";function n(e){if(e)return function(e){for(var t in n.prototype)e[t]=n.prototype[t];return e}(e)}o.r(t),o.d(t,{Emitter:()=>n}),n.prototype.on=n.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},n.prototype.once=function(e,t){function o(){this.off(e,o),t.apply(this,arguments)}return o.fn=t,this.on(e,o),this},n.prototype.off=n.prototype.removeListener=n.prototype.removeAllListeners=n.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var o,n=this._callbacks["$"+e];if(!n)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 o in t)__webpack_require__.o(t,o)&&!__webpack_require__.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},__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__(8238),__webpack_require__(112),__webpack_require__(3336),__webpack_require__(2868),__webpack_require__(4719),__webpack_require__(3131),__webpack_require__(3526),__webpack_require__(4759);var __webpack_exports__=__webpack_require__(2852)})(); \ No newline at end of file +/*! For license information please see bundle.js.LICENSE.txt */ +(()=>{var __webpack_modules__={8844:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))}}n=[o,t,o(4759),o(9820),o(2852),o(4719)],void 0===(a=function(e,t,o,n,a,r){"use strict";new n.Toggler(n.category.battle,"Disable math [PvP, PvE]","Disable math in PvP, PvE, anywhere! This doesn't work in the Floatling town.").setEnabled(s((function*(){return a._.constants.constants["GameConstants.Debug.EDUCATION_ENABLED"]=!1,o.Toast.fire("Enabled!","You will no longer do Math!","success")}))).setDisabled(s((function*(){return a._.constants.constants["GameConstants.Debug.EDUCATION_ENABLED"]=!0,o.Toast.fire("Disabled!","You will now do Math!","success")}))),new n.Toggler(n.category.battle,"Instant Kill [PvE]","Makes your spells do insane damage in PvE!").setEnabled(s((function*(){return a.player.modifiers.damage=a.VERY_LARGE_NUMBER,o.Toast.fire("Enabled!","You will now do insane damage in PvE!","success")}))).setDisabled((()=>(a.player.modifiers.damage=1,o.Toast.fire("Disabled!","You will no longer do insane damage in PvE!","success")))),new n.Hack(n.category.battle,"PvP Health [PvP]","Increases your HP in PvP by a hell ton.").setClick(s((function*(){return a.player.pvpHP=a.VERY_LARGE_NUMBER,a.player.getMaxHearts=()=>a.VERY_LARGE_NUMBER,o.Toast.fire("Success!","You now have lots of health!","success")}))),new n.Hack(n.category.battle,"Escape Battle [PvP, PvE]","Escape any battle, PvP or PvE!").setClick(s((function*(){var e=a.game.state.current;return"PVP"===e?(Object.fromEntries(a._.instance.game.state.states).PVP.endPVP(),o.Toast.fire("Escaped!","You have successfully escaped from the PvP battle.","success")):"CoOp"===e?(a.prodigy.world.$(a.player.data.zone),o.Toast.fire("Escaped!","You have successfully escaped from the battle.","success")):["Battle","SecureBattle"].includes(e)?(Object.fromEntries(a._.instance.game.state.states)[e].runAwayCallback(),o.Toast.fire("Escaped!","You have successfully escaped from the PvE battle.","success")):o.Toast.fire("Invalid State.","You are currently not in a battle.","error")}))),new n.Hack(n.category.battle,"Win Battle [PvE]","Instantly win a battle in PvE.").setClick(s((function*(){var e=a.game.state.current;switch((0,r.BattleInfo)("Current State: "+e),e){case"PVP":case"CoOp":return o.Toast.fire("Invalid State.","PvP is not supported for this hack.","error");case"Battle":return Object.fromEntries(a._.instance.game.state.states).Battle.startVictory(),o.Toast.fire("Victory!","You have successfully won the battle.","success");case"SecureBattle":return Object.fromEntries(a._.instance.game.state.states).SecureBattle.battleVictory(),o.Toast.fire("Victory!","You have successfully won the battle.","success");default:return o.Toast.fire("Invalid State.","You are currently not in a battle.","error")}}))),new n.Hack(n.category.battle,"Set Battle Hearts [PvP, PvE]","Sets your hearts in battle, automatically raise your max hearts in PvP or PvE.").setClick(s((function*(){var e=yield o.NumberInput.fire("Health Amount","How much HP do you want?","question");if(void 0!==e.value)return a.player.getMaxHearts=()=>+e.value,a.player.pvpHP=+e.value,a.player.data.hp=+e.value,o.Toast.fire("Success!","Your hearts have been set.","success")}))),new n.Hack(n.category.battle,"Fill Battle Energy [PvP, PvE]","Fills up your battle energy, if you are in PvP or PvE.").setClick(s((function*(){var e=a.game.state.getCurrentState();return"teams"in e?(e.teams[0].setEnergy(99),o.Toast.fire("Success!","Your battle energy has been filled.","success")):o.Toast.fire("Error","You are currently not in a battle.","error")}))),new n.Hack(n.category.battle,"Heal Team [PvE]","Instantly heals you and your pets, if you are in PvE.").setClick(s((function*(){var e=a.game.state.current;return"PVP"===e||"CoOp"===e?o.Toast.fire("Invalid State.","PvP is not supported for this hack.","error"):["Battle","SecureBattle"].includes(e)?(a.player.heal(),o.Toast.fire("Success!","Your team has been healed successfully!","success")):o.Toast.fire("Invalid State.","Your are currently not in a battle.","error")})))}.apply(t,n))||(e.exports=a)},9155:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))}}n=[o,t,o(4759),o(9820),o(2852),o(112),o(3131)],void 0===(a=function(e,t,o,n,a,r,i){"use strict";new n.Hack(n.category.beta,"Get all Runes [BETA]").setClick(s((function*(){if((yield o.Confirm.fire({title:"Hang on!",html:"This hack may damage your account with various bugs, for example you may be unable to do Rune Run.

                  Proceed?",icon:"warning"})).value){var e,t=parseInt((yield o.NumberInput.fire({title:"Amount",text:"How many of each would you like?",icon:"question",inputValidator:e=>e?"":"Please select which you'd like to get."})).value);if(!isNaN(t))return Array.from(a._.instance.prodigy.gameContainer._inversifyContainer._bindingDictionary._map).forEach((t=>{try{a._.instance.prodigy.gameContainer.get(t[0]).battleData&&(e=t[0])}catch(e){console.log("Error for ".concat(t[0]))}})),a._.instance.prodigy.gameContainer.get(e).battleData._secureCharacterState._data.inventory.orb=(0,r.runeify)(a._.gameData.orb,t),o.Toast.fire("Runes Added!","Your runes have been added!","success")}}))),new n.Hack(n.category.beta,"Edit Pet [BETA]","Edit a pet.").setClick(s((function*(){if(!(yield o.Confirm.fire({title:"Hang on!",html:"This hack may damage your account with various bugs, for example you may be unable to do Rune Run.

                  Proceed?",icon:"warning"})).value)return console.log("Cancelled.");var e=yield(0,r.getPet)("Choose the pet to edit.");if(void 0!==e){var t=a.player.kennel.data[e],n=yield o.Swal.fire({input:"select",inputOptions:{level:"Level",attacks:"Attacks",name:"Name"},title:"Edit Property",text:"What do you want to edit?"});if(void 0!==n.value){if("level"===n.value){var s=yield o.NumberInput.fire("Level Number","What level do you want to set your pet to?","question");if(void 0===s.value)return;return t.level=+s.value,o.Toast.fire("Success!","The pet's level has been set.","success")}if("attacks"===n.value){var i=a._.gameData.spell,c=document.createElement("div"),l=document.createElement("select");for(var u of(l.classList.add("selectSpell"),i)){var d=document.createElement("option");d.value=u.ID.toString(),d.innerText="".concat(u.ID,": ").concat(u.name," (").concat(u.data.element,") - Damage: ").concat(u.data.damage),l.options.add(d)}c.append(l),c.append(l.cloneNode(!0));var p=yield o.Swal.fire({title:"Attack List",focusConfirm:!1,showCancelButton:!0,html:c,preConfirm:()=>Array.prototype.slice.call(document.querySelectorAll(".selectSpell")).map((e=>e.options[e.selectedIndex].value))});if(void 0===p.value)return;return t.foreignSpells.splice(0,2,...p.value.map((e=>+e))),o.Toast.fire("Attacks updated!","The attack list of the pet you selected has been edited.","success")}if("name"===n.value){var h=yield o.Input.fire("Input Name","What do you want to name the pet?","question");if(void 0===h.value)return;return t.nickname=h.value,o.Toast.fire("Successfully renamed!","The name of the pet has been changed.","success")}}}}))),new n.Hack(n.category.beta,"Morph Player [BETA]","Morph into a pet, furnishing, or follow.").setClick(s((function*(){if(!(yield o.Confirm.fire("This hack is in BETA","Expect bugs, and it might not work properly.")).value)return console.log("Cancelled");var e=yield o.Swal.fire({title:"Which morph type?",input:"select",inputOptions:{pet:"Pet",dorm:"Furniture",follow:"Follow"},inputPlaceholder:"Morph Type",inputValidator:e=>e?"":"Please select a morph type.",showCancelButton:!0});if(null!=e&&e.value){var t={};a._.gameData[e.value].forEach((e=>t[e.ID]="".concat(e.name," (").concat(e.ID,")")));var n=yield o.Swal.fire({title:"Which morph?",input:"select",inputOptions:t,inputPlaceholder:"Morph ID",inputValidator:e=>e?"":"Please select a morph ID.",showCancelButton:!0});if(n.value)return a.player.getPlayerData().playerTransformation={transformType:e.value,transformID:n.value,maxTime:36e5,timeRemaining:36e5},a.player.appearanceChanged=!0,o.Toast.fire("Morphed!","You've been morphed.","success")}}))),new n.Toggler(n.category.beta,"Toggle Close Popups [BETA]","Automatically closes popups in Prodigy.").setEnabled(s((function*(){return(0,i.PopupInterval)(!0),o.Toast.fire("Enabled","Toggle Close Popups is now enabled.","success")}))).setDisabled(s((function*(){return(0,i.PopupInterval)(!1),o.Toast.fire("Enabled","Toggle Close Popups is now disabled.","success")}))),new n.Hack(n.category.beta,"Hypermax Account [BETA]").setClick(s((function*(){if((yield o.Confirm.fire({title:"Hang on!",html:"This hack will damage your account with various bugs, for example you may be unable to do Rune Run/Arena, amd you will recieve 418s and inavtivity kicks.

                  Proceed?",icon:"warning"})).value){a.player.data.gold=99e5,console.log("Set player gold to 9900000.");var e=100..value-2;a.player.data.stars=Math.round((1-Math.pow(1.042,e))/(1-1.042)*20+10),a.player.data.level=100,a.player.getLevel=()=>a.player.data.level,console.log("Set player level to 100"),a.player.data.bountyScore=100,console.log("Set player's bounty points to 100.");for(var t=0;ta.VERY_LARGE_NUMBER,console.log("PvP health obtained.");for(var n=0;n<100;n++)a.player.achievements.data.progress[n]=10;console.log("Obtained all achievements."),a.player.data.tower=100,console.log("Set tower floor to 100."),a.player.getMaxHearts=()=>a.VERY_LARGE_NUMBER,a.player.pvpHP=a.VERY_LARGE_NUMBER,a.player.data.hp=a.VERY_LARGE_NUMBER,console.log("Maxed out PvE health.");var s,i=99e4;r.ids.forEach((e=>{a.player.backpack.data[e]=(0,r.itemify)(a._.gameData[e].filter((t=>"follow"===e?![125,126,127,128,129,134,135,136,137].includes(t.ID):t)),i.value)})),a._.gameData.dorm.forEach((e=>a.player.house.data.items[e.ID]={A:[],N:i.value}));for(var c=()=>a.player.backpack.data.item.findIndex((e=>84===e.ID||85===e.ID||86===e.ID));c()>-1;)a.player.backpack.data.item.splice(c(),1);return o.Toast.fire("Success!","All items added!","success"),console.log("All items added!"),a.player.backpack.data.mount=(0,r.itemify)(a._.gameData.mount,1),console.log("Added all mounts."),a._.gameData.dorm.forEach((e=>a.player.house.data.items[e.ID]={A:[],N:99e4.value})),console.log("Added 990000 of all furniture."),a._.gameData.pet.forEach((e=>{a.player.kennel.addPet(e.ID.toString(),a.VERY_LARGE_NUMBER,26376,100)})),a.player.kennel._encounterInfo._data.pets=[],a._.gameData.pet.map((e=>{a.player.kennel._encounterInfo._data.pets.push({firstSeenDate:Date.now(),ID:e.ID,timesBattled:1,timesRescued:1})})),a.player.kennel.petTeam.forEach((e=>{e&&e.assignRandomSpells&&e.assignRandomSpells()})),console.log("Added all pets."),a._.gameData.pet.filter((e=>[158,166,168].includes(e.ID))).forEach((e=>{a.player.kennel.addPet(e.ID.toString(),a.VERY_LARGE_NUMBER,26376,100)})),a.player.kennel.petTeam.forEach((e=>{e&&e.assignRandomSpells&&e.assignRandomSpells()})),console.log("Added Mythical Epics."),a._.gameData.pet.filter((e=>[125,126,127,128,129,130,131,132,133].includes(e.ID))).forEach((e=>{a.player.kennel.addPet(e.ID.toString(),a.VERY_LARGE_NUMBER,26376,100)})),a.player.kennel.petTeam.forEach((e=>{e&&e.assignRandomSpells&&e.assignRandomSpells()})),console.log("Added Legacy Epics."),a._.constants.constants["GameConstants.Inactivity.LOG_OUT_TIMER_SECONDS"]=0,console.log("Inactivity Kick Disabled."),a.player._playerContainer.walkSpeed=20,console.log("Player walkspeed set to 20."),Array.from(a._.instance.prodigy.gameContainer._inversifyContainer._bindingDictionary._map).forEach((e=>{try{a._.instance.prodigy.gameContainer.get(e[0]).battleData&&(s=e[0])}catch(t){console.log("Error for ".concat(e[0]))}})),a._.instance.prodigy.gameContainer.get(s).battleData._secureCharacterState._data.inventory.orb=(0,r.runeify)(a._.gameData.orb,100),a.player.equipment.setHat(200),a.player.equipment.setBoots(93),a.player.equipment.setOutfit(161),a.player.equipment.setWeapon(196),(0,a.saveCharacter)(),console.log("Character Saved."),a.player.appearanceChanged=!0,console.log("Appearance Refreshed."),a._.instance.prodigy.open.menuCloseAll(),console.log("Popups closed."),(0,a.saveCharacter)(),console.log("Character Saved."),console.log("Max Account Successful."),o.Toast.fire("Maxed!","Check your backpack!","success")}})))}.apply(t,n))||(e.exports=a)},8130:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))}}n=[o,t,o(9820),o(4759),o(2852),o(112)],void 0===(a=function(e,t,o,n,a,r){"use strict";new o.Hack(o.category.inventory,"Item stacker").setClick(s((function*(){var e=yield n.NumberInput.fire("Amount","How many of every item would you like?","question");if(e.value&&(yield n.Confirm.fire("Are you sure you want to get all items in the game?")).value){r.ids.forEach((t=>{a.player.backpack.data[t]=(0,r.itemify)(a._.gameData[t].filter((e=>"follow"===t?![125,126,127,128,129,134,135,136,137].includes(e.ID):e)),e.value)})),a._.gameData.dorm.forEach((t=>a.player.house.data.items[t.ID]={A:[],N:e.value}));for(var t=()=>a.player.backpack.data.item.findIndex((e=>84===e.ID||85===e.ID||86===e.ID));t()>-1;)a.player.backpack.data.item.splice(t(),1);return n.Toast.fire("Success!","All items added!","success")}}))),new o.Hack(o.category.inventory,"Clear inventory").setClick(s((function*(){(yield n.Confirm.fire("Are you sure you want to clear your inventory?")).value&&(Object.keys(a.player.backpack.data).forEach((e=>a.player.backpack.data[e]=[])),n.Toast.fire("Success!","Inventory cleared.","success"))}))),new o.Hack(o.category.inventory,"Selector (Basic)").setClick(s((function*(){yield n.Swal.fire({title:"What would you like to obtain?",input:"select",inputOptions:r.names,inputPlaceholder:"Select...",inputValidator:e=>e?"":"Please select which you'd like to obtain.",showCancelButton:!0}).then(function(){var e=s((function*(e){var t=parseInt(e.value),o=r.names[t],s=r.ids[t];if(o){var i=yield n.NumberInput.fire("Amount","How many each object would you like?","question");i.value&&(yield n.Confirm.fire("Are you sure you want to get all ".concat(o.toLowerCase(),"?"))).value&&(a.player.backpack.data[s]=(0,r.itemify)(a._.gameData[s].filter((e=>"follow"===s?![125,126,127,128,129,134,135,136,137].includes(e.ID):e)),i.value),n.Toast.fire("".concat(o," Added!"),"All ".concat(o.toLowerCase()," have been added to your inventory!"),"success"),(0,a.saveCharacter)())}}));return function(t){return e.apply(this,arguments)}}())}))),new o.Hack(o.category.inventory,"Selector (Advanced)","Choose a specific object and quantity to obtain.").setClick(s((function*(){yield n.Swal.fire({title:"What would you like to obtain?",input:"select",inputOptions:r.names,inputPlaceholder:"Select...",inputValidator:e=>e?"":"Please select which you'd like to obtain.",showCancelButton:!0}).then(function(){var e=s((function*(e){if(a._.gameData[r.ids[e.value]]){var t=[];a._.gameData[r.ids[e.value]].forEach((e=>{t.push(e.data.name)})),yield n.Swal.fire({title:"What specific object categorized as ".concat(r.names[e.value].toLowerCase()," would you like to get?"),input:"select",inputOptions:t,inputPlaceholder:"Select...",inputValidator:e=>e?"":"Please select which you'd like to get.",showCancelButton:!0}).then(function(){var t=s((function*(t){var o=parseInt(t.value);if(a._.gameData[r.ids[e.value]][o]){var s=yield n.NumberInput.fire("Amount","How many of the object would you like?","question");if(s.value)return-1===a.player.backpack.data[r.ids[e.value]].findIndex((t=>t.ID===a._.gameData[r.ids[e.value]][o].ID))?a.player.backpack.data[r.ids[e.value]].push({ID:a._.gameData[r.ids[e.value]][o].ID,N:s.value}):a.player.backpack.data[r.ids[e.value]].findIndex((t=>t.ID===a._.gameData[r.ids[e.value]][o].ID)),console.log(a._.gameData[r.ids[e.value]][o].ID),(0,a.saveCharacter)(),n.Toast.fire("".concat(r.names[e.value]," Added!"),"Your selected ".concat(r.names[e.value].toLowerCase()," have been added."),"success")}}));return function(e){return t.apply(this,arguments)}}())}}));return function(t){return e.apply(this,arguments)}}())}))),new o.Hack(o.category.inventory,"Obtain All Furniture").setClick(s((function*(){var e=yield n.NumberInput.fire("Amount","How many of each piece of furniture would you like?","question");if(e.value&&(yield n.Confirm.fire("Are you sure you want to get all furniture?")).value)return a._.gameData.dorm.forEach((t=>a.player.house.data.items[t.ID]={A:[],N:e.value})),n.Toast.fire("Furniture Added!","All furniture has been added to your inventory!","success")}))),new o.Hack(o.category.inventory,"Obtain All Mounts","This gives you all of the mounts in the game.").setClick(s((function*(){return a.player.backpack.data.mount=(0,r.itemify)(a._.gameData.mount,1),n.Toast.fire("Mounts Added!","All mounts have been added to your inventory!")}))),new o.Hack(o.category.inventory,"Remove item").setClick(s((function*(){var e=yield n.Swal.fire({title:"What category would you like to remove an item from?",input:"select",inputOptions:r.names,inputPlaceholder:"Select...",inputValidator:e=>e?"":"Please select which you'd like to obtain.",showCancelButton:!0});if(a._.gameData[r.ids[e.value]]){var t=a._.gameData[r.ids[e.value]].map((e=>e.data.name)),o=yield n.Swal.fire({title:"What specific object categorized as ".concat(r.names[e.value].toLowerCase()," would you like to remove?"),input:"select",inputOptions:t,inputPlaceholder:"Select...",inputValidator:e=>e?"":"Please select which you'd like to get.",showCancelButton:!0});if(o=parseInt(o.value),a._.gameData[r.ids[e.value]][o]){var s=yield n.NumberInput.fire("Amount","How many of the object would you like to remove?","question");if(s.value){if(-1!==a.player.backpack.data[r.ids[e.value]].findIndex((t=>t.ID===a._.gameData[r.ids[e.value]][o].ID))){var i=a.player.backpack.data[r.ids[e.value]].findIndex((t=>t.ID===a._.gameData[r.ids[e.value]][o].ID));return a.player.backpack.data[r.ids[e.value]][i].N-=parseInt(s.value),a.player.backpack.data[r.ids[e.value]][i].N<=0&&a.player.backpack.data[r.ids[e.value]].splice(i,1),(0,a.saveCharacter)(),n.Toast.fire("Removed!","Successfully removed ".concat(s.value," ").concat(a._.gameData[r.ids[e.value]][o].name,"!"),"success")}yield n.Swal.fire("Item Does Not Exist","You do not have any ".concat(a._.gameData[r.ids[e.value]][o].name,"."),"error")}}}}))),new o.Hack(o.category.inventory,"Obtain All Furniture").setClick(s((function*(){return(yield n.Confirm.fire("Are you sure you want to get all furniture?")).value?(a._.gameData.dorm.forEach((e=>a.player.house.data.items[e.ID]={A:[],N:a.VERY_LARGE_NUMBER})),n.Toast.fire("Furniture Added!","All furniture have been added to your inventory!","success")):console.log("Cancelled.")})))}.apply(t,n))||(e.exports=a)},8346:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))}}n=[o,t,o(9820),o(4759),o(2852),o(112)],void 0===(a=function(e,t,o,n,a,r){"use strict";new o.Hack(o.category.location,"Teleport To Map (interactive)").setClick(s((function*(){var e=n.Swal.mixin({focusConfirm:!1,showCancelButton:!0,preConfirm:()=>{var e;return null===(e=document.querySelector(".radioDiv[checked]"))||void 0===e?void 0:e.getAttribute("zone")}}),t=document.createElement("div");t.classList.add("radioContainer");var o=function(e){var o=document.createElement("DIV");o.classList.add("radioDiv"),o.setAttribute("zone",e);var n=a.locations[e];n?o.style.backgroundImage="url(".concat(n,")"):o.innerText=e,o.onclick=()=>{document.querySelectorAll(".radioDiv[checked]").forEach((e=>e.removeAttribute("checked"))),o.setAttribute("checked","")},t.append(o)};for(var r of Object.keys(a.prodigy.world.zones))o(r);var s=yield e.fire({title:"Teleport Zone",html:t,customClass:{popup:"radioSwal"}});if(s.value){var i=Object.keys(a.prodigy.world.zones[s.value].maps),c=yield n.Swal.fire({input:"select",inputOptions:new Map(i.map((e=>[e,e]))),title:"Map",text:"Which map in the zone do you want to teleport to?"});if(c.value){var l=(yield n.NumberInput.fire("Please enter the x to teleport to. (Try 500?)")).value||500,u=(yield n.NumberInput.fire("Please enter the y to teleport to. (Try 500?)")).value||500;return a.prodigy.world.zones[s.value].teleport(c.value,l,u,{},{}),n.Toast.fire("Teleported","You have been teleported!","success")}}}))),new o.Hack(o.category.location,"Teleport to house by userID").setClick(s((function*(){var e=(yield n.NumberInput.fire("Please enter the userID.")).value;if(e)return(0,r.toHouse)(e),n.Toast.fire("Teleported!","You have been teleported!","success")}))),new o.Hack(o.category.location,"Get Map Location").setClick(s((function*(){var e=a.player.data.zone;navigator.clipboard.writeText(e).then(s((function*(){return console.log("Async: Copying to clipboard was successful!"),n.Swal.fire({title:"Map Location",html:"You are at
                  ".concat(e," .
                  You can save this to get to the same zone.

                  Your location is has also been copied to your clipboard."),icon:"info"})})),function(){var t=s((function*(t){return console.error("Async: Could not copy text: ",t),n.Swal.fire({title:"Map Location",html:"You are at
                  ".concat(e," .
                  You can save this to get to the same zone."),icon:"info"})}));return function(e){return t.apply(this,arguments)}}())})))}.apply(t,n))||(e.exports=a)},3344:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))}}n=[o,t,o(9820),o(2852),o(4759)],void 0===(a=function(e,t,o,n,a){"use strict";new o.Toggler(o.category.minigames,"69x Walk Speed [Dyno Dig]","Walk so fast that you're teleporting, in Dyno Dig.").setEnabled(s((function*(){return n._.instance.game.state.states.get("DinoDig").walkSpeed=69,a.Toast.fire("Enabled!","You will now walk so fast that you're teleporting in Dyno Dig.","success")}))).setDisabled(s((function*(){return n._.instance.game.state.states.get("DinoDig").walkSpeed=1.5,a.Toast.fire("Disabled!","You will now walk at normal speed, in Dyno Dig.","success")})))}.apply(t,n))||(e.exports=a)},465:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))}}n=[o,t,o(4759),o(9820),o(2852),o(8238)],void 0===(a=function(e,t,o,n,a,r){"use strict";new n.Hack(n.category.misc,"Skip Tutorial").setClick(s((function*(){var e=(e,t,o,n)=>{a._.instance.prodigy.world.getZone(e).testQuest(t,o,n);try{Object.fromEntries(a._.instance.game.state.states).TileScreen.process()}catch(e){}};e("house",2),e("academy",2),a.player.state.set("tutorial-0",4),a.player.backpack.addKeyItem(13,0),a.player.tutorial.data.menus[14]=[1],a._.instance.prodigy.open.map(!0,[]),a.player.onTutorialComplete(),a.player.data.level=Math.max(a.player.data.level,5)}))),new n.Toggler(n.category.misc,"Disable Monster Encounters").setEnabled(s((function*(){return a._.constants.constants["GameConstants.Debug.SCALE_ENCOUNTER_DISTANCE"]=0,o.Toast.fire("Enabled!","Monsters will no longer battle you.","success")}))).setDisabled((()=>(a._.constants.constants["GameConstants.Debug.SCALE_ENCOUNTER_DISTANCE"]=1,o.Toast.fire("Disabled!","Monsters will now battle you.","success")))),new n.Toggler(n.category.misc,"Skip enemy turn").setEnabled(s((function*(){return a._.constants.constants["GameConstants.Battle.SKIP_ENEMY_TURN"]=!0,o.Toast.fire("Skipping!","Enemy turns will now be skipped.","success")}))).setDisabled((()=>(a._.constants.constants["GameConstants.Battle.SKIP_ENEMY_TURN"]=!1,o.Toast.fire("Disabled","Enemy turns will no longer be skipped.","success")))),new n.Toggler(n.category.beta,"FPS Counter [BETA]","Shows you a framerate counter").setEnabled(s((function*(){(0,r.startFps)()}))).setDisabled(s((function*(){(0,r.stopFps)()})));try{var i=a.current.user.source.canSpin;new n.Toggler(n.category.misc,"Unlimited Spins","Lets you spin the wheel as many times as you want!").setEnabled(s((function*(){return a.player.canSpin=()=>{},o.Toast.fire("Enabled!","You can now spin the wheel as many times as you want!","success")}))).setDisabled(s((function*(){return a.player.canSpin=i,o.Toast.fire("Disabled!","You can now spin the wheel only when allowed.","success")})))}catch(e){console.error("Unlimited Spins ERROR: "+e)}new n.Hack(n.category.misc,"Bobbify","Converts your account into Bobby Fancywoman.").setClick(s((function*(){if((yield o.Confirm.fire("Are you sure you want your account to be turned into Bobby Fancywoman?","This action is not reversable.")).value)return a.player.name.data.nickname=null,a.player.name.data.firstName=44,a.player.name.data.middleName=754,a.player.name.data.lastName=882,a.player.data.stars=-1e22,a.player.data.level=69,a.player.appearance.setGender("male"),a.player.appearance.setEyeColor(1),a.player.appearance.setFace(4),a.player.appearance.setHair(19,1),a.player.appearance.setSkinColor(1),a.player.equipment.setFollow(19),a.player.equipment.setHat(19),a.player.equipment.setBoots(19),a.player.equipment.setOutfit(19),a.player.equipment.setWeapon(19),o.Toast.fire("Bobbified!","You are now Bobby Fancywoman.","success")}))),new n.Hack(n.category.misc,"Reset Account","Completely resets your account.").setClick(s((function*(){if((yield o.Confirm.fire("Are you sure you want to reset your account?","This action is not reversible.")).value)return a.player.resetAccount(),o.Swal.fire("Reset!","Your account has been reset. Reload Prodigy for the full effect.","success")})));var c=null,l=0;new n.Hack(n.category.misc,"Chat Spammer","Cycles through chat messages pretty fast!").setClick(s((function*(){return c?o.Swal.fire("Already Enabled","Chat Spammer is already enabled. To disable chat spammer, reload Prodigy.","error"):(c=setInterval(s((function*(){a.player.chatID=l,++l>1164&&(l=0)})),90),o.Toast.fire("Spamming!","You're now sending a chat message every 90 milliseconds!","success"))})));var u=null,d=0;new n.Hack(n.category.misc,"High Chat Spammer","Cycles through chat messages hella fast!").setClick(s((function*(){return u?o.Swal.fire("Already Enabled","High Chat Spammer is already enabled. To disable chat spammer, reload Prodigy.","error"):(yield o.Confirm.fire("Warning","This hack may cause lag on weak computers (ex. School Chromebooks).")).value?(u=setInterval(s((function*(){a.player.chatID=d,++d>1164&&(d=0)})),30),o.Toast.fire("Spamming!","You're now sending a chat message every 30 milliseconds!","success")):console.log("Cancelled")})));var p=null,h=0;new n.Hack(n.category.misc,"Chat Spammer on Meth","Cycles through chat messages FAST ASF!").setClick(s((function*(){return p?o.Swal.fire("Already Enabled","Chat Spammer on Meth is already enabled. To disable chat spammer, reload Prodigy.","error"):(yield o.Confirm.fire("Warning","This hack may cause lag on weak computers (ex. School Chromebooks).")).value?(p=setInterval(s((function*(){a.player.chatID=h,++h>1164&&(h=0)})),1),o.Toast.fire("Spamming!","You're now sending a chat message every 1 millisecond!","success")):console.log("Cancelled")}))),new n.Hack(n.category.misc,"[Fix] Fix Battle Crash").setClick(s((function*(){return a.player.kennel.petTeam.forEach((e=>{e&&e.assignRandomSpells&&e.assignRandomSpells()})),o.Toast.fire("Success!","Fixed kennel attack bug!","success")}))),new n.Hack(n.category.misc,"[Fix] Stuck in Unfinished Tower Fix","Takes you out of an unfinished tower if you're stuck in one.").setClick(s((function*(){return a._.instance.prodigy.world.zones.house.teleport("exit"),o.Toast.fire("Success!","You've been teleported outside of your house.","success")}))),new n.Hack(n.category.misc,"uwu","OwO").setClick(s((function*(){return(yield o.Confirm.fire("Are you sure that you want to UwU OwO?","Reload Prodigy to revert UwU.")).value?(Object.chance=e=>{var t={},o=0;for(var n of Object.keys(e).sort(((e,o)=>t[e]-t[o])))t[n]=[],t[n][0]=o+1,t[n][1]=e[n]+o,o=e[n]+o;return t},Object.random=e=>{var t=Object.values(e),o=t[t.length-1][1],n=Math.randint(o);return Object.reverse(e)[t.find((e=>n>=e[0]&&n<=e[1]))]},Array.prototype.join=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:",";return"string"==typeof e?this.reduce(((t,o,n,a)=>t+(nt+(n0&&void 0!==arguments[0]?arguments[0]:",";return"string"==typeof e?this.reduce(((t,o,n)=>t+(n?e+o:o)),""):e instanceof Function?this.reduce(((t,o,n,a)=>t+(n?e(a[n],n,a)+o:o)),""):void 0},String.UWUFX=e=>{var t=Object.chance({"owo :3":20,"✧w✧":20,UwU:20,OwO:10,rawr:10,"uwu :3":5,":3 meow":15,":3":15,X3:15,"*purrs*":15,owo:15,uwu:15,"^w^":15,"x3 rawr":15,owowowowo:15});return e.split(" ").leftJoin(((e,t)=>0===Math.floor(6*Math.random())&&/[A-Za-z]/.test(e[0])?" ".concat(e[0],"-"):" ")).split(" ").join(((e,o)=>0===Math.floor(5*Math.random())?" ".concat(Object.random(t)," "):" "))},String.UWUTable={y:"wy",l:"w",r:"w",ss:"zs",n:"nw",ove:"uv",ome:"um",x:"ks",com:"cum",stu:"stew",au:"aw"},Math.randint=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Math.floor(Math.random()*e-t)+t},String.prototype.escapeRegex=function(){return this.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")},String.prototype.replaceAll=function(e,t){return this.replace(new RegExp(e.toString().escapeRegex(),"gi"),(e=>t))},Object.fromArrays=(e,t)=>{var o={};return e.forEach(((e,n)=>{o[e]=t[n]})),o},Object.reverse=e=>Object.fromArrays(Object.values(e),Object.keys(e)),String.prototype.bulkReplace=function(e){var t=this;for(var o in e)t=t.replaceAll(o,e[o]);return t},String.UWU=e=>String(e).bulkReplace(String.UWUTable),Object.keys(a._.localizer.dataSource._languageData).map((e=>a._.localizer.dataSource._languageData[e]=String.UWUFX(String.UWU(a._.localizer.dataSource._languageData[e])))),Object.values(a._.gameData).map((e=>e.map((e=>[e.data.name&&(e.data.name=String.UWUFX(String.UWU(e.data.name))),e.name&&(e.name=String.UWUFX(String.UWU(e.name))),e.data.flavorText&&(e.data.flavorText=String.UWUFX(String.UWU(e.data.flavorText)))])))),o.Toast.fire("uwu","Reload Prodigy to fix uwu.","success")):console.log("uwu cancelled")})))}.apply(t,n))||(e.exports=a)},8603:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))}}n=[o,t,o(4759),o(9820),o(2852)],void 0===(a=function(e,t,o,n,a){"use strict";var r=null;new n.Hack(n.category.patched,"Arena Point Increaser [Patched]").setClick(s((function*(){return r?o.Swal.fire("Already Enabled","Arena Point Increaser is already enabled.","error"):(yield o.Confirm.fire("This hack is patched.","Running it will probably do nothing.")).value?(r=setInterval(s((function*(){var e=yield(yield fetch("https://api.prodigygame.com/leaderboard-api/season/".concat(a.prodigy.pvpNetworkHandler.seasonID,"/user/").concat(a.player.userID,"/pvp?userID=").concat(a.player.userID),{headers:{authorization:"Bearer ".concat(a.prodigy.network.jwtAuthProvider.getToken()),"content-type":"application/x-www-form-urlencoded; charset=UTF-8"},body:"seasonID=".concat(a.prodigy.pvpNetworkHandler.seasonID,"&action=win"),method:"POST",mode:"cors"})).text();if(""!==e){var t=JSON.parse(e);console.log("[API] ".concat(t.points," Points (+100)"))}else console.log("[API] Failed to add points.")})),60500),o.Swal.fire("Enabled","Arena Point Increaser has been enabled.","success")):console.log("Cancelled")}))),new n.Hack(n.category.patched,"Disable Timeout Dialog [Patched]").setClick(s((function*(){return(yield o.Confirm.fire("This hack is patched.","Running it will probably do nothing.")).value?(a.prodigy.debugMisc.disableTimeoutDialogue(),o.Toast.fire("Enabled","Timeout Dialog has been disabled.","success")):console.log("Cancelled")})))}.apply(t,n))||(e.exports=a)},7736:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;function asyncGeneratorStep(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function _asyncToGenerator(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var r=e.apply(t,o);function s(e){asyncGeneratorStep(r,n,a,s,i,"next",e)}function i(e){asyncGeneratorStep(r,n,a,s,i,"throw",e)}s(void 0)}))}}var __importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};__WEBPACK_AMD_DEFINE_ARRAY__=[__webpack_require__,exports,__webpack_require__(4759),__webpack_require__(9820),__webpack_require__(2852),__webpack_require__(112),__webpack_require__(3336),__webpack_require__(939)],__WEBPACK_AMD_DEFINE_RESULT__=function(require,exports,swal_1,index_1,util_1,hackify_1,kennel_1,flatted_1){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),flatted_1=__importDefault(flatted_1),new index_1.Hack(index_1.category.pets,"Get All Pets").setClick(_asyncToGenerator((function*(){return(yield swal_1.Confirm.fire("Would you like to add all pets to your pets?")).value?(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()})),swal_1.Toast.fire("Success!","All pets have been added!","success")):console.log("Cancelled")}))),new index_1.Hack(index_1.category.pets,"Get All Legacy Epics").setClick(_asyncToGenerator((function*(){return(yield swal_1.Confirm.fire("This may damage your account.","Attempting to add legacy epics may damage your account. Would you still like to add all legacy epics to your team?","warning")).value?(util_1._.gameData.pet.filter((e=>[125,126,127,128,129,130,131,132,133].includes(e.ID))).forEach((e=>{util_1.player.kennel.addPet(e.ID.toString(),util_1.VERY_LARGE_NUMBER,26376,100)})),util_1.player.kennel.petTeam.forEach((e=>{e&&e.assignRandomSpells&&e.assignRandomSpells()})),swal_1.Toast.fire("Success!","All legacy epics have been added!","success")):console.log("Cancelled")}))),new index_1.Hack(index_1.category.pets,"Get All Mythical Epics").setClick(_asyncToGenerator((function*(){return(yield swal_1.Confirm.fire("Would you like to add all mythical epics to your pets?")).value?(util_1._.gameData.pet.filter((e=>[158,164,165,166,167,168,169,170,171,189].includes(e.ID))).forEach((e=>{util_1.player.kennel.addPet(e.ID.toString(),util_1.VERY_LARGE_NUMBER,26376,100)})),util_1.player.kennel.petTeam.forEach((e=>{e&&e.assignRandomSpells&&e.assignRandomSpells()})),swal_1.Toast.fire("Success!","All mythical epics have been added!","success")):console.log("Cancelled")}))),new index_1.Hack(index_1.category.pets,"Clear Pets").setClick(_asyncToGenerator((function*(){return(yield swal_1.Confirm.fire("Would you like to delete all of your pets?")).value?(util_1.player.kennel.data.length=0,swal_1.Toast.fire("Success!","Your pets have been cleared!","success")):console.log("Cancelled")}))),new index_1.Hack(index_1.category.pets,"Add Pet","Adds a pet from a list.").setClick(_asyncToGenerator((function*(){var e=yield swal_1.Swal.fire({input:"select",inputOptions:new Map(util_1._.gameData.pet.map((e=>[e.ID.toString(),"".concat(e.ID,": ").concat(e.data.name)]))),title:"Choose Pet",text:"Which pet do you want to obtain?"});if(void 0!==e.value)return util_1.player.kennel.addPet(e.value),util_1.player.kennel._encounterInfo._data.pets.push({firstSeenDate:Date.now(),ID:e.value,timesBattled:1,timesRescued:1}),swal_1.Toast.fire("Success!","Your chosen pet has been added to your pets!","success")}))),new index_1.Hack(index_1.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(_asyncToGenerator((function*(){var petTeam=util_1.player.kennel.petTeam.slice(0);petTeam.shift();var names=petTeam.map((e=>e.getName())),pet=yield swal_1.Swal.fire({title:"Which pet would you like to edit?",input:"select",inputOptions:names,inputPlaceholder:"Select...",inputValidator:e=>e?"":"Please select which you'd like to obtain.",showCancelButton:!0}),amt=yield swal_1.NumberInput.fire("Level","What would you like to set your pet's level to? (Can be set over 100)","question");if(amt.value){var num=amt.value;return eval("player.kennel.petTeam[parseInt(".concat(pet.value,")+1].getLevel = () => {return ").concat(num,"}")),swal_1.Toast.fire("Updated!","The level of your pet was successfully updated. Note: this hack is client-side.","success")}}))),new index_1.Hack(index_1.category.pets,"Delete Pet","Delete a pet.").setClick(_asyncToGenerator((function*(){var e=yield(0,hackify_1.getPet)("Which pet do you wish to delete?");if(void 0!==e)return util_1.player.kennel.data.splice(e,1),swal_1.Toast.fire("Successfully deleted!","The selected pet was deleted successfully.","success")}))),new index_1.Hack(index_1.category.pets,"Edit Kennel","Allows you to directly edit your pets.").setClick(_asyncToGenerator((function*(){null!==(yield(0,kennel_1.GetAction)())&&null!==(yield(0,kennel_1.SelectSlot)())&&console.log(s(parseInt(KennelSlot.value)))}))),new index_1.Hack(index_1.category.pets,"Backup Kennel","Makes a backup of your kennel to your chrome local storage.").setClick(_asyncToGenerator((function*(){var e=flatted_1.default.fromJSON(util_1._.player.kennel._petTeam[0]);return console.log(e),localStorage.setItem("prodigy-kennel-backup",e),swal_1.Toast.fire("Backed up!","Your kennel is now backed up to the local storage.","success")}))),new index_1.Hack(index_1.category.pets,"Restore Kennel","Restores a backup of your kennel from the local storage... if you have one.").setClick(_asyncToGenerator((function*(){var e=localStorage.getItem("prodigy-kennel-backup");return null===e?swal_1.Swal.fire({title:"No backup found",html:"There is no backup of your kennel in the local storage. Make sure to back up your kennel before trying to load it.",icon:"error"}):(util_1._.player.kennel._petTeam=flatted_1.default.toJSON(e),swal_1.Toast.fire("Restored!","Your kennel backup should be restored","success"))})))}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),void 0===__WEBPACK_AMD_DEFINE_RESULT__||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)},7939:(module,exports,__webpack_require__)=>{var __webpack_unused_export__,__WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;function asyncGeneratorStep(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function _asyncToGenerator(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var r=e.apply(t,o);function s(e){asyncGeneratorStep(r,n,a,s,i,"next",e)}function i(e){asyncGeneratorStep(r,n,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_require__(112)],__WEBPACK_AMD_DEFINE_RESULT__=function(require,exports,swal_1,index_1,util_1,hackify_1){"use strict";__webpack_unused_export__={value:!0},new index_1.Hack(index_1.category.player,"Max Account").setClick(_asyncToGenerator((function*(){if(!(yield swal_1.Confirm.fire("Are you sure that you want to max your account?","We recommend doing this on an alt.")).value)return console.log("Cancelled");util_1.player.data.gold=99e5,console.log("Set player gold to 9900000.");var e=100..value-2;util_1.player.data.stars=Math.round((1-Math.pow(1.042,e))/(1-1.042)*20+10),util_1.player.data.level=100,util_1.player.getLevel=()=>util_1.player.data.level,console.log("Set player level to 100"),util_1.player.data.bountyScore=100,console.log("Set player's bounty points to 100.");for(var t=0;t{util_1.player.backpack.data[e]=(0,hackify_1.itemify)(util_1._.gameData[e].filter((t=>"follow"===e?![125,126,127,128,129,134,135,136,137].includes(t.ID):t)),1..value)})),util_1._.gameData.dorm.forEach((e=>util_1.player.house.data.items[e.ID]={A:[],N:1..value}));for(var n=()=>util_1.player.backpack.data.item.findIndex((e=>84===e.ID||85===e.ID||86===e.ID));n()>-1;)util_1.player.backpack.data.item.splice(n(),1);swal_1.Toast.fire("Success!","All items added!","success"),console.log("All items added!"),util_1.player.backpack.data.mount=(0,hackify_1.itemify)(util_1._.gameData.mount,1),console.log("Added all mounts.");var a="currency";return util_1.player.backpack.data[a]=(0,hackify_1.itemify)(util_1._.gameData[a].filter((e=>e)),6969420),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.equipment.setHat(200),util_1.player.equipment.setBoots(93),util_1.player.equipment.setOutfit(161),util_1.player.equipment.setWeapon(196),util_1.player.appearanceChanged=!0,console.log("Appearance Refreshed."),(0,util_1.saveCharacter)(),console.log("Character Saved."),console.log("Max Account Successful."),swal_1.Toast.fire("Maxed!","Check your backpack!","success")}))),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)return e.value>1e7?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;return 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");if(void 0!==e.value)return 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");if(void 0!==e.value)return 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;t(util_1._.instance.prodigy.gameContainer.get((0,hackify_1.getMemberModule)()).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"),o=(e,t)=>{var o=document.createElement("select");for(var n of(o.classList.add("selectName"),e.entries())){var a=document.createElement("option");[a.value,a.innerText]=n,t(a.value)&&(a.selected=!0),o.options.add(a)}return o},n=(t,n)=>o(new Map(e.filter((e=>e.data.type===t)).map((e=>[e.ID.toString(),e.name]))),(e=>n(+e)));t.append(n(0,(e=>e===util_1.player.name.data.firstName))),t.append(n(1,(e=>e===util_1.player.name.data.middleName))),t.append(n(2,(e=>e===util_1.player.name.data.lastName))),t.append(o(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");if(level.value)return 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*(){return 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*(){return 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")):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 o=util_1._.instance.prodigy.world.zones[t].getCurrentQuestID();return util_1._.instance.prodigy.world.zones[t].completeQuest(o)?(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)});if(e.value)return 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.toString()).then((function(){return 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){return 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();return 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?");if(e.value)return util_1.player.grade=parseInt(e.value),swal_1.Toast.fire("Success","Successfully changed grade to ".concat(e,"!"),"success")})))}.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,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function _asyncToGenerator(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var r=e.apply(t,o);function s(e){asyncGeneratorStep(r,n,a,s,i,"next",e)}function i(e){asyncGeneratorStep(r,n,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*(){return 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,"Grab UserID of all players on screen","Shows you the UserID and name of every player currently shown on the screen.").setClick(_asyncToGenerator((function*(){var e=util_1.current.playerList;if(0===Object.keys(e).length)return swal_1.Toast.fire("No players found.","There are no other players on the screen.","error");var t="",o=0;return yield Object.keys(e).map((n=>{var a=Object.entries(e)[o][1].nameText.textSource.source;t+="
                • uID: ".concat(n," - ").concat(a,"
                • "),o++})),swal_1.Swal.fire({title:"All players on the screen:",html:t,icon:"info"})}))),new index_1.Hack(index_1.category.utility,"Save Character Locally [Local]","Saves your character locally.").setClick(_asyncToGenerator((function*(){return 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"});return t.ok?swal_1.Toast.fire("Success!","Character has been successfully loaded. Reload for the changes to take effect.","success"):swal_1.Toast.fire("Request failed.","An error occurred while loading the character. Error code: ".concat(t.status),"error")}return 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*(){return(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;return 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*(){return 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);return 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*(){return teleportingInterval=setInterval((()=>{try{util_1.player._playerContainer.walkSpeed=500}catch(e){}})),swal_1.Toast.fire("Success!","Successfully enabled teleport click.","success")}))).setDisabled(_asyncToGenerator((function*(){return 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*(){return util_1._.network.game._paused=!0,swal_1.Toast.fire("Success!","Successfully paused Prodigy.","success")}))).setDisabled(_asyncToGenerator((function*(){return 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)return console.log("Cancelled.");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 swal_1.Swal.fire({title:"Error",html:"Oops! There was an error with the code!
                   ".concat(e," "),icon:"error"})}return 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,o){var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))}}var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};n=[o,t,o(7046),o(2852),o(3526),o(6455),o(4759),o(4719),o(158)],a=function(e,t,o,n,a,r,c,l){"use strict";var u,d,p,h;Object.defineProperty(t,"__esModule",{value:!0}),t.category=t.Toggler=t.Hack=t.toggler=t.wrapper=t.menu=void 0,r=i(r),t.menu=document.createElement("div"),t.wrapper=document.getElementById("game-wrapper"),null===(u=document.getElementById("cheat-menu"))||void 0===u||u.remove(),null===(d=document.getElementById("menu-toggler"))||void 0===d||d.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===(p=t.wrapper)||void 0===p||p.prepend(t.menu),t.toggler=document.createElement("button"),t.toggler.id="menu-toggler";var m=!1;null===(h=t.wrapper)||void 0===h||h.prepend(t.toggler),t.toggler.onclick=()=>{(m=!m)?(t.toggler.innerText="▼",t.menu.style.top="-100vh"):(t.toggler.innerText="▲",t.menu.style.top="10%")},t.toggler.onclick({});var f=document.createElement("DIV");f.classList.add("menu-left"),t.menu.append(f);var g=!0,y=e=>{var t=document.createElement("div");0==g?(t.append(document.createElement("br")),t.append(document.createElement("br"))):g=!1,t.classList.add("menu-area"),t.style.textAlign="center",f.append(t);var o=document.createElement("h1");return o.innerText=e,o.style.textAlign="center",o.style.color="white",t.append(o),t},w=document.createElement("h1");w.classList.add("menu-title"),w.innerText="Prodigy Hacks",w.style.textAlign="center",f.append(w);var b=document.createElement("h2");b.style.fontSize="25px",b.style.color="white",b.innerHTML="
                  Press SHIFT to show/hide the menu. Scroll down in the menu for more hacks.",f.append(b);var v=document.createElement("h3");v.style.fontSize="20px",v.innerHTML="\n

                  Join our Discord https://dsc.gg/ProdigyPNP!

                  \n\n
                  \n",v.style.color="white",f.append(v);class _{constructor(e,t,o){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),o&&this.setDesc(o)}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,n.saveCharacter)(),console.log("Triggered ".concat(t.name,"."))})),this}setDesc(e){return this.element.title=e,this.description=e,this}}t.Hack=_,t.Toggler=class extends _{constructor(e,t,o){var n;super(e,t,o),n=this,this.parent=e,this.element.setAttribute("status","false"),this.setClick(s((function*(){var e,t;n.status=!n.status,n.status?(localStorage.setItem(n.name,"true"),yield null===(e=n.enabled)||void 0===e?void 0:e.call(n)):(localStorage.setItem(n.name,"false"),yield null===(t=n.disabled)||void 0===t?void 0:t.call(n))})))}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:y("Player Hacks"),inventory:y("Inventory Hacks"),location:y("Location Hacks"),pets:y("Pet Hacks"),battle:y("Battle Hacks"),minigames:y("Minigame Hacks"),misc:y("Miscellaneous Hacks"),utility:y("Utility Hacks"),beta:y("Beta Testing | Beta Hacks may damage your account"),patched:y("Patched Hacks")},localStorage.hasTip?(0,l.IndexInfo)("Player already has tip."):(s((function*(){yield r.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,(0,l.IndexInfo)("Player was shown the tip.")),localStorage.getItem("level")&&(n._.player.getLevel=()=>localStorage.getItem("level"),(0,l.IndexInfo)("Loaded menu from localStorage."));var k=!0;document.addEventListener("keydown",(function(e){"Shift"==e.key&&((0,l.IndexInfo)("Shift key was pressed."),1==k?((0,l.IndexInfo)("Hiding cheat menu..."),document.getElementById("cheat-menu").style.display="none",document.getElementById("menu-toggler").style.display="none",k=!1,(0,l.IndexInfo)("Hidden cheat menu.")):((0,l.IndexInfo)("Showing cheat menu..."),document.getElementById("cheat-menu").style.display="block",document.getElementById("menu-toggler").style.display="block",k=!0,(0,l.IndexInfo)("Shown cheat menu.")))})),s((function*(){var e,t;(yield c.License.fire("ProdigyPNP",'\n

                  \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 ')).value?yield(0,a.statusMessage)():(yield c.NoLicense.fire("ProdigyPNP License","\n

                  \n You need to agree to our license to use our hacks. If you changed your mind and now agree to our license, reload Prodigy.\n

                  \n ")).value?document.location="":(null===(e=document.getElementById("cheat-menu"))||void 0===e||e.remove(),null===(t=document.getElementById("menu-toggler"))||void 0===t||t.remove())}))()}.apply(t,n),void 0===a||(e.exports=a)},8238:(e,t,o)=>{var n,a;n=[o,t,o(9820)],a=function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stopFps=t.startFps=void 0;var n=document.createElement("button"),a=!1;t.startFps=function(){var e;a=!0,n.id="fps-counter",null===(e=o.wrapper)||void 0===e||e.prepend(n),setInterval((()=>{var e=_.player.game.fps._framerate;a?n.innerText=e.toFixed(2)+" FPS":n.remove()}),300)},t.stopFps=function(){var e;a=!1,null===(e=document.getElementById("fps-counter"))||void 0===e||e.remove()}}.apply(t,n),void 0===a||(e.exports=a)},112:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}n=[o,t,o(2852),o(4759)],a=function(e,t,o,n){"use strict";function a(e){o._.instance.prodigy.loading(!0);var t=t=>{var a=null!=t?t[e]:null;if(null!==a&&void 0!==a.house&&null!==a.house){o._.instance.prodigy.loading(!1);var r=o._.cloneDeep(o._.player.house);return r.setItems(a.house),void 0!==a.data.allowsHouseVisitors&&null!==a.data.allowsHouseVisitors&&a.data.allowsHouseVisitors?o._.instance.prodigy.world._("house",null,null,{house:r,getAllowsHouseVisitors:()=>void 0!==a.data.allowsHouseVisitors&&null!==a.data.allowsHouseVisitors&&a.data.allowsHouseVisitors,setAllowsHouseVisitors:e=>{a.data.allowsHouseVisitors=e}}):n.Swal.fire("Teleporting to ".concat(e," is not allowed."),"Try another user.","error")}};return o._.network.getCharData(e.toString(),["house","data"],t,t),n.Toast.fire("Teleported to house","You have been teleported to the house!","success")}Object.defineProperty(t,"__esModule",{value:!0}),t.getPet=t.teleportToHouse=t.toHouse=t.getMemberModule=t.runeify=t.itemify=t.ids=t.names=void 0,t.names=["Boots","Buddies","Fossils","Hats","Items","Key Items","Tower Town Frames","Tower Town Interiors","Mounts","Outfits","Relics","Weapons","Currencies"],t.ids=["boots","follow","fossil","hat","item","key","mathTownFrame","mathTownInterior","mount","outfit","spellRelic","weapon","currency"],t.itemify=(e,t)=>e.map((e=>({ID:e.ID,N:t}))).filter((e=>void 0!==e)),t.runeify=(e,t)=>{e.map((e=>({ID:e.ID,quantity:t}))).filter((e=>void 0!==e))},t.getMemberModule=function(){return o._.player.hasMembership.toString().split('"')[1]},t.toHouse=function(e){if(o._.player.userID!==e){var t=o._.instance.prodigy.friendsListNetworkHandler.friendsList.length,r=o._.instance.prodigy.friendsListNetworkHandler.classList.length;o._.instance.prodigy.gameContainer.get("2e1-e659").create("house-visit","click","hub",t,r,null,null,e).broadcast()}var s=o._.instance.prodigy.world.getZone(o._.instance.prodigy.world.getCurrentZone());return s?s.handleLeaving(2,(()=>a(e))):n.Swal.fire({title:"Error",text:"You are not in a zone!",icon:"error"})},t.teleportToHouse=a;var s=function(){var e,t=(e=function*(e){return(yield n.Swal.fire({input:"select",inputOptions:new Map(o._.player.kennel.data.map(((e,t)=>{var n,a,r;return[t.toString(),"Level ".concat(e.level," - ").concat(null!==(n=null!==(a=e.nickname)&&void 0!==a?a:null===(r=o._.gameData.pet.find((t=>+t.ID==+e.ID)))||void 0===r?void 0:r.data.name)&&void 0!==n?n:"Unknown")]}))),title:"Choose Pet",text:e})).value},function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))});return function(e){return t.apply(this,arguments)}}();t.getPet=s}.apply(t,n),void 0===a||(e.exports=a)},3336:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))}}n=[o,t,o(4759)],a=function(e,t,o){"use strict";function n(){return(n=s((function*(){var e=new Map;e.set("Copy","Copy a slot to another slot"),e.set("Remove","Completley empty one slot");var t=yield o.Swal.fire({input:"select",inputOptions:e,title:"Select Action",text:"Select an action to perform on the Kennel"});return t.value?t.value:null}))).apply(this,arguments)}function a(){return(a=s((function*(){var e=new Map,t=e=>_.player.kennel._petTeam[e]?_.player.kennel._petTeam[e].source?_.player.kennel._petTeam[e].source.name:_.player.kennel._petTeam[e]._userDataPlatform?"Player":"null":"null";e.set("0","[0] Center - ".concat(t(0))),e.set("1","[1] Top - ".concat(t(1))),e.set("2","[2] Bottom - ".concat(t(2)));var n=yield o.Swal.fire({input:"select",inputOptions:e,title:"Select Slot",text:"Select a slot to edit"});return n.value?parseInt(n.value):null}))).apply(this,arguments)}Object.defineProperty(t,"__esModule",{value:!0}),t.SelectSlot=t.GetAction=void 0,t.GetAction=function(){return n.apply(this,arguments)},t.SelectSlot=function(){return a.apply(this,arguments)}}.apply(t,n),void 0===a||(e.exports=a)},2868:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}n=[o,t,o(2852),o(4759)],void 0===(a=function(e,t,o,n){"use strict";window.addEventListener("keydown",(e=>{switch(e.which){case 192:o._.instance.prodigy.open.menuCloseAll();break;case 220:var t=function(){var e,t=(e=function*(){if(!(yield n.Confirm.fire("Kit","Would you like to equip Celestial Gear?")).value)return console.log("Cancelled");o._.player.equipment.setHat(200),o._.player.equipment.setBoots(93),o._.player.equipment.setOutfit(161),o._.player.equipment.setWeapon(196),o._.player.appearanceChanged=!0,n.Toast.fire("Success!","You are now wearing Celestial Armor and wielding a Dual Blade.","success")},function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))});return function(){return t.apply(this,arguments)}}();t()}}))}.apply(t,n))||(e.exports=a)},4719:(e,t,o)=>{var n;n=function(e,t){"use strict";function o(e,o){return""==e||null==e?console.log("["+t.LogPrefix+":unknown] "+o):console.log("["+t.LogPrefix+":"+e+"] "+o)}function n(e,t,n){return o(t,"*"+e.toUpperCase()+"* "+n)}Object.defineProperty(t,"__esModule",{value:!0}),t.UtilityError=t.UtilitySuccess=t.UtilityInfo=t.PlayerError=t.PlayerSuccess=t.PlayerInfo=t.PetsError=t.PetsSuccess=t.PetsInfo=t.PatchedError=t.PatchedSuccess=t.PatchedInfo=t.MiscError=t.MiscSuccess=t.MiscInfo=t.MinigameError=t.MinigameSuccess=t.MinigameInfo=t.LocationError=t.LocationSuccess=t.LocationInfo=t.InventoryError=t.InventorySuccess=t.InventoryInfo=t.BetaError=t.BetaSuccess=t.BetaInfo=t.BattleError=t.BattleSuccess=t.BattleInfo=t.IndexError=t.IndexSuccess=t.IndexInfo=t.StatusLog=t.ConsoleLog=t.LogPrefix=void 0,t.LogPrefix="CheatGUI",t.ConsoleLog=o,t.StatusLog=n,t.IndexInfo=function(e){return n("info","index.ts",e)},t.IndexSuccess=function(e){return n("success","index.ts",e)},t.IndexError=function(e){return n("error","index.ts",e)},t.BattleInfo=function(e){return n("info","battle.ts",e)},t.BattleSuccess=function(e){return n("success","battle.ts",e)},t.BattleError=function(e){return n("error","battle.ts",e)},t.BetaInfo=function(e){return n("info","beta.ts",e)},t.BetaSuccess=function(e){return n("success","beta.ts",e)},t.BetaError=function(e){return n("error","beta.ts",e)},t.InventoryInfo=function(e){return n("info","inventory.ts",e)},t.InventorySuccess=function(e){return n("success","inventory.ts",e)},t.InventoryError=function(e){return n("error","inventory.ts",e)},t.LocationInfo=function(e){return n("info","location.ts",e)},t.LocationSuccess=function(e){return n("success","location.ts",e)},t.LocationError=function(e){return n("error","location.ts",e)},t.MinigameInfo=function(e){return n("info","minigame.ts",e)},t.MinigameSuccess=function(e){return n("success","minigame.ts",e)},t.MinigameError=function(e){return n("error","minigame.ts",e)},t.MiscInfo=function(e){return n("info","misc.ts",e)},t.MiscSuccess=function(e){return n("success","misc.ts",e)},t.MiscError=function(e){return n("error","misc.ts",e)},t.PatchedInfo=function(e){return n("info","patched.ts",e)},t.PatchedSuccess=function(e){return n("success","patched.ts",e)},t.PatchedError=function(e){return n("error","patched.ts",e)},t.PetsInfo=function(e){return n("info","pets.ts",e)},t.PetsSuccess=function(e){return n("success","pets.ts",e)},t.PetsError=function(e){return n("error","pets.ts",e)},t.PlayerInfo=function(e){return n("info","player.ts",e)},t.PlayerSuccess=function(e){return n("success","player.ts",e)},t.PlayerError=function(e){return n("error","player.ts",e)},t.UtilityInfo=function(e){return n("info","utility.ts",e)},t.UtilitySuccess=function(e){return n("success","utility.ts",e)},t.UtilityError=function(e){return n("error","utility.ts",e)}}.apply(t,[o,t]),void 0===n||(e.exports=n)},3131:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))}}n=[o,t,o(2852)],a=function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PopupInterval=void 0;var n=!1;t.PopupInterval=function(e){n=e},s((function*(){setInterval(s((function*(){n&&o._.instance.prodigy.open.menuCloseAll()})),200)}))()}.apply(t,n),void 0===a||(e.exports=a)},3526:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}n=[o,t,o(4759)],a=function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.statusMessage=void 0,t.statusMessage=function(){fetch("https://raw.githubusercontent.com/ProdigyPNP/ProdigyMathGameHacking/master/cheatGUI/statusmessage.json?updated=".concat(Date.now())).then((e=>e.json())).then(function(){var e,t=(e=function*(e){if(!1===e.enabled.value)return console.log("Status message is disabled.");yield o.Swal.fire({title:e.get("title"),html:e.get("html"),icon:e.get("icon")})},function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))});return function(e){return t.apply(this,arguments)}}())}}.apply(t,n),void 0===a||(e.exports=a)},4759:function(e,t,o){var n,a,r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};n=[o,t,o(6455)],a=function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NoLicense=t.License=t.Info=t.Confirm=t.Toast=t.NumberInput=t.Input=t.Swal=void 0,o=r(o),t.Swal=o.default,t.Input=t.Swal.mixin({input:"text",showCancelButton:!0,showConfirmButton:!0,toast:!1}),t.NumberInput=t.Input.mixin({toast:!1,input:"number"}),t.Toast=t.Swal.mixin({toast:!0,position:"bottom"}),t.Confirm=t.Swal.mixin({icon:"warning",showCancelButton:!0,toast:!1,confirmButtonText:"Confirm",cancelButtonText:"Cancel"}),t.Info=t.Swal.mixin({icon:"info",showCancelButton:!1,toast:!1}),t.License=t.Swal.mixin({icon:"info",showCancelButton:!0,toast:!1,confirmButtonText:"Agree",cancelButtonText:"Disagree"}),t.NoLicense=t.Swal.mixin({icon:"error",showCancelButton:!0,toast:!1,confirmButtonText:"Reload",cancelButtonText:"Play without hacks"})}.apply(t,n),void 0===a||(e.exports=a)},2852:(e,t,o)=>{var n;n=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.current=t.player=t._=void 0,t._=window._,t.player=t._.player,t.current=window.Boot.prototype.game._state._current;var o=t._.instance;t.game=o.game,t.prodigy=o.prodigy,t.gameData=t._.instance.game.state.states.get("Boot").gameData,t.getItem=(e,o)=>{var n;return null!==(n=t._.gameData[e].find((e=>e.ID===o)))&&void 0!==n?n: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,[o,t]),void 0===n||(e.exports=n)},450:(e,t,o)=>{"use strict";o.d(t,{Z:()=>i});var n=o(8081),a=o.n(n),r=o(3645),s=o.n(r)()(a());s.push([e.id,"@import url(https://fonts.googleapis.com/css?family=Arvo:400,700|Sen:400,700,800&display=swap&subset=latin-ext);"]),s.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;font-size:23px;height:26px;width:50px;border:1px solid rgba(0,0,0,.1)}#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 #fps-counter{z-index:2;position:absolute;border-radius:3px;background-color:rgba(255,255,255,.7333333333);transition:background-color .15s;width:130px;height:26px;font-size:23px;border:1px solid rgba(0,0,0,.1);margin-left:83%}#game-wrapper #fps-counter:hover{background-color:rgba(221,221,221,.7333333333)}#game-wrapper #fps-counter: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:rgba(0,0,0,.55);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;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 i=s},3645:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var o="",n=void 0!==t[5];return t[4]&&(o+="@supports (".concat(t[4],") {")),t[2]&&(o+="@media ".concat(t[2]," {")),n&&(o+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),o+=e(t),n&&(o+="}"),t[2]&&(o+="}"),t[4]&&(o+="}"),o})).join("")},t.i=function(e,o,n,a,r){"string"==typeof e&&(e=[[null,e,void 0]]);var s={};if(n)for(var i=0;i0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=r),o&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=o):u[2]=o),a&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=a):u[4]="".concat(a)),t.push(u))}},t}},8081:e=>{"use strict";e.exports=function(e){return e[1]}},1227:(e,t,o)=>{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 o="color: "+this.color;t.splice(1,0,o,"color: inherit");let n=0,a=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(n++,"%c"===e&&(a=n))})),t.splice(a,0,o)},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=o(2447)(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},2447:(e,t,o)=>{e.exports=function(e){function t(e){let o,a,r,s=null;function i(...e){if(!i.enabled)return;const n=i,a=Number(new Date),r=a-(o||a);n.diff=r,n.prev=o,n.curr=a,o=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,((o,a)=>{if("%%"===o)return"%";s++;const r=t.formatters[a];if("function"==typeof r){const t=e[s];o=r.call(n,t),e.splice(s,1),s--}return o})),t.formatArgs.call(n,e),(n.log||t.log).apply(n,e)}return i.namespace=e,i.useColors=t.useColors(),i.color=t.selectColor(e),i.extend=n,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 n(e,o){const n=t(this.namespace+(void 0===o?":":o)+e);return n.log=this.log,n}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 o;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const n=("string"==typeof e?e:"").split(/[\s,]+/),a=n.length;for(o=0;o{t[o]=e[o]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let o=0;for(let t=0;t{var t=1e3,o=60*t,n=60*o,a=24*n;function r(e,t,o,n){var a=t>=1.5*o;return Math.round(e/o)+" "+n+(a?"s":"")}e.exports=function(e,s){s=s||{};var i,c,l=typeof e;if("string"===l&&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*n;case"minutes":case"minute":case"mins":case"min":case"m":return s*o;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"===l&&isFinite(e))return s.long?(i=e,(c=Math.abs(i))>=a?r(i,c,a,"day"):c>=n?r(i,c,n,"hour"):c>=o?r(i,c,o,"minute"):c>=t?r(i,c,t,"second"):i+" ms"):function(e){var r=Math.abs(e);return r>=a?Math.round(e/a)+"d":r>=n?Math.round(e/n)+"h":r>=o?Math.round(e/o)+"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,o)=>{"use strict";o.r(t),o.d(t,{default:()=>y});var n=o(3379),a=o.n(n),r=o(7795),s=o.n(r),i=o(569),c=o.n(i),l=o(3565),u=o.n(l),d=o(9216),p=o.n(d),h=o(4589),m=o.n(h),f=o(450),g={};g.styleTagTransform=m(),g.setAttributes=u(),g.insert=c().bind(null,"head"),g.domAPI=s(),g.insertStyleElement=p(),a()(f.Z,g);const y=f.Z&&f.Z.locals?f.Z.locals:void 0},3379:e=>{"use strict";var t=[];function o(e){for(var o=-1,n=0;n{"use strict";var t={};e.exports=function(e,o){var n=function(e){if(void 0===t[e]){var o=document.querySelector(e);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(e){o=null}t[e]=o}return t[e]}(e);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(o)}},9216:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},3565:(e,t,o)=>{"use strict";e.exports=function(e){var t=o.nc;t&&e.setAttribute("nonce",t)}},7795:e=>{"use strict";e.exports=function(e){var t=e.insertStyleElement(e);return{update:function(o){!function(e,t,o){var n="";o.supports&&(n+="@supports (".concat(o.supports,") {")),o.media&&(n+="@media ".concat(o.media," {"));var a=void 0!==o.layer;a&&(n+="@layer".concat(o.layer.length>0?" ".concat(o.layer):""," {")),n+=o.css,a&&(n+="}"),o.media&&(n+="}"),o.supports&&(n+="}");var r=o.sourceMap;r&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(r))))," */")),t.styleTagTransform(n,e,t.options)}(t,e,o)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},4589:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},6455:function(e){e.exports=function(){"use strict";const e="SweetAlert2:",t=e=>e.charAt(0).toUpperCase()+e.slice(1),o=t=>{console.warn("".concat(e," ").concat("object"==typeof t?t.join(" "):t))},n=t=>{console.error("".concat(e," ").concat(t))},a=[],r=(e,t)=>{var n;n='"'.concat(e,'" is deprecated and will be removed in the next major release. Please use "').concat(t,'" instead.'),a.includes(n)||(a.push(n),o(n))},s=e=>"function"==typeof e?e():e,i=e=>e&&"function"==typeof e.toPromise,c=e=>i(e)?e.toPromise():Promise.resolve(e),l=e=>e&&Promise.resolve(e)===e,u={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,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",color:void 0,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,willOpen:void 0,didOpen:void 0,didRender:void 0,willClose:void 0,didClose:void 0,didDestroy:void 0,scrollbarPadding:!0},d=["allowEscapeKey","allowOutsideClick","background","buttonsStyling","cancelButtonAriaLabel","cancelButtonColor","cancelButtonText","closeButtonAriaLabel","closeButtonHtml","color","confirmButtonAriaLabel","confirmButtonColor","confirmButtonText","currentProgressStep","customClass","denyButtonAriaLabel","denyButtonColor","denyButtonText","didClose","didDestroy","footer","hideClass","html","icon","iconColor","iconHtml","imageAlt","imageHeight","imageUrl","imageWidth","preConfirm","preDeny","progressSteps","returnFocus","reverseButtons","showCancelButton","showCloseButton","showConfirmButton","showDenyButton","text","title","titleText","willClose"],p={},h=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],m=e=>Object.prototype.hasOwnProperty.call(u,e),f=e=>-1!==d.indexOf(e),g=e=>p[e],y=e=>{m(e)||o('Unknown parameter "'.concat(e,'"'))},w=e=>{h.includes(e)&&o('The parameter "'.concat(e,'" is incompatible with toasts'))},b=e=>{g(e)&&r(e,g(e))},v=e=>{const t={};for(const o in e)t[e[o]]="swal2-"+e[o];return t},_=v(["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","show","hide","close","title","html-container","actions","confirm","deny","cancel","default-outline","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","input-label","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loader","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error","no-war"]),k=v(["success","warning","info","question","error"]),C=()=>document.body.querySelector(".".concat(_.container)),x=e=>{const t=C();return t?t.querySelector(e):null},E=e=>x(".".concat(e)),S=()=>E(_.popup),T=()=>E(_.icon),P=()=>E(_.title),A=()=>E(_["html-container"]),I=()=>E(_.image),D=()=>E(_["progress-steps"]),B=()=>E(_["validation-message"]),O=()=>x(".".concat(_.actions," .").concat(_.confirm)),M=()=>x(".".concat(_.actions," .").concat(_.deny)),R=()=>x(".".concat(_.loader)),L=()=>x(".".concat(_.actions," .").concat(_.cancel)),N=()=>E(_.actions),j=()=>E(_.footer),H=()=>E(_["timer-progress-bar"]),F=()=>E(_.close),q=()=>{const e=Array.from(S().querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])')).sort(((e,t)=>{const o=parseInt(e.getAttribute("tabindex")),n=parseInt(t.getAttribute("tabindex"));return o>n?1:o"-1"!==e.getAttribute("tabindex")));return(e=>{const t=[];for(let o=0;ore(e)))},U=()=>G(document.body,_.shown)&&!G(document.body,_["toast-shown"])&&!G(document.body,_["no-backdrop"]),Y=()=>S()&&G(S(),_.toast),z={previousBodyPadding:null},W=(e,t)=>{if(e.textContent="",t){const o=(new DOMParser).parseFromString(t,"text/html");Array.from(o.querySelector("head").childNodes).forEach((t=>{e.appendChild(t)})),Array.from(o.querySelector("body").childNodes).forEach((t=>{e.appendChild(t)}))}},G=(e,t)=>{if(!t)return!1;const o=t.split(/\s+/);for(let t=0;t{if(((e,t)=>{Array.from(e.classList).forEach((o=>{Object.values(_).includes(o)||Object.values(k).includes(o)||Object.values(t.showClass).includes(o)||e.classList.remove(o)}))})(e,t),t.customClass&&t.customClass[n]){if("string"!=typeof t.customClass[n]&&!t.customClass[n].forEach)return o("Invalid type of customClass.".concat(n,'! Expected string or iterable object, got "').concat(typeof t.customClass[n],'"'));J(e,t.customClass[n])}},K=(e,t)=>{if(!t)return null;switch(t){case"select":case"textarea":case"file":return e.querySelector(".".concat(_.popup," > .").concat(_[t]));case"checkbox":return e.querySelector(".".concat(_.popup," > .").concat(_.checkbox," input"));case"radio":return e.querySelector(".".concat(_.popup," > .").concat(_.radio," input:checked"))||e.querySelector(".".concat(_.popup," > .").concat(_.radio," input:first-child"));case"range":return e.querySelector(".".concat(_.popup," > .").concat(_.range," input"));default:return e.querySelector(".".concat(_.popup," > .").concat(_.input))}},$=e=>{if(e.focus(),"file"!==e.type){const t=e.value;e.value="",e.value=t}},Z=(e,t,o)=>{e&&t&&("string"==typeof t&&(t=t.split(/\s+/).filter(Boolean)),t.forEach((t=>{Array.isArray(e)?e.forEach((e=>{o?e.classList.add(t):e.classList.remove(t)})):o?e.classList.add(t):e.classList.remove(t)})))},J=(e,t)=>{Z(e,t,!0)},X=(e,t)=>{Z(e,t,!1)},Q=(e,t)=>{const o=Array.from(e.children);for(let e=0;e{o==="".concat(parseInt(o))&&(o=parseInt(o)),o||0===parseInt(o)?e.style[t]="number"==typeof o?"".concat(o,"px"):o:e.style.removeProperty(t)},te=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"flex";e.style.display=t},oe=e=>{e.style.display="none"},ne=(e,t,o,n)=>{const a=e.querySelector(t);a&&(a.style[o]=n)},ae=function(e,t){t?te(e,arguments.length>2&&void 0!==arguments[2]?arguments[2]:"flex"):oe(e)},re=e=>!(!e||!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)),se=e=>!!(e.scrollHeight>e.clientHeight),ie=e=>{const t=window.getComputedStyle(e),o=parseFloat(t.getPropertyValue("animation-duration")||"0"),n=parseFloat(t.getPropertyValue("transition-duration")||"0");return o>0||n>0},ce=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const o=H();re(o)&&(t&&(o.style.transition="none",o.style.width="100%"),setTimeout((()=>{o.style.transition="width ".concat(e/1e3,"s linear"),o.style.width="0%"}),10))},le=()=>"undefined"==typeof window||"undefined"==typeof document,ue={},de=e=>new Promise((t=>{if(!e)return t();const o=window.scrollX,n=window.scrollY;ue.restoreFocusTimeout=setTimeout((()=>{ue.previousActiveElement instanceof HTMLElement?(ue.previousActiveElement.focus(),ue.previousActiveElement=null):document.body&&document.body.focus(),t()}),100),window.scrollTo(o,n)})),pe='\n
                  \n \n
                    \n
                    \n \n

                    \n
                    \n \n \n
                    \n \n \n
                    \n \n
                    \n \n \n
                    \n
                    \n
                    \n \n \n \n
                    \n
                    \n
                    \n
                    \n
                    \n
                    \n').replace(/(^|\n)\s*/g,""),he=()=>{ue.currentInstance.resetValidationMessage()},me=e=>{const t=(()=>{const e=C();return!!e&&(e.remove(),X([document.documentElement,document.body],[_["no-backdrop"],_["toast-shown"],_["has-column"]]),!0)})();if(le())return void n("SweetAlert2 requires document to initialize");const o=document.createElement("div");o.className=_.container,t&&J(o,_["no-transition"]),W(o,pe);const a="string"==typeof(r=e.target)?document.querySelector(r):r;var r;a.appendChild(o),(e=>{const t=S();t.setAttribute("role",e.toast?"alert":"dialog"),t.setAttribute("aria-live",e.toast?"polite":"assertive"),e.toast||t.setAttribute("aria-modal","true")})(e),(e=>{"rtl"===window.getComputedStyle(e).direction&&J(C(),_.rtl)})(a),(()=>{const e=S(),t=Q(e,_.input),o=Q(e,_.file),n=e.querySelector(".".concat(_.range," input")),a=e.querySelector(".".concat(_.range," output")),r=Q(e,_.select),s=e.querySelector(".".concat(_.checkbox," input")),i=Q(e,_.textarea);t.oninput=he,o.onchange=he,r.onchange=he,s.onchange=he,i.oninput=he,n.oninput=()=>{he(),a.value=n.value},n.onchange=()=>{he(),a.value=n.value}})()},fe=(e,t)=>{e instanceof HTMLElement?t.appendChild(e):"object"==typeof e?ge(e,t):e&&W(t,e)},ge=(e,t)=>{e.jquery?ye(t,e):W(t,e.toString())},ye=(e,t)=>{if(e.textContent="",0 in t)for(let o=0;o in t;o++)e.appendChild(t[o].cloneNode(!0));else e.appendChild(t.cloneNode(!0))},we=(()=>{if(le())return!1;const e=document.createElement("div"),t={WebkitAnimation:"webkitAnimationEnd",animation:"animationend"};for(const o in t)if(Object.prototype.hasOwnProperty.call(t,o)&&void 0!==e.style[o])return t[o];return!1})(),be=(e,t)=>{const o=N(),n=R();t.showConfirmButton||t.showDenyButton||t.showCancelButton?te(o):oe(o),V(o,t,"actions"),function(e,t,o){const n=O(),a=M(),r=L();ve(n,"confirm",o),ve(a,"deny",o),ve(r,"cancel",o),function(e,t,o,n){if(!n.buttonsStyling)return X([e,t,o],_.styled);J([e,t,o],_.styled),n.confirmButtonColor&&(e.style.backgroundColor=n.confirmButtonColor,J(e,_["default-outline"])),n.denyButtonColor&&(t.style.backgroundColor=n.denyButtonColor,J(t,_["default-outline"])),n.cancelButtonColor&&(o.style.backgroundColor=n.cancelButtonColor,J(o,_["default-outline"]))}(n,a,r,o),o.reverseButtons&&(o.toast?(e.insertBefore(r,n),e.insertBefore(a,n)):(e.insertBefore(r,t),e.insertBefore(a,t),e.insertBefore(n,t)))}(o,n,t),W(n,t.loaderHtml),V(n,t,"loader")};function ve(e,o,n){ae(e,n["show".concat(t(o),"Button")],"inline-block"),W(e,n["".concat(o,"ButtonText")]),e.setAttribute("aria-label",n["".concat(o,"ButtonAriaLabel")]),e.className=_[o],V(e,n,"".concat(o,"Button")),J(e,n["".concat(o,"ButtonClass")])}const _e=(e,t)=>{const n=C();n&&(function(e,t){"string"==typeof t?e.style.background=t:t||J([document.documentElement,document.body],_["no-backdrop"])}(n,t.backdrop),function(e,t){t in _?J(e,_[t]):(o('The "position" parameter is not valid, defaulting to "center"'),J(e,_.center))}(n,t.position),function(e,t){if(t&&"string"==typeof t){const o="grow-".concat(t);o in _&&J(e,_[o])}}(n,t.grow),V(n,t,"container"))};var ke={awaitingPromise:new WeakMap,promise:new WeakMap,innerParams:new WeakMap,domCache:new WeakMap};const Ce=["input","file","range","select","radio","checkbox","textarea"],xe=e=>{if(!De[e.input])return n('Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "'.concat(e.input,'"'));const t=Ae(e.input),o=De[e.input](t,e);te(t),setTimeout((()=>{$(o)}))},Ee=(e,t)=>{const o=K(S(),e);if(o){(e=>{for(let t=0;t{const t=Ae(e.input);"object"==typeof e.customClass&&J(t,e.customClass.input)},Te=(e,t)=>{e.placeholder&&!t.inputPlaceholder||(e.placeholder=t.inputPlaceholder)},Pe=(e,t,o)=>{if(o.inputLabel){e.id=_.input;const n=document.createElement("label"),a=_["input-label"];n.setAttribute("for",e.id),n.className=a,"object"==typeof o.customClass&&J(n,o.customClass.inputLabel),n.innerText=o.inputLabel,t.insertAdjacentElement("beforebegin",n)}},Ae=e=>Q(S(),_[e]||_.input),Ie=(e,t)=>{["string","number"].includes(typeof t)?e.value="".concat(t):l(t)||o('Unexpected type of inputValue! Expected "string", "number" or "Promise", got "'.concat(typeof t,'"'))},De={};De.text=De.email=De.password=De.number=De.tel=De.url=(e,t)=>(Ie(e,t.inputValue),Pe(e,e,t),Te(e,t),e.type=t.input,e),De.file=(e,t)=>(Pe(e,e,t),Te(e,t),e),De.range=(e,t)=>{const o=e.querySelector("input"),n=e.querySelector("output");return Ie(o,t.inputValue),o.type=t.input,Ie(n,t.inputValue),Pe(o,e,t),e},De.select=(e,t)=>{if(e.textContent="",t.inputPlaceholder){const o=document.createElement("option");W(o,t.inputPlaceholder),o.value="",o.disabled=!0,o.selected=!0,e.appendChild(o)}return Pe(e,e,t),e},De.radio=e=>(e.textContent="",e),De.checkbox=(e,t)=>{const o=K(S(),"checkbox");o.value="1",o.id=_.checkbox,o.checked=Boolean(t.inputValue);const n=e.querySelector("span");return W(n,t.inputPlaceholder),o},De.textarea=(e,t)=>{Ie(e,t.inputValue),Te(e,t),Pe(e,e,t);return setTimeout((()=>{if("MutationObserver"in window){const t=parseInt(window.getComputedStyle(S()).width);new MutationObserver((()=>{const o=e.offsetWidth+(n=e,parseInt(window.getComputedStyle(n).marginLeft)+parseInt(window.getComputedStyle(n).marginRight));var n;S().style.width=o>t?"".concat(o,"px"):null})).observe(e,{attributes:!0,attributeFilter:["style"]})}})),e};const Be=(e,t)=>{const o=A();V(o,t,"htmlContainer"),t.html?(fe(t.html,o),te(o,"block")):t.text?(o.textContent=t.text,te(o,"block")):oe(o),((e,t)=>{const o=S(),n=ke.innerParams.get(e),a=!n||t.input!==n.input;Ce.forEach((e=>{const n=Q(o,_[e]);Ee(e,t.inputAttributes),n.className=_[e],a&&oe(n)})),t.input&&(a&&xe(t),Se(t))})(e,t)},Oe=(e,t)=>{for(const o in k)t.icon!==o&&X(e,k[o]);J(e,k[t.icon]),Le(e,t),Me(),V(e,t,"icon")},Me=()=>{const e=S(),t=window.getComputedStyle(e).getPropertyValue("background-color"),o=e.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");for(let e=0;e{let o,n=e.innerHTML;t.iconHtml?o=Ne(t.iconHtml):"success"===t.icon?(o='\n
                    \n \n
                    \n
                    \n',n=n.replace(/ style=".*?"/g,"")):o="error"===t.icon?'\n \n \n \n \n':Ne({question:"?",warning:"!",info:"i"}[t.icon]),n.trim()!==o.trim()&&W(e,o)},Le=(e,t)=>{if(t.iconColor){e.style.color=t.iconColor,e.style.borderColor=t.iconColor;for(const o of[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"])ne(e,o,"backgroundColor",t.iconColor);ne(e,".swal2-success-ring","borderColor",t.iconColor)}},Ne=e=>'
                    ').concat(e,"
                    "),je=e=>{const t=document.createElement("li");return J(t,_["progress-step"]),W(t,e),t},He=e=>{const t=document.createElement("li");return J(t,_["progress-step-line"]),e.progressStepsDistance&&ee(t,"width",e.progressStepsDistance),t},Fe=(e,t)=>{e.className="".concat(_.popup," ").concat(re(e)?t.showClass.popup:""),t.toast?(J([document.documentElement,document.body],_["toast-shown"]),J(e,_.toast)):J(e,_.modal),V(e,t,"popup"),"string"==typeof t.customClass&&J(e,t.customClass),t.icon&&J(e,_["icon-".concat(t.icon)])},qe=(e,t)=>{((e,t)=>{const o=C(),n=S();t.toast?(ee(o,"width",t.width),n.style.width="100%",n.insertBefore(R(),T())):ee(n,"width",t.width),ee(n,"padding",t.padding),t.color&&(n.style.color=t.color),t.background&&(n.style.background=t.background),oe(B()),Fe(n,t)})(0,t),_e(0,t),((e,t)=>{const n=D();if(!t.progressSteps||0===t.progressSteps.length)return oe(n);te(n),n.textContent="",t.currentProgressStep>=t.progressSteps.length&&o("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),t.progressSteps.forEach(((e,o)=>{const a=je(e);if(n.appendChild(a),o===t.currentProgressStep&&J(a,_["active-progress-step"]),o!==t.progressSteps.length-1){const e=He(t);n.appendChild(e)}}))})(0,t),((e,t)=>{const o=ke.innerParams.get(e),a=T();if(o&&t.icon===o.icon)return Re(a,t),void Oe(a,t);if(t.icon||t.iconHtml){if(t.icon&&-1===Object.keys(k).indexOf(t.icon))return n('Unknown icon! Expected "success", "error", "warning", "info" or "question", got "'.concat(t.icon,'"')),void oe(a);te(a),Re(a,t),Oe(a,t),J(a,t.showClass.icon)}else oe(a)})(e,t),((e,t)=>{const o=I();if(!t.imageUrl)return oe(o);te(o,""),o.setAttribute("src",t.imageUrl),o.setAttribute("alt",t.imageAlt),ee(o,"width",t.imageWidth),ee(o,"height",t.imageHeight),o.className=_.image,V(o,t,"image")})(0,t),((e,t)=>{const o=P();ae(o,t.title||t.titleText,"block"),t.title&&fe(t.title,o),t.titleText&&(o.innerText=t.titleText),V(o,t,"title")})(0,t),((e,t)=>{const o=F();W(o,t.closeButtonHtml),V(o,t,"closeButton"),ae(o,t.showCloseButton),o.setAttribute("aria-label",t.closeButtonAriaLabel)})(0,t),Be(e,t),be(0,t),((e,t)=>{const o=j();ae(o,t.footer),t.footer&&fe(t.footer,o),V(o,t,"footer")})(0,t),"function"==typeof t.didRender&&t.didRender(S())},Ue=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),Ye=()=>{Array.from(document.body.children).forEach((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")}))},ze=["swal-title","swal-html","swal-footer"],We=e=>{const t={};return Array.from(e.querySelectorAll("swal-param")).forEach((e=>{Xe(e,["name","value"]);const o=e.getAttribute("name"),n=e.getAttribute("value");"boolean"==typeof u[o]&&"false"===n&&(t[o]=!1),"object"==typeof u[o]&&(t[o]=JSON.parse(n))})),t},Ge=e=>{const o={};return Array.from(e.querySelectorAll("swal-button")).forEach((e=>{Xe(e,["type","color","aria-label"]);const n=e.getAttribute("type");o["".concat(n,"ButtonText")]=e.innerHTML,o["show".concat(t(n),"Button")]=!0,e.hasAttribute("color")&&(o["".concat(n,"ButtonColor")]=e.getAttribute("color")),e.hasAttribute("aria-label")&&(o["".concat(n,"ButtonAriaLabel")]=e.getAttribute("aria-label"))})),o},Ve=e=>{const t={},o=e.querySelector("swal-image");return o&&(Xe(o,["src","width","height","alt"]),o.hasAttribute("src")&&(t.imageUrl=o.getAttribute("src")),o.hasAttribute("width")&&(t.imageWidth=o.getAttribute("width")),o.hasAttribute("height")&&(t.imageHeight=o.getAttribute("height")),o.hasAttribute("alt")&&(t.imageAlt=o.getAttribute("alt"))),t},Ke=e=>{const t={},o=e.querySelector("swal-icon");return o&&(Xe(o,["type","color"]),o.hasAttribute("type")&&(t.icon=o.getAttribute("type")),o.hasAttribute("color")&&(t.iconColor=o.getAttribute("color")),t.iconHtml=o.innerHTML),t},$e=e=>{const t={},o=e.querySelector("swal-input");o&&(Xe(o,["type","label","placeholder","value"]),t.input=o.getAttribute("type")||"text",o.hasAttribute("label")&&(t.inputLabel=o.getAttribute("label")),o.hasAttribute("placeholder")&&(t.inputPlaceholder=o.getAttribute("placeholder")),o.hasAttribute("value")&&(t.inputValue=o.getAttribute("value")));const n=Array.from(e.querySelectorAll("swal-input-option"));return n.length&&(t.inputOptions={},n.forEach((e=>{Xe(e,["value"]);const o=e.getAttribute("value"),n=e.innerHTML;t.inputOptions[o]=n}))),t},Ze=(e,t)=>{const o={};for(const n in t){const a=t[n],r=e.querySelector(a);r&&(Xe(r,[]),o[a.replace(/^swal-/,"")]=r.innerHTML.trim())}return o},Je=e=>{const t=ze.concat(["swal-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Array.from(e.children).forEach((e=>{const n=e.tagName.toLowerCase();-1===t.indexOf(n)&&o("Unrecognized element <".concat(n,">"))}))},Xe=(e,t)=>{Array.from(e.attributes).forEach((n=>{-1===t.indexOf(n.name)&&o(['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.")])}))};var Qe={email:(e,t)=>/^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]{2,24}$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid email address"),url:(e,t)=>/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid URL")};function et(e){(function(e){e.inputValidator||Object.keys(Qe).forEach((t=>{e.input===t&&(e.inputValidator=Qe[t])}))})(e),e.showLoaderOnConfirm&&!e.preConfirm&&o("showLoaderOnConfirm is set to true, but preConfirm is not defined.\nshowLoaderOnConfirm should be used together with preConfirm, see usage example:\nhttps://sweetalert2.github.io/#ajax-request"),function(e){(!e.target||"string"==typeof e.target&&!document.querySelector(e.target)||"string"!=typeof e.target&&!e.target.appendChild)&&(o('Target parameter is not valid, defaulting to "body"'),e.target="body")}(e),"string"==typeof e.title&&(e.title=e.title.split("\n").join("
                    ")),me(e)}class tt{constructor(e,t){this.callback=e,this.remaining=t,this.running=!1,this.start()}start(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}stop(){return this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=(new Date).getTime()-this.started.getTime()),this.remaining}increase(e){const t=this.running;return t&&this.stop(),this.remaining+=e,t&&this.start(),this.remaining}getTimerLeft(){return this.running&&(this.stop(),this.start()),this.remaining}isRunning(){return this.running}}const ot=()=>{null===z.previousBodyPadding&&document.body.scrollHeight>window.innerHeight&&(z.previousBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight="".concat(z.previousBodyPadding+(()=>{const e=document.createElement("div");e.className=_["scrollbar-measure"],document.body.appendChild(e);const t=e.getBoundingClientRect().width-e.clientWidth;return document.body.removeChild(e),t})(),"px"))},nt=()=>{const e=navigator.userAgent,t=!!e.match(/iPad/i)||!!e.match(/iPhone/i),o=!!e.match(/WebKit/i);if(t&&o&&!e.match(/CriOS/i)){const e=44;S().scrollHeight>window.innerHeight-e&&(C().style.paddingBottom="".concat(e,"px"))}},at=()=>{const e=C();let t;e.ontouchstart=e=>{t=rt(e)},e.ontouchmove=e=>{t&&(e.preventDefault(),e.stopPropagation())}},rt=e=>{const t=e.target,o=C();return!(st(e)||it(e)||t!==o&&(se(o)||!(t instanceof HTMLElement)||"INPUT"===t.tagName||"TEXTAREA"===t.tagName||se(A())&&A().contains(t)))},st=e=>e.touches&&e.touches.length&&"stylus"===e.touches[0].touchType,it=e=>e.touches&&e.touches.length>1,ct=e=>{const t=C(),o=S();"function"==typeof e.willOpen&&e.willOpen(o);const n=window.getComputedStyle(document.body).overflowY;pt(t,o,e),setTimeout((()=>{ut(t,o)}),10),U()&&(dt(t,e.scrollbarPadding,n),Array.from(document.body.children).forEach((e=>{e===C()||e.contains(C())||(e.hasAttribute("aria-hidden")&&e.setAttribute("data-previous-aria-hidden",e.getAttribute("aria-hidden")),e.setAttribute("aria-hidden","true"))}))),Y()||ue.previousActiveElement||(ue.previousActiveElement=document.activeElement),"function"==typeof e.didOpen&&setTimeout((()=>e.didOpen(o))),X(t,_["no-transition"])},lt=e=>{const t=S();if(e.target!==t)return;const o=C();t.removeEventListener(we,lt),o.style.overflowY="auto"},ut=(e,t)=>{we&&ie(t)?(e.style.overflowY="hidden",t.addEventListener(we,lt)):e.style.overflowY="auto"},dt=(e,t,o)=>{(()=>{if((/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)&&!G(document.body,_.iosfix)){const e=document.body.scrollTop;document.body.style.top="".concat(-1*e,"px"),J(document.body,_.iosfix),at(),nt()}})(),t&&"hidden"!==o&&ot(),setTimeout((()=>{e.scrollTop=0}))},pt=(e,t,o)=>{J(e,o.showClass.backdrop),t.style.setProperty("opacity","0","important"),te(t,"grid"),setTimeout((()=>{J(t,o.showClass.popup),t.style.removeProperty("opacity")}),10),J([document.documentElement,document.body],_.shown),o.heightAuto&&o.backdrop&&!o.toast&&J([document.documentElement,document.body],_["height-auto"])},ht=e=>{let t=S();t||new To,t=S();const o=R();Y()?oe(T()):mt(t,e),te(o),t.setAttribute("data-loading","true"),t.setAttribute("aria-busy","true"),t.focus()},mt=(e,t)=>{const o=N(),n=R();!t&&re(O())&&(t=O()),te(o),t&&(oe(t),n.setAttribute("data-button-to-replace",t.className)),n.parentNode.insertBefore(n,t),J([e,o],_.loading)},ft=e=>e.checked?1:0,gt=e=>e.checked?e.value:null,yt=e=>e.files.length?null!==e.getAttribute("multiple")?e.files:e.files[0]:null,wt=(e,t)=>{const o=S(),a=e=>vt[t.input](o,_t(e),t);i(t.inputOptions)||l(t.inputOptions)?(ht(O()),c(t.inputOptions).then((t=>{e.hideLoading(),a(t)}))):"object"==typeof t.inputOptions?a(t.inputOptions):n("Unexpected type of inputOptions! Expected object, Map or Promise, got ".concat(typeof t.inputOptions))},bt=(e,t)=>{const o=e.getInput();oe(o),c(t.inputValue).then((n=>{o.value="number"===t.input?parseFloat(n)||0:"".concat(n),te(o),o.focus(),e.hideLoading()})).catch((t=>{n("Error in inputValue promise: ".concat(t)),o.value="",te(o),o.focus(),e.hideLoading()}))},vt={select:(e,t,o)=>{const n=Q(e,_.select),a=(e,t,n)=>{const a=document.createElement("option");a.value=n,W(a,t),a.selected=kt(n,o.inputValue),e.appendChild(a)};t.forEach((e=>{const t=e[0],o=e[1];if(Array.isArray(o)){const e=document.createElement("optgroup");e.label=t,e.disabled=!1,n.appendChild(e),o.forEach((t=>a(e,t[1],t[0])))}else a(n,o,t)})),n.focus()},radio:(e,t,o)=>{const n=Q(e,_.radio);t.forEach((e=>{const t=e[0],a=e[1],r=document.createElement("input"),s=document.createElement("label");r.type="radio",r.name=_.radio,r.value=t,kt(t,o.inputValue)&&(r.checked=!0);const i=document.createElement("span");W(i,a),i.className=_.label,s.appendChild(r),s.appendChild(i),n.appendChild(s)}));const a=n.querySelectorAll("input");a.length&&a[0].focus()}},_t=e=>{const t=[];return"undefined"!=typeof Map&&e instanceof Map?e.forEach(((e,o)=>{let n=e;"object"==typeof n&&(n=_t(n)),t.push([o,n])})):Object.keys(e).forEach((o=>{let n=e[o];"object"==typeof n&&(n=_t(n)),t.push([o,n])})),t},kt=(e,t)=>t&&t.toString()===e.toString();function Ct(){const e=ke.innerParams.get(this);if(!e)return;const t=ke.domCache.get(this);oe(t.loader),Y()?e.icon&&te(T()):xt(t),X([t.popup,t.actions],_.loading),t.popup.removeAttribute("aria-busy"),t.popup.removeAttribute("data-loading"),t.confirmButton.disabled=!1,t.denyButton.disabled=!1,t.cancelButton.disabled=!1}const xt=e=>{const t=e.popup.getElementsByClassName(e.loader.getAttribute("data-button-to-replace"));t.length?te(t[0],"inline-block"):!re(O())&&!re(M())&&!re(L())&&oe(e.actions)};var Et={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};const St=()=>O()&&O().click(),Tt=e=>{e.keydownTarget&&e.keydownHandlerAdded&&(e.keydownTarget.removeEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!1)},Pt=(e,t,o)=>{const n=q();if(n.length)return(t+=o)===n.length?t=0:-1===t&&(t=n.length-1),n[t].focus();S().focus()},At=["ArrowRight","ArrowDown"],It=["ArrowLeft","ArrowUp"],Dt=(e,t,o)=>{const n=ke.innerParams.get(e);n&&(t.isComposing||229===t.keyCode||(n.stopKeydownPropagation&&t.stopPropagation(),"Enter"===t.key?Bt(e,t,n):"Tab"===t.key?Ot(t,n):[...At,...It].includes(t.key)?Mt(t.key):"Escape"===t.key&&Rt(t,n,o)))},Bt=(e,t,o)=>{if(s(o.allowEnterKey)&&t.target&&e.getInput()&&t.target instanceof HTMLElement&&t.target.outerHTML===e.getInput().outerHTML){if(["textarea","file"].includes(o.input))return;St(),t.preventDefault()}},Ot=(e,t)=>{const o=e.target,n=q();let a=-1;for(let e=0;e{const t=O(),o=M(),n=L();if(document.activeElement instanceof HTMLElement&&![t,o,n].includes(document.activeElement))return;const a=At.includes(e)?"nextElementSibling":"previousElementSibling";let r=document.activeElement;for(let e=0;e{s(t.allowEscapeKey)&&(e.preventDefault(),o(Ue.esc))};function Lt(e,t,o,n){Y()?Yt(e,n):(de(o).then((()=>Yt(e,n))),Tt(ue)),/^((?!chrome|android).)*safari/i.test(navigator.userAgent)?(t.setAttribute("style","display:none !important"),t.removeAttribute("class"),t.innerHTML=""):t.remove(),U()&&(null!==z.previousBodyPadding&&(document.body.style.paddingRight="".concat(z.previousBodyPadding,"px"),z.previousBodyPadding=null),(()=>{if(G(document.body,_.iosfix)){const e=parseInt(document.body.style.top,10);X(document.body,_.iosfix),document.body.style.top="",document.body.scrollTop=-1*e}})(),Ye()),X([document.documentElement,document.body],[_.shown,_["height-auto"],_["no-backdrop"],_["toast-shown"]])}function Nt(e){e=Ft(e);const t=Et.swalPromiseResolve.get(this),o=jt(this);this.isAwaitingPromise()?e.isDismissed||(Ht(this),t(e)):o&&t(e)}const jt=e=>{const t=S();if(!t)return!1;const o=ke.innerParams.get(e);if(!o||G(t,o.hideClass.popup))return!1;X(t,o.showClass.popup),J(t,o.hideClass.popup);const n=C();return X(n,o.showClass.backdrop),J(n,o.hideClass.backdrop),qt(e,t,o),!0};const Ht=e=>{e.isAwaitingPromise()&&(ke.awaitingPromise.delete(e),ke.innerParams.get(e)||e._destroy())},Ft=e=>void 0===e?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},e),qt=(e,t,o)=>{const n=C(),a=we&&ie(t);"function"==typeof o.willClose&&o.willClose(t),a?Ut(e,t,n,o.returnFocus,o.didClose):Lt(e,n,o.returnFocus,o.didClose)},Ut=(e,t,o,n,a)=>{ue.swalCloseEventFinishedCallback=Lt.bind(null,e,o,n,a),t.addEventListener(we,(function(e){e.target===t&&(ue.swalCloseEventFinishedCallback(),delete ue.swalCloseEventFinishedCallback)}))},Yt=(e,t)=>{setTimeout((()=>{"function"==typeof t&&t.bind(e.params)(),e._destroy()}))};function zt(e,t,o){const n=ke.domCache.get(e);t.forEach((e=>{n[e].disabled=o}))}function Wt(e,t){if(!e)return!1;if("radio"===e.type){const o=e.parentNode.parentNode.querySelectorAll("input");for(let e=0;e{const t={};return Object.keys(e).forEach((n=>{f(n)?t[n]=e[n]:o("Invalid parameter to update: ".concat(n))})),t};const Vt=e=>{Kt(e),delete e.params,delete ue.keydownHandler,delete ue.keydownTarget,delete ue.currentInstance},Kt=e=>{e.isAwaitingPromise()?($t(ke,e),ke.awaitingPromise.set(e,!0)):($t(Et,e),$t(ke,e))},$t=(e,t)=>{for(const o in e)e[o].delete(t)};var Zt=Object.freeze({hideLoading:Ct,disableLoading:Ct,getInput:function(e){const t=ke.innerParams.get(e||this),o=ke.domCache.get(e||this);return o?K(o.popup,t.input):null},close:Nt,isAwaitingPromise:function(){return!!ke.awaitingPromise.get(this)},rejectPromise:function(e){const t=Et.swalPromiseReject.get(this);Ht(this),t&&t(e)},handleAwaitingPromise:Ht,closePopup:Nt,closeModal:Nt,closeToast:Nt,enableButtons:function(){zt(this,["confirmButton","denyButton","cancelButton"],!1)},disableButtons:function(){zt(this,["confirmButton","denyButton","cancelButton"],!0)},enableInput:function(){return Wt(this.getInput(),!1)},disableInput:function(){return Wt(this.getInput(),!0)},showValidationMessage:function(e){const t=ke.domCache.get(this),o=ke.innerParams.get(this);W(t.validationMessage,e),t.validationMessage.className=_["validation-message"],o.customClass&&o.customClass.validationMessage&&J(t.validationMessage,o.customClass.validationMessage),te(t.validationMessage);const n=this.getInput();n&&(n.setAttribute("aria-invalid",!0),n.setAttribute("aria-describedby",_["validation-message"]),$(n),J(n,_.inputerror))},resetValidationMessage:function(){const e=ke.domCache.get(this);e.validationMessage&&oe(e.validationMessage);const t=this.getInput();t&&(t.removeAttribute("aria-invalid"),t.removeAttribute("aria-describedby"),X(t,_.inputerror))},getProgressSteps:function(){return ke.domCache.get(this).progressSteps},update:function(e){const t=S(),n=ke.innerParams.get(this);if(!t||G(t,n.hideClass.popup))return o("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.");const a=Gt(e),r=Object.assign({},n,a);qe(this,r),ke.innerParams.set(this,r),Object.defineProperties(this,{params:{value:Object.assign({},this.params,e),writable:!1,enumerable:!0}})},_destroy:function(){const e=ke.domCache.get(this),t=ke.innerParams.get(this);t?(e.popup&&ue.swalCloseEventFinishedCallback&&(ue.swalCloseEventFinishedCallback(),delete ue.swalCloseEventFinishedCallback),"function"==typeof t.didDestroy&&t.didDestroy(),Vt(this)):Kt(this)}});const Jt=(e,o)=>{const a=ke.innerParams.get(e);if(!a.input)return void n('The "input" parameter is needed to be set when using returnInputValueOn'.concat(t(o)));const r=((e,t)=>{const o=e.getInput();if(!o)return null;switch(t.input){case"checkbox":return ft(o);case"radio":return gt(o);case"file":return yt(o);default:return t.inputAutoTrim?o.value.trim():o.value}})(e,a);a.inputValidator?Xt(e,r,o):e.getInput().checkValidity()?"deny"===o?Qt(e,r):oo(e,r):(e.enableButtons(),e.showValidationMessage(a.validationMessage))},Xt=(e,t,o)=>{const n=ke.innerParams.get(e);e.disableInput(),Promise.resolve().then((()=>c(n.inputValidator(t,n.validationMessage)))).then((n=>{e.enableButtons(),e.enableInput(),n?e.showValidationMessage(n):"deny"===o?Qt(e,t):oo(e,t)}))},Qt=(e,t)=>{const o=ke.innerParams.get(e||void 0);o.showLoaderOnDeny&&ht(M()),o.preDeny?(ke.awaitingPromise.set(e||void 0,!0),Promise.resolve().then((()=>c(o.preDeny(t,o.validationMessage)))).then((o=>{!1===o?(e.hideLoading(),Ht(e)):e.close({isDenied:!0,value:void 0===o?t:o})})).catch((t=>to(e||void 0,t)))):e.close({isDenied:!0,value:t})},eo=(e,t)=>{e.close({isConfirmed:!0,value:t})},to=(e,t)=>{e.rejectPromise(t)},oo=(e,t)=>{const o=ke.innerParams.get(e||void 0);o.showLoaderOnConfirm&&ht(),o.preConfirm?(e.resetValidationMessage(),ke.awaitingPromise.set(e||void 0,!0),Promise.resolve().then((()=>c(o.preConfirm(t,o.validationMessage)))).then((o=>{re(B())||!1===o?(e.hideLoading(),Ht(e)):eo(e,void 0===o?t:o)})).catch((t=>to(e||void 0,t)))):eo(e,t)},no=(e,t,o)=>{t.popup.onclick=()=>{const t=ke.innerParams.get(e);t&&(ao(t)||t.timer||t.input)||o(Ue.close)}},ao=e=>e.showConfirmButton||e.showDenyButton||e.showCancelButton||e.showCloseButton;let ro=!1;const so=e=>{e.popup.onmousedown=()=>{e.container.onmouseup=function(t){e.container.onmouseup=void 0,t.target===e.container&&(ro=!0)}}},io=e=>{e.container.onmousedown=()=>{e.popup.onmouseup=function(t){e.popup.onmouseup=void 0,(t.target===e.popup||e.popup.contains(t.target))&&(ro=!0)}}},co=(e,t,o)=>{t.container.onclick=n=>{const a=ke.innerParams.get(e);ro?ro=!1:n.target===t.container&&s(a.allowOutsideClick)&&o(Ue.backdrop)}},lo=e=>e instanceof Element||(e=>"object"==typeof e&&e.jquery)(e);const uo=()=>{if(ue.timeout)return(()=>{const e=H(),t=parseInt(window.getComputedStyle(e).width);e.style.removeProperty("transition"),e.style.width="100%";const o=t/parseInt(window.getComputedStyle(e).width)*100;e.style.removeProperty("transition"),e.style.width="".concat(o,"%")})(),ue.timeout.stop()},po=()=>{if(ue.timeout){const e=ue.timeout.start();return ce(e),e}};let ho=!1;const mo={};const fo=e=>{for(let t=e.target;t&&t!==document;t=t.parentNode)for(const e in mo){const o=t.getAttribute(e);if(o)return void mo[e].fire({template:o})}};var go=Object.freeze({isValidParameter:m,isUpdatableParameter:f,isDeprecatedParameter:g,argsToParams:e=>{const t={};return"object"!=typeof e[0]||lo(e[0])?["title","html","icon"].forEach(((o,a)=>{const r=e[a];"string"==typeof r||lo(r)?t[o]=r:void 0!==r&&n("Unexpected type of ".concat(o,'! Expected "string" or "Element", got ').concat(typeof r))})):Object.assign(t,e[0]),t},isVisible:()=>re(S()),clickConfirm:St,clickDeny:()=>M()&&M().click(),clickCancel:()=>L()&&L().click(),getContainer:C,getPopup:S,getTitle:P,getHtmlContainer:A,getImage:I,getIcon:T,getInputLabel:()=>E(_["input-label"]),getCloseButton:F,getActions:N,getConfirmButton:O,getDenyButton:M,getCancelButton:L,getLoader:R,getFooter:j,getTimerProgressBar:H,getFocusableElements:q,getValidationMessage:B,isLoading:()=>S().hasAttribute("data-loading"),fire:function(){const e=this;for(var t=arguments.length,o=new Array(t),n=0;nue.timeout&&ue.timeout.getTimerLeft(),stopTimer:uo,resumeTimer:po,toggleTimer:()=>{const e=ue.timeout;return e&&(e.running?uo():po())},increaseTimer:e=>{if(ue.timeout){const t=ue.timeout.increase(e);return ce(t,!0),t}},isTimerRunning:()=>ue.timeout&&ue.timeout.isRunning(),bindClickHandler:function(){mo[arguments.length>0&&void 0!==arguments[0]?arguments[0]:"data-swal-template"]=this,ho||(document.body.addEventListener("click",fo),ho=!0)}});let yo;class wo{constructor(){if("undefined"==typeof window)return;yo=this;for(var e=arguments.length,t=new Array(e),o=0;o1&&void 0!==arguments[1]?arguments[1]:{};(e=>{!e.backdrop&&e.allowOutsideClick&&o('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');for(const t in e)y(t),e.toast&&w(t),b(t)})(Object.assign({},t,e)),ue.currentInstance&&(ue.currentInstance._destroy(),U()&&Ye()),ue.currentInstance=yo;const n=vo(e,t);et(n),Object.freeze(n),ue.timeout&&(ue.timeout.stop(),delete ue.timeout),clearTimeout(ue.restoreFocusTimeout);const a=_o(yo);return qe(yo,n),ke.innerParams.set(yo,n),bo(yo,a,n)}then(e){return ke.promise.get(this).then(e)}finally(e){return ke.promise.get(this).finally(e)}}const bo=(e,t,o)=>new Promise(((n,a)=>{const r=t=>{e.closePopup({isDismissed:!0,dismiss:t})};Et.swalPromiseResolve.set(e,n),Et.swalPromiseReject.set(e,a),t.confirmButton.onclick=()=>(e=>{const t=ke.innerParams.get(e);e.disableButtons(),t.input?Jt(e,"confirm"):oo(e,!0)})(e),t.denyButton.onclick=()=>(e=>{const t=ke.innerParams.get(e);e.disableButtons(),t.returnInputValueOnDeny?Jt(e,"deny"):Qt(e,!1)})(e),t.cancelButton.onclick=()=>((e,t)=>{e.disableButtons(),t(Ue.cancel)})(e,r),t.closeButton.onclick=()=>r(Ue.close),((e,t,o)=>{ke.innerParams.get(e).toast?no(e,t,o):(so(t),io(t),co(e,t,o))})(e,t,r),((e,t,o,n)=>{Tt(t),o.toast||(t.keydownHandler=t=>Dt(e,t,n),t.keydownTarget=o.keydownListenerCapture?window:S(),t.keydownListenerCapture=o.keydownListenerCapture,t.keydownTarget.addEventListener("keydown",t.keydownHandler,{capture:t.keydownListenerCapture}),t.keydownHandlerAdded=!0)})(e,ue,o,r),((e,t)=>{"select"===t.input||"radio"===t.input?wt(e,t):["text","email","number","tel","textarea"].includes(t.input)&&(i(t.inputValue)||l(t.inputValue))&&(ht(O()),bt(e,t))})(e,o),ct(o),ko(ue,o,r),Co(t,o),setTimeout((()=>{t.container.scrollTop=0}))})),vo=(e,t)=>{const o=(e=>{const t="string"==typeof e.template?document.querySelector(e.template):e.template;if(!t)return{};const o=t.content;return Je(o),Object.assign(We(o),Ge(o),Ve(o),Ke(o),$e(o),Ze(o,ze))})(e),n=Object.assign({},u,t,o,e);return n.showClass=Object.assign({},u.showClass,n.showClass),n.hideClass=Object.assign({},u.hideClass,n.hideClass),n},_o=e=>{const t={popup:S(),container:C(),actions:N(),confirmButton:O(),denyButton:M(),cancelButton:L(),loader:R(),closeButton:F(),validationMessage:B(),progressSteps:D()};return ke.domCache.set(e,t),t},ko=(e,t,o)=>{const n=H();oe(n),t.timer&&(e.timeout=new tt((()=>{o("timer"),delete e.timeout}),t.timer),t.timerProgressBar&&(te(n),V(n,t,"timerProgressBar"),setTimeout((()=>{e.timeout&&e.timeout.running&&ce(t.timer)}))))},Co=(e,t)=>{if(!t.toast)return s(t.allowEnterKey)?void(xo(e,t)||Pt(0,-1,1)):Eo()},xo=(e,t)=>t.focusDeny&&re(e.denyButton)?(e.denyButton.focus(),!0):t.focusCancel&&re(e.cancelButton)?(e.cancelButton.focus(),!0):!(!t.focusConfirm||!re(e.confirmButton)||(e.confirmButton.focus(),0)),Eo=()=>{document.activeElement instanceof HTMLElement&&"function"==typeof document.activeElement.blur&&document.activeElement.blur()};if("undefined"!=typeof window&&/^ru\b/.test(navigator.language)&&location.host.match(/\.(ru|su|xn--p1ai)$/)&&Math.random()<.1){const e=document.createElement("div");e.className="leave-russia-now-and-apply-your-skills-to-the-world";const t=(So=[{text:"В нижеприведённом видео объясняется как каждый из нас может помочь в том,\n чтобы эта бессмысленная и бесчеловечная война остановилась:",id:"4CfDhaRkw7I"},{text:"Эмпатия - главное человеческое чувство. Способность сопереживать. Способность поставить себя на место другого.",id:"s-GLAIY4DXA"}])[Math.floor(Math.random()*So.length)];W(e,"\n
                    \n Если мы не остановим войну, она придет в дом каждого из нас и её последствия будут ужасающими.\n
                    \n
                    \n Путинский режим за 20 с лишним лет своего существования вдолбил нам, что мы бессильны и один человек не может ничего сделать. Это не так!\n
                    \n
                    \n ".concat(t.text,'\n
                    \n \n
                    \n Нет войне!\n
                    \n '));const o=document.createElement("button");o.innerHTML="×",o.onclick=()=>e.remove(),e.appendChild(o),window.addEventListener("load",(()=>{setTimeout((()=>{document.body.appendChild(e)}),1e3)}))}var So;Object.assign(wo.prototype,Zt),Object.assign(wo,go),Object.keys(Zt).forEach((e=>{wo[e]=function(){if(yo)return yo[e](...arguments)}})),wo.DismissReason=Ue,wo.version="11.4.29";const To=wo;return To.default=To,To}(),void 0!==this&&this.Sweetalert2&&(this.swal=this.sweetAlert=this.Swal=this.SweetAlert=this.Sweetalert2),"undefined"!=typeof document&&function(e,t){var o=e.createElement("style");if(e.getElementsByTagName("head")[0].appendChild(o),o.styleSheet)o.styleSheet.disabled||(o.styleSheet.cssText=t);else try{o.innerHTML=t}catch(e){o.innerText=t}}(document,'.swal2-popup.swal2-toast{box-sizing:border-box;grid-column:1/4!important;grid-row:1/4!important;grid-template-columns:1fr 99fr 1fr;padding:1em;overflow-y:hidden;background:#fff;box-shadow:0 0 1px hsla(0deg,0%,0%,.075),0 1px 2px hsla(0deg,0%,0%,.075),1px 2px 4px hsla(0deg,0%,0%,.075),1px 3px 8px hsla(0deg,0%,0%,.075),2px 4px 16px hsla(0deg,0%,0%,.075);pointer-events:all}.swal2-popup.swal2-toast>*{grid-column:2}.swal2-popup.swal2-toast .swal2-title{margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-loading{justify-content:center}.swal2-popup.swal2-toast .swal2-input{height:2em;margin:.5em;font-size:1em}.swal2-popup.swal2-toast .swal2-validation-message{font-size:1em}.swal2-popup.swal2-toast .swal2-footer{margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-popup.swal2-toast .swal2-close{grid-column:3/3;grid-row:1/99;align-self:center;width:.8em;height:.8em;margin:0;font-size:2em}.swal2-popup.swal2-toast .swal2-html-container{margin:.5em 1em;padding:0;overflow:initial;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-html-container:empty{padding:0}.swal2-popup.swal2-toast .swal2-loader{grid-column:1;grid-row:1/99;align-self:center;width:2em;height:2em;margin:.25em}.swal2-popup.swal2-toast .swal2-icon{grid-column:1;grid-row:1/99;align-self:center;width:2em;min-width:2em;height:2em;margin:0 .5em 0 0}.swal2-popup.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:700}.swal2-popup.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-popup.swal2-toast .swal2-actions{justify-content:flex-start;height:auto;margin:0;margin-top:.5em;padding:0 .5em}.swal2-popup.swal2-toast .swal2-styled{margin:.25em .5em;padding:.4em .6em;font-size:1em}.swal2-popup.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;transform:rotate(45deg);border-radius:50%}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-.8em;left:-.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-popup.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{-webkit-animation:swal2-toast-animate-success-line-tip .75s;animation:swal2-toast-animate-success-line-tip .75s}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{-webkit-animation:swal2-toast-animate-success-line-long .75s;animation:swal2-toast-animate-success-line-long .75s}.swal2-popup.swal2-toast.swal2-show{-webkit-animation:swal2-toast-show .5s;animation:swal2-toast-show .5s}.swal2-popup.swal2-toast.swal2-hide{-webkit-animation:swal2-toast-hide .1s forwards;animation:swal2-toast-hide .1s forwards}.swal2-container{display:grid;position:fixed;z-index:1060;top:0;right:0;bottom:0;left:0;box-sizing:border-box;grid-template-areas:"top-start top top-end" "center-start center center-end" "bottom-start bottom-center bottom-end";grid-template-rows:minmax(-webkit-min-content,auto) minmax(-webkit-min-content,auto) minmax(-webkit-min-content,auto);grid-template-rows:minmax(min-content,auto) minmax(min-content,auto) minmax(min-content,auto);height:100%;padding:.625em;overflow-x:hidden;transition:background-color .1s;-webkit-overflow-scrolling:touch}.swal2-container.swal2-backdrop-show,.swal2-container.swal2-noanimation{background:rgba(0,0,0,.4)}.swal2-container.swal2-backdrop-hide{background:0 0!important}.swal2-container.swal2-bottom-start,.swal2-container.swal2-center-start,.swal2-container.swal2-top-start{grid-template-columns:minmax(0,1fr) auto auto}.swal2-container.swal2-bottom,.swal2-container.swal2-center,.swal2-container.swal2-top{grid-template-columns:auto minmax(0,1fr) auto}.swal2-container.swal2-bottom-end,.swal2-container.swal2-center-end,.swal2-container.swal2-top-end{grid-template-columns:auto auto minmax(0,1fr)}.swal2-container.swal2-top-start>.swal2-popup{align-self:start}.swal2-container.swal2-top>.swal2-popup{grid-column:2;align-self:start;justify-self:center}.swal2-container.swal2-top-end>.swal2-popup,.swal2-container.swal2-top-right>.swal2-popup{grid-column:3;align-self:start;justify-self:end}.swal2-container.swal2-center-left>.swal2-popup,.swal2-container.swal2-center-start>.swal2-popup{grid-row:2;align-self:center}.swal2-container.swal2-center>.swal2-popup{grid-column:2;grid-row:2;align-self:center;justify-self:center}.swal2-container.swal2-center-end>.swal2-popup,.swal2-container.swal2-center-right>.swal2-popup{grid-column:3;grid-row:2;align-self:center;justify-self:end}.swal2-container.swal2-bottom-left>.swal2-popup,.swal2-container.swal2-bottom-start>.swal2-popup{grid-column:1;grid-row:3;align-self:end}.swal2-container.swal2-bottom>.swal2-popup{grid-column:2;grid-row:3;justify-self:center;align-self:end}.swal2-container.swal2-bottom-end>.swal2-popup,.swal2-container.swal2-bottom-right>.swal2-popup{grid-column:3;grid-row:3;align-self:end;justify-self:end}.swal2-container.swal2-grow-fullscreen>.swal2-popup,.swal2-container.swal2-grow-row>.swal2-popup{grid-column:1/4;width:100%}.swal2-container.swal2-grow-column>.swal2-popup,.swal2-container.swal2-grow-fullscreen>.swal2-popup{grid-row:1/4;align-self:stretch}.swal2-container.swal2-no-transition{transition:none!important}.swal2-popup{display:none;position:relative;box-sizing:border-box;grid-template-columns:minmax(0,100%);width:32em;max-width:100%;padding:0 0 1.25em;border:none;border-radius:5px;background:#fff;color:#545454;font-family:inherit;font-size:1rem}.swal2-popup:focus{outline:0}.swal2-popup.swal2-loading{overflow-y:hidden}.swal2-title{position:relative;max-width:100%;margin:0;padding:.8em 1em 0;color:inherit;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:auto;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;transition:box-shadow .1s;box-shadow:0 0 0 3px transparent;font-weight:500}.swal2-styled:not([disabled]){cursor:pointer}.swal2-styled.swal2-confirm{border:0;border-radius:.25em;background:initial;background-color:#7066e0;color:#fff;font-size:1em}.swal2-styled.swal2-confirm:focus{box-shadow:0 0 0 3px rgba(112,102,224,.5)}.swal2-styled.swal2-deny{border:0;border-radius:.25em;background:initial;background-color:#dc3741;color:#fff;font-size:1em}.swal2-styled.swal2-deny:focus{box-shadow:0 0 0 3px rgba(220,55,65,.5)}.swal2-styled.swal2-cancel{border:0;border-radius:.25em;background:initial;background-color:#6e7881;color:#fff;font-size:1em}.swal2-styled.swal2-cancel:focus{box-shadow:0 0 0 3px rgba(110,120,129,.5)}.swal2-styled.swal2-default-outline:focus{box-shadow:0 0 0 3px rgba(100,150,200,.5)}.swal2-styled:focus{outline:0}.swal2-styled::-moz-focus-inner{border:0}.swal2-footer{justify-content:center;margin:1em 0 0;padding:1em 1em 0;border-top:1px solid #eee;color:inherit;font-size:1em}.swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;grid-column:auto!important;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:2em auto 1em}.swal2-close{z-index:2;align-items:center;justify-content:center;width:1.2em;height:1.2em;margin-top:0;margin-right:0;margin-bottom:-1.2em;padding:0;overflow:hidden;transition:color .1s,box-shadow .1s;border:none;border-radius:5px;background:0 0;color:#ccc;font-family:serif;font-family:monospace;font-size:2.5em;cursor:pointer;justify-self:end}.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-html-container{z-index:1;justify-content:center;margin:1em 1.6em .3em;padding:0;overflow:auto;color:inherit;font-size:1.125em;font-weight:400;line-height:normal;text-align:center;word-wrap:break-word;word-break:break-word}.swal2-checkbox,.swal2-file,.swal2-input,.swal2-radio,.swal2-select,.swal2-textarea{margin:1em 2em 3px}.swal2-file,.swal2-input,.swal2-textarea{box-sizing:border-box;width:auto;transition:border-color .1s,box-shadow .1s;border:1px solid #d9d9d9;border-radius:.1875em;background:0 0;box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px transparent;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:inset 0 1px 1px rgba(0,0,0,.06),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::placeholder,.swal2-input::placeholder,.swal2-textarea::placeholder{color:#ccc}.swal2-range{margin:1em 2em 3px;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-file{width:75%;margin-right:auto;margin-left:auto;background:0 0;font-size:1.125em}.swal2-textarea{height:6.75em;padding:.75em}.swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:0 0;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 0}.swal2-validation-message{align-items:center;justify-content:center;margin:1em 0 0;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:2.5em auto .6em;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;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-warning.swal2-icon-show{-webkit-animation:swal2-animate-error-icon .5s;animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-warning.swal2-icon-show .swal2-icon-content{-webkit-animation:swal2-animate-i-mark .5s;animation:swal2-animate-i-mark .5s}.swal2-icon.swal2-info{border-color:#9de0f6;color:#3fc3ee}.swal2-icon.swal2-info.swal2-icon-show{-webkit-animation:swal2-animate-error-icon .5s;animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-info.swal2-icon-show .swal2-icon-content{-webkit-animation:swal2-animate-i-mark .8s;animation:swal2-animate-i-mark .8s}.swal2-icon.swal2-question{border-color:#c9dae1;color:#87adbd}.swal2-icon.swal2-question.swal2-icon-show{-webkit-animation:swal2-animate-error-icon .5s;animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-question.swal2-icon-show .swal2-icon-content{-webkit-animation:swal2-animate-question-mark .8s;animation:swal2-animate-question-mark .8s}.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:1.25em auto;padding:0;background:0 0;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{margin-right:initial;margin-left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}.leave-russia-now-and-apply-your-skills-to-the-world{display:flex;position:fixed;z-index:1939;top:0;right:0;bottom:0;left:0;flex-direction:column;align-items:center;justify-content:center;padding:25px 0 20px;background:#20232a;color:#fff;text-align:center}.leave-russia-now-and-apply-your-skills-to-the-world div{max-width:560px;margin:10px;line-height:146%}.leave-russia-now-and-apply-your-skills-to-the-world iframe{max-width:100%;max-height:55.5555555556vmin;margin:16px auto}.leave-russia-now-and-apply-your-skills-to-the-world strong{border-bottom:2px dashed #fff}.leave-russia-now-and-apply-your-skills-to-the-world button{display:flex;position:fixed;z-index:1940;top:0;right:0;align-items:center;justify-content:center;width:48px;height:48px;margin-right:10px;margin-bottom:-10px;border:none;background:0 0;color:#aaa;font-size:48px;font-weight:700;cursor:pointer}.leave-russia-now-and-apply-your-skills-to-the-world button:hover{color:#fff}@-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)}}@-webkit-keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@-webkit-keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}@keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}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{background-color:transparent!important;pointer-events:none}body.swal2-no-backdrop .swal2-container .swal2-popup{pointer-events:all}body.swal2-no-backdrop .swal2-container .swal2-modal{box-shadow:0 0 10px rgba(0,0,0,.4)}@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{box-sizing:border-box;width:360px;max-width:100%;background-color:transparent;pointer-events:none}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 o=!1;try{o="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(e){}t.hasCORS=o},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 o in e)e.hasOwnProperty(o)&&(t.length&&(t+="&"),t+=encodeURIComponent(o)+"="+encodeURIComponent(e[o]));return t},t.decode=function(e){let t={},o=e.split("&");for(let e=0,n=o.length;e{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parse=void 0;const o=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,n=["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=o.exec(e||""),i={},c=14;for(;c--;)i[n[c]]=s[c]||"";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 o=t.replace(/\/{2,9}/g,"/").split("/");return"/"!=t.substr(0,1)&&0!==t.length||o.splice(0,1),"/"==t.substr(t.length-1,1)&&o.splice(o.length-1,1),o}(0,i.path),i.queryKey=function(e,t){const o={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,(function(e,t,n){t&&(o[t]=n)})),o}(0,i.query),i}},8726:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.yeast=t.decode=t.encode=void 0;const o="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),n={};let a,r=0,s=0;function i(e){let t="";do{t=o[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,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parse=t.installTimerFunctions=t.transports=t.Transport=t.protocol=t.Socket=void 0;const n=o(3481);Object.defineProperty(t,"Socket",{enumerable:!0,get:function(){return n.Socket}}),t.protocol=n.Socket.protocol;var a=o(9870);Object.defineProperty(t,"Transport",{enumerable:!0,get:function(){return a.Transport}});var r=o(7385);Object.defineProperty(t,"transports",{enumerable:!0,get:function(){return r.transports}});var s=o(9622);Object.defineProperty(t,"installTimerFunctions",{enumerable:!0,get:function(){return s.installTimerFunctions}});var i=o(5222);Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return i.parse}})},3481:function(e,t,o){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Socket=void 0;const a=o(7385),r=o(9622),s=o(5754),i=o(5222),c=n(o(1227)),l=o(5260),u=o(1373),d=(0,c.default)("engine.io-client:socket");class p extends l.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 o=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",o),new a.transports[e](o)}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),o=!1;p.priorWebsocketSuccess=!1;const n=()=>{o||(d('probe transport "%s" opened',e),t.send([{type:"ping",data:"probe"}]),t.once("packet",(n=>{if(!o)if("pong"===n.type&&"probe"===n.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((()=>{o||"closed"!==this.readyState&&(d("changing transport and sending upgrade packet"),l(),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 o=new Error("probe error");o.transport=t.name,this.emitReserved("upgradeError",o)}})))};function a(){o||(o=!0,l(),t.close(),t=null)}const r=o=>{const n=new Error("probe error: "+o);n.transport=t.name,a(),d('probe transport "%s" failed because of error: %s',e,o),this.emitReserved("upgradeError",n)};function s(){r("transport closed")}function i(){r("socket closed")}function c(e){t&&e.name!==t.name&&(d('"%s" works - aborting "%s"',e.name,t.name),a())}const l=()=>{t.removeListener("open",n),t.removeListener("error",r),t.removeListener("close",s),this.off("close",i),this.off("upgrading",c)};t.once("open",n),t.once("error",r),t.once("close",s),this.once("close",i),this.once("upgrading",c),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,o){return this.sendPacket("message",e,t,o),this}send(e,t,o){return this.sendPacket("message",e,t,o),this}sendPacket(e,t,o,n){if("function"==typeof t&&(n=t,t=void 0),"function"==typeof o&&(n=o,o=null),"closing"===this.readyState||"closed"===this.readyState)return;(o=o||{}).compress=!1!==o.compress;const a={type:e,data:t,options:o};this.emitReserved("packetCreate",a),this.writeBuffer.push(a),n&&this.once("flush",n),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()},o=()=>{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?o():e()})):this.upgrading?o():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 o=0;const n=e.length;for(;o{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.transports=void 0;const n=o(484),a=o(1308);t.transports={websocket:a.WS,polling:n.Polling}},484:function(e,t,o){"use strict";var n=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=o(9870),r=n(o(1227)),s=o(8726),i=o(5754),c=o(1373),l=o(6666),u=o(5260),d=o(9622),p=o(6242),h=(0,r.default)("engine.io-client:polling");function m(){}const f=null!=new l.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 o=location.port;o||(o=t?"443":"80"),this.xd="undefined"!=typeof location&&e.hostname!==location.hostname||o!==e.port,this.xs=e.secure!==t}const t=e&&e.forceBase64;this.supportsBinary=f&&!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,c.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,c.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 o="";!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))&&(o=":"+this.opts.port);const n=(0,i.encode)(e);return t+"://"+(-1!==this.opts.hostname.indexOf(":")?"["+this.opts.hostname+"]":this.opts.hostname)+o+this.opts.path+(n.length?"?"+n:"")}request(e={}){return Object.assign(e,{xd:this.xd,xs:this.xs},this.opts),new y(this.uri(),e)}doWrite(e,t){const o=this.request({method:"POST",data:e});o.on("success",t),o.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 l.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=m,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,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultBinaryType=t.usingBrowserWebSocket=t.WebSocket=t.nextTick=void 0;const n=o(6242);t.nextTick="function"==typeof Promise&&"function"==typeof Promise.resolve?e=>Promise.resolve().then(e):(e,t)=>t(e,0),t.WebSocket=n.globalThisShim.WebSocket||n.globalThisShim.MozWebSocket,t.usingBrowserWebSocket=!0,t.defaultBinaryType="arraybuffer"},1308:function(e,t,o){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.WS=void 0;const a=o(9870),r=o(5754),s=o(8726),i=o(9622),c=o(5552),l=n(o(1227)),u=o(1373),d=(0,l.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,o=p?{}:(0,i.pick)(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(o.headers=this.opts.extraHeaders);try{this.ws=c.usingBrowserWebSocket&&!p?t?new c.WebSocket(e,t):new c.WebSocket(e):new c.WebSocket(e,t,o)}catch(e){return this.emitReserved("error",e)}this.ws.binaryType=this.socket.binaryType||c.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={};!c.usingBrowserWebSocket&&(o.options&&(t.compress=o.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 o="";this.opts.port&&("wss"===t&&443!==Number(this.opts.port)||"ws"===t&&80!==Number(this.opts.port))&&(o=":"+this.opts.port),this.opts.timestampRequests&&(e[this.opts.timestampParam]=(0,s.yeast)()),this.supportsBinary||(e.b64=1);const n=(0,r.encode)(e);return t+"://"+(-1!==this.opts.hostname.indexOf(":")?"["+this.opts.hostname+"]":this.opts.hostname)+o+this.opts.path+(n.length?"?"+n:"")}check(){return!!c.WebSocket}}t.WS=h},6666:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.XHR=void 0;const n=o(8419),a=o(6242);t.XHR=function(e){const t=e.xdomain;try{if("undefined"!=typeof XMLHttpRequest&&(!t||n.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,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.byteLength=t.installTimerFunctions=t.pick=void 0;const n=o(6242);t.pick=function(e,...t){return t.reduce(((t,o)=>(e.hasOwnProperty(o)&&(t[o]=e[o]),t)),{})};const a=setTimeout,r=clearTimeout;t.installTimerFunctions=function(e,t){t.useNativeTimers?(e.setTimeoutFn=a.bind(n.globalThisShim),e.clearTimeoutFn=r.bind(n.globalThisShim)):(e.setTimeoutFn=setTimeout.bind(n.globalThisShim),e.clearTimeoutFn=clearTimeout.bind(n.globalThisShim))},t.byteLength=function(e){return"string"==typeof e?function(e){let t=0,o=0;for(let n=0,a=e.length;n=57344?o+=3:(n++,o+=4);return o}(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 o=Object.create(null);t.PACKET_TYPES=o,o.open="0",o.close="1",o.ping="2",o.pong="3",o.message="4",o.upgrade="5",o.noop="6";const n=Object.create(null);t.PACKET_TYPES_REVERSE=n,Object.keys(o).forEach((e=>{n[o[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 o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n="undefined"==typeof Uint8Array?[]:new Uint8Array(256);for(let e=0;e{let t,n=new Uint8Array(e),a=n.length,r="";for(t=0;t>2],r+=o[(3&n[t])<<4|n[t+1]>>4],r+=o[(15&n[t+1])<<2|n[t+2]>>6],r+=o[63&n[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,o,a,r,s,i=.75*e.length,c=e.length,l=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[l++]=(15&a)<<4|r>>2,d[l++]=(3&r)<<6|63&s;return u}},7572:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=o(3087),a=o(2469),r="function"==typeof ArrayBuffer,s=(e,t)=>{if(r){const o=(0,a.decode)(e);return i(o,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 o=e.charAt(0);return"b"===o?{type:"message",data:s(e.substring(1),t)}:n.PACKET_TYPES_REVERSE[o]?e.length>1?{type:n.PACKET_TYPES_REVERSE[o],data:e.substring(1)}:{type:n.PACKET_TYPES_REVERSE[o]}:n.ERROR_PACKET}},3908:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=o(3087),a="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),r="function"==typeof ArrayBuffer,s=(e,t)=>{const o=new FileReader;return o.onload=function(){const e=o.result.split(",")[1];t("b"+e)},o.readAsDataURL(e)};t.default=({type:e,data:t},o,i)=>{return a&&t instanceof Blob?o?i(t):s(t,i):r&&(t instanceof ArrayBuffer||(c=t,"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(c):c&&c.buffer instanceof ArrayBuffer))?o?i(t):s(new Blob([t]),i):i(n.PACKET_TYPES[e]+(t||""));var c}},1373:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodePayload=t.decodePacket=t.encodePayload=t.encodePacket=t.protocol=void 0;const n=o(3908);t.encodePacket=n.default;const a=o(7572);t.decodePacket=a.default;const r=String.fromCharCode(30);t.encodePayload=(e,t)=>{const o=e.length,a=new Array(o);let s=0;e.forEach(((e,i)=>{(0,n.default)(e,!1,(e=>{a[i]=e,++s===o&&t(a.join(r))}))}))},t.decodePayload=(e,t)=>{const o=e.split(r),n=[];for(let e=0;e{"use strict";const{parse:o,stringify:n}=JSON,{keys:a}=Object,r=String,s="string",i={},c="object",l=(e,t)=>t,u=e=>e instanceof r?r(e):e,d=(e,t)=>typeof t===s?new r(t):t,p=(e,t,o,n)=>{const s=[];for(let l=a(o),{length:u}=l,d=0;d{const n=r(t.push(o)-1);return e.set(o,n),n},m=(e,t)=>{const n=o(e,d).map(u),a=n[0],r=t||l,s=typeof a===c&&a?p(n,new Set,a,r):a;return r.call({"":s},"",s)};t.parse=m;const f=(e,t,o)=>{const a=t&&typeof t===c?(e,o)=>""===e||-1o(f(e)),t.fromJSON=e=>m(n(e))},5159:(e,t)=>{"use strict";function o(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=o,o.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),o=Math.floor(t*this.jitter*e);e=0==(1&Math.floor(10*t))?e-o:e+o}return 0|Math.min(e,this.max)},o.prototype.reset=function(){this.attempts=0},o.prototype.setMin=function(e){this.ms=e},o.prototype.setMax=function(e){this.max=e},o.prototype.setJitter=function(e){this.jitter=e}},7046:function(e,t,o){"use strict";var n=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=o(3084),r=o(4168);Object.defineProperty(t,"Manager",{enumerable:!0,get:function(){return r.Manager}});const s=o(8312);Object.defineProperty(t,"Socket",{enumerable:!0,get:function(){return s.Socket}});const i=n(o(1227)).default("socket.io-client"),c={};function l(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};const o=a.url(e,t.path||"/socket.io"),n=o.source,s=o.id,l=o.path,u=c[s]&&l in c[s].nsps;let d;return t.forceNew||t["force new connection"]||!1===t.multiplex||u?(i("ignoring socket cache for %s",n),d=new r.Manager(n,t)):(c[s]||(i("new io instance for %s",n),c[s]=new r.Manager(n,t)),d=c[s]),o.query&&!t.query&&(t.query=o.queryKey),d.socket(o.path,t)}t.io=l,t.connect=l,t.default=l,Object.assign(l,{Manager:r.Manager,Socket:s.Socket,io:l,connect:l});var u=o(7116);Object.defineProperty(t,"protocol",{enumerable:!0,get:function(){return u.protocol}}),e.exports=l},4168:function(e,t,o){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,o,n){void 0===n&&(n=o),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[o]}})}:function(e,t,o,n){void 0===n&&(n=o),e[n]=t[o]}),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 o in e)"default"!==o&&Object.prototype.hasOwnProperty.call(e,o)&&n(t,e,o);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=o(4679),c=o(8312),l=r(o(7116)),u=o(7149),d=o(5159),p=o(5260),h=s(o(1227)).default("socket.io-client:manager");class m extends p.Emitter{constructor(e,t){var o;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!==(o=t.randomizationFactor)&&void 0!==o?o:.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 n=t.parser||l;this.encoder=new n.Encoder,this.decoder=new n.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,o=this;this._readyState="opening",this.skipReconnect=!1;const n=u.on(t,"open",(function(){o.onopen(),e&&e()})),a=u.on(t,"error",(t=>{h("error"),o.cleanup(),o._readyState="closed",this.emitReserved("error",t),e?e(t):o.maybeReconnectOnOpen()}));if(!1!==this._timeout){const e=this._timeout;h("connect attempt will timeout after %d",e),0===e&&n();const o=this.setTimeoutFn((()=>{h("connect attempt timed out after %d",e),n(),t.close(),t.emit("error",new Error("timeout"))}),e);this.opts.autoUnref&&o.unref(),this.subs.push((function(){clearTimeout(o)}))}return this.subs.push(n),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 o=this.nsps[e];return o||(o=new c.Socket(this,e,t),this.nsps[e]=o),o}_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 o=0;oe())),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 o=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&&o.unref(),this.subs.push((function(){clearTimeout(o)}))}}onreconnect(){const e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}t.Manager=m},7149:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.on=void 0,t.on=function(e,t,o){return e.on(t,o),function(){e.off(t,o)}}},8312:function(e,t,o){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Socket=void 0;const a=o(7116),r=o(7149),s=o(5260),i=n(o(1227)).default("socket.io-client:socket"),c=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class l extends s.Emitter{constructor(e,t,o){super(),this.connected=!1,this.receiveBuffer=[],this.sendBuffer=[],this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=t,o&&o.auth&&(this.auth=o.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(c.hasOwnProperty(e))throw new Error('"'+e+'" is a reserved event name');t.unshift(e);const o={type:a.PacketType.EVENT,data:t,options:{}};if(o.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 n=t.pop();this._registerAckCallback(e,n),o.id=e}const n=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return!this.flags.volatile||n&&this.connected?this.connected?(this.notifyOutgoingListeners(o),this.packet(o)):this.sendBuffer.push(o):i("discard packet as the transport is not currently writable"),this.flags={},this}_registerAckCallback(e,t){const o=this.flags.timeout;if(void 0===o)return void(this.acks[e]=t);const n=this.io.setTimeoutFn((()=>{delete this.acks[e];for(let t=0;t{this.io.clearTimeoutFn(n),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 o of t)o.apply(this,e)}super.emit.apply(this,e)}ack(e){const t=this;let o=!1;return function(...n){o||(o=!0,i("sending ack %j",n),t.packet({type:a.PacketType.ACK,id:e,data:n}))}}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 o=0;o{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.reconstructPacket=t.deconstructPacket=void 0;const n=o(790);function a(e,t){if(!e)return e;if(n.isBinary(e)){const o={_placeholder:!0,num:t.length};return t.push(e),o}if(Array.isArray(e)){const o=new Array(e.length);for(let n=0;n=0&&e.num{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Decoder=t.Encoder=t.PacketType=t.protocol=void 0;const n=o(5260),a=o(3155),r=o(790),s=o(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),o=this.encodeAsString(t.packet),n=t.buffers;return n.unshift(o),n}};class c extends n.Emitter{constructor(e){super(),this.reviver=e}add(e){let t;if("string"==typeof e){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");t=this.decodeString(e),t.type===i.BINARY_EVENT||t.type===i.BINARY_ACK?(this.reconstructor=new l(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 o={type:Number(e.charAt(0))};if(void 0===i[o.type])throw new Error("unknown packet type "+o.type);if(o.type===i.BINARY_EVENT||o.type===i.BINARY_ACK){const n=t+1;for(;"-"!==e.charAt(++t)&&t!=e.length;);const a=e.substring(n,t);if(a!=Number(a)||"-"!==e.charAt(t))throw new Error("Illegal attachments");o.attachments=Number(a)}if("/"===e.charAt(t+1)){const n=t+1;for(;++t&&","!==e.charAt(t)&&t!==e.length;);o.nsp=e.substring(n,t)}else o.nsp="/";const n=e.charAt(t+1);if(""!==n&&Number(n)==n){const n=t+1;for(;++t;){const o=e.charAt(t);if(null==o||Number(o)!=o){--t;break}if(t===e.length)break}o.id=Number(e.substring(n,t+1))}if(e.charAt(++t)){const n=this.tryParse(e.substr(t));if(!c.isPayloadValid(o.type,n))throw new Error("invalid payload");o.data=n}return s("decoded %s as %j",e,o),o}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=c;class l{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 o="function"==typeof ArrayBuffer,n=Object.prototype.toString,a="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===n.call(Blob),r="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===n.call(File);function s(e){return o&&(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,o){if(!t||"object"!=typeof t)return!1;if(Array.isArray(t)){for(let o=0,n=t.length;o{"use strict";function n(e){if(e)return function(e){for(var t in n.prototype)e[t]=n.prototype[t];return e}(e)}o.r(t),o.d(t,{Emitter:()=>n}),n.prototype.on=n.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},n.prototype.once=function(e,t){function o(){this.off(e,o),t.apply(this,arguments)}return o.fn=t,this.on(e,o),this},n.prototype.off=n.prototype.removeListener=n.prototype.removeAllListeners=n.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var o,n=this._callbacks["$"+e];if(!n)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 o in t)__webpack_require__.o(t,o)&&!__webpack_require__.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},__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__(8238),__webpack_require__(112),__webpack_require__(3336),__webpack_require__(2868),__webpack_require__(4719),__webpack_require__(3131),__webpack_require__(3526),__webpack_require__(4759);var __webpack_exports__=__webpack_require__(2852)})(); \ No newline at end of file diff --git a/cheatGUI/dist/bundle.js.LICENSE.txt b/cheatGUI/dist/bundle.js.LICENSE.txt new file mode 100644 index 0000000..2662166 --- /dev/null +++ b/cheatGUI/dist/bundle.js.LICENSE.txt @@ -0,0 +1 @@ +/*! (c) 2022 ProdigyPNP */ diff --git a/cheatGUI/package-lock.json b/cheatGUI/package-lock.json index 7b8d63f..ae6cd52 100644 --- a/cheatGUI/package-lock.json +++ b/cheatGUI/package-lock.json @@ -16,6 +16,7 @@ "babel": "^6.23.0", "babel-loader": "^8.2.2", "css-loader": "^6.7.1", + "flatted": "^3.2.7", "postcss": "^8.2.10", "postcss-loader": "^7.0.0", "sass": "^1.32.8", @@ -3701,8 +3702,7 @@ "node_modules/flatted": { "version": "3.2.7", "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.7.tgz", - "integrity": "sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ==", - "dev": true + "integrity": "sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ==" }, "node_modules/fraction.js": { "version": "4.2.0", @@ -8993,8 +8993,7 @@ "flatted": { "version": "3.2.7", "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.7.tgz", - "integrity": "sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ==", - "dev": true + "integrity": "sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ==" }, "fraction.js": { "version": "4.2.0", diff --git a/cheatGUI/package.json b/cheatGUI/package.json index e331639..bc4e275 100644 --- a/cheatGUI/package.json +++ b/cheatGUI/package.json @@ -5,7 +5,7 @@ "main": "dist/bundle.js", "scripts": { "setup": "npm install", - "build": "npx webpack --config webpack.config.js", + "build": "npx webpack --config webpack.config.js && rm dist/bundle.js.LICENSE.txt && touch dist/bundle.js.LICENSE.txt && echo \"/*! (c) 2022 ProdigyPNP */\" >> dist/bundle.js.LICENSE.txt", "webpack": "npm run build", "package": "npm run build", "server": "node hot-reload.mjs", @@ -29,6 +29,7 @@ "babel": "^6.23.0", "babel-loader": "^8.2.2", "css-loader": "^6.7.1", + "flatted": "^3.2.7", "postcss": "^8.2.10", "postcss-loader": "^7.0.0", "sass": "^1.32.8", diff --git a/cheatGUI/src/hacks/inventory.ts b/cheatGUI/src/hacks/inventory.ts index eb2ae3a..6f17ba1 100644 --- a/cheatGUI/src/hacks/inventory.ts +++ b/cheatGUI/src/hacks/inventory.ts @@ -66,7 +66,6 @@ new Hack(category.inventory, "Selector (Basic)").setClick(async () => { input: "select", inputOptions: names, inputPlaceholder: "Select...", - // @ts-expect-error inputValidator: res => res ? "" : "Please select which you'd like to obtain.", showCancelButton: true }).then(async val => { @@ -105,7 +104,6 @@ new Hack(category.inventory, "Selector (Advanced)", "Choose a specific object an input: "select", inputOptions: names, inputPlaceholder: "Select...", - // @ts-expect-error inputValidator: res => res ? "" : "Please select which you'd like to obtain.", showCancelButton: true }).then(async val => { @@ -119,7 +117,6 @@ new Hack(category.inventory, "Selector (Advanced)", "Choose a specific object an input: "select", inputOptions: objs, inputPlaceholder: "Select...", - // @ts-expect-error inputValidator: res => res ? "" : "Please select which you'd like to get.", showCancelButton: true }).then(async spec => { @@ -180,13 +177,11 @@ new Hack(category.inventory, "Obtain All Mounts", "This gives you all of the mou // Begin Remove Item new Hack(category.inventory, "Remove item").setClick(async () => { - // @ts-expect-error const category = await Swal.fire({ title: "What category would you like to remove an item from?", input: "select", inputOptions: names, inputPlaceholder: "Select...", - // @ts-expect-error inputValidator: res => res ? "" : "Please select which you'd like to obtain.", showCancelButton: true }); diff --git a/cheatGUI/src/hacks/pets.ts b/cheatGUI/src/hacks/pets.ts index cf42bd3..670b757 100644 --- a/cheatGUI/src/hacks/pets.ts +++ b/cheatGUI/src/hacks/pets.ts @@ -7,6 +7,7 @@ import { Hack, category } from "../index"; // Import the Cheat GUI bases. import { _, VERY_LARGE_NUMBER, player } from "../utils/util"; // Import Prodigy typings and VERY_LARGE_NUMBER import { getPet } from "../utils/hackify"; // Import getPet import { GetAction, SelectSlot } from "../utils/kennel"; +import flatted from "flatted"; // END IMPORTS @@ -138,7 +139,6 @@ 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 () => { - // @ts-expect-error const pet = await Swal.fire({ input: "select", // @ts-expect-error @@ -222,7 +222,9 @@ new Hack(category.pets, "Edit Kennel", "Allows you to directly edit your pets.") // Begin Backup Kennel new Hack(category.pets, "Backup Kennel", "Makes a backup of your kennel to your chrome local storage.").setClick(async () => { - localStorage.setItem("prodigy-kennel-backup", JSON.stringify(_.player.kennel._petTeam)); + const stringobject : string = flatted.stringify(_.player.kennel._petTeam[0]); + console.log(stringobject); + localStorage.setItem("prodigy-kennel-backup", stringobject); return Toast.fire("Backed up!", "Your kennel is now backed up to the local storage.", "success"); }); // End Backup Kennel @@ -238,7 +240,7 @@ new Hack(category.pets, "Restore Kennel", "Restores a backup of your kennel from icon: "error" }); } else { - _.player.kennel._petTeam = JSON.parse(backup); + _.player.kennel._petTeam = flatted.toJSON(backup); return Toast.fire("Restored!", "Your kennel backup should be restored", "success"); } }); diff --git a/cheatGUI/src/hacks/utility.ts b/cheatGUI/src/hacks/utility.ts index 858cacb..eb763a1 100644 --- a/cheatGUI/src/hacks/utility.ts +++ b/cheatGUI/src/hacks/utility.ts @@ -21,6 +21,7 @@ new Hack(category.utility, "Close all popups", "Closes all popups in Prodigy."). // End Close all Popups +// userID grabber new Hack(category.utility, "Grab UserID of all players on screen", "Shows you the UserID and name of every player currently shown on the screen.").setClick(async () => { const users : object = current.playerList; if (Object.keys(users).length === 0) { @@ -39,7 +40,7 @@ new Hack(category.utility, "Grab UserID of all players on screen", "Shows you th return Swal.fire({title: "All players on the screen:", html: contents, icon: "info" }); } }); - +// End userID grabber diff --git a/cheatGUI/src/utils/hackify.ts b/cheatGUI/src/utils/hackify.ts index 346a3a1..b61bc1e 100644 --- a/cheatGUI/src/utils/hackify.ts +++ b/cheatGUI/src/utils/hackify.ts @@ -27,17 +27,18 @@ export const itemify = (item: Item[], amount: number) => // Convert rune to Rune ID map // @ts-expect-error -export const runeify = (item, amount) => +export const runeify = ((item, amount) => { // @ts-expect-error item.map(x => ({ ID: x.ID, quantity: amount // @ts-expect-error - })).filter(v => v !== undefined); + })).filter(v => v !== undefined) +}); // Get member module -export function getMemberModule () { +export function getMemberModule () : string { return _.player.hasMembership.toString().split("\"")[1]; } diff --git a/cheatGUI/src/utils/kennel.ts b/cheatGUI/src/utils/kennel.ts index b13e423..d676bc7 100644 --- a/cheatGUI/src/utils/kennel.ts +++ b/cheatGUI/src/utils/kennel.ts @@ -27,7 +27,7 @@ export async function SelectSlot () : Promise<0 | 1 | 2 | null> { const s = ((num : 0 | 1 | 2) : any => { return (_.player.kennel._petTeam[num]) ? ((_.player.kennel._petTeam[num].source) ? _.player.kennel._petTeam[num].source.name : ((_.player.kennel._petTeam[num]._userDataPlatform) ? "Player" : "null")) : "null"; }); options.set("0", `[0] Center - ${s(0)}`); options.set("1", `[1] Top - ${s(1)}`); - options.set("2", `[2] Bottom - ${s(2)}`); + options.set("2", `[2] Bottom - ${s(2)}`); // This doesn't do null checks, because we might want to ASSIGN to a null slot. const KennelSlot = await Swal.fire({ diff --git a/cheatGUI/tsconfig.json b/cheatGUI/tsconfig.json index 586170b..9243533 100644 --- a/cheatGUI/tsconfig.json +++ b/cheatGUI/tsconfig.json @@ -49,7 +49,7 @@ "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */ /* Module Resolution Options */ - // "moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */ + "moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */ // "baseUrl": "./", /* Base directory to resolve non-absolute module names. */ // "paths": {}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */ // "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */ From 9172b4976a0c886de490a8198314884e23c5ec20 Mon Sep 17 00:00:00 2001 From: gemsvido Date: Thu, 1 Sep 2022 00:08:45 -0700 Subject: [PATCH 10/17] the problem: this --- cheatGUI/dist/bundle.js | 2 +- cheatGUI/package-lock.json | 27 +++++++++++++++++++++++++++ cheatGUI/package.json | 2 ++ cheatGUI/src/hacks/pets.ts | 11 +++++++++-- 4 files changed, 39 insertions(+), 3 deletions(-) diff --git a/cheatGUI/dist/bundle.js b/cheatGUI/dist/bundle.js index b1a786a..33117a8 100644 --- a/cheatGUI/dist/bundle.js +++ b/cheatGUI/dist/bundle.js @@ -1,2 +1,2 @@ /*! For license information please see bundle.js.LICENSE.txt */ -(()=>{var __webpack_modules__={8844:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))}}n=[o,t,o(4759),o(9820),o(2852),o(4719)],void 0===(a=function(e,t,o,n,a,r){"use strict";new n.Toggler(n.category.battle,"Disable math [PvP, PvE]","Disable math in PvP, PvE, anywhere! This doesn't work in the Floatling town.").setEnabled(s((function*(){return a._.constants.constants["GameConstants.Debug.EDUCATION_ENABLED"]=!1,o.Toast.fire("Enabled!","You will no longer do Math!","success")}))).setDisabled(s((function*(){return a._.constants.constants["GameConstants.Debug.EDUCATION_ENABLED"]=!0,o.Toast.fire("Disabled!","You will now do Math!","success")}))),new n.Toggler(n.category.battle,"Instant Kill [PvE]","Makes your spells do insane damage in PvE!").setEnabled(s((function*(){return a.player.modifiers.damage=a.VERY_LARGE_NUMBER,o.Toast.fire("Enabled!","You will now do insane damage in PvE!","success")}))).setDisabled((()=>(a.player.modifiers.damage=1,o.Toast.fire("Disabled!","You will no longer do insane damage in PvE!","success")))),new n.Hack(n.category.battle,"PvP Health [PvP]","Increases your HP in PvP by a hell ton.").setClick(s((function*(){return a.player.pvpHP=a.VERY_LARGE_NUMBER,a.player.getMaxHearts=()=>a.VERY_LARGE_NUMBER,o.Toast.fire("Success!","You now have lots of health!","success")}))),new n.Hack(n.category.battle,"Escape Battle [PvP, PvE]","Escape any battle, PvP or PvE!").setClick(s((function*(){var e=a.game.state.current;return"PVP"===e?(Object.fromEntries(a._.instance.game.state.states).PVP.endPVP(),o.Toast.fire("Escaped!","You have successfully escaped from the PvP battle.","success")):"CoOp"===e?(a.prodigy.world.$(a.player.data.zone),o.Toast.fire("Escaped!","You have successfully escaped from the battle.","success")):["Battle","SecureBattle"].includes(e)?(Object.fromEntries(a._.instance.game.state.states)[e].runAwayCallback(),o.Toast.fire("Escaped!","You have successfully escaped from the PvE battle.","success")):o.Toast.fire("Invalid State.","You are currently not in a battle.","error")}))),new n.Hack(n.category.battle,"Win Battle [PvE]","Instantly win a battle in PvE.").setClick(s((function*(){var e=a.game.state.current;switch((0,r.BattleInfo)("Current State: "+e),e){case"PVP":case"CoOp":return o.Toast.fire("Invalid State.","PvP is not supported for this hack.","error");case"Battle":return Object.fromEntries(a._.instance.game.state.states).Battle.startVictory(),o.Toast.fire("Victory!","You have successfully won the battle.","success");case"SecureBattle":return Object.fromEntries(a._.instance.game.state.states).SecureBattle.battleVictory(),o.Toast.fire("Victory!","You have successfully won the battle.","success");default:return o.Toast.fire("Invalid State.","You are currently not in a battle.","error")}}))),new n.Hack(n.category.battle,"Set Battle Hearts [PvP, PvE]","Sets your hearts in battle, automatically raise your max hearts in PvP or PvE.").setClick(s((function*(){var e=yield o.NumberInput.fire("Health Amount","How much HP do you want?","question");if(void 0!==e.value)return a.player.getMaxHearts=()=>+e.value,a.player.pvpHP=+e.value,a.player.data.hp=+e.value,o.Toast.fire("Success!","Your hearts have been set.","success")}))),new n.Hack(n.category.battle,"Fill Battle Energy [PvP, PvE]","Fills up your battle energy, if you are in PvP or PvE.").setClick(s((function*(){var e=a.game.state.getCurrentState();return"teams"in e?(e.teams[0].setEnergy(99),o.Toast.fire("Success!","Your battle energy has been filled.","success")):o.Toast.fire("Error","You are currently not in a battle.","error")}))),new n.Hack(n.category.battle,"Heal Team [PvE]","Instantly heals you and your pets, if you are in PvE.").setClick(s((function*(){var e=a.game.state.current;return"PVP"===e||"CoOp"===e?o.Toast.fire("Invalid State.","PvP is not supported for this hack.","error"):["Battle","SecureBattle"].includes(e)?(a.player.heal(),o.Toast.fire("Success!","Your team has been healed successfully!","success")):o.Toast.fire("Invalid State.","Your are currently not in a battle.","error")})))}.apply(t,n))||(e.exports=a)},9155:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))}}n=[o,t,o(4759),o(9820),o(2852),o(112),o(3131)],void 0===(a=function(e,t,o,n,a,r,i){"use strict";new n.Hack(n.category.beta,"Get all Runes [BETA]").setClick(s((function*(){if((yield o.Confirm.fire({title:"Hang on!",html:"This hack may damage your account with various bugs, for example you may be unable to do Rune Run.

                    Proceed?",icon:"warning"})).value){var e,t=parseInt((yield o.NumberInput.fire({title:"Amount",text:"How many of each would you like?",icon:"question",inputValidator:e=>e?"":"Please select which you'd like to get."})).value);if(!isNaN(t))return Array.from(a._.instance.prodigy.gameContainer._inversifyContainer._bindingDictionary._map).forEach((t=>{try{a._.instance.prodigy.gameContainer.get(t[0]).battleData&&(e=t[0])}catch(e){console.log("Error for ".concat(t[0]))}})),a._.instance.prodigy.gameContainer.get(e).battleData._secureCharacterState._data.inventory.orb=(0,r.runeify)(a._.gameData.orb,t),o.Toast.fire("Runes Added!","Your runes have been added!","success")}}))),new n.Hack(n.category.beta,"Edit Pet [BETA]","Edit a pet.").setClick(s((function*(){if(!(yield o.Confirm.fire({title:"Hang on!",html:"This hack may damage your account with various bugs, for example you may be unable to do Rune Run.

                    Proceed?",icon:"warning"})).value)return console.log("Cancelled.");var e=yield(0,r.getPet)("Choose the pet to edit.");if(void 0!==e){var t=a.player.kennel.data[e],n=yield o.Swal.fire({input:"select",inputOptions:{level:"Level",attacks:"Attacks",name:"Name"},title:"Edit Property",text:"What do you want to edit?"});if(void 0!==n.value){if("level"===n.value){var s=yield o.NumberInput.fire("Level Number","What level do you want to set your pet to?","question");if(void 0===s.value)return;return t.level=+s.value,o.Toast.fire("Success!","The pet's level has been set.","success")}if("attacks"===n.value){var i=a._.gameData.spell,c=document.createElement("div"),l=document.createElement("select");for(var u of(l.classList.add("selectSpell"),i)){var d=document.createElement("option");d.value=u.ID.toString(),d.innerText="".concat(u.ID,": ").concat(u.name," (").concat(u.data.element,") - Damage: ").concat(u.data.damage),l.options.add(d)}c.append(l),c.append(l.cloneNode(!0));var p=yield o.Swal.fire({title:"Attack List",focusConfirm:!1,showCancelButton:!0,html:c,preConfirm:()=>Array.prototype.slice.call(document.querySelectorAll(".selectSpell")).map((e=>e.options[e.selectedIndex].value))});if(void 0===p.value)return;return t.foreignSpells.splice(0,2,...p.value.map((e=>+e))),o.Toast.fire("Attacks updated!","The attack list of the pet you selected has been edited.","success")}if("name"===n.value){var h=yield o.Input.fire("Input Name","What do you want to name the pet?","question");if(void 0===h.value)return;return t.nickname=h.value,o.Toast.fire("Successfully renamed!","The name of the pet has been changed.","success")}}}}))),new n.Hack(n.category.beta,"Morph Player [BETA]","Morph into a pet, furnishing, or follow.").setClick(s((function*(){if(!(yield o.Confirm.fire("This hack is in BETA","Expect bugs, and it might not work properly.")).value)return console.log("Cancelled");var e=yield o.Swal.fire({title:"Which morph type?",input:"select",inputOptions:{pet:"Pet",dorm:"Furniture",follow:"Follow"},inputPlaceholder:"Morph Type",inputValidator:e=>e?"":"Please select a morph type.",showCancelButton:!0});if(null!=e&&e.value){var t={};a._.gameData[e.value].forEach((e=>t[e.ID]="".concat(e.name," (").concat(e.ID,")")));var n=yield o.Swal.fire({title:"Which morph?",input:"select",inputOptions:t,inputPlaceholder:"Morph ID",inputValidator:e=>e?"":"Please select a morph ID.",showCancelButton:!0});if(n.value)return a.player.getPlayerData().playerTransformation={transformType:e.value,transformID:n.value,maxTime:36e5,timeRemaining:36e5},a.player.appearanceChanged=!0,o.Toast.fire("Morphed!","You've been morphed.","success")}}))),new n.Toggler(n.category.beta,"Toggle Close Popups [BETA]","Automatically closes popups in Prodigy.").setEnabled(s((function*(){return(0,i.PopupInterval)(!0),o.Toast.fire("Enabled","Toggle Close Popups is now enabled.","success")}))).setDisabled(s((function*(){return(0,i.PopupInterval)(!1),o.Toast.fire("Enabled","Toggle Close Popups is now disabled.","success")}))),new n.Hack(n.category.beta,"Hypermax Account [BETA]").setClick(s((function*(){if((yield o.Confirm.fire({title:"Hang on!",html:"This hack will damage your account with various bugs, for example you may be unable to do Rune Run/Arena, amd you will recieve 418s and inavtivity kicks.

                    Proceed?",icon:"warning"})).value){a.player.data.gold=99e5,console.log("Set player gold to 9900000.");var e=100..value-2;a.player.data.stars=Math.round((1-Math.pow(1.042,e))/(1-1.042)*20+10),a.player.data.level=100,a.player.getLevel=()=>a.player.data.level,console.log("Set player level to 100"),a.player.data.bountyScore=100,console.log("Set player's bounty points to 100.");for(var t=0;ta.VERY_LARGE_NUMBER,console.log("PvP health obtained.");for(var n=0;n<100;n++)a.player.achievements.data.progress[n]=10;console.log("Obtained all achievements."),a.player.data.tower=100,console.log("Set tower floor to 100."),a.player.getMaxHearts=()=>a.VERY_LARGE_NUMBER,a.player.pvpHP=a.VERY_LARGE_NUMBER,a.player.data.hp=a.VERY_LARGE_NUMBER,console.log("Maxed out PvE health.");var s,i=99e4;r.ids.forEach((e=>{a.player.backpack.data[e]=(0,r.itemify)(a._.gameData[e].filter((t=>"follow"===e?![125,126,127,128,129,134,135,136,137].includes(t.ID):t)),i.value)})),a._.gameData.dorm.forEach((e=>a.player.house.data.items[e.ID]={A:[],N:i.value}));for(var c=()=>a.player.backpack.data.item.findIndex((e=>84===e.ID||85===e.ID||86===e.ID));c()>-1;)a.player.backpack.data.item.splice(c(),1);return o.Toast.fire("Success!","All items added!","success"),console.log("All items added!"),a.player.backpack.data.mount=(0,r.itemify)(a._.gameData.mount,1),console.log("Added all mounts."),a._.gameData.dorm.forEach((e=>a.player.house.data.items[e.ID]={A:[],N:99e4.value})),console.log("Added 990000 of all furniture."),a._.gameData.pet.forEach((e=>{a.player.kennel.addPet(e.ID.toString(),a.VERY_LARGE_NUMBER,26376,100)})),a.player.kennel._encounterInfo._data.pets=[],a._.gameData.pet.map((e=>{a.player.kennel._encounterInfo._data.pets.push({firstSeenDate:Date.now(),ID:e.ID,timesBattled:1,timesRescued:1})})),a.player.kennel.petTeam.forEach((e=>{e&&e.assignRandomSpells&&e.assignRandomSpells()})),console.log("Added all pets."),a._.gameData.pet.filter((e=>[158,166,168].includes(e.ID))).forEach((e=>{a.player.kennel.addPet(e.ID.toString(),a.VERY_LARGE_NUMBER,26376,100)})),a.player.kennel.petTeam.forEach((e=>{e&&e.assignRandomSpells&&e.assignRandomSpells()})),console.log("Added Mythical Epics."),a._.gameData.pet.filter((e=>[125,126,127,128,129,130,131,132,133].includes(e.ID))).forEach((e=>{a.player.kennel.addPet(e.ID.toString(),a.VERY_LARGE_NUMBER,26376,100)})),a.player.kennel.petTeam.forEach((e=>{e&&e.assignRandomSpells&&e.assignRandomSpells()})),console.log("Added Legacy Epics."),a._.constants.constants["GameConstants.Inactivity.LOG_OUT_TIMER_SECONDS"]=0,console.log("Inactivity Kick Disabled."),a.player._playerContainer.walkSpeed=20,console.log("Player walkspeed set to 20."),Array.from(a._.instance.prodigy.gameContainer._inversifyContainer._bindingDictionary._map).forEach((e=>{try{a._.instance.prodigy.gameContainer.get(e[0]).battleData&&(s=e[0])}catch(t){console.log("Error for ".concat(e[0]))}})),a._.instance.prodigy.gameContainer.get(s).battleData._secureCharacterState._data.inventory.orb=(0,r.runeify)(a._.gameData.orb,100),a.player.equipment.setHat(200),a.player.equipment.setBoots(93),a.player.equipment.setOutfit(161),a.player.equipment.setWeapon(196),(0,a.saveCharacter)(),console.log("Character Saved."),a.player.appearanceChanged=!0,console.log("Appearance Refreshed."),a._.instance.prodigy.open.menuCloseAll(),console.log("Popups closed."),(0,a.saveCharacter)(),console.log("Character Saved."),console.log("Max Account Successful."),o.Toast.fire("Maxed!","Check your backpack!","success")}})))}.apply(t,n))||(e.exports=a)},8130:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))}}n=[o,t,o(9820),o(4759),o(2852),o(112)],void 0===(a=function(e,t,o,n,a,r){"use strict";new o.Hack(o.category.inventory,"Item stacker").setClick(s((function*(){var e=yield n.NumberInput.fire("Amount","How many of every item would you like?","question");if(e.value&&(yield n.Confirm.fire("Are you sure you want to get all items in the game?")).value){r.ids.forEach((t=>{a.player.backpack.data[t]=(0,r.itemify)(a._.gameData[t].filter((e=>"follow"===t?![125,126,127,128,129,134,135,136,137].includes(e.ID):e)),e.value)})),a._.gameData.dorm.forEach((t=>a.player.house.data.items[t.ID]={A:[],N:e.value}));for(var t=()=>a.player.backpack.data.item.findIndex((e=>84===e.ID||85===e.ID||86===e.ID));t()>-1;)a.player.backpack.data.item.splice(t(),1);return n.Toast.fire("Success!","All items added!","success")}}))),new o.Hack(o.category.inventory,"Clear inventory").setClick(s((function*(){(yield n.Confirm.fire("Are you sure you want to clear your inventory?")).value&&(Object.keys(a.player.backpack.data).forEach((e=>a.player.backpack.data[e]=[])),n.Toast.fire("Success!","Inventory cleared.","success"))}))),new o.Hack(o.category.inventory,"Selector (Basic)").setClick(s((function*(){yield n.Swal.fire({title:"What would you like to obtain?",input:"select",inputOptions:r.names,inputPlaceholder:"Select...",inputValidator:e=>e?"":"Please select which you'd like to obtain.",showCancelButton:!0}).then(function(){var e=s((function*(e){var t=parseInt(e.value),o=r.names[t],s=r.ids[t];if(o){var i=yield n.NumberInput.fire("Amount","How many each object would you like?","question");i.value&&(yield n.Confirm.fire("Are you sure you want to get all ".concat(o.toLowerCase(),"?"))).value&&(a.player.backpack.data[s]=(0,r.itemify)(a._.gameData[s].filter((e=>"follow"===s?![125,126,127,128,129,134,135,136,137].includes(e.ID):e)),i.value),n.Toast.fire("".concat(o," Added!"),"All ".concat(o.toLowerCase()," have been added to your inventory!"),"success"),(0,a.saveCharacter)())}}));return function(t){return e.apply(this,arguments)}}())}))),new o.Hack(o.category.inventory,"Selector (Advanced)","Choose a specific object and quantity to obtain.").setClick(s((function*(){yield n.Swal.fire({title:"What would you like to obtain?",input:"select",inputOptions:r.names,inputPlaceholder:"Select...",inputValidator:e=>e?"":"Please select which you'd like to obtain.",showCancelButton:!0}).then(function(){var e=s((function*(e){if(a._.gameData[r.ids[e.value]]){var t=[];a._.gameData[r.ids[e.value]].forEach((e=>{t.push(e.data.name)})),yield n.Swal.fire({title:"What specific object categorized as ".concat(r.names[e.value].toLowerCase()," would you like to get?"),input:"select",inputOptions:t,inputPlaceholder:"Select...",inputValidator:e=>e?"":"Please select which you'd like to get.",showCancelButton:!0}).then(function(){var t=s((function*(t){var o=parseInt(t.value);if(a._.gameData[r.ids[e.value]][o]){var s=yield n.NumberInput.fire("Amount","How many of the object would you like?","question");if(s.value)return-1===a.player.backpack.data[r.ids[e.value]].findIndex((t=>t.ID===a._.gameData[r.ids[e.value]][o].ID))?a.player.backpack.data[r.ids[e.value]].push({ID:a._.gameData[r.ids[e.value]][o].ID,N:s.value}):a.player.backpack.data[r.ids[e.value]].findIndex((t=>t.ID===a._.gameData[r.ids[e.value]][o].ID)),console.log(a._.gameData[r.ids[e.value]][o].ID),(0,a.saveCharacter)(),n.Toast.fire("".concat(r.names[e.value]," Added!"),"Your selected ".concat(r.names[e.value].toLowerCase()," have been added."),"success")}}));return function(e){return t.apply(this,arguments)}}())}}));return function(t){return e.apply(this,arguments)}}())}))),new o.Hack(o.category.inventory,"Obtain All Furniture").setClick(s((function*(){var e=yield n.NumberInput.fire("Amount","How many of each piece of furniture would you like?","question");if(e.value&&(yield n.Confirm.fire("Are you sure you want to get all furniture?")).value)return a._.gameData.dorm.forEach((t=>a.player.house.data.items[t.ID]={A:[],N:e.value})),n.Toast.fire("Furniture Added!","All furniture has been added to your inventory!","success")}))),new o.Hack(o.category.inventory,"Obtain All Mounts","This gives you all of the mounts in the game.").setClick(s((function*(){return a.player.backpack.data.mount=(0,r.itemify)(a._.gameData.mount,1),n.Toast.fire("Mounts Added!","All mounts have been added to your inventory!")}))),new o.Hack(o.category.inventory,"Remove item").setClick(s((function*(){var e=yield n.Swal.fire({title:"What category would you like to remove an item from?",input:"select",inputOptions:r.names,inputPlaceholder:"Select...",inputValidator:e=>e?"":"Please select which you'd like to obtain.",showCancelButton:!0});if(a._.gameData[r.ids[e.value]]){var t=a._.gameData[r.ids[e.value]].map((e=>e.data.name)),o=yield n.Swal.fire({title:"What specific object categorized as ".concat(r.names[e.value].toLowerCase()," would you like to remove?"),input:"select",inputOptions:t,inputPlaceholder:"Select...",inputValidator:e=>e?"":"Please select which you'd like to get.",showCancelButton:!0});if(o=parseInt(o.value),a._.gameData[r.ids[e.value]][o]){var s=yield n.NumberInput.fire("Amount","How many of the object would you like to remove?","question");if(s.value){if(-1!==a.player.backpack.data[r.ids[e.value]].findIndex((t=>t.ID===a._.gameData[r.ids[e.value]][o].ID))){var i=a.player.backpack.data[r.ids[e.value]].findIndex((t=>t.ID===a._.gameData[r.ids[e.value]][o].ID));return a.player.backpack.data[r.ids[e.value]][i].N-=parseInt(s.value),a.player.backpack.data[r.ids[e.value]][i].N<=0&&a.player.backpack.data[r.ids[e.value]].splice(i,1),(0,a.saveCharacter)(),n.Toast.fire("Removed!","Successfully removed ".concat(s.value," ").concat(a._.gameData[r.ids[e.value]][o].name,"!"),"success")}yield n.Swal.fire("Item Does Not Exist","You do not have any ".concat(a._.gameData[r.ids[e.value]][o].name,"."),"error")}}}}))),new o.Hack(o.category.inventory,"Obtain All Furniture").setClick(s((function*(){return(yield n.Confirm.fire("Are you sure you want to get all furniture?")).value?(a._.gameData.dorm.forEach((e=>a.player.house.data.items[e.ID]={A:[],N:a.VERY_LARGE_NUMBER})),n.Toast.fire("Furniture Added!","All furniture have been added to your inventory!","success")):console.log("Cancelled.")})))}.apply(t,n))||(e.exports=a)},8346:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))}}n=[o,t,o(9820),o(4759),o(2852),o(112)],void 0===(a=function(e,t,o,n,a,r){"use strict";new o.Hack(o.category.location,"Teleport To Map (interactive)").setClick(s((function*(){var e=n.Swal.mixin({focusConfirm:!1,showCancelButton:!0,preConfirm:()=>{var e;return null===(e=document.querySelector(".radioDiv[checked]"))||void 0===e?void 0:e.getAttribute("zone")}}),t=document.createElement("div");t.classList.add("radioContainer");var o=function(e){var o=document.createElement("DIV");o.classList.add("radioDiv"),o.setAttribute("zone",e);var n=a.locations[e];n?o.style.backgroundImage="url(".concat(n,")"):o.innerText=e,o.onclick=()=>{document.querySelectorAll(".radioDiv[checked]").forEach((e=>e.removeAttribute("checked"))),o.setAttribute("checked","")},t.append(o)};for(var r of Object.keys(a.prodigy.world.zones))o(r);var s=yield e.fire({title:"Teleport Zone",html:t,customClass:{popup:"radioSwal"}});if(s.value){var i=Object.keys(a.prodigy.world.zones[s.value].maps),c=yield n.Swal.fire({input:"select",inputOptions:new Map(i.map((e=>[e,e]))),title:"Map",text:"Which map in the zone do you want to teleport to?"});if(c.value){var l=(yield n.NumberInput.fire("Please enter the x to teleport to. (Try 500?)")).value||500,u=(yield n.NumberInput.fire("Please enter the y to teleport to. (Try 500?)")).value||500;return a.prodigy.world.zones[s.value].teleport(c.value,l,u,{},{}),n.Toast.fire("Teleported","You have been teleported!","success")}}}))),new o.Hack(o.category.location,"Teleport to house by userID").setClick(s((function*(){var e=(yield n.NumberInput.fire("Please enter the userID.")).value;if(e)return(0,r.toHouse)(e),n.Toast.fire("Teleported!","You have been teleported!","success")}))),new o.Hack(o.category.location,"Get Map Location").setClick(s((function*(){var e=a.player.data.zone;navigator.clipboard.writeText(e).then(s((function*(){return console.log("Async: Copying to clipboard was successful!"),n.Swal.fire({title:"Map Location",html:"You are at
                    ".concat(e," .
                    You can save this to get to the same zone.

                    Your location is has also been copied to your clipboard."),icon:"info"})})),function(){var t=s((function*(t){return console.error("Async: Could not copy text: ",t),n.Swal.fire({title:"Map Location",html:"You are at
                    ".concat(e," .
                    You can save this to get to the same zone."),icon:"info"})}));return function(e){return t.apply(this,arguments)}}())})))}.apply(t,n))||(e.exports=a)},3344:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))}}n=[o,t,o(9820),o(2852),o(4759)],void 0===(a=function(e,t,o,n,a){"use strict";new o.Toggler(o.category.minigames,"69x Walk Speed [Dyno Dig]","Walk so fast that you're teleporting, in Dyno Dig.").setEnabled(s((function*(){return n._.instance.game.state.states.get("DinoDig").walkSpeed=69,a.Toast.fire("Enabled!","You will now walk so fast that you're teleporting in Dyno Dig.","success")}))).setDisabled(s((function*(){return n._.instance.game.state.states.get("DinoDig").walkSpeed=1.5,a.Toast.fire("Disabled!","You will now walk at normal speed, in Dyno Dig.","success")})))}.apply(t,n))||(e.exports=a)},465:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))}}n=[o,t,o(4759),o(9820),o(2852),o(8238)],void 0===(a=function(e,t,o,n,a,r){"use strict";new n.Hack(n.category.misc,"Skip Tutorial").setClick(s((function*(){var e=(e,t,o,n)=>{a._.instance.prodigy.world.getZone(e).testQuest(t,o,n);try{Object.fromEntries(a._.instance.game.state.states).TileScreen.process()}catch(e){}};e("house",2),e("academy",2),a.player.state.set("tutorial-0",4),a.player.backpack.addKeyItem(13,0),a.player.tutorial.data.menus[14]=[1],a._.instance.prodigy.open.map(!0,[]),a.player.onTutorialComplete(),a.player.data.level=Math.max(a.player.data.level,5)}))),new n.Toggler(n.category.misc,"Disable Monster Encounters").setEnabled(s((function*(){return a._.constants.constants["GameConstants.Debug.SCALE_ENCOUNTER_DISTANCE"]=0,o.Toast.fire("Enabled!","Monsters will no longer battle you.","success")}))).setDisabled((()=>(a._.constants.constants["GameConstants.Debug.SCALE_ENCOUNTER_DISTANCE"]=1,o.Toast.fire("Disabled!","Monsters will now battle you.","success")))),new n.Toggler(n.category.misc,"Skip enemy turn").setEnabled(s((function*(){return a._.constants.constants["GameConstants.Battle.SKIP_ENEMY_TURN"]=!0,o.Toast.fire("Skipping!","Enemy turns will now be skipped.","success")}))).setDisabled((()=>(a._.constants.constants["GameConstants.Battle.SKIP_ENEMY_TURN"]=!1,o.Toast.fire("Disabled","Enemy turns will no longer be skipped.","success")))),new n.Toggler(n.category.beta,"FPS Counter [BETA]","Shows you a framerate counter").setEnabled(s((function*(){(0,r.startFps)()}))).setDisabled(s((function*(){(0,r.stopFps)()})));try{var i=a.current.user.source.canSpin;new n.Toggler(n.category.misc,"Unlimited Spins","Lets you spin the wheel as many times as you want!").setEnabled(s((function*(){return a.player.canSpin=()=>{},o.Toast.fire("Enabled!","You can now spin the wheel as many times as you want!","success")}))).setDisabled(s((function*(){return a.player.canSpin=i,o.Toast.fire("Disabled!","You can now spin the wheel only when allowed.","success")})))}catch(e){console.error("Unlimited Spins ERROR: "+e)}new n.Hack(n.category.misc,"Bobbify","Converts your account into Bobby Fancywoman.").setClick(s((function*(){if((yield o.Confirm.fire("Are you sure you want your account to be turned into Bobby Fancywoman?","This action is not reversable.")).value)return a.player.name.data.nickname=null,a.player.name.data.firstName=44,a.player.name.data.middleName=754,a.player.name.data.lastName=882,a.player.data.stars=-1e22,a.player.data.level=69,a.player.appearance.setGender("male"),a.player.appearance.setEyeColor(1),a.player.appearance.setFace(4),a.player.appearance.setHair(19,1),a.player.appearance.setSkinColor(1),a.player.equipment.setFollow(19),a.player.equipment.setHat(19),a.player.equipment.setBoots(19),a.player.equipment.setOutfit(19),a.player.equipment.setWeapon(19),o.Toast.fire("Bobbified!","You are now Bobby Fancywoman.","success")}))),new n.Hack(n.category.misc,"Reset Account","Completely resets your account.").setClick(s((function*(){if((yield o.Confirm.fire("Are you sure you want to reset your account?","This action is not reversible.")).value)return a.player.resetAccount(),o.Swal.fire("Reset!","Your account has been reset. Reload Prodigy for the full effect.","success")})));var c=null,l=0;new n.Hack(n.category.misc,"Chat Spammer","Cycles through chat messages pretty fast!").setClick(s((function*(){return c?o.Swal.fire("Already Enabled","Chat Spammer is already enabled. To disable chat spammer, reload Prodigy.","error"):(c=setInterval(s((function*(){a.player.chatID=l,++l>1164&&(l=0)})),90),o.Toast.fire("Spamming!","You're now sending a chat message every 90 milliseconds!","success"))})));var u=null,d=0;new n.Hack(n.category.misc,"High Chat Spammer","Cycles through chat messages hella fast!").setClick(s((function*(){return u?o.Swal.fire("Already Enabled","High Chat Spammer is already enabled. To disable chat spammer, reload Prodigy.","error"):(yield o.Confirm.fire("Warning","This hack may cause lag on weak computers (ex. School Chromebooks).")).value?(u=setInterval(s((function*(){a.player.chatID=d,++d>1164&&(d=0)})),30),o.Toast.fire("Spamming!","You're now sending a chat message every 30 milliseconds!","success")):console.log("Cancelled")})));var p=null,h=0;new n.Hack(n.category.misc,"Chat Spammer on Meth","Cycles through chat messages FAST ASF!").setClick(s((function*(){return p?o.Swal.fire("Already Enabled","Chat Spammer on Meth is already enabled. To disable chat spammer, reload Prodigy.","error"):(yield o.Confirm.fire("Warning","This hack may cause lag on weak computers (ex. School Chromebooks).")).value?(p=setInterval(s((function*(){a.player.chatID=h,++h>1164&&(h=0)})),1),o.Toast.fire("Spamming!","You're now sending a chat message every 1 millisecond!","success")):console.log("Cancelled")}))),new n.Hack(n.category.misc,"[Fix] Fix Battle Crash").setClick(s((function*(){return a.player.kennel.petTeam.forEach((e=>{e&&e.assignRandomSpells&&e.assignRandomSpells()})),o.Toast.fire("Success!","Fixed kennel attack bug!","success")}))),new n.Hack(n.category.misc,"[Fix] Stuck in Unfinished Tower Fix","Takes you out of an unfinished tower if you're stuck in one.").setClick(s((function*(){return a._.instance.prodigy.world.zones.house.teleport("exit"),o.Toast.fire("Success!","You've been teleported outside of your house.","success")}))),new n.Hack(n.category.misc,"uwu","OwO").setClick(s((function*(){return(yield o.Confirm.fire("Are you sure that you want to UwU OwO?","Reload Prodigy to revert UwU.")).value?(Object.chance=e=>{var t={},o=0;for(var n of Object.keys(e).sort(((e,o)=>t[e]-t[o])))t[n]=[],t[n][0]=o+1,t[n][1]=e[n]+o,o=e[n]+o;return t},Object.random=e=>{var t=Object.values(e),o=t[t.length-1][1],n=Math.randint(o);return Object.reverse(e)[t.find((e=>n>=e[0]&&n<=e[1]))]},Array.prototype.join=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:",";return"string"==typeof e?this.reduce(((t,o,n,a)=>t+(nt+(n0&&void 0!==arguments[0]?arguments[0]:",";return"string"==typeof e?this.reduce(((t,o,n)=>t+(n?e+o:o)),""):e instanceof Function?this.reduce(((t,o,n,a)=>t+(n?e(a[n],n,a)+o:o)),""):void 0},String.UWUFX=e=>{var t=Object.chance({"owo :3":20,"✧w✧":20,UwU:20,OwO:10,rawr:10,"uwu :3":5,":3 meow":15,":3":15,X3:15,"*purrs*":15,owo:15,uwu:15,"^w^":15,"x3 rawr":15,owowowowo:15});return e.split(" ").leftJoin(((e,t)=>0===Math.floor(6*Math.random())&&/[A-Za-z]/.test(e[0])?" ".concat(e[0],"-"):" ")).split(" ").join(((e,o)=>0===Math.floor(5*Math.random())?" ".concat(Object.random(t)," "):" "))},String.UWUTable={y:"wy",l:"w",r:"w",ss:"zs",n:"nw",ove:"uv",ome:"um",x:"ks",com:"cum",stu:"stew",au:"aw"},Math.randint=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Math.floor(Math.random()*e-t)+t},String.prototype.escapeRegex=function(){return this.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")},String.prototype.replaceAll=function(e,t){return this.replace(new RegExp(e.toString().escapeRegex(),"gi"),(e=>t))},Object.fromArrays=(e,t)=>{var o={};return e.forEach(((e,n)=>{o[e]=t[n]})),o},Object.reverse=e=>Object.fromArrays(Object.values(e),Object.keys(e)),String.prototype.bulkReplace=function(e){var t=this;for(var o in e)t=t.replaceAll(o,e[o]);return t},String.UWU=e=>String(e).bulkReplace(String.UWUTable),Object.keys(a._.localizer.dataSource._languageData).map((e=>a._.localizer.dataSource._languageData[e]=String.UWUFX(String.UWU(a._.localizer.dataSource._languageData[e])))),Object.values(a._.gameData).map((e=>e.map((e=>[e.data.name&&(e.data.name=String.UWUFX(String.UWU(e.data.name))),e.name&&(e.name=String.UWUFX(String.UWU(e.name))),e.data.flavorText&&(e.data.flavorText=String.UWUFX(String.UWU(e.data.flavorText)))])))),o.Toast.fire("uwu","Reload Prodigy to fix uwu.","success")):console.log("uwu cancelled")})))}.apply(t,n))||(e.exports=a)},8603:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))}}n=[o,t,o(4759),o(9820),o(2852)],void 0===(a=function(e,t,o,n,a){"use strict";var r=null;new n.Hack(n.category.patched,"Arena Point Increaser [Patched]").setClick(s((function*(){return r?o.Swal.fire("Already Enabled","Arena Point Increaser is already enabled.","error"):(yield o.Confirm.fire("This hack is patched.","Running it will probably do nothing.")).value?(r=setInterval(s((function*(){var e=yield(yield fetch("https://api.prodigygame.com/leaderboard-api/season/".concat(a.prodigy.pvpNetworkHandler.seasonID,"/user/").concat(a.player.userID,"/pvp?userID=").concat(a.player.userID),{headers:{authorization:"Bearer ".concat(a.prodigy.network.jwtAuthProvider.getToken()),"content-type":"application/x-www-form-urlencoded; charset=UTF-8"},body:"seasonID=".concat(a.prodigy.pvpNetworkHandler.seasonID,"&action=win"),method:"POST",mode:"cors"})).text();if(""!==e){var t=JSON.parse(e);console.log("[API] ".concat(t.points," Points (+100)"))}else console.log("[API] Failed to add points.")})),60500),o.Swal.fire("Enabled","Arena Point Increaser has been enabled.","success")):console.log("Cancelled")}))),new n.Hack(n.category.patched,"Disable Timeout Dialog [Patched]").setClick(s((function*(){return(yield o.Confirm.fire("This hack is patched.","Running it will probably do nothing.")).value?(a.prodigy.debugMisc.disableTimeoutDialogue(),o.Toast.fire("Enabled","Timeout Dialog has been disabled.","success")):console.log("Cancelled")})))}.apply(t,n))||(e.exports=a)},7736:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;function asyncGeneratorStep(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function _asyncToGenerator(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var r=e.apply(t,o);function s(e){asyncGeneratorStep(r,n,a,s,i,"next",e)}function i(e){asyncGeneratorStep(r,n,a,s,i,"throw",e)}s(void 0)}))}}var __importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};__WEBPACK_AMD_DEFINE_ARRAY__=[__webpack_require__,exports,__webpack_require__(4759),__webpack_require__(9820),__webpack_require__(2852),__webpack_require__(112),__webpack_require__(3336),__webpack_require__(939)],__WEBPACK_AMD_DEFINE_RESULT__=function(require,exports,swal_1,index_1,util_1,hackify_1,kennel_1,flatted_1){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),flatted_1=__importDefault(flatted_1),new index_1.Hack(index_1.category.pets,"Get All Pets").setClick(_asyncToGenerator((function*(){return(yield swal_1.Confirm.fire("Would you like to add all pets to your pets?")).value?(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()})),swal_1.Toast.fire("Success!","All pets have been added!","success")):console.log("Cancelled")}))),new index_1.Hack(index_1.category.pets,"Get All Legacy Epics").setClick(_asyncToGenerator((function*(){return(yield swal_1.Confirm.fire("This may damage your account.","Attempting to add legacy epics may damage your account. Would you still like to add all legacy epics to your team?","warning")).value?(util_1._.gameData.pet.filter((e=>[125,126,127,128,129,130,131,132,133].includes(e.ID))).forEach((e=>{util_1.player.kennel.addPet(e.ID.toString(),util_1.VERY_LARGE_NUMBER,26376,100)})),util_1.player.kennel.petTeam.forEach((e=>{e&&e.assignRandomSpells&&e.assignRandomSpells()})),swal_1.Toast.fire("Success!","All legacy epics have been added!","success")):console.log("Cancelled")}))),new index_1.Hack(index_1.category.pets,"Get All Mythical Epics").setClick(_asyncToGenerator((function*(){return(yield swal_1.Confirm.fire("Would you like to add all mythical epics to your pets?")).value?(util_1._.gameData.pet.filter((e=>[158,164,165,166,167,168,169,170,171,189].includes(e.ID))).forEach((e=>{util_1.player.kennel.addPet(e.ID.toString(),util_1.VERY_LARGE_NUMBER,26376,100)})),util_1.player.kennel.petTeam.forEach((e=>{e&&e.assignRandomSpells&&e.assignRandomSpells()})),swal_1.Toast.fire("Success!","All mythical epics have been added!","success")):console.log("Cancelled")}))),new index_1.Hack(index_1.category.pets,"Clear Pets").setClick(_asyncToGenerator((function*(){return(yield swal_1.Confirm.fire("Would you like to delete all of your pets?")).value?(util_1.player.kennel.data.length=0,swal_1.Toast.fire("Success!","Your pets have been cleared!","success")):console.log("Cancelled")}))),new index_1.Hack(index_1.category.pets,"Add Pet","Adds a pet from a list.").setClick(_asyncToGenerator((function*(){var e=yield swal_1.Swal.fire({input:"select",inputOptions:new Map(util_1._.gameData.pet.map((e=>[e.ID.toString(),"".concat(e.ID,": ").concat(e.data.name)]))),title:"Choose Pet",text:"Which pet do you want to obtain?"});if(void 0!==e.value)return util_1.player.kennel.addPet(e.value),util_1.player.kennel._encounterInfo._data.pets.push({firstSeenDate:Date.now(),ID:e.value,timesBattled:1,timesRescued:1}),swal_1.Toast.fire("Success!","Your chosen pet has been added to your pets!","success")}))),new index_1.Hack(index_1.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(_asyncToGenerator((function*(){var petTeam=util_1.player.kennel.petTeam.slice(0);petTeam.shift();var names=petTeam.map((e=>e.getName())),pet=yield swal_1.Swal.fire({title:"Which pet would you like to edit?",input:"select",inputOptions:names,inputPlaceholder:"Select...",inputValidator:e=>e?"":"Please select which you'd like to obtain.",showCancelButton:!0}),amt=yield swal_1.NumberInput.fire("Level","What would you like to set your pet's level to? (Can be set over 100)","question");if(amt.value){var num=amt.value;return eval("player.kennel.petTeam[parseInt(".concat(pet.value,")+1].getLevel = () => {return ").concat(num,"}")),swal_1.Toast.fire("Updated!","The level of your pet was successfully updated. Note: this hack is client-side.","success")}}))),new index_1.Hack(index_1.category.pets,"Delete Pet","Delete a pet.").setClick(_asyncToGenerator((function*(){var e=yield(0,hackify_1.getPet)("Which pet do you wish to delete?");if(void 0!==e)return util_1.player.kennel.data.splice(e,1),swal_1.Toast.fire("Successfully deleted!","The selected pet was deleted successfully.","success")}))),new index_1.Hack(index_1.category.pets,"Edit Kennel","Allows you to directly edit your pets.").setClick(_asyncToGenerator((function*(){null!==(yield(0,kennel_1.GetAction)())&&null!==(yield(0,kennel_1.SelectSlot)())&&console.log(s(parseInt(KennelSlot.value)))}))),new index_1.Hack(index_1.category.pets,"Backup Kennel","Makes a backup of your kennel to your chrome local storage.").setClick(_asyncToGenerator((function*(){var e=flatted_1.default.fromJSON(util_1._.player.kennel._petTeam[0]);return console.log(e),localStorage.setItem("prodigy-kennel-backup",e),swal_1.Toast.fire("Backed up!","Your kennel is now backed up to the local storage.","success")}))),new index_1.Hack(index_1.category.pets,"Restore Kennel","Restores a backup of your kennel from the local storage... if you have one.").setClick(_asyncToGenerator((function*(){var e=localStorage.getItem("prodigy-kennel-backup");return null===e?swal_1.Swal.fire({title:"No backup found",html:"There is no backup of your kennel in the local storage. Make sure to back up your kennel before trying to load it.",icon:"error"}):(util_1._.player.kennel._petTeam=flatted_1.default.toJSON(e),swal_1.Toast.fire("Restored!","Your kennel backup should be restored","success"))})))}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),void 0===__WEBPACK_AMD_DEFINE_RESULT__||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)},7939:(module,exports,__webpack_require__)=>{var __webpack_unused_export__,__WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;function asyncGeneratorStep(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function _asyncToGenerator(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var r=e.apply(t,o);function s(e){asyncGeneratorStep(r,n,a,s,i,"next",e)}function i(e){asyncGeneratorStep(r,n,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_require__(112)],__WEBPACK_AMD_DEFINE_RESULT__=function(require,exports,swal_1,index_1,util_1,hackify_1){"use strict";__webpack_unused_export__={value:!0},new index_1.Hack(index_1.category.player,"Max Account").setClick(_asyncToGenerator((function*(){if(!(yield swal_1.Confirm.fire("Are you sure that you want to max your account?","We recommend doing this on an alt.")).value)return console.log("Cancelled");util_1.player.data.gold=99e5,console.log("Set player gold to 9900000.");var e=100..value-2;util_1.player.data.stars=Math.round((1-Math.pow(1.042,e))/(1-1.042)*20+10),util_1.player.data.level=100,util_1.player.getLevel=()=>util_1.player.data.level,console.log("Set player level to 100"),util_1.player.data.bountyScore=100,console.log("Set player's bounty points to 100.");for(var t=0;t{util_1.player.backpack.data[e]=(0,hackify_1.itemify)(util_1._.gameData[e].filter((t=>"follow"===e?![125,126,127,128,129,134,135,136,137].includes(t.ID):t)),1..value)})),util_1._.gameData.dorm.forEach((e=>util_1.player.house.data.items[e.ID]={A:[],N:1..value}));for(var n=()=>util_1.player.backpack.data.item.findIndex((e=>84===e.ID||85===e.ID||86===e.ID));n()>-1;)util_1.player.backpack.data.item.splice(n(),1);swal_1.Toast.fire("Success!","All items added!","success"),console.log("All items added!"),util_1.player.backpack.data.mount=(0,hackify_1.itemify)(util_1._.gameData.mount,1),console.log("Added all mounts.");var a="currency";return util_1.player.backpack.data[a]=(0,hackify_1.itemify)(util_1._.gameData[a].filter((e=>e)),6969420),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.equipment.setHat(200),util_1.player.equipment.setBoots(93),util_1.player.equipment.setOutfit(161),util_1.player.equipment.setWeapon(196),util_1.player.appearanceChanged=!0,console.log("Appearance Refreshed."),(0,util_1.saveCharacter)(),console.log("Character Saved."),console.log("Max Account Successful."),swal_1.Toast.fire("Maxed!","Check your backpack!","success")}))),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)return e.value>1e7?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;return 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");if(void 0!==e.value)return 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");if(void 0!==e.value)return 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;t(util_1._.instance.prodigy.gameContainer.get((0,hackify_1.getMemberModule)()).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"),o=(e,t)=>{var o=document.createElement("select");for(var n of(o.classList.add("selectName"),e.entries())){var a=document.createElement("option");[a.value,a.innerText]=n,t(a.value)&&(a.selected=!0),o.options.add(a)}return o},n=(t,n)=>o(new Map(e.filter((e=>e.data.type===t)).map((e=>[e.ID.toString(),e.name]))),(e=>n(+e)));t.append(n(0,(e=>e===util_1.player.name.data.firstName))),t.append(n(1,(e=>e===util_1.player.name.data.middleName))),t.append(n(2,(e=>e===util_1.player.name.data.lastName))),t.append(o(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");if(level.value)return 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*(){return 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*(){return 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")):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 o=util_1._.instance.prodigy.world.zones[t].getCurrentQuestID();return util_1._.instance.prodigy.world.zones[t].completeQuest(o)?(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)});if(e.value)return 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.toString()).then((function(){return 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){return 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();return 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?");if(e.value)return util_1.player.grade=parseInt(e.value),swal_1.Toast.fire("Success","Successfully changed grade to ".concat(e,"!"),"success")})))}.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,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function _asyncToGenerator(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var r=e.apply(t,o);function s(e){asyncGeneratorStep(r,n,a,s,i,"next",e)}function i(e){asyncGeneratorStep(r,n,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*(){return 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,"Grab UserID of all players on screen","Shows you the UserID and name of every player currently shown on the screen.").setClick(_asyncToGenerator((function*(){var e=util_1.current.playerList;if(0===Object.keys(e).length)return swal_1.Toast.fire("No players found.","There are no other players on the screen.","error");var t="",o=0;return yield Object.keys(e).map((n=>{var a=Object.entries(e)[o][1].nameText.textSource.source;t+="
                  • uID: ".concat(n," - ").concat(a,"
                  • "),o++})),swal_1.Swal.fire({title:"All players on the screen:",html:t,icon:"info"})}))),new index_1.Hack(index_1.category.utility,"Save Character Locally [Local]","Saves your character locally.").setClick(_asyncToGenerator((function*(){return 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"});return t.ok?swal_1.Toast.fire("Success!","Character has been successfully loaded. Reload for the changes to take effect.","success"):swal_1.Toast.fire("Request failed.","An error occurred while loading the character. Error code: ".concat(t.status),"error")}return 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*(){return(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;return 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*(){return 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);return 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*(){return teleportingInterval=setInterval((()=>{try{util_1.player._playerContainer.walkSpeed=500}catch(e){}})),swal_1.Toast.fire("Success!","Successfully enabled teleport click.","success")}))).setDisabled(_asyncToGenerator((function*(){return 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*(){return util_1._.network.game._paused=!0,swal_1.Toast.fire("Success!","Successfully paused Prodigy.","success")}))).setDisabled(_asyncToGenerator((function*(){return 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)return console.log("Cancelled.");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 swal_1.Swal.fire({title:"Error",html:"Oops! There was an error with the code!
                     ".concat(e," "),icon:"error"})}return 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,o){var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))}}var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};n=[o,t,o(7046),o(2852),o(3526),o(6455),o(4759),o(4719),o(158)],a=function(e,t,o,n,a,r,c,l){"use strict";var u,d,p,h;Object.defineProperty(t,"__esModule",{value:!0}),t.category=t.Toggler=t.Hack=t.toggler=t.wrapper=t.menu=void 0,r=i(r),t.menu=document.createElement("div"),t.wrapper=document.getElementById("game-wrapper"),null===(u=document.getElementById("cheat-menu"))||void 0===u||u.remove(),null===(d=document.getElementById("menu-toggler"))||void 0===d||d.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===(p=t.wrapper)||void 0===p||p.prepend(t.menu),t.toggler=document.createElement("button"),t.toggler.id="menu-toggler";var m=!1;null===(h=t.wrapper)||void 0===h||h.prepend(t.toggler),t.toggler.onclick=()=>{(m=!m)?(t.toggler.innerText="▼",t.menu.style.top="-100vh"):(t.toggler.innerText="▲",t.menu.style.top="10%")},t.toggler.onclick({});var f=document.createElement("DIV");f.classList.add("menu-left"),t.menu.append(f);var g=!0,y=e=>{var t=document.createElement("div");0==g?(t.append(document.createElement("br")),t.append(document.createElement("br"))):g=!1,t.classList.add("menu-area"),t.style.textAlign="center",f.append(t);var o=document.createElement("h1");return o.innerText=e,o.style.textAlign="center",o.style.color="white",t.append(o),t},w=document.createElement("h1");w.classList.add("menu-title"),w.innerText="Prodigy Hacks",w.style.textAlign="center",f.append(w);var b=document.createElement("h2");b.style.fontSize="25px",b.style.color="white",b.innerHTML="
                    Press SHIFT to show/hide the menu. Scroll down in the menu for more hacks.",f.append(b);var v=document.createElement("h3");v.style.fontSize="20px",v.innerHTML="\n

                    Join our Discord https://dsc.gg/ProdigyPNP!

                    \n\n
                    \n",v.style.color="white",f.append(v);class _{constructor(e,t,o){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),o&&this.setDesc(o)}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,n.saveCharacter)(),console.log("Triggered ".concat(t.name,"."))})),this}setDesc(e){return this.element.title=e,this.description=e,this}}t.Hack=_,t.Toggler=class extends _{constructor(e,t,o){var n;super(e,t,o),n=this,this.parent=e,this.element.setAttribute("status","false"),this.setClick(s((function*(){var e,t;n.status=!n.status,n.status?(localStorage.setItem(n.name,"true"),yield null===(e=n.enabled)||void 0===e?void 0:e.call(n)):(localStorage.setItem(n.name,"false"),yield null===(t=n.disabled)||void 0===t?void 0:t.call(n))})))}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:y("Player Hacks"),inventory:y("Inventory Hacks"),location:y("Location Hacks"),pets:y("Pet Hacks"),battle:y("Battle Hacks"),minigames:y("Minigame Hacks"),misc:y("Miscellaneous Hacks"),utility:y("Utility Hacks"),beta:y("Beta Testing | Beta Hacks may damage your account"),patched:y("Patched Hacks")},localStorage.hasTip?(0,l.IndexInfo)("Player already has tip."):(s((function*(){yield r.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,(0,l.IndexInfo)("Player was shown the tip.")),localStorage.getItem("level")&&(n._.player.getLevel=()=>localStorage.getItem("level"),(0,l.IndexInfo)("Loaded menu from localStorage."));var k=!0;document.addEventListener("keydown",(function(e){"Shift"==e.key&&((0,l.IndexInfo)("Shift key was pressed."),1==k?((0,l.IndexInfo)("Hiding cheat menu..."),document.getElementById("cheat-menu").style.display="none",document.getElementById("menu-toggler").style.display="none",k=!1,(0,l.IndexInfo)("Hidden cheat menu.")):((0,l.IndexInfo)("Showing cheat menu..."),document.getElementById("cheat-menu").style.display="block",document.getElementById("menu-toggler").style.display="block",k=!0,(0,l.IndexInfo)("Shown cheat menu.")))})),s((function*(){var e,t;(yield c.License.fire("ProdigyPNP",'\n

                    \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 ')).value?yield(0,a.statusMessage)():(yield c.NoLicense.fire("ProdigyPNP License","\n

                    \n You need to agree to our license to use our hacks. If you changed your mind and now agree to our license, reload Prodigy.\n

                    \n ")).value?document.location="":(null===(e=document.getElementById("cheat-menu"))||void 0===e||e.remove(),null===(t=document.getElementById("menu-toggler"))||void 0===t||t.remove())}))()}.apply(t,n),void 0===a||(e.exports=a)},8238:(e,t,o)=>{var n,a;n=[o,t,o(9820)],a=function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stopFps=t.startFps=void 0;var n=document.createElement("button"),a=!1;t.startFps=function(){var e;a=!0,n.id="fps-counter",null===(e=o.wrapper)||void 0===e||e.prepend(n),setInterval((()=>{var e=_.player.game.fps._framerate;a?n.innerText=e.toFixed(2)+" FPS":n.remove()}),300)},t.stopFps=function(){var e;a=!1,null===(e=document.getElementById("fps-counter"))||void 0===e||e.remove()}}.apply(t,n),void 0===a||(e.exports=a)},112:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}n=[o,t,o(2852),o(4759)],a=function(e,t,o,n){"use strict";function a(e){o._.instance.prodigy.loading(!0);var t=t=>{var a=null!=t?t[e]:null;if(null!==a&&void 0!==a.house&&null!==a.house){o._.instance.prodigy.loading(!1);var r=o._.cloneDeep(o._.player.house);return r.setItems(a.house),void 0!==a.data.allowsHouseVisitors&&null!==a.data.allowsHouseVisitors&&a.data.allowsHouseVisitors?o._.instance.prodigy.world._("house",null,null,{house:r,getAllowsHouseVisitors:()=>void 0!==a.data.allowsHouseVisitors&&null!==a.data.allowsHouseVisitors&&a.data.allowsHouseVisitors,setAllowsHouseVisitors:e=>{a.data.allowsHouseVisitors=e}}):n.Swal.fire("Teleporting to ".concat(e," is not allowed."),"Try another user.","error")}};return o._.network.getCharData(e.toString(),["house","data"],t,t),n.Toast.fire("Teleported to house","You have been teleported to the house!","success")}Object.defineProperty(t,"__esModule",{value:!0}),t.getPet=t.teleportToHouse=t.toHouse=t.getMemberModule=t.runeify=t.itemify=t.ids=t.names=void 0,t.names=["Boots","Buddies","Fossils","Hats","Items","Key Items","Tower Town Frames","Tower Town Interiors","Mounts","Outfits","Relics","Weapons","Currencies"],t.ids=["boots","follow","fossil","hat","item","key","mathTownFrame","mathTownInterior","mount","outfit","spellRelic","weapon","currency"],t.itemify=(e,t)=>e.map((e=>({ID:e.ID,N:t}))).filter((e=>void 0!==e)),t.runeify=(e,t)=>{e.map((e=>({ID:e.ID,quantity:t}))).filter((e=>void 0!==e))},t.getMemberModule=function(){return o._.player.hasMembership.toString().split('"')[1]},t.toHouse=function(e){if(o._.player.userID!==e){var t=o._.instance.prodigy.friendsListNetworkHandler.friendsList.length,r=o._.instance.prodigy.friendsListNetworkHandler.classList.length;o._.instance.prodigy.gameContainer.get("2e1-e659").create("house-visit","click","hub",t,r,null,null,e).broadcast()}var s=o._.instance.prodigy.world.getZone(o._.instance.prodigy.world.getCurrentZone());return s?s.handleLeaving(2,(()=>a(e))):n.Swal.fire({title:"Error",text:"You are not in a zone!",icon:"error"})},t.teleportToHouse=a;var s=function(){var e,t=(e=function*(e){return(yield n.Swal.fire({input:"select",inputOptions:new Map(o._.player.kennel.data.map(((e,t)=>{var n,a,r;return[t.toString(),"Level ".concat(e.level," - ").concat(null!==(n=null!==(a=e.nickname)&&void 0!==a?a:null===(r=o._.gameData.pet.find((t=>+t.ID==+e.ID)))||void 0===r?void 0:r.data.name)&&void 0!==n?n:"Unknown")]}))),title:"Choose Pet",text:e})).value},function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))});return function(e){return t.apply(this,arguments)}}();t.getPet=s}.apply(t,n),void 0===a||(e.exports=a)},3336:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))}}n=[o,t,o(4759)],a=function(e,t,o){"use strict";function n(){return(n=s((function*(){var e=new Map;e.set("Copy","Copy a slot to another slot"),e.set("Remove","Completley empty one slot");var t=yield o.Swal.fire({input:"select",inputOptions:e,title:"Select Action",text:"Select an action to perform on the Kennel"});return t.value?t.value:null}))).apply(this,arguments)}function a(){return(a=s((function*(){var e=new Map,t=e=>_.player.kennel._petTeam[e]?_.player.kennel._petTeam[e].source?_.player.kennel._petTeam[e].source.name:_.player.kennel._petTeam[e]._userDataPlatform?"Player":"null":"null";e.set("0","[0] Center - ".concat(t(0))),e.set("1","[1] Top - ".concat(t(1))),e.set("2","[2] Bottom - ".concat(t(2)));var n=yield o.Swal.fire({input:"select",inputOptions:e,title:"Select Slot",text:"Select a slot to edit"});return n.value?parseInt(n.value):null}))).apply(this,arguments)}Object.defineProperty(t,"__esModule",{value:!0}),t.SelectSlot=t.GetAction=void 0,t.GetAction=function(){return n.apply(this,arguments)},t.SelectSlot=function(){return a.apply(this,arguments)}}.apply(t,n),void 0===a||(e.exports=a)},2868:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}n=[o,t,o(2852),o(4759)],void 0===(a=function(e,t,o,n){"use strict";window.addEventListener("keydown",(e=>{switch(e.which){case 192:o._.instance.prodigy.open.menuCloseAll();break;case 220:var t=function(){var e,t=(e=function*(){if(!(yield n.Confirm.fire("Kit","Would you like to equip Celestial Gear?")).value)return console.log("Cancelled");o._.player.equipment.setHat(200),o._.player.equipment.setBoots(93),o._.player.equipment.setOutfit(161),o._.player.equipment.setWeapon(196),o._.player.appearanceChanged=!0,n.Toast.fire("Success!","You are now wearing Celestial Armor and wielding a Dual Blade.","success")},function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))});return function(){return t.apply(this,arguments)}}();t()}}))}.apply(t,n))||(e.exports=a)},4719:(e,t,o)=>{var n;n=function(e,t){"use strict";function o(e,o){return""==e||null==e?console.log("["+t.LogPrefix+":unknown] "+o):console.log("["+t.LogPrefix+":"+e+"] "+o)}function n(e,t,n){return o(t,"*"+e.toUpperCase()+"* "+n)}Object.defineProperty(t,"__esModule",{value:!0}),t.UtilityError=t.UtilitySuccess=t.UtilityInfo=t.PlayerError=t.PlayerSuccess=t.PlayerInfo=t.PetsError=t.PetsSuccess=t.PetsInfo=t.PatchedError=t.PatchedSuccess=t.PatchedInfo=t.MiscError=t.MiscSuccess=t.MiscInfo=t.MinigameError=t.MinigameSuccess=t.MinigameInfo=t.LocationError=t.LocationSuccess=t.LocationInfo=t.InventoryError=t.InventorySuccess=t.InventoryInfo=t.BetaError=t.BetaSuccess=t.BetaInfo=t.BattleError=t.BattleSuccess=t.BattleInfo=t.IndexError=t.IndexSuccess=t.IndexInfo=t.StatusLog=t.ConsoleLog=t.LogPrefix=void 0,t.LogPrefix="CheatGUI",t.ConsoleLog=o,t.StatusLog=n,t.IndexInfo=function(e){return n("info","index.ts",e)},t.IndexSuccess=function(e){return n("success","index.ts",e)},t.IndexError=function(e){return n("error","index.ts",e)},t.BattleInfo=function(e){return n("info","battle.ts",e)},t.BattleSuccess=function(e){return n("success","battle.ts",e)},t.BattleError=function(e){return n("error","battle.ts",e)},t.BetaInfo=function(e){return n("info","beta.ts",e)},t.BetaSuccess=function(e){return n("success","beta.ts",e)},t.BetaError=function(e){return n("error","beta.ts",e)},t.InventoryInfo=function(e){return n("info","inventory.ts",e)},t.InventorySuccess=function(e){return n("success","inventory.ts",e)},t.InventoryError=function(e){return n("error","inventory.ts",e)},t.LocationInfo=function(e){return n("info","location.ts",e)},t.LocationSuccess=function(e){return n("success","location.ts",e)},t.LocationError=function(e){return n("error","location.ts",e)},t.MinigameInfo=function(e){return n("info","minigame.ts",e)},t.MinigameSuccess=function(e){return n("success","minigame.ts",e)},t.MinigameError=function(e){return n("error","minigame.ts",e)},t.MiscInfo=function(e){return n("info","misc.ts",e)},t.MiscSuccess=function(e){return n("success","misc.ts",e)},t.MiscError=function(e){return n("error","misc.ts",e)},t.PatchedInfo=function(e){return n("info","patched.ts",e)},t.PatchedSuccess=function(e){return n("success","patched.ts",e)},t.PatchedError=function(e){return n("error","patched.ts",e)},t.PetsInfo=function(e){return n("info","pets.ts",e)},t.PetsSuccess=function(e){return n("success","pets.ts",e)},t.PetsError=function(e){return n("error","pets.ts",e)},t.PlayerInfo=function(e){return n("info","player.ts",e)},t.PlayerSuccess=function(e){return n("success","player.ts",e)},t.PlayerError=function(e){return n("error","player.ts",e)},t.UtilityInfo=function(e){return n("info","utility.ts",e)},t.UtilitySuccess=function(e){return n("success","utility.ts",e)},t.UtilityError=function(e){return n("error","utility.ts",e)}}.apply(t,[o,t]),void 0===n||(e.exports=n)},3131:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))}}n=[o,t,o(2852)],a=function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PopupInterval=void 0;var n=!1;t.PopupInterval=function(e){n=e},s((function*(){setInterval(s((function*(){n&&o._.instance.prodigy.open.menuCloseAll()})),200)}))()}.apply(t,n),void 0===a||(e.exports=a)},3526:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}n=[o,t,o(4759)],a=function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.statusMessage=void 0,t.statusMessage=function(){fetch("https://raw.githubusercontent.com/ProdigyPNP/ProdigyMathGameHacking/master/cheatGUI/statusmessage.json?updated=".concat(Date.now())).then((e=>e.json())).then(function(){var e,t=(e=function*(e){if(!1===e.enabled.value)return console.log("Status message is disabled.");yield o.Swal.fire({title:e.get("title"),html:e.get("html"),icon:e.get("icon")})},function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))});return function(e){return t.apply(this,arguments)}}())}}.apply(t,n),void 0===a||(e.exports=a)},4759:function(e,t,o){var n,a,r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};n=[o,t,o(6455)],a=function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NoLicense=t.License=t.Info=t.Confirm=t.Toast=t.NumberInput=t.Input=t.Swal=void 0,o=r(o),t.Swal=o.default,t.Input=t.Swal.mixin({input:"text",showCancelButton:!0,showConfirmButton:!0,toast:!1}),t.NumberInput=t.Input.mixin({toast:!1,input:"number"}),t.Toast=t.Swal.mixin({toast:!0,position:"bottom"}),t.Confirm=t.Swal.mixin({icon:"warning",showCancelButton:!0,toast:!1,confirmButtonText:"Confirm",cancelButtonText:"Cancel"}),t.Info=t.Swal.mixin({icon:"info",showCancelButton:!1,toast:!1}),t.License=t.Swal.mixin({icon:"info",showCancelButton:!0,toast:!1,confirmButtonText:"Agree",cancelButtonText:"Disagree"}),t.NoLicense=t.Swal.mixin({icon:"error",showCancelButton:!0,toast:!1,confirmButtonText:"Reload",cancelButtonText:"Play without hacks"})}.apply(t,n),void 0===a||(e.exports=a)},2852:(e,t,o)=>{var n;n=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.current=t.player=t._=void 0,t._=window._,t.player=t._.player,t.current=window.Boot.prototype.game._state._current;var o=t._.instance;t.game=o.game,t.prodigy=o.prodigy,t.gameData=t._.instance.game.state.states.get("Boot").gameData,t.getItem=(e,o)=>{var n;return null!==(n=t._.gameData[e].find((e=>e.ID===o)))&&void 0!==n?n: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,[o,t]),void 0===n||(e.exports=n)},450:(e,t,o)=>{"use strict";o.d(t,{Z:()=>i});var n=o(8081),a=o.n(n),r=o(3645),s=o.n(r)()(a());s.push([e.id,"@import url(https://fonts.googleapis.com/css?family=Arvo:400,700|Sen:400,700,800&display=swap&subset=latin-ext);"]),s.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;font-size:23px;height:26px;width:50px;border:1px solid rgba(0,0,0,.1)}#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 #fps-counter{z-index:2;position:absolute;border-radius:3px;background-color:rgba(255,255,255,.7333333333);transition:background-color .15s;width:130px;height:26px;font-size:23px;border:1px solid rgba(0,0,0,.1);margin-left:83%}#game-wrapper #fps-counter:hover{background-color:rgba(221,221,221,.7333333333)}#game-wrapper #fps-counter: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:rgba(0,0,0,.55);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;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 i=s},3645:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var o="",n=void 0!==t[5];return t[4]&&(o+="@supports (".concat(t[4],") {")),t[2]&&(o+="@media ".concat(t[2]," {")),n&&(o+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),o+=e(t),n&&(o+="}"),t[2]&&(o+="}"),t[4]&&(o+="}"),o})).join("")},t.i=function(e,o,n,a,r){"string"==typeof e&&(e=[[null,e,void 0]]);var s={};if(n)for(var i=0;i0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=r),o&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=o):u[2]=o),a&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=a):u[4]="".concat(a)),t.push(u))}},t}},8081:e=>{"use strict";e.exports=function(e){return e[1]}},1227:(e,t,o)=>{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 o="color: "+this.color;t.splice(1,0,o,"color: inherit");let n=0,a=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(n++,"%c"===e&&(a=n))})),t.splice(a,0,o)},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=o(2447)(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},2447:(e,t,o)=>{e.exports=function(e){function t(e){let o,a,r,s=null;function i(...e){if(!i.enabled)return;const n=i,a=Number(new Date),r=a-(o||a);n.diff=r,n.prev=o,n.curr=a,o=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,((o,a)=>{if("%%"===o)return"%";s++;const r=t.formatters[a];if("function"==typeof r){const t=e[s];o=r.call(n,t),e.splice(s,1),s--}return o})),t.formatArgs.call(n,e),(n.log||t.log).apply(n,e)}return i.namespace=e,i.useColors=t.useColors(),i.color=t.selectColor(e),i.extend=n,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 n(e,o){const n=t(this.namespace+(void 0===o?":":o)+e);return n.log=this.log,n}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 o;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const n=("string"==typeof e?e:"").split(/[\s,]+/),a=n.length;for(o=0;o{t[o]=e[o]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let o=0;for(let t=0;t{var t=1e3,o=60*t,n=60*o,a=24*n;function r(e,t,o,n){var a=t>=1.5*o;return Math.round(e/o)+" "+n+(a?"s":"")}e.exports=function(e,s){s=s||{};var i,c,l=typeof e;if("string"===l&&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*n;case"minutes":case"minute":case"mins":case"min":case"m":return s*o;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"===l&&isFinite(e))return s.long?(i=e,(c=Math.abs(i))>=a?r(i,c,a,"day"):c>=n?r(i,c,n,"hour"):c>=o?r(i,c,o,"minute"):c>=t?r(i,c,t,"second"):i+" ms"):function(e){var r=Math.abs(e);return r>=a?Math.round(e/a)+"d":r>=n?Math.round(e/n)+"h":r>=o?Math.round(e/o)+"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,o)=>{"use strict";o.r(t),o.d(t,{default:()=>y});var n=o(3379),a=o.n(n),r=o(7795),s=o.n(r),i=o(569),c=o.n(i),l=o(3565),u=o.n(l),d=o(9216),p=o.n(d),h=o(4589),m=o.n(h),f=o(450),g={};g.styleTagTransform=m(),g.setAttributes=u(),g.insert=c().bind(null,"head"),g.domAPI=s(),g.insertStyleElement=p(),a()(f.Z,g);const y=f.Z&&f.Z.locals?f.Z.locals:void 0},3379:e=>{"use strict";var t=[];function o(e){for(var o=-1,n=0;n{"use strict";var t={};e.exports=function(e,o){var n=function(e){if(void 0===t[e]){var o=document.querySelector(e);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(e){o=null}t[e]=o}return t[e]}(e);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(o)}},9216:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},3565:(e,t,o)=>{"use strict";e.exports=function(e){var t=o.nc;t&&e.setAttribute("nonce",t)}},7795:e=>{"use strict";e.exports=function(e){var t=e.insertStyleElement(e);return{update:function(o){!function(e,t,o){var n="";o.supports&&(n+="@supports (".concat(o.supports,") {")),o.media&&(n+="@media ".concat(o.media," {"));var a=void 0!==o.layer;a&&(n+="@layer".concat(o.layer.length>0?" ".concat(o.layer):""," {")),n+=o.css,a&&(n+="}"),o.media&&(n+="}"),o.supports&&(n+="}");var r=o.sourceMap;r&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(r))))," */")),t.styleTagTransform(n,e,t.options)}(t,e,o)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},4589:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},6455:function(e){e.exports=function(){"use strict";const e="SweetAlert2:",t=e=>e.charAt(0).toUpperCase()+e.slice(1),o=t=>{console.warn("".concat(e," ").concat("object"==typeof t?t.join(" "):t))},n=t=>{console.error("".concat(e," ").concat(t))},a=[],r=(e,t)=>{var n;n='"'.concat(e,'" is deprecated and will be removed in the next major release. Please use "').concat(t,'" instead.'),a.includes(n)||(a.push(n),o(n))},s=e=>"function"==typeof e?e():e,i=e=>e&&"function"==typeof e.toPromise,c=e=>i(e)?e.toPromise():Promise.resolve(e),l=e=>e&&Promise.resolve(e)===e,u={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,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",color:void 0,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,willOpen:void 0,didOpen:void 0,didRender:void 0,willClose:void 0,didClose:void 0,didDestroy:void 0,scrollbarPadding:!0},d=["allowEscapeKey","allowOutsideClick","background","buttonsStyling","cancelButtonAriaLabel","cancelButtonColor","cancelButtonText","closeButtonAriaLabel","closeButtonHtml","color","confirmButtonAriaLabel","confirmButtonColor","confirmButtonText","currentProgressStep","customClass","denyButtonAriaLabel","denyButtonColor","denyButtonText","didClose","didDestroy","footer","hideClass","html","icon","iconColor","iconHtml","imageAlt","imageHeight","imageUrl","imageWidth","preConfirm","preDeny","progressSteps","returnFocus","reverseButtons","showCancelButton","showCloseButton","showConfirmButton","showDenyButton","text","title","titleText","willClose"],p={},h=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],m=e=>Object.prototype.hasOwnProperty.call(u,e),f=e=>-1!==d.indexOf(e),g=e=>p[e],y=e=>{m(e)||o('Unknown parameter "'.concat(e,'"'))},w=e=>{h.includes(e)&&o('The parameter "'.concat(e,'" is incompatible with toasts'))},b=e=>{g(e)&&r(e,g(e))},v=e=>{const t={};for(const o in e)t[e[o]]="swal2-"+e[o];return t},_=v(["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","show","hide","close","title","html-container","actions","confirm","deny","cancel","default-outline","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","input-label","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loader","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error","no-war"]),k=v(["success","warning","info","question","error"]),C=()=>document.body.querySelector(".".concat(_.container)),x=e=>{const t=C();return t?t.querySelector(e):null},E=e=>x(".".concat(e)),S=()=>E(_.popup),T=()=>E(_.icon),P=()=>E(_.title),A=()=>E(_["html-container"]),I=()=>E(_.image),D=()=>E(_["progress-steps"]),B=()=>E(_["validation-message"]),O=()=>x(".".concat(_.actions," .").concat(_.confirm)),M=()=>x(".".concat(_.actions," .").concat(_.deny)),R=()=>x(".".concat(_.loader)),L=()=>x(".".concat(_.actions," .").concat(_.cancel)),N=()=>E(_.actions),j=()=>E(_.footer),H=()=>E(_["timer-progress-bar"]),F=()=>E(_.close),q=()=>{const e=Array.from(S().querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])')).sort(((e,t)=>{const o=parseInt(e.getAttribute("tabindex")),n=parseInt(t.getAttribute("tabindex"));return o>n?1:o"-1"!==e.getAttribute("tabindex")));return(e=>{const t=[];for(let o=0;ore(e)))},U=()=>G(document.body,_.shown)&&!G(document.body,_["toast-shown"])&&!G(document.body,_["no-backdrop"]),Y=()=>S()&&G(S(),_.toast),z={previousBodyPadding:null},W=(e,t)=>{if(e.textContent="",t){const o=(new DOMParser).parseFromString(t,"text/html");Array.from(o.querySelector("head").childNodes).forEach((t=>{e.appendChild(t)})),Array.from(o.querySelector("body").childNodes).forEach((t=>{e.appendChild(t)}))}},G=(e,t)=>{if(!t)return!1;const o=t.split(/\s+/);for(let t=0;t{if(((e,t)=>{Array.from(e.classList).forEach((o=>{Object.values(_).includes(o)||Object.values(k).includes(o)||Object.values(t.showClass).includes(o)||e.classList.remove(o)}))})(e,t),t.customClass&&t.customClass[n]){if("string"!=typeof t.customClass[n]&&!t.customClass[n].forEach)return o("Invalid type of customClass.".concat(n,'! Expected string or iterable object, got "').concat(typeof t.customClass[n],'"'));J(e,t.customClass[n])}},K=(e,t)=>{if(!t)return null;switch(t){case"select":case"textarea":case"file":return e.querySelector(".".concat(_.popup," > .").concat(_[t]));case"checkbox":return e.querySelector(".".concat(_.popup," > .").concat(_.checkbox," input"));case"radio":return e.querySelector(".".concat(_.popup," > .").concat(_.radio," input:checked"))||e.querySelector(".".concat(_.popup," > .").concat(_.radio," input:first-child"));case"range":return e.querySelector(".".concat(_.popup," > .").concat(_.range," input"));default:return e.querySelector(".".concat(_.popup," > .").concat(_.input))}},$=e=>{if(e.focus(),"file"!==e.type){const t=e.value;e.value="",e.value=t}},Z=(e,t,o)=>{e&&t&&("string"==typeof t&&(t=t.split(/\s+/).filter(Boolean)),t.forEach((t=>{Array.isArray(e)?e.forEach((e=>{o?e.classList.add(t):e.classList.remove(t)})):o?e.classList.add(t):e.classList.remove(t)})))},J=(e,t)=>{Z(e,t,!0)},X=(e,t)=>{Z(e,t,!1)},Q=(e,t)=>{const o=Array.from(e.children);for(let e=0;e{o==="".concat(parseInt(o))&&(o=parseInt(o)),o||0===parseInt(o)?e.style[t]="number"==typeof o?"".concat(o,"px"):o:e.style.removeProperty(t)},te=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"flex";e.style.display=t},oe=e=>{e.style.display="none"},ne=(e,t,o,n)=>{const a=e.querySelector(t);a&&(a.style[o]=n)},ae=function(e,t){t?te(e,arguments.length>2&&void 0!==arguments[2]?arguments[2]:"flex"):oe(e)},re=e=>!(!e||!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)),se=e=>!!(e.scrollHeight>e.clientHeight),ie=e=>{const t=window.getComputedStyle(e),o=parseFloat(t.getPropertyValue("animation-duration")||"0"),n=parseFloat(t.getPropertyValue("transition-duration")||"0");return o>0||n>0},ce=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const o=H();re(o)&&(t&&(o.style.transition="none",o.style.width="100%"),setTimeout((()=>{o.style.transition="width ".concat(e/1e3,"s linear"),o.style.width="0%"}),10))},le=()=>"undefined"==typeof window||"undefined"==typeof document,ue={},de=e=>new Promise((t=>{if(!e)return t();const o=window.scrollX,n=window.scrollY;ue.restoreFocusTimeout=setTimeout((()=>{ue.previousActiveElement instanceof HTMLElement?(ue.previousActiveElement.focus(),ue.previousActiveElement=null):document.body&&document.body.focus(),t()}),100),window.scrollTo(o,n)})),pe='\n
                    \n \n
                      \n
                      \n \n

                      \n
                      \n \n \n
                      \n \n \n
                      \n \n
                      \n \n \n
                      \n
                      \n
                      \n \n \n \n
                      \n
                      \n
                      \n
                      \n
                      \n
                      \n').replace(/(^|\n)\s*/g,""),he=()=>{ue.currentInstance.resetValidationMessage()},me=e=>{const t=(()=>{const e=C();return!!e&&(e.remove(),X([document.documentElement,document.body],[_["no-backdrop"],_["toast-shown"],_["has-column"]]),!0)})();if(le())return void n("SweetAlert2 requires document to initialize");const o=document.createElement("div");o.className=_.container,t&&J(o,_["no-transition"]),W(o,pe);const a="string"==typeof(r=e.target)?document.querySelector(r):r;var r;a.appendChild(o),(e=>{const t=S();t.setAttribute("role",e.toast?"alert":"dialog"),t.setAttribute("aria-live",e.toast?"polite":"assertive"),e.toast||t.setAttribute("aria-modal","true")})(e),(e=>{"rtl"===window.getComputedStyle(e).direction&&J(C(),_.rtl)})(a),(()=>{const e=S(),t=Q(e,_.input),o=Q(e,_.file),n=e.querySelector(".".concat(_.range," input")),a=e.querySelector(".".concat(_.range," output")),r=Q(e,_.select),s=e.querySelector(".".concat(_.checkbox," input")),i=Q(e,_.textarea);t.oninput=he,o.onchange=he,r.onchange=he,s.onchange=he,i.oninput=he,n.oninput=()=>{he(),a.value=n.value},n.onchange=()=>{he(),a.value=n.value}})()},fe=(e,t)=>{e instanceof HTMLElement?t.appendChild(e):"object"==typeof e?ge(e,t):e&&W(t,e)},ge=(e,t)=>{e.jquery?ye(t,e):W(t,e.toString())},ye=(e,t)=>{if(e.textContent="",0 in t)for(let o=0;o in t;o++)e.appendChild(t[o].cloneNode(!0));else e.appendChild(t.cloneNode(!0))},we=(()=>{if(le())return!1;const e=document.createElement("div"),t={WebkitAnimation:"webkitAnimationEnd",animation:"animationend"};for(const o in t)if(Object.prototype.hasOwnProperty.call(t,o)&&void 0!==e.style[o])return t[o];return!1})(),be=(e,t)=>{const o=N(),n=R();t.showConfirmButton||t.showDenyButton||t.showCancelButton?te(o):oe(o),V(o,t,"actions"),function(e,t,o){const n=O(),a=M(),r=L();ve(n,"confirm",o),ve(a,"deny",o),ve(r,"cancel",o),function(e,t,o,n){if(!n.buttonsStyling)return X([e,t,o],_.styled);J([e,t,o],_.styled),n.confirmButtonColor&&(e.style.backgroundColor=n.confirmButtonColor,J(e,_["default-outline"])),n.denyButtonColor&&(t.style.backgroundColor=n.denyButtonColor,J(t,_["default-outline"])),n.cancelButtonColor&&(o.style.backgroundColor=n.cancelButtonColor,J(o,_["default-outline"]))}(n,a,r,o),o.reverseButtons&&(o.toast?(e.insertBefore(r,n),e.insertBefore(a,n)):(e.insertBefore(r,t),e.insertBefore(a,t),e.insertBefore(n,t)))}(o,n,t),W(n,t.loaderHtml),V(n,t,"loader")};function ve(e,o,n){ae(e,n["show".concat(t(o),"Button")],"inline-block"),W(e,n["".concat(o,"ButtonText")]),e.setAttribute("aria-label",n["".concat(o,"ButtonAriaLabel")]),e.className=_[o],V(e,n,"".concat(o,"Button")),J(e,n["".concat(o,"ButtonClass")])}const _e=(e,t)=>{const n=C();n&&(function(e,t){"string"==typeof t?e.style.background=t:t||J([document.documentElement,document.body],_["no-backdrop"])}(n,t.backdrop),function(e,t){t in _?J(e,_[t]):(o('The "position" parameter is not valid, defaulting to "center"'),J(e,_.center))}(n,t.position),function(e,t){if(t&&"string"==typeof t){const o="grow-".concat(t);o in _&&J(e,_[o])}}(n,t.grow),V(n,t,"container"))};var ke={awaitingPromise:new WeakMap,promise:new WeakMap,innerParams:new WeakMap,domCache:new WeakMap};const Ce=["input","file","range","select","radio","checkbox","textarea"],xe=e=>{if(!De[e.input])return n('Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "'.concat(e.input,'"'));const t=Ae(e.input),o=De[e.input](t,e);te(t),setTimeout((()=>{$(o)}))},Ee=(e,t)=>{const o=K(S(),e);if(o){(e=>{for(let t=0;t{const t=Ae(e.input);"object"==typeof e.customClass&&J(t,e.customClass.input)},Te=(e,t)=>{e.placeholder&&!t.inputPlaceholder||(e.placeholder=t.inputPlaceholder)},Pe=(e,t,o)=>{if(o.inputLabel){e.id=_.input;const n=document.createElement("label"),a=_["input-label"];n.setAttribute("for",e.id),n.className=a,"object"==typeof o.customClass&&J(n,o.customClass.inputLabel),n.innerText=o.inputLabel,t.insertAdjacentElement("beforebegin",n)}},Ae=e=>Q(S(),_[e]||_.input),Ie=(e,t)=>{["string","number"].includes(typeof t)?e.value="".concat(t):l(t)||o('Unexpected type of inputValue! Expected "string", "number" or "Promise", got "'.concat(typeof t,'"'))},De={};De.text=De.email=De.password=De.number=De.tel=De.url=(e,t)=>(Ie(e,t.inputValue),Pe(e,e,t),Te(e,t),e.type=t.input,e),De.file=(e,t)=>(Pe(e,e,t),Te(e,t),e),De.range=(e,t)=>{const o=e.querySelector("input"),n=e.querySelector("output");return Ie(o,t.inputValue),o.type=t.input,Ie(n,t.inputValue),Pe(o,e,t),e},De.select=(e,t)=>{if(e.textContent="",t.inputPlaceholder){const o=document.createElement("option");W(o,t.inputPlaceholder),o.value="",o.disabled=!0,o.selected=!0,e.appendChild(o)}return Pe(e,e,t),e},De.radio=e=>(e.textContent="",e),De.checkbox=(e,t)=>{const o=K(S(),"checkbox");o.value="1",o.id=_.checkbox,o.checked=Boolean(t.inputValue);const n=e.querySelector("span");return W(n,t.inputPlaceholder),o},De.textarea=(e,t)=>{Ie(e,t.inputValue),Te(e,t),Pe(e,e,t);return setTimeout((()=>{if("MutationObserver"in window){const t=parseInt(window.getComputedStyle(S()).width);new MutationObserver((()=>{const o=e.offsetWidth+(n=e,parseInt(window.getComputedStyle(n).marginLeft)+parseInt(window.getComputedStyle(n).marginRight));var n;S().style.width=o>t?"".concat(o,"px"):null})).observe(e,{attributes:!0,attributeFilter:["style"]})}})),e};const Be=(e,t)=>{const o=A();V(o,t,"htmlContainer"),t.html?(fe(t.html,o),te(o,"block")):t.text?(o.textContent=t.text,te(o,"block")):oe(o),((e,t)=>{const o=S(),n=ke.innerParams.get(e),a=!n||t.input!==n.input;Ce.forEach((e=>{const n=Q(o,_[e]);Ee(e,t.inputAttributes),n.className=_[e],a&&oe(n)})),t.input&&(a&&xe(t),Se(t))})(e,t)},Oe=(e,t)=>{for(const o in k)t.icon!==o&&X(e,k[o]);J(e,k[t.icon]),Le(e,t),Me(),V(e,t,"icon")},Me=()=>{const e=S(),t=window.getComputedStyle(e).getPropertyValue("background-color"),o=e.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");for(let e=0;e{let o,n=e.innerHTML;t.iconHtml?o=Ne(t.iconHtml):"success"===t.icon?(o='\n
                      \n \n
                      \n
                      \n',n=n.replace(/ style=".*?"/g,"")):o="error"===t.icon?'\n \n \n \n \n':Ne({question:"?",warning:"!",info:"i"}[t.icon]),n.trim()!==o.trim()&&W(e,o)},Le=(e,t)=>{if(t.iconColor){e.style.color=t.iconColor,e.style.borderColor=t.iconColor;for(const o of[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"])ne(e,o,"backgroundColor",t.iconColor);ne(e,".swal2-success-ring","borderColor",t.iconColor)}},Ne=e=>'
                      ').concat(e,"
                      "),je=e=>{const t=document.createElement("li");return J(t,_["progress-step"]),W(t,e),t},He=e=>{const t=document.createElement("li");return J(t,_["progress-step-line"]),e.progressStepsDistance&&ee(t,"width",e.progressStepsDistance),t},Fe=(e,t)=>{e.className="".concat(_.popup," ").concat(re(e)?t.showClass.popup:""),t.toast?(J([document.documentElement,document.body],_["toast-shown"]),J(e,_.toast)):J(e,_.modal),V(e,t,"popup"),"string"==typeof t.customClass&&J(e,t.customClass),t.icon&&J(e,_["icon-".concat(t.icon)])},qe=(e,t)=>{((e,t)=>{const o=C(),n=S();t.toast?(ee(o,"width",t.width),n.style.width="100%",n.insertBefore(R(),T())):ee(n,"width",t.width),ee(n,"padding",t.padding),t.color&&(n.style.color=t.color),t.background&&(n.style.background=t.background),oe(B()),Fe(n,t)})(0,t),_e(0,t),((e,t)=>{const n=D();if(!t.progressSteps||0===t.progressSteps.length)return oe(n);te(n),n.textContent="",t.currentProgressStep>=t.progressSteps.length&&o("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),t.progressSteps.forEach(((e,o)=>{const a=je(e);if(n.appendChild(a),o===t.currentProgressStep&&J(a,_["active-progress-step"]),o!==t.progressSteps.length-1){const e=He(t);n.appendChild(e)}}))})(0,t),((e,t)=>{const o=ke.innerParams.get(e),a=T();if(o&&t.icon===o.icon)return Re(a,t),void Oe(a,t);if(t.icon||t.iconHtml){if(t.icon&&-1===Object.keys(k).indexOf(t.icon))return n('Unknown icon! Expected "success", "error", "warning", "info" or "question", got "'.concat(t.icon,'"')),void oe(a);te(a),Re(a,t),Oe(a,t),J(a,t.showClass.icon)}else oe(a)})(e,t),((e,t)=>{const o=I();if(!t.imageUrl)return oe(o);te(o,""),o.setAttribute("src",t.imageUrl),o.setAttribute("alt",t.imageAlt),ee(o,"width",t.imageWidth),ee(o,"height",t.imageHeight),o.className=_.image,V(o,t,"image")})(0,t),((e,t)=>{const o=P();ae(o,t.title||t.titleText,"block"),t.title&&fe(t.title,o),t.titleText&&(o.innerText=t.titleText),V(o,t,"title")})(0,t),((e,t)=>{const o=F();W(o,t.closeButtonHtml),V(o,t,"closeButton"),ae(o,t.showCloseButton),o.setAttribute("aria-label",t.closeButtonAriaLabel)})(0,t),Be(e,t),be(0,t),((e,t)=>{const o=j();ae(o,t.footer),t.footer&&fe(t.footer,o),V(o,t,"footer")})(0,t),"function"==typeof t.didRender&&t.didRender(S())},Ue=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),Ye=()=>{Array.from(document.body.children).forEach((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")}))},ze=["swal-title","swal-html","swal-footer"],We=e=>{const t={};return Array.from(e.querySelectorAll("swal-param")).forEach((e=>{Xe(e,["name","value"]);const o=e.getAttribute("name"),n=e.getAttribute("value");"boolean"==typeof u[o]&&"false"===n&&(t[o]=!1),"object"==typeof u[o]&&(t[o]=JSON.parse(n))})),t},Ge=e=>{const o={};return Array.from(e.querySelectorAll("swal-button")).forEach((e=>{Xe(e,["type","color","aria-label"]);const n=e.getAttribute("type");o["".concat(n,"ButtonText")]=e.innerHTML,o["show".concat(t(n),"Button")]=!0,e.hasAttribute("color")&&(o["".concat(n,"ButtonColor")]=e.getAttribute("color")),e.hasAttribute("aria-label")&&(o["".concat(n,"ButtonAriaLabel")]=e.getAttribute("aria-label"))})),o},Ve=e=>{const t={},o=e.querySelector("swal-image");return o&&(Xe(o,["src","width","height","alt"]),o.hasAttribute("src")&&(t.imageUrl=o.getAttribute("src")),o.hasAttribute("width")&&(t.imageWidth=o.getAttribute("width")),o.hasAttribute("height")&&(t.imageHeight=o.getAttribute("height")),o.hasAttribute("alt")&&(t.imageAlt=o.getAttribute("alt"))),t},Ke=e=>{const t={},o=e.querySelector("swal-icon");return o&&(Xe(o,["type","color"]),o.hasAttribute("type")&&(t.icon=o.getAttribute("type")),o.hasAttribute("color")&&(t.iconColor=o.getAttribute("color")),t.iconHtml=o.innerHTML),t},$e=e=>{const t={},o=e.querySelector("swal-input");o&&(Xe(o,["type","label","placeholder","value"]),t.input=o.getAttribute("type")||"text",o.hasAttribute("label")&&(t.inputLabel=o.getAttribute("label")),o.hasAttribute("placeholder")&&(t.inputPlaceholder=o.getAttribute("placeholder")),o.hasAttribute("value")&&(t.inputValue=o.getAttribute("value")));const n=Array.from(e.querySelectorAll("swal-input-option"));return n.length&&(t.inputOptions={},n.forEach((e=>{Xe(e,["value"]);const o=e.getAttribute("value"),n=e.innerHTML;t.inputOptions[o]=n}))),t},Ze=(e,t)=>{const o={};for(const n in t){const a=t[n],r=e.querySelector(a);r&&(Xe(r,[]),o[a.replace(/^swal-/,"")]=r.innerHTML.trim())}return o},Je=e=>{const t=ze.concat(["swal-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Array.from(e.children).forEach((e=>{const n=e.tagName.toLowerCase();-1===t.indexOf(n)&&o("Unrecognized element <".concat(n,">"))}))},Xe=(e,t)=>{Array.from(e.attributes).forEach((n=>{-1===t.indexOf(n.name)&&o(['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.")])}))};var Qe={email:(e,t)=>/^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]{2,24}$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid email address"),url:(e,t)=>/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid URL")};function et(e){(function(e){e.inputValidator||Object.keys(Qe).forEach((t=>{e.input===t&&(e.inputValidator=Qe[t])}))})(e),e.showLoaderOnConfirm&&!e.preConfirm&&o("showLoaderOnConfirm is set to true, but preConfirm is not defined.\nshowLoaderOnConfirm should be used together with preConfirm, see usage example:\nhttps://sweetalert2.github.io/#ajax-request"),function(e){(!e.target||"string"==typeof e.target&&!document.querySelector(e.target)||"string"!=typeof e.target&&!e.target.appendChild)&&(o('Target parameter is not valid, defaulting to "body"'),e.target="body")}(e),"string"==typeof e.title&&(e.title=e.title.split("\n").join("
                      ")),me(e)}class tt{constructor(e,t){this.callback=e,this.remaining=t,this.running=!1,this.start()}start(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}stop(){return this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=(new Date).getTime()-this.started.getTime()),this.remaining}increase(e){const t=this.running;return t&&this.stop(),this.remaining+=e,t&&this.start(),this.remaining}getTimerLeft(){return this.running&&(this.stop(),this.start()),this.remaining}isRunning(){return this.running}}const ot=()=>{null===z.previousBodyPadding&&document.body.scrollHeight>window.innerHeight&&(z.previousBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight="".concat(z.previousBodyPadding+(()=>{const e=document.createElement("div");e.className=_["scrollbar-measure"],document.body.appendChild(e);const t=e.getBoundingClientRect().width-e.clientWidth;return document.body.removeChild(e),t})(),"px"))},nt=()=>{const e=navigator.userAgent,t=!!e.match(/iPad/i)||!!e.match(/iPhone/i),o=!!e.match(/WebKit/i);if(t&&o&&!e.match(/CriOS/i)){const e=44;S().scrollHeight>window.innerHeight-e&&(C().style.paddingBottom="".concat(e,"px"))}},at=()=>{const e=C();let t;e.ontouchstart=e=>{t=rt(e)},e.ontouchmove=e=>{t&&(e.preventDefault(),e.stopPropagation())}},rt=e=>{const t=e.target,o=C();return!(st(e)||it(e)||t!==o&&(se(o)||!(t instanceof HTMLElement)||"INPUT"===t.tagName||"TEXTAREA"===t.tagName||se(A())&&A().contains(t)))},st=e=>e.touches&&e.touches.length&&"stylus"===e.touches[0].touchType,it=e=>e.touches&&e.touches.length>1,ct=e=>{const t=C(),o=S();"function"==typeof e.willOpen&&e.willOpen(o);const n=window.getComputedStyle(document.body).overflowY;pt(t,o,e),setTimeout((()=>{ut(t,o)}),10),U()&&(dt(t,e.scrollbarPadding,n),Array.from(document.body.children).forEach((e=>{e===C()||e.contains(C())||(e.hasAttribute("aria-hidden")&&e.setAttribute("data-previous-aria-hidden",e.getAttribute("aria-hidden")),e.setAttribute("aria-hidden","true"))}))),Y()||ue.previousActiveElement||(ue.previousActiveElement=document.activeElement),"function"==typeof e.didOpen&&setTimeout((()=>e.didOpen(o))),X(t,_["no-transition"])},lt=e=>{const t=S();if(e.target!==t)return;const o=C();t.removeEventListener(we,lt),o.style.overflowY="auto"},ut=(e,t)=>{we&&ie(t)?(e.style.overflowY="hidden",t.addEventListener(we,lt)):e.style.overflowY="auto"},dt=(e,t,o)=>{(()=>{if((/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)&&!G(document.body,_.iosfix)){const e=document.body.scrollTop;document.body.style.top="".concat(-1*e,"px"),J(document.body,_.iosfix),at(),nt()}})(),t&&"hidden"!==o&&ot(),setTimeout((()=>{e.scrollTop=0}))},pt=(e,t,o)=>{J(e,o.showClass.backdrop),t.style.setProperty("opacity","0","important"),te(t,"grid"),setTimeout((()=>{J(t,o.showClass.popup),t.style.removeProperty("opacity")}),10),J([document.documentElement,document.body],_.shown),o.heightAuto&&o.backdrop&&!o.toast&&J([document.documentElement,document.body],_["height-auto"])},ht=e=>{let t=S();t||new To,t=S();const o=R();Y()?oe(T()):mt(t,e),te(o),t.setAttribute("data-loading","true"),t.setAttribute("aria-busy","true"),t.focus()},mt=(e,t)=>{const o=N(),n=R();!t&&re(O())&&(t=O()),te(o),t&&(oe(t),n.setAttribute("data-button-to-replace",t.className)),n.parentNode.insertBefore(n,t),J([e,o],_.loading)},ft=e=>e.checked?1:0,gt=e=>e.checked?e.value:null,yt=e=>e.files.length?null!==e.getAttribute("multiple")?e.files:e.files[0]:null,wt=(e,t)=>{const o=S(),a=e=>vt[t.input](o,_t(e),t);i(t.inputOptions)||l(t.inputOptions)?(ht(O()),c(t.inputOptions).then((t=>{e.hideLoading(),a(t)}))):"object"==typeof t.inputOptions?a(t.inputOptions):n("Unexpected type of inputOptions! Expected object, Map or Promise, got ".concat(typeof t.inputOptions))},bt=(e,t)=>{const o=e.getInput();oe(o),c(t.inputValue).then((n=>{o.value="number"===t.input?parseFloat(n)||0:"".concat(n),te(o),o.focus(),e.hideLoading()})).catch((t=>{n("Error in inputValue promise: ".concat(t)),o.value="",te(o),o.focus(),e.hideLoading()}))},vt={select:(e,t,o)=>{const n=Q(e,_.select),a=(e,t,n)=>{const a=document.createElement("option");a.value=n,W(a,t),a.selected=kt(n,o.inputValue),e.appendChild(a)};t.forEach((e=>{const t=e[0],o=e[1];if(Array.isArray(o)){const e=document.createElement("optgroup");e.label=t,e.disabled=!1,n.appendChild(e),o.forEach((t=>a(e,t[1],t[0])))}else a(n,o,t)})),n.focus()},radio:(e,t,o)=>{const n=Q(e,_.radio);t.forEach((e=>{const t=e[0],a=e[1],r=document.createElement("input"),s=document.createElement("label");r.type="radio",r.name=_.radio,r.value=t,kt(t,o.inputValue)&&(r.checked=!0);const i=document.createElement("span");W(i,a),i.className=_.label,s.appendChild(r),s.appendChild(i),n.appendChild(s)}));const a=n.querySelectorAll("input");a.length&&a[0].focus()}},_t=e=>{const t=[];return"undefined"!=typeof Map&&e instanceof Map?e.forEach(((e,o)=>{let n=e;"object"==typeof n&&(n=_t(n)),t.push([o,n])})):Object.keys(e).forEach((o=>{let n=e[o];"object"==typeof n&&(n=_t(n)),t.push([o,n])})),t},kt=(e,t)=>t&&t.toString()===e.toString();function Ct(){const e=ke.innerParams.get(this);if(!e)return;const t=ke.domCache.get(this);oe(t.loader),Y()?e.icon&&te(T()):xt(t),X([t.popup,t.actions],_.loading),t.popup.removeAttribute("aria-busy"),t.popup.removeAttribute("data-loading"),t.confirmButton.disabled=!1,t.denyButton.disabled=!1,t.cancelButton.disabled=!1}const xt=e=>{const t=e.popup.getElementsByClassName(e.loader.getAttribute("data-button-to-replace"));t.length?te(t[0],"inline-block"):!re(O())&&!re(M())&&!re(L())&&oe(e.actions)};var Et={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};const St=()=>O()&&O().click(),Tt=e=>{e.keydownTarget&&e.keydownHandlerAdded&&(e.keydownTarget.removeEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!1)},Pt=(e,t,o)=>{const n=q();if(n.length)return(t+=o)===n.length?t=0:-1===t&&(t=n.length-1),n[t].focus();S().focus()},At=["ArrowRight","ArrowDown"],It=["ArrowLeft","ArrowUp"],Dt=(e,t,o)=>{const n=ke.innerParams.get(e);n&&(t.isComposing||229===t.keyCode||(n.stopKeydownPropagation&&t.stopPropagation(),"Enter"===t.key?Bt(e,t,n):"Tab"===t.key?Ot(t,n):[...At,...It].includes(t.key)?Mt(t.key):"Escape"===t.key&&Rt(t,n,o)))},Bt=(e,t,o)=>{if(s(o.allowEnterKey)&&t.target&&e.getInput()&&t.target instanceof HTMLElement&&t.target.outerHTML===e.getInput().outerHTML){if(["textarea","file"].includes(o.input))return;St(),t.preventDefault()}},Ot=(e,t)=>{const o=e.target,n=q();let a=-1;for(let e=0;e{const t=O(),o=M(),n=L();if(document.activeElement instanceof HTMLElement&&![t,o,n].includes(document.activeElement))return;const a=At.includes(e)?"nextElementSibling":"previousElementSibling";let r=document.activeElement;for(let e=0;e{s(t.allowEscapeKey)&&(e.preventDefault(),o(Ue.esc))};function Lt(e,t,o,n){Y()?Yt(e,n):(de(o).then((()=>Yt(e,n))),Tt(ue)),/^((?!chrome|android).)*safari/i.test(navigator.userAgent)?(t.setAttribute("style","display:none !important"),t.removeAttribute("class"),t.innerHTML=""):t.remove(),U()&&(null!==z.previousBodyPadding&&(document.body.style.paddingRight="".concat(z.previousBodyPadding,"px"),z.previousBodyPadding=null),(()=>{if(G(document.body,_.iosfix)){const e=parseInt(document.body.style.top,10);X(document.body,_.iosfix),document.body.style.top="",document.body.scrollTop=-1*e}})(),Ye()),X([document.documentElement,document.body],[_.shown,_["height-auto"],_["no-backdrop"],_["toast-shown"]])}function Nt(e){e=Ft(e);const t=Et.swalPromiseResolve.get(this),o=jt(this);this.isAwaitingPromise()?e.isDismissed||(Ht(this),t(e)):o&&t(e)}const jt=e=>{const t=S();if(!t)return!1;const o=ke.innerParams.get(e);if(!o||G(t,o.hideClass.popup))return!1;X(t,o.showClass.popup),J(t,o.hideClass.popup);const n=C();return X(n,o.showClass.backdrop),J(n,o.hideClass.backdrop),qt(e,t,o),!0};const Ht=e=>{e.isAwaitingPromise()&&(ke.awaitingPromise.delete(e),ke.innerParams.get(e)||e._destroy())},Ft=e=>void 0===e?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},e),qt=(e,t,o)=>{const n=C(),a=we&&ie(t);"function"==typeof o.willClose&&o.willClose(t),a?Ut(e,t,n,o.returnFocus,o.didClose):Lt(e,n,o.returnFocus,o.didClose)},Ut=(e,t,o,n,a)=>{ue.swalCloseEventFinishedCallback=Lt.bind(null,e,o,n,a),t.addEventListener(we,(function(e){e.target===t&&(ue.swalCloseEventFinishedCallback(),delete ue.swalCloseEventFinishedCallback)}))},Yt=(e,t)=>{setTimeout((()=>{"function"==typeof t&&t.bind(e.params)(),e._destroy()}))};function zt(e,t,o){const n=ke.domCache.get(e);t.forEach((e=>{n[e].disabled=o}))}function Wt(e,t){if(!e)return!1;if("radio"===e.type){const o=e.parentNode.parentNode.querySelectorAll("input");for(let e=0;e{const t={};return Object.keys(e).forEach((n=>{f(n)?t[n]=e[n]:o("Invalid parameter to update: ".concat(n))})),t};const Vt=e=>{Kt(e),delete e.params,delete ue.keydownHandler,delete ue.keydownTarget,delete ue.currentInstance},Kt=e=>{e.isAwaitingPromise()?($t(ke,e),ke.awaitingPromise.set(e,!0)):($t(Et,e),$t(ke,e))},$t=(e,t)=>{for(const o in e)e[o].delete(t)};var Zt=Object.freeze({hideLoading:Ct,disableLoading:Ct,getInput:function(e){const t=ke.innerParams.get(e||this),o=ke.domCache.get(e||this);return o?K(o.popup,t.input):null},close:Nt,isAwaitingPromise:function(){return!!ke.awaitingPromise.get(this)},rejectPromise:function(e){const t=Et.swalPromiseReject.get(this);Ht(this),t&&t(e)},handleAwaitingPromise:Ht,closePopup:Nt,closeModal:Nt,closeToast:Nt,enableButtons:function(){zt(this,["confirmButton","denyButton","cancelButton"],!1)},disableButtons:function(){zt(this,["confirmButton","denyButton","cancelButton"],!0)},enableInput:function(){return Wt(this.getInput(),!1)},disableInput:function(){return Wt(this.getInput(),!0)},showValidationMessage:function(e){const t=ke.domCache.get(this),o=ke.innerParams.get(this);W(t.validationMessage,e),t.validationMessage.className=_["validation-message"],o.customClass&&o.customClass.validationMessage&&J(t.validationMessage,o.customClass.validationMessage),te(t.validationMessage);const n=this.getInput();n&&(n.setAttribute("aria-invalid",!0),n.setAttribute("aria-describedby",_["validation-message"]),$(n),J(n,_.inputerror))},resetValidationMessage:function(){const e=ke.domCache.get(this);e.validationMessage&&oe(e.validationMessage);const t=this.getInput();t&&(t.removeAttribute("aria-invalid"),t.removeAttribute("aria-describedby"),X(t,_.inputerror))},getProgressSteps:function(){return ke.domCache.get(this).progressSteps},update:function(e){const t=S(),n=ke.innerParams.get(this);if(!t||G(t,n.hideClass.popup))return o("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.");const a=Gt(e),r=Object.assign({},n,a);qe(this,r),ke.innerParams.set(this,r),Object.defineProperties(this,{params:{value:Object.assign({},this.params,e),writable:!1,enumerable:!0}})},_destroy:function(){const e=ke.domCache.get(this),t=ke.innerParams.get(this);t?(e.popup&&ue.swalCloseEventFinishedCallback&&(ue.swalCloseEventFinishedCallback(),delete ue.swalCloseEventFinishedCallback),"function"==typeof t.didDestroy&&t.didDestroy(),Vt(this)):Kt(this)}});const Jt=(e,o)=>{const a=ke.innerParams.get(e);if(!a.input)return void n('The "input" parameter is needed to be set when using returnInputValueOn'.concat(t(o)));const r=((e,t)=>{const o=e.getInput();if(!o)return null;switch(t.input){case"checkbox":return ft(o);case"radio":return gt(o);case"file":return yt(o);default:return t.inputAutoTrim?o.value.trim():o.value}})(e,a);a.inputValidator?Xt(e,r,o):e.getInput().checkValidity()?"deny"===o?Qt(e,r):oo(e,r):(e.enableButtons(),e.showValidationMessage(a.validationMessage))},Xt=(e,t,o)=>{const n=ke.innerParams.get(e);e.disableInput(),Promise.resolve().then((()=>c(n.inputValidator(t,n.validationMessage)))).then((n=>{e.enableButtons(),e.enableInput(),n?e.showValidationMessage(n):"deny"===o?Qt(e,t):oo(e,t)}))},Qt=(e,t)=>{const o=ke.innerParams.get(e||void 0);o.showLoaderOnDeny&&ht(M()),o.preDeny?(ke.awaitingPromise.set(e||void 0,!0),Promise.resolve().then((()=>c(o.preDeny(t,o.validationMessage)))).then((o=>{!1===o?(e.hideLoading(),Ht(e)):e.close({isDenied:!0,value:void 0===o?t:o})})).catch((t=>to(e||void 0,t)))):e.close({isDenied:!0,value:t})},eo=(e,t)=>{e.close({isConfirmed:!0,value:t})},to=(e,t)=>{e.rejectPromise(t)},oo=(e,t)=>{const o=ke.innerParams.get(e||void 0);o.showLoaderOnConfirm&&ht(),o.preConfirm?(e.resetValidationMessage(),ke.awaitingPromise.set(e||void 0,!0),Promise.resolve().then((()=>c(o.preConfirm(t,o.validationMessage)))).then((o=>{re(B())||!1===o?(e.hideLoading(),Ht(e)):eo(e,void 0===o?t:o)})).catch((t=>to(e||void 0,t)))):eo(e,t)},no=(e,t,o)=>{t.popup.onclick=()=>{const t=ke.innerParams.get(e);t&&(ao(t)||t.timer||t.input)||o(Ue.close)}},ao=e=>e.showConfirmButton||e.showDenyButton||e.showCancelButton||e.showCloseButton;let ro=!1;const so=e=>{e.popup.onmousedown=()=>{e.container.onmouseup=function(t){e.container.onmouseup=void 0,t.target===e.container&&(ro=!0)}}},io=e=>{e.container.onmousedown=()=>{e.popup.onmouseup=function(t){e.popup.onmouseup=void 0,(t.target===e.popup||e.popup.contains(t.target))&&(ro=!0)}}},co=(e,t,o)=>{t.container.onclick=n=>{const a=ke.innerParams.get(e);ro?ro=!1:n.target===t.container&&s(a.allowOutsideClick)&&o(Ue.backdrop)}},lo=e=>e instanceof Element||(e=>"object"==typeof e&&e.jquery)(e);const uo=()=>{if(ue.timeout)return(()=>{const e=H(),t=parseInt(window.getComputedStyle(e).width);e.style.removeProperty("transition"),e.style.width="100%";const o=t/parseInt(window.getComputedStyle(e).width)*100;e.style.removeProperty("transition"),e.style.width="".concat(o,"%")})(),ue.timeout.stop()},po=()=>{if(ue.timeout){const e=ue.timeout.start();return ce(e),e}};let ho=!1;const mo={};const fo=e=>{for(let t=e.target;t&&t!==document;t=t.parentNode)for(const e in mo){const o=t.getAttribute(e);if(o)return void mo[e].fire({template:o})}};var go=Object.freeze({isValidParameter:m,isUpdatableParameter:f,isDeprecatedParameter:g,argsToParams:e=>{const t={};return"object"!=typeof e[0]||lo(e[0])?["title","html","icon"].forEach(((o,a)=>{const r=e[a];"string"==typeof r||lo(r)?t[o]=r:void 0!==r&&n("Unexpected type of ".concat(o,'! Expected "string" or "Element", got ').concat(typeof r))})):Object.assign(t,e[0]),t},isVisible:()=>re(S()),clickConfirm:St,clickDeny:()=>M()&&M().click(),clickCancel:()=>L()&&L().click(),getContainer:C,getPopup:S,getTitle:P,getHtmlContainer:A,getImage:I,getIcon:T,getInputLabel:()=>E(_["input-label"]),getCloseButton:F,getActions:N,getConfirmButton:O,getDenyButton:M,getCancelButton:L,getLoader:R,getFooter:j,getTimerProgressBar:H,getFocusableElements:q,getValidationMessage:B,isLoading:()=>S().hasAttribute("data-loading"),fire:function(){const e=this;for(var t=arguments.length,o=new Array(t),n=0;nue.timeout&&ue.timeout.getTimerLeft(),stopTimer:uo,resumeTimer:po,toggleTimer:()=>{const e=ue.timeout;return e&&(e.running?uo():po())},increaseTimer:e=>{if(ue.timeout){const t=ue.timeout.increase(e);return ce(t,!0),t}},isTimerRunning:()=>ue.timeout&&ue.timeout.isRunning(),bindClickHandler:function(){mo[arguments.length>0&&void 0!==arguments[0]?arguments[0]:"data-swal-template"]=this,ho||(document.body.addEventListener("click",fo),ho=!0)}});let yo;class wo{constructor(){if("undefined"==typeof window)return;yo=this;for(var e=arguments.length,t=new Array(e),o=0;o1&&void 0!==arguments[1]?arguments[1]:{};(e=>{!e.backdrop&&e.allowOutsideClick&&o('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');for(const t in e)y(t),e.toast&&w(t),b(t)})(Object.assign({},t,e)),ue.currentInstance&&(ue.currentInstance._destroy(),U()&&Ye()),ue.currentInstance=yo;const n=vo(e,t);et(n),Object.freeze(n),ue.timeout&&(ue.timeout.stop(),delete ue.timeout),clearTimeout(ue.restoreFocusTimeout);const a=_o(yo);return qe(yo,n),ke.innerParams.set(yo,n),bo(yo,a,n)}then(e){return ke.promise.get(this).then(e)}finally(e){return ke.promise.get(this).finally(e)}}const bo=(e,t,o)=>new Promise(((n,a)=>{const r=t=>{e.closePopup({isDismissed:!0,dismiss:t})};Et.swalPromiseResolve.set(e,n),Et.swalPromiseReject.set(e,a),t.confirmButton.onclick=()=>(e=>{const t=ke.innerParams.get(e);e.disableButtons(),t.input?Jt(e,"confirm"):oo(e,!0)})(e),t.denyButton.onclick=()=>(e=>{const t=ke.innerParams.get(e);e.disableButtons(),t.returnInputValueOnDeny?Jt(e,"deny"):Qt(e,!1)})(e),t.cancelButton.onclick=()=>((e,t)=>{e.disableButtons(),t(Ue.cancel)})(e,r),t.closeButton.onclick=()=>r(Ue.close),((e,t,o)=>{ke.innerParams.get(e).toast?no(e,t,o):(so(t),io(t),co(e,t,o))})(e,t,r),((e,t,o,n)=>{Tt(t),o.toast||(t.keydownHandler=t=>Dt(e,t,n),t.keydownTarget=o.keydownListenerCapture?window:S(),t.keydownListenerCapture=o.keydownListenerCapture,t.keydownTarget.addEventListener("keydown",t.keydownHandler,{capture:t.keydownListenerCapture}),t.keydownHandlerAdded=!0)})(e,ue,o,r),((e,t)=>{"select"===t.input||"radio"===t.input?wt(e,t):["text","email","number","tel","textarea"].includes(t.input)&&(i(t.inputValue)||l(t.inputValue))&&(ht(O()),bt(e,t))})(e,o),ct(o),ko(ue,o,r),Co(t,o),setTimeout((()=>{t.container.scrollTop=0}))})),vo=(e,t)=>{const o=(e=>{const t="string"==typeof e.template?document.querySelector(e.template):e.template;if(!t)return{};const o=t.content;return Je(o),Object.assign(We(o),Ge(o),Ve(o),Ke(o),$e(o),Ze(o,ze))})(e),n=Object.assign({},u,t,o,e);return n.showClass=Object.assign({},u.showClass,n.showClass),n.hideClass=Object.assign({},u.hideClass,n.hideClass),n},_o=e=>{const t={popup:S(),container:C(),actions:N(),confirmButton:O(),denyButton:M(),cancelButton:L(),loader:R(),closeButton:F(),validationMessage:B(),progressSteps:D()};return ke.domCache.set(e,t),t},ko=(e,t,o)=>{const n=H();oe(n),t.timer&&(e.timeout=new tt((()=>{o("timer"),delete e.timeout}),t.timer),t.timerProgressBar&&(te(n),V(n,t,"timerProgressBar"),setTimeout((()=>{e.timeout&&e.timeout.running&&ce(t.timer)}))))},Co=(e,t)=>{if(!t.toast)return s(t.allowEnterKey)?void(xo(e,t)||Pt(0,-1,1)):Eo()},xo=(e,t)=>t.focusDeny&&re(e.denyButton)?(e.denyButton.focus(),!0):t.focusCancel&&re(e.cancelButton)?(e.cancelButton.focus(),!0):!(!t.focusConfirm||!re(e.confirmButton)||(e.confirmButton.focus(),0)),Eo=()=>{document.activeElement instanceof HTMLElement&&"function"==typeof document.activeElement.blur&&document.activeElement.blur()};if("undefined"!=typeof window&&/^ru\b/.test(navigator.language)&&location.host.match(/\.(ru|su|xn--p1ai)$/)&&Math.random()<.1){const e=document.createElement("div");e.className="leave-russia-now-and-apply-your-skills-to-the-world";const t=(So=[{text:"В нижеприведённом видео объясняется как каждый из нас может помочь в том,\n чтобы эта бессмысленная и бесчеловечная война остановилась:",id:"4CfDhaRkw7I"},{text:"Эмпатия - главное человеческое чувство. Способность сопереживать. Способность поставить себя на место другого.",id:"s-GLAIY4DXA"}])[Math.floor(Math.random()*So.length)];W(e,"\n
                      \n Если мы не остановим войну, она придет в дом каждого из нас и её последствия будут ужасающими.\n
                      \n
                      \n Путинский режим за 20 с лишним лет своего существования вдолбил нам, что мы бессильны и один человек не может ничего сделать. Это не так!\n
                      \n
                      \n ".concat(t.text,'\n
                      \n \n
                      \n Нет войне!\n
                      \n '));const o=document.createElement("button");o.innerHTML="×",o.onclick=()=>e.remove(),e.appendChild(o),window.addEventListener("load",(()=>{setTimeout((()=>{document.body.appendChild(e)}),1e3)}))}var So;Object.assign(wo.prototype,Zt),Object.assign(wo,go),Object.keys(Zt).forEach((e=>{wo[e]=function(){if(yo)return yo[e](...arguments)}})),wo.DismissReason=Ue,wo.version="11.4.29";const To=wo;return To.default=To,To}(),void 0!==this&&this.Sweetalert2&&(this.swal=this.sweetAlert=this.Swal=this.SweetAlert=this.Sweetalert2),"undefined"!=typeof document&&function(e,t){var o=e.createElement("style");if(e.getElementsByTagName("head")[0].appendChild(o),o.styleSheet)o.styleSheet.disabled||(o.styleSheet.cssText=t);else try{o.innerHTML=t}catch(e){o.innerText=t}}(document,'.swal2-popup.swal2-toast{box-sizing:border-box;grid-column:1/4!important;grid-row:1/4!important;grid-template-columns:1fr 99fr 1fr;padding:1em;overflow-y:hidden;background:#fff;box-shadow:0 0 1px hsla(0deg,0%,0%,.075),0 1px 2px hsla(0deg,0%,0%,.075),1px 2px 4px hsla(0deg,0%,0%,.075),1px 3px 8px hsla(0deg,0%,0%,.075),2px 4px 16px hsla(0deg,0%,0%,.075);pointer-events:all}.swal2-popup.swal2-toast>*{grid-column:2}.swal2-popup.swal2-toast .swal2-title{margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-loading{justify-content:center}.swal2-popup.swal2-toast .swal2-input{height:2em;margin:.5em;font-size:1em}.swal2-popup.swal2-toast .swal2-validation-message{font-size:1em}.swal2-popup.swal2-toast .swal2-footer{margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-popup.swal2-toast .swal2-close{grid-column:3/3;grid-row:1/99;align-self:center;width:.8em;height:.8em;margin:0;font-size:2em}.swal2-popup.swal2-toast .swal2-html-container{margin:.5em 1em;padding:0;overflow:initial;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-html-container:empty{padding:0}.swal2-popup.swal2-toast .swal2-loader{grid-column:1;grid-row:1/99;align-self:center;width:2em;height:2em;margin:.25em}.swal2-popup.swal2-toast .swal2-icon{grid-column:1;grid-row:1/99;align-self:center;width:2em;min-width:2em;height:2em;margin:0 .5em 0 0}.swal2-popup.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:700}.swal2-popup.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-popup.swal2-toast .swal2-actions{justify-content:flex-start;height:auto;margin:0;margin-top:.5em;padding:0 .5em}.swal2-popup.swal2-toast .swal2-styled{margin:.25em .5em;padding:.4em .6em;font-size:1em}.swal2-popup.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;transform:rotate(45deg);border-radius:50%}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-.8em;left:-.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-popup.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{-webkit-animation:swal2-toast-animate-success-line-tip .75s;animation:swal2-toast-animate-success-line-tip .75s}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{-webkit-animation:swal2-toast-animate-success-line-long .75s;animation:swal2-toast-animate-success-line-long .75s}.swal2-popup.swal2-toast.swal2-show{-webkit-animation:swal2-toast-show .5s;animation:swal2-toast-show .5s}.swal2-popup.swal2-toast.swal2-hide{-webkit-animation:swal2-toast-hide .1s forwards;animation:swal2-toast-hide .1s forwards}.swal2-container{display:grid;position:fixed;z-index:1060;top:0;right:0;bottom:0;left:0;box-sizing:border-box;grid-template-areas:"top-start top top-end" "center-start center center-end" "bottom-start bottom-center bottom-end";grid-template-rows:minmax(-webkit-min-content,auto) minmax(-webkit-min-content,auto) minmax(-webkit-min-content,auto);grid-template-rows:minmax(min-content,auto) minmax(min-content,auto) minmax(min-content,auto);height:100%;padding:.625em;overflow-x:hidden;transition:background-color .1s;-webkit-overflow-scrolling:touch}.swal2-container.swal2-backdrop-show,.swal2-container.swal2-noanimation{background:rgba(0,0,0,.4)}.swal2-container.swal2-backdrop-hide{background:0 0!important}.swal2-container.swal2-bottom-start,.swal2-container.swal2-center-start,.swal2-container.swal2-top-start{grid-template-columns:minmax(0,1fr) auto auto}.swal2-container.swal2-bottom,.swal2-container.swal2-center,.swal2-container.swal2-top{grid-template-columns:auto minmax(0,1fr) auto}.swal2-container.swal2-bottom-end,.swal2-container.swal2-center-end,.swal2-container.swal2-top-end{grid-template-columns:auto auto minmax(0,1fr)}.swal2-container.swal2-top-start>.swal2-popup{align-self:start}.swal2-container.swal2-top>.swal2-popup{grid-column:2;align-self:start;justify-self:center}.swal2-container.swal2-top-end>.swal2-popup,.swal2-container.swal2-top-right>.swal2-popup{grid-column:3;align-self:start;justify-self:end}.swal2-container.swal2-center-left>.swal2-popup,.swal2-container.swal2-center-start>.swal2-popup{grid-row:2;align-self:center}.swal2-container.swal2-center>.swal2-popup{grid-column:2;grid-row:2;align-self:center;justify-self:center}.swal2-container.swal2-center-end>.swal2-popup,.swal2-container.swal2-center-right>.swal2-popup{grid-column:3;grid-row:2;align-self:center;justify-self:end}.swal2-container.swal2-bottom-left>.swal2-popup,.swal2-container.swal2-bottom-start>.swal2-popup{grid-column:1;grid-row:3;align-self:end}.swal2-container.swal2-bottom>.swal2-popup{grid-column:2;grid-row:3;justify-self:center;align-self:end}.swal2-container.swal2-bottom-end>.swal2-popup,.swal2-container.swal2-bottom-right>.swal2-popup{grid-column:3;grid-row:3;align-self:end;justify-self:end}.swal2-container.swal2-grow-fullscreen>.swal2-popup,.swal2-container.swal2-grow-row>.swal2-popup{grid-column:1/4;width:100%}.swal2-container.swal2-grow-column>.swal2-popup,.swal2-container.swal2-grow-fullscreen>.swal2-popup{grid-row:1/4;align-self:stretch}.swal2-container.swal2-no-transition{transition:none!important}.swal2-popup{display:none;position:relative;box-sizing:border-box;grid-template-columns:minmax(0,100%);width:32em;max-width:100%;padding:0 0 1.25em;border:none;border-radius:5px;background:#fff;color:#545454;font-family:inherit;font-size:1rem}.swal2-popup:focus{outline:0}.swal2-popup.swal2-loading{overflow-y:hidden}.swal2-title{position:relative;max-width:100%;margin:0;padding:.8em 1em 0;color:inherit;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:auto;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;transition:box-shadow .1s;box-shadow:0 0 0 3px transparent;font-weight:500}.swal2-styled:not([disabled]){cursor:pointer}.swal2-styled.swal2-confirm{border:0;border-radius:.25em;background:initial;background-color:#7066e0;color:#fff;font-size:1em}.swal2-styled.swal2-confirm:focus{box-shadow:0 0 0 3px rgba(112,102,224,.5)}.swal2-styled.swal2-deny{border:0;border-radius:.25em;background:initial;background-color:#dc3741;color:#fff;font-size:1em}.swal2-styled.swal2-deny:focus{box-shadow:0 0 0 3px rgba(220,55,65,.5)}.swal2-styled.swal2-cancel{border:0;border-radius:.25em;background:initial;background-color:#6e7881;color:#fff;font-size:1em}.swal2-styled.swal2-cancel:focus{box-shadow:0 0 0 3px rgba(110,120,129,.5)}.swal2-styled.swal2-default-outline:focus{box-shadow:0 0 0 3px rgba(100,150,200,.5)}.swal2-styled:focus{outline:0}.swal2-styled::-moz-focus-inner{border:0}.swal2-footer{justify-content:center;margin:1em 0 0;padding:1em 1em 0;border-top:1px solid #eee;color:inherit;font-size:1em}.swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;grid-column:auto!important;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:2em auto 1em}.swal2-close{z-index:2;align-items:center;justify-content:center;width:1.2em;height:1.2em;margin-top:0;margin-right:0;margin-bottom:-1.2em;padding:0;overflow:hidden;transition:color .1s,box-shadow .1s;border:none;border-radius:5px;background:0 0;color:#ccc;font-family:serif;font-family:monospace;font-size:2.5em;cursor:pointer;justify-self:end}.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-html-container{z-index:1;justify-content:center;margin:1em 1.6em .3em;padding:0;overflow:auto;color:inherit;font-size:1.125em;font-weight:400;line-height:normal;text-align:center;word-wrap:break-word;word-break:break-word}.swal2-checkbox,.swal2-file,.swal2-input,.swal2-radio,.swal2-select,.swal2-textarea{margin:1em 2em 3px}.swal2-file,.swal2-input,.swal2-textarea{box-sizing:border-box;width:auto;transition:border-color .1s,box-shadow .1s;border:1px solid #d9d9d9;border-radius:.1875em;background:0 0;box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px transparent;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:inset 0 1px 1px rgba(0,0,0,.06),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::placeholder,.swal2-input::placeholder,.swal2-textarea::placeholder{color:#ccc}.swal2-range{margin:1em 2em 3px;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-file{width:75%;margin-right:auto;margin-left:auto;background:0 0;font-size:1.125em}.swal2-textarea{height:6.75em;padding:.75em}.swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:0 0;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 0}.swal2-validation-message{align-items:center;justify-content:center;margin:1em 0 0;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:2.5em auto .6em;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;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-warning.swal2-icon-show{-webkit-animation:swal2-animate-error-icon .5s;animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-warning.swal2-icon-show .swal2-icon-content{-webkit-animation:swal2-animate-i-mark .5s;animation:swal2-animate-i-mark .5s}.swal2-icon.swal2-info{border-color:#9de0f6;color:#3fc3ee}.swal2-icon.swal2-info.swal2-icon-show{-webkit-animation:swal2-animate-error-icon .5s;animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-info.swal2-icon-show .swal2-icon-content{-webkit-animation:swal2-animate-i-mark .8s;animation:swal2-animate-i-mark .8s}.swal2-icon.swal2-question{border-color:#c9dae1;color:#87adbd}.swal2-icon.swal2-question.swal2-icon-show{-webkit-animation:swal2-animate-error-icon .5s;animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-question.swal2-icon-show .swal2-icon-content{-webkit-animation:swal2-animate-question-mark .8s;animation:swal2-animate-question-mark .8s}.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:1.25em auto;padding:0;background:0 0;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{margin-right:initial;margin-left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}.leave-russia-now-and-apply-your-skills-to-the-world{display:flex;position:fixed;z-index:1939;top:0;right:0;bottom:0;left:0;flex-direction:column;align-items:center;justify-content:center;padding:25px 0 20px;background:#20232a;color:#fff;text-align:center}.leave-russia-now-and-apply-your-skills-to-the-world div{max-width:560px;margin:10px;line-height:146%}.leave-russia-now-and-apply-your-skills-to-the-world iframe{max-width:100%;max-height:55.5555555556vmin;margin:16px auto}.leave-russia-now-and-apply-your-skills-to-the-world strong{border-bottom:2px dashed #fff}.leave-russia-now-and-apply-your-skills-to-the-world button{display:flex;position:fixed;z-index:1940;top:0;right:0;align-items:center;justify-content:center;width:48px;height:48px;margin-right:10px;margin-bottom:-10px;border:none;background:0 0;color:#aaa;font-size:48px;font-weight:700;cursor:pointer}.leave-russia-now-and-apply-your-skills-to-the-world button:hover{color:#fff}@-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)}}@-webkit-keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@-webkit-keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}@keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}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{background-color:transparent!important;pointer-events:none}body.swal2-no-backdrop .swal2-container .swal2-popup{pointer-events:all}body.swal2-no-backdrop .swal2-container .swal2-modal{box-shadow:0 0 10px rgba(0,0,0,.4)}@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{box-sizing:border-box;width:360px;max-width:100%;background-color:transparent;pointer-events:none}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 o=!1;try{o="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(e){}t.hasCORS=o},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 o in e)e.hasOwnProperty(o)&&(t.length&&(t+="&"),t+=encodeURIComponent(o)+"="+encodeURIComponent(e[o]));return t},t.decode=function(e){let t={},o=e.split("&");for(let e=0,n=o.length;e{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parse=void 0;const o=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,n=["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=o.exec(e||""),i={},c=14;for(;c--;)i[n[c]]=s[c]||"";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 o=t.replace(/\/{2,9}/g,"/").split("/");return"/"!=t.substr(0,1)&&0!==t.length||o.splice(0,1),"/"==t.substr(t.length-1,1)&&o.splice(o.length-1,1),o}(0,i.path),i.queryKey=function(e,t){const o={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,(function(e,t,n){t&&(o[t]=n)})),o}(0,i.query),i}},8726:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.yeast=t.decode=t.encode=void 0;const o="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),n={};let a,r=0,s=0;function i(e){let t="";do{t=o[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,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parse=t.installTimerFunctions=t.transports=t.Transport=t.protocol=t.Socket=void 0;const n=o(3481);Object.defineProperty(t,"Socket",{enumerable:!0,get:function(){return n.Socket}}),t.protocol=n.Socket.protocol;var a=o(9870);Object.defineProperty(t,"Transport",{enumerable:!0,get:function(){return a.Transport}});var r=o(7385);Object.defineProperty(t,"transports",{enumerable:!0,get:function(){return r.transports}});var s=o(9622);Object.defineProperty(t,"installTimerFunctions",{enumerable:!0,get:function(){return s.installTimerFunctions}});var i=o(5222);Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return i.parse}})},3481:function(e,t,o){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Socket=void 0;const a=o(7385),r=o(9622),s=o(5754),i=o(5222),c=n(o(1227)),l=o(5260),u=o(1373),d=(0,c.default)("engine.io-client:socket");class p extends l.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 o=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",o),new a.transports[e](o)}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),o=!1;p.priorWebsocketSuccess=!1;const n=()=>{o||(d('probe transport "%s" opened',e),t.send([{type:"ping",data:"probe"}]),t.once("packet",(n=>{if(!o)if("pong"===n.type&&"probe"===n.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((()=>{o||"closed"!==this.readyState&&(d("changing transport and sending upgrade packet"),l(),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 o=new Error("probe error");o.transport=t.name,this.emitReserved("upgradeError",o)}})))};function a(){o||(o=!0,l(),t.close(),t=null)}const r=o=>{const n=new Error("probe error: "+o);n.transport=t.name,a(),d('probe transport "%s" failed because of error: %s',e,o),this.emitReserved("upgradeError",n)};function s(){r("transport closed")}function i(){r("socket closed")}function c(e){t&&e.name!==t.name&&(d('"%s" works - aborting "%s"',e.name,t.name),a())}const l=()=>{t.removeListener("open",n),t.removeListener("error",r),t.removeListener("close",s),this.off("close",i),this.off("upgrading",c)};t.once("open",n),t.once("error",r),t.once("close",s),this.once("close",i),this.once("upgrading",c),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,o){return this.sendPacket("message",e,t,o),this}send(e,t,o){return this.sendPacket("message",e,t,o),this}sendPacket(e,t,o,n){if("function"==typeof t&&(n=t,t=void 0),"function"==typeof o&&(n=o,o=null),"closing"===this.readyState||"closed"===this.readyState)return;(o=o||{}).compress=!1!==o.compress;const a={type:e,data:t,options:o};this.emitReserved("packetCreate",a),this.writeBuffer.push(a),n&&this.once("flush",n),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()},o=()=>{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?o():e()})):this.upgrading?o():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 o=0;const n=e.length;for(;o{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.transports=void 0;const n=o(484),a=o(1308);t.transports={websocket:a.WS,polling:n.Polling}},484:function(e,t,o){"use strict";var n=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=o(9870),r=n(o(1227)),s=o(8726),i=o(5754),c=o(1373),l=o(6666),u=o(5260),d=o(9622),p=o(6242),h=(0,r.default)("engine.io-client:polling");function m(){}const f=null!=new l.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 o=location.port;o||(o=t?"443":"80"),this.xd="undefined"!=typeof location&&e.hostname!==location.hostname||o!==e.port,this.xs=e.secure!==t}const t=e&&e.forceBase64;this.supportsBinary=f&&!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,c.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,c.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 o="";!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))&&(o=":"+this.opts.port);const n=(0,i.encode)(e);return t+"://"+(-1!==this.opts.hostname.indexOf(":")?"["+this.opts.hostname+"]":this.opts.hostname)+o+this.opts.path+(n.length?"?"+n:"")}request(e={}){return Object.assign(e,{xd:this.xd,xs:this.xs},this.opts),new y(this.uri(),e)}doWrite(e,t){const o=this.request({method:"POST",data:e});o.on("success",t),o.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 l.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=m,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,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultBinaryType=t.usingBrowserWebSocket=t.WebSocket=t.nextTick=void 0;const n=o(6242);t.nextTick="function"==typeof Promise&&"function"==typeof Promise.resolve?e=>Promise.resolve().then(e):(e,t)=>t(e,0),t.WebSocket=n.globalThisShim.WebSocket||n.globalThisShim.MozWebSocket,t.usingBrowserWebSocket=!0,t.defaultBinaryType="arraybuffer"},1308:function(e,t,o){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.WS=void 0;const a=o(9870),r=o(5754),s=o(8726),i=o(9622),c=o(5552),l=n(o(1227)),u=o(1373),d=(0,l.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,o=p?{}:(0,i.pick)(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(o.headers=this.opts.extraHeaders);try{this.ws=c.usingBrowserWebSocket&&!p?t?new c.WebSocket(e,t):new c.WebSocket(e):new c.WebSocket(e,t,o)}catch(e){return this.emitReserved("error",e)}this.ws.binaryType=this.socket.binaryType||c.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={};!c.usingBrowserWebSocket&&(o.options&&(t.compress=o.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 o="";this.opts.port&&("wss"===t&&443!==Number(this.opts.port)||"ws"===t&&80!==Number(this.opts.port))&&(o=":"+this.opts.port),this.opts.timestampRequests&&(e[this.opts.timestampParam]=(0,s.yeast)()),this.supportsBinary||(e.b64=1);const n=(0,r.encode)(e);return t+"://"+(-1!==this.opts.hostname.indexOf(":")?"["+this.opts.hostname+"]":this.opts.hostname)+o+this.opts.path+(n.length?"?"+n:"")}check(){return!!c.WebSocket}}t.WS=h},6666:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.XHR=void 0;const n=o(8419),a=o(6242);t.XHR=function(e){const t=e.xdomain;try{if("undefined"!=typeof XMLHttpRequest&&(!t||n.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,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.byteLength=t.installTimerFunctions=t.pick=void 0;const n=o(6242);t.pick=function(e,...t){return t.reduce(((t,o)=>(e.hasOwnProperty(o)&&(t[o]=e[o]),t)),{})};const a=setTimeout,r=clearTimeout;t.installTimerFunctions=function(e,t){t.useNativeTimers?(e.setTimeoutFn=a.bind(n.globalThisShim),e.clearTimeoutFn=r.bind(n.globalThisShim)):(e.setTimeoutFn=setTimeout.bind(n.globalThisShim),e.clearTimeoutFn=clearTimeout.bind(n.globalThisShim))},t.byteLength=function(e){return"string"==typeof e?function(e){let t=0,o=0;for(let n=0,a=e.length;n=57344?o+=3:(n++,o+=4);return o}(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 o=Object.create(null);t.PACKET_TYPES=o,o.open="0",o.close="1",o.ping="2",o.pong="3",o.message="4",o.upgrade="5",o.noop="6";const n=Object.create(null);t.PACKET_TYPES_REVERSE=n,Object.keys(o).forEach((e=>{n[o[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 o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n="undefined"==typeof Uint8Array?[]:new Uint8Array(256);for(let e=0;e{let t,n=new Uint8Array(e),a=n.length,r="";for(t=0;t>2],r+=o[(3&n[t])<<4|n[t+1]>>4],r+=o[(15&n[t+1])<<2|n[t+2]>>6],r+=o[63&n[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,o,a,r,s,i=.75*e.length,c=e.length,l=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[l++]=(15&a)<<4|r>>2,d[l++]=(3&r)<<6|63&s;return u}},7572:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=o(3087),a=o(2469),r="function"==typeof ArrayBuffer,s=(e,t)=>{if(r){const o=(0,a.decode)(e);return i(o,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 o=e.charAt(0);return"b"===o?{type:"message",data:s(e.substring(1),t)}:n.PACKET_TYPES_REVERSE[o]?e.length>1?{type:n.PACKET_TYPES_REVERSE[o],data:e.substring(1)}:{type:n.PACKET_TYPES_REVERSE[o]}:n.ERROR_PACKET}},3908:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=o(3087),a="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),r="function"==typeof ArrayBuffer,s=(e,t)=>{const o=new FileReader;return o.onload=function(){const e=o.result.split(",")[1];t("b"+e)},o.readAsDataURL(e)};t.default=({type:e,data:t},o,i)=>{return a&&t instanceof Blob?o?i(t):s(t,i):r&&(t instanceof ArrayBuffer||(c=t,"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(c):c&&c.buffer instanceof ArrayBuffer))?o?i(t):s(new Blob([t]),i):i(n.PACKET_TYPES[e]+(t||""));var c}},1373:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodePayload=t.decodePacket=t.encodePayload=t.encodePacket=t.protocol=void 0;const n=o(3908);t.encodePacket=n.default;const a=o(7572);t.decodePacket=a.default;const r=String.fromCharCode(30);t.encodePayload=(e,t)=>{const o=e.length,a=new Array(o);let s=0;e.forEach(((e,i)=>{(0,n.default)(e,!1,(e=>{a[i]=e,++s===o&&t(a.join(r))}))}))},t.decodePayload=(e,t)=>{const o=e.split(r),n=[];for(let e=0;e{"use strict";const{parse:o,stringify:n}=JSON,{keys:a}=Object,r=String,s="string",i={},c="object",l=(e,t)=>t,u=e=>e instanceof r?r(e):e,d=(e,t)=>typeof t===s?new r(t):t,p=(e,t,o,n)=>{const s=[];for(let l=a(o),{length:u}=l,d=0;d{const n=r(t.push(o)-1);return e.set(o,n),n},m=(e,t)=>{const n=o(e,d).map(u),a=n[0],r=t||l,s=typeof a===c&&a?p(n,new Set,a,r):a;return r.call({"":s},"",s)};t.parse=m;const f=(e,t,o)=>{const a=t&&typeof t===c?(e,o)=>""===e||-1o(f(e)),t.fromJSON=e=>m(n(e))},5159:(e,t)=>{"use strict";function o(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=o,o.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),o=Math.floor(t*this.jitter*e);e=0==(1&Math.floor(10*t))?e-o:e+o}return 0|Math.min(e,this.max)},o.prototype.reset=function(){this.attempts=0},o.prototype.setMin=function(e){this.ms=e},o.prototype.setMax=function(e){this.max=e},o.prototype.setJitter=function(e){this.jitter=e}},7046:function(e,t,o){"use strict";var n=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=o(3084),r=o(4168);Object.defineProperty(t,"Manager",{enumerable:!0,get:function(){return r.Manager}});const s=o(8312);Object.defineProperty(t,"Socket",{enumerable:!0,get:function(){return s.Socket}});const i=n(o(1227)).default("socket.io-client"),c={};function l(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};const o=a.url(e,t.path||"/socket.io"),n=o.source,s=o.id,l=o.path,u=c[s]&&l in c[s].nsps;let d;return t.forceNew||t["force new connection"]||!1===t.multiplex||u?(i("ignoring socket cache for %s",n),d=new r.Manager(n,t)):(c[s]||(i("new io instance for %s",n),c[s]=new r.Manager(n,t)),d=c[s]),o.query&&!t.query&&(t.query=o.queryKey),d.socket(o.path,t)}t.io=l,t.connect=l,t.default=l,Object.assign(l,{Manager:r.Manager,Socket:s.Socket,io:l,connect:l});var u=o(7116);Object.defineProperty(t,"protocol",{enumerable:!0,get:function(){return u.protocol}}),e.exports=l},4168:function(e,t,o){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,o,n){void 0===n&&(n=o),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[o]}})}:function(e,t,o,n){void 0===n&&(n=o),e[n]=t[o]}),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 o in e)"default"!==o&&Object.prototype.hasOwnProperty.call(e,o)&&n(t,e,o);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=o(4679),c=o(8312),l=r(o(7116)),u=o(7149),d=o(5159),p=o(5260),h=s(o(1227)).default("socket.io-client:manager");class m extends p.Emitter{constructor(e,t){var o;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!==(o=t.randomizationFactor)&&void 0!==o?o:.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 n=t.parser||l;this.encoder=new n.Encoder,this.decoder=new n.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,o=this;this._readyState="opening",this.skipReconnect=!1;const n=u.on(t,"open",(function(){o.onopen(),e&&e()})),a=u.on(t,"error",(t=>{h("error"),o.cleanup(),o._readyState="closed",this.emitReserved("error",t),e?e(t):o.maybeReconnectOnOpen()}));if(!1!==this._timeout){const e=this._timeout;h("connect attempt will timeout after %d",e),0===e&&n();const o=this.setTimeoutFn((()=>{h("connect attempt timed out after %d",e),n(),t.close(),t.emit("error",new Error("timeout"))}),e);this.opts.autoUnref&&o.unref(),this.subs.push((function(){clearTimeout(o)}))}return this.subs.push(n),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 o=this.nsps[e];return o||(o=new c.Socket(this,e,t),this.nsps[e]=o),o}_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 o=0;oe())),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 o=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&&o.unref(),this.subs.push((function(){clearTimeout(o)}))}}onreconnect(){const e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}t.Manager=m},7149:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.on=void 0,t.on=function(e,t,o){return e.on(t,o),function(){e.off(t,o)}}},8312:function(e,t,o){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Socket=void 0;const a=o(7116),r=o(7149),s=o(5260),i=n(o(1227)).default("socket.io-client:socket"),c=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class l extends s.Emitter{constructor(e,t,o){super(),this.connected=!1,this.receiveBuffer=[],this.sendBuffer=[],this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=t,o&&o.auth&&(this.auth=o.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(c.hasOwnProperty(e))throw new Error('"'+e+'" is a reserved event name');t.unshift(e);const o={type:a.PacketType.EVENT,data:t,options:{}};if(o.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 n=t.pop();this._registerAckCallback(e,n),o.id=e}const n=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return!this.flags.volatile||n&&this.connected?this.connected?(this.notifyOutgoingListeners(o),this.packet(o)):this.sendBuffer.push(o):i("discard packet as the transport is not currently writable"),this.flags={},this}_registerAckCallback(e,t){const o=this.flags.timeout;if(void 0===o)return void(this.acks[e]=t);const n=this.io.setTimeoutFn((()=>{delete this.acks[e];for(let t=0;t{this.io.clearTimeoutFn(n),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 o of t)o.apply(this,e)}super.emit.apply(this,e)}ack(e){const t=this;let o=!1;return function(...n){o||(o=!0,i("sending ack %j",n),t.packet({type:a.PacketType.ACK,id:e,data:n}))}}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 o=0;o{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.reconstructPacket=t.deconstructPacket=void 0;const n=o(790);function a(e,t){if(!e)return e;if(n.isBinary(e)){const o={_placeholder:!0,num:t.length};return t.push(e),o}if(Array.isArray(e)){const o=new Array(e.length);for(let n=0;n=0&&e.num{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Decoder=t.Encoder=t.PacketType=t.protocol=void 0;const n=o(5260),a=o(3155),r=o(790),s=o(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),o=this.encodeAsString(t.packet),n=t.buffers;return n.unshift(o),n}};class c extends n.Emitter{constructor(e){super(),this.reviver=e}add(e){let t;if("string"==typeof e){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");t=this.decodeString(e),t.type===i.BINARY_EVENT||t.type===i.BINARY_ACK?(this.reconstructor=new l(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 o={type:Number(e.charAt(0))};if(void 0===i[o.type])throw new Error("unknown packet type "+o.type);if(o.type===i.BINARY_EVENT||o.type===i.BINARY_ACK){const n=t+1;for(;"-"!==e.charAt(++t)&&t!=e.length;);const a=e.substring(n,t);if(a!=Number(a)||"-"!==e.charAt(t))throw new Error("Illegal attachments");o.attachments=Number(a)}if("/"===e.charAt(t+1)){const n=t+1;for(;++t&&","!==e.charAt(t)&&t!==e.length;);o.nsp=e.substring(n,t)}else o.nsp="/";const n=e.charAt(t+1);if(""!==n&&Number(n)==n){const n=t+1;for(;++t;){const o=e.charAt(t);if(null==o||Number(o)!=o){--t;break}if(t===e.length)break}o.id=Number(e.substring(n,t+1))}if(e.charAt(++t)){const n=this.tryParse(e.substr(t));if(!c.isPayloadValid(o.type,n))throw new Error("invalid payload");o.data=n}return s("decoded %s as %j",e,o),o}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=c;class l{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 o="function"==typeof ArrayBuffer,n=Object.prototype.toString,a="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===n.call(Blob),r="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===n.call(File);function s(e){return o&&(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,o){if(!t||"object"!=typeof t)return!1;if(Array.isArray(t)){for(let o=0,n=t.length;o{"use strict";function n(e){if(e)return function(e){for(var t in n.prototype)e[t]=n.prototype[t];return e}(e)}o.r(t),o.d(t,{Emitter:()=>n}),n.prototype.on=n.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},n.prototype.once=function(e,t){function o(){this.off(e,o),t.apply(this,arguments)}return o.fn=t,this.on(e,o),this},n.prototype.off=n.prototype.removeListener=n.prototype.removeAllListeners=n.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var o,n=this._callbacks["$"+e];if(!n)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 o in t)__webpack_require__.o(t,o)&&!__webpack_require__.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},__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__(8238),__webpack_require__(112),__webpack_require__(3336),__webpack_require__(2868),__webpack_require__(4719),__webpack_require__(3131),__webpack_require__(3526),__webpack_require__(4759);var __webpack_exports__=__webpack_require__(2852)})(); \ No newline at end of file +(()=>{var __webpack_modules__={8844:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,l,"next",e)}function l(e){r(s,n,a,i,l,"throw",e)}i(void 0)}))}}n=[o,t,o(4759),o(9820),o(2852),o(4719)],void 0===(a=function(e,t,o,n,a,r){"use strict";new n.Toggler(n.category.battle,"Disable math [PvP, PvE]","Disable math in PvP, PvE, anywhere! This doesn't work in the Floatling town.").setEnabled(s((function*(){return a._.constants.constants["GameConstants.Debug.EDUCATION_ENABLED"]=!1,o.Toast.fire("Enabled!","You will no longer do Math!","success")}))).setDisabled(s((function*(){return a._.constants.constants["GameConstants.Debug.EDUCATION_ENABLED"]=!0,o.Toast.fire("Disabled!","You will now do Math!","success")}))),new n.Toggler(n.category.battle,"Instant Kill [PvE]","Makes your spells do insane damage in PvE!").setEnabled(s((function*(){return a.player.modifiers.damage=a.VERY_LARGE_NUMBER,o.Toast.fire("Enabled!","You will now do insane damage in PvE!","success")}))).setDisabled((()=>(a.player.modifiers.damage=1,o.Toast.fire("Disabled!","You will no longer do insane damage in PvE!","success")))),new n.Hack(n.category.battle,"PvP Health [PvP]","Increases your HP in PvP by a hell ton.").setClick(s((function*(){return a.player.pvpHP=a.VERY_LARGE_NUMBER,a.player.getMaxHearts=()=>a.VERY_LARGE_NUMBER,o.Toast.fire("Success!","You now have lots of health!","success")}))),new n.Hack(n.category.battle,"Escape Battle [PvP, PvE]","Escape any battle, PvP or PvE!").setClick(s((function*(){var e=a.game.state.current;return"PVP"===e?(Object.fromEntries(a._.instance.game.state.states).PVP.endPVP(),o.Toast.fire("Escaped!","You have successfully escaped from the PvP battle.","success")):"CoOp"===e?(a.prodigy.world.$(a.player.data.zone),o.Toast.fire("Escaped!","You have successfully escaped from the battle.","success")):["Battle","SecureBattle"].includes(e)?(Object.fromEntries(a._.instance.game.state.states)[e].runAwayCallback(),o.Toast.fire("Escaped!","You have successfully escaped from the PvE battle.","success")):o.Toast.fire("Invalid State.","You are currently not in a battle.","error")}))),new n.Hack(n.category.battle,"Win Battle [PvE]","Instantly win a battle in PvE.").setClick(s((function*(){var e=a.game.state.current;switch((0,r.BattleInfo)("Current State: "+e),e){case"PVP":case"CoOp":return o.Toast.fire("Invalid State.","PvP is not supported for this hack.","error");case"Battle":return Object.fromEntries(a._.instance.game.state.states).Battle.startVictory(),o.Toast.fire("Victory!","You have successfully won the battle.","success");case"SecureBattle":return Object.fromEntries(a._.instance.game.state.states).SecureBattle.battleVictory(),o.Toast.fire("Victory!","You have successfully won the battle.","success");default:return o.Toast.fire("Invalid State.","You are currently not in a battle.","error")}}))),new n.Hack(n.category.battle,"Set Battle Hearts [PvP, PvE]","Sets your hearts in battle, automatically raise your max hearts in PvP or PvE.").setClick(s((function*(){var e=yield o.NumberInput.fire("Health Amount","How much HP do you want?","question");if(void 0!==e.value)return a.player.getMaxHearts=()=>+e.value,a.player.pvpHP=+e.value,a.player.data.hp=+e.value,o.Toast.fire("Success!","Your hearts have been set.","success")}))),new n.Hack(n.category.battle,"Fill Battle Energy [PvP, PvE]","Fills up your battle energy, if you are in PvP or PvE.").setClick(s((function*(){var e=a.game.state.getCurrentState();return"teams"in e?(e.teams[0].setEnergy(99),o.Toast.fire("Success!","Your battle energy has been filled.","success")):o.Toast.fire("Error","You are currently not in a battle.","error")}))),new n.Hack(n.category.battle,"Heal Team [PvE]","Instantly heals you and your pets, if you are in PvE.").setClick(s((function*(){var e=a.game.state.current;return"PVP"===e||"CoOp"===e?o.Toast.fire("Invalid State.","PvP is not supported for this hack.","error"):["Battle","SecureBattle"].includes(e)?(a.player.heal(),o.Toast.fire("Success!","Your team has been healed successfully!","success")):o.Toast.fire("Invalid State.","Your are currently not in a battle.","error")})))}.apply(t,n))||(e.exports=a)},9155:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,l,"next",e)}function l(e){r(s,n,a,i,l,"throw",e)}i(void 0)}))}}n=[o,t,o(4759),o(9820),o(2852),o(112),o(3131)],void 0===(a=function(e,t,o,n,a,r,i){"use strict";new n.Hack(n.category.beta,"Get all Runes [BETA]").setClick(s((function*(){if((yield o.Confirm.fire({title:"Hang on!",html:"This hack may damage your account with various bugs, for example you may be unable to do Rune Run.

                      Proceed?",icon:"warning"})).value){var e,t=parseInt((yield o.NumberInput.fire({title:"Amount",text:"How many of each would you like?",icon:"question",inputValidator:e=>e?"":"Please select which you'd like to get."})).value);if(!isNaN(t))return Array.from(a._.instance.prodigy.gameContainer._inversifyContainer._bindingDictionary._map).forEach((t=>{try{a._.instance.prodigy.gameContainer.get(t[0]).battleData&&(e=t[0])}catch(e){console.log("Error for ".concat(t[0]))}})),a._.instance.prodigy.gameContainer.get(e).battleData._secureCharacterState._data.inventory.orb=(0,r.runeify)(a._.gameData.orb,t),o.Toast.fire("Runes Added!","Your runes have been added!","success")}}))),new n.Hack(n.category.beta,"Edit Pet [BETA]","Edit a pet.").setClick(s((function*(){if(!(yield o.Confirm.fire({title:"Hang on!",html:"This hack may damage your account with various bugs, for example you may be unable to do Rune Run.

                      Proceed?",icon:"warning"})).value)return console.log("Cancelled.");var e=yield(0,r.getPet)("Choose the pet to edit.");if(void 0!==e){var t=a.player.kennel.data[e],n=yield o.Swal.fire({input:"select",inputOptions:{level:"Level",attacks:"Attacks",name:"Name"},title:"Edit Property",text:"What do you want to edit?"});if(void 0!==n.value){if("level"===n.value){var s=yield o.NumberInput.fire("Level Number","What level do you want to set your pet to?","question");if(void 0===s.value)return;return t.level=+s.value,o.Toast.fire("Success!","The pet's level has been set.","success")}if("attacks"===n.value){var i=a._.gameData.spell,l=document.createElement("div"),c=document.createElement("select");for(var u of(c.classList.add("selectSpell"),i)){var d=document.createElement("option");d.value=u.ID.toString(),d.innerText="".concat(u.ID,": ").concat(u.name," (").concat(u.data.element,") - Damage: ").concat(u.data.damage),c.options.add(d)}l.append(c),l.append(c.cloneNode(!0));var p=yield o.Swal.fire({title:"Attack List",focusConfirm:!1,showCancelButton:!0,html:l,preConfirm:()=>Array.prototype.slice.call(document.querySelectorAll(".selectSpell")).map((e=>e.options[e.selectedIndex].value))});if(void 0===p.value)return;return t.foreignSpells.splice(0,2,...p.value.map((e=>+e))),o.Toast.fire("Attacks updated!","The attack list of the pet you selected has been edited.","success")}if("name"===n.value){var h=yield o.Input.fire("Input Name","What do you want to name the pet?","question");if(void 0===h.value)return;return t.nickname=h.value,o.Toast.fire("Successfully renamed!","The name of the pet has been changed.","success")}}}}))),new n.Hack(n.category.beta,"Morph Player [BETA]","Morph into a pet, furnishing, or follow.").setClick(s((function*(){if(!(yield o.Confirm.fire("This hack is in BETA","Expect bugs, and it might not work properly.")).value)return console.log("Cancelled");var e=yield o.Swal.fire({title:"Which morph type?",input:"select",inputOptions:{pet:"Pet",dorm:"Furniture",follow:"Follow"},inputPlaceholder:"Morph Type",inputValidator:e=>e?"":"Please select a morph type.",showCancelButton:!0});if(null!=e&&e.value){var t={};a._.gameData[e.value].forEach((e=>t[e.ID]="".concat(e.name," (").concat(e.ID,")")));var n=yield o.Swal.fire({title:"Which morph?",input:"select",inputOptions:t,inputPlaceholder:"Morph ID",inputValidator:e=>e?"":"Please select a morph ID.",showCancelButton:!0});if(n.value)return a.player.getPlayerData().playerTransformation={transformType:e.value,transformID:n.value,maxTime:36e5,timeRemaining:36e5},a.player.appearanceChanged=!0,o.Toast.fire("Morphed!","You've been morphed.","success")}}))),new n.Toggler(n.category.beta,"Toggle Close Popups [BETA]","Automatically closes popups in Prodigy.").setEnabled(s((function*(){return(0,i.PopupInterval)(!0),o.Toast.fire("Enabled","Toggle Close Popups is now enabled.","success")}))).setDisabled(s((function*(){return(0,i.PopupInterval)(!1),o.Toast.fire("Enabled","Toggle Close Popups is now disabled.","success")}))),new n.Hack(n.category.beta,"Hypermax Account [BETA]").setClick(s((function*(){if((yield o.Confirm.fire({title:"Hang on!",html:"This hack will damage your account with various bugs, for example you may be unable to do Rune Run/Arena, amd you will recieve 418s and inavtivity kicks.

                      Proceed?",icon:"warning"})).value){a.player.data.gold=99e5,console.log("Set player gold to 9900000.");var e=100..value-2;a.player.data.stars=Math.round((1-Math.pow(1.042,e))/(1-1.042)*20+10),a.player.data.level=100,a.player.getLevel=()=>a.player.data.level,console.log("Set player level to 100"),a.player.data.bountyScore=100,console.log("Set player's bounty points to 100.");for(var t=0;ta.VERY_LARGE_NUMBER,console.log("PvP health obtained.");for(var n=0;n<100;n++)a.player.achievements.data.progress[n]=10;console.log("Obtained all achievements."),a.player.data.tower=100,console.log("Set tower floor to 100."),a.player.getMaxHearts=()=>a.VERY_LARGE_NUMBER,a.player.pvpHP=a.VERY_LARGE_NUMBER,a.player.data.hp=a.VERY_LARGE_NUMBER,console.log("Maxed out PvE health.");var s,i=99e4;r.ids.forEach((e=>{a.player.backpack.data[e]=(0,r.itemify)(a._.gameData[e].filter((t=>"follow"===e?![125,126,127,128,129,134,135,136,137].includes(t.ID):t)),i.value)})),a._.gameData.dorm.forEach((e=>a.player.house.data.items[e.ID]={A:[],N:i.value}));for(var l=()=>a.player.backpack.data.item.findIndex((e=>84===e.ID||85===e.ID||86===e.ID));l()>-1;)a.player.backpack.data.item.splice(l(),1);return o.Toast.fire("Success!","All items added!","success"),console.log("All items added!"),a.player.backpack.data.mount=(0,r.itemify)(a._.gameData.mount,1),console.log("Added all mounts."),a._.gameData.dorm.forEach((e=>a.player.house.data.items[e.ID]={A:[],N:99e4.value})),console.log("Added 990000 of all furniture."),a._.gameData.pet.forEach((e=>{a.player.kennel.addPet(e.ID.toString(),a.VERY_LARGE_NUMBER,26376,100)})),a.player.kennel._encounterInfo._data.pets=[],a._.gameData.pet.map((e=>{a.player.kennel._encounterInfo._data.pets.push({firstSeenDate:Date.now(),ID:e.ID,timesBattled:1,timesRescued:1})})),a.player.kennel.petTeam.forEach((e=>{e&&e.assignRandomSpells&&e.assignRandomSpells()})),console.log("Added all pets."),a._.gameData.pet.filter((e=>[158,166,168].includes(e.ID))).forEach((e=>{a.player.kennel.addPet(e.ID.toString(),a.VERY_LARGE_NUMBER,26376,100)})),a.player.kennel.petTeam.forEach((e=>{e&&e.assignRandomSpells&&e.assignRandomSpells()})),console.log("Added Mythical Epics."),a._.gameData.pet.filter((e=>[125,126,127,128,129,130,131,132,133].includes(e.ID))).forEach((e=>{a.player.kennel.addPet(e.ID.toString(),a.VERY_LARGE_NUMBER,26376,100)})),a.player.kennel.petTeam.forEach((e=>{e&&e.assignRandomSpells&&e.assignRandomSpells()})),console.log("Added Legacy Epics."),a._.constants.constants["GameConstants.Inactivity.LOG_OUT_TIMER_SECONDS"]=0,console.log("Inactivity Kick Disabled."),a.player._playerContainer.walkSpeed=20,console.log("Player walkspeed set to 20."),Array.from(a._.instance.prodigy.gameContainer._inversifyContainer._bindingDictionary._map).forEach((e=>{try{a._.instance.prodigy.gameContainer.get(e[0]).battleData&&(s=e[0])}catch(t){console.log("Error for ".concat(e[0]))}})),a._.instance.prodigy.gameContainer.get(s).battleData._secureCharacterState._data.inventory.orb=(0,r.runeify)(a._.gameData.orb,100),a.player.equipment.setHat(200),a.player.equipment.setBoots(93),a.player.equipment.setOutfit(161),a.player.equipment.setWeapon(196),(0,a.saveCharacter)(),console.log("Character Saved."),a.player.appearanceChanged=!0,console.log("Appearance Refreshed."),a._.instance.prodigy.open.menuCloseAll(),console.log("Popups closed."),(0,a.saveCharacter)(),console.log("Character Saved."),console.log("Max Account Successful."),o.Toast.fire("Maxed!","Check your backpack!","success")}})))}.apply(t,n))||(e.exports=a)},8130:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,l,"next",e)}function l(e){r(s,n,a,i,l,"throw",e)}i(void 0)}))}}n=[o,t,o(9820),o(4759),o(2852),o(112)],void 0===(a=function(e,t,o,n,a,r){"use strict";new o.Hack(o.category.inventory,"Item stacker").setClick(s((function*(){var e=yield n.NumberInput.fire("Amount","How many of every item would you like?","question");if(e.value&&(yield n.Confirm.fire("Are you sure you want to get all items in the game?")).value){r.ids.forEach((t=>{a.player.backpack.data[t]=(0,r.itemify)(a._.gameData[t].filter((e=>"follow"===t?![125,126,127,128,129,134,135,136,137].includes(e.ID):e)),e.value)})),a._.gameData.dorm.forEach((t=>a.player.house.data.items[t.ID]={A:[],N:e.value}));for(var t=()=>a.player.backpack.data.item.findIndex((e=>84===e.ID||85===e.ID||86===e.ID));t()>-1;)a.player.backpack.data.item.splice(t(),1);return n.Toast.fire("Success!","All items added!","success")}}))),new o.Hack(o.category.inventory,"Clear inventory").setClick(s((function*(){(yield n.Confirm.fire("Are you sure you want to clear your inventory?")).value&&(Object.keys(a.player.backpack.data).forEach((e=>a.player.backpack.data[e]=[])),n.Toast.fire("Success!","Inventory cleared.","success"))}))),new o.Hack(o.category.inventory,"Selector (Basic)").setClick(s((function*(){yield n.Swal.fire({title:"What would you like to obtain?",input:"select",inputOptions:r.names,inputPlaceholder:"Select...",inputValidator:e=>e?"":"Please select which you'd like to obtain.",showCancelButton:!0}).then(function(){var e=s((function*(e){var t=parseInt(e.value),o=r.names[t],s=r.ids[t];if(o){var i=yield n.NumberInput.fire("Amount","How many each object would you like?","question");i.value&&(yield n.Confirm.fire("Are you sure you want to get all ".concat(o.toLowerCase(),"?"))).value&&(a.player.backpack.data[s]=(0,r.itemify)(a._.gameData[s].filter((e=>"follow"===s?![125,126,127,128,129,134,135,136,137].includes(e.ID):e)),i.value),n.Toast.fire("".concat(o," Added!"),"All ".concat(o.toLowerCase()," have been added to your inventory!"),"success"),(0,a.saveCharacter)())}}));return function(t){return e.apply(this,arguments)}}())}))),new o.Hack(o.category.inventory,"Selector (Advanced)","Choose a specific object and quantity to obtain.").setClick(s((function*(){yield n.Swal.fire({title:"What would you like to obtain?",input:"select",inputOptions:r.names,inputPlaceholder:"Select...",inputValidator:e=>e?"":"Please select which you'd like to obtain.",showCancelButton:!0}).then(function(){var e=s((function*(e){if(a._.gameData[r.ids[e.value]]){var t=[];a._.gameData[r.ids[e.value]].forEach((e=>{t.push(e.data.name)})),yield n.Swal.fire({title:"What specific object categorized as ".concat(r.names[e.value].toLowerCase()," would you like to get?"),input:"select",inputOptions:t,inputPlaceholder:"Select...",inputValidator:e=>e?"":"Please select which you'd like to get.",showCancelButton:!0}).then(function(){var t=s((function*(t){var o=parseInt(t.value);if(a._.gameData[r.ids[e.value]][o]){var s=yield n.NumberInput.fire("Amount","How many of the object would you like?","question");if(s.value)return-1===a.player.backpack.data[r.ids[e.value]].findIndex((t=>t.ID===a._.gameData[r.ids[e.value]][o].ID))?a.player.backpack.data[r.ids[e.value]].push({ID:a._.gameData[r.ids[e.value]][o].ID,N:s.value}):a.player.backpack.data[r.ids[e.value]].findIndex((t=>t.ID===a._.gameData[r.ids[e.value]][o].ID)),console.log(a._.gameData[r.ids[e.value]][o].ID),(0,a.saveCharacter)(),n.Toast.fire("".concat(r.names[e.value]," Added!"),"Your selected ".concat(r.names[e.value].toLowerCase()," have been added."),"success")}}));return function(e){return t.apply(this,arguments)}}())}}));return function(t){return e.apply(this,arguments)}}())}))),new o.Hack(o.category.inventory,"Obtain All Furniture").setClick(s((function*(){var e=yield n.NumberInput.fire("Amount","How many of each piece of furniture would you like?","question");if(e.value&&(yield n.Confirm.fire("Are you sure you want to get all furniture?")).value)return a._.gameData.dorm.forEach((t=>a.player.house.data.items[t.ID]={A:[],N:e.value})),n.Toast.fire("Furniture Added!","All furniture has been added to your inventory!","success")}))),new o.Hack(o.category.inventory,"Obtain All Mounts","This gives you all of the mounts in the game.").setClick(s((function*(){return a.player.backpack.data.mount=(0,r.itemify)(a._.gameData.mount,1),n.Toast.fire("Mounts Added!","All mounts have been added to your inventory!")}))),new o.Hack(o.category.inventory,"Remove item").setClick(s((function*(){var e=yield n.Swal.fire({title:"What category would you like to remove an item from?",input:"select",inputOptions:r.names,inputPlaceholder:"Select...",inputValidator:e=>e?"":"Please select which you'd like to obtain.",showCancelButton:!0});if(a._.gameData[r.ids[e.value]]){var t=a._.gameData[r.ids[e.value]].map((e=>e.data.name)),o=yield n.Swal.fire({title:"What specific object categorized as ".concat(r.names[e.value].toLowerCase()," would you like to remove?"),input:"select",inputOptions:t,inputPlaceholder:"Select...",inputValidator:e=>e?"":"Please select which you'd like to get.",showCancelButton:!0});if(o=parseInt(o.value),a._.gameData[r.ids[e.value]][o]){var s=yield n.NumberInput.fire("Amount","How many of the object would you like to remove?","question");if(s.value){if(-1!==a.player.backpack.data[r.ids[e.value]].findIndex((t=>t.ID===a._.gameData[r.ids[e.value]][o].ID))){var i=a.player.backpack.data[r.ids[e.value]].findIndex((t=>t.ID===a._.gameData[r.ids[e.value]][o].ID));return a.player.backpack.data[r.ids[e.value]][i].N-=parseInt(s.value),a.player.backpack.data[r.ids[e.value]][i].N<=0&&a.player.backpack.data[r.ids[e.value]].splice(i,1),(0,a.saveCharacter)(),n.Toast.fire("Removed!","Successfully removed ".concat(s.value," ").concat(a._.gameData[r.ids[e.value]][o].name,"!"),"success")}yield n.Swal.fire("Item Does Not Exist","You do not have any ".concat(a._.gameData[r.ids[e.value]][o].name,"."),"error")}}}}))),new o.Hack(o.category.inventory,"Obtain All Furniture").setClick(s((function*(){return(yield n.Confirm.fire("Are you sure you want to get all furniture?")).value?(a._.gameData.dorm.forEach((e=>a.player.house.data.items[e.ID]={A:[],N:a.VERY_LARGE_NUMBER})),n.Toast.fire("Furniture Added!","All furniture have been added to your inventory!","success")):console.log("Cancelled.")})))}.apply(t,n))||(e.exports=a)},8346:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,l,"next",e)}function l(e){r(s,n,a,i,l,"throw",e)}i(void 0)}))}}n=[o,t,o(9820),o(4759),o(2852),o(112)],void 0===(a=function(e,t,o,n,a,r){"use strict";new o.Hack(o.category.location,"Teleport To Map (interactive)").setClick(s((function*(){var e=n.Swal.mixin({focusConfirm:!1,showCancelButton:!0,preConfirm:()=>{var e;return null===(e=document.querySelector(".radioDiv[checked]"))||void 0===e?void 0:e.getAttribute("zone")}}),t=document.createElement("div");t.classList.add("radioContainer");var o=function(e){var o=document.createElement("DIV");o.classList.add("radioDiv"),o.setAttribute("zone",e);var n=a.locations[e];n?o.style.backgroundImage="url(".concat(n,")"):o.innerText=e,o.onclick=()=>{document.querySelectorAll(".radioDiv[checked]").forEach((e=>e.removeAttribute("checked"))),o.setAttribute("checked","")},t.append(o)};for(var r of Object.keys(a.prodigy.world.zones))o(r);var s=yield e.fire({title:"Teleport Zone",html:t,customClass:{popup:"radioSwal"}});if(s.value){var i=Object.keys(a.prodigy.world.zones[s.value].maps),l=yield n.Swal.fire({input:"select",inputOptions:new Map(i.map((e=>[e,e]))),title:"Map",text:"Which map in the zone do you want to teleport to?"});if(l.value){var c=(yield n.NumberInput.fire("Please enter the x to teleport to. (Try 500?)")).value||500,u=(yield n.NumberInput.fire("Please enter the y to teleport to. (Try 500?)")).value||500;return a.prodigy.world.zones[s.value].teleport(l.value,c,u,{},{}),n.Toast.fire("Teleported","You have been teleported!","success")}}}))),new o.Hack(o.category.location,"Teleport to house by userID").setClick(s((function*(){var e=(yield n.NumberInput.fire("Please enter the userID.")).value;if(e)return(0,r.toHouse)(e),n.Toast.fire("Teleported!","You have been teleported!","success")}))),new o.Hack(o.category.location,"Get Map Location").setClick(s((function*(){var e=a.player.data.zone;navigator.clipboard.writeText(e).then(s((function*(){return console.log("Async: Copying to clipboard was successful!"),n.Swal.fire({title:"Map Location",html:"You are at
                      ".concat(e," .
                      You can save this to get to the same zone.

                      Your location is has also been copied to your clipboard."),icon:"info"})})),function(){var t=s((function*(t){return console.error("Async: Could not copy text: ",t),n.Swal.fire({title:"Map Location",html:"You are at
                      ".concat(e," .
                      You can save this to get to the same zone."),icon:"info"})}));return function(e){return t.apply(this,arguments)}}())})))}.apply(t,n))||(e.exports=a)},3344:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,l,"next",e)}function l(e){r(s,n,a,i,l,"throw",e)}i(void 0)}))}}n=[o,t,o(9820),o(2852),o(4759)],void 0===(a=function(e,t,o,n,a){"use strict";new o.Toggler(o.category.minigames,"69x Walk Speed [Dyno Dig]","Walk so fast that you're teleporting, in Dyno Dig.").setEnabled(s((function*(){return n._.instance.game.state.states.get("DinoDig").walkSpeed=69,a.Toast.fire("Enabled!","You will now walk so fast that you're teleporting in Dyno Dig.","success")}))).setDisabled(s((function*(){return n._.instance.game.state.states.get("DinoDig").walkSpeed=1.5,a.Toast.fire("Disabled!","You will now walk at normal speed, in Dyno Dig.","success")})))}.apply(t,n))||(e.exports=a)},465:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,l,"next",e)}function l(e){r(s,n,a,i,l,"throw",e)}i(void 0)}))}}n=[o,t,o(4759),o(9820),o(2852),o(8238)],void 0===(a=function(e,t,o,n,a,r){"use strict";new n.Hack(n.category.misc,"Skip Tutorial").setClick(s((function*(){var e=(e,t,o,n)=>{a._.instance.prodigy.world.getZone(e).testQuest(t,o,n);try{Object.fromEntries(a._.instance.game.state.states).TileScreen.process()}catch(e){}};e("house",2),e("academy",2),a.player.state.set("tutorial-0",4),a.player.backpack.addKeyItem(13,0),a.player.tutorial.data.menus[14]=[1],a._.instance.prodigy.open.map(!0,[]),a.player.onTutorialComplete(),a.player.data.level=Math.max(a.player.data.level,5)}))),new n.Toggler(n.category.misc,"Disable Monster Encounters").setEnabled(s((function*(){return a._.constants.constants["GameConstants.Debug.SCALE_ENCOUNTER_DISTANCE"]=0,o.Toast.fire("Enabled!","Monsters will no longer battle you.","success")}))).setDisabled((()=>(a._.constants.constants["GameConstants.Debug.SCALE_ENCOUNTER_DISTANCE"]=1,o.Toast.fire("Disabled!","Monsters will now battle you.","success")))),new n.Toggler(n.category.misc,"Skip enemy turn").setEnabled(s((function*(){return a._.constants.constants["GameConstants.Battle.SKIP_ENEMY_TURN"]=!0,o.Toast.fire("Skipping!","Enemy turns will now be skipped.","success")}))).setDisabled((()=>(a._.constants.constants["GameConstants.Battle.SKIP_ENEMY_TURN"]=!1,o.Toast.fire("Disabled","Enemy turns will no longer be skipped.","success")))),new n.Toggler(n.category.beta,"FPS Counter [BETA]","Shows you a framerate counter").setEnabled(s((function*(){(0,r.startFps)()}))).setDisabled(s((function*(){(0,r.stopFps)()})));try{var i=a.current.user.source.canSpin;new n.Toggler(n.category.misc,"Unlimited Spins","Lets you spin the wheel as many times as you want!").setEnabled(s((function*(){return a.player.canSpin=()=>{},o.Toast.fire("Enabled!","You can now spin the wheel as many times as you want!","success")}))).setDisabled(s((function*(){return a.player.canSpin=i,o.Toast.fire("Disabled!","You can now spin the wheel only when allowed.","success")})))}catch(e){console.error("Unlimited Spins ERROR: "+e)}new n.Hack(n.category.misc,"Bobbify","Converts your account into Bobby Fancywoman.").setClick(s((function*(){if((yield o.Confirm.fire("Are you sure you want your account to be turned into Bobby Fancywoman?","This action is not reversable.")).value)return a.player.name.data.nickname=null,a.player.name.data.firstName=44,a.player.name.data.middleName=754,a.player.name.data.lastName=882,a.player.data.stars=-1e22,a.player.data.level=69,a.player.appearance.setGender("male"),a.player.appearance.setEyeColor(1),a.player.appearance.setFace(4),a.player.appearance.setHair(19,1),a.player.appearance.setSkinColor(1),a.player.equipment.setFollow(19),a.player.equipment.setHat(19),a.player.equipment.setBoots(19),a.player.equipment.setOutfit(19),a.player.equipment.setWeapon(19),o.Toast.fire("Bobbified!","You are now Bobby Fancywoman.","success")}))),new n.Hack(n.category.misc,"Reset Account","Completely resets your account.").setClick(s((function*(){if((yield o.Confirm.fire("Are you sure you want to reset your account?","This action is not reversible.")).value)return a.player.resetAccount(),o.Swal.fire("Reset!","Your account has been reset. Reload Prodigy for the full effect.","success")})));var l=null,c=0;new n.Hack(n.category.misc,"Chat Spammer","Cycles through chat messages pretty fast!").setClick(s((function*(){return l?o.Swal.fire("Already Enabled","Chat Spammer is already enabled. To disable chat spammer, reload Prodigy.","error"):(l=setInterval(s((function*(){a.player.chatID=c,++c>1164&&(c=0)})),90),o.Toast.fire("Spamming!","You're now sending a chat message every 90 milliseconds!","success"))})));var u=null,d=0;new n.Hack(n.category.misc,"High Chat Spammer","Cycles through chat messages hella fast!").setClick(s((function*(){return u?o.Swal.fire("Already Enabled","High Chat Spammer is already enabled. To disable chat spammer, reload Prodigy.","error"):(yield o.Confirm.fire("Warning","This hack may cause lag on weak computers (ex. School Chromebooks).")).value?(u=setInterval(s((function*(){a.player.chatID=d,++d>1164&&(d=0)})),30),o.Toast.fire("Spamming!","You're now sending a chat message every 30 milliseconds!","success")):console.log("Cancelled")})));var p=null,h=0;new n.Hack(n.category.misc,"Chat Spammer on Meth","Cycles through chat messages FAST ASF!").setClick(s((function*(){return p?o.Swal.fire("Already Enabled","Chat Spammer on Meth is already enabled. To disable chat spammer, reload Prodigy.","error"):(yield o.Confirm.fire("Warning","This hack may cause lag on weak computers (ex. School Chromebooks).")).value?(p=setInterval(s((function*(){a.player.chatID=h,++h>1164&&(h=0)})),1),o.Toast.fire("Spamming!","You're now sending a chat message every 1 millisecond!","success")):console.log("Cancelled")}))),new n.Hack(n.category.misc,"[Fix] Fix Battle Crash").setClick(s((function*(){return a.player.kennel.petTeam.forEach((e=>{e&&e.assignRandomSpells&&e.assignRandomSpells()})),o.Toast.fire("Success!","Fixed kennel attack bug!","success")}))),new n.Hack(n.category.misc,"[Fix] Stuck in Unfinished Tower Fix","Takes you out of an unfinished tower if you're stuck in one.").setClick(s((function*(){return a._.instance.prodigy.world.zones.house.teleport("exit"),o.Toast.fire("Success!","You've been teleported outside of your house.","success")}))),new n.Hack(n.category.misc,"uwu","OwO").setClick(s((function*(){return(yield o.Confirm.fire("Are you sure that you want to UwU OwO?","Reload Prodigy to revert UwU.")).value?(Object.chance=e=>{var t={},o=0;for(var n of Object.keys(e).sort(((e,o)=>t[e]-t[o])))t[n]=[],t[n][0]=o+1,t[n][1]=e[n]+o,o=e[n]+o;return t},Object.random=e=>{var t=Object.values(e),o=t[t.length-1][1],n=Math.randint(o);return Object.reverse(e)[t.find((e=>n>=e[0]&&n<=e[1]))]},Array.prototype.join=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:",";return"string"==typeof e?this.reduce(((t,o,n,a)=>t+(nt+(n0&&void 0!==arguments[0]?arguments[0]:",";return"string"==typeof e?this.reduce(((t,o,n)=>t+(n?e+o:o)),""):e instanceof Function?this.reduce(((t,o,n,a)=>t+(n?e(a[n],n,a)+o:o)),""):void 0},String.UWUFX=e=>{var t=Object.chance({"owo :3":20,"✧w✧":20,UwU:20,OwO:10,rawr:10,"uwu :3":5,":3 meow":15,":3":15,X3:15,"*purrs*":15,owo:15,uwu:15,"^w^":15,"x3 rawr":15,owowowowo:15});return e.split(" ").leftJoin(((e,t)=>0===Math.floor(6*Math.random())&&/[A-Za-z]/.test(e[0])?" ".concat(e[0],"-"):" ")).split(" ").join(((e,o)=>0===Math.floor(5*Math.random())?" ".concat(Object.random(t)," "):" "))},String.UWUTable={y:"wy",l:"w",r:"w",ss:"zs",n:"nw",ove:"uv",ome:"um",x:"ks",com:"cum",stu:"stew",au:"aw"},Math.randint=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Math.floor(Math.random()*e-t)+t},String.prototype.escapeRegex=function(){return this.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")},String.prototype.replaceAll=function(e,t){return this.replace(new RegExp(e.toString().escapeRegex(),"gi"),(e=>t))},Object.fromArrays=(e,t)=>{var o={};return e.forEach(((e,n)=>{o[e]=t[n]})),o},Object.reverse=e=>Object.fromArrays(Object.values(e),Object.keys(e)),String.prototype.bulkReplace=function(e){var t=this;for(var o in e)t=t.replaceAll(o,e[o]);return t},String.UWU=e=>String(e).bulkReplace(String.UWUTable),Object.keys(a._.localizer.dataSource._languageData).map((e=>a._.localizer.dataSource._languageData[e]=String.UWUFX(String.UWU(a._.localizer.dataSource._languageData[e])))),Object.values(a._.gameData).map((e=>e.map((e=>[e.data.name&&(e.data.name=String.UWUFX(String.UWU(e.data.name))),e.name&&(e.name=String.UWUFX(String.UWU(e.name))),e.data.flavorText&&(e.data.flavorText=String.UWUFX(String.UWU(e.data.flavorText)))])))),o.Toast.fire("uwu","Reload Prodigy to fix uwu.","success")):console.log("uwu cancelled")})))}.apply(t,n))||(e.exports=a)},8603:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,l,"next",e)}function l(e){r(s,n,a,i,l,"throw",e)}i(void 0)}))}}n=[o,t,o(4759),o(9820),o(2852)],void 0===(a=function(e,t,o,n,a){"use strict";var r=null;new n.Hack(n.category.patched,"Arena Point Increaser [Patched]").setClick(s((function*(){return r?o.Swal.fire("Already Enabled","Arena Point Increaser is already enabled.","error"):(yield o.Confirm.fire("This hack is patched.","Running it will probably do nothing.")).value?(r=setInterval(s((function*(){var e=yield(yield fetch("https://api.prodigygame.com/leaderboard-api/season/".concat(a.prodigy.pvpNetworkHandler.seasonID,"/user/").concat(a.player.userID,"/pvp?userID=").concat(a.player.userID),{headers:{authorization:"Bearer ".concat(a.prodigy.network.jwtAuthProvider.getToken()),"content-type":"application/x-www-form-urlencoded; charset=UTF-8"},body:"seasonID=".concat(a.prodigy.pvpNetworkHandler.seasonID,"&action=win"),method:"POST",mode:"cors"})).text();if(""!==e){var t=JSON.parse(e);console.log("[API] ".concat(t.points," Points (+100)"))}else console.log("[API] Failed to add points.")})),60500),o.Swal.fire("Enabled","Arena Point Increaser has been enabled.","success")):console.log("Cancelled")}))),new n.Hack(n.category.patched,"Disable Timeout Dialog [Patched]").setClick(s((function*(){return(yield o.Confirm.fire("This hack is patched.","Running it will probably do nothing.")).value?(a.prodigy.debugMisc.disableTimeoutDialogue(),o.Toast.fire("Enabled","Timeout Dialog has been disabled.","success")):console.log("Cancelled")})))}.apply(t,n))||(e.exports=a)},7736:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;function asyncGeneratorStep(e,t,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}function _asyncToGenerator(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var r=e.apply(t,o);function s(e){asyncGeneratorStep(r,n,a,s,i,"next",e)}function i(e){asyncGeneratorStep(r,n,a,s,i,"throw",e)}s(void 0)}))}}var __importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};__WEBPACK_AMD_DEFINE_ARRAY__=[__webpack_require__,exports,__webpack_require__(4759),__webpack_require__(9820),__webpack_require__(2852),__webpack_require__(112),__webpack_require__(3336),__webpack_require__(939),__webpack_require__(3135)],__WEBPACK_AMD_DEFINE_RESULT__=function(require,exports,swal_1,index_1,util_1,hackify_1,kennel_1,flatted_1,lzbase62_1){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),flatted_1=__importDefault(flatted_1),lzbase62_1=__importDefault(lzbase62_1),new index_1.Hack(index_1.category.pets,"Get All Pets").setClick(_asyncToGenerator((function*(){return(yield swal_1.Confirm.fire("Would you like to add all pets to your pets?")).value?(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()})),swal_1.Toast.fire("Success!","All pets have been added!","success")):console.log("Cancelled")}))),new index_1.Hack(index_1.category.pets,"Get All Legacy Epics").setClick(_asyncToGenerator((function*(){return(yield swal_1.Confirm.fire("This may damage your account.","Attempting to add legacy epics may damage your account. Would you still like to add all legacy epics to your team?","warning")).value?(util_1._.gameData.pet.filter((e=>[125,126,127,128,129,130,131,132,133].includes(e.ID))).forEach((e=>{util_1.player.kennel.addPet(e.ID.toString(),util_1.VERY_LARGE_NUMBER,26376,100)})),util_1.player.kennel.petTeam.forEach((e=>{e&&e.assignRandomSpells&&e.assignRandomSpells()})),swal_1.Toast.fire("Success!","All legacy epics have been added!","success")):console.log("Cancelled")}))),new index_1.Hack(index_1.category.pets,"Get All Mythical Epics").setClick(_asyncToGenerator((function*(){return(yield swal_1.Confirm.fire("Would you like to add all mythical epics to your pets?")).value?(util_1._.gameData.pet.filter((e=>[158,164,165,166,167,168,169,170,171,189].includes(e.ID))).forEach((e=>{util_1.player.kennel.addPet(e.ID.toString(),util_1.VERY_LARGE_NUMBER,26376,100)})),util_1.player.kennel.petTeam.forEach((e=>{e&&e.assignRandomSpells&&e.assignRandomSpells()})),swal_1.Toast.fire("Success!","All mythical epics have been added!","success")):console.log("Cancelled")}))),new index_1.Hack(index_1.category.pets,"Clear Pets").setClick(_asyncToGenerator((function*(){return(yield swal_1.Confirm.fire("Would you like to delete all of your pets?")).value?(util_1.player.kennel.data.length=0,swal_1.Toast.fire("Success!","Your pets have been cleared!","success")):console.log("Cancelled")}))),new index_1.Hack(index_1.category.pets,"Add Pet","Adds a pet from a list.").setClick(_asyncToGenerator((function*(){var e=yield swal_1.Swal.fire({input:"select",inputOptions:new Map(util_1._.gameData.pet.map((e=>[e.ID.toString(),"".concat(e.ID,": ").concat(e.data.name)]))),title:"Choose Pet",text:"Which pet do you want to obtain?"});if(void 0!==e.value)return util_1.player.kennel.addPet(e.value),util_1.player.kennel._encounterInfo._data.pets.push({firstSeenDate:Date.now(),ID:e.value,timesBattled:1,timesRescued:1}),swal_1.Toast.fire("Success!","Your chosen pet has been added to your pets!","success")}))),new index_1.Hack(index_1.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(_asyncToGenerator((function*(){var petTeam=util_1.player.kennel.petTeam.slice(0);petTeam.shift();var names=petTeam.map((e=>e.getName())),pet=yield swal_1.Swal.fire({title:"Which pet would you like to edit?",input:"select",inputOptions:names,inputPlaceholder:"Select...",inputValidator:e=>e?"":"Please select which you'd like to obtain.",showCancelButton:!0}),amt=yield swal_1.NumberInput.fire("Level","What would you like to set your pet's level to? (Can be set over 100)","question");if(amt.value){var num=amt.value;return eval("player.kennel.petTeam[parseInt(".concat(pet.value,")+1].getLevel = () => {return ").concat(num,"}")),swal_1.Toast.fire("Updated!","The level of your pet was successfully updated. Note: this hack is client-side.","success")}}))),new index_1.Hack(index_1.category.pets,"Delete Pet","Delete a pet.").setClick(_asyncToGenerator((function*(){var e=yield(0,hackify_1.getPet)("Which pet do you wish to delete?");if(void 0!==e)return util_1.player.kennel.data.splice(e,1),swal_1.Toast.fire("Successfully deleted!","The selected pet was deleted successfully.","success")}))),new index_1.Hack(index_1.category.pets,"Edit Kennel","Allows you to directly edit your pets.").setClick(_asyncToGenerator((function*(){null!==(yield(0,kennel_1.GetAction)())&&null!==(yield(0,kennel_1.SelectSlot)())&&console.log(s(parseInt(KennelSlot.value)))}))),new index_1.Hack(index_1.category.pets,"Backup Kennel","Makes a backup of your kennel to your chrome local storage.").setClick(_asyncToGenerator((function*(){var e=lzbase62_1.default.compress(flatted_1.default.stringify(util_1._.player.kennel._petTeam[0]));return console.log(e.length),console.log(e),localStorage.setItem("prodigy-kennel-backup",e),swal_1.Toast.fire("Backed up!","Your kennel is now backed up to the local storage.","success")}))),new index_1.Hack(index_1.category.pets,"Restore Kennel","Restores a backup of your kennel from the local storage... if you have one.").setClick(_asyncToGenerator((function*(){var e=localStorage.getItem("prodigy-kennel-backup");return null===e?swal_1.Swal.fire({title:"No backup found",html:"There is no backup of your kennel in the local storage. Make sure to back up your kennel before trying to load it.",icon:"error"}):(util_1._.player.kennel._petTeam=flatted_1.default.toJSON(lzbase62_1.default.decompress(e)),swal_1.Toast.fire("Restored!","Your kennel backup should be restored","success"))})))}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),void 0===__WEBPACK_AMD_DEFINE_RESULT__||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)},7939:(module,exports,__webpack_require__)=>{var __webpack_unused_export__,__WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;function asyncGeneratorStep(e,t,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}function _asyncToGenerator(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var r=e.apply(t,o);function s(e){asyncGeneratorStep(r,n,a,s,i,"next",e)}function i(e){asyncGeneratorStep(r,n,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_require__(112)],__WEBPACK_AMD_DEFINE_RESULT__=function(require,exports,swal_1,index_1,util_1,hackify_1){"use strict";__webpack_unused_export__={value:!0},new index_1.Hack(index_1.category.player,"Max Account").setClick(_asyncToGenerator((function*(){if(!(yield swal_1.Confirm.fire("Are you sure that you want to max your account?","We recommend doing this on an alt.")).value)return console.log("Cancelled");util_1.player.data.gold=99e5,console.log("Set player gold to 9900000.");var e=100..value-2;util_1.player.data.stars=Math.round((1-Math.pow(1.042,e))/(1-1.042)*20+10),util_1.player.data.level=100,util_1.player.getLevel=()=>util_1.player.data.level,console.log("Set player level to 100"),util_1.player.data.bountyScore=100,console.log("Set player's bounty points to 100.");for(var t=0;t{util_1.player.backpack.data[e]=(0,hackify_1.itemify)(util_1._.gameData[e].filter((t=>"follow"===e?![125,126,127,128,129,134,135,136,137].includes(t.ID):t)),1..value)})),util_1._.gameData.dorm.forEach((e=>util_1.player.house.data.items[e.ID]={A:[],N:1..value}));for(var n=()=>util_1.player.backpack.data.item.findIndex((e=>84===e.ID||85===e.ID||86===e.ID));n()>-1;)util_1.player.backpack.data.item.splice(n(),1);swal_1.Toast.fire("Success!","All items added!","success"),console.log("All items added!"),util_1.player.backpack.data.mount=(0,hackify_1.itemify)(util_1._.gameData.mount,1),console.log("Added all mounts.");var a="currency";return util_1.player.backpack.data[a]=(0,hackify_1.itemify)(util_1._.gameData[a].filter((e=>e)),6969420),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.equipment.setHat(200),util_1.player.equipment.setBoots(93),util_1.player.equipment.setOutfit(161),util_1.player.equipment.setWeapon(196),util_1.player.appearanceChanged=!0,console.log("Appearance Refreshed."),(0,util_1.saveCharacter)(),console.log("Character Saved."),console.log("Max Account Successful."),swal_1.Toast.fire("Maxed!","Check your backpack!","success")}))),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)return e.value>1e7?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;return 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");if(void 0!==e.value)return 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");if(void 0!==e.value)return 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;t(util_1._.instance.prodigy.gameContainer.get((0,hackify_1.getMemberModule)()).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"),o=(e,t)=>{var o=document.createElement("select");for(var n of(o.classList.add("selectName"),e.entries())){var a=document.createElement("option");[a.value,a.innerText]=n,t(a.value)&&(a.selected=!0),o.options.add(a)}return o},n=(t,n)=>o(new Map(e.filter((e=>e.data.type===t)).map((e=>[e.ID.toString(),e.name]))),(e=>n(+e)));t.append(n(0,(e=>e===util_1.player.name.data.firstName))),t.append(n(1,(e=>e===util_1.player.name.data.middleName))),t.append(n(2,(e=>e===util_1.player.name.data.lastName))),t.append(o(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");if(level.value)return 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*(){return 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*(){return 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")):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 o=util_1._.instance.prodigy.world.zones[t].getCurrentQuestID();return util_1._.instance.prodigy.world.zones[t].completeQuest(o)?(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)});if(e.value)return 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.toString()).then((function(){return 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){return 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();return 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?");if(e.value)return util_1.player.grade=parseInt(e.value),swal_1.Toast.fire("Success","Successfully changed grade to ".concat(e,"!"),"success")})))}.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,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}function _asyncToGenerator(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var r=e.apply(t,o);function s(e){asyncGeneratorStep(r,n,a,s,i,"next",e)}function i(e){asyncGeneratorStep(r,n,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*(){return 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,"Grab UserID of all players on screen","Shows you the UserID and name of every player currently shown on the screen.").setClick(_asyncToGenerator((function*(){var e=util_1.current.playerList;if(0===Object.keys(e).length)return swal_1.Toast.fire("No players found.","There are no other players on the screen.","error");var t="",o=0;return yield Object.keys(e).map((n=>{var a=Object.entries(e)[o][1].nameText.textSource.source;t+="
                    • uID: ".concat(n," - ").concat(a,"
                    • "),o++})),swal_1.Swal.fire({title:"All players on the screen:",html:t,icon:"info"})}))),new index_1.Hack(index_1.category.utility,"Save Character Locally [Local]","Saves your character locally.").setClick(_asyncToGenerator((function*(){return 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"});return t.ok?swal_1.Toast.fire("Success!","Character has been successfully loaded. Reload for the changes to take effect.","success"):swal_1.Toast.fire("Request failed.","An error occurred while loading the character. Error code: ".concat(t.status),"error")}return 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*(){return(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;return 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*(){return 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);return 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*(){return teleportingInterval=setInterval((()=>{try{util_1.player._playerContainer.walkSpeed=500}catch(e){}})),swal_1.Toast.fire("Success!","Successfully enabled teleport click.","success")}))).setDisabled(_asyncToGenerator((function*(){return 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*(){return util_1._.network.game._paused=!0,swal_1.Toast.fire("Success!","Successfully paused Prodigy.","success")}))).setDisabled(_asyncToGenerator((function*(){return 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)return console.log("Cancelled.");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 swal_1.Swal.fire({title:"Error",html:"Oops! There was an error with the code!
                       ".concat(e," "),icon:"error"})}return 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,o){var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,l,"next",e)}function l(e){r(s,n,a,i,l,"throw",e)}i(void 0)}))}}var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};n=[o,t,o(7046),o(2852),o(3526),o(6455),o(4759),o(4719),o(158)],a=function(e,t,o,n,a,r,l,c){"use strict";var u,d,p,h;Object.defineProperty(t,"__esModule",{value:!0}),t.category=t.Toggler=t.Hack=t.toggler=t.wrapper=t.menu=void 0,r=i(r),t.menu=document.createElement("div"),t.wrapper=document.getElementById("game-wrapper"),null===(u=document.getElementById("cheat-menu"))||void 0===u||u.remove(),null===(d=document.getElementById("menu-toggler"))||void 0===d||d.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===(p=t.wrapper)||void 0===p||p.prepend(t.menu),t.toggler=document.createElement("button"),t.toggler.id="menu-toggler";var m=!1;null===(h=t.wrapper)||void 0===h||h.prepend(t.toggler),t.toggler.onclick=()=>{(m=!m)?(t.toggler.innerText="▼",t.menu.style.top="-100vh"):(t.toggler.innerText="▲",t.menu.style.top="10%")},t.toggler.onclick({});var f=document.createElement("DIV");f.classList.add("menu-left"),t.menu.append(f);var g=!0,y=e=>{var t=document.createElement("div");0==g?(t.append(document.createElement("br")),t.append(document.createElement("br"))):g=!1,t.classList.add("menu-area"),t.style.textAlign="center",f.append(t);var o=document.createElement("h1");return o.innerText=e,o.style.textAlign="center",o.style.color="white",t.append(o),t},w=document.createElement("h1");w.classList.add("menu-title"),w.innerText="Prodigy Hacks",w.style.textAlign="center",f.append(w);var b=document.createElement("h2");b.style.fontSize="25px",b.style.color="white",b.innerHTML="
                      Press SHIFT to show/hide the menu. Scroll down in the menu for more hacks.",f.append(b);var _=document.createElement("h3");_.style.fontSize="20px",_.innerHTML="\n

                      Join our Discord https://dsc.gg/ProdigyPNP!

                      \n\n
                      \n",_.style.color="white",f.append(_);class v{constructor(e,t,o){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),o&&this.setDesc(o)}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,n.saveCharacter)(),console.log("Triggered ".concat(t.name,"."))})),this}setDesc(e){return this.element.title=e,this.description=e,this}}t.Hack=v,t.Toggler=class extends v{constructor(e,t,o){var n;super(e,t,o),n=this,this.parent=e,this.element.setAttribute("status","false"),this.setClick(s((function*(){var e,t;n.status=!n.status,n.status?(localStorage.setItem(n.name,"true"),yield null===(e=n.enabled)||void 0===e?void 0:e.call(n)):(localStorage.setItem(n.name,"false"),yield null===(t=n.disabled)||void 0===t?void 0:t.call(n))})))}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:y("Player Hacks"),inventory:y("Inventory Hacks"),location:y("Location Hacks"),pets:y("Pet Hacks"),battle:y("Battle Hacks"),minigames:y("Minigame Hacks"),misc:y("Miscellaneous Hacks"),utility:y("Utility Hacks"),beta:y("Beta Testing | Beta Hacks may damage your account"),patched:y("Patched Hacks")},localStorage.hasTip?(0,c.IndexInfo)("Player already has tip."):(s((function*(){yield r.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,(0,c.IndexInfo)("Player was shown the tip.")),localStorage.getItem("level")&&(n._.player.getLevel=()=>localStorage.getItem("level"),(0,c.IndexInfo)("Loaded menu from localStorage."));var k=!0;document.addEventListener("keydown",(function(e){"Shift"==e.key&&((0,c.IndexInfo)("Shift key was pressed."),1==k?((0,c.IndexInfo)("Hiding cheat menu..."),document.getElementById("cheat-menu").style.display="none",document.getElementById("menu-toggler").style.display="none",k=!1,(0,c.IndexInfo)("Hidden cheat menu.")):((0,c.IndexInfo)("Showing cheat menu..."),document.getElementById("cheat-menu").style.display="block",document.getElementById("menu-toggler").style.display="block",k=!0,(0,c.IndexInfo)("Shown cheat menu.")))})),s((function*(){var e,t;(yield l.License.fire("ProdigyPNP",'\n

                      \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 ')).value?yield(0,a.statusMessage)():(yield l.NoLicense.fire("ProdigyPNP License","\n

                      \n You need to agree to our license to use our hacks. If you changed your mind and now agree to our license, reload Prodigy.\n

                      \n ")).value?document.location="":(null===(e=document.getElementById("cheat-menu"))||void 0===e||e.remove(),null===(t=document.getElementById("menu-toggler"))||void 0===t||t.remove())}))()}.apply(t,n),void 0===a||(e.exports=a)},8238:(e,t,o)=>{var n,a;n=[o,t,o(9820)],a=function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stopFps=t.startFps=void 0;var n=document.createElement("button"),a=!1;t.startFps=function(){var e;a=!0,n.id="fps-counter",null===(e=o.wrapper)||void 0===e||e.prepend(n),setInterval((()=>{var e=_.player.game.fps._framerate;a?n.innerText=e.toFixed(2)+" FPS":n.remove()}),300)},t.stopFps=function(){var e;a=!1,null===(e=document.getElementById("fps-counter"))||void 0===e||e.remove()}}.apply(t,n),void 0===a||(e.exports=a)},112:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}n=[o,t,o(2852),o(4759)],a=function(e,t,o,n){"use strict";function a(e){o._.instance.prodigy.loading(!0);var t=t=>{var a=null!=t?t[e]:null;if(null!==a&&void 0!==a.house&&null!==a.house){o._.instance.prodigy.loading(!1);var r=o._.cloneDeep(o._.player.house);return r.setItems(a.house),void 0!==a.data.allowsHouseVisitors&&null!==a.data.allowsHouseVisitors&&a.data.allowsHouseVisitors?o._.instance.prodigy.world._("house",null,null,{house:r,getAllowsHouseVisitors:()=>void 0!==a.data.allowsHouseVisitors&&null!==a.data.allowsHouseVisitors&&a.data.allowsHouseVisitors,setAllowsHouseVisitors:e=>{a.data.allowsHouseVisitors=e}}):n.Swal.fire("Teleporting to ".concat(e," is not allowed."),"Try another user.","error")}};return o._.network.getCharData(e.toString(),["house","data"],t,t),n.Toast.fire("Teleported to house","You have been teleported to the house!","success")}Object.defineProperty(t,"__esModule",{value:!0}),t.getPet=t.teleportToHouse=t.toHouse=t.getMemberModule=t.runeify=t.itemify=t.ids=t.names=void 0,t.names=["Boots","Buddies","Fossils","Hats","Items","Key Items","Tower Town Frames","Tower Town Interiors","Mounts","Outfits","Relics","Weapons","Currencies"],t.ids=["boots","follow","fossil","hat","item","key","mathTownFrame","mathTownInterior","mount","outfit","spellRelic","weapon","currency"],t.itemify=(e,t)=>e.map((e=>({ID:e.ID,N:t}))).filter((e=>void 0!==e)),t.runeify=(e,t)=>{e.map((e=>({ID:e.ID,quantity:t}))).filter((e=>void 0!==e))},t.getMemberModule=function(){return o._.player.hasMembership.toString().split('"')[1]},t.toHouse=function(e){if(o._.player.userID!==e){var t=o._.instance.prodigy.friendsListNetworkHandler.friendsList.length,r=o._.instance.prodigy.friendsListNetworkHandler.classList.length;o._.instance.prodigy.gameContainer.get("2e1-e659").create("house-visit","click","hub",t,r,null,null,e).broadcast()}var s=o._.instance.prodigy.world.getZone(o._.instance.prodigy.world.getCurrentZone());return s?s.handleLeaving(2,(()=>a(e))):n.Swal.fire({title:"Error",text:"You are not in a zone!",icon:"error"})},t.teleportToHouse=a;var s=function(){var e,t=(e=function*(e){return(yield n.Swal.fire({input:"select",inputOptions:new Map(o._.player.kennel.data.map(((e,t)=>{var n,a,r;return[t.toString(),"Level ".concat(e.level," - ").concat(null!==(n=null!==(a=e.nickname)&&void 0!==a?a:null===(r=o._.gameData.pet.find((t=>+t.ID==+e.ID)))||void 0===r?void 0:r.data.name)&&void 0!==n?n:"Unknown")]}))),title:"Choose Pet",text:e})).value},function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,l,"next",e)}function l(e){r(s,n,a,i,l,"throw",e)}i(void 0)}))});return function(e){return t.apply(this,arguments)}}();t.getPet=s}.apply(t,n),void 0===a||(e.exports=a)},3336:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,l,"next",e)}function l(e){r(s,n,a,i,l,"throw",e)}i(void 0)}))}}n=[o,t,o(4759)],a=function(e,t,o){"use strict";function n(){return(n=s((function*(){var e=new Map;e.set("Copy","Copy a slot to another slot"),e.set("Remove","Completley empty one slot");var t=yield o.Swal.fire({input:"select",inputOptions:e,title:"Select Action",text:"Select an action to perform on the Kennel"});return t.value?t.value:null}))).apply(this,arguments)}function a(){return(a=s((function*(){var e=new Map,t=e=>_.player.kennel._petTeam[e]?_.player.kennel._petTeam[e].source?_.player.kennel._petTeam[e].source.name:_.player.kennel._petTeam[e]._userDataPlatform?"Player":"null":"null";e.set("0","[0] Center - ".concat(t(0))),e.set("1","[1] Top - ".concat(t(1))),e.set("2","[2] Bottom - ".concat(t(2)));var n=yield o.Swal.fire({input:"select",inputOptions:e,title:"Select Slot",text:"Select a slot to edit"});return n.value?parseInt(n.value):null}))).apply(this,arguments)}Object.defineProperty(t,"__esModule",{value:!0}),t.SelectSlot=t.GetAction=void 0,t.GetAction=function(){return n.apply(this,arguments)},t.SelectSlot=function(){return a.apply(this,arguments)}}.apply(t,n),void 0===a||(e.exports=a)},2868:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}n=[o,t,o(2852),o(4759)],void 0===(a=function(e,t,o,n){"use strict";window.addEventListener("keydown",(e=>{switch(e.which){case 192:o._.instance.prodigy.open.menuCloseAll();break;case 220:var t=function(){var e,t=(e=function*(){if(!(yield n.Confirm.fire("Kit","Would you like to equip Celestial Gear?")).value)return console.log("Cancelled");o._.player.equipment.setHat(200),o._.player.equipment.setBoots(93),o._.player.equipment.setOutfit(161),o._.player.equipment.setWeapon(196),o._.player.appearanceChanged=!0,n.Toast.fire("Success!","You are now wearing Celestial Armor and wielding a Dual Blade.","success")},function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,l,"next",e)}function l(e){r(s,n,a,i,l,"throw",e)}i(void 0)}))});return function(){return t.apply(this,arguments)}}();t()}}))}.apply(t,n))||(e.exports=a)},4719:(e,t,o)=>{var n;n=function(e,t){"use strict";function o(e,o){return""==e||null==e?console.log("["+t.LogPrefix+":unknown] "+o):console.log("["+t.LogPrefix+":"+e+"] "+o)}function n(e,t,n){return o(t,"*"+e.toUpperCase()+"* "+n)}Object.defineProperty(t,"__esModule",{value:!0}),t.UtilityError=t.UtilitySuccess=t.UtilityInfo=t.PlayerError=t.PlayerSuccess=t.PlayerInfo=t.PetsError=t.PetsSuccess=t.PetsInfo=t.PatchedError=t.PatchedSuccess=t.PatchedInfo=t.MiscError=t.MiscSuccess=t.MiscInfo=t.MinigameError=t.MinigameSuccess=t.MinigameInfo=t.LocationError=t.LocationSuccess=t.LocationInfo=t.InventoryError=t.InventorySuccess=t.InventoryInfo=t.BetaError=t.BetaSuccess=t.BetaInfo=t.BattleError=t.BattleSuccess=t.BattleInfo=t.IndexError=t.IndexSuccess=t.IndexInfo=t.StatusLog=t.ConsoleLog=t.LogPrefix=void 0,t.LogPrefix="CheatGUI",t.ConsoleLog=o,t.StatusLog=n,t.IndexInfo=function(e){return n("info","index.ts",e)},t.IndexSuccess=function(e){return n("success","index.ts",e)},t.IndexError=function(e){return n("error","index.ts",e)},t.BattleInfo=function(e){return n("info","battle.ts",e)},t.BattleSuccess=function(e){return n("success","battle.ts",e)},t.BattleError=function(e){return n("error","battle.ts",e)},t.BetaInfo=function(e){return n("info","beta.ts",e)},t.BetaSuccess=function(e){return n("success","beta.ts",e)},t.BetaError=function(e){return n("error","beta.ts",e)},t.InventoryInfo=function(e){return n("info","inventory.ts",e)},t.InventorySuccess=function(e){return n("success","inventory.ts",e)},t.InventoryError=function(e){return n("error","inventory.ts",e)},t.LocationInfo=function(e){return n("info","location.ts",e)},t.LocationSuccess=function(e){return n("success","location.ts",e)},t.LocationError=function(e){return n("error","location.ts",e)},t.MinigameInfo=function(e){return n("info","minigame.ts",e)},t.MinigameSuccess=function(e){return n("success","minigame.ts",e)},t.MinigameError=function(e){return n("error","minigame.ts",e)},t.MiscInfo=function(e){return n("info","misc.ts",e)},t.MiscSuccess=function(e){return n("success","misc.ts",e)},t.MiscError=function(e){return n("error","misc.ts",e)},t.PatchedInfo=function(e){return n("info","patched.ts",e)},t.PatchedSuccess=function(e){return n("success","patched.ts",e)},t.PatchedError=function(e){return n("error","patched.ts",e)},t.PetsInfo=function(e){return n("info","pets.ts",e)},t.PetsSuccess=function(e){return n("success","pets.ts",e)},t.PetsError=function(e){return n("error","pets.ts",e)},t.PlayerInfo=function(e){return n("info","player.ts",e)},t.PlayerSuccess=function(e){return n("success","player.ts",e)},t.PlayerError=function(e){return n("error","player.ts",e)},t.UtilityInfo=function(e){return n("info","utility.ts",e)},t.UtilitySuccess=function(e){return n("success","utility.ts",e)},t.UtilityError=function(e){return n("error","utility.ts",e)}}.apply(t,[o,t]),void 0===n||(e.exports=n)},3131:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,l,"next",e)}function l(e){r(s,n,a,i,l,"throw",e)}i(void 0)}))}}n=[o,t,o(2852)],a=function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PopupInterval=void 0;var n=!1;t.PopupInterval=function(e){n=e},s((function*(){setInterval(s((function*(){n&&o._.instance.prodigy.open.menuCloseAll()})),200)}))()}.apply(t,n),void 0===a||(e.exports=a)},3526:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}n=[o,t,o(4759)],a=function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.statusMessage=void 0,t.statusMessage=function(){fetch("https://raw.githubusercontent.com/ProdigyPNP/ProdigyMathGameHacking/master/cheatGUI/statusmessage.json?updated=".concat(Date.now())).then((e=>e.json())).then(function(){var e,t=(e=function*(e){if(!1===e.enabled.value)return console.log("Status message is disabled.");yield o.Swal.fire({title:e.get("title"),html:e.get("html"),icon:e.get("icon")})},function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,l,"next",e)}function l(e){r(s,n,a,i,l,"throw",e)}i(void 0)}))});return function(e){return t.apply(this,arguments)}}())}}.apply(t,n),void 0===a||(e.exports=a)},4759:function(e,t,o){var n,a,r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};n=[o,t,o(6455)],a=function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NoLicense=t.License=t.Info=t.Confirm=t.Toast=t.NumberInput=t.Input=t.Swal=void 0,o=r(o),t.Swal=o.default,t.Input=t.Swal.mixin({input:"text",showCancelButton:!0,showConfirmButton:!0,toast:!1}),t.NumberInput=t.Input.mixin({toast:!1,input:"number"}),t.Toast=t.Swal.mixin({toast:!0,position:"bottom"}),t.Confirm=t.Swal.mixin({icon:"warning",showCancelButton:!0,toast:!1,confirmButtonText:"Confirm",cancelButtonText:"Cancel"}),t.Info=t.Swal.mixin({icon:"info",showCancelButton:!1,toast:!1}),t.License=t.Swal.mixin({icon:"info",showCancelButton:!0,toast:!1,confirmButtonText:"Agree",cancelButtonText:"Disagree"}),t.NoLicense=t.Swal.mixin({icon:"error",showCancelButton:!0,toast:!1,confirmButtonText:"Reload",cancelButtonText:"Play without hacks"})}.apply(t,n),void 0===a||(e.exports=a)},2852:(e,t,o)=>{var n;n=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.current=t.player=t._=void 0,t._=window._,t.player=t._.player,t.current=window.Boot.prototype.game._state._current;var o=t._.instance;t.game=o.game,t.prodigy=o.prodigy,t.gameData=t._.instance.game.state.states.get("Boot").gameData,t.getItem=(e,o)=>{var n;return null!==(n=t._.gameData[e].find((e=>e.ID===o)))&&void 0!==n?n: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,[o,t]),void 0===n||(e.exports=n)},450:(e,t,o)=>{"use strict";o.d(t,{Z:()=>i});var n=o(8081),a=o.n(n),r=o(3645),s=o.n(r)()(a());s.push([e.id,"@import url(https://fonts.googleapis.com/css?family=Arvo:400,700|Sen:400,700,800&display=swap&subset=latin-ext);"]),s.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;font-size:23px;height:26px;width:50px;border:1px solid rgba(0,0,0,.1)}#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 #fps-counter{z-index:2;position:absolute;border-radius:3px;background-color:rgba(255,255,255,.7333333333);transition:background-color .15s;width:130px;height:26px;font-size:23px;border:1px solid rgba(0,0,0,.1);margin-left:83%}#game-wrapper #fps-counter:hover{background-color:rgba(221,221,221,.7333333333)}#game-wrapper #fps-counter: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:rgba(0,0,0,.55);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;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 i=s},3645:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var o="",n=void 0!==t[5];return t[4]&&(o+="@supports (".concat(t[4],") {")),t[2]&&(o+="@media ".concat(t[2]," {")),n&&(o+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),o+=e(t),n&&(o+="}"),t[2]&&(o+="}"),t[4]&&(o+="}"),o})).join("")},t.i=function(e,o,n,a,r){"string"==typeof e&&(e=[[null,e,void 0]]);var s={};if(n)for(var i=0;i0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=r),o&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=o):u[2]=o),a&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=a):u[4]="".concat(a)),t.push(u))}},t}},8081:e=>{"use strict";e.exports=function(e){return e[1]}},1227:(e,t,o)=>{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 o="color: "+this.color;t.splice(1,0,o,"color: inherit");let n=0,a=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(n++,"%c"===e&&(a=n))})),t.splice(a,0,o)},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=o(2447)(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},2447:(e,t,o)=>{e.exports=function(e){function t(e){let o,a,r,s=null;function i(...e){if(!i.enabled)return;const n=i,a=Number(new Date),r=a-(o||a);n.diff=r,n.prev=o,n.curr=a,o=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,((o,a)=>{if("%%"===o)return"%";s++;const r=t.formatters[a];if("function"==typeof r){const t=e[s];o=r.call(n,t),e.splice(s,1),s--}return o})),t.formatArgs.call(n,e),(n.log||t.log).apply(n,e)}return i.namespace=e,i.useColors=t.useColors(),i.color=t.selectColor(e),i.extend=n,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 n(e,o){const n=t(this.namespace+(void 0===o?":":o)+e);return n.log=this.log,n}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 o;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const n=("string"==typeof e?e:"").split(/[\s,]+/),a=n.length;for(o=0;o{t[o]=e[o]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let o=0;for(let t=0;t{var n=o(6391),a=o(8377);function r(e){this._init(e)}r.prototype={_init:function(e){e=e||{},this._data=null,this._table=null,this._result=null,this._onDataCallback=e.onData,this._onEndCallback=e.onEnd},_createTable:function(){for(var e=a.createBuffer(8,n.TABLE_LENGTH),t=0;ta)return!1;var r,s,i,l,c,u=o-n.WINDOW_BUFFER_MAX,d=t.substring(u,o+a),p=o+e-3-u;do{if(2===e){if(s=t.charAt(o)+t.charAt(o+1),!~(i=d.indexOf(s))||i>p)break}else 3===e?s+=t.charAt(o+2):s=t.substr(o,e);if(!~(l=n.STRING_LASTINDEXOF_BUG?t.substring(u,o+e-1).lastIndexOf(s):d.lastIndexOf(s,p)))break;c=l,r=u+l;do{if(t.charCodeAt(o+e)!==t.charCodeAt(r+e))break}while(++e=n.COMPRESS_CHUNK_MAX&&(this._onData(s,i),i=0);return i>0&&this._onData(s,i),this._onEnd(),t=this._result,this._result=null,null===t?"":t}},e.exports=r},6391:(e,t)=>{var o=t.HAS_TYPED="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array,n=!1,a=!1;try{"a"===String.fromCharCode.apply(null,[97])&&(n=!0)}catch(e){}if(o)try{"a"===String.fromCharCode.apply(null,new Uint8Array([97]))&&(a=!0)}catch(e){}t.CAN_CHARCODE_APPLY=n,t.CAN_CHARCODE_APPLY_TYPED=a;var r=t.APPLY_BUFFER_SIZE=65533;t.APPLY_BUFFER_SIZE_OK=null;var s=!1;-1!=="abcほげ".lastIndexOf("ほげ",1)&&(s=!0),t.STRING_LASTINDEXOF_BUG=s;var i=t.BASE62TABLE="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",l=t.TABLE_LENGTH=i.length,c=Math.max(l,62)-Math.min(l,62);t.BUFFER_MAX=l-1;var u=t.WINDOW_MAX=1024;t.WINDOW_BUFFER_MAX=304;var d=t.COMPRESS_CHUNK_SIZE=r;t.COMPRESS_CHUNK_MAX=d-l;var p=t.DECOMPRESS_CHUNK_SIZE=r;t.DECOMPRESS_CHUNK_MAX=p+2*u,t.LATIN_BUFFER_MAX=132;var h=t.UNICODE_CHAR_MAX=40;t.UNICODE_BUFFER_MAX=h*(h+1),t.LATIN_INDEX=l+1,t.LATIN_INDEX_START=c+20,t.UNICODE_INDEX=l+5,t.DECODE_MAX=l-c-19;var m=t.LATIN_DECODE_MAX=h+7,f=t.CHAR_START=m+1,g=t.COMPRESS_START=f+1,y=t.COMPRESS_FIXED_START=g+5;t.COMPRESS_INDEX=y+5},9797:(e,t,o)=>{var n=o(6391),a=o(8377);function r(e){this._init(e)}r.prototype={_init:function(e){e=e||{},this._result=null,this._onDataCallback=e.onData,this._onEndCallback=e.onEnd},_createTable:function(){for(var e={},t=0;t0&&this._onDataCallback(a.bufferToString_fast(t))}},_onEnd:function(){this._onEndCallback&&this._onEndCallback()},decompress:function(e){if(null==e||0===e.length)return"";this._result=a.stringToArray(a.createWindow());for(var t,o,r,s,i,l,c,u,d,p,h=this._createTable(),m=!1,f=null,g=e.length,y=0;yc&&(u.length=c),d=u.length,u.length>0)for(p=0;p=c));o++);f=null}this._result.length>=n.DECOMPRESS_CHUNK_MAX&&this._onData()}return this._result=this._result.slice(n.WINDOW_MAX),this._onData(!0),this._onEnd(),t=a.bufferToString_fast(this._result),this._result=null,t}},e.exports=r},3135:(e,t,o)=>{var n=o(946),a=o(9797);t.version=o(1014).version,t.compress=function(e,t){return new n(t).compress(e)},t.decompress=function(e,t){return new a(t).decompress(e)}},8377:(e,t,o)=>{var n=o(6391),a=String.fromCharCode;t.createBuffer=function(e,t){if(!n.HAS_TYPED)return new Array(t);switch(e){case 8:return new Uint8Array(t);case 16:return new Uint16Array(t)}};var r=t.truncateBuffer=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};t.bufferToString_fast=function(e,t){if(null==t?t=e.length:e=r(e,t),n.CAN_CHARCODE_APPLY&&n.CAN_CHARCODE_APPLY_TYPED){var o=e.length;if(on.APPLY_BUFFER_SIZE&&(n.APPLY_BUFFER_SIZE_OK=!0),i}catch(e){n.APPLY_BUFFER_SIZE_OK=!1}}return s(e)};var s=t.bufferToString_chunked=function(e){for(var t,o="",r=e.length,s=0;sn.APPLY_BUFFER_SIZE&&(n.APPLY_BUFFER_SIZE_OK=!0);continue}catch(e){n.APPLY_BUFFER_SIZE_OK=!1}return i(e)}o+=a.apply(null,t)}return o},i=t.bufferToString_slow=function(e){for(var t="",o=e.length,n=0;n>7,t=" ";!(e&n.WINDOW_MAX);)t+=t,e<<=1;return t}},7824:e=>{var t=1e3,o=60*t,n=60*o,a=24*n;function r(e,t,o,n){var a=t>=1.5*o;return Math.round(e/o)+" "+n+(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*n;case"minutes":case"minute":case"mins":case"min":case"m":return s*o;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>=n?r(i,l,n,"hour"):l>=o?r(i,l,o,"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>=n?Math.round(e/n)+"h":r>=o?Math.round(e/o)+"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,o)=>{"use strict";o.r(t),o.d(t,{default:()=>y});var n=o(3379),a=o.n(n),r=o(7795),s=o.n(r),i=o(569),l=o.n(i),c=o(3565),u=o.n(c),d=o(9216),p=o.n(d),h=o(4589),m=o.n(h),f=o(450),g={};g.styleTagTransform=m(),g.setAttributes=u(),g.insert=l().bind(null,"head"),g.domAPI=s(),g.insertStyleElement=p(),a()(f.Z,g);const y=f.Z&&f.Z.locals?f.Z.locals:void 0},3379:e=>{"use strict";var t=[];function o(e){for(var o=-1,n=0;n{"use strict";var t={};e.exports=function(e,o){var n=function(e){if(void 0===t[e]){var o=document.querySelector(e);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(e){o=null}t[e]=o}return t[e]}(e);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(o)}},9216:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},3565:(e,t,o)=>{"use strict";e.exports=function(e){var t=o.nc;t&&e.setAttribute("nonce",t)}},7795:e=>{"use strict";e.exports=function(e){var t=e.insertStyleElement(e);return{update:function(o){!function(e,t,o){var n="";o.supports&&(n+="@supports (".concat(o.supports,") {")),o.media&&(n+="@media ".concat(o.media," {"));var a=void 0!==o.layer;a&&(n+="@layer".concat(o.layer.length>0?" ".concat(o.layer):""," {")),n+=o.css,a&&(n+="}"),o.media&&(n+="}"),o.supports&&(n+="}");var r=o.sourceMap;r&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(r))))," */")),t.styleTagTransform(n,e,t.options)}(t,e,o)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},4589:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},6455:function(e){e.exports=function(){"use strict";const e="SweetAlert2:",t=e=>e.charAt(0).toUpperCase()+e.slice(1),o=t=>{console.warn("".concat(e," ").concat("object"==typeof t?t.join(" "):t))},n=t=>{console.error("".concat(e," ").concat(t))},a=[],r=(e,t)=>{var n;n='"'.concat(e,'" is deprecated and will be removed in the next major release. Please use "').concat(t,'" instead.'),a.includes(n)||(a.push(n),o(n))},s=e=>"function"==typeof e?e():e,i=e=>e&&"function"==typeof e.toPromise,l=e=>i(e)?e.toPromise():Promise.resolve(e),c=e=>e&&Promise.resolve(e)===e,u={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,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",color:void 0,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,willOpen:void 0,didOpen:void 0,didRender:void 0,willClose:void 0,didClose:void 0,didDestroy:void 0,scrollbarPadding:!0},d=["allowEscapeKey","allowOutsideClick","background","buttonsStyling","cancelButtonAriaLabel","cancelButtonColor","cancelButtonText","closeButtonAriaLabel","closeButtonHtml","color","confirmButtonAriaLabel","confirmButtonColor","confirmButtonText","currentProgressStep","customClass","denyButtonAriaLabel","denyButtonColor","denyButtonText","didClose","didDestroy","footer","hideClass","html","icon","iconColor","iconHtml","imageAlt","imageHeight","imageUrl","imageWidth","preConfirm","preDeny","progressSteps","returnFocus","reverseButtons","showCancelButton","showCloseButton","showConfirmButton","showDenyButton","text","title","titleText","willClose"],p={},h=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],m=e=>Object.prototype.hasOwnProperty.call(u,e),f=e=>-1!==d.indexOf(e),g=e=>p[e],y=e=>{m(e)||o('Unknown parameter "'.concat(e,'"'))},w=e=>{h.includes(e)&&o('The parameter "'.concat(e,'" is incompatible with toasts'))},b=e=>{g(e)&&r(e,g(e))},_=e=>{const t={};for(const o in e)t[e[o]]="swal2-"+e[o];return t},v=_(["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","show","hide","close","title","html-container","actions","confirm","deny","cancel","default-outline","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","input-label","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loader","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error","no-war"]),k=_(["success","warning","info","question","error"]),C=()=>document.body.querySelector(".".concat(v.container)),E=e=>{const t=C();return t?t.querySelector(e):null},x=e=>E(".".concat(e)),S=()=>x(v.popup),A=()=>x(v.icon),T=()=>x(v.title),P=()=>x(v["html-container"]),I=()=>x(v.image),D=()=>x(v["progress-steps"]),B=()=>x(v["validation-message"]),O=()=>E(".".concat(v.actions," .").concat(v.confirm)),R=()=>E(".".concat(v.actions," .").concat(v.deny)),M=()=>E(".".concat(v.loader)),N=()=>E(".".concat(v.actions," .").concat(v.cancel)),L=()=>x(v.actions),F=()=>x(v.footer),j=()=>x(v["timer-progress-bar"]),H=()=>x(v.close),U=()=>{const e=Array.from(S().querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])')).sort(((e,t)=>{const o=parseInt(e.getAttribute("tabindex")),n=parseInt(t.getAttribute("tabindex"));return o>n?1:o"-1"!==e.getAttribute("tabindex")));return(e=>{const t=[];for(let o=0;ore(e)))},q=()=>G(document.body,v.shown)&&!G(document.body,v["toast-shown"])&&!G(document.body,v["no-backdrop"]),Y=()=>S()&&G(S(),v.toast),W={previousBodyPadding:null},z=(e,t)=>{if(e.textContent="",t){const o=(new DOMParser).parseFromString(t,"text/html");Array.from(o.querySelector("head").childNodes).forEach((t=>{e.appendChild(t)})),Array.from(o.querySelector("body").childNodes).forEach((t=>{e.appendChild(t)}))}},G=(e,t)=>{if(!t)return!1;const o=t.split(/\s+/);for(let t=0;t{if(((e,t)=>{Array.from(e.classList).forEach((o=>{Object.values(v).includes(o)||Object.values(k).includes(o)||Object.values(t.showClass).includes(o)||e.classList.remove(o)}))})(e,t),t.customClass&&t.customClass[n]){if("string"!=typeof t.customClass[n]&&!t.customClass[n].forEach)return o("Invalid type of customClass.".concat(n,'! Expected string or iterable object, got "').concat(typeof t.customClass[n],'"'));$(e,t.customClass[n])}},K=(e,t)=>{if(!t)return null;switch(t){case"select":case"textarea":case"file":return e.querySelector(".".concat(v.popup," > .").concat(v[t]));case"checkbox":return e.querySelector(".".concat(v.popup," > .").concat(v.checkbox," input"));case"radio":return e.querySelector(".".concat(v.popup," > .").concat(v.radio," input:checked"))||e.querySelector(".".concat(v.popup," > .").concat(v.radio," input:first-child"));case"range":return e.querySelector(".".concat(v.popup," > .").concat(v.range," input"));default:return e.querySelector(".".concat(v.popup," > .").concat(v.input))}},X=e=>{if(e.focus(),"file"!==e.type){const t=e.value;e.value="",e.value=t}},Z=(e,t,o)=>{e&&t&&("string"==typeof t&&(t=t.split(/\s+/).filter(Boolean)),t.forEach((t=>{Array.isArray(e)?e.forEach((e=>{o?e.classList.add(t):e.classList.remove(t)})):o?e.classList.add(t):e.classList.remove(t)})))},$=(e,t)=>{Z(e,t,!0)},J=(e,t)=>{Z(e,t,!1)},Q=(e,t)=>{const o=Array.from(e.children);for(let e=0;e{o==="".concat(parseInt(o))&&(o=parseInt(o)),o||0===parseInt(o)?e.style[t]="number"==typeof o?"".concat(o,"px"):o:e.style.removeProperty(t)},te=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"flex";e.style.display=t},oe=e=>{e.style.display="none"},ne=(e,t,o,n)=>{const a=e.querySelector(t);a&&(a.style[o]=n)},ae=function(e,t){t?te(e,arguments.length>2&&void 0!==arguments[2]?arguments[2]:"flex"):oe(e)},re=e=>!(!e||!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)),se=e=>!!(e.scrollHeight>e.clientHeight),ie=e=>{const t=window.getComputedStyle(e),o=parseFloat(t.getPropertyValue("animation-duration")||"0"),n=parseFloat(t.getPropertyValue("transition-duration")||"0");return o>0||n>0},le=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const o=j();re(o)&&(t&&(o.style.transition="none",o.style.width="100%"),setTimeout((()=>{o.style.transition="width ".concat(e/1e3,"s linear"),o.style.width="0%"}),10))},ce=()=>"undefined"==typeof window||"undefined"==typeof document,ue={},de=e=>new Promise((t=>{if(!e)return t();const o=window.scrollX,n=window.scrollY;ue.restoreFocusTimeout=setTimeout((()=>{ue.previousActiveElement instanceof HTMLElement?(ue.previousActiveElement.focus(),ue.previousActiveElement=null):document.body&&document.body.focus(),t()}),100),window.scrollTo(o,n)})),pe='\n
                      \n \n
                        \n
                        \n \n

                        \n
                        \n \n \n
                        \n \n \n
                        \n \n
                        \n \n \n
                        \n
                        \n
                        \n \n \n \n
                        \n
                        \n
                        \n
                        \n
                        \n
                        \n').replace(/(^|\n)\s*/g,""),he=()=>{ue.currentInstance.resetValidationMessage()},me=e=>{const t=(()=>{const e=C();return!!e&&(e.remove(),J([document.documentElement,document.body],[v["no-backdrop"],v["toast-shown"],v["has-column"]]),!0)})();if(ce())return void n("SweetAlert2 requires document to initialize");const o=document.createElement("div");o.className=v.container,t&&$(o,v["no-transition"]),z(o,pe);const a="string"==typeof(r=e.target)?document.querySelector(r):r;var r;a.appendChild(o),(e=>{const t=S();t.setAttribute("role",e.toast?"alert":"dialog"),t.setAttribute("aria-live",e.toast?"polite":"assertive"),e.toast||t.setAttribute("aria-modal","true")})(e),(e=>{"rtl"===window.getComputedStyle(e).direction&&$(C(),v.rtl)})(a),(()=>{const e=S(),t=Q(e,v.input),o=Q(e,v.file),n=e.querySelector(".".concat(v.range," input")),a=e.querySelector(".".concat(v.range," output")),r=Q(e,v.select),s=e.querySelector(".".concat(v.checkbox," input")),i=Q(e,v.textarea);t.oninput=he,o.onchange=he,r.onchange=he,s.onchange=he,i.oninput=he,n.oninput=()=>{he(),a.value=n.value},n.onchange=()=>{he(),a.value=n.value}})()},fe=(e,t)=>{e instanceof HTMLElement?t.appendChild(e):"object"==typeof e?ge(e,t):e&&z(t,e)},ge=(e,t)=>{e.jquery?ye(t,e):z(t,e.toString())},ye=(e,t)=>{if(e.textContent="",0 in t)for(let o=0;o in t;o++)e.appendChild(t[o].cloneNode(!0));else e.appendChild(t.cloneNode(!0))},we=(()=>{if(ce())return!1;const e=document.createElement("div"),t={WebkitAnimation:"webkitAnimationEnd",animation:"animationend"};for(const o in t)if(Object.prototype.hasOwnProperty.call(t,o)&&void 0!==e.style[o])return t[o];return!1})(),be=(e,t)=>{const o=L(),n=M();t.showConfirmButton||t.showDenyButton||t.showCancelButton?te(o):oe(o),V(o,t,"actions"),function(e,t,o){const n=O(),a=R(),r=N();_e(n,"confirm",o),_e(a,"deny",o),_e(r,"cancel",o),function(e,t,o,n){if(!n.buttonsStyling)return J([e,t,o],v.styled);$([e,t,o],v.styled),n.confirmButtonColor&&(e.style.backgroundColor=n.confirmButtonColor,$(e,v["default-outline"])),n.denyButtonColor&&(t.style.backgroundColor=n.denyButtonColor,$(t,v["default-outline"])),n.cancelButtonColor&&(o.style.backgroundColor=n.cancelButtonColor,$(o,v["default-outline"]))}(n,a,r,o),o.reverseButtons&&(o.toast?(e.insertBefore(r,n),e.insertBefore(a,n)):(e.insertBefore(r,t),e.insertBefore(a,t),e.insertBefore(n,t)))}(o,n,t),z(n,t.loaderHtml),V(n,t,"loader")};function _e(e,o,n){ae(e,n["show".concat(t(o),"Button")],"inline-block"),z(e,n["".concat(o,"ButtonText")]),e.setAttribute("aria-label",n["".concat(o,"ButtonAriaLabel")]),e.className=v[o],V(e,n,"".concat(o,"Button")),$(e,n["".concat(o,"ButtonClass")])}const ve=(e,t)=>{const n=C();n&&(function(e,t){"string"==typeof t?e.style.background=t:t||$([document.documentElement,document.body],v["no-backdrop"])}(n,t.backdrop),function(e,t){t in v?$(e,v[t]):(o('The "position" parameter is not valid, defaulting to "center"'),$(e,v.center))}(n,t.position),function(e,t){if(t&&"string"==typeof t){const o="grow-".concat(t);o in v&&$(e,v[o])}}(n,t.grow),V(n,t,"container"))};var ke={awaitingPromise:new WeakMap,promise:new WeakMap,innerParams:new WeakMap,domCache:new WeakMap};const Ce=["input","file","range","select","radio","checkbox","textarea"],Ee=e=>{if(!De[e.input])return n('Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "'.concat(e.input,'"'));const t=Pe(e.input),o=De[e.input](t,e);te(t),setTimeout((()=>{X(o)}))},xe=(e,t)=>{const o=K(S(),e);if(o){(e=>{for(let t=0;t{const t=Pe(e.input);"object"==typeof e.customClass&&$(t,e.customClass.input)},Ae=(e,t)=>{e.placeholder&&!t.inputPlaceholder||(e.placeholder=t.inputPlaceholder)},Te=(e,t,o)=>{if(o.inputLabel){e.id=v.input;const n=document.createElement("label"),a=v["input-label"];n.setAttribute("for",e.id),n.className=a,"object"==typeof o.customClass&&$(n,o.customClass.inputLabel),n.innerText=o.inputLabel,t.insertAdjacentElement("beforebegin",n)}},Pe=e=>Q(S(),v[e]||v.input),Ie=(e,t)=>{["string","number"].includes(typeof t)?e.value="".concat(t):c(t)||o('Unexpected type of inputValue! Expected "string", "number" or "Promise", got "'.concat(typeof t,'"'))},De={};De.text=De.email=De.password=De.number=De.tel=De.url=(e,t)=>(Ie(e,t.inputValue),Te(e,e,t),Ae(e,t),e.type=t.input,e),De.file=(e,t)=>(Te(e,e,t),Ae(e,t),e),De.range=(e,t)=>{const o=e.querySelector("input"),n=e.querySelector("output");return Ie(o,t.inputValue),o.type=t.input,Ie(n,t.inputValue),Te(o,e,t),e},De.select=(e,t)=>{if(e.textContent="",t.inputPlaceholder){const o=document.createElement("option");z(o,t.inputPlaceholder),o.value="",o.disabled=!0,o.selected=!0,e.appendChild(o)}return Te(e,e,t),e},De.radio=e=>(e.textContent="",e),De.checkbox=(e,t)=>{const o=K(S(),"checkbox");o.value="1",o.id=v.checkbox,o.checked=Boolean(t.inputValue);const n=e.querySelector("span");return z(n,t.inputPlaceholder),o},De.textarea=(e,t)=>{Ie(e,t.inputValue),Ae(e,t),Te(e,e,t);return setTimeout((()=>{if("MutationObserver"in window){const t=parseInt(window.getComputedStyle(S()).width);new MutationObserver((()=>{const o=e.offsetWidth+(n=e,parseInt(window.getComputedStyle(n).marginLeft)+parseInt(window.getComputedStyle(n).marginRight));var n;S().style.width=o>t?"".concat(o,"px"):null})).observe(e,{attributes:!0,attributeFilter:["style"]})}})),e};const Be=(e,t)=>{const o=P();V(o,t,"htmlContainer"),t.html?(fe(t.html,o),te(o,"block")):t.text?(o.textContent=t.text,te(o,"block")):oe(o),((e,t)=>{const o=S(),n=ke.innerParams.get(e),a=!n||t.input!==n.input;Ce.forEach((e=>{const n=Q(o,v[e]);xe(e,t.inputAttributes),n.className=v[e],a&&oe(n)})),t.input&&(a&&Ee(t),Se(t))})(e,t)},Oe=(e,t)=>{for(const o in k)t.icon!==o&&J(e,k[o]);$(e,k[t.icon]),Ne(e,t),Re(),V(e,t,"icon")},Re=()=>{const e=S(),t=window.getComputedStyle(e).getPropertyValue("background-color"),o=e.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");for(let e=0;e{let o,n=e.innerHTML;t.iconHtml?o=Le(t.iconHtml):"success"===t.icon?(o='\n
                        \n \n
                        \n
                        \n',n=n.replace(/ style=".*?"/g,"")):o="error"===t.icon?'\n \n \n \n \n':Le({question:"?",warning:"!",info:"i"}[t.icon]),n.trim()!==o.trim()&&z(e,o)},Ne=(e,t)=>{if(t.iconColor){e.style.color=t.iconColor,e.style.borderColor=t.iconColor;for(const o of[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"])ne(e,o,"backgroundColor",t.iconColor);ne(e,".swal2-success-ring","borderColor",t.iconColor)}},Le=e=>'
                        ').concat(e,"
                        "),Fe=e=>{const t=document.createElement("li");return $(t,v["progress-step"]),z(t,e),t},je=e=>{const t=document.createElement("li");return $(t,v["progress-step-line"]),e.progressStepsDistance&&ee(t,"width",e.progressStepsDistance),t},He=(e,t)=>{e.className="".concat(v.popup," ").concat(re(e)?t.showClass.popup:""),t.toast?($([document.documentElement,document.body],v["toast-shown"]),$(e,v.toast)):$(e,v.modal),V(e,t,"popup"),"string"==typeof t.customClass&&$(e,t.customClass),t.icon&&$(e,v["icon-".concat(t.icon)])},Ue=(e,t)=>{((e,t)=>{const o=C(),n=S();t.toast?(ee(o,"width",t.width),n.style.width="100%",n.insertBefore(M(),A())):ee(n,"width",t.width),ee(n,"padding",t.padding),t.color&&(n.style.color=t.color),t.background&&(n.style.background=t.background),oe(B()),He(n,t)})(0,t),ve(0,t),((e,t)=>{const n=D();if(!t.progressSteps||0===t.progressSteps.length)return oe(n);te(n),n.textContent="",t.currentProgressStep>=t.progressSteps.length&&o("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),t.progressSteps.forEach(((e,o)=>{const a=Fe(e);if(n.appendChild(a),o===t.currentProgressStep&&$(a,v["active-progress-step"]),o!==t.progressSteps.length-1){const e=je(t);n.appendChild(e)}}))})(0,t),((e,t)=>{const o=ke.innerParams.get(e),a=A();if(o&&t.icon===o.icon)return Me(a,t),void Oe(a,t);if(t.icon||t.iconHtml){if(t.icon&&-1===Object.keys(k).indexOf(t.icon))return n('Unknown icon! Expected "success", "error", "warning", "info" or "question", got "'.concat(t.icon,'"')),void oe(a);te(a),Me(a,t),Oe(a,t),$(a,t.showClass.icon)}else oe(a)})(e,t),((e,t)=>{const o=I();if(!t.imageUrl)return oe(o);te(o,""),o.setAttribute("src",t.imageUrl),o.setAttribute("alt",t.imageAlt),ee(o,"width",t.imageWidth),ee(o,"height",t.imageHeight),o.className=v.image,V(o,t,"image")})(0,t),((e,t)=>{const o=T();ae(o,t.title||t.titleText,"block"),t.title&&fe(t.title,o),t.titleText&&(o.innerText=t.titleText),V(o,t,"title")})(0,t),((e,t)=>{const o=H();z(o,t.closeButtonHtml),V(o,t,"closeButton"),ae(o,t.showCloseButton),o.setAttribute("aria-label",t.closeButtonAriaLabel)})(0,t),Be(e,t),be(0,t),((e,t)=>{const o=F();ae(o,t.footer),t.footer&&fe(t.footer,o),V(o,t,"footer")})(0,t),"function"==typeof t.didRender&&t.didRender(S())},qe=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),Ye=()=>{Array.from(document.body.children).forEach((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")}))},We=["swal-title","swal-html","swal-footer"],ze=e=>{const t={};return Array.from(e.querySelectorAll("swal-param")).forEach((e=>{Je(e,["name","value"]);const o=e.getAttribute("name"),n=e.getAttribute("value");"boolean"==typeof u[o]&&"false"===n&&(t[o]=!1),"object"==typeof u[o]&&(t[o]=JSON.parse(n))})),t},Ge=e=>{const o={};return Array.from(e.querySelectorAll("swal-button")).forEach((e=>{Je(e,["type","color","aria-label"]);const n=e.getAttribute("type");o["".concat(n,"ButtonText")]=e.innerHTML,o["show".concat(t(n),"Button")]=!0,e.hasAttribute("color")&&(o["".concat(n,"ButtonColor")]=e.getAttribute("color")),e.hasAttribute("aria-label")&&(o["".concat(n,"ButtonAriaLabel")]=e.getAttribute("aria-label"))})),o},Ve=e=>{const t={},o=e.querySelector("swal-image");return o&&(Je(o,["src","width","height","alt"]),o.hasAttribute("src")&&(t.imageUrl=o.getAttribute("src")),o.hasAttribute("width")&&(t.imageWidth=o.getAttribute("width")),o.hasAttribute("height")&&(t.imageHeight=o.getAttribute("height")),o.hasAttribute("alt")&&(t.imageAlt=o.getAttribute("alt"))),t},Ke=e=>{const t={},o=e.querySelector("swal-icon");return o&&(Je(o,["type","color"]),o.hasAttribute("type")&&(t.icon=o.getAttribute("type")),o.hasAttribute("color")&&(t.iconColor=o.getAttribute("color")),t.iconHtml=o.innerHTML),t},Xe=e=>{const t={},o=e.querySelector("swal-input");o&&(Je(o,["type","label","placeholder","value"]),t.input=o.getAttribute("type")||"text",o.hasAttribute("label")&&(t.inputLabel=o.getAttribute("label")),o.hasAttribute("placeholder")&&(t.inputPlaceholder=o.getAttribute("placeholder")),o.hasAttribute("value")&&(t.inputValue=o.getAttribute("value")));const n=Array.from(e.querySelectorAll("swal-input-option"));return n.length&&(t.inputOptions={},n.forEach((e=>{Je(e,["value"]);const o=e.getAttribute("value"),n=e.innerHTML;t.inputOptions[o]=n}))),t},Ze=(e,t)=>{const o={};for(const n in t){const a=t[n],r=e.querySelector(a);r&&(Je(r,[]),o[a.replace(/^swal-/,"")]=r.innerHTML.trim())}return o},$e=e=>{const t=We.concat(["swal-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Array.from(e.children).forEach((e=>{const n=e.tagName.toLowerCase();-1===t.indexOf(n)&&o("Unrecognized element <".concat(n,">"))}))},Je=(e,t)=>{Array.from(e.attributes).forEach((n=>{-1===t.indexOf(n.name)&&o(['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.")])}))};var Qe={email:(e,t)=>/^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]{2,24}$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid email address"),url:(e,t)=>/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid URL")};function et(e){(function(e){e.inputValidator||Object.keys(Qe).forEach((t=>{e.input===t&&(e.inputValidator=Qe[t])}))})(e),e.showLoaderOnConfirm&&!e.preConfirm&&o("showLoaderOnConfirm is set to true, but preConfirm is not defined.\nshowLoaderOnConfirm should be used together with preConfirm, see usage example:\nhttps://sweetalert2.github.io/#ajax-request"),function(e){(!e.target||"string"==typeof e.target&&!document.querySelector(e.target)||"string"!=typeof e.target&&!e.target.appendChild)&&(o('Target parameter is not valid, defaulting to "body"'),e.target="body")}(e),"string"==typeof e.title&&(e.title=e.title.split("\n").join("
                        ")),me(e)}class tt{constructor(e,t){this.callback=e,this.remaining=t,this.running=!1,this.start()}start(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}stop(){return this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=(new Date).getTime()-this.started.getTime()),this.remaining}increase(e){const t=this.running;return t&&this.stop(),this.remaining+=e,t&&this.start(),this.remaining}getTimerLeft(){return this.running&&(this.stop(),this.start()),this.remaining}isRunning(){return this.running}}const ot=()=>{null===W.previousBodyPadding&&document.body.scrollHeight>window.innerHeight&&(W.previousBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight="".concat(W.previousBodyPadding+(()=>{const e=document.createElement("div");e.className=v["scrollbar-measure"],document.body.appendChild(e);const t=e.getBoundingClientRect().width-e.clientWidth;return document.body.removeChild(e),t})(),"px"))},nt=()=>{const e=navigator.userAgent,t=!!e.match(/iPad/i)||!!e.match(/iPhone/i),o=!!e.match(/WebKit/i);if(t&&o&&!e.match(/CriOS/i)){const e=44;S().scrollHeight>window.innerHeight-e&&(C().style.paddingBottom="".concat(e,"px"))}},at=()=>{const e=C();let t;e.ontouchstart=e=>{t=rt(e)},e.ontouchmove=e=>{t&&(e.preventDefault(),e.stopPropagation())}},rt=e=>{const t=e.target,o=C();return!(st(e)||it(e)||t!==o&&(se(o)||!(t instanceof HTMLElement)||"INPUT"===t.tagName||"TEXTAREA"===t.tagName||se(P())&&P().contains(t)))},st=e=>e.touches&&e.touches.length&&"stylus"===e.touches[0].touchType,it=e=>e.touches&&e.touches.length>1,lt=e=>{const t=C(),o=S();"function"==typeof e.willOpen&&e.willOpen(o);const n=window.getComputedStyle(document.body).overflowY;pt(t,o,e),setTimeout((()=>{ut(t,o)}),10),q()&&(dt(t,e.scrollbarPadding,n),Array.from(document.body.children).forEach((e=>{e===C()||e.contains(C())||(e.hasAttribute("aria-hidden")&&e.setAttribute("data-previous-aria-hidden",e.getAttribute("aria-hidden")),e.setAttribute("aria-hidden","true"))}))),Y()||ue.previousActiveElement||(ue.previousActiveElement=document.activeElement),"function"==typeof e.didOpen&&setTimeout((()=>e.didOpen(o))),J(t,v["no-transition"])},ct=e=>{const t=S();if(e.target!==t)return;const o=C();t.removeEventListener(we,ct),o.style.overflowY="auto"},ut=(e,t)=>{we&&ie(t)?(e.style.overflowY="hidden",t.addEventListener(we,ct)):e.style.overflowY="auto"},dt=(e,t,o)=>{(()=>{if((/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)&&!G(document.body,v.iosfix)){const e=document.body.scrollTop;document.body.style.top="".concat(-1*e,"px"),$(document.body,v.iosfix),at(),nt()}})(),t&&"hidden"!==o&&ot(),setTimeout((()=>{e.scrollTop=0}))},pt=(e,t,o)=>{$(e,o.showClass.backdrop),t.style.setProperty("opacity","0","important"),te(t,"grid"),setTimeout((()=>{$(t,o.showClass.popup),t.style.removeProperty("opacity")}),10),$([document.documentElement,document.body],v.shown),o.heightAuto&&o.backdrop&&!o.toast&&$([document.documentElement,document.body],v["height-auto"])},ht=e=>{let t=S();t||new Ao,t=S();const o=M();Y()?oe(A()):mt(t,e),te(o),t.setAttribute("data-loading","true"),t.setAttribute("aria-busy","true"),t.focus()},mt=(e,t)=>{const o=L(),n=M();!t&&re(O())&&(t=O()),te(o),t&&(oe(t),n.setAttribute("data-button-to-replace",t.className)),n.parentNode.insertBefore(n,t),$([e,o],v.loading)},ft=e=>e.checked?1:0,gt=e=>e.checked?e.value:null,yt=e=>e.files.length?null!==e.getAttribute("multiple")?e.files:e.files[0]:null,wt=(e,t)=>{const o=S(),a=e=>_t[t.input](o,vt(e),t);i(t.inputOptions)||c(t.inputOptions)?(ht(O()),l(t.inputOptions).then((t=>{e.hideLoading(),a(t)}))):"object"==typeof t.inputOptions?a(t.inputOptions):n("Unexpected type of inputOptions! Expected object, Map or Promise, got ".concat(typeof t.inputOptions))},bt=(e,t)=>{const o=e.getInput();oe(o),l(t.inputValue).then((n=>{o.value="number"===t.input?parseFloat(n)||0:"".concat(n),te(o),o.focus(),e.hideLoading()})).catch((t=>{n("Error in inputValue promise: ".concat(t)),o.value="",te(o),o.focus(),e.hideLoading()}))},_t={select:(e,t,o)=>{const n=Q(e,v.select),a=(e,t,n)=>{const a=document.createElement("option");a.value=n,z(a,t),a.selected=kt(n,o.inputValue),e.appendChild(a)};t.forEach((e=>{const t=e[0],o=e[1];if(Array.isArray(o)){const e=document.createElement("optgroup");e.label=t,e.disabled=!1,n.appendChild(e),o.forEach((t=>a(e,t[1],t[0])))}else a(n,o,t)})),n.focus()},radio:(e,t,o)=>{const n=Q(e,v.radio);t.forEach((e=>{const t=e[0],a=e[1],r=document.createElement("input"),s=document.createElement("label");r.type="radio",r.name=v.radio,r.value=t,kt(t,o.inputValue)&&(r.checked=!0);const i=document.createElement("span");z(i,a),i.className=v.label,s.appendChild(r),s.appendChild(i),n.appendChild(s)}));const a=n.querySelectorAll("input");a.length&&a[0].focus()}},vt=e=>{const t=[];return"undefined"!=typeof Map&&e instanceof Map?e.forEach(((e,o)=>{let n=e;"object"==typeof n&&(n=vt(n)),t.push([o,n])})):Object.keys(e).forEach((o=>{let n=e[o];"object"==typeof n&&(n=vt(n)),t.push([o,n])})),t},kt=(e,t)=>t&&t.toString()===e.toString();function Ct(){const e=ke.innerParams.get(this);if(!e)return;const t=ke.domCache.get(this);oe(t.loader),Y()?e.icon&&te(A()):Et(t),J([t.popup,t.actions],v.loading),t.popup.removeAttribute("aria-busy"),t.popup.removeAttribute("data-loading"),t.confirmButton.disabled=!1,t.denyButton.disabled=!1,t.cancelButton.disabled=!1}const Et=e=>{const t=e.popup.getElementsByClassName(e.loader.getAttribute("data-button-to-replace"));t.length?te(t[0],"inline-block"):!re(O())&&!re(R())&&!re(N())&&oe(e.actions)};var xt={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};const St=()=>O()&&O().click(),At=e=>{e.keydownTarget&&e.keydownHandlerAdded&&(e.keydownTarget.removeEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!1)},Tt=(e,t,o)=>{const n=U();if(n.length)return(t+=o)===n.length?t=0:-1===t&&(t=n.length-1),n[t].focus();S().focus()},Pt=["ArrowRight","ArrowDown"],It=["ArrowLeft","ArrowUp"],Dt=(e,t,o)=>{const n=ke.innerParams.get(e);n&&(t.isComposing||229===t.keyCode||(n.stopKeydownPropagation&&t.stopPropagation(),"Enter"===t.key?Bt(e,t,n):"Tab"===t.key?Ot(t,n):[...Pt,...It].includes(t.key)?Rt(t.key):"Escape"===t.key&&Mt(t,n,o)))},Bt=(e,t,o)=>{if(s(o.allowEnterKey)&&t.target&&e.getInput()&&t.target instanceof HTMLElement&&t.target.outerHTML===e.getInput().outerHTML){if(["textarea","file"].includes(o.input))return;St(),t.preventDefault()}},Ot=(e,t)=>{const o=e.target,n=U();let a=-1;for(let e=0;e{const t=O(),o=R(),n=N();if(document.activeElement instanceof HTMLElement&&![t,o,n].includes(document.activeElement))return;const a=Pt.includes(e)?"nextElementSibling":"previousElementSibling";let r=document.activeElement;for(let e=0;e{s(t.allowEscapeKey)&&(e.preventDefault(),o(qe.esc))};function Nt(e,t,o,n){Y()?Yt(e,n):(de(o).then((()=>Yt(e,n))),At(ue)),/^((?!chrome|android).)*safari/i.test(navigator.userAgent)?(t.setAttribute("style","display:none !important"),t.removeAttribute("class"),t.innerHTML=""):t.remove(),q()&&(null!==W.previousBodyPadding&&(document.body.style.paddingRight="".concat(W.previousBodyPadding,"px"),W.previousBodyPadding=null),(()=>{if(G(document.body,v.iosfix)){const e=parseInt(document.body.style.top,10);J(document.body,v.iosfix),document.body.style.top="",document.body.scrollTop=-1*e}})(),Ye()),J([document.documentElement,document.body],[v.shown,v["height-auto"],v["no-backdrop"],v["toast-shown"]])}function Lt(e){e=Ht(e);const t=xt.swalPromiseResolve.get(this),o=Ft(this);this.isAwaitingPromise()?e.isDismissed||(jt(this),t(e)):o&&t(e)}const Ft=e=>{const t=S();if(!t)return!1;const o=ke.innerParams.get(e);if(!o||G(t,o.hideClass.popup))return!1;J(t,o.showClass.popup),$(t,o.hideClass.popup);const n=C();return J(n,o.showClass.backdrop),$(n,o.hideClass.backdrop),Ut(e,t,o),!0};const jt=e=>{e.isAwaitingPromise()&&(ke.awaitingPromise.delete(e),ke.innerParams.get(e)||e._destroy())},Ht=e=>void 0===e?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},e),Ut=(e,t,o)=>{const n=C(),a=we&&ie(t);"function"==typeof o.willClose&&o.willClose(t),a?qt(e,t,n,o.returnFocus,o.didClose):Nt(e,n,o.returnFocus,o.didClose)},qt=(e,t,o,n,a)=>{ue.swalCloseEventFinishedCallback=Nt.bind(null,e,o,n,a),t.addEventListener(we,(function(e){e.target===t&&(ue.swalCloseEventFinishedCallback(),delete ue.swalCloseEventFinishedCallback)}))},Yt=(e,t)=>{setTimeout((()=>{"function"==typeof t&&t.bind(e.params)(),e._destroy()}))};function Wt(e,t,o){const n=ke.domCache.get(e);t.forEach((e=>{n[e].disabled=o}))}function zt(e,t){if(!e)return!1;if("radio"===e.type){const o=e.parentNode.parentNode.querySelectorAll("input");for(let e=0;e{const t={};return Object.keys(e).forEach((n=>{f(n)?t[n]=e[n]:o("Invalid parameter to update: ".concat(n))})),t};const Vt=e=>{Kt(e),delete e.params,delete ue.keydownHandler,delete ue.keydownTarget,delete ue.currentInstance},Kt=e=>{e.isAwaitingPromise()?(Xt(ke,e),ke.awaitingPromise.set(e,!0)):(Xt(xt,e),Xt(ke,e))},Xt=(e,t)=>{for(const o in e)e[o].delete(t)};var Zt=Object.freeze({hideLoading:Ct,disableLoading:Ct,getInput:function(e){const t=ke.innerParams.get(e||this),o=ke.domCache.get(e||this);return o?K(o.popup,t.input):null},close:Lt,isAwaitingPromise:function(){return!!ke.awaitingPromise.get(this)},rejectPromise:function(e){const t=xt.swalPromiseReject.get(this);jt(this),t&&t(e)},handleAwaitingPromise:jt,closePopup:Lt,closeModal:Lt,closeToast:Lt,enableButtons:function(){Wt(this,["confirmButton","denyButton","cancelButton"],!1)},disableButtons:function(){Wt(this,["confirmButton","denyButton","cancelButton"],!0)},enableInput:function(){return zt(this.getInput(),!1)},disableInput:function(){return zt(this.getInput(),!0)},showValidationMessage:function(e){const t=ke.domCache.get(this),o=ke.innerParams.get(this);z(t.validationMessage,e),t.validationMessage.className=v["validation-message"],o.customClass&&o.customClass.validationMessage&&$(t.validationMessage,o.customClass.validationMessage),te(t.validationMessage);const n=this.getInput();n&&(n.setAttribute("aria-invalid",!0),n.setAttribute("aria-describedby",v["validation-message"]),X(n),$(n,v.inputerror))},resetValidationMessage:function(){const e=ke.domCache.get(this);e.validationMessage&&oe(e.validationMessage);const t=this.getInput();t&&(t.removeAttribute("aria-invalid"),t.removeAttribute("aria-describedby"),J(t,v.inputerror))},getProgressSteps:function(){return ke.domCache.get(this).progressSteps},update:function(e){const t=S(),n=ke.innerParams.get(this);if(!t||G(t,n.hideClass.popup))return o("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.");const a=Gt(e),r=Object.assign({},n,a);Ue(this,r),ke.innerParams.set(this,r),Object.defineProperties(this,{params:{value:Object.assign({},this.params,e),writable:!1,enumerable:!0}})},_destroy:function(){const e=ke.domCache.get(this),t=ke.innerParams.get(this);t?(e.popup&&ue.swalCloseEventFinishedCallback&&(ue.swalCloseEventFinishedCallback(),delete ue.swalCloseEventFinishedCallback),"function"==typeof t.didDestroy&&t.didDestroy(),Vt(this)):Kt(this)}});const $t=(e,o)=>{const a=ke.innerParams.get(e);if(!a.input)return void n('The "input" parameter is needed to be set when using returnInputValueOn'.concat(t(o)));const r=((e,t)=>{const o=e.getInput();if(!o)return null;switch(t.input){case"checkbox":return ft(o);case"radio":return gt(o);case"file":return yt(o);default:return t.inputAutoTrim?o.value.trim():o.value}})(e,a);a.inputValidator?Jt(e,r,o):e.getInput().checkValidity()?"deny"===o?Qt(e,r):oo(e,r):(e.enableButtons(),e.showValidationMessage(a.validationMessage))},Jt=(e,t,o)=>{const n=ke.innerParams.get(e);e.disableInput(),Promise.resolve().then((()=>l(n.inputValidator(t,n.validationMessage)))).then((n=>{e.enableButtons(),e.enableInput(),n?e.showValidationMessage(n):"deny"===o?Qt(e,t):oo(e,t)}))},Qt=(e,t)=>{const o=ke.innerParams.get(e||void 0);o.showLoaderOnDeny&&ht(R()),o.preDeny?(ke.awaitingPromise.set(e||void 0,!0),Promise.resolve().then((()=>l(o.preDeny(t,o.validationMessage)))).then((o=>{!1===o?(e.hideLoading(),jt(e)):e.close({isDenied:!0,value:void 0===o?t:o})})).catch((t=>to(e||void 0,t)))):e.close({isDenied:!0,value:t})},eo=(e,t)=>{e.close({isConfirmed:!0,value:t})},to=(e,t)=>{e.rejectPromise(t)},oo=(e,t)=>{const o=ke.innerParams.get(e||void 0);o.showLoaderOnConfirm&&ht(),o.preConfirm?(e.resetValidationMessage(),ke.awaitingPromise.set(e||void 0,!0),Promise.resolve().then((()=>l(o.preConfirm(t,o.validationMessage)))).then((o=>{re(B())||!1===o?(e.hideLoading(),jt(e)):eo(e,void 0===o?t:o)})).catch((t=>to(e||void 0,t)))):eo(e,t)},no=(e,t,o)=>{t.popup.onclick=()=>{const t=ke.innerParams.get(e);t&&(ao(t)||t.timer||t.input)||o(qe.close)}},ao=e=>e.showConfirmButton||e.showDenyButton||e.showCancelButton||e.showCloseButton;let ro=!1;const so=e=>{e.popup.onmousedown=()=>{e.container.onmouseup=function(t){e.container.onmouseup=void 0,t.target===e.container&&(ro=!0)}}},io=e=>{e.container.onmousedown=()=>{e.popup.onmouseup=function(t){e.popup.onmouseup=void 0,(t.target===e.popup||e.popup.contains(t.target))&&(ro=!0)}}},lo=(e,t,o)=>{t.container.onclick=n=>{const a=ke.innerParams.get(e);ro?ro=!1:n.target===t.container&&s(a.allowOutsideClick)&&o(qe.backdrop)}},co=e=>e instanceof Element||(e=>"object"==typeof e&&e.jquery)(e);const uo=()=>{if(ue.timeout)return(()=>{const e=j(),t=parseInt(window.getComputedStyle(e).width);e.style.removeProperty("transition"),e.style.width="100%";const o=t/parseInt(window.getComputedStyle(e).width)*100;e.style.removeProperty("transition"),e.style.width="".concat(o,"%")})(),ue.timeout.stop()},po=()=>{if(ue.timeout){const e=ue.timeout.start();return le(e),e}};let ho=!1;const mo={};const fo=e=>{for(let t=e.target;t&&t!==document;t=t.parentNode)for(const e in mo){const o=t.getAttribute(e);if(o)return void mo[e].fire({template:o})}};var go=Object.freeze({isValidParameter:m,isUpdatableParameter:f,isDeprecatedParameter:g,argsToParams:e=>{const t={};return"object"!=typeof e[0]||co(e[0])?["title","html","icon"].forEach(((o,a)=>{const r=e[a];"string"==typeof r||co(r)?t[o]=r:void 0!==r&&n("Unexpected type of ".concat(o,'! Expected "string" or "Element", got ').concat(typeof r))})):Object.assign(t,e[0]),t},isVisible:()=>re(S()),clickConfirm:St,clickDeny:()=>R()&&R().click(),clickCancel:()=>N()&&N().click(),getContainer:C,getPopup:S,getTitle:T,getHtmlContainer:P,getImage:I,getIcon:A,getInputLabel:()=>x(v["input-label"]),getCloseButton:H,getActions:L,getConfirmButton:O,getDenyButton:R,getCancelButton:N,getLoader:M,getFooter:F,getTimerProgressBar:j,getFocusableElements:U,getValidationMessage:B,isLoading:()=>S().hasAttribute("data-loading"),fire:function(){const e=this;for(var t=arguments.length,o=new Array(t),n=0;nue.timeout&&ue.timeout.getTimerLeft(),stopTimer:uo,resumeTimer:po,toggleTimer:()=>{const e=ue.timeout;return e&&(e.running?uo():po())},increaseTimer:e=>{if(ue.timeout){const t=ue.timeout.increase(e);return le(t,!0),t}},isTimerRunning:()=>ue.timeout&&ue.timeout.isRunning(),bindClickHandler:function(){mo[arguments.length>0&&void 0!==arguments[0]?arguments[0]:"data-swal-template"]=this,ho||(document.body.addEventListener("click",fo),ho=!0)}});let yo;class wo{constructor(){if("undefined"==typeof window)return;yo=this;for(var e=arguments.length,t=new Array(e),o=0;o1&&void 0!==arguments[1]?arguments[1]:{};(e=>{!e.backdrop&&e.allowOutsideClick&&o('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');for(const t in e)y(t),e.toast&&w(t),b(t)})(Object.assign({},t,e)),ue.currentInstance&&(ue.currentInstance._destroy(),q()&&Ye()),ue.currentInstance=yo;const n=_o(e,t);et(n),Object.freeze(n),ue.timeout&&(ue.timeout.stop(),delete ue.timeout),clearTimeout(ue.restoreFocusTimeout);const a=vo(yo);return Ue(yo,n),ke.innerParams.set(yo,n),bo(yo,a,n)}then(e){return ke.promise.get(this).then(e)}finally(e){return ke.promise.get(this).finally(e)}}const bo=(e,t,o)=>new Promise(((n,a)=>{const r=t=>{e.closePopup({isDismissed:!0,dismiss:t})};xt.swalPromiseResolve.set(e,n),xt.swalPromiseReject.set(e,a),t.confirmButton.onclick=()=>(e=>{const t=ke.innerParams.get(e);e.disableButtons(),t.input?$t(e,"confirm"):oo(e,!0)})(e),t.denyButton.onclick=()=>(e=>{const t=ke.innerParams.get(e);e.disableButtons(),t.returnInputValueOnDeny?$t(e,"deny"):Qt(e,!1)})(e),t.cancelButton.onclick=()=>((e,t)=>{e.disableButtons(),t(qe.cancel)})(e,r),t.closeButton.onclick=()=>r(qe.close),((e,t,o)=>{ke.innerParams.get(e).toast?no(e,t,o):(so(t),io(t),lo(e,t,o))})(e,t,r),((e,t,o,n)=>{At(t),o.toast||(t.keydownHandler=t=>Dt(e,t,n),t.keydownTarget=o.keydownListenerCapture?window:S(),t.keydownListenerCapture=o.keydownListenerCapture,t.keydownTarget.addEventListener("keydown",t.keydownHandler,{capture:t.keydownListenerCapture}),t.keydownHandlerAdded=!0)})(e,ue,o,r),((e,t)=>{"select"===t.input||"radio"===t.input?wt(e,t):["text","email","number","tel","textarea"].includes(t.input)&&(i(t.inputValue)||c(t.inputValue))&&(ht(O()),bt(e,t))})(e,o),lt(o),ko(ue,o,r),Co(t,o),setTimeout((()=>{t.container.scrollTop=0}))})),_o=(e,t)=>{const o=(e=>{const t="string"==typeof e.template?document.querySelector(e.template):e.template;if(!t)return{};const o=t.content;return $e(o),Object.assign(ze(o),Ge(o),Ve(o),Ke(o),Xe(o),Ze(o,We))})(e),n=Object.assign({},u,t,o,e);return n.showClass=Object.assign({},u.showClass,n.showClass),n.hideClass=Object.assign({},u.hideClass,n.hideClass),n},vo=e=>{const t={popup:S(),container:C(),actions:L(),confirmButton:O(),denyButton:R(),cancelButton:N(),loader:M(),closeButton:H(),validationMessage:B(),progressSteps:D()};return ke.domCache.set(e,t),t},ko=(e,t,o)=>{const n=j();oe(n),t.timer&&(e.timeout=new tt((()=>{o("timer"),delete e.timeout}),t.timer),t.timerProgressBar&&(te(n),V(n,t,"timerProgressBar"),setTimeout((()=>{e.timeout&&e.timeout.running&&le(t.timer)}))))},Co=(e,t)=>{if(!t.toast)return s(t.allowEnterKey)?void(Eo(e,t)||Tt(0,-1,1)):xo()},Eo=(e,t)=>t.focusDeny&&re(e.denyButton)?(e.denyButton.focus(),!0):t.focusCancel&&re(e.cancelButton)?(e.cancelButton.focus(),!0):!(!t.focusConfirm||!re(e.confirmButton)||(e.confirmButton.focus(),0)),xo=()=>{document.activeElement instanceof HTMLElement&&"function"==typeof document.activeElement.blur&&document.activeElement.blur()};if("undefined"!=typeof window&&/^ru\b/.test(navigator.language)&&location.host.match(/\.(ru|su|xn--p1ai)$/)&&Math.random()<.1){const e=document.createElement("div");e.className="leave-russia-now-and-apply-your-skills-to-the-world";const t=(So=[{text:"В нижеприведённом видео объясняется как каждый из нас может помочь в том,\n чтобы эта бессмысленная и бесчеловечная война остановилась:",id:"4CfDhaRkw7I"},{text:"Эмпатия - главное человеческое чувство. Способность сопереживать. Способность поставить себя на место другого.",id:"s-GLAIY4DXA"}])[Math.floor(Math.random()*So.length)];z(e,"\n
                        \n Если мы не остановим войну, она придет в дом каждого из нас и её последствия будут ужасающими.\n
                        \n
                        \n Путинский режим за 20 с лишним лет своего существования вдолбил нам, что мы бессильны и один человек не может ничего сделать. Это не так!\n
                        \n
                        \n ".concat(t.text,'\n
                        \n \n
                        \n Нет войне!\n
                        \n '));const o=document.createElement("button");o.innerHTML="×",o.onclick=()=>e.remove(),e.appendChild(o),window.addEventListener("load",(()=>{setTimeout((()=>{document.body.appendChild(e)}),1e3)}))}var So;Object.assign(wo.prototype,Zt),Object.assign(wo,go),Object.keys(Zt).forEach((e=>{wo[e]=function(){if(yo)return yo[e](...arguments)}})),wo.DismissReason=qe,wo.version="11.4.29";const Ao=wo;return Ao.default=Ao,Ao}(),void 0!==this&&this.Sweetalert2&&(this.swal=this.sweetAlert=this.Swal=this.SweetAlert=this.Sweetalert2),"undefined"!=typeof document&&function(e,t){var o=e.createElement("style");if(e.getElementsByTagName("head")[0].appendChild(o),o.styleSheet)o.styleSheet.disabled||(o.styleSheet.cssText=t);else try{o.innerHTML=t}catch(e){o.innerText=t}}(document,'.swal2-popup.swal2-toast{box-sizing:border-box;grid-column:1/4!important;grid-row:1/4!important;grid-template-columns:1fr 99fr 1fr;padding:1em;overflow-y:hidden;background:#fff;box-shadow:0 0 1px hsla(0deg,0%,0%,.075),0 1px 2px hsla(0deg,0%,0%,.075),1px 2px 4px hsla(0deg,0%,0%,.075),1px 3px 8px hsla(0deg,0%,0%,.075),2px 4px 16px hsla(0deg,0%,0%,.075);pointer-events:all}.swal2-popup.swal2-toast>*{grid-column:2}.swal2-popup.swal2-toast .swal2-title{margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-loading{justify-content:center}.swal2-popup.swal2-toast .swal2-input{height:2em;margin:.5em;font-size:1em}.swal2-popup.swal2-toast .swal2-validation-message{font-size:1em}.swal2-popup.swal2-toast .swal2-footer{margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-popup.swal2-toast .swal2-close{grid-column:3/3;grid-row:1/99;align-self:center;width:.8em;height:.8em;margin:0;font-size:2em}.swal2-popup.swal2-toast .swal2-html-container{margin:.5em 1em;padding:0;overflow:initial;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-html-container:empty{padding:0}.swal2-popup.swal2-toast .swal2-loader{grid-column:1;grid-row:1/99;align-self:center;width:2em;height:2em;margin:.25em}.swal2-popup.swal2-toast .swal2-icon{grid-column:1;grid-row:1/99;align-self:center;width:2em;min-width:2em;height:2em;margin:0 .5em 0 0}.swal2-popup.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:700}.swal2-popup.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-popup.swal2-toast .swal2-actions{justify-content:flex-start;height:auto;margin:0;margin-top:.5em;padding:0 .5em}.swal2-popup.swal2-toast .swal2-styled{margin:.25em .5em;padding:.4em .6em;font-size:1em}.swal2-popup.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;transform:rotate(45deg);border-radius:50%}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-.8em;left:-.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-popup.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{-webkit-animation:swal2-toast-animate-success-line-tip .75s;animation:swal2-toast-animate-success-line-tip .75s}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{-webkit-animation:swal2-toast-animate-success-line-long .75s;animation:swal2-toast-animate-success-line-long .75s}.swal2-popup.swal2-toast.swal2-show{-webkit-animation:swal2-toast-show .5s;animation:swal2-toast-show .5s}.swal2-popup.swal2-toast.swal2-hide{-webkit-animation:swal2-toast-hide .1s forwards;animation:swal2-toast-hide .1s forwards}.swal2-container{display:grid;position:fixed;z-index:1060;top:0;right:0;bottom:0;left:0;box-sizing:border-box;grid-template-areas:"top-start top top-end" "center-start center center-end" "bottom-start bottom-center bottom-end";grid-template-rows:minmax(-webkit-min-content,auto) minmax(-webkit-min-content,auto) minmax(-webkit-min-content,auto);grid-template-rows:minmax(min-content,auto) minmax(min-content,auto) minmax(min-content,auto);height:100%;padding:.625em;overflow-x:hidden;transition:background-color .1s;-webkit-overflow-scrolling:touch}.swal2-container.swal2-backdrop-show,.swal2-container.swal2-noanimation{background:rgba(0,0,0,.4)}.swal2-container.swal2-backdrop-hide{background:0 0!important}.swal2-container.swal2-bottom-start,.swal2-container.swal2-center-start,.swal2-container.swal2-top-start{grid-template-columns:minmax(0,1fr) auto auto}.swal2-container.swal2-bottom,.swal2-container.swal2-center,.swal2-container.swal2-top{grid-template-columns:auto minmax(0,1fr) auto}.swal2-container.swal2-bottom-end,.swal2-container.swal2-center-end,.swal2-container.swal2-top-end{grid-template-columns:auto auto minmax(0,1fr)}.swal2-container.swal2-top-start>.swal2-popup{align-self:start}.swal2-container.swal2-top>.swal2-popup{grid-column:2;align-self:start;justify-self:center}.swal2-container.swal2-top-end>.swal2-popup,.swal2-container.swal2-top-right>.swal2-popup{grid-column:3;align-self:start;justify-self:end}.swal2-container.swal2-center-left>.swal2-popup,.swal2-container.swal2-center-start>.swal2-popup{grid-row:2;align-self:center}.swal2-container.swal2-center>.swal2-popup{grid-column:2;grid-row:2;align-self:center;justify-self:center}.swal2-container.swal2-center-end>.swal2-popup,.swal2-container.swal2-center-right>.swal2-popup{grid-column:3;grid-row:2;align-self:center;justify-self:end}.swal2-container.swal2-bottom-left>.swal2-popup,.swal2-container.swal2-bottom-start>.swal2-popup{grid-column:1;grid-row:3;align-self:end}.swal2-container.swal2-bottom>.swal2-popup{grid-column:2;grid-row:3;justify-self:center;align-self:end}.swal2-container.swal2-bottom-end>.swal2-popup,.swal2-container.swal2-bottom-right>.swal2-popup{grid-column:3;grid-row:3;align-self:end;justify-self:end}.swal2-container.swal2-grow-fullscreen>.swal2-popup,.swal2-container.swal2-grow-row>.swal2-popup{grid-column:1/4;width:100%}.swal2-container.swal2-grow-column>.swal2-popup,.swal2-container.swal2-grow-fullscreen>.swal2-popup{grid-row:1/4;align-self:stretch}.swal2-container.swal2-no-transition{transition:none!important}.swal2-popup{display:none;position:relative;box-sizing:border-box;grid-template-columns:minmax(0,100%);width:32em;max-width:100%;padding:0 0 1.25em;border:none;border-radius:5px;background:#fff;color:#545454;font-family:inherit;font-size:1rem}.swal2-popup:focus{outline:0}.swal2-popup.swal2-loading{overflow-y:hidden}.swal2-title{position:relative;max-width:100%;margin:0;padding:.8em 1em 0;color:inherit;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:auto;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;transition:box-shadow .1s;box-shadow:0 0 0 3px transparent;font-weight:500}.swal2-styled:not([disabled]){cursor:pointer}.swal2-styled.swal2-confirm{border:0;border-radius:.25em;background:initial;background-color:#7066e0;color:#fff;font-size:1em}.swal2-styled.swal2-confirm:focus{box-shadow:0 0 0 3px rgba(112,102,224,.5)}.swal2-styled.swal2-deny{border:0;border-radius:.25em;background:initial;background-color:#dc3741;color:#fff;font-size:1em}.swal2-styled.swal2-deny:focus{box-shadow:0 0 0 3px rgba(220,55,65,.5)}.swal2-styled.swal2-cancel{border:0;border-radius:.25em;background:initial;background-color:#6e7881;color:#fff;font-size:1em}.swal2-styled.swal2-cancel:focus{box-shadow:0 0 0 3px rgba(110,120,129,.5)}.swal2-styled.swal2-default-outline:focus{box-shadow:0 0 0 3px rgba(100,150,200,.5)}.swal2-styled:focus{outline:0}.swal2-styled::-moz-focus-inner{border:0}.swal2-footer{justify-content:center;margin:1em 0 0;padding:1em 1em 0;border-top:1px solid #eee;color:inherit;font-size:1em}.swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;grid-column:auto!important;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:2em auto 1em}.swal2-close{z-index:2;align-items:center;justify-content:center;width:1.2em;height:1.2em;margin-top:0;margin-right:0;margin-bottom:-1.2em;padding:0;overflow:hidden;transition:color .1s,box-shadow .1s;border:none;border-radius:5px;background:0 0;color:#ccc;font-family:serif;font-family:monospace;font-size:2.5em;cursor:pointer;justify-self:end}.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-html-container{z-index:1;justify-content:center;margin:1em 1.6em .3em;padding:0;overflow:auto;color:inherit;font-size:1.125em;font-weight:400;line-height:normal;text-align:center;word-wrap:break-word;word-break:break-word}.swal2-checkbox,.swal2-file,.swal2-input,.swal2-radio,.swal2-select,.swal2-textarea{margin:1em 2em 3px}.swal2-file,.swal2-input,.swal2-textarea{box-sizing:border-box;width:auto;transition:border-color .1s,box-shadow .1s;border:1px solid #d9d9d9;border-radius:.1875em;background:0 0;box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px transparent;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:inset 0 1px 1px rgba(0,0,0,.06),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::placeholder,.swal2-input::placeholder,.swal2-textarea::placeholder{color:#ccc}.swal2-range{margin:1em 2em 3px;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-file{width:75%;margin-right:auto;margin-left:auto;background:0 0;font-size:1.125em}.swal2-textarea{height:6.75em;padding:.75em}.swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:0 0;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 0}.swal2-validation-message{align-items:center;justify-content:center;margin:1em 0 0;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:2.5em auto .6em;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;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-warning.swal2-icon-show{-webkit-animation:swal2-animate-error-icon .5s;animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-warning.swal2-icon-show .swal2-icon-content{-webkit-animation:swal2-animate-i-mark .5s;animation:swal2-animate-i-mark .5s}.swal2-icon.swal2-info{border-color:#9de0f6;color:#3fc3ee}.swal2-icon.swal2-info.swal2-icon-show{-webkit-animation:swal2-animate-error-icon .5s;animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-info.swal2-icon-show .swal2-icon-content{-webkit-animation:swal2-animate-i-mark .8s;animation:swal2-animate-i-mark .8s}.swal2-icon.swal2-question{border-color:#c9dae1;color:#87adbd}.swal2-icon.swal2-question.swal2-icon-show{-webkit-animation:swal2-animate-error-icon .5s;animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-question.swal2-icon-show .swal2-icon-content{-webkit-animation:swal2-animate-question-mark .8s;animation:swal2-animate-question-mark .8s}.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:1.25em auto;padding:0;background:0 0;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{margin-right:initial;margin-left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}.leave-russia-now-and-apply-your-skills-to-the-world{display:flex;position:fixed;z-index:1939;top:0;right:0;bottom:0;left:0;flex-direction:column;align-items:center;justify-content:center;padding:25px 0 20px;background:#20232a;color:#fff;text-align:center}.leave-russia-now-and-apply-your-skills-to-the-world div{max-width:560px;margin:10px;line-height:146%}.leave-russia-now-and-apply-your-skills-to-the-world iframe{max-width:100%;max-height:55.5555555556vmin;margin:16px auto}.leave-russia-now-and-apply-your-skills-to-the-world strong{border-bottom:2px dashed #fff}.leave-russia-now-and-apply-your-skills-to-the-world button{display:flex;position:fixed;z-index:1940;top:0;right:0;align-items:center;justify-content:center;width:48px;height:48px;margin-right:10px;margin-bottom:-10px;border:none;background:0 0;color:#aaa;font-size:48px;font-weight:700;cursor:pointer}.leave-russia-now-and-apply-your-skills-to-the-world button:hover{color:#fff}@-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)}}@-webkit-keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@-webkit-keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}@keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}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{background-color:transparent!important;pointer-events:none}body.swal2-no-backdrop .swal2-container .swal2-popup{pointer-events:all}body.swal2-no-backdrop .swal2-container .swal2-modal{box-shadow:0 0 10px rgba(0,0,0,.4)}@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{box-sizing:border-box;width:360px;max-width:100%;background-color:transparent;pointer-events:none}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 o=!1;try{o="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(e){}t.hasCORS=o},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 o in e)e.hasOwnProperty(o)&&(t.length&&(t+="&"),t+=encodeURIComponent(o)+"="+encodeURIComponent(e[o]));return t},t.decode=function(e){let t={},o=e.split("&");for(let e=0,n=o.length;e{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parse=void 0;const o=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,n=["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=o.exec(e||""),i={},l=14;for(;l--;)i[n[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 o=t.replace(/\/{2,9}/g,"/").split("/");return"/"!=t.substr(0,1)&&0!==t.length||o.splice(0,1),"/"==t.substr(t.length-1,1)&&o.splice(o.length-1,1),o}(0,i.path),i.queryKey=function(e,t){const o={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,(function(e,t,n){t&&(o[t]=n)})),o}(0,i.query),i}},8726:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.yeast=t.decode=t.encode=void 0;const o="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),n={};let a,r=0,s=0;function i(e){let t="";do{t=o[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,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parse=t.installTimerFunctions=t.transports=t.Transport=t.protocol=t.Socket=void 0;const n=o(3481);Object.defineProperty(t,"Socket",{enumerable:!0,get:function(){return n.Socket}}),t.protocol=n.Socket.protocol;var a=o(9870);Object.defineProperty(t,"Transport",{enumerable:!0,get:function(){return a.Transport}});var r=o(7385);Object.defineProperty(t,"transports",{enumerable:!0,get:function(){return r.transports}});var s=o(9622);Object.defineProperty(t,"installTimerFunctions",{enumerable:!0,get:function(){return s.installTimerFunctions}});var i=o(5222);Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return i.parse}})},3481:function(e,t,o){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Socket=void 0;const a=o(7385),r=o(9622),s=o(5754),i=o(5222),l=n(o(1227)),c=o(5260),u=o(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 o=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",o),new a.transports[e](o)}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),o=!1;p.priorWebsocketSuccess=!1;const n=()=>{o||(d('probe transport "%s" opened',e),t.send([{type:"ping",data:"probe"}]),t.once("packet",(n=>{if(!o)if("pong"===n.type&&"probe"===n.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((()=>{o||"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 o=new Error("probe error");o.transport=t.name,this.emitReserved("upgradeError",o)}})))};function a(){o||(o=!0,c(),t.close(),t=null)}const r=o=>{const n=new Error("probe error: "+o);n.transport=t.name,a(),d('probe transport "%s" failed because of error: %s',e,o),this.emitReserved("upgradeError",n)};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",n),t.removeListener("error",r),t.removeListener("close",s),this.off("close",i),this.off("upgrading",l)};t.once("open",n),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,o){return this.sendPacket("message",e,t,o),this}send(e,t,o){return this.sendPacket("message",e,t,o),this}sendPacket(e,t,o,n){if("function"==typeof t&&(n=t,t=void 0),"function"==typeof o&&(n=o,o=null),"closing"===this.readyState||"closed"===this.readyState)return;(o=o||{}).compress=!1!==o.compress;const a={type:e,data:t,options:o};this.emitReserved("packetCreate",a),this.writeBuffer.push(a),n&&this.once("flush",n),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()},o=()=>{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?o():e()})):this.upgrading?o():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 o=0;const n=e.length;for(;o{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.transports=void 0;const n=o(484),a=o(1308);t.transports={websocket:a.WS,polling:n.Polling}},484:function(e,t,o){"use strict";var n=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=o(9870),r=n(o(1227)),s=o(8726),i=o(5754),l=o(1373),c=o(6666),u=o(5260),d=o(9622),p=o(6242),h=(0,r.default)("engine.io-client:polling");function m(){}const f=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 o=location.port;o||(o=t?"443":"80"),this.xd="undefined"!=typeof location&&e.hostname!==location.hostname||o!==e.port,this.xs=e.secure!==t}const t=e&&e.forceBase64;this.supportsBinary=f&&!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 o="";!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))&&(o=":"+this.opts.port);const n=(0,i.encode)(e);return t+"://"+(-1!==this.opts.hostname.indexOf(":")?"["+this.opts.hostname+"]":this.opts.hostname)+o+this.opts.path+(n.length?"?"+n:"")}request(e={}){return Object.assign(e,{xd:this.xd,xs:this.xs},this.opts),new y(this.uri(),e)}doWrite(e,t){const o=this.request({method:"POST",data:e});o.on("success",t),o.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=m,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,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultBinaryType=t.usingBrowserWebSocket=t.WebSocket=t.nextTick=void 0;const n=o(6242);t.nextTick="function"==typeof Promise&&"function"==typeof Promise.resolve?e=>Promise.resolve().then(e):(e,t)=>t(e,0),t.WebSocket=n.globalThisShim.WebSocket||n.globalThisShim.MozWebSocket,t.usingBrowserWebSocket=!0,t.defaultBinaryType="arraybuffer"},1308:function(e,t,o){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.WS=void 0;const a=o(9870),r=o(5754),s=o(8726),i=o(9622),l=o(5552),c=n(o(1227)),u=o(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,o=p?{}:(0,i.pick)(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(o.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,o)}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&&(o.options&&(t.compress=o.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 o="";this.opts.port&&("wss"===t&&443!==Number(this.opts.port)||"ws"===t&&80!==Number(this.opts.port))&&(o=":"+this.opts.port),this.opts.timestampRequests&&(e[this.opts.timestampParam]=(0,s.yeast)()),this.supportsBinary||(e.b64=1);const n=(0,r.encode)(e);return t+"://"+(-1!==this.opts.hostname.indexOf(":")?"["+this.opts.hostname+"]":this.opts.hostname)+o+this.opts.path+(n.length?"?"+n:"")}check(){return!!l.WebSocket}}t.WS=h},6666:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.XHR=void 0;const n=o(8419),a=o(6242);t.XHR=function(e){const t=e.xdomain;try{if("undefined"!=typeof XMLHttpRequest&&(!t||n.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,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.byteLength=t.installTimerFunctions=t.pick=void 0;const n=o(6242);t.pick=function(e,...t){return t.reduce(((t,o)=>(e.hasOwnProperty(o)&&(t[o]=e[o]),t)),{})};const a=setTimeout,r=clearTimeout;t.installTimerFunctions=function(e,t){t.useNativeTimers?(e.setTimeoutFn=a.bind(n.globalThisShim),e.clearTimeoutFn=r.bind(n.globalThisShim)):(e.setTimeoutFn=setTimeout.bind(n.globalThisShim),e.clearTimeoutFn=clearTimeout.bind(n.globalThisShim))},t.byteLength=function(e){return"string"==typeof e?function(e){let t=0,o=0;for(let n=0,a=e.length;n=57344?o+=3:(n++,o+=4);return o}(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 o=Object.create(null);t.PACKET_TYPES=o,o.open="0",o.close="1",o.ping="2",o.pong="3",o.message="4",o.upgrade="5",o.noop="6";const n=Object.create(null);t.PACKET_TYPES_REVERSE=n,Object.keys(o).forEach((e=>{n[o[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 o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n="undefined"==typeof Uint8Array?[]:new Uint8Array(256);for(let e=0;e{let t,n=new Uint8Array(e),a=n.length,r="";for(t=0;t>2],r+=o[(3&n[t])<<4|n[t+1]>>4],r+=o[(15&n[t+1])<<2|n[t+2]>>6],r+=o[63&n[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,o,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,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=o(3087),a=o(2469),r="function"==typeof ArrayBuffer,s=(e,t)=>{if(r){const o=(0,a.decode)(e);return i(o,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 o=e.charAt(0);return"b"===o?{type:"message",data:s(e.substring(1),t)}:n.PACKET_TYPES_REVERSE[o]?e.length>1?{type:n.PACKET_TYPES_REVERSE[o],data:e.substring(1)}:{type:n.PACKET_TYPES_REVERSE[o]}:n.ERROR_PACKET}},3908:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=o(3087),a="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),r="function"==typeof ArrayBuffer,s=(e,t)=>{const o=new FileReader;return o.onload=function(){const e=o.result.split(",")[1];t("b"+e)},o.readAsDataURL(e)};t.default=({type:e,data:t},o,i)=>{return a&&t instanceof Blob?o?i(t):s(t,i):r&&(t instanceof ArrayBuffer||(l=t,"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(l):l&&l.buffer instanceof ArrayBuffer))?o?i(t):s(new Blob([t]),i):i(n.PACKET_TYPES[e]+(t||""));var l}},1373:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodePayload=t.decodePacket=t.encodePayload=t.encodePacket=t.protocol=void 0;const n=o(3908);t.encodePacket=n.default;const a=o(7572);t.decodePacket=a.default;const r=String.fromCharCode(30);t.encodePayload=(e,t)=>{const o=e.length,a=new Array(o);let s=0;e.forEach(((e,i)=>{(0,n.default)(e,!1,(e=>{a[i]=e,++s===o&&t(a.join(r))}))}))},t.decodePayload=(e,t)=>{const o=e.split(r),n=[];for(let e=0;e{"use strict";const{parse:o,stringify:n}=JSON,{keys:a}=Object,r=String,s="string",i={},l="object",c=(e,t)=>t,u=e=>e instanceof r?r(e):e,d=(e,t)=>typeof t===s?new r(t):t,p=(e,t,o,n)=>{const s=[];for(let c=a(o),{length:u}=c,d=0;d{const n=r(t.push(o)-1);return e.set(o,n),n},m=(e,t)=>{const n=o(e,d).map(u),a=n[0],r=t||c,s=typeof a===l&&a?p(n,new Set,a,r):a;return r.call({"":s},"",s)};t.parse=m;const f=(e,t,o)=>{const a=t&&typeof t===l?(e,o)=>""===e||-1o(f(e)),t.fromJSON=e=>m(n(e))},5159:(e,t)=>{"use strict";function o(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=o,o.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),o=Math.floor(t*this.jitter*e);e=0==(1&Math.floor(10*t))?e-o:e+o}return 0|Math.min(e,this.max)},o.prototype.reset=function(){this.attempts=0},o.prototype.setMin=function(e){this.ms=e},o.prototype.setMax=function(e){this.max=e},o.prototype.setJitter=function(e){this.jitter=e}},7046:function(e,t,o){"use strict";var n=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=o(3084),r=o(4168);Object.defineProperty(t,"Manager",{enumerable:!0,get:function(){return r.Manager}});const s=o(8312);Object.defineProperty(t,"Socket",{enumerable:!0,get:function(){return s.Socket}});const i=n(o(1227)).default("socket.io-client"),l={};function c(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};const o=a.url(e,t.path||"/socket.io"),n=o.source,s=o.id,c=o.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",n),d=new r.Manager(n,t)):(l[s]||(i("new io instance for %s",n),l[s]=new r.Manager(n,t)),d=l[s]),o.query&&!t.query&&(t.query=o.queryKey),d.socket(o.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=o(7116);Object.defineProperty(t,"protocol",{enumerable:!0,get:function(){return u.protocol}}),e.exports=c},4168:function(e,t,o){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,o,n){void 0===n&&(n=o),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[o]}})}:function(e,t,o,n){void 0===n&&(n=o),e[n]=t[o]}),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 o in e)"default"!==o&&Object.prototype.hasOwnProperty.call(e,o)&&n(t,e,o);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=o(4679),l=o(8312),c=r(o(7116)),u=o(7149),d=o(5159),p=o(5260),h=s(o(1227)).default("socket.io-client:manager");class m extends p.Emitter{constructor(e,t){var o;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!==(o=t.randomizationFactor)&&void 0!==o?o:.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 n=t.parser||c;this.encoder=new n.Encoder,this.decoder=new n.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,o=this;this._readyState="opening",this.skipReconnect=!1;const n=u.on(t,"open",(function(){o.onopen(),e&&e()})),a=u.on(t,"error",(t=>{h("error"),o.cleanup(),o._readyState="closed",this.emitReserved("error",t),e?e(t):o.maybeReconnectOnOpen()}));if(!1!==this._timeout){const e=this._timeout;h("connect attempt will timeout after %d",e),0===e&&n();const o=this.setTimeoutFn((()=>{h("connect attempt timed out after %d",e),n(),t.close(),t.emit("error",new Error("timeout"))}),e);this.opts.autoUnref&&o.unref(),this.subs.push((function(){clearTimeout(o)}))}return this.subs.push(n),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 o=this.nsps[e];return o||(o=new l.Socket(this,e,t),this.nsps[e]=o),o}_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 o=0;oe())),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 o=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&&o.unref(),this.subs.push((function(){clearTimeout(o)}))}}onreconnect(){const e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}t.Manager=m},7149:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.on=void 0,t.on=function(e,t,o){return e.on(t,o),function(){e.off(t,o)}}},8312:function(e,t,o){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Socket=void 0;const a=o(7116),r=o(7149),s=o(5260),i=n(o(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,o){super(),this.connected=!1,this.receiveBuffer=[],this.sendBuffer=[],this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=t,o&&o.auth&&(this.auth=o.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 o={type:a.PacketType.EVENT,data:t,options:{}};if(o.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 n=t.pop();this._registerAckCallback(e,n),o.id=e}const n=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return!this.flags.volatile||n&&this.connected?this.connected?(this.notifyOutgoingListeners(o),this.packet(o)):this.sendBuffer.push(o):i("discard packet as the transport is not currently writable"),this.flags={},this}_registerAckCallback(e,t){const o=this.flags.timeout;if(void 0===o)return void(this.acks[e]=t);const n=this.io.setTimeoutFn((()=>{delete this.acks[e];for(let t=0;t{this.io.clearTimeoutFn(n),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 o of t)o.apply(this,e)}super.emit.apply(this,e)}ack(e){const t=this;let o=!1;return function(...n){o||(o=!0,i("sending ack %j",n),t.packet({type:a.PacketType.ACK,id:e,data:n}))}}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 o=0;o{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.reconstructPacket=t.deconstructPacket=void 0;const n=o(790);function a(e,t){if(!e)return e;if(n.isBinary(e)){const o={_placeholder:!0,num:t.length};return t.push(e),o}if(Array.isArray(e)){const o=new Array(e.length);for(let n=0;n=0&&e.num{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Decoder=t.Encoder=t.PacketType=t.protocol=void 0;const n=o(5260),a=o(3155),r=o(790),s=o(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),o=this.encodeAsString(t.packet),n=t.buffers;return n.unshift(o),n}};class l extends n.Emitter{constructor(e){super(),this.reviver=e}add(e){let t;if("string"==typeof e){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");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 o={type:Number(e.charAt(0))};if(void 0===i[o.type])throw new Error("unknown packet type "+o.type);if(o.type===i.BINARY_EVENT||o.type===i.BINARY_ACK){const n=t+1;for(;"-"!==e.charAt(++t)&&t!=e.length;);const a=e.substring(n,t);if(a!=Number(a)||"-"!==e.charAt(t))throw new Error("Illegal attachments");o.attachments=Number(a)}if("/"===e.charAt(t+1)){const n=t+1;for(;++t&&","!==e.charAt(t)&&t!==e.length;);o.nsp=e.substring(n,t)}else o.nsp="/";const n=e.charAt(t+1);if(""!==n&&Number(n)==n){const n=t+1;for(;++t;){const o=e.charAt(t);if(null==o||Number(o)!=o){--t;break}if(t===e.length)break}o.id=Number(e.substring(n,t+1))}if(e.charAt(++t)){const n=this.tryParse(e.substr(t));if(!l.isPayloadValid(o.type,n))throw new Error("invalid payload");o.data=n}return s("decoded %s as %j",e,o),o}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 o="function"==typeof ArrayBuffer,n=Object.prototype.toString,a="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===n.call(Blob),r="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===n.call(File);function s(e){return o&&(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,o){if(!t||"object"!=typeof t)return!1;if(Array.isArray(t)){for(let o=0,n=t.length;o{"use strict";function n(e){if(e)return function(e){for(var t in n.prototype)e[t]=n.prototype[t];return e}(e)}o.r(t),o.d(t,{Emitter:()=>n}),n.prototype.on=n.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},n.prototype.once=function(e,t){function o(){this.off(e,o),t.apply(this,arguments)}return o.fn=t,this.on(e,o),this},n.prototype.off=n.prototype.removeListener=n.prototype.removeAllListeners=n.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var o,n=this._callbacks["$"+e];if(!n)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var a=0;a{"use strict";e.exports={version:"2.0.0"}}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var o=__webpack_module_cache__[e]={id:e,exports:{}};return __webpack_modules__[e].call(o.exports,o,o.exports,__webpack_require__),o.exports}__webpack_require__.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(t,{a:t}),t},__webpack_require__.d=(e,t)=>{for(var o in t)__webpack_require__.o(t,o)&&!__webpack_require__.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},__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__(8238),__webpack_require__(112),__webpack_require__(3336),__webpack_require__(2868),__webpack_require__(4719),__webpack_require__(3131),__webpack_require__(3526),__webpack_require__(4759);var __webpack_exports__=__webpack_require__(2852)})(); \ No newline at end of file diff --git a/cheatGUI/package-lock.json b/cheatGUI/package-lock.json index ae6cd52..cefe799 100644 --- a/cheatGUI/package-lock.json +++ b/cheatGUI/package-lock.json @@ -17,6 +17,7 @@ "babel-loader": "^8.2.2", "css-loader": "^6.7.1", "flatted": "^3.2.7", + "lzbase62": "^2.0.0", "postcss": "^8.2.10", "postcss-loader": "^7.0.0", "sass": "^1.32.8", @@ -32,6 +33,7 @@ "webpack-cli": "^4.5.0" }, "devDependencies": { + "@types/lzbase62": "^2.0.0", "@typescript-eslint/eslint-plugin": "^4.4.1", "@typescript-eslint/parser": "^4.4.1", "eslint": "^7.11.0", @@ -1759,6 +1761,12 @@ "dev": true, "peer": true }, + "node_modules/@types/lzbase62": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@types/lzbase62/-/lzbase62-2.0.0.tgz", + "integrity": "sha512-u7nEkpDDQJl64NOoxowG6LCrfnkWI5ocmKeVTppO2mp+IUDMhKfJLtHCINBqA9+KvXstxEEbG8uxK/qNJ/D7Bg==", + "dev": true + }, "node_modules/@types/node": { "version": "18.7.14", "resolved": "https://registry.npmjs.org/@types/node/-/node-18.7.14.tgz", @@ -4501,6 +4509,14 @@ "node": ">=10" } }, + "node_modules/lzbase62": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/lzbase62/-/lzbase62-2.0.0.tgz", + "integrity": "sha512-hq7ZI8T42YVgSxCFHzg/Gt3GUKGZdQXKejvubdLjzxjiF5Tn9xKoWvZLZSY1u0+Orct+bxQMmb8XIcbXzR+2tg==", + "engines": { + "node": ">=8.10.0" + } + }, "node_modules/make-dir": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", @@ -7580,6 +7596,12 @@ "dev": true, "peer": true }, + "@types/lzbase62": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@types/lzbase62/-/lzbase62-2.0.0.tgz", + "integrity": "sha512-u7nEkpDDQJl64NOoxowG6LCrfnkWI5ocmKeVTppO2mp+IUDMhKfJLtHCINBqA9+KvXstxEEbG8uxK/qNJ/D7Bg==", + "dev": true + }, "@types/node": { "version": "18.7.14", "resolved": "https://registry.npmjs.org/@types/node/-/node-18.7.14.tgz", @@ -9553,6 +9575,11 @@ "yallist": "^4.0.0" } }, + "lzbase62": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/lzbase62/-/lzbase62-2.0.0.tgz", + "integrity": "sha512-hq7ZI8T42YVgSxCFHzg/Gt3GUKGZdQXKejvubdLjzxjiF5Tn9xKoWvZLZSY1u0+Orct+bxQMmb8XIcbXzR+2tg==" + }, "make-dir": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", diff --git a/cheatGUI/package.json b/cheatGUI/package.json index bc4e275..50146b9 100644 --- a/cheatGUI/package.json +++ b/cheatGUI/package.json @@ -30,6 +30,7 @@ "babel-loader": "^8.2.2", "css-loader": "^6.7.1", "flatted": "^3.2.7", + "lzbase62": "^2.0.0", "postcss": "^8.2.10", "postcss-loader": "^7.0.0", "sass": "^1.32.8", @@ -45,6 +46,7 @@ "webpack-cli": "^4.5.0" }, "devDependencies": { + "@types/lzbase62": "^2.0.0", "@typescript-eslint/eslint-plugin": "^4.4.1", "@typescript-eslint/parser": "^4.4.1", "eslint": "^7.11.0", diff --git a/cheatGUI/src/hacks/pets.ts b/cheatGUI/src/hacks/pets.ts index 670b757..e4a6a17 100644 --- a/cheatGUI/src/hacks/pets.ts +++ b/cheatGUI/src/hacks/pets.ts @@ -8,6 +8,7 @@ import { _, VERY_LARGE_NUMBER, player } from "../utils/util"; // Import Prodigy import { getPet } from "../utils/hackify"; // Import getPet import { GetAction, SelectSlot } from "../utils/kennel"; import flatted from "flatted"; +import encoder from "lzbase62"; // END IMPORTS @@ -222,7 +223,13 @@ new Hack(category.pets, "Edit Kennel", "Allows you to directly edit your pets.") // Begin Backup Kennel new Hack(category.pets, "Backup Kennel", "Makes a backup of your kennel to your chrome local storage.").setClick(async () => { - const stringobject : string = flatted.stringify(_.player.kennel._petTeam[0]); + const stringobject : string = encoder.compress(flatted.stringify(_.player.kennel._petTeam)); + console.log(stringobject.length); + + // to make this sufficient, we need to split it into at least 10 different keys, + // as some accounts have more data than others. + + console.log(stringobject); localStorage.setItem("prodigy-kennel-backup", stringobject); return Toast.fire("Backed up!", "Your kennel is now backed up to the local storage.", "success"); @@ -240,7 +247,7 @@ new Hack(category.pets, "Restore Kennel", "Restores a backup of your kennel from icon: "error" }); } else { - _.player.kennel._petTeam = flatted.toJSON(backup); + _.player.kennel._petTeam = flatted.toJSON(encoder.decompress(backup)); return Toast.fire("Restored!", "Your kennel backup should be restored", "success"); } }); From 8be584a9bc9a13030b66ec16cc888b51470f1613 Mon Sep 17 00:00:00 2001 From: gemsvido Date: Thu, 1 Sep 2022 00:16:16 -0700 Subject: [PATCH 11/17] worthwile --- cheatGUI/src/utils/divide.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 cheatGUI/src/utils/divide.ts diff --git a/cheatGUI/src/utils/divide.ts b/cheatGUI/src/utils/divide.ts new file mode 100644 index 0000000..eeaee8a --- /dev/null +++ b/cheatGUI/src/utils/divide.ts @@ -0,0 +1,14 @@ +/** divide a string into parts */ +export function divide (target : string, amount : number) : Array { + + let output : Array = new Array; + let parts : number = Math.floor(target.length / amount); + let start : number = 0; + + while (start < target.length) { + output.push(target.substring(start, start+parts)); + start += parts; + } + + return output; +} From cdf52974f63f8de61eb626b84a53bce81a03e983 Mon Sep 17 00:00:00 2001 From: gemsvido Date: Thu, 1 Sep 2022 00:23:02 -0700 Subject: [PATCH 12/17] on the right track --- cheatGUI/dist/bundle.js | 2 +- cheatGUI/src/hacks/pets.ts | 12 +++++++----- cheatGUI/src/utils/divide.ts | 2 +- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/cheatGUI/dist/bundle.js b/cheatGUI/dist/bundle.js index 33117a8..e4078f0 100644 --- a/cheatGUI/dist/bundle.js +++ b/cheatGUI/dist/bundle.js @@ -1,2 +1,2 @@ /*! For license information please see bundle.js.LICENSE.txt */ -(()=>{var __webpack_modules__={8844:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,l,"next",e)}function l(e){r(s,n,a,i,l,"throw",e)}i(void 0)}))}}n=[o,t,o(4759),o(9820),o(2852),o(4719)],void 0===(a=function(e,t,o,n,a,r){"use strict";new n.Toggler(n.category.battle,"Disable math [PvP, PvE]","Disable math in PvP, PvE, anywhere! This doesn't work in the Floatling town.").setEnabled(s((function*(){return a._.constants.constants["GameConstants.Debug.EDUCATION_ENABLED"]=!1,o.Toast.fire("Enabled!","You will no longer do Math!","success")}))).setDisabled(s((function*(){return a._.constants.constants["GameConstants.Debug.EDUCATION_ENABLED"]=!0,o.Toast.fire("Disabled!","You will now do Math!","success")}))),new n.Toggler(n.category.battle,"Instant Kill [PvE]","Makes your spells do insane damage in PvE!").setEnabled(s((function*(){return a.player.modifiers.damage=a.VERY_LARGE_NUMBER,o.Toast.fire("Enabled!","You will now do insane damage in PvE!","success")}))).setDisabled((()=>(a.player.modifiers.damage=1,o.Toast.fire("Disabled!","You will no longer do insane damage in PvE!","success")))),new n.Hack(n.category.battle,"PvP Health [PvP]","Increases your HP in PvP by a hell ton.").setClick(s((function*(){return a.player.pvpHP=a.VERY_LARGE_NUMBER,a.player.getMaxHearts=()=>a.VERY_LARGE_NUMBER,o.Toast.fire("Success!","You now have lots of health!","success")}))),new n.Hack(n.category.battle,"Escape Battle [PvP, PvE]","Escape any battle, PvP or PvE!").setClick(s((function*(){var e=a.game.state.current;return"PVP"===e?(Object.fromEntries(a._.instance.game.state.states).PVP.endPVP(),o.Toast.fire("Escaped!","You have successfully escaped from the PvP battle.","success")):"CoOp"===e?(a.prodigy.world.$(a.player.data.zone),o.Toast.fire("Escaped!","You have successfully escaped from the battle.","success")):["Battle","SecureBattle"].includes(e)?(Object.fromEntries(a._.instance.game.state.states)[e].runAwayCallback(),o.Toast.fire("Escaped!","You have successfully escaped from the PvE battle.","success")):o.Toast.fire("Invalid State.","You are currently not in a battle.","error")}))),new n.Hack(n.category.battle,"Win Battle [PvE]","Instantly win a battle in PvE.").setClick(s((function*(){var e=a.game.state.current;switch((0,r.BattleInfo)("Current State: "+e),e){case"PVP":case"CoOp":return o.Toast.fire("Invalid State.","PvP is not supported for this hack.","error");case"Battle":return Object.fromEntries(a._.instance.game.state.states).Battle.startVictory(),o.Toast.fire("Victory!","You have successfully won the battle.","success");case"SecureBattle":return Object.fromEntries(a._.instance.game.state.states).SecureBattle.battleVictory(),o.Toast.fire("Victory!","You have successfully won the battle.","success");default:return o.Toast.fire("Invalid State.","You are currently not in a battle.","error")}}))),new n.Hack(n.category.battle,"Set Battle Hearts [PvP, PvE]","Sets your hearts in battle, automatically raise your max hearts in PvP or PvE.").setClick(s((function*(){var e=yield o.NumberInput.fire("Health Amount","How much HP do you want?","question");if(void 0!==e.value)return a.player.getMaxHearts=()=>+e.value,a.player.pvpHP=+e.value,a.player.data.hp=+e.value,o.Toast.fire("Success!","Your hearts have been set.","success")}))),new n.Hack(n.category.battle,"Fill Battle Energy [PvP, PvE]","Fills up your battle energy, if you are in PvP or PvE.").setClick(s((function*(){var e=a.game.state.getCurrentState();return"teams"in e?(e.teams[0].setEnergy(99),o.Toast.fire("Success!","Your battle energy has been filled.","success")):o.Toast.fire("Error","You are currently not in a battle.","error")}))),new n.Hack(n.category.battle,"Heal Team [PvE]","Instantly heals you and your pets, if you are in PvE.").setClick(s((function*(){var e=a.game.state.current;return"PVP"===e||"CoOp"===e?o.Toast.fire("Invalid State.","PvP is not supported for this hack.","error"):["Battle","SecureBattle"].includes(e)?(a.player.heal(),o.Toast.fire("Success!","Your team has been healed successfully!","success")):o.Toast.fire("Invalid State.","Your are currently not in a battle.","error")})))}.apply(t,n))||(e.exports=a)},9155:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,l,"next",e)}function l(e){r(s,n,a,i,l,"throw",e)}i(void 0)}))}}n=[o,t,o(4759),o(9820),o(2852),o(112),o(3131)],void 0===(a=function(e,t,o,n,a,r,i){"use strict";new n.Hack(n.category.beta,"Get all Runes [BETA]").setClick(s((function*(){if((yield o.Confirm.fire({title:"Hang on!",html:"This hack may damage your account with various bugs, for example you may be unable to do Rune Run.

                        Proceed?",icon:"warning"})).value){var e,t=parseInt((yield o.NumberInput.fire({title:"Amount",text:"How many of each would you like?",icon:"question",inputValidator:e=>e?"":"Please select which you'd like to get."})).value);if(!isNaN(t))return Array.from(a._.instance.prodigy.gameContainer._inversifyContainer._bindingDictionary._map).forEach((t=>{try{a._.instance.prodigy.gameContainer.get(t[0]).battleData&&(e=t[0])}catch(e){console.log("Error for ".concat(t[0]))}})),a._.instance.prodigy.gameContainer.get(e).battleData._secureCharacterState._data.inventory.orb=(0,r.runeify)(a._.gameData.orb,t),o.Toast.fire("Runes Added!","Your runes have been added!","success")}}))),new n.Hack(n.category.beta,"Edit Pet [BETA]","Edit a pet.").setClick(s((function*(){if(!(yield o.Confirm.fire({title:"Hang on!",html:"This hack may damage your account with various bugs, for example you may be unable to do Rune Run.

                        Proceed?",icon:"warning"})).value)return console.log("Cancelled.");var e=yield(0,r.getPet)("Choose the pet to edit.");if(void 0!==e){var t=a.player.kennel.data[e],n=yield o.Swal.fire({input:"select",inputOptions:{level:"Level",attacks:"Attacks",name:"Name"},title:"Edit Property",text:"What do you want to edit?"});if(void 0!==n.value){if("level"===n.value){var s=yield o.NumberInput.fire("Level Number","What level do you want to set your pet to?","question");if(void 0===s.value)return;return t.level=+s.value,o.Toast.fire("Success!","The pet's level has been set.","success")}if("attacks"===n.value){var i=a._.gameData.spell,l=document.createElement("div"),c=document.createElement("select");for(var u of(c.classList.add("selectSpell"),i)){var d=document.createElement("option");d.value=u.ID.toString(),d.innerText="".concat(u.ID,": ").concat(u.name," (").concat(u.data.element,") - Damage: ").concat(u.data.damage),c.options.add(d)}l.append(c),l.append(c.cloneNode(!0));var p=yield o.Swal.fire({title:"Attack List",focusConfirm:!1,showCancelButton:!0,html:l,preConfirm:()=>Array.prototype.slice.call(document.querySelectorAll(".selectSpell")).map((e=>e.options[e.selectedIndex].value))});if(void 0===p.value)return;return t.foreignSpells.splice(0,2,...p.value.map((e=>+e))),o.Toast.fire("Attacks updated!","The attack list of the pet you selected has been edited.","success")}if("name"===n.value){var h=yield o.Input.fire("Input Name","What do you want to name the pet?","question");if(void 0===h.value)return;return t.nickname=h.value,o.Toast.fire("Successfully renamed!","The name of the pet has been changed.","success")}}}}))),new n.Hack(n.category.beta,"Morph Player [BETA]","Morph into a pet, furnishing, or follow.").setClick(s((function*(){if(!(yield o.Confirm.fire("This hack is in BETA","Expect bugs, and it might not work properly.")).value)return console.log("Cancelled");var e=yield o.Swal.fire({title:"Which morph type?",input:"select",inputOptions:{pet:"Pet",dorm:"Furniture",follow:"Follow"},inputPlaceholder:"Morph Type",inputValidator:e=>e?"":"Please select a morph type.",showCancelButton:!0});if(null!=e&&e.value){var t={};a._.gameData[e.value].forEach((e=>t[e.ID]="".concat(e.name," (").concat(e.ID,")")));var n=yield o.Swal.fire({title:"Which morph?",input:"select",inputOptions:t,inputPlaceholder:"Morph ID",inputValidator:e=>e?"":"Please select a morph ID.",showCancelButton:!0});if(n.value)return a.player.getPlayerData().playerTransformation={transformType:e.value,transformID:n.value,maxTime:36e5,timeRemaining:36e5},a.player.appearanceChanged=!0,o.Toast.fire("Morphed!","You've been morphed.","success")}}))),new n.Toggler(n.category.beta,"Toggle Close Popups [BETA]","Automatically closes popups in Prodigy.").setEnabled(s((function*(){return(0,i.PopupInterval)(!0),o.Toast.fire("Enabled","Toggle Close Popups is now enabled.","success")}))).setDisabled(s((function*(){return(0,i.PopupInterval)(!1),o.Toast.fire("Enabled","Toggle Close Popups is now disabled.","success")}))),new n.Hack(n.category.beta,"Hypermax Account [BETA]").setClick(s((function*(){if((yield o.Confirm.fire({title:"Hang on!",html:"This hack will damage your account with various bugs, for example you may be unable to do Rune Run/Arena, amd you will recieve 418s and inavtivity kicks.

                        Proceed?",icon:"warning"})).value){a.player.data.gold=99e5,console.log("Set player gold to 9900000.");var e=100..value-2;a.player.data.stars=Math.round((1-Math.pow(1.042,e))/(1-1.042)*20+10),a.player.data.level=100,a.player.getLevel=()=>a.player.data.level,console.log("Set player level to 100"),a.player.data.bountyScore=100,console.log("Set player's bounty points to 100.");for(var t=0;ta.VERY_LARGE_NUMBER,console.log("PvP health obtained.");for(var n=0;n<100;n++)a.player.achievements.data.progress[n]=10;console.log("Obtained all achievements."),a.player.data.tower=100,console.log("Set tower floor to 100."),a.player.getMaxHearts=()=>a.VERY_LARGE_NUMBER,a.player.pvpHP=a.VERY_LARGE_NUMBER,a.player.data.hp=a.VERY_LARGE_NUMBER,console.log("Maxed out PvE health.");var s,i=99e4;r.ids.forEach((e=>{a.player.backpack.data[e]=(0,r.itemify)(a._.gameData[e].filter((t=>"follow"===e?![125,126,127,128,129,134,135,136,137].includes(t.ID):t)),i.value)})),a._.gameData.dorm.forEach((e=>a.player.house.data.items[e.ID]={A:[],N:i.value}));for(var l=()=>a.player.backpack.data.item.findIndex((e=>84===e.ID||85===e.ID||86===e.ID));l()>-1;)a.player.backpack.data.item.splice(l(),1);return o.Toast.fire("Success!","All items added!","success"),console.log("All items added!"),a.player.backpack.data.mount=(0,r.itemify)(a._.gameData.mount,1),console.log("Added all mounts."),a._.gameData.dorm.forEach((e=>a.player.house.data.items[e.ID]={A:[],N:99e4.value})),console.log("Added 990000 of all furniture."),a._.gameData.pet.forEach((e=>{a.player.kennel.addPet(e.ID.toString(),a.VERY_LARGE_NUMBER,26376,100)})),a.player.kennel._encounterInfo._data.pets=[],a._.gameData.pet.map((e=>{a.player.kennel._encounterInfo._data.pets.push({firstSeenDate:Date.now(),ID:e.ID,timesBattled:1,timesRescued:1})})),a.player.kennel.petTeam.forEach((e=>{e&&e.assignRandomSpells&&e.assignRandomSpells()})),console.log("Added all pets."),a._.gameData.pet.filter((e=>[158,166,168].includes(e.ID))).forEach((e=>{a.player.kennel.addPet(e.ID.toString(),a.VERY_LARGE_NUMBER,26376,100)})),a.player.kennel.petTeam.forEach((e=>{e&&e.assignRandomSpells&&e.assignRandomSpells()})),console.log("Added Mythical Epics."),a._.gameData.pet.filter((e=>[125,126,127,128,129,130,131,132,133].includes(e.ID))).forEach((e=>{a.player.kennel.addPet(e.ID.toString(),a.VERY_LARGE_NUMBER,26376,100)})),a.player.kennel.petTeam.forEach((e=>{e&&e.assignRandomSpells&&e.assignRandomSpells()})),console.log("Added Legacy Epics."),a._.constants.constants["GameConstants.Inactivity.LOG_OUT_TIMER_SECONDS"]=0,console.log("Inactivity Kick Disabled."),a.player._playerContainer.walkSpeed=20,console.log("Player walkspeed set to 20."),Array.from(a._.instance.prodigy.gameContainer._inversifyContainer._bindingDictionary._map).forEach((e=>{try{a._.instance.prodigy.gameContainer.get(e[0]).battleData&&(s=e[0])}catch(t){console.log("Error for ".concat(e[0]))}})),a._.instance.prodigy.gameContainer.get(s).battleData._secureCharacterState._data.inventory.orb=(0,r.runeify)(a._.gameData.orb,100),a.player.equipment.setHat(200),a.player.equipment.setBoots(93),a.player.equipment.setOutfit(161),a.player.equipment.setWeapon(196),(0,a.saveCharacter)(),console.log("Character Saved."),a.player.appearanceChanged=!0,console.log("Appearance Refreshed."),a._.instance.prodigy.open.menuCloseAll(),console.log("Popups closed."),(0,a.saveCharacter)(),console.log("Character Saved."),console.log("Max Account Successful."),o.Toast.fire("Maxed!","Check your backpack!","success")}})))}.apply(t,n))||(e.exports=a)},8130:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,l,"next",e)}function l(e){r(s,n,a,i,l,"throw",e)}i(void 0)}))}}n=[o,t,o(9820),o(4759),o(2852),o(112)],void 0===(a=function(e,t,o,n,a,r){"use strict";new o.Hack(o.category.inventory,"Item stacker").setClick(s((function*(){var e=yield n.NumberInput.fire("Amount","How many of every item would you like?","question");if(e.value&&(yield n.Confirm.fire("Are you sure you want to get all items in the game?")).value){r.ids.forEach((t=>{a.player.backpack.data[t]=(0,r.itemify)(a._.gameData[t].filter((e=>"follow"===t?![125,126,127,128,129,134,135,136,137].includes(e.ID):e)),e.value)})),a._.gameData.dorm.forEach((t=>a.player.house.data.items[t.ID]={A:[],N:e.value}));for(var t=()=>a.player.backpack.data.item.findIndex((e=>84===e.ID||85===e.ID||86===e.ID));t()>-1;)a.player.backpack.data.item.splice(t(),1);return n.Toast.fire("Success!","All items added!","success")}}))),new o.Hack(o.category.inventory,"Clear inventory").setClick(s((function*(){(yield n.Confirm.fire("Are you sure you want to clear your inventory?")).value&&(Object.keys(a.player.backpack.data).forEach((e=>a.player.backpack.data[e]=[])),n.Toast.fire("Success!","Inventory cleared.","success"))}))),new o.Hack(o.category.inventory,"Selector (Basic)").setClick(s((function*(){yield n.Swal.fire({title:"What would you like to obtain?",input:"select",inputOptions:r.names,inputPlaceholder:"Select...",inputValidator:e=>e?"":"Please select which you'd like to obtain.",showCancelButton:!0}).then(function(){var e=s((function*(e){var t=parseInt(e.value),o=r.names[t],s=r.ids[t];if(o){var i=yield n.NumberInput.fire("Amount","How many each object would you like?","question");i.value&&(yield n.Confirm.fire("Are you sure you want to get all ".concat(o.toLowerCase(),"?"))).value&&(a.player.backpack.data[s]=(0,r.itemify)(a._.gameData[s].filter((e=>"follow"===s?![125,126,127,128,129,134,135,136,137].includes(e.ID):e)),i.value),n.Toast.fire("".concat(o," Added!"),"All ".concat(o.toLowerCase()," have been added to your inventory!"),"success"),(0,a.saveCharacter)())}}));return function(t){return e.apply(this,arguments)}}())}))),new o.Hack(o.category.inventory,"Selector (Advanced)","Choose a specific object and quantity to obtain.").setClick(s((function*(){yield n.Swal.fire({title:"What would you like to obtain?",input:"select",inputOptions:r.names,inputPlaceholder:"Select...",inputValidator:e=>e?"":"Please select which you'd like to obtain.",showCancelButton:!0}).then(function(){var e=s((function*(e){if(a._.gameData[r.ids[e.value]]){var t=[];a._.gameData[r.ids[e.value]].forEach((e=>{t.push(e.data.name)})),yield n.Swal.fire({title:"What specific object categorized as ".concat(r.names[e.value].toLowerCase()," would you like to get?"),input:"select",inputOptions:t,inputPlaceholder:"Select...",inputValidator:e=>e?"":"Please select which you'd like to get.",showCancelButton:!0}).then(function(){var t=s((function*(t){var o=parseInt(t.value);if(a._.gameData[r.ids[e.value]][o]){var s=yield n.NumberInput.fire("Amount","How many of the object would you like?","question");if(s.value)return-1===a.player.backpack.data[r.ids[e.value]].findIndex((t=>t.ID===a._.gameData[r.ids[e.value]][o].ID))?a.player.backpack.data[r.ids[e.value]].push({ID:a._.gameData[r.ids[e.value]][o].ID,N:s.value}):a.player.backpack.data[r.ids[e.value]].findIndex((t=>t.ID===a._.gameData[r.ids[e.value]][o].ID)),console.log(a._.gameData[r.ids[e.value]][o].ID),(0,a.saveCharacter)(),n.Toast.fire("".concat(r.names[e.value]," Added!"),"Your selected ".concat(r.names[e.value].toLowerCase()," have been added."),"success")}}));return function(e){return t.apply(this,arguments)}}())}}));return function(t){return e.apply(this,arguments)}}())}))),new o.Hack(o.category.inventory,"Obtain All Furniture").setClick(s((function*(){var e=yield n.NumberInput.fire("Amount","How many of each piece of furniture would you like?","question");if(e.value&&(yield n.Confirm.fire("Are you sure you want to get all furniture?")).value)return a._.gameData.dorm.forEach((t=>a.player.house.data.items[t.ID]={A:[],N:e.value})),n.Toast.fire("Furniture Added!","All furniture has been added to your inventory!","success")}))),new o.Hack(o.category.inventory,"Obtain All Mounts","This gives you all of the mounts in the game.").setClick(s((function*(){return a.player.backpack.data.mount=(0,r.itemify)(a._.gameData.mount,1),n.Toast.fire("Mounts Added!","All mounts have been added to your inventory!")}))),new o.Hack(o.category.inventory,"Remove item").setClick(s((function*(){var e=yield n.Swal.fire({title:"What category would you like to remove an item from?",input:"select",inputOptions:r.names,inputPlaceholder:"Select...",inputValidator:e=>e?"":"Please select which you'd like to obtain.",showCancelButton:!0});if(a._.gameData[r.ids[e.value]]){var t=a._.gameData[r.ids[e.value]].map((e=>e.data.name)),o=yield n.Swal.fire({title:"What specific object categorized as ".concat(r.names[e.value].toLowerCase()," would you like to remove?"),input:"select",inputOptions:t,inputPlaceholder:"Select...",inputValidator:e=>e?"":"Please select which you'd like to get.",showCancelButton:!0});if(o=parseInt(o.value),a._.gameData[r.ids[e.value]][o]){var s=yield n.NumberInput.fire("Amount","How many of the object would you like to remove?","question");if(s.value){if(-1!==a.player.backpack.data[r.ids[e.value]].findIndex((t=>t.ID===a._.gameData[r.ids[e.value]][o].ID))){var i=a.player.backpack.data[r.ids[e.value]].findIndex((t=>t.ID===a._.gameData[r.ids[e.value]][o].ID));return a.player.backpack.data[r.ids[e.value]][i].N-=parseInt(s.value),a.player.backpack.data[r.ids[e.value]][i].N<=0&&a.player.backpack.data[r.ids[e.value]].splice(i,1),(0,a.saveCharacter)(),n.Toast.fire("Removed!","Successfully removed ".concat(s.value," ").concat(a._.gameData[r.ids[e.value]][o].name,"!"),"success")}yield n.Swal.fire("Item Does Not Exist","You do not have any ".concat(a._.gameData[r.ids[e.value]][o].name,"."),"error")}}}}))),new o.Hack(o.category.inventory,"Obtain All Furniture").setClick(s((function*(){return(yield n.Confirm.fire("Are you sure you want to get all furniture?")).value?(a._.gameData.dorm.forEach((e=>a.player.house.data.items[e.ID]={A:[],N:a.VERY_LARGE_NUMBER})),n.Toast.fire("Furniture Added!","All furniture have been added to your inventory!","success")):console.log("Cancelled.")})))}.apply(t,n))||(e.exports=a)},8346:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,l,"next",e)}function l(e){r(s,n,a,i,l,"throw",e)}i(void 0)}))}}n=[o,t,o(9820),o(4759),o(2852),o(112)],void 0===(a=function(e,t,o,n,a,r){"use strict";new o.Hack(o.category.location,"Teleport To Map (interactive)").setClick(s((function*(){var e=n.Swal.mixin({focusConfirm:!1,showCancelButton:!0,preConfirm:()=>{var e;return null===(e=document.querySelector(".radioDiv[checked]"))||void 0===e?void 0:e.getAttribute("zone")}}),t=document.createElement("div");t.classList.add("radioContainer");var o=function(e){var o=document.createElement("DIV");o.classList.add("radioDiv"),o.setAttribute("zone",e);var n=a.locations[e];n?o.style.backgroundImage="url(".concat(n,")"):o.innerText=e,o.onclick=()=>{document.querySelectorAll(".radioDiv[checked]").forEach((e=>e.removeAttribute("checked"))),o.setAttribute("checked","")},t.append(o)};for(var r of Object.keys(a.prodigy.world.zones))o(r);var s=yield e.fire({title:"Teleport Zone",html:t,customClass:{popup:"radioSwal"}});if(s.value){var i=Object.keys(a.prodigy.world.zones[s.value].maps),l=yield n.Swal.fire({input:"select",inputOptions:new Map(i.map((e=>[e,e]))),title:"Map",text:"Which map in the zone do you want to teleport to?"});if(l.value){var c=(yield n.NumberInput.fire("Please enter the x to teleport to. (Try 500?)")).value||500,u=(yield n.NumberInput.fire("Please enter the y to teleport to. (Try 500?)")).value||500;return a.prodigy.world.zones[s.value].teleport(l.value,c,u,{},{}),n.Toast.fire("Teleported","You have been teleported!","success")}}}))),new o.Hack(o.category.location,"Teleport to house by userID").setClick(s((function*(){var e=(yield n.NumberInput.fire("Please enter the userID.")).value;if(e)return(0,r.toHouse)(e),n.Toast.fire("Teleported!","You have been teleported!","success")}))),new o.Hack(o.category.location,"Get Map Location").setClick(s((function*(){var e=a.player.data.zone;navigator.clipboard.writeText(e).then(s((function*(){return console.log("Async: Copying to clipboard was successful!"),n.Swal.fire({title:"Map Location",html:"You are at
                        ".concat(e," .
                        You can save this to get to the same zone.

                        Your location is has also been copied to your clipboard."),icon:"info"})})),function(){var t=s((function*(t){return console.error("Async: Could not copy text: ",t),n.Swal.fire({title:"Map Location",html:"You are at
                        ".concat(e," .
                        You can save this to get to the same zone."),icon:"info"})}));return function(e){return t.apply(this,arguments)}}())})))}.apply(t,n))||(e.exports=a)},3344:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,l,"next",e)}function l(e){r(s,n,a,i,l,"throw",e)}i(void 0)}))}}n=[o,t,o(9820),o(2852),o(4759)],void 0===(a=function(e,t,o,n,a){"use strict";new o.Toggler(o.category.minigames,"69x Walk Speed [Dyno Dig]","Walk so fast that you're teleporting, in Dyno Dig.").setEnabled(s((function*(){return n._.instance.game.state.states.get("DinoDig").walkSpeed=69,a.Toast.fire("Enabled!","You will now walk so fast that you're teleporting in Dyno Dig.","success")}))).setDisabled(s((function*(){return n._.instance.game.state.states.get("DinoDig").walkSpeed=1.5,a.Toast.fire("Disabled!","You will now walk at normal speed, in Dyno Dig.","success")})))}.apply(t,n))||(e.exports=a)},465:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,l,"next",e)}function l(e){r(s,n,a,i,l,"throw",e)}i(void 0)}))}}n=[o,t,o(4759),o(9820),o(2852),o(8238)],void 0===(a=function(e,t,o,n,a,r){"use strict";new n.Hack(n.category.misc,"Skip Tutorial").setClick(s((function*(){var e=(e,t,o,n)=>{a._.instance.prodigy.world.getZone(e).testQuest(t,o,n);try{Object.fromEntries(a._.instance.game.state.states).TileScreen.process()}catch(e){}};e("house",2),e("academy",2),a.player.state.set("tutorial-0",4),a.player.backpack.addKeyItem(13,0),a.player.tutorial.data.menus[14]=[1],a._.instance.prodigy.open.map(!0,[]),a.player.onTutorialComplete(),a.player.data.level=Math.max(a.player.data.level,5)}))),new n.Toggler(n.category.misc,"Disable Monster Encounters").setEnabled(s((function*(){return a._.constants.constants["GameConstants.Debug.SCALE_ENCOUNTER_DISTANCE"]=0,o.Toast.fire("Enabled!","Monsters will no longer battle you.","success")}))).setDisabled((()=>(a._.constants.constants["GameConstants.Debug.SCALE_ENCOUNTER_DISTANCE"]=1,o.Toast.fire("Disabled!","Monsters will now battle you.","success")))),new n.Toggler(n.category.misc,"Skip enemy turn").setEnabled(s((function*(){return a._.constants.constants["GameConstants.Battle.SKIP_ENEMY_TURN"]=!0,o.Toast.fire("Skipping!","Enemy turns will now be skipped.","success")}))).setDisabled((()=>(a._.constants.constants["GameConstants.Battle.SKIP_ENEMY_TURN"]=!1,o.Toast.fire("Disabled","Enemy turns will no longer be skipped.","success")))),new n.Toggler(n.category.beta,"FPS Counter [BETA]","Shows you a framerate counter").setEnabled(s((function*(){(0,r.startFps)()}))).setDisabled(s((function*(){(0,r.stopFps)()})));try{var i=a.current.user.source.canSpin;new n.Toggler(n.category.misc,"Unlimited Spins","Lets you spin the wheel as many times as you want!").setEnabled(s((function*(){return a.player.canSpin=()=>{},o.Toast.fire("Enabled!","You can now spin the wheel as many times as you want!","success")}))).setDisabled(s((function*(){return a.player.canSpin=i,o.Toast.fire("Disabled!","You can now spin the wheel only when allowed.","success")})))}catch(e){console.error("Unlimited Spins ERROR: "+e)}new n.Hack(n.category.misc,"Bobbify","Converts your account into Bobby Fancywoman.").setClick(s((function*(){if((yield o.Confirm.fire("Are you sure you want your account to be turned into Bobby Fancywoman?","This action is not reversable.")).value)return a.player.name.data.nickname=null,a.player.name.data.firstName=44,a.player.name.data.middleName=754,a.player.name.data.lastName=882,a.player.data.stars=-1e22,a.player.data.level=69,a.player.appearance.setGender("male"),a.player.appearance.setEyeColor(1),a.player.appearance.setFace(4),a.player.appearance.setHair(19,1),a.player.appearance.setSkinColor(1),a.player.equipment.setFollow(19),a.player.equipment.setHat(19),a.player.equipment.setBoots(19),a.player.equipment.setOutfit(19),a.player.equipment.setWeapon(19),o.Toast.fire("Bobbified!","You are now Bobby Fancywoman.","success")}))),new n.Hack(n.category.misc,"Reset Account","Completely resets your account.").setClick(s((function*(){if((yield o.Confirm.fire("Are you sure you want to reset your account?","This action is not reversible.")).value)return a.player.resetAccount(),o.Swal.fire("Reset!","Your account has been reset. Reload Prodigy for the full effect.","success")})));var l=null,c=0;new n.Hack(n.category.misc,"Chat Spammer","Cycles through chat messages pretty fast!").setClick(s((function*(){return l?o.Swal.fire("Already Enabled","Chat Spammer is already enabled. To disable chat spammer, reload Prodigy.","error"):(l=setInterval(s((function*(){a.player.chatID=c,++c>1164&&(c=0)})),90),o.Toast.fire("Spamming!","You're now sending a chat message every 90 milliseconds!","success"))})));var u=null,d=0;new n.Hack(n.category.misc,"High Chat Spammer","Cycles through chat messages hella fast!").setClick(s((function*(){return u?o.Swal.fire("Already Enabled","High Chat Spammer is already enabled. To disable chat spammer, reload Prodigy.","error"):(yield o.Confirm.fire("Warning","This hack may cause lag on weak computers (ex. School Chromebooks).")).value?(u=setInterval(s((function*(){a.player.chatID=d,++d>1164&&(d=0)})),30),o.Toast.fire("Spamming!","You're now sending a chat message every 30 milliseconds!","success")):console.log("Cancelled")})));var p=null,h=0;new n.Hack(n.category.misc,"Chat Spammer on Meth","Cycles through chat messages FAST ASF!").setClick(s((function*(){return p?o.Swal.fire("Already Enabled","Chat Spammer on Meth is already enabled. To disable chat spammer, reload Prodigy.","error"):(yield o.Confirm.fire("Warning","This hack may cause lag on weak computers (ex. School Chromebooks).")).value?(p=setInterval(s((function*(){a.player.chatID=h,++h>1164&&(h=0)})),1),o.Toast.fire("Spamming!","You're now sending a chat message every 1 millisecond!","success")):console.log("Cancelled")}))),new n.Hack(n.category.misc,"[Fix] Fix Battle Crash").setClick(s((function*(){return a.player.kennel.petTeam.forEach((e=>{e&&e.assignRandomSpells&&e.assignRandomSpells()})),o.Toast.fire("Success!","Fixed kennel attack bug!","success")}))),new n.Hack(n.category.misc,"[Fix] Stuck in Unfinished Tower Fix","Takes you out of an unfinished tower if you're stuck in one.").setClick(s((function*(){return a._.instance.prodigy.world.zones.house.teleport("exit"),o.Toast.fire("Success!","You've been teleported outside of your house.","success")}))),new n.Hack(n.category.misc,"uwu","OwO").setClick(s((function*(){return(yield o.Confirm.fire("Are you sure that you want to UwU OwO?","Reload Prodigy to revert UwU.")).value?(Object.chance=e=>{var t={},o=0;for(var n of Object.keys(e).sort(((e,o)=>t[e]-t[o])))t[n]=[],t[n][0]=o+1,t[n][1]=e[n]+o,o=e[n]+o;return t},Object.random=e=>{var t=Object.values(e),o=t[t.length-1][1],n=Math.randint(o);return Object.reverse(e)[t.find((e=>n>=e[0]&&n<=e[1]))]},Array.prototype.join=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:",";return"string"==typeof e?this.reduce(((t,o,n,a)=>t+(nt+(n0&&void 0!==arguments[0]?arguments[0]:",";return"string"==typeof e?this.reduce(((t,o,n)=>t+(n?e+o:o)),""):e instanceof Function?this.reduce(((t,o,n,a)=>t+(n?e(a[n],n,a)+o:o)),""):void 0},String.UWUFX=e=>{var t=Object.chance({"owo :3":20,"✧w✧":20,UwU:20,OwO:10,rawr:10,"uwu :3":5,":3 meow":15,":3":15,X3:15,"*purrs*":15,owo:15,uwu:15,"^w^":15,"x3 rawr":15,owowowowo:15});return e.split(" ").leftJoin(((e,t)=>0===Math.floor(6*Math.random())&&/[A-Za-z]/.test(e[0])?" ".concat(e[0],"-"):" ")).split(" ").join(((e,o)=>0===Math.floor(5*Math.random())?" ".concat(Object.random(t)," "):" "))},String.UWUTable={y:"wy",l:"w",r:"w",ss:"zs",n:"nw",ove:"uv",ome:"um",x:"ks",com:"cum",stu:"stew",au:"aw"},Math.randint=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Math.floor(Math.random()*e-t)+t},String.prototype.escapeRegex=function(){return this.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")},String.prototype.replaceAll=function(e,t){return this.replace(new RegExp(e.toString().escapeRegex(),"gi"),(e=>t))},Object.fromArrays=(e,t)=>{var o={};return e.forEach(((e,n)=>{o[e]=t[n]})),o},Object.reverse=e=>Object.fromArrays(Object.values(e),Object.keys(e)),String.prototype.bulkReplace=function(e){var t=this;for(var o in e)t=t.replaceAll(o,e[o]);return t},String.UWU=e=>String(e).bulkReplace(String.UWUTable),Object.keys(a._.localizer.dataSource._languageData).map((e=>a._.localizer.dataSource._languageData[e]=String.UWUFX(String.UWU(a._.localizer.dataSource._languageData[e])))),Object.values(a._.gameData).map((e=>e.map((e=>[e.data.name&&(e.data.name=String.UWUFX(String.UWU(e.data.name))),e.name&&(e.name=String.UWUFX(String.UWU(e.name))),e.data.flavorText&&(e.data.flavorText=String.UWUFX(String.UWU(e.data.flavorText)))])))),o.Toast.fire("uwu","Reload Prodigy to fix uwu.","success")):console.log("uwu cancelled")})))}.apply(t,n))||(e.exports=a)},8603:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,l,"next",e)}function l(e){r(s,n,a,i,l,"throw",e)}i(void 0)}))}}n=[o,t,o(4759),o(9820),o(2852)],void 0===(a=function(e,t,o,n,a){"use strict";var r=null;new n.Hack(n.category.patched,"Arena Point Increaser [Patched]").setClick(s((function*(){return r?o.Swal.fire("Already Enabled","Arena Point Increaser is already enabled.","error"):(yield o.Confirm.fire("This hack is patched.","Running it will probably do nothing.")).value?(r=setInterval(s((function*(){var e=yield(yield fetch("https://api.prodigygame.com/leaderboard-api/season/".concat(a.prodigy.pvpNetworkHandler.seasonID,"/user/").concat(a.player.userID,"/pvp?userID=").concat(a.player.userID),{headers:{authorization:"Bearer ".concat(a.prodigy.network.jwtAuthProvider.getToken()),"content-type":"application/x-www-form-urlencoded; charset=UTF-8"},body:"seasonID=".concat(a.prodigy.pvpNetworkHandler.seasonID,"&action=win"),method:"POST",mode:"cors"})).text();if(""!==e){var t=JSON.parse(e);console.log("[API] ".concat(t.points," Points (+100)"))}else console.log("[API] Failed to add points.")})),60500),o.Swal.fire("Enabled","Arena Point Increaser has been enabled.","success")):console.log("Cancelled")}))),new n.Hack(n.category.patched,"Disable Timeout Dialog [Patched]").setClick(s((function*(){return(yield o.Confirm.fire("This hack is patched.","Running it will probably do nothing.")).value?(a.prodigy.debugMisc.disableTimeoutDialogue(),o.Toast.fire("Enabled","Timeout Dialog has been disabled.","success")):console.log("Cancelled")})))}.apply(t,n))||(e.exports=a)},7736:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;function asyncGeneratorStep(e,t,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}function _asyncToGenerator(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var r=e.apply(t,o);function s(e){asyncGeneratorStep(r,n,a,s,i,"next",e)}function i(e){asyncGeneratorStep(r,n,a,s,i,"throw",e)}s(void 0)}))}}var __importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};__WEBPACK_AMD_DEFINE_ARRAY__=[__webpack_require__,exports,__webpack_require__(4759),__webpack_require__(9820),__webpack_require__(2852),__webpack_require__(112),__webpack_require__(3336),__webpack_require__(939),__webpack_require__(3135)],__WEBPACK_AMD_DEFINE_RESULT__=function(require,exports,swal_1,index_1,util_1,hackify_1,kennel_1,flatted_1,lzbase62_1){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),flatted_1=__importDefault(flatted_1),lzbase62_1=__importDefault(lzbase62_1),new index_1.Hack(index_1.category.pets,"Get All Pets").setClick(_asyncToGenerator((function*(){return(yield swal_1.Confirm.fire("Would you like to add all pets to your pets?")).value?(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()})),swal_1.Toast.fire("Success!","All pets have been added!","success")):console.log("Cancelled")}))),new index_1.Hack(index_1.category.pets,"Get All Legacy Epics").setClick(_asyncToGenerator((function*(){return(yield swal_1.Confirm.fire("This may damage your account.","Attempting to add legacy epics may damage your account. Would you still like to add all legacy epics to your team?","warning")).value?(util_1._.gameData.pet.filter((e=>[125,126,127,128,129,130,131,132,133].includes(e.ID))).forEach((e=>{util_1.player.kennel.addPet(e.ID.toString(),util_1.VERY_LARGE_NUMBER,26376,100)})),util_1.player.kennel.petTeam.forEach((e=>{e&&e.assignRandomSpells&&e.assignRandomSpells()})),swal_1.Toast.fire("Success!","All legacy epics have been added!","success")):console.log("Cancelled")}))),new index_1.Hack(index_1.category.pets,"Get All Mythical Epics").setClick(_asyncToGenerator((function*(){return(yield swal_1.Confirm.fire("Would you like to add all mythical epics to your pets?")).value?(util_1._.gameData.pet.filter((e=>[158,164,165,166,167,168,169,170,171,189].includes(e.ID))).forEach((e=>{util_1.player.kennel.addPet(e.ID.toString(),util_1.VERY_LARGE_NUMBER,26376,100)})),util_1.player.kennel.petTeam.forEach((e=>{e&&e.assignRandomSpells&&e.assignRandomSpells()})),swal_1.Toast.fire("Success!","All mythical epics have been added!","success")):console.log("Cancelled")}))),new index_1.Hack(index_1.category.pets,"Clear Pets").setClick(_asyncToGenerator((function*(){return(yield swal_1.Confirm.fire("Would you like to delete all of your pets?")).value?(util_1.player.kennel.data.length=0,swal_1.Toast.fire("Success!","Your pets have been cleared!","success")):console.log("Cancelled")}))),new index_1.Hack(index_1.category.pets,"Add Pet","Adds a pet from a list.").setClick(_asyncToGenerator((function*(){var e=yield swal_1.Swal.fire({input:"select",inputOptions:new Map(util_1._.gameData.pet.map((e=>[e.ID.toString(),"".concat(e.ID,": ").concat(e.data.name)]))),title:"Choose Pet",text:"Which pet do you want to obtain?"});if(void 0!==e.value)return util_1.player.kennel.addPet(e.value),util_1.player.kennel._encounterInfo._data.pets.push({firstSeenDate:Date.now(),ID:e.value,timesBattled:1,timesRescued:1}),swal_1.Toast.fire("Success!","Your chosen pet has been added to your pets!","success")}))),new index_1.Hack(index_1.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(_asyncToGenerator((function*(){var petTeam=util_1.player.kennel.petTeam.slice(0);petTeam.shift();var names=petTeam.map((e=>e.getName())),pet=yield swal_1.Swal.fire({title:"Which pet would you like to edit?",input:"select",inputOptions:names,inputPlaceholder:"Select...",inputValidator:e=>e?"":"Please select which you'd like to obtain.",showCancelButton:!0}),amt=yield swal_1.NumberInput.fire("Level","What would you like to set your pet's level to? (Can be set over 100)","question");if(amt.value){var num=amt.value;return eval("player.kennel.petTeam[parseInt(".concat(pet.value,")+1].getLevel = () => {return ").concat(num,"}")),swal_1.Toast.fire("Updated!","The level of your pet was successfully updated. Note: this hack is client-side.","success")}}))),new index_1.Hack(index_1.category.pets,"Delete Pet","Delete a pet.").setClick(_asyncToGenerator((function*(){var e=yield(0,hackify_1.getPet)("Which pet do you wish to delete?");if(void 0!==e)return util_1.player.kennel.data.splice(e,1),swal_1.Toast.fire("Successfully deleted!","The selected pet was deleted successfully.","success")}))),new index_1.Hack(index_1.category.pets,"Edit Kennel","Allows you to directly edit your pets.").setClick(_asyncToGenerator((function*(){null!==(yield(0,kennel_1.GetAction)())&&null!==(yield(0,kennel_1.SelectSlot)())&&console.log(s(parseInt(KennelSlot.value)))}))),new index_1.Hack(index_1.category.pets,"Backup Kennel","Makes a backup of your kennel to your chrome local storage.").setClick(_asyncToGenerator((function*(){var e=lzbase62_1.default.compress(flatted_1.default.stringify(util_1._.player.kennel._petTeam[0]));return console.log(e.length),console.log(e),localStorage.setItem("prodigy-kennel-backup",e),swal_1.Toast.fire("Backed up!","Your kennel is now backed up to the local storage.","success")}))),new index_1.Hack(index_1.category.pets,"Restore Kennel","Restores a backup of your kennel from the local storage... if you have one.").setClick(_asyncToGenerator((function*(){var e=localStorage.getItem("prodigy-kennel-backup");return null===e?swal_1.Swal.fire({title:"No backup found",html:"There is no backup of your kennel in the local storage. Make sure to back up your kennel before trying to load it.",icon:"error"}):(util_1._.player.kennel._petTeam=flatted_1.default.toJSON(lzbase62_1.default.decompress(e)),swal_1.Toast.fire("Restored!","Your kennel backup should be restored","success"))})))}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),void 0===__WEBPACK_AMD_DEFINE_RESULT__||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)},7939:(module,exports,__webpack_require__)=>{var __webpack_unused_export__,__WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;function asyncGeneratorStep(e,t,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}function _asyncToGenerator(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var r=e.apply(t,o);function s(e){asyncGeneratorStep(r,n,a,s,i,"next",e)}function i(e){asyncGeneratorStep(r,n,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_require__(112)],__WEBPACK_AMD_DEFINE_RESULT__=function(require,exports,swal_1,index_1,util_1,hackify_1){"use strict";__webpack_unused_export__={value:!0},new index_1.Hack(index_1.category.player,"Max Account").setClick(_asyncToGenerator((function*(){if(!(yield swal_1.Confirm.fire("Are you sure that you want to max your account?","We recommend doing this on an alt.")).value)return console.log("Cancelled");util_1.player.data.gold=99e5,console.log("Set player gold to 9900000.");var e=100..value-2;util_1.player.data.stars=Math.round((1-Math.pow(1.042,e))/(1-1.042)*20+10),util_1.player.data.level=100,util_1.player.getLevel=()=>util_1.player.data.level,console.log("Set player level to 100"),util_1.player.data.bountyScore=100,console.log("Set player's bounty points to 100.");for(var t=0;t{util_1.player.backpack.data[e]=(0,hackify_1.itemify)(util_1._.gameData[e].filter((t=>"follow"===e?![125,126,127,128,129,134,135,136,137].includes(t.ID):t)),1..value)})),util_1._.gameData.dorm.forEach((e=>util_1.player.house.data.items[e.ID]={A:[],N:1..value}));for(var n=()=>util_1.player.backpack.data.item.findIndex((e=>84===e.ID||85===e.ID||86===e.ID));n()>-1;)util_1.player.backpack.data.item.splice(n(),1);swal_1.Toast.fire("Success!","All items added!","success"),console.log("All items added!"),util_1.player.backpack.data.mount=(0,hackify_1.itemify)(util_1._.gameData.mount,1),console.log("Added all mounts.");var a="currency";return util_1.player.backpack.data[a]=(0,hackify_1.itemify)(util_1._.gameData[a].filter((e=>e)),6969420),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.equipment.setHat(200),util_1.player.equipment.setBoots(93),util_1.player.equipment.setOutfit(161),util_1.player.equipment.setWeapon(196),util_1.player.appearanceChanged=!0,console.log("Appearance Refreshed."),(0,util_1.saveCharacter)(),console.log("Character Saved."),console.log("Max Account Successful."),swal_1.Toast.fire("Maxed!","Check your backpack!","success")}))),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)return e.value>1e7?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;return 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");if(void 0!==e.value)return 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");if(void 0!==e.value)return 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;t(util_1._.instance.prodigy.gameContainer.get((0,hackify_1.getMemberModule)()).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"),o=(e,t)=>{var o=document.createElement("select");for(var n of(o.classList.add("selectName"),e.entries())){var a=document.createElement("option");[a.value,a.innerText]=n,t(a.value)&&(a.selected=!0),o.options.add(a)}return o},n=(t,n)=>o(new Map(e.filter((e=>e.data.type===t)).map((e=>[e.ID.toString(),e.name]))),(e=>n(+e)));t.append(n(0,(e=>e===util_1.player.name.data.firstName))),t.append(n(1,(e=>e===util_1.player.name.data.middleName))),t.append(n(2,(e=>e===util_1.player.name.data.lastName))),t.append(o(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");if(level.value)return 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*(){return 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*(){return 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")):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 o=util_1._.instance.prodigy.world.zones[t].getCurrentQuestID();return util_1._.instance.prodigy.world.zones[t].completeQuest(o)?(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)});if(e.value)return 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.toString()).then((function(){return 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){return 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();return 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?");if(e.value)return util_1.player.grade=parseInt(e.value),swal_1.Toast.fire("Success","Successfully changed grade to ".concat(e,"!"),"success")})))}.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,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}function _asyncToGenerator(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var r=e.apply(t,o);function s(e){asyncGeneratorStep(r,n,a,s,i,"next",e)}function i(e){asyncGeneratorStep(r,n,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*(){return 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,"Grab UserID of all players on screen","Shows you the UserID and name of every player currently shown on the screen.").setClick(_asyncToGenerator((function*(){var e=util_1.current.playerList;if(0===Object.keys(e).length)return swal_1.Toast.fire("No players found.","There are no other players on the screen.","error");var t="",o=0;return yield Object.keys(e).map((n=>{var a=Object.entries(e)[o][1].nameText.textSource.source;t+="
                      • uID: ".concat(n," - ").concat(a,"
                      • "),o++})),swal_1.Swal.fire({title:"All players on the screen:",html:t,icon:"info"})}))),new index_1.Hack(index_1.category.utility,"Save Character Locally [Local]","Saves your character locally.").setClick(_asyncToGenerator((function*(){return 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"});return t.ok?swal_1.Toast.fire("Success!","Character has been successfully loaded. Reload for the changes to take effect.","success"):swal_1.Toast.fire("Request failed.","An error occurred while loading the character. Error code: ".concat(t.status),"error")}return 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*(){return(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;return 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*(){return 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);return 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*(){return teleportingInterval=setInterval((()=>{try{util_1.player._playerContainer.walkSpeed=500}catch(e){}})),swal_1.Toast.fire("Success!","Successfully enabled teleport click.","success")}))).setDisabled(_asyncToGenerator((function*(){return 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*(){return util_1._.network.game._paused=!0,swal_1.Toast.fire("Success!","Successfully paused Prodigy.","success")}))).setDisabled(_asyncToGenerator((function*(){return 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)return console.log("Cancelled.");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 swal_1.Swal.fire({title:"Error",html:"Oops! There was an error with the code!
                         ".concat(e," "),icon:"error"})}return 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,o){var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,l,"next",e)}function l(e){r(s,n,a,i,l,"throw",e)}i(void 0)}))}}var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};n=[o,t,o(7046),o(2852),o(3526),o(6455),o(4759),o(4719),o(158)],a=function(e,t,o,n,a,r,l,c){"use strict";var u,d,p,h;Object.defineProperty(t,"__esModule",{value:!0}),t.category=t.Toggler=t.Hack=t.toggler=t.wrapper=t.menu=void 0,r=i(r),t.menu=document.createElement("div"),t.wrapper=document.getElementById("game-wrapper"),null===(u=document.getElementById("cheat-menu"))||void 0===u||u.remove(),null===(d=document.getElementById("menu-toggler"))||void 0===d||d.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===(p=t.wrapper)||void 0===p||p.prepend(t.menu),t.toggler=document.createElement("button"),t.toggler.id="menu-toggler";var m=!1;null===(h=t.wrapper)||void 0===h||h.prepend(t.toggler),t.toggler.onclick=()=>{(m=!m)?(t.toggler.innerText="▼",t.menu.style.top="-100vh"):(t.toggler.innerText="▲",t.menu.style.top="10%")},t.toggler.onclick({});var f=document.createElement("DIV");f.classList.add("menu-left"),t.menu.append(f);var g=!0,y=e=>{var t=document.createElement("div");0==g?(t.append(document.createElement("br")),t.append(document.createElement("br"))):g=!1,t.classList.add("menu-area"),t.style.textAlign="center",f.append(t);var o=document.createElement("h1");return o.innerText=e,o.style.textAlign="center",o.style.color="white",t.append(o),t},w=document.createElement("h1");w.classList.add("menu-title"),w.innerText="Prodigy Hacks",w.style.textAlign="center",f.append(w);var b=document.createElement("h2");b.style.fontSize="25px",b.style.color="white",b.innerHTML="
                        Press SHIFT to show/hide the menu. Scroll down in the menu for more hacks.",f.append(b);var _=document.createElement("h3");_.style.fontSize="20px",_.innerHTML="\n

                        Join our Discord https://dsc.gg/ProdigyPNP!

                        \n\n
                        \n",_.style.color="white",f.append(_);class v{constructor(e,t,o){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),o&&this.setDesc(o)}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,n.saveCharacter)(),console.log("Triggered ".concat(t.name,"."))})),this}setDesc(e){return this.element.title=e,this.description=e,this}}t.Hack=v,t.Toggler=class extends v{constructor(e,t,o){var n;super(e,t,o),n=this,this.parent=e,this.element.setAttribute("status","false"),this.setClick(s((function*(){var e,t;n.status=!n.status,n.status?(localStorage.setItem(n.name,"true"),yield null===(e=n.enabled)||void 0===e?void 0:e.call(n)):(localStorage.setItem(n.name,"false"),yield null===(t=n.disabled)||void 0===t?void 0:t.call(n))})))}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:y("Player Hacks"),inventory:y("Inventory Hacks"),location:y("Location Hacks"),pets:y("Pet Hacks"),battle:y("Battle Hacks"),minigames:y("Minigame Hacks"),misc:y("Miscellaneous Hacks"),utility:y("Utility Hacks"),beta:y("Beta Testing | Beta Hacks may damage your account"),patched:y("Patched Hacks")},localStorage.hasTip?(0,c.IndexInfo)("Player already has tip."):(s((function*(){yield r.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,(0,c.IndexInfo)("Player was shown the tip.")),localStorage.getItem("level")&&(n._.player.getLevel=()=>localStorage.getItem("level"),(0,c.IndexInfo)("Loaded menu from localStorage."));var k=!0;document.addEventListener("keydown",(function(e){"Shift"==e.key&&((0,c.IndexInfo)("Shift key was pressed."),1==k?((0,c.IndexInfo)("Hiding cheat menu..."),document.getElementById("cheat-menu").style.display="none",document.getElementById("menu-toggler").style.display="none",k=!1,(0,c.IndexInfo)("Hidden cheat menu.")):((0,c.IndexInfo)("Showing cheat menu..."),document.getElementById("cheat-menu").style.display="block",document.getElementById("menu-toggler").style.display="block",k=!0,(0,c.IndexInfo)("Shown cheat menu.")))})),s((function*(){var e,t;(yield l.License.fire("ProdigyPNP",'\n

                        \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 ')).value?yield(0,a.statusMessage)():(yield l.NoLicense.fire("ProdigyPNP License","\n

                        \n You need to agree to our license to use our hacks. If you changed your mind and now agree to our license, reload Prodigy.\n

                        \n ")).value?document.location="":(null===(e=document.getElementById("cheat-menu"))||void 0===e||e.remove(),null===(t=document.getElementById("menu-toggler"))||void 0===t||t.remove())}))()}.apply(t,n),void 0===a||(e.exports=a)},8238:(e,t,o)=>{var n,a;n=[o,t,o(9820)],a=function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stopFps=t.startFps=void 0;var n=document.createElement("button"),a=!1;t.startFps=function(){var e;a=!0,n.id="fps-counter",null===(e=o.wrapper)||void 0===e||e.prepend(n),setInterval((()=>{var e=_.player.game.fps._framerate;a?n.innerText=e.toFixed(2)+" FPS":n.remove()}),300)},t.stopFps=function(){var e;a=!1,null===(e=document.getElementById("fps-counter"))||void 0===e||e.remove()}}.apply(t,n),void 0===a||(e.exports=a)},112:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}n=[o,t,o(2852),o(4759)],a=function(e,t,o,n){"use strict";function a(e){o._.instance.prodigy.loading(!0);var t=t=>{var a=null!=t?t[e]:null;if(null!==a&&void 0!==a.house&&null!==a.house){o._.instance.prodigy.loading(!1);var r=o._.cloneDeep(o._.player.house);return r.setItems(a.house),void 0!==a.data.allowsHouseVisitors&&null!==a.data.allowsHouseVisitors&&a.data.allowsHouseVisitors?o._.instance.prodigy.world._("house",null,null,{house:r,getAllowsHouseVisitors:()=>void 0!==a.data.allowsHouseVisitors&&null!==a.data.allowsHouseVisitors&&a.data.allowsHouseVisitors,setAllowsHouseVisitors:e=>{a.data.allowsHouseVisitors=e}}):n.Swal.fire("Teleporting to ".concat(e," is not allowed."),"Try another user.","error")}};return o._.network.getCharData(e.toString(),["house","data"],t,t),n.Toast.fire("Teleported to house","You have been teleported to the house!","success")}Object.defineProperty(t,"__esModule",{value:!0}),t.getPet=t.teleportToHouse=t.toHouse=t.getMemberModule=t.runeify=t.itemify=t.ids=t.names=void 0,t.names=["Boots","Buddies","Fossils","Hats","Items","Key Items","Tower Town Frames","Tower Town Interiors","Mounts","Outfits","Relics","Weapons","Currencies"],t.ids=["boots","follow","fossil","hat","item","key","mathTownFrame","mathTownInterior","mount","outfit","spellRelic","weapon","currency"],t.itemify=(e,t)=>e.map((e=>({ID:e.ID,N:t}))).filter((e=>void 0!==e)),t.runeify=(e,t)=>{e.map((e=>({ID:e.ID,quantity:t}))).filter((e=>void 0!==e))},t.getMemberModule=function(){return o._.player.hasMembership.toString().split('"')[1]},t.toHouse=function(e){if(o._.player.userID!==e){var t=o._.instance.prodigy.friendsListNetworkHandler.friendsList.length,r=o._.instance.prodigy.friendsListNetworkHandler.classList.length;o._.instance.prodigy.gameContainer.get("2e1-e659").create("house-visit","click","hub",t,r,null,null,e).broadcast()}var s=o._.instance.prodigy.world.getZone(o._.instance.prodigy.world.getCurrentZone());return s?s.handleLeaving(2,(()=>a(e))):n.Swal.fire({title:"Error",text:"You are not in a zone!",icon:"error"})},t.teleportToHouse=a;var s=function(){var e,t=(e=function*(e){return(yield n.Swal.fire({input:"select",inputOptions:new Map(o._.player.kennel.data.map(((e,t)=>{var n,a,r;return[t.toString(),"Level ".concat(e.level," - ").concat(null!==(n=null!==(a=e.nickname)&&void 0!==a?a:null===(r=o._.gameData.pet.find((t=>+t.ID==+e.ID)))||void 0===r?void 0:r.data.name)&&void 0!==n?n:"Unknown")]}))),title:"Choose Pet",text:e})).value},function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,l,"next",e)}function l(e){r(s,n,a,i,l,"throw",e)}i(void 0)}))});return function(e){return t.apply(this,arguments)}}();t.getPet=s}.apply(t,n),void 0===a||(e.exports=a)},3336:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,l,"next",e)}function l(e){r(s,n,a,i,l,"throw",e)}i(void 0)}))}}n=[o,t,o(4759)],a=function(e,t,o){"use strict";function n(){return(n=s((function*(){var e=new Map;e.set("Copy","Copy a slot to another slot"),e.set("Remove","Completley empty one slot");var t=yield o.Swal.fire({input:"select",inputOptions:e,title:"Select Action",text:"Select an action to perform on the Kennel"});return t.value?t.value:null}))).apply(this,arguments)}function a(){return(a=s((function*(){var e=new Map,t=e=>_.player.kennel._petTeam[e]?_.player.kennel._petTeam[e].source?_.player.kennel._petTeam[e].source.name:_.player.kennel._petTeam[e]._userDataPlatform?"Player":"null":"null";e.set("0","[0] Center - ".concat(t(0))),e.set("1","[1] Top - ".concat(t(1))),e.set("2","[2] Bottom - ".concat(t(2)));var n=yield o.Swal.fire({input:"select",inputOptions:e,title:"Select Slot",text:"Select a slot to edit"});return n.value?parseInt(n.value):null}))).apply(this,arguments)}Object.defineProperty(t,"__esModule",{value:!0}),t.SelectSlot=t.GetAction=void 0,t.GetAction=function(){return n.apply(this,arguments)},t.SelectSlot=function(){return a.apply(this,arguments)}}.apply(t,n),void 0===a||(e.exports=a)},2868:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}n=[o,t,o(2852),o(4759)],void 0===(a=function(e,t,o,n){"use strict";window.addEventListener("keydown",(e=>{switch(e.which){case 192:o._.instance.prodigy.open.menuCloseAll();break;case 220:var t=function(){var e,t=(e=function*(){if(!(yield n.Confirm.fire("Kit","Would you like to equip Celestial Gear?")).value)return console.log("Cancelled");o._.player.equipment.setHat(200),o._.player.equipment.setBoots(93),o._.player.equipment.setOutfit(161),o._.player.equipment.setWeapon(196),o._.player.appearanceChanged=!0,n.Toast.fire("Success!","You are now wearing Celestial Armor and wielding a Dual Blade.","success")},function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,l,"next",e)}function l(e){r(s,n,a,i,l,"throw",e)}i(void 0)}))});return function(){return t.apply(this,arguments)}}();t()}}))}.apply(t,n))||(e.exports=a)},4719:(e,t,o)=>{var n;n=function(e,t){"use strict";function o(e,o){return""==e||null==e?console.log("["+t.LogPrefix+":unknown] "+o):console.log("["+t.LogPrefix+":"+e+"] "+o)}function n(e,t,n){return o(t,"*"+e.toUpperCase()+"* "+n)}Object.defineProperty(t,"__esModule",{value:!0}),t.UtilityError=t.UtilitySuccess=t.UtilityInfo=t.PlayerError=t.PlayerSuccess=t.PlayerInfo=t.PetsError=t.PetsSuccess=t.PetsInfo=t.PatchedError=t.PatchedSuccess=t.PatchedInfo=t.MiscError=t.MiscSuccess=t.MiscInfo=t.MinigameError=t.MinigameSuccess=t.MinigameInfo=t.LocationError=t.LocationSuccess=t.LocationInfo=t.InventoryError=t.InventorySuccess=t.InventoryInfo=t.BetaError=t.BetaSuccess=t.BetaInfo=t.BattleError=t.BattleSuccess=t.BattleInfo=t.IndexError=t.IndexSuccess=t.IndexInfo=t.StatusLog=t.ConsoleLog=t.LogPrefix=void 0,t.LogPrefix="CheatGUI",t.ConsoleLog=o,t.StatusLog=n,t.IndexInfo=function(e){return n("info","index.ts",e)},t.IndexSuccess=function(e){return n("success","index.ts",e)},t.IndexError=function(e){return n("error","index.ts",e)},t.BattleInfo=function(e){return n("info","battle.ts",e)},t.BattleSuccess=function(e){return n("success","battle.ts",e)},t.BattleError=function(e){return n("error","battle.ts",e)},t.BetaInfo=function(e){return n("info","beta.ts",e)},t.BetaSuccess=function(e){return n("success","beta.ts",e)},t.BetaError=function(e){return n("error","beta.ts",e)},t.InventoryInfo=function(e){return n("info","inventory.ts",e)},t.InventorySuccess=function(e){return n("success","inventory.ts",e)},t.InventoryError=function(e){return n("error","inventory.ts",e)},t.LocationInfo=function(e){return n("info","location.ts",e)},t.LocationSuccess=function(e){return n("success","location.ts",e)},t.LocationError=function(e){return n("error","location.ts",e)},t.MinigameInfo=function(e){return n("info","minigame.ts",e)},t.MinigameSuccess=function(e){return n("success","minigame.ts",e)},t.MinigameError=function(e){return n("error","minigame.ts",e)},t.MiscInfo=function(e){return n("info","misc.ts",e)},t.MiscSuccess=function(e){return n("success","misc.ts",e)},t.MiscError=function(e){return n("error","misc.ts",e)},t.PatchedInfo=function(e){return n("info","patched.ts",e)},t.PatchedSuccess=function(e){return n("success","patched.ts",e)},t.PatchedError=function(e){return n("error","patched.ts",e)},t.PetsInfo=function(e){return n("info","pets.ts",e)},t.PetsSuccess=function(e){return n("success","pets.ts",e)},t.PetsError=function(e){return n("error","pets.ts",e)},t.PlayerInfo=function(e){return n("info","player.ts",e)},t.PlayerSuccess=function(e){return n("success","player.ts",e)},t.PlayerError=function(e){return n("error","player.ts",e)},t.UtilityInfo=function(e){return n("info","utility.ts",e)},t.UtilitySuccess=function(e){return n("success","utility.ts",e)},t.UtilityError=function(e){return n("error","utility.ts",e)}}.apply(t,[o,t]),void 0===n||(e.exports=n)},3131:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,l,"next",e)}function l(e){r(s,n,a,i,l,"throw",e)}i(void 0)}))}}n=[o,t,o(2852)],a=function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PopupInterval=void 0;var n=!1;t.PopupInterval=function(e){n=e},s((function*(){setInterval(s((function*(){n&&o._.instance.prodigy.open.menuCloseAll()})),200)}))()}.apply(t,n),void 0===a||(e.exports=a)},3526:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}n=[o,t,o(4759)],a=function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.statusMessage=void 0,t.statusMessage=function(){fetch("https://raw.githubusercontent.com/ProdigyPNP/ProdigyMathGameHacking/master/cheatGUI/statusmessage.json?updated=".concat(Date.now())).then((e=>e.json())).then(function(){var e,t=(e=function*(e){if(!1===e.enabled.value)return console.log("Status message is disabled.");yield o.Swal.fire({title:e.get("title"),html:e.get("html"),icon:e.get("icon")})},function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,l,"next",e)}function l(e){r(s,n,a,i,l,"throw",e)}i(void 0)}))});return function(e){return t.apply(this,arguments)}}())}}.apply(t,n),void 0===a||(e.exports=a)},4759:function(e,t,o){var n,a,r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};n=[o,t,o(6455)],a=function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NoLicense=t.License=t.Info=t.Confirm=t.Toast=t.NumberInput=t.Input=t.Swal=void 0,o=r(o),t.Swal=o.default,t.Input=t.Swal.mixin({input:"text",showCancelButton:!0,showConfirmButton:!0,toast:!1}),t.NumberInput=t.Input.mixin({toast:!1,input:"number"}),t.Toast=t.Swal.mixin({toast:!0,position:"bottom"}),t.Confirm=t.Swal.mixin({icon:"warning",showCancelButton:!0,toast:!1,confirmButtonText:"Confirm",cancelButtonText:"Cancel"}),t.Info=t.Swal.mixin({icon:"info",showCancelButton:!1,toast:!1}),t.License=t.Swal.mixin({icon:"info",showCancelButton:!0,toast:!1,confirmButtonText:"Agree",cancelButtonText:"Disagree"}),t.NoLicense=t.Swal.mixin({icon:"error",showCancelButton:!0,toast:!1,confirmButtonText:"Reload",cancelButtonText:"Play without hacks"})}.apply(t,n),void 0===a||(e.exports=a)},2852:(e,t,o)=>{var n;n=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.current=t.player=t._=void 0,t._=window._,t.player=t._.player,t.current=window.Boot.prototype.game._state._current;var o=t._.instance;t.game=o.game,t.prodigy=o.prodigy,t.gameData=t._.instance.game.state.states.get("Boot").gameData,t.getItem=(e,o)=>{var n;return null!==(n=t._.gameData[e].find((e=>e.ID===o)))&&void 0!==n?n: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,[o,t]),void 0===n||(e.exports=n)},450:(e,t,o)=>{"use strict";o.d(t,{Z:()=>i});var n=o(8081),a=o.n(n),r=o(3645),s=o.n(r)()(a());s.push([e.id,"@import url(https://fonts.googleapis.com/css?family=Arvo:400,700|Sen:400,700,800&display=swap&subset=latin-ext);"]),s.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;font-size:23px;height:26px;width:50px;border:1px solid rgba(0,0,0,.1)}#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 #fps-counter{z-index:2;position:absolute;border-radius:3px;background-color:rgba(255,255,255,.7333333333);transition:background-color .15s;width:130px;height:26px;font-size:23px;border:1px solid rgba(0,0,0,.1);margin-left:83%}#game-wrapper #fps-counter:hover{background-color:rgba(221,221,221,.7333333333)}#game-wrapper #fps-counter: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:rgba(0,0,0,.55);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;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 i=s},3645:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var o="",n=void 0!==t[5];return t[4]&&(o+="@supports (".concat(t[4],") {")),t[2]&&(o+="@media ".concat(t[2]," {")),n&&(o+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),o+=e(t),n&&(o+="}"),t[2]&&(o+="}"),t[4]&&(o+="}"),o})).join("")},t.i=function(e,o,n,a,r){"string"==typeof e&&(e=[[null,e,void 0]]);var s={};if(n)for(var i=0;i0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=r),o&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=o):u[2]=o),a&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=a):u[4]="".concat(a)),t.push(u))}},t}},8081:e=>{"use strict";e.exports=function(e){return e[1]}},1227:(e,t,o)=>{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 o="color: "+this.color;t.splice(1,0,o,"color: inherit");let n=0,a=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(n++,"%c"===e&&(a=n))})),t.splice(a,0,o)},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=o(2447)(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},2447:(e,t,o)=>{e.exports=function(e){function t(e){let o,a,r,s=null;function i(...e){if(!i.enabled)return;const n=i,a=Number(new Date),r=a-(o||a);n.diff=r,n.prev=o,n.curr=a,o=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,((o,a)=>{if("%%"===o)return"%";s++;const r=t.formatters[a];if("function"==typeof r){const t=e[s];o=r.call(n,t),e.splice(s,1),s--}return o})),t.formatArgs.call(n,e),(n.log||t.log).apply(n,e)}return i.namespace=e,i.useColors=t.useColors(),i.color=t.selectColor(e),i.extend=n,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 n(e,o){const n=t(this.namespace+(void 0===o?":":o)+e);return n.log=this.log,n}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 o;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const n=("string"==typeof e?e:"").split(/[\s,]+/),a=n.length;for(o=0;o{t[o]=e[o]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let o=0;for(let t=0;t{var n=o(6391),a=o(8377);function r(e){this._init(e)}r.prototype={_init:function(e){e=e||{},this._data=null,this._table=null,this._result=null,this._onDataCallback=e.onData,this._onEndCallback=e.onEnd},_createTable:function(){for(var e=a.createBuffer(8,n.TABLE_LENGTH),t=0;ta)return!1;var r,s,i,l,c,u=o-n.WINDOW_BUFFER_MAX,d=t.substring(u,o+a),p=o+e-3-u;do{if(2===e){if(s=t.charAt(o)+t.charAt(o+1),!~(i=d.indexOf(s))||i>p)break}else 3===e?s+=t.charAt(o+2):s=t.substr(o,e);if(!~(l=n.STRING_LASTINDEXOF_BUG?t.substring(u,o+e-1).lastIndexOf(s):d.lastIndexOf(s,p)))break;c=l,r=u+l;do{if(t.charCodeAt(o+e)!==t.charCodeAt(r+e))break}while(++e=n.COMPRESS_CHUNK_MAX&&(this._onData(s,i),i=0);return i>0&&this._onData(s,i),this._onEnd(),t=this._result,this._result=null,null===t?"":t}},e.exports=r},6391:(e,t)=>{var o=t.HAS_TYPED="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array,n=!1,a=!1;try{"a"===String.fromCharCode.apply(null,[97])&&(n=!0)}catch(e){}if(o)try{"a"===String.fromCharCode.apply(null,new Uint8Array([97]))&&(a=!0)}catch(e){}t.CAN_CHARCODE_APPLY=n,t.CAN_CHARCODE_APPLY_TYPED=a;var r=t.APPLY_BUFFER_SIZE=65533;t.APPLY_BUFFER_SIZE_OK=null;var s=!1;-1!=="abcほげ".lastIndexOf("ほげ",1)&&(s=!0),t.STRING_LASTINDEXOF_BUG=s;var i=t.BASE62TABLE="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",l=t.TABLE_LENGTH=i.length,c=Math.max(l,62)-Math.min(l,62);t.BUFFER_MAX=l-1;var u=t.WINDOW_MAX=1024;t.WINDOW_BUFFER_MAX=304;var d=t.COMPRESS_CHUNK_SIZE=r;t.COMPRESS_CHUNK_MAX=d-l;var p=t.DECOMPRESS_CHUNK_SIZE=r;t.DECOMPRESS_CHUNK_MAX=p+2*u,t.LATIN_BUFFER_MAX=132;var h=t.UNICODE_CHAR_MAX=40;t.UNICODE_BUFFER_MAX=h*(h+1),t.LATIN_INDEX=l+1,t.LATIN_INDEX_START=c+20,t.UNICODE_INDEX=l+5,t.DECODE_MAX=l-c-19;var m=t.LATIN_DECODE_MAX=h+7,f=t.CHAR_START=m+1,g=t.COMPRESS_START=f+1,y=t.COMPRESS_FIXED_START=g+5;t.COMPRESS_INDEX=y+5},9797:(e,t,o)=>{var n=o(6391),a=o(8377);function r(e){this._init(e)}r.prototype={_init:function(e){e=e||{},this._result=null,this._onDataCallback=e.onData,this._onEndCallback=e.onEnd},_createTable:function(){for(var e={},t=0;t0&&this._onDataCallback(a.bufferToString_fast(t))}},_onEnd:function(){this._onEndCallback&&this._onEndCallback()},decompress:function(e){if(null==e||0===e.length)return"";this._result=a.stringToArray(a.createWindow());for(var t,o,r,s,i,l,c,u,d,p,h=this._createTable(),m=!1,f=null,g=e.length,y=0;yc&&(u.length=c),d=u.length,u.length>0)for(p=0;p=c));o++);f=null}this._result.length>=n.DECOMPRESS_CHUNK_MAX&&this._onData()}return this._result=this._result.slice(n.WINDOW_MAX),this._onData(!0),this._onEnd(),t=a.bufferToString_fast(this._result),this._result=null,t}},e.exports=r},3135:(e,t,o)=>{var n=o(946),a=o(9797);t.version=o(1014).version,t.compress=function(e,t){return new n(t).compress(e)},t.decompress=function(e,t){return new a(t).decompress(e)}},8377:(e,t,o)=>{var n=o(6391),a=String.fromCharCode;t.createBuffer=function(e,t){if(!n.HAS_TYPED)return new Array(t);switch(e){case 8:return new Uint8Array(t);case 16:return new Uint16Array(t)}};var r=t.truncateBuffer=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};t.bufferToString_fast=function(e,t){if(null==t?t=e.length:e=r(e,t),n.CAN_CHARCODE_APPLY&&n.CAN_CHARCODE_APPLY_TYPED){var o=e.length;if(on.APPLY_BUFFER_SIZE&&(n.APPLY_BUFFER_SIZE_OK=!0),i}catch(e){n.APPLY_BUFFER_SIZE_OK=!1}}return s(e)};var s=t.bufferToString_chunked=function(e){for(var t,o="",r=e.length,s=0;sn.APPLY_BUFFER_SIZE&&(n.APPLY_BUFFER_SIZE_OK=!0);continue}catch(e){n.APPLY_BUFFER_SIZE_OK=!1}return i(e)}o+=a.apply(null,t)}return o},i=t.bufferToString_slow=function(e){for(var t="",o=e.length,n=0;n>7,t=" ";!(e&n.WINDOW_MAX);)t+=t,e<<=1;return t}},7824:e=>{var t=1e3,o=60*t,n=60*o,a=24*n;function r(e,t,o,n){var a=t>=1.5*o;return Math.round(e/o)+" "+n+(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*n;case"minutes":case"minute":case"mins":case"min":case"m":return s*o;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>=n?r(i,l,n,"hour"):l>=o?r(i,l,o,"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>=n?Math.round(e/n)+"h":r>=o?Math.round(e/o)+"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,o)=>{"use strict";o.r(t),o.d(t,{default:()=>y});var n=o(3379),a=o.n(n),r=o(7795),s=o.n(r),i=o(569),l=o.n(i),c=o(3565),u=o.n(c),d=o(9216),p=o.n(d),h=o(4589),m=o.n(h),f=o(450),g={};g.styleTagTransform=m(),g.setAttributes=u(),g.insert=l().bind(null,"head"),g.domAPI=s(),g.insertStyleElement=p(),a()(f.Z,g);const y=f.Z&&f.Z.locals?f.Z.locals:void 0},3379:e=>{"use strict";var t=[];function o(e){for(var o=-1,n=0;n{"use strict";var t={};e.exports=function(e,o){var n=function(e){if(void 0===t[e]){var o=document.querySelector(e);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(e){o=null}t[e]=o}return t[e]}(e);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(o)}},9216:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},3565:(e,t,o)=>{"use strict";e.exports=function(e){var t=o.nc;t&&e.setAttribute("nonce",t)}},7795:e=>{"use strict";e.exports=function(e){var t=e.insertStyleElement(e);return{update:function(o){!function(e,t,o){var n="";o.supports&&(n+="@supports (".concat(o.supports,") {")),o.media&&(n+="@media ".concat(o.media," {"));var a=void 0!==o.layer;a&&(n+="@layer".concat(o.layer.length>0?" ".concat(o.layer):""," {")),n+=o.css,a&&(n+="}"),o.media&&(n+="}"),o.supports&&(n+="}");var r=o.sourceMap;r&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(r))))," */")),t.styleTagTransform(n,e,t.options)}(t,e,o)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},4589:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},6455:function(e){e.exports=function(){"use strict";const e="SweetAlert2:",t=e=>e.charAt(0).toUpperCase()+e.slice(1),o=t=>{console.warn("".concat(e," ").concat("object"==typeof t?t.join(" "):t))},n=t=>{console.error("".concat(e," ").concat(t))},a=[],r=(e,t)=>{var n;n='"'.concat(e,'" is deprecated and will be removed in the next major release. Please use "').concat(t,'" instead.'),a.includes(n)||(a.push(n),o(n))},s=e=>"function"==typeof e?e():e,i=e=>e&&"function"==typeof e.toPromise,l=e=>i(e)?e.toPromise():Promise.resolve(e),c=e=>e&&Promise.resolve(e)===e,u={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,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",color:void 0,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,willOpen:void 0,didOpen:void 0,didRender:void 0,willClose:void 0,didClose:void 0,didDestroy:void 0,scrollbarPadding:!0},d=["allowEscapeKey","allowOutsideClick","background","buttonsStyling","cancelButtonAriaLabel","cancelButtonColor","cancelButtonText","closeButtonAriaLabel","closeButtonHtml","color","confirmButtonAriaLabel","confirmButtonColor","confirmButtonText","currentProgressStep","customClass","denyButtonAriaLabel","denyButtonColor","denyButtonText","didClose","didDestroy","footer","hideClass","html","icon","iconColor","iconHtml","imageAlt","imageHeight","imageUrl","imageWidth","preConfirm","preDeny","progressSteps","returnFocus","reverseButtons","showCancelButton","showCloseButton","showConfirmButton","showDenyButton","text","title","titleText","willClose"],p={},h=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],m=e=>Object.prototype.hasOwnProperty.call(u,e),f=e=>-1!==d.indexOf(e),g=e=>p[e],y=e=>{m(e)||o('Unknown parameter "'.concat(e,'"'))},w=e=>{h.includes(e)&&o('The parameter "'.concat(e,'" is incompatible with toasts'))},b=e=>{g(e)&&r(e,g(e))},_=e=>{const t={};for(const o in e)t[e[o]]="swal2-"+e[o];return t},v=_(["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","show","hide","close","title","html-container","actions","confirm","deny","cancel","default-outline","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","input-label","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loader","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error","no-war"]),k=_(["success","warning","info","question","error"]),C=()=>document.body.querySelector(".".concat(v.container)),E=e=>{const t=C();return t?t.querySelector(e):null},x=e=>E(".".concat(e)),S=()=>x(v.popup),A=()=>x(v.icon),T=()=>x(v.title),P=()=>x(v["html-container"]),I=()=>x(v.image),D=()=>x(v["progress-steps"]),B=()=>x(v["validation-message"]),O=()=>E(".".concat(v.actions," .").concat(v.confirm)),R=()=>E(".".concat(v.actions," .").concat(v.deny)),M=()=>E(".".concat(v.loader)),N=()=>E(".".concat(v.actions," .").concat(v.cancel)),L=()=>x(v.actions),F=()=>x(v.footer),j=()=>x(v["timer-progress-bar"]),H=()=>x(v.close),U=()=>{const e=Array.from(S().querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])')).sort(((e,t)=>{const o=parseInt(e.getAttribute("tabindex")),n=parseInt(t.getAttribute("tabindex"));return o>n?1:o"-1"!==e.getAttribute("tabindex")));return(e=>{const t=[];for(let o=0;ore(e)))},q=()=>G(document.body,v.shown)&&!G(document.body,v["toast-shown"])&&!G(document.body,v["no-backdrop"]),Y=()=>S()&&G(S(),v.toast),W={previousBodyPadding:null},z=(e,t)=>{if(e.textContent="",t){const o=(new DOMParser).parseFromString(t,"text/html");Array.from(o.querySelector("head").childNodes).forEach((t=>{e.appendChild(t)})),Array.from(o.querySelector("body").childNodes).forEach((t=>{e.appendChild(t)}))}},G=(e,t)=>{if(!t)return!1;const o=t.split(/\s+/);for(let t=0;t{if(((e,t)=>{Array.from(e.classList).forEach((o=>{Object.values(v).includes(o)||Object.values(k).includes(o)||Object.values(t.showClass).includes(o)||e.classList.remove(o)}))})(e,t),t.customClass&&t.customClass[n]){if("string"!=typeof t.customClass[n]&&!t.customClass[n].forEach)return o("Invalid type of customClass.".concat(n,'! Expected string or iterable object, got "').concat(typeof t.customClass[n],'"'));$(e,t.customClass[n])}},K=(e,t)=>{if(!t)return null;switch(t){case"select":case"textarea":case"file":return e.querySelector(".".concat(v.popup," > .").concat(v[t]));case"checkbox":return e.querySelector(".".concat(v.popup," > .").concat(v.checkbox," input"));case"radio":return e.querySelector(".".concat(v.popup," > .").concat(v.radio," input:checked"))||e.querySelector(".".concat(v.popup," > .").concat(v.radio," input:first-child"));case"range":return e.querySelector(".".concat(v.popup," > .").concat(v.range," input"));default:return e.querySelector(".".concat(v.popup," > .").concat(v.input))}},X=e=>{if(e.focus(),"file"!==e.type){const t=e.value;e.value="",e.value=t}},Z=(e,t,o)=>{e&&t&&("string"==typeof t&&(t=t.split(/\s+/).filter(Boolean)),t.forEach((t=>{Array.isArray(e)?e.forEach((e=>{o?e.classList.add(t):e.classList.remove(t)})):o?e.classList.add(t):e.classList.remove(t)})))},$=(e,t)=>{Z(e,t,!0)},J=(e,t)=>{Z(e,t,!1)},Q=(e,t)=>{const o=Array.from(e.children);for(let e=0;e{o==="".concat(parseInt(o))&&(o=parseInt(o)),o||0===parseInt(o)?e.style[t]="number"==typeof o?"".concat(o,"px"):o:e.style.removeProperty(t)},te=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"flex";e.style.display=t},oe=e=>{e.style.display="none"},ne=(e,t,o,n)=>{const a=e.querySelector(t);a&&(a.style[o]=n)},ae=function(e,t){t?te(e,arguments.length>2&&void 0!==arguments[2]?arguments[2]:"flex"):oe(e)},re=e=>!(!e||!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)),se=e=>!!(e.scrollHeight>e.clientHeight),ie=e=>{const t=window.getComputedStyle(e),o=parseFloat(t.getPropertyValue("animation-duration")||"0"),n=parseFloat(t.getPropertyValue("transition-duration")||"0");return o>0||n>0},le=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const o=j();re(o)&&(t&&(o.style.transition="none",o.style.width="100%"),setTimeout((()=>{o.style.transition="width ".concat(e/1e3,"s linear"),o.style.width="0%"}),10))},ce=()=>"undefined"==typeof window||"undefined"==typeof document,ue={},de=e=>new Promise((t=>{if(!e)return t();const o=window.scrollX,n=window.scrollY;ue.restoreFocusTimeout=setTimeout((()=>{ue.previousActiveElement instanceof HTMLElement?(ue.previousActiveElement.focus(),ue.previousActiveElement=null):document.body&&document.body.focus(),t()}),100),window.scrollTo(o,n)})),pe='\n
                        \n \n
                          \n
                          \n \n

                          \n
                          \n \n \n
                          \n \n \n
                          \n \n
                          \n \n \n
                          \n
                          \n
                          \n \n \n \n
                          \n
                          \n
                          \n
                          \n
                          \n
                          \n').replace(/(^|\n)\s*/g,""),he=()=>{ue.currentInstance.resetValidationMessage()},me=e=>{const t=(()=>{const e=C();return!!e&&(e.remove(),J([document.documentElement,document.body],[v["no-backdrop"],v["toast-shown"],v["has-column"]]),!0)})();if(ce())return void n("SweetAlert2 requires document to initialize");const o=document.createElement("div");o.className=v.container,t&&$(o,v["no-transition"]),z(o,pe);const a="string"==typeof(r=e.target)?document.querySelector(r):r;var r;a.appendChild(o),(e=>{const t=S();t.setAttribute("role",e.toast?"alert":"dialog"),t.setAttribute("aria-live",e.toast?"polite":"assertive"),e.toast||t.setAttribute("aria-modal","true")})(e),(e=>{"rtl"===window.getComputedStyle(e).direction&&$(C(),v.rtl)})(a),(()=>{const e=S(),t=Q(e,v.input),o=Q(e,v.file),n=e.querySelector(".".concat(v.range," input")),a=e.querySelector(".".concat(v.range," output")),r=Q(e,v.select),s=e.querySelector(".".concat(v.checkbox," input")),i=Q(e,v.textarea);t.oninput=he,o.onchange=he,r.onchange=he,s.onchange=he,i.oninput=he,n.oninput=()=>{he(),a.value=n.value},n.onchange=()=>{he(),a.value=n.value}})()},fe=(e,t)=>{e instanceof HTMLElement?t.appendChild(e):"object"==typeof e?ge(e,t):e&&z(t,e)},ge=(e,t)=>{e.jquery?ye(t,e):z(t,e.toString())},ye=(e,t)=>{if(e.textContent="",0 in t)for(let o=0;o in t;o++)e.appendChild(t[o].cloneNode(!0));else e.appendChild(t.cloneNode(!0))},we=(()=>{if(ce())return!1;const e=document.createElement("div"),t={WebkitAnimation:"webkitAnimationEnd",animation:"animationend"};for(const o in t)if(Object.prototype.hasOwnProperty.call(t,o)&&void 0!==e.style[o])return t[o];return!1})(),be=(e,t)=>{const o=L(),n=M();t.showConfirmButton||t.showDenyButton||t.showCancelButton?te(o):oe(o),V(o,t,"actions"),function(e,t,o){const n=O(),a=R(),r=N();_e(n,"confirm",o),_e(a,"deny",o),_e(r,"cancel",o),function(e,t,o,n){if(!n.buttonsStyling)return J([e,t,o],v.styled);$([e,t,o],v.styled),n.confirmButtonColor&&(e.style.backgroundColor=n.confirmButtonColor,$(e,v["default-outline"])),n.denyButtonColor&&(t.style.backgroundColor=n.denyButtonColor,$(t,v["default-outline"])),n.cancelButtonColor&&(o.style.backgroundColor=n.cancelButtonColor,$(o,v["default-outline"]))}(n,a,r,o),o.reverseButtons&&(o.toast?(e.insertBefore(r,n),e.insertBefore(a,n)):(e.insertBefore(r,t),e.insertBefore(a,t),e.insertBefore(n,t)))}(o,n,t),z(n,t.loaderHtml),V(n,t,"loader")};function _e(e,o,n){ae(e,n["show".concat(t(o),"Button")],"inline-block"),z(e,n["".concat(o,"ButtonText")]),e.setAttribute("aria-label",n["".concat(o,"ButtonAriaLabel")]),e.className=v[o],V(e,n,"".concat(o,"Button")),$(e,n["".concat(o,"ButtonClass")])}const ve=(e,t)=>{const n=C();n&&(function(e,t){"string"==typeof t?e.style.background=t:t||$([document.documentElement,document.body],v["no-backdrop"])}(n,t.backdrop),function(e,t){t in v?$(e,v[t]):(o('The "position" parameter is not valid, defaulting to "center"'),$(e,v.center))}(n,t.position),function(e,t){if(t&&"string"==typeof t){const o="grow-".concat(t);o in v&&$(e,v[o])}}(n,t.grow),V(n,t,"container"))};var ke={awaitingPromise:new WeakMap,promise:new WeakMap,innerParams:new WeakMap,domCache:new WeakMap};const Ce=["input","file","range","select","radio","checkbox","textarea"],Ee=e=>{if(!De[e.input])return n('Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "'.concat(e.input,'"'));const t=Pe(e.input),o=De[e.input](t,e);te(t),setTimeout((()=>{X(o)}))},xe=(e,t)=>{const o=K(S(),e);if(o){(e=>{for(let t=0;t{const t=Pe(e.input);"object"==typeof e.customClass&&$(t,e.customClass.input)},Ae=(e,t)=>{e.placeholder&&!t.inputPlaceholder||(e.placeholder=t.inputPlaceholder)},Te=(e,t,o)=>{if(o.inputLabel){e.id=v.input;const n=document.createElement("label"),a=v["input-label"];n.setAttribute("for",e.id),n.className=a,"object"==typeof o.customClass&&$(n,o.customClass.inputLabel),n.innerText=o.inputLabel,t.insertAdjacentElement("beforebegin",n)}},Pe=e=>Q(S(),v[e]||v.input),Ie=(e,t)=>{["string","number"].includes(typeof t)?e.value="".concat(t):c(t)||o('Unexpected type of inputValue! Expected "string", "number" or "Promise", got "'.concat(typeof t,'"'))},De={};De.text=De.email=De.password=De.number=De.tel=De.url=(e,t)=>(Ie(e,t.inputValue),Te(e,e,t),Ae(e,t),e.type=t.input,e),De.file=(e,t)=>(Te(e,e,t),Ae(e,t),e),De.range=(e,t)=>{const o=e.querySelector("input"),n=e.querySelector("output");return Ie(o,t.inputValue),o.type=t.input,Ie(n,t.inputValue),Te(o,e,t),e},De.select=(e,t)=>{if(e.textContent="",t.inputPlaceholder){const o=document.createElement("option");z(o,t.inputPlaceholder),o.value="",o.disabled=!0,o.selected=!0,e.appendChild(o)}return Te(e,e,t),e},De.radio=e=>(e.textContent="",e),De.checkbox=(e,t)=>{const o=K(S(),"checkbox");o.value="1",o.id=v.checkbox,o.checked=Boolean(t.inputValue);const n=e.querySelector("span");return z(n,t.inputPlaceholder),o},De.textarea=(e,t)=>{Ie(e,t.inputValue),Ae(e,t),Te(e,e,t);return setTimeout((()=>{if("MutationObserver"in window){const t=parseInt(window.getComputedStyle(S()).width);new MutationObserver((()=>{const o=e.offsetWidth+(n=e,parseInt(window.getComputedStyle(n).marginLeft)+parseInt(window.getComputedStyle(n).marginRight));var n;S().style.width=o>t?"".concat(o,"px"):null})).observe(e,{attributes:!0,attributeFilter:["style"]})}})),e};const Be=(e,t)=>{const o=P();V(o,t,"htmlContainer"),t.html?(fe(t.html,o),te(o,"block")):t.text?(o.textContent=t.text,te(o,"block")):oe(o),((e,t)=>{const o=S(),n=ke.innerParams.get(e),a=!n||t.input!==n.input;Ce.forEach((e=>{const n=Q(o,v[e]);xe(e,t.inputAttributes),n.className=v[e],a&&oe(n)})),t.input&&(a&&Ee(t),Se(t))})(e,t)},Oe=(e,t)=>{for(const o in k)t.icon!==o&&J(e,k[o]);$(e,k[t.icon]),Ne(e,t),Re(),V(e,t,"icon")},Re=()=>{const e=S(),t=window.getComputedStyle(e).getPropertyValue("background-color"),o=e.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");for(let e=0;e{let o,n=e.innerHTML;t.iconHtml?o=Le(t.iconHtml):"success"===t.icon?(o='\n
                          \n \n
                          \n
                          \n',n=n.replace(/ style=".*?"/g,"")):o="error"===t.icon?'\n \n \n \n \n':Le({question:"?",warning:"!",info:"i"}[t.icon]),n.trim()!==o.trim()&&z(e,o)},Ne=(e,t)=>{if(t.iconColor){e.style.color=t.iconColor,e.style.borderColor=t.iconColor;for(const o of[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"])ne(e,o,"backgroundColor",t.iconColor);ne(e,".swal2-success-ring","borderColor",t.iconColor)}},Le=e=>'
                          ').concat(e,"
                          "),Fe=e=>{const t=document.createElement("li");return $(t,v["progress-step"]),z(t,e),t},je=e=>{const t=document.createElement("li");return $(t,v["progress-step-line"]),e.progressStepsDistance&&ee(t,"width",e.progressStepsDistance),t},He=(e,t)=>{e.className="".concat(v.popup," ").concat(re(e)?t.showClass.popup:""),t.toast?($([document.documentElement,document.body],v["toast-shown"]),$(e,v.toast)):$(e,v.modal),V(e,t,"popup"),"string"==typeof t.customClass&&$(e,t.customClass),t.icon&&$(e,v["icon-".concat(t.icon)])},Ue=(e,t)=>{((e,t)=>{const o=C(),n=S();t.toast?(ee(o,"width",t.width),n.style.width="100%",n.insertBefore(M(),A())):ee(n,"width",t.width),ee(n,"padding",t.padding),t.color&&(n.style.color=t.color),t.background&&(n.style.background=t.background),oe(B()),He(n,t)})(0,t),ve(0,t),((e,t)=>{const n=D();if(!t.progressSteps||0===t.progressSteps.length)return oe(n);te(n),n.textContent="",t.currentProgressStep>=t.progressSteps.length&&o("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),t.progressSteps.forEach(((e,o)=>{const a=Fe(e);if(n.appendChild(a),o===t.currentProgressStep&&$(a,v["active-progress-step"]),o!==t.progressSteps.length-1){const e=je(t);n.appendChild(e)}}))})(0,t),((e,t)=>{const o=ke.innerParams.get(e),a=A();if(o&&t.icon===o.icon)return Me(a,t),void Oe(a,t);if(t.icon||t.iconHtml){if(t.icon&&-1===Object.keys(k).indexOf(t.icon))return n('Unknown icon! Expected "success", "error", "warning", "info" or "question", got "'.concat(t.icon,'"')),void oe(a);te(a),Me(a,t),Oe(a,t),$(a,t.showClass.icon)}else oe(a)})(e,t),((e,t)=>{const o=I();if(!t.imageUrl)return oe(o);te(o,""),o.setAttribute("src",t.imageUrl),o.setAttribute("alt",t.imageAlt),ee(o,"width",t.imageWidth),ee(o,"height",t.imageHeight),o.className=v.image,V(o,t,"image")})(0,t),((e,t)=>{const o=T();ae(o,t.title||t.titleText,"block"),t.title&&fe(t.title,o),t.titleText&&(o.innerText=t.titleText),V(o,t,"title")})(0,t),((e,t)=>{const o=H();z(o,t.closeButtonHtml),V(o,t,"closeButton"),ae(o,t.showCloseButton),o.setAttribute("aria-label",t.closeButtonAriaLabel)})(0,t),Be(e,t),be(0,t),((e,t)=>{const o=F();ae(o,t.footer),t.footer&&fe(t.footer,o),V(o,t,"footer")})(0,t),"function"==typeof t.didRender&&t.didRender(S())},qe=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),Ye=()=>{Array.from(document.body.children).forEach((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")}))},We=["swal-title","swal-html","swal-footer"],ze=e=>{const t={};return Array.from(e.querySelectorAll("swal-param")).forEach((e=>{Je(e,["name","value"]);const o=e.getAttribute("name"),n=e.getAttribute("value");"boolean"==typeof u[o]&&"false"===n&&(t[o]=!1),"object"==typeof u[o]&&(t[o]=JSON.parse(n))})),t},Ge=e=>{const o={};return Array.from(e.querySelectorAll("swal-button")).forEach((e=>{Je(e,["type","color","aria-label"]);const n=e.getAttribute("type");o["".concat(n,"ButtonText")]=e.innerHTML,o["show".concat(t(n),"Button")]=!0,e.hasAttribute("color")&&(o["".concat(n,"ButtonColor")]=e.getAttribute("color")),e.hasAttribute("aria-label")&&(o["".concat(n,"ButtonAriaLabel")]=e.getAttribute("aria-label"))})),o},Ve=e=>{const t={},o=e.querySelector("swal-image");return o&&(Je(o,["src","width","height","alt"]),o.hasAttribute("src")&&(t.imageUrl=o.getAttribute("src")),o.hasAttribute("width")&&(t.imageWidth=o.getAttribute("width")),o.hasAttribute("height")&&(t.imageHeight=o.getAttribute("height")),o.hasAttribute("alt")&&(t.imageAlt=o.getAttribute("alt"))),t},Ke=e=>{const t={},o=e.querySelector("swal-icon");return o&&(Je(o,["type","color"]),o.hasAttribute("type")&&(t.icon=o.getAttribute("type")),o.hasAttribute("color")&&(t.iconColor=o.getAttribute("color")),t.iconHtml=o.innerHTML),t},Xe=e=>{const t={},o=e.querySelector("swal-input");o&&(Je(o,["type","label","placeholder","value"]),t.input=o.getAttribute("type")||"text",o.hasAttribute("label")&&(t.inputLabel=o.getAttribute("label")),o.hasAttribute("placeholder")&&(t.inputPlaceholder=o.getAttribute("placeholder")),o.hasAttribute("value")&&(t.inputValue=o.getAttribute("value")));const n=Array.from(e.querySelectorAll("swal-input-option"));return n.length&&(t.inputOptions={},n.forEach((e=>{Je(e,["value"]);const o=e.getAttribute("value"),n=e.innerHTML;t.inputOptions[o]=n}))),t},Ze=(e,t)=>{const o={};for(const n in t){const a=t[n],r=e.querySelector(a);r&&(Je(r,[]),o[a.replace(/^swal-/,"")]=r.innerHTML.trim())}return o},$e=e=>{const t=We.concat(["swal-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Array.from(e.children).forEach((e=>{const n=e.tagName.toLowerCase();-1===t.indexOf(n)&&o("Unrecognized element <".concat(n,">"))}))},Je=(e,t)=>{Array.from(e.attributes).forEach((n=>{-1===t.indexOf(n.name)&&o(['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.")])}))};var Qe={email:(e,t)=>/^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]{2,24}$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid email address"),url:(e,t)=>/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid URL")};function et(e){(function(e){e.inputValidator||Object.keys(Qe).forEach((t=>{e.input===t&&(e.inputValidator=Qe[t])}))})(e),e.showLoaderOnConfirm&&!e.preConfirm&&o("showLoaderOnConfirm is set to true, but preConfirm is not defined.\nshowLoaderOnConfirm should be used together with preConfirm, see usage example:\nhttps://sweetalert2.github.io/#ajax-request"),function(e){(!e.target||"string"==typeof e.target&&!document.querySelector(e.target)||"string"!=typeof e.target&&!e.target.appendChild)&&(o('Target parameter is not valid, defaulting to "body"'),e.target="body")}(e),"string"==typeof e.title&&(e.title=e.title.split("\n").join("
                          ")),me(e)}class tt{constructor(e,t){this.callback=e,this.remaining=t,this.running=!1,this.start()}start(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}stop(){return this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=(new Date).getTime()-this.started.getTime()),this.remaining}increase(e){const t=this.running;return t&&this.stop(),this.remaining+=e,t&&this.start(),this.remaining}getTimerLeft(){return this.running&&(this.stop(),this.start()),this.remaining}isRunning(){return this.running}}const ot=()=>{null===W.previousBodyPadding&&document.body.scrollHeight>window.innerHeight&&(W.previousBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight="".concat(W.previousBodyPadding+(()=>{const e=document.createElement("div");e.className=v["scrollbar-measure"],document.body.appendChild(e);const t=e.getBoundingClientRect().width-e.clientWidth;return document.body.removeChild(e),t})(),"px"))},nt=()=>{const e=navigator.userAgent,t=!!e.match(/iPad/i)||!!e.match(/iPhone/i),o=!!e.match(/WebKit/i);if(t&&o&&!e.match(/CriOS/i)){const e=44;S().scrollHeight>window.innerHeight-e&&(C().style.paddingBottom="".concat(e,"px"))}},at=()=>{const e=C();let t;e.ontouchstart=e=>{t=rt(e)},e.ontouchmove=e=>{t&&(e.preventDefault(),e.stopPropagation())}},rt=e=>{const t=e.target,o=C();return!(st(e)||it(e)||t!==o&&(se(o)||!(t instanceof HTMLElement)||"INPUT"===t.tagName||"TEXTAREA"===t.tagName||se(P())&&P().contains(t)))},st=e=>e.touches&&e.touches.length&&"stylus"===e.touches[0].touchType,it=e=>e.touches&&e.touches.length>1,lt=e=>{const t=C(),o=S();"function"==typeof e.willOpen&&e.willOpen(o);const n=window.getComputedStyle(document.body).overflowY;pt(t,o,e),setTimeout((()=>{ut(t,o)}),10),q()&&(dt(t,e.scrollbarPadding,n),Array.from(document.body.children).forEach((e=>{e===C()||e.contains(C())||(e.hasAttribute("aria-hidden")&&e.setAttribute("data-previous-aria-hidden",e.getAttribute("aria-hidden")),e.setAttribute("aria-hidden","true"))}))),Y()||ue.previousActiveElement||(ue.previousActiveElement=document.activeElement),"function"==typeof e.didOpen&&setTimeout((()=>e.didOpen(o))),J(t,v["no-transition"])},ct=e=>{const t=S();if(e.target!==t)return;const o=C();t.removeEventListener(we,ct),o.style.overflowY="auto"},ut=(e,t)=>{we&&ie(t)?(e.style.overflowY="hidden",t.addEventListener(we,ct)):e.style.overflowY="auto"},dt=(e,t,o)=>{(()=>{if((/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)&&!G(document.body,v.iosfix)){const e=document.body.scrollTop;document.body.style.top="".concat(-1*e,"px"),$(document.body,v.iosfix),at(),nt()}})(),t&&"hidden"!==o&&ot(),setTimeout((()=>{e.scrollTop=0}))},pt=(e,t,o)=>{$(e,o.showClass.backdrop),t.style.setProperty("opacity","0","important"),te(t,"grid"),setTimeout((()=>{$(t,o.showClass.popup),t.style.removeProperty("opacity")}),10),$([document.documentElement,document.body],v.shown),o.heightAuto&&o.backdrop&&!o.toast&&$([document.documentElement,document.body],v["height-auto"])},ht=e=>{let t=S();t||new Ao,t=S();const o=M();Y()?oe(A()):mt(t,e),te(o),t.setAttribute("data-loading","true"),t.setAttribute("aria-busy","true"),t.focus()},mt=(e,t)=>{const o=L(),n=M();!t&&re(O())&&(t=O()),te(o),t&&(oe(t),n.setAttribute("data-button-to-replace",t.className)),n.parentNode.insertBefore(n,t),$([e,o],v.loading)},ft=e=>e.checked?1:0,gt=e=>e.checked?e.value:null,yt=e=>e.files.length?null!==e.getAttribute("multiple")?e.files:e.files[0]:null,wt=(e,t)=>{const o=S(),a=e=>_t[t.input](o,vt(e),t);i(t.inputOptions)||c(t.inputOptions)?(ht(O()),l(t.inputOptions).then((t=>{e.hideLoading(),a(t)}))):"object"==typeof t.inputOptions?a(t.inputOptions):n("Unexpected type of inputOptions! Expected object, Map or Promise, got ".concat(typeof t.inputOptions))},bt=(e,t)=>{const o=e.getInput();oe(o),l(t.inputValue).then((n=>{o.value="number"===t.input?parseFloat(n)||0:"".concat(n),te(o),o.focus(),e.hideLoading()})).catch((t=>{n("Error in inputValue promise: ".concat(t)),o.value="",te(o),o.focus(),e.hideLoading()}))},_t={select:(e,t,o)=>{const n=Q(e,v.select),a=(e,t,n)=>{const a=document.createElement("option");a.value=n,z(a,t),a.selected=kt(n,o.inputValue),e.appendChild(a)};t.forEach((e=>{const t=e[0],o=e[1];if(Array.isArray(o)){const e=document.createElement("optgroup");e.label=t,e.disabled=!1,n.appendChild(e),o.forEach((t=>a(e,t[1],t[0])))}else a(n,o,t)})),n.focus()},radio:(e,t,o)=>{const n=Q(e,v.radio);t.forEach((e=>{const t=e[0],a=e[1],r=document.createElement("input"),s=document.createElement("label");r.type="radio",r.name=v.radio,r.value=t,kt(t,o.inputValue)&&(r.checked=!0);const i=document.createElement("span");z(i,a),i.className=v.label,s.appendChild(r),s.appendChild(i),n.appendChild(s)}));const a=n.querySelectorAll("input");a.length&&a[0].focus()}},vt=e=>{const t=[];return"undefined"!=typeof Map&&e instanceof Map?e.forEach(((e,o)=>{let n=e;"object"==typeof n&&(n=vt(n)),t.push([o,n])})):Object.keys(e).forEach((o=>{let n=e[o];"object"==typeof n&&(n=vt(n)),t.push([o,n])})),t},kt=(e,t)=>t&&t.toString()===e.toString();function Ct(){const e=ke.innerParams.get(this);if(!e)return;const t=ke.domCache.get(this);oe(t.loader),Y()?e.icon&&te(A()):Et(t),J([t.popup,t.actions],v.loading),t.popup.removeAttribute("aria-busy"),t.popup.removeAttribute("data-loading"),t.confirmButton.disabled=!1,t.denyButton.disabled=!1,t.cancelButton.disabled=!1}const Et=e=>{const t=e.popup.getElementsByClassName(e.loader.getAttribute("data-button-to-replace"));t.length?te(t[0],"inline-block"):!re(O())&&!re(R())&&!re(N())&&oe(e.actions)};var xt={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};const St=()=>O()&&O().click(),At=e=>{e.keydownTarget&&e.keydownHandlerAdded&&(e.keydownTarget.removeEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!1)},Tt=(e,t,o)=>{const n=U();if(n.length)return(t+=o)===n.length?t=0:-1===t&&(t=n.length-1),n[t].focus();S().focus()},Pt=["ArrowRight","ArrowDown"],It=["ArrowLeft","ArrowUp"],Dt=(e,t,o)=>{const n=ke.innerParams.get(e);n&&(t.isComposing||229===t.keyCode||(n.stopKeydownPropagation&&t.stopPropagation(),"Enter"===t.key?Bt(e,t,n):"Tab"===t.key?Ot(t,n):[...Pt,...It].includes(t.key)?Rt(t.key):"Escape"===t.key&&Mt(t,n,o)))},Bt=(e,t,o)=>{if(s(o.allowEnterKey)&&t.target&&e.getInput()&&t.target instanceof HTMLElement&&t.target.outerHTML===e.getInput().outerHTML){if(["textarea","file"].includes(o.input))return;St(),t.preventDefault()}},Ot=(e,t)=>{const o=e.target,n=U();let a=-1;for(let e=0;e{const t=O(),o=R(),n=N();if(document.activeElement instanceof HTMLElement&&![t,o,n].includes(document.activeElement))return;const a=Pt.includes(e)?"nextElementSibling":"previousElementSibling";let r=document.activeElement;for(let e=0;e{s(t.allowEscapeKey)&&(e.preventDefault(),o(qe.esc))};function Nt(e,t,o,n){Y()?Yt(e,n):(de(o).then((()=>Yt(e,n))),At(ue)),/^((?!chrome|android).)*safari/i.test(navigator.userAgent)?(t.setAttribute("style","display:none !important"),t.removeAttribute("class"),t.innerHTML=""):t.remove(),q()&&(null!==W.previousBodyPadding&&(document.body.style.paddingRight="".concat(W.previousBodyPadding,"px"),W.previousBodyPadding=null),(()=>{if(G(document.body,v.iosfix)){const e=parseInt(document.body.style.top,10);J(document.body,v.iosfix),document.body.style.top="",document.body.scrollTop=-1*e}})(),Ye()),J([document.documentElement,document.body],[v.shown,v["height-auto"],v["no-backdrop"],v["toast-shown"]])}function Lt(e){e=Ht(e);const t=xt.swalPromiseResolve.get(this),o=Ft(this);this.isAwaitingPromise()?e.isDismissed||(jt(this),t(e)):o&&t(e)}const Ft=e=>{const t=S();if(!t)return!1;const o=ke.innerParams.get(e);if(!o||G(t,o.hideClass.popup))return!1;J(t,o.showClass.popup),$(t,o.hideClass.popup);const n=C();return J(n,o.showClass.backdrop),$(n,o.hideClass.backdrop),Ut(e,t,o),!0};const jt=e=>{e.isAwaitingPromise()&&(ke.awaitingPromise.delete(e),ke.innerParams.get(e)||e._destroy())},Ht=e=>void 0===e?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},e),Ut=(e,t,o)=>{const n=C(),a=we&&ie(t);"function"==typeof o.willClose&&o.willClose(t),a?qt(e,t,n,o.returnFocus,o.didClose):Nt(e,n,o.returnFocus,o.didClose)},qt=(e,t,o,n,a)=>{ue.swalCloseEventFinishedCallback=Nt.bind(null,e,o,n,a),t.addEventListener(we,(function(e){e.target===t&&(ue.swalCloseEventFinishedCallback(),delete ue.swalCloseEventFinishedCallback)}))},Yt=(e,t)=>{setTimeout((()=>{"function"==typeof t&&t.bind(e.params)(),e._destroy()}))};function Wt(e,t,o){const n=ke.domCache.get(e);t.forEach((e=>{n[e].disabled=o}))}function zt(e,t){if(!e)return!1;if("radio"===e.type){const o=e.parentNode.parentNode.querySelectorAll("input");for(let e=0;e{const t={};return Object.keys(e).forEach((n=>{f(n)?t[n]=e[n]:o("Invalid parameter to update: ".concat(n))})),t};const Vt=e=>{Kt(e),delete e.params,delete ue.keydownHandler,delete ue.keydownTarget,delete ue.currentInstance},Kt=e=>{e.isAwaitingPromise()?(Xt(ke,e),ke.awaitingPromise.set(e,!0)):(Xt(xt,e),Xt(ke,e))},Xt=(e,t)=>{for(const o in e)e[o].delete(t)};var Zt=Object.freeze({hideLoading:Ct,disableLoading:Ct,getInput:function(e){const t=ke.innerParams.get(e||this),o=ke.domCache.get(e||this);return o?K(o.popup,t.input):null},close:Lt,isAwaitingPromise:function(){return!!ke.awaitingPromise.get(this)},rejectPromise:function(e){const t=xt.swalPromiseReject.get(this);jt(this),t&&t(e)},handleAwaitingPromise:jt,closePopup:Lt,closeModal:Lt,closeToast:Lt,enableButtons:function(){Wt(this,["confirmButton","denyButton","cancelButton"],!1)},disableButtons:function(){Wt(this,["confirmButton","denyButton","cancelButton"],!0)},enableInput:function(){return zt(this.getInput(),!1)},disableInput:function(){return zt(this.getInput(),!0)},showValidationMessage:function(e){const t=ke.domCache.get(this),o=ke.innerParams.get(this);z(t.validationMessage,e),t.validationMessage.className=v["validation-message"],o.customClass&&o.customClass.validationMessage&&$(t.validationMessage,o.customClass.validationMessage),te(t.validationMessage);const n=this.getInput();n&&(n.setAttribute("aria-invalid",!0),n.setAttribute("aria-describedby",v["validation-message"]),X(n),$(n,v.inputerror))},resetValidationMessage:function(){const e=ke.domCache.get(this);e.validationMessage&&oe(e.validationMessage);const t=this.getInput();t&&(t.removeAttribute("aria-invalid"),t.removeAttribute("aria-describedby"),J(t,v.inputerror))},getProgressSteps:function(){return ke.domCache.get(this).progressSteps},update:function(e){const t=S(),n=ke.innerParams.get(this);if(!t||G(t,n.hideClass.popup))return o("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.");const a=Gt(e),r=Object.assign({},n,a);Ue(this,r),ke.innerParams.set(this,r),Object.defineProperties(this,{params:{value:Object.assign({},this.params,e),writable:!1,enumerable:!0}})},_destroy:function(){const e=ke.domCache.get(this),t=ke.innerParams.get(this);t?(e.popup&&ue.swalCloseEventFinishedCallback&&(ue.swalCloseEventFinishedCallback(),delete ue.swalCloseEventFinishedCallback),"function"==typeof t.didDestroy&&t.didDestroy(),Vt(this)):Kt(this)}});const $t=(e,o)=>{const a=ke.innerParams.get(e);if(!a.input)return void n('The "input" parameter is needed to be set when using returnInputValueOn'.concat(t(o)));const r=((e,t)=>{const o=e.getInput();if(!o)return null;switch(t.input){case"checkbox":return ft(o);case"radio":return gt(o);case"file":return yt(o);default:return t.inputAutoTrim?o.value.trim():o.value}})(e,a);a.inputValidator?Jt(e,r,o):e.getInput().checkValidity()?"deny"===o?Qt(e,r):oo(e,r):(e.enableButtons(),e.showValidationMessage(a.validationMessage))},Jt=(e,t,o)=>{const n=ke.innerParams.get(e);e.disableInput(),Promise.resolve().then((()=>l(n.inputValidator(t,n.validationMessage)))).then((n=>{e.enableButtons(),e.enableInput(),n?e.showValidationMessage(n):"deny"===o?Qt(e,t):oo(e,t)}))},Qt=(e,t)=>{const o=ke.innerParams.get(e||void 0);o.showLoaderOnDeny&&ht(R()),o.preDeny?(ke.awaitingPromise.set(e||void 0,!0),Promise.resolve().then((()=>l(o.preDeny(t,o.validationMessage)))).then((o=>{!1===o?(e.hideLoading(),jt(e)):e.close({isDenied:!0,value:void 0===o?t:o})})).catch((t=>to(e||void 0,t)))):e.close({isDenied:!0,value:t})},eo=(e,t)=>{e.close({isConfirmed:!0,value:t})},to=(e,t)=>{e.rejectPromise(t)},oo=(e,t)=>{const o=ke.innerParams.get(e||void 0);o.showLoaderOnConfirm&&ht(),o.preConfirm?(e.resetValidationMessage(),ke.awaitingPromise.set(e||void 0,!0),Promise.resolve().then((()=>l(o.preConfirm(t,o.validationMessage)))).then((o=>{re(B())||!1===o?(e.hideLoading(),jt(e)):eo(e,void 0===o?t:o)})).catch((t=>to(e||void 0,t)))):eo(e,t)},no=(e,t,o)=>{t.popup.onclick=()=>{const t=ke.innerParams.get(e);t&&(ao(t)||t.timer||t.input)||o(qe.close)}},ao=e=>e.showConfirmButton||e.showDenyButton||e.showCancelButton||e.showCloseButton;let ro=!1;const so=e=>{e.popup.onmousedown=()=>{e.container.onmouseup=function(t){e.container.onmouseup=void 0,t.target===e.container&&(ro=!0)}}},io=e=>{e.container.onmousedown=()=>{e.popup.onmouseup=function(t){e.popup.onmouseup=void 0,(t.target===e.popup||e.popup.contains(t.target))&&(ro=!0)}}},lo=(e,t,o)=>{t.container.onclick=n=>{const a=ke.innerParams.get(e);ro?ro=!1:n.target===t.container&&s(a.allowOutsideClick)&&o(qe.backdrop)}},co=e=>e instanceof Element||(e=>"object"==typeof e&&e.jquery)(e);const uo=()=>{if(ue.timeout)return(()=>{const e=j(),t=parseInt(window.getComputedStyle(e).width);e.style.removeProperty("transition"),e.style.width="100%";const o=t/parseInt(window.getComputedStyle(e).width)*100;e.style.removeProperty("transition"),e.style.width="".concat(o,"%")})(),ue.timeout.stop()},po=()=>{if(ue.timeout){const e=ue.timeout.start();return le(e),e}};let ho=!1;const mo={};const fo=e=>{for(let t=e.target;t&&t!==document;t=t.parentNode)for(const e in mo){const o=t.getAttribute(e);if(o)return void mo[e].fire({template:o})}};var go=Object.freeze({isValidParameter:m,isUpdatableParameter:f,isDeprecatedParameter:g,argsToParams:e=>{const t={};return"object"!=typeof e[0]||co(e[0])?["title","html","icon"].forEach(((o,a)=>{const r=e[a];"string"==typeof r||co(r)?t[o]=r:void 0!==r&&n("Unexpected type of ".concat(o,'! Expected "string" or "Element", got ').concat(typeof r))})):Object.assign(t,e[0]),t},isVisible:()=>re(S()),clickConfirm:St,clickDeny:()=>R()&&R().click(),clickCancel:()=>N()&&N().click(),getContainer:C,getPopup:S,getTitle:T,getHtmlContainer:P,getImage:I,getIcon:A,getInputLabel:()=>x(v["input-label"]),getCloseButton:H,getActions:L,getConfirmButton:O,getDenyButton:R,getCancelButton:N,getLoader:M,getFooter:F,getTimerProgressBar:j,getFocusableElements:U,getValidationMessage:B,isLoading:()=>S().hasAttribute("data-loading"),fire:function(){const e=this;for(var t=arguments.length,o=new Array(t),n=0;nue.timeout&&ue.timeout.getTimerLeft(),stopTimer:uo,resumeTimer:po,toggleTimer:()=>{const e=ue.timeout;return e&&(e.running?uo():po())},increaseTimer:e=>{if(ue.timeout){const t=ue.timeout.increase(e);return le(t,!0),t}},isTimerRunning:()=>ue.timeout&&ue.timeout.isRunning(),bindClickHandler:function(){mo[arguments.length>0&&void 0!==arguments[0]?arguments[0]:"data-swal-template"]=this,ho||(document.body.addEventListener("click",fo),ho=!0)}});let yo;class wo{constructor(){if("undefined"==typeof window)return;yo=this;for(var e=arguments.length,t=new Array(e),o=0;o1&&void 0!==arguments[1]?arguments[1]:{};(e=>{!e.backdrop&&e.allowOutsideClick&&o('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');for(const t in e)y(t),e.toast&&w(t),b(t)})(Object.assign({},t,e)),ue.currentInstance&&(ue.currentInstance._destroy(),q()&&Ye()),ue.currentInstance=yo;const n=_o(e,t);et(n),Object.freeze(n),ue.timeout&&(ue.timeout.stop(),delete ue.timeout),clearTimeout(ue.restoreFocusTimeout);const a=vo(yo);return Ue(yo,n),ke.innerParams.set(yo,n),bo(yo,a,n)}then(e){return ke.promise.get(this).then(e)}finally(e){return ke.promise.get(this).finally(e)}}const bo=(e,t,o)=>new Promise(((n,a)=>{const r=t=>{e.closePopup({isDismissed:!0,dismiss:t})};xt.swalPromiseResolve.set(e,n),xt.swalPromiseReject.set(e,a),t.confirmButton.onclick=()=>(e=>{const t=ke.innerParams.get(e);e.disableButtons(),t.input?$t(e,"confirm"):oo(e,!0)})(e),t.denyButton.onclick=()=>(e=>{const t=ke.innerParams.get(e);e.disableButtons(),t.returnInputValueOnDeny?$t(e,"deny"):Qt(e,!1)})(e),t.cancelButton.onclick=()=>((e,t)=>{e.disableButtons(),t(qe.cancel)})(e,r),t.closeButton.onclick=()=>r(qe.close),((e,t,o)=>{ke.innerParams.get(e).toast?no(e,t,o):(so(t),io(t),lo(e,t,o))})(e,t,r),((e,t,o,n)=>{At(t),o.toast||(t.keydownHandler=t=>Dt(e,t,n),t.keydownTarget=o.keydownListenerCapture?window:S(),t.keydownListenerCapture=o.keydownListenerCapture,t.keydownTarget.addEventListener("keydown",t.keydownHandler,{capture:t.keydownListenerCapture}),t.keydownHandlerAdded=!0)})(e,ue,o,r),((e,t)=>{"select"===t.input||"radio"===t.input?wt(e,t):["text","email","number","tel","textarea"].includes(t.input)&&(i(t.inputValue)||c(t.inputValue))&&(ht(O()),bt(e,t))})(e,o),lt(o),ko(ue,o,r),Co(t,o),setTimeout((()=>{t.container.scrollTop=0}))})),_o=(e,t)=>{const o=(e=>{const t="string"==typeof e.template?document.querySelector(e.template):e.template;if(!t)return{};const o=t.content;return $e(o),Object.assign(ze(o),Ge(o),Ve(o),Ke(o),Xe(o),Ze(o,We))})(e),n=Object.assign({},u,t,o,e);return n.showClass=Object.assign({},u.showClass,n.showClass),n.hideClass=Object.assign({},u.hideClass,n.hideClass),n},vo=e=>{const t={popup:S(),container:C(),actions:L(),confirmButton:O(),denyButton:R(),cancelButton:N(),loader:M(),closeButton:H(),validationMessage:B(),progressSteps:D()};return ke.domCache.set(e,t),t},ko=(e,t,o)=>{const n=j();oe(n),t.timer&&(e.timeout=new tt((()=>{o("timer"),delete e.timeout}),t.timer),t.timerProgressBar&&(te(n),V(n,t,"timerProgressBar"),setTimeout((()=>{e.timeout&&e.timeout.running&&le(t.timer)}))))},Co=(e,t)=>{if(!t.toast)return s(t.allowEnterKey)?void(Eo(e,t)||Tt(0,-1,1)):xo()},Eo=(e,t)=>t.focusDeny&&re(e.denyButton)?(e.denyButton.focus(),!0):t.focusCancel&&re(e.cancelButton)?(e.cancelButton.focus(),!0):!(!t.focusConfirm||!re(e.confirmButton)||(e.confirmButton.focus(),0)),xo=()=>{document.activeElement instanceof HTMLElement&&"function"==typeof document.activeElement.blur&&document.activeElement.blur()};if("undefined"!=typeof window&&/^ru\b/.test(navigator.language)&&location.host.match(/\.(ru|su|xn--p1ai)$/)&&Math.random()<.1){const e=document.createElement("div");e.className="leave-russia-now-and-apply-your-skills-to-the-world";const t=(So=[{text:"В нижеприведённом видео объясняется как каждый из нас может помочь в том,\n чтобы эта бессмысленная и бесчеловечная война остановилась:",id:"4CfDhaRkw7I"},{text:"Эмпатия - главное человеческое чувство. Способность сопереживать. Способность поставить себя на место другого.",id:"s-GLAIY4DXA"}])[Math.floor(Math.random()*So.length)];z(e,"\n
                          \n Если мы не остановим войну, она придет в дом каждого из нас и её последствия будут ужасающими.\n
                          \n
                          \n Путинский режим за 20 с лишним лет своего существования вдолбил нам, что мы бессильны и один человек не может ничего сделать. Это не так!\n
                          \n
                          \n ".concat(t.text,'\n
                          \n \n
                          \n Нет войне!\n
                          \n '));const o=document.createElement("button");o.innerHTML="×",o.onclick=()=>e.remove(),e.appendChild(o),window.addEventListener("load",(()=>{setTimeout((()=>{document.body.appendChild(e)}),1e3)}))}var So;Object.assign(wo.prototype,Zt),Object.assign(wo,go),Object.keys(Zt).forEach((e=>{wo[e]=function(){if(yo)return yo[e](...arguments)}})),wo.DismissReason=qe,wo.version="11.4.29";const Ao=wo;return Ao.default=Ao,Ao}(),void 0!==this&&this.Sweetalert2&&(this.swal=this.sweetAlert=this.Swal=this.SweetAlert=this.Sweetalert2),"undefined"!=typeof document&&function(e,t){var o=e.createElement("style");if(e.getElementsByTagName("head")[0].appendChild(o),o.styleSheet)o.styleSheet.disabled||(o.styleSheet.cssText=t);else try{o.innerHTML=t}catch(e){o.innerText=t}}(document,'.swal2-popup.swal2-toast{box-sizing:border-box;grid-column:1/4!important;grid-row:1/4!important;grid-template-columns:1fr 99fr 1fr;padding:1em;overflow-y:hidden;background:#fff;box-shadow:0 0 1px hsla(0deg,0%,0%,.075),0 1px 2px hsla(0deg,0%,0%,.075),1px 2px 4px hsla(0deg,0%,0%,.075),1px 3px 8px hsla(0deg,0%,0%,.075),2px 4px 16px hsla(0deg,0%,0%,.075);pointer-events:all}.swal2-popup.swal2-toast>*{grid-column:2}.swal2-popup.swal2-toast .swal2-title{margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-loading{justify-content:center}.swal2-popup.swal2-toast .swal2-input{height:2em;margin:.5em;font-size:1em}.swal2-popup.swal2-toast .swal2-validation-message{font-size:1em}.swal2-popup.swal2-toast .swal2-footer{margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-popup.swal2-toast .swal2-close{grid-column:3/3;grid-row:1/99;align-self:center;width:.8em;height:.8em;margin:0;font-size:2em}.swal2-popup.swal2-toast .swal2-html-container{margin:.5em 1em;padding:0;overflow:initial;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-html-container:empty{padding:0}.swal2-popup.swal2-toast .swal2-loader{grid-column:1;grid-row:1/99;align-self:center;width:2em;height:2em;margin:.25em}.swal2-popup.swal2-toast .swal2-icon{grid-column:1;grid-row:1/99;align-self:center;width:2em;min-width:2em;height:2em;margin:0 .5em 0 0}.swal2-popup.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:700}.swal2-popup.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-popup.swal2-toast .swal2-actions{justify-content:flex-start;height:auto;margin:0;margin-top:.5em;padding:0 .5em}.swal2-popup.swal2-toast .swal2-styled{margin:.25em .5em;padding:.4em .6em;font-size:1em}.swal2-popup.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;transform:rotate(45deg);border-radius:50%}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-.8em;left:-.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-popup.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{-webkit-animation:swal2-toast-animate-success-line-tip .75s;animation:swal2-toast-animate-success-line-tip .75s}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{-webkit-animation:swal2-toast-animate-success-line-long .75s;animation:swal2-toast-animate-success-line-long .75s}.swal2-popup.swal2-toast.swal2-show{-webkit-animation:swal2-toast-show .5s;animation:swal2-toast-show .5s}.swal2-popup.swal2-toast.swal2-hide{-webkit-animation:swal2-toast-hide .1s forwards;animation:swal2-toast-hide .1s forwards}.swal2-container{display:grid;position:fixed;z-index:1060;top:0;right:0;bottom:0;left:0;box-sizing:border-box;grid-template-areas:"top-start top top-end" "center-start center center-end" "bottom-start bottom-center bottom-end";grid-template-rows:minmax(-webkit-min-content,auto) minmax(-webkit-min-content,auto) minmax(-webkit-min-content,auto);grid-template-rows:minmax(min-content,auto) minmax(min-content,auto) minmax(min-content,auto);height:100%;padding:.625em;overflow-x:hidden;transition:background-color .1s;-webkit-overflow-scrolling:touch}.swal2-container.swal2-backdrop-show,.swal2-container.swal2-noanimation{background:rgba(0,0,0,.4)}.swal2-container.swal2-backdrop-hide{background:0 0!important}.swal2-container.swal2-bottom-start,.swal2-container.swal2-center-start,.swal2-container.swal2-top-start{grid-template-columns:minmax(0,1fr) auto auto}.swal2-container.swal2-bottom,.swal2-container.swal2-center,.swal2-container.swal2-top{grid-template-columns:auto minmax(0,1fr) auto}.swal2-container.swal2-bottom-end,.swal2-container.swal2-center-end,.swal2-container.swal2-top-end{grid-template-columns:auto auto minmax(0,1fr)}.swal2-container.swal2-top-start>.swal2-popup{align-self:start}.swal2-container.swal2-top>.swal2-popup{grid-column:2;align-self:start;justify-self:center}.swal2-container.swal2-top-end>.swal2-popup,.swal2-container.swal2-top-right>.swal2-popup{grid-column:3;align-self:start;justify-self:end}.swal2-container.swal2-center-left>.swal2-popup,.swal2-container.swal2-center-start>.swal2-popup{grid-row:2;align-self:center}.swal2-container.swal2-center>.swal2-popup{grid-column:2;grid-row:2;align-self:center;justify-self:center}.swal2-container.swal2-center-end>.swal2-popup,.swal2-container.swal2-center-right>.swal2-popup{grid-column:3;grid-row:2;align-self:center;justify-self:end}.swal2-container.swal2-bottom-left>.swal2-popup,.swal2-container.swal2-bottom-start>.swal2-popup{grid-column:1;grid-row:3;align-self:end}.swal2-container.swal2-bottom>.swal2-popup{grid-column:2;grid-row:3;justify-self:center;align-self:end}.swal2-container.swal2-bottom-end>.swal2-popup,.swal2-container.swal2-bottom-right>.swal2-popup{grid-column:3;grid-row:3;align-self:end;justify-self:end}.swal2-container.swal2-grow-fullscreen>.swal2-popup,.swal2-container.swal2-grow-row>.swal2-popup{grid-column:1/4;width:100%}.swal2-container.swal2-grow-column>.swal2-popup,.swal2-container.swal2-grow-fullscreen>.swal2-popup{grid-row:1/4;align-self:stretch}.swal2-container.swal2-no-transition{transition:none!important}.swal2-popup{display:none;position:relative;box-sizing:border-box;grid-template-columns:minmax(0,100%);width:32em;max-width:100%;padding:0 0 1.25em;border:none;border-radius:5px;background:#fff;color:#545454;font-family:inherit;font-size:1rem}.swal2-popup:focus{outline:0}.swal2-popup.swal2-loading{overflow-y:hidden}.swal2-title{position:relative;max-width:100%;margin:0;padding:.8em 1em 0;color:inherit;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:auto;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;transition:box-shadow .1s;box-shadow:0 0 0 3px transparent;font-weight:500}.swal2-styled:not([disabled]){cursor:pointer}.swal2-styled.swal2-confirm{border:0;border-radius:.25em;background:initial;background-color:#7066e0;color:#fff;font-size:1em}.swal2-styled.swal2-confirm:focus{box-shadow:0 0 0 3px rgba(112,102,224,.5)}.swal2-styled.swal2-deny{border:0;border-radius:.25em;background:initial;background-color:#dc3741;color:#fff;font-size:1em}.swal2-styled.swal2-deny:focus{box-shadow:0 0 0 3px rgba(220,55,65,.5)}.swal2-styled.swal2-cancel{border:0;border-radius:.25em;background:initial;background-color:#6e7881;color:#fff;font-size:1em}.swal2-styled.swal2-cancel:focus{box-shadow:0 0 0 3px rgba(110,120,129,.5)}.swal2-styled.swal2-default-outline:focus{box-shadow:0 0 0 3px rgba(100,150,200,.5)}.swal2-styled:focus{outline:0}.swal2-styled::-moz-focus-inner{border:0}.swal2-footer{justify-content:center;margin:1em 0 0;padding:1em 1em 0;border-top:1px solid #eee;color:inherit;font-size:1em}.swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;grid-column:auto!important;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:2em auto 1em}.swal2-close{z-index:2;align-items:center;justify-content:center;width:1.2em;height:1.2em;margin-top:0;margin-right:0;margin-bottom:-1.2em;padding:0;overflow:hidden;transition:color .1s,box-shadow .1s;border:none;border-radius:5px;background:0 0;color:#ccc;font-family:serif;font-family:monospace;font-size:2.5em;cursor:pointer;justify-self:end}.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-html-container{z-index:1;justify-content:center;margin:1em 1.6em .3em;padding:0;overflow:auto;color:inherit;font-size:1.125em;font-weight:400;line-height:normal;text-align:center;word-wrap:break-word;word-break:break-word}.swal2-checkbox,.swal2-file,.swal2-input,.swal2-radio,.swal2-select,.swal2-textarea{margin:1em 2em 3px}.swal2-file,.swal2-input,.swal2-textarea{box-sizing:border-box;width:auto;transition:border-color .1s,box-shadow .1s;border:1px solid #d9d9d9;border-radius:.1875em;background:0 0;box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px transparent;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:inset 0 1px 1px rgba(0,0,0,.06),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::placeholder,.swal2-input::placeholder,.swal2-textarea::placeholder{color:#ccc}.swal2-range{margin:1em 2em 3px;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-file{width:75%;margin-right:auto;margin-left:auto;background:0 0;font-size:1.125em}.swal2-textarea{height:6.75em;padding:.75em}.swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:0 0;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 0}.swal2-validation-message{align-items:center;justify-content:center;margin:1em 0 0;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:2.5em auto .6em;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;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-warning.swal2-icon-show{-webkit-animation:swal2-animate-error-icon .5s;animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-warning.swal2-icon-show .swal2-icon-content{-webkit-animation:swal2-animate-i-mark .5s;animation:swal2-animate-i-mark .5s}.swal2-icon.swal2-info{border-color:#9de0f6;color:#3fc3ee}.swal2-icon.swal2-info.swal2-icon-show{-webkit-animation:swal2-animate-error-icon .5s;animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-info.swal2-icon-show .swal2-icon-content{-webkit-animation:swal2-animate-i-mark .8s;animation:swal2-animate-i-mark .8s}.swal2-icon.swal2-question{border-color:#c9dae1;color:#87adbd}.swal2-icon.swal2-question.swal2-icon-show{-webkit-animation:swal2-animate-error-icon .5s;animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-question.swal2-icon-show .swal2-icon-content{-webkit-animation:swal2-animate-question-mark .8s;animation:swal2-animate-question-mark .8s}.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:1.25em auto;padding:0;background:0 0;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{margin-right:initial;margin-left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}.leave-russia-now-and-apply-your-skills-to-the-world{display:flex;position:fixed;z-index:1939;top:0;right:0;bottom:0;left:0;flex-direction:column;align-items:center;justify-content:center;padding:25px 0 20px;background:#20232a;color:#fff;text-align:center}.leave-russia-now-and-apply-your-skills-to-the-world div{max-width:560px;margin:10px;line-height:146%}.leave-russia-now-and-apply-your-skills-to-the-world iframe{max-width:100%;max-height:55.5555555556vmin;margin:16px auto}.leave-russia-now-and-apply-your-skills-to-the-world strong{border-bottom:2px dashed #fff}.leave-russia-now-and-apply-your-skills-to-the-world button{display:flex;position:fixed;z-index:1940;top:0;right:0;align-items:center;justify-content:center;width:48px;height:48px;margin-right:10px;margin-bottom:-10px;border:none;background:0 0;color:#aaa;font-size:48px;font-weight:700;cursor:pointer}.leave-russia-now-and-apply-your-skills-to-the-world button:hover{color:#fff}@-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)}}@-webkit-keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@-webkit-keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}@keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}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{background-color:transparent!important;pointer-events:none}body.swal2-no-backdrop .swal2-container .swal2-popup{pointer-events:all}body.swal2-no-backdrop .swal2-container .swal2-modal{box-shadow:0 0 10px rgba(0,0,0,.4)}@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{box-sizing:border-box;width:360px;max-width:100%;background-color:transparent;pointer-events:none}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 o=!1;try{o="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(e){}t.hasCORS=o},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 o in e)e.hasOwnProperty(o)&&(t.length&&(t+="&"),t+=encodeURIComponent(o)+"="+encodeURIComponent(e[o]));return t},t.decode=function(e){let t={},o=e.split("&");for(let e=0,n=o.length;e{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parse=void 0;const o=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,n=["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=o.exec(e||""),i={},l=14;for(;l--;)i[n[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 o=t.replace(/\/{2,9}/g,"/").split("/");return"/"!=t.substr(0,1)&&0!==t.length||o.splice(0,1),"/"==t.substr(t.length-1,1)&&o.splice(o.length-1,1),o}(0,i.path),i.queryKey=function(e,t){const o={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,(function(e,t,n){t&&(o[t]=n)})),o}(0,i.query),i}},8726:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.yeast=t.decode=t.encode=void 0;const o="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),n={};let a,r=0,s=0;function i(e){let t="";do{t=o[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,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parse=t.installTimerFunctions=t.transports=t.Transport=t.protocol=t.Socket=void 0;const n=o(3481);Object.defineProperty(t,"Socket",{enumerable:!0,get:function(){return n.Socket}}),t.protocol=n.Socket.protocol;var a=o(9870);Object.defineProperty(t,"Transport",{enumerable:!0,get:function(){return a.Transport}});var r=o(7385);Object.defineProperty(t,"transports",{enumerable:!0,get:function(){return r.transports}});var s=o(9622);Object.defineProperty(t,"installTimerFunctions",{enumerable:!0,get:function(){return s.installTimerFunctions}});var i=o(5222);Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return i.parse}})},3481:function(e,t,o){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Socket=void 0;const a=o(7385),r=o(9622),s=o(5754),i=o(5222),l=n(o(1227)),c=o(5260),u=o(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 o=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",o),new a.transports[e](o)}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),o=!1;p.priorWebsocketSuccess=!1;const n=()=>{o||(d('probe transport "%s" opened',e),t.send([{type:"ping",data:"probe"}]),t.once("packet",(n=>{if(!o)if("pong"===n.type&&"probe"===n.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((()=>{o||"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 o=new Error("probe error");o.transport=t.name,this.emitReserved("upgradeError",o)}})))};function a(){o||(o=!0,c(),t.close(),t=null)}const r=o=>{const n=new Error("probe error: "+o);n.transport=t.name,a(),d('probe transport "%s" failed because of error: %s',e,o),this.emitReserved("upgradeError",n)};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",n),t.removeListener("error",r),t.removeListener("close",s),this.off("close",i),this.off("upgrading",l)};t.once("open",n),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,o){return this.sendPacket("message",e,t,o),this}send(e,t,o){return this.sendPacket("message",e,t,o),this}sendPacket(e,t,o,n){if("function"==typeof t&&(n=t,t=void 0),"function"==typeof o&&(n=o,o=null),"closing"===this.readyState||"closed"===this.readyState)return;(o=o||{}).compress=!1!==o.compress;const a={type:e,data:t,options:o};this.emitReserved("packetCreate",a),this.writeBuffer.push(a),n&&this.once("flush",n),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()},o=()=>{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?o():e()})):this.upgrading?o():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 o=0;const n=e.length;for(;o{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.transports=void 0;const n=o(484),a=o(1308);t.transports={websocket:a.WS,polling:n.Polling}},484:function(e,t,o){"use strict";var n=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=o(9870),r=n(o(1227)),s=o(8726),i=o(5754),l=o(1373),c=o(6666),u=o(5260),d=o(9622),p=o(6242),h=(0,r.default)("engine.io-client:polling");function m(){}const f=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 o=location.port;o||(o=t?"443":"80"),this.xd="undefined"!=typeof location&&e.hostname!==location.hostname||o!==e.port,this.xs=e.secure!==t}const t=e&&e.forceBase64;this.supportsBinary=f&&!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 o="";!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))&&(o=":"+this.opts.port);const n=(0,i.encode)(e);return t+"://"+(-1!==this.opts.hostname.indexOf(":")?"["+this.opts.hostname+"]":this.opts.hostname)+o+this.opts.path+(n.length?"?"+n:"")}request(e={}){return Object.assign(e,{xd:this.xd,xs:this.xs},this.opts),new y(this.uri(),e)}doWrite(e,t){const o=this.request({method:"POST",data:e});o.on("success",t),o.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=m,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,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultBinaryType=t.usingBrowserWebSocket=t.WebSocket=t.nextTick=void 0;const n=o(6242);t.nextTick="function"==typeof Promise&&"function"==typeof Promise.resolve?e=>Promise.resolve().then(e):(e,t)=>t(e,0),t.WebSocket=n.globalThisShim.WebSocket||n.globalThisShim.MozWebSocket,t.usingBrowserWebSocket=!0,t.defaultBinaryType="arraybuffer"},1308:function(e,t,o){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.WS=void 0;const a=o(9870),r=o(5754),s=o(8726),i=o(9622),l=o(5552),c=n(o(1227)),u=o(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,o=p?{}:(0,i.pick)(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(o.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,o)}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&&(o.options&&(t.compress=o.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 o="";this.opts.port&&("wss"===t&&443!==Number(this.opts.port)||"ws"===t&&80!==Number(this.opts.port))&&(o=":"+this.opts.port),this.opts.timestampRequests&&(e[this.opts.timestampParam]=(0,s.yeast)()),this.supportsBinary||(e.b64=1);const n=(0,r.encode)(e);return t+"://"+(-1!==this.opts.hostname.indexOf(":")?"["+this.opts.hostname+"]":this.opts.hostname)+o+this.opts.path+(n.length?"?"+n:"")}check(){return!!l.WebSocket}}t.WS=h},6666:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.XHR=void 0;const n=o(8419),a=o(6242);t.XHR=function(e){const t=e.xdomain;try{if("undefined"!=typeof XMLHttpRequest&&(!t||n.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,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.byteLength=t.installTimerFunctions=t.pick=void 0;const n=o(6242);t.pick=function(e,...t){return t.reduce(((t,o)=>(e.hasOwnProperty(o)&&(t[o]=e[o]),t)),{})};const a=setTimeout,r=clearTimeout;t.installTimerFunctions=function(e,t){t.useNativeTimers?(e.setTimeoutFn=a.bind(n.globalThisShim),e.clearTimeoutFn=r.bind(n.globalThisShim)):(e.setTimeoutFn=setTimeout.bind(n.globalThisShim),e.clearTimeoutFn=clearTimeout.bind(n.globalThisShim))},t.byteLength=function(e){return"string"==typeof e?function(e){let t=0,o=0;for(let n=0,a=e.length;n=57344?o+=3:(n++,o+=4);return o}(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 o=Object.create(null);t.PACKET_TYPES=o,o.open="0",o.close="1",o.ping="2",o.pong="3",o.message="4",o.upgrade="5",o.noop="6";const n=Object.create(null);t.PACKET_TYPES_REVERSE=n,Object.keys(o).forEach((e=>{n[o[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 o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n="undefined"==typeof Uint8Array?[]:new Uint8Array(256);for(let e=0;e{let t,n=new Uint8Array(e),a=n.length,r="";for(t=0;t>2],r+=o[(3&n[t])<<4|n[t+1]>>4],r+=o[(15&n[t+1])<<2|n[t+2]>>6],r+=o[63&n[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,o,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,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=o(3087),a=o(2469),r="function"==typeof ArrayBuffer,s=(e,t)=>{if(r){const o=(0,a.decode)(e);return i(o,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 o=e.charAt(0);return"b"===o?{type:"message",data:s(e.substring(1),t)}:n.PACKET_TYPES_REVERSE[o]?e.length>1?{type:n.PACKET_TYPES_REVERSE[o],data:e.substring(1)}:{type:n.PACKET_TYPES_REVERSE[o]}:n.ERROR_PACKET}},3908:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=o(3087),a="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),r="function"==typeof ArrayBuffer,s=(e,t)=>{const o=new FileReader;return o.onload=function(){const e=o.result.split(",")[1];t("b"+e)},o.readAsDataURL(e)};t.default=({type:e,data:t},o,i)=>{return a&&t instanceof Blob?o?i(t):s(t,i):r&&(t instanceof ArrayBuffer||(l=t,"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(l):l&&l.buffer instanceof ArrayBuffer))?o?i(t):s(new Blob([t]),i):i(n.PACKET_TYPES[e]+(t||""));var l}},1373:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodePayload=t.decodePacket=t.encodePayload=t.encodePacket=t.protocol=void 0;const n=o(3908);t.encodePacket=n.default;const a=o(7572);t.decodePacket=a.default;const r=String.fromCharCode(30);t.encodePayload=(e,t)=>{const o=e.length,a=new Array(o);let s=0;e.forEach(((e,i)=>{(0,n.default)(e,!1,(e=>{a[i]=e,++s===o&&t(a.join(r))}))}))},t.decodePayload=(e,t)=>{const o=e.split(r),n=[];for(let e=0;e{"use strict";const{parse:o,stringify:n}=JSON,{keys:a}=Object,r=String,s="string",i={},l="object",c=(e,t)=>t,u=e=>e instanceof r?r(e):e,d=(e,t)=>typeof t===s?new r(t):t,p=(e,t,o,n)=>{const s=[];for(let c=a(o),{length:u}=c,d=0;d{const n=r(t.push(o)-1);return e.set(o,n),n},m=(e,t)=>{const n=o(e,d).map(u),a=n[0],r=t||c,s=typeof a===l&&a?p(n,new Set,a,r):a;return r.call({"":s},"",s)};t.parse=m;const f=(e,t,o)=>{const a=t&&typeof t===l?(e,o)=>""===e||-1o(f(e)),t.fromJSON=e=>m(n(e))},5159:(e,t)=>{"use strict";function o(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=o,o.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),o=Math.floor(t*this.jitter*e);e=0==(1&Math.floor(10*t))?e-o:e+o}return 0|Math.min(e,this.max)},o.prototype.reset=function(){this.attempts=0},o.prototype.setMin=function(e){this.ms=e},o.prototype.setMax=function(e){this.max=e},o.prototype.setJitter=function(e){this.jitter=e}},7046:function(e,t,o){"use strict";var n=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=o(3084),r=o(4168);Object.defineProperty(t,"Manager",{enumerable:!0,get:function(){return r.Manager}});const s=o(8312);Object.defineProperty(t,"Socket",{enumerable:!0,get:function(){return s.Socket}});const i=n(o(1227)).default("socket.io-client"),l={};function c(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};const o=a.url(e,t.path||"/socket.io"),n=o.source,s=o.id,c=o.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",n),d=new r.Manager(n,t)):(l[s]||(i("new io instance for %s",n),l[s]=new r.Manager(n,t)),d=l[s]),o.query&&!t.query&&(t.query=o.queryKey),d.socket(o.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=o(7116);Object.defineProperty(t,"protocol",{enumerable:!0,get:function(){return u.protocol}}),e.exports=c},4168:function(e,t,o){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,o,n){void 0===n&&(n=o),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[o]}})}:function(e,t,o,n){void 0===n&&(n=o),e[n]=t[o]}),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 o in e)"default"!==o&&Object.prototype.hasOwnProperty.call(e,o)&&n(t,e,o);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=o(4679),l=o(8312),c=r(o(7116)),u=o(7149),d=o(5159),p=o(5260),h=s(o(1227)).default("socket.io-client:manager");class m extends p.Emitter{constructor(e,t){var o;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!==(o=t.randomizationFactor)&&void 0!==o?o:.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 n=t.parser||c;this.encoder=new n.Encoder,this.decoder=new n.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,o=this;this._readyState="opening",this.skipReconnect=!1;const n=u.on(t,"open",(function(){o.onopen(),e&&e()})),a=u.on(t,"error",(t=>{h("error"),o.cleanup(),o._readyState="closed",this.emitReserved("error",t),e?e(t):o.maybeReconnectOnOpen()}));if(!1!==this._timeout){const e=this._timeout;h("connect attempt will timeout after %d",e),0===e&&n();const o=this.setTimeoutFn((()=>{h("connect attempt timed out after %d",e),n(),t.close(),t.emit("error",new Error("timeout"))}),e);this.opts.autoUnref&&o.unref(),this.subs.push((function(){clearTimeout(o)}))}return this.subs.push(n),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 o=this.nsps[e];return o||(o=new l.Socket(this,e,t),this.nsps[e]=o),o}_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 o=0;oe())),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 o=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&&o.unref(),this.subs.push((function(){clearTimeout(o)}))}}onreconnect(){const e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}t.Manager=m},7149:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.on=void 0,t.on=function(e,t,o){return e.on(t,o),function(){e.off(t,o)}}},8312:function(e,t,o){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Socket=void 0;const a=o(7116),r=o(7149),s=o(5260),i=n(o(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,o){super(),this.connected=!1,this.receiveBuffer=[],this.sendBuffer=[],this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=t,o&&o.auth&&(this.auth=o.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 o={type:a.PacketType.EVENT,data:t,options:{}};if(o.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 n=t.pop();this._registerAckCallback(e,n),o.id=e}const n=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return!this.flags.volatile||n&&this.connected?this.connected?(this.notifyOutgoingListeners(o),this.packet(o)):this.sendBuffer.push(o):i("discard packet as the transport is not currently writable"),this.flags={},this}_registerAckCallback(e,t){const o=this.flags.timeout;if(void 0===o)return void(this.acks[e]=t);const n=this.io.setTimeoutFn((()=>{delete this.acks[e];for(let t=0;t{this.io.clearTimeoutFn(n),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 o of t)o.apply(this,e)}super.emit.apply(this,e)}ack(e){const t=this;let o=!1;return function(...n){o||(o=!0,i("sending ack %j",n),t.packet({type:a.PacketType.ACK,id:e,data:n}))}}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 o=0;o{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.reconstructPacket=t.deconstructPacket=void 0;const n=o(790);function a(e,t){if(!e)return e;if(n.isBinary(e)){const o={_placeholder:!0,num:t.length};return t.push(e),o}if(Array.isArray(e)){const o=new Array(e.length);for(let n=0;n=0&&e.num{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Decoder=t.Encoder=t.PacketType=t.protocol=void 0;const n=o(5260),a=o(3155),r=o(790),s=o(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),o=this.encodeAsString(t.packet),n=t.buffers;return n.unshift(o),n}};class l extends n.Emitter{constructor(e){super(),this.reviver=e}add(e){let t;if("string"==typeof e){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");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 o={type:Number(e.charAt(0))};if(void 0===i[o.type])throw new Error("unknown packet type "+o.type);if(o.type===i.BINARY_EVENT||o.type===i.BINARY_ACK){const n=t+1;for(;"-"!==e.charAt(++t)&&t!=e.length;);const a=e.substring(n,t);if(a!=Number(a)||"-"!==e.charAt(t))throw new Error("Illegal attachments");o.attachments=Number(a)}if("/"===e.charAt(t+1)){const n=t+1;for(;++t&&","!==e.charAt(t)&&t!==e.length;);o.nsp=e.substring(n,t)}else o.nsp="/";const n=e.charAt(t+1);if(""!==n&&Number(n)==n){const n=t+1;for(;++t;){const o=e.charAt(t);if(null==o||Number(o)!=o){--t;break}if(t===e.length)break}o.id=Number(e.substring(n,t+1))}if(e.charAt(++t)){const n=this.tryParse(e.substr(t));if(!l.isPayloadValid(o.type,n))throw new Error("invalid payload");o.data=n}return s("decoded %s as %j",e,o),o}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 o="function"==typeof ArrayBuffer,n=Object.prototype.toString,a="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===n.call(Blob),r="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===n.call(File);function s(e){return o&&(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,o){if(!t||"object"!=typeof t)return!1;if(Array.isArray(t)){for(let o=0,n=t.length;o{"use strict";function n(e){if(e)return function(e){for(var t in n.prototype)e[t]=n.prototype[t];return e}(e)}o.r(t),o.d(t,{Emitter:()=>n}),n.prototype.on=n.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},n.prototype.once=function(e,t){function o(){this.off(e,o),t.apply(this,arguments)}return o.fn=t,this.on(e,o),this},n.prototype.off=n.prototype.removeListener=n.prototype.removeAllListeners=n.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var o,n=this._callbacks["$"+e];if(!n)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var a=0;a{"use strict";e.exports={version:"2.0.0"}}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var o=__webpack_module_cache__[e]={id:e,exports:{}};return __webpack_modules__[e].call(o.exports,o,o.exports,__webpack_require__),o.exports}__webpack_require__.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(t,{a:t}),t},__webpack_require__.d=(e,t)=>{for(var o in t)__webpack_require__.o(t,o)&&!__webpack_require__.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},__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__(8238),__webpack_require__(112),__webpack_require__(3336),__webpack_require__(2868),__webpack_require__(4719),__webpack_require__(3131),__webpack_require__(3526),__webpack_require__(4759);var __webpack_exports__=__webpack_require__(2852)})(); \ No newline at end of file +(()=>{var __webpack_modules__={8844:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,l,"next",e)}function l(e){r(s,n,a,i,l,"throw",e)}i(void 0)}))}}n=[o,t,o(4759),o(9820),o(2852),o(4719)],void 0===(a=function(e,t,o,n,a,r){"use strict";new n.Toggler(n.category.battle,"Disable math [PvP, PvE]","Disable math in PvP, PvE, anywhere! This doesn't work in the Floatling town.").setEnabled(s((function*(){return a._.constants.constants["GameConstants.Debug.EDUCATION_ENABLED"]=!1,o.Toast.fire("Enabled!","You will no longer do Math!","success")}))).setDisabled(s((function*(){return a._.constants.constants["GameConstants.Debug.EDUCATION_ENABLED"]=!0,o.Toast.fire("Disabled!","You will now do Math!","success")}))),new n.Toggler(n.category.battle,"Instant Kill [PvE]","Makes your spells do insane damage in PvE!").setEnabled(s((function*(){return a.player.modifiers.damage=a.VERY_LARGE_NUMBER,o.Toast.fire("Enabled!","You will now do insane damage in PvE!","success")}))).setDisabled((()=>(a.player.modifiers.damage=1,o.Toast.fire("Disabled!","You will no longer do insane damage in PvE!","success")))),new n.Hack(n.category.battle,"PvP Health [PvP]","Increases your HP in PvP by a hell ton.").setClick(s((function*(){return a.player.pvpHP=a.VERY_LARGE_NUMBER,a.player.getMaxHearts=()=>a.VERY_LARGE_NUMBER,o.Toast.fire("Success!","You now have lots of health!","success")}))),new n.Hack(n.category.battle,"Escape Battle [PvP, PvE]","Escape any battle, PvP or PvE!").setClick(s((function*(){var e=a.game.state.current;return"PVP"===e?(Object.fromEntries(a._.instance.game.state.states).PVP.endPVP(),o.Toast.fire("Escaped!","You have successfully escaped from the PvP battle.","success")):"CoOp"===e?(a.prodigy.world.$(a.player.data.zone),o.Toast.fire("Escaped!","You have successfully escaped from the battle.","success")):["Battle","SecureBattle"].includes(e)?(Object.fromEntries(a._.instance.game.state.states)[e].runAwayCallback(),o.Toast.fire("Escaped!","You have successfully escaped from the PvE battle.","success")):o.Toast.fire("Invalid State.","You are currently not in a battle.","error")}))),new n.Hack(n.category.battle,"Win Battle [PvE]","Instantly win a battle in PvE.").setClick(s((function*(){var e=a.game.state.current;switch((0,r.BattleInfo)("Current State: "+e),e){case"PVP":case"CoOp":return o.Toast.fire("Invalid State.","PvP is not supported for this hack.","error");case"Battle":return Object.fromEntries(a._.instance.game.state.states).Battle.startVictory(),o.Toast.fire("Victory!","You have successfully won the battle.","success");case"SecureBattle":return Object.fromEntries(a._.instance.game.state.states).SecureBattle.battleVictory(),o.Toast.fire("Victory!","You have successfully won the battle.","success");default:return o.Toast.fire("Invalid State.","You are currently not in a battle.","error")}}))),new n.Hack(n.category.battle,"Set Battle Hearts [PvP, PvE]","Sets your hearts in battle, automatically raise your max hearts in PvP or PvE.").setClick(s((function*(){var e=yield o.NumberInput.fire("Health Amount","How much HP do you want?","question");if(void 0!==e.value)return a.player.getMaxHearts=()=>+e.value,a.player.pvpHP=+e.value,a.player.data.hp=+e.value,o.Toast.fire("Success!","Your hearts have been set.","success")}))),new n.Hack(n.category.battle,"Fill Battle Energy [PvP, PvE]","Fills up your battle energy, if you are in PvP or PvE.").setClick(s((function*(){var e=a.game.state.getCurrentState();return"teams"in e?(e.teams[0].setEnergy(99),o.Toast.fire("Success!","Your battle energy has been filled.","success")):o.Toast.fire("Error","You are currently not in a battle.","error")}))),new n.Hack(n.category.battle,"Heal Team [PvE]","Instantly heals you and your pets, if you are in PvE.").setClick(s((function*(){var e=a.game.state.current;return"PVP"===e||"CoOp"===e?o.Toast.fire("Invalid State.","PvP is not supported for this hack.","error"):["Battle","SecureBattle"].includes(e)?(a.player.heal(),o.Toast.fire("Success!","Your team has been healed successfully!","success")):o.Toast.fire("Invalid State.","Your are currently not in a battle.","error")})))}.apply(t,n))||(e.exports=a)},9155:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,l,"next",e)}function l(e){r(s,n,a,i,l,"throw",e)}i(void 0)}))}}n=[o,t,o(4759),o(9820),o(2852),o(112),o(3131)],void 0===(a=function(e,t,o,n,a,r,i){"use strict";new n.Hack(n.category.beta,"Get all Runes [BETA]").setClick(s((function*(){if((yield o.Confirm.fire({title:"Hang on!",html:"This hack may damage your account with various bugs, for example you may be unable to do Rune Run.

                          Proceed?",icon:"warning"})).value){var e,t=parseInt((yield o.NumberInput.fire({title:"Amount",text:"How many of each would you like?",icon:"question",inputValidator:e=>e?"":"Please select which you'd like to get."})).value);if(!isNaN(t))return Array.from(a._.instance.prodigy.gameContainer._inversifyContainer._bindingDictionary._map).forEach((t=>{try{a._.instance.prodigy.gameContainer.get(t[0]).battleData&&(e=t[0])}catch(e){console.log("Error for ".concat(t[0]))}})),a._.instance.prodigy.gameContainer.get(e).battleData._secureCharacterState._data.inventory.orb=(0,r.runeify)(a._.gameData.orb,t),o.Toast.fire("Runes Added!","Your runes have been added!","success")}}))),new n.Hack(n.category.beta,"Edit Pet [BETA]","Edit a pet.").setClick(s((function*(){if(!(yield o.Confirm.fire({title:"Hang on!",html:"This hack may damage your account with various bugs, for example you may be unable to do Rune Run.

                          Proceed?",icon:"warning"})).value)return console.log("Cancelled.");var e=yield(0,r.getPet)("Choose the pet to edit.");if(void 0!==e){var t=a.player.kennel.data[e],n=yield o.Swal.fire({input:"select",inputOptions:{level:"Level",attacks:"Attacks",name:"Name"},title:"Edit Property",text:"What do you want to edit?"});if(void 0!==n.value){if("level"===n.value){var s=yield o.NumberInput.fire("Level Number","What level do you want to set your pet to?","question");if(void 0===s.value)return;return t.level=+s.value,o.Toast.fire("Success!","The pet's level has been set.","success")}if("attacks"===n.value){var i=a._.gameData.spell,l=document.createElement("div"),c=document.createElement("select");for(var u of(c.classList.add("selectSpell"),i)){var d=document.createElement("option");d.value=u.ID.toString(),d.innerText="".concat(u.ID,": ").concat(u.name," (").concat(u.data.element,") - Damage: ").concat(u.data.damage),c.options.add(d)}l.append(c),l.append(c.cloneNode(!0));var p=yield o.Swal.fire({title:"Attack List",focusConfirm:!1,showCancelButton:!0,html:l,preConfirm:()=>Array.prototype.slice.call(document.querySelectorAll(".selectSpell")).map((e=>e.options[e.selectedIndex].value))});if(void 0===p.value)return;return t.foreignSpells.splice(0,2,...p.value.map((e=>+e))),o.Toast.fire("Attacks updated!","The attack list of the pet you selected has been edited.","success")}if("name"===n.value){var h=yield o.Input.fire("Input Name","What do you want to name the pet?","question");if(void 0===h.value)return;return t.nickname=h.value,o.Toast.fire("Successfully renamed!","The name of the pet has been changed.","success")}}}}))),new n.Hack(n.category.beta,"Morph Player [BETA]","Morph into a pet, furnishing, or follow.").setClick(s((function*(){if(!(yield o.Confirm.fire("This hack is in BETA","Expect bugs, and it might not work properly.")).value)return console.log("Cancelled");var e=yield o.Swal.fire({title:"Which morph type?",input:"select",inputOptions:{pet:"Pet",dorm:"Furniture",follow:"Follow"},inputPlaceholder:"Morph Type",inputValidator:e=>e?"":"Please select a morph type.",showCancelButton:!0});if(null!=e&&e.value){var t={};a._.gameData[e.value].forEach((e=>t[e.ID]="".concat(e.name," (").concat(e.ID,")")));var n=yield o.Swal.fire({title:"Which morph?",input:"select",inputOptions:t,inputPlaceholder:"Morph ID",inputValidator:e=>e?"":"Please select a morph ID.",showCancelButton:!0});if(n.value)return a.player.getPlayerData().playerTransformation={transformType:e.value,transformID:n.value,maxTime:36e5,timeRemaining:36e5},a.player.appearanceChanged=!0,o.Toast.fire("Morphed!","You've been morphed.","success")}}))),new n.Toggler(n.category.beta,"Toggle Close Popups [BETA]","Automatically closes popups in Prodigy.").setEnabled(s((function*(){return(0,i.PopupInterval)(!0),o.Toast.fire("Enabled","Toggle Close Popups is now enabled.","success")}))).setDisabled(s((function*(){return(0,i.PopupInterval)(!1),o.Toast.fire("Enabled","Toggle Close Popups is now disabled.","success")}))),new n.Hack(n.category.beta,"Hypermax Account [BETA]").setClick(s((function*(){if((yield o.Confirm.fire({title:"Hang on!",html:"This hack will damage your account with various bugs, for example you may be unable to do Rune Run/Arena, amd you will recieve 418s and inavtivity kicks.

                          Proceed?",icon:"warning"})).value){a.player.data.gold=99e5,console.log("Set player gold to 9900000.");var e=100..value-2;a.player.data.stars=Math.round((1-Math.pow(1.042,e))/(1-1.042)*20+10),a.player.data.level=100,a.player.getLevel=()=>a.player.data.level,console.log("Set player level to 100"),a.player.data.bountyScore=100,console.log("Set player's bounty points to 100.");for(var t=0;ta.VERY_LARGE_NUMBER,console.log("PvP health obtained.");for(var n=0;n<100;n++)a.player.achievements.data.progress[n]=10;console.log("Obtained all achievements."),a.player.data.tower=100,console.log("Set tower floor to 100."),a.player.getMaxHearts=()=>a.VERY_LARGE_NUMBER,a.player.pvpHP=a.VERY_LARGE_NUMBER,a.player.data.hp=a.VERY_LARGE_NUMBER,console.log("Maxed out PvE health.");var s,i=99e4;r.ids.forEach((e=>{a.player.backpack.data[e]=(0,r.itemify)(a._.gameData[e].filter((t=>"follow"===e?![125,126,127,128,129,134,135,136,137].includes(t.ID):t)),i.value)})),a._.gameData.dorm.forEach((e=>a.player.house.data.items[e.ID]={A:[],N:i.value}));for(var l=()=>a.player.backpack.data.item.findIndex((e=>84===e.ID||85===e.ID||86===e.ID));l()>-1;)a.player.backpack.data.item.splice(l(),1);return o.Toast.fire("Success!","All items added!","success"),console.log("All items added!"),a.player.backpack.data.mount=(0,r.itemify)(a._.gameData.mount,1),console.log("Added all mounts."),a._.gameData.dorm.forEach((e=>a.player.house.data.items[e.ID]={A:[],N:99e4.value})),console.log("Added 990000 of all furniture."),a._.gameData.pet.forEach((e=>{a.player.kennel.addPet(e.ID.toString(),a.VERY_LARGE_NUMBER,26376,100)})),a.player.kennel._encounterInfo._data.pets=[],a._.gameData.pet.map((e=>{a.player.kennel._encounterInfo._data.pets.push({firstSeenDate:Date.now(),ID:e.ID,timesBattled:1,timesRescued:1})})),a.player.kennel.petTeam.forEach((e=>{e&&e.assignRandomSpells&&e.assignRandomSpells()})),console.log("Added all pets."),a._.gameData.pet.filter((e=>[158,166,168].includes(e.ID))).forEach((e=>{a.player.kennel.addPet(e.ID.toString(),a.VERY_LARGE_NUMBER,26376,100)})),a.player.kennel.petTeam.forEach((e=>{e&&e.assignRandomSpells&&e.assignRandomSpells()})),console.log("Added Mythical Epics."),a._.gameData.pet.filter((e=>[125,126,127,128,129,130,131,132,133].includes(e.ID))).forEach((e=>{a.player.kennel.addPet(e.ID.toString(),a.VERY_LARGE_NUMBER,26376,100)})),a.player.kennel.petTeam.forEach((e=>{e&&e.assignRandomSpells&&e.assignRandomSpells()})),console.log("Added Legacy Epics."),a._.constants.constants["GameConstants.Inactivity.LOG_OUT_TIMER_SECONDS"]=0,console.log("Inactivity Kick Disabled."),a.player._playerContainer.walkSpeed=20,console.log("Player walkspeed set to 20."),Array.from(a._.instance.prodigy.gameContainer._inversifyContainer._bindingDictionary._map).forEach((e=>{try{a._.instance.prodigy.gameContainer.get(e[0]).battleData&&(s=e[0])}catch(t){console.log("Error for ".concat(e[0]))}})),a._.instance.prodigy.gameContainer.get(s).battleData._secureCharacterState._data.inventory.orb=(0,r.runeify)(a._.gameData.orb,100),a.player.equipment.setHat(200),a.player.equipment.setBoots(93),a.player.equipment.setOutfit(161),a.player.equipment.setWeapon(196),(0,a.saveCharacter)(),console.log("Character Saved."),a.player.appearanceChanged=!0,console.log("Appearance Refreshed."),a._.instance.prodigy.open.menuCloseAll(),console.log("Popups closed."),(0,a.saveCharacter)(),console.log("Character Saved."),console.log("Max Account Successful."),o.Toast.fire("Maxed!","Check your backpack!","success")}})))}.apply(t,n))||(e.exports=a)},8130:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,l,"next",e)}function l(e){r(s,n,a,i,l,"throw",e)}i(void 0)}))}}n=[o,t,o(9820),o(4759),o(2852),o(112)],void 0===(a=function(e,t,o,n,a,r){"use strict";new o.Hack(o.category.inventory,"Item stacker").setClick(s((function*(){var e=yield n.NumberInput.fire("Amount","How many of every item would you like?","question");if(e.value&&(yield n.Confirm.fire("Are you sure you want to get all items in the game?")).value){r.ids.forEach((t=>{a.player.backpack.data[t]=(0,r.itemify)(a._.gameData[t].filter((e=>"follow"===t?![125,126,127,128,129,134,135,136,137].includes(e.ID):e)),e.value)})),a._.gameData.dorm.forEach((t=>a.player.house.data.items[t.ID]={A:[],N:e.value}));for(var t=()=>a.player.backpack.data.item.findIndex((e=>84===e.ID||85===e.ID||86===e.ID));t()>-1;)a.player.backpack.data.item.splice(t(),1);return n.Toast.fire("Success!","All items added!","success")}}))),new o.Hack(o.category.inventory,"Clear inventory").setClick(s((function*(){(yield n.Confirm.fire("Are you sure you want to clear your inventory?")).value&&(Object.keys(a.player.backpack.data).forEach((e=>a.player.backpack.data[e]=[])),n.Toast.fire("Success!","Inventory cleared.","success"))}))),new o.Hack(o.category.inventory,"Selector (Basic)").setClick(s((function*(){yield n.Swal.fire({title:"What would you like to obtain?",input:"select",inputOptions:r.names,inputPlaceholder:"Select...",inputValidator:e=>e?"":"Please select which you'd like to obtain.",showCancelButton:!0}).then(function(){var e=s((function*(e){var t=parseInt(e.value),o=r.names[t],s=r.ids[t];if(o){var i=yield n.NumberInput.fire("Amount","How many each object would you like?","question");i.value&&(yield n.Confirm.fire("Are you sure you want to get all ".concat(o.toLowerCase(),"?"))).value&&(a.player.backpack.data[s]=(0,r.itemify)(a._.gameData[s].filter((e=>"follow"===s?![125,126,127,128,129,134,135,136,137].includes(e.ID):e)),i.value),n.Toast.fire("".concat(o," Added!"),"All ".concat(o.toLowerCase()," have been added to your inventory!"),"success"),(0,a.saveCharacter)())}}));return function(t){return e.apply(this,arguments)}}())}))),new o.Hack(o.category.inventory,"Selector (Advanced)","Choose a specific object and quantity to obtain.").setClick(s((function*(){yield n.Swal.fire({title:"What would you like to obtain?",input:"select",inputOptions:r.names,inputPlaceholder:"Select...",inputValidator:e=>e?"":"Please select which you'd like to obtain.",showCancelButton:!0}).then(function(){var e=s((function*(e){if(a._.gameData[r.ids[e.value]]){var t=[];a._.gameData[r.ids[e.value]].forEach((e=>{t.push(e.data.name)})),yield n.Swal.fire({title:"What specific object categorized as ".concat(r.names[e.value].toLowerCase()," would you like to get?"),input:"select",inputOptions:t,inputPlaceholder:"Select...",inputValidator:e=>e?"":"Please select which you'd like to get.",showCancelButton:!0}).then(function(){var t=s((function*(t){var o=parseInt(t.value);if(a._.gameData[r.ids[e.value]][o]){var s=yield n.NumberInput.fire("Amount","How many of the object would you like?","question");if(s.value)return-1===a.player.backpack.data[r.ids[e.value]].findIndex((t=>t.ID===a._.gameData[r.ids[e.value]][o].ID))?a.player.backpack.data[r.ids[e.value]].push({ID:a._.gameData[r.ids[e.value]][o].ID,N:s.value}):a.player.backpack.data[r.ids[e.value]].findIndex((t=>t.ID===a._.gameData[r.ids[e.value]][o].ID)),console.log(a._.gameData[r.ids[e.value]][o].ID),(0,a.saveCharacter)(),n.Toast.fire("".concat(r.names[e.value]," Added!"),"Your selected ".concat(r.names[e.value].toLowerCase()," have been added."),"success")}}));return function(e){return t.apply(this,arguments)}}())}}));return function(t){return e.apply(this,arguments)}}())}))),new o.Hack(o.category.inventory,"Obtain All Furniture").setClick(s((function*(){var e=yield n.NumberInput.fire("Amount","How many of each piece of furniture would you like?","question");if(e.value&&(yield n.Confirm.fire("Are you sure you want to get all furniture?")).value)return a._.gameData.dorm.forEach((t=>a.player.house.data.items[t.ID]={A:[],N:e.value})),n.Toast.fire("Furniture Added!","All furniture has been added to your inventory!","success")}))),new o.Hack(o.category.inventory,"Obtain All Mounts","This gives you all of the mounts in the game.").setClick(s((function*(){return a.player.backpack.data.mount=(0,r.itemify)(a._.gameData.mount,1),n.Toast.fire("Mounts Added!","All mounts have been added to your inventory!")}))),new o.Hack(o.category.inventory,"Remove item").setClick(s((function*(){var e=yield n.Swal.fire({title:"What category would you like to remove an item from?",input:"select",inputOptions:r.names,inputPlaceholder:"Select...",inputValidator:e=>e?"":"Please select which you'd like to obtain.",showCancelButton:!0});if(a._.gameData[r.ids[e.value]]){var t=a._.gameData[r.ids[e.value]].map((e=>e.data.name)),o=yield n.Swal.fire({title:"What specific object categorized as ".concat(r.names[e.value].toLowerCase()," would you like to remove?"),input:"select",inputOptions:t,inputPlaceholder:"Select...",inputValidator:e=>e?"":"Please select which you'd like to get.",showCancelButton:!0});if(o=parseInt(o.value),a._.gameData[r.ids[e.value]][o]){var s=yield n.NumberInput.fire("Amount","How many of the object would you like to remove?","question");if(s.value){if(-1!==a.player.backpack.data[r.ids[e.value]].findIndex((t=>t.ID===a._.gameData[r.ids[e.value]][o].ID))){var i=a.player.backpack.data[r.ids[e.value]].findIndex((t=>t.ID===a._.gameData[r.ids[e.value]][o].ID));return a.player.backpack.data[r.ids[e.value]][i].N-=parseInt(s.value),a.player.backpack.data[r.ids[e.value]][i].N<=0&&a.player.backpack.data[r.ids[e.value]].splice(i,1),(0,a.saveCharacter)(),n.Toast.fire("Removed!","Successfully removed ".concat(s.value," ").concat(a._.gameData[r.ids[e.value]][o].name,"!"),"success")}yield n.Swal.fire("Item Does Not Exist","You do not have any ".concat(a._.gameData[r.ids[e.value]][o].name,"."),"error")}}}}))),new o.Hack(o.category.inventory,"Obtain All Furniture").setClick(s((function*(){return(yield n.Confirm.fire("Are you sure you want to get all furniture?")).value?(a._.gameData.dorm.forEach((e=>a.player.house.data.items[e.ID]={A:[],N:a.VERY_LARGE_NUMBER})),n.Toast.fire("Furniture Added!","All furniture have been added to your inventory!","success")):console.log("Cancelled.")})))}.apply(t,n))||(e.exports=a)},8346:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,l,"next",e)}function l(e){r(s,n,a,i,l,"throw",e)}i(void 0)}))}}n=[o,t,o(9820),o(4759),o(2852),o(112)],void 0===(a=function(e,t,o,n,a,r){"use strict";new o.Hack(o.category.location,"Teleport To Map (interactive)").setClick(s((function*(){var e=n.Swal.mixin({focusConfirm:!1,showCancelButton:!0,preConfirm:()=>{var e;return null===(e=document.querySelector(".radioDiv[checked]"))||void 0===e?void 0:e.getAttribute("zone")}}),t=document.createElement("div");t.classList.add("radioContainer");var o=function(e){var o=document.createElement("DIV");o.classList.add("radioDiv"),o.setAttribute("zone",e);var n=a.locations[e];n?o.style.backgroundImage="url(".concat(n,")"):o.innerText=e,o.onclick=()=>{document.querySelectorAll(".radioDiv[checked]").forEach((e=>e.removeAttribute("checked"))),o.setAttribute("checked","")},t.append(o)};for(var r of Object.keys(a.prodigy.world.zones))o(r);var s=yield e.fire({title:"Teleport Zone",html:t,customClass:{popup:"radioSwal"}});if(s.value){var i=Object.keys(a.prodigy.world.zones[s.value].maps),l=yield n.Swal.fire({input:"select",inputOptions:new Map(i.map((e=>[e,e]))),title:"Map",text:"Which map in the zone do you want to teleport to?"});if(l.value){var c=(yield n.NumberInput.fire("Please enter the x to teleport to. (Try 500?)")).value||500,u=(yield n.NumberInput.fire("Please enter the y to teleport to. (Try 500?)")).value||500;return a.prodigy.world.zones[s.value].teleport(l.value,c,u,{},{}),n.Toast.fire("Teleported","You have been teleported!","success")}}}))),new o.Hack(o.category.location,"Teleport to house by userID").setClick(s((function*(){var e=(yield n.NumberInput.fire("Please enter the userID.")).value;if(e)return(0,r.toHouse)(e),n.Toast.fire("Teleported!","You have been teleported!","success")}))),new o.Hack(o.category.location,"Get Map Location").setClick(s((function*(){var e=a.player.data.zone;navigator.clipboard.writeText(e).then(s((function*(){return console.log("Async: Copying to clipboard was successful!"),n.Swal.fire({title:"Map Location",html:"You are at
                          ".concat(e," .
                          You can save this to get to the same zone.

                          Your location is has also been copied to your clipboard."),icon:"info"})})),function(){var t=s((function*(t){return console.error("Async: Could not copy text: ",t),n.Swal.fire({title:"Map Location",html:"You are at
                          ".concat(e," .
                          You can save this to get to the same zone."),icon:"info"})}));return function(e){return t.apply(this,arguments)}}())})))}.apply(t,n))||(e.exports=a)},3344:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,l,"next",e)}function l(e){r(s,n,a,i,l,"throw",e)}i(void 0)}))}}n=[o,t,o(9820),o(2852),o(4759)],void 0===(a=function(e,t,o,n,a){"use strict";new o.Toggler(o.category.minigames,"69x Walk Speed [Dyno Dig]","Walk so fast that you're teleporting, in Dyno Dig.").setEnabled(s((function*(){return n._.instance.game.state.states.get("DinoDig").walkSpeed=69,a.Toast.fire("Enabled!","You will now walk so fast that you're teleporting in Dyno Dig.","success")}))).setDisabled(s((function*(){return n._.instance.game.state.states.get("DinoDig").walkSpeed=1.5,a.Toast.fire("Disabled!","You will now walk at normal speed, in Dyno Dig.","success")})))}.apply(t,n))||(e.exports=a)},465:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,l,"next",e)}function l(e){r(s,n,a,i,l,"throw",e)}i(void 0)}))}}n=[o,t,o(4759),o(9820),o(2852),o(8238)],void 0===(a=function(e,t,o,n,a,r){"use strict";new n.Hack(n.category.misc,"Skip Tutorial").setClick(s((function*(){var e=(e,t,o,n)=>{a._.instance.prodigy.world.getZone(e).testQuest(t,o,n);try{Object.fromEntries(a._.instance.game.state.states).TileScreen.process()}catch(e){}};e("house",2),e("academy",2),a.player.state.set("tutorial-0",4),a.player.backpack.addKeyItem(13,0),a.player.tutorial.data.menus[14]=[1],a._.instance.prodigy.open.map(!0,[]),a.player.onTutorialComplete(),a.player.data.level=Math.max(a.player.data.level,5)}))),new n.Toggler(n.category.misc,"Disable Monster Encounters").setEnabled(s((function*(){return a._.constants.constants["GameConstants.Debug.SCALE_ENCOUNTER_DISTANCE"]=0,o.Toast.fire("Enabled!","Monsters will no longer battle you.","success")}))).setDisabled((()=>(a._.constants.constants["GameConstants.Debug.SCALE_ENCOUNTER_DISTANCE"]=1,o.Toast.fire("Disabled!","Monsters will now battle you.","success")))),new n.Toggler(n.category.misc,"Skip enemy turn").setEnabled(s((function*(){return a._.constants.constants["GameConstants.Battle.SKIP_ENEMY_TURN"]=!0,o.Toast.fire("Skipping!","Enemy turns will now be skipped.","success")}))).setDisabled((()=>(a._.constants.constants["GameConstants.Battle.SKIP_ENEMY_TURN"]=!1,o.Toast.fire("Disabled","Enemy turns will no longer be skipped.","success")))),new n.Toggler(n.category.beta,"FPS Counter [BETA]","Shows you a framerate counter").setEnabled(s((function*(){(0,r.startFps)()}))).setDisabled(s((function*(){(0,r.stopFps)()})));try{var i=a.current.user.source.canSpin;new n.Toggler(n.category.misc,"Unlimited Spins","Lets you spin the wheel as many times as you want!").setEnabled(s((function*(){return a.player.canSpin=()=>{},o.Toast.fire("Enabled!","You can now spin the wheel as many times as you want!","success")}))).setDisabled(s((function*(){return a.player.canSpin=i,o.Toast.fire("Disabled!","You can now spin the wheel only when allowed.","success")})))}catch(e){console.error("Unlimited Spins ERROR: "+e)}new n.Hack(n.category.misc,"Bobbify","Converts your account into Bobby Fancywoman.").setClick(s((function*(){if((yield o.Confirm.fire("Are you sure you want your account to be turned into Bobby Fancywoman?","This action is not reversable.")).value)return a.player.name.data.nickname=null,a.player.name.data.firstName=44,a.player.name.data.middleName=754,a.player.name.data.lastName=882,a.player.data.stars=-1e22,a.player.data.level=69,a.player.appearance.setGender("male"),a.player.appearance.setEyeColor(1),a.player.appearance.setFace(4),a.player.appearance.setHair(19,1),a.player.appearance.setSkinColor(1),a.player.equipment.setFollow(19),a.player.equipment.setHat(19),a.player.equipment.setBoots(19),a.player.equipment.setOutfit(19),a.player.equipment.setWeapon(19),o.Toast.fire("Bobbified!","You are now Bobby Fancywoman.","success")}))),new n.Hack(n.category.misc,"Reset Account","Completely resets your account.").setClick(s((function*(){if((yield o.Confirm.fire("Are you sure you want to reset your account?","This action is not reversible.")).value)return a.player.resetAccount(),o.Swal.fire("Reset!","Your account has been reset. Reload Prodigy for the full effect.","success")})));var l=null,c=0;new n.Hack(n.category.misc,"Chat Spammer","Cycles through chat messages pretty fast!").setClick(s((function*(){return l?o.Swal.fire("Already Enabled","Chat Spammer is already enabled. To disable chat spammer, reload Prodigy.","error"):(l=setInterval(s((function*(){a.player.chatID=c,++c>1164&&(c=0)})),90),o.Toast.fire("Spamming!","You're now sending a chat message every 90 milliseconds!","success"))})));var u=null,d=0;new n.Hack(n.category.misc,"High Chat Spammer","Cycles through chat messages hella fast!").setClick(s((function*(){return u?o.Swal.fire("Already Enabled","High Chat Spammer is already enabled. To disable chat spammer, reload Prodigy.","error"):(yield o.Confirm.fire("Warning","This hack may cause lag on weak computers (ex. School Chromebooks).")).value?(u=setInterval(s((function*(){a.player.chatID=d,++d>1164&&(d=0)})),30),o.Toast.fire("Spamming!","You're now sending a chat message every 30 milliseconds!","success")):console.log("Cancelled")})));var p=null,h=0;new n.Hack(n.category.misc,"Chat Spammer on Meth","Cycles through chat messages FAST ASF!").setClick(s((function*(){return p?o.Swal.fire("Already Enabled","Chat Spammer on Meth is already enabled. To disable chat spammer, reload Prodigy.","error"):(yield o.Confirm.fire("Warning","This hack may cause lag on weak computers (ex. School Chromebooks).")).value?(p=setInterval(s((function*(){a.player.chatID=h,++h>1164&&(h=0)})),1),o.Toast.fire("Spamming!","You're now sending a chat message every 1 millisecond!","success")):console.log("Cancelled")}))),new n.Hack(n.category.misc,"[Fix] Fix Battle Crash").setClick(s((function*(){return a.player.kennel.petTeam.forEach((e=>{e&&e.assignRandomSpells&&e.assignRandomSpells()})),o.Toast.fire("Success!","Fixed kennel attack bug!","success")}))),new n.Hack(n.category.misc,"[Fix] Stuck in Unfinished Tower Fix","Takes you out of an unfinished tower if you're stuck in one.").setClick(s((function*(){return a._.instance.prodigy.world.zones.house.teleport("exit"),o.Toast.fire("Success!","You've been teleported outside of your house.","success")}))),new n.Hack(n.category.misc,"uwu","OwO").setClick(s((function*(){return(yield o.Confirm.fire("Are you sure that you want to UwU OwO?","Reload Prodigy to revert UwU.")).value?(Object.chance=e=>{var t={},o=0;for(var n of Object.keys(e).sort(((e,o)=>t[e]-t[o])))t[n]=[],t[n][0]=o+1,t[n][1]=e[n]+o,o=e[n]+o;return t},Object.random=e=>{var t=Object.values(e),o=t[t.length-1][1],n=Math.randint(o);return Object.reverse(e)[t.find((e=>n>=e[0]&&n<=e[1]))]},Array.prototype.join=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:",";return"string"==typeof e?this.reduce(((t,o,n,a)=>t+(nt+(n0&&void 0!==arguments[0]?arguments[0]:",";return"string"==typeof e?this.reduce(((t,o,n)=>t+(n?e+o:o)),""):e instanceof Function?this.reduce(((t,o,n,a)=>t+(n?e(a[n],n,a)+o:o)),""):void 0},String.UWUFX=e=>{var t=Object.chance({"owo :3":20,"✧w✧":20,UwU:20,OwO:10,rawr:10,"uwu :3":5,":3 meow":15,":3":15,X3:15,"*purrs*":15,owo:15,uwu:15,"^w^":15,"x3 rawr":15,owowowowo:15});return e.split(" ").leftJoin(((e,t)=>0===Math.floor(6*Math.random())&&/[A-Za-z]/.test(e[0])?" ".concat(e[0],"-"):" ")).split(" ").join(((e,o)=>0===Math.floor(5*Math.random())?" ".concat(Object.random(t)," "):" "))},String.UWUTable={y:"wy",l:"w",r:"w",ss:"zs",n:"nw",ove:"uv",ome:"um",x:"ks",com:"cum",stu:"stew",au:"aw"},Math.randint=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Math.floor(Math.random()*e-t)+t},String.prototype.escapeRegex=function(){return this.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")},String.prototype.replaceAll=function(e,t){return this.replace(new RegExp(e.toString().escapeRegex(),"gi"),(e=>t))},Object.fromArrays=(e,t)=>{var o={};return e.forEach(((e,n)=>{o[e]=t[n]})),o},Object.reverse=e=>Object.fromArrays(Object.values(e),Object.keys(e)),String.prototype.bulkReplace=function(e){var t=this;for(var o in e)t=t.replaceAll(o,e[o]);return t},String.UWU=e=>String(e).bulkReplace(String.UWUTable),Object.keys(a._.localizer.dataSource._languageData).map((e=>a._.localizer.dataSource._languageData[e]=String.UWUFX(String.UWU(a._.localizer.dataSource._languageData[e])))),Object.values(a._.gameData).map((e=>e.map((e=>[e.data.name&&(e.data.name=String.UWUFX(String.UWU(e.data.name))),e.name&&(e.name=String.UWUFX(String.UWU(e.name))),e.data.flavorText&&(e.data.flavorText=String.UWUFX(String.UWU(e.data.flavorText)))])))),o.Toast.fire("uwu","Reload Prodigy to fix uwu.","success")):console.log("uwu cancelled")})))}.apply(t,n))||(e.exports=a)},8603:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,l,"next",e)}function l(e){r(s,n,a,i,l,"throw",e)}i(void 0)}))}}n=[o,t,o(4759),o(9820),o(2852)],void 0===(a=function(e,t,o,n,a){"use strict";var r=null;new n.Hack(n.category.patched,"Arena Point Increaser [Patched]").setClick(s((function*(){return r?o.Swal.fire("Already Enabled","Arena Point Increaser is already enabled.","error"):(yield o.Confirm.fire("This hack is patched.","Running it will probably do nothing.")).value?(r=setInterval(s((function*(){var e=yield(yield fetch("https://api.prodigygame.com/leaderboard-api/season/".concat(a.prodigy.pvpNetworkHandler.seasonID,"/user/").concat(a.player.userID,"/pvp?userID=").concat(a.player.userID),{headers:{authorization:"Bearer ".concat(a.prodigy.network.jwtAuthProvider.getToken()),"content-type":"application/x-www-form-urlencoded; charset=UTF-8"},body:"seasonID=".concat(a.prodigy.pvpNetworkHandler.seasonID,"&action=win"),method:"POST",mode:"cors"})).text();if(""!==e){var t=JSON.parse(e);console.log("[API] ".concat(t.points," Points (+100)"))}else console.log("[API] Failed to add points.")})),60500),o.Swal.fire("Enabled","Arena Point Increaser has been enabled.","success")):console.log("Cancelled")}))),new n.Hack(n.category.patched,"Disable Timeout Dialog [Patched]").setClick(s((function*(){return(yield o.Confirm.fire("This hack is patched.","Running it will probably do nothing.")).value?(a.prodigy.debugMisc.disableTimeoutDialogue(),o.Toast.fire("Enabled","Timeout Dialog has been disabled.","success")):console.log("Cancelled")})))}.apply(t,n))||(e.exports=a)},7736:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;function asyncGeneratorStep(e,t,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}function _asyncToGenerator(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var r=e.apply(t,o);function s(e){asyncGeneratorStep(r,n,a,s,i,"next",e)}function i(e){asyncGeneratorStep(r,n,a,s,i,"throw",e)}s(void 0)}))}}var __importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};__WEBPACK_AMD_DEFINE_ARRAY__=[__webpack_require__,exports,__webpack_require__(4759),__webpack_require__(9820),__webpack_require__(2852),__webpack_require__(112),__webpack_require__(3336),__webpack_require__(939),__webpack_require__(3135),__webpack_require__(3314)],__WEBPACK_AMD_DEFINE_RESULT__=function(require,exports,swal_1,index_1,util_1,hackify_1,kennel_1,flatted_1,lzbase62_1,divide_1){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),flatted_1=__importDefault(flatted_1),lzbase62_1=__importDefault(lzbase62_1),divide_1=__importDefault(divide_1),new index_1.Hack(index_1.category.pets,"Get All Pets").setClick(_asyncToGenerator((function*(){return(yield swal_1.Confirm.fire("Would you like to add all pets to your pets?")).value?(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()})),swal_1.Toast.fire("Success!","All pets have been added!","success")):console.log("Cancelled")}))),new index_1.Hack(index_1.category.pets,"Get All Legacy Epics").setClick(_asyncToGenerator((function*(){return(yield swal_1.Confirm.fire("This may damage your account.","Attempting to add legacy epics may damage your account. Would you still like to add all legacy epics to your team?","warning")).value?(util_1._.gameData.pet.filter((e=>[125,126,127,128,129,130,131,132,133].includes(e.ID))).forEach((e=>{util_1.player.kennel.addPet(e.ID.toString(),util_1.VERY_LARGE_NUMBER,26376,100)})),util_1.player.kennel.petTeam.forEach((e=>{e&&e.assignRandomSpells&&e.assignRandomSpells()})),swal_1.Toast.fire("Success!","All legacy epics have been added!","success")):console.log("Cancelled")}))),new index_1.Hack(index_1.category.pets,"Get All Mythical Epics").setClick(_asyncToGenerator((function*(){return(yield swal_1.Confirm.fire("Would you like to add all mythical epics to your pets?")).value?(util_1._.gameData.pet.filter((e=>[158,164,165,166,167,168,169,170,171,189].includes(e.ID))).forEach((e=>{util_1.player.kennel.addPet(e.ID.toString(),util_1.VERY_LARGE_NUMBER,26376,100)})),util_1.player.kennel.petTeam.forEach((e=>{e&&e.assignRandomSpells&&e.assignRandomSpells()})),swal_1.Toast.fire("Success!","All mythical epics have been added!","success")):console.log("Cancelled")}))),new index_1.Hack(index_1.category.pets,"Clear Pets").setClick(_asyncToGenerator((function*(){return(yield swal_1.Confirm.fire("Would you like to delete all of your pets?")).value?(util_1.player.kennel.data.length=0,swal_1.Toast.fire("Success!","Your pets have been cleared!","success")):console.log("Cancelled")}))),new index_1.Hack(index_1.category.pets,"Add Pet","Adds a pet from a list.").setClick(_asyncToGenerator((function*(){var e=yield swal_1.Swal.fire({input:"select",inputOptions:new Map(util_1._.gameData.pet.map((e=>[e.ID.toString(),"".concat(e.ID,": ").concat(e.data.name)]))),title:"Choose Pet",text:"Which pet do you want to obtain?"});if(void 0!==e.value)return util_1.player.kennel.addPet(e.value),util_1.player.kennel._encounterInfo._data.pets.push({firstSeenDate:Date.now(),ID:e.value,timesBattled:1,timesRescued:1}),swal_1.Toast.fire("Success!","Your chosen pet has been added to your pets!","success")}))),new index_1.Hack(index_1.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(_asyncToGenerator((function*(){var petTeam=util_1.player.kennel.petTeam.slice(0);petTeam.shift();var names=petTeam.map((e=>e.getName())),pet=yield swal_1.Swal.fire({title:"Which pet would you like to edit?",input:"select",inputOptions:names,inputPlaceholder:"Select...",inputValidator:e=>e?"":"Please select which you'd like to obtain.",showCancelButton:!0}),amt=yield swal_1.NumberInput.fire("Level","What would you like to set your pet's level to? (Can be set over 100)","question");if(amt.value){var num=amt.value;return eval("player.kennel.petTeam[parseInt(".concat(pet.value,")+1].getLevel = () => {return ").concat(num,"}")),swal_1.Toast.fire("Updated!","The level of your pet was successfully updated. Note: this hack is client-side.","success")}}))),new index_1.Hack(index_1.category.pets,"Delete Pet","Delete a pet.").setClick(_asyncToGenerator((function*(){var e=yield(0,hackify_1.getPet)("Which pet do you wish to delete?");if(void 0!==e)return util_1.player.kennel.data.splice(e,1),swal_1.Toast.fire("Successfully deleted!","The selected pet was deleted successfully.","success")}))),new index_1.Hack(index_1.category.pets,"Edit Kennel","Allows you to directly edit your pets.").setClick(_asyncToGenerator((function*(){null!==(yield(0,kennel_1.GetAction)())&&null!==(yield(0,kennel_1.SelectSlot)())&&console.log(s(parseInt(KennelSlot.value)))}))),new index_1.Hack(index_1.category.pets,"Backup Kennel","Makes a backup of your kennel to your chrome local storage.").setClick(_asyncToGenerator((function*(){var e=lzbase62_1.default.compress(flatted_1.default.stringify(util_1._.player.kennel._petTeam));console.log(e.length);var t=0;for(var o of(0,divide_1.default)(e,10))localStorage.setItem("prodigy-kennel-backup"+t,o),console.log(o.length),t++;return swal_1.Toast.fire("Backed up!","Your kennel is now backed up to the local storage.","success")}))),new index_1.Hack(index_1.category.pets,"Restore Kennel","Restores a backup of your kennel from the local storage... if you have one.").setClick(_asyncToGenerator((function*(){var e=localStorage.getItem("prodigy-kennel-backup");return null===e?swal_1.Swal.fire({title:"No backup found",html:"There is no backup of your kennel in the local storage. Make sure to back up your kennel before trying to load it.",icon:"error"}):(util_1._.player.kennel._petTeam=flatted_1.default.toJSON(lzbase62_1.default.decompress(e)),swal_1.Toast.fire("Restored!","Your kennel backup should be restored","success"))})))}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),void 0===__WEBPACK_AMD_DEFINE_RESULT__||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)},7939:(module,exports,__webpack_require__)=>{var __webpack_unused_export__,__WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;function asyncGeneratorStep(e,t,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}function _asyncToGenerator(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var r=e.apply(t,o);function s(e){asyncGeneratorStep(r,n,a,s,i,"next",e)}function i(e){asyncGeneratorStep(r,n,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_require__(112)],__WEBPACK_AMD_DEFINE_RESULT__=function(require,exports,swal_1,index_1,util_1,hackify_1){"use strict";__webpack_unused_export__={value:!0},new index_1.Hack(index_1.category.player,"Max Account").setClick(_asyncToGenerator((function*(){if(!(yield swal_1.Confirm.fire("Are you sure that you want to max your account?","We recommend doing this on an alt.")).value)return console.log("Cancelled");util_1.player.data.gold=99e5,console.log("Set player gold to 9900000.");var e=100..value-2;util_1.player.data.stars=Math.round((1-Math.pow(1.042,e))/(1-1.042)*20+10),util_1.player.data.level=100,util_1.player.getLevel=()=>util_1.player.data.level,console.log("Set player level to 100"),util_1.player.data.bountyScore=100,console.log("Set player's bounty points to 100.");for(var t=0;t{util_1.player.backpack.data[e]=(0,hackify_1.itemify)(util_1._.gameData[e].filter((t=>"follow"===e?![125,126,127,128,129,134,135,136,137].includes(t.ID):t)),1..value)})),util_1._.gameData.dorm.forEach((e=>util_1.player.house.data.items[e.ID]={A:[],N:1..value}));for(var n=()=>util_1.player.backpack.data.item.findIndex((e=>84===e.ID||85===e.ID||86===e.ID));n()>-1;)util_1.player.backpack.data.item.splice(n(),1);swal_1.Toast.fire("Success!","All items added!","success"),console.log("All items added!"),util_1.player.backpack.data.mount=(0,hackify_1.itemify)(util_1._.gameData.mount,1),console.log("Added all mounts.");var a="currency";return util_1.player.backpack.data[a]=(0,hackify_1.itemify)(util_1._.gameData[a].filter((e=>e)),6969420),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.equipment.setHat(200),util_1.player.equipment.setBoots(93),util_1.player.equipment.setOutfit(161),util_1.player.equipment.setWeapon(196),util_1.player.appearanceChanged=!0,console.log("Appearance Refreshed."),(0,util_1.saveCharacter)(),console.log("Character Saved."),console.log("Max Account Successful."),swal_1.Toast.fire("Maxed!","Check your backpack!","success")}))),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)return e.value>1e7?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;return 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");if(void 0!==e.value)return 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");if(void 0!==e.value)return 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;t(util_1._.instance.prodigy.gameContainer.get((0,hackify_1.getMemberModule)()).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"),o=(e,t)=>{var o=document.createElement("select");for(var n of(o.classList.add("selectName"),e.entries())){var a=document.createElement("option");[a.value,a.innerText]=n,t(a.value)&&(a.selected=!0),o.options.add(a)}return o},n=(t,n)=>o(new Map(e.filter((e=>e.data.type===t)).map((e=>[e.ID.toString(),e.name]))),(e=>n(+e)));t.append(n(0,(e=>e===util_1.player.name.data.firstName))),t.append(n(1,(e=>e===util_1.player.name.data.middleName))),t.append(n(2,(e=>e===util_1.player.name.data.lastName))),t.append(o(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");if(level.value)return 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*(){return 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*(){return 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")):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 o=util_1._.instance.prodigy.world.zones[t].getCurrentQuestID();return util_1._.instance.prodigy.world.zones[t].completeQuest(o)?(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)});if(e.value)return 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.toString()).then((function(){return 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){return 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();return 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?");if(e.value)return util_1.player.grade=parseInt(e.value),swal_1.Toast.fire("Success","Successfully changed grade to ".concat(e,"!"),"success")})))}.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,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}function _asyncToGenerator(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var r=e.apply(t,o);function s(e){asyncGeneratorStep(r,n,a,s,i,"next",e)}function i(e){asyncGeneratorStep(r,n,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*(){return 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,"Grab UserID of all players on screen","Shows you the UserID and name of every player currently shown on the screen.").setClick(_asyncToGenerator((function*(){var e=util_1.current.playerList;if(0===Object.keys(e).length)return swal_1.Toast.fire("No players found.","There are no other players on the screen.","error");var t="",o=0;return yield Object.keys(e).map((n=>{var a=Object.entries(e)[o][1].nameText.textSource.source;t+="
                        • uID: ".concat(n," - ").concat(a,"
                        • "),o++})),swal_1.Swal.fire({title:"All players on the screen:",html:t,icon:"info"})}))),new index_1.Hack(index_1.category.utility,"Save Character Locally [Local]","Saves your character locally.").setClick(_asyncToGenerator((function*(){return 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"});return t.ok?swal_1.Toast.fire("Success!","Character has been successfully loaded. Reload for the changes to take effect.","success"):swal_1.Toast.fire("Request failed.","An error occurred while loading the character. Error code: ".concat(t.status),"error")}return 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*(){return(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;return 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*(){return 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);return 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*(){return teleportingInterval=setInterval((()=>{try{util_1.player._playerContainer.walkSpeed=500}catch(e){}})),swal_1.Toast.fire("Success!","Successfully enabled teleport click.","success")}))).setDisabled(_asyncToGenerator((function*(){return 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*(){return util_1._.network.game._paused=!0,swal_1.Toast.fire("Success!","Successfully paused Prodigy.","success")}))).setDisabled(_asyncToGenerator((function*(){return 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)return console.log("Cancelled.");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 swal_1.Swal.fire({title:"Error",html:"Oops! There was an error with the code!
                           ".concat(e," "),icon:"error"})}return 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,o){var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,l,"next",e)}function l(e){r(s,n,a,i,l,"throw",e)}i(void 0)}))}}var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};n=[o,t,o(7046),o(2852),o(3526),o(6455),o(4759),o(4719),o(158)],a=function(e,t,o,n,a,r,l,c){"use strict";var u,d,p,h;Object.defineProperty(t,"__esModule",{value:!0}),t.category=t.Toggler=t.Hack=t.toggler=t.wrapper=t.menu=void 0,r=i(r),t.menu=document.createElement("div"),t.wrapper=document.getElementById("game-wrapper"),null===(u=document.getElementById("cheat-menu"))||void 0===u||u.remove(),null===(d=document.getElementById("menu-toggler"))||void 0===d||d.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===(p=t.wrapper)||void 0===p||p.prepend(t.menu),t.toggler=document.createElement("button"),t.toggler.id="menu-toggler";var f=!1;null===(h=t.wrapper)||void 0===h||h.prepend(t.toggler),t.toggler.onclick=()=>{(f=!f)?(t.toggler.innerText="▼",t.menu.style.top="-100vh"):(t.toggler.innerText="▲",t.menu.style.top="10%")},t.toggler.onclick({});var m=document.createElement("DIV");m.classList.add("menu-left"),t.menu.append(m);var g=!0,y=e=>{var t=document.createElement("div");0==g?(t.append(document.createElement("br")),t.append(document.createElement("br"))):g=!1,t.classList.add("menu-area"),t.style.textAlign="center",m.append(t);var o=document.createElement("h1");return o.innerText=e,o.style.textAlign="center",o.style.color="white",t.append(o),t},w=document.createElement("h1");w.classList.add("menu-title"),w.innerText="Prodigy Hacks",w.style.textAlign="center",m.append(w);var b=document.createElement("h2");b.style.fontSize="25px",b.style.color="white",b.innerHTML="
                          Press SHIFT to show/hide the menu. Scroll down in the menu for more hacks.",m.append(b);var _=document.createElement("h3");_.style.fontSize="20px",_.innerHTML="\n

                          Join our Discord https://dsc.gg/ProdigyPNP!

                          \n\n
                          \n",_.style.color="white",m.append(_);class v{constructor(e,t,o){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),o&&this.setDesc(o)}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,n.saveCharacter)(),console.log("Triggered ".concat(t.name,"."))})),this}setDesc(e){return this.element.title=e,this.description=e,this}}t.Hack=v,t.Toggler=class extends v{constructor(e,t,o){var n;super(e,t,o),n=this,this.parent=e,this.element.setAttribute("status","false"),this.setClick(s((function*(){var e,t;n.status=!n.status,n.status?(localStorage.setItem(n.name,"true"),yield null===(e=n.enabled)||void 0===e?void 0:e.call(n)):(localStorage.setItem(n.name,"false"),yield null===(t=n.disabled)||void 0===t?void 0:t.call(n))})))}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:y("Player Hacks"),inventory:y("Inventory Hacks"),location:y("Location Hacks"),pets:y("Pet Hacks"),battle:y("Battle Hacks"),minigames:y("Minigame Hacks"),misc:y("Miscellaneous Hacks"),utility:y("Utility Hacks"),beta:y("Beta Testing | Beta Hacks may damage your account"),patched:y("Patched Hacks")},localStorage.hasTip?(0,c.IndexInfo)("Player already has tip."):(s((function*(){yield r.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,(0,c.IndexInfo)("Player was shown the tip.")),localStorage.getItem("level")&&(n._.player.getLevel=()=>localStorage.getItem("level"),(0,c.IndexInfo)("Loaded menu from localStorage."));var k=!0;document.addEventListener("keydown",(function(e){"Shift"==e.key&&((0,c.IndexInfo)("Shift key was pressed."),1==k?((0,c.IndexInfo)("Hiding cheat menu..."),document.getElementById("cheat-menu").style.display="none",document.getElementById("menu-toggler").style.display="none",k=!1,(0,c.IndexInfo)("Hidden cheat menu.")):((0,c.IndexInfo)("Showing cheat menu..."),document.getElementById("cheat-menu").style.display="block",document.getElementById("menu-toggler").style.display="block",k=!0,(0,c.IndexInfo)("Shown cheat menu.")))})),s((function*(){var e,t;(yield l.License.fire("ProdigyPNP",'\n

                          \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 ')).value?yield(0,a.statusMessage)():(yield l.NoLicense.fire("ProdigyPNP License","\n

                          \n You need to agree to our license to use our hacks. If you changed your mind and now agree to our license, reload Prodigy.\n

                          \n ")).value?document.location="":(null===(e=document.getElementById("cheat-menu"))||void 0===e||e.remove(),null===(t=document.getElementById("menu-toggler"))||void 0===t||t.remove())}))()}.apply(t,n),void 0===a||(e.exports=a)},3314:(e,t,o)=>{var n;n=function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){for(var o=new Array,n=Math.floor(e.length/t),a=0;a{var n,a;n=[o,t,o(9820)],a=function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stopFps=t.startFps=void 0;var n=document.createElement("button"),a=!1;t.startFps=function(){var e;a=!0,n.id="fps-counter",null===(e=o.wrapper)||void 0===e||e.prepend(n),setInterval((()=>{var e=_.player.game.fps._framerate;a?n.innerText=e.toFixed(2)+" FPS":n.remove()}),300)},t.stopFps=function(){var e;a=!1,null===(e=document.getElementById("fps-counter"))||void 0===e||e.remove()}}.apply(t,n),void 0===a||(e.exports=a)},112:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}n=[o,t,o(2852),o(4759)],a=function(e,t,o,n){"use strict";function a(e){o._.instance.prodigy.loading(!0);var t=t=>{var a=null!=t?t[e]:null;if(null!==a&&void 0!==a.house&&null!==a.house){o._.instance.prodigy.loading(!1);var r=o._.cloneDeep(o._.player.house);return r.setItems(a.house),void 0!==a.data.allowsHouseVisitors&&null!==a.data.allowsHouseVisitors&&a.data.allowsHouseVisitors?o._.instance.prodigy.world._("house",null,null,{house:r,getAllowsHouseVisitors:()=>void 0!==a.data.allowsHouseVisitors&&null!==a.data.allowsHouseVisitors&&a.data.allowsHouseVisitors,setAllowsHouseVisitors:e=>{a.data.allowsHouseVisitors=e}}):n.Swal.fire("Teleporting to ".concat(e," is not allowed."),"Try another user.","error")}};return o._.network.getCharData(e.toString(),["house","data"],t,t),n.Toast.fire("Teleported to house","You have been teleported to the house!","success")}Object.defineProperty(t,"__esModule",{value:!0}),t.getPet=t.teleportToHouse=t.toHouse=t.getMemberModule=t.runeify=t.itemify=t.ids=t.names=void 0,t.names=["Boots","Buddies","Fossils","Hats","Items","Key Items","Tower Town Frames","Tower Town Interiors","Mounts","Outfits","Relics","Weapons","Currencies"],t.ids=["boots","follow","fossil","hat","item","key","mathTownFrame","mathTownInterior","mount","outfit","spellRelic","weapon","currency"],t.itemify=(e,t)=>e.map((e=>({ID:e.ID,N:t}))).filter((e=>void 0!==e)),t.runeify=(e,t)=>{e.map((e=>({ID:e.ID,quantity:t}))).filter((e=>void 0!==e))},t.getMemberModule=function(){return o._.player.hasMembership.toString().split('"')[1]},t.toHouse=function(e){if(o._.player.userID!==e){var t=o._.instance.prodigy.friendsListNetworkHandler.friendsList.length,r=o._.instance.prodigy.friendsListNetworkHandler.classList.length;o._.instance.prodigy.gameContainer.get("2e1-e659").create("house-visit","click","hub",t,r,null,null,e).broadcast()}var s=o._.instance.prodigy.world.getZone(o._.instance.prodigy.world.getCurrentZone());return s?s.handleLeaving(2,(()=>a(e))):n.Swal.fire({title:"Error",text:"You are not in a zone!",icon:"error"})},t.teleportToHouse=a;var s=function(){var e,t=(e=function*(e){return(yield n.Swal.fire({input:"select",inputOptions:new Map(o._.player.kennel.data.map(((e,t)=>{var n,a,r;return[t.toString(),"Level ".concat(e.level," - ").concat(null!==(n=null!==(a=e.nickname)&&void 0!==a?a:null===(r=o._.gameData.pet.find((t=>+t.ID==+e.ID)))||void 0===r?void 0:r.data.name)&&void 0!==n?n:"Unknown")]}))),title:"Choose Pet",text:e})).value},function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,l,"next",e)}function l(e){r(s,n,a,i,l,"throw",e)}i(void 0)}))});return function(e){return t.apply(this,arguments)}}();t.getPet=s}.apply(t,n),void 0===a||(e.exports=a)},3336:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,l,"next",e)}function l(e){r(s,n,a,i,l,"throw",e)}i(void 0)}))}}n=[o,t,o(4759)],a=function(e,t,o){"use strict";function n(){return(n=s((function*(){var e=new Map;e.set("Copy","Copy a slot to another slot"),e.set("Remove","Completley empty one slot");var t=yield o.Swal.fire({input:"select",inputOptions:e,title:"Select Action",text:"Select an action to perform on the Kennel"});return t.value?t.value:null}))).apply(this,arguments)}function a(){return(a=s((function*(){var e=new Map,t=e=>_.player.kennel._petTeam[e]?_.player.kennel._petTeam[e].source?_.player.kennel._petTeam[e].source.name:_.player.kennel._petTeam[e]._userDataPlatform?"Player":"null":"null";e.set("0","[0] Center - ".concat(t(0))),e.set("1","[1] Top - ".concat(t(1))),e.set("2","[2] Bottom - ".concat(t(2)));var n=yield o.Swal.fire({input:"select",inputOptions:e,title:"Select Slot",text:"Select a slot to edit"});return n.value?parseInt(n.value):null}))).apply(this,arguments)}Object.defineProperty(t,"__esModule",{value:!0}),t.SelectSlot=t.GetAction=void 0,t.GetAction=function(){return n.apply(this,arguments)},t.SelectSlot=function(){return a.apply(this,arguments)}}.apply(t,n),void 0===a||(e.exports=a)},2868:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}n=[o,t,o(2852),o(4759)],void 0===(a=function(e,t,o,n){"use strict";window.addEventListener("keydown",(e=>{switch(e.which){case 192:o._.instance.prodigy.open.menuCloseAll();break;case 220:var t=function(){var e,t=(e=function*(){if(!(yield n.Confirm.fire("Kit","Would you like to equip Celestial Gear?")).value)return console.log("Cancelled");o._.player.equipment.setHat(200),o._.player.equipment.setBoots(93),o._.player.equipment.setOutfit(161),o._.player.equipment.setWeapon(196),o._.player.appearanceChanged=!0,n.Toast.fire("Success!","You are now wearing Celestial Armor and wielding a Dual Blade.","success")},function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,l,"next",e)}function l(e){r(s,n,a,i,l,"throw",e)}i(void 0)}))});return function(){return t.apply(this,arguments)}}();t()}}))}.apply(t,n))||(e.exports=a)},4719:(e,t,o)=>{var n;n=function(e,t){"use strict";function o(e,o){return""==e||null==e?console.log("["+t.LogPrefix+":unknown] "+o):console.log("["+t.LogPrefix+":"+e+"] "+o)}function n(e,t,n){return o(t,"*"+e.toUpperCase()+"* "+n)}Object.defineProperty(t,"__esModule",{value:!0}),t.UtilityError=t.UtilitySuccess=t.UtilityInfo=t.PlayerError=t.PlayerSuccess=t.PlayerInfo=t.PetsError=t.PetsSuccess=t.PetsInfo=t.PatchedError=t.PatchedSuccess=t.PatchedInfo=t.MiscError=t.MiscSuccess=t.MiscInfo=t.MinigameError=t.MinigameSuccess=t.MinigameInfo=t.LocationError=t.LocationSuccess=t.LocationInfo=t.InventoryError=t.InventorySuccess=t.InventoryInfo=t.BetaError=t.BetaSuccess=t.BetaInfo=t.BattleError=t.BattleSuccess=t.BattleInfo=t.IndexError=t.IndexSuccess=t.IndexInfo=t.StatusLog=t.ConsoleLog=t.LogPrefix=void 0,t.LogPrefix="CheatGUI",t.ConsoleLog=o,t.StatusLog=n,t.IndexInfo=function(e){return n("info","index.ts",e)},t.IndexSuccess=function(e){return n("success","index.ts",e)},t.IndexError=function(e){return n("error","index.ts",e)},t.BattleInfo=function(e){return n("info","battle.ts",e)},t.BattleSuccess=function(e){return n("success","battle.ts",e)},t.BattleError=function(e){return n("error","battle.ts",e)},t.BetaInfo=function(e){return n("info","beta.ts",e)},t.BetaSuccess=function(e){return n("success","beta.ts",e)},t.BetaError=function(e){return n("error","beta.ts",e)},t.InventoryInfo=function(e){return n("info","inventory.ts",e)},t.InventorySuccess=function(e){return n("success","inventory.ts",e)},t.InventoryError=function(e){return n("error","inventory.ts",e)},t.LocationInfo=function(e){return n("info","location.ts",e)},t.LocationSuccess=function(e){return n("success","location.ts",e)},t.LocationError=function(e){return n("error","location.ts",e)},t.MinigameInfo=function(e){return n("info","minigame.ts",e)},t.MinigameSuccess=function(e){return n("success","minigame.ts",e)},t.MinigameError=function(e){return n("error","minigame.ts",e)},t.MiscInfo=function(e){return n("info","misc.ts",e)},t.MiscSuccess=function(e){return n("success","misc.ts",e)},t.MiscError=function(e){return n("error","misc.ts",e)},t.PatchedInfo=function(e){return n("info","patched.ts",e)},t.PatchedSuccess=function(e){return n("success","patched.ts",e)},t.PatchedError=function(e){return n("error","patched.ts",e)},t.PetsInfo=function(e){return n("info","pets.ts",e)},t.PetsSuccess=function(e){return n("success","pets.ts",e)},t.PetsError=function(e){return n("error","pets.ts",e)},t.PlayerInfo=function(e){return n("info","player.ts",e)},t.PlayerSuccess=function(e){return n("success","player.ts",e)},t.PlayerError=function(e){return n("error","player.ts",e)},t.UtilityInfo=function(e){return n("info","utility.ts",e)},t.UtilitySuccess=function(e){return n("success","utility.ts",e)},t.UtilityError=function(e){return n("error","utility.ts",e)}}.apply(t,[o,t]),void 0===n||(e.exports=n)},3131:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,l,"next",e)}function l(e){r(s,n,a,i,l,"throw",e)}i(void 0)}))}}n=[o,t,o(2852)],a=function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PopupInterval=void 0;var n=!1;t.PopupInterval=function(e){n=e},s((function*(){setInterval(s((function*(){n&&o._.instance.prodigy.open.menuCloseAll()})),200)}))()}.apply(t,n),void 0===a||(e.exports=a)},3526:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}n=[o,t,o(4759)],a=function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.statusMessage=void 0,t.statusMessage=function(){fetch("https://raw.githubusercontent.com/ProdigyPNP/ProdigyMathGameHacking/master/cheatGUI/statusmessage.json?updated=".concat(Date.now())).then((e=>e.json())).then(function(){var e,t=(e=function*(e){if(!1===e.enabled.value)return console.log("Status message is disabled.");yield o.Swal.fire({title:e.get("title"),html:e.get("html"),icon:e.get("icon")})},function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,l,"next",e)}function l(e){r(s,n,a,i,l,"throw",e)}i(void 0)}))});return function(e){return t.apply(this,arguments)}}())}}.apply(t,n),void 0===a||(e.exports=a)},4759:function(e,t,o){var n,a,r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};n=[o,t,o(6455)],a=function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NoLicense=t.License=t.Info=t.Confirm=t.Toast=t.NumberInput=t.Input=t.Swal=void 0,o=r(o),t.Swal=o.default,t.Input=t.Swal.mixin({input:"text",showCancelButton:!0,showConfirmButton:!0,toast:!1}),t.NumberInput=t.Input.mixin({toast:!1,input:"number"}),t.Toast=t.Swal.mixin({toast:!0,position:"bottom"}),t.Confirm=t.Swal.mixin({icon:"warning",showCancelButton:!0,toast:!1,confirmButtonText:"Confirm",cancelButtonText:"Cancel"}),t.Info=t.Swal.mixin({icon:"info",showCancelButton:!1,toast:!1}),t.License=t.Swal.mixin({icon:"info",showCancelButton:!0,toast:!1,confirmButtonText:"Agree",cancelButtonText:"Disagree"}),t.NoLicense=t.Swal.mixin({icon:"error",showCancelButton:!0,toast:!1,confirmButtonText:"Reload",cancelButtonText:"Play without hacks"})}.apply(t,n),void 0===a||(e.exports=a)},2852:(e,t,o)=>{var n;n=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.current=t.player=t._=void 0,t._=window._,t.player=t._.player,t.current=window.Boot.prototype.game._state._current;var o=t._.instance;t.game=o.game,t.prodigy=o.prodigy,t.gameData=t._.instance.game.state.states.get("Boot").gameData,t.getItem=(e,o)=>{var n;return null!==(n=t._.gameData[e].find((e=>e.ID===o)))&&void 0!==n?n: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,[o,t]),void 0===n||(e.exports=n)},450:(e,t,o)=>{"use strict";o.d(t,{Z:()=>i});var n=o(8081),a=o.n(n),r=o(3645),s=o.n(r)()(a());s.push([e.id,"@import url(https://fonts.googleapis.com/css?family=Arvo:400,700|Sen:400,700,800&display=swap&subset=latin-ext);"]),s.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;font-size:23px;height:26px;width:50px;border:1px solid rgba(0,0,0,.1)}#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 #fps-counter{z-index:2;position:absolute;border-radius:3px;background-color:rgba(255,255,255,.7333333333);transition:background-color .15s;width:130px;height:26px;font-size:23px;border:1px solid rgba(0,0,0,.1);margin-left:83%}#game-wrapper #fps-counter:hover{background-color:rgba(221,221,221,.7333333333)}#game-wrapper #fps-counter: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:rgba(0,0,0,.55);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;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 i=s},3645:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var o="",n=void 0!==t[5];return t[4]&&(o+="@supports (".concat(t[4],") {")),t[2]&&(o+="@media ".concat(t[2]," {")),n&&(o+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),o+=e(t),n&&(o+="}"),t[2]&&(o+="}"),t[4]&&(o+="}"),o})).join("")},t.i=function(e,o,n,a,r){"string"==typeof e&&(e=[[null,e,void 0]]);var s={};if(n)for(var i=0;i0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=r),o&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=o):u[2]=o),a&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=a):u[4]="".concat(a)),t.push(u))}},t}},8081:e=>{"use strict";e.exports=function(e){return e[1]}},1227:(e,t,o)=>{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 o="color: "+this.color;t.splice(1,0,o,"color: inherit");let n=0,a=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(n++,"%c"===e&&(a=n))})),t.splice(a,0,o)},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=o(2447)(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},2447:(e,t,o)=>{e.exports=function(e){function t(e){let o,a,r,s=null;function i(...e){if(!i.enabled)return;const n=i,a=Number(new Date),r=a-(o||a);n.diff=r,n.prev=o,n.curr=a,o=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,((o,a)=>{if("%%"===o)return"%";s++;const r=t.formatters[a];if("function"==typeof r){const t=e[s];o=r.call(n,t),e.splice(s,1),s--}return o})),t.formatArgs.call(n,e),(n.log||t.log).apply(n,e)}return i.namespace=e,i.useColors=t.useColors(),i.color=t.selectColor(e),i.extend=n,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 n(e,o){const n=t(this.namespace+(void 0===o?":":o)+e);return n.log=this.log,n}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 o;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const n=("string"==typeof e?e:"").split(/[\s,]+/),a=n.length;for(o=0;o{t[o]=e[o]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let o=0;for(let t=0;t{var n=o(6391),a=o(8377);function r(e){this._init(e)}r.prototype={_init:function(e){e=e||{},this._data=null,this._table=null,this._result=null,this._onDataCallback=e.onData,this._onEndCallback=e.onEnd},_createTable:function(){for(var e=a.createBuffer(8,n.TABLE_LENGTH),t=0;ta)return!1;var r,s,i,l,c,u=o-n.WINDOW_BUFFER_MAX,d=t.substring(u,o+a),p=o+e-3-u;do{if(2===e){if(s=t.charAt(o)+t.charAt(o+1),!~(i=d.indexOf(s))||i>p)break}else 3===e?s+=t.charAt(o+2):s=t.substr(o,e);if(!~(l=n.STRING_LASTINDEXOF_BUG?t.substring(u,o+e-1).lastIndexOf(s):d.lastIndexOf(s,p)))break;c=l,r=u+l;do{if(t.charCodeAt(o+e)!==t.charCodeAt(r+e))break}while(++e=n.COMPRESS_CHUNK_MAX&&(this._onData(s,i),i=0);return i>0&&this._onData(s,i),this._onEnd(),t=this._result,this._result=null,null===t?"":t}},e.exports=r},6391:(e,t)=>{var o=t.HAS_TYPED="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array,n=!1,a=!1;try{"a"===String.fromCharCode.apply(null,[97])&&(n=!0)}catch(e){}if(o)try{"a"===String.fromCharCode.apply(null,new Uint8Array([97]))&&(a=!0)}catch(e){}t.CAN_CHARCODE_APPLY=n,t.CAN_CHARCODE_APPLY_TYPED=a;var r=t.APPLY_BUFFER_SIZE=65533;t.APPLY_BUFFER_SIZE_OK=null;var s=!1;-1!=="abcほげ".lastIndexOf("ほげ",1)&&(s=!0),t.STRING_LASTINDEXOF_BUG=s;var i=t.BASE62TABLE="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",l=t.TABLE_LENGTH=i.length,c=Math.max(l,62)-Math.min(l,62);t.BUFFER_MAX=l-1;var u=t.WINDOW_MAX=1024;t.WINDOW_BUFFER_MAX=304;var d=t.COMPRESS_CHUNK_SIZE=r;t.COMPRESS_CHUNK_MAX=d-l;var p=t.DECOMPRESS_CHUNK_SIZE=r;t.DECOMPRESS_CHUNK_MAX=p+2*u,t.LATIN_BUFFER_MAX=132;var h=t.UNICODE_CHAR_MAX=40;t.UNICODE_BUFFER_MAX=h*(h+1),t.LATIN_INDEX=l+1,t.LATIN_INDEX_START=c+20,t.UNICODE_INDEX=l+5,t.DECODE_MAX=l-c-19;var f=t.LATIN_DECODE_MAX=h+7,m=t.CHAR_START=f+1,g=t.COMPRESS_START=m+1,y=t.COMPRESS_FIXED_START=g+5;t.COMPRESS_INDEX=y+5},9797:(e,t,o)=>{var n=o(6391),a=o(8377);function r(e){this._init(e)}r.prototype={_init:function(e){e=e||{},this._result=null,this._onDataCallback=e.onData,this._onEndCallback=e.onEnd},_createTable:function(){for(var e={},t=0;t0&&this._onDataCallback(a.bufferToString_fast(t))}},_onEnd:function(){this._onEndCallback&&this._onEndCallback()},decompress:function(e){if(null==e||0===e.length)return"";this._result=a.stringToArray(a.createWindow());for(var t,o,r,s,i,l,c,u,d,p,h=this._createTable(),f=!1,m=null,g=e.length,y=0;yc&&(u.length=c),d=u.length,u.length>0)for(p=0;p=c));o++);m=null}this._result.length>=n.DECOMPRESS_CHUNK_MAX&&this._onData()}return this._result=this._result.slice(n.WINDOW_MAX),this._onData(!0),this._onEnd(),t=a.bufferToString_fast(this._result),this._result=null,t}},e.exports=r},3135:(e,t,o)=>{var n=o(946),a=o(9797);t.version=o(1014).version,t.compress=function(e,t){return new n(t).compress(e)},t.decompress=function(e,t){return new a(t).decompress(e)}},8377:(e,t,o)=>{var n=o(6391),a=String.fromCharCode;t.createBuffer=function(e,t){if(!n.HAS_TYPED)return new Array(t);switch(e){case 8:return new Uint8Array(t);case 16:return new Uint16Array(t)}};var r=t.truncateBuffer=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};t.bufferToString_fast=function(e,t){if(null==t?t=e.length:e=r(e,t),n.CAN_CHARCODE_APPLY&&n.CAN_CHARCODE_APPLY_TYPED){var o=e.length;if(on.APPLY_BUFFER_SIZE&&(n.APPLY_BUFFER_SIZE_OK=!0),i}catch(e){n.APPLY_BUFFER_SIZE_OK=!1}}return s(e)};var s=t.bufferToString_chunked=function(e){for(var t,o="",r=e.length,s=0;sn.APPLY_BUFFER_SIZE&&(n.APPLY_BUFFER_SIZE_OK=!0);continue}catch(e){n.APPLY_BUFFER_SIZE_OK=!1}return i(e)}o+=a.apply(null,t)}return o},i=t.bufferToString_slow=function(e){for(var t="",o=e.length,n=0;n>7,t=" ";!(e&n.WINDOW_MAX);)t+=t,e<<=1;return t}},7824:e=>{var t=1e3,o=60*t,n=60*o,a=24*n;function r(e,t,o,n){var a=t>=1.5*o;return Math.round(e/o)+" "+n+(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*n;case"minutes":case"minute":case"mins":case"min":case"m":return s*o;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>=n?r(i,l,n,"hour"):l>=o?r(i,l,o,"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>=n?Math.round(e/n)+"h":r>=o?Math.round(e/o)+"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,o)=>{"use strict";o.r(t),o.d(t,{default:()=>y});var n=o(3379),a=o.n(n),r=o(7795),s=o.n(r),i=o(569),l=o.n(i),c=o(3565),u=o.n(c),d=o(9216),p=o.n(d),h=o(4589),f=o.n(h),m=o(450),g={};g.styleTagTransform=f(),g.setAttributes=u(),g.insert=l().bind(null,"head"),g.domAPI=s(),g.insertStyleElement=p(),a()(m.Z,g);const y=m.Z&&m.Z.locals?m.Z.locals:void 0},3379:e=>{"use strict";var t=[];function o(e){for(var o=-1,n=0;n{"use strict";var t={};e.exports=function(e,o){var n=function(e){if(void 0===t[e]){var o=document.querySelector(e);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(e){o=null}t[e]=o}return t[e]}(e);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(o)}},9216:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},3565:(e,t,o)=>{"use strict";e.exports=function(e){var t=o.nc;t&&e.setAttribute("nonce",t)}},7795:e=>{"use strict";e.exports=function(e){var t=e.insertStyleElement(e);return{update:function(o){!function(e,t,o){var n="";o.supports&&(n+="@supports (".concat(o.supports,") {")),o.media&&(n+="@media ".concat(o.media," {"));var a=void 0!==o.layer;a&&(n+="@layer".concat(o.layer.length>0?" ".concat(o.layer):""," {")),n+=o.css,a&&(n+="}"),o.media&&(n+="}"),o.supports&&(n+="}");var r=o.sourceMap;r&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(r))))," */")),t.styleTagTransform(n,e,t.options)}(t,e,o)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},4589:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},6455:function(e){e.exports=function(){"use strict";const e="SweetAlert2:",t=e=>e.charAt(0).toUpperCase()+e.slice(1),o=t=>{console.warn("".concat(e," ").concat("object"==typeof t?t.join(" "):t))},n=t=>{console.error("".concat(e," ").concat(t))},a=[],r=(e,t)=>{var n;n='"'.concat(e,'" is deprecated and will be removed in the next major release. Please use "').concat(t,'" instead.'),a.includes(n)||(a.push(n),o(n))},s=e=>"function"==typeof e?e():e,i=e=>e&&"function"==typeof e.toPromise,l=e=>i(e)?e.toPromise():Promise.resolve(e),c=e=>e&&Promise.resolve(e)===e,u={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,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",color:void 0,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,willOpen:void 0,didOpen:void 0,didRender:void 0,willClose:void 0,didClose:void 0,didDestroy:void 0,scrollbarPadding:!0},d=["allowEscapeKey","allowOutsideClick","background","buttonsStyling","cancelButtonAriaLabel","cancelButtonColor","cancelButtonText","closeButtonAriaLabel","closeButtonHtml","color","confirmButtonAriaLabel","confirmButtonColor","confirmButtonText","currentProgressStep","customClass","denyButtonAriaLabel","denyButtonColor","denyButtonText","didClose","didDestroy","footer","hideClass","html","icon","iconColor","iconHtml","imageAlt","imageHeight","imageUrl","imageWidth","preConfirm","preDeny","progressSteps","returnFocus","reverseButtons","showCancelButton","showCloseButton","showConfirmButton","showDenyButton","text","title","titleText","willClose"],p={},h=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],f=e=>Object.prototype.hasOwnProperty.call(u,e),m=e=>-1!==d.indexOf(e),g=e=>p[e],y=e=>{f(e)||o('Unknown parameter "'.concat(e,'"'))},w=e=>{h.includes(e)&&o('The parameter "'.concat(e,'" is incompatible with toasts'))},b=e=>{g(e)&&r(e,g(e))},_=e=>{const t={};for(const o in e)t[e[o]]="swal2-"+e[o];return t},v=_(["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","show","hide","close","title","html-container","actions","confirm","deny","cancel","default-outline","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","input-label","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loader","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error","no-war"]),k=_(["success","warning","info","question","error"]),C=()=>document.body.querySelector(".".concat(v.container)),E=e=>{const t=C();return t?t.querySelector(e):null},x=e=>E(".".concat(e)),S=()=>x(v.popup),A=()=>x(v.icon),T=()=>x(v.title),P=()=>x(v["html-container"]),I=()=>x(v.image),D=()=>x(v["progress-steps"]),B=()=>x(v["validation-message"]),O=()=>E(".".concat(v.actions," .").concat(v.confirm)),R=()=>E(".".concat(v.actions," .").concat(v.deny)),M=()=>E(".".concat(v.loader)),N=()=>E(".".concat(v.actions," .").concat(v.cancel)),L=()=>x(v.actions),F=()=>x(v.footer),j=()=>x(v["timer-progress-bar"]),H=()=>x(v.close),U=()=>{const e=Array.from(S().querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])')).sort(((e,t)=>{const o=parseInt(e.getAttribute("tabindex")),n=parseInt(t.getAttribute("tabindex"));return o>n?1:o"-1"!==e.getAttribute("tabindex")));return(e=>{const t=[];for(let o=0;ore(e)))},q=()=>G(document.body,v.shown)&&!G(document.body,v["toast-shown"])&&!G(document.body,v["no-backdrop"]),Y=()=>S()&&G(S(),v.toast),W={previousBodyPadding:null},z=(e,t)=>{if(e.textContent="",t){const o=(new DOMParser).parseFromString(t,"text/html");Array.from(o.querySelector("head").childNodes).forEach((t=>{e.appendChild(t)})),Array.from(o.querySelector("body").childNodes).forEach((t=>{e.appendChild(t)}))}},G=(e,t)=>{if(!t)return!1;const o=t.split(/\s+/);for(let t=0;t{if(((e,t)=>{Array.from(e.classList).forEach((o=>{Object.values(v).includes(o)||Object.values(k).includes(o)||Object.values(t.showClass).includes(o)||e.classList.remove(o)}))})(e,t),t.customClass&&t.customClass[n]){if("string"!=typeof t.customClass[n]&&!t.customClass[n].forEach)return o("Invalid type of customClass.".concat(n,'! Expected string or iterable object, got "').concat(typeof t.customClass[n],'"'));$(e,t.customClass[n])}},K=(e,t)=>{if(!t)return null;switch(t){case"select":case"textarea":case"file":return e.querySelector(".".concat(v.popup," > .").concat(v[t]));case"checkbox":return e.querySelector(".".concat(v.popup," > .").concat(v.checkbox," input"));case"radio":return e.querySelector(".".concat(v.popup," > .").concat(v.radio," input:checked"))||e.querySelector(".".concat(v.popup," > .").concat(v.radio," input:first-child"));case"range":return e.querySelector(".".concat(v.popup," > .").concat(v.range," input"));default:return e.querySelector(".".concat(v.popup," > .").concat(v.input))}},X=e=>{if(e.focus(),"file"!==e.type){const t=e.value;e.value="",e.value=t}},Z=(e,t,o)=>{e&&t&&("string"==typeof t&&(t=t.split(/\s+/).filter(Boolean)),t.forEach((t=>{Array.isArray(e)?e.forEach((e=>{o?e.classList.add(t):e.classList.remove(t)})):o?e.classList.add(t):e.classList.remove(t)})))},$=(e,t)=>{Z(e,t,!0)},J=(e,t)=>{Z(e,t,!1)},Q=(e,t)=>{const o=Array.from(e.children);for(let e=0;e{o==="".concat(parseInt(o))&&(o=parseInt(o)),o||0===parseInt(o)?e.style[t]="number"==typeof o?"".concat(o,"px"):o:e.style.removeProperty(t)},te=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"flex";e.style.display=t},oe=e=>{e.style.display="none"},ne=(e,t,o,n)=>{const a=e.querySelector(t);a&&(a.style[o]=n)},ae=function(e,t){t?te(e,arguments.length>2&&void 0!==arguments[2]?arguments[2]:"flex"):oe(e)},re=e=>!(!e||!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)),se=e=>!!(e.scrollHeight>e.clientHeight),ie=e=>{const t=window.getComputedStyle(e),o=parseFloat(t.getPropertyValue("animation-duration")||"0"),n=parseFloat(t.getPropertyValue("transition-duration")||"0");return o>0||n>0},le=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const o=j();re(o)&&(t&&(o.style.transition="none",o.style.width="100%"),setTimeout((()=>{o.style.transition="width ".concat(e/1e3,"s linear"),o.style.width="0%"}),10))},ce=()=>"undefined"==typeof window||"undefined"==typeof document,ue={},de=e=>new Promise((t=>{if(!e)return t();const o=window.scrollX,n=window.scrollY;ue.restoreFocusTimeout=setTimeout((()=>{ue.previousActiveElement instanceof HTMLElement?(ue.previousActiveElement.focus(),ue.previousActiveElement=null):document.body&&document.body.focus(),t()}),100),window.scrollTo(o,n)})),pe='\n
                          \n \n
                            \n
                            \n \n

                            \n
                            \n \n \n
                            \n \n \n
                            \n \n
                            \n \n \n
                            \n
                            \n
                            \n \n \n \n
                            \n
                            \n
                            \n
                            \n
                            \n
                            \n').replace(/(^|\n)\s*/g,""),he=()=>{ue.currentInstance.resetValidationMessage()},fe=e=>{const t=(()=>{const e=C();return!!e&&(e.remove(),J([document.documentElement,document.body],[v["no-backdrop"],v["toast-shown"],v["has-column"]]),!0)})();if(ce())return void n("SweetAlert2 requires document to initialize");const o=document.createElement("div");o.className=v.container,t&&$(o,v["no-transition"]),z(o,pe);const a="string"==typeof(r=e.target)?document.querySelector(r):r;var r;a.appendChild(o),(e=>{const t=S();t.setAttribute("role",e.toast?"alert":"dialog"),t.setAttribute("aria-live",e.toast?"polite":"assertive"),e.toast||t.setAttribute("aria-modal","true")})(e),(e=>{"rtl"===window.getComputedStyle(e).direction&&$(C(),v.rtl)})(a),(()=>{const e=S(),t=Q(e,v.input),o=Q(e,v.file),n=e.querySelector(".".concat(v.range," input")),a=e.querySelector(".".concat(v.range," output")),r=Q(e,v.select),s=e.querySelector(".".concat(v.checkbox," input")),i=Q(e,v.textarea);t.oninput=he,o.onchange=he,r.onchange=he,s.onchange=he,i.oninput=he,n.oninput=()=>{he(),a.value=n.value},n.onchange=()=>{he(),a.value=n.value}})()},me=(e,t)=>{e instanceof HTMLElement?t.appendChild(e):"object"==typeof e?ge(e,t):e&&z(t,e)},ge=(e,t)=>{e.jquery?ye(t,e):z(t,e.toString())},ye=(e,t)=>{if(e.textContent="",0 in t)for(let o=0;o in t;o++)e.appendChild(t[o].cloneNode(!0));else e.appendChild(t.cloneNode(!0))},we=(()=>{if(ce())return!1;const e=document.createElement("div"),t={WebkitAnimation:"webkitAnimationEnd",animation:"animationend"};for(const o in t)if(Object.prototype.hasOwnProperty.call(t,o)&&void 0!==e.style[o])return t[o];return!1})(),be=(e,t)=>{const o=L(),n=M();t.showConfirmButton||t.showDenyButton||t.showCancelButton?te(o):oe(o),V(o,t,"actions"),function(e,t,o){const n=O(),a=R(),r=N();_e(n,"confirm",o),_e(a,"deny",o),_e(r,"cancel",o),function(e,t,o,n){if(!n.buttonsStyling)return J([e,t,o],v.styled);$([e,t,o],v.styled),n.confirmButtonColor&&(e.style.backgroundColor=n.confirmButtonColor,$(e,v["default-outline"])),n.denyButtonColor&&(t.style.backgroundColor=n.denyButtonColor,$(t,v["default-outline"])),n.cancelButtonColor&&(o.style.backgroundColor=n.cancelButtonColor,$(o,v["default-outline"]))}(n,a,r,o),o.reverseButtons&&(o.toast?(e.insertBefore(r,n),e.insertBefore(a,n)):(e.insertBefore(r,t),e.insertBefore(a,t),e.insertBefore(n,t)))}(o,n,t),z(n,t.loaderHtml),V(n,t,"loader")};function _e(e,o,n){ae(e,n["show".concat(t(o),"Button")],"inline-block"),z(e,n["".concat(o,"ButtonText")]),e.setAttribute("aria-label",n["".concat(o,"ButtonAriaLabel")]),e.className=v[o],V(e,n,"".concat(o,"Button")),$(e,n["".concat(o,"ButtonClass")])}const ve=(e,t)=>{const n=C();n&&(function(e,t){"string"==typeof t?e.style.background=t:t||$([document.documentElement,document.body],v["no-backdrop"])}(n,t.backdrop),function(e,t){t in v?$(e,v[t]):(o('The "position" parameter is not valid, defaulting to "center"'),$(e,v.center))}(n,t.position),function(e,t){if(t&&"string"==typeof t){const o="grow-".concat(t);o in v&&$(e,v[o])}}(n,t.grow),V(n,t,"container"))};var ke={awaitingPromise:new WeakMap,promise:new WeakMap,innerParams:new WeakMap,domCache:new WeakMap};const Ce=["input","file","range","select","radio","checkbox","textarea"],Ee=e=>{if(!De[e.input])return n('Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "'.concat(e.input,'"'));const t=Pe(e.input),o=De[e.input](t,e);te(t),setTimeout((()=>{X(o)}))},xe=(e,t)=>{const o=K(S(),e);if(o){(e=>{for(let t=0;t{const t=Pe(e.input);"object"==typeof e.customClass&&$(t,e.customClass.input)},Ae=(e,t)=>{e.placeholder&&!t.inputPlaceholder||(e.placeholder=t.inputPlaceholder)},Te=(e,t,o)=>{if(o.inputLabel){e.id=v.input;const n=document.createElement("label"),a=v["input-label"];n.setAttribute("for",e.id),n.className=a,"object"==typeof o.customClass&&$(n,o.customClass.inputLabel),n.innerText=o.inputLabel,t.insertAdjacentElement("beforebegin",n)}},Pe=e=>Q(S(),v[e]||v.input),Ie=(e,t)=>{["string","number"].includes(typeof t)?e.value="".concat(t):c(t)||o('Unexpected type of inputValue! Expected "string", "number" or "Promise", got "'.concat(typeof t,'"'))},De={};De.text=De.email=De.password=De.number=De.tel=De.url=(e,t)=>(Ie(e,t.inputValue),Te(e,e,t),Ae(e,t),e.type=t.input,e),De.file=(e,t)=>(Te(e,e,t),Ae(e,t),e),De.range=(e,t)=>{const o=e.querySelector("input"),n=e.querySelector("output");return Ie(o,t.inputValue),o.type=t.input,Ie(n,t.inputValue),Te(o,e,t),e},De.select=(e,t)=>{if(e.textContent="",t.inputPlaceholder){const o=document.createElement("option");z(o,t.inputPlaceholder),o.value="",o.disabled=!0,o.selected=!0,e.appendChild(o)}return Te(e,e,t),e},De.radio=e=>(e.textContent="",e),De.checkbox=(e,t)=>{const o=K(S(),"checkbox");o.value="1",o.id=v.checkbox,o.checked=Boolean(t.inputValue);const n=e.querySelector("span");return z(n,t.inputPlaceholder),o},De.textarea=(e,t)=>{Ie(e,t.inputValue),Ae(e,t),Te(e,e,t);return setTimeout((()=>{if("MutationObserver"in window){const t=parseInt(window.getComputedStyle(S()).width);new MutationObserver((()=>{const o=e.offsetWidth+(n=e,parseInt(window.getComputedStyle(n).marginLeft)+parseInt(window.getComputedStyle(n).marginRight));var n;S().style.width=o>t?"".concat(o,"px"):null})).observe(e,{attributes:!0,attributeFilter:["style"]})}})),e};const Be=(e,t)=>{const o=P();V(o,t,"htmlContainer"),t.html?(me(t.html,o),te(o,"block")):t.text?(o.textContent=t.text,te(o,"block")):oe(o),((e,t)=>{const o=S(),n=ke.innerParams.get(e),a=!n||t.input!==n.input;Ce.forEach((e=>{const n=Q(o,v[e]);xe(e,t.inputAttributes),n.className=v[e],a&&oe(n)})),t.input&&(a&&Ee(t),Se(t))})(e,t)},Oe=(e,t)=>{for(const o in k)t.icon!==o&&J(e,k[o]);$(e,k[t.icon]),Ne(e,t),Re(),V(e,t,"icon")},Re=()=>{const e=S(),t=window.getComputedStyle(e).getPropertyValue("background-color"),o=e.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");for(let e=0;e{let o,n=e.innerHTML;t.iconHtml?o=Le(t.iconHtml):"success"===t.icon?(o='\n
                            \n \n
                            \n
                            \n',n=n.replace(/ style=".*?"/g,"")):o="error"===t.icon?'\n \n \n \n \n':Le({question:"?",warning:"!",info:"i"}[t.icon]),n.trim()!==o.trim()&&z(e,o)},Ne=(e,t)=>{if(t.iconColor){e.style.color=t.iconColor,e.style.borderColor=t.iconColor;for(const o of[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"])ne(e,o,"backgroundColor",t.iconColor);ne(e,".swal2-success-ring","borderColor",t.iconColor)}},Le=e=>'
                            ').concat(e,"
                            "),Fe=e=>{const t=document.createElement("li");return $(t,v["progress-step"]),z(t,e),t},je=e=>{const t=document.createElement("li");return $(t,v["progress-step-line"]),e.progressStepsDistance&&ee(t,"width",e.progressStepsDistance),t},He=(e,t)=>{e.className="".concat(v.popup," ").concat(re(e)?t.showClass.popup:""),t.toast?($([document.documentElement,document.body],v["toast-shown"]),$(e,v.toast)):$(e,v.modal),V(e,t,"popup"),"string"==typeof t.customClass&&$(e,t.customClass),t.icon&&$(e,v["icon-".concat(t.icon)])},Ue=(e,t)=>{((e,t)=>{const o=C(),n=S();t.toast?(ee(o,"width",t.width),n.style.width="100%",n.insertBefore(M(),A())):ee(n,"width",t.width),ee(n,"padding",t.padding),t.color&&(n.style.color=t.color),t.background&&(n.style.background=t.background),oe(B()),He(n,t)})(0,t),ve(0,t),((e,t)=>{const n=D();if(!t.progressSteps||0===t.progressSteps.length)return oe(n);te(n),n.textContent="",t.currentProgressStep>=t.progressSteps.length&&o("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),t.progressSteps.forEach(((e,o)=>{const a=Fe(e);if(n.appendChild(a),o===t.currentProgressStep&&$(a,v["active-progress-step"]),o!==t.progressSteps.length-1){const e=je(t);n.appendChild(e)}}))})(0,t),((e,t)=>{const o=ke.innerParams.get(e),a=A();if(o&&t.icon===o.icon)return Me(a,t),void Oe(a,t);if(t.icon||t.iconHtml){if(t.icon&&-1===Object.keys(k).indexOf(t.icon))return n('Unknown icon! Expected "success", "error", "warning", "info" or "question", got "'.concat(t.icon,'"')),void oe(a);te(a),Me(a,t),Oe(a,t),$(a,t.showClass.icon)}else oe(a)})(e,t),((e,t)=>{const o=I();if(!t.imageUrl)return oe(o);te(o,""),o.setAttribute("src",t.imageUrl),o.setAttribute("alt",t.imageAlt),ee(o,"width",t.imageWidth),ee(o,"height",t.imageHeight),o.className=v.image,V(o,t,"image")})(0,t),((e,t)=>{const o=T();ae(o,t.title||t.titleText,"block"),t.title&&me(t.title,o),t.titleText&&(o.innerText=t.titleText),V(o,t,"title")})(0,t),((e,t)=>{const o=H();z(o,t.closeButtonHtml),V(o,t,"closeButton"),ae(o,t.showCloseButton),o.setAttribute("aria-label",t.closeButtonAriaLabel)})(0,t),Be(e,t),be(0,t),((e,t)=>{const o=F();ae(o,t.footer),t.footer&&me(t.footer,o),V(o,t,"footer")})(0,t),"function"==typeof t.didRender&&t.didRender(S())},qe=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),Ye=()=>{Array.from(document.body.children).forEach((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")}))},We=["swal-title","swal-html","swal-footer"],ze=e=>{const t={};return Array.from(e.querySelectorAll("swal-param")).forEach((e=>{Je(e,["name","value"]);const o=e.getAttribute("name"),n=e.getAttribute("value");"boolean"==typeof u[o]&&"false"===n&&(t[o]=!1),"object"==typeof u[o]&&(t[o]=JSON.parse(n))})),t},Ge=e=>{const o={};return Array.from(e.querySelectorAll("swal-button")).forEach((e=>{Je(e,["type","color","aria-label"]);const n=e.getAttribute("type");o["".concat(n,"ButtonText")]=e.innerHTML,o["show".concat(t(n),"Button")]=!0,e.hasAttribute("color")&&(o["".concat(n,"ButtonColor")]=e.getAttribute("color")),e.hasAttribute("aria-label")&&(o["".concat(n,"ButtonAriaLabel")]=e.getAttribute("aria-label"))})),o},Ve=e=>{const t={},o=e.querySelector("swal-image");return o&&(Je(o,["src","width","height","alt"]),o.hasAttribute("src")&&(t.imageUrl=o.getAttribute("src")),o.hasAttribute("width")&&(t.imageWidth=o.getAttribute("width")),o.hasAttribute("height")&&(t.imageHeight=o.getAttribute("height")),o.hasAttribute("alt")&&(t.imageAlt=o.getAttribute("alt"))),t},Ke=e=>{const t={},o=e.querySelector("swal-icon");return o&&(Je(o,["type","color"]),o.hasAttribute("type")&&(t.icon=o.getAttribute("type")),o.hasAttribute("color")&&(t.iconColor=o.getAttribute("color")),t.iconHtml=o.innerHTML),t},Xe=e=>{const t={},o=e.querySelector("swal-input");o&&(Je(o,["type","label","placeholder","value"]),t.input=o.getAttribute("type")||"text",o.hasAttribute("label")&&(t.inputLabel=o.getAttribute("label")),o.hasAttribute("placeholder")&&(t.inputPlaceholder=o.getAttribute("placeholder")),o.hasAttribute("value")&&(t.inputValue=o.getAttribute("value")));const n=Array.from(e.querySelectorAll("swal-input-option"));return n.length&&(t.inputOptions={},n.forEach((e=>{Je(e,["value"]);const o=e.getAttribute("value"),n=e.innerHTML;t.inputOptions[o]=n}))),t},Ze=(e,t)=>{const o={};for(const n in t){const a=t[n],r=e.querySelector(a);r&&(Je(r,[]),o[a.replace(/^swal-/,"")]=r.innerHTML.trim())}return o},$e=e=>{const t=We.concat(["swal-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Array.from(e.children).forEach((e=>{const n=e.tagName.toLowerCase();-1===t.indexOf(n)&&o("Unrecognized element <".concat(n,">"))}))},Je=(e,t)=>{Array.from(e.attributes).forEach((n=>{-1===t.indexOf(n.name)&&o(['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.")])}))};var Qe={email:(e,t)=>/^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]{2,24}$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid email address"),url:(e,t)=>/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid URL")};function et(e){(function(e){e.inputValidator||Object.keys(Qe).forEach((t=>{e.input===t&&(e.inputValidator=Qe[t])}))})(e),e.showLoaderOnConfirm&&!e.preConfirm&&o("showLoaderOnConfirm is set to true, but preConfirm is not defined.\nshowLoaderOnConfirm should be used together with preConfirm, see usage example:\nhttps://sweetalert2.github.io/#ajax-request"),function(e){(!e.target||"string"==typeof e.target&&!document.querySelector(e.target)||"string"!=typeof e.target&&!e.target.appendChild)&&(o('Target parameter is not valid, defaulting to "body"'),e.target="body")}(e),"string"==typeof e.title&&(e.title=e.title.split("\n").join("
                            ")),fe(e)}class tt{constructor(e,t){this.callback=e,this.remaining=t,this.running=!1,this.start()}start(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}stop(){return this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=(new Date).getTime()-this.started.getTime()),this.remaining}increase(e){const t=this.running;return t&&this.stop(),this.remaining+=e,t&&this.start(),this.remaining}getTimerLeft(){return this.running&&(this.stop(),this.start()),this.remaining}isRunning(){return this.running}}const ot=()=>{null===W.previousBodyPadding&&document.body.scrollHeight>window.innerHeight&&(W.previousBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight="".concat(W.previousBodyPadding+(()=>{const e=document.createElement("div");e.className=v["scrollbar-measure"],document.body.appendChild(e);const t=e.getBoundingClientRect().width-e.clientWidth;return document.body.removeChild(e),t})(),"px"))},nt=()=>{const e=navigator.userAgent,t=!!e.match(/iPad/i)||!!e.match(/iPhone/i),o=!!e.match(/WebKit/i);if(t&&o&&!e.match(/CriOS/i)){const e=44;S().scrollHeight>window.innerHeight-e&&(C().style.paddingBottom="".concat(e,"px"))}},at=()=>{const e=C();let t;e.ontouchstart=e=>{t=rt(e)},e.ontouchmove=e=>{t&&(e.preventDefault(),e.stopPropagation())}},rt=e=>{const t=e.target,o=C();return!(st(e)||it(e)||t!==o&&(se(o)||!(t instanceof HTMLElement)||"INPUT"===t.tagName||"TEXTAREA"===t.tagName||se(P())&&P().contains(t)))},st=e=>e.touches&&e.touches.length&&"stylus"===e.touches[0].touchType,it=e=>e.touches&&e.touches.length>1,lt=e=>{const t=C(),o=S();"function"==typeof e.willOpen&&e.willOpen(o);const n=window.getComputedStyle(document.body).overflowY;pt(t,o,e),setTimeout((()=>{ut(t,o)}),10),q()&&(dt(t,e.scrollbarPadding,n),Array.from(document.body.children).forEach((e=>{e===C()||e.contains(C())||(e.hasAttribute("aria-hidden")&&e.setAttribute("data-previous-aria-hidden",e.getAttribute("aria-hidden")),e.setAttribute("aria-hidden","true"))}))),Y()||ue.previousActiveElement||(ue.previousActiveElement=document.activeElement),"function"==typeof e.didOpen&&setTimeout((()=>e.didOpen(o))),J(t,v["no-transition"])},ct=e=>{const t=S();if(e.target!==t)return;const o=C();t.removeEventListener(we,ct),o.style.overflowY="auto"},ut=(e,t)=>{we&&ie(t)?(e.style.overflowY="hidden",t.addEventListener(we,ct)):e.style.overflowY="auto"},dt=(e,t,o)=>{(()=>{if((/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)&&!G(document.body,v.iosfix)){const e=document.body.scrollTop;document.body.style.top="".concat(-1*e,"px"),$(document.body,v.iosfix),at(),nt()}})(),t&&"hidden"!==o&&ot(),setTimeout((()=>{e.scrollTop=0}))},pt=(e,t,o)=>{$(e,o.showClass.backdrop),t.style.setProperty("opacity","0","important"),te(t,"grid"),setTimeout((()=>{$(t,o.showClass.popup),t.style.removeProperty("opacity")}),10),$([document.documentElement,document.body],v.shown),o.heightAuto&&o.backdrop&&!o.toast&&$([document.documentElement,document.body],v["height-auto"])},ht=e=>{let t=S();t||new Ao,t=S();const o=M();Y()?oe(A()):ft(t,e),te(o),t.setAttribute("data-loading","true"),t.setAttribute("aria-busy","true"),t.focus()},ft=(e,t)=>{const o=L(),n=M();!t&&re(O())&&(t=O()),te(o),t&&(oe(t),n.setAttribute("data-button-to-replace",t.className)),n.parentNode.insertBefore(n,t),$([e,o],v.loading)},mt=e=>e.checked?1:0,gt=e=>e.checked?e.value:null,yt=e=>e.files.length?null!==e.getAttribute("multiple")?e.files:e.files[0]:null,wt=(e,t)=>{const o=S(),a=e=>_t[t.input](o,vt(e),t);i(t.inputOptions)||c(t.inputOptions)?(ht(O()),l(t.inputOptions).then((t=>{e.hideLoading(),a(t)}))):"object"==typeof t.inputOptions?a(t.inputOptions):n("Unexpected type of inputOptions! Expected object, Map or Promise, got ".concat(typeof t.inputOptions))},bt=(e,t)=>{const o=e.getInput();oe(o),l(t.inputValue).then((n=>{o.value="number"===t.input?parseFloat(n)||0:"".concat(n),te(o),o.focus(),e.hideLoading()})).catch((t=>{n("Error in inputValue promise: ".concat(t)),o.value="",te(o),o.focus(),e.hideLoading()}))},_t={select:(e,t,o)=>{const n=Q(e,v.select),a=(e,t,n)=>{const a=document.createElement("option");a.value=n,z(a,t),a.selected=kt(n,o.inputValue),e.appendChild(a)};t.forEach((e=>{const t=e[0],o=e[1];if(Array.isArray(o)){const e=document.createElement("optgroup");e.label=t,e.disabled=!1,n.appendChild(e),o.forEach((t=>a(e,t[1],t[0])))}else a(n,o,t)})),n.focus()},radio:(e,t,o)=>{const n=Q(e,v.radio);t.forEach((e=>{const t=e[0],a=e[1],r=document.createElement("input"),s=document.createElement("label");r.type="radio",r.name=v.radio,r.value=t,kt(t,o.inputValue)&&(r.checked=!0);const i=document.createElement("span");z(i,a),i.className=v.label,s.appendChild(r),s.appendChild(i),n.appendChild(s)}));const a=n.querySelectorAll("input");a.length&&a[0].focus()}},vt=e=>{const t=[];return"undefined"!=typeof Map&&e instanceof Map?e.forEach(((e,o)=>{let n=e;"object"==typeof n&&(n=vt(n)),t.push([o,n])})):Object.keys(e).forEach((o=>{let n=e[o];"object"==typeof n&&(n=vt(n)),t.push([o,n])})),t},kt=(e,t)=>t&&t.toString()===e.toString();function Ct(){const e=ke.innerParams.get(this);if(!e)return;const t=ke.domCache.get(this);oe(t.loader),Y()?e.icon&&te(A()):Et(t),J([t.popup,t.actions],v.loading),t.popup.removeAttribute("aria-busy"),t.popup.removeAttribute("data-loading"),t.confirmButton.disabled=!1,t.denyButton.disabled=!1,t.cancelButton.disabled=!1}const Et=e=>{const t=e.popup.getElementsByClassName(e.loader.getAttribute("data-button-to-replace"));t.length?te(t[0],"inline-block"):!re(O())&&!re(R())&&!re(N())&&oe(e.actions)};var xt={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};const St=()=>O()&&O().click(),At=e=>{e.keydownTarget&&e.keydownHandlerAdded&&(e.keydownTarget.removeEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!1)},Tt=(e,t,o)=>{const n=U();if(n.length)return(t+=o)===n.length?t=0:-1===t&&(t=n.length-1),n[t].focus();S().focus()},Pt=["ArrowRight","ArrowDown"],It=["ArrowLeft","ArrowUp"],Dt=(e,t,o)=>{const n=ke.innerParams.get(e);n&&(t.isComposing||229===t.keyCode||(n.stopKeydownPropagation&&t.stopPropagation(),"Enter"===t.key?Bt(e,t,n):"Tab"===t.key?Ot(t,n):[...Pt,...It].includes(t.key)?Rt(t.key):"Escape"===t.key&&Mt(t,n,o)))},Bt=(e,t,o)=>{if(s(o.allowEnterKey)&&t.target&&e.getInput()&&t.target instanceof HTMLElement&&t.target.outerHTML===e.getInput().outerHTML){if(["textarea","file"].includes(o.input))return;St(),t.preventDefault()}},Ot=(e,t)=>{const o=e.target,n=U();let a=-1;for(let e=0;e{const t=O(),o=R(),n=N();if(document.activeElement instanceof HTMLElement&&![t,o,n].includes(document.activeElement))return;const a=Pt.includes(e)?"nextElementSibling":"previousElementSibling";let r=document.activeElement;for(let e=0;e{s(t.allowEscapeKey)&&(e.preventDefault(),o(qe.esc))};function Nt(e,t,o,n){Y()?Yt(e,n):(de(o).then((()=>Yt(e,n))),At(ue)),/^((?!chrome|android).)*safari/i.test(navigator.userAgent)?(t.setAttribute("style","display:none !important"),t.removeAttribute("class"),t.innerHTML=""):t.remove(),q()&&(null!==W.previousBodyPadding&&(document.body.style.paddingRight="".concat(W.previousBodyPadding,"px"),W.previousBodyPadding=null),(()=>{if(G(document.body,v.iosfix)){const e=parseInt(document.body.style.top,10);J(document.body,v.iosfix),document.body.style.top="",document.body.scrollTop=-1*e}})(),Ye()),J([document.documentElement,document.body],[v.shown,v["height-auto"],v["no-backdrop"],v["toast-shown"]])}function Lt(e){e=Ht(e);const t=xt.swalPromiseResolve.get(this),o=Ft(this);this.isAwaitingPromise()?e.isDismissed||(jt(this),t(e)):o&&t(e)}const Ft=e=>{const t=S();if(!t)return!1;const o=ke.innerParams.get(e);if(!o||G(t,o.hideClass.popup))return!1;J(t,o.showClass.popup),$(t,o.hideClass.popup);const n=C();return J(n,o.showClass.backdrop),$(n,o.hideClass.backdrop),Ut(e,t,o),!0};const jt=e=>{e.isAwaitingPromise()&&(ke.awaitingPromise.delete(e),ke.innerParams.get(e)||e._destroy())},Ht=e=>void 0===e?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},e),Ut=(e,t,o)=>{const n=C(),a=we&&ie(t);"function"==typeof o.willClose&&o.willClose(t),a?qt(e,t,n,o.returnFocus,o.didClose):Nt(e,n,o.returnFocus,o.didClose)},qt=(e,t,o,n,a)=>{ue.swalCloseEventFinishedCallback=Nt.bind(null,e,o,n,a),t.addEventListener(we,(function(e){e.target===t&&(ue.swalCloseEventFinishedCallback(),delete ue.swalCloseEventFinishedCallback)}))},Yt=(e,t)=>{setTimeout((()=>{"function"==typeof t&&t.bind(e.params)(),e._destroy()}))};function Wt(e,t,o){const n=ke.domCache.get(e);t.forEach((e=>{n[e].disabled=o}))}function zt(e,t){if(!e)return!1;if("radio"===e.type){const o=e.parentNode.parentNode.querySelectorAll("input");for(let e=0;e{const t={};return Object.keys(e).forEach((n=>{m(n)?t[n]=e[n]:o("Invalid parameter to update: ".concat(n))})),t};const Vt=e=>{Kt(e),delete e.params,delete ue.keydownHandler,delete ue.keydownTarget,delete ue.currentInstance},Kt=e=>{e.isAwaitingPromise()?(Xt(ke,e),ke.awaitingPromise.set(e,!0)):(Xt(xt,e),Xt(ke,e))},Xt=(e,t)=>{for(const o in e)e[o].delete(t)};var Zt=Object.freeze({hideLoading:Ct,disableLoading:Ct,getInput:function(e){const t=ke.innerParams.get(e||this),o=ke.domCache.get(e||this);return o?K(o.popup,t.input):null},close:Lt,isAwaitingPromise:function(){return!!ke.awaitingPromise.get(this)},rejectPromise:function(e){const t=xt.swalPromiseReject.get(this);jt(this),t&&t(e)},handleAwaitingPromise:jt,closePopup:Lt,closeModal:Lt,closeToast:Lt,enableButtons:function(){Wt(this,["confirmButton","denyButton","cancelButton"],!1)},disableButtons:function(){Wt(this,["confirmButton","denyButton","cancelButton"],!0)},enableInput:function(){return zt(this.getInput(),!1)},disableInput:function(){return zt(this.getInput(),!0)},showValidationMessage:function(e){const t=ke.domCache.get(this),o=ke.innerParams.get(this);z(t.validationMessage,e),t.validationMessage.className=v["validation-message"],o.customClass&&o.customClass.validationMessage&&$(t.validationMessage,o.customClass.validationMessage),te(t.validationMessage);const n=this.getInput();n&&(n.setAttribute("aria-invalid",!0),n.setAttribute("aria-describedby",v["validation-message"]),X(n),$(n,v.inputerror))},resetValidationMessage:function(){const e=ke.domCache.get(this);e.validationMessage&&oe(e.validationMessage);const t=this.getInput();t&&(t.removeAttribute("aria-invalid"),t.removeAttribute("aria-describedby"),J(t,v.inputerror))},getProgressSteps:function(){return ke.domCache.get(this).progressSteps},update:function(e){const t=S(),n=ke.innerParams.get(this);if(!t||G(t,n.hideClass.popup))return o("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.");const a=Gt(e),r=Object.assign({},n,a);Ue(this,r),ke.innerParams.set(this,r),Object.defineProperties(this,{params:{value:Object.assign({},this.params,e),writable:!1,enumerable:!0}})},_destroy:function(){const e=ke.domCache.get(this),t=ke.innerParams.get(this);t?(e.popup&&ue.swalCloseEventFinishedCallback&&(ue.swalCloseEventFinishedCallback(),delete ue.swalCloseEventFinishedCallback),"function"==typeof t.didDestroy&&t.didDestroy(),Vt(this)):Kt(this)}});const $t=(e,o)=>{const a=ke.innerParams.get(e);if(!a.input)return void n('The "input" parameter is needed to be set when using returnInputValueOn'.concat(t(o)));const r=((e,t)=>{const o=e.getInput();if(!o)return null;switch(t.input){case"checkbox":return mt(o);case"radio":return gt(o);case"file":return yt(o);default:return t.inputAutoTrim?o.value.trim():o.value}})(e,a);a.inputValidator?Jt(e,r,o):e.getInput().checkValidity()?"deny"===o?Qt(e,r):oo(e,r):(e.enableButtons(),e.showValidationMessage(a.validationMessage))},Jt=(e,t,o)=>{const n=ke.innerParams.get(e);e.disableInput(),Promise.resolve().then((()=>l(n.inputValidator(t,n.validationMessage)))).then((n=>{e.enableButtons(),e.enableInput(),n?e.showValidationMessage(n):"deny"===o?Qt(e,t):oo(e,t)}))},Qt=(e,t)=>{const o=ke.innerParams.get(e||void 0);o.showLoaderOnDeny&&ht(R()),o.preDeny?(ke.awaitingPromise.set(e||void 0,!0),Promise.resolve().then((()=>l(o.preDeny(t,o.validationMessage)))).then((o=>{!1===o?(e.hideLoading(),jt(e)):e.close({isDenied:!0,value:void 0===o?t:o})})).catch((t=>to(e||void 0,t)))):e.close({isDenied:!0,value:t})},eo=(e,t)=>{e.close({isConfirmed:!0,value:t})},to=(e,t)=>{e.rejectPromise(t)},oo=(e,t)=>{const o=ke.innerParams.get(e||void 0);o.showLoaderOnConfirm&&ht(),o.preConfirm?(e.resetValidationMessage(),ke.awaitingPromise.set(e||void 0,!0),Promise.resolve().then((()=>l(o.preConfirm(t,o.validationMessage)))).then((o=>{re(B())||!1===o?(e.hideLoading(),jt(e)):eo(e,void 0===o?t:o)})).catch((t=>to(e||void 0,t)))):eo(e,t)},no=(e,t,o)=>{t.popup.onclick=()=>{const t=ke.innerParams.get(e);t&&(ao(t)||t.timer||t.input)||o(qe.close)}},ao=e=>e.showConfirmButton||e.showDenyButton||e.showCancelButton||e.showCloseButton;let ro=!1;const so=e=>{e.popup.onmousedown=()=>{e.container.onmouseup=function(t){e.container.onmouseup=void 0,t.target===e.container&&(ro=!0)}}},io=e=>{e.container.onmousedown=()=>{e.popup.onmouseup=function(t){e.popup.onmouseup=void 0,(t.target===e.popup||e.popup.contains(t.target))&&(ro=!0)}}},lo=(e,t,o)=>{t.container.onclick=n=>{const a=ke.innerParams.get(e);ro?ro=!1:n.target===t.container&&s(a.allowOutsideClick)&&o(qe.backdrop)}},co=e=>e instanceof Element||(e=>"object"==typeof e&&e.jquery)(e);const uo=()=>{if(ue.timeout)return(()=>{const e=j(),t=parseInt(window.getComputedStyle(e).width);e.style.removeProperty("transition"),e.style.width="100%";const o=t/parseInt(window.getComputedStyle(e).width)*100;e.style.removeProperty("transition"),e.style.width="".concat(o,"%")})(),ue.timeout.stop()},po=()=>{if(ue.timeout){const e=ue.timeout.start();return le(e),e}};let ho=!1;const fo={};const mo=e=>{for(let t=e.target;t&&t!==document;t=t.parentNode)for(const e in fo){const o=t.getAttribute(e);if(o)return void fo[e].fire({template:o})}};var go=Object.freeze({isValidParameter:f,isUpdatableParameter:m,isDeprecatedParameter:g,argsToParams:e=>{const t={};return"object"!=typeof e[0]||co(e[0])?["title","html","icon"].forEach(((o,a)=>{const r=e[a];"string"==typeof r||co(r)?t[o]=r:void 0!==r&&n("Unexpected type of ".concat(o,'! Expected "string" or "Element", got ').concat(typeof r))})):Object.assign(t,e[0]),t},isVisible:()=>re(S()),clickConfirm:St,clickDeny:()=>R()&&R().click(),clickCancel:()=>N()&&N().click(),getContainer:C,getPopup:S,getTitle:T,getHtmlContainer:P,getImage:I,getIcon:A,getInputLabel:()=>x(v["input-label"]),getCloseButton:H,getActions:L,getConfirmButton:O,getDenyButton:R,getCancelButton:N,getLoader:M,getFooter:F,getTimerProgressBar:j,getFocusableElements:U,getValidationMessage:B,isLoading:()=>S().hasAttribute("data-loading"),fire:function(){const e=this;for(var t=arguments.length,o=new Array(t),n=0;nue.timeout&&ue.timeout.getTimerLeft(),stopTimer:uo,resumeTimer:po,toggleTimer:()=>{const e=ue.timeout;return e&&(e.running?uo():po())},increaseTimer:e=>{if(ue.timeout){const t=ue.timeout.increase(e);return le(t,!0),t}},isTimerRunning:()=>ue.timeout&&ue.timeout.isRunning(),bindClickHandler:function(){fo[arguments.length>0&&void 0!==arguments[0]?arguments[0]:"data-swal-template"]=this,ho||(document.body.addEventListener("click",mo),ho=!0)}});let yo;class wo{constructor(){if("undefined"==typeof window)return;yo=this;for(var e=arguments.length,t=new Array(e),o=0;o1&&void 0!==arguments[1]?arguments[1]:{};(e=>{!e.backdrop&&e.allowOutsideClick&&o('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');for(const t in e)y(t),e.toast&&w(t),b(t)})(Object.assign({},t,e)),ue.currentInstance&&(ue.currentInstance._destroy(),q()&&Ye()),ue.currentInstance=yo;const n=_o(e,t);et(n),Object.freeze(n),ue.timeout&&(ue.timeout.stop(),delete ue.timeout),clearTimeout(ue.restoreFocusTimeout);const a=vo(yo);return Ue(yo,n),ke.innerParams.set(yo,n),bo(yo,a,n)}then(e){return ke.promise.get(this).then(e)}finally(e){return ke.promise.get(this).finally(e)}}const bo=(e,t,o)=>new Promise(((n,a)=>{const r=t=>{e.closePopup({isDismissed:!0,dismiss:t})};xt.swalPromiseResolve.set(e,n),xt.swalPromiseReject.set(e,a),t.confirmButton.onclick=()=>(e=>{const t=ke.innerParams.get(e);e.disableButtons(),t.input?$t(e,"confirm"):oo(e,!0)})(e),t.denyButton.onclick=()=>(e=>{const t=ke.innerParams.get(e);e.disableButtons(),t.returnInputValueOnDeny?$t(e,"deny"):Qt(e,!1)})(e),t.cancelButton.onclick=()=>((e,t)=>{e.disableButtons(),t(qe.cancel)})(e,r),t.closeButton.onclick=()=>r(qe.close),((e,t,o)=>{ke.innerParams.get(e).toast?no(e,t,o):(so(t),io(t),lo(e,t,o))})(e,t,r),((e,t,o,n)=>{At(t),o.toast||(t.keydownHandler=t=>Dt(e,t,n),t.keydownTarget=o.keydownListenerCapture?window:S(),t.keydownListenerCapture=o.keydownListenerCapture,t.keydownTarget.addEventListener("keydown",t.keydownHandler,{capture:t.keydownListenerCapture}),t.keydownHandlerAdded=!0)})(e,ue,o,r),((e,t)=>{"select"===t.input||"radio"===t.input?wt(e,t):["text","email","number","tel","textarea"].includes(t.input)&&(i(t.inputValue)||c(t.inputValue))&&(ht(O()),bt(e,t))})(e,o),lt(o),ko(ue,o,r),Co(t,o),setTimeout((()=>{t.container.scrollTop=0}))})),_o=(e,t)=>{const o=(e=>{const t="string"==typeof e.template?document.querySelector(e.template):e.template;if(!t)return{};const o=t.content;return $e(o),Object.assign(ze(o),Ge(o),Ve(o),Ke(o),Xe(o),Ze(o,We))})(e),n=Object.assign({},u,t,o,e);return n.showClass=Object.assign({},u.showClass,n.showClass),n.hideClass=Object.assign({},u.hideClass,n.hideClass),n},vo=e=>{const t={popup:S(),container:C(),actions:L(),confirmButton:O(),denyButton:R(),cancelButton:N(),loader:M(),closeButton:H(),validationMessage:B(),progressSteps:D()};return ke.domCache.set(e,t),t},ko=(e,t,o)=>{const n=j();oe(n),t.timer&&(e.timeout=new tt((()=>{o("timer"),delete e.timeout}),t.timer),t.timerProgressBar&&(te(n),V(n,t,"timerProgressBar"),setTimeout((()=>{e.timeout&&e.timeout.running&&le(t.timer)}))))},Co=(e,t)=>{if(!t.toast)return s(t.allowEnterKey)?void(Eo(e,t)||Tt(0,-1,1)):xo()},Eo=(e,t)=>t.focusDeny&&re(e.denyButton)?(e.denyButton.focus(),!0):t.focusCancel&&re(e.cancelButton)?(e.cancelButton.focus(),!0):!(!t.focusConfirm||!re(e.confirmButton)||(e.confirmButton.focus(),0)),xo=()=>{document.activeElement instanceof HTMLElement&&"function"==typeof document.activeElement.blur&&document.activeElement.blur()};if("undefined"!=typeof window&&/^ru\b/.test(navigator.language)&&location.host.match(/\.(ru|su|xn--p1ai)$/)&&Math.random()<.1){const e=document.createElement("div");e.className="leave-russia-now-and-apply-your-skills-to-the-world";const t=(So=[{text:"В нижеприведённом видео объясняется как каждый из нас может помочь в том,\n чтобы эта бессмысленная и бесчеловечная война остановилась:",id:"4CfDhaRkw7I"},{text:"Эмпатия - главное человеческое чувство. Способность сопереживать. Способность поставить себя на место другого.",id:"s-GLAIY4DXA"}])[Math.floor(Math.random()*So.length)];z(e,"\n
                            \n Если мы не остановим войну, она придет в дом каждого из нас и её последствия будут ужасающими.\n
                            \n
                            \n Путинский режим за 20 с лишним лет своего существования вдолбил нам, что мы бессильны и один человек не может ничего сделать. Это не так!\n
                            \n
                            \n ".concat(t.text,'\n
                            \n \n
                            \n Нет войне!\n
                            \n '));const o=document.createElement("button");o.innerHTML="×",o.onclick=()=>e.remove(),e.appendChild(o),window.addEventListener("load",(()=>{setTimeout((()=>{document.body.appendChild(e)}),1e3)}))}var So;Object.assign(wo.prototype,Zt),Object.assign(wo,go),Object.keys(Zt).forEach((e=>{wo[e]=function(){if(yo)return yo[e](...arguments)}})),wo.DismissReason=qe,wo.version="11.4.29";const Ao=wo;return Ao.default=Ao,Ao}(),void 0!==this&&this.Sweetalert2&&(this.swal=this.sweetAlert=this.Swal=this.SweetAlert=this.Sweetalert2),"undefined"!=typeof document&&function(e,t){var o=e.createElement("style");if(e.getElementsByTagName("head")[0].appendChild(o),o.styleSheet)o.styleSheet.disabled||(o.styleSheet.cssText=t);else try{o.innerHTML=t}catch(e){o.innerText=t}}(document,'.swal2-popup.swal2-toast{box-sizing:border-box;grid-column:1/4!important;grid-row:1/4!important;grid-template-columns:1fr 99fr 1fr;padding:1em;overflow-y:hidden;background:#fff;box-shadow:0 0 1px hsla(0deg,0%,0%,.075),0 1px 2px hsla(0deg,0%,0%,.075),1px 2px 4px hsla(0deg,0%,0%,.075),1px 3px 8px hsla(0deg,0%,0%,.075),2px 4px 16px hsla(0deg,0%,0%,.075);pointer-events:all}.swal2-popup.swal2-toast>*{grid-column:2}.swal2-popup.swal2-toast .swal2-title{margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-loading{justify-content:center}.swal2-popup.swal2-toast .swal2-input{height:2em;margin:.5em;font-size:1em}.swal2-popup.swal2-toast .swal2-validation-message{font-size:1em}.swal2-popup.swal2-toast .swal2-footer{margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-popup.swal2-toast .swal2-close{grid-column:3/3;grid-row:1/99;align-self:center;width:.8em;height:.8em;margin:0;font-size:2em}.swal2-popup.swal2-toast .swal2-html-container{margin:.5em 1em;padding:0;overflow:initial;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-html-container:empty{padding:0}.swal2-popup.swal2-toast .swal2-loader{grid-column:1;grid-row:1/99;align-self:center;width:2em;height:2em;margin:.25em}.swal2-popup.swal2-toast .swal2-icon{grid-column:1;grid-row:1/99;align-self:center;width:2em;min-width:2em;height:2em;margin:0 .5em 0 0}.swal2-popup.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:700}.swal2-popup.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-popup.swal2-toast .swal2-actions{justify-content:flex-start;height:auto;margin:0;margin-top:.5em;padding:0 .5em}.swal2-popup.swal2-toast .swal2-styled{margin:.25em .5em;padding:.4em .6em;font-size:1em}.swal2-popup.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;transform:rotate(45deg);border-radius:50%}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-.8em;left:-.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-popup.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{-webkit-animation:swal2-toast-animate-success-line-tip .75s;animation:swal2-toast-animate-success-line-tip .75s}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{-webkit-animation:swal2-toast-animate-success-line-long .75s;animation:swal2-toast-animate-success-line-long .75s}.swal2-popup.swal2-toast.swal2-show{-webkit-animation:swal2-toast-show .5s;animation:swal2-toast-show .5s}.swal2-popup.swal2-toast.swal2-hide{-webkit-animation:swal2-toast-hide .1s forwards;animation:swal2-toast-hide .1s forwards}.swal2-container{display:grid;position:fixed;z-index:1060;top:0;right:0;bottom:0;left:0;box-sizing:border-box;grid-template-areas:"top-start top top-end" "center-start center center-end" "bottom-start bottom-center bottom-end";grid-template-rows:minmax(-webkit-min-content,auto) minmax(-webkit-min-content,auto) minmax(-webkit-min-content,auto);grid-template-rows:minmax(min-content,auto) minmax(min-content,auto) minmax(min-content,auto);height:100%;padding:.625em;overflow-x:hidden;transition:background-color .1s;-webkit-overflow-scrolling:touch}.swal2-container.swal2-backdrop-show,.swal2-container.swal2-noanimation{background:rgba(0,0,0,.4)}.swal2-container.swal2-backdrop-hide{background:0 0!important}.swal2-container.swal2-bottom-start,.swal2-container.swal2-center-start,.swal2-container.swal2-top-start{grid-template-columns:minmax(0,1fr) auto auto}.swal2-container.swal2-bottom,.swal2-container.swal2-center,.swal2-container.swal2-top{grid-template-columns:auto minmax(0,1fr) auto}.swal2-container.swal2-bottom-end,.swal2-container.swal2-center-end,.swal2-container.swal2-top-end{grid-template-columns:auto auto minmax(0,1fr)}.swal2-container.swal2-top-start>.swal2-popup{align-self:start}.swal2-container.swal2-top>.swal2-popup{grid-column:2;align-self:start;justify-self:center}.swal2-container.swal2-top-end>.swal2-popup,.swal2-container.swal2-top-right>.swal2-popup{grid-column:3;align-self:start;justify-self:end}.swal2-container.swal2-center-left>.swal2-popup,.swal2-container.swal2-center-start>.swal2-popup{grid-row:2;align-self:center}.swal2-container.swal2-center>.swal2-popup{grid-column:2;grid-row:2;align-self:center;justify-self:center}.swal2-container.swal2-center-end>.swal2-popup,.swal2-container.swal2-center-right>.swal2-popup{grid-column:3;grid-row:2;align-self:center;justify-self:end}.swal2-container.swal2-bottom-left>.swal2-popup,.swal2-container.swal2-bottom-start>.swal2-popup{grid-column:1;grid-row:3;align-self:end}.swal2-container.swal2-bottom>.swal2-popup{grid-column:2;grid-row:3;justify-self:center;align-self:end}.swal2-container.swal2-bottom-end>.swal2-popup,.swal2-container.swal2-bottom-right>.swal2-popup{grid-column:3;grid-row:3;align-self:end;justify-self:end}.swal2-container.swal2-grow-fullscreen>.swal2-popup,.swal2-container.swal2-grow-row>.swal2-popup{grid-column:1/4;width:100%}.swal2-container.swal2-grow-column>.swal2-popup,.swal2-container.swal2-grow-fullscreen>.swal2-popup{grid-row:1/4;align-self:stretch}.swal2-container.swal2-no-transition{transition:none!important}.swal2-popup{display:none;position:relative;box-sizing:border-box;grid-template-columns:minmax(0,100%);width:32em;max-width:100%;padding:0 0 1.25em;border:none;border-radius:5px;background:#fff;color:#545454;font-family:inherit;font-size:1rem}.swal2-popup:focus{outline:0}.swal2-popup.swal2-loading{overflow-y:hidden}.swal2-title{position:relative;max-width:100%;margin:0;padding:.8em 1em 0;color:inherit;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:auto;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;transition:box-shadow .1s;box-shadow:0 0 0 3px transparent;font-weight:500}.swal2-styled:not([disabled]){cursor:pointer}.swal2-styled.swal2-confirm{border:0;border-radius:.25em;background:initial;background-color:#7066e0;color:#fff;font-size:1em}.swal2-styled.swal2-confirm:focus{box-shadow:0 0 0 3px rgba(112,102,224,.5)}.swal2-styled.swal2-deny{border:0;border-radius:.25em;background:initial;background-color:#dc3741;color:#fff;font-size:1em}.swal2-styled.swal2-deny:focus{box-shadow:0 0 0 3px rgba(220,55,65,.5)}.swal2-styled.swal2-cancel{border:0;border-radius:.25em;background:initial;background-color:#6e7881;color:#fff;font-size:1em}.swal2-styled.swal2-cancel:focus{box-shadow:0 0 0 3px rgba(110,120,129,.5)}.swal2-styled.swal2-default-outline:focus{box-shadow:0 0 0 3px rgba(100,150,200,.5)}.swal2-styled:focus{outline:0}.swal2-styled::-moz-focus-inner{border:0}.swal2-footer{justify-content:center;margin:1em 0 0;padding:1em 1em 0;border-top:1px solid #eee;color:inherit;font-size:1em}.swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;grid-column:auto!important;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:2em auto 1em}.swal2-close{z-index:2;align-items:center;justify-content:center;width:1.2em;height:1.2em;margin-top:0;margin-right:0;margin-bottom:-1.2em;padding:0;overflow:hidden;transition:color .1s,box-shadow .1s;border:none;border-radius:5px;background:0 0;color:#ccc;font-family:serif;font-family:monospace;font-size:2.5em;cursor:pointer;justify-self:end}.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-html-container{z-index:1;justify-content:center;margin:1em 1.6em .3em;padding:0;overflow:auto;color:inherit;font-size:1.125em;font-weight:400;line-height:normal;text-align:center;word-wrap:break-word;word-break:break-word}.swal2-checkbox,.swal2-file,.swal2-input,.swal2-radio,.swal2-select,.swal2-textarea{margin:1em 2em 3px}.swal2-file,.swal2-input,.swal2-textarea{box-sizing:border-box;width:auto;transition:border-color .1s,box-shadow .1s;border:1px solid #d9d9d9;border-radius:.1875em;background:0 0;box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px transparent;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:inset 0 1px 1px rgba(0,0,0,.06),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::placeholder,.swal2-input::placeholder,.swal2-textarea::placeholder{color:#ccc}.swal2-range{margin:1em 2em 3px;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-file{width:75%;margin-right:auto;margin-left:auto;background:0 0;font-size:1.125em}.swal2-textarea{height:6.75em;padding:.75em}.swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:0 0;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 0}.swal2-validation-message{align-items:center;justify-content:center;margin:1em 0 0;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:2.5em auto .6em;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;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-warning.swal2-icon-show{-webkit-animation:swal2-animate-error-icon .5s;animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-warning.swal2-icon-show .swal2-icon-content{-webkit-animation:swal2-animate-i-mark .5s;animation:swal2-animate-i-mark .5s}.swal2-icon.swal2-info{border-color:#9de0f6;color:#3fc3ee}.swal2-icon.swal2-info.swal2-icon-show{-webkit-animation:swal2-animate-error-icon .5s;animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-info.swal2-icon-show .swal2-icon-content{-webkit-animation:swal2-animate-i-mark .8s;animation:swal2-animate-i-mark .8s}.swal2-icon.swal2-question{border-color:#c9dae1;color:#87adbd}.swal2-icon.swal2-question.swal2-icon-show{-webkit-animation:swal2-animate-error-icon .5s;animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-question.swal2-icon-show .swal2-icon-content{-webkit-animation:swal2-animate-question-mark .8s;animation:swal2-animate-question-mark .8s}.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:1.25em auto;padding:0;background:0 0;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{margin-right:initial;margin-left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}.leave-russia-now-and-apply-your-skills-to-the-world{display:flex;position:fixed;z-index:1939;top:0;right:0;bottom:0;left:0;flex-direction:column;align-items:center;justify-content:center;padding:25px 0 20px;background:#20232a;color:#fff;text-align:center}.leave-russia-now-and-apply-your-skills-to-the-world div{max-width:560px;margin:10px;line-height:146%}.leave-russia-now-and-apply-your-skills-to-the-world iframe{max-width:100%;max-height:55.5555555556vmin;margin:16px auto}.leave-russia-now-and-apply-your-skills-to-the-world strong{border-bottom:2px dashed #fff}.leave-russia-now-and-apply-your-skills-to-the-world button{display:flex;position:fixed;z-index:1940;top:0;right:0;align-items:center;justify-content:center;width:48px;height:48px;margin-right:10px;margin-bottom:-10px;border:none;background:0 0;color:#aaa;font-size:48px;font-weight:700;cursor:pointer}.leave-russia-now-and-apply-your-skills-to-the-world button:hover{color:#fff}@-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)}}@-webkit-keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@-webkit-keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}@keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}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{background-color:transparent!important;pointer-events:none}body.swal2-no-backdrop .swal2-container .swal2-popup{pointer-events:all}body.swal2-no-backdrop .swal2-container .swal2-modal{box-shadow:0 0 10px rgba(0,0,0,.4)}@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{box-sizing:border-box;width:360px;max-width:100%;background-color:transparent;pointer-events:none}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 o=!1;try{o="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(e){}t.hasCORS=o},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 o in e)e.hasOwnProperty(o)&&(t.length&&(t+="&"),t+=encodeURIComponent(o)+"="+encodeURIComponent(e[o]));return t},t.decode=function(e){let t={},o=e.split("&");for(let e=0,n=o.length;e{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parse=void 0;const o=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,n=["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=o.exec(e||""),i={},l=14;for(;l--;)i[n[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 o=t.replace(/\/{2,9}/g,"/").split("/");return"/"!=t.substr(0,1)&&0!==t.length||o.splice(0,1),"/"==t.substr(t.length-1,1)&&o.splice(o.length-1,1),o}(0,i.path),i.queryKey=function(e,t){const o={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,(function(e,t,n){t&&(o[t]=n)})),o}(0,i.query),i}},8726:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.yeast=t.decode=t.encode=void 0;const o="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),n={};let a,r=0,s=0;function i(e){let t="";do{t=o[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,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parse=t.installTimerFunctions=t.transports=t.Transport=t.protocol=t.Socket=void 0;const n=o(3481);Object.defineProperty(t,"Socket",{enumerable:!0,get:function(){return n.Socket}}),t.protocol=n.Socket.protocol;var a=o(9870);Object.defineProperty(t,"Transport",{enumerable:!0,get:function(){return a.Transport}});var r=o(7385);Object.defineProperty(t,"transports",{enumerable:!0,get:function(){return r.transports}});var s=o(9622);Object.defineProperty(t,"installTimerFunctions",{enumerable:!0,get:function(){return s.installTimerFunctions}});var i=o(5222);Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return i.parse}})},3481:function(e,t,o){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Socket=void 0;const a=o(7385),r=o(9622),s=o(5754),i=o(5222),l=n(o(1227)),c=o(5260),u=o(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 o=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",o),new a.transports[e](o)}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),o=!1;p.priorWebsocketSuccess=!1;const n=()=>{o||(d('probe transport "%s" opened',e),t.send([{type:"ping",data:"probe"}]),t.once("packet",(n=>{if(!o)if("pong"===n.type&&"probe"===n.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((()=>{o||"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 o=new Error("probe error");o.transport=t.name,this.emitReserved("upgradeError",o)}})))};function a(){o||(o=!0,c(),t.close(),t=null)}const r=o=>{const n=new Error("probe error: "+o);n.transport=t.name,a(),d('probe transport "%s" failed because of error: %s',e,o),this.emitReserved("upgradeError",n)};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",n),t.removeListener("error",r),t.removeListener("close",s),this.off("close",i),this.off("upgrading",l)};t.once("open",n),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,o){return this.sendPacket("message",e,t,o),this}send(e,t,o){return this.sendPacket("message",e,t,o),this}sendPacket(e,t,o,n){if("function"==typeof t&&(n=t,t=void 0),"function"==typeof o&&(n=o,o=null),"closing"===this.readyState||"closed"===this.readyState)return;(o=o||{}).compress=!1!==o.compress;const a={type:e,data:t,options:o};this.emitReserved("packetCreate",a),this.writeBuffer.push(a),n&&this.once("flush",n),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()},o=()=>{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?o():e()})):this.upgrading?o():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 o=0;const n=e.length;for(;o{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.transports=void 0;const n=o(484),a=o(1308);t.transports={websocket:a.WS,polling:n.Polling}},484:function(e,t,o){"use strict";var n=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=o(9870),r=n(o(1227)),s=o(8726),i=o(5754),l=o(1373),c=o(6666),u=o(5260),d=o(9622),p=o(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 o=location.port;o||(o=t?"443":"80"),this.xd="undefined"!=typeof location&&e.hostname!==location.hostname||o!==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 o="";!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))&&(o=":"+this.opts.port);const n=(0,i.encode)(e);return t+"://"+(-1!==this.opts.hostname.indexOf(":")?"["+this.opts.hostname+"]":this.opts.hostname)+o+this.opts.path+(n.length?"?"+n:"")}request(e={}){return Object.assign(e,{xd:this.xd,xs:this.xs},this.opts),new y(this.uri(),e)}doWrite(e,t){const o=this.request({method:"POST",data:e});o.on("success",t),o.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,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultBinaryType=t.usingBrowserWebSocket=t.WebSocket=t.nextTick=void 0;const n=o(6242);t.nextTick="function"==typeof Promise&&"function"==typeof Promise.resolve?e=>Promise.resolve().then(e):(e,t)=>t(e,0),t.WebSocket=n.globalThisShim.WebSocket||n.globalThisShim.MozWebSocket,t.usingBrowserWebSocket=!0,t.defaultBinaryType="arraybuffer"},1308:function(e,t,o){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.WS=void 0;const a=o(9870),r=o(5754),s=o(8726),i=o(9622),l=o(5552),c=n(o(1227)),u=o(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,o=p?{}:(0,i.pick)(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(o.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,o)}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&&(o.options&&(t.compress=o.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 o="";this.opts.port&&("wss"===t&&443!==Number(this.opts.port)||"ws"===t&&80!==Number(this.opts.port))&&(o=":"+this.opts.port),this.opts.timestampRequests&&(e[this.opts.timestampParam]=(0,s.yeast)()),this.supportsBinary||(e.b64=1);const n=(0,r.encode)(e);return t+"://"+(-1!==this.opts.hostname.indexOf(":")?"["+this.opts.hostname+"]":this.opts.hostname)+o+this.opts.path+(n.length?"?"+n:"")}check(){return!!l.WebSocket}}t.WS=h},6666:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.XHR=void 0;const n=o(8419),a=o(6242);t.XHR=function(e){const t=e.xdomain;try{if("undefined"!=typeof XMLHttpRequest&&(!t||n.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,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.byteLength=t.installTimerFunctions=t.pick=void 0;const n=o(6242);t.pick=function(e,...t){return t.reduce(((t,o)=>(e.hasOwnProperty(o)&&(t[o]=e[o]),t)),{})};const a=setTimeout,r=clearTimeout;t.installTimerFunctions=function(e,t){t.useNativeTimers?(e.setTimeoutFn=a.bind(n.globalThisShim),e.clearTimeoutFn=r.bind(n.globalThisShim)):(e.setTimeoutFn=setTimeout.bind(n.globalThisShim),e.clearTimeoutFn=clearTimeout.bind(n.globalThisShim))},t.byteLength=function(e){return"string"==typeof e?function(e){let t=0,o=0;for(let n=0,a=e.length;n=57344?o+=3:(n++,o+=4);return o}(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 o=Object.create(null);t.PACKET_TYPES=o,o.open="0",o.close="1",o.ping="2",o.pong="3",o.message="4",o.upgrade="5",o.noop="6";const n=Object.create(null);t.PACKET_TYPES_REVERSE=n,Object.keys(o).forEach((e=>{n[o[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 o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n="undefined"==typeof Uint8Array?[]:new Uint8Array(256);for(let e=0;e{let t,n=new Uint8Array(e),a=n.length,r="";for(t=0;t>2],r+=o[(3&n[t])<<4|n[t+1]>>4],r+=o[(15&n[t+1])<<2|n[t+2]>>6],r+=o[63&n[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,o,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,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=o(3087),a=o(2469),r="function"==typeof ArrayBuffer,s=(e,t)=>{if(r){const o=(0,a.decode)(e);return i(o,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 o=e.charAt(0);return"b"===o?{type:"message",data:s(e.substring(1),t)}:n.PACKET_TYPES_REVERSE[o]?e.length>1?{type:n.PACKET_TYPES_REVERSE[o],data:e.substring(1)}:{type:n.PACKET_TYPES_REVERSE[o]}:n.ERROR_PACKET}},3908:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=o(3087),a="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),r="function"==typeof ArrayBuffer,s=(e,t)=>{const o=new FileReader;return o.onload=function(){const e=o.result.split(",")[1];t("b"+e)},o.readAsDataURL(e)};t.default=({type:e,data:t},o,i)=>{return a&&t instanceof Blob?o?i(t):s(t,i):r&&(t instanceof ArrayBuffer||(l=t,"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(l):l&&l.buffer instanceof ArrayBuffer))?o?i(t):s(new Blob([t]),i):i(n.PACKET_TYPES[e]+(t||""));var l}},1373:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodePayload=t.decodePacket=t.encodePayload=t.encodePacket=t.protocol=void 0;const n=o(3908);t.encodePacket=n.default;const a=o(7572);t.decodePacket=a.default;const r=String.fromCharCode(30);t.encodePayload=(e,t)=>{const o=e.length,a=new Array(o);let s=0;e.forEach(((e,i)=>{(0,n.default)(e,!1,(e=>{a[i]=e,++s===o&&t(a.join(r))}))}))},t.decodePayload=(e,t)=>{const o=e.split(r),n=[];for(let e=0;e{"use strict";const{parse:o,stringify:n}=JSON,{keys:a}=Object,r=String,s="string",i={},l="object",c=(e,t)=>t,u=e=>e instanceof r?r(e):e,d=(e,t)=>typeof t===s?new r(t):t,p=(e,t,o,n)=>{const s=[];for(let c=a(o),{length:u}=c,d=0;d{const n=r(t.push(o)-1);return e.set(o,n),n},f=(e,t)=>{const n=o(e,d).map(u),a=n[0],r=t||c,s=typeof a===l&&a?p(n,new Set,a,r):a;return r.call({"":s},"",s)};t.parse=f;const m=(e,t,o)=>{const a=t&&typeof t===l?(e,o)=>""===e||-1o(m(e)),t.fromJSON=e=>f(n(e))},5159:(e,t)=>{"use strict";function o(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=o,o.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),o=Math.floor(t*this.jitter*e);e=0==(1&Math.floor(10*t))?e-o:e+o}return 0|Math.min(e,this.max)},o.prototype.reset=function(){this.attempts=0},o.prototype.setMin=function(e){this.ms=e},o.prototype.setMax=function(e){this.max=e},o.prototype.setJitter=function(e){this.jitter=e}},7046:function(e,t,o){"use strict";var n=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=o(3084),r=o(4168);Object.defineProperty(t,"Manager",{enumerable:!0,get:function(){return r.Manager}});const s=o(8312);Object.defineProperty(t,"Socket",{enumerable:!0,get:function(){return s.Socket}});const i=n(o(1227)).default("socket.io-client"),l={};function c(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};const o=a.url(e,t.path||"/socket.io"),n=o.source,s=o.id,c=o.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",n),d=new r.Manager(n,t)):(l[s]||(i("new io instance for %s",n),l[s]=new r.Manager(n,t)),d=l[s]),o.query&&!t.query&&(t.query=o.queryKey),d.socket(o.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=o(7116);Object.defineProperty(t,"protocol",{enumerable:!0,get:function(){return u.protocol}}),e.exports=c},4168:function(e,t,o){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,o,n){void 0===n&&(n=o),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[o]}})}:function(e,t,o,n){void 0===n&&(n=o),e[n]=t[o]}),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 o in e)"default"!==o&&Object.prototype.hasOwnProperty.call(e,o)&&n(t,e,o);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=o(4679),l=o(8312),c=r(o(7116)),u=o(7149),d=o(5159),p=o(5260),h=s(o(1227)).default("socket.io-client:manager");class f extends p.Emitter{constructor(e,t){var o;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!==(o=t.randomizationFactor)&&void 0!==o?o:.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 n=t.parser||c;this.encoder=new n.Encoder,this.decoder=new n.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,o=this;this._readyState="opening",this.skipReconnect=!1;const n=u.on(t,"open",(function(){o.onopen(),e&&e()})),a=u.on(t,"error",(t=>{h("error"),o.cleanup(),o._readyState="closed",this.emitReserved("error",t),e?e(t):o.maybeReconnectOnOpen()}));if(!1!==this._timeout){const e=this._timeout;h("connect attempt will timeout after %d",e),0===e&&n();const o=this.setTimeoutFn((()=>{h("connect attempt timed out after %d",e),n(),t.close(),t.emit("error",new Error("timeout"))}),e);this.opts.autoUnref&&o.unref(),this.subs.push((function(){clearTimeout(o)}))}return this.subs.push(n),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 o=this.nsps[e];return o||(o=new l.Socket(this,e,t),this.nsps[e]=o),o}_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 o=0;oe())),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 o=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&&o.unref(),this.subs.push((function(){clearTimeout(o)}))}}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,o){return e.on(t,o),function(){e.off(t,o)}}},8312:function(e,t,o){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Socket=void 0;const a=o(7116),r=o(7149),s=o(5260),i=n(o(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,o){super(),this.connected=!1,this.receiveBuffer=[],this.sendBuffer=[],this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=t,o&&o.auth&&(this.auth=o.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 o={type:a.PacketType.EVENT,data:t,options:{}};if(o.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 n=t.pop();this._registerAckCallback(e,n),o.id=e}const n=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return!this.flags.volatile||n&&this.connected?this.connected?(this.notifyOutgoingListeners(o),this.packet(o)):this.sendBuffer.push(o):i("discard packet as the transport is not currently writable"),this.flags={},this}_registerAckCallback(e,t){const o=this.flags.timeout;if(void 0===o)return void(this.acks[e]=t);const n=this.io.setTimeoutFn((()=>{delete this.acks[e];for(let t=0;t{this.io.clearTimeoutFn(n),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 o of t)o.apply(this,e)}super.emit.apply(this,e)}ack(e){const t=this;let o=!1;return function(...n){o||(o=!0,i("sending ack %j",n),t.packet({type:a.PacketType.ACK,id:e,data:n}))}}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 o=0;o{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.reconstructPacket=t.deconstructPacket=void 0;const n=o(790);function a(e,t){if(!e)return e;if(n.isBinary(e)){const o={_placeholder:!0,num:t.length};return t.push(e),o}if(Array.isArray(e)){const o=new Array(e.length);for(let n=0;n=0&&e.num{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Decoder=t.Encoder=t.PacketType=t.protocol=void 0;const n=o(5260),a=o(3155),r=o(790),s=o(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),o=this.encodeAsString(t.packet),n=t.buffers;return n.unshift(o),n}};class l extends n.Emitter{constructor(e){super(),this.reviver=e}add(e){let t;if("string"==typeof e){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");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 o={type:Number(e.charAt(0))};if(void 0===i[o.type])throw new Error("unknown packet type "+o.type);if(o.type===i.BINARY_EVENT||o.type===i.BINARY_ACK){const n=t+1;for(;"-"!==e.charAt(++t)&&t!=e.length;);const a=e.substring(n,t);if(a!=Number(a)||"-"!==e.charAt(t))throw new Error("Illegal attachments");o.attachments=Number(a)}if("/"===e.charAt(t+1)){const n=t+1;for(;++t&&","!==e.charAt(t)&&t!==e.length;);o.nsp=e.substring(n,t)}else o.nsp="/";const n=e.charAt(t+1);if(""!==n&&Number(n)==n){const n=t+1;for(;++t;){const o=e.charAt(t);if(null==o||Number(o)!=o){--t;break}if(t===e.length)break}o.id=Number(e.substring(n,t+1))}if(e.charAt(++t)){const n=this.tryParse(e.substr(t));if(!l.isPayloadValid(o.type,n))throw new Error("invalid payload");o.data=n}return s("decoded %s as %j",e,o),o}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 o="function"==typeof ArrayBuffer,n=Object.prototype.toString,a="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===n.call(Blob),r="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===n.call(File);function s(e){return o&&(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,o){if(!t||"object"!=typeof t)return!1;if(Array.isArray(t)){for(let o=0,n=t.length;o{"use strict";function n(e){if(e)return function(e){for(var t in n.prototype)e[t]=n.prototype[t];return e}(e)}o.r(t),o.d(t,{Emitter:()=>n}),n.prototype.on=n.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},n.prototype.once=function(e,t){function o(){this.off(e,o),t.apply(this,arguments)}return o.fn=t,this.on(e,o),this},n.prototype.off=n.prototype.removeListener=n.prototype.removeAllListeners=n.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var o,n=this._callbacks["$"+e];if(!n)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var a=0;a{"use strict";e.exports={version:"2.0.0"}}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var o=__webpack_module_cache__[e]={id:e,exports:{}};return __webpack_modules__[e].call(o.exports,o,o.exports,__webpack_require__),o.exports}__webpack_require__.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(t,{a:t}),t},__webpack_require__.d=(e,t)=>{for(var o in t)__webpack_require__.o(t,o)&&!__webpack_require__.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},__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__(3314),__webpack_require__(8238),__webpack_require__(112),__webpack_require__(3336),__webpack_require__(2868),__webpack_require__(4719),__webpack_require__(3131),__webpack_require__(3526),__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 e4a6a17..48ddb3f 100644 --- a/cheatGUI/src/hacks/pets.ts +++ b/cheatGUI/src/hacks/pets.ts @@ -9,6 +9,7 @@ import { getPet } from "../utils/hackify"; // Import getPet import { GetAction, SelectSlot } from "../utils/kennel"; import flatted from "flatted"; import encoder from "lzbase62"; +import divide from "../utils/divide"; // END IMPORTS @@ -226,12 +227,13 @@ new Hack(category.pets, "Backup Kennel", "Makes a backup of your kennel to your const stringobject : string = encoder.compress(flatted.stringify(_.player.kennel._petTeam)); console.log(stringobject.length); - // to make this sufficient, we need to split it into at least 10 different keys, - // as some accounts have more data than others. - + let i : number = 0; + for (let x of divide(stringobject, 10)) { + localStorage.setItem("prodigy-kennel-backup" + i, x); + console.log(x.length) + i++; + } - console.log(stringobject); - localStorage.setItem("prodigy-kennel-backup", stringobject); return Toast.fire("Backed up!", "Your kennel is now backed up to the local storage.", "success"); }); // End Backup Kennel diff --git a/cheatGUI/src/utils/divide.ts b/cheatGUI/src/utils/divide.ts index eeaee8a..6463050 100644 --- a/cheatGUI/src/utils/divide.ts +++ b/cheatGUI/src/utils/divide.ts @@ -1,5 +1,5 @@ /** divide a string into parts */ -export function divide (target : string, amount : number) : Array { +export default function divide (target : string, amount : number) : Array { let output : Array = new Array; let parts : number = Math.floor(target.length / amount); From 3990fd92814a8d8da20b9a226b4ab849438887e9 Mon Sep 17 00:00:00 2001 From: gemsvido Date: Thu, 1 Sep 2022 00:33:52 -0700 Subject: [PATCH 13/17] This doesn't throw an exception, but it does... NOTHING! --- cheatGUI/dist/bundle.js | 2 +- cheatGUI/src/hacks/pets.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/cheatGUI/dist/bundle.js b/cheatGUI/dist/bundle.js index e4078f0..9c34eb3 100644 --- a/cheatGUI/dist/bundle.js +++ b/cheatGUI/dist/bundle.js @@ -1,2 +1,2 @@ /*! For license information please see bundle.js.LICENSE.txt */ -(()=>{var __webpack_modules__={8844:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,l,"next",e)}function l(e){r(s,n,a,i,l,"throw",e)}i(void 0)}))}}n=[o,t,o(4759),o(9820),o(2852),o(4719)],void 0===(a=function(e,t,o,n,a,r){"use strict";new n.Toggler(n.category.battle,"Disable math [PvP, PvE]","Disable math in PvP, PvE, anywhere! This doesn't work in the Floatling town.").setEnabled(s((function*(){return a._.constants.constants["GameConstants.Debug.EDUCATION_ENABLED"]=!1,o.Toast.fire("Enabled!","You will no longer do Math!","success")}))).setDisabled(s((function*(){return a._.constants.constants["GameConstants.Debug.EDUCATION_ENABLED"]=!0,o.Toast.fire("Disabled!","You will now do Math!","success")}))),new n.Toggler(n.category.battle,"Instant Kill [PvE]","Makes your spells do insane damage in PvE!").setEnabled(s((function*(){return a.player.modifiers.damage=a.VERY_LARGE_NUMBER,o.Toast.fire("Enabled!","You will now do insane damage in PvE!","success")}))).setDisabled((()=>(a.player.modifiers.damage=1,o.Toast.fire("Disabled!","You will no longer do insane damage in PvE!","success")))),new n.Hack(n.category.battle,"PvP Health [PvP]","Increases your HP in PvP by a hell ton.").setClick(s((function*(){return a.player.pvpHP=a.VERY_LARGE_NUMBER,a.player.getMaxHearts=()=>a.VERY_LARGE_NUMBER,o.Toast.fire("Success!","You now have lots of health!","success")}))),new n.Hack(n.category.battle,"Escape Battle [PvP, PvE]","Escape any battle, PvP or PvE!").setClick(s((function*(){var e=a.game.state.current;return"PVP"===e?(Object.fromEntries(a._.instance.game.state.states).PVP.endPVP(),o.Toast.fire("Escaped!","You have successfully escaped from the PvP battle.","success")):"CoOp"===e?(a.prodigy.world.$(a.player.data.zone),o.Toast.fire("Escaped!","You have successfully escaped from the battle.","success")):["Battle","SecureBattle"].includes(e)?(Object.fromEntries(a._.instance.game.state.states)[e].runAwayCallback(),o.Toast.fire("Escaped!","You have successfully escaped from the PvE battle.","success")):o.Toast.fire("Invalid State.","You are currently not in a battle.","error")}))),new n.Hack(n.category.battle,"Win Battle [PvE]","Instantly win a battle in PvE.").setClick(s((function*(){var e=a.game.state.current;switch((0,r.BattleInfo)("Current State: "+e),e){case"PVP":case"CoOp":return o.Toast.fire("Invalid State.","PvP is not supported for this hack.","error");case"Battle":return Object.fromEntries(a._.instance.game.state.states).Battle.startVictory(),o.Toast.fire("Victory!","You have successfully won the battle.","success");case"SecureBattle":return Object.fromEntries(a._.instance.game.state.states).SecureBattle.battleVictory(),o.Toast.fire("Victory!","You have successfully won the battle.","success");default:return o.Toast.fire("Invalid State.","You are currently not in a battle.","error")}}))),new n.Hack(n.category.battle,"Set Battle Hearts [PvP, PvE]","Sets your hearts in battle, automatically raise your max hearts in PvP or PvE.").setClick(s((function*(){var e=yield o.NumberInput.fire("Health Amount","How much HP do you want?","question");if(void 0!==e.value)return a.player.getMaxHearts=()=>+e.value,a.player.pvpHP=+e.value,a.player.data.hp=+e.value,o.Toast.fire("Success!","Your hearts have been set.","success")}))),new n.Hack(n.category.battle,"Fill Battle Energy [PvP, PvE]","Fills up your battle energy, if you are in PvP or PvE.").setClick(s((function*(){var e=a.game.state.getCurrentState();return"teams"in e?(e.teams[0].setEnergy(99),o.Toast.fire("Success!","Your battle energy has been filled.","success")):o.Toast.fire("Error","You are currently not in a battle.","error")}))),new n.Hack(n.category.battle,"Heal Team [PvE]","Instantly heals you and your pets, if you are in PvE.").setClick(s((function*(){var e=a.game.state.current;return"PVP"===e||"CoOp"===e?o.Toast.fire("Invalid State.","PvP is not supported for this hack.","error"):["Battle","SecureBattle"].includes(e)?(a.player.heal(),o.Toast.fire("Success!","Your team has been healed successfully!","success")):o.Toast.fire("Invalid State.","Your are currently not in a battle.","error")})))}.apply(t,n))||(e.exports=a)},9155:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,l,"next",e)}function l(e){r(s,n,a,i,l,"throw",e)}i(void 0)}))}}n=[o,t,o(4759),o(9820),o(2852),o(112),o(3131)],void 0===(a=function(e,t,o,n,a,r,i){"use strict";new n.Hack(n.category.beta,"Get all Runes [BETA]").setClick(s((function*(){if((yield o.Confirm.fire({title:"Hang on!",html:"This hack may damage your account with various bugs, for example you may be unable to do Rune Run.

                            Proceed?",icon:"warning"})).value){var e,t=parseInt((yield o.NumberInput.fire({title:"Amount",text:"How many of each would you like?",icon:"question",inputValidator:e=>e?"":"Please select which you'd like to get."})).value);if(!isNaN(t))return Array.from(a._.instance.prodigy.gameContainer._inversifyContainer._bindingDictionary._map).forEach((t=>{try{a._.instance.prodigy.gameContainer.get(t[0]).battleData&&(e=t[0])}catch(e){console.log("Error for ".concat(t[0]))}})),a._.instance.prodigy.gameContainer.get(e).battleData._secureCharacterState._data.inventory.orb=(0,r.runeify)(a._.gameData.orb,t),o.Toast.fire("Runes Added!","Your runes have been added!","success")}}))),new n.Hack(n.category.beta,"Edit Pet [BETA]","Edit a pet.").setClick(s((function*(){if(!(yield o.Confirm.fire({title:"Hang on!",html:"This hack may damage your account with various bugs, for example you may be unable to do Rune Run.

                            Proceed?",icon:"warning"})).value)return console.log("Cancelled.");var e=yield(0,r.getPet)("Choose the pet to edit.");if(void 0!==e){var t=a.player.kennel.data[e],n=yield o.Swal.fire({input:"select",inputOptions:{level:"Level",attacks:"Attacks",name:"Name"},title:"Edit Property",text:"What do you want to edit?"});if(void 0!==n.value){if("level"===n.value){var s=yield o.NumberInput.fire("Level Number","What level do you want to set your pet to?","question");if(void 0===s.value)return;return t.level=+s.value,o.Toast.fire("Success!","The pet's level has been set.","success")}if("attacks"===n.value){var i=a._.gameData.spell,l=document.createElement("div"),c=document.createElement("select");for(var u of(c.classList.add("selectSpell"),i)){var d=document.createElement("option");d.value=u.ID.toString(),d.innerText="".concat(u.ID,": ").concat(u.name," (").concat(u.data.element,") - Damage: ").concat(u.data.damage),c.options.add(d)}l.append(c),l.append(c.cloneNode(!0));var p=yield o.Swal.fire({title:"Attack List",focusConfirm:!1,showCancelButton:!0,html:l,preConfirm:()=>Array.prototype.slice.call(document.querySelectorAll(".selectSpell")).map((e=>e.options[e.selectedIndex].value))});if(void 0===p.value)return;return t.foreignSpells.splice(0,2,...p.value.map((e=>+e))),o.Toast.fire("Attacks updated!","The attack list of the pet you selected has been edited.","success")}if("name"===n.value){var h=yield o.Input.fire("Input Name","What do you want to name the pet?","question");if(void 0===h.value)return;return t.nickname=h.value,o.Toast.fire("Successfully renamed!","The name of the pet has been changed.","success")}}}}))),new n.Hack(n.category.beta,"Morph Player [BETA]","Morph into a pet, furnishing, or follow.").setClick(s((function*(){if(!(yield o.Confirm.fire("This hack is in BETA","Expect bugs, and it might not work properly.")).value)return console.log("Cancelled");var e=yield o.Swal.fire({title:"Which morph type?",input:"select",inputOptions:{pet:"Pet",dorm:"Furniture",follow:"Follow"},inputPlaceholder:"Morph Type",inputValidator:e=>e?"":"Please select a morph type.",showCancelButton:!0});if(null!=e&&e.value){var t={};a._.gameData[e.value].forEach((e=>t[e.ID]="".concat(e.name," (").concat(e.ID,")")));var n=yield o.Swal.fire({title:"Which morph?",input:"select",inputOptions:t,inputPlaceholder:"Morph ID",inputValidator:e=>e?"":"Please select a morph ID.",showCancelButton:!0});if(n.value)return a.player.getPlayerData().playerTransformation={transformType:e.value,transformID:n.value,maxTime:36e5,timeRemaining:36e5},a.player.appearanceChanged=!0,o.Toast.fire("Morphed!","You've been morphed.","success")}}))),new n.Toggler(n.category.beta,"Toggle Close Popups [BETA]","Automatically closes popups in Prodigy.").setEnabled(s((function*(){return(0,i.PopupInterval)(!0),o.Toast.fire("Enabled","Toggle Close Popups is now enabled.","success")}))).setDisabled(s((function*(){return(0,i.PopupInterval)(!1),o.Toast.fire("Enabled","Toggle Close Popups is now disabled.","success")}))),new n.Hack(n.category.beta,"Hypermax Account [BETA]").setClick(s((function*(){if((yield o.Confirm.fire({title:"Hang on!",html:"This hack will damage your account with various bugs, for example you may be unable to do Rune Run/Arena, amd you will recieve 418s and inavtivity kicks.

                            Proceed?",icon:"warning"})).value){a.player.data.gold=99e5,console.log("Set player gold to 9900000.");var e=100..value-2;a.player.data.stars=Math.round((1-Math.pow(1.042,e))/(1-1.042)*20+10),a.player.data.level=100,a.player.getLevel=()=>a.player.data.level,console.log("Set player level to 100"),a.player.data.bountyScore=100,console.log("Set player's bounty points to 100.");for(var t=0;ta.VERY_LARGE_NUMBER,console.log("PvP health obtained.");for(var n=0;n<100;n++)a.player.achievements.data.progress[n]=10;console.log("Obtained all achievements."),a.player.data.tower=100,console.log("Set tower floor to 100."),a.player.getMaxHearts=()=>a.VERY_LARGE_NUMBER,a.player.pvpHP=a.VERY_LARGE_NUMBER,a.player.data.hp=a.VERY_LARGE_NUMBER,console.log("Maxed out PvE health.");var s,i=99e4;r.ids.forEach((e=>{a.player.backpack.data[e]=(0,r.itemify)(a._.gameData[e].filter((t=>"follow"===e?![125,126,127,128,129,134,135,136,137].includes(t.ID):t)),i.value)})),a._.gameData.dorm.forEach((e=>a.player.house.data.items[e.ID]={A:[],N:i.value}));for(var l=()=>a.player.backpack.data.item.findIndex((e=>84===e.ID||85===e.ID||86===e.ID));l()>-1;)a.player.backpack.data.item.splice(l(),1);return o.Toast.fire("Success!","All items added!","success"),console.log("All items added!"),a.player.backpack.data.mount=(0,r.itemify)(a._.gameData.mount,1),console.log("Added all mounts."),a._.gameData.dorm.forEach((e=>a.player.house.data.items[e.ID]={A:[],N:99e4.value})),console.log("Added 990000 of all furniture."),a._.gameData.pet.forEach((e=>{a.player.kennel.addPet(e.ID.toString(),a.VERY_LARGE_NUMBER,26376,100)})),a.player.kennel._encounterInfo._data.pets=[],a._.gameData.pet.map((e=>{a.player.kennel._encounterInfo._data.pets.push({firstSeenDate:Date.now(),ID:e.ID,timesBattled:1,timesRescued:1})})),a.player.kennel.petTeam.forEach((e=>{e&&e.assignRandomSpells&&e.assignRandomSpells()})),console.log("Added all pets."),a._.gameData.pet.filter((e=>[158,166,168].includes(e.ID))).forEach((e=>{a.player.kennel.addPet(e.ID.toString(),a.VERY_LARGE_NUMBER,26376,100)})),a.player.kennel.petTeam.forEach((e=>{e&&e.assignRandomSpells&&e.assignRandomSpells()})),console.log("Added Mythical Epics."),a._.gameData.pet.filter((e=>[125,126,127,128,129,130,131,132,133].includes(e.ID))).forEach((e=>{a.player.kennel.addPet(e.ID.toString(),a.VERY_LARGE_NUMBER,26376,100)})),a.player.kennel.petTeam.forEach((e=>{e&&e.assignRandomSpells&&e.assignRandomSpells()})),console.log("Added Legacy Epics."),a._.constants.constants["GameConstants.Inactivity.LOG_OUT_TIMER_SECONDS"]=0,console.log("Inactivity Kick Disabled."),a.player._playerContainer.walkSpeed=20,console.log("Player walkspeed set to 20."),Array.from(a._.instance.prodigy.gameContainer._inversifyContainer._bindingDictionary._map).forEach((e=>{try{a._.instance.prodigy.gameContainer.get(e[0]).battleData&&(s=e[0])}catch(t){console.log("Error for ".concat(e[0]))}})),a._.instance.prodigy.gameContainer.get(s).battleData._secureCharacterState._data.inventory.orb=(0,r.runeify)(a._.gameData.orb,100),a.player.equipment.setHat(200),a.player.equipment.setBoots(93),a.player.equipment.setOutfit(161),a.player.equipment.setWeapon(196),(0,a.saveCharacter)(),console.log("Character Saved."),a.player.appearanceChanged=!0,console.log("Appearance Refreshed."),a._.instance.prodigy.open.menuCloseAll(),console.log("Popups closed."),(0,a.saveCharacter)(),console.log("Character Saved."),console.log("Max Account Successful."),o.Toast.fire("Maxed!","Check your backpack!","success")}})))}.apply(t,n))||(e.exports=a)},8130:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,l,"next",e)}function l(e){r(s,n,a,i,l,"throw",e)}i(void 0)}))}}n=[o,t,o(9820),o(4759),o(2852),o(112)],void 0===(a=function(e,t,o,n,a,r){"use strict";new o.Hack(o.category.inventory,"Item stacker").setClick(s((function*(){var e=yield n.NumberInput.fire("Amount","How many of every item would you like?","question");if(e.value&&(yield n.Confirm.fire("Are you sure you want to get all items in the game?")).value){r.ids.forEach((t=>{a.player.backpack.data[t]=(0,r.itemify)(a._.gameData[t].filter((e=>"follow"===t?![125,126,127,128,129,134,135,136,137].includes(e.ID):e)),e.value)})),a._.gameData.dorm.forEach((t=>a.player.house.data.items[t.ID]={A:[],N:e.value}));for(var t=()=>a.player.backpack.data.item.findIndex((e=>84===e.ID||85===e.ID||86===e.ID));t()>-1;)a.player.backpack.data.item.splice(t(),1);return n.Toast.fire("Success!","All items added!","success")}}))),new o.Hack(o.category.inventory,"Clear inventory").setClick(s((function*(){(yield n.Confirm.fire("Are you sure you want to clear your inventory?")).value&&(Object.keys(a.player.backpack.data).forEach((e=>a.player.backpack.data[e]=[])),n.Toast.fire("Success!","Inventory cleared.","success"))}))),new o.Hack(o.category.inventory,"Selector (Basic)").setClick(s((function*(){yield n.Swal.fire({title:"What would you like to obtain?",input:"select",inputOptions:r.names,inputPlaceholder:"Select...",inputValidator:e=>e?"":"Please select which you'd like to obtain.",showCancelButton:!0}).then(function(){var e=s((function*(e){var t=parseInt(e.value),o=r.names[t],s=r.ids[t];if(o){var i=yield n.NumberInput.fire("Amount","How many each object would you like?","question");i.value&&(yield n.Confirm.fire("Are you sure you want to get all ".concat(o.toLowerCase(),"?"))).value&&(a.player.backpack.data[s]=(0,r.itemify)(a._.gameData[s].filter((e=>"follow"===s?![125,126,127,128,129,134,135,136,137].includes(e.ID):e)),i.value),n.Toast.fire("".concat(o," Added!"),"All ".concat(o.toLowerCase()," have been added to your inventory!"),"success"),(0,a.saveCharacter)())}}));return function(t){return e.apply(this,arguments)}}())}))),new o.Hack(o.category.inventory,"Selector (Advanced)","Choose a specific object and quantity to obtain.").setClick(s((function*(){yield n.Swal.fire({title:"What would you like to obtain?",input:"select",inputOptions:r.names,inputPlaceholder:"Select...",inputValidator:e=>e?"":"Please select which you'd like to obtain.",showCancelButton:!0}).then(function(){var e=s((function*(e){if(a._.gameData[r.ids[e.value]]){var t=[];a._.gameData[r.ids[e.value]].forEach((e=>{t.push(e.data.name)})),yield n.Swal.fire({title:"What specific object categorized as ".concat(r.names[e.value].toLowerCase()," would you like to get?"),input:"select",inputOptions:t,inputPlaceholder:"Select...",inputValidator:e=>e?"":"Please select which you'd like to get.",showCancelButton:!0}).then(function(){var t=s((function*(t){var o=parseInt(t.value);if(a._.gameData[r.ids[e.value]][o]){var s=yield n.NumberInput.fire("Amount","How many of the object would you like?","question");if(s.value)return-1===a.player.backpack.data[r.ids[e.value]].findIndex((t=>t.ID===a._.gameData[r.ids[e.value]][o].ID))?a.player.backpack.data[r.ids[e.value]].push({ID:a._.gameData[r.ids[e.value]][o].ID,N:s.value}):a.player.backpack.data[r.ids[e.value]].findIndex((t=>t.ID===a._.gameData[r.ids[e.value]][o].ID)),console.log(a._.gameData[r.ids[e.value]][o].ID),(0,a.saveCharacter)(),n.Toast.fire("".concat(r.names[e.value]," Added!"),"Your selected ".concat(r.names[e.value].toLowerCase()," have been added."),"success")}}));return function(e){return t.apply(this,arguments)}}())}}));return function(t){return e.apply(this,arguments)}}())}))),new o.Hack(o.category.inventory,"Obtain All Furniture").setClick(s((function*(){var e=yield n.NumberInput.fire("Amount","How many of each piece of furniture would you like?","question");if(e.value&&(yield n.Confirm.fire("Are you sure you want to get all furniture?")).value)return a._.gameData.dorm.forEach((t=>a.player.house.data.items[t.ID]={A:[],N:e.value})),n.Toast.fire("Furniture Added!","All furniture has been added to your inventory!","success")}))),new o.Hack(o.category.inventory,"Obtain All Mounts","This gives you all of the mounts in the game.").setClick(s((function*(){return a.player.backpack.data.mount=(0,r.itemify)(a._.gameData.mount,1),n.Toast.fire("Mounts Added!","All mounts have been added to your inventory!")}))),new o.Hack(o.category.inventory,"Remove item").setClick(s((function*(){var e=yield n.Swal.fire({title:"What category would you like to remove an item from?",input:"select",inputOptions:r.names,inputPlaceholder:"Select...",inputValidator:e=>e?"":"Please select which you'd like to obtain.",showCancelButton:!0});if(a._.gameData[r.ids[e.value]]){var t=a._.gameData[r.ids[e.value]].map((e=>e.data.name)),o=yield n.Swal.fire({title:"What specific object categorized as ".concat(r.names[e.value].toLowerCase()," would you like to remove?"),input:"select",inputOptions:t,inputPlaceholder:"Select...",inputValidator:e=>e?"":"Please select which you'd like to get.",showCancelButton:!0});if(o=parseInt(o.value),a._.gameData[r.ids[e.value]][o]){var s=yield n.NumberInput.fire("Amount","How many of the object would you like to remove?","question");if(s.value){if(-1!==a.player.backpack.data[r.ids[e.value]].findIndex((t=>t.ID===a._.gameData[r.ids[e.value]][o].ID))){var i=a.player.backpack.data[r.ids[e.value]].findIndex((t=>t.ID===a._.gameData[r.ids[e.value]][o].ID));return a.player.backpack.data[r.ids[e.value]][i].N-=parseInt(s.value),a.player.backpack.data[r.ids[e.value]][i].N<=0&&a.player.backpack.data[r.ids[e.value]].splice(i,1),(0,a.saveCharacter)(),n.Toast.fire("Removed!","Successfully removed ".concat(s.value," ").concat(a._.gameData[r.ids[e.value]][o].name,"!"),"success")}yield n.Swal.fire("Item Does Not Exist","You do not have any ".concat(a._.gameData[r.ids[e.value]][o].name,"."),"error")}}}}))),new o.Hack(o.category.inventory,"Obtain All Furniture").setClick(s((function*(){return(yield n.Confirm.fire("Are you sure you want to get all furniture?")).value?(a._.gameData.dorm.forEach((e=>a.player.house.data.items[e.ID]={A:[],N:a.VERY_LARGE_NUMBER})),n.Toast.fire("Furniture Added!","All furniture have been added to your inventory!","success")):console.log("Cancelled.")})))}.apply(t,n))||(e.exports=a)},8346:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,l,"next",e)}function l(e){r(s,n,a,i,l,"throw",e)}i(void 0)}))}}n=[o,t,o(9820),o(4759),o(2852),o(112)],void 0===(a=function(e,t,o,n,a,r){"use strict";new o.Hack(o.category.location,"Teleport To Map (interactive)").setClick(s((function*(){var e=n.Swal.mixin({focusConfirm:!1,showCancelButton:!0,preConfirm:()=>{var e;return null===(e=document.querySelector(".radioDiv[checked]"))||void 0===e?void 0:e.getAttribute("zone")}}),t=document.createElement("div");t.classList.add("radioContainer");var o=function(e){var o=document.createElement("DIV");o.classList.add("radioDiv"),o.setAttribute("zone",e);var n=a.locations[e];n?o.style.backgroundImage="url(".concat(n,")"):o.innerText=e,o.onclick=()=>{document.querySelectorAll(".radioDiv[checked]").forEach((e=>e.removeAttribute("checked"))),o.setAttribute("checked","")},t.append(o)};for(var r of Object.keys(a.prodigy.world.zones))o(r);var s=yield e.fire({title:"Teleport Zone",html:t,customClass:{popup:"radioSwal"}});if(s.value){var i=Object.keys(a.prodigy.world.zones[s.value].maps),l=yield n.Swal.fire({input:"select",inputOptions:new Map(i.map((e=>[e,e]))),title:"Map",text:"Which map in the zone do you want to teleport to?"});if(l.value){var c=(yield n.NumberInput.fire("Please enter the x to teleport to. (Try 500?)")).value||500,u=(yield n.NumberInput.fire("Please enter the y to teleport to. (Try 500?)")).value||500;return a.prodigy.world.zones[s.value].teleport(l.value,c,u,{},{}),n.Toast.fire("Teleported","You have been teleported!","success")}}}))),new o.Hack(o.category.location,"Teleport to house by userID").setClick(s((function*(){var e=(yield n.NumberInput.fire("Please enter the userID.")).value;if(e)return(0,r.toHouse)(e),n.Toast.fire("Teleported!","You have been teleported!","success")}))),new o.Hack(o.category.location,"Get Map Location").setClick(s((function*(){var e=a.player.data.zone;navigator.clipboard.writeText(e).then(s((function*(){return console.log("Async: Copying to clipboard was successful!"),n.Swal.fire({title:"Map Location",html:"You are at
                            ".concat(e," .
                            You can save this to get to the same zone.

                            Your location is has also been copied to your clipboard."),icon:"info"})})),function(){var t=s((function*(t){return console.error("Async: Could not copy text: ",t),n.Swal.fire({title:"Map Location",html:"You are at
                            ".concat(e," .
                            You can save this to get to the same zone."),icon:"info"})}));return function(e){return t.apply(this,arguments)}}())})))}.apply(t,n))||(e.exports=a)},3344:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,l,"next",e)}function l(e){r(s,n,a,i,l,"throw",e)}i(void 0)}))}}n=[o,t,o(9820),o(2852),o(4759)],void 0===(a=function(e,t,o,n,a){"use strict";new o.Toggler(o.category.minigames,"69x Walk Speed [Dyno Dig]","Walk so fast that you're teleporting, in Dyno Dig.").setEnabled(s((function*(){return n._.instance.game.state.states.get("DinoDig").walkSpeed=69,a.Toast.fire("Enabled!","You will now walk so fast that you're teleporting in Dyno Dig.","success")}))).setDisabled(s((function*(){return n._.instance.game.state.states.get("DinoDig").walkSpeed=1.5,a.Toast.fire("Disabled!","You will now walk at normal speed, in Dyno Dig.","success")})))}.apply(t,n))||(e.exports=a)},465:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,l,"next",e)}function l(e){r(s,n,a,i,l,"throw",e)}i(void 0)}))}}n=[o,t,o(4759),o(9820),o(2852),o(8238)],void 0===(a=function(e,t,o,n,a,r){"use strict";new n.Hack(n.category.misc,"Skip Tutorial").setClick(s((function*(){var e=(e,t,o,n)=>{a._.instance.prodigy.world.getZone(e).testQuest(t,o,n);try{Object.fromEntries(a._.instance.game.state.states).TileScreen.process()}catch(e){}};e("house",2),e("academy",2),a.player.state.set("tutorial-0",4),a.player.backpack.addKeyItem(13,0),a.player.tutorial.data.menus[14]=[1],a._.instance.prodigy.open.map(!0,[]),a.player.onTutorialComplete(),a.player.data.level=Math.max(a.player.data.level,5)}))),new n.Toggler(n.category.misc,"Disable Monster Encounters").setEnabled(s((function*(){return a._.constants.constants["GameConstants.Debug.SCALE_ENCOUNTER_DISTANCE"]=0,o.Toast.fire("Enabled!","Monsters will no longer battle you.","success")}))).setDisabled((()=>(a._.constants.constants["GameConstants.Debug.SCALE_ENCOUNTER_DISTANCE"]=1,o.Toast.fire("Disabled!","Monsters will now battle you.","success")))),new n.Toggler(n.category.misc,"Skip enemy turn").setEnabled(s((function*(){return a._.constants.constants["GameConstants.Battle.SKIP_ENEMY_TURN"]=!0,o.Toast.fire("Skipping!","Enemy turns will now be skipped.","success")}))).setDisabled((()=>(a._.constants.constants["GameConstants.Battle.SKIP_ENEMY_TURN"]=!1,o.Toast.fire("Disabled","Enemy turns will no longer be skipped.","success")))),new n.Toggler(n.category.beta,"FPS Counter [BETA]","Shows you a framerate counter").setEnabled(s((function*(){(0,r.startFps)()}))).setDisabled(s((function*(){(0,r.stopFps)()})));try{var i=a.current.user.source.canSpin;new n.Toggler(n.category.misc,"Unlimited Spins","Lets you spin the wheel as many times as you want!").setEnabled(s((function*(){return a.player.canSpin=()=>{},o.Toast.fire("Enabled!","You can now spin the wheel as many times as you want!","success")}))).setDisabled(s((function*(){return a.player.canSpin=i,o.Toast.fire("Disabled!","You can now spin the wheel only when allowed.","success")})))}catch(e){console.error("Unlimited Spins ERROR: "+e)}new n.Hack(n.category.misc,"Bobbify","Converts your account into Bobby Fancywoman.").setClick(s((function*(){if((yield o.Confirm.fire("Are you sure you want your account to be turned into Bobby Fancywoman?","This action is not reversable.")).value)return a.player.name.data.nickname=null,a.player.name.data.firstName=44,a.player.name.data.middleName=754,a.player.name.data.lastName=882,a.player.data.stars=-1e22,a.player.data.level=69,a.player.appearance.setGender("male"),a.player.appearance.setEyeColor(1),a.player.appearance.setFace(4),a.player.appearance.setHair(19,1),a.player.appearance.setSkinColor(1),a.player.equipment.setFollow(19),a.player.equipment.setHat(19),a.player.equipment.setBoots(19),a.player.equipment.setOutfit(19),a.player.equipment.setWeapon(19),o.Toast.fire("Bobbified!","You are now Bobby Fancywoman.","success")}))),new n.Hack(n.category.misc,"Reset Account","Completely resets your account.").setClick(s((function*(){if((yield o.Confirm.fire("Are you sure you want to reset your account?","This action is not reversible.")).value)return a.player.resetAccount(),o.Swal.fire("Reset!","Your account has been reset. Reload Prodigy for the full effect.","success")})));var l=null,c=0;new n.Hack(n.category.misc,"Chat Spammer","Cycles through chat messages pretty fast!").setClick(s((function*(){return l?o.Swal.fire("Already Enabled","Chat Spammer is already enabled. To disable chat spammer, reload Prodigy.","error"):(l=setInterval(s((function*(){a.player.chatID=c,++c>1164&&(c=0)})),90),o.Toast.fire("Spamming!","You're now sending a chat message every 90 milliseconds!","success"))})));var u=null,d=0;new n.Hack(n.category.misc,"High Chat Spammer","Cycles through chat messages hella fast!").setClick(s((function*(){return u?o.Swal.fire("Already Enabled","High Chat Spammer is already enabled. To disable chat spammer, reload Prodigy.","error"):(yield o.Confirm.fire("Warning","This hack may cause lag on weak computers (ex. School Chromebooks).")).value?(u=setInterval(s((function*(){a.player.chatID=d,++d>1164&&(d=0)})),30),o.Toast.fire("Spamming!","You're now sending a chat message every 30 milliseconds!","success")):console.log("Cancelled")})));var p=null,h=0;new n.Hack(n.category.misc,"Chat Spammer on Meth","Cycles through chat messages FAST ASF!").setClick(s((function*(){return p?o.Swal.fire("Already Enabled","Chat Spammer on Meth is already enabled. To disable chat spammer, reload Prodigy.","error"):(yield o.Confirm.fire("Warning","This hack may cause lag on weak computers (ex. School Chromebooks).")).value?(p=setInterval(s((function*(){a.player.chatID=h,++h>1164&&(h=0)})),1),o.Toast.fire("Spamming!","You're now sending a chat message every 1 millisecond!","success")):console.log("Cancelled")}))),new n.Hack(n.category.misc,"[Fix] Fix Battle Crash").setClick(s((function*(){return a.player.kennel.petTeam.forEach((e=>{e&&e.assignRandomSpells&&e.assignRandomSpells()})),o.Toast.fire("Success!","Fixed kennel attack bug!","success")}))),new n.Hack(n.category.misc,"[Fix] Stuck in Unfinished Tower Fix","Takes you out of an unfinished tower if you're stuck in one.").setClick(s((function*(){return a._.instance.prodigy.world.zones.house.teleport("exit"),o.Toast.fire("Success!","You've been teleported outside of your house.","success")}))),new n.Hack(n.category.misc,"uwu","OwO").setClick(s((function*(){return(yield o.Confirm.fire("Are you sure that you want to UwU OwO?","Reload Prodigy to revert UwU.")).value?(Object.chance=e=>{var t={},o=0;for(var n of Object.keys(e).sort(((e,o)=>t[e]-t[o])))t[n]=[],t[n][0]=o+1,t[n][1]=e[n]+o,o=e[n]+o;return t},Object.random=e=>{var t=Object.values(e),o=t[t.length-1][1],n=Math.randint(o);return Object.reverse(e)[t.find((e=>n>=e[0]&&n<=e[1]))]},Array.prototype.join=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:",";return"string"==typeof e?this.reduce(((t,o,n,a)=>t+(nt+(n0&&void 0!==arguments[0]?arguments[0]:",";return"string"==typeof e?this.reduce(((t,o,n)=>t+(n?e+o:o)),""):e instanceof Function?this.reduce(((t,o,n,a)=>t+(n?e(a[n],n,a)+o:o)),""):void 0},String.UWUFX=e=>{var t=Object.chance({"owo :3":20,"✧w✧":20,UwU:20,OwO:10,rawr:10,"uwu :3":5,":3 meow":15,":3":15,X3:15,"*purrs*":15,owo:15,uwu:15,"^w^":15,"x3 rawr":15,owowowowo:15});return e.split(" ").leftJoin(((e,t)=>0===Math.floor(6*Math.random())&&/[A-Za-z]/.test(e[0])?" ".concat(e[0],"-"):" ")).split(" ").join(((e,o)=>0===Math.floor(5*Math.random())?" ".concat(Object.random(t)," "):" "))},String.UWUTable={y:"wy",l:"w",r:"w",ss:"zs",n:"nw",ove:"uv",ome:"um",x:"ks",com:"cum",stu:"stew",au:"aw"},Math.randint=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Math.floor(Math.random()*e-t)+t},String.prototype.escapeRegex=function(){return this.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")},String.prototype.replaceAll=function(e,t){return this.replace(new RegExp(e.toString().escapeRegex(),"gi"),(e=>t))},Object.fromArrays=(e,t)=>{var o={};return e.forEach(((e,n)=>{o[e]=t[n]})),o},Object.reverse=e=>Object.fromArrays(Object.values(e),Object.keys(e)),String.prototype.bulkReplace=function(e){var t=this;for(var o in e)t=t.replaceAll(o,e[o]);return t},String.UWU=e=>String(e).bulkReplace(String.UWUTable),Object.keys(a._.localizer.dataSource._languageData).map((e=>a._.localizer.dataSource._languageData[e]=String.UWUFX(String.UWU(a._.localizer.dataSource._languageData[e])))),Object.values(a._.gameData).map((e=>e.map((e=>[e.data.name&&(e.data.name=String.UWUFX(String.UWU(e.data.name))),e.name&&(e.name=String.UWUFX(String.UWU(e.name))),e.data.flavorText&&(e.data.flavorText=String.UWUFX(String.UWU(e.data.flavorText)))])))),o.Toast.fire("uwu","Reload Prodigy to fix uwu.","success")):console.log("uwu cancelled")})))}.apply(t,n))||(e.exports=a)},8603:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,l,"next",e)}function l(e){r(s,n,a,i,l,"throw",e)}i(void 0)}))}}n=[o,t,o(4759),o(9820),o(2852)],void 0===(a=function(e,t,o,n,a){"use strict";var r=null;new n.Hack(n.category.patched,"Arena Point Increaser [Patched]").setClick(s((function*(){return r?o.Swal.fire("Already Enabled","Arena Point Increaser is already enabled.","error"):(yield o.Confirm.fire("This hack is patched.","Running it will probably do nothing.")).value?(r=setInterval(s((function*(){var e=yield(yield fetch("https://api.prodigygame.com/leaderboard-api/season/".concat(a.prodigy.pvpNetworkHandler.seasonID,"/user/").concat(a.player.userID,"/pvp?userID=").concat(a.player.userID),{headers:{authorization:"Bearer ".concat(a.prodigy.network.jwtAuthProvider.getToken()),"content-type":"application/x-www-form-urlencoded; charset=UTF-8"},body:"seasonID=".concat(a.prodigy.pvpNetworkHandler.seasonID,"&action=win"),method:"POST",mode:"cors"})).text();if(""!==e){var t=JSON.parse(e);console.log("[API] ".concat(t.points," Points (+100)"))}else console.log("[API] Failed to add points.")})),60500),o.Swal.fire("Enabled","Arena Point Increaser has been enabled.","success")):console.log("Cancelled")}))),new n.Hack(n.category.patched,"Disable Timeout Dialog [Patched]").setClick(s((function*(){return(yield o.Confirm.fire("This hack is patched.","Running it will probably do nothing.")).value?(a.prodigy.debugMisc.disableTimeoutDialogue(),o.Toast.fire("Enabled","Timeout Dialog has been disabled.","success")):console.log("Cancelled")})))}.apply(t,n))||(e.exports=a)},7736:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;function asyncGeneratorStep(e,t,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}function _asyncToGenerator(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var r=e.apply(t,o);function s(e){asyncGeneratorStep(r,n,a,s,i,"next",e)}function i(e){asyncGeneratorStep(r,n,a,s,i,"throw",e)}s(void 0)}))}}var __importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};__WEBPACK_AMD_DEFINE_ARRAY__=[__webpack_require__,exports,__webpack_require__(4759),__webpack_require__(9820),__webpack_require__(2852),__webpack_require__(112),__webpack_require__(3336),__webpack_require__(939),__webpack_require__(3135),__webpack_require__(3314)],__WEBPACK_AMD_DEFINE_RESULT__=function(require,exports,swal_1,index_1,util_1,hackify_1,kennel_1,flatted_1,lzbase62_1,divide_1){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),flatted_1=__importDefault(flatted_1),lzbase62_1=__importDefault(lzbase62_1),divide_1=__importDefault(divide_1),new index_1.Hack(index_1.category.pets,"Get All Pets").setClick(_asyncToGenerator((function*(){return(yield swal_1.Confirm.fire("Would you like to add all pets to your pets?")).value?(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()})),swal_1.Toast.fire("Success!","All pets have been added!","success")):console.log("Cancelled")}))),new index_1.Hack(index_1.category.pets,"Get All Legacy Epics").setClick(_asyncToGenerator((function*(){return(yield swal_1.Confirm.fire("This may damage your account.","Attempting to add legacy epics may damage your account. Would you still like to add all legacy epics to your team?","warning")).value?(util_1._.gameData.pet.filter((e=>[125,126,127,128,129,130,131,132,133].includes(e.ID))).forEach((e=>{util_1.player.kennel.addPet(e.ID.toString(),util_1.VERY_LARGE_NUMBER,26376,100)})),util_1.player.kennel.petTeam.forEach((e=>{e&&e.assignRandomSpells&&e.assignRandomSpells()})),swal_1.Toast.fire("Success!","All legacy epics have been added!","success")):console.log("Cancelled")}))),new index_1.Hack(index_1.category.pets,"Get All Mythical Epics").setClick(_asyncToGenerator((function*(){return(yield swal_1.Confirm.fire("Would you like to add all mythical epics to your pets?")).value?(util_1._.gameData.pet.filter((e=>[158,164,165,166,167,168,169,170,171,189].includes(e.ID))).forEach((e=>{util_1.player.kennel.addPet(e.ID.toString(),util_1.VERY_LARGE_NUMBER,26376,100)})),util_1.player.kennel.petTeam.forEach((e=>{e&&e.assignRandomSpells&&e.assignRandomSpells()})),swal_1.Toast.fire("Success!","All mythical epics have been added!","success")):console.log("Cancelled")}))),new index_1.Hack(index_1.category.pets,"Clear Pets").setClick(_asyncToGenerator((function*(){return(yield swal_1.Confirm.fire("Would you like to delete all of your pets?")).value?(util_1.player.kennel.data.length=0,swal_1.Toast.fire("Success!","Your pets have been cleared!","success")):console.log("Cancelled")}))),new index_1.Hack(index_1.category.pets,"Add Pet","Adds a pet from a list.").setClick(_asyncToGenerator((function*(){var e=yield swal_1.Swal.fire({input:"select",inputOptions:new Map(util_1._.gameData.pet.map((e=>[e.ID.toString(),"".concat(e.ID,": ").concat(e.data.name)]))),title:"Choose Pet",text:"Which pet do you want to obtain?"});if(void 0!==e.value)return util_1.player.kennel.addPet(e.value),util_1.player.kennel._encounterInfo._data.pets.push({firstSeenDate:Date.now(),ID:e.value,timesBattled:1,timesRescued:1}),swal_1.Toast.fire("Success!","Your chosen pet has been added to your pets!","success")}))),new index_1.Hack(index_1.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(_asyncToGenerator((function*(){var petTeam=util_1.player.kennel.petTeam.slice(0);petTeam.shift();var names=petTeam.map((e=>e.getName())),pet=yield swal_1.Swal.fire({title:"Which pet would you like to edit?",input:"select",inputOptions:names,inputPlaceholder:"Select...",inputValidator:e=>e?"":"Please select which you'd like to obtain.",showCancelButton:!0}),amt=yield swal_1.NumberInput.fire("Level","What would you like to set your pet's level to? (Can be set over 100)","question");if(amt.value){var num=amt.value;return eval("player.kennel.petTeam[parseInt(".concat(pet.value,")+1].getLevel = () => {return ").concat(num,"}")),swal_1.Toast.fire("Updated!","The level of your pet was successfully updated. Note: this hack is client-side.","success")}}))),new index_1.Hack(index_1.category.pets,"Delete Pet","Delete a pet.").setClick(_asyncToGenerator((function*(){var e=yield(0,hackify_1.getPet)("Which pet do you wish to delete?");if(void 0!==e)return util_1.player.kennel.data.splice(e,1),swal_1.Toast.fire("Successfully deleted!","The selected pet was deleted successfully.","success")}))),new index_1.Hack(index_1.category.pets,"Edit Kennel","Allows you to directly edit your pets.").setClick(_asyncToGenerator((function*(){null!==(yield(0,kennel_1.GetAction)())&&null!==(yield(0,kennel_1.SelectSlot)())&&console.log(s(parseInt(KennelSlot.value)))}))),new index_1.Hack(index_1.category.pets,"Backup Kennel","Makes a backup of your kennel to your chrome local storage.").setClick(_asyncToGenerator((function*(){var e=lzbase62_1.default.compress(flatted_1.default.stringify(util_1._.player.kennel._petTeam));console.log(e.length);var t=0;for(var o of(0,divide_1.default)(e,10))localStorage.setItem("prodigy-kennel-backup"+t,o),console.log(o.length),t++;return swal_1.Toast.fire("Backed up!","Your kennel is now backed up to the local storage.","success")}))),new index_1.Hack(index_1.category.pets,"Restore Kennel","Restores a backup of your kennel from the local storage... if you have one.").setClick(_asyncToGenerator((function*(){var e=localStorage.getItem("prodigy-kennel-backup");return null===e?swal_1.Swal.fire({title:"No backup found",html:"There is no backup of your kennel in the local storage. Make sure to back up your kennel before trying to load it.",icon:"error"}):(util_1._.player.kennel._petTeam=flatted_1.default.toJSON(lzbase62_1.default.decompress(e)),swal_1.Toast.fire("Restored!","Your kennel backup should be restored","success"))})))}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),void 0===__WEBPACK_AMD_DEFINE_RESULT__||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)},7939:(module,exports,__webpack_require__)=>{var __webpack_unused_export__,__WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;function asyncGeneratorStep(e,t,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}function _asyncToGenerator(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var r=e.apply(t,o);function s(e){asyncGeneratorStep(r,n,a,s,i,"next",e)}function i(e){asyncGeneratorStep(r,n,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_require__(112)],__WEBPACK_AMD_DEFINE_RESULT__=function(require,exports,swal_1,index_1,util_1,hackify_1){"use strict";__webpack_unused_export__={value:!0},new index_1.Hack(index_1.category.player,"Max Account").setClick(_asyncToGenerator((function*(){if(!(yield swal_1.Confirm.fire("Are you sure that you want to max your account?","We recommend doing this on an alt.")).value)return console.log("Cancelled");util_1.player.data.gold=99e5,console.log("Set player gold to 9900000.");var e=100..value-2;util_1.player.data.stars=Math.round((1-Math.pow(1.042,e))/(1-1.042)*20+10),util_1.player.data.level=100,util_1.player.getLevel=()=>util_1.player.data.level,console.log("Set player level to 100"),util_1.player.data.bountyScore=100,console.log("Set player's bounty points to 100.");for(var t=0;t{util_1.player.backpack.data[e]=(0,hackify_1.itemify)(util_1._.gameData[e].filter((t=>"follow"===e?![125,126,127,128,129,134,135,136,137].includes(t.ID):t)),1..value)})),util_1._.gameData.dorm.forEach((e=>util_1.player.house.data.items[e.ID]={A:[],N:1..value}));for(var n=()=>util_1.player.backpack.data.item.findIndex((e=>84===e.ID||85===e.ID||86===e.ID));n()>-1;)util_1.player.backpack.data.item.splice(n(),1);swal_1.Toast.fire("Success!","All items added!","success"),console.log("All items added!"),util_1.player.backpack.data.mount=(0,hackify_1.itemify)(util_1._.gameData.mount,1),console.log("Added all mounts.");var a="currency";return util_1.player.backpack.data[a]=(0,hackify_1.itemify)(util_1._.gameData[a].filter((e=>e)),6969420),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.equipment.setHat(200),util_1.player.equipment.setBoots(93),util_1.player.equipment.setOutfit(161),util_1.player.equipment.setWeapon(196),util_1.player.appearanceChanged=!0,console.log("Appearance Refreshed."),(0,util_1.saveCharacter)(),console.log("Character Saved."),console.log("Max Account Successful."),swal_1.Toast.fire("Maxed!","Check your backpack!","success")}))),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)return e.value>1e7?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;return 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");if(void 0!==e.value)return 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");if(void 0!==e.value)return 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;t(util_1._.instance.prodigy.gameContainer.get((0,hackify_1.getMemberModule)()).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"),o=(e,t)=>{var o=document.createElement("select");for(var n of(o.classList.add("selectName"),e.entries())){var a=document.createElement("option");[a.value,a.innerText]=n,t(a.value)&&(a.selected=!0),o.options.add(a)}return o},n=(t,n)=>o(new Map(e.filter((e=>e.data.type===t)).map((e=>[e.ID.toString(),e.name]))),(e=>n(+e)));t.append(n(0,(e=>e===util_1.player.name.data.firstName))),t.append(n(1,(e=>e===util_1.player.name.data.middleName))),t.append(n(2,(e=>e===util_1.player.name.data.lastName))),t.append(o(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");if(level.value)return 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*(){return 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*(){return 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")):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 o=util_1._.instance.prodigy.world.zones[t].getCurrentQuestID();return util_1._.instance.prodigy.world.zones[t].completeQuest(o)?(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)});if(e.value)return 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.toString()).then((function(){return 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){return 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();return 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?");if(e.value)return util_1.player.grade=parseInt(e.value),swal_1.Toast.fire("Success","Successfully changed grade to ".concat(e,"!"),"success")})))}.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,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}function _asyncToGenerator(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var r=e.apply(t,o);function s(e){asyncGeneratorStep(r,n,a,s,i,"next",e)}function i(e){asyncGeneratorStep(r,n,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*(){return 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,"Grab UserID of all players on screen","Shows you the UserID and name of every player currently shown on the screen.").setClick(_asyncToGenerator((function*(){var e=util_1.current.playerList;if(0===Object.keys(e).length)return swal_1.Toast.fire("No players found.","There are no other players on the screen.","error");var t="",o=0;return yield Object.keys(e).map((n=>{var a=Object.entries(e)[o][1].nameText.textSource.source;t+="
                          • uID: ".concat(n," - ").concat(a,"
                          • "),o++})),swal_1.Swal.fire({title:"All players on the screen:",html:t,icon:"info"})}))),new index_1.Hack(index_1.category.utility,"Save Character Locally [Local]","Saves your character locally.").setClick(_asyncToGenerator((function*(){return 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"});return t.ok?swal_1.Toast.fire("Success!","Character has been successfully loaded. Reload for the changes to take effect.","success"):swal_1.Toast.fire("Request failed.","An error occurred while loading the character. Error code: ".concat(t.status),"error")}return 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*(){return(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;return 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*(){return 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);return 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*(){return teleportingInterval=setInterval((()=>{try{util_1.player._playerContainer.walkSpeed=500}catch(e){}})),swal_1.Toast.fire("Success!","Successfully enabled teleport click.","success")}))).setDisabled(_asyncToGenerator((function*(){return 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*(){return util_1._.network.game._paused=!0,swal_1.Toast.fire("Success!","Successfully paused Prodigy.","success")}))).setDisabled(_asyncToGenerator((function*(){return 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)return console.log("Cancelled.");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 swal_1.Swal.fire({title:"Error",html:"Oops! There was an error with the code!
                             ".concat(e," "),icon:"error"})}return 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,o){var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,l,"next",e)}function l(e){r(s,n,a,i,l,"throw",e)}i(void 0)}))}}var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};n=[o,t,o(7046),o(2852),o(3526),o(6455),o(4759),o(4719),o(158)],a=function(e,t,o,n,a,r,l,c){"use strict";var u,d,p,h;Object.defineProperty(t,"__esModule",{value:!0}),t.category=t.Toggler=t.Hack=t.toggler=t.wrapper=t.menu=void 0,r=i(r),t.menu=document.createElement("div"),t.wrapper=document.getElementById("game-wrapper"),null===(u=document.getElementById("cheat-menu"))||void 0===u||u.remove(),null===(d=document.getElementById("menu-toggler"))||void 0===d||d.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===(p=t.wrapper)||void 0===p||p.prepend(t.menu),t.toggler=document.createElement("button"),t.toggler.id="menu-toggler";var f=!1;null===(h=t.wrapper)||void 0===h||h.prepend(t.toggler),t.toggler.onclick=()=>{(f=!f)?(t.toggler.innerText="▼",t.menu.style.top="-100vh"):(t.toggler.innerText="▲",t.menu.style.top="10%")},t.toggler.onclick({});var m=document.createElement("DIV");m.classList.add("menu-left"),t.menu.append(m);var g=!0,y=e=>{var t=document.createElement("div");0==g?(t.append(document.createElement("br")),t.append(document.createElement("br"))):g=!1,t.classList.add("menu-area"),t.style.textAlign="center",m.append(t);var o=document.createElement("h1");return o.innerText=e,o.style.textAlign="center",o.style.color="white",t.append(o),t},w=document.createElement("h1");w.classList.add("menu-title"),w.innerText="Prodigy Hacks",w.style.textAlign="center",m.append(w);var b=document.createElement("h2");b.style.fontSize="25px",b.style.color="white",b.innerHTML="
                            Press SHIFT to show/hide the menu. Scroll down in the menu for more hacks.",m.append(b);var _=document.createElement("h3");_.style.fontSize="20px",_.innerHTML="\n

                            Join our Discord https://dsc.gg/ProdigyPNP!

                            \n\n
                            \n",_.style.color="white",m.append(_);class v{constructor(e,t,o){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),o&&this.setDesc(o)}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,n.saveCharacter)(),console.log("Triggered ".concat(t.name,"."))})),this}setDesc(e){return this.element.title=e,this.description=e,this}}t.Hack=v,t.Toggler=class extends v{constructor(e,t,o){var n;super(e,t,o),n=this,this.parent=e,this.element.setAttribute("status","false"),this.setClick(s((function*(){var e,t;n.status=!n.status,n.status?(localStorage.setItem(n.name,"true"),yield null===(e=n.enabled)||void 0===e?void 0:e.call(n)):(localStorage.setItem(n.name,"false"),yield null===(t=n.disabled)||void 0===t?void 0:t.call(n))})))}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:y("Player Hacks"),inventory:y("Inventory Hacks"),location:y("Location Hacks"),pets:y("Pet Hacks"),battle:y("Battle Hacks"),minigames:y("Minigame Hacks"),misc:y("Miscellaneous Hacks"),utility:y("Utility Hacks"),beta:y("Beta Testing | Beta Hacks may damage your account"),patched:y("Patched Hacks")},localStorage.hasTip?(0,c.IndexInfo)("Player already has tip."):(s((function*(){yield r.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,(0,c.IndexInfo)("Player was shown the tip.")),localStorage.getItem("level")&&(n._.player.getLevel=()=>localStorage.getItem("level"),(0,c.IndexInfo)("Loaded menu from localStorage."));var k=!0;document.addEventListener("keydown",(function(e){"Shift"==e.key&&((0,c.IndexInfo)("Shift key was pressed."),1==k?((0,c.IndexInfo)("Hiding cheat menu..."),document.getElementById("cheat-menu").style.display="none",document.getElementById("menu-toggler").style.display="none",k=!1,(0,c.IndexInfo)("Hidden cheat menu.")):((0,c.IndexInfo)("Showing cheat menu..."),document.getElementById("cheat-menu").style.display="block",document.getElementById("menu-toggler").style.display="block",k=!0,(0,c.IndexInfo)("Shown cheat menu.")))})),s((function*(){var e,t;(yield l.License.fire("ProdigyPNP",'\n

                            \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 ')).value?yield(0,a.statusMessage)():(yield l.NoLicense.fire("ProdigyPNP License","\n

                            \n You need to agree to our license to use our hacks. If you changed your mind and now agree to our license, reload Prodigy.\n

                            \n ")).value?document.location="":(null===(e=document.getElementById("cheat-menu"))||void 0===e||e.remove(),null===(t=document.getElementById("menu-toggler"))||void 0===t||t.remove())}))()}.apply(t,n),void 0===a||(e.exports=a)},3314:(e,t,o)=>{var n;n=function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){for(var o=new Array,n=Math.floor(e.length/t),a=0;a{var n,a;n=[o,t,o(9820)],a=function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stopFps=t.startFps=void 0;var n=document.createElement("button"),a=!1;t.startFps=function(){var e;a=!0,n.id="fps-counter",null===(e=o.wrapper)||void 0===e||e.prepend(n),setInterval((()=>{var e=_.player.game.fps._framerate;a?n.innerText=e.toFixed(2)+" FPS":n.remove()}),300)},t.stopFps=function(){var e;a=!1,null===(e=document.getElementById("fps-counter"))||void 0===e||e.remove()}}.apply(t,n),void 0===a||(e.exports=a)},112:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}n=[o,t,o(2852),o(4759)],a=function(e,t,o,n){"use strict";function a(e){o._.instance.prodigy.loading(!0);var t=t=>{var a=null!=t?t[e]:null;if(null!==a&&void 0!==a.house&&null!==a.house){o._.instance.prodigy.loading(!1);var r=o._.cloneDeep(o._.player.house);return r.setItems(a.house),void 0!==a.data.allowsHouseVisitors&&null!==a.data.allowsHouseVisitors&&a.data.allowsHouseVisitors?o._.instance.prodigy.world._("house",null,null,{house:r,getAllowsHouseVisitors:()=>void 0!==a.data.allowsHouseVisitors&&null!==a.data.allowsHouseVisitors&&a.data.allowsHouseVisitors,setAllowsHouseVisitors:e=>{a.data.allowsHouseVisitors=e}}):n.Swal.fire("Teleporting to ".concat(e," is not allowed."),"Try another user.","error")}};return o._.network.getCharData(e.toString(),["house","data"],t,t),n.Toast.fire("Teleported to house","You have been teleported to the house!","success")}Object.defineProperty(t,"__esModule",{value:!0}),t.getPet=t.teleportToHouse=t.toHouse=t.getMemberModule=t.runeify=t.itemify=t.ids=t.names=void 0,t.names=["Boots","Buddies","Fossils","Hats","Items","Key Items","Tower Town Frames","Tower Town Interiors","Mounts","Outfits","Relics","Weapons","Currencies"],t.ids=["boots","follow","fossil","hat","item","key","mathTownFrame","mathTownInterior","mount","outfit","spellRelic","weapon","currency"],t.itemify=(e,t)=>e.map((e=>({ID:e.ID,N:t}))).filter((e=>void 0!==e)),t.runeify=(e,t)=>{e.map((e=>({ID:e.ID,quantity:t}))).filter((e=>void 0!==e))},t.getMemberModule=function(){return o._.player.hasMembership.toString().split('"')[1]},t.toHouse=function(e){if(o._.player.userID!==e){var t=o._.instance.prodigy.friendsListNetworkHandler.friendsList.length,r=o._.instance.prodigy.friendsListNetworkHandler.classList.length;o._.instance.prodigy.gameContainer.get("2e1-e659").create("house-visit","click","hub",t,r,null,null,e).broadcast()}var s=o._.instance.prodigy.world.getZone(o._.instance.prodigy.world.getCurrentZone());return s?s.handleLeaving(2,(()=>a(e))):n.Swal.fire({title:"Error",text:"You are not in a zone!",icon:"error"})},t.teleportToHouse=a;var s=function(){var e,t=(e=function*(e){return(yield n.Swal.fire({input:"select",inputOptions:new Map(o._.player.kennel.data.map(((e,t)=>{var n,a,r;return[t.toString(),"Level ".concat(e.level," - ").concat(null!==(n=null!==(a=e.nickname)&&void 0!==a?a:null===(r=o._.gameData.pet.find((t=>+t.ID==+e.ID)))||void 0===r?void 0:r.data.name)&&void 0!==n?n:"Unknown")]}))),title:"Choose Pet",text:e})).value},function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,l,"next",e)}function l(e){r(s,n,a,i,l,"throw",e)}i(void 0)}))});return function(e){return t.apply(this,arguments)}}();t.getPet=s}.apply(t,n),void 0===a||(e.exports=a)},3336:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,l,"next",e)}function l(e){r(s,n,a,i,l,"throw",e)}i(void 0)}))}}n=[o,t,o(4759)],a=function(e,t,o){"use strict";function n(){return(n=s((function*(){var e=new Map;e.set("Copy","Copy a slot to another slot"),e.set("Remove","Completley empty one slot");var t=yield o.Swal.fire({input:"select",inputOptions:e,title:"Select Action",text:"Select an action to perform on the Kennel"});return t.value?t.value:null}))).apply(this,arguments)}function a(){return(a=s((function*(){var e=new Map,t=e=>_.player.kennel._petTeam[e]?_.player.kennel._petTeam[e].source?_.player.kennel._petTeam[e].source.name:_.player.kennel._petTeam[e]._userDataPlatform?"Player":"null":"null";e.set("0","[0] Center - ".concat(t(0))),e.set("1","[1] Top - ".concat(t(1))),e.set("2","[2] Bottom - ".concat(t(2)));var n=yield o.Swal.fire({input:"select",inputOptions:e,title:"Select Slot",text:"Select a slot to edit"});return n.value?parseInt(n.value):null}))).apply(this,arguments)}Object.defineProperty(t,"__esModule",{value:!0}),t.SelectSlot=t.GetAction=void 0,t.GetAction=function(){return n.apply(this,arguments)},t.SelectSlot=function(){return a.apply(this,arguments)}}.apply(t,n),void 0===a||(e.exports=a)},2868:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}n=[o,t,o(2852),o(4759)],void 0===(a=function(e,t,o,n){"use strict";window.addEventListener("keydown",(e=>{switch(e.which){case 192:o._.instance.prodigy.open.menuCloseAll();break;case 220:var t=function(){var e,t=(e=function*(){if(!(yield n.Confirm.fire("Kit","Would you like to equip Celestial Gear?")).value)return console.log("Cancelled");o._.player.equipment.setHat(200),o._.player.equipment.setBoots(93),o._.player.equipment.setOutfit(161),o._.player.equipment.setWeapon(196),o._.player.appearanceChanged=!0,n.Toast.fire("Success!","You are now wearing Celestial Armor and wielding a Dual Blade.","success")},function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,l,"next",e)}function l(e){r(s,n,a,i,l,"throw",e)}i(void 0)}))});return function(){return t.apply(this,arguments)}}();t()}}))}.apply(t,n))||(e.exports=a)},4719:(e,t,o)=>{var n;n=function(e,t){"use strict";function o(e,o){return""==e||null==e?console.log("["+t.LogPrefix+":unknown] "+o):console.log("["+t.LogPrefix+":"+e+"] "+o)}function n(e,t,n){return o(t,"*"+e.toUpperCase()+"* "+n)}Object.defineProperty(t,"__esModule",{value:!0}),t.UtilityError=t.UtilitySuccess=t.UtilityInfo=t.PlayerError=t.PlayerSuccess=t.PlayerInfo=t.PetsError=t.PetsSuccess=t.PetsInfo=t.PatchedError=t.PatchedSuccess=t.PatchedInfo=t.MiscError=t.MiscSuccess=t.MiscInfo=t.MinigameError=t.MinigameSuccess=t.MinigameInfo=t.LocationError=t.LocationSuccess=t.LocationInfo=t.InventoryError=t.InventorySuccess=t.InventoryInfo=t.BetaError=t.BetaSuccess=t.BetaInfo=t.BattleError=t.BattleSuccess=t.BattleInfo=t.IndexError=t.IndexSuccess=t.IndexInfo=t.StatusLog=t.ConsoleLog=t.LogPrefix=void 0,t.LogPrefix="CheatGUI",t.ConsoleLog=o,t.StatusLog=n,t.IndexInfo=function(e){return n("info","index.ts",e)},t.IndexSuccess=function(e){return n("success","index.ts",e)},t.IndexError=function(e){return n("error","index.ts",e)},t.BattleInfo=function(e){return n("info","battle.ts",e)},t.BattleSuccess=function(e){return n("success","battle.ts",e)},t.BattleError=function(e){return n("error","battle.ts",e)},t.BetaInfo=function(e){return n("info","beta.ts",e)},t.BetaSuccess=function(e){return n("success","beta.ts",e)},t.BetaError=function(e){return n("error","beta.ts",e)},t.InventoryInfo=function(e){return n("info","inventory.ts",e)},t.InventorySuccess=function(e){return n("success","inventory.ts",e)},t.InventoryError=function(e){return n("error","inventory.ts",e)},t.LocationInfo=function(e){return n("info","location.ts",e)},t.LocationSuccess=function(e){return n("success","location.ts",e)},t.LocationError=function(e){return n("error","location.ts",e)},t.MinigameInfo=function(e){return n("info","minigame.ts",e)},t.MinigameSuccess=function(e){return n("success","minigame.ts",e)},t.MinigameError=function(e){return n("error","minigame.ts",e)},t.MiscInfo=function(e){return n("info","misc.ts",e)},t.MiscSuccess=function(e){return n("success","misc.ts",e)},t.MiscError=function(e){return n("error","misc.ts",e)},t.PatchedInfo=function(e){return n("info","patched.ts",e)},t.PatchedSuccess=function(e){return n("success","patched.ts",e)},t.PatchedError=function(e){return n("error","patched.ts",e)},t.PetsInfo=function(e){return n("info","pets.ts",e)},t.PetsSuccess=function(e){return n("success","pets.ts",e)},t.PetsError=function(e){return n("error","pets.ts",e)},t.PlayerInfo=function(e){return n("info","player.ts",e)},t.PlayerSuccess=function(e){return n("success","player.ts",e)},t.PlayerError=function(e){return n("error","player.ts",e)},t.UtilityInfo=function(e){return n("info","utility.ts",e)},t.UtilitySuccess=function(e){return n("success","utility.ts",e)},t.UtilityError=function(e){return n("error","utility.ts",e)}}.apply(t,[o,t]),void 0===n||(e.exports=n)},3131:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,l,"next",e)}function l(e){r(s,n,a,i,l,"throw",e)}i(void 0)}))}}n=[o,t,o(2852)],a=function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PopupInterval=void 0;var n=!1;t.PopupInterval=function(e){n=e},s((function*(){setInterval(s((function*(){n&&o._.instance.prodigy.open.menuCloseAll()})),200)}))()}.apply(t,n),void 0===a||(e.exports=a)},3526:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}n=[o,t,o(4759)],a=function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.statusMessage=void 0,t.statusMessage=function(){fetch("https://raw.githubusercontent.com/ProdigyPNP/ProdigyMathGameHacking/master/cheatGUI/statusmessage.json?updated=".concat(Date.now())).then((e=>e.json())).then(function(){var e,t=(e=function*(e){if(!1===e.enabled.value)return console.log("Status message is disabled.");yield o.Swal.fire({title:e.get("title"),html:e.get("html"),icon:e.get("icon")})},function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,l,"next",e)}function l(e){r(s,n,a,i,l,"throw",e)}i(void 0)}))});return function(e){return t.apply(this,arguments)}}())}}.apply(t,n),void 0===a||(e.exports=a)},4759:function(e,t,o){var n,a,r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};n=[o,t,o(6455)],a=function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NoLicense=t.License=t.Info=t.Confirm=t.Toast=t.NumberInput=t.Input=t.Swal=void 0,o=r(o),t.Swal=o.default,t.Input=t.Swal.mixin({input:"text",showCancelButton:!0,showConfirmButton:!0,toast:!1}),t.NumberInput=t.Input.mixin({toast:!1,input:"number"}),t.Toast=t.Swal.mixin({toast:!0,position:"bottom"}),t.Confirm=t.Swal.mixin({icon:"warning",showCancelButton:!0,toast:!1,confirmButtonText:"Confirm",cancelButtonText:"Cancel"}),t.Info=t.Swal.mixin({icon:"info",showCancelButton:!1,toast:!1}),t.License=t.Swal.mixin({icon:"info",showCancelButton:!0,toast:!1,confirmButtonText:"Agree",cancelButtonText:"Disagree"}),t.NoLicense=t.Swal.mixin({icon:"error",showCancelButton:!0,toast:!1,confirmButtonText:"Reload",cancelButtonText:"Play without hacks"})}.apply(t,n),void 0===a||(e.exports=a)},2852:(e,t,o)=>{var n;n=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.current=t.player=t._=void 0,t._=window._,t.player=t._.player,t.current=window.Boot.prototype.game._state._current;var o=t._.instance;t.game=o.game,t.prodigy=o.prodigy,t.gameData=t._.instance.game.state.states.get("Boot").gameData,t.getItem=(e,o)=>{var n;return null!==(n=t._.gameData[e].find((e=>e.ID===o)))&&void 0!==n?n: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,[o,t]),void 0===n||(e.exports=n)},450:(e,t,o)=>{"use strict";o.d(t,{Z:()=>i});var n=o(8081),a=o.n(n),r=o(3645),s=o.n(r)()(a());s.push([e.id,"@import url(https://fonts.googleapis.com/css?family=Arvo:400,700|Sen:400,700,800&display=swap&subset=latin-ext);"]),s.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;font-size:23px;height:26px;width:50px;border:1px solid rgba(0,0,0,.1)}#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 #fps-counter{z-index:2;position:absolute;border-radius:3px;background-color:rgba(255,255,255,.7333333333);transition:background-color .15s;width:130px;height:26px;font-size:23px;border:1px solid rgba(0,0,0,.1);margin-left:83%}#game-wrapper #fps-counter:hover{background-color:rgba(221,221,221,.7333333333)}#game-wrapper #fps-counter: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:rgba(0,0,0,.55);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;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 i=s},3645:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var o="",n=void 0!==t[5];return t[4]&&(o+="@supports (".concat(t[4],") {")),t[2]&&(o+="@media ".concat(t[2]," {")),n&&(o+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),o+=e(t),n&&(o+="}"),t[2]&&(o+="}"),t[4]&&(o+="}"),o})).join("")},t.i=function(e,o,n,a,r){"string"==typeof e&&(e=[[null,e,void 0]]);var s={};if(n)for(var i=0;i0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=r),o&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=o):u[2]=o),a&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=a):u[4]="".concat(a)),t.push(u))}},t}},8081:e=>{"use strict";e.exports=function(e){return e[1]}},1227:(e,t,o)=>{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 o="color: "+this.color;t.splice(1,0,o,"color: inherit");let n=0,a=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(n++,"%c"===e&&(a=n))})),t.splice(a,0,o)},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=o(2447)(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},2447:(e,t,o)=>{e.exports=function(e){function t(e){let o,a,r,s=null;function i(...e){if(!i.enabled)return;const n=i,a=Number(new Date),r=a-(o||a);n.diff=r,n.prev=o,n.curr=a,o=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,((o,a)=>{if("%%"===o)return"%";s++;const r=t.formatters[a];if("function"==typeof r){const t=e[s];o=r.call(n,t),e.splice(s,1),s--}return o})),t.formatArgs.call(n,e),(n.log||t.log).apply(n,e)}return i.namespace=e,i.useColors=t.useColors(),i.color=t.selectColor(e),i.extend=n,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 n(e,o){const n=t(this.namespace+(void 0===o?":":o)+e);return n.log=this.log,n}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 o;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const n=("string"==typeof e?e:"").split(/[\s,]+/),a=n.length;for(o=0;o{t[o]=e[o]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let o=0;for(let t=0;t{var n=o(6391),a=o(8377);function r(e){this._init(e)}r.prototype={_init:function(e){e=e||{},this._data=null,this._table=null,this._result=null,this._onDataCallback=e.onData,this._onEndCallback=e.onEnd},_createTable:function(){for(var e=a.createBuffer(8,n.TABLE_LENGTH),t=0;ta)return!1;var r,s,i,l,c,u=o-n.WINDOW_BUFFER_MAX,d=t.substring(u,o+a),p=o+e-3-u;do{if(2===e){if(s=t.charAt(o)+t.charAt(o+1),!~(i=d.indexOf(s))||i>p)break}else 3===e?s+=t.charAt(o+2):s=t.substr(o,e);if(!~(l=n.STRING_LASTINDEXOF_BUG?t.substring(u,o+e-1).lastIndexOf(s):d.lastIndexOf(s,p)))break;c=l,r=u+l;do{if(t.charCodeAt(o+e)!==t.charCodeAt(r+e))break}while(++e=n.COMPRESS_CHUNK_MAX&&(this._onData(s,i),i=0);return i>0&&this._onData(s,i),this._onEnd(),t=this._result,this._result=null,null===t?"":t}},e.exports=r},6391:(e,t)=>{var o=t.HAS_TYPED="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array,n=!1,a=!1;try{"a"===String.fromCharCode.apply(null,[97])&&(n=!0)}catch(e){}if(o)try{"a"===String.fromCharCode.apply(null,new Uint8Array([97]))&&(a=!0)}catch(e){}t.CAN_CHARCODE_APPLY=n,t.CAN_CHARCODE_APPLY_TYPED=a;var r=t.APPLY_BUFFER_SIZE=65533;t.APPLY_BUFFER_SIZE_OK=null;var s=!1;-1!=="abcほげ".lastIndexOf("ほげ",1)&&(s=!0),t.STRING_LASTINDEXOF_BUG=s;var i=t.BASE62TABLE="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",l=t.TABLE_LENGTH=i.length,c=Math.max(l,62)-Math.min(l,62);t.BUFFER_MAX=l-1;var u=t.WINDOW_MAX=1024;t.WINDOW_BUFFER_MAX=304;var d=t.COMPRESS_CHUNK_SIZE=r;t.COMPRESS_CHUNK_MAX=d-l;var p=t.DECOMPRESS_CHUNK_SIZE=r;t.DECOMPRESS_CHUNK_MAX=p+2*u,t.LATIN_BUFFER_MAX=132;var h=t.UNICODE_CHAR_MAX=40;t.UNICODE_BUFFER_MAX=h*(h+1),t.LATIN_INDEX=l+1,t.LATIN_INDEX_START=c+20,t.UNICODE_INDEX=l+5,t.DECODE_MAX=l-c-19;var f=t.LATIN_DECODE_MAX=h+7,m=t.CHAR_START=f+1,g=t.COMPRESS_START=m+1,y=t.COMPRESS_FIXED_START=g+5;t.COMPRESS_INDEX=y+5},9797:(e,t,o)=>{var n=o(6391),a=o(8377);function r(e){this._init(e)}r.prototype={_init:function(e){e=e||{},this._result=null,this._onDataCallback=e.onData,this._onEndCallback=e.onEnd},_createTable:function(){for(var e={},t=0;t0&&this._onDataCallback(a.bufferToString_fast(t))}},_onEnd:function(){this._onEndCallback&&this._onEndCallback()},decompress:function(e){if(null==e||0===e.length)return"";this._result=a.stringToArray(a.createWindow());for(var t,o,r,s,i,l,c,u,d,p,h=this._createTable(),f=!1,m=null,g=e.length,y=0;yc&&(u.length=c),d=u.length,u.length>0)for(p=0;p=c));o++);m=null}this._result.length>=n.DECOMPRESS_CHUNK_MAX&&this._onData()}return this._result=this._result.slice(n.WINDOW_MAX),this._onData(!0),this._onEnd(),t=a.bufferToString_fast(this._result),this._result=null,t}},e.exports=r},3135:(e,t,o)=>{var n=o(946),a=o(9797);t.version=o(1014).version,t.compress=function(e,t){return new n(t).compress(e)},t.decompress=function(e,t){return new a(t).decompress(e)}},8377:(e,t,o)=>{var n=o(6391),a=String.fromCharCode;t.createBuffer=function(e,t){if(!n.HAS_TYPED)return new Array(t);switch(e){case 8:return new Uint8Array(t);case 16:return new Uint16Array(t)}};var r=t.truncateBuffer=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};t.bufferToString_fast=function(e,t){if(null==t?t=e.length:e=r(e,t),n.CAN_CHARCODE_APPLY&&n.CAN_CHARCODE_APPLY_TYPED){var o=e.length;if(on.APPLY_BUFFER_SIZE&&(n.APPLY_BUFFER_SIZE_OK=!0),i}catch(e){n.APPLY_BUFFER_SIZE_OK=!1}}return s(e)};var s=t.bufferToString_chunked=function(e){for(var t,o="",r=e.length,s=0;sn.APPLY_BUFFER_SIZE&&(n.APPLY_BUFFER_SIZE_OK=!0);continue}catch(e){n.APPLY_BUFFER_SIZE_OK=!1}return i(e)}o+=a.apply(null,t)}return o},i=t.bufferToString_slow=function(e){for(var t="",o=e.length,n=0;n>7,t=" ";!(e&n.WINDOW_MAX);)t+=t,e<<=1;return t}},7824:e=>{var t=1e3,o=60*t,n=60*o,a=24*n;function r(e,t,o,n){var a=t>=1.5*o;return Math.round(e/o)+" "+n+(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*n;case"minutes":case"minute":case"mins":case"min":case"m":return s*o;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>=n?r(i,l,n,"hour"):l>=o?r(i,l,o,"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>=n?Math.round(e/n)+"h":r>=o?Math.round(e/o)+"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,o)=>{"use strict";o.r(t),o.d(t,{default:()=>y});var n=o(3379),a=o.n(n),r=o(7795),s=o.n(r),i=o(569),l=o.n(i),c=o(3565),u=o.n(c),d=o(9216),p=o.n(d),h=o(4589),f=o.n(h),m=o(450),g={};g.styleTagTransform=f(),g.setAttributes=u(),g.insert=l().bind(null,"head"),g.domAPI=s(),g.insertStyleElement=p(),a()(m.Z,g);const y=m.Z&&m.Z.locals?m.Z.locals:void 0},3379:e=>{"use strict";var t=[];function o(e){for(var o=-1,n=0;n{"use strict";var t={};e.exports=function(e,o){var n=function(e){if(void 0===t[e]){var o=document.querySelector(e);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(e){o=null}t[e]=o}return t[e]}(e);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(o)}},9216:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},3565:(e,t,o)=>{"use strict";e.exports=function(e){var t=o.nc;t&&e.setAttribute("nonce",t)}},7795:e=>{"use strict";e.exports=function(e){var t=e.insertStyleElement(e);return{update:function(o){!function(e,t,o){var n="";o.supports&&(n+="@supports (".concat(o.supports,") {")),o.media&&(n+="@media ".concat(o.media," {"));var a=void 0!==o.layer;a&&(n+="@layer".concat(o.layer.length>0?" ".concat(o.layer):""," {")),n+=o.css,a&&(n+="}"),o.media&&(n+="}"),o.supports&&(n+="}");var r=o.sourceMap;r&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(r))))," */")),t.styleTagTransform(n,e,t.options)}(t,e,o)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},4589:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},6455:function(e){e.exports=function(){"use strict";const e="SweetAlert2:",t=e=>e.charAt(0).toUpperCase()+e.slice(1),o=t=>{console.warn("".concat(e," ").concat("object"==typeof t?t.join(" "):t))},n=t=>{console.error("".concat(e," ").concat(t))},a=[],r=(e,t)=>{var n;n='"'.concat(e,'" is deprecated and will be removed in the next major release. Please use "').concat(t,'" instead.'),a.includes(n)||(a.push(n),o(n))},s=e=>"function"==typeof e?e():e,i=e=>e&&"function"==typeof e.toPromise,l=e=>i(e)?e.toPromise():Promise.resolve(e),c=e=>e&&Promise.resolve(e)===e,u={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,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",color:void 0,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,willOpen:void 0,didOpen:void 0,didRender:void 0,willClose:void 0,didClose:void 0,didDestroy:void 0,scrollbarPadding:!0},d=["allowEscapeKey","allowOutsideClick","background","buttonsStyling","cancelButtonAriaLabel","cancelButtonColor","cancelButtonText","closeButtonAriaLabel","closeButtonHtml","color","confirmButtonAriaLabel","confirmButtonColor","confirmButtonText","currentProgressStep","customClass","denyButtonAriaLabel","denyButtonColor","denyButtonText","didClose","didDestroy","footer","hideClass","html","icon","iconColor","iconHtml","imageAlt","imageHeight","imageUrl","imageWidth","preConfirm","preDeny","progressSteps","returnFocus","reverseButtons","showCancelButton","showCloseButton","showConfirmButton","showDenyButton","text","title","titleText","willClose"],p={},h=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],f=e=>Object.prototype.hasOwnProperty.call(u,e),m=e=>-1!==d.indexOf(e),g=e=>p[e],y=e=>{f(e)||o('Unknown parameter "'.concat(e,'"'))},w=e=>{h.includes(e)&&o('The parameter "'.concat(e,'" is incompatible with toasts'))},b=e=>{g(e)&&r(e,g(e))},_=e=>{const t={};for(const o in e)t[e[o]]="swal2-"+e[o];return t},v=_(["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","show","hide","close","title","html-container","actions","confirm","deny","cancel","default-outline","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","input-label","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loader","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error","no-war"]),k=_(["success","warning","info","question","error"]),C=()=>document.body.querySelector(".".concat(v.container)),E=e=>{const t=C();return t?t.querySelector(e):null},x=e=>E(".".concat(e)),S=()=>x(v.popup),A=()=>x(v.icon),T=()=>x(v.title),P=()=>x(v["html-container"]),I=()=>x(v.image),D=()=>x(v["progress-steps"]),B=()=>x(v["validation-message"]),O=()=>E(".".concat(v.actions," .").concat(v.confirm)),R=()=>E(".".concat(v.actions," .").concat(v.deny)),M=()=>E(".".concat(v.loader)),N=()=>E(".".concat(v.actions," .").concat(v.cancel)),L=()=>x(v.actions),F=()=>x(v.footer),j=()=>x(v["timer-progress-bar"]),H=()=>x(v.close),U=()=>{const e=Array.from(S().querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])')).sort(((e,t)=>{const o=parseInt(e.getAttribute("tabindex")),n=parseInt(t.getAttribute("tabindex"));return o>n?1:o"-1"!==e.getAttribute("tabindex")));return(e=>{const t=[];for(let o=0;ore(e)))},q=()=>G(document.body,v.shown)&&!G(document.body,v["toast-shown"])&&!G(document.body,v["no-backdrop"]),Y=()=>S()&&G(S(),v.toast),W={previousBodyPadding:null},z=(e,t)=>{if(e.textContent="",t){const o=(new DOMParser).parseFromString(t,"text/html");Array.from(o.querySelector("head").childNodes).forEach((t=>{e.appendChild(t)})),Array.from(o.querySelector("body").childNodes).forEach((t=>{e.appendChild(t)}))}},G=(e,t)=>{if(!t)return!1;const o=t.split(/\s+/);for(let t=0;t{if(((e,t)=>{Array.from(e.classList).forEach((o=>{Object.values(v).includes(o)||Object.values(k).includes(o)||Object.values(t.showClass).includes(o)||e.classList.remove(o)}))})(e,t),t.customClass&&t.customClass[n]){if("string"!=typeof t.customClass[n]&&!t.customClass[n].forEach)return o("Invalid type of customClass.".concat(n,'! Expected string or iterable object, got "').concat(typeof t.customClass[n],'"'));$(e,t.customClass[n])}},K=(e,t)=>{if(!t)return null;switch(t){case"select":case"textarea":case"file":return e.querySelector(".".concat(v.popup," > .").concat(v[t]));case"checkbox":return e.querySelector(".".concat(v.popup," > .").concat(v.checkbox," input"));case"radio":return e.querySelector(".".concat(v.popup," > .").concat(v.radio," input:checked"))||e.querySelector(".".concat(v.popup," > .").concat(v.radio," input:first-child"));case"range":return e.querySelector(".".concat(v.popup," > .").concat(v.range," input"));default:return e.querySelector(".".concat(v.popup," > .").concat(v.input))}},X=e=>{if(e.focus(),"file"!==e.type){const t=e.value;e.value="",e.value=t}},Z=(e,t,o)=>{e&&t&&("string"==typeof t&&(t=t.split(/\s+/).filter(Boolean)),t.forEach((t=>{Array.isArray(e)?e.forEach((e=>{o?e.classList.add(t):e.classList.remove(t)})):o?e.classList.add(t):e.classList.remove(t)})))},$=(e,t)=>{Z(e,t,!0)},J=(e,t)=>{Z(e,t,!1)},Q=(e,t)=>{const o=Array.from(e.children);for(let e=0;e{o==="".concat(parseInt(o))&&(o=parseInt(o)),o||0===parseInt(o)?e.style[t]="number"==typeof o?"".concat(o,"px"):o:e.style.removeProperty(t)},te=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"flex";e.style.display=t},oe=e=>{e.style.display="none"},ne=(e,t,o,n)=>{const a=e.querySelector(t);a&&(a.style[o]=n)},ae=function(e,t){t?te(e,arguments.length>2&&void 0!==arguments[2]?arguments[2]:"flex"):oe(e)},re=e=>!(!e||!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)),se=e=>!!(e.scrollHeight>e.clientHeight),ie=e=>{const t=window.getComputedStyle(e),o=parseFloat(t.getPropertyValue("animation-duration")||"0"),n=parseFloat(t.getPropertyValue("transition-duration")||"0");return o>0||n>0},le=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const o=j();re(o)&&(t&&(o.style.transition="none",o.style.width="100%"),setTimeout((()=>{o.style.transition="width ".concat(e/1e3,"s linear"),o.style.width="0%"}),10))},ce=()=>"undefined"==typeof window||"undefined"==typeof document,ue={},de=e=>new Promise((t=>{if(!e)return t();const o=window.scrollX,n=window.scrollY;ue.restoreFocusTimeout=setTimeout((()=>{ue.previousActiveElement instanceof HTMLElement?(ue.previousActiveElement.focus(),ue.previousActiveElement=null):document.body&&document.body.focus(),t()}),100),window.scrollTo(o,n)})),pe='\n
                            \n \n
                              \n
                              \n \n

                              \n
                              \n \n \n
                              \n \n \n
                              \n \n
                              \n \n \n
                              \n
                              \n
                              \n \n \n \n
                              \n
                              \n
                              \n
                              \n
                              \n
                              \n').replace(/(^|\n)\s*/g,""),he=()=>{ue.currentInstance.resetValidationMessage()},fe=e=>{const t=(()=>{const e=C();return!!e&&(e.remove(),J([document.documentElement,document.body],[v["no-backdrop"],v["toast-shown"],v["has-column"]]),!0)})();if(ce())return void n("SweetAlert2 requires document to initialize");const o=document.createElement("div");o.className=v.container,t&&$(o,v["no-transition"]),z(o,pe);const a="string"==typeof(r=e.target)?document.querySelector(r):r;var r;a.appendChild(o),(e=>{const t=S();t.setAttribute("role",e.toast?"alert":"dialog"),t.setAttribute("aria-live",e.toast?"polite":"assertive"),e.toast||t.setAttribute("aria-modal","true")})(e),(e=>{"rtl"===window.getComputedStyle(e).direction&&$(C(),v.rtl)})(a),(()=>{const e=S(),t=Q(e,v.input),o=Q(e,v.file),n=e.querySelector(".".concat(v.range," input")),a=e.querySelector(".".concat(v.range," output")),r=Q(e,v.select),s=e.querySelector(".".concat(v.checkbox," input")),i=Q(e,v.textarea);t.oninput=he,o.onchange=he,r.onchange=he,s.onchange=he,i.oninput=he,n.oninput=()=>{he(),a.value=n.value},n.onchange=()=>{he(),a.value=n.value}})()},me=(e,t)=>{e instanceof HTMLElement?t.appendChild(e):"object"==typeof e?ge(e,t):e&&z(t,e)},ge=(e,t)=>{e.jquery?ye(t,e):z(t,e.toString())},ye=(e,t)=>{if(e.textContent="",0 in t)for(let o=0;o in t;o++)e.appendChild(t[o].cloneNode(!0));else e.appendChild(t.cloneNode(!0))},we=(()=>{if(ce())return!1;const e=document.createElement("div"),t={WebkitAnimation:"webkitAnimationEnd",animation:"animationend"};for(const o in t)if(Object.prototype.hasOwnProperty.call(t,o)&&void 0!==e.style[o])return t[o];return!1})(),be=(e,t)=>{const o=L(),n=M();t.showConfirmButton||t.showDenyButton||t.showCancelButton?te(o):oe(o),V(o,t,"actions"),function(e,t,o){const n=O(),a=R(),r=N();_e(n,"confirm",o),_e(a,"deny",o),_e(r,"cancel",o),function(e,t,o,n){if(!n.buttonsStyling)return J([e,t,o],v.styled);$([e,t,o],v.styled),n.confirmButtonColor&&(e.style.backgroundColor=n.confirmButtonColor,$(e,v["default-outline"])),n.denyButtonColor&&(t.style.backgroundColor=n.denyButtonColor,$(t,v["default-outline"])),n.cancelButtonColor&&(o.style.backgroundColor=n.cancelButtonColor,$(o,v["default-outline"]))}(n,a,r,o),o.reverseButtons&&(o.toast?(e.insertBefore(r,n),e.insertBefore(a,n)):(e.insertBefore(r,t),e.insertBefore(a,t),e.insertBefore(n,t)))}(o,n,t),z(n,t.loaderHtml),V(n,t,"loader")};function _e(e,o,n){ae(e,n["show".concat(t(o),"Button")],"inline-block"),z(e,n["".concat(o,"ButtonText")]),e.setAttribute("aria-label",n["".concat(o,"ButtonAriaLabel")]),e.className=v[o],V(e,n,"".concat(o,"Button")),$(e,n["".concat(o,"ButtonClass")])}const ve=(e,t)=>{const n=C();n&&(function(e,t){"string"==typeof t?e.style.background=t:t||$([document.documentElement,document.body],v["no-backdrop"])}(n,t.backdrop),function(e,t){t in v?$(e,v[t]):(o('The "position" parameter is not valid, defaulting to "center"'),$(e,v.center))}(n,t.position),function(e,t){if(t&&"string"==typeof t){const o="grow-".concat(t);o in v&&$(e,v[o])}}(n,t.grow),V(n,t,"container"))};var ke={awaitingPromise:new WeakMap,promise:new WeakMap,innerParams:new WeakMap,domCache:new WeakMap};const Ce=["input","file","range","select","radio","checkbox","textarea"],Ee=e=>{if(!De[e.input])return n('Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "'.concat(e.input,'"'));const t=Pe(e.input),o=De[e.input](t,e);te(t),setTimeout((()=>{X(o)}))},xe=(e,t)=>{const o=K(S(),e);if(o){(e=>{for(let t=0;t{const t=Pe(e.input);"object"==typeof e.customClass&&$(t,e.customClass.input)},Ae=(e,t)=>{e.placeholder&&!t.inputPlaceholder||(e.placeholder=t.inputPlaceholder)},Te=(e,t,o)=>{if(o.inputLabel){e.id=v.input;const n=document.createElement("label"),a=v["input-label"];n.setAttribute("for",e.id),n.className=a,"object"==typeof o.customClass&&$(n,o.customClass.inputLabel),n.innerText=o.inputLabel,t.insertAdjacentElement("beforebegin",n)}},Pe=e=>Q(S(),v[e]||v.input),Ie=(e,t)=>{["string","number"].includes(typeof t)?e.value="".concat(t):c(t)||o('Unexpected type of inputValue! Expected "string", "number" or "Promise", got "'.concat(typeof t,'"'))},De={};De.text=De.email=De.password=De.number=De.tel=De.url=(e,t)=>(Ie(e,t.inputValue),Te(e,e,t),Ae(e,t),e.type=t.input,e),De.file=(e,t)=>(Te(e,e,t),Ae(e,t),e),De.range=(e,t)=>{const o=e.querySelector("input"),n=e.querySelector("output");return Ie(o,t.inputValue),o.type=t.input,Ie(n,t.inputValue),Te(o,e,t),e},De.select=(e,t)=>{if(e.textContent="",t.inputPlaceholder){const o=document.createElement("option");z(o,t.inputPlaceholder),o.value="",o.disabled=!0,o.selected=!0,e.appendChild(o)}return Te(e,e,t),e},De.radio=e=>(e.textContent="",e),De.checkbox=(e,t)=>{const o=K(S(),"checkbox");o.value="1",o.id=v.checkbox,o.checked=Boolean(t.inputValue);const n=e.querySelector("span");return z(n,t.inputPlaceholder),o},De.textarea=(e,t)=>{Ie(e,t.inputValue),Ae(e,t),Te(e,e,t);return setTimeout((()=>{if("MutationObserver"in window){const t=parseInt(window.getComputedStyle(S()).width);new MutationObserver((()=>{const o=e.offsetWidth+(n=e,parseInt(window.getComputedStyle(n).marginLeft)+parseInt(window.getComputedStyle(n).marginRight));var n;S().style.width=o>t?"".concat(o,"px"):null})).observe(e,{attributes:!0,attributeFilter:["style"]})}})),e};const Be=(e,t)=>{const o=P();V(o,t,"htmlContainer"),t.html?(me(t.html,o),te(o,"block")):t.text?(o.textContent=t.text,te(o,"block")):oe(o),((e,t)=>{const o=S(),n=ke.innerParams.get(e),a=!n||t.input!==n.input;Ce.forEach((e=>{const n=Q(o,v[e]);xe(e,t.inputAttributes),n.className=v[e],a&&oe(n)})),t.input&&(a&&Ee(t),Se(t))})(e,t)},Oe=(e,t)=>{for(const o in k)t.icon!==o&&J(e,k[o]);$(e,k[t.icon]),Ne(e,t),Re(),V(e,t,"icon")},Re=()=>{const e=S(),t=window.getComputedStyle(e).getPropertyValue("background-color"),o=e.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");for(let e=0;e{let o,n=e.innerHTML;t.iconHtml?o=Le(t.iconHtml):"success"===t.icon?(o='\n
                              \n \n
                              \n
                              \n',n=n.replace(/ style=".*?"/g,"")):o="error"===t.icon?'\n \n \n \n \n':Le({question:"?",warning:"!",info:"i"}[t.icon]),n.trim()!==o.trim()&&z(e,o)},Ne=(e,t)=>{if(t.iconColor){e.style.color=t.iconColor,e.style.borderColor=t.iconColor;for(const o of[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"])ne(e,o,"backgroundColor",t.iconColor);ne(e,".swal2-success-ring","borderColor",t.iconColor)}},Le=e=>'
                              ').concat(e,"
                              "),Fe=e=>{const t=document.createElement("li");return $(t,v["progress-step"]),z(t,e),t},je=e=>{const t=document.createElement("li");return $(t,v["progress-step-line"]),e.progressStepsDistance&&ee(t,"width",e.progressStepsDistance),t},He=(e,t)=>{e.className="".concat(v.popup," ").concat(re(e)?t.showClass.popup:""),t.toast?($([document.documentElement,document.body],v["toast-shown"]),$(e,v.toast)):$(e,v.modal),V(e,t,"popup"),"string"==typeof t.customClass&&$(e,t.customClass),t.icon&&$(e,v["icon-".concat(t.icon)])},Ue=(e,t)=>{((e,t)=>{const o=C(),n=S();t.toast?(ee(o,"width",t.width),n.style.width="100%",n.insertBefore(M(),A())):ee(n,"width",t.width),ee(n,"padding",t.padding),t.color&&(n.style.color=t.color),t.background&&(n.style.background=t.background),oe(B()),He(n,t)})(0,t),ve(0,t),((e,t)=>{const n=D();if(!t.progressSteps||0===t.progressSteps.length)return oe(n);te(n),n.textContent="",t.currentProgressStep>=t.progressSteps.length&&o("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),t.progressSteps.forEach(((e,o)=>{const a=Fe(e);if(n.appendChild(a),o===t.currentProgressStep&&$(a,v["active-progress-step"]),o!==t.progressSteps.length-1){const e=je(t);n.appendChild(e)}}))})(0,t),((e,t)=>{const o=ke.innerParams.get(e),a=A();if(o&&t.icon===o.icon)return Me(a,t),void Oe(a,t);if(t.icon||t.iconHtml){if(t.icon&&-1===Object.keys(k).indexOf(t.icon))return n('Unknown icon! Expected "success", "error", "warning", "info" or "question", got "'.concat(t.icon,'"')),void oe(a);te(a),Me(a,t),Oe(a,t),$(a,t.showClass.icon)}else oe(a)})(e,t),((e,t)=>{const o=I();if(!t.imageUrl)return oe(o);te(o,""),o.setAttribute("src",t.imageUrl),o.setAttribute("alt",t.imageAlt),ee(o,"width",t.imageWidth),ee(o,"height",t.imageHeight),o.className=v.image,V(o,t,"image")})(0,t),((e,t)=>{const o=T();ae(o,t.title||t.titleText,"block"),t.title&&me(t.title,o),t.titleText&&(o.innerText=t.titleText),V(o,t,"title")})(0,t),((e,t)=>{const o=H();z(o,t.closeButtonHtml),V(o,t,"closeButton"),ae(o,t.showCloseButton),o.setAttribute("aria-label",t.closeButtonAriaLabel)})(0,t),Be(e,t),be(0,t),((e,t)=>{const o=F();ae(o,t.footer),t.footer&&me(t.footer,o),V(o,t,"footer")})(0,t),"function"==typeof t.didRender&&t.didRender(S())},qe=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),Ye=()=>{Array.from(document.body.children).forEach((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")}))},We=["swal-title","swal-html","swal-footer"],ze=e=>{const t={};return Array.from(e.querySelectorAll("swal-param")).forEach((e=>{Je(e,["name","value"]);const o=e.getAttribute("name"),n=e.getAttribute("value");"boolean"==typeof u[o]&&"false"===n&&(t[o]=!1),"object"==typeof u[o]&&(t[o]=JSON.parse(n))})),t},Ge=e=>{const o={};return Array.from(e.querySelectorAll("swal-button")).forEach((e=>{Je(e,["type","color","aria-label"]);const n=e.getAttribute("type");o["".concat(n,"ButtonText")]=e.innerHTML,o["show".concat(t(n),"Button")]=!0,e.hasAttribute("color")&&(o["".concat(n,"ButtonColor")]=e.getAttribute("color")),e.hasAttribute("aria-label")&&(o["".concat(n,"ButtonAriaLabel")]=e.getAttribute("aria-label"))})),o},Ve=e=>{const t={},o=e.querySelector("swal-image");return o&&(Je(o,["src","width","height","alt"]),o.hasAttribute("src")&&(t.imageUrl=o.getAttribute("src")),o.hasAttribute("width")&&(t.imageWidth=o.getAttribute("width")),o.hasAttribute("height")&&(t.imageHeight=o.getAttribute("height")),o.hasAttribute("alt")&&(t.imageAlt=o.getAttribute("alt"))),t},Ke=e=>{const t={},o=e.querySelector("swal-icon");return o&&(Je(o,["type","color"]),o.hasAttribute("type")&&(t.icon=o.getAttribute("type")),o.hasAttribute("color")&&(t.iconColor=o.getAttribute("color")),t.iconHtml=o.innerHTML),t},Xe=e=>{const t={},o=e.querySelector("swal-input");o&&(Je(o,["type","label","placeholder","value"]),t.input=o.getAttribute("type")||"text",o.hasAttribute("label")&&(t.inputLabel=o.getAttribute("label")),o.hasAttribute("placeholder")&&(t.inputPlaceholder=o.getAttribute("placeholder")),o.hasAttribute("value")&&(t.inputValue=o.getAttribute("value")));const n=Array.from(e.querySelectorAll("swal-input-option"));return n.length&&(t.inputOptions={},n.forEach((e=>{Je(e,["value"]);const o=e.getAttribute("value"),n=e.innerHTML;t.inputOptions[o]=n}))),t},Ze=(e,t)=>{const o={};for(const n in t){const a=t[n],r=e.querySelector(a);r&&(Je(r,[]),o[a.replace(/^swal-/,"")]=r.innerHTML.trim())}return o},$e=e=>{const t=We.concat(["swal-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Array.from(e.children).forEach((e=>{const n=e.tagName.toLowerCase();-1===t.indexOf(n)&&o("Unrecognized element <".concat(n,">"))}))},Je=(e,t)=>{Array.from(e.attributes).forEach((n=>{-1===t.indexOf(n.name)&&o(['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.")])}))};var Qe={email:(e,t)=>/^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]{2,24}$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid email address"),url:(e,t)=>/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid URL")};function et(e){(function(e){e.inputValidator||Object.keys(Qe).forEach((t=>{e.input===t&&(e.inputValidator=Qe[t])}))})(e),e.showLoaderOnConfirm&&!e.preConfirm&&o("showLoaderOnConfirm is set to true, but preConfirm is not defined.\nshowLoaderOnConfirm should be used together with preConfirm, see usage example:\nhttps://sweetalert2.github.io/#ajax-request"),function(e){(!e.target||"string"==typeof e.target&&!document.querySelector(e.target)||"string"!=typeof e.target&&!e.target.appendChild)&&(o('Target parameter is not valid, defaulting to "body"'),e.target="body")}(e),"string"==typeof e.title&&(e.title=e.title.split("\n").join("
                              ")),fe(e)}class tt{constructor(e,t){this.callback=e,this.remaining=t,this.running=!1,this.start()}start(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}stop(){return this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=(new Date).getTime()-this.started.getTime()),this.remaining}increase(e){const t=this.running;return t&&this.stop(),this.remaining+=e,t&&this.start(),this.remaining}getTimerLeft(){return this.running&&(this.stop(),this.start()),this.remaining}isRunning(){return this.running}}const ot=()=>{null===W.previousBodyPadding&&document.body.scrollHeight>window.innerHeight&&(W.previousBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight="".concat(W.previousBodyPadding+(()=>{const e=document.createElement("div");e.className=v["scrollbar-measure"],document.body.appendChild(e);const t=e.getBoundingClientRect().width-e.clientWidth;return document.body.removeChild(e),t})(),"px"))},nt=()=>{const e=navigator.userAgent,t=!!e.match(/iPad/i)||!!e.match(/iPhone/i),o=!!e.match(/WebKit/i);if(t&&o&&!e.match(/CriOS/i)){const e=44;S().scrollHeight>window.innerHeight-e&&(C().style.paddingBottom="".concat(e,"px"))}},at=()=>{const e=C();let t;e.ontouchstart=e=>{t=rt(e)},e.ontouchmove=e=>{t&&(e.preventDefault(),e.stopPropagation())}},rt=e=>{const t=e.target,o=C();return!(st(e)||it(e)||t!==o&&(se(o)||!(t instanceof HTMLElement)||"INPUT"===t.tagName||"TEXTAREA"===t.tagName||se(P())&&P().contains(t)))},st=e=>e.touches&&e.touches.length&&"stylus"===e.touches[0].touchType,it=e=>e.touches&&e.touches.length>1,lt=e=>{const t=C(),o=S();"function"==typeof e.willOpen&&e.willOpen(o);const n=window.getComputedStyle(document.body).overflowY;pt(t,o,e),setTimeout((()=>{ut(t,o)}),10),q()&&(dt(t,e.scrollbarPadding,n),Array.from(document.body.children).forEach((e=>{e===C()||e.contains(C())||(e.hasAttribute("aria-hidden")&&e.setAttribute("data-previous-aria-hidden",e.getAttribute("aria-hidden")),e.setAttribute("aria-hidden","true"))}))),Y()||ue.previousActiveElement||(ue.previousActiveElement=document.activeElement),"function"==typeof e.didOpen&&setTimeout((()=>e.didOpen(o))),J(t,v["no-transition"])},ct=e=>{const t=S();if(e.target!==t)return;const o=C();t.removeEventListener(we,ct),o.style.overflowY="auto"},ut=(e,t)=>{we&&ie(t)?(e.style.overflowY="hidden",t.addEventListener(we,ct)):e.style.overflowY="auto"},dt=(e,t,o)=>{(()=>{if((/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)&&!G(document.body,v.iosfix)){const e=document.body.scrollTop;document.body.style.top="".concat(-1*e,"px"),$(document.body,v.iosfix),at(),nt()}})(),t&&"hidden"!==o&&ot(),setTimeout((()=>{e.scrollTop=0}))},pt=(e,t,o)=>{$(e,o.showClass.backdrop),t.style.setProperty("opacity","0","important"),te(t,"grid"),setTimeout((()=>{$(t,o.showClass.popup),t.style.removeProperty("opacity")}),10),$([document.documentElement,document.body],v.shown),o.heightAuto&&o.backdrop&&!o.toast&&$([document.documentElement,document.body],v["height-auto"])},ht=e=>{let t=S();t||new Ao,t=S();const o=M();Y()?oe(A()):ft(t,e),te(o),t.setAttribute("data-loading","true"),t.setAttribute("aria-busy","true"),t.focus()},ft=(e,t)=>{const o=L(),n=M();!t&&re(O())&&(t=O()),te(o),t&&(oe(t),n.setAttribute("data-button-to-replace",t.className)),n.parentNode.insertBefore(n,t),$([e,o],v.loading)},mt=e=>e.checked?1:0,gt=e=>e.checked?e.value:null,yt=e=>e.files.length?null!==e.getAttribute("multiple")?e.files:e.files[0]:null,wt=(e,t)=>{const o=S(),a=e=>_t[t.input](o,vt(e),t);i(t.inputOptions)||c(t.inputOptions)?(ht(O()),l(t.inputOptions).then((t=>{e.hideLoading(),a(t)}))):"object"==typeof t.inputOptions?a(t.inputOptions):n("Unexpected type of inputOptions! Expected object, Map or Promise, got ".concat(typeof t.inputOptions))},bt=(e,t)=>{const o=e.getInput();oe(o),l(t.inputValue).then((n=>{o.value="number"===t.input?parseFloat(n)||0:"".concat(n),te(o),o.focus(),e.hideLoading()})).catch((t=>{n("Error in inputValue promise: ".concat(t)),o.value="",te(o),o.focus(),e.hideLoading()}))},_t={select:(e,t,o)=>{const n=Q(e,v.select),a=(e,t,n)=>{const a=document.createElement("option");a.value=n,z(a,t),a.selected=kt(n,o.inputValue),e.appendChild(a)};t.forEach((e=>{const t=e[0],o=e[1];if(Array.isArray(o)){const e=document.createElement("optgroup");e.label=t,e.disabled=!1,n.appendChild(e),o.forEach((t=>a(e,t[1],t[0])))}else a(n,o,t)})),n.focus()},radio:(e,t,o)=>{const n=Q(e,v.radio);t.forEach((e=>{const t=e[0],a=e[1],r=document.createElement("input"),s=document.createElement("label");r.type="radio",r.name=v.radio,r.value=t,kt(t,o.inputValue)&&(r.checked=!0);const i=document.createElement("span");z(i,a),i.className=v.label,s.appendChild(r),s.appendChild(i),n.appendChild(s)}));const a=n.querySelectorAll("input");a.length&&a[0].focus()}},vt=e=>{const t=[];return"undefined"!=typeof Map&&e instanceof Map?e.forEach(((e,o)=>{let n=e;"object"==typeof n&&(n=vt(n)),t.push([o,n])})):Object.keys(e).forEach((o=>{let n=e[o];"object"==typeof n&&(n=vt(n)),t.push([o,n])})),t},kt=(e,t)=>t&&t.toString()===e.toString();function Ct(){const e=ke.innerParams.get(this);if(!e)return;const t=ke.domCache.get(this);oe(t.loader),Y()?e.icon&&te(A()):Et(t),J([t.popup,t.actions],v.loading),t.popup.removeAttribute("aria-busy"),t.popup.removeAttribute("data-loading"),t.confirmButton.disabled=!1,t.denyButton.disabled=!1,t.cancelButton.disabled=!1}const Et=e=>{const t=e.popup.getElementsByClassName(e.loader.getAttribute("data-button-to-replace"));t.length?te(t[0],"inline-block"):!re(O())&&!re(R())&&!re(N())&&oe(e.actions)};var xt={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};const St=()=>O()&&O().click(),At=e=>{e.keydownTarget&&e.keydownHandlerAdded&&(e.keydownTarget.removeEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!1)},Tt=(e,t,o)=>{const n=U();if(n.length)return(t+=o)===n.length?t=0:-1===t&&(t=n.length-1),n[t].focus();S().focus()},Pt=["ArrowRight","ArrowDown"],It=["ArrowLeft","ArrowUp"],Dt=(e,t,o)=>{const n=ke.innerParams.get(e);n&&(t.isComposing||229===t.keyCode||(n.stopKeydownPropagation&&t.stopPropagation(),"Enter"===t.key?Bt(e,t,n):"Tab"===t.key?Ot(t,n):[...Pt,...It].includes(t.key)?Rt(t.key):"Escape"===t.key&&Mt(t,n,o)))},Bt=(e,t,o)=>{if(s(o.allowEnterKey)&&t.target&&e.getInput()&&t.target instanceof HTMLElement&&t.target.outerHTML===e.getInput().outerHTML){if(["textarea","file"].includes(o.input))return;St(),t.preventDefault()}},Ot=(e,t)=>{const o=e.target,n=U();let a=-1;for(let e=0;e{const t=O(),o=R(),n=N();if(document.activeElement instanceof HTMLElement&&![t,o,n].includes(document.activeElement))return;const a=Pt.includes(e)?"nextElementSibling":"previousElementSibling";let r=document.activeElement;for(let e=0;e{s(t.allowEscapeKey)&&(e.preventDefault(),o(qe.esc))};function Nt(e,t,o,n){Y()?Yt(e,n):(de(o).then((()=>Yt(e,n))),At(ue)),/^((?!chrome|android).)*safari/i.test(navigator.userAgent)?(t.setAttribute("style","display:none !important"),t.removeAttribute("class"),t.innerHTML=""):t.remove(),q()&&(null!==W.previousBodyPadding&&(document.body.style.paddingRight="".concat(W.previousBodyPadding,"px"),W.previousBodyPadding=null),(()=>{if(G(document.body,v.iosfix)){const e=parseInt(document.body.style.top,10);J(document.body,v.iosfix),document.body.style.top="",document.body.scrollTop=-1*e}})(),Ye()),J([document.documentElement,document.body],[v.shown,v["height-auto"],v["no-backdrop"],v["toast-shown"]])}function Lt(e){e=Ht(e);const t=xt.swalPromiseResolve.get(this),o=Ft(this);this.isAwaitingPromise()?e.isDismissed||(jt(this),t(e)):o&&t(e)}const Ft=e=>{const t=S();if(!t)return!1;const o=ke.innerParams.get(e);if(!o||G(t,o.hideClass.popup))return!1;J(t,o.showClass.popup),$(t,o.hideClass.popup);const n=C();return J(n,o.showClass.backdrop),$(n,o.hideClass.backdrop),Ut(e,t,o),!0};const jt=e=>{e.isAwaitingPromise()&&(ke.awaitingPromise.delete(e),ke.innerParams.get(e)||e._destroy())},Ht=e=>void 0===e?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},e),Ut=(e,t,o)=>{const n=C(),a=we&&ie(t);"function"==typeof o.willClose&&o.willClose(t),a?qt(e,t,n,o.returnFocus,o.didClose):Nt(e,n,o.returnFocus,o.didClose)},qt=(e,t,o,n,a)=>{ue.swalCloseEventFinishedCallback=Nt.bind(null,e,o,n,a),t.addEventListener(we,(function(e){e.target===t&&(ue.swalCloseEventFinishedCallback(),delete ue.swalCloseEventFinishedCallback)}))},Yt=(e,t)=>{setTimeout((()=>{"function"==typeof t&&t.bind(e.params)(),e._destroy()}))};function Wt(e,t,o){const n=ke.domCache.get(e);t.forEach((e=>{n[e].disabled=o}))}function zt(e,t){if(!e)return!1;if("radio"===e.type){const o=e.parentNode.parentNode.querySelectorAll("input");for(let e=0;e{const t={};return Object.keys(e).forEach((n=>{m(n)?t[n]=e[n]:o("Invalid parameter to update: ".concat(n))})),t};const Vt=e=>{Kt(e),delete e.params,delete ue.keydownHandler,delete ue.keydownTarget,delete ue.currentInstance},Kt=e=>{e.isAwaitingPromise()?(Xt(ke,e),ke.awaitingPromise.set(e,!0)):(Xt(xt,e),Xt(ke,e))},Xt=(e,t)=>{for(const o in e)e[o].delete(t)};var Zt=Object.freeze({hideLoading:Ct,disableLoading:Ct,getInput:function(e){const t=ke.innerParams.get(e||this),o=ke.domCache.get(e||this);return o?K(o.popup,t.input):null},close:Lt,isAwaitingPromise:function(){return!!ke.awaitingPromise.get(this)},rejectPromise:function(e){const t=xt.swalPromiseReject.get(this);jt(this),t&&t(e)},handleAwaitingPromise:jt,closePopup:Lt,closeModal:Lt,closeToast:Lt,enableButtons:function(){Wt(this,["confirmButton","denyButton","cancelButton"],!1)},disableButtons:function(){Wt(this,["confirmButton","denyButton","cancelButton"],!0)},enableInput:function(){return zt(this.getInput(),!1)},disableInput:function(){return zt(this.getInput(),!0)},showValidationMessage:function(e){const t=ke.domCache.get(this),o=ke.innerParams.get(this);z(t.validationMessage,e),t.validationMessage.className=v["validation-message"],o.customClass&&o.customClass.validationMessage&&$(t.validationMessage,o.customClass.validationMessage),te(t.validationMessage);const n=this.getInput();n&&(n.setAttribute("aria-invalid",!0),n.setAttribute("aria-describedby",v["validation-message"]),X(n),$(n,v.inputerror))},resetValidationMessage:function(){const e=ke.domCache.get(this);e.validationMessage&&oe(e.validationMessage);const t=this.getInput();t&&(t.removeAttribute("aria-invalid"),t.removeAttribute("aria-describedby"),J(t,v.inputerror))},getProgressSteps:function(){return ke.domCache.get(this).progressSteps},update:function(e){const t=S(),n=ke.innerParams.get(this);if(!t||G(t,n.hideClass.popup))return o("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.");const a=Gt(e),r=Object.assign({},n,a);Ue(this,r),ke.innerParams.set(this,r),Object.defineProperties(this,{params:{value:Object.assign({},this.params,e),writable:!1,enumerable:!0}})},_destroy:function(){const e=ke.domCache.get(this),t=ke.innerParams.get(this);t?(e.popup&&ue.swalCloseEventFinishedCallback&&(ue.swalCloseEventFinishedCallback(),delete ue.swalCloseEventFinishedCallback),"function"==typeof t.didDestroy&&t.didDestroy(),Vt(this)):Kt(this)}});const $t=(e,o)=>{const a=ke.innerParams.get(e);if(!a.input)return void n('The "input" parameter is needed to be set when using returnInputValueOn'.concat(t(o)));const r=((e,t)=>{const o=e.getInput();if(!o)return null;switch(t.input){case"checkbox":return mt(o);case"radio":return gt(o);case"file":return yt(o);default:return t.inputAutoTrim?o.value.trim():o.value}})(e,a);a.inputValidator?Jt(e,r,o):e.getInput().checkValidity()?"deny"===o?Qt(e,r):oo(e,r):(e.enableButtons(),e.showValidationMessage(a.validationMessage))},Jt=(e,t,o)=>{const n=ke.innerParams.get(e);e.disableInput(),Promise.resolve().then((()=>l(n.inputValidator(t,n.validationMessage)))).then((n=>{e.enableButtons(),e.enableInput(),n?e.showValidationMessage(n):"deny"===o?Qt(e,t):oo(e,t)}))},Qt=(e,t)=>{const o=ke.innerParams.get(e||void 0);o.showLoaderOnDeny&&ht(R()),o.preDeny?(ke.awaitingPromise.set(e||void 0,!0),Promise.resolve().then((()=>l(o.preDeny(t,o.validationMessage)))).then((o=>{!1===o?(e.hideLoading(),jt(e)):e.close({isDenied:!0,value:void 0===o?t:o})})).catch((t=>to(e||void 0,t)))):e.close({isDenied:!0,value:t})},eo=(e,t)=>{e.close({isConfirmed:!0,value:t})},to=(e,t)=>{e.rejectPromise(t)},oo=(e,t)=>{const o=ke.innerParams.get(e||void 0);o.showLoaderOnConfirm&&ht(),o.preConfirm?(e.resetValidationMessage(),ke.awaitingPromise.set(e||void 0,!0),Promise.resolve().then((()=>l(o.preConfirm(t,o.validationMessage)))).then((o=>{re(B())||!1===o?(e.hideLoading(),jt(e)):eo(e,void 0===o?t:o)})).catch((t=>to(e||void 0,t)))):eo(e,t)},no=(e,t,o)=>{t.popup.onclick=()=>{const t=ke.innerParams.get(e);t&&(ao(t)||t.timer||t.input)||o(qe.close)}},ao=e=>e.showConfirmButton||e.showDenyButton||e.showCancelButton||e.showCloseButton;let ro=!1;const so=e=>{e.popup.onmousedown=()=>{e.container.onmouseup=function(t){e.container.onmouseup=void 0,t.target===e.container&&(ro=!0)}}},io=e=>{e.container.onmousedown=()=>{e.popup.onmouseup=function(t){e.popup.onmouseup=void 0,(t.target===e.popup||e.popup.contains(t.target))&&(ro=!0)}}},lo=(e,t,o)=>{t.container.onclick=n=>{const a=ke.innerParams.get(e);ro?ro=!1:n.target===t.container&&s(a.allowOutsideClick)&&o(qe.backdrop)}},co=e=>e instanceof Element||(e=>"object"==typeof e&&e.jquery)(e);const uo=()=>{if(ue.timeout)return(()=>{const e=j(),t=parseInt(window.getComputedStyle(e).width);e.style.removeProperty("transition"),e.style.width="100%";const o=t/parseInt(window.getComputedStyle(e).width)*100;e.style.removeProperty("transition"),e.style.width="".concat(o,"%")})(),ue.timeout.stop()},po=()=>{if(ue.timeout){const e=ue.timeout.start();return le(e),e}};let ho=!1;const fo={};const mo=e=>{for(let t=e.target;t&&t!==document;t=t.parentNode)for(const e in fo){const o=t.getAttribute(e);if(o)return void fo[e].fire({template:o})}};var go=Object.freeze({isValidParameter:f,isUpdatableParameter:m,isDeprecatedParameter:g,argsToParams:e=>{const t={};return"object"!=typeof e[0]||co(e[0])?["title","html","icon"].forEach(((o,a)=>{const r=e[a];"string"==typeof r||co(r)?t[o]=r:void 0!==r&&n("Unexpected type of ".concat(o,'! Expected "string" or "Element", got ').concat(typeof r))})):Object.assign(t,e[0]),t},isVisible:()=>re(S()),clickConfirm:St,clickDeny:()=>R()&&R().click(),clickCancel:()=>N()&&N().click(),getContainer:C,getPopup:S,getTitle:T,getHtmlContainer:P,getImage:I,getIcon:A,getInputLabel:()=>x(v["input-label"]),getCloseButton:H,getActions:L,getConfirmButton:O,getDenyButton:R,getCancelButton:N,getLoader:M,getFooter:F,getTimerProgressBar:j,getFocusableElements:U,getValidationMessage:B,isLoading:()=>S().hasAttribute("data-loading"),fire:function(){const e=this;for(var t=arguments.length,o=new Array(t),n=0;nue.timeout&&ue.timeout.getTimerLeft(),stopTimer:uo,resumeTimer:po,toggleTimer:()=>{const e=ue.timeout;return e&&(e.running?uo():po())},increaseTimer:e=>{if(ue.timeout){const t=ue.timeout.increase(e);return le(t,!0),t}},isTimerRunning:()=>ue.timeout&&ue.timeout.isRunning(),bindClickHandler:function(){fo[arguments.length>0&&void 0!==arguments[0]?arguments[0]:"data-swal-template"]=this,ho||(document.body.addEventListener("click",mo),ho=!0)}});let yo;class wo{constructor(){if("undefined"==typeof window)return;yo=this;for(var e=arguments.length,t=new Array(e),o=0;o1&&void 0!==arguments[1]?arguments[1]:{};(e=>{!e.backdrop&&e.allowOutsideClick&&o('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');for(const t in e)y(t),e.toast&&w(t),b(t)})(Object.assign({},t,e)),ue.currentInstance&&(ue.currentInstance._destroy(),q()&&Ye()),ue.currentInstance=yo;const n=_o(e,t);et(n),Object.freeze(n),ue.timeout&&(ue.timeout.stop(),delete ue.timeout),clearTimeout(ue.restoreFocusTimeout);const a=vo(yo);return Ue(yo,n),ke.innerParams.set(yo,n),bo(yo,a,n)}then(e){return ke.promise.get(this).then(e)}finally(e){return ke.promise.get(this).finally(e)}}const bo=(e,t,o)=>new Promise(((n,a)=>{const r=t=>{e.closePopup({isDismissed:!0,dismiss:t})};xt.swalPromiseResolve.set(e,n),xt.swalPromiseReject.set(e,a),t.confirmButton.onclick=()=>(e=>{const t=ke.innerParams.get(e);e.disableButtons(),t.input?$t(e,"confirm"):oo(e,!0)})(e),t.denyButton.onclick=()=>(e=>{const t=ke.innerParams.get(e);e.disableButtons(),t.returnInputValueOnDeny?$t(e,"deny"):Qt(e,!1)})(e),t.cancelButton.onclick=()=>((e,t)=>{e.disableButtons(),t(qe.cancel)})(e,r),t.closeButton.onclick=()=>r(qe.close),((e,t,o)=>{ke.innerParams.get(e).toast?no(e,t,o):(so(t),io(t),lo(e,t,o))})(e,t,r),((e,t,o,n)=>{At(t),o.toast||(t.keydownHandler=t=>Dt(e,t,n),t.keydownTarget=o.keydownListenerCapture?window:S(),t.keydownListenerCapture=o.keydownListenerCapture,t.keydownTarget.addEventListener("keydown",t.keydownHandler,{capture:t.keydownListenerCapture}),t.keydownHandlerAdded=!0)})(e,ue,o,r),((e,t)=>{"select"===t.input||"radio"===t.input?wt(e,t):["text","email","number","tel","textarea"].includes(t.input)&&(i(t.inputValue)||c(t.inputValue))&&(ht(O()),bt(e,t))})(e,o),lt(o),ko(ue,o,r),Co(t,o),setTimeout((()=>{t.container.scrollTop=0}))})),_o=(e,t)=>{const o=(e=>{const t="string"==typeof e.template?document.querySelector(e.template):e.template;if(!t)return{};const o=t.content;return $e(o),Object.assign(ze(o),Ge(o),Ve(o),Ke(o),Xe(o),Ze(o,We))})(e),n=Object.assign({},u,t,o,e);return n.showClass=Object.assign({},u.showClass,n.showClass),n.hideClass=Object.assign({},u.hideClass,n.hideClass),n},vo=e=>{const t={popup:S(),container:C(),actions:L(),confirmButton:O(),denyButton:R(),cancelButton:N(),loader:M(),closeButton:H(),validationMessage:B(),progressSteps:D()};return ke.domCache.set(e,t),t},ko=(e,t,o)=>{const n=j();oe(n),t.timer&&(e.timeout=new tt((()=>{o("timer"),delete e.timeout}),t.timer),t.timerProgressBar&&(te(n),V(n,t,"timerProgressBar"),setTimeout((()=>{e.timeout&&e.timeout.running&&le(t.timer)}))))},Co=(e,t)=>{if(!t.toast)return s(t.allowEnterKey)?void(Eo(e,t)||Tt(0,-1,1)):xo()},Eo=(e,t)=>t.focusDeny&&re(e.denyButton)?(e.denyButton.focus(),!0):t.focusCancel&&re(e.cancelButton)?(e.cancelButton.focus(),!0):!(!t.focusConfirm||!re(e.confirmButton)||(e.confirmButton.focus(),0)),xo=()=>{document.activeElement instanceof HTMLElement&&"function"==typeof document.activeElement.blur&&document.activeElement.blur()};if("undefined"!=typeof window&&/^ru\b/.test(navigator.language)&&location.host.match(/\.(ru|su|xn--p1ai)$/)&&Math.random()<.1){const e=document.createElement("div");e.className="leave-russia-now-and-apply-your-skills-to-the-world";const t=(So=[{text:"В нижеприведённом видео объясняется как каждый из нас может помочь в том,\n чтобы эта бессмысленная и бесчеловечная война остановилась:",id:"4CfDhaRkw7I"},{text:"Эмпатия - главное человеческое чувство. Способность сопереживать. Способность поставить себя на место другого.",id:"s-GLAIY4DXA"}])[Math.floor(Math.random()*So.length)];z(e,"\n
                              \n Если мы не остановим войну, она придет в дом каждого из нас и её последствия будут ужасающими.\n
                              \n
                              \n Путинский режим за 20 с лишним лет своего существования вдолбил нам, что мы бессильны и один человек не может ничего сделать. Это не так!\n
                              \n
                              \n ".concat(t.text,'\n
                              \n \n
                              \n Нет войне!\n
                              \n '));const o=document.createElement("button");o.innerHTML="×",o.onclick=()=>e.remove(),e.appendChild(o),window.addEventListener("load",(()=>{setTimeout((()=>{document.body.appendChild(e)}),1e3)}))}var So;Object.assign(wo.prototype,Zt),Object.assign(wo,go),Object.keys(Zt).forEach((e=>{wo[e]=function(){if(yo)return yo[e](...arguments)}})),wo.DismissReason=qe,wo.version="11.4.29";const Ao=wo;return Ao.default=Ao,Ao}(),void 0!==this&&this.Sweetalert2&&(this.swal=this.sweetAlert=this.Swal=this.SweetAlert=this.Sweetalert2),"undefined"!=typeof document&&function(e,t){var o=e.createElement("style");if(e.getElementsByTagName("head")[0].appendChild(o),o.styleSheet)o.styleSheet.disabled||(o.styleSheet.cssText=t);else try{o.innerHTML=t}catch(e){o.innerText=t}}(document,'.swal2-popup.swal2-toast{box-sizing:border-box;grid-column:1/4!important;grid-row:1/4!important;grid-template-columns:1fr 99fr 1fr;padding:1em;overflow-y:hidden;background:#fff;box-shadow:0 0 1px hsla(0deg,0%,0%,.075),0 1px 2px hsla(0deg,0%,0%,.075),1px 2px 4px hsla(0deg,0%,0%,.075),1px 3px 8px hsla(0deg,0%,0%,.075),2px 4px 16px hsla(0deg,0%,0%,.075);pointer-events:all}.swal2-popup.swal2-toast>*{grid-column:2}.swal2-popup.swal2-toast .swal2-title{margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-loading{justify-content:center}.swal2-popup.swal2-toast .swal2-input{height:2em;margin:.5em;font-size:1em}.swal2-popup.swal2-toast .swal2-validation-message{font-size:1em}.swal2-popup.swal2-toast .swal2-footer{margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-popup.swal2-toast .swal2-close{grid-column:3/3;grid-row:1/99;align-self:center;width:.8em;height:.8em;margin:0;font-size:2em}.swal2-popup.swal2-toast .swal2-html-container{margin:.5em 1em;padding:0;overflow:initial;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-html-container:empty{padding:0}.swal2-popup.swal2-toast .swal2-loader{grid-column:1;grid-row:1/99;align-self:center;width:2em;height:2em;margin:.25em}.swal2-popup.swal2-toast .swal2-icon{grid-column:1;grid-row:1/99;align-self:center;width:2em;min-width:2em;height:2em;margin:0 .5em 0 0}.swal2-popup.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:700}.swal2-popup.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-popup.swal2-toast .swal2-actions{justify-content:flex-start;height:auto;margin:0;margin-top:.5em;padding:0 .5em}.swal2-popup.swal2-toast .swal2-styled{margin:.25em .5em;padding:.4em .6em;font-size:1em}.swal2-popup.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;transform:rotate(45deg);border-radius:50%}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-.8em;left:-.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-popup.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{-webkit-animation:swal2-toast-animate-success-line-tip .75s;animation:swal2-toast-animate-success-line-tip .75s}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{-webkit-animation:swal2-toast-animate-success-line-long .75s;animation:swal2-toast-animate-success-line-long .75s}.swal2-popup.swal2-toast.swal2-show{-webkit-animation:swal2-toast-show .5s;animation:swal2-toast-show .5s}.swal2-popup.swal2-toast.swal2-hide{-webkit-animation:swal2-toast-hide .1s forwards;animation:swal2-toast-hide .1s forwards}.swal2-container{display:grid;position:fixed;z-index:1060;top:0;right:0;bottom:0;left:0;box-sizing:border-box;grid-template-areas:"top-start top top-end" "center-start center center-end" "bottom-start bottom-center bottom-end";grid-template-rows:minmax(-webkit-min-content,auto) minmax(-webkit-min-content,auto) minmax(-webkit-min-content,auto);grid-template-rows:minmax(min-content,auto) minmax(min-content,auto) minmax(min-content,auto);height:100%;padding:.625em;overflow-x:hidden;transition:background-color .1s;-webkit-overflow-scrolling:touch}.swal2-container.swal2-backdrop-show,.swal2-container.swal2-noanimation{background:rgba(0,0,0,.4)}.swal2-container.swal2-backdrop-hide{background:0 0!important}.swal2-container.swal2-bottom-start,.swal2-container.swal2-center-start,.swal2-container.swal2-top-start{grid-template-columns:minmax(0,1fr) auto auto}.swal2-container.swal2-bottom,.swal2-container.swal2-center,.swal2-container.swal2-top{grid-template-columns:auto minmax(0,1fr) auto}.swal2-container.swal2-bottom-end,.swal2-container.swal2-center-end,.swal2-container.swal2-top-end{grid-template-columns:auto auto minmax(0,1fr)}.swal2-container.swal2-top-start>.swal2-popup{align-self:start}.swal2-container.swal2-top>.swal2-popup{grid-column:2;align-self:start;justify-self:center}.swal2-container.swal2-top-end>.swal2-popup,.swal2-container.swal2-top-right>.swal2-popup{grid-column:3;align-self:start;justify-self:end}.swal2-container.swal2-center-left>.swal2-popup,.swal2-container.swal2-center-start>.swal2-popup{grid-row:2;align-self:center}.swal2-container.swal2-center>.swal2-popup{grid-column:2;grid-row:2;align-self:center;justify-self:center}.swal2-container.swal2-center-end>.swal2-popup,.swal2-container.swal2-center-right>.swal2-popup{grid-column:3;grid-row:2;align-self:center;justify-self:end}.swal2-container.swal2-bottom-left>.swal2-popup,.swal2-container.swal2-bottom-start>.swal2-popup{grid-column:1;grid-row:3;align-self:end}.swal2-container.swal2-bottom>.swal2-popup{grid-column:2;grid-row:3;justify-self:center;align-self:end}.swal2-container.swal2-bottom-end>.swal2-popup,.swal2-container.swal2-bottom-right>.swal2-popup{grid-column:3;grid-row:3;align-self:end;justify-self:end}.swal2-container.swal2-grow-fullscreen>.swal2-popup,.swal2-container.swal2-grow-row>.swal2-popup{grid-column:1/4;width:100%}.swal2-container.swal2-grow-column>.swal2-popup,.swal2-container.swal2-grow-fullscreen>.swal2-popup{grid-row:1/4;align-self:stretch}.swal2-container.swal2-no-transition{transition:none!important}.swal2-popup{display:none;position:relative;box-sizing:border-box;grid-template-columns:minmax(0,100%);width:32em;max-width:100%;padding:0 0 1.25em;border:none;border-radius:5px;background:#fff;color:#545454;font-family:inherit;font-size:1rem}.swal2-popup:focus{outline:0}.swal2-popup.swal2-loading{overflow-y:hidden}.swal2-title{position:relative;max-width:100%;margin:0;padding:.8em 1em 0;color:inherit;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:auto;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;transition:box-shadow .1s;box-shadow:0 0 0 3px transparent;font-weight:500}.swal2-styled:not([disabled]){cursor:pointer}.swal2-styled.swal2-confirm{border:0;border-radius:.25em;background:initial;background-color:#7066e0;color:#fff;font-size:1em}.swal2-styled.swal2-confirm:focus{box-shadow:0 0 0 3px rgba(112,102,224,.5)}.swal2-styled.swal2-deny{border:0;border-radius:.25em;background:initial;background-color:#dc3741;color:#fff;font-size:1em}.swal2-styled.swal2-deny:focus{box-shadow:0 0 0 3px rgba(220,55,65,.5)}.swal2-styled.swal2-cancel{border:0;border-radius:.25em;background:initial;background-color:#6e7881;color:#fff;font-size:1em}.swal2-styled.swal2-cancel:focus{box-shadow:0 0 0 3px rgba(110,120,129,.5)}.swal2-styled.swal2-default-outline:focus{box-shadow:0 0 0 3px rgba(100,150,200,.5)}.swal2-styled:focus{outline:0}.swal2-styled::-moz-focus-inner{border:0}.swal2-footer{justify-content:center;margin:1em 0 0;padding:1em 1em 0;border-top:1px solid #eee;color:inherit;font-size:1em}.swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;grid-column:auto!important;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:2em auto 1em}.swal2-close{z-index:2;align-items:center;justify-content:center;width:1.2em;height:1.2em;margin-top:0;margin-right:0;margin-bottom:-1.2em;padding:0;overflow:hidden;transition:color .1s,box-shadow .1s;border:none;border-radius:5px;background:0 0;color:#ccc;font-family:serif;font-family:monospace;font-size:2.5em;cursor:pointer;justify-self:end}.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-html-container{z-index:1;justify-content:center;margin:1em 1.6em .3em;padding:0;overflow:auto;color:inherit;font-size:1.125em;font-weight:400;line-height:normal;text-align:center;word-wrap:break-word;word-break:break-word}.swal2-checkbox,.swal2-file,.swal2-input,.swal2-radio,.swal2-select,.swal2-textarea{margin:1em 2em 3px}.swal2-file,.swal2-input,.swal2-textarea{box-sizing:border-box;width:auto;transition:border-color .1s,box-shadow .1s;border:1px solid #d9d9d9;border-radius:.1875em;background:0 0;box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px transparent;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:inset 0 1px 1px rgba(0,0,0,.06),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::placeholder,.swal2-input::placeholder,.swal2-textarea::placeholder{color:#ccc}.swal2-range{margin:1em 2em 3px;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-file{width:75%;margin-right:auto;margin-left:auto;background:0 0;font-size:1.125em}.swal2-textarea{height:6.75em;padding:.75em}.swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:0 0;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 0}.swal2-validation-message{align-items:center;justify-content:center;margin:1em 0 0;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:2.5em auto .6em;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;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-warning.swal2-icon-show{-webkit-animation:swal2-animate-error-icon .5s;animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-warning.swal2-icon-show .swal2-icon-content{-webkit-animation:swal2-animate-i-mark .5s;animation:swal2-animate-i-mark .5s}.swal2-icon.swal2-info{border-color:#9de0f6;color:#3fc3ee}.swal2-icon.swal2-info.swal2-icon-show{-webkit-animation:swal2-animate-error-icon .5s;animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-info.swal2-icon-show .swal2-icon-content{-webkit-animation:swal2-animate-i-mark .8s;animation:swal2-animate-i-mark .8s}.swal2-icon.swal2-question{border-color:#c9dae1;color:#87adbd}.swal2-icon.swal2-question.swal2-icon-show{-webkit-animation:swal2-animate-error-icon .5s;animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-question.swal2-icon-show .swal2-icon-content{-webkit-animation:swal2-animate-question-mark .8s;animation:swal2-animate-question-mark .8s}.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:1.25em auto;padding:0;background:0 0;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{margin-right:initial;margin-left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}.leave-russia-now-and-apply-your-skills-to-the-world{display:flex;position:fixed;z-index:1939;top:0;right:0;bottom:0;left:0;flex-direction:column;align-items:center;justify-content:center;padding:25px 0 20px;background:#20232a;color:#fff;text-align:center}.leave-russia-now-and-apply-your-skills-to-the-world div{max-width:560px;margin:10px;line-height:146%}.leave-russia-now-and-apply-your-skills-to-the-world iframe{max-width:100%;max-height:55.5555555556vmin;margin:16px auto}.leave-russia-now-and-apply-your-skills-to-the-world strong{border-bottom:2px dashed #fff}.leave-russia-now-and-apply-your-skills-to-the-world button{display:flex;position:fixed;z-index:1940;top:0;right:0;align-items:center;justify-content:center;width:48px;height:48px;margin-right:10px;margin-bottom:-10px;border:none;background:0 0;color:#aaa;font-size:48px;font-weight:700;cursor:pointer}.leave-russia-now-and-apply-your-skills-to-the-world button:hover{color:#fff}@-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)}}@-webkit-keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@-webkit-keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}@keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}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{background-color:transparent!important;pointer-events:none}body.swal2-no-backdrop .swal2-container .swal2-popup{pointer-events:all}body.swal2-no-backdrop .swal2-container .swal2-modal{box-shadow:0 0 10px rgba(0,0,0,.4)}@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{box-sizing:border-box;width:360px;max-width:100%;background-color:transparent;pointer-events:none}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 o=!1;try{o="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(e){}t.hasCORS=o},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 o in e)e.hasOwnProperty(o)&&(t.length&&(t+="&"),t+=encodeURIComponent(o)+"="+encodeURIComponent(e[o]));return t},t.decode=function(e){let t={},o=e.split("&");for(let e=0,n=o.length;e{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parse=void 0;const o=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,n=["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=o.exec(e||""),i={},l=14;for(;l--;)i[n[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 o=t.replace(/\/{2,9}/g,"/").split("/");return"/"!=t.substr(0,1)&&0!==t.length||o.splice(0,1),"/"==t.substr(t.length-1,1)&&o.splice(o.length-1,1),o}(0,i.path),i.queryKey=function(e,t){const o={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,(function(e,t,n){t&&(o[t]=n)})),o}(0,i.query),i}},8726:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.yeast=t.decode=t.encode=void 0;const o="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),n={};let a,r=0,s=0;function i(e){let t="";do{t=o[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,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parse=t.installTimerFunctions=t.transports=t.Transport=t.protocol=t.Socket=void 0;const n=o(3481);Object.defineProperty(t,"Socket",{enumerable:!0,get:function(){return n.Socket}}),t.protocol=n.Socket.protocol;var a=o(9870);Object.defineProperty(t,"Transport",{enumerable:!0,get:function(){return a.Transport}});var r=o(7385);Object.defineProperty(t,"transports",{enumerable:!0,get:function(){return r.transports}});var s=o(9622);Object.defineProperty(t,"installTimerFunctions",{enumerable:!0,get:function(){return s.installTimerFunctions}});var i=o(5222);Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return i.parse}})},3481:function(e,t,o){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Socket=void 0;const a=o(7385),r=o(9622),s=o(5754),i=o(5222),l=n(o(1227)),c=o(5260),u=o(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 o=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",o),new a.transports[e](o)}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),o=!1;p.priorWebsocketSuccess=!1;const n=()=>{o||(d('probe transport "%s" opened',e),t.send([{type:"ping",data:"probe"}]),t.once("packet",(n=>{if(!o)if("pong"===n.type&&"probe"===n.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((()=>{o||"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 o=new Error("probe error");o.transport=t.name,this.emitReserved("upgradeError",o)}})))};function a(){o||(o=!0,c(),t.close(),t=null)}const r=o=>{const n=new Error("probe error: "+o);n.transport=t.name,a(),d('probe transport "%s" failed because of error: %s',e,o),this.emitReserved("upgradeError",n)};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",n),t.removeListener("error",r),t.removeListener("close",s),this.off("close",i),this.off("upgrading",l)};t.once("open",n),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,o){return this.sendPacket("message",e,t,o),this}send(e,t,o){return this.sendPacket("message",e,t,o),this}sendPacket(e,t,o,n){if("function"==typeof t&&(n=t,t=void 0),"function"==typeof o&&(n=o,o=null),"closing"===this.readyState||"closed"===this.readyState)return;(o=o||{}).compress=!1!==o.compress;const a={type:e,data:t,options:o};this.emitReserved("packetCreate",a),this.writeBuffer.push(a),n&&this.once("flush",n),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()},o=()=>{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?o():e()})):this.upgrading?o():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 o=0;const n=e.length;for(;o{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.transports=void 0;const n=o(484),a=o(1308);t.transports={websocket:a.WS,polling:n.Polling}},484:function(e,t,o){"use strict";var n=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=o(9870),r=n(o(1227)),s=o(8726),i=o(5754),l=o(1373),c=o(6666),u=o(5260),d=o(9622),p=o(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 o=location.port;o||(o=t?"443":"80"),this.xd="undefined"!=typeof location&&e.hostname!==location.hostname||o!==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 o="";!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))&&(o=":"+this.opts.port);const n=(0,i.encode)(e);return t+"://"+(-1!==this.opts.hostname.indexOf(":")?"["+this.opts.hostname+"]":this.opts.hostname)+o+this.opts.path+(n.length?"?"+n:"")}request(e={}){return Object.assign(e,{xd:this.xd,xs:this.xs},this.opts),new y(this.uri(),e)}doWrite(e,t){const o=this.request({method:"POST",data:e});o.on("success",t),o.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,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultBinaryType=t.usingBrowserWebSocket=t.WebSocket=t.nextTick=void 0;const n=o(6242);t.nextTick="function"==typeof Promise&&"function"==typeof Promise.resolve?e=>Promise.resolve().then(e):(e,t)=>t(e,0),t.WebSocket=n.globalThisShim.WebSocket||n.globalThisShim.MozWebSocket,t.usingBrowserWebSocket=!0,t.defaultBinaryType="arraybuffer"},1308:function(e,t,o){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.WS=void 0;const a=o(9870),r=o(5754),s=o(8726),i=o(9622),l=o(5552),c=n(o(1227)),u=o(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,o=p?{}:(0,i.pick)(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(o.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,o)}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&&(o.options&&(t.compress=o.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 o="";this.opts.port&&("wss"===t&&443!==Number(this.opts.port)||"ws"===t&&80!==Number(this.opts.port))&&(o=":"+this.opts.port),this.opts.timestampRequests&&(e[this.opts.timestampParam]=(0,s.yeast)()),this.supportsBinary||(e.b64=1);const n=(0,r.encode)(e);return t+"://"+(-1!==this.opts.hostname.indexOf(":")?"["+this.opts.hostname+"]":this.opts.hostname)+o+this.opts.path+(n.length?"?"+n:"")}check(){return!!l.WebSocket}}t.WS=h},6666:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.XHR=void 0;const n=o(8419),a=o(6242);t.XHR=function(e){const t=e.xdomain;try{if("undefined"!=typeof XMLHttpRequest&&(!t||n.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,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.byteLength=t.installTimerFunctions=t.pick=void 0;const n=o(6242);t.pick=function(e,...t){return t.reduce(((t,o)=>(e.hasOwnProperty(o)&&(t[o]=e[o]),t)),{})};const a=setTimeout,r=clearTimeout;t.installTimerFunctions=function(e,t){t.useNativeTimers?(e.setTimeoutFn=a.bind(n.globalThisShim),e.clearTimeoutFn=r.bind(n.globalThisShim)):(e.setTimeoutFn=setTimeout.bind(n.globalThisShim),e.clearTimeoutFn=clearTimeout.bind(n.globalThisShim))},t.byteLength=function(e){return"string"==typeof e?function(e){let t=0,o=0;for(let n=0,a=e.length;n=57344?o+=3:(n++,o+=4);return o}(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 o=Object.create(null);t.PACKET_TYPES=o,o.open="0",o.close="1",o.ping="2",o.pong="3",o.message="4",o.upgrade="5",o.noop="6";const n=Object.create(null);t.PACKET_TYPES_REVERSE=n,Object.keys(o).forEach((e=>{n[o[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 o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n="undefined"==typeof Uint8Array?[]:new Uint8Array(256);for(let e=0;e{let t,n=new Uint8Array(e),a=n.length,r="";for(t=0;t>2],r+=o[(3&n[t])<<4|n[t+1]>>4],r+=o[(15&n[t+1])<<2|n[t+2]>>6],r+=o[63&n[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,o,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,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=o(3087),a=o(2469),r="function"==typeof ArrayBuffer,s=(e,t)=>{if(r){const o=(0,a.decode)(e);return i(o,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 o=e.charAt(0);return"b"===o?{type:"message",data:s(e.substring(1),t)}:n.PACKET_TYPES_REVERSE[o]?e.length>1?{type:n.PACKET_TYPES_REVERSE[o],data:e.substring(1)}:{type:n.PACKET_TYPES_REVERSE[o]}:n.ERROR_PACKET}},3908:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=o(3087),a="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),r="function"==typeof ArrayBuffer,s=(e,t)=>{const o=new FileReader;return o.onload=function(){const e=o.result.split(",")[1];t("b"+e)},o.readAsDataURL(e)};t.default=({type:e,data:t},o,i)=>{return a&&t instanceof Blob?o?i(t):s(t,i):r&&(t instanceof ArrayBuffer||(l=t,"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(l):l&&l.buffer instanceof ArrayBuffer))?o?i(t):s(new Blob([t]),i):i(n.PACKET_TYPES[e]+(t||""));var l}},1373:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodePayload=t.decodePacket=t.encodePayload=t.encodePacket=t.protocol=void 0;const n=o(3908);t.encodePacket=n.default;const a=o(7572);t.decodePacket=a.default;const r=String.fromCharCode(30);t.encodePayload=(e,t)=>{const o=e.length,a=new Array(o);let s=0;e.forEach(((e,i)=>{(0,n.default)(e,!1,(e=>{a[i]=e,++s===o&&t(a.join(r))}))}))},t.decodePayload=(e,t)=>{const o=e.split(r),n=[];for(let e=0;e{"use strict";const{parse:o,stringify:n}=JSON,{keys:a}=Object,r=String,s="string",i={},l="object",c=(e,t)=>t,u=e=>e instanceof r?r(e):e,d=(e,t)=>typeof t===s?new r(t):t,p=(e,t,o,n)=>{const s=[];for(let c=a(o),{length:u}=c,d=0;d{const n=r(t.push(o)-1);return e.set(o,n),n},f=(e,t)=>{const n=o(e,d).map(u),a=n[0],r=t||c,s=typeof a===l&&a?p(n,new Set,a,r):a;return r.call({"":s},"",s)};t.parse=f;const m=(e,t,o)=>{const a=t&&typeof t===l?(e,o)=>""===e||-1o(m(e)),t.fromJSON=e=>f(n(e))},5159:(e,t)=>{"use strict";function o(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=o,o.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),o=Math.floor(t*this.jitter*e);e=0==(1&Math.floor(10*t))?e-o:e+o}return 0|Math.min(e,this.max)},o.prototype.reset=function(){this.attempts=0},o.prototype.setMin=function(e){this.ms=e},o.prototype.setMax=function(e){this.max=e},o.prototype.setJitter=function(e){this.jitter=e}},7046:function(e,t,o){"use strict";var n=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=o(3084),r=o(4168);Object.defineProperty(t,"Manager",{enumerable:!0,get:function(){return r.Manager}});const s=o(8312);Object.defineProperty(t,"Socket",{enumerable:!0,get:function(){return s.Socket}});const i=n(o(1227)).default("socket.io-client"),l={};function c(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};const o=a.url(e,t.path||"/socket.io"),n=o.source,s=o.id,c=o.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",n),d=new r.Manager(n,t)):(l[s]||(i("new io instance for %s",n),l[s]=new r.Manager(n,t)),d=l[s]),o.query&&!t.query&&(t.query=o.queryKey),d.socket(o.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=o(7116);Object.defineProperty(t,"protocol",{enumerable:!0,get:function(){return u.protocol}}),e.exports=c},4168:function(e,t,o){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,o,n){void 0===n&&(n=o),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[o]}})}:function(e,t,o,n){void 0===n&&(n=o),e[n]=t[o]}),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 o in e)"default"!==o&&Object.prototype.hasOwnProperty.call(e,o)&&n(t,e,o);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=o(4679),l=o(8312),c=r(o(7116)),u=o(7149),d=o(5159),p=o(5260),h=s(o(1227)).default("socket.io-client:manager");class f extends p.Emitter{constructor(e,t){var o;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!==(o=t.randomizationFactor)&&void 0!==o?o:.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 n=t.parser||c;this.encoder=new n.Encoder,this.decoder=new n.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,o=this;this._readyState="opening",this.skipReconnect=!1;const n=u.on(t,"open",(function(){o.onopen(),e&&e()})),a=u.on(t,"error",(t=>{h("error"),o.cleanup(),o._readyState="closed",this.emitReserved("error",t),e?e(t):o.maybeReconnectOnOpen()}));if(!1!==this._timeout){const e=this._timeout;h("connect attempt will timeout after %d",e),0===e&&n();const o=this.setTimeoutFn((()=>{h("connect attempt timed out after %d",e),n(),t.close(),t.emit("error",new Error("timeout"))}),e);this.opts.autoUnref&&o.unref(),this.subs.push((function(){clearTimeout(o)}))}return this.subs.push(n),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 o=this.nsps[e];return o||(o=new l.Socket(this,e,t),this.nsps[e]=o),o}_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 o=0;oe())),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 o=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&&o.unref(),this.subs.push((function(){clearTimeout(o)}))}}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,o){return e.on(t,o),function(){e.off(t,o)}}},8312:function(e,t,o){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Socket=void 0;const a=o(7116),r=o(7149),s=o(5260),i=n(o(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,o){super(),this.connected=!1,this.receiveBuffer=[],this.sendBuffer=[],this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=t,o&&o.auth&&(this.auth=o.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 o={type:a.PacketType.EVENT,data:t,options:{}};if(o.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 n=t.pop();this._registerAckCallback(e,n),o.id=e}const n=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return!this.flags.volatile||n&&this.connected?this.connected?(this.notifyOutgoingListeners(o),this.packet(o)):this.sendBuffer.push(o):i("discard packet as the transport is not currently writable"),this.flags={},this}_registerAckCallback(e,t){const o=this.flags.timeout;if(void 0===o)return void(this.acks[e]=t);const n=this.io.setTimeoutFn((()=>{delete this.acks[e];for(let t=0;t{this.io.clearTimeoutFn(n),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 o of t)o.apply(this,e)}super.emit.apply(this,e)}ack(e){const t=this;let o=!1;return function(...n){o||(o=!0,i("sending ack %j",n),t.packet({type:a.PacketType.ACK,id:e,data:n}))}}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 o=0;o{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.reconstructPacket=t.deconstructPacket=void 0;const n=o(790);function a(e,t){if(!e)return e;if(n.isBinary(e)){const o={_placeholder:!0,num:t.length};return t.push(e),o}if(Array.isArray(e)){const o=new Array(e.length);for(let n=0;n=0&&e.num{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Decoder=t.Encoder=t.PacketType=t.protocol=void 0;const n=o(5260),a=o(3155),r=o(790),s=o(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),o=this.encodeAsString(t.packet),n=t.buffers;return n.unshift(o),n}};class l extends n.Emitter{constructor(e){super(),this.reviver=e}add(e){let t;if("string"==typeof e){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");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 o={type:Number(e.charAt(0))};if(void 0===i[o.type])throw new Error("unknown packet type "+o.type);if(o.type===i.BINARY_EVENT||o.type===i.BINARY_ACK){const n=t+1;for(;"-"!==e.charAt(++t)&&t!=e.length;);const a=e.substring(n,t);if(a!=Number(a)||"-"!==e.charAt(t))throw new Error("Illegal attachments");o.attachments=Number(a)}if("/"===e.charAt(t+1)){const n=t+1;for(;++t&&","!==e.charAt(t)&&t!==e.length;);o.nsp=e.substring(n,t)}else o.nsp="/";const n=e.charAt(t+1);if(""!==n&&Number(n)==n){const n=t+1;for(;++t;){const o=e.charAt(t);if(null==o||Number(o)!=o){--t;break}if(t===e.length)break}o.id=Number(e.substring(n,t+1))}if(e.charAt(++t)){const n=this.tryParse(e.substr(t));if(!l.isPayloadValid(o.type,n))throw new Error("invalid payload");o.data=n}return s("decoded %s as %j",e,o),o}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 o="function"==typeof ArrayBuffer,n=Object.prototype.toString,a="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===n.call(Blob),r="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===n.call(File);function s(e){return o&&(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,o){if(!t||"object"!=typeof t)return!1;if(Array.isArray(t)){for(let o=0,n=t.length;o{"use strict";function n(e){if(e)return function(e){for(var t in n.prototype)e[t]=n.prototype[t];return e}(e)}o.r(t),o.d(t,{Emitter:()=>n}),n.prototype.on=n.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},n.prototype.once=function(e,t){function o(){this.off(e,o),t.apply(this,arguments)}return o.fn=t,this.on(e,o),this},n.prototype.off=n.prototype.removeListener=n.prototype.removeAllListeners=n.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var o,n=this._callbacks["$"+e];if(!n)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var a=0;a{"use strict";e.exports={version:"2.0.0"}}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var o=__webpack_module_cache__[e]={id:e,exports:{}};return __webpack_modules__[e].call(o.exports,o,o.exports,__webpack_require__),o.exports}__webpack_require__.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(t,{a:t}),t},__webpack_require__.d=(e,t)=>{for(var o in t)__webpack_require__.o(t,o)&&!__webpack_require__.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},__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__(3314),__webpack_require__(8238),__webpack_require__(112),__webpack_require__(3336),__webpack_require__(2868),__webpack_require__(4719),__webpack_require__(3131),__webpack_require__(3526),__webpack_require__(4759);var __webpack_exports__=__webpack_require__(2852)})(); \ No newline at end of file +(()=>{var __webpack_modules__={8844:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,l,"next",e)}function l(e){r(s,n,a,i,l,"throw",e)}i(void 0)}))}}n=[o,t,o(4759),o(9820),o(2852),o(4719)],void 0===(a=function(e,t,o,n,a,r){"use strict";new n.Toggler(n.category.battle,"Disable math [PvP, PvE]","Disable math in PvP, PvE, anywhere! This doesn't work in the Floatling town.").setEnabled(s((function*(){return a._.constants.constants["GameConstants.Debug.EDUCATION_ENABLED"]=!1,o.Toast.fire("Enabled!","You will no longer do Math!","success")}))).setDisabled(s((function*(){return a._.constants.constants["GameConstants.Debug.EDUCATION_ENABLED"]=!0,o.Toast.fire("Disabled!","You will now do Math!","success")}))),new n.Toggler(n.category.battle,"Instant Kill [PvE]","Makes your spells do insane damage in PvE!").setEnabled(s((function*(){return a.player.modifiers.damage=a.VERY_LARGE_NUMBER,o.Toast.fire("Enabled!","You will now do insane damage in PvE!","success")}))).setDisabled((()=>(a.player.modifiers.damage=1,o.Toast.fire("Disabled!","You will no longer do insane damage in PvE!","success")))),new n.Hack(n.category.battle,"PvP Health [PvP]","Increases your HP in PvP by a hell ton.").setClick(s((function*(){return a.player.pvpHP=a.VERY_LARGE_NUMBER,a.player.getMaxHearts=()=>a.VERY_LARGE_NUMBER,o.Toast.fire("Success!","You now have lots of health!","success")}))),new n.Hack(n.category.battle,"Escape Battle [PvP, PvE]","Escape any battle, PvP or PvE!").setClick(s((function*(){var e=a.game.state.current;return"PVP"===e?(Object.fromEntries(a._.instance.game.state.states).PVP.endPVP(),o.Toast.fire("Escaped!","You have successfully escaped from the PvP battle.","success")):"CoOp"===e?(a.prodigy.world.$(a.player.data.zone),o.Toast.fire("Escaped!","You have successfully escaped from the battle.","success")):["Battle","SecureBattle"].includes(e)?(Object.fromEntries(a._.instance.game.state.states)[e].runAwayCallback(),o.Toast.fire("Escaped!","You have successfully escaped from the PvE battle.","success")):o.Toast.fire("Invalid State.","You are currently not in a battle.","error")}))),new n.Hack(n.category.battle,"Win Battle [PvE]","Instantly win a battle in PvE.").setClick(s((function*(){var e=a.game.state.current;switch((0,r.BattleInfo)("Current State: "+e),e){case"PVP":case"CoOp":return o.Toast.fire("Invalid State.","PvP is not supported for this hack.","error");case"Battle":return Object.fromEntries(a._.instance.game.state.states).Battle.startVictory(),o.Toast.fire("Victory!","You have successfully won the battle.","success");case"SecureBattle":return Object.fromEntries(a._.instance.game.state.states).SecureBattle.battleVictory(),o.Toast.fire("Victory!","You have successfully won the battle.","success");default:return o.Toast.fire("Invalid State.","You are currently not in a battle.","error")}}))),new n.Hack(n.category.battle,"Set Battle Hearts [PvP, PvE]","Sets your hearts in battle, automatically raise your max hearts in PvP or PvE.").setClick(s((function*(){var e=yield o.NumberInput.fire("Health Amount","How much HP do you want?","question");if(void 0!==e.value)return a.player.getMaxHearts=()=>+e.value,a.player.pvpHP=+e.value,a.player.data.hp=+e.value,o.Toast.fire("Success!","Your hearts have been set.","success")}))),new n.Hack(n.category.battle,"Fill Battle Energy [PvP, PvE]","Fills up your battle energy, if you are in PvP or PvE.").setClick(s((function*(){var e=a.game.state.getCurrentState();return"teams"in e?(e.teams[0].setEnergy(99),o.Toast.fire("Success!","Your battle energy has been filled.","success")):o.Toast.fire("Error","You are currently not in a battle.","error")}))),new n.Hack(n.category.battle,"Heal Team [PvE]","Instantly heals you and your pets, if you are in PvE.").setClick(s((function*(){var e=a.game.state.current;return"PVP"===e||"CoOp"===e?o.Toast.fire("Invalid State.","PvP is not supported for this hack.","error"):["Battle","SecureBattle"].includes(e)?(a.player.heal(),o.Toast.fire("Success!","Your team has been healed successfully!","success")):o.Toast.fire("Invalid State.","Your are currently not in a battle.","error")})))}.apply(t,n))||(e.exports=a)},9155:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,l,"next",e)}function l(e){r(s,n,a,i,l,"throw",e)}i(void 0)}))}}n=[o,t,o(4759),o(9820),o(2852),o(112),o(3131)],void 0===(a=function(e,t,o,n,a,r,i){"use strict";new n.Hack(n.category.beta,"Get all Runes [BETA]").setClick(s((function*(){if((yield o.Confirm.fire({title:"Hang on!",html:"This hack may damage your account with various bugs, for example you may be unable to do Rune Run.

                              Proceed?",icon:"warning"})).value){var e,t=parseInt((yield o.NumberInput.fire({title:"Amount",text:"How many of each would you like?",icon:"question",inputValidator:e=>e?"":"Please select which you'd like to get."})).value);if(!isNaN(t))return Array.from(a._.instance.prodigy.gameContainer._inversifyContainer._bindingDictionary._map).forEach((t=>{try{a._.instance.prodigy.gameContainer.get(t[0]).battleData&&(e=t[0])}catch(e){console.log("Error for ".concat(t[0]))}})),a._.instance.prodigy.gameContainer.get(e).battleData._secureCharacterState._data.inventory.orb=(0,r.runeify)(a._.gameData.orb,t),o.Toast.fire("Runes Added!","Your runes have been added!","success")}}))),new n.Hack(n.category.beta,"Edit Pet [BETA]","Edit a pet.").setClick(s((function*(){if(!(yield o.Confirm.fire({title:"Hang on!",html:"This hack may damage your account with various bugs, for example you may be unable to do Rune Run.

                              Proceed?",icon:"warning"})).value)return console.log("Cancelled.");var e=yield(0,r.getPet)("Choose the pet to edit.");if(void 0!==e){var t=a.player.kennel.data[e],n=yield o.Swal.fire({input:"select",inputOptions:{level:"Level",attacks:"Attacks",name:"Name"},title:"Edit Property",text:"What do you want to edit?"});if(void 0!==n.value){if("level"===n.value){var s=yield o.NumberInput.fire("Level Number","What level do you want to set your pet to?","question");if(void 0===s.value)return;return t.level=+s.value,o.Toast.fire("Success!","The pet's level has been set.","success")}if("attacks"===n.value){var i=a._.gameData.spell,l=document.createElement("div"),c=document.createElement("select");for(var u of(c.classList.add("selectSpell"),i)){var d=document.createElement("option");d.value=u.ID.toString(),d.innerText="".concat(u.ID,": ").concat(u.name," (").concat(u.data.element,") - Damage: ").concat(u.data.damage),c.options.add(d)}l.append(c),l.append(c.cloneNode(!0));var p=yield o.Swal.fire({title:"Attack List",focusConfirm:!1,showCancelButton:!0,html:l,preConfirm:()=>Array.prototype.slice.call(document.querySelectorAll(".selectSpell")).map((e=>e.options[e.selectedIndex].value))});if(void 0===p.value)return;return t.foreignSpells.splice(0,2,...p.value.map((e=>+e))),o.Toast.fire("Attacks updated!","The attack list of the pet you selected has been edited.","success")}if("name"===n.value){var h=yield o.Input.fire("Input Name","What do you want to name the pet?","question");if(void 0===h.value)return;return t.nickname=h.value,o.Toast.fire("Successfully renamed!","The name of the pet has been changed.","success")}}}}))),new n.Hack(n.category.beta,"Morph Player [BETA]","Morph into a pet, furnishing, or follow.").setClick(s((function*(){if(!(yield o.Confirm.fire("This hack is in BETA","Expect bugs, and it might not work properly.")).value)return console.log("Cancelled");var e=yield o.Swal.fire({title:"Which morph type?",input:"select",inputOptions:{pet:"Pet",dorm:"Furniture",follow:"Follow"},inputPlaceholder:"Morph Type",inputValidator:e=>e?"":"Please select a morph type.",showCancelButton:!0});if(null!=e&&e.value){var t={};a._.gameData[e.value].forEach((e=>t[e.ID]="".concat(e.name," (").concat(e.ID,")")));var n=yield o.Swal.fire({title:"Which morph?",input:"select",inputOptions:t,inputPlaceholder:"Morph ID",inputValidator:e=>e?"":"Please select a morph ID.",showCancelButton:!0});if(n.value)return a.player.getPlayerData().playerTransformation={transformType:e.value,transformID:n.value,maxTime:36e5,timeRemaining:36e5},a.player.appearanceChanged=!0,o.Toast.fire("Morphed!","You've been morphed.","success")}}))),new n.Toggler(n.category.beta,"Toggle Close Popups [BETA]","Automatically closes popups in Prodigy.").setEnabled(s((function*(){return(0,i.PopupInterval)(!0),o.Toast.fire("Enabled","Toggle Close Popups is now enabled.","success")}))).setDisabled(s((function*(){return(0,i.PopupInterval)(!1),o.Toast.fire("Enabled","Toggle Close Popups is now disabled.","success")}))),new n.Hack(n.category.beta,"Hypermax Account [BETA]").setClick(s((function*(){if((yield o.Confirm.fire({title:"Hang on!",html:"This hack will damage your account with various bugs, for example you may be unable to do Rune Run/Arena, amd you will recieve 418s and inavtivity kicks.

                              Proceed?",icon:"warning"})).value){a.player.data.gold=99e5,console.log("Set player gold to 9900000.");var e=100..value-2;a.player.data.stars=Math.round((1-Math.pow(1.042,e))/(1-1.042)*20+10),a.player.data.level=100,a.player.getLevel=()=>a.player.data.level,console.log("Set player level to 100"),a.player.data.bountyScore=100,console.log("Set player's bounty points to 100.");for(var t=0;ta.VERY_LARGE_NUMBER,console.log("PvP health obtained.");for(var n=0;n<100;n++)a.player.achievements.data.progress[n]=10;console.log("Obtained all achievements."),a.player.data.tower=100,console.log("Set tower floor to 100."),a.player.getMaxHearts=()=>a.VERY_LARGE_NUMBER,a.player.pvpHP=a.VERY_LARGE_NUMBER,a.player.data.hp=a.VERY_LARGE_NUMBER,console.log("Maxed out PvE health.");var s,i=99e4;r.ids.forEach((e=>{a.player.backpack.data[e]=(0,r.itemify)(a._.gameData[e].filter((t=>"follow"===e?![125,126,127,128,129,134,135,136,137].includes(t.ID):t)),i.value)})),a._.gameData.dorm.forEach((e=>a.player.house.data.items[e.ID]={A:[],N:i.value}));for(var l=()=>a.player.backpack.data.item.findIndex((e=>84===e.ID||85===e.ID||86===e.ID));l()>-1;)a.player.backpack.data.item.splice(l(),1);return o.Toast.fire("Success!","All items added!","success"),console.log("All items added!"),a.player.backpack.data.mount=(0,r.itemify)(a._.gameData.mount,1),console.log("Added all mounts."),a._.gameData.dorm.forEach((e=>a.player.house.data.items[e.ID]={A:[],N:99e4.value})),console.log("Added 990000 of all furniture."),a._.gameData.pet.forEach((e=>{a.player.kennel.addPet(e.ID.toString(),a.VERY_LARGE_NUMBER,26376,100)})),a.player.kennel._encounterInfo._data.pets=[],a._.gameData.pet.map((e=>{a.player.kennel._encounterInfo._data.pets.push({firstSeenDate:Date.now(),ID:e.ID,timesBattled:1,timesRescued:1})})),a.player.kennel.petTeam.forEach((e=>{e&&e.assignRandomSpells&&e.assignRandomSpells()})),console.log("Added all pets."),a._.gameData.pet.filter((e=>[158,166,168].includes(e.ID))).forEach((e=>{a.player.kennel.addPet(e.ID.toString(),a.VERY_LARGE_NUMBER,26376,100)})),a.player.kennel.petTeam.forEach((e=>{e&&e.assignRandomSpells&&e.assignRandomSpells()})),console.log("Added Mythical Epics."),a._.gameData.pet.filter((e=>[125,126,127,128,129,130,131,132,133].includes(e.ID))).forEach((e=>{a.player.kennel.addPet(e.ID.toString(),a.VERY_LARGE_NUMBER,26376,100)})),a.player.kennel.petTeam.forEach((e=>{e&&e.assignRandomSpells&&e.assignRandomSpells()})),console.log("Added Legacy Epics."),a._.constants.constants["GameConstants.Inactivity.LOG_OUT_TIMER_SECONDS"]=0,console.log("Inactivity Kick Disabled."),a.player._playerContainer.walkSpeed=20,console.log("Player walkspeed set to 20."),Array.from(a._.instance.prodigy.gameContainer._inversifyContainer._bindingDictionary._map).forEach((e=>{try{a._.instance.prodigy.gameContainer.get(e[0]).battleData&&(s=e[0])}catch(t){console.log("Error for ".concat(e[0]))}})),a._.instance.prodigy.gameContainer.get(s).battleData._secureCharacterState._data.inventory.orb=(0,r.runeify)(a._.gameData.orb,100),a.player.equipment.setHat(200),a.player.equipment.setBoots(93),a.player.equipment.setOutfit(161),a.player.equipment.setWeapon(196),(0,a.saveCharacter)(),console.log("Character Saved."),a.player.appearanceChanged=!0,console.log("Appearance Refreshed."),a._.instance.prodigy.open.menuCloseAll(),console.log("Popups closed."),(0,a.saveCharacter)(),console.log("Character Saved."),console.log("Max Account Successful."),o.Toast.fire("Maxed!","Check your backpack!","success")}})))}.apply(t,n))||(e.exports=a)},8130:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,l,"next",e)}function l(e){r(s,n,a,i,l,"throw",e)}i(void 0)}))}}n=[o,t,o(9820),o(4759),o(2852),o(112)],void 0===(a=function(e,t,o,n,a,r){"use strict";new o.Hack(o.category.inventory,"Item stacker").setClick(s((function*(){var e=yield n.NumberInput.fire("Amount","How many of every item would you like?","question");if(e.value&&(yield n.Confirm.fire("Are you sure you want to get all items in the game?")).value){r.ids.forEach((t=>{a.player.backpack.data[t]=(0,r.itemify)(a._.gameData[t].filter((e=>"follow"===t?![125,126,127,128,129,134,135,136,137].includes(e.ID):e)),e.value)})),a._.gameData.dorm.forEach((t=>a.player.house.data.items[t.ID]={A:[],N:e.value}));for(var t=()=>a.player.backpack.data.item.findIndex((e=>84===e.ID||85===e.ID||86===e.ID));t()>-1;)a.player.backpack.data.item.splice(t(),1);return n.Toast.fire("Success!","All items added!","success")}}))),new o.Hack(o.category.inventory,"Clear inventory").setClick(s((function*(){(yield n.Confirm.fire("Are you sure you want to clear your inventory?")).value&&(Object.keys(a.player.backpack.data).forEach((e=>a.player.backpack.data[e]=[])),n.Toast.fire("Success!","Inventory cleared.","success"))}))),new o.Hack(o.category.inventory,"Selector (Basic)").setClick(s((function*(){yield n.Swal.fire({title:"What would you like to obtain?",input:"select",inputOptions:r.names,inputPlaceholder:"Select...",inputValidator:e=>e?"":"Please select which you'd like to obtain.",showCancelButton:!0}).then(function(){var e=s((function*(e){var t=parseInt(e.value),o=r.names[t],s=r.ids[t];if(o){var i=yield n.NumberInput.fire("Amount","How many each object would you like?","question");i.value&&(yield n.Confirm.fire("Are you sure you want to get all ".concat(o.toLowerCase(),"?"))).value&&(a.player.backpack.data[s]=(0,r.itemify)(a._.gameData[s].filter((e=>"follow"===s?![125,126,127,128,129,134,135,136,137].includes(e.ID):e)),i.value),n.Toast.fire("".concat(o," Added!"),"All ".concat(o.toLowerCase()," have been added to your inventory!"),"success"),(0,a.saveCharacter)())}}));return function(t){return e.apply(this,arguments)}}())}))),new o.Hack(o.category.inventory,"Selector (Advanced)","Choose a specific object and quantity to obtain.").setClick(s((function*(){yield n.Swal.fire({title:"What would you like to obtain?",input:"select",inputOptions:r.names,inputPlaceholder:"Select...",inputValidator:e=>e?"":"Please select which you'd like to obtain.",showCancelButton:!0}).then(function(){var e=s((function*(e){if(a._.gameData[r.ids[e.value]]){var t=[];a._.gameData[r.ids[e.value]].forEach((e=>{t.push(e.data.name)})),yield n.Swal.fire({title:"What specific object categorized as ".concat(r.names[e.value].toLowerCase()," would you like to get?"),input:"select",inputOptions:t,inputPlaceholder:"Select...",inputValidator:e=>e?"":"Please select which you'd like to get.",showCancelButton:!0}).then(function(){var t=s((function*(t){var o=parseInt(t.value);if(a._.gameData[r.ids[e.value]][o]){var s=yield n.NumberInput.fire("Amount","How many of the object would you like?","question");if(s.value)return-1===a.player.backpack.data[r.ids[e.value]].findIndex((t=>t.ID===a._.gameData[r.ids[e.value]][o].ID))?a.player.backpack.data[r.ids[e.value]].push({ID:a._.gameData[r.ids[e.value]][o].ID,N:s.value}):a.player.backpack.data[r.ids[e.value]].findIndex((t=>t.ID===a._.gameData[r.ids[e.value]][o].ID)),console.log(a._.gameData[r.ids[e.value]][o].ID),(0,a.saveCharacter)(),n.Toast.fire("".concat(r.names[e.value]," Added!"),"Your selected ".concat(r.names[e.value].toLowerCase()," have been added."),"success")}}));return function(e){return t.apply(this,arguments)}}())}}));return function(t){return e.apply(this,arguments)}}())}))),new o.Hack(o.category.inventory,"Obtain All Furniture").setClick(s((function*(){var e=yield n.NumberInput.fire("Amount","How many of each piece of furniture would you like?","question");if(e.value&&(yield n.Confirm.fire("Are you sure you want to get all furniture?")).value)return a._.gameData.dorm.forEach((t=>a.player.house.data.items[t.ID]={A:[],N:e.value})),n.Toast.fire("Furniture Added!","All furniture has been added to your inventory!","success")}))),new o.Hack(o.category.inventory,"Obtain All Mounts","This gives you all of the mounts in the game.").setClick(s((function*(){return a.player.backpack.data.mount=(0,r.itemify)(a._.gameData.mount,1),n.Toast.fire("Mounts Added!","All mounts have been added to your inventory!")}))),new o.Hack(o.category.inventory,"Remove item").setClick(s((function*(){var e=yield n.Swal.fire({title:"What category would you like to remove an item from?",input:"select",inputOptions:r.names,inputPlaceholder:"Select...",inputValidator:e=>e?"":"Please select which you'd like to obtain.",showCancelButton:!0});if(a._.gameData[r.ids[e.value]]){var t=a._.gameData[r.ids[e.value]].map((e=>e.data.name)),o=yield n.Swal.fire({title:"What specific object categorized as ".concat(r.names[e.value].toLowerCase()," would you like to remove?"),input:"select",inputOptions:t,inputPlaceholder:"Select...",inputValidator:e=>e?"":"Please select which you'd like to get.",showCancelButton:!0});if(o=parseInt(o.value),a._.gameData[r.ids[e.value]][o]){var s=yield n.NumberInput.fire("Amount","How many of the object would you like to remove?","question");if(s.value){if(-1!==a.player.backpack.data[r.ids[e.value]].findIndex((t=>t.ID===a._.gameData[r.ids[e.value]][o].ID))){var i=a.player.backpack.data[r.ids[e.value]].findIndex((t=>t.ID===a._.gameData[r.ids[e.value]][o].ID));return a.player.backpack.data[r.ids[e.value]][i].N-=parseInt(s.value),a.player.backpack.data[r.ids[e.value]][i].N<=0&&a.player.backpack.data[r.ids[e.value]].splice(i,1),(0,a.saveCharacter)(),n.Toast.fire("Removed!","Successfully removed ".concat(s.value," ").concat(a._.gameData[r.ids[e.value]][o].name,"!"),"success")}yield n.Swal.fire("Item Does Not Exist","You do not have any ".concat(a._.gameData[r.ids[e.value]][o].name,"."),"error")}}}}))),new o.Hack(o.category.inventory,"Obtain All Furniture").setClick(s((function*(){return(yield n.Confirm.fire("Are you sure you want to get all furniture?")).value?(a._.gameData.dorm.forEach((e=>a.player.house.data.items[e.ID]={A:[],N:a.VERY_LARGE_NUMBER})),n.Toast.fire("Furniture Added!","All furniture have been added to your inventory!","success")):console.log("Cancelled.")})))}.apply(t,n))||(e.exports=a)},8346:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,l,"next",e)}function l(e){r(s,n,a,i,l,"throw",e)}i(void 0)}))}}n=[o,t,o(9820),o(4759),o(2852),o(112)],void 0===(a=function(e,t,o,n,a,r){"use strict";new o.Hack(o.category.location,"Teleport To Map (interactive)").setClick(s((function*(){var e=n.Swal.mixin({focusConfirm:!1,showCancelButton:!0,preConfirm:()=>{var e;return null===(e=document.querySelector(".radioDiv[checked]"))||void 0===e?void 0:e.getAttribute("zone")}}),t=document.createElement("div");t.classList.add("radioContainer");var o=function(e){var o=document.createElement("DIV");o.classList.add("radioDiv"),o.setAttribute("zone",e);var n=a.locations[e];n?o.style.backgroundImage="url(".concat(n,")"):o.innerText=e,o.onclick=()=>{document.querySelectorAll(".radioDiv[checked]").forEach((e=>e.removeAttribute("checked"))),o.setAttribute("checked","")},t.append(o)};for(var r of Object.keys(a.prodigy.world.zones))o(r);var s=yield e.fire({title:"Teleport Zone",html:t,customClass:{popup:"radioSwal"}});if(s.value){var i=Object.keys(a.prodigy.world.zones[s.value].maps),l=yield n.Swal.fire({input:"select",inputOptions:new Map(i.map((e=>[e,e]))),title:"Map",text:"Which map in the zone do you want to teleport to?"});if(l.value){var c=(yield n.NumberInput.fire("Please enter the x to teleport to. (Try 500?)")).value||500,u=(yield n.NumberInput.fire("Please enter the y to teleport to. (Try 500?)")).value||500;return a.prodigy.world.zones[s.value].teleport(l.value,c,u,{},{}),n.Toast.fire("Teleported","You have been teleported!","success")}}}))),new o.Hack(o.category.location,"Teleport to house by userID").setClick(s((function*(){var e=(yield n.NumberInput.fire("Please enter the userID.")).value;if(e)return(0,r.toHouse)(e),n.Toast.fire("Teleported!","You have been teleported!","success")}))),new o.Hack(o.category.location,"Get Map Location").setClick(s((function*(){var e=a.player.data.zone;navigator.clipboard.writeText(e).then(s((function*(){return console.log("Async: Copying to clipboard was successful!"),n.Swal.fire({title:"Map Location",html:"You are at
                              ".concat(e," .
                              You can save this to get to the same zone.

                              Your location is has also been copied to your clipboard."),icon:"info"})})),function(){var t=s((function*(t){return console.error("Async: Could not copy text: ",t),n.Swal.fire({title:"Map Location",html:"You are at
                              ".concat(e," .
                              You can save this to get to the same zone."),icon:"info"})}));return function(e){return t.apply(this,arguments)}}())})))}.apply(t,n))||(e.exports=a)},3344:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,l,"next",e)}function l(e){r(s,n,a,i,l,"throw",e)}i(void 0)}))}}n=[o,t,o(9820),o(2852),o(4759)],void 0===(a=function(e,t,o,n,a){"use strict";new o.Toggler(o.category.minigames,"69x Walk Speed [Dyno Dig]","Walk so fast that you're teleporting, in Dyno Dig.").setEnabled(s((function*(){return n._.instance.game.state.states.get("DinoDig").walkSpeed=69,a.Toast.fire("Enabled!","You will now walk so fast that you're teleporting in Dyno Dig.","success")}))).setDisabled(s((function*(){return n._.instance.game.state.states.get("DinoDig").walkSpeed=1.5,a.Toast.fire("Disabled!","You will now walk at normal speed, in Dyno Dig.","success")})))}.apply(t,n))||(e.exports=a)},465:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,l,"next",e)}function l(e){r(s,n,a,i,l,"throw",e)}i(void 0)}))}}n=[o,t,o(4759),o(9820),o(2852),o(8238)],void 0===(a=function(e,t,o,n,a,r){"use strict";new n.Hack(n.category.misc,"Skip Tutorial").setClick(s((function*(){var e=(e,t,o,n)=>{a._.instance.prodigy.world.getZone(e).testQuest(t,o,n);try{Object.fromEntries(a._.instance.game.state.states).TileScreen.process()}catch(e){}};e("house",2),e("academy",2),a.player.state.set("tutorial-0",4),a.player.backpack.addKeyItem(13,0),a.player.tutorial.data.menus[14]=[1],a._.instance.prodigy.open.map(!0,[]),a.player.onTutorialComplete(),a.player.data.level=Math.max(a.player.data.level,5)}))),new n.Toggler(n.category.misc,"Disable Monster Encounters").setEnabled(s((function*(){return a._.constants.constants["GameConstants.Debug.SCALE_ENCOUNTER_DISTANCE"]=0,o.Toast.fire("Enabled!","Monsters will no longer battle you.","success")}))).setDisabled((()=>(a._.constants.constants["GameConstants.Debug.SCALE_ENCOUNTER_DISTANCE"]=1,o.Toast.fire("Disabled!","Monsters will now battle you.","success")))),new n.Toggler(n.category.misc,"Skip enemy turn").setEnabled(s((function*(){return a._.constants.constants["GameConstants.Battle.SKIP_ENEMY_TURN"]=!0,o.Toast.fire("Skipping!","Enemy turns will now be skipped.","success")}))).setDisabled((()=>(a._.constants.constants["GameConstants.Battle.SKIP_ENEMY_TURN"]=!1,o.Toast.fire("Disabled","Enemy turns will no longer be skipped.","success")))),new n.Toggler(n.category.beta,"FPS Counter [BETA]","Shows you a framerate counter").setEnabled(s((function*(){(0,r.startFps)()}))).setDisabled(s((function*(){(0,r.stopFps)()})));try{var i=a.current.user.source.canSpin;new n.Toggler(n.category.misc,"Unlimited Spins","Lets you spin the wheel as many times as you want!").setEnabled(s((function*(){return a.player.canSpin=()=>{},o.Toast.fire("Enabled!","You can now spin the wheel as many times as you want!","success")}))).setDisabled(s((function*(){return a.player.canSpin=i,o.Toast.fire("Disabled!","You can now spin the wheel only when allowed.","success")})))}catch(e){console.error("Unlimited Spins ERROR: "+e)}new n.Hack(n.category.misc,"Bobbify","Converts your account into Bobby Fancywoman.").setClick(s((function*(){if((yield o.Confirm.fire("Are you sure you want your account to be turned into Bobby Fancywoman?","This action is not reversable.")).value)return a.player.name.data.nickname=null,a.player.name.data.firstName=44,a.player.name.data.middleName=754,a.player.name.data.lastName=882,a.player.data.stars=-1e22,a.player.data.level=69,a.player.appearance.setGender("male"),a.player.appearance.setEyeColor(1),a.player.appearance.setFace(4),a.player.appearance.setHair(19,1),a.player.appearance.setSkinColor(1),a.player.equipment.setFollow(19),a.player.equipment.setHat(19),a.player.equipment.setBoots(19),a.player.equipment.setOutfit(19),a.player.equipment.setWeapon(19),o.Toast.fire("Bobbified!","You are now Bobby Fancywoman.","success")}))),new n.Hack(n.category.misc,"Reset Account","Completely resets your account.").setClick(s((function*(){if((yield o.Confirm.fire("Are you sure you want to reset your account?","This action is not reversible.")).value)return a.player.resetAccount(),o.Swal.fire("Reset!","Your account has been reset. Reload Prodigy for the full effect.","success")})));var l=null,c=0;new n.Hack(n.category.misc,"Chat Spammer","Cycles through chat messages pretty fast!").setClick(s((function*(){return l?o.Swal.fire("Already Enabled","Chat Spammer is already enabled. To disable chat spammer, reload Prodigy.","error"):(l=setInterval(s((function*(){a.player.chatID=c,++c>1164&&(c=0)})),90),o.Toast.fire("Spamming!","You're now sending a chat message every 90 milliseconds!","success"))})));var u=null,d=0;new n.Hack(n.category.misc,"High Chat Spammer","Cycles through chat messages hella fast!").setClick(s((function*(){return u?o.Swal.fire("Already Enabled","High Chat Spammer is already enabled. To disable chat spammer, reload Prodigy.","error"):(yield o.Confirm.fire("Warning","This hack may cause lag on weak computers (ex. School Chromebooks).")).value?(u=setInterval(s((function*(){a.player.chatID=d,++d>1164&&(d=0)})),30),o.Toast.fire("Spamming!","You're now sending a chat message every 30 milliseconds!","success")):console.log("Cancelled")})));var p=null,h=0;new n.Hack(n.category.misc,"Chat Spammer on Meth","Cycles through chat messages FAST ASF!").setClick(s((function*(){return p?o.Swal.fire("Already Enabled","Chat Spammer on Meth is already enabled. To disable chat spammer, reload Prodigy.","error"):(yield o.Confirm.fire("Warning","This hack may cause lag on weak computers (ex. School Chromebooks).")).value?(p=setInterval(s((function*(){a.player.chatID=h,++h>1164&&(h=0)})),1),o.Toast.fire("Spamming!","You're now sending a chat message every 1 millisecond!","success")):console.log("Cancelled")}))),new n.Hack(n.category.misc,"[Fix] Fix Battle Crash").setClick(s((function*(){return a.player.kennel.petTeam.forEach((e=>{e&&e.assignRandomSpells&&e.assignRandomSpells()})),o.Toast.fire("Success!","Fixed kennel attack bug!","success")}))),new n.Hack(n.category.misc,"[Fix] Stuck in Unfinished Tower Fix","Takes you out of an unfinished tower if you're stuck in one.").setClick(s((function*(){return a._.instance.prodigy.world.zones.house.teleport("exit"),o.Toast.fire("Success!","You've been teleported outside of your house.","success")}))),new n.Hack(n.category.misc,"uwu","OwO").setClick(s((function*(){return(yield o.Confirm.fire("Are you sure that you want to UwU OwO?","Reload Prodigy to revert UwU.")).value?(Object.chance=e=>{var t={},o=0;for(var n of Object.keys(e).sort(((e,o)=>t[e]-t[o])))t[n]=[],t[n][0]=o+1,t[n][1]=e[n]+o,o=e[n]+o;return t},Object.random=e=>{var t=Object.values(e),o=t[t.length-1][1],n=Math.randint(o);return Object.reverse(e)[t.find((e=>n>=e[0]&&n<=e[1]))]},Array.prototype.join=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:",";return"string"==typeof e?this.reduce(((t,o,n,a)=>t+(nt+(n0&&void 0!==arguments[0]?arguments[0]:",";return"string"==typeof e?this.reduce(((t,o,n)=>t+(n?e+o:o)),""):e instanceof Function?this.reduce(((t,o,n,a)=>t+(n?e(a[n],n,a)+o:o)),""):void 0},String.UWUFX=e=>{var t=Object.chance({"owo :3":20,"✧w✧":20,UwU:20,OwO:10,rawr:10,"uwu :3":5,":3 meow":15,":3":15,X3:15,"*purrs*":15,owo:15,uwu:15,"^w^":15,"x3 rawr":15,owowowowo:15});return e.split(" ").leftJoin(((e,t)=>0===Math.floor(6*Math.random())&&/[A-Za-z]/.test(e[0])?" ".concat(e[0],"-"):" ")).split(" ").join(((e,o)=>0===Math.floor(5*Math.random())?" ".concat(Object.random(t)," "):" "))},String.UWUTable={y:"wy",l:"w",r:"w",ss:"zs",n:"nw",ove:"uv",ome:"um",x:"ks",com:"cum",stu:"stew",au:"aw"},Math.randint=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Math.floor(Math.random()*e-t)+t},String.prototype.escapeRegex=function(){return this.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")},String.prototype.replaceAll=function(e,t){return this.replace(new RegExp(e.toString().escapeRegex(),"gi"),(e=>t))},Object.fromArrays=(e,t)=>{var o={};return e.forEach(((e,n)=>{o[e]=t[n]})),o},Object.reverse=e=>Object.fromArrays(Object.values(e),Object.keys(e)),String.prototype.bulkReplace=function(e){var t=this;for(var o in e)t=t.replaceAll(o,e[o]);return t},String.UWU=e=>String(e).bulkReplace(String.UWUTable),Object.keys(a._.localizer.dataSource._languageData).map((e=>a._.localizer.dataSource._languageData[e]=String.UWUFX(String.UWU(a._.localizer.dataSource._languageData[e])))),Object.values(a._.gameData).map((e=>e.map((e=>[e.data.name&&(e.data.name=String.UWUFX(String.UWU(e.data.name))),e.name&&(e.name=String.UWUFX(String.UWU(e.name))),e.data.flavorText&&(e.data.flavorText=String.UWUFX(String.UWU(e.data.flavorText)))])))),o.Toast.fire("uwu","Reload Prodigy to fix uwu.","success")):console.log("uwu cancelled")})))}.apply(t,n))||(e.exports=a)},8603:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,l,"next",e)}function l(e){r(s,n,a,i,l,"throw",e)}i(void 0)}))}}n=[o,t,o(4759),o(9820),o(2852)],void 0===(a=function(e,t,o,n,a){"use strict";var r=null;new n.Hack(n.category.patched,"Arena Point Increaser [Patched]").setClick(s((function*(){return r?o.Swal.fire("Already Enabled","Arena Point Increaser is already enabled.","error"):(yield o.Confirm.fire("This hack is patched.","Running it will probably do nothing.")).value?(r=setInterval(s((function*(){var e=yield(yield fetch("https://api.prodigygame.com/leaderboard-api/season/".concat(a.prodigy.pvpNetworkHandler.seasonID,"/user/").concat(a.player.userID,"/pvp?userID=").concat(a.player.userID),{headers:{authorization:"Bearer ".concat(a.prodigy.network.jwtAuthProvider.getToken()),"content-type":"application/x-www-form-urlencoded; charset=UTF-8"},body:"seasonID=".concat(a.prodigy.pvpNetworkHandler.seasonID,"&action=win"),method:"POST",mode:"cors"})).text();if(""!==e){var t=JSON.parse(e);console.log("[API] ".concat(t.points," Points (+100)"))}else console.log("[API] Failed to add points.")})),60500),o.Swal.fire("Enabled","Arena Point Increaser has been enabled.","success")):console.log("Cancelled")}))),new n.Hack(n.category.patched,"Disable Timeout Dialog [Patched]").setClick(s((function*(){return(yield o.Confirm.fire("This hack is patched.","Running it will probably do nothing.")).value?(a.prodigy.debugMisc.disableTimeoutDialogue(),o.Toast.fire("Enabled","Timeout Dialog has been disabled.","success")):console.log("Cancelled")})))}.apply(t,n))||(e.exports=a)},7736:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;function asyncGeneratorStep(e,t,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}function _asyncToGenerator(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var r=e.apply(t,o);function s(e){asyncGeneratorStep(r,n,a,s,i,"next",e)}function i(e){asyncGeneratorStep(r,n,a,s,i,"throw",e)}s(void 0)}))}}var __importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};__WEBPACK_AMD_DEFINE_ARRAY__=[__webpack_require__,exports,__webpack_require__(4759),__webpack_require__(9820),__webpack_require__(2852),__webpack_require__(112),__webpack_require__(3336),__webpack_require__(939),__webpack_require__(3135),__webpack_require__(3314)],__WEBPACK_AMD_DEFINE_RESULT__=function(require,exports,swal_1,index_1,util_1,hackify_1,kennel_1,flatted_1,lzbase62_1,divide_1){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),flatted_1=__importDefault(flatted_1),lzbase62_1=__importDefault(lzbase62_1),divide_1=__importDefault(divide_1),new index_1.Hack(index_1.category.pets,"Get All Pets").setClick(_asyncToGenerator((function*(){return(yield swal_1.Confirm.fire("Would you like to add all pets to your pets?")).value?(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()})),swal_1.Toast.fire("Success!","All pets have been added!","success")):console.log("Cancelled")}))),new index_1.Hack(index_1.category.pets,"Get All Legacy Epics").setClick(_asyncToGenerator((function*(){return(yield swal_1.Confirm.fire("This may damage your account.","Attempting to add legacy epics may damage your account. Would you still like to add all legacy epics to your team?","warning")).value?(util_1._.gameData.pet.filter((e=>[125,126,127,128,129,130,131,132,133].includes(e.ID))).forEach((e=>{util_1.player.kennel.addPet(e.ID.toString(),util_1.VERY_LARGE_NUMBER,26376,100)})),util_1.player.kennel.petTeam.forEach((e=>{e&&e.assignRandomSpells&&e.assignRandomSpells()})),swal_1.Toast.fire("Success!","All legacy epics have been added!","success")):console.log("Cancelled")}))),new index_1.Hack(index_1.category.pets,"Get All Mythical Epics").setClick(_asyncToGenerator((function*(){return(yield swal_1.Confirm.fire("Would you like to add all mythical epics to your pets?")).value?(util_1._.gameData.pet.filter((e=>[158,164,165,166,167,168,169,170,171,189].includes(e.ID))).forEach((e=>{util_1.player.kennel.addPet(e.ID.toString(),util_1.VERY_LARGE_NUMBER,26376,100)})),util_1.player.kennel.petTeam.forEach((e=>{e&&e.assignRandomSpells&&e.assignRandomSpells()})),swal_1.Toast.fire("Success!","All mythical epics have been added!","success")):console.log("Cancelled")}))),new index_1.Hack(index_1.category.pets,"Clear Pets").setClick(_asyncToGenerator((function*(){return(yield swal_1.Confirm.fire("Would you like to delete all of your pets?")).value?(util_1.player.kennel.data.length=0,swal_1.Toast.fire("Success!","Your pets have been cleared!","success")):console.log("Cancelled")}))),new index_1.Hack(index_1.category.pets,"Add Pet","Adds a pet from a list.").setClick(_asyncToGenerator((function*(){var e=yield swal_1.Swal.fire({input:"select",inputOptions:new Map(util_1._.gameData.pet.map((e=>[e.ID.toString(),"".concat(e.ID,": ").concat(e.data.name)]))),title:"Choose Pet",text:"Which pet do you want to obtain?"});if(void 0!==e.value)return util_1.player.kennel.addPet(e.value),util_1.player.kennel._encounterInfo._data.pets.push({firstSeenDate:Date.now(),ID:e.value,timesBattled:1,timesRescued:1}),swal_1.Toast.fire("Success!","Your chosen pet has been added to your pets!","success")}))),new index_1.Hack(index_1.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(_asyncToGenerator((function*(){var petTeam=util_1.player.kennel.petTeam.slice(0);petTeam.shift();var names=petTeam.map((e=>e.getName())),pet=yield swal_1.Swal.fire({title:"Which pet would you like to edit?",input:"select",inputOptions:names,inputPlaceholder:"Select...",inputValidator:e=>e?"":"Please select which you'd like to obtain.",showCancelButton:!0}),amt=yield swal_1.NumberInput.fire("Level","What would you like to set your pet's level to? (Can be set over 100)","question");if(amt.value){var num=amt.value;return eval("player.kennel.petTeam[parseInt(".concat(pet.value,")+1].getLevel = () => {return ").concat(num,"}")),swal_1.Toast.fire("Updated!","The level of your pet was successfully updated. Note: this hack is client-side.","success")}}))),new index_1.Hack(index_1.category.pets,"Delete Pet","Delete a pet.").setClick(_asyncToGenerator((function*(){var e=yield(0,hackify_1.getPet)("Which pet do you wish to delete?");if(void 0!==e)return util_1.player.kennel.data.splice(e,1),swal_1.Toast.fire("Successfully deleted!","The selected pet was deleted successfully.","success")}))),new index_1.Hack(index_1.category.pets,"Edit Kennel","Allows you to directly edit your pets.").setClick(_asyncToGenerator((function*(){null!==(yield(0,kennel_1.GetAction)())&&null!==(yield(0,kennel_1.SelectSlot)())&&console.log(s(parseInt(KennelSlot.value)))}))),new index_1.Hack(index_1.category.pets,"Backup Kennel","Makes a backup of your kennel to your chrome local storage.").setClick(_asyncToGenerator((function*(){var e=lzbase62_1.default.compress(flatted_1.default.stringify(util_1._.player.kennel._petTeam));console.log(e.length);var t=0;for(var o of(0,divide_1.default)(e,10))localStorage.setItem("prodigy-kennel-backup"+t,o),localStorage.clear(),console.log(o.length),t++;return swal_1.Toast.fire("Backed up!","Your kennel is now backed up to the local storage.","success")}))),new index_1.Hack(index_1.category.pets,"Restore Kennel","Restores a backup of your kennel from the local storage... if you have one.").setClick(_asyncToGenerator((function*(){var e=localStorage.getItem("prodigy-kennel-backup");return null===e?swal_1.Swal.fire({title:"No backup found",html:"There is no backup of your kennel in the local storage. Make sure to back up your kennel before trying to load it.",icon:"error"}):(util_1._.player.kennel._petTeam=flatted_1.default.toJSON(lzbase62_1.default.decompress(e)),swal_1.Toast.fire("Restored!","Your kennel backup should be restored","success"))})))}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),void 0===__WEBPACK_AMD_DEFINE_RESULT__||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)},7939:(module,exports,__webpack_require__)=>{var __webpack_unused_export__,__WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;function asyncGeneratorStep(e,t,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}function _asyncToGenerator(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var r=e.apply(t,o);function s(e){asyncGeneratorStep(r,n,a,s,i,"next",e)}function i(e){asyncGeneratorStep(r,n,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_require__(112)],__WEBPACK_AMD_DEFINE_RESULT__=function(require,exports,swal_1,index_1,util_1,hackify_1){"use strict";__webpack_unused_export__={value:!0},new index_1.Hack(index_1.category.player,"Max Account").setClick(_asyncToGenerator((function*(){if(!(yield swal_1.Confirm.fire("Are you sure that you want to max your account?","We recommend doing this on an alt.")).value)return console.log("Cancelled");util_1.player.data.gold=99e5,console.log("Set player gold to 9900000.");var e=100..value-2;util_1.player.data.stars=Math.round((1-Math.pow(1.042,e))/(1-1.042)*20+10),util_1.player.data.level=100,util_1.player.getLevel=()=>util_1.player.data.level,console.log("Set player level to 100"),util_1.player.data.bountyScore=100,console.log("Set player's bounty points to 100.");for(var t=0;t{util_1.player.backpack.data[e]=(0,hackify_1.itemify)(util_1._.gameData[e].filter((t=>"follow"===e?![125,126,127,128,129,134,135,136,137].includes(t.ID):t)),1..value)})),util_1._.gameData.dorm.forEach((e=>util_1.player.house.data.items[e.ID]={A:[],N:1..value}));for(var n=()=>util_1.player.backpack.data.item.findIndex((e=>84===e.ID||85===e.ID||86===e.ID));n()>-1;)util_1.player.backpack.data.item.splice(n(),1);swal_1.Toast.fire("Success!","All items added!","success"),console.log("All items added!"),util_1.player.backpack.data.mount=(0,hackify_1.itemify)(util_1._.gameData.mount,1),console.log("Added all mounts.");var a="currency";return util_1.player.backpack.data[a]=(0,hackify_1.itemify)(util_1._.gameData[a].filter((e=>e)),6969420),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.equipment.setHat(200),util_1.player.equipment.setBoots(93),util_1.player.equipment.setOutfit(161),util_1.player.equipment.setWeapon(196),util_1.player.appearanceChanged=!0,console.log("Appearance Refreshed."),(0,util_1.saveCharacter)(),console.log("Character Saved."),console.log("Max Account Successful."),swal_1.Toast.fire("Maxed!","Check your backpack!","success")}))),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)return e.value>1e7?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;return 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");if(void 0!==e.value)return 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");if(void 0!==e.value)return 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;t(util_1._.instance.prodigy.gameContainer.get((0,hackify_1.getMemberModule)()).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"),o=(e,t)=>{var o=document.createElement("select");for(var n of(o.classList.add("selectName"),e.entries())){var a=document.createElement("option");[a.value,a.innerText]=n,t(a.value)&&(a.selected=!0),o.options.add(a)}return o},n=(t,n)=>o(new Map(e.filter((e=>e.data.type===t)).map((e=>[e.ID.toString(),e.name]))),(e=>n(+e)));t.append(n(0,(e=>e===util_1.player.name.data.firstName))),t.append(n(1,(e=>e===util_1.player.name.data.middleName))),t.append(n(2,(e=>e===util_1.player.name.data.lastName))),t.append(o(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");if(level.value)return 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*(){return 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*(){return 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")):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 o=util_1._.instance.prodigy.world.zones[t].getCurrentQuestID();return util_1._.instance.prodigy.world.zones[t].completeQuest(o)?(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)});if(e.value)return 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.toString()).then((function(){return 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){return 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();return 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?");if(e.value)return util_1.player.grade=parseInt(e.value),swal_1.Toast.fire("Success","Successfully changed grade to ".concat(e,"!"),"success")})))}.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,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}function _asyncToGenerator(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var r=e.apply(t,o);function s(e){asyncGeneratorStep(r,n,a,s,i,"next",e)}function i(e){asyncGeneratorStep(r,n,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*(){return 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,"Grab UserID of all players on screen","Shows you the UserID and name of every player currently shown on the screen.").setClick(_asyncToGenerator((function*(){var e=util_1.current.playerList;if(0===Object.keys(e).length)return swal_1.Toast.fire("No players found.","There are no other players on the screen.","error");var t="",o=0;return yield Object.keys(e).map((n=>{var a=Object.entries(e)[o][1].nameText.textSource.source;t+="
                            • uID: ".concat(n," - ").concat(a,"
                            • "),o++})),swal_1.Swal.fire({title:"All players on the screen:",html:t,icon:"info"})}))),new index_1.Hack(index_1.category.utility,"Save Character Locally [Local]","Saves your character locally.").setClick(_asyncToGenerator((function*(){return 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"});return t.ok?swal_1.Toast.fire("Success!","Character has been successfully loaded. Reload for the changes to take effect.","success"):swal_1.Toast.fire("Request failed.","An error occurred while loading the character. Error code: ".concat(t.status),"error")}return 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*(){return(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;return 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*(){return 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);return 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*(){return teleportingInterval=setInterval((()=>{try{util_1.player._playerContainer.walkSpeed=500}catch(e){}})),swal_1.Toast.fire("Success!","Successfully enabled teleport click.","success")}))).setDisabled(_asyncToGenerator((function*(){return 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*(){return util_1._.network.game._paused=!0,swal_1.Toast.fire("Success!","Successfully paused Prodigy.","success")}))).setDisabled(_asyncToGenerator((function*(){return 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)return console.log("Cancelled.");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 swal_1.Swal.fire({title:"Error",html:"Oops! There was an error with the code!
                               ".concat(e," "),icon:"error"})}return 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,o){var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,l,"next",e)}function l(e){r(s,n,a,i,l,"throw",e)}i(void 0)}))}}var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};n=[o,t,o(7046),o(2852),o(3526),o(6455),o(4759),o(4719),o(158)],a=function(e,t,o,n,a,r,l,c){"use strict";var u,d,p,h;Object.defineProperty(t,"__esModule",{value:!0}),t.category=t.Toggler=t.Hack=t.toggler=t.wrapper=t.menu=void 0,r=i(r),t.menu=document.createElement("div"),t.wrapper=document.getElementById("game-wrapper"),null===(u=document.getElementById("cheat-menu"))||void 0===u||u.remove(),null===(d=document.getElementById("menu-toggler"))||void 0===d||d.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===(p=t.wrapper)||void 0===p||p.prepend(t.menu),t.toggler=document.createElement("button"),t.toggler.id="menu-toggler";var f=!1;null===(h=t.wrapper)||void 0===h||h.prepend(t.toggler),t.toggler.onclick=()=>{(f=!f)?(t.toggler.innerText="▼",t.menu.style.top="-100vh"):(t.toggler.innerText="▲",t.menu.style.top="10%")},t.toggler.onclick({});var m=document.createElement("DIV");m.classList.add("menu-left"),t.menu.append(m);var g=!0,y=e=>{var t=document.createElement("div");0==g?(t.append(document.createElement("br")),t.append(document.createElement("br"))):g=!1,t.classList.add("menu-area"),t.style.textAlign="center",m.append(t);var o=document.createElement("h1");return o.innerText=e,o.style.textAlign="center",o.style.color="white",t.append(o),t},w=document.createElement("h1");w.classList.add("menu-title"),w.innerText="Prodigy Hacks",w.style.textAlign="center",m.append(w);var b=document.createElement("h2");b.style.fontSize="25px",b.style.color="white",b.innerHTML="
                              Press SHIFT to show/hide the menu. Scroll down in the menu for more hacks.",m.append(b);var _=document.createElement("h3");_.style.fontSize="20px",_.innerHTML="\n

                              Join our Discord https://dsc.gg/ProdigyPNP!

                              \n\n
                              \n",_.style.color="white",m.append(_);class v{constructor(e,t,o){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),o&&this.setDesc(o)}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,n.saveCharacter)(),console.log("Triggered ".concat(t.name,"."))})),this}setDesc(e){return this.element.title=e,this.description=e,this}}t.Hack=v,t.Toggler=class extends v{constructor(e,t,o){var n;super(e,t,o),n=this,this.parent=e,this.element.setAttribute("status","false"),this.setClick(s((function*(){var e,t;n.status=!n.status,n.status?(localStorage.setItem(n.name,"true"),yield null===(e=n.enabled)||void 0===e?void 0:e.call(n)):(localStorage.setItem(n.name,"false"),yield null===(t=n.disabled)||void 0===t?void 0:t.call(n))})))}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:y("Player Hacks"),inventory:y("Inventory Hacks"),location:y("Location Hacks"),pets:y("Pet Hacks"),battle:y("Battle Hacks"),minigames:y("Minigame Hacks"),misc:y("Miscellaneous Hacks"),utility:y("Utility Hacks"),beta:y("Beta Testing | Beta Hacks may damage your account"),patched:y("Patched Hacks")},localStorage.hasTip?(0,c.IndexInfo)("Player already has tip."):(s((function*(){yield r.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,(0,c.IndexInfo)("Player was shown the tip.")),localStorage.getItem("level")&&(n._.player.getLevel=()=>localStorage.getItem("level"),(0,c.IndexInfo)("Loaded menu from localStorage."));var k=!0;document.addEventListener("keydown",(function(e){"Shift"==e.key&&((0,c.IndexInfo)("Shift key was pressed."),1==k?((0,c.IndexInfo)("Hiding cheat menu..."),document.getElementById("cheat-menu").style.display="none",document.getElementById("menu-toggler").style.display="none",k=!1,(0,c.IndexInfo)("Hidden cheat menu.")):((0,c.IndexInfo)("Showing cheat menu..."),document.getElementById("cheat-menu").style.display="block",document.getElementById("menu-toggler").style.display="block",k=!0,(0,c.IndexInfo)("Shown cheat menu.")))})),s((function*(){var e,t;(yield l.License.fire("ProdigyPNP",'\n

                              \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 ')).value?yield(0,a.statusMessage)():(yield l.NoLicense.fire("ProdigyPNP License","\n

                              \n You need to agree to our license to use our hacks. If you changed your mind and now agree to our license, reload Prodigy.\n

                              \n ")).value?document.location="":(null===(e=document.getElementById("cheat-menu"))||void 0===e||e.remove(),null===(t=document.getElementById("menu-toggler"))||void 0===t||t.remove())}))()}.apply(t,n),void 0===a||(e.exports=a)},3314:(e,t,o)=>{var n;n=function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){for(var o=new Array,n=Math.floor(e.length/t),a=0;a{var n,a;n=[o,t,o(9820)],a=function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stopFps=t.startFps=void 0;var n=document.createElement("button"),a=!1;t.startFps=function(){var e;a=!0,n.id="fps-counter",null===(e=o.wrapper)||void 0===e||e.prepend(n),setInterval((()=>{var e=_.player.game.fps._framerate;a?n.innerText=e.toFixed(2)+" FPS":n.remove()}),300)},t.stopFps=function(){var e;a=!1,null===(e=document.getElementById("fps-counter"))||void 0===e||e.remove()}}.apply(t,n),void 0===a||(e.exports=a)},112:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}n=[o,t,o(2852),o(4759)],a=function(e,t,o,n){"use strict";function a(e){o._.instance.prodigy.loading(!0);var t=t=>{var a=null!=t?t[e]:null;if(null!==a&&void 0!==a.house&&null!==a.house){o._.instance.prodigy.loading(!1);var r=o._.cloneDeep(o._.player.house);return r.setItems(a.house),void 0!==a.data.allowsHouseVisitors&&null!==a.data.allowsHouseVisitors&&a.data.allowsHouseVisitors?o._.instance.prodigy.world._("house",null,null,{house:r,getAllowsHouseVisitors:()=>void 0!==a.data.allowsHouseVisitors&&null!==a.data.allowsHouseVisitors&&a.data.allowsHouseVisitors,setAllowsHouseVisitors:e=>{a.data.allowsHouseVisitors=e}}):n.Swal.fire("Teleporting to ".concat(e," is not allowed."),"Try another user.","error")}};return o._.network.getCharData(e.toString(),["house","data"],t,t),n.Toast.fire("Teleported to house","You have been teleported to the house!","success")}Object.defineProperty(t,"__esModule",{value:!0}),t.getPet=t.teleportToHouse=t.toHouse=t.getMemberModule=t.runeify=t.itemify=t.ids=t.names=void 0,t.names=["Boots","Buddies","Fossils","Hats","Items","Key Items","Tower Town Frames","Tower Town Interiors","Mounts","Outfits","Relics","Weapons","Currencies"],t.ids=["boots","follow","fossil","hat","item","key","mathTownFrame","mathTownInterior","mount","outfit","spellRelic","weapon","currency"],t.itemify=(e,t)=>e.map((e=>({ID:e.ID,N:t}))).filter((e=>void 0!==e)),t.runeify=(e,t)=>{e.map((e=>({ID:e.ID,quantity:t}))).filter((e=>void 0!==e))},t.getMemberModule=function(){return o._.player.hasMembership.toString().split('"')[1]},t.toHouse=function(e){if(o._.player.userID!==e){var t=o._.instance.prodigy.friendsListNetworkHandler.friendsList.length,r=o._.instance.prodigy.friendsListNetworkHandler.classList.length;o._.instance.prodigy.gameContainer.get("2e1-e659").create("house-visit","click","hub",t,r,null,null,e).broadcast()}var s=o._.instance.prodigy.world.getZone(o._.instance.prodigy.world.getCurrentZone());return s?s.handleLeaving(2,(()=>a(e))):n.Swal.fire({title:"Error",text:"You are not in a zone!",icon:"error"})},t.teleportToHouse=a;var s=function(){var e,t=(e=function*(e){return(yield n.Swal.fire({input:"select",inputOptions:new Map(o._.player.kennel.data.map(((e,t)=>{var n,a,r;return[t.toString(),"Level ".concat(e.level," - ").concat(null!==(n=null!==(a=e.nickname)&&void 0!==a?a:null===(r=o._.gameData.pet.find((t=>+t.ID==+e.ID)))||void 0===r?void 0:r.data.name)&&void 0!==n?n:"Unknown")]}))),title:"Choose Pet",text:e})).value},function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,l,"next",e)}function l(e){r(s,n,a,i,l,"throw",e)}i(void 0)}))});return function(e){return t.apply(this,arguments)}}();t.getPet=s}.apply(t,n),void 0===a||(e.exports=a)},3336:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,l,"next",e)}function l(e){r(s,n,a,i,l,"throw",e)}i(void 0)}))}}n=[o,t,o(4759)],a=function(e,t,o){"use strict";function n(){return(n=s((function*(){var e=new Map;e.set("Copy","Copy a slot to another slot"),e.set("Remove","Completley empty one slot");var t=yield o.Swal.fire({input:"select",inputOptions:e,title:"Select Action",text:"Select an action to perform on the Kennel"});return t.value?t.value:null}))).apply(this,arguments)}function a(){return(a=s((function*(){var e=new Map,t=e=>_.player.kennel._petTeam[e]?_.player.kennel._petTeam[e].source?_.player.kennel._petTeam[e].source.name:_.player.kennel._petTeam[e]._userDataPlatform?"Player":"null":"null";e.set("0","[0] Center - ".concat(t(0))),e.set("1","[1] Top - ".concat(t(1))),e.set("2","[2] Bottom - ".concat(t(2)));var n=yield o.Swal.fire({input:"select",inputOptions:e,title:"Select Slot",text:"Select a slot to edit"});return n.value?parseInt(n.value):null}))).apply(this,arguments)}Object.defineProperty(t,"__esModule",{value:!0}),t.SelectSlot=t.GetAction=void 0,t.GetAction=function(){return n.apply(this,arguments)},t.SelectSlot=function(){return a.apply(this,arguments)}}.apply(t,n),void 0===a||(e.exports=a)},2868:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}n=[o,t,o(2852),o(4759)],void 0===(a=function(e,t,o,n){"use strict";window.addEventListener("keydown",(e=>{switch(e.which){case 192:o._.instance.prodigy.open.menuCloseAll();break;case 220:var t=function(){var e,t=(e=function*(){if(!(yield n.Confirm.fire("Kit","Would you like to equip Celestial Gear?")).value)return console.log("Cancelled");o._.player.equipment.setHat(200),o._.player.equipment.setBoots(93),o._.player.equipment.setOutfit(161),o._.player.equipment.setWeapon(196),o._.player.appearanceChanged=!0,n.Toast.fire("Success!","You are now wearing Celestial Armor and wielding a Dual Blade.","success")},function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,l,"next",e)}function l(e){r(s,n,a,i,l,"throw",e)}i(void 0)}))});return function(){return t.apply(this,arguments)}}();t()}}))}.apply(t,n))||(e.exports=a)},4719:(e,t,o)=>{var n;n=function(e,t){"use strict";function o(e,o){return""==e||null==e?console.log("["+t.LogPrefix+":unknown] "+o):console.log("["+t.LogPrefix+":"+e+"] "+o)}function n(e,t,n){return o(t,"*"+e.toUpperCase()+"* "+n)}Object.defineProperty(t,"__esModule",{value:!0}),t.UtilityError=t.UtilitySuccess=t.UtilityInfo=t.PlayerError=t.PlayerSuccess=t.PlayerInfo=t.PetsError=t.PetsSuccess=t.PetsInfo=t.PatchedError=t.PatchedSuccess=t.PatchedInfo=t.MiscError=t.MiscSuccess=t.MiscInfo=t.MinigameError=t.MinigameSuccess=t.MinigameInfo=t.LocationError=t.LocationSuccess=t.LocationInfo=t.InventoryError=t.InventorySuccess=t.InventoryInfo=t.BetaError=t.BetaSuccess=t.BetaInfo=t.BattleError=t.BattleSuccess=t.BattleInfo=t.IndexError=t.IndexSuccess=t.IndexInfo=t.StatusLog=t.ConsoleLog=t.LogPrefix=void 0,t.LogPrefix="CheatGUI",t.ConsoleLog=o,t.StatusLog=n,t.IndexInfo=function(e){return n("info","index.ts",e)},t.IndexSuccess=function(e){return n("success","index.ts",e)},t.IndexError=function(e){return n("error","index.ts",e)},t.BattleInfo=function(e){return n("info","battle.ts",e)},t.BattleSuccess=function(e){return n("success","battle.ts",e)},t.BattleError=function(e){return n("error","battle.ts",e)},t.BetaInfo=function(e){return n("info","beta.ts",e)},t.BetaSuccess=function(e){return n("success","beta.ts",e)},t.BetaError=function(e){return n("error","beta.ts",e)},t.InventoryInfo=function(e){return n("info","inventory.ts",e)},t.InventorySuccess=function(e){return n("success","inventory.ts",e)},t.InventoryError=function(e){return n("error","inventory.ts",e)},t.LocationInfo=function(e){return n("info","location.ts",e)},t.LocationSuccess=function(e){return n("success","location.ts",e)},t.LocationError=function(e){return n("error","location.ts",e)},t.MinigameInfo=function(e){return n("info","minigame.ts",e)},t.MinigameSuccess=function(e){return n("success","minigame.ts",e)},t.MinigameError=function(e){return n("error","minigame.ts",e)},t.MiscInfo=function(e){return n("info","misc.ts",e)},t.MiscSuccess=function(e){return n("success","misc.ts",e)},t.MiscError=function(e){return n("error","misc.ts",e)},t.PatchedInfo=function(e){return n("info","patched.ts",e)},t.PatchedSuccess=function(e){return n("success","patched.ts",e)},t.PatchedError=function(e){return n("error","patched.ts",e)},t.PetsInfo=function(e){return n("info","pets.ts",e)},t.PetsSuccess=function(e){return n("success","pets.ts",e)},t.PetsError=function(e){return n("error","pets.ts",e)},t.PlayerInfo=function(e){return n("info","player.ts",e)},t.PlayerSuccess=function(e){return n("success","player.ts",e)},t.PlayerError=function(e){return n("error","player.ts",e)},t.UtilityInfo=function(e){return n("info","utility.ts",e)},t.UtilitySuccess=function(e){return n("success","utility.ts",e)},t.UtilityError=function(e){return n("error","utility.ts",e)}}.apply(t,[o,t]),void 0===n||(e.exports=n)},3131:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,l,"next",e)}function l(e){r(s,n,a,i,l,"throw",e)}i(void 0)}))}}n=[o,t,o(2852)],a=function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PopupInterval=void 0;var n=!1;t.PopupInterval=function(e){n=e},s((function*(){setInterval(s((function*(){n&&o._.instance.prodigy.open.menuCloseAll()})),200)}))()}.apply(t,n),void 0===a||(e.exports=a)},3526:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}n=[o,t,o(4759)],a=function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.statusMessage=void 0,t.statusMessage=function(){fetch("https://raw.githubusercontent.com/ProdigyPNP/ProdigyMathGameHacking/master/cheatGUI/statusmessage.json?updated=".concat(Date.now())).then((e=>e.json())).then(function(){var e,t=(e=function*(e){if(!1===e.enabled.value)return console.log("Status message is disabled.");yield o.Swal.fire({title:e.get("title"),html:e.get("html"),icon:e.get("icon")})},function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,l,"next",e)}function l(e){r(s,n,a,i,l,"throw",e)}i(void 0)}))});return function(e){return t.apply(this,arguments)}}())}}.apply(t,n),void 0===a||(e.exports=a)},4759:function(e,t,o){var n,a,r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};n=[o,t,o(6455)],a=function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NoLicense=t.License=t.Info=t.Confirm=t.Toast=t.NumberInput=t.Input=t.Swal=void 0,o=r(o),t.Swal=o.default,t.Input=t.Swal.mixin({input:"text",showCancelButton:!0,showConfirmButton:!0,toast:!1}),t.NumberInput=t.Input.mixin({toast:!1,input:"number"}),t.Toast=t.Swal.mixin({toast:!0,position:"bottom"}),t.Confirm=t.Swal.mixin({icon:"warning",showCancelButton:!0,toast:!1,confirmButtonText:"Confirm",cancelButtonText:"Cancel"}),t.Info=t.Swal.mixin({icon:"info",showCancelButton:!1,toast:!1}),t.License=t.Swal.mixin({icon:"info",showCancelButton:!0,toast:!1,confirmButtonText:"Agree",cancelButtonText:"Disagree"}),t.NoLicense=t.Swal.mixin({icon:"error",showCancelButton:!0,toast:!1,confirmButtonText:"Reload",cancelButtonText:"Play without hacks"})}.apply(t,n),void 0===a||(e.exports=a)},2852:(e,t,o)=>{var n;n=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.current=t.player=t._=void 0,t._=window._,t.player=t._.player,t.current=window.Boot.prototype.game._state._current;var o=t._.instance;t.game=o.game,t.prodigy=o.prodigy,t.gameData=t._.instance.game.state.states.get("Boot").gameData,t.getItem=(e,o)=>{var n;return null!==(n=t._.gameData[e].find((e=>e.ID===o)))&&void 0!==n?n: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,[o,t]),void 0===n||(e.exports=n)},450:(e,t,o)=>{"use strict";o.d(t,{Z:()=>i});var n=o(8081),a=o.n(n),r=o(3645),s=o.n(r)()(a());s.push([e.id,"@import url(https://fonts.googleapis.com/css?family=Arvo:400,700|Sen:400,700,800&display=swap&subset=latin-ext);"]),s.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;font-size:23px;height:26px;width:50px;border:1px solid rgba(0,0,0,.1)}#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 #fps-counter{z-index:2;position:absolute;border-radius:3px;background-color:rgba(255,255,255,.7333333333);transition:background-color .15s;width:130px;height:26px;font-size:23px;border:1px solid rgba(0,0,0,.1);margin-left:83%}#game-wrapper #fps-counter:hover{background-color:rgba(221,221,221,.7333333333)}#game-wrapper #fps-counter: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:rgba(0,0,0,.55);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;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 i=s},3645:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var o="",n=void 0!==t[5];return t[4]&&(o+="@supports (".concat(t[4],") {")),t[2]&&(o+="@media ".concat(t[2]," {")),n&&(o+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),o+=e(t),n&&(o+="}"),t[2]&&(o+="}"),t[4]&&(o+="}"),o})).join("")},t.i=function(e,o,n,a,r){"string"==typeof e&&(e=[[null,e,void 0]]);var s={};if(n)for(var i=0;i0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=r),o&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=o):u[2]=o),a&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=a):u[4]="".concat(a)),t.push(u))}},t}},8081:e=>{"use strict";e.exports=function(e){return e[1]}},1227:(e,t,o)=>{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 o="color: "+this.color;t.splice(1,0,o,"color: inherit");let n=0,a=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(n++,"%c"===e&&(a=n))})),t.splice(a,0,o)},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=o(2447)(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},2447:(e,t,o)=>{e.exports=function(e){function t(e){let o,a,r,s=null;function i(...e){if(!i.enabled)return;const n=i,a=Number(new Date),r=a-(o||a);n.diff=r,n.prev=o,n.curr=a,o=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,((o,a)=>{if("%%"===o)return"%";s++;const r=t.formatters[a];if("function"==typeof r){const t=e[s];o=r.call(n,t),e.splice(s,1),s--}return o})),t.formatArgs.call(n,e),(n.log||t.log).apply(n,e)}return i.namespace=e,i.useColors=t.useColors(),i.color=t.selectColor(e),i.extend=n,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 n(e,o){const n=t(this.namespace+(void 0===o?":":o)+e);return n.log=this.log,n}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 o;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const n=("string"==typeof e?e:"").split(/[\s,]+/),a=n.length;for(o=0;o{t[o]=e[o]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let o=0;for(let t=0;t{var n=o(6391),a=o(8377);function r(e){this._init(e)}r.prototype={_init:function(e){e=e||{},this._data=null,this._table=null,this._result=null,this._onDataCallback=e.onData,this._onEndCallback=e.onEnd},_createTable:function(){for(var e=a.createBuffer(8,n.TABLE_LENGTH),t=0;ta)return!1;var r,s,i,l,c,u=o-n.WINDOW_BUFFER_MAX,d=t.substring(u,o+a),p=o+e-3-u;do{if(2===e){if(s=t.charAt(o)+t.charAt(o+1),!~(i=d.indexOf(s))||i>p)break}else 3===e?s+=t.charAt(o+2):s=t.substr(o,e);if(!~(l=n.STRING_LASTINDEXOF_BUG?t.substring(u,o+e-1).lastIndexOf(s):d.lastIndexOf(s,p)))break;c=l,r=u+l;do{if(t.charCodeAt(o+e)!==t.charCodeAt(r+e))break}while(++e=n.COMPRESS_CHUNK_MAX&&(this._onData(s,i),i=0);return i>0&&this._onData(s,i),this._onEnd(),t=this._result,this._result=null,null===t?"":t}},e.exports=r},6391:(e,t)=>{var o=t.HAS_TYPED="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array,n=!1,a=!1;try{"a"===String.fromCharCode.apply(null,[97])&&(n=!0)}catch(e){}if(o)try{"a"===String.fromCharCode.apply(null,new Uint8Array([97]))&&(a=!0)}catch(e){}t.CAN_CHARCODE_APPLY=n,t.CAN_CHARCODE_APPLY_TYPED=a;var r=t.APPLY_BUFFER_SIZE=65533;t.APPLY_BUFFER_SIZE_OK=null;var s=!1;-1!=="abcほげ".lastIndexOf("ほげ",1)&&(s=!0),t.STRING_LASTINDEXOF_BUG=s;var i=t.BASE62TABLE="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",l=t.TABLE_LENGTH=i.length,c=Math.max(l,62)-Math.min(l,62);t.BUFFER_MAX=l-1;var u=t.WINDOW_MAX=1024;t.WINDOW_BUFFER_MAX=304;var d=t.COMPRESS_CHUNK_SIZE=r;t.COMPRESS_CHUNK_MAX=d-l;var p=t.DECOMPRESS_CHUNK_SIZE=r;t.DECOMPRESS_CHUNK_MAX=p+2*u,t.LATIN_BUFFER_MAX=132;var h=t.UNICODE_CHAR_MAX=40;t.UNICODE_BUFFER_MAX=h*(h+1),t.LATIN_INDEX=l+1,t.LATIN_INDEX_START=c+20,t.UNICODE_INDEX=l+5,t.DECODE_MAX=l-c-19;var f=t.LATIN_DECODE_MAX=h+7,m=t.CHAR_START=f+1,g=t.COMPRESS_START=m+1,y=t.COMPRESS_FIXED_START=g+5;t.COMPRESS_INDEX=y+5},9797:(e,t,o)=>{var n=o(6391),a=o(8377);function r(e){this._init(e)}r.prototype={_init:function(e){e=e||{},this._result=null,this._onDataCallback=e.onData,this._onEndCallback=e.onEnd},_createTable:function(){for(var e={},t=0;t0&&this._onDataCallback(a.bufferToString_fast(t))}},_onEnd:function(){this._onEndCallback&&this._onEndCallback()},decompress:function(e){if(null==e||0===e.length)return"";this._result=a.stringToArray(a.createWindow());for(var t,o,r,s,i,l,c,u,d,p,h=this._createTable(),f=!1,m=null,g=e.length,y=0;yc&&(u.length=c),d=u.length,u.length>0)for(p=0;p=c));o++);m=null}this._result.length>=n.DECOMPRESS_CHUNK_MAX&&this._onData()}return this._result=this._result.slice(n.WINDOW_MAX),this._onData(!0),this._onEnd(),t=a.bufferToString_fast(this._result),this._result=null,t}},e.exports=r},3135:(e,t,o)=>{var n=o(946),a=o(9797);t.version=o(1014).version,t.compress=function(e,t){return new n(t).compress(e)},t.decompress=function(e,t){return new a(t).decompress(e)}},8377:(e,t,o)=>{var n=o(6391),a=String.fromCharCode;t.createBuffer=function(e,t){if(!n.HAS_TYPED)return new Array(t);switch(e){case 8:return new Uint8Array(t);case 16:return new Uint16Array(t)}};var r=t.truncateBuffer=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};t.bufferToString_fast=function(e,t){if(null==t?t=e.length:e=r(e,t),n.CAN_CHARCODE_APPLY&&n.CAN_CHARCODE_APPLY_TYPED){var o=e.length;if(on.APPLY_BUFFER_SIZE&&(n.APPLY_BUFFER_SIZE_OK=!0),i}catch(e){n.APPLY_BUFFER_SIZE_OK=!1}}return s(e)};var s=t.bufferToString_chunked=function(e){for(var t,o="",r=e.length,s=0;sn.APPLY_BUFFER_SIZE&&(n.APPLY_BUFFER_SIZE_OK=!0);continue}catch(e){n.APPLY_BUFFER_SIZE_OK=!1}return i(e)}o+=a.apply(null,t)}return o},i=t.bufferToString_slow=function(e){for(var t="",o=e.length,n=0;n>7,t=" ";!(e&n.WINDOW_MAX);)t+=t,e<<=1;return t}},7824:e=>{var t=1e3,o=60*t,n=60*o,a=24*n;function r(e,t,o,n){var a=t>=1.5*o;return Math.round(e/o)+" "+n+(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*n;case"minutes":case"minute":case"mins":case"min":case"m":return s*o;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>=n?r(i,l,n,"hour"):l>=o?r(i,l,o,"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>=n?Math.round(e/n)+"h":r>=o?Math.round(e/o)+"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,o)=>{"use strict";o.r(t),o.d(t,{default:()=>y});var n=o(3379),a=o.n(n),r=o(7795),s=o.n(r),i=o(569),l=o.n(i),c=o(3565),u=o.n(c),d=o(9216),p=o.n(d),h=o(4589),f=o.n(h),m=o(450),g={};g.styleTagTransform=f(),g.setAttributes=u(),g.insert=l().bind(null,"head"),g.domAPI=s(),g.insertStyleElement=p(),a()(m.Z,g);const y=m.Z&&m.Z.locals?m.Z.locals:void 0},3379:e=>{"use strict";var t=[];function o(e){for(var o=-1,n=0;n{"use strict";var t={};e.exports=function(e,o){var n=function(e){if(void 0===t[e]){var o=document.querySelector(e);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(e){o=null}t[e]=o}return t[e]}(e);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(o)}},9216:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},3565:(e,t,o)=>{"use strict";e.exports=function(e){var t=o.nc;t&&e.setAttribute("nonce",t)}},7795:e=>{"use strict";e.exports=function(e){var t=e.insertStyleElement(e);return{update:function(o){!function(e,t,o){var n="";o.supports&&(n+="@supports (".concat(o.supports,") {")),o.media&&(n+="@media ".concat(o.media," {"));var a=void 0!==o.layer;a&&(n+="@layer".concat(o.layer.length>0?" ".concat(o.layer):""," {")),n+=o.css,a&&(n+="}"),o.media&&(n+="}"),o.supports&&(n+="}");var r=o.sourceMap;r&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(r))))," */")),t.styleTagTransform(n,e,t.options)}(t,e,o)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},4589:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},6455:function(e){e.exports=function(){"use strict";const e="SweetAlert2:",t=e=>e.charAt(0).toUpperCase()+e.slice(1),o=t=>{console.warn("".concat(e," ").concat("object"==typeof t?t.join(" "):t))},n=t=>{console.error("".concat(e," ").concat(t))},a=[],r=(e,t)=>{var n;n='"'.concat(e,'" is deprecated and will be removed in the next major release. Please use "').concat(t,'" instead.'),a.includes(n)||(a.push(n),o(n))},s=e=>"function"==typeof e?e():e,i=e=>e&&"function"==typeof e.toPromise,l=e=>i(e)?e.toPromise():Promise.resolve(e),c=e=>e&&Promise.resolve(e)===e,u={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,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",color:void 0,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,willOpen:void 0,didOpen:void 0,didRender:void 0,willClose:void 0,didClose:void 0,didDestroy:void 0,scrollbarPadding:!0},d=["allowEscapeKey","allowOutsideClick","background","buttonsStyling","cancelButtonAriaLabel","cancelButtonColor","cancelButtonText","closeButtonAriaLabel","closeButtonHtml","color","confirmButtonAriaLabel","confirmButtonColor","confirmButtonText","currentProgressStep","customClass","denyButtonAriaLabel","denyButtonColor","denyButtonText","didClose","didDestroy","footer","hideClass","html","icon","iconColor","iconHtml","imageAlt","imageHeight","imageUrl","imageWidth","preConfirm","preDeny","progressSteps","returnFocus","reverseButtons","showCancelButton","showCloseButton","showConfirmButton","showDenyButton","text","title","titleText","willClose"],p={},h=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],f=e=>Object.prototype.hasOwnProperty.call(u,e),m=e=>-1!==d.indexOf(e),g=e=>p[e],y=e=>{f(e)||o('Unknown parameter "'.concat(e,'"'))},w=e=>{h.includes(e)&&o('The parameter "'.concat(e,'" is incompatible with toasts'))},b=e=>{g(e)&&r(e,g(e))},_=e=>{const t={};for(const o in e)t[e[o]]="swal2-"+e[o];return t},v=_(["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","show","hide","close","title","html-container","actions","confirm","deny","cancel","default-outline","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","input-label","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loader","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error","no-war"]),k=_(["success","warning","info","question","error"]),C=()=>document.body.querySelector(".".concat(v.container)),E=e=>{const t=C();return t?t.querySelector(e):null},x=e=>E(".".concat(e)),S=()=>x(v.popup),A=()=>x(v.icon),T=()=>x(v.title),P=()=>x(v["html-container"]),I=()=>x(v.image),D=()=>x(v["progress-steps"]),B=()=>x(v["validation-message"]),O=()=>E(".".concat(v.actions," .").concat(v.confirm)),R=()=>E(".".concat(v.actions," .").concat(v.deny)),M=()=>E(".".concat(v.loader)),N=()=>E(".".concat(v.actions," .").concat(v.cancel)),L=()=>x(v.actions),F=()=>x(v.footer),j=()=>x(v["timer-progress-bar"]),H=()=>x(v.close),U=()=>{const e=Array.from(S().querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])')).sort(((e,t)=>{const o=parseInt(e.getAttribute("tabindex")),n=parseInt(t.getAttribute("tabindex"));return o>n?1:o"-1"!==e.getAttribute("tabindex")));return(e=>{const t=[];for(let o=0;ore(e)))},q=()=>G(document.body,v.shown)&&!G(document.body,v["toast-shown"])&&!G(document.body,v["no-backdrop"]),Y=()=>S()&&G(S(),v.toast),W={previousBodyPadding:null},z=(e,t)=>{if(e.textContent="",t){const o=(new DOMParser).parseFromString(t,"text/html");Array.from(o.querySelector("head").childNodes).forEach((t=>{e.appendChild(t)})),Array.from(o.querySelector("body").childNodes).forEach((t=>{e.appendChild(t)}))}},G=(e,t)=>{if(!t)return!1;const o=t.split(/\s+/);for(let t=0;t{if(((e,t)=>{Array.from(e.classList).forEach((o=>{Object.values(v).includes(o)||Object.values(k).includes(o)||Object.values(t.showClass).includes(o)||e.classList.remove(o)}))})(e,t),t.customClass&&t.customClass[n]){if("string"!=typeof t.customClass[n]&&!t.customClass[n].forEach)return o("Invalid type of customClass.".concat(n,'! Expected string or iterable object, got "').concat(typeof t.customClass[n],'"'));$(e,t.customClass[n])}},K=(e,t)=>{if(!t)return null;switch(t){case"select":case"textarea":case"file":return e.querySelector(".".concat(v.popup," > .").concat(v[t]));case"checkbox":return e.querySelector(".".concat(v.popup," > .").concat(v.checkbox," input"));case"radio":return e.querySelector(".".concat(v.popup," > .").concat(v.radio," input:checked"))||e.querySelector(".".concat(v.popup," > .").concat(v.radio," input:first-child"));case"range":return e.querySelector(".".concat(v.popup," > .").concat(v.range," input"));default:return e.querySelector(".".concat(v.popup," > .").concat(v.input))}},X=e=>{if(e.focus(),"file"!==e.type){const t=e.value;e.value="",e.value=t}},Z=(e,t,o)=>{e&&t&&("string"==typeof t&&(t=t.split(/\s+/).filter(Boolean)),t.forEach((t=>{Array.isArray(e)?e.forEach((e=>{o?e.classList.add(t):e.classList.remove(t)})):o?e.classList.add(t):e.classList.remove(t)})))},$=(e,t)=>{Z(e,t,!0)},J=(e,t)=>{Z(e,t,!1)},Q=(e,t)=>{const o=Array.from(e.children);for(let e=0;e{o==="".concat(parseInt(o))&&(o=parseInt(o)),o||0===parseInt(o)?e.style[t]="number"==typeof o?"".concat(o,"px"):o:e.style.removeProperty(t)},te=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"flex";e.style.display=t},oe=e=>{e.style.display="none"},ne=(e,t,o,n)=>{const a=e.querySelector(t);a&&(a.style[o]=n)},ae=function(e,t){t?te(e,arguments.length>2&&void 0!==arguments[2]?arguments[2]:"flex"):oe(e)},re=e=>!(!e||!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)),se=e=>!!(e.scrollHeight>e.clientHeight),ie=e=>{const t=window.getComputedStyle(e),o=parseFloat(t.getPropertyValue("animation-duration")||"0"),n=parseFloat(t.getPropertyValue("transition-duration")||"0");return o>0||n>0},le=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const o=j();re(o)&&(t&&(o.style.transition="none",o.style.width="100%"),setTimeout((()=>{o.style.transition="width ".concat(e/1e3,"s linear"),o.style.width="0%"}),10))},ce=()=>"undefined"==typeof window||"undefined"==typeof document,ue={},de=e=>new Promise((t=>{if(!e)return t();const o=window.scrollX,n=window.scrollY;ue.restoreFocusTimeout=setTimeout((()=>{ue.previousActiveElement instanceof HTMLElement?(ue.previousActiveElement.focus(),ue.previousActiveElement=null):document.body&&document.body.focus(),t()}),100),window.scrollTo(o,n)})),pe='\n
                              \n \n
                                \n
                                \n \n

                                \n
                                \n \n \n
                                \n \n \n
                                \n \n
                                \n \n \n
                                \n
                                \n
                                \n \n \n \n
                                \n
                                \n
                                \n
                                \n
                                \n
                                \n').replace(/(^|\n)\s*/g,""),he=()=>{ue.currentInstance.resetValidationMessage()},fe=e=>{const t=(()=>{const e=C();return!!e&&(e.remove(),J([document.documentElement,document.body],[v["no-backdrop"],v["toast-shown"],v["has-column"]]),!0)})();if(ce())return void n("SweetAlert2 requires document to initialize");const o=document.createElement("div");o.className=v.container,t&&$(o,v["no-transition"]),z(o,pe);const a="string"==typeof(r=e.target)?document.querySelector(r):r;var r;a.appendChild(o),(e=>{const t=S();t.setAttribute("role",e.toast?"alert":"dialog"),t.setAttribute("aria-live",e.toast?"polite":"assertive"),e.toast||t.setAttribute("aria-modal","true")})(e),(e=>{"rtl"===window.getComputedStyle(e).direction&&$(C(),v.rtl)})(a),(()=>{const e=S(),t=Q(e,v.input),o=Q(e,v.file),n=e.querySelector(".".concat(v.range," input")),a=e.querySelector(".".concat(v.range," output")),r=Q(e,v.select),s=e.querySelector(".".concat(v.checkbox," input")),i=Q(e,v.textarea);t.oninput=he,o.onchange=he,r.onchange=he,s.onchange=he,i.oninput=he,n.oninput=()=>{he(),a.value=n.value},n.onchange=()=>{he(),a.value=n.value}})()},me=(e,t)=>{e instanceof HTMLElement?t.appendChild(e):"object"==typeof e?ge(e,t):e&&z(t,e)},ge=(e,t)=>{e.jquery?ye(t,e):z(t,e.toString())},ye=(e,t)=>{if(e.textContent="",0 in t)for(let o=0;o in t;o++)e.appendChild(t[o].cloneNode(!0));else e.appendChild(t.cloneNode(!0))},we=(()=>{if(ce())return!1;const e=document.createElement("div"),t={WebkitAnimation:"webkitAnimationEnd",animation:"animationend"};for(const o in t)if(Object.prototype.hasOwnProperty.call(t,o)&&void 0!==e.style[o])return t[o];return!1})(),be=(e,t)=>{const o=L(),n=M();t.showConfirmButton||t.showDenyButton||t.showCancelButton?te(o):oe(o),V(o,t,"actions"),function(e,t,o){const n=O(),a=R(),r=N();_e(n,"confirm",o),_e(a,"deny",o),_e(r,"cancel",o),function(e,t,o,n){if(!n.buttonsStyling)return J([e,t,o],v.styled);$([e,t,o],v.styled),n.confirmButtonColor&&(e.style.backgroundColor=n.confirmButtonColor,$(e,v["default-outline"])),n.denyButtonColor&&(t.style.backgroundColor=n.denyButtonColor,$(t,v["default-outline"])),n.cancelButtonColor&&(o.style.backgroundColor=n.cancelButtonColor,$(o,v["default-outline"]))}(n,a,r,o),o.reverseButtons&&(o.toast?(e.insertBefore(r,n),e.insertBefore(a,n)):(e.insertBefore(r,t),e.insertBefore(a,t),e.insertBefore(n,t)))}(o,n,t),z(n,t.loaderHtml),V(n,t,"loader")};function _e(e,o,n){ae(e,n["show".concat(t(o),"Button")],"inline-block"),z(e,n["".concat(o,"ButtonText")]),e.setAttribute("aria-label",n["".concat(o,"ButtonAriaLabel")]),e.className=v[o],V(e,n,"".concat(o,"Button")),$(e,n["".concat(o,"ButtonClass")])}const ve=(e,t)=>{const n=C();n&&(function(e,t){"string"==typeof t?e.style.background=t:t||$([document.documentElement,document.body],v["no-backdrop"])}(n,t.backdrop),function(e,t){t in v?$(e,v[t]):(o('The "position" parameter is not valid, defaulting to "center"'),$(e,v.center))}(n,t.position),function(e,t){if(t&&"string"==typeof t){const o="grow-".concat(t);o in v&&$(e,v[o])}}(n,t.grow),V(n,t,"container"))};var ke={awaitingPromise:new WeakMap,promise:new WeakMap,innerParams:new WeakMap,domCache:new WeakMap};const Ce=["input","file","range","select","radio","checkbox","textarea"],Ee=e=>{if(!De[e.input])return n('Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "'.concat(e.input,'"'));const t=Pe(e.input),o=De[e.input](t,e);te(t),setTimeout((()=>{X(o)}))},xe=(e,t)=>{const o=K(S(),e);if(o){(e=>{for(let t=0;t{const t=Pe(e.input);"object"==typeof e.customClass&&$(t,e.customClass.input)},Ae=(e,t)=>{e.placeholder&&!t.inputPlaceholder||(e.placeholder=t.inputPlaceholder)},Te=(e,t,o)=>{if(o.inputLabel){e.id=v.input;const n=document.createElement("label"),a=v["input-label"];n.setAttribute("for",e.id),n.className=a,"object"==typeof o.customClass&&$(n,o.customClass.inputLabel),n.innerText=o.inputLabel,t.insertAdjacentElement("beforebegin",n)}},Pe=e=>Q(S(),v[e]||v.input),Ie=(e,t)=>{["string","number"].includes(typeof t)?e.value="".concat(t):c(t)||o('Unexpected type of inputValue! Expected "string", "number" or "Promise", got "'.concat(typeof t,'"'))},De={};De.text=De.email=De.password=De.number=De.tel=De.url=(e,t)=>(Ie(e,t.inputValue),Te(e,e,t),Ae(e,t),e.type=t.input,e),De.file=(e,t)=>(Te(e,e,t),Ae(e,t),e),De.range=(e,t)=>{const o=e.querySelector("input"),n=e.querySelector("output");return Ie(o,t.inputValue),o.type=t.input,Ie(n,t.inputValue),Te(o,e,t),e},De.select=(e,t)=>{if(e.textContent="",t.inputPlaceholder){const o=document.createElement("option");z(o,t.inputPlaceholder),o.value="",o.disabled=!0,o.selected=!0,e.appendChild(o)}return Te(e,e,t),e},De.radio=e=>(e.textContent="",e),De.checkbox=(e,t)=>{const o=K(S(),"checkbox");o.value="1",o.id=v.checkbox,o.checked=Boolean(t.inputValue);const n=e.querySelector("span");return z(n,t.inputPlaceholder),o},De.textarea=(e,t)=>{Ie(e,t.inputValue),Ae(e,t),Te(e,e,t);return setTimeout((()=>{if("MutationObserver"in window){const t=parseInt(window.getComputedStyle(S()).width);new MutationObserver((()=>{const o=e.offsetWidth+(n=e,parseInt(window.getComputedStyle(n).marginLeft)+parseInt(window.getComputedStyle(n).marginRight));var n;S().style.width=o>t?"".concat(o,"px"):null})).observe(e,{attributes:!0,attributeFilter:["style"]})}})),e};const Be=(e,t)=>{const o=P();V(o,t,"htmlContainer"),t.html?(me(t.html,o),te(o,"block")):t.text?(o.textContent=t.text,te(o,"block")):oe(o),((e,t)=>{const o=S(),n=ke.innerParams.get(e),a=!n||t.input!==n.input;Ce.forEach((e=>{const n=Q(o,v[e]);xe(e,t.inputAttributes),n.className=v[e],a&&oe(n)})),t.input&&(a&&Ee(t),Se(t))})(e,t)},Oe=(e,t)=>{for(const o in k)t.icon!==o&&J(e,k[o]);$(e,k[t.icon]),Ne(e,t),Re(),V(e,t,"icon")},Re=()=>{const e=S(),t=window.getComputedStyle(e).getPropertyValue("background-color"),o=e.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");for(let e=0;e{let o,n=e.innerHTML;t.iconHtml?o=Le(t.iconHtml):"success"===t.icon?(o='\n
                                \n \n
                                \n
                                \n',n=n.replace(/ style=".*?"/g,"")):o="error"===t.icon?'\n \n \n \n \n':Le({question:"?",warning:"!",info:"i"}[t.icon]),n.trim()!==o.trim()&&z(e,o)},Ne=(e,t)=>{if(t.iconColor){e.style.color=t.iconColor,e.style.borderColor=t.iconColor;for(const o of[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"])ne(e,o,"backgroundColor",t.iconColor);ne(e,".swal2-success-ring","borderColor",t.iconColor)}},Le=e=>'
                                ').concat(e,"
                                "),Fe=e=>{const t=document.createElement("li");return $(t,v["progress-step"]),z(t,e),t},je=e=>{const t=document.createElement("li");return $(t,v["progress-step-line"]),e.progressStepsDistance&&ee(t,"width",e.progressStepsDistance),t},He=(e,t)=>{e.className="".concat(v.popup," ").concat(re(e)?t.showClass.popup:""),t.toast?($([document.documentElement,document.body],v["toast-shown"]),$(e,v.toast)):$(e,v.modal),V(e,t,"popup"),"string"==typeof t.customClass&&$(e,t.customClass),t.icon&&$(e,v["icon-".concat(t.icon)])},Ue=(e,t)=>{((e,t)=>{const o=C(),n=S();t.toast?(ee(o,"width",t.width),n.style.width="100%",n.insertBefore(M(),A())):ee(n,"width",t.width),ee(n,"padding",t.padding),t.color&&(n.style.color=t.color),t.background&&(n.style.background=t.background),oe(B()),He(n,t)})(0,t),ve(0,t),((e,t)=>{const n=D();if(!t.progressSteps||0===t.progressSteps.length)return oe(n);te(n),n.textContent="",t.currentProgressStep>=t.progressSteps.length&&o("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),t.progressSteps.forEach(((e,o)=>{const a=Fe(e);if(n.appendChild(a),o===t.currentProgressStep&&$(a,v["active-progress-step"]),o!==t.progressSteps.length-1){const e=je(t);n.appendChild(e)}}))})(0,t),((e,t)=>{const o=ke.innerParams.get(e),a=A();if(o&&t.icon===o.icon)return Me(a,t),void Oe(a,t);if(t.icon||t.iconHtml){if(t.icon&&-1===Object.keys(k).indexOf(t.icon))return n('Unknown icon! Expected "success", "error", "warning", "info" or "question", got "'.concat(t.icon,'"')),void oe(a);te(a),Me(a,t),Oe(a,t),$(a,t.showClass.icon)}else oe(a)})(e,t),((e,t)=>{const o=I();if(!t.imageUrl)return oe(o);te(o,""),o.setAttribute("src",t.imageUrl),o.setAttribute("alt",t.imageAlt),ee(o,"width",t.imageWidth),ee(o,"height",t.imageHeight),o.className=v.image,V(o,t,"image")})(0,t),((e,t)=>{const o=T();ae(o,t.title||t.titleText,"block"),t.title&&me(t.title,o),t.titleText&&(o.innerText=t.titleText),V(o,t,"title")})(0,t),((e,t)=>{const o=H();z(o,t.closeButtonHtml),V(o,t,"closeButton"),ae(o,t.showCloseButton),o.setAttribute("aria-label",t.closeButtonAriaLabel)})(0,t),Be(e,t),be(0,t),((e,t)=>{const o=F();ae(o,t.footer),t.footer&&me(t.footer,o),V(o,t,"footer")})(0,t),"function"==typeof t.didRender&&t.didRender(S())},qe=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),Ye=()=>{Array.from(document.body.children).forEach((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")}))},We=["swal-title","swal-html","swal-footer"],ze=e=>{const t={};return Array.from(e.querySelectorAll("swal-param")).forEach((e=>{Je(e,["name","value"]);const o=e.getAttribute("name"),n=e.getAttribute("value");"boolean"==typeof u[o]&&"false"===n&&(t[o]=!1),"object"==typeof u[o]&&(t[o]=JSON.parse(n))})),t},Ge=e=>{const o={};return Array.from(e.querySelectorAll("swal-button")).forEach((e=>{Je(e,["type","color","aria-label"]);const n=e.getAttribute("type");o["".concat(n,"ButtonText")]=e.innerHTML,o["show".concat(t(n),"Button")]=!0,e.hasAttribute("color")&&(o["".concat(n,"ButtonColor")]=e.getAttribute("color")),e.hasAttribute("aria-label")&&(o["".concat(n,"ButtonAriaLabel")]=e.getAttribute("aria-label"))})),o},Ve=e=>{const t={},o=e.querySelector("swal-image");return o&&(Je(o,["src","width","height","alt"]),o.hasAttribute("src")&&(t.imageUrl=o.getAttribute("src")),o.hasAttribute("width")&&(t.imageWidth=o.getAttribute("width")),o.hasAttribute("height")&&(t.imageHeight=o.getAttribute("height")),o.hasAttribute("alt")&&(t.imageAlt=o.getAttribute("alt"))),t},Ke=e=>{const t={},o=e.querySelector("swal-icon");return o&&(Je(o,["type","color"]),o.hasAttribute("type")&&(t.icon=o.getAttribute("type")),o.hasAttribute("color")&&(t.iconColor=o.getAttribute("color")),t.iconHtml=o.innerHTML),t},Xe=e=>{const t={},o=e.querySelector("swal-input");o&&(Je(o,["type","label","placeholder","value"]),t.input=o.getAttribute("type")||"text",o.hasAttribute("label")&&(t.inputLabel=o.getAttribute("label")),o.hasAttribute("placeholder")&&(t.inputPlaceholder=o.getAttribute("placeholder")),o.hasAttribute("value")&&(t.inputValue=o.getAttribute("value")));const n=Array.from(e.querySelectorAll("swal-input-option"));return n.length&&(t.inputOptions={},n.forEach((e=>{Je(e,["value"]);const o=e.getAttribute("value"),n=e.innerHTML;t.inputOptions[o]=n}))),t},Ze=(e,t)=>{const o={};for(const n in t){const a=t[n],r=e.querySelector(a);r&&(Je(r,[]),o[a.replace(/^swal-/,"")]=r.innerHTML.trim())}return o},$e=e=>{const t=We.concat(["swal-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Array.from(e.children).forEach((e=>{const n=e.tagName.toLowerCase();-1===t.indexOf(n)&&o("Unrecognized element <".concat(n,">"))}))},Je=(e,t)=>{Array.from(e.attributes).forEach((n=>{-1===t.indexOf(n.name)&&o(['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.")])}))};var Qe={email:(e,t)=>/^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]{2,24}$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid email address"),url:(e,t)=>/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid URL")};function et(e){(function(e){e.inputValidator||Object.keys(Qe).forEach((t=>{e.input===t&&(e.inputValidator=Qe[t])}))})(e),e.showLoaderOnConfirm&&!e.preConfirm&&o("showLoaderOnConfirm is set to true, but preConfirm is not defined.\nshowLoaderOnConfirm should be used together with preConfirm, see usage example:\nhttps://sweetalert2.github.io/#ajax-request"),function(e){(!e.target||"string"==typeof e.target&&!document.querySelector(e.target)||"string"!=typeof e.target&&!e.target.appendChild)&&(o('Target parameter is not valid, defaulting to "body"'),e.target="body")}(e),"string"==typeof e.title&&(e.title=e.title.split("\n").join("
                                ")),fe(e)}class tt{constructor(e,t){this.callback=e,this.remaining=t,this.running=!1,this.start()}start(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}stop(){return this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=(new Date).getTime()-this.started.getTime()),this.remaining}increase(e){const t=this.running;return t&&this.stop(),this.remaining+=e,t&&this.start(),this.remaining}getTimerLeft(){return this.running&&(this.stop(),this.start()),this.remaining}isRunning(){return this.running}}const ot=()=>{null===W.previousBodyPadding&&document.body.scrollHeight>window.innerHeight&&(W.previousBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight="".concat(W.previousBodyPadding+(()=>{const e=document.createElement("div");e.className=v["scrollbar-measure"],document.body.appendChild(e);const t=e.getBoundingClientRect().width-e.clientWidth;return document.body.removeChild(e),t})(),"px"))},nt=()=>{const e=navigator.userAgent,t=!!e.match(/iPad/i)||!!e.match(/iPhone/i),o=!!e.match(/WebKit/i);if(t&&o&&!e.match(/CriOS/i)){const e=44;S().scrollHeight>window.innerHeight-e&&(C().style.paddingBottom="".concat(e,"px"))}},at=()=>{const e=C();let t;e.ontouchstart=e=>{t=rt(e)},e.ontouchmove=e=>{t&&(e.preventDefault(),e.stopPropagation())}},rt=e=>{const t=e.target,o=C();return!(st(e)||it(e)||t!==o&&(se(o)||!(t instanceof HTMLElement)||"INPUT"===t.tagName||"TEXTAREA"===t.tagName||se(P())&&P().contains(t)))},st=e=>e.touches&&e.touches.length&&"stylus"===e.touches[0].touchType,it=e=>e.touches&&e.touches.length>1,lt=e=>{const t=C(),o=S();"function"==typeof e.willOpen&&e.willOpen(o);const n=window.getComputedStyle(document.body).overflowY;pt(t,o,e),setTimeout((()=>{ut(t,o)}),10),q()&&(dt(t,e.scrollbarPadding,n),Array.from(document.body.children).forEach((e=>{e===C()||e.contains(C())||(e.hasAttribute("aria-hidden")&&e.setAttribute("data-previous-aria-hidden",e.getAttribute("aria-hidden")),e.setAttribute("aria-hidden","true"))}))),Y()||ue.previousActiveElement||(ue.previousActiveElement=document.activeElement),"function"==typeof e.didOpen&&setTimeout((()=>e.didOpen(o))),J(t,v["no-transition"])},ct=e=>{const t=S();if(e.target!==t)return;const o=C();t.removeEventListener(we,ct),o.style.overflowY="auto"},ut=(e,t)=>{we&&ie(t)?(e.style.overflowY="hidden",t.addEventListener(we,ct)):e.style.overflowY="auto"},dt=(e,t,o)=>{(()=>{if((/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)&&!G(document.body,v.iosfix)){const e=document.body.scrollTop;document.body.style.top="".concat(-1*e,"px"),$(document.body,v.iosfix),at(),nt()}})(),t&&"hidden"!==o&&ot(),setTimeout((()=>{e.scrollTop=0}))},pt=(e,t,o)=>{$(e,o.showClass.backdrop),t.style.setProperty("opacity","0","important"),te(t,"grid"),setTimeout((()=>{$(t,o.showClass.popup),t.style.removeProperty("opacity")}),10),$([document.documentElement,document.body],v.shown),o.heightAuto&&o.backdrop&&!o.toast&&$([document.documentElement,document.body],v["height-auto"])},ht=e=>{let t=S();t||new Ao,t=S();const o=M();Y()?oe(A()):ft(t,e),te(o),t.setAttribute("data-loading","true"),t.setAttribute("aria-busy","true"),t.focus()},ft=(e,t)=>{const o=L(),n=M();!t&&re(O())&&(t=O()),te(o),t&&(oe(t),n.setAttribute("data-button-to-replace",t.className)),n.parentNode.insertBefore(n,t),$([e,o],v.loading)},mt=e=>e.checked?1:0,gt=e=>e.checked?e.value:null,yt=e=>e.files.length?null!==e.getAttribute("multiple")?e.files:e.files[0]:null,wt=(e,t)=>{const o=S(),a=e=>_t[t.input](o,vt(e),t);i(t.inputOptions)||c(t.inputOptions)?(ht(O()),l(t.inputOptions).then((t=>{e.hideLoading(),a(t)}))):"object"==typeof t.inputOptions?a(t.inputOptions):n("Unexpected type of inputOptions! Expected object, Map or Promise, got ".concat(typeof t.inputOptions))},bt=(e,t)=>{const o=e.getInput();oe(o),l(t.inputValue).then((n=>{o.value="number"===t.input?parseFloat(n)||0:"".concat(n),te(o),o.focus(),e.hideLoading()})).catch((t=>{n("Error in inputValue promise: ".concat(t)),o.value="",te(o),o.focus(),e.hideLoading()}))},_t={select:(e,t,o)=>{const n=Q(e,v.select),a=(e,t,n)=>{const a=document.createElement("option");a.value=n,z(a,t),a.selected=kt(n,o.inputValue),e.appendChild(a)};t.forEach((e=>{const t=e[0],o=e[1];if(Array.isArray(o)){const e=document.createElement("optgroup");e.label=t,e.disabled=!1,n.appendChild(e),o.forEach((t=>a(e,t[1],t[0])))}else a(n,o,t)})),n.focus()},radio:(e,t,o)=>{const n=Q(e,v.radio);t.forEach((e=>{const t=e[0],a=e[1],r=document.createElement("input"),s=document.createElement("label");r.type="radio",r.name=v.radio,r.value=t,kt(t,o.inputValue)&&(r.checked=!0);const i=document.createElement("span");z(i,a),i.className=v.label,s.appendChild(r),s.appendChild(i),n.appendChild(s)}));const a=n.querySelectorAll("input");a.length&&a[0].focus()}},vt=e=>{const t=[];return"undefined"!=typeof Map&&e instanceof Map?e.forEach(((e,o)=>{let n=e;"object"==typeof n&&(n=vt(n)),t.push([o,n])})):Object.keys(e).forEach((o=>{let n=e[o];"object"==typeof n&&(n=vt(n)),t.push([o,n])})),t},kt=(e,t)=>t&&t.toString()===e.toString();function Ct(){const e=ke.innerParams.get(this);if(!e)return;const t=ke.domCache.get(this);oe(t.loader),Y()?e.icon&&te(A()):Et(t),J([t.popup,t.actions],v.loading),t.popup.removeAttribute("aria-busy"),t.popup.removeAttribute("data-loading"),t.confirmButton.disabled=!1,t.denyButton.disabled=!1,t.cancelButton.disabled=!1}const Et=e=>{const t=e.popup.getElementsByClassName(e.loader.getAttribute("data-button-to-replace"));t.length?te(t[0],"inline-block"):!re(O())&&!re(R())&&!re(N())&&oe(e.actions)};var xt={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};const St=()=>O()&&O().click(),At=e=>{e.keydownTarget&&e.keydownHandlerAdded&&(e.keydownTarget.removeEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!1)},Tt=(e,t,o)=>{const n=U();if(n.length)return(t+=o)===n.length?t=0:-1===t&&(t=n.length-1),n[t].focus();S().focus()},Pt=["ArrowRight","ArrowDown"],It=["ArrowLeft","ArrowUp"],Dt=(e,t,o)=>{const n=ke.innerParams.get(e);n&&(t.isComposing||229===t.keyCode||(n.stopKeydownPropagation&&t.stopPropagation(),"Enter"===t.key?Bt(e,t,n):"Tab"===t.key?Ot(t,n):[...Pt,...It].includes(t.key)?Rt(t.key):"Escape"===t.key&&Mt(t,n,o)))},Bt=(e,t,o)=>{if(s(o.allowEnterKey)&&t.target&&e.getInput()&&t.target instanceof HTMLElement&&t.target.outerHTML===e.getInput().outerHTML){if(["textarea","file"].includes(o.input))return;St(),t.preventDefault()}},Ot=(e,t)=>{const o=e.target,n=U();let a=-1;for(let e=0;e{const t=O(),o=R(),n=N();if(document.activeElement instanceof HTMLElement&&![t,o,n].includes(document.activeElement))return;const a=Pt.includes(e)?"nextElementSibling":"previousElementSibling";let r=document.activeElement;for(let e=0;e{s(t.allowEscapeKey)&&(e.preventDefault(),o(qe.esc))};function Nt(e,t,o,n){Y()?Yt(e,n):(de(o).then((()=>Yt(e,n))),At(ue)),/^((?!chrome|android).)*safari/i.test(navigator.userAgent)?(t.setAttribute("style","display:none !important"),t.removeAttribute("class"),t.innerHTML=""):t.remove(),q()&&(null!==W.previousBodyPadding&&(document.body.style.paddingRight="".concat(W.previousBodyPadding,"px"),W.previousBodyPadding=null),(()=>{if(G(document.body,v.iosfix)){const e=parseInt(document.body.style.top,10);J(document.body,v.iosfix),document.body.style.top="",document.body.scrollTop=-1*e}})(),Ye()),J([document.documentElement,document.body],[v.shown,v["height-auto"],v["no-backdrop"],v["toast-shown"]])}function Lt(e){e=Ht(e);const t=xt.swalPromiseResolve.get(this),o=Ft(this);this.isAwaitingPromise()?e.isDismissed||(jt(this),t(e)):o&&t(e)}const Ft=e=>{const t=S();if(!t)return!1;const o=ke.innerParams.get(e);if(!o||G(t,o.hideClass.popup))return!1;J(t,o.showClass.popup),$(t,o.hideClass.popup);const n=C();return J(n,o.showClass.backdrop),$(n,o.hideClass.backdrop),Ut(e,t,o),!0};const jt=e=>{e.isAwaitingPromise()&&(ke.awaitingPromise.delete(e),ke.innerParams.get(e)||e._destroy())},Ht=e=>void 0===e?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},e),Ut=(e,t,o)=>{const n=C(),a=we&&ie(t);"function"==typeof o.willClose&&o.willClose(t),a?qt(e,t,n,o.returnFocus,o.didClose):Nt(e,n,o.returnFocus,o.didClose)},qt=(e,t,o,n,a)=>{ue.swalCloseEventFinishedCallback=Nt.bind(null,e,o,n,a),t.addEventListener(we,(function(e){e.target===t&&(ue.swalCloseEventFinishedCallback(),delete ue.swalCloseEventFinishedCallback)}))},Yt=(e,t)=>{setTimeout((()=>{"function"==typeof t&&t.bind(e.params)(),e._destroy()}))};function Wt(e,t,o){const n=ke.domCache.get(e);t.forEach((e=>{n[e].disabled=o}))}function zt(e,t){if(!e)return!1;if("radio"===e.type){const o=e.parentNode.parentNode.querySelectorAll("input");for(let e=0;e{const t={};return Object.keys(e).forEach((n=>{m(n)?t[n]=e[n]:o("Invalid parameter to update: ".concat(n))})),t};const Vt=e=>{Kt(e),delete e.params,delete ue.keydownHandler,delete ue.keydownTarget,delete ue.currentInstance},Kt=e=>{e.isAwaitingPromise()?(Xt(ke,e),ke.awaitingPromise.set(e,!0)):(Xt(xt,e),Xt(ke,e))},Xt=(e,t)=>{for(const o in e)e[o].delete(t)};var Zt=Object.freeze({hideLoading:Ct,disableLoading:Ct,getInput:function(e){const t=ke.innerParams.get(e||this),o=ke.domCache.get(e||this);return o?K(o.popup,t.input):null},close:Lt,isAwaitingPromise:function(){return!!ke.awaitingPromise.get(this)},rejectPromise:function(e){const t=xt.swalPromiseReject.get(this);jt(this),t&&t(e)},handleAwaitingPromise:jt,closePopup:Lt,closeModal:Lt,closeToast:Lt,enableButtons:function(){Wt(this,["confirmButton","denyButton","cancelButton"],!1)},disableButtons:function(){Wt(this,["confirmButton","denyButton","cancelButton"],!0)},enableInput:function(){return zt(this.getInput(),!1)},disableInput:function(){return zt(this.getInput(),!0)},showValidationMessage:function(e){const t=ke.domCache.get(this),o=ke.innerParams.get(this);z(t.validationMessage,e),t.validationMessage.className=v["validation-message"],o.customClass&&o.customClass.validationMessage&&$(t.validationMessage,o.customClass.validationMessage),te(t.validationMessage);const n=this.getInput();n&&(n.setAttribute("aria-invalid",!0),n.setAttribute("aria-describedby",v["validation-message"]),X(n),$(n,v.inputerror))},resetValidationMessage:function(){const e=ke.domCache.get(this);e.validationMessage&&oe(e.validationMessage);const t=this.getInput();t&&(t.removeAttribute("aria-invalid"),t.removeAttribute("aria-describedby"),J(t,v.inputerror))},getProgressSteps:function(){return ke.domCache.get(this).progressSteps},update:function(e){const t=S(),n=ke.innerParams.get(this);if(!t||G(t,n.hideClass.popup))return o("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.");const a=Gt(e),r=Object.assign({},n,a);Ue(this,r),ke.innerParams.set(this,r),Object.defineProperties(this,{params:{value:Object.assign({},this.params,e),writable:!1,enumerable:!0}})},_destroy:function(){const e=ke.domCache.get(this),t=ke.innerParams.get(this);t?(e.popup&&ue.swalCloseEventFinishedCallback&&(ue.swalCloseEventFinishedCallback(),delete ue.swalCloseEventFinishedCallback),"function"==typeof t.didDestroy&&t.didDestroy(),Vt(this)):Kt(this)}});const $t=(e,o)=>{const a=ke.innerParams.get(e);if(!a.input)return void n('The "input" parameter is needed to be set when using returnInputValueOn'.concat(t(o)));const r=((e,t)=>{const o=e.getInput();if(!o)return null;switch(t.input){case"checkbox":return mt(o);case"radio":return gt(o);case"file":return yt(o);default:return t.inputAutoTrim?o.value.trim():o.value}})(e,a);a.inputValidator?Jt(e,r,o):e.getInput().checkValidity()?"deny"===o?Qt(e,r):oo(e,r):(e.enableButtons(),e.showValidationMessage(a.validationMessage))},Jt=(e,t,o)=>{const n=ke.innerParams.get(e);e.disableInput(),Promise.resolve().then((()=>l(n.inputValidator(t,n.validationMessage)))).then((n=>{e.enableButtons(),e.enableInput(),n?e.showValidationMessage(n):"deny"===o?Qt(e,t):oo(e,t)}))},Qt=(e,t)=>{const o=ke.innerParams.get(e||void 0);o.showLoaderOnDeny&&ht(R()),o.preDeny?(ke.awaitingPromise.set(e||void 0,!0),Promise.resolve().then((()=>l(o.preDeny(t,o.validationMessage)))).then((o=>{!1===o?(e.hideLoading(),jt(e)):e.close({isDenied:!0,value:void 0===o?t:o})})).catch((t=>to(e||void 0,t)))):e.close({isDenied:!0,value:t})},eo=(e,t)=>{e.close({isConfirmed:!0,value:t})},to=(e,t)=>{e.rejectPromise(t)},oo=(e,t)=>{const o=ke.innerParams.get(e||void 0);o.showLoaderOnConfirm&&ht(),o.preConfirm?(e.resetValidationMessage(),ke.awaitingPromise.set(e||void 0,!0),Promise.resolve().then((()=>l(o.preConfirm(t,o.validationMessage)))).then((o=>{re(B())||!1===o?(e.hideLoading(),jt(e)):eo(e,void 0===o?t:o)})).catch((t=>to(e||void 0,t)))):eo(e,t)},no=(e,t,o)=>{t.popup.onclick=()=>{const t=ke.innerParams.get(e);t&&(ao(t)||t.timer||t.input)||o(qe.close)}},ao=e=>e.showConfirmButton||e.showDenyButton||e.showCancelButton||e.showCloseButton;let ro=!1;const so=e=>{e.popup.onmousedown=()=>{e.container.onmouseup=function(t){e.container.onmouseup=void 0,t.target===e.container&&(ro=!0)}}},io=e=>{e.container.onmousedown=()=>{e.popup.onmouseup=function(t){e.popup.onmouseup=void 0,(t.target===e.popup||e.popup.contains(t.target))&&(ro=!0)}}},lo=(e,t,o)=>{t.container.onclick=n=>{const a=ke.innerParams.get(e);ro?ro=!1:n.target===t.container&&s(a.allowOutsideClick)&&o(qe.backdrop)}},co=e=>e instanceof Element||(e=>"object"==typeof e&&e.jquery)(e);const uo=()=>{if(ue.timeout)return(()=>{const e=j(),t=parseInt(window.getComputedStyle(e).width);e.style.removeProperty("transition"),e.style.width="100%";const o=t/parseInt(window.getComputedStyle(e).width)*100;e.style.removeProperty("transition"),e.style.width="".concat(o,"%")})(),ue.timeout.stop()},po=()=>{if(ue.timeout){const e=ue.timeout.start();return le(e),e}};let ho=!1;const fo={};const mo=e=>{for(let t=e.target;t&&t!==document;t=t.parentNode)for(const e in fo){const o=t.getAttribute(e);if(o)return void fo[e].fire({template:o})}};var go=Object.freeze({isValidParameter:f,isUpdatableParameter:m,isDeprecatedParameter:g,argsToParams:e=>{const t={};return"object"!=typeof e[0]||co(e[0])?["title","html","icon"].forEach(((o,a)=>{const r=e[a];"string"==typeof r||co(r)?t[o]=r:void 0!==r&&n("Unexpected type of ".concat(o,'! Expected "string" or "Element", got ').concat(typeof r))})):Object.assign(t,e[0]),t},isVisible:()=>re(S()),clickConfirm:St,clickDeny:()=>R()&&R().click(),clickCancel:()=>N()&&N().click(),getContainer:C,getPopup:S,getTitle:T,getHtmlContainer:P,getImage:I,getIcon:A,getInputLabel:()=>x(v["input-label"]),getCloseButton:H,getActions:L,getConfirmButton:O,getDenyButton:R,getCancelButton:N,getLoader:M,getFooter:F,getTimerProgressBar:j,getFocusableElements:U,getValidationMessage:B,isLoading:()=>S().hasAttribute("data-loading"),fire:function(){const e=this;for(var t=arguments.length,o=new Array(t),n=0;nue.timeout&&ue.timeout.getTimerLeft(),stopTimer:uo,resumeTimer:po,toggleTimer:()=>{const e=ue.timeout;return e&&(e.running?uo():po())},increaseTimer:e=>{if(ue.timeout){const t=ue.timeout.increase(e);return le(t,!0),t}},isTimerRunning:()=>ue.timeout&&ue.timeout.isRunning(),bindClickHandler:function(){fo[arguments.length>0&&void 0!==arguments[0]?arguments[0]:"data-swal-template"]=this,ho||(document.body.addEventListener("click",mo),ho=!0)}});let yo;class wo{constructor(){if("undefined"==typeof window)return;yo=this;for(var e=arguments.length,t=new Array(e),o=0;o1&&void 0!==arguments[1]?arguments[1]:{};(e=>{!e.backdrop&&e.allowOutsideClick&&o('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');for(const t in e)y(t),e.toast&&w(t),b(t)})(Object.assign({},t,e)),ue.currentInstance&&(ue.currentInstance._destroy(),q()&&Ye()),ue.currentInstance=yo;const n=_o(e,t);et(n),Object.freeze(n),ue.timeout&&(ue.timeout.stop(),delete ue.timeout),clearTimeout(ue.restoreFocusTimeout);const a=vo(yo);return Ue(yo,n),ke.innerParams.set(yo,n),bo(yo,a,n)}then(e){return ke.promise.get(this).then(e)}finally(e){return ke.promise.get(this).finally(e)}}const bo=(e,t,o)=>new Promise(((n,a)=>{const r=t=>{e.closePopup({isDismissed:!0,dismiss:t})};xt.swalPromiseResolve.set(e,n),xt.swalPromiseReject.set(e,a),t.confirmButton.onclick=()=>(e=>{const t=ke.innerParams.get(e);e.disableButtons(),t.input?$t(e,"confirm"):oo(e,!0)})(e),t.denyButton.onclick=()=>(e=>{const t=ke.innerParams.get(e);e.disableButtons(),t.returnInputValueOnDeny?$t(e,"deny"):Qt(e,!1)})(e),t.cancelButton.onclick=()=>((e,t)=>{e.disableButtons(),t(qe.cancel)})(e,r),t.closeButton.onclick=()=>r(qe.close),((e,t,o)=>{ke.innerParams.get(e).toast?no(e,t,o):(so(t),io(t),lo(e,t,o))})(e,t,r),((e,t,o,n)=>{At(t),o.toast||(t.keydownHandler=t=>Dt(e,t,n),t.keydownTarget=o.keydownListenerCapture?window:S(),t.keydownListenerCapture=o.keydownListenerCapture,t.keydownTarget.addEventListener("keydown",t.keydownHandler,{capture:t.keydownListenerCapture}),t.keydownHandlerAdded=!0)})(e,ue,o,r),((e,t)=>{"select"===t.input||"radio"===t.input?wt(e,t):["text","email","number","tel","textarea"].includes(t.input)&&(i(t.inputValue)||c(t.inputValue))&&(ht(O()),bt(e,t))})(e,o),lt(o),ko(ue,o,r),Co(t,o),setTimeout((()=>{t.container.scrollTop=0}))})),_o=(e,t)=>{const o=(e=>{const t="string"==typeof e.template?document.querySelector(e.template):e.template;if(!t)return{};const o=t.content;return $e(o),Object.assign(ze(o),Ge(o),Ve(o),Ke(o),Xe(o),Ze(o,We))})(e),n=Object.assign({},u,t,o,e);return n.showClass=Object.assign({},u.showClass,n.showClass),n.hideClass=Object.assign({},u.hideClass,n.hideClass),n},vo=e=>{const t={popup:S(),container:C(),actions:L(),confirmButton:O(),denyButton:R(),cancelButton:N(),loader:M(),closeButton:H(),validationMessage:B(),progressSteps:D()};return ke.domCache.set(e,t),t},ko=(e,t,o)=>{const n=j();oe(n),t.timer&&(e.timeout=new tt((()=>{o("timer"),delete e.timeout}),t.timer),t.timerProgressBar&&(te(n),V(n,t,"timerProgressBar"),setTimeout((()=>{e.timeout&&e.timeout.running&&le(t.timer)}))))},Co=(e,t)=>{if(!t.toast)return s(t.allowEnterKey)?void(Eo(e,t)||Tt(0,-1,1)):xo()},Eo=(e,t)=>t.focusDeny&&re(e.denyButton)?(e.denyButton.focus(),!0):t.focusCancel&&re(e.cancelButton)?(e.cancelButton.focus(),!0):!(!t.focusConfirm||!re(e.confirmButton)||(e.confirmButton.focus(),0)),xo=()=>{document.activeElement instanceof HTMLElement&&"function"==typeof document.activeElement.blur&&document.activeElement.blur()};if("undefined"!=typeof window&&/^ru\b/.test(navigator.language)&&location.host.match(/\.(ru|su|xn--p1ai)$/)&&Math.random()<.1){const e=document.createElement("div");e.className="leave-russia-now-and-apply-your-skills-to-the-world";const t=(So=[{text:"В нижеприведённом видео объясняется как каждый из нас может помочь в том,\n чтобы эта бессмысленная и бесчеловечная война остановилась:",id:"4CfDhaRkw7I"},{text:"Эмпатия - главное человеческое чувство. Способность сопереживать. Способность поставить себя на место другого.",id:"s-GLAIY4DXA"}])[Math.floor(Math.random()*So.length)];z(e,"\n
                                \n Если мы не остановим войну, она придет в дом каждого из нас и её последствия будут ужасающими.\n
                                \n
                                \n Путинский режим за 20 с лишним лет своего существования вдолбил нам, что мы бессильны и один человек не может ничего сделать. Это не так!\n
                                \n
                                \n ".concat(t.text,'\n
                                \n \n
                                \n Нет войне!\n
                                \n '));const o=document.createElement("button");o.innerHTML="×",o.onclick=()=>e.remove(),e.appendChild(o),window.addEventListener("load",(()=>{setTimeout((()=>{document.body.appendChild(e)}),1e3)}))}var So;Object.assign(wo.prototype,Zt),Object.assign(wo,go),Object.keys(Zt).forEach((e=>{wo[e]=function(){if(yo)return yo[e](...arguments)}})),wo.DismissReason=qe,wo.version="11.4.29";const Ao=wo;return Ao.default=Ao,Ao}(),void 0!==this&&this.Sweetalert2&&(this.swal=this.sweetAlert=this.Swal=this.SweetAlert=this.Sweetalert2),"undefined"!=typeof document&&function(e,t){var o=e.createElement("style");if(e.getElementsByTagName("head")[0].appendChild(o),o.styleSheet)o.styleSheet.disabled||(o.styleSheet.cssText=t);else try{o.innerHTML=t}catch(e){o.innerText=t}}(document,'.swal2-popup.swal2-toast{box-sizing:border-box;grid-column:1/4!important;grid-row:1/4!important;grid-template-columns:1fr 99fr 1fr;padding:1em;overflow-y:hidden;background:#fff;box-shadow:0 0 1px hsla(0deg,0%,0%,.075),0 1px 2px hsla(0deg,0%,0%,.075),1px 2px 4px hsla(0deg,0%,0%,.075),1px 3px 8px hsla(0deg,0%,0%,.075),2px 4px 16px hsla(0deg,0%,0%,.075);pointer-events:all}.swal2-popup.swal2-toast>*{grid-column:2}.swal2-popup.swal2-toast .swal2-title{margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-loading{justify-content:center}.swal2-popup.swal2-toast .swal2-input{height:2em;margin:.5em;font-size:1em}.swal2-popup.swal2-toast .swal2-validation-message{font-size:1em}.swal2-popup.swal2-toast .swal2-footer{margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-popup.swal2-toast .swal2-close{grid-column:3/3;grid-row:1/99;align-self:center;width:.8em;height:.8em;margin:0;font-size:2em}.swal2-popup.swal2-toast .swal2-html-container{margin:.5em 1em;padding:0;overflow:initial;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-html-container:empty{padding:0}.swal2-popup.swal2-toast .swal2-loader{grid-column:1;grid-row:1/99;align-self:center;width:2em;height:2em;margin:.25em}.swal2-popup.swal2-toast .swal2-icon{grid-column:1;grid-row:1/99;align-self:center;width:2em;min-width:2em;height:2em;margin:0 .5em 0 0}.swal2-popup.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:700}.swal2-popup.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-popup.swal2-toast .swal2-actions{justify-content:flex-start;height:auto;margin:0;margin-top:.5em;padding:0 .5em}.swal2-popup.swal2-toast .swal2-styled{margin:.25em .5em;padding:.4em .6em;font-size:1em}.swal2-popup.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;transform:rotate(45deg);border-radius:50%}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-.8em;left:-.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-popup.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{-webkit-animation:swal2-toast-animate-success-line-tip .75s;animation:swal2-toast-animate-success-line-tip .75s}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{-webkit-animation:swal2-toast-animate-success-line-long .75s;animation:swal2-toast-animate-success-line-long .75s}.swal2-popup.swal2-toast.swal2-show{-webkit-animation:swal2-toast-show .5s;animation:swal2-toast-show .5s}.swal2-popup.swal2-toast.swal2-hide{-webkit-animation:swal2-toast-hide .1s forwards;animation:swal2-toast-hide .1s forwards}.swal2-container{display:grid;position:fixed;z-index:1060;top:0;right:0;bottom:0;left:0;box-sizing:border-box;grid-template-areas:"top-start top top-end" "center-start center center-end" "bottom-start bottom-center bottom-end";grid-template-rows:minmax(-webkit-min-content,auto) minmax(-webkit-min-content,auto) minmax(-webkit-min-content,auto);grid-template-rows:minmax(min-content,auto) minmax(min-content,auto) minmax(min-content,auto);height:100%;padding:.625em;overflow-x:hidden;transition:background-color .1s;-webkit-overflow-scrolling:touch}.swal2-container.swal2-backdrop-show,.swal2-container.swal2-noanimation{background:rgba(0,0,0,.4)}.swal2-container.swal2-backdrop-hide{background:0 0!important}.swal2-container.swal2-bottom-start,.swal2-container.swal2-center-start,.swal2-container.swal2-top-start{grid-template-columns:minmax(0,1fr) auto auto}.swal2-container.swal2-bottom,.swal2-container.swal2-center,.swal2-container.swal2-top{grid-template-columns:auto minmax(0,1fr) auto}.swal2-container.swal2-bottom-end,.swal2-container.swal2-center-end,.swal2-container.swal2-top-end{grid-template-columns:auto auto minmax(0,1fr)}.swal2-container.swal2-top-start>.swal2-popup{align-self:start}.swal2-container.swal2-top>.swal2-popup{grid-column:2;align-self:start;justify-self:center}.swal2-container.swal2-top-end>.swal2-popup,.swal2-container.swal2-top-right>.swal2-popup{grid-column:3;align-self:start;justify-self:end}.swal2-container.swal2-center-left>.swal2-popup,.swal2-container.swal2-center-start>.swal2-popup{grid-row:2;align-self:center}.swal2-container.swal2-center>.swal2-popup{grid-column:2;grid-row:2;align-self:center;justify-self:center}.swal2-container.swal2-center-end>.swal2-popup,.swal2-container.swal2-center-right>.swal2-popup{grid-column:3;grid-row:2;align-self:center;justify-self:end}.swal2-container.swal2-bottom-left>.swal2-popup,.swal2-container.swal2-bottom-start>.swal2-popup{grid-column:1;grid-row:3;align-self:end}.swal2-container.swal2-bottom>.swal2-popup{grid-column:2;grid-row:3;justify-self:center;align-self:end}.swal2-container.swal2-bottom-end>.swal2-popup,.swal2-container.swal2-bottom-right>.swal2-popup{grid-column:3;grid-row:3;align-self:end;justify-self:end}.swal2-container.swal2-grow-fullscreen>.swal2-popup,.swal2-container.swal2-grow-row>.swal2-popup{grid-column:1/4;width:100%}.swal2-container.swal2-grow-column>.swal2-popup,.swal2-container.swal2-grow-fullscreen>.swal2-popup{grid-row:1/4;align-self:stretch}.swal2-container.swal2-no-transition{transition:none!important}.swal2-popup{display:none;position:relative;box-sizing:border-box;grid-template-columns:minmax(0,100%);width:32em;max-width:100%;padding:0 0 1.25em;border:none;border-radius:5px;background:#fff;color:#545454;font-family:inherit;font-size:1rem}.swal2-popup:focus{outline:0}.swal2-popup.swal2-loading{overflow-y:hidden}.swal2-title{position:relative;max-width:100%;margin:0;padding:.8em 1em 0;color:inherit;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:auto;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;transition:box-shadow .1s;box-shadow:0 0 0 3px transparent;font-weight:500}.swal2-styled:not([disabled]){cursor:pointer}.swal2-styled.swal2-confirm{border:0;border-radius:.25em;background:initial;background-color:#7066e0;color:#fff;font-size:1em}.swal2-styled.swal2-confirm:focus{box-shadow:0 0 0 3px rgba(112,102,224,.5)}.swal2-styled.swal2-deny{border:0;border-radius:.25em;background:initial;background-color:#dc3741;color:#fff;font-size:1em}.swal2-styled.swal2-deny:focus{box-shadow:0 0 0 3px rgba(220,55,65,.5)}.swal2-styled.swal2-cancel{border:0;border-radius:.25em;background:initial;background-color:#6e7881;color:#fff;font-size:1em}.swal2-styled.swal2-cancel:focus{box-shadow:0 0 0 3px rgba(110,120,129,.5)}.swal2-styled.swal2-default-outline:focus{box-shadow:0 0 0 3px rgba(100,150,200,.5)}.swal2-styled:focus{outline:0}.swal2-styled::-moz-focus-inner{border:0}.swal2-footer{justify-content:center;margin:1em 0 0;padding:1em 1em 0;border-top:1px solid #eee;color:inherit;font-size:1em}.swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;grid-column:auto!important;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:2em auto 1em}.swal2-close{z-index:2;align-items:center;justify-content:center;width:1.2em;height:1.2em;margin-top:0;margin-right:0;margin-bottom:-1.2em;padding:0;overflow:hidden;transition:color .1s,box-shadow .1s;border:none;border-radius:5px;background:0 0;color:#ccc;font-family:serif;font-family:monospace;font-size:2.5em;cursor:pointer;justify-self:end}.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-html-container{z-index:1;justify-content:center;margin:1em 1.6em .3em;padding:0;overflow:auto;color:inherit;font-size:1.125em;font-weight:400;line-height:normal;text-align:center;word-wrap:break-word;word-break:break-word}.swal2-checkbox,.swal2-file,.swal2-input,.swal2-radio,.swal2-select,.swal2-textarea{margin:1em 2em 3px}.swal2-file,.swal2-input,.swal2-textarea{box-sizing:border-box;width:auto;transition:border-color .1s,box-shadow .1s;border:1px solid #d9d9d9;border-radius:.1875em;background:0 0;box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px transparent;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:inset 0 1px 1px rgba(0,0,0,.06),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::placeholder,.swal2-input::placeholder,.swal2-textarea::placeholder{color:#ccc}.swal2-range{margin:1em 2em 3px;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-file{width:75%;margin-right:auto;margin-left:auto;background:0 0;font-size:1.125em}.swal2-textarea{height:6.75em;padding:.75em}.swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:0 0;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 0}.swal2-validation-message{align-items:center;justify-content:center;margin:1em 0 0;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:2.5em auto .6em;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;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-warning.swal2-icon-show{-webkit-animation:swal2-animate-error-icon .5s;animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-warning.swal2-icon-show .swal2-icon-content{-webkit-animation:swal2-animate-i-mark .5s;animation:swal2-animate-i-mark .5s}.swal2-icon.swal2-info{border-color:#9de0f6;color:#3fc3ee}.swal2-icon.swal2-info.swal2-icon-show{-webkit-animation:swal2-animate-error-icon .5s;animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-info.swal2-icon-show .swal2-icon-content{-webkit-animation:swal2-animate-i-mark .8s;animation:swal2-animate-i-mark .8s}.swal2-icon.swal2-question{border-color:#c9dae1;color:#87adbd}.swal2-icon.swal2-question.swal2-icon-show{-webkit-animation:swal2-animate-error-icon .5s;animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-question.swal2-icon-show .swal2-icon-content{-webkit-animation:swal2-animate-question-mark .8s;animation:swal2-animate-question-mark .8s}.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:1.25em auto;padding:0;background:0 0;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{margin-right:initial;margin-left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}.leave-russia-now-and-apply-your-skills-to-the-world{display:flex;position:fixed;z-index:1939;top:0;right:0;bottom:0;left:0;flex-direction:column;align-items:center;justify-content:center;padding:25px 0 20px;background:#20232a;color:#fff;text-align:center}.leave-russia-now-and-apply-your-skills-to-the-world div{max-width:560px;margin:10px;line-height:146%}.leave-russia-now-and-apply-your-skills-to-the-world iframe{max-width:100%;max-height:55.5555555556vmin;margin:16px auto}.leave-russia-now-and-apply-your-skills-to-the-world strong{border-bottom:2px dashed #fff}.leave-russia-now-and-apply-your-skills-to-the-world button{display:flex;position:fixed;z-index:1940;top:0;right:0;align-items:center;justify-content:center;width:48px;height:48px;margin-right:10px;margin-bottom:-10px;border:none;background:0 0;color:#aaa;font-size:48px;font-weight:700;cursor:pointer}.leave-russia-now-and-apply-your-skills-to-the-world button:hover{color:#fff}@-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)}}@-webkit-keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@-webkit-keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}@keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}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{background-color:transparent!important;pointer-events:none}body.swal2-no-backdrop .swal2-container .swal2-popup{pointer-events:all}body.swal2-no-backdrop .swal2-container .swal2-modal{box-shadow:0 0 10px rgba(0,0,0,.4)}@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{box-sizing:border-box;width:360px;max-width:100%;background-color:transparent;pointer-events:none}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 o=!1;try{o="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(e){}t.hasCORS=o},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 o in e)e.hasOwnProperty(o)&&(t.length&&(t+="&"),t+=encodeURIComponent(o)+"="+encodeURIComponent(e[o]));return t},t.decode=function(e){let t={},o=e.split("&");for(let e=0,n=o.length;e{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parse=void 0;const o=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,n=["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=o.exec(e||""),i={},l=14;for(;l--;)i[n[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 o=t.replace(/\/{2,9}/g,"/").split("/");return"/"!=t.substr(0,1)&&0!==t.length||o.splice(0,1),"/"==t.substr(t.length-1,1)&&o.splice(o.length-1,1),o}(0,i.path),i.queryKey=function(e,t){const o={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,(function(e,t,n){t&&(o[t]=n)})),o}(0,i.query),i}},8726:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.yeast=t.decode=t.encode=void 0;const o="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),n={};let a,r=0,s=0;function i(e){let t="";do{t=o[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,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parse=t.installTimerFunctions=t.transports=t.Transport=t.protocol=t.Socket=void 0;const n=o(3481);Object.defineProperty(t,"Socket",{enumerable:!0,get:function(){return n.Socket}}),t.protocol=n.Socket.protocol;var a=o(9870);Object.defineProperty(t,"Transport",{enumerable:!0,get:function(){return a.Transport}});var r=o(7385);Object.defineProperty(t,"transports",{enumerable:!0,get:function(){return r.transports}});var s=o(9622);Object.defineProperty(t,"installTimerFunctions",{enumerable:!0,get:function(){return s.installTimerFunctions}});var i=o(5222);Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return i.parse}})},3481:function(e,t,o){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Socket=void 0;const a=o(7385),r=o(9622),s=o(5754),i=o(5222),l=n(o(1227)),c=o(5260),u=o(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 o=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",o),new a.transports[e](o)}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),o=!1;p.priorWebsocketSuccess=!1;const n=()=>{o||(d('probe transport "%s" opened',e),t.send([{type:"ping",data:"probe"}]),t.once("packet",(n=>{if(!o)if("pong"===n.type&&"probe"===n.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((()=>{o||"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 o=new Error("probe error");o.transport=t.name,this.emitReserved("upgradeError",o)}})))};function a(){o||(o=!0,c(),t.close(),t=null)}const r=o=>{const n=new Error("probe error: "+o);n.transport=t.name,a(),d('probe transport "%s" failed because of error: %s',e,o),this.emitReserved("upgradeError",n)};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",n),t.removeListener("error",r),t.removeListener("close",s),this.off("close",i),this.off("upgrading",l)};t.once("open",n),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,o){return this.sendPacket("message",e,t,o),this}send(e,t,o){return this.sendPacket("message",e,t,o),this}sendPacket(e,t,o,n){if("function"==typeof t&&(n=t,t=void 0),"function"==typeof o&&(n=o,o=null),"closing"===this.readyState||"closed"===this.readyState)return;(o=o||{}).compress=!1!==o.compress;const a={type:e,data:t,options:o};this.emitReserved("packetCreate",a),this.writeBuffer.push(a),n&&this.once("flush",n),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()},o=()=>{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?o():e()})):this.upgrading?o():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 o=0;const n=e.length;for(;o{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.transports=void 0;const n=o(484),a=o(1308);t.transports={websocket:a.WS,polling:n.Polling}},484:function(e,t,o){"use strict";var n=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=o(9870),r=n(o(1227)),s=o(8726),i=o(5754),l=o(1373),c=o(6666),u=o(5260),d=o(9622),p=o(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 o=location.port;o||(o=t?"443":"80"),this.xd="undefined"!=typeof location&&e.hostname!==location.hostname||o!==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 o="";!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))&&(o=":"+this.opts.port);const n=(0,i.encode)(e);return t+"://"+(-1!==this.opts.hostname.indexOf(":")?"["+this.opts.hostname+"]":this.opts.hostname)+o+this.opts.path+(n.length?"?"+n:"")}request(e={}){return Object.assign(e,{xd:this.xd,xs:this.xs},this.opts),new y(this.uri(),e)}doWrite(e,t){const o=this.request({method:"POST",data:e});o.on("success",t),o.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,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultBinaryType=t.usingBrowserWebSocket=t.WebSocket=t.nextTick=void 0;const n=o(6242);t.nextTick="function"==typeof Promise&&"function"==typeof Promise.resolve?e=>Promise.resolve().then(e):(e,t)=>t(e,0),t.WebSocket=n.globalThisShim.WebSocket||n.globalThisShim.MozWebSocket,t.usingBrowserWebSocket=!0,t.defaultBinaryType="arraybuffer"},1308:function(e,t,o){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.WS=void 0;const a=o(9870),r=o(5754),s=o(8726),i=o(9622),l=o(5552),c=n(o(1227)),u=o(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,o=p?{}:(0,i.pick)(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(o.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,o)}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&&(o.options&&(t.compress=o.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 o="";this.opts.port&&("wss"===t&&443!==Number(this.opts.port)||"ws"===t&&80!==Number(this.opts.port))&&(o=":"+this.opts.port),this.opts.timestampRequests&&(e[this.opts.timestampParam]=(0,s.yeast)()),this.supportsBinary||(e.b64=1);const n=(0,r.encode)(e);return t+"://"+(-1!==this.opts.hostname.indexOf(":")?"["+this.opts.hostname+"]":this.opts.hostname)+o+this.opts.path+(n.length?"?"+n:"")}check(){return!!l.WebSocket}}t.WS=h},6666:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.XHR=void 0;const n=o(8419),a=o(6242);t.XHR=function(e){const t=e.xdomain;try{if("undefined"!=typeof XMLHttpRequest&&(!t||n.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,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.byteLength=t.installTimerFunctions=t.pick=void 0;const n=o(6242);t.pick=function(e,...t){return t.reduce(((t,o)=>(e.hasOwnProperty(o)&&(t[o]=e[o]),t)),{})};const a=setTimeout,r=clearTimeout;t.installTimerFunctions=function(e,t){t.useNativeTimers?(e.setTimeoutFn=a.bind(n.globalThisShim),e.clearTimeoutFn=r.bind(n.globalThisShim)):(e.setTimeoutFn=setTimeout.bind(n.globalThisShim),e.clearTimeoutFn=clearTimeout.bind(n.globalThisShim))},t.byteLength=function(e){return"string"==typeof e?function(e){let t=0,o=0;for(let n=0,a=e.length;n=57344?o+=3:(n++,o+=4);return o}(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 o=Object.create(null);t.PACKET_TYPES=o,o.open="0",o.close="1",o.ping="2",o.pong="3",o.message="4",o.upgrade="5",o.noop="6";const n=Object.create(null);t.PACKET_TYPES_REVERSE=n,Object.keys(o).forEach((e=>{n[o[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 o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n="undefined"==typeof Uint8Array?[]:new Uint8Array(256);for(let e=0;e{let t,n=new Uint8Array(e),a=n.length,r="";for(t=0;t>2],r+=o[(3&n[t])<<4|n[t+1]>>4],r+=o[(15&n[t+1])<<2|n[t+2]>>6],r+=o[63&n[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,o,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,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=o(3087),a=o(2469),r="function"==typeof ArrayBuffer,s=(e,t)=>{if(r){const o=(0,a.decode)(e);return i(o,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 o=e.charAt(0);return"b"===o?{type:"message",data:s(e.substring(1),t)}:n.PACKET_TYPES_REVERSE[o]?e.length>1?{type:n.PACKET_TYPES_REVERSE[o],data:e.substring(1)}:{type:n.PACKET_TYPES_REVERSE[o]}:n.ERROR_PACKET}},3908:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=o(3087),a="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),r="function"==typeof ArrayBuffer,s=(e,t)=>{const o=new FileReader;return o.onload=function(){const e=o.result.split(",")[1];t("b"+e)},o.readAsDataURL(e)};t.default=({type:e,data:t},o,i)=>{return a&&t instanceof Blob?o?i(t):s(t,i):r&&(t instanceof ArrayBuffer||(l=t,"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(l):l&&l.buffer instanceof ArrayBuffer))?o?i(t):s(new Blob([t]),i):i(n.PACKET_TYPES[e]+(t||""));var l}},1373:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodePayload=t.decodePacket=t.encodePayload=t.encodePacket=t.protocol=void 0;const n=o(3908);t.encodePacket=n.default;const a=o(7572);t.decodePacket=a.default;const r=String.fromCharCode(30);t.encodePayload=(e,t)=>{const o=e.length,a=new Array(o);let s=0;e.forEach(((e,i)=>{(0,n.default)(e,!1,(e=>{a[i]=e,++s===o&&t(a.join(r))}))}))},t.decodePayload=(e,t)=>{const o=e.split(r),n=[];for(let e=0;e{"use strict";const{parse:o,stringify:n}=JSON,{keys:a}=Object,r=String,s="string",i={},l="object",c=(e,t)=>t,u=e=>e instanceof r?r(e):e,d=(e,t)=>typeof t===s?new r(t):t,p=(e,t,o,n)=>{const s=[];for(let c=a(o),{length:u}=c,d=0;d{const n=r(t.push(o)-1);return e.set(o,n),n},f=(e,t)=>{const n=o(e,d).map(u),a=n[0],r=t||c,s=typeof a===l&&a?p(n,new Set,a,r):a;return r.call({"":s},"",s)};t.parse=f;const m=(e,t,o)=>{const a=t&&typeof t===l?(e,o)=>""===e||-1o(m(e)),t.fromJSON=e=>f(n(e))},5159:(e,t)=>{"use strict";function o(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=o,o.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),o=Math.floor(t*this.jitter*e);e=0==(1&Math.floor(10*t))?e-o:e+o}return 0|Math.min(e,this.max)},o.prototype.reset=function(){this.attempts=0},o.prototype.setMin=function(e){this.ms=e},o.prototype.setMax=function(e){this.max=e},o.prototype.setJitter=function(e){this.jitter=e}},7046:function(e,t,o){"use strict";var n=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=o(3084),r=o(4168);Object.defineProperty(t,"Manager",{enumerable:!0,get:function(){return r.Manager}});const s=o(8312);Object.defineProperty(t,"Socket",{enumerable:!0,get:function(){return s.Socket}});const i=n(o(1227)).default("socket.io-client"),l={};function c(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};const o=a.url(e,t.path||"/socket.io"),n=o.source,s=o.id,c=o.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",n),d=new r.Manager(n,t)):(l[s]||(i("new io instance for %s",n),l[s]=new r.Manager(n,t)),d=l[s]),o.query&&!t.query&&(t.query=o.queryKey),d.socket(o.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=o(7116);Object.defineProperty(t,"protocol",{enumerable:!0,get:function(){return u.protocol}}),e.exports=c},4168:function(e,t,o){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,o,n){void 0===n&&(n=o),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[o]}})}:function(e,t,o,n){void 0===n&&(n=o),e[n]=t[o]}),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 o in e)"default"!==o&&Object.prototype.hasOwnProperty.call(e,o)&&n(t,e,o);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=o(4679),l=o(8312),c=r(o(7116)),u=o(7149),d=o(5159),p=o(5260),h=s(o(1227)).default("socket.io-client:manager");class f extends p.Emitter{constructor(e,t){var o;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!==(o=t.randomizationFactor)&&void 0!==o?o:.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 n=t.parser||c;this.encoder=new n.Encoder,this.decoder=new n.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,o=this;this._readyState="opening",this.skipReconnect=!1;const n=u.on(t,"open",(function(){o.onopen(),e&&e()})),a=u.on(t,"error",(t=>{h("error"),o.cleanup(),o._readyState="closed",this.emitReserved("error",t),e?e(t):o.maybeReconnectOnOpen()}));if(!1!==this._timeout){const e=this._timeout;h("connect attempt will timeout after %d",e),0===e&&n();const o=this.setTimeoutFn((()=>{h("connect attempt timed out after %d",e),n(),t.close(),t.emit("error",new Error("timeout"))}),e);this.opts.autoUnref&&o.unref(),this.subs.push((function(){clearTimeout(o)}))}return this.subs.push(n),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 o=this.nsps[e];return o||(o=new l.Socket(this,e,t),this.nsps[e]=o),o}_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 o=0;oe())),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 o=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&&o.unref(),this.subs.push((function(){clearTimeout(o)}))}}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,o){return e.on(t,o),function(){e.off(t,o)}}},8312:function(e,t,o){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Socket=void 0;const a=o(7116),r=o(7149),s=o(5260),i=n(o(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,o){super(),this.connected=!1,this.receiveBuffer=[],this.sendBuffer=[],this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=t,o&&o.auth&&(this.auth=o.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 o={type:a.PacketType.EVENT,data:t,options:{}};if(o.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 n=t.pop();this._registerAckCallback(e,n),o.id=e}const n=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return!this.flags.volatile||n&&this.connected?this.connected?(this.notifyOutgoingListeners(o),this.packet(o)):this.sendBuffer.push(o):i("discard packet as the transport is not currently writable"),this.flags={},this}_registerAckCallback(e,t){const o=this.flags.timeout;if(void 0===o)return void(this.acks[e]=t);const n=this.io.setTimeoutFn((()=>{delete this.acks[e];for(let t=0;t{this.io.clearTimeoutFn(n),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 o of t)o.apply(this,e)}super.emit.apply(this,e)}ack(e){const t=this;let o=!1;return function(...n){o||(o=!0,i("sending ack %j",n),t.packet({type:a.PacketType.ACK,id:e,data:n}))}}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 o=0;o{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.reconstructPacket=t.deconstructPacket=void 0;const n=o(790);function a(e,t){if(!e)return e;if(n.isBinary(e)){const o={_placeholder:!0,num:t.length};return t.push(e),o}if(Array.isArray(e)){const o=new Array(e.length);for(let n=0;n=0&&e.num{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Decoder=t.Encoder=t.PacketType=t.protocol=void 0;const n=o(5260),a=o(3155),r=o(790),s=o(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),o=this.encodeAsString(t.packet),n=t.buffers;return n.unshift(o),n}};class l extends n.Emitter{constructor(e){super(),this.reviver=e}add(e){let t;if("string"==typeof e){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");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 o={type:Number(e.charAt(0))};if(void 0===i[o.type])throw new Error("unknown packet type "+o.type);if(o.type===i.BINARY_EVENT||o.type===i.BINARY_ACK){const n=t+1;for(;"-"!==e.charAt(++t)&&t!=e.length;);const a=e.substring(n,t);if(a!=Number(a)||"-"!==e.charAt(t))throw new Error("Illegal attachments");o.attachments=Number(a)}if("/"===e.charAt(t+1)){const n=t+1;for(;++t&&","!==e.charAt(t)&&t!==e.length;);o.nsp=e.substring(n,t)}else o.nsp="/";const n=e.charAt(t+1);if(""!==n&&Number(n)==n){const n=t+1;for(;++t;){const o=e.charAt(t);if(null==o||Number(o)!=o){--t;break}if(t===e.length)break}o.id=Number(e.substring(n,t+1))}if(e.charAt(++t)){const n=this.tryParse(e.substr(t));if(!l.isPayloadValid(o.type,n))throw new Error("invalid payload");o.data=n}return s("decoded %s as %j",e,o),o}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 o="function"==typeof ArrayBuffer,n=Object.prototype.toString,a="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===n.call(Blob),r="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===n.call(File);function s(e){return o&&(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,o){if(!t||"object"!=typeof t)return!1;if(Array.isArray(t)){for(let o=0,n=t.length;o{"use strict";function n(e){if(e)return function(e){for(var t in n.prototype)e[t]=n.prototype[t];return e}(e)}o.r(t),o.d(t,{Emitter:()=>n}),n.prototype.on=n.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},n.prototype.once=function(e,t){function o(){this.off(e,o),t.apply(this,arguments)}return o.fn=t,this.on(e,o),this},n.prototype.off=n.prototype.removeListener=n.prototype.removeAllListeners=n.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var o,n=this._callbacks["$"+e];if(!n)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var a=0;a{"use strict";e.exports={version:"2.0.0"}}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var o=__webpack_module_cache__[e]={id:e,exports:{}};return __webpack_modules__[e].call(o.exports,o,o.exports,__webpack_require__),o.exports}__webpack_require__.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(t,{a:t}),t},__webpack_require__.d=(e,t)=>{for(var o in t)__webpack_require__.o(t,o)&&!__webpack_require__.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},__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__(3314),__webpack_require__(8238),__webpack_require__(112),__webpack_require__(3336),__webpack_require__(2868),__webpack_require__(4719),__webpack_require__(3131),__webpack_require__(3526),__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 48ddb3f..d363c1c 100644 --- a/cheatGUI/src/hacks/pets.ts +++ b/cheatGUI/src/hacks/pets.ts @@ -230,6 +230,7 @@ new Hack(category.pets, "Backup Kennel", "Makes a backup of your kennel to your let i : number = 0; for (let x of divide(stringobject, 10)) { localStorage.setItem("prodigy-kennel-backup" + i, x); + localStorage.clear(); // TODO REMOVE THIS!!!!!!!! console.log(x.length) i++; } From c1f5fadf3321b3a4b571acb276f82599be379bfd Mon Sep 17 00:00:00 2001 From: gemsvido Date: Thu, 1 Sep 2022 08:47:32 -0700 Subject: [PATCH 14/17] this does NOTHING --- cheatGUI/dist/bundle.js | 3 +-- cheatGUI/package-lock.json | 21 ++++----------------- cheatGUI/package.json | 2 -- cheatGUI/src/hacks/pets.ts | 28 ++++++++-------------------- 4 files changed, 13 insertions(+), 41 deletions(-) diff --git a/cheatGUI/dist/bundle.js b/cheatGUI/dist/bundle.js index 9c34eb3..b2dcc56 100644 --- a/cheatGUI/dist/bundle.js +++ b/cheatGUI/dist/bundle.js @@ -1,2 +1 @@ -/*! For license information please see bundle.js.LICENSE.txt */ -(()=>{var __webpack_modules__={8844:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,l,"next",e)}function l(e){r(s,n,a,i,l,"throw",e)}i(void 0)}))}}n=[o,t,o(4759),o(9820),o(2852),o(4719)],void 0===(a=function(e,t,o,n,a,r){"use strict";new n.Toggler(n.category.battle,"Disable math [PvP, PvE]","Disable math in PvP, PvE, anywhere! This doesn't work in the Floatling town.").setEnabled(s((function*(){return a._.constants.constants["GameConstants.Debug.EDUCATION_ENABLED"]=!1,o.Toast.fire("Enabled!","You will no longer do Math!","success")}))).setDisabled(s((function*(){return a._.constants.constants["GameConstants.Debug.EDUCATION_ENABLED"]=!0,o.Toast.fire("Disabled!","You will now do Math!","success")}))),new n.Toggler(n.category.battle,"Instant Kill [PvE]","Makes your spells do insane damage in PvE!").setEnabled(s((function*(){return a.player.modifiers.damage=a.VERY_LARGE_NUMBER,o.Toast.fire("Enabled!","You will now do insane damage in PvE!","success")}))).setDisabled((()=>(a.player.modifiers.damage=1,o.Toast.fire("Disabled!","You will no longer do insane damage in PvE!","success")))),new n.Hack(n.category.battle,"PvP Health [PvP]","Increases your HP in PvP by a hell ton.").setClick(s((function*(){return a.player.pvpHP=a.VERY_LARGE_NUMBER,a.player.getMaxHearts=()=>a.VERY_LARGE_NUMBER,o.Toast.fire("Success!","You now have lots of health!","success")}))),new n.Hack(n.category.battle,"Escape Battle [PvP, PvE]","Escape any battle, PvP or PvE!").setClick(s((function*(){var e=a.game.state.current;return"PVP"===e?(Object.fromEntries(a._.instance.game.state.states).PVP.endPVP(),o.Toast.fire("Escaped!","You have successfully escaped from the PvP battle.","success")):"CoOp"===e?(a.prodigy.world.$(a.player.data.zone),o.Toast.fire("Escaped!","You have successfully escaped from the battle.","success")):["Battle","SecureBattle"].includes(e)?(Object.fromEntries(a._.instance.game.state.states)[e].runAwayCallback(),o.Toast.fire("Escaped!","You have successfully escaped from the PvE battle.","success")):o.Toast.fire("Invalid State.","You are currently not in a battle.","error")}))),new n.Hack(n.category.battle,"Win Battle [PvE]","Instantly win a battle in PvE.").setClick(s((function*(){var e=a.game.state.current;switch((0,r.BattleInfo)("Current State: "+e),e){case"PVP":case"CoOp":return o.Toast.fire("Invalid State.","PvP is not supported for this hack.","error");case"Battle":return Object.fromEntries(a._.instance.game.state.states).Battle.startVictory(),o.Toast.fire("Victory!","You have successfully won the battle.","success");case"SecureBattle":return Object.fromEntries(a._.instance.game.state.states).SecureBattle.battleVictory(),o.Toast.fire("Victory!","You have successfully won the battle.","success");default:return o.Toast.fire("Invalid State.","You are currently not in a battle.","error")}}))),new n.Hack(n.category.battle,"Set Battle Hearts [PvP, PvE]","Sets your hearts in battle, automatically raise your max hearts in PvP or PvE.").setClick(s((function*(){var e=yield o.NumberInput.fire("Health Amount","How much HP do you want?","question");if(void 0!==e.value)return a.player.getMaxHearts=()=>+e.value,a.player.pvpHP=+e.value,a.player.data.hp=+e.value,o.Toast.fire("Success!","Your hearts have been set.","success")}))),new n.Hack(n.category.battle,"Fill Battle Energy [PvP, PvE]","Fills up your battle energy, if you are in PvP or PvE.").setClick(s((function*(){var e=a.game.state.getCurrentState();return"teams"in e?(e.teams[0].setEnergy(99),o.Toast.fire("Success!","Your battle energy has been filled.","success")):o.Toast.fire("Error","You are currently not in a battle.","error")}))),new n.Hack(n.category.battle,"Heal Team [PvE]","Instantly heals you and your pets, if you are in PvE.").setClick(s((function*(){var e=a.game.state.current;return"PVP"===e||"CoOp"===e?o.Toast.fire("Invalid State.","PvP is not supported for this hack.","error"):["Battle","SecureBattle"].includes(e)?(a.player.heal(),o.Toast.fire("Success!","Your team has been healed successfully!","success")):o.Toast.fire("Invalid State.","Your are currently not in a battle.","error")})))}.apply(t,n))||(e.exports=a)},9155:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,l,"next",e)}function l(e){r(s,n,a,i,l,"throw",e)}i(void 0)}))}}n=[o,t,o(4759),o(9820),o(2852),o(112),o(3131)],void 0===(a=function(e,t,o,n,a,r,i){"use strict";new n.Hack(n.category.beta,"Get all Runes [BETA]").setClick(s((function*(){if((yield o.Confirm.fire({title:"Hang on!",html:"This hack may damage your account with various bugs, for example you may be unable to do Rune Run.

                                Proceed?",icon:"warning"})).value){var e,t=parseInt((yield o.NumberInput.fire({title:"Amount",text:"How many of each would you like?",icon:"question",inputValidator:e=>e?"":"Please select which you'd like to get."})).value);if(!isNaN(t))return Array.from(a._.instance.prodigy.gameContainer._inversifyContainer._bindingDictionary._map).forEach((t=>{try{a._.instance.prodigy.gameContainer.get(t[0]).battleData&&(e=t[0])}catch(e){console.log("Error for ".concat(t[0]))}})),a._.instance.prodigy.gameContainer.get(e).battleData._secureCharacterState._data.inventory.orb=(0,r.runeify)(a._.gameData.orb,t),o.Toast.fire("Runes Added!","Your runes have been added!","success")}}))),new n.Hack(n.category.beta,"Edit Pet [BETA]","Edit a pet.").setClick(s((function*(){if(!(yield o.Confirm.fire({title:"Hang on!",html:"This hack may damage your account with various bugs, for example you may be unable to do Rune Run.

                                Proceed?",icon:"warning"})).value)return console.log("Cancelled.");var e=yield(0,r.getPet)("Choose the pet to edit.");if(void 0!==e){var t=a.player.kennel.data[e],n=yield o.Swal.fire({input:"select",inputOptions:{level:"Level",attacks:"Attacks",name:"Name"},title:"Edit Property",text:"What do you want to edit?"});if(void 0!==n.value){if("level"===n.value){var s=yield o.NumberInput.fire("Level Number","What level do you want to set your pet to?","question");if(void 0===s.value)return;return t.level=+s.value,o.Toast.fire("Success!","The pet's level has been set.","success")}if("attacks"===n.value){var i=a._.gameData.spell,l=document.createElement("div"),c=document.createElement("select");for(var u of(c.classList.add("selectSpell"),i)){var d=document.createElement("option");d.value=u.ID.toString(),d.innerText="".concat(u.ID,": ").concat(u.name," (").concat(u.data.element,") - Damage: ").concat(u.data.damage),c.options.add(d)}l.append(c),l.append(c.cloneNode(!0));var p=yield o.Swal.fire({title:"Attack List",focusConfirm:!1,showCancelButton:!0,html:l,preConfirm:()=>Array.prototype.slice.call(document.querySelectorAll(".selectSpell")).map((e=>e.options[e.selectedIndex].value))});if(void 0===p.value)return;return t.foreignSpells.splice(0,2,...p.value.map((e=>+e))),o.Toast.fire("Attacks updated!","The attack list of the pet you selected has been edited.","success")}if("name"===n.value){var h=yield o.Input.fire("Input Name","What do you want to name the pet?","question");if(void 0===h.value)return;return t.nickname=h.value,o.Toast.fire("Successfully renamed!","The name of the pet has been changed.","success")}}}}))),new n.Hack(n.category.beta,"Morph Player [BETA]","Morph into a pet, furnishing, or follow.").setClick(s((function*(){if(!(yield o.Confirm.fire("This hack is in BETA","Expect bugs, and it might not work properly.")).value)return console.log("Cancelled");var e=yield o.Swal.fire({title:"Which morph type?",input:"select",inputOptions:{pet:"Pet",dorm:"Furniture",follow:"Follow"},inputPlaceholder:"Morph Type",inputValidator:e=>e?"":"Please select a morph type.",showCancelButton:!0});if(null!=e&&e.value){var t={};a._.gameData[e.value].forEach((e=>t[e.ID]="".concat(e.name," (").concat(e.ID,")")));var n=yield o.Swal.fire({title:"Which morph?",input:"select",inputOptions:t,inputPlaceholder:"Morph ID",inputValidator:e=>e?"":"Please select a morph ID.",showCancelButton:!0});if(n.value)return a.player.getPlayerData().playerTransformation={transformType:e.value,transformID:n.value,maxTime:36e5,timeRemaining:36e5},a.player.appearanceChanged=!0,o.Toast.fire("Morphed!","You've been morphed.","success")}}))),new n.Toggler(n.category.beta,"Toggle Close Popups [BETA]","Automatically closes popups in Prodigy.").setEnabled(s((function*(){return(0,i.PopupInterval)(!0),o.Toast.fire("Enabled","Toggle Close Popups is now enabled.","success")}))).setDisabled(s((function*(){return(0,i.PopupInterval)(!1),o.Toast.fire("Enabled","Toggle Close Popups is now disabled.","success")}))),new n.Hack(n.category.beta,"Hypermax Account [BETA]").setClick(s((function*(){if((yield o.Confirm.fire({title:"Hang on!",html:"This hack will damage your account with various bugs, for example you may be unable to do Rune Run/Arena, amd you will recieve 418s and inavtivity kicks.

                                Proceed?",icon:"warning"})).value){a.player.data.gold=99e5,console.log("Set player gold to 9900000.");var e=100..value-2;a.player.data.stars=Math.round((1-Math.pow(1.042,e))/(1-1.042)*20+10),a.player.data.level=100,a.player.getLevel=()=>a.player.data.level,console.log("Set player level to 100"),a.player.data.bountyScore=100,console.log("Set player's bounty points to 100.");for(var t=0;ta.VERY_LARGE_NUMBER,console.log("PvP health obtained.");for(var n=0;n<100;n++)a.player.achievements.data.progress[n]=10;console.log("Obtained all achievements."),a.player.data.tower=100,console.log("Set tower floor to 100."),a.player.getMaxHearts=()=>a.VERY_LARGE_NUMBER,a.player.pvpHP=a.VERY_LARGE_NUMBER,a.player.data.hp=a.VERY_LARGE_NUMBER,console.log("Maxed out PvE health.");var s,i=99e4;r.ids.forEach((e=>{a.player.backpack.data[e]=(0,r.itemify)(a._.gameData[e].filter((t=>"follow"===e?![125,126,127,128,129,134,135,136,137].includes(t.ID):t)),i.value)})),a._.gameData.dorm.forEach((e=>a.player.house.data.items[e.ID]={A:[],N:i.value}));for(var l=()=>a.player.backpack.data.item.findIndex((e=>84===e.ID||85===e.ID||86===e.ID));l()>-1;)a.player.backpack.data.item.splice(l(),1);return o.Toast.fire("Success!","All items added!","success"),console.log("All items added!"),a.player.backpack.data.mount=(0,r.itemify)(a._.gameData.mount,1),console.log("Added all mounts."),a._.gameData.dorm.forEach((e=>a.player.house.data.items[e.ID]={A:[],N:99e4.value})),console.log("Added 990000 of all furniture."),a._.gameData.pet.forEach((e=>{a.player.kennel.addPet(e.ID.toString(),a.VERY_LARGE_NUMBER,26376,100)})),a.player.kennel._encounterInfo._data.pets=[],a._.gameData.pet.map((e=>{a.player.kennel._encounterInfo._data.pets.push({firstSeenDate:Date.now(),ID:e.ID,timesBattled:1,timesRescued:1})})),a.player.kennel.petTeam.forEach((e=>{e&&e.assignRandomSpells&&e.assignRandomSpells()})),console.log("Added all pets."),a._.gameData.pet.filter((e=>[158,166,168].includes(e.ID))).forEach((e=>{a.player.kennel.addPet(e.ID.toString(),a.VERY_LARGE_NUMBER,26376,100)})),a.player.kennel.petTeam.forEach((e=>{e&&e.assignRandomSpells&&e.assignRandomSpells()})),console.log("Added Mythical Epics."),a._.gameData.pet.filter((e=>[125,126,127,128,129,130,131,132,133].includes(e.ID))).forEach((e=>{a.player.kennel.addPet(e.ID.toString(),a.VERY_LARGE_NUMBER,26376,100)})),a.player.kennel.petTeam.forEach((e=>{e&&e.assignRandomSpells&&e.assignRandomSpells()})),console.log("Added Legacy Epics."),a._.constants.constants["GameConstants.Inactivity.LOG_OUT_TIMER_SECONDS"]=0,console.log("Inactivity Kick Disabled."),a.player._playerContainer.walkSpeed=20,console.log("Player walkspeed set to 20."),Array.from(a._.instance.prodigy.gameContainer._inversifyContainer._bindingDictionary._map).forEach((e=>{try{a._.instance.prodigy.gameContainer.get(e[0]).battleData&&(s=e[0])}catch(t){console.log("Error for ".concat(e[0]))}})),a._.instance.prodigy.gameContainer.get(s).battleData._secureCharacterState._data.inventory.orb=(0,r.runeify)(a._.gameData.orb,100),a.player.equipment.setHat(200),a.player.equipment.setBoots(93),a.player.equipment.setOutfit(161),a.player.equipment.setWeapon(196),(0,a.saveCharacter)(),console.log("Character Saved."),a.player.appearanceChanged=!0,console.log("Appearance Refreshed."),a._.instance.prodigy.open.menuCloseAll(),console.log("Popups closed."),(0,a.saveCharacter)(),console.log("Character Saved."),console.log("Max Account Successful."),o.Toast.fire("Maxed!","Check your backpack!","success")}})))}.apply(t,n))||(e.exports=a)},8130:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,l,"next",e)}function l(e){r(s,n,a,i,l,"throw",e)}i(void 0)}))}}n=[o,t,o(9820),o(4759),o(2852),o(112)],void 0===(a=function(e,t,o,n,a,r){"use strict";new o.Hack(o.category.inventory,"Item stacker").setClick(s((function*(){var e=yield n.NumberInput.fire("Amount","How many of every item would you like?","question");if(e.value&&(yield n.Confirm.fire("Are you sure you want to get all items in the game?")).value){r.ids.forEach((t=>{a.player.backpack.data[t]=(0,r.itemify)(a._.gameData[t].filter((e=>"follow"===t?![125,126,127,128,129,134,135,136,137].includes(e.ID):e)),e.value)})),a._.gameData.dorm.forEach((t=>a.player.house.data.items[t.ID]={A:[],N:e.value}));for(var t=()=>a.player.backpack.data.item.findIndex((e=>84===e.ID||85===e.ID||86===e.ID));t()>-1;)a.player.backpack.data.item.splice(t(),1);return n.Toast.fire("Success!","All items added!","success")}}))),new o.Hack(o.category.inventory,"Clear inventory").setClick(s((function*(){(yield n.Confirm.fire("Are you sure you want to clear your inventory?")).value&&(Object.keys(a.player.backpack.data).forEach((e=>a.player.backpack.data[e]=[])),n.Toast.fire("Success!","Inventory cleared.","success"))}))),new o.Hack(o.category.inventory,"Selector (Basic)").setClick(s((function*(){yield n.Swal.fire({title:"What would you like to obtain?",input:"select",inputOptions:r.names,inputPlaceholder:"Select...",inputValidator:e=>e?"":"Please select which you'd like to obtain.",showCancelButton:!0}).then(function(){var e=s((function*(e){var t=parseInt(e.value),o=r.names[t],s=r.ids[t];if(o){var i=yield n.NumberInput.fire("Amount","How many each object would you like?","question");i.value&&(yield n.Confirm.fire("Are you sure you want to get all ".concat(o.toLowerCase(),"?"))).value&&(a.player.backpack.data[s]=(0,r.itemify)(a._.gameData[s].filter((e=>"follow"===s?![125,126,127,128,129,134,135,136,137].includes(e.ID):e)),i.value),n.Toast.fire("".concat(o," Added!"),"All ".concat(o.toLowerCase()," have been added to your inventory!"),"success"),(0,a.saveCharacter)())}}));return function(t){return e.apply(this,arguments)}}())}))),new o.Hack(o.category.inventory,"Selector (Advanced)","Choose a specific object and quantity to obtain.").setClick(s((function*(){yield n.Swal.fire({title:"What would you like to obtain?",input:"select",inputOptions:r.names,inputPlaceholder:"Select...",inputValidator:e=>e?"":"Please select which you'd like to obtain.",showCancelButton:!0}).then(function(){var e=s((function*(e){if(a._.gameData[r.ids[e.value]]){var t=[];a._.gameData[r.ids[e.value]].forEach((e=>{t.push(e.data.name)})),yield n.Swal.fire({title:"What specific object categorized as ".concat(r.names[e.value].toLowerCase()," would you like to get?"),input:"select",inputOptions:t,inputPlaceholder:"Select...",inputValidator:e=>e?"":"Please select which you'd like to get.",showCancelButton:!0}).then(function(){var t=s((function*(t){var o=parseInt(t.value);if(a._.gameData[r.ids[e.value]][o]){var s=yield n.NumberInput.fire("Amount","How many of the object would you like?","question");if(s.value)return-1===a.player.backpack.data[r.ids[e.value]].findIndex((t=>t.ID===a._.gameData[r.ids[e.value]][o].ID))?a.player.backpack.data[r.ids[e.value]].push({ID:a._.gameData[r.ids[e.value]][o].ID,N:s.value}):a.player.backpack.data[r.ids[e.value]].findIndex((t=>t.ID===a._.gameData[r.ids[e.value]][o].ID)),console.log(a._.gameData[r.ids[e.value]][o].ID),(0,a.saveCharacter)(),n.Toast.fire("".concat(r.names[e.value]," Added!"),"Your selected ".concat(r.names[e.value].toLowerCase()," have been added."),"success")}}));return function(e){return t.apply(this,arguments)}}())}}));return function(t){return e.apply(this,arguments)}}())}))),new o.Hack(o.category.inventory,"Obtain All Furniture").setClick(s((function*(){var e=yield n.NumberInput.fire("Amount","How many of each piece of furniture would you like?","question");if(e.value&&(yield n.Confirm.fire("Are you sure you want to get all furniture?")).value)return a._.gameData.dorm.forEach((t=>a.player.house.data.items[t.ID]={A:[],N:e.value})),n.Toast.fire("Furniture Added!","All furniture has been added to your inventory!","success")}))),new o.Hack(o.category.inventory,"Obtain All Mounts","This gives you all of the mounts in the game.").setClick(s((function*(){return a.player.backpack.data.mount=(0,r.itemify)(a._.gameData.mount,1),n.Toast.fire("Mounts Added!","All mounts have been added to your inventory!")}))),new o.Hack(o.category.inventory,"Remove item").setClick(s((function*(){var e=yield n.Swal.fire({title:"What category would you like to remove an item from?",input:"select",inputOptions:r.names,inputPlaceholder:"Select...",inputValidator:e=>e?"":"Please select which you'd like to obtain.",showCancelButton:!0});if(a._.gameData[r.ids[e.value]]){var t=a._.gameData[r.ids[e.value]].map((e=>e.data.name)),o=yield n.Swal.fire({title:"What specific object categorized as ".concat(r.names[e.value].toLowerCase()," would you like to remove?"),input:"select",inputOptions:t,inputPlaceholder:"Select...",inputValidator:e=>e?"":"Please select which you'd like to get.",showCancelButton:!0});if(o=parseInt(o.value),a._.gameData[r.ids[e.value]][o]){var s=yield n.NumberInput.fire("Amount","How many of the object would you like to remove?","question");if(s.value){if(-1!==a.player.backpack.data[r.ids[e.value]].findIndex((t=>t.ID===a._.gameData[r.ids[e.value]][o].ID))){var i=a.player.backpack.data[r.ids[e.value]].findIndex((t=>t.ID===a._.gameData[r.ids[e.value]][o].ID));return a.player.backpack.data[r.ids[e.value]][i].N-=parseInt(s.value),a.player.backpack.data[r.ids[e.value]][i].N<=0&&a.player.backpack.data[r.ids[e.value]].splice(i,1),(0,a.saveCharacter)(),n.Toast.fire("Removed!","Successfully removed ".concat(s.value," ").concat(a._.gameData[r.ids[e.value]][o].name,"!"),"success")}yield n.Swal.fire("Item Does Not Exist","You do not have any ".concat(a._.gameData[r.ids[e.value]][o].name,"."),"error")}}}}))),new o.Hack(o.category.inventory,"Obtain All Furniture").setClick(s((function*(){return(yield n.Confirm.fire("Are you sure you want to get all furniture?")).value?(a._.gameData.dorm.forEach((e=>a.player.house.data.items[e.ID]={A:[],N:a.VERY_LARGE_NUMBER})),n.Toast.fire("Furniture Added!","All furniture have been added to your inventory!","success")):console.log("Cancelled.")})))}.apply(t,n))||(e.exports=a)},8346:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,l,"next",e)}function l(e){r(s,n,a,i,l,"throw",e)}i(void 0)}))}}n=[o,t,o(9820),o(4759),o(2852),o(112)],void 0===(a=function(e,t,o,n,a,r){"use strict";new o.Hack(o.category.location,"Teleport To Map (interactive)").setClick(s((function*(){var e=n.Swal.mixin({focusConfirm:!1,showCancelButton:!0,preConfirm:()=>{var e;return null===(e=document.querySelector(".radioDiv[checked]"))||void 0===e?void 0:e.getAttribute("zone")}}),t=document.createElement("div");t.classList.add("radioContainer");var o=function(e){var o=document.createElement("DIV");o.classList.add("radioDiv"),o.setAttribute("zone",e);var n=a.locations[e];n?o.style.backgroundImage="url(".concat(n,")"):o.innerText=e,o.onclick=()=>{document.querySelectorAll(".radioDiv[checked]").forEach((e=>e.removeAttribute("checked"))),o.setAttribute("checked","")},t.append(o)};for(var r of Object.keys(a.prodigy.world.zones))o(r);var s=yield e.fire({title:"Teleport Zone",html:t,customClass:{popup:"radioSwal"}});if(s.value){var i=Object.keys(a.prodigy.world.zones[s.value].maps),l=yield n.Swal.fire({input:"select",inputOptions:new Map(i.map((e=>[e,e]))),title:"Map",text:"Which map in the zone do you want to teleport to?"});if(l.value){var c=(yield n.NumberInput.fire("Please enter the x to teleport to. (Try 500?)")).value||500,u=(yield n.NumberInput.fire("Please enter the y to teleport to. (Try 500?)")).value||500;return a.prodigy.world.zones[s.value].teleport(l.value,c,u,{},{}),n.Toast.fire("Teleported","You have been teleported!","success")}}}))),new o.Hack(o.category.location,"Teleport to house by userID").setClick(s((function*(){var e=(yield n.NumberInput.fire("Please enter the userID.")).value;if(e)return(0,r.toHouse)(e),n.Toast.fire("Teleported!","You have been teleported!","success")}))),new o.Hack(o.category.location,"Get Map Location").setClick(s((function*(){var e=a.player.data.zone;navigator.clipboard.writeText(e).then(s((function*(){return console.log("Async: Copying to clipboard was successful!"),n.Swal.fire({title:"Map Location",html:"You are at
                                ".concat(e," .
                                You can save this to get to the same zone.

                                Your location is has also been copied to your clipboard."),icon:"info"})})),function(){var t=s((function*(t){return console.error("Async: Could not copy text: ",t),n.Swal.fire({title:"Map Location",html:"You are at
                                ".concat(e," .
                                You can save this to get to the same zone."),icon:"info"})}));return function(e){return t.apply(this,arguments)}}())})))}.apply(t,n))||(e.exports=a)},3344:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,l,"next",e)}function l(e){r(s,n,a,i,l,"throw",e)}i(void 0)}))}}n=[o,t,o(9820),o(2852),o(4759)],void 0===(a=function(e,t,o,n,a){"use strict";new o.Toggler(o.category.minigames,"69x Walk Speed [Dyno Dig]","Walk so fast that you're teleporting, in Dyno Dig.").setEnabled(s((function*(){return n._.instance.game.state.states.get("DinoDig").walkSpeed=69,a.Toast.fire("Enabled!","You will now walk so fast that you're teleporting in Dyno Dig.","success")}))).setDisabled(s((function*(){return n._.instance.game.state.states.get("DinoDig").walkSpeed=1.5,a.Toast.fire("Disabled!","You will now walk at normal speed, in Dyno Dig.","success")})))}.apply(t,n))||(e.exports=a)},465:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,l,"next",e)}function l(e){r(s,n,a,i,l,"throw",e)}i(void 0)}))}}n=[o,t,o(4759),o(9820),o(2852),o(8238)],void 0===(a=function(e,t,o,n,a,r){"use strict";new n.Hack(n.category.misc,"Skip Tutorial").setClick(s((function*(){var e=(e,t,o,n)=>{a._.instance.prodigy.world.getZone(e).testQuest(t,o,n);try{Object.fromEntries(a._.instance.game.state.states).TileScreen.process()}catch(e){}};e("house",2),e("academy",2),a.player.state.set("tutorial-0",4),a.player.backpack.addKeyItem(13,0),a.player.tutorial.data.menus[14]=[1],a._.instance.prodigy.open.map(!0,[]),a.player.onTutorialComplete(),a.player.data.level=Math.max(a.player.data.level,5)}))),new n.Toggler(n.category.misc,"Disable Monster Encounters").setEnabled(s((function*(){return a._.constants.constants["GameConstants.Debug.SCALE_ENCOUNTER_DISTANCE"]=0,o.Toast.fire("Enabled!","Monsters will no longer battle you.","success")}))).setDisabled((()=>(a._.constants.constants["GameConstants.Debug.SCALE_ENCOUNTER_DISTANCE"]=1,o.Toast.fire("Disabled!","Monsters will now battle you.","success")))),new n.Toggler(n.category.misc,"Skip enemy turn").setEnabled(s((function*(){return a._.constants.constants["GameConstants.Battle.SKIP_ENEMY_TURN"]=!0,o.Toast.fire("Skipping!","Enemy turns will now be skipped.","success")}))).setDisabled((()=>(a._.constants.constants["GameConstants.Battle.SKIP_ENEMY_TURN"]=!1,o.Toast.fire("Disabled","Enemy turns will no longer be skipped.","success")))),new n.Toggler(n.category.beta,"FPS Counter [BETA]","Shows you a framerate counter").setEnabled(s((function*(){(0,r.startFps)()}))).setDisabled(s((function*(){(0,r.stopFps)()})));try{var i=a.current.user.source.canSpin;new n.Toggler(n.category.misc,"Unlimited Spins","Lets you spin the wheel as many times as you want!").setEnabled(s((function*(){return a.player.canSpin=()=>{},o.Toast.fire("Enabled!","You can now spin the wheel as many times as you want!","success")}))).setDisabled(s((function*(){return a.player.canSpin=i,o.Toast.fire("Disabled!","You can now spin the wheel only when allowed.","success")})))}catch(e){console.error("Unlimited Spins ERROR: "+e)}new n.Hack(n.category.misc,"Bobbify","Converts your account into Bobby Fancywoman.").setClick(s((function*(){if((yield o.Confirm.fire("Are you sure you want your account to be turned into Bobby Fancywoman?","This action is not reversable.")).value)return a.player.name.data.nickname=null,a.player.name.data.firstName=44,a.player.name.data.middleName=754,a.player.name.data.lastName=882,a.player.data.stars=-1e22,a.player.data.level=69,a.player.appearance.setGender("male"),a.player.appearance.setEyeColor(1),a.player.appearance.setFace(4),a.player.appearance.setHair(19,1),a.player.appearance.setSkinColor(1),a.player.equipment.setFollow(19),a.player.equipment.setHat(19),a.player.equipment.setBoots(19),a.player.equipment.setOutfit(19),a.player.equipment.setWeapon(19),o.Toast.fire("Bobbified!","You are now Bobby Fancywoman.","success")}))),new n.Hack(n.category.misc,"Reset Account","Completely resets your account.").setClick(s((function*(){if((yield o.Confirm.fire("Are you sure you want to reset your account?","This action is not reversible.")).value)return a.player.resetAccount(),o.Swal.fire("Reset!","Your account has been reset. Reload Prodigy for the full effect.","success")})));var l=null,c=0;new n.Hack(n.category.misc,"Chat Spammer","Cycles through chat messages pretty fast!").setClick(s((function*(){return l?o.Swal.fire("Already Enabled","Chat Spammer is already enabled. To disable chat spammer, reload Prodigy.","error"):(l=setInterval(s((function*(){a.player.chatID=c,++c>1164&&(c=0)})),90),o.Toast.fire("Spamming!","You're now sending a chat message every 90 milliseconds!","success"))})));var u=null,d=0;new n.Hack(n.category.misc,"High Chat Spammer","Cycles through chat messages hella fast!").setClick(s((function*(){return u?o.Swal.fire("Already Enabled","High Chat Spammer is already enabled. To disable chat spammer, reload Prodigy.","error"):(yield o.Confirm.fire("Warning","This hack may cause lag on weak computers (ex. School Chromebooks).")).value?(u=setInterval(s((function*(){a.player.chatID=d,++d>1164&&(d=0)})),30),o.Toast.fire("Spamming!","You're now sending a chat message every 30 milliseconds!","success")):console.log("Cancelled")})));var p=null,h=0;new n.Hack(n.category.misc,"Chat Spammer on Meth","Cycles through chat messages FAST ASF!").setClick(s((function*(){return p?o.Swal.fire("Already Enabled","Chat Spammer on Meth is already enabled. To disable chat spammer, reload Prodigy.","error"):(yield o.Confirm.fire("Warning","This hack may cause lag on weak computers (ex. School Chromebooks).")).value?(p=setInterval(s((function*(){a.player.chatID=h,++h>1164&&(h=0)})),1),o.Toast.fire("Spamming!","You're now sending a chat message every 1 millisecond!","success")):console.log("Cancelled")}))),new n.Hack(n.category.misc,"[Fix] Fix Battle Crash").setClick(s((function*(){return a.player.kennel.petTeam.forEach((e=>{e&&e.assignRandomSpells&&e.assignRandomSpells()})),o.Toast.fire("Success!","Fixed kennel attack bug!","success")}))),new n.Hack(n.category.misc,"[Fix] Stuck in Unfinished Tower Fix","Takes you out of an unfinished tower if you're stuck in one.").setClick(s((function*(){return a._.instance.prodigy.world.zones.house.teleport("exit"),o.Toast.fire("Success!","You've been teleported outside of your house.","success")}))),new n.Hack(n.category.misc,"uwu","OwO").setClick(s((function*(){return(yield o.Confirm.fire("Are you sure that you want to UwU OwO?","Reload Prodigy to revert UwU.")).value?(Object.chance=e=>{var t={},o=0;for(var n of Object.keys(e).sort(((e,o)=>t[e]-t[o])))t[n]=[],t[n][0]=o+1,t[n][1]=e[n]+o,o=e[n]+o;return t},Object.random=e=>{var t=Object.values(e),o=t[t.length-1][1],n=Math.randint(o);return Object.reverse(e)[t.find((e=>n>=e[0]&&n<=e[1]))]},Array.prototype.join=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:",";return"string"==typeof e?this.reduce(((t,o,n,a)=>t+(nt+(n0&&void 0!==arguments[0]?arguments[0]:",";return"string"==typeof e?this.reduce(((t,o,n)=>t+(n?e+o:o)),""):e instanceof Function?this.reduce(((t,o,n,a)=>t+(n?e(a[n],n,a)+o:o)),""):void 0},String.UWUFX=e=>{var t=Object.chance({"owo :3":20,"✧w✧":20,UwU:20,OwO:10,rawr:10,"uwu :3":5,":3 meow":15,":3":15,X3:15,"*purrs*":15,owo:15,uwu:15,"^w^":15,"x3 rawr":15,owowowowo:15});return e.split(" ").leftJoin(((e,t)=>0===Math.floor(6*Math.random())&&/[A-Za-z]/.test(e[0])?" ".concat(e[0],"-"):" ")).split(" ").join(((e,o)=>0===Math.floor(5*Math.random())?" ".concat(Object.random(t)," "):" "))},String.UWUTable={y:"wy",l:"w",r:"w",ss:"zs",n:"nw",ove:"uv",ome:"um",x:"ks",com:"cum",stu:"stew",au:"aw"},Math.randint=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Math.floor(Math.random()*e-t)+t},String.prototype.escapeRegex=function(){return this.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")},String.prototype.replaceAll=function(e,t){return this.replace(new RegExp(e.toString().escapeRegex(),"gi"),(e=>t))},Object.fromArrays=(e,t)=>{var o={};return e.forEach(((e,n)=>{o[e]=t[n]})),o},Object.reverse=e=>Object.fromArrays(Object.values(e),Object.keys(e)),String.prototype.bulkReplace=function(e){var t=this;for(var o in e)t=t.replaceAll(o,e[o]);return t},String.UWU=e=>String(e).bulkReplace(String.UWUTable),Object.keys(a._.localizer.dataSource._languageData).map((e=>a._.localizer.dataSource._languageData[e]=String.UWUFX(String.UWU(a._.localizer.dataSource._languageData[e])))),Object.values(a._.gameData).map((e=>e.map((e=>[e.data.name&&(e.data.name=String.UWUFX(String.UWU(e.data.name))),e.name&&(e.name=String.UWUFX(String.UWU(e.name))),e.data.flavorText&&(e.data.flavorText=String.UWUFX(String.UWU(e.data.flavorText)))])))),o.Toast.fire("uwu","Reload Prodigy to fix uwu.","success")):console.log("uwu cancelled")})))}.apply(t,n))||(e.exports=a)},8603:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,l,"next",e)}function l(e){r(s,n,a,i,l,"throw",e)}i(void 0)}))}}n=[o,t,o(4759),o(9820),o(2852)],void 0===(a=function(e,t,o,n,a){"use strict";var r=null;new n.Hack(n.category.patched,"Arena Point Increaser [Patched]").setClick(s((function*(){return r?o.Swal.fire("Already Enabled","Arena Point Increaser is already enabled.","error"):(yield o.Confirm.fire("This hack is patched.","Running it will probably do nothing.")).value?(r=setInterval(s((function*(){var e=yield(yield fetch("https://api.prodigygame.com/leaderboard-api/season/".concat(a.prodigy.pvpNetworkHandler.seasonID,"/user/").concat(a.player.userID,"/pvp?userID=").concat(a.player.userID),{headers:{authorization:"Bearer ".concat(a.prodigy.network.jwtAuthProvider.getToken()),"content-type":"application/x-www-form-urlencoded; charset=UTF-8"},body:"seasonID=".concat(a.prodigy.pvpNetworkHandler.seasonID,"&action=win"),method:"POST",mode:"cors"})).text();if(""!==e){var t=JSON.parse(e);console.log("[API] ".concat(t.points," Points (+100)"))}else console.log("[API] Failed to add points.")})),60500),o.Swal.fire("Enabled","Arena Point Increaser has been enabled.","success")):console.log("Cancelled")}))),new n.Hack(n.category.patched,"Disable Timeout Dialog [Patched]").setClick(s((function*(){return(yield o.Confirm.fire("This hack is patched.","Running it will probably do nothing.")).value?(a.prodigy.debugMisc.disableTimeoutDialogue(),o.Toast.fire("Enabled","Timeout Dialog has been disabled.","success")):console.log("Cancelled")})))}.apply(t,n))||(e.exports=a)},7736:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;function asyncGeneratorStep(e,t,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}function _asyncToGenerator(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var r=e.apply(t,o);function s(e){asyncGeneratorStep(r,n,a,s,i,"next",e)}function i(e){asyncGeneratorStep(r,n,a,s,i,"throw",e)}s(void 0)}))}}var __importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};__WEBPACK_AMD_DEFINE_ARRAY__=[__webpack_require__,exports,__webpack_require__(4759),__webpack_require__(9820),__webpack_require__(2852),__webpack_require__(112),__webpack_require__(3336),__webpack_require__(939),__webpack_require__(3135),__webpack_require__(3314)],__WEBPACK_AMD_DEFINE_RESULT__=function(require,exports,swal_1,index_1,util_1,hackify_1,kennel_1,flatted_1,lzbase62_1,divide_1){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),flatted_1=__importDefault(flatted_1),lzbase62_1=__importDefault(lzbase62_1),divide_1=__importDefault(divide_1),new index_1.Hack(index_1.category.pets,"Get All Pets").setClick(_asyncToGenerator((function*(){return(yield swal_1.Confirm.fire("Would you like to add all pets to your pets?")).value?(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()})),swal_1.Toast.fire("Success!","All pets have been added!","success")):console.log("Cancelled")}))),new index_1.Hack(index_1.category.pets,"Get All Legacy Epics").setClick(_asyncToGenerator((function*(){return(yield swal_1.Confirm.fire("This may damage your account.","Attempting to add legacy epics may damage your account. Would you still like to add all legacy epics to your team?","warning")).value?(util_1._.gameData.pet.filter((e=>[125,126,127,128,129,130,131,132,133].includes(e.ID))).forEach((e=>{util_1.player.kennel.addPet(e.ID.toString(),util_1.VERY_LARGE_NUMBER,26376,100)})),util_1.player.kennel.petTeam.forEach((e=>{e&&e.assignRandomSpells&&e.assignRandomSpells()})),swal_1.Toast.fire("Success!","All legacy epics have been added!","success")):console.log("Cancelled")}))),new index_1.Hack(index_1.category.pets,"Get All Mythical Epics").setClick(_asyncToGenerator((function*(){return(yield swal_1.Confirm.fire("Would you like to add all mythical epics to your pets?")).value?(util_1._.gameData.pet.filter((e=>[158,164,165,166,167,168,169,170,171,189].includes(e.ID))).forEach((e=>{util_1.player.kennel.addPet(e.ID.toString(),util_1.VERY_LARGE_NUMBER,26376,100)})),util_1.player.kennel.petTeam.forEach((e=>{e&&e.assignRandomSpells&&e.assignRandomSpells()})),swal_1.Toast.fire("Success!","All mythical epics have been added!","success")):console.log("Cancelled")}))),new index_1.Hack(index_1.category.pets,"Clear Pets").setClick(_asyncToGenerator((function*(){return(yield swal_1.Confirm.fire("Would you like to delete all of your pets?")).value?(util_1.player.kennel.data.length=0,swal_1.Toast.fire("Success!","Your pets have been cleared!","success")):console.log("Cancelled")}))),new index_1.Hack(index_1.category.pets,"Add Pet","Adds a pet from a list.").setClick(_asyncToGenerator((function*(){var e=yield swal_1.Swal.fire({input:"select",inputOptions:new Map(util_1._.gameData.pet.map((e=>[e.ID.toString(),"".concat(e.ID,": ").concat(e.data.name)]))),title:"Choose Pet",text:"Which pet do you want to obtain?"});if(void 0!==e.value)return util_1.player.kennel.addPet(e.value),util_1.player.kennel._encounterInfo._data.pets.push({firstSeenDate:Date.now(),ID:e.value,timesBattled:1,timesRescued:1}),swal_1.Toast.fire("Success!","Your chosen pet has been added to your pets!","success")}))),new index_1.Hack(index_1.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(_asyncToGenerator((function*(){var petTeam=util_1.player.kennel.petTeam.slice(0);petTeam.shift();var names=petTeam.map((e=>e.getName())),pet=yield swal_1.Swal.fire({title:"Which pet would you like to edit?",input:"select",inputOptions:names,inputPlaceholder:"Select...",inputValidator:e=>e?"":"Please select which you'd like to obtain.",showCancelButton:!0}),amt=yield swal_1.NumberInput.fire("Level","What would you like to set your pet's level to? (Can be set over 100)","question");if(amt.value){var num=amt.value;return eval("player.kennel.petTeam[parseInt(".concat(pet.value,")+1].getLevel = () => {return ").concat(num,"}")),swal_1.Toast.fire("Updated!","The level of your pet was successfully updated. Note: this hack is client-side.","success")}}))),new index_1.Hack(index_1.category.pets,"Delete Pet","Delete a pet.").setClick(_asyncToGenerator((function*(){var e=yield(0,hackify_1.getPet)("Which pet do you wish to delete?");if(void 0!==e)return util_1.player.kennel.data.splice(e,1),swal_1.Toast.fire("Successfully deleted!","The selected pet was deleted successfully.","success")}))),new index_1.Hack(index_1.category.pets,"Edit Kennel","Allows you to directly edit your pets.").setClick(_asyncToGenerator((function*(){null!==(yield(0,kennel_1.GetAction)())&&null!==(yield(0,kennel_1.SelectSlot)())&&console.log(s(parseInt(KennelSlot.value)))}))),new index_1.Hack(index_1.category.pets,"Backup Kennel","Makes a backup of your kennel to your chrome local storage.").setClick(_asyncToGenerator((function*(){var e=lzbase62_1.default.compress(flatted_1.default.stringify(util_1._.player.kennel._petTeam));console.log(e.length);var t=0;for(var o of(0,divide_1.default)(e,10))localStorage.setItem("prodigy-kennel-backup"+t,o),localStorage.clear(),console.log(o.length),t++;return swal_1.Toast.fire("Backed up!","Your kennel is now backed up to the local storage.","success")}))),new index_1.Hack(index_1.category.pets,"Restore Kennel","Restores a backup of your kennel from the local storage... if you have one.").setClick(_asyncToGenerator((function*(){var e=localStorage.getItem("prodigy-kennel-backup");return null===e?swal_1.Swal.fire({title:"No backup found",html:"There is no backup of your kennel in the local storage. Make sure to back up your kennel before trying to load it.",icon:"error"}):(util_1._.player.kennel._petTeam=flatted_1.default.toJSON(lzbase62_1.default.decompress(e)),swal_1.Toast.fire("Restored!","Your kennel backup should be restored","success"))})))}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),void 0===__WEBPACK_AMD_DEFINE_RESULT__||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)},7939:(module,exports,__webpack_require__)=>{var __webpack_unused_export__,__WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;function asyncGeneratorStep(e,t,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}function _asyncToGenerator(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var r=e.apply(t,o);function s(e){asyncGeneratorStep(r,n,a,s,i,"next",e)}function i(e){asyncGeneratorStep(r,n,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_require__(112)],__WEBPACK_AMD_DEFINE_RESULT__=function(require,exports,swal_1,index_1,util_1,hackify_1){"use strict";__webpack_unused_export__={value:!0},new index_1.Hack(index_1.category.player,"Max Account").setClick(_asyncToGenerator((function*(){if(!(yield swal_1.Confirm.fire("Are you sure that you want to max your account?","We recommend doing this on an alt.")).value)return console.log("Cancelled");util_1.player.data.gold=99e5,console.log("Set player gold to 9900000.");var e=100..value-2;util_1.player.data.stars=Math.round((1-Math.pow(1.042,e))/(1-1.042)*20+10),util_1.player.data.level=100,util_1.player.getLevel=()=>util_1.player.data.level,console.log("Set player level to 100"),util_1.player.data.bountyScore=100,console.log("Set player's bounty points to 100.");for(var t=0;t{util_1.player.backpack.data[e]=(0,hackify_1.itemify)(util_1._.gameData[e].filter((t=>"follow"===e?![125,126,127,128,129,134,135,136,137].includes(t.ID):t)),1..value)})),util_1._.gameData.dorm.forEach((e=>util_1.player.house.data.items[e.ID]={A:[],N:1..value}));for(var n=()=>util_1.player.backpack.data.item.findIndex((e=>84===e.ID||85===e.ID||86===e.ID));n()>-1;)util_1.player.backpack.data.item.splice(n(),1);swal_1.Toast.fire("Success!","All items added!","success"),console.log("All items added!"),util_1.player.backpack.data.mount=(0,hackify_1.itemify)(util_1._.gameData.mount,1),console.log("Added all mounts.");var a="currency";return util_1.player.backpack.data[a]=(0,hackify_1.itemify)(util_1._.gameData[a].filter((e=>e)),6969420),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.equipment.setHat(200),util_1.player.equipment.setBoots(93),util_1.player.equipment.setOutfit(161),util_1.player.equipment.setWeapon(196),util_1.player.appearanceChanged=!0,console.log("Appearance Refreshed."),(0,util_1.saveCharacter)(),console.log("Character Saved."),console.log("Max Account Successful."),swal_1.Toast.fire("Maxed!","Check your backpack!","success")}))),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)return e.value>1e7?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;return 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");if(void 0!==e.value)return 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");if(void 0!==e.value)return 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;t(util_1._.instance.prodigy.gameContainer.get((0,hackify_1.getMemberModule)()).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"),o=(e,t)=>{var o=document.createElement("select");for(var n of(o.classList.add("selectName"),e.entries())){var a=document.createElement("option");[a.value,a.innerText]=n,t(a.value)&&(a.selected=!0),o.options.add(a)}return o},n=(t,n)=>o(new Map(e.filter((e=>e.data.type===t)).map((e=>[e.ID.toString(),e.name]))),(e=>n(+e)));t.append(n(0,(e=>e===util_1.player.name.data.firstName))),t.append(n(1,(e=>e===util_1.player.name.data.middleName))),t.append(n(2,(e=>e===util_1.player.name.data.lastName))),t.append(o(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");if(level.value)return 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*(){return 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*(){return 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")):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 o=util_1._.instance.prodigy.world.zones[t].getCurrentQuestID();return util_1._.instance.prodigy.world.zones[t].completeQuest(o)?(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)});if(e.value)return 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.toString()).then((function(){return 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){return 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();return 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?");if(e.value)return util_1.player.grade=parseInt(e.value),swal_1.Toast.fire("Success","Successfully changed grade to ".concat(e,"!"),"success")})))}.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,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}function _asyncToGenerator(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var r=e.apply(t,o);function s(e){asyncGeneratorStep(r,n,a,s,i,"next",e)}function i(e){asyncGeneratorStep(r,n,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*(){return 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,"Grab UserID of all players on screen","Shows you the UserID and name of every player currently shown on the screen.").setClick(_asyncToGenerator((function*(){var e=util_1.current.playerList;if(0===Object.keys(e).length)return swal_1.Toast.fire("No players found.","There are no other players on the screen.","error");var t="",o=0;return yield Object.keys(e).map((n=>{var a=Object.entries(e)[o][1].nameText.textSource.source;t+="
                              • uID: ".concat(n," - ").concat(a,"
                              • "),o++})),swal_1.Swal.fire({title:"All players on the screen:",html:t,icon:"info"})}))),new index_1.Hack(index_1.category.utility,"Save Character Locally [Local]","Saves your character locally.").setClick(_asyncToGenerator((function*(){return 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"});return t.ok?swal_1.Toast.fire("Success!","Character has been successfully loaded. Reload for the changes to take effect.","success"):swal_1.Toast.fire("Request failed.","An error occurred while loading the character. Error code: ".concat(t.status),"error")}return 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*(){return(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;return 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*(){return 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);return 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*(){return teleportingInterval=setInterval((()=>{try{util_1.player._playerContainer.walkSpeed=500}catch(e){}})),swal_1.Toast.fire("Success!","Successfully enabled teleport click.","success")}))).setDisabled(_asyncToGenerator((function*(){return 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*(){return util_1._.network.game._paused=!0,swal_1.Toast.fire("Success!","Successfully paused Prodigy.","success")}))).setDisabled(_asyncToGenerator((function*(){return 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)return console.log("Cancelled.");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 swal_1.Swal.fire({title:"Error",html:"Oops! There was an error with the code!
                                 ".concat(e," "),icon:"error"})}return 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,o){var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,l,"next",e)}function l(e){r(s,n,a,i,l,"throw",e)}i(void 0)}))}}var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};n=[o,t,o(7046),o(2852),o(3526),o(6455),o(4759),o(4719),o(158)],a=function(e,t,o,n,a,r,l,c){"use strict";var u,d,p,h;Object.defineProperty(t,"__esModule",{value:!0}),t.category=t.Toggler=t.Hack=t.toggler=t.wrapper=t.menu=void 0,r=i(r),t.menu=document.createElement("div"),t.wrapper=document.getElementById("game-wrapper"),null===(u=document.getElementById("cheat-menu"))||void 0===u||u.remove(),null===(d=document.getElementById("menu-toggler"))||void 0===d||d.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===(p=t.wrapper)||void 0===p||p.prepend(t.menu),t.toggler=document.createElement("button"),t.toggler.id="menu-toggler";var f=!1;null===(h=t.wrapper)||void 0===h||h.prepend(t.toggler),t.toggler.onclick=()=>{(f=!f)?(t.toggler.innerText="▼",t.menu.style.top="-100vh"):(t.toggler.innerText="▲",t.menu.style.top="10%")},t.toggler.onclick({});var m=document.createElement("DIV");m.classList.add("menu-left"),t.menu.append(m);var g=!0,y=e=>{var t=document.createElement("div");0==g?(t.append(document.createElement("br")),t.append(document.createElement("br"))):g=!1,t.classList.add("menu-area"),t.style.textAlign="center",m.append(t);var o=document.createElement("h1");return o.innerText=e,o.style.textAlign="center",o.style.color="white",t.append(o),t},w=document.createElement("h1");w.classList.add("menu-title"),w.innerText="Prodigy Hacks",w.style.textAlign="center",m.append(w);var b=document.createElement("h2");b.style.fontSize="25px",b.style.color="white",b.innerHTML="
                                Press SHIFT to show/hide the menu. Scroll down in the menu for more hacks.",m.append(b);var _=document.createElement("h3");_.style.fontSize="20px",_.innerHTML="\n

                                Join our Discord https://dsc.gg/ProdigyPNP!

                                \n\n
                                \n",_.style.color="white",m.append(_);class v{constructor(e,t,o){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),o&&this.setDesc(o)}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,n.saveCharacter)(),console.log("Triggered ".concat(t.name,"."))})),this}setDesc(e){return this.element.title=e,this.description=e,this}}t.Hack=v,t.Toggler=class extends v{constructor(e,t,o){var n;super(e,t,o),n=this,this.parent=e,this.element.setAttribute("status","false"),this.setClick(s((function*(){var e,t;n.status=!n.status,n.status?(localStorage.setItem(n.name,"true"),yield null===(e=n.enabled)||void 0===e?void 0:e.call(n)):(localStorage.setItem(n.name,"false"),yield null===(t=n.disabled)||void 0===t?void 0:t.call(n))})))}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:y("Player Hacks"),inventory:y("Inventory Hacks"),location:y("Location Hacks"),pets:y("Pet Hacks"),battle:y("Battle Hacks"),minigames:y("Minigame Hacks"),misc:y("Miscellaneous Hacks"),utility:y("Utility Hacks"),beta:y("Beta Testing | Beta Hacks may damage your account"),patched:y("Patched Hacks")},localStorage.hasTip?(0,c.IndexInfo)("Player already has tip."):(s((function*(){yield r.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,(0,c.IndexInfo)("Player was shown the tip.")),localStorage.getItem("level")&&(n._.player.getLevel=()=>localStorage.getItem("level"),(0,c.IndexInfo)("Loaded menu from localStorage."));var k=!0;document.addEventListener("keydown",(function(e){"Shift"==e.key&&((0,c.IndexInfo)("Shift key was pressed."),1==k?((0,c.IndexInfo)("Hiding cheat menu..."),document.getElementById("cheat-menu").style.display="none",document.getElementById("menu-toggler").style.display="none",k=!1,(0,c.IndexInfo)("Hidden cheat menu.")):((0,c.IndexInfo)("Showing cheat menu..."),document.getElementById("cheat-menu").style.display="block",document.getElementById("menu-toggler").style.display="block",k=!0,(0,c.IndexInfo)("Shown cheat menu.")))})),s((function*(){var e,t;(yield l.License.fire("ProdigyPNP",'\n

                                \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 ')).value?yield(0,a.statusMessage)():(yield l.NoLicense.fire("ProdigyPNP License","\n

                                \n You need to agree to our license to use our hacks. If you changed your mind and now agree to our license, reload Prodigy.\n

                                \n ")).value?document.location="":(null===(e=document.getElementById("cheat-menu"))||void 0===e||e.remove(),null===(t=document.getElementById("menu-toggler"))||void 0===t||t.remove())}))()}.apply(t,n),void 0===a||(e.exports=a)},3314:(e,t,o)=>{var n;n=function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){for(var o=new Array,n=Math.floor(e.length/t),a=0;a{var n,a;n=[o,t,o(9820)],a=function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stopFps=t.startFps=void 0;var n=document.createElement("button"),a=!1;t.startFps=function(){var e;a=!0,n.id="fps-counter",null===(e=o.wrapper)||void 0===e||e.prepend(n),setInterval((()=>{var e=_.player.game.fps._framerate;a?n.innerText=e.toFixed(2)+" FPS":n.remove()}),300)},t.stopFps=function(){var e;a=!1,null===(e=document.getElementById("fps-counter"))||void 0===e||e.remove()}}.apply(t,n),void 0===a||(e.exports=a)},112:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}n=[o,t,o(2852),o(4759)],a=function(e,t,o,n){"use strict";function a(e){o._.instance.prodigy.loading(!0);var t=t=>{var a=null!=t?t[e]:null;if(null!==a&&void 0!==a.house&&null!==a.house){o._.instance.prodigy.loading(!1);var r=o._.cloneDeep(o._.player.house);return r.setItems(a.house),void 0!==a.data.allowsHouseVisitors&&null!==a.data.allowsHouseVisitors&&a.data.allowsHouseVisitors?o._.instance.prodigy.world._("house",null,null,{house:r,getAllowsHouseVisitors:()=>void 0!==a.data.allowsHouseVisitors&&null!==a.data.allowsHouseVisitors&&a.data.allowsHouseVisitors,setAllowsHouseVisitors:e=>{a.data.allowsHouseVisitors=e}}):n.Swal.fire("Teleporting to ".concat(e," is not allowed."),"Try another user.","error")}};return o._.network.getCharData(e.toString(),["house","data"],t,t),n.Toast.fire("Teleported to house","You have been teleported to the house!","success")}Object.defineProperty(t,"__esModule",{value:!0}),t.getPet=t.teleportToHouse=t.toHouse=t.getMemberModule=t.runeify=t.itemify=t.ids=t.names=void 0,t.names=["Boots","Buddies","Fossils","Hats","Items","Key Items","Tower Town Frames","Tower Town Interiors","Mounts","Outfits","Relics","Weapons","Currencies"],t.ids=["boots","follow","fossil","hat","item","key","mathTownFrame","mathTownInterior","mount","outfit","spellRelic","weapon","currency"],t.itemify=(e,t)=>e.map((e=>({ID:e.ID,N:t}))).filter((e=>void 0!==e)),t.runeify=(e,t)=>{e.map((e=>({ID:e.ID,quantity:t}))).filter((e=>void 0!==e))},t.getMemberModule=function(){return o._.player.hasMembership.toString().split('"')[1]},t.toHouse=function(e){if(o._.player.userID!==e){var t=o._.instance.prodigy.friendsListNetworkHandler.friendsList.length,r=o._.instance.prodigy.friendsListNetworkHandler.classList.length;o._.instance.prodigy.gameContainer.get("2e1-e659").create("house-visit","click","hub",t,r,null,null,e).broadcast()}var s=o._.instance.prodigy.world.getZone(o._.instance.prodigy.world.getCurrentZone());return s?s.handleLeaving(2,(()=>a(e))):n.Swal.fire({title:"Error",text:"You are not in a zone!",icon:"error"})},t.teleportToHouse=a;var s=function(){var e,t=(e=function*(e){return(yield n.Swal.fire({input:"select",inputOptions:new Map(o._.player.kennel.data.map(((e,t)=>{var n,a,r;return[t.toString(),"Level ".concat(e.level," - ").concat(null!==(n=null!==(a=e.nickname)&&void 0!==a?a:null===(r=o._.gameData.pet.find((t=>+t.ID==+e.ID)))||void 0===r?void 0:r.data.name)&&void 0!==n?n:"Unknown")]}))),title:"Choose Pet",text:e})).value},function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,l,"next",e)}function l(e){r(s,n,a,i,l,"throw",e)}i(void 0)}))});return function(e){return t.apply(this,arguments)}}();t.getPet=s}.apply(t,n),void 0===a||(e.exports=a)},3336:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,l,"next",e)}function l(e){r(s,n,a,i,l,"throw",e)}i(void 0)}))}}n=[o,t,o(4759)],a=function(e,t,o){"use strict";function n(){return(n=s((function*(){var e=new Map;e.set("Copy","Copy a slot to another slot"),e.set("Remove","Completley empty one slot");var t=yield o.Swal.fire({input:"select",inputOptions:e,title:"Select Action",text:"Select an action to perform on the Kennel"});return t.value?t.value:null}))).apply(this,arguments)}function a(){return(a=s((function*(){var e=new Map,t=e=>_.player.kennel._petTeam[e]?_.player.kennel._petTeam[e].source?_.player.kennel._petTeam[e].source.name:_.player.kennel._petTeam[e]._userDataPlatform?"Player":"null":"null";e.set("0","[0] Center - ".concat(t(0))),e.set("1","[1] Top - ".concat(t(1))),e.set("2","[2] Bottom - ".concat(t(2)));var n=yield o.Swal.fire({input:"select",inputOptions:e,title:"Select Slot",text:"Select a slot to edit"});return n.value?parseInt(n.value):null}))).apply(this,arguments)}Object.defineProperty(t,"__esModule",{value:!0}),t.SelectSlot=t.GetAction=void 0,t.GetAction=function(){return n.apply(this,arguments)},t.SelectSlot=function(){return a.apply(this,arguments)}}.apply(t,n),void 0===a||(e.exports=a)},2868:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}n=[o,t,o(2852),o(4759)],void 0===(a=function(e,t,o,n){"use strict";window.addEventListener("keydown",(e=>{switch(e.which){case 192:o._.instance.prodigy.open.menuCloseAll();break;case 220:var t=function(){var e,t=(e=function*(){if(!(yield n.Confirm.fire("Kit","Would you like to equip Celestial Gear?")).value)return console.log("Cancelled");o._.player.equipment.setHat(200),o._.player.equipment.setBoots(93),o._.player.equipment.setOutfit(161),o._.player.equipment.setWeapon(196),o._.player.appearanceChanged=!0,n.Toast.fire("Success!","You are now wearing Celestial Armor and wielding a Dual Blade.","success")},function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,l,"next",e)}function l(e){r(s,n,a,i,l,"throw",e)}i(void 0)}))});return function(){return t.apply(this,arguments)}}();t()}}))}.apply(t,n))||(e.exports=a)},4719:(e,t,o)=>{var n;n=function(e,t){"use strict";function o(e,o){return""==e||null==e?console.log("["+t.LogPrefix+":unknown] "+o):console.log("["+t.LogPrefix+":"+e+"] "+o)}function n(e,t,n){return o(t,"*"+e.toUpperCase()+"* "+n)}Object.defineProperty(t,"__esModule",{value:!0}),t.UtilityError=t.UtilitySuccess=t.UtilityInfo=t.PlayerError=t.PlayerSuccess=t.PlayerInfo=t.PetsError=t.PetsSuccess=t.PetsInfo=t.PatchedError=t.PatchedSuccess=t.PatchedInfo=t.MiscError=t.MiscSuccess=t.MiscInfo=t.MinigameError=t.MinigameSuccess=t.MinigameInfo=t.LocationError=t.LocationSuccess=t.LocationInfo=t.InventoryError=t.InventorySuccess=t.InventoryInfo=t.BetaError=t.BetaSuccess=t.BetaInfo=t.BattleError=t.BattleSuccess=t.BattleInfo=t.IndexError=t.IndexSuccess=t.IndexInfo=t.StatusLog=t.ConsoleLog=t.LogPrefix=void 0,t.LogPrefix="CheatGUI",t.ConsoleLog=o,t.StatusLog=n,t.IndexInfo=function(e){return n("info","index.ts",e)},t.IndexSuccess=function(e){return n("success","index.ts",e)},t.IndexError=function(e){return n("error","index.ts",e)},t.BattleInfo=function(e){return n("info","battle.ts",e)},t.BattleSuccess=function(e){return n("success","battle.ts",e)},t.BattleError=function(e){return n("error","battle.ts",e)},t.BetaInfo=function(e){return n("info","beta.ts",e)},t.BetaSuccess=function(e){return n("success","beta.ts",e)},t.BetaError=function(e){return n("error","beta.ts",e)},t.InventoryInfo=function(e){return n("info","inventory.ts",e)},t.InventorySuccess=function(e){return n("success","inventory.ts",e)},t.InventoryError=function(e){return n("error","inventory.ts",e)},t.LocationInfo=function(e){return n("info","location.ts",e)},t.LocationSuccess=function(e){return n("success","location.ts",e)},t.LocationError=function(e){return n("error","location.ts",e)},t.MinigameInfo=function(e){return n("info","minigame.ts",e)},t.MinigameSuccess=function(e){return n("success","minigame.ts",e)},t.MinigameError=function(e){return n("error","minigame.ts",e)},t.MiscInfo=function(e){return n("info","misc.ts",e)},t.MiscSuccess=function(e){return n("success","misc.ts",e)},t.MiscError=function(e){return n("error","misc.ts",e)},t.PatchedInfo=function(e){return n("info","patched.ts",e)},t.PatchedSuccess=function(e){return n("success","patched.ts",e)},t.PatchedError=function(e){return n("error","patched.ts",e)},t.PetsInfo=function(e){return n("info","pets.ts",e)},t.PetsSuccess=function(e){return n("success","pets.ts",e)},t.PetsError=function(e){return n("error","pets.ts",e)},t.PlayerInfo=function(e){return n("info","player.ts",e)},t.PlayerSuccess=function(e){return n("success","player.ts",e)},t.PlayerError=function(e){return n("error","player.ts",e)},t.UtilityInfo=function(e){return n("info","utility.ts",e)},t.UtilitySuccess=function(e){return n("success","utility.ts",e)},t.UtilityError=function(e){return n("error","utility.ts",e)}}.apply(t,[o,t]),void 0===n||(e.exports=n)},3131:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,l,"next",e)}function l(e){r(s,n,a,i,l,"throw",e)}i(void 0)}))}}n=[o,t,o(2852)],a=function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PopupInterval=void 0;var n=!1;t.PopupInterval=function(e){n=e},s((function*(){setInterval(s((function*(){n&&o._.instance.prodigy.open.menuCloseAll()})),200)}))()}.apply(t,n),void 0===a||(e.exports=a)},3526:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}n=[o,t,o(4759)],a=function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.statusMessage=void 0,t.statusMessage=function(){fetch("https://raw.githubusercontent.com/ProdigyPNP/ProdigyMathGameHacking/master/cheatGUI/statusmessage.json?updated=".concat(Date.now())).then((e=>e.json())).then(function(){var e,t=(e=function*(e){if(!1===e.enabled.value)return console.log("Status message is disabled.");yield o.Swal.fire({title:e.get("title"),html:e.get("html"),icon:e.get("icon")})},function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,l,"next",e)}function l(e){r(s,n,a,i,l,"throw",e)}i(void 0)}))});return function(e){return t.apply(this,arguments)}}())}}.apply(t,n),void 0===a||(e.exports=a)},4759:function(e,t,o){var n,a,r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};n=[o,t,o(6455)],a=function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NoLicense=t.License=t.Info=t.Confirm=t.Toast=t.NumberInput=t.Input=t.Swal=void 0,o=r(o),t.Swal=o.default,t.Input=t.Swal.mixin({input:"text",showCancelButton:!0,showConfirmButton:!0,toast:!1}),t.NumberInput=t.Input.mixin({toast:!1,input:"number"}),t.Toast=t.Swal.mixin({toast:!0,position:"bottom"}),t.Confirm=t.Swal.mixin({icon:"warning",showCancelButton:!0,toast:!1,confirmButtonText:"Confirm",cancelButtonText:"Cancel"}),t.Info=t.Swal.mixin({icon:"info",showCancelButton:!1,toast:!1}),t.License=t.Swal.mixin({icon:"info",showCancelButton:!0,toast:!1,confirmButtonText:"Agree",cancelButtonText:"Disagree"}),t.NoLicense=t.Swal.mixin({icon:"error",showCancelButton:!0,toast:!1,confirmButtonText:"Reload",cancelButtonText:"Play without hacks"})}.apply(t,n),void 0===a||(e.exports=a)},2852:(e,t,o)=>{var n;n=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.current=t.player=t._=void 0,t._=window._,t.player=t._.player,t.current=window.Boot.prototype.game._state._current;var o=t._.instance;t.game=o.game,t.prodigy=o.prodigy,t.gameData=t._.instance.game.state.states.get("Boot").gameData,t.getItem=(e,o)=>{var n;return null!==(n=t._.gameData[e].find((e=>e.ID===o)))&&void 0!==n?n: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,[o,t]),void 0===n||(e.exports=n)},450:(e,t,o)=>{"use strict";o.d(t,{Z:()=>i});var n=o(8081),a=o.n(n),r=o(3645),s=o.n(r)()(a());s.push([e.id,"@import url(https://fonts.googleapis.com/css?family=Arvo:400,700|Sen:400,700,800&display=swap&subset=latin-ext);"]),s.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;font-size:23px;height:26px;width:50px;border:1px solid rgba(0,0,0,.1)}#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 #fps-counter{z-index:2;position:absolute;border-radius:3px;background-color:rgba(255,255,255,.7333333333);transition:background-color .15s;width:130px;height:26px;font-size:23px;border:1px solid rgba(0,0,0,.1);margin-left:83%}#game-wrapper #fps-counter:hover{background-color:rgba(221,221,221,.7333333333)}#game-wrapper #fps-counter: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:rgba(0,0,0,.55);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;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 i=s},3645:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var o="",n=void 0!==t[5];return t[4]&&(o+="@supports (".concat(t[4],") {")),t[2]&&(o+="@media ".concat(t[2]," {")),n&&(o+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),o+=e(t),n&&(o+="}"),t[2]&&(o+="}"),t[4]&&(o+="}"),o})).join("")},t.i=function(e,o,n,a,r){"string"==typeof e&&(e=[[null,e,void 0]]);var s={};if(n)for(var i=0;i0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=r),o&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=o):u[2]=o),a&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=a):u[4]="".concat(a)),t.push(u))}},t}},8081:e=>{"use strict";e.exports=function(e){return e[1]}},1227:(e,t,o)=>{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 o="color: "+this.color;t.splice(1,0,o,"color: inherit");let n=0,a=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(n++,"%c"===e&&(a=n))})),t.splice(a,0,o)},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=o(2447)(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},2447:(e,t,o)=>{e.exports=function(e){function t(e){let o,a,r,s=null;function i(...e){if(!i.enabled)return;const n=i,a=Number(new Date),r=a-(o||a);n.diff=r,n.prev=o,n.curr=a,o=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,((o,a)=>{if("%%"===o)return"%";s++;const r=t.formatters[a];if("function"==typeof r){const t=e[s];o=r.call(n,t),e.splice(s,1),s--}return o})),t.formatArgs.call(n,e),(n.log||t.log).apply(n,e)}return i.namespace=e,i.useColors=t.useColors(),i.color=t.selectColor(e),i.extend=n,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 n(e,o){const n=t(this.namespace+(void 0===o?":":o)+e);return n.log=this.log,n}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 o;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const n=("string"==typeof e?e:"").split(/[\s,]+/),a=n.length;for(o=0;o{t[o]=e[o]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let o=0;for(let t=0;t{var n=o(6391),a=o(8377);function r(e){this._init(e)}r.prototype={_init:function(e){e=e||{},this._data=null,this._table=null,this._result=null,this._onDataCallback=e.onData,this._onEndCallback=e.onEnd},_createTable:function(){for(var e=a.createBuffer(8,n.TABLE_LENGTH),t=0;ta)return!1;var r,s,i,l,c,u=o-n.WINDOW_BUFFER_MAX,d=t.substring(u,o+a),p=o+e-3-u;do{if(2===e){if(s=t.charAt(o)+t.charAt(o+1),!~(i=d.indexOf(s))||i>p)break}else 3===e?s+=t.charAt(o+2):s=t.substr(o,e);if(!~(l=n.STRING_LASTINDEXOF_BUG?t.substring(u,o+e-1).lastIndexOf(s):d.lastIndexOf(s,p)))break;c=l,r=u+l;do{if(t.charCodeAt(o+e)!==t.charCodeAt(r+e))break}while(++e=n.COMPRESS_CHUNK_MAX&&(this._onData(s,i),i=0);return i>0&&this._onData(s,i),this._onEnd(),t=this._result,this._result=null,null===t?"":t}},e.exports=r},6391:(e,t)=>{var o=t.HAS_TYPED="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array,n=!1,a=!1;try{"a"===String.fromCharCode.apply(null,[97])&&(n=!0)}catch(e){}if(o)try{"a"===String.fromCharCode.apply(null,new Uint8Array([97]))&&(a=!0)}catch(e){}t.CAN_CHARCODE_APPLY=n,t.CAN_CHARCODE_APPLY_TYPED=a;var r=t.APPLY_BUFFER_SIZE=65533;t.APPLY_BUFFER_SIZE_OK=null;var s=!1;-1!=="abcほげ".lastIndexOf("ほげ",1)&&(s=!0),t.STRING_LASTINDEXOF_BUG=s;var i=t.BASE62TABLE="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",l=t.TABLE_LENGTH=i.length,c=Math.max(l,62)-Math.min(l,62);t.BUFFER_MAX=l-1;var u=t.WINDOW_MAX=1024;t.WINDOW_BUFFER_MAX=304;var d=t.COMPRESS_CHUNK_SIZE=r;t.COMPRESS_CHUNK_MAX=d-l;var p=t.DECOMPRESS_CHUNK_SIZE=r;t.DECOMPRESS_CHUNK_MAX=p+2*u,t.LATIN_BUFFER_MAX=132;var h=t.UNICODE_CHAR_MAX=40;t.UNICODE_BUFFER_MAX=h*(h+1),t.LATIN_INDEX=l+1,t.LATIN_INDEX_START=c+20,t.UNICODE_INDEX=l+5,t.DECODE_MAX=l-c-19;var f=t.LATIN_DECODE_MAX=h+7,m=t.CHAR_START=f+1,g=t.COMPRESS_START=m+1,y=t.COMPRESS_FIXED_START=g+5;t.COMPRESS_INDEX=y+5},9797:(e,t,o)=>{var n=o(6391),a=o(8377);function r(e){this._init(e)}r.prototype={_init:function(e){e=e||{},this._result=null,this._onDataCallback=e.onData,this._onEndCallback=e.onEnd},_createTable:function(){for(var e={},t=0;t0&&this._onDataCallback(a.bufferToString_fast(t))}},_onEnd:function(){this._onEndCallback&&this._onEndCallback()},decompress:function(e){if(null==e||0===e.length)return"";this._result=a.stringToArray(a.createWindow());for(var t,o,r,s,i,l,c,u,d,p,h=this._createTable(),f=!1,m=null,g=e.length,y=0;yc&&(u.length=c),d=u.length,u.length>0)for(p=0;p=c));o++);m=null}this._result.length>=n.DECOMPRESS_CHUNK_MAX&&this._onData()}return this._result=this._result.slice(n.WINDOW_MAX),this._onData(!0),this._onEnd(),t=a.bufferToString_fast(this._result),this._result=null,t}},e.exports=r},3135:(e,t,o)=>{var n=o(946),a=o(9797);t.version=o(1014).version,t.compress=function(e,t){return new n(t).compress(e)},t.decompress=function(e,t){return new a(t).decompress(e)}},8377:(e,t,o)=>{var n=o(6391),a=String.fromCharCode;t.createBuffer=function(e,t){if(!n.HAS_TYPED)return new Array(t);switch(e){case 8:return new Uint8Array(t);case 16:return new Uint16Array(t)}};var r=t.truncateBuffer=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};t.bufferToString_fast=function(e,t){if(null==t?t=e.length:e=r(e,t),n.CAN_CHARCODE_APPLY&&n.CAN_CHARCODE_APPLY_TYPED){var o=e.length;if(on.APPLY_BUFFER_SIZE&&(n.APPLY_BUFFER_SIZE_OK=!0),i}catch(e){n.APPLY_BUFFER_SIZE_OK=!1}}return s(e)};var s=t.bufferToString_chunked=function(e){for(var t,o="",r=e.length,s=0;sn.APPLY_BUFFER_SIZE&&(n.APPLY_BUFFER_SIZE_OK=!0);continue}catch(e){n.APPLY_BUFFER_SIZE_OK=!1}return i(e)}o+=a.apply(null,t)}return o},i=t.bufferToString_slow=function(e){for(var t="",o=e.length,n=0;n>7,t=" ";!(e&n.WINDOW_MAX);)t+=t,e<<=1;return t}},7824:e=>{var t=1e3,o=60*t,n=60*o,a=24*n;function r(e,t,o,n){var a=t>=1.5*o;return Math.round(e/o)+" "+n+(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*n;case"minutes":case"minute":case"mins":case"min":case"m":return s*o;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>=n?r(i,l,n,"hour"):l>=o?r(i,l,o,"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>=n?Math.round(e/n)+"h":r>=o?Math.round(e/o)+"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,o)=>{"use strict";o.r(t),o.d(t,{default:()=>y});var n=o(3379),a=o.n(n),r=o(7795),s=o.n(r),i=o(569),l=o.n(i),c=o(3565),u=o.n(c),d=o(9216),p=o.n(d),h=o(4589),f=o.n(h),m=o(450),g={};g.styleTagTransform=f(),g.setAttributes=u(),g.insert=l().bind(null,"head"),g.domAPI=s(),g.insertStyleElement=p(),a()(m.Z,g);const y=m.Z&&m.Z.locals?m.Z.locals:void 0},3379:e=>{"use strict";var t=[];function o(e){for(var o=-1,n=0;n{"use strict";var t={};e.exports=function(e,o){var n=function(e){if(void 0===t[e]){var o=document.querySelector(e);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(e){o=null}t[e]=o}return t[e]}(e);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(o)}},9216:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},3565:(e,t,o)=>{"use strict";e.exports=function(e){var t=o.nc;t&&e.setAttribute("nonce",t)}},7795:e=>{"use strict";e.exports=function(e){var t=e.insertStyleElement(e);return{update:function(o){!function(e,t,o){var n="";o.supports&&(n+="@supports (".concat(o.supports,") {")),o.media&&(n+="@media ".concat(o.media," {"));var a=void 0!==o.layer;a&&(n+="@layer".concat(o.layer.length>0?" ".concat(o.layer):""," {")),n+=o.css,a&&(n+="}"),o.media&&(n+="}"),o.supports&&(n+="}");var r=o.sourceMap;r&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(r))))," */")),t.styleTagTransform(n,e,t.options)}(t,e,o)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},4589:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},6455:function(e){e.exports=function(){"use strict";const e="SweetAlert2:",t=e=>e.charAt(0).toUpperCase()+e.slice(1),o=t=>{console.warn("".concat(e," ").concat("object"==typeof t?t.join(" "):t))},n=t=>{console.error("".concat(e," ").concat(t))},a=[],r=(e,t)=>{var n;n='"'.concat(e,'" is deprecated and will be removed in the next major release. Please use "').concat(t,'" instead.'),a.includes(n)||(a.push(n),o(n))},s=e=>"function"==typeof e?e():e,i=e=>e&&"function"==typeof e.toPromise,l=e=>i(e)?e.toPromise():Promise.resolve(e),c=e=>e&&Promise.resolve(e)===e,u={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,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",color:void 0,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,willOpen:void 0,didOpen:void 0,didRender:void 0,willClose:void 0,didClose:void 0,didDestroy:void 0,scrollbarPadding:!0},d=["allowEscapeKey","allowOutsideClick","background","buttonsStyling","cancelButtonAriaLabel","cancelButtonColor","cancelButtonText","closeButtonAriaLabel","closeButtonHtml","color","confirmButtonAriaLabel","confirmButtonColor","confirmButtonText","currentProgressStep","customClass","denyButtonAriaLabel","denyButtonColor","denyButtonText","didClose","didDestroy","footer","hideClass","html","icon","iconColor","iconHtml","imageAlt","imageHeight","imageUrl","imageWidth","preConfirm","preDeny","progressSteps","returnFocus","reverseButtons","showCancelButton","showCloseButton","showConfirmButton","showDenyButton","text","title","titleText","willClose"],p={},h=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],f=e=>Object.prototype.hasOwnProperty.call(u,e),m=e=>-1!==d.indexOf(e),g=e=>p[e],y=e=>{f(e)||o('Unknown parameter "'.concat(e,'"'))},w=e=>{h.includes(e)&&o('The parameter "'.concat(e,'" is incompatible with toasts'))},b=e=>{g(e)&&r(e,g(e))},_=e=>{const t={};for(const o in e)t[e[o]]="swal2-"+e[o];return t},v=_(["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","show","hide","close","title","html-container","actions","confirm","deny","cancel","default-outline","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","input-label","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loader","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error","no-war"]),k=_(["success","warning","info","question","error"]),C=()=>document.body.querySelector(".".concat(v.container)),E=e=>{const t=C();return t?t.querySelector(e):null},x=e=>E(".".concat(e)),S=()=>x(v.popup),A=()=>x(v.icon),T=()=>x(v.title),P=()=>x(v["html-container"]),I=()=>x(v.image),D=()=>x(v["progress-steps"]),B=()=>x(v["validation-message"]),O=()=>E(".".concat(v.actions," .").concat(v.confirm)),R=()=>E(".".concat(v.actions," .").concat(v.deny)),M=()=>E(".".concat(v.loader)),N=()=>E(".".concat(v.actions," .").concat(v.cancel)),L=()=>x(v.actions),F=()=>x(v.footer),j=()=>x(v["timer-progress-bar"]),H=()=>x(v.close),U=()=>{const e=Array.from(S().querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])')).sort(((e,t)=>{const o=parseInt(e.getAttribute("tabindex")),n=parseInt(t.getAttribute("tabindex"));return o>n?1:o"-1"!==e.getAttribute("tabindex")));return(e=>{const t=[];for(let o=0;ore(e)))},q=()=>G(document.body,v.shown)&&!G(document.body,v["toast-shown"])&&!G(document.body,v["no-backdrop"]),Y=()=>S()&&G(S(),v.toast),W={previousBodyPadding:null},z=(e,t)=>{if(e.textContent="",t){const o=(new DOMParser).parseFromString(t,"text/html");Array.from(o.querySelector("head").childNodes).forEach((t=>{e.appendChild(t)})),Array.from(o.querySelector("body").childNodes).forEach((t=>{e.appendChild(t)}))}},G=(e,t)=>{if(!t)return!1;const o=t.split(/\s+/);for(let t=0;t{if(((e,t)=>{Array.from(e.classList).forEach((o=>{Object.values(v).includes(o)||Object.values(k).includes(o)||Object.values(t.showClass).includes(o)||e.classList.remove(o)}))})(e,t),t.customClass&&t.customClass[n]){if("string"!=typeof t.customClass[n]&&!t.customClass[n].forEach)return o("Invalid type of customClass.".concat(n,'! Expected string or iterable object, got "').concat(typeof t.customClass[n],'"'));$(e,t.customClass[n])}},K=(e,t)=>{if(!t)return null;switch(t){case"select":case"textarea":case"file":return e.querySelector(".".concat(v.popup," > .").concat(v[t]));case"checkbox":return e.querySelector(".".concat(v.popup," > .").concat(v.checkbox," input"));case"radio":return e.querySelector(".".concat(v.popup," > .").concat(v.radio," input:checked"))||e.querySelector(".".concat(v.popup," > .").concat(v.radio," input:first-child"));case"range":return e.querySelector(".".concat(v.popup," > .").concat(v.range," input"));default:return e.querySelector(".".concat(v.popup," > .").concat(v.input))}},X=e=>{if(e.focus(),"file"!==e.type){const t=e.value;e.value="",e.value=t}},Z=(e,t,o)=>{e&&t&&("string"==typeof t&&(t=t.split(/\s+/).filter(Boolean)),t.forEach((t=>{Array.isArray(e)?e.forEach((e=>{o?e.classList.add(t):e.classList.remove(t)})):o?e.classList.add(t):e.classList.remove(t)})))},$=(e,t)=>{Z(e,t,!0)},J=(e,t)=>{Z(e,t,!1)},Q=(e,t)=>{const o=Array.from(e.children);for(let e=0;e{o==="".concat(parseInt(o))&&(o=parseInt(o)),o||0===parseInt(o)?e.style[t]="number"==typeof o?"".concat(o,"px"):o:e.style.removeProperty(t)},te=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"flex";e.style.display=t},oe=e=>{e.style.display="none"},ne=(e,t,o,n)=>{const a=e.querySelector(t);a&&(a.style[o]=n)},ae=function(e,t){t?te(e,arguments.length>2&&void 0!==arguments[2]?arguments[2]:"flex"):oe(e)},re=e=>!(!e||!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)),se=e=>!!(e.scrollHeight>e.clientHeight),ie=e=>{const t=window.getComputedStyle(e),o=parseFloat(t.getPropertyValue("animation-duration")||"0"),n=parseFloat(t.getPropertyValue("transition-duration")||"0");return o>0||n>0},le=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const o=j();re(o)&&(t&&(o.style.transition="none",o.style.width="100%"),setTimeout((()=>{o.style.transition="width ".concat(e/1e3,"s linear"),o.style.width="0%"}),10))},ce=()=>"undefined"==typeof window||"undefined"==typeof document,ue={},de=e=>new Promise((t=>{if(!e)return t();const o=window.scrollX,n=window.scrollY;ue.restoreFocusTimeout=setTimeout((()=>{ue.previousActiveElement instanceof HTMLElement?(ue.previousActiveElement.focus(),ue.previousActiveElement=null):document.body&&document.body.focus(),t()}),100),window.scrollTo(o,n)})),pe='\n
                                \n \n
                                  \n
                                  \n \n

                                  \n
                                  \n \n \n
                                  \n \n \n
                                  \n \n
                                  \n \n \n
                                  \n
                                  \n
                                  \n \n \n \n
                                  \n
                                  \n
                                  \n
                                  \n
                                  \n
                                  \n').replace(/(^|\n)\s*/g,""),he=()=>{ue.currentInstance.resetValidationMessage()},fe=e=>{const t=(()=>{const e=C();return!!e&&(e.remove(),J([document.documentElement,document.body],[v["no-backdrop"],v["toast-shown"],v["has-column"]]),!0)})();if(ce())return void n("SweetAlert2 requires document to initialize");const o=document.createElement("div");o.className=v.container,t&&$(o,v["no-transition"]),z(o,pe);const a="string"==typeof(r=e.target)?document.querySelector(r):r;var r;a.appendChild(o),(e=>{const t=S();t.setAttribute("role",e.toast?"alert":"dialog"),t.setAttribute("aria-live",e.toast?"polite":"assertive"),e.toast||t.setAttribute("aria-modal","true")})(e),(e=>{"rtl"===window.getComputedStyle(e).direction&&$(C(),v.rtl)})(a),(()=>{const e=S(),t=Q(e,v.input),o=Q(e,v.file),n=e.querySelector(".".concat(v.range," input")),a=e.querySelector(".".concat(v.range," output")),r=Q(e,v.select),s=e.querySelector(".".concat(v.checkbox," input")),i=Q(e,v.textarea);t.oninput=he,o.onchange=he,r.onchange=he,s.onchange=he,i.oninput=he,n.oninput=()=>{he(),a.value=n.value},n.onchange=()=>{he(),a.value=n.value}})()},me=(e,t)=>{e instanceof HTMLElement?t.appendChild(e):"object"==typeof e?ge(e,t):e&&z(t,e)},ge=(e,t)=>{e.jquery?ye(t,e):z(t,e.toString())},ye=(e,t)=>{if(e.textContent="",0 in t)for(let o=0;o in t;o++)e.appendChild(t[o].cloneNode(!0));else e.appendChild(t.cloneNode(!0))},we=(()=>{if(ce())return!1;const e=document.createElement("div"),t={WebkitAnimation:"webkitAnimationEnd",animation:"animationend"};for(const o in t)if(Object.prototype.hasOwnProperty.call(t,o)&&void 0!==e.style[o])return t[o];return!1})(),be=(e,t)=>{const o=L(),n=M();t.showConfirmButton||t.showDenyButton||t.showCancelButton?te(o):oe(o),V(o,t,"actions"),function(e,t,o){const n=O(),a=R(),r=N();_e(n,"confirm",o),_e(a,"deny",o),_e(r,"cancel",o),function(e,t,o,n){if(!n.buttonsStyling)return J([e,t,o],v.styled);$([e,t,o],v.styled),n.confirmButtonColor&&(e.style.backgroundColor=n.confirmButtonColor,$(e,v["default-outline"])),n.denyButtonColor&&(t.style.backgroundColor=n.denyButtonColor,$(t,v["default-outline"])),n.cancelButtonColor&&(o.style.backgroundColor=n.cancelButtonColor,$(o,v["default-outline"]))}(n,a,r,o),o.reverseButtons&&(o.toast?(e.insertBefore(r,n),e.insertBefore(a,n)):(e.insertBefore(r,t),e.insertBefore(a,t),e.insertBefore(n,t)))}(o,n,t),z(n,t.loaderHtml),V(n,t,"loader")};function _e(e,o,n){ae(e,n["show".concat(t(o),"Button")],"inline-block"),z(e,n["".concat(o,"ButtonText")]),e.setAttribute("aria-label",n["".concat(o,"ButtonAriaLabel")]),e.className=v[o],V(e,n,"".concat(o,"Button")),$(e,n["".concat(o,"ButtonClass")])}const ve=(e,t)=>{const n=C();n&&(function(e,t){"string"==typeof t?e.style.background=t:t||$([document.documentElement,document.body],v["no-backdrop"])}(n,t.backdrop),function(e,t){t in v?$(e,v[t]):(o('The "position" parameter is not valid, defaulting to "center"'),$(e,v.center))}(n,t.position),function(e,t){if(t&&"string"==typeof t){const o="grow-".concat(t);o in v&&$(e,v[o])}}(n,t.grow),V(n,t,"container"))};var ke={awaitingPromise:new WeakMap,promise:new WeakMap,innerParams:new WeakMap,domCache:new WeakMap};const Ce=["input","file","range","select","radio","checkbox","textarea"],Ee=e=>{if(!De[e.input])return n('Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "'.concat(e.input,'"'));const t=Pe(e.input),o=De[e.input](t,e);te(t),setTimeout((()=>{X(o)}))},xe=(e,t)=>{const o=K(S(),e);if(o){(e=>{for(let t=0;t{const t=Pe(e.input);"object"==typeof e.customClass&&$(t,e.customClass.input)},Ae=(e,t)=>{e.placeholder&&!t.inputPlaceholder||(e.placeholder=t.inputPlaceholder)},Te=(e,t,o)=>{if(o.inputLabel){e.id=v.input;const n=document.createElement("label"),a=v["input-label"];n.setAttribute("for",e.id),n.className=a,"object"==typeof o.customClass&&$(n,o.customClass.inputLabel),n.innerText=o.inputLabel,t.insertAdjacentElement("beforebegin",n)}},Pe=e=>Q(S(),v[e]||v.input),Ie=(e,t)=>{["string","number"].includes(typeof t)?e.value="".concat(t):c(t)||o('Unexpected type of inputValue! Expected "string", "number" or "Promise", got "'.concat(typeof t,'"'))},De={};De.text=De.email=De.password=De.number=De.tel=De.url=(e,t)=>(Ie(e,t.inputValue),Te(e,e,t),Ae(e,t),e.type=t.input,e),De.file=(e,t)=>(Te(e,e,t),Ae(e,t),e),De.range=(e,t)=>{const o=e.querySelector("input"),n=e.querySelector("output");return Ie(o,t.inputValue),o.type=t.input,Ie(n,t.inputValue),Te(o,e,t),e},De.select=(e,t)=>{if(e.textContent="",t.inputPlaceholder){const o=document.createElement("option");z(o,t.inputPlaceholder),o.value="",o.disabled=!0,o.selected=!0,e.appendChild(o)}return Te(e,e,t),e},De.radio=e=>(e.textContent="",e),De.checkbox=(e,t)=>{const o=K(S(),"checkbox");o.value="1",o.id=v.checkbox,o.checked=Boolean(t.inputValue);const n=e.querySelector("span");return z(n,t.inputPlaceholder),o},De.textarea=(e,t)=>{Ie(e,t.inputValue),Ae(e,t),Te(e,e,t);return setTimeout((()=>{if("MutationObserver"in window){const t=parseInt(window.getComputedStyle(S()).width);new MutationObserver((()=>{const o=e.offsetWidth+(n=e,parseInt(window.getComputedStyle(n).marginLeft)+parseInt(window.getComputedStyle(n).marginRight));var n;S().style.width=o>t?"".concat(o,"px"):null})).observe(e,{attributes:!0,attributeFilter:["style"]})}})),e};const Be=(e,t)=>{const o=P();V(o,t,"htmlContainer"),t.html?(me(t.html,o),te(o,"block")):t.text?(o.textContent=t.text,te(o,"block")):oe(o),((e,t)=>{const o=S(),n=ke.innerParams.get(e),a=!n||t.input!==n.input;Ce.forEach((e=>{const n=Q(o,v[e]);xe(e,t.inputAttributes),n.className=v[e],a&&oe(n)})),t.input&&(a&&Ee(t),Se(t))})(e,t)},Oe=(e,t)=>{for(const o in k)t.icon!==o&&J(e,k[o]);$(e,k[t.icon]),Ne(e,t),Re(),V(e,t,"icon")},Re=()=>{const e=S(),t=window.getComputedStyle(e).getPropertyValue("background-color"),o=e.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");for(let e=0;e{let o,n=e.innerHTML;t.iconHtml?o=Le(t.iconHtml):"success"===t.icon?(o='\n
                                  \n \n
                                  \n
                                  \n',n=n.replace(/ style=".*?"/g,"")):o="error"===t.icon?'\n \n \n \n \n':Le({question:"?",warning:"!",info:"i"}[t.icon]),n.trim()!==o.trim()&&z(e,o)},Ne=(e,t)=>{if(t.iconColor){e.style.color=t.iconColor,e.style.borderColor=t.iconColor;for(const o of[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"])ne(e,o,"backgroundColor",t.iconColor);ne(e,".swal2-success-ring","borderColor",t.iconColor)}},Le=e=>'
                                  ').concat(e,"
                                  "),Fe=e=>{const t=document.createElement("li");return $(t,v["progress-step"]),z(t,e),t},je=e=>{const t=document.createElement("li");return $(t,v["progress-step-line"]),e.progressStepsDistance&&ee(t,"width",e.progressStepsDistance),t},He=(e,t)=>{e.className="".concat(v.popup," ").concat(re(e)?t.showClass.popup:""),t.toast?($([document.documentElement,document.body],v["toast-shown"]),$(e,v.toast)):$(e,v.modal),V(e,t,"popup"),"string"==typeof t.customClass&&$(e,t.customClass),t.icon&&$(e,v["icon-".concat(t.icon)])},Ue=(e,t)=>{((e,t)=>{const o=C(),n=S();t.toast?(ee(o,"width",t.width),n.style.width="100%",n.insertBefore(M(),A())):ee(n,"width",t.width),ee(n,"padding",t.padding),t.color&&(n.style.color=t.color),t.background&&(n.style.background=t.background),oe(B()),He(n,t)})(0,t),ve(0,t),((e,t)=>{const n=D();if(!t.progressSteps||0===t.progressSteps.length)return oe(n);te(n),n.textContent="",t.currentProgressStep>=t.progressSteps.length&&o("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),t.progressSteps.forEach(((e,o)=>{const a=Fe(e);if(n.appendChild(a),o===t.currentProgressStep&&$(a,v["active-progress-step"]),o!==t.progressSteps.length-1){const e=je(t);n.appendChild(e)}}))})(0,t),((e,t)=>{const o=ke.innerParams.get(e),a=A();if(o&&t.icon===o.icon)return Me(a,t),void Oe(a,t);if(t.icon||t.iconHtml){if(t.icon&&-1===Object.keys(k).indexOf(t.icon))return n('Unknown icon! Expected "success", "error", "warning", "info" or "question", got "'.concat(t.icon,'"')),void oe(a);te(a),Me(a,t),Oe(a,t),$(a,t.showClass.icon)}else oe(a)})(e,t),((e,t)=>{const o=I();if(!t.imageUrl)return oe(o);te(o,""),o.setAttribute("src",t.imageUrl),o.setAttribute("alt",t.imageAlt),ee(o,"width",t.imageWidth),ee(o,"height",t.imageHeight),o.className=v.image,V(o,t,"image")})(0,t),((e,t)=>{const o=T();ae(o,t.title||t.titleText,"block"),t.title&&me(t.title,o),t.titleText&&(o.innerText=t.titleText),V(o,t,"title")})(0,t),((e,t)=>{const o=H();z(o,t.closeButtonHtml),V(o,t,"closeButton"),ae(o,t.showCloseButton),o.setAttribute("aria-label",t.closeButtonAriaLabel)})(0,t),Be(e,t),be(0,t),((e,t)=>{const o=F();ae(o,t.footer),t.footer&&me(t.footer,o),V(o,t,"footer")})(0,t),"function"==typeof t.didRender&&t.didRender(S())},qe=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),Ye=()=>{Array.from(document.body.children).forEach((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")}))},We=["swal-title","swal-html","swal-footer"],ze=e=>{const t={};return Array.from(e.querySelectorAll("swal-param")).forEach((e=>{Je(e,["name","value"]);const o=e.getAttribute("name"),n=e.getAttribute("value");"boolean"==typeof u[o]&&"false"===n&&(t[o]=!1),"object"==typeof u[o]&&(t[o]=JSON.parse(n))})),t},Ge=e=>{const o={};return Array.from(e.querySelectorAll("swal-button")).forEach((e=>{Je(e,["type","color","aria-label"]);const n=e.getAttribute("type");o["".concat(n,"ButtonText")]=e.innerHTML,o["show".concat(t(n),"Button")]=!0,e.hasAttribute("color")&&(o["".concat(n,"ButtonColor")]=e.getAttribute("color")),e.hasAttribute("aria-label")&&(o["".concat(n,"ButtonAriaLabel")]=e.getAttribute("aria-label"))})),o},Ve=e=>{const t={},o=e.querySelector("swal-image");return o&&(Je(o,["src","width","height","alt"]),o.hasAttribute("src")&&(t.imageUrl=o.getAttribute("src")),o.hasAttribute("width")&&(t.imageWidth=o.getAttribute("width")),o.hasAttribute("height")&&(t.imageHeight=o.getAttribute("height")),o.hasAttribute("alt")&&(t.imageAlt=o.getAttribute("alt"))),t},Ke=e=>{const t={},o=e.querySelector("swal-icon");return o&&(Je(o,["type","color"]),o.hasAttribute("type")&&(t.icon=o.getAttribute("type")),o.hasAttribute("color")&&(t.iconColor=o.getAttribute("color")),t.iconHtml=o.innerHTML),t},Xe=e=>{const t={},o=e.querySelector("swal-input");o&&(Je(o,["type","label","placeholder","value"]),t.input=o.getAttribute("type")||"text",o.hasAttribute("label")&&(t.inputLabel=o.getAttribute("label")),o.hasAttribute("placeholder")&&(t.inputPlaceholder=o.getAttribute("placeholder")),o.hasAttribute("value")&&(t.inputValue=o.getAttribute("value")));const n=Array.from(e.querySelectorAll("swal-input-option"));return n.length&&(t.inputOptions={},n.forEach((e=>{Je(e,["value"]);const o=e.getAttribute("value"),n=e.innerHTML;t.inputOptions[o]=n}))),t},Ze=(e,t)=>{const o={};for(const n in t){const a=t[n],r=e.querySelector(a);r&&(Je(r,[]),o[a.replace(/^swal-/,"")]=r.innerHTML.trim())}return o},$e=e=>{const t=We.concat(["swal-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Array.from(e.children).forEach((e=>{const n=e.tagName.toLowerCase();-1===t.indexOf(n)&&o("Unrecognized element <".concat(n,">"))}))},Je=(e,t)=>{Array.from(e.attributes).forEach((n=>{-1===t.indexOf(n.name)&&o(['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.")])}))};var Qe={email:(e,t)=>/^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]{2,24}$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid email address"),url:(e,t)=>/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid URL")};function et(e){(function(e){e.inputValidator||Object.keys(Qe).forEach((t=>{e.input===t&&(e.inputValidator=Qe[t])}))})(e),e.showLoaderOnConfirm&&!e.preConfirm&&o("showLoaderOnConfirm is set to true, but preConfirm is not defined.\nshowLoaderOnConfirm should be used together with preConfirm, see usage example:\nhttps://sweetalert2.github.io/#ajax-request"),function(e){(!e.target||"string"==typeof e.target&&!document.querySelector(e.target)||"string"!=typeof e.target&&!e.target.appendChild)&&(o('Target parameter is not valid, defaulting to "body"'),e.target="body")}(e),"string"==typeof e.title&&(e.title=e.title.split("\n").join("
                                  ")),fe(e)}class tt{constructor(e,t){this.callback=e,this.remaining=t,this.running=!1,this.start()}start(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}stop(){return this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=(new Date).getTime()-this.started.getTime()),this.remaining}increase(e){const t=this.running;return t&&this.stop(),this.remaining+=e,t&&this.start(),this.remaining}getTimerLeft(){return this.running&&(this.stop(),this.start()),this.remaining}isRunning(){return this.running}}const ot=()=>{null===W.previousBodyPadding&&document.body.scrollHeight>window.innerHeight&&(W.previousBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight="".concat(W.previousBodyPadding+(()=>{const e=document.createElement("div");e.className=v["scrollbar-measure"],document.body.appendChild(e);const t=e.getBoundingClientRect().width-e.clientWidth;return document.body.removeChild(e),t})(),"px"))},nt=()=>{const e=navigator.userAgent,t=!!e.match(/iPad/i)||!!e.match(/iPhone/i),o=!!e.match(/WebKit/i);if(t&&o&&!e.match(/CriOS/i)){const e=44;S().scrollHeight>window.innerHeight-e&&(C().style.paddingBottom="".concat(e,"px"))}},at=()=>{const e=C();let t;e.ontouchstart=e=>{t=rt(e)},e.ontouchmove=e=>{t&&(e.preventDefault(),e.stopPropagation())}},rt=e=>{const t=e.target,o=C();return!(st(e)||it(e)||t!==o&&(se(o)||!(t instanceof HTMLElement)||"INPUT"===t.tagName||"TEXTAREA"===t.tagName||se(P())&&P().contains(t)))},st=e=>e.touches&&e.touches.length&&"stylus"===e.touches[0].touchType,it=e=>e.touches&&e.touches.length>1,lt=e=>{const t=C(),o=S();"function"==typeof e.willOpen&&e.willOpen(o);const n=window.getComputedStyle(document.body).overflowY;pt(t,o,e),setTimeout((()=>{ut(t,o)}),10),q()&&(dt(t,e.scrollbarPadding,n),Array.from(document.body.children).forEach((e=>{e===C()||e.contains(C())||(e.hasAttribute("aria-hidden")&&e.setAttribute("data-previous-aria-hidden",e.getAttribute("aria-hidden")),e.setAttribute("aria-hidden","true"))}))),Y()||ue.previousActiveElement||(ue.previousActiveElement=document.activeElement),"function"==typeof e.didOpen&&setTimeout((()=>e.didOpen(o))),J(t,v["no-transition"])},ct=e=>{const t=S();if(e.target!==t)return;const o=C();t.removeEventListener(we,ct),o.style.overflowY="auto"},ut=(e,t)=>{we&&ie(t)?(e.style.overflowY="hidden",t.addEventListener(we,ct)):e.style.overflowY="auto"},dt=(e,t,o)=>{(()=>{if((/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)&&!G(document.body,v.iosfix)){const e=document.body.scrollTop;document.body.style.top="".concat(-1*e,"px"),$(document.body,v.iosfix),at(),nt()}})(),t&&"hidden"!==o&&ot(),setTimeout((()=>{e.scrollTop=0}))},pt=(e,t,o)=>{$(e,o.showClass.backdrop),t.style.setProperty("opacity","0","important"),te(t,"grid"),setTimeout((()=>{$(t,o.showClass.popup),t.style.removeProperty("opacity")}),10),$([document.documentElement,document.body],v.shown),o.heightAuto&&o.backdrop&&!o.toast&&$([document.documentElement,document.body],v["height-auto"])},ht=e=>{let t=S();t||new Ao,t=S();const o=M();Y()?oe(A()):ft(t,e),te(o),t.setAttribute("data-loading","true"),t.setAttribute("aria-busy","true"),t.focus()},ft=(e,t)=>{const o=L(),n=M();!t&&re(O())&&(t=O()),te(o),t&&(oe(t),n.setAttribute("data-button-to-replace",t.className)),n.parentNode.insertBefore(n,t),$([e,o],v.loading)},mt=e=>e.checked?1:0,gt=e=>e.checked?e.value:null,yt=e=>e.files.length?null!==e.getAttribute("multiple")?e.files:e.files[0]:null,wt=(e,t)=>{const o=S(),a=e=>_t[t.input](o,vt(e),t);i(t.inputOptions)||c(t.inputOptions)?(ht(O()),l(t.inputOptions).then((t=>{e.hideLoading(),a(t)}))):"object"==typeof t.inputOptions?a(t.inputOptions):n("Unexpected type of inputOptions! Expected object, Map or Promise, got ".concat(typeof t.inputOptions))},bt=(e,t)=>{const o=e.getInput();oe(o),l(t.inputValue).then((n=>{o.value="number"===t.input?parseFloat(n)||0:"".concat(n),te(o),o.focus(),e.hideLoading()})).catch((t=>{n("Error in inputValue promise: ".concat(t)),o.value="",te(o),o.focus(),e.hideLoading()}))},_t={select:(e,t,o)=>{const n=Q(e,v.select),a=(e,t,n)=>{const a=document.createElement("option");a.value=n,z(a,t),a.selected=kt(n,o.inputValue),e.appendChild(a)};t.forEach((e=>{const t=e[0],o=e[1];if(Array.isArray(o)){const e=document.createElement("optgroup");e.label=t,e.disabled=!1,n.appendChild(e),o.forEach((t=>a(e,t[1],t[0])))}else a(n,o,t)})),n.focus()},radio:(e,t,o)=>{const n=Q(e,v.radio);t.forEach((e=>{const t=e[0],a=e[1],r=document.createElement("input"),s=document.createElement("label");r.type="radio",r.name=v.radio,r.value=t,kt(t,o.inputValue)&&(r.checked=!0);const i=document.createElement("span");z(i,a),i.className=v.label,s.appendChild(r),s.appendChild(i),n.appendChild(s)}));const a=n.querySelectorAll("input");a.length&&a[0].focus()}},vt=e=>{const t=[];return"undefined"!=typeof Map&&e instanceof Map?e.forEach(((e,o)=>{let n=e;"object"==typeof n&&(n=vt(n)),t.push([o,n])})):Object.keys(e).forEach((o=>{let n=e[o];"object"==typeof n&&(n=vt(n)),t.push([o,n])})),t},kt=(e,t)=>t&&t.toString()===e.toString();function Ct(){const e=ke.innerParams.get(this);if(!e)return;const t=ke.domCache.get(this);oe(t.loader),Y()?e.icon&&te(A()):Et(t),J([t.popup,t.actions],v.loading),t.popup.removeAttribute("aria-busy"),t.popup.removeAttribute("data-loading"),t.confirmButton.disabled=!1,t.denyButton.disabled=!1,t.cancelButton.disabled=!1}const Et=e=>{const t=e.popup.getElementsByClassName(e.loader.getAttribute("data-button-to-replace"));t.length?te(t[0],"inline-block"):!re(O())&&!re(R())&&!re(N())&&oe(e.actions)};var xt={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};const St=()=>O()&&O().click(),At=e=>{e.keydownTarget&&e.keydownHandlerAdded&&(e.keydownTarget.removeEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!1)},Tt=(e,t,o)=>{const n=U();if(n.length)return(t+=o)===n.length?t=0:-1===t&&(t=n.length-1),n[t].focus();S().focus()},Pt=["ArrowRight","ArrowDown"],It=["ArrowLeft","ArrowUp"],Dt=(e,t,o)=>{const n=ke.innerParams.get(e);n&&(t.isComposing||229===t.keyCode||(n.stopKeydownPropagation&&t.stopPropagation(),"Enter"===t.key?Bt(e,t,n):"Tab"===t.key?Ot(t,n):[...Pt,...It].includes(t.key)?Rt(t.key):"Escape"===t.key&&Mt(t,n,o)))},Bt=(e,t,o)=>{if(s(o.allowEnterKey)&&t.target&&e.getInput()&&t.target instanceof HTMLElement&&t.target.outerHTML===e.getInput().outerHTML){if(["textarea","file"].includes(o.input))return;St(),t.preventDefault()}},Ot=(e,t)=>{const o=e.target,n=U();let a=-1;for(let e=0;e{const t=O(),o=R(),n=N();if(document.activeElement instanceof HTMLElement&&![t,o,n].includes(document.activeElement))return;const a=Pt.includes(e)?"nextElementSibling":"previousElementSibling";let r=document.activeElement;for(let e=0;e{s(t.allowEscapeKey)&&(e.preventDefault(),o(qe.esc))};function Nt(e,t,o,n){Y()?Yt(e,n):(de(o).then((()=>Yt(e,n))),At(ue)),/^((?!chrome|android).)*safari/i.test(navigator.userAgent)?(t.setAttribute("style","display:none !important"),t.removeAttribute("class"),t.innerHTML=""):t.remove(),q()&&(null!==W.previousBodyPadding&&(document.body.style.paddingRight="".concat(W.previousBodyPadding,"px"),W.previousBodyPadding=null),(()=>{if(G(document.body,v.iosfix)){const e=parseInt(document.body.style.top,10);J(document.body,v.iosfix),document.body.style.top="",document.body.scrollTop=-1*e}})(),Ye()),J([document.documentElement,document.body],[v.shown,v["height-auto"],v["no-backdrop"],v["toast-shown"]])}function Lt(e){e=Ht(e);const t=xt.swalPromiseResolve.get(this),o=Ft(this);this.isAwaitingPromise()?e.isDismissed||(jt(this),t(e)):o&&t(e)}const Ft=e=>{const t=S();if(!t)return!1;const o=ke.innerParams.get(e);if(!o||G(t,o.hideClass.popup))return!1;J(t,o.showClass.popup),$(t,o.hideClass.popup);const n=C();return J(n,o.showClass.backdrop),$(n,o.hideClass.backdrop),Ut(e,t,o),!0};const jt=e=>{e.isAwaitingPromise()&&(ke.awaitingPromise.delete(e),ke.innerParams.get(e)||e._destroy())},Ht=e=>void 0===e?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},e),Ut=(e,t,o)=>{const n=C(),a=we&&ie(t);"function"==typeof o.willClose&&o.willClose(t),a?qt(e,t,n,o.returnFocus,o.didClose):Nt(e,n,o.returnFocus,o.didClose)},qt=(e,t,o,n,a)=>{ue.swalCloseEventFinishedCallback=Nt.bind(null,e,o,n,a),t.addEventListener(we,(function(e){e.target===t&&(ue.swalCloseEventFinishedCallback(),delete ue.swalCloseEventFinishedCallback)}))},Yt=(e,t)=>{setTimeout((()=>{"function"==typeof t&&t.bind(e.params)(),e._destroy()}))};function Wt(e,t,o){const n=ke.domCache.get(e);t.forEach((e=>{n[e].disabled=o}))}function zt(e,t){if(!e)return!1;if("radio"===e.type){const o=e.parentNode.parentNode.querySelectorAll("input");for(let e=0;e{const t={};return Object.keys(e).forEach((n=>{m(n)?t[n]=e[n]:o("Invalid parameter to update: ".concat(n))})),t};const Vt=e=>{Kt(e),delete e.params,delete ue.keydownHandler,delete ue.keydownTarget,delete ue.currentInstance},Kt=e=>{e.isAwaitingPromise()?(Xt(ke,e),ke.awaitingPromise.set(e,!0)):(Xt(xt,e),Xt(ke,e))},Xt=(e,t)=>{for(const o in e)e[o].delete(t)};var Zt=Object.freeze({hideLoading:Ct,disableLoading:Ct,getInput:function(e){const t=ke.innerParams.get(e||this),o=ke.domCache.get(e||this);return o?K(o.popup,t.input):null},close:Lt,isAwaitingPromise:function(){return!!ke.awaitingPromise.get(this)},rejectPromise:function(e){const t=xt.swalPromiseReject.get(this);jt(this),t&&t(e)},handleAwaitingPromise:jt,closePopup:Lt,closeModal:Lt,closeToast:Lt,enableButtons:function(){Wt(this,["confirmButton","denyButton","cancelButton"],!1)},disableButtons:function(){Wt(this,["confirmButton","denyButton","cancelButton"],!0)},enableInput:function(){return zt(this.getInput(),!1)},disableInput:function(){return zt(this.getInput(),!0)},showValidationMessage:function(e){const t=ke.domCache.get(this),o=ke.innerParams.get(this);z(t.validationMessage,e),t.validationMessage.className=v["validation-message"],o.customClass&&o.customClass.validationMessage&&$(t.validationMessage,o.customClass.validationMessage),te(t.validationMessage);const n=this.getInput();n&&(n.setAttribute("aria-invalid",!0),n.setAttribute("aria-describedby",v["validation-message"]),X(n),$(n,v.inputerror))},resetValidationMessage:function(){const e=ke.domCache.get(this);e.validationMessage&&oe(e.validationMessage);const t=this.getInput();t&&(t.removeAttribute("aria-invalid"),t.removeAttribute("aria-describedby"),J(t,v.inputerror))},getProgressSteps:function(){return ke.domCache.get(this).progressSteps},update:function(e){const t=S(),n=ke.innerParams.get(this);if(!t||G(t,n.hideClass.popup))return o("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.");const a=Gt(e),r=Object.assign({},n,a);Ue(this,r),ke.innerParams.set(this,r),Object.defineProperties(this,{params:{value:Object.assign({},this.params,e),writable:!1,enumerable:!0}})},_destroy:function(){const e=ke.domCache.get(this),t=ke.innerParams.get(this);t?(e.popup&&ue.swalCloseEventFinishedCallback&&(ue.swalCloseEventFinishedCallback(),delete ue.swalCloseEventFinishedCallback),"function"==typeof t.didDestroy&&t.didDestroy(),Vt(this)):Kt(this)}});const $t=(e,o)=>{const a=ke.innerParams.get(e);if(!a.input)return void n('The "input" parameter is needed to be set when using returnInputValueOn'.concat(t(o)));const r=((e,t)=>{const o=e.getInput();if(!o)return null;switch(t.input){case"checkbox":return mt(o);case"radio":return gt(o);case"file":return yt(o);default:return t.inputAutoTrim?o.value.trim():o.value}})(e,a);a.inputValidator?Jt(e,r,o):e.getInput().checkValidity()?"deny"===o?Qt(e,r):oo(e,r):(e.enableButtons(),e.showValidationMessage(a.validationMessage))},Jt=(e,t,o)=>{const n=ke.innerParams.get(e);e.disableInput(),Promise.resolve().then((()=>l(n.inputValidator(t,n.validationMessage)))).then((n=>{e.enableButtons(),e.enableInput(),n?e.showValidationMessage(n):"deny"===o?Qt(e,t):oo(e,t)}))},Qt=(e,t)=>{const o=ke.innerParams.get(e||void 0);o.showLoaderOnDeny&&ht(R()),o.preDeny?(ke.awaitingPromise.set(e||void 0,!0),Promise.resolve().then((()=>l(o.preDeny(t,o.validationMessage)))).then((o=>{!1===o?(e.hideLoading(),jt(e)):e.close({isDenied:!0,value:void 0===o?t:o})})).catch((t=>to(e||void 0,t)))):e.close({isDenied:!0,value:t})},eo=(e,t)=>{e.close({isConfirmed:!0,value:t})},to=(e,t)=>{e.rejectPromise(t)},oo=(e,t)=>{const o=ke.innerParams.get(e||void 0);o.showLoaderOnConfirm&&ht(),o.preConfirm?(e.resetValidationMessage(),ke.awaitingPromise.set(e||void 0,!0),Promise.resolve().then((()=>l(o.preConfirm(t,o.validationMessage)))).then((o=>{re(B())||!1===o?(e.hideLoading(),jt(e)):eo(e,void 0===o?t:o)})).catch((t=>to(e||void 0,t)))):eo(e,t)},no=(e,t,o)=>{t.popup.onclick=()=>{const t=ke.innerParams.get(e);t&&(ao(t)||t.timer||t.input)||o(qe.close)}},ao=e=>e.showConfirmButton||e.showDenyButton||e.showCancelButton||e.showCloseButton;let ro=!1;const so=e=>{e.popup.onmousedown=()=>{e.container.onmouseup=function(t){e.container.onmouseup=void 0,t.target===e.container&&(ro=!0)}}},io=e=>{e.container.onmousedown=()=>{e.popup.onmouseup=function(t){e.popup.onmouseup=void 0,(t.target===e.popup||e.popup.contains(t.target))&&(ro=!0)}}},lo=(e,t,o)=>{t.container.onclick=n=>{const a=ke.innerParams.get(e);ro?ro=!1:n.target===t.container&&s(a.allowOutsideClick)&&o(qe.backdrop)}},co=e=>e instanceof Element||(e=>"object"==typeof e&&e.jquery)(e);const uo=()=>{if(ue.timeout)return(()=>{const e=j(),t=parseInt(window.getComputedStyle(e).width);e.style.removeProperty("transition"),e.style.width="100%";const o=t/parseInt(window.getComputedStyle(e).width)*100;e.style.removeProperty("transition"),e.style.width="".concat(o,"%")})(),ue.timeout.stop()},po=()=>{if(ue.timeout){const e=ue.timeout.start();return le(e),e}};let ho=!1;const fo={};const mo=e=>{for(let t=e.target;t&&t!==document;t=t.parentNode)for(const e in fo){const o=t.getAttribute(e);if(o)return void fo[e].fire({template:o})}};var go=Object.freeze({isValidParameter:f,isUpdatableParameter:m,isDeprecatedParameter:g,argsToParams:e=>{const t={};return"object"!=typeof e[0]||co(e[0])?["title","html","icon"].forEach(((o,a)=>{const r=e[a];"string"==typeof r||co(r)?t[o]=r:void 0!==r&&n("Unexpected type of ".concat(o,'! Expected "string" or "Element", got ').concat(typeof r))})):Object.assign(t,e[0]),t},isVisible:()=>re(S()),clickConfirm:St,clickDeny:()=>R()&&R().click(),clickCancel:()=>N()&&N().click(),getContainer:C,getPopup:S,getTitle:T,getHtmlContainer:P,getImage:I,getIcon:A,getInputLabel:()=>x(v["input-label"]),getCloseButton:H,getActions:L,getConfirmButton:O,getDenyButton:R,getCancelButton:N,getLoader:M,getFooter:F,getTimerProgressBar:j,getFocusableElements:U,getValidationMessage:B,isLoading:()=>S().hasAttribute("data-loading"),fire:function(){const e=this;for(var t=arguments.length,o=new Array(t),n=0;nue.timeout&&ue.timeout.getTimerLeft(),stopTimer:uo,resumeTimer:po,toggleTimer:()=>{const e=ue.timeout;return e&&(e.running?uo():po())},increaseTimer:e=>{if(ue.timeout){const t=ue.timeout.increase(e);return le(t,!0),t}},isTimerRunning:()=>ue.timeout&&ue.timeout.isRunning(),bindClickHandler:function(){fo[arguments.length>0&&void 0!==arguments[0]?arguments[0]:"data-swal-template"]=this,ho||(document.body.addEventListener("click",mo),ho=!0)}});let yo;class wo{constructor(){if("undefined"==typeof window)return;yo=this;for(var e=arguments.length,t=new Array(e),o=0;o1&&void 0!==arguments[1]?arguments[1]:{};(e=>{!e.backdrop&&e.allowOutsideClick&&o('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');for(const t in e)y(t),e.toast&&w(t),b(t)})(Object.assign({},t,e)),ue.currentInstance&&(ue.currentInstance._destroy(),q()&&Ye()),ue.currentInstance=yo;const n=_o(e,t);et(n),Object.freeze(n),ue.timeout&&(ue.timeout.stop(),delete ue.timeout),clearTimeout(ue.restoreFocusTimeout);const a=vo(yo);return Ue(yo,n),ke.innerParams.set(yo,n),bo(yo,a,n)}then(e){return ke.promise.get(this).then(e)}finally(e){return ke.promise.get(this).finally(e)}}const bo=(e,t,o)=>new Promise(((n,a)=>{const r=t=>{e.closePopup({isDismissed:!0,dismiss:t})};xt.swalPromiseResolve.set(e,n),xt.swalPromiseReject.set(e,a),t.confirmButton.onclick=()=>(e=>{const t=ke.innerParams.get(e);e.disableButtons(),t.input?$t(e,"confirm"):oo(e,!0)})(e),t.denyButton.onclick=()=>(e=>{const t=ke.innerParams.get(e);e.disableButtons(),t.returnInputValueOnDeny?$t(e,"deny"):Qt(e,!1)})(e),t.cancelButton.onclick=()=>((e,t)=>{e.disableButtons(),t(qe.cancel)})(e,r),t.closeButton.onclick=()=>r(qe.close),((e,t,o)=>{ke.innerParams.get(e).toast?no(e,t,o):(so(t),io(t),lo(e,t,o))})(e,t,r),((e,t,o,n)=>{At(t),o.toast||(t.keydownHandler=t=>Dt(e,t,n),t.keydownTarget=o.keydownListenerCapture?window:S(),t.keydownListenerCapture=o.keydownListenerCapture,t.keydownTarget.addEventListener("keydown",t.keydownHandler,{capture:t.keydownListenerCapture}),t.keydownHandlerAdded=!0)})(e,ue,o,r),((e,t)=>{"select"===t.input||"radio"===t.input?wt(e,t):["text","email","number","tel","textarea"].includes(t.input)&&(i(t.inputValue)||c(t.inputValue))&&(ht(O()),bt(e,t))})(e,o),lt(o),ko(ue,o,r),Co(t,o),setTimeout((()=>{t.container.scrollTop=0}))})),_o=(e,t)=>{const o=(e=>{const t="string"==typeof e.template?document.querySelector(e.template):e.template;if(!t)return{};const o=t.content;return $e(o),Object.assign(ze(o),Ge(o),Ve(o),Ke(o),Xe(o),Ze(o,We))})(e),n=Object.assign({},u,t,o,e);return n.showClass=Object.assign({},u.showClass,n.showClass),n.hideClass=Object.assign({},u.hideClass,n.hideClass),n},vo=e=>{const t={popup:S(),container:C(),actions:L(),confirmButton:O(),denyButton:R(),cancelButton:N(),loader:M(),closeButton:H(),validationMessage:B(),progressSteps:D()};return ke.domCache.set(e,t),t},ko=(e,t,o)=>{const n=j();oe(n),t.timer&&(e.timeout=new tt((()=>{o("timer"),delete e.timeout}),t.timer),t.timerProgressBar&&(te(n),V(n,t,"timerProgressBar"),setTimeout((()=>{e.timeout&&e.timeout.running&&le(t.timer)}))))},Co=(e,t)=>{if(!t.toast)return s(t.allowEnterKey)?void(Eo(e,t)||Tt(0,-1,1)):xo()},Eo=(e,t)=>t.focusDeny&&re(e.denyButton)?(e.denyButton.focus(),!0):t.focusCancel&&re(e.cancelButton)?(e.cancelButton.focus(),!0):!(!t.focusConfirm||!re(e.confirmButton)||(e.confirmButton.focus(),0)),xo=()=>{document.activeElement instanceof HTMLElement&&"function"==typeof document.activeElement.blur&&document.activeElement.blur()};if("undefined"!=typeof window&&/^ru\b/.test(navigator.language)&&location.host.match(/\.(ru|su|xn--p1ai)$/)&&Math.random()<.1){const e=document.createElement("div");e.className="leave-russia-now-and-apply-your-skills-to-the-world";const t=(So=[{text:"В нижеприведённом видео объясняется как каждый из нас может помочь в том,\n чтобы эта бессмысленная и бесчеловечная война остановилась:",id:"4CfDhaRkw7I"},{text:"Эмпатия - главное человеческое чувство. Способность сопереживать. Способность поставить себя на место другого.",id:"s-GLAIY4DXA"}])[Math.floor(Math.random()*So.length)];z(e,"\n
                                  \n Если мы не остановим войну, она придет в дом каждого из нас и её последствия будут ужасающими.\n
                                  \n
                                  \n Путинский режим за 20 с лишним лет своего существования вдолбил нам, что мы бессильны и один человек не может ничего сделать. Это не так!\n
                                  \n
                                  \n ".concat(t.text,'\n
                                  \n \n
                                  \n Нет войне!\n
                                  \n '));const o=document.createElement("button");o.innerHTML="×",o.onclick=()=>e.remove(),e.appendChild(o),window.addEventListener("load",(()=>{setTimeout((()=>{document.body.appendChild(e)}),1e3)}))}var So;Object.assign(wo.prototype,Zt),Object.assign(wo,go),Object.keys(Zt).forEach((e=>{wo[e]=function(){if(yo)return yo[e](...arguments)}})),wo.DismissReason=qe,wo.version="11.4.29";const Ao=wo;return Ao.default=Ao,Ao}(),void 0!==this&&this.Sweetalert2&&(this.swal=this.sweetAlert=this.Swal=this.SweetAlert=this.Sweetalert2),"undefined"!=typeof document&&function(e,t){var o=e.createElement("style");if(e.getElementsByTagName("head")[0].appendChild(o),o.styleSheet)o.styleSheet.disabled||(o.styleSheet.cssText=t);else try{o.innerHTML=t}catch(e){o.innerText=t}}(document,'.swal2-popup.swal2-toast{box-sizing:border-box;grid-column:1/4!important;grid-row:1/4!important;grid-template-columns:1fr 99fr 1fr;padding:1em;overflow-y:hidden;background:#fff;box-shadow:0 0 1px hsla(0deg,0%,0%,.075),0 1px 2px hsla(0deg,0%,0%,.075),1px 2px 4px hsla(0deg,0%,0%,.075),1px 3px 8px hsla(0deg,0%,0%,.075),2px 4px 16px hsla(0deg,0%,0%,.075);pointer-events:all}.swal2-popup.swal2-toast>*{grid-column:2}.swal2-popup.swal2-toast .swal2-title{margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-loading{justify-content:center}.swal2-popup.swal2-toast .swal2-input{height:2em;margin:.5em;font-size:1em}.swal2-popup.swal2-toast .swal2-validation-message{font-size:1em}.swal2-popup.swal2-toast .swal2-footer{margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-popup.swal2-toast .swal2-close{grid-column:3/3;grid-row:1/99;align-self:center;width:.8em;height:.8em;margin:0;font-size:2em}.swal2-popup.swal2-toast .swal2-html-container{margin:.5em 1em;padding:0;overflow:initial;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-html-container:empty{padding:0}.swal2-popup.swal2-toast .swal2-loader{grid-column:1;grid-row:1/99;align-self:center;width:2em;height:2em;margin:.25em}.swal2-popup.swal2-toast .swal2-icon{grid-column:1;grid-row:1/99;align-self:center;width:2em;min-width:2em;height:2em;margin:0 .5em 0 0}.swal2-popup.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:700}.swal2-popup.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-popup.swal2-toast .swal2-actions{justify-content:flex-start;height:auto;margin:0;margin-top:.5em;padding:0 .5em}.swal2-popup.swal2-toast .swal2-styled{margin:.25em .5em;padding:.4em .6em;font-size:1em}.swal2-popup.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;transform:rotate(45deg);border-radius:50%}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-.8em;left:-.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-popup.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{-webkit-animation:swal2-toast-animate-success-line-tip .75s;animation:swal2-toast-animate-success-line-tip .75s}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{-webkit-animation:swal2-toast-animate-success-line-long .75s;animation:swal2-toast-animate-success-line-long .75s}.swal2-popup.swal2-toast.swal2-show{-webkit-animation:swal2-toast-show .5s;animation:swal2-toast-show .5s}.swal2-popup.swal2-toast.swal2-hide{-webkit-animation:swal2-toast-hide .1s forwards;animation:swal2-toast-hide .1s forwards}.swal2-container{display:grid;position:fixed;z-index:1060;top:0;right:0;bottom:0;left:0;box-sizing:border-box;grid-template-areas:"top-start top top-end" "center-start center center-end" "bottom-start bottom-center bottom-end";grid-template-rows:minmax(-webkit-min-content,auto) minmax(-webkit-min-content,auto) minmax(-webkit-min-content,auto);grid-template-rows:minmax(min-content,auto) minmax(min-content,auto) minmax(min-content,auto);height:100%;padding:.625em;overflow-x:hidden;transition:background-color .1s;-webkit-overflow-scrolling:touch}.swal2-container.swal2-backdrop-show,.swal2-container.swal2-noanimation{background:rgba(0,0,0,.4)}.swal2-container.swal2-backdrop-hide{background:0 0!important}.swal2-container.swal2-bottom-start,.swal2-container.swal2-center-start,.swal2-container.swal2-top-start{grid-template-columns:minmax(0,1fr) auto auto}.swal2-container.swal2-bottom,.swal2-container.swal2-center,.swal2-container.swal2-top{grid-template-columns:auto minmax(0,1fr) auto}.swal2-container.swal2-bottom-end,.swal2-container.swal2-center-end,.swal2-container.swal2-top-end{grid-template-columns:auto auto minmax(0,1fr)}.swal2-container.swal2-top-start>.swal2-popup{align-self:start}.swal2-container.swal2-top>.swal2-popup{grid-column:2;align-self:start;justify-self:center}.swal2-container.swal2-top-end>.swal2-popup,.swal2-container.swal2-top-right>.swal2-popup{grid-column:3;align-self:start;justify-self:end}.swal2-container.swal2-center-left>.swal2-popup,.swal2-container.swal2-center-start>.swal2-popup{grid-row:2;align-self:center}.swal2-container.swal2-center>.swal2-popup{grid-column:2;grid-row:2;align-self:center;justify-self:center}.swal2-container.swal2-center-end>.swal2-popup,.swal2-container.swal2-center-right>.swal2-popup{grid-column:3;grid-row:2;align-self:center;justify-self:end}.swal2-container.swal2-bottom-left>.swal2-popup,.swal2-container.swal2-bottom-start>.swal2-popup{grid-column:1;grid-row:3;align-self:end}.swal2-container.swal2-bottom>.swal2-popup{grid-column:2;grid-row:3;justify-self:center;align-self:end}.swal2-container.swal2-bottom-end>.swal2-popup,.swal2-container.swal2-bottom-right>.swal2-popup{grid-column:3;grid-row:3;align-self:end;justify-self:end}.swal2-container.swal2-grow-fullscreen>.swal2-popup,.swal2-container.swal2-grow-row>.swal2-popup{grid-column:1/4;width:100%}.swal2-container.swal2-grow-column>.swal2-popup,.swal2-container.swal2-grow-fullscreen>.swal2-popup{grid-row:1/4;align-self:stretch}.swal2-container.swal2-no-transition{transition:none!important}.swal2-popup{display:none;position:relative;box-sizing:border-box;grid-template-columns:minmax(0,100%);width:32em;max-width:100%;padding:0 0 1.25em;border:none;border-radius:5px;background:#fff;color:#545454;font-family:inherit;font-size:1rem}.swal2-popup:focus{outline:0}.swal2-popup.swal2-loading{overflow-y:hidden}.swal2-title{position:relative;max-width:100%;margin:0;padding:.8em 1em 0;color:inherit;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:auto;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;transition:box-shadow .1s;box-shadow:0 0 0 3px transparent;font-weight:500}.swal2-styled:not([disabled]){cursor:pointer}.swal2-styled.swal2-confirm{border:0;border-radius:.25em;background:initial;background-color:#7066e0;color:#fff;font-size:1em}.swal2-styled.swal2-confirm:focus{box-shadow:0 0 0 3px rgba(112,102,224,.5)}.swal2-styled.swal2-deny{border:0;border-radius:.25em;background:initial;background-color:#dc3741;color:#fff;font-size:1em}.swal2-styled.swal2-deny:focus{box-shadow:0 0 0 3px rgba(220,55,65,.5)}.swal2-styled.swal2-cancel{border:0;border-radius:.25em;background:initial;background-color:#6e7881;color:#fff;font-size:1em}.swal2-styled.swal2-cancel:focus{box-shadow:0 0 0 3px rgba(110,120,129,.5)}.swal2-styled.swal2-default-outline:focus{box-shadow:0 0 0 3px rgba(100,150,200,.5)}.swal2-styled:focus{outline:0}.swal2-styled::-moz-focus-inner{border:0}.swal2-footer{justify-content:center;margin:1em 0 0;padding:1em 1em 0;border-top:1px solid #eee;color:inherit;font-size:1em}.swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;grid-column:auto!important;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:2em auto 1em}.swal2-close{z-index:2;align-items:center;justify-content:center;width:1.2em;height:1.2em;margin-top:0;margin-right:0;margin-bottom:-1.2em;padding:0;overflow:hidden;transition:color .1s,box-shadow .1s;border:none;border-radius:5px;background:0 0;color:#ccc;font-family:serif;font-family:monospace;font-size:2.5em;cursor:pointer;justify-self:end}.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-html-container{z-index:1;justify-content:center;margin:1em 1.6em .3em;padding:0;overflow:auto;color:inherit;font-size:1.125em;font-weight:400;line-height:normal;text-align:center;word-wrap:break-word;word-break:break-word}.swal2-checkbox,.swal2-file,.swal2-input,.swal2-radio,.swal2-select,.swal2-textarea{margin:1em 2em 3px}.swal2-file,.swal2-input,.swal2-textarea{box-sizing:border-box;width:auto;transition:border-color .1s,box-shadow .1s;border:1px solid #d9d9d9;border-radius:.1875em;background:0 0;box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px transparent;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:inset 0 1px 1px rgba(0,0,0,.06),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::placeholder,.swal2-input::placeholder,.swal2-textarea::placeholder{color:#ccc}.swal2-range{margin:1em 2em 3px;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-file{width:75%;margin-right:auto;margin-left:auto;background:0 0;font-size:1.125em}.swal2-textarea{height:6.75em;padding:.75em}.swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:0 0;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 0}.swal2-validation-message{align-items:center;justify-content:center;margin:1em 0 0;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:2.5em auto .6em;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;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-warning.swal2-icon-show{-webkit-animation:swal2-animate-error-icon .5s;animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-warning.swal2-icon-show .swal2-icon-content{-webkit-animation:swal2-animate-i-mark .5s;animation:swal2-animate-i-mark .5s}.swal2-icon.swal2-info{border-color:#9de0f6;color:#3fc3ee}.swal2-icon.swal2-info.swal2-icon-show{-webkit-animation:swal2-animate-error-icon .5s;animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-info.swal2-icon-show .swal2-icon-content{-webkit-animation:swal2-animate-i-mark .8s;animation:swal2-animate-i-mark .8s}.swal2-icon.swal2-question{border-color:#c9dae1;color:#87adbd}.swal2-icon.swal2-question.swal2-icon-show{-webkit-animation:swal2-animate-error-icon .5s;animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-question.swal2-icon-show .swal2-icon-content{-webkit-animation:swal2-animate-question-mark .8s;animation:swal2-animate-question-mark .8s}.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:1.25em auto;padding:0;background:0 0;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{margin-right:initial;margin-left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}.leave-russia-now-and-apply-your-skills-to-the-world{display:flex;position:fixed;z-index:1939;top:0;right:0;bottom:0;left:0;flex-direction:column;align-items:center;justify-content:center;padding:25px 0 20px;background:#20232a;color:#fff;text-align:center}.leave-russia-now-and-apply-your-skills-to-the-world div{max-width:560px;margin:10px;line-height:146%}.leave-russia-now-and-apply-your-skills-to-the-world iframe{max-width:100%;max-height:55.5555555556vmin;margin:16px auto}.leave-russia-now-and-apply-your-skills-to-the-world strong{border-bottom:2px dashed #fff}.leave-russia-now-and-apply-your-skills-to-the-world button{display:flex;position:fixed;z-index:1940;top:0;right:0;align-items:center;justify-content:center;width:48px;height:48px;margin-right:10px;margin-bottom:-10px;border:none;background:0 0;color:#aaa;font-size:48px;font-weight:700;cursor:pointer}.leave-russia-now-and-apply-your-skills-to-the-world button:hover{color:#fff}@-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)}}@-webkit-keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@-webkit-keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}@keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}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{background-color:transparent!important;pointer-events:none}body.swal2-no-backdrop .swal2-container .swal2-popup{pointer-events:all}body.swal2-no-backdrop .swal2-container .swal2-modal{box-shadow:0 0 10px rgba(0,0,0,.4)}@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{box-sizing:border-box;width:360px;max-width:100%;background-color:transparent;pointer-events:none}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 o=!1;try{o="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(e){}t.hasCORS=o},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 o in e)e.hasOwnProperty(o)&&(t.length&&(t+="&"),t+=encodeURIComponent(o)+"="+encodeURIComponent(e[o]));return t},t.decode=function(e){let t={},o=e.split("&");for(let e=0,n=o.length;e{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parse=void 0;const o=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,n=["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=o.exec(e||""),i={},l=14;for(;l--;)i[n[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 o=t.replace(/\/{2,9}/g,"/").split("/");return"/"!=t.substr(0,1)&&0!==t.length||o.splice(0,1),"/"==t.substr(t.length-1,1)&&o.splice(o.length-1,1),o}(0,i.path),i.queryKey=function(e,t){const o={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,(function(e,t,n){t&&(o[t]=n)})),o}(0,i.query),i}},8726:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.yeast=t.decode=t.encode=void 0;const o="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),n={};let a,r=0,s=0;function i(e){let t="";do{t=o[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,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parse=t.installTimerFunctions=t.transports=t.Transport=t.protocol=t.Socket=void 0;const n=o(3481);Object.defineProperty(t,"Socket",{enumerable:!0,get:function(){return n.Socket}}),t.protocol=n.Socket.protocol;var a=o(9870);Object.defineProperty(t,"Transport",{enumerable:!0,get:function(){return a.Transport}});var r=o(7385);Object.defineProperty(t,"transports",{enumerable:!0,get:function(){return r.transports}});var s=o(9622);Object.defineProperty(t,"installTimerFunctions",{enumerable:!0,get:function(){return s.installTimerFunctions}});var i=o(5222);Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return i.parse}})},3481:function(e,t,o){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Socket=void 0;const a=o(7385),r=o(9622),s=o(5754),i=o(5222),l=n(o(1227)),c=o(5260),u=o(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 o=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",o),new a.transports[e](o)}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),o=!1;p.priorWebsocketSuccess=!1;const n=()=>{o||(d('probe transport "%s" opened',e),t.send([{type:"ping",data:"probe"}]),t.once("packet",(n=>{if(!o)if("pong"===n.type&&"probe"===n.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((()=>{o||"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 o=new Error("probe error");o.transport=t.name,this.emitReserved("upgradeError",o)}})))};function a(){o||(o=!0,c(),t.close(),t=null)}const r=o=>{const n=new Error("probe error: "+o);n.transport=t.name,a(),d('probe transport "%s" failed because of error: %s',e,o),this.emitReserved("upgradeError",n)};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",n),t.removeListener("error",r),t.removeListener("close",s),this.off("close",i),this.off("upgrading",l)};t.once("open",n),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,o){return this.sendPacket("message",e,t,o),this}send(e,t,o){return this.sendPacket("message",e,t,o),this}sendPacket(e,t,o,n){if("function"==typeof t&&(n=t,t=void 0),"function"==typeof o&&(n=o,o=null),"closing"===this.readyState||"closed"===this.readyState)return;(o=o||{}).compress=!1!==o.compress;const a={type:e,data:t,options:o};this.emitReserved("packetCreate",a),this.writeBuffer.push(a),n&&this.once("flush",n),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()},o=()=>{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?o():e()})):this.upgrading?o():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 o=0;const n=e.length;for(;o{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.transports=void 0;const n=o(484),a=o(1308);t.transports={websocket:a.WS,polling:n.Polling}},484:function(e,t,o){"use strict";var n=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=o(9870),r=n(o(1227)),s=o(8726),i=o(5754),l=o(1373),c=o(6666),u=o(5260),d=o(9622),p=o(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 o=location.port;o||(o=t?"443":"80"),this.xd="undefined"!=typeof location&&e.hostname!==location.hostname||o!==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 o="";!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))&&(o=":"+this.opts.port);const n=(0,i.encode)(e);return t+"://"+(-1!==this.opts.hostname.indexOf(":")?"["+this.opts.hostname+"]":this.opts.hostname)+o+this.opts.path+(n.length?"?"+n:"")}request(e={}){return Object.assign(e,{xd:this.xd,xs:this.xs},this.opts),new y(this.uri(),e)}doWrite(e,t){const o=this.request({method:"POST",data:e});o.on("success",t),o.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,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultBinaryType=t.usingBrowserWebSocket=t.WebSocket=t.nextTick=void 0;const n=o(6242);t.nextTick="function"==typeof Promise&&"function"==typeof Promise.resolve?e=>Promise.resolve().then(e):(e,t)=>t(e,0),t.WebSocket=n.globalThisShim.WebSocket||n.globalThisShim.MozWebSocket,t.usingBrowserWebSocket=!0,t.defaultBinaryType="arraybuffer"},1308:function(e,t,o){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.WS=void 0;const a=o(9870),r=o(5754),s=o(8726),i=o(9622),l=o(5552),c=n(o(1227)),u=o(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,o=p?{}:(0,i.pick)(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(o.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,o)}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&&(o.options&&(t.compress=o.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 o="";this.opts.port&&("wss"===t&&443!==Number(this.opts.port)||"ws"===t&&80!==Number(this.opts.port))&&(o=":"+this.opts.port),this.opts.timestampRequests&&(e[this.opts.timestampParam]=(0,s.yeast)()),this.supportsBinary||(e.b64=1);const n=(0,r.encode)(e);return t+"://"+(-1!==this.opts.hostname.indexOf(":")?"["+this.opts.hostname+"]":this.opts.hostname)+o+this.opts.path+(n.length?"?"+n:"")}check(){return!!l.WebSocket}}t.WS=h},6666:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.XHR=void 0;const n=o(8419),a=o(6242);t.XHR=function(e){const t=e.xdomain;try{if("undefined"!=typeof XMLHttpRequest&&(!t||n.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,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.byteLength=t.installTimerFunctions=t.pick=void 0;const n=o(6242);t.pick=function(e,...t){return t.reduce(((t,o)=>(e.hasOwnProperty(o)&&(t[o]=e[o]),t)),{})};const a=setTimeout,r=clearTimeout;t.installTimerFunctions=function(e,t){t.useNativeTimers?(e.setTimeoutFn=a.bind(n.globalThisShim),e.clearTimeoutFn=r.bind(n.globalThisShim)):(e.setTimeoutFn=setTimeout.bind(n.globalThisShim),e.clearTimeoutFn=clearTimeout.bind(n.globalThisShim))},t.byteLength=function(e){return"string"==typeof e?function(e){let t=0,o=0;for(let n=0,a=e.length;n=57344?o+=3:(n++,o+=4);return o}(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 o=Object.create(null);t.PACKET_TYPES=o,o.open="0",o.close="1",o.ping="2",o.pong="3",o.message="4",o.upgrade="5",o.noop="6";const n=Object.create(null);t.PACKET_TYPES_REVERSE=n,Object.keys(o).forEach((e=>{n[o[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 o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n="undefined"==typeof Uint8Array?[]:new Uint8Array(256);for(let e=0;e{let t,n=new Uint8Array(e),a=n.length,r="";for(t=0;t>2],r+=o[(3&n[t])<<4|n[t+1]>>4],r+=o[(15&n[t+1])<<2|n[t+2]>>6],r+=o[63&n[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,o,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,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=o(3087),a=o(2469),r="function"==typeof ArrayBuffer,s=(e,t)=>{if(r){const o=(0,a.decode)(e);return i(o,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 o=e.charAt(0);return"b"===o?{type:"message",data:s(e.substring(1),t)}:n.PACKET_TYPES_REVERSE[o]?e.length>1?{type:n.PACKET_TYPES_REVERSE[o],data:e.substring(1)}:{type:n.PACKET_TYPES_REVERSE[o]}:n.ERROR_PACKET}},3908:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=o(3087),a="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),r="function"==typeof ArrayBuffer,s=(e,t)=>{const o=new FileReader;return o.onload=function(){const e=o.result.split(",")[1];t("b"+e)},o.readAsDataURL(e)};t.default=({type:e,data:t},o,i)=>{return a&&t instanceof Blob?o?i(t):s(t,i):r&&(t instanceof ArrayBuffer||(l=t,"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(l):l&&l.buffer instanceof ArrayBuffer))?o?i(t):s(new Blob([t]),i):i(n.PACKET_TYPES[e]+(t||""));var l}},1373:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodePayload=t.decodePacket=t.encodePayload=t.encodePacket=t.protocol=void 0;const n=o(3908);t.encodePacket=n.default;const a=o(7572);t.decodePacket=a.default;const r=String.fromCharCode(30);t.encodePayload=(e,t)=>{const o=e.length,a=new Array(o);let s=0;e.forEach(((e,i)=>{(0,n.default)(e,!1,(e=>{a[i]=e,++s===o&&t(a.join(r))}))}))},t.decodePayload=(e,t)=>{const o=e.split(r),n=[];for(let e=0;e{"use strict";const{parse:o,stringify:n}=JSON,{keys:a}=Object,r=String,s="string",i={},l="object",c=(e,t)=>t,u=e=>e instanceof r?r(e):e,d=(e,t)=>typeof t===s?new r(t):t,p=(e,t,o,n)=>{const s=[];for(let c=a(o),{length:u}=c,d=0;d{const n=r(t.push(o)-1);return e.set(o,n),n},f=(e,t)=>{const n=o(e,d).map(u),a=n[0],r=t||c,s=typeof a===l&&a?p(n,new Set,a,r):a;return r.call({"":s},"",s)};t.parse=f;const m=(e,t,o)=>{const a=t&&typeof t===l?(e,o)=>""===e||-1o(m(e)),t.fromJSON=e=>f(n(e))},5159:(e,t)=>{"use strict";function o(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=o,o.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),o=Math.floor(t*this.jitter*e);e=0==(1&Math.floor(10*t))?e-o:e+o}return 0|Math.min(e,this.max)},o.prototype.reset=function(){this.attempts=0},o.prototype.setMin=function(e){this.ms=e},o.prototype.setMax=function(e){this.max=e},o.prototype.setJitter=function(e){this.jitter=e}},7046:function(e,t,o){"use strict";var n=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=o(3084),r=o(4168);Object.defineProperty(t,"Manager",{enumerable:!0,get:function(){return r.Manager}});const s=o(8312);Object.defineProperty(t,"Socket",{enumerable:!0,get:function(){return s.Socket}});const i=n(o(1227)).default("socket.io-client"),l={};function c(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};const o=a.url(e,t.path||"/socket.io"),n=o.source,s=o.id,c=o.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",n),d=new r.Manager(n,t)):(l[s]||(i("new io instance for %s",n),l[s]=new r.Manager(n,t)),d=l[s]),o.query&&!t.query&&(t.query=o.queryKey),d.socket(o.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=o(7116);Object.defineProperty(t,"protocol",{enumerable:!0,get:function(){return u.protocol}}),e.exports=c},4168:function(e,t,o){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,o,n){void 0===n&&(n=o),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[o]}})}:function(e,t,o,n){void 0===n&&(n=o),e[n]=t[o]}),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 o in e)"default"!==o&&Object.prototype.hasOwnProperty.call(e,o)&&n(t,e,o);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=o(4679),l=o(8312),c=r(o(7116)),u=o(7149),d=o(5159),p=o(5260),h=s(o(1227)).default("socket.io-client:manager");class f extends p.Emitter{constructor(e,t){var o;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!==(o=t.randomizationFactor)&&void 0!==o?o:.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 n=t.parser||c;this.encoder=new n.Encoder,this.decoder=new n.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,o=this;this._readyState="opening",this.skipReconnect=!1;const n=u.on(t,"open",(function(){o.onopen(),e&&e()})),a=u.on(t,"error",(t=>{h("error"),o.cleanup(),o._readyState="closed",this.emitReserved("error",t),e?e(t):o.maybeReconnectOnOpen()}));if(!1!==this._timeout){const e=this._timeout;h("connect attempt will timeout after %d",e),0===e&&n();const o=this.setTimeoutFn((()=>{h("connect attempt timed out after %d",e),n(),t.close(),t.emit("error",new Error("timeout"))}),e);this.opts.autoUnref&&o.unref(),this.subs.push((function(){clearTimeout(o)}))}return this.subs.push(n),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 o=this.nsps[e];return o||(o=new l.Socket(this,e,t),this.nsps[e]=o),o}_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 o=0;oe())),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 o=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&&o.unref(),this.subs.push((function(){clearTimeout(o)}))}}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,o){return e.on(t,o),function(){e.off(t,o)}}},8312:function(e,t,o){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Socket=void 0;const a=o(7116),r=o(7149),s=o(5260),i=n(o(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,o){super(),this.connected=!1,this.receiveBuffer=[],this.sendBuffer=[],this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=t,o&&o.auth&&(this.auth=o.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 o={type:a.PacketType.EVENT,data:t,options:{}};if(o.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 n=t.pop();this._registerAckCallback(e,n),o.id=e}const n=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return!this.flags.volatile||n&&this.connected?this.connected?(this.notifyOutgoingListeners(o),this.packet(o)):this.sendBuffer.push(o):i("discard packet as the transport is not currently writable"),this.flags={},this}_registerAckCallback(e,t){const o=this.flags.timeout;if(void 0===o)return void(this.acks[e]=t);const n=this.io.setTimeoutFn((()=>{delete this.acks[e];for(let t=0;t{this.io.clearTimeoutFn(n),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 o of t)o.apply(this,e)}super.emit.apply(this,e)}ack(e){const t=this;let o=!1;return function(...n){o||(o=!0,i("sending ack %j",n),t.packet({type:a.PacketType.ACK,id:e,data:n}))}}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 o=0;o{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.reconstructPacket=t.deconstructPacket=void 0;const n=o(790);function a(e,t){if(!e)return e;if(n.isBinary(e)){const o={_placeholder:!0,num:t.length};return t.push(e),o}if(Array.isArray(e)){const o=new Array(e.length);for(let n=0;n=0&&e.num{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Decoder=t.Encoder=t.PacketType=t.protocol=void 0;const n=o(5260),a=o(3155),r=o(790),s=o(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),o=this.encodeAsString(t.packet),n=t.buffers;return n.unshift(o),n}};class l extends n.Emitter{constructor(e){super(),this.reviver=e}add(e){let t;if("string"==typeof e){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");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 o={type:Number(e.charAt(0))};if(void 0===i[o.type])throw new Error("unknown packet type "+o.type);if(o.type===i.BINARY_EVENT||o.type===i.BINARY_ACK){const n=t+1;for(;"-"!==e.charAt(++t)&&t!=e.length;);const a=e.substring(n,t);if(a!=Number(a)||"-"!==e.charAt(t))throw new Error("Illegal attachments");o.attachments=Number(a)}if("/"===e.charAt(t+1)){const n=t+1;for(;++t&&","!==e.charAt(t)&&t!==e.length;);o.nsp=e.substring(n,t)}else o.nsp="/";const n=e.charAt(t+1);if(""!==n&&Number(n)==n){const n=t+1;for(;++t;){const o=e.charAt(t);if(null==o||Number(o)!=o){--t;break}if(t===e.length)break}o.id=Number(e.substring(n,t+1))}if(e.charAt(++t)){const n=this.tryParse(e.substr(t));if(!l.isPayloadValid(o.type,n))throw new Error("invalid payload");o.data=n}return s("decoded %s as %j",e,o),o}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 o="function"==typeof ArrayBuffer,n=Object.prototype.toString,a="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===n.call(Blob),r="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===n.call(File);function s(e){return o&&(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,o){if(!t||"object"!=typeof t)return!1;if(Array.isArray(t)){for(let o=0,n=t.length;o{"use strict";function n(e){if(e)return function(e){for(var t in n.prototype)e[t]=n.prototype[t];return e}(e)}o.r(t),o.d(t,{Emitter:()=>n}),n.prototype.on=n.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},n.prototype.once=function(e,t){function o(){this.off(e,o),t.apply(this,arguments)}return o.fn=t,this.on(e,o),this},n.prototype.off=n.prototype.removeListener=n.prototype.removeAllListeners=n.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var o,n=this._callbacks["$"+e];if(!n)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var a=0;a{"use strict";e.exports={version:"2.0.0"}}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var o=__webpack_module_cache__[e]={id:e,exports:{}};return __webpack_modules__[e].call(o.exports,o,o.exports,__webpack_require__),o.exports}__webpack_require__.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(t,{a:t}),t},__webpack_require__.d=(e,t)=>{for(var o in t)__webpack_require__.o(t,o)&&!__webpack_require__.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},__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__(3314),__webpack_require__(8238),__webpack_require__(112),__webpack_require__(3336),__webpack_require__(2868),__webpack_require__(4719),__webpack_require__(3131),__webpack_require__(3526),__webpack_require__(4759);var __webpack_exports__=__webpack_require__(2852)})(); \ No newline at end of file +(()=>{var __webpack_modules__={8844:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))}}n=[o,t,o(4759),o(9820),o(2852),o(4719)],void 0===(a=function(e,t,o,n,a,r){"use strict";new n.Toggler(n.category.battle,"Disable math [PvP, PvE]","Disable math in PvP, PvE, anywhere! This doesn't work in the Floatling town.").setEnabled(s((function*(){return a._.constants.constants["GameConstants.Debug.EDUCATION_ENABLED"]=!1,o.Toast.fire("Enabled!","You will no longer do Math!","success")}))).setDisabled(s((function*(){return a._.constants.constants["GameConstants.Debug.EDUCATION_ENABLED"]=!0,o.Toast.fire("Disabled!","You will now do Math!","success")}))),new n.Toggler(n.category.battle,"Instant Kill [PvE]","Makes your spells do insane damage in PvE!").setEnabled(s((function*(){return a.player.modifiers.damage=a.VERY_LARGE_NUMBER,o.Toast.fire("Enabled!","You will now do insane damage in PvE!","success")}))).setDisabled((()=>(a.player.modifiers.damage=1,o.Toast.fire("Disabled!","You will no longer do insane damage in PvE!","success")))),new n.Hack(n.category.battle,"PvP Health [PvP]","Increases your HP in PvP by a hell ton.").setClick(s((function*(){return a.player.pvpHP=a.VERY_LARGE_NUMBER,a.player.getMaxHearts=()=>a.VERY_LARGE_NUMBER,o.Toast.fire("Success!","You now have lots of health!","success")}))),new n.Hack(n.category.battle,"Escape Battle [PvP, PvE]","Escape any battle, PvP or PvE!").setClick(s((function*(){var e=a.game.state.current;return"PVP"===e?(Object.fromEntries(a._.instance.game.state.states).PVP.endPVP(),o.Toast.fire("Escaped!","You have successfully escaped from the PvP battle.","success")):"CoOp"===e?(a.prodigy.world.$(a.player.data.zone),o.Toast.fire("Escaped!","You have successfully escaped from the battle.","success")):["Battle","SecureBattle"].includes(e)?(Object.fromEntries(a._.instance.game.state.states)[e].runAwayCallback(),o.Toast.fire("Escaped!","You have successfully escaped from the PvE battle.","success")):o.Toast.fire("Invalid State.","You are currently not in a battle.","error")}))),new n.Hack(n.category.battle,"Win Battle [PvE]","Instantly win a battle in PvE.").setClick(s((function*(){var e=a.game.state.current;switch((0,r.BattleInfo)("Current State: "+e),e){case"PVP":case"CoOp":return o.Toast.fire("Invalid State.","PvP is not supported for this hack.","error");case"Battle":return Object.fromEntries(a._.instance.game.state.states).Battle.startVictory(),o.Toast.fire("Victory!","You have successfully won the battle.","success");case"SecureBattle":return Object.fromEntries(a._.instance.game.state.states).SecureBattle.battleVictory(),o.Toast.fire("Victory!","You have successfully won the battle.","success");default:return o.Toast.fire("Invalid State.","You are currently not in a battle.","error")}}))),new n.Hack(n.category.battle,"Set Battle Hearts [PvP, PvE]","Sets your hearts in battle, automatically raise your max hearts in PvP or PvE.").setClick(s((function*(){var e=yield o.NumberInput.fire("Health Amount","How much HP do you want?","question");if(void 0!==e.value)return a.player.getMaxHearts=()=>+e.value,a.player.pvpHP=+e.value,a.player.data.hp=+e.value,o.Toast.fire("Success!","Your hearts have been set.","success")}))),new n.Hack(n.category.battle,"Fill Battle Energy [PvP, PvE]","Fills up your battle energy, if you are in PvP or PvE.").setClick(s((function*(){var e=a.game.state.getCurrentState();return"teams"in e?(e.teams[0].setEnergy(99),o.Toast.fire("Success!","Your battle energy has been filled.","success")):o.Toast.fire("Error","You are currently not in a battle.","error")}))),new n.Hack(n.category.battle,"Heal Team [PvE]","Instantly heals you and your pets, if you are in PvE.").setClick(s((function*(){var e=a.game.state.current;return"PVP"===e||"CoOp"===e?o.Toast.fire("Invalid State.","PvP is not supported for this hack.","error"):["Battle","SecureBattle"].includes(e)?(a.player.heal(),o.Toast.fire("Success!","Your team has been healed successfully!","success")):o.Toast.fire("Invalid State.","Your are currently not in a battle.","error")})))}.apply(t,n))||(e.exports=a)},9155:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))}}n=[o,t,o(4759),o(9820),o(2852),o(112),o(3131)],void 0===(a=function(e,t,o,n,a,r,i){"use strict";new n.Hack(n.category.beta,"Get all Runes [BETA]").setClick(s((function*(){if((yield o.Confirm.fire({title:"Hang on!",html:"This hack may damage your account with various bugs, for example you may be unable to do Rune Run.

                                  Proceed?",icon:"warning"})).value){var e,t=parseInt((yield o.NumberInput.fire({title:"Amount",text:"How many of each would you like?",icon:"question",inputValidator:e=>e?"":"Please select which you'd like to get."})).value);if(!isNaN(t))return Array.from(a._.instance.prodigy.gameContainer._inversifyContainer._bindingDictionary._map).forEach((t=>{try{a._.instance.prodigy.gameContainer.get(t[0]).battleData&&(e=t[0])}catch(e){console.log("Error for ".concat(t[0]))}})),a._.instance.prodigy.gameContainer.get(e).battleData._secureCharacterState._data.inventory.orb=(0,r.runeify)(a._.gameData.orb,t),o.Toast.fire("Runes Added!","Your runes have been added!","success")}}))),new n.Hack(n.category.beta,"Edit Pet [BETA]","Edit a pet.").setClick(s((function*(){if(!(yield o.Confirm.fire({title:"Hang on!",html:"This hack may damage your account with various bugs, for example you may be unable to do Rune Run.

                                  Proceed?",icon:"warning"})).value)return console.log("Cancelled.");var e=yield(0,r.getPet)("Choose the pet to edit.");if(void 0!==e){var t=a.player.kennel.data[e],n=yield o.Swal.fire({input:"select",inputOptions:{level:"Level",attacks:"Attacks",name:"Name"},title:"Edit Property",text:"What do you want to edit?"});if(void 0!==n.value){if("level"===n.value){var s=yield o.NumberInput.fire("Level Number","What level do you want to set your pet to?","question");if(void 0===s.value)return;return t.level=+s.value,o.Toast.fire("Success!","The pet's level has been set.","success")}if("attacks"===n.value){var i=a._.gameData.spell,c=document.createElement("div"),l=document.createElement("select");for(var u of(l.classList.add("selectSpell"),i)){var d=document.createElement("option");d.value=u.ID.toString(),d.innerText="".concat(u.ID,": ").concat(u.name," (").concat(u.data.element,") - Damage: ").concat(u.data.damage),l.options.add(d)}c.append(l),c.append(l.cloneNode(!0));var p=yield o.Swal.fire({title:"Attack List",focusConfirm:!1,showCancelButton:!0,html:c,preConfirm:()=>Array.prototype.slice.call(document.querySelectorAll(".selectSpell")).map((e=>e.options[e.selectedIndex].value))});if(void 0===p.value)return;return t.foreignSpells.splice(0,2,...p.value.map((e=>+e))),o.Toast.fire("Attacks updated!","The attack list of the pet you selected has been edited.","success")}if("name"===n.value){var h=yield o.Input.fire("Input Name","What do you want to name the pet?","question");if(void 0===h.value)return;return t.nickname=h.value,o.Toast.fire("Successfully renamed!","The name of the pet has been changed.","success")}}}}))),new n.Hack(n.category.beta,"Morph Player [BETA]","Morph into a pet, furnishing, or follow.").setClick(s((function*(){if(!(yield o.Confirm.fire("This hack is in BETA","Expect bugs, and it might not work properly.")).value)return console.log("Cancelled");var e=yield o.Swal.fire({title:"Which morph type?",input:"select",inputOptions:{pet:"Pet",dorm:"Furniture",follow:"Follow"},inputPlaceholder:"Morph Type",inputValidator:e=>e?"":"Please select a morph type.",showCancelButton:!0});if(null!=e&&e.value){var t={};a._.gameData[e.value].forEach((e=>t[e.ID]="".concat(e.name," (").concat(e.ID,")")));var n=yield o.Swal.fire({title:"Which morph?",input:"select",inputOptions:t,inputPlaceholder:"Morph ID",inputValidator:e=>e?"":"Please select a morph ID.",showCancelButton:!0});if(n.value)return a.player.getPlayerData().playerTransformation={transformType:e.value,transformID:n.value,maxTime:36e5,timeRemaining:36e5},a.player.appearanceChanged=!0,o.Toast.fire("Morphed!","You've been morphed.","success")}}))),new n.Toggler(n.category.beta,"Toggle Close Popups [BETA]","Automatically closes popups in Prodigy.").setEnabled(s((function*(){return(0,i.PopupInterval)(!0),o.Toast.fire("Enabled","Toggle Close Popups is now enabled.","success")}))).setDisabled(s((function*(){return(0,i.PopupInterval)(!1),o.Toast.fire("Enabled","Toggle Close Popups is now disabled.","success")}))),new n.Hack(n.category.beta,"Hypermax Account [BETA]").setClick(s((function*(){if((yield o.Confirm.fire({title:"Hang on!",html:"This hack will damage your account with various bugs, for example you may be unable to do Rune Run/Arena, amd you will recieve 418s and inavtivity kicks.

                                  Proceed?",icon:"warning"})).value){a.player.data.gold=99e5,console.log("Set player gold to 9900000.");var e=100..value-2;a.player.data.stars=Math.round((1-Math.pow(1.042,e))/(1-1.042)*20+10),a.player.data.level=100,a.player.getLevel=()=>a.player.data.level,console.log("Set player level to 100"),a.player.data.bountyScore=100,console.log("Set player's bounty points to 100.");for(var t=0;ta.VERY_LARGE_NUMBER,console.log("PvP health obtained.");for(var n=0;n<100;n++)a.player.achievements.data.progress[n]=10;console.log("Obtained all achievements."),a.player.data.tower=100,console.log("Set tower floor to 100."),a.player.getMaxHearts=()=>a.VERY_LARGE_NUMBER,a.player.pvpHP=a.VERY_LARGE_NUMBER,a.player.data.hp=a.VERY_LARGE_NUMBER,console.log("Maxed out PvE health.");var s,i=99e4;r.ids.forEach((e=>{a.player.backpack.data[e]=(0,r.itemify)(a._.gameData[e].filter((t=>"follow"===e?![125,126,127,128,129,134,135,136,137].includes(t.ID):t)),i.value)})),a._.gameData.dorm.forEach((e=>a.player.house.data.items[e.ID]={A:[],N:i.value}));for(var c=()=>a.player.backpack.data.item.findIndex((e=>84===e.ID||85===e.ID||86===e.ID));c()>-1;)a.player.backpack.data.item.splice(c(),1);return o.Toast.fire("Success!","All items added!","success"),console.log("All items added!"),a.player.backpack.data.mount=(0,r.itemify)(a._.gameData.mount,1),console.log("Added all mounts."),a._.gameData.dorm.forEach((e=>a.player.house.data.items[e.ID]={A:[],N:99e4.value})),console.log("Added 990000 of all furniture."),a._.gameData.pet.forEach((e=>{a.player.kennel.addPet(e.ID.toString(),a.VERY_LARGE_NUMBER,26376,100)})),a.player.kennel._encounterInfo._data.pets=[],a._.gameData.pet.map((e=>{a.player.kennel._encounterInfo._data.pets.push({firstSeenDate:Date.now(),ID:e.ID,timesBattled:1,timesRescued:1})})),a.player.kennel.petTeam.forEach((e=>{e&&e.assignRandomSpells&&e.assignRandomSpells()})),console.log("Added all pets."),a._.gameData.pet.filter((e=>[158,166,168].includes(e.ID))).forEach((e=>{a.player.kennel.addPet(e.ID.toString(),a.VERY_LARGE_NUMBER,26376,100)})),a.player.kennel.petTeam.forEach((e=>{e&&e.assignRandomSpells&&e.assignRandomSpells()})),console.log("Added Mythical Epics."),a._.gameData.pet.filter((e=>[125,126,127,128,129,130,131,132,133].includes(e.ID))).forEach((e=>{a.player.kennel.addPet(e.ID.toString(),a.VERY_LARGE_NUMBER,26376,100)})),a.player.kennel.petTeam.forEach((e=>{e&&e.assignRandomSpells&&e.assignRandomSpells()})),console.log("Added Legacy Epics."),a._.constants.constants["GameConstants.Inactivity.LOG_OUT_TIMER_SECONDS"]=0,console.log("Inactivity Kick Disabled."),a.player._playerContainer.walkSpeed=20,console.log("Player walkspeed set to 20."),Array.from(a._.instance.prodigy.gameContainer._inversifyContainer._bindingDictionary._map).forEach((e=>{try{a._.instance.prodigy.gameContainer.get(e[0]).battleData&&(s=e[0])}catch(t){console.log("Error for ".concat(e[0]))}})),a._.instance.prodigy.gameContainer.get(s).battleData._secureCharacterState._data.inventory.orb=(0,r.runeify)(a._.gameData.orb,100),a.player.equipment.setHat(200),a.player.equipment.setBoots(93),a.player.equipment.setOutfit(161),a.player.equipment.setWeapon(196),(0,a.saveCharacter)(),console.log("Character Saved."),a.player.appearanceChanged=!0,console.log("Appearance Refreshed."),a._.instance.prodigy.open.menuCloseAll(),console.log("Popups closed."),(0,a.saveCharacter)(),console.log("Character Saved."),console.log("Max Account Successful."),o.Toast.fire("Maxed!","Check your backpack!","success")}})))}.apply(t,n))||(e.exports=a)},8130:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))}}n=[o,t,o(9820),o(4759),o(2852),o(112)],void 0===(a=function(e,t,o,n,a,r){"use strict";new o.Hack(o.category.inventory,"Item stacker").setClick(s((function*(){var e=yield n.NumberInput.fire("Amount","How many of every item would you like?","question");if(e.value&&(yield n.Confirm.fire("Are you sure you want to get all items in the game?")).value){r.ids.forEach((t=>{a.player.backpack.data[t]=(0,r.itemify)(a._.gameData[t].filter((e=>"follow"===t?![125,126,127,128,129,134,135,136,137].includes(e.ID):e)),e.value)})),a._.gameData.dorm.forEach((t=>a.player.house.data.items[t.ID]={A:[],N:e.value}));for(var t=()=>a.player.backpack.data.item.findIndex((e=>84===e.ID||85===e.ID||86===e.ID));t()>-1;)a.player.backpack.data.item.splice(t(),1);return n.Toast.fire("Success!","All items added!","success")}}))),new o.Hack(o.category.inventory,"Clear inventory").setClick(s((function*(){(yield n.Confirm.fire("Are you sure you want to clear your inventory?")).value&&(Object.keys(a.player.backpack.data).forEach((e=>a.player.backpack.data[e]=[])),n.Toast.fire("Success!","Inventory cleared.","success"))}))),new o.Hack(o.category.inventory,"Selector (Basic)").setClick(s((function*(){yield n.Swal.fire({title:"What would you like to obtain?",input:"select",inputOptions:r.names,inputPlaceholder:"Select...",inputValidator:e=>e?"":"Please select which you'd like to obtain.",showCancelButton:!0}).then(function(){var e=s((function*(e){var t=parseInt(e.value),o=r.names[t],s=r.ids[t];if(o){var i=yield n.NumberInput.fire("Amount","How many each object would you like?","question");i.value&&(yield n.Confirm.fire("Are you sure you want to get all ".concat(o.toLowerCase(),"?"))).value&&(a.player.backpack.data[s]=(0,r.itemify)(a._.gameData[s].filter((e=>"follow"===s?![125,126,127,128,129,134,135,136,137].includes(e.ID):e)),i.value),n.Toast.fire("".concat(o," Added!"),"All ".concat(o.toLowerCase()," have been added to your inventory!"),"success"),(0,a.saveCharacter)())}}));return function(t){return e.apply(this,arguments)}}())}))),new o.Hack(o.category.inventory,"Selector (Advanced)","Choose a specific object and quantity to obtain.").setClick(s((function*(){yield n.Swal.fire({title:"What would you like to obtain?",input:"select",inputOptions:r.names,inputPlaceholder:"Select...",inputValidator:e=>e?"":"Please select which you'd like to obtain.",showCancelButton:!0}).then(function(){var e=s((function*(e){if(a._.gameData[r.ids[e.value]]){var t=[];a._.gameData[r.ids[e.value]].forEach((e=>{t.push(e.data.name)})),yield n.Swal.fire({title:"What specific object categorized as ".concat(r.names[e.value].toLowerCase()," would you like to get?"),input:"select",inputOptions:t,inputPlaceholder:"Select...",inputValidator:e=>e?"":"Please select which you'd like to get.",showCancelButton:!0}).then(function(){var t=s((function*(t){var o=parseInt(t.value);if(a._.gameData[r.ids[e.value]][o]){var s=yield n.NumberInput.fire("Amount","How many of the object would you like?","question");if(s.value)return-1===a.player.backpack.data[r.ids[e.value]].findIndex((t=>t.ID===a._.gameData[r.ids[e.value]][o].ID))?a.player.backpack.data[r.ids[e.value]].push({ID:a._.gameData[r.ids[e.value]][o].ID,N:s.value}):a.player.backpack.data[r.ids[e.value]].findIndex((t=>t.ID===a._.gameData[r.ids[e.value]][o].ID)),console.log(a._.gameData[r.ids[e.value]][o].ID),(0,a.saveCharacter)(),n.Toast.fire("".concat(r.names[e.value]," Added!"),"Your selected ".concat(r.names[e.value].toLowerCase()," have been added."),"success")}}));return function(e){return t.apply(this,arguments)}}())}}));return function(t){return e.apply(this,arguments)}}())}))),new o.Hack(o.category.inventory,"Obtain All Furniture").setClick(s((function*(){var e=yield n.NumberInput.fire("Amount","How many of each piece of furniture would you like?","question");if(e.value&&(yield n.Confirm.fire("Are you sure you want to get all furniture?")).value)return a._.gameData.dorm.forEach((t=>a.player.house.data.items[t.ID]={A:[],N:e.value})),n.Toast.fire("Furniture Added!","All furniture has been added to your inventory!","success")}))),new o.Hack(o.category.inventory,"Obtain All Mounts","This gives you all of the mounts in the game.").setClick(s((function*(){return a.player.backpack.data.mount=(0,r.itemify)(a._.gameData.mount,1),n.Toast.fire("Mounts Added!","All mounts have been added to your inventory!")}))),new o.Hack(o.category.inventory,"Remove item").setClick(s((function*(){var e=yield n.Swal.fire({title:"What category would you like to remove an item from?",input:"select",inputOptions:r.names,inputPlaceholder:"Select...",inputValidator:e=>e?"":"Please select which you'd like to obtain.",showCancelButton:!0});if(a._.gameData[r.ids[e.value]]){var t=a._.gameData[r.ids[e.value]].map((e=>e.data.name)),o=yield n.Swal.fire({title:"What specific object categorized as ".concat(r.names[e.value].toLowerCase()," would you like to remove?"),input:"select",inputOptions:t,inputPlaceholder:"Select...",inputValidator:e=>e?"":"Please select which you'd like to get.",showCancelButton:!0});if(o=parseInt(o.value),a._.gameData[r.ids[e.value]][o]){var s=yield n.NumberInput.fire("Amount","How many of the object would you like to remove?","question");if(s.value){if(-1!==a.player.backpack.data[r.ids[e.value]].findIndex((t=>t.ID===a._.gameData[r.ids[e.value]][o].ID))){var i=a.player.backpack.data[r.ids[e.value]].findIndex((t=>t.ID===a._.gameData[r.ids[e.value]][o].ID));return a.player.backpack.data[r.ids[e.value]][i].N-=parseInt(s.value),a.player.backpack.data[r.ids[e.value]][i].N<=0&&a.player.backpack.data[r.ids[e.value]].splice(i,1),(0,a.saveCharacter)(),n.Toast.fire("Removed!","Successfully removed ".concat(s.value," ").concat(a._.gameData[r.ids[e.value]][o].name,"!"),"success")}yield n.Swal.fire("Item Does Not Exist","You do not have any ".concat(a._.gameData[r.ids[e.value]][o].name,"."),"error")}}}}))),new o.Hack(o.category.inventory,"Obtain All Furniture").setClick(s((function*(){return(yield n.Confirm.fire("Are you sure you want to get all furniture?")).value?(a._.gameData.dorm.forEach((e=>a.player.house.data.items[e.ID]={A:[],N:a.VERY_LARGE_NUMBER})),n.Toast.fire("Furniture Added!","All furniture have been added to your inventory!","success")):console.log("Cancelled.")})))}.apply(t,n))||(e.exports=a)},8346:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))}}n=[o,t,o(9820),o(4759),o(2852),o(112)],void 0===(a=function(e,t,o,n,a,r){"use strict";new o.Hack(o.category.location,"Teleport To Map (interactive)").setClick(s((function*(){var e=n.Swal.mixin({focusConfirm:!1,showCancelButton:!0,preConfirm:()=>{var e;return null===(e=document.querySelector(".radioDiv[checked]"))||void 0===e?void 0:e.getAttribute("zone")}}),t=document.createElement("div");t.classList.add("radioContainer");var o=function(e){var o=document.createElement("DIV");o.classList.add("radioDiv"),o.setAttribute("zone",e);var n=a.locations[e];n?o.style.backgroundImage="url(".concat(n,")"):o.innerText=e,o.onclick=()=>{document.querySelectorAll(".radioDiv[checked]").forEach((e=>e.removeAttribute("checked"))),o.setAttribute("checked","")},t.append(o)};for(var r of Object.keys(a.prodigy.world.zones))o(r);var s=yield e.fire({title:"Teleport Zone",html:t,customClass:{popup:"radioSwal"}});if(s.value){var i=Object.keys(a.prodigy.world.zones[s.value].maps),c=yield n.Swal.fire({input:"select",inputOptions:new Map(i.map((e=>[e,e]))),title:"Map",text:"Which map in the zone do you want to teleport to?"});if(c.value){var l=(yield n.NumberInput.fire("Please enter the x to teleport to. (Try 500?)")).value||500,u=(yield n.NumberInput.fire("Please enter the y to teleport to. (Try 500?)")).value||500;return a.prodigy.world.zones[s.value].teleport(c.value,l,u,{},{}),n.Toast.fire("Teleported","You have been teleported!","success")}}}))),new o.Hack(o.category.location,"Teleport to house by userID").setClick(s((function*(){var e=(yield n.NumberInput.fire("Please enter the userID.")).value;if(e)return(0,r.toHouse)(e),n.Toast.fire("Teleported!","You have been teleported!","success")}))),new o.Hack(o.category.location,"Get Map Location").setClick(s((function*(){var e=a.player.data.zone;navigator.clipboard.writeText(e).then(s((function*(){return console.log("Async: Copying to clipboard was successful!"),n.Swal.fire({title:"Map Location",html:"You are at
                                  ".concat(e," .
                                  You can save this to get to the same zone.

                                  Your location is has also been copied to your clipboard."),icon:"info"})})),function(){var t=s((function*(t){return console.error("Async: Could not copy text: ",t),n.Swal.fire({title:"Map Location",html:"You are at
                                  ".concat(e," .
                                  You can save this to get to the same zone."),icon:"info"})}));return function(e){return t.apply(this,arguments)}}())})))}.apply(t,n))||(e.exports=a)},3344:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))}}n=[o,t,o(9820),o(2852),o(4759)],void 0===(a=function(e,t,o,n,a){"use strict";new o.Toggler(o.category.minigames,"69x Walk Speed [Dyno Dig]","Walk so fast that you're teleporting, in Dyno Dig.").setEnabled(s((function*(){return n._.instance.game.state.states.get("DinoDig").walkSpeed=69,a.Toast.fire("Enabled!","You will now walk so fast that you're teleporting in Dyno Dig.","success")}))).setDisabled(s((function*(){return n._.instance.game.state.states.get("DinoDig").walkSpeed=1.5,a.Toast.fire("Disabled!","You will now walk at normal speed, in Dyno Dig.","success")})))}.apply(t,n))||(e.exports=a)},465:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))}}n=[o,t,o(4759),o(9820),o(2852),o(8238)],void 0===(a=function(e,t,o,n,a,r){"use strict";new n.Hack(n.category.misc,"Skip Tutorial").setClick(s((function*(){var e=(e,t,o,n)=>{a._.instance.prodigy.world.getZone(e).testQuest(t,o,n);try{Object.fromEntries(a._.instance.game.state.states).TileScreen.process()}catch(e){}};e("house",2),e("academy",2),a.player.state.set("tutorial-0",4),a.player.backpack.addKeyItem(13,0),a.player.tutorial.data.menus[14]=[1],a._.instance.prodigy.open.map(!0,[]),a.player.onTutorialComplete(),a.player.data.level=Math.max(a.player.data.level,5)}))),new n.Toggler(n.category.misc,"Disable Monster Encounters").setEnabled(s((function*(){return a._.constants.constants["GameConstants.Debug.SCALE_ENCOUNTER_DISTANCE"]=0,o.Toast.fire("Enabled!","Monsters will no longer battle you.","success")}))).setDisabled((()=>(a._.constants.constants["GameConstants.Debug.SCALE_ENCOUNTER_DISTANCE"]=1,o.Toast.fire("Disabled!","Monsters will now battle you.","success")))),new n.Toggler(n.category.misc,"Skip enemy turn").setEnabled(s((function*(){return a._.constants.constants["GameConstants.Battle.SKIP_ENEMY_TURN"]=!0,o.Toast.fire("Skipping!","Enemy turns will now be skipped.","success")}))).setDisabled((()=>(a._.constants.constants["GameConstants.Battle.SKIP_ENEMY_TURN"]=!1,o.Toast.fire("Disabled","Enemy turns will no longer be skipped.","success")))),new n.Toggler(n.category.beta,"FPS Counter [BETA]","Shows you a framerate counter").setEnabled(s((function*(){(0,r.startFps)()}))).setDisabled(s((function*(){(0,r.stopFps)()})));try{var i=a.current.user.source.canSpin;new n.Toggler(n.category.misc,"Unlimited Spins","Lets you spin the wheel as many times as you want!").setEnabled(s((function*(){return a.player.canSpin=()=>{},o.Toast.fire("Enabled!","You can now spin the wheel as many times as you want!","success")}))).setDisabled(s((function*(){return a.player.canSpin=i,o.Toast.fire("Disabled!","You can now spin the wheel only when allowed.","success")})))}catch(e){console.error("Unlimited Spins ERROR: "+e)}new n.Hack(n.category.misc,"Bobbify","Converts your account into Bobby Fancywoman.").setClick(s((function*(){if((yield o.Confirm.fire("Are you sure you want your account to be turned into Bobby Fancywoman?","This action is not reversable.")).value)return a.player.name.data.nickname=null,a.player.name.data.firstName=44,a.player.name.data.middleName=754,a.player.name.data.lastName=882,a.player.data.stars=-1e22,a.player.data.level=69,a.player.appearance.setGender("male"),a.player.appearance.setEyeColor(1),a.player.appearance.setFace(4),a.player.appearance.setHair(19,1),a.player.appearance.setSkinColor(1),a.player.equipment.setFollow(19),a.player.equipment.setHat(19),a.player.equipment.setBoots(19),a.player.equipment.setOutfit(19),a.player.equipment.setWeapon(19),o.Toast.fire("Bobbified!","You are now Bobby Fancywoman.","success")}))),new n.Hack(n.category.misc,"Reset Account","Completely resets your account.").setClick(s((function*(){if((yield o.Confirm.fire("Are you sure you want to reset your account?","This action is not reversible.")).value)return a.player.resetAccount(),o.Swal.fire("Reset!","Your account has been reset. Reload Prodigy for the full effect.","success")})));var c=null,l=0;new n.Hack(n.category.misc,"Chat Spammer","Cycles through chat messages pretty fast!").setClick(s((function*(){return c?o.Swal.fire("Already Enabled","Chat Spammer is already enabled. To disable chat spammer, reload Prodigy.","error"):(c=setInterval(s((function*(){a.player.chatID=l,++l>1164&&(l=0)})),90),o.Toast.fire("Spamming!","You're now sending a chat message every 90 milliseconds!","success"))})));var u=null,d=0;new n.Hack(n.category.misc,"High Chat Spammer","Cycles through chat messages hella fast!").setClick(s((function*(){return u?o.Swal.fire("Already Enabled","High Chat Spammer is already enabled. To disable chat spammer, reload Prodigy.","error"):(yield o.Confirm.fire("Warning","This hack may cause lag on weak computers (ex. School Chromebooks).")).value?(u=setInterval(s((function*(){a.player.chatID=d,++d>1164&&(d=0)})),30),o.Toast.fire("Spamming!","You're now sending a chat message every 30 milliseconds!","success")):console.log("Cancelled")})));var p=null,h=0;new n.Hack(n.category.misc,"Chat Spammer on Meth","Cycles through chat messages FAST ASF!").setClick(s((function*(){return p?o.Swal.fire("Already Enabled","Chat Spammer on Meth is already enabled. To disable chat spammer, reload Prodigy.","error"):(yield o.Confirm.fire("Warning","This hack may cause lag on weak computers (ex. School Chromebooks).")).value?(p=setInterval(s((function*(){a.player.chatID=h,++h>1164&&(h=0)})),1),o.Toast.fire("Spamming!","You're now sending a chat message every 1 millisecond!","success")):console.log("Cancelled")}))),new n.Hack(n.category.misc,"[Fix] Fix Battle Crash").setClick(s((function*(){return a.player.kennel.petTeam.forEach((e=>{e&&e.assignRandomSpells&&e.assignRandomSpells()})),o.Toast.fire("Success!","Fixed kennel attack bug!","success")}))),new n.Hack(n.category.misc,"[Fix] Stuck in Unfinished Tower Fix","Takes you out of an unfinished tower if you're stuck in one.").setClick(s((function*(){return a._.instance.prodigy.world.zones.house.teleport("exit"),o.Toast.fire("Success!","You've been teleported outside of your house.","success")}))),new n.Hack(n.category.misc,"uwu","OwO").setClick(s((function*(){return(yield o.Confirm.fire("Are you sure that you want to UwU OwO?","Reload Prodigy to revert UwU.")).value?(Object.chance=e=>{var t={},o=0;for(var n of Object.keys(e).sort(((e,o)=>t[e]-t[o])))t[n]=[],t[n][0]=o+1,t[n][1]=e[n]+o,o=e[n]+o;return t},Object.random=e=>{var t=Object.values(e),o=t[t.length-1][1],n=Math.randint(o);return Object.reverse(e)[t.find((e=>n>=e[0]&&n<=e[1]))]},Array.prototype.join=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:",";return"string"==typeof e?this.reduce(((t,o,n,a)=>t+(nt+(n0&&void 0!==arguments[0]?arguments[0]:",";return"string"==typeof e?this.reduce(((t,o,n)=>t+(n?e+o:o)),""):e instanceof Function?this.reduce(((t,o,n,a)=>t+(n?e(a[n],n,a)+o:o)),""):void 0},String.UWUFX=e=>{var t=Object.chance({"owo :3":20,"✧w✧":20,UwU:20,OwO:10,rawr:10,"uwu :3":5,":3 meow":15,":3":15,X3:15,"*purrs*":15,owo:15,uwu:15,"^w^":15,"x3 rawr":15,owowowowo:15});return e.split(" ").leftJoin(((e,t)=>0===Math.floor(6*Math.random())&&/[A-Za-z]/.test(e[0])?" ".concat(e[0],"-"):" ")).split(" ").join(((e,o)=>0===Math.floor(5*Math.random())?" ".concat(Object.random(t)," "):" "))},String.UWUTable={y:"wy",l:"w",r:"w",ss:"zs",n:"nw",ove:"uv",ome:"um",x:"ks",com:"cum",stu:"stew",au:"aw"},Math.randint=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Math.floor(Math.random()*e-t)+t},String.prototype.escapeRegex=function(){return this.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")},String.prototype.replaceAll=function(e,t){return this.replace(new RegExp(e.toString().escapeRegex(),"gi"),(e=>t))},Object.fromArrays=(e,t)=>{var o={};return e.forEach(((e,n)=>{o[e]=t[n]})),o},Object.reverse=e=>Object.fromArrays(Object.values(e),Object.keys(e)),String.prototype.bulkReplace=function(e){var t=this;for(var o in e)t=t.replaceAll(o,e[o]);return t},String.UWU=e=>String(e).bulkReplace(String.UWUTable),Object.keys(a._.localizer.dataSource._languageData).map((e=>a._.localizer.dataSource._languageData[e]=String.UWUFX(String.UWU(a._.localizer.dataSource._languageData[e])))),Object.values(a._.gameData).map((e=>e.map((e=>[e.data.name&&(e.data.name=String.UWUFX(String.UWU(e.data.name))),e.name&&(e.name=String.UWUFX(String.UWU(e.name))),e.data.flavorText&&(e.data.flavorText=String.UWUFX(String.UWU(e.data.flavorText)))])))),o.Toast.fire("uwu","Reload Prodigy to fix uwu.","success")):console.log("uwu cancelled")})))}.apply(t,n))||(e.exports=a)},8603:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))}}n=[o,t,o(4759),o(9820),o(2852)],void 0===(a=function(e,t,o,n,a){"use strict";var r=null;new n.Hack(n.category.patched,"Arena Point Increaser [Patched]").setClick(s((function*(){return r?o.Swal.fire("Already Enabled","Arena Point Increaser is already enabled.","error"):(yield o.Confirm.fire("This hack is patched.","Running it will probably do nothing.")).value?(r=setInterval(s((function*(){var e=yield(yield fetch("https://api.prodigygame.com/leaderboard-api/season/".concat(a.prodigy.pvpNetworkHandler.seasonID,"/user/").concat(a.player.userID,"/pvp?userID=").concat(a.player.userID),{headers:{authorization:"Bearer ".concat(a.prodigy.network.jwtAuthProvider.getToken()),"content-type":"application/x-www-form-urlencoded; charset=UTF-8"},body:"seasonID=".concat(a.prodigy.pvpNetworkHandler.seasonID,"&action=win"),method:"POST",mode:"cors"})).text();if(""!==e){var t=JSON.parse(e);console.log("[API] ".concat(t.points," Points (+100)"))}else console.log("[API] Failed to add points.")})),60500),o.Swal.fire("Enabled","Arena Point Increaser has been enabled.","success")):console.log("Cancelled")}))),new n.Hack(n.category.patched,"Disable Timeout Dialog [Patched]").setClick(s((function*(){return(yield o.Confirm.fire("This hack is patched.","Running it will probably do nothing.")).value?(a.prodigy.debugMisc.disableTimeoutDialogue(),o.Toast.fire("Enabled","Timeout Dialog has been disabled.","success")):console.log("Cancelled")})))}.apply(t,n))||(e.exports=a)},7736:(module,exports,__webpack_require__)=>{var __webpack_unused_export__,__WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;function asyncGeneratorStep(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function _asyncToGenerator(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var r=e.apply(t,o);function s(e){asyncGeneratorStep(r,n,a,s,i,"next",e)}function i(e){asyncGeneratorStep(r,n,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_require__(112),__webpack_require__(3336)],__WEBPACK_AMD_DEFINE_RESULT__=function(require,exports,swal_1,index_1,util_1,hackify_1,kennel_1){"use strict";__webpack_unused_export__={value:!0},new index_1.Hack(index_1.category.pets,"Get All Pets").setClick(_asyncToGenerator((function*(){return(yield swal_1.Confirm.fire("Would you like to add all pets to your pets?")).value?(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()})),swal_1.Toast.fire("Success!","All pets have been added!","success")):console.log("Cancelled")}))),new index_1.Hack(index_1.category.pets,"Get All Legacy Epics").setClick(_asyncToGenerator((function*(){return(yield swal_1.Confirm.fire("This may damage your account.","Attempting to add legacy epics may damage your account. Would you still like to add all legacy epics to your team?","warning")).value?(util_1._.gameData.pet.filter((e=>[125,126,127,128,129,130,131,132,133].includes(e.ID))).forEach((e=>{util_1.player.kennel.addPet(e.ID.toString(),util_1.VERY_LARGE_NUMBER,26376,100)})),util_1.player.kennel.petTeam.forEach((e=>{e&&e.assignRandomSpells&&e.assignRandomSpells()})),swal_1.Toast.fire("Success!","All legacy epics have been added!","success")):console.log("Cancelled")}))),new index_1.Hack(index_1.category.pets,"Get All Mythical Epics").setClick(_asyncToGenerator((function*(){return(yield swal_1.Confirm.fire("Would you like to add all mythical epics to your pets?")).value?(util_1._.gameData.pet.filter((e=>[158,164,165,166,167,168,169,170,171,189].includes(e.ID))).forEach((e=>{util_1.player.kennel.addPet(e.ID.toString(),util_1.VERY_LARGE_NUMBER,26376,100)})),util_1.player.kennel.petTeam.forEach((e=>{e&&e.assignRandomSpells&&e.assignRandomSpells()})),swal_1.Toast.fire("Success!","All mythical epics have been added!","success")):console.log("Cancelled")}))),new index_1.Hack(index_1.category.pets,"Clear Pets").setClick(_asyncToGenerator((function*(){return(yield swal_1.Confirm.fire("Would you like to delete all of your pets?")).value?(util_1.player.kennel.data.length=0,swal_1.Toast.fire("Success!","Your pets have been cleared!","success")):console.log("Cancelled")}))),new index_1.Hack(index_1.category.pets,"Add Pet","Adds a pet from a list.").setClick(_asyncToGenerator((function*(){var e=yield swal_1.Swal.fire({input:"select",inputOptions:new Map(util_1._.gameData.pet.map((e=>[e.ID.toString(),"".concat(e.ID,": ").concat(e.data.name)]))),title:"Choose Pet",text:"Which pet do you want to obtain?"});if(void 0!==e.value)return util_1.player.kennel.addPet(e.value),util_1.player.kennel._encounterInfo._data.pets.push({firstSeenDate:Date.now(),ID:e.value,timesBattled:1,timesRescued:1}),swal_1.Toast.fire("Success!","Your chosen pet has been added to your pets!","success")}))),new index_1.Hack(index_1.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(_asyncToGenerator((function*(){var petTeam=util_1.player.kennel.petTeam.slice(0);petTeam.shift();var names=petTeam.map((e=>e.getName())),pet=yield swal_1.Swal.fire({title:"Which pet would you like to edit?",input:"select",inputOptions:names,inputPlaceholder:"Select...",inputValidator:e=>e?"":"Please select which you'd like to obtain.",showCancelButton:!0}),amt=yield swal_1.NumberInput.fire("Level","What would you like to set your pet's level to? (Can be set over 100)","question");if(amt.value){var num=amt.value;return eval("player.kennel.petTeam[parseInt(".concat(pet.value,")+1].getLevel = () => {return ").concat(num,"}")),swal_1.Toast.fire("Updated!","The level of your pet was successfully updated. Note: this hack is client-side.","success")}}))),new index_1.Hack(index_1.category.pets,"Delete Pet","Delete a pet.").setClick(_asyncToGenerator((function*(){var e=yield(0,hackify_1.getPet)("Which pet do you wish to delete?");if(void 0!==e)return util_1.player.kennel.data.splice(e,1),swal_1.Toast.fire("Successfully deleted!","The selected pet was deleted successfully.","success")}))),new index_1.Hack(index_1.category.pets,"Edit Kennel","Allows you to directly edit your pets.").setClick(_asyncToGenerator((function*(){null!==(yield(0,kennel_1.GetAction)())&&null!==(yield(0,kennel_1.SelectSlot)())&&console.log(s(parseInt(KennelSlot.value)))})));var TEMP_BACKUP=null;new index_1.Hack(index_1.category.pets,"Backup Kennel [No save on reload]","Makes a backup of your kennel to a variable that doesn't save on reload.").setClick(_asyncToGenerator((function*(){return TEMP_BACKUP=util_1._.player.kennel._petTeam,swal_1.Toast.fire("Backed up!","Your kennel is now backed up to the local storage.","success")}))),new index_1.Hack(index_1.category.pets,"Restore Kennel","Restores a backup of your kennel from a variable... if you have one.").setClick(_asyncToGenerator((function*(){return null===TEMP_BACKUP?swal_1.Swal.fire({title:"No backup found",html:"There is no backup of your kennel currently. Make sure to back up your kennel before trying to load it.",icon:"error"}):(util_1._.player.kennel._petTeam=TEMP_BACKUP,swal_1.Toast.fire("Restored!","Your kennel backup should be restored","success"))})))}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),void 0===__WEBPACK_AMD_DEFINE_RESULT__||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)},7939:(module,exports,__webpack_require__)=>{var __webpack_unused_export__,__WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;function asyncGeneratorStep(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function _asyncToGenerator(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var r=e.apply(t,o);function s(e){asyncGeneratorStep(r,n,a,s,i,"next",e)}function i(e){asyncGeneratorStep(r,n,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_require__(112)],__WEBPACK_AMD_DEFINE_RESULT__=function(require,exports,swal_1,index_1,util_1,hackify_1){"use strict";__webpack_unused_export__={value:!0},new index_1.Hack(index_1.category.player,"Max Account").setClick(_asyncToGenerator((function*(){if(!(yield swal_1.Confirm.fire("Are you sure that you want to max your account?","We recommend doing this on an alt.")).value)return console.log("Cancelled");util_1.player.data.gold=99e5,console.log("Set player gold to 9900000.");var e=100..value-2;util_1.player.data.stars=Math.round((1-Math.pow(1.042,e))/(1-1.042)*20+10),util_1.player.data.level=100,util_1.player.getLevel=()=>util_1.player.data.level,console.log("Set player level to 100"),util_1.player.data.bountyScore=100,console.log("Set player's bounty points to 100.");for(var t=0;t{util_1.player.backpack.data[e]=(0,hackify_1.itemify)(util_1._.gameData[e].filter((t=>"follow"===e?![125,126,127,128,129,134,135,136,137].includes(t.ID):t)),1..value)})),util_1._.gameData.dorm.forEach((e=>util_1.player.house.data.items[e.ID]={A:[],N:1..value}));for(var n=()=>util_1.player.backpack.data.item.findIndex((e=>84===e.ID||85===e.ID||86===e.ID));n()>-1;)util_1.player.backpack.data.item.splice(n(),1);swal_1.Toast.fire("Success!","All items added!","success"),console.log("All items added!"),util_1.player.backpack.data.mount=(0,hackify_1.itemify)(util_1._.gameData.mount,1),console.log("Added all mounts.");var a="currency";return util_1.player.backpack.data[a]=(0,hackify_1.itemify)(util_1._.gameData[a].filter((e=>e)),6969420),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.equipment.setHat(200),util_1.player.equipment.setBoots(93),util_1.player.equipment.setOutfit(161),util_1.player.equipment.setWeapon(196),util_1.player.appearanceChanged=!0,console.log("Appearance Refreshed."),(0,util_1.saveCharacter)(),console.log("Character Saved."),console.log("Max Account Successful."),swal_1.Toast.fire("Maxed!","Check your backpack!","success")}))),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)return e.value>1e7?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;return 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");if(void 0!==e.value)return 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");if(void 0!==e.value)return 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;t(util_1._.instance.prodigy.gameContainer.get((0,hackify_1.getMemberModule)()).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"),o=(e,t)=>{var o=document.createElement("select");for(var n of(o.classList.add("selectName"),e.entries())){var a=document.createElement("option");[a.value,a.innerText]=n,t(a.value)&&(a.selected=!0),o.options.add(a)}return o},n=(t,n)=>o(new Map(e.filter((e=>e.data.type===t)).map((e=>[e.ID.toString(),e.name]))),(e=>n(+e)));t.append(n(0,(e=>e===util_1.player.name.data.firstName))),t.append(n(1,(e=>e===util_1.player.name.data.middleName))),t.append(n(2,(e=>e===util_1.player.name.data.lastName))),t.append(o(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");if(level.value)return 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*(){return 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*(){return 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")):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 o=util_1._.instance.prodigy.world.zones[t].getCurrentQuestID();return util_1._.instance.prodigy.world.zones[t].completeQuest(o)?(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)});if(e.value)return 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.toString()).then((function(){return 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){return 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();return 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?");if(e.value)return util_1.player.grade=parseInt(e.value),swal_1.Toast.fire("Success","Successfully changed grade to ".concat(e,"!"),"success")})))}.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,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function _asyncToGenerator(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var r=e.apply(t,o);function s(e){asyncGeneratorStep(r,n,a,s,i,"next",e)}function i(e){asyncGeneratorStep(r,n,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*(){return 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,"Grab UserID of all players on screen","Shows you the UserID and name of every player currently shown on the screen.").setClick(_asyncToGenerator((function*(){var e=util_1.current.playerList;if(0===Object.keys(e).length)return swal_1.Toast.fire("No players found.","There are no other players on the screen.","error");var t="",o=0;return yield Object.keys(e).map((n=>{var a=Object.entries(e)[o][1].nameText.textSource.source;t+="
                                • uID: ".concat(n," - ").concat(a,"
                                • "),o++})),swal_1.Swal.fire({title:"All players on the screen:",html:t,icon:"info"})}))),new index_1.Hack(index_1.category.utility,"Save Character Locally [Local]","Saves your character locally.").setClick(_asyncToGenerator((function*(){return 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"});return t.ok?swal_1.Toast.fire("Success!","Character has been successfully loaded. Reload for the changes to take effect.","success"):swal_1.Toast.fire("Request failed.","An error occurred while loading the character. Error code: ".concat(t.status),"error")}return 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*(){return(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;return 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*(){return 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);return 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*(){return teleportingInterval=setInterval((()=>{try{util_1.player._playerContainer.walkSpeed=500}catch(e){}})),swal_1.Toast.fire("Success!","Successfully enabled teleport click.","success")}))).setDisabled(_asyncToGenerator((function*(){return 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*(){return util_1._.network.game._paused=!0,swal_1.Toast.fire("Success!","Successfully paused Prodigy.","success")}))).setDisabled(_asyncToGenerator((function*(){return 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)return console.log("Cancelled.");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 swal_1.Swal.fire({title:"Error",html:"Oops! There was an error with the code!
                                   ".concat(e," "),icon:"error"})}return 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,o){var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))}}var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};n=[o,t,o(7046),o(2852),o(3526),o(6455),o(4759),o(4719),o(158)],a=function(e,t,o,n,a,r,c,l){"use strict";var u,d,p,h;Object.defineProperty(t,"__esModule",{value:!0}),t.category=t.Toggler=t.Hack=t.toggler=t.wrapper=t.menu=void 0,r=i(r),t.menu=document.createElement("div"),t.wrapper=document.getElementById("game-wrapper"),null===(u=document.getElementById("cheat-menu"))||void 0===u||u.remove(),null===(d=document.getElementById("menu-toggler"))||void 0===d||d.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===(p=t.wrapper)||void 0===p||p.prepend(t.menu),t.toggler=document.createElement("button"),t.toggler.id="menu-toggler";var m=!1;null===(h=t.wrapper)||void 0===h||h.prepend(t.toggler),t.toggler.onclick=()=>{(m=!m)?(t.toggler.innerText="▼",t.menu.style.top="-100vh"):(t.toggler.innerText="▲",t.menu.style.top="10%")},t.toggler.onclick({});var f=document.createElement("DIV");f.classList.add("menu-left"),t.menu.append(f);var g=!0,y=e=>{var t=document.createElement("div");0==g?(t.append(document.createElement("br")),t.append(document.createElement("br"))):g=!1,t.classList.add("menu-area"),t.style.textAlign="center",f.append(t);var o=document.createElement("h1");return o.innerText=e,o.style.textAlign="center",o.style.color="white",t.append(o),t},w=document.createElement("h1");w.classList.add("menu-title"),w.innerText="Prodigy Hacks",w.style.textAlign="center",f.append(w);var b=document.createElement("h2");b.style.fontSize="25px",b.style.color="white",b.innerHTML="
                                  Press SHIFT to show/hide the menu. Scroll down in the menu for more hacks.",f.append(b);var v=document.createElement("h3");v.style.fontSize="20px",v.innerHTML="\n

                                  Join our Discord https://dsc.gg/ProdigyPNP!

                                  \n\n
                                  \n",v.style.color="white",f.append(v);class _{constructor(e,t,o){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),o&&this.setDesc(o)}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,n.saveCharacter)(),console.log("Triggered ".concat(t.name,"."))})),this}setDesc(e){return this.element.title=e,this.description=e,this}}t.Hack=_,t.Toggler=class extends _{constructor(e,t,o){var n;super(e,t,o),n=this,this.parent=e,this.element.setAttribute("status","false"),this.setClick(s((function*(){var e,t;n.status=!n.status,n.status?(localStorage.setItem(n.name,"true"),yield null===(e=n.enabled)||void 0===e?void 0:e.call(n)):(localStorage.setItem(n.name,"false"),yield null===(t=n.disabled)||void 0===t?void 0:t.call(n))})))}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:y("Player Hacks"),inventory:y("Inventory Hacks"),location:y("Location Hacks"),pets:y("Pet Hacks"),battle:y("Battle Hacks"),minigames:y("Minigame Hacks"),misc:y("Miscellaneous Hacks"),utility:y("Utility Hacks"),beta:y("Beta Testing | Beta Hacks may damage your account"),patched:y("Patched Hacks")},localStorage.hasTip?(0,l.IndexInfo)("Player already has tip."):(s((function*(){yield r.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,(0,l.IndexInfo)("Player was shown the tip.")),localStorage.getItem("level")&&(n._.player.getLevel=()=>localStorage.getItem("level"),(0,l.IndexInfo)("Loaded menu from localStorage."));var k=!0;document.addEventListener("keydown",(function(e){"Shift"==e.key&&((0,l.IndexInfo)("Shift key was pressed."),1==k?((0,l.IndexInfo)("Hiding cheat menu..."),document.getElementById("cheat-menu").style.display="none",document.getElementById("menu-toggler").style.display="none",k=!1,(0,l.IndexInfo)("Hidden cheat menu.")):((0,l.IndexInfo)("Showing cheat menu..."),document.getElementById("cheat-menu").style.display="block",document.getElementById("menu-toggler").style.display="block",k=!0,(0,l.IndexInfo)("Shown cheat menu.")))})),s((function*(){var e,t;(yield c.License.fire("ProdigyPNP",'\n

                                  \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 ')).value?yield(0,a.statusMessage)():(yield c.NoLicense.fire("ProdigyPNP License","\n

                                  \n You need to agree to our license to use our hacks. If you changed your mind and now agree to our license, reload Prodigy.\n

                                  \n ")).value?document.location="":(null===(e=document.getElementById("cheat-menu"))||void 0===e||e.remove(),null===(t=document.getElementById("menu-toggler"))||void 0===t||t.remove())}))()}.apply(t,n),void 0===a||(e.exports=a)},3314:(e,t,o)=>{var n;void 0===(n=function(e,t){}.apply(t,[o,t]))||(e.exports=n)},8238:(e,t,o)=>{var n,a;n=[o,t,o(9820)],a=function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stopFps=t.startFps=void 0;var n=document.createElement("button"),a=!1;t.startFps=function(){var e;a=!0,n.id="fps-counter",null===(e=o.wrapper)||void 0===e||e.prepend(n),setInterval((()=>{var e=_.player.game.fps._framerate;a?n.innerText=e.toFixed(2)+" FPS":n.remove()}),300)},t.stopFps=function(){var e;a=!1,null===(e=document.getElementById("fps-counter"))||void 0===e||e.remove()}}.apply(t,n),void 0===a||(e.exports=a)},112:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}n=[o,t,o(2852),o(4759)],a=function(e,t,o,n){"use strict";function a(e){o._.instance.prodigy.loading(!0);var t=t=>{var a=null!=t?t[e]:null;if(null!==a&&void 0!==a.house&&null!==a.house){o._.instance.prodigy.loading(!1);var r=o._.cloneDeep(o._.player.house);return r.setItems(a.house),void 0!==a.data.allowsHouseVisitors&&null!==a.data.allowsHouseVisitors&&a.data.allowsHouseVisitors?o._.instance.prodigy.world._("house",null,null,{house:r,getAllowsHouseVisitors:()=>void 0!==a.data.allowsHouseVisitors&&null!==a.data.allowsHouseVisitors&&a.data.allowsHouseVisitors,setAllowsHouseVisitors:e=>{a.data.allowsHouseVisitors=e}}):n.Swal.fire("Teleporting to ".concat(e," is not allowed."),"Try another user.","error")}};return o._.network.getCharData(e.toString(),["house","data"],t,t),n.Toast.fire("Teleported to house","You have been teleported to the house!","success")}Object.defineProperty(t,"__esModule",{value:!0}),t.getPet=t.teleportToHouse=t.toHouse=t.getMemberModule=t.runeify=t.itemify=t.ids=t.names=void 0,t.names=["Boots","Buddies","Fossils","Hats","Items","Key Items","Tower Town Frames","Tower Town Interiors","Mounts","Outfits","Relics","Weapons","Currencies"],t.ids=["boots","follow","fossil","hat","item","key","mathTownFrame","mathTownInterior","mount","outfit","spellRelic","weapon","currency"],t.itemify=(e,t)=>e.map((e=>({ID:e.ID,N:t}))).filter((e=>void 0!==e)),t.runeify=(e,t)=>{e.map((e=>({ID:e.ID,quantity:t}))).filter((e=>void 0!==e))},t.getMemberModule=function(){return o._.player.hasMembership.toString().split('"')[1]},t.toHouse=function(e){if(o._.player.userID!==e){var t=o._.instance.prodigy.friendsListNetworkHandler.friendsList.length,r=o._.instance.prodigy.friendsListNetworkHandler.classList.length;o._.instance.prodigy.gameContainer.get("2e1-e659").create("house-visit","click","hub",t,r,null,null,e).broadcast()}var s=o._.instance.prodigy.world.getZone(o._.instance.prodigy.world.getCurrentZone());return s?s.handleLeaving(2,(()=>a(e))):n.Swal.fire({title:"Error",text:"You are not in a zone!",icon:"error"})},t.teleportToHouse=a;var s=function(){var e,t=(e=function*(e){return(yield n.Swal.fire({input:"select",inputOptions:new Map(o._.player.kennel.data.map(((e,t)=>{var n,a,r;return[t.toString(),"Level ".concat(e.level," - ").concat(null!==(n=null!==(a=e.nickname)&&void 0!==a?a:null===(r=o._.gameData.pet.find((t=>+t.ID==+e.ID)))||void 0===r?void 0:r.data.name)&&void 0!==n?n:"Unknown")]}))),title:"Choose Pet",text:e})).value},function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))});return function(e){return t.apply(this,arguments)}}();t.getPet=s}.apply(t,n),void 0===a||(e.exports=a)},3336:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))}}n=[o,t,o(4759)],a=function(e,t,o){"use strict";function n(){return(n=s((function*(){var e=new Map;e.set("Copy","Copy a slot to another slot"),e.set("Remove","Completley empty one slot");var t=yield o.Swal.fire({input:"select",inputOptions:e,title:"Select Action",text:"Select an action to perform on the Kennel"});return t.value?t.value:null}))).apply(this,arguments)}function a(){return(a=s((function*(){var e=new Map,t=e=>_.player.kennel._petTeam[e]?_.player.kennel._petTeam[e].source?_.player.kennel._petTeam[e].source.name:_.player.kennel._petTeam[e]._userDataPlatform?"Player":"null":"null";e.set("0","[0] Center - ".concat(t(0))),e.set("1","[1] Top - ".concat(t(1))),e.set("2","[2] Bottom - ".concat(t(2)));var n=yield o.Swal.fire({input:"select",inputOptions:e,title:"Select Slot",text:"Select a slot to edit"});return n.value?parseInt(n.value):null}))).apply(this,arguments)}Object.defineProperty(t,"__esModule",{value:!0}),t.SelectSlot=t.GetAction=void 0,t.GetAction=function(){return n.apply(this,arguments)},t.SelectSlot=function(){return a.apply(this,arguments)}}.apply(t,n),void 0===a||(e.exports=a)},2868:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}n=[o,t,o(2852),o(4759)],void 0===(a=function(e,t,o,n){"use strict";window.addEventListener("keydown",(e=>{switch(e.which){case 192:o._.instance.prodigy.open.menuCloseAll();break;case 220:var t=function(){var e,t=(e=function*(){if(!(yield n.Confirm.fire("Kit","Would you like to equip Celestial Gear?")).value)return console.log("Cancelled");o._.player.equipment.setHat(200),o._.player.equipment.setBoots(93),o._.player.equipment.setOutfit(161),o._.player.equipment.setWeapon(196),o._.player.appearanceChanged=!0,n.Toast.fire("Success!","You are now wearing Celestial Armor and wielding a Dual Blade.","success")},function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))});return function(){return t.apply(this,arguments)}}();t()}}))}.apply(t,n))||(e.exports=a)},4719:(e,t,o)=>{var n;n=function(e,t){"use strict";function o(e,o){return""==e||null==e?console.log("["+t.LogPrefix+":unknown] "+o):console.log("["+t.LogPrefix+":"+e+"] "+o)}function n(e,t,n){return o(t,"*"+e.toUpperCase()+"* "+n)}Object.defineProperty(t,"__esModule",{value:!0}),t.UtilityError=t.UtilitySuccess=t.UtilityInfo=t.PlayerError=t.PlayerSuccess=t.PlayerInfo=t.PetsError=t.PetsSuccess=t.PetsInfo=t.PatchedError=t.PatchedSuccess=t.PatchedInfo=t.MiscError=t.MiscSuccess=t.MiscInfo=t.MinigameError=t.MinigameSuccess=t.MinigameInfo=t.LocationError=t.LocationSuccess=t.LocationInfo=t.InventoryError=t.InventorySuccess=t.InventoryInfo=t.BetaError=t.BetaSuccess=t.BetaInfo=t.BattleError=t.BattleSuccess=t.BattleInfo=t.IndexError=t.IndexSuccess=t.IndexInfo=t.StatusLog=t.ConsoleLog=t.LogPrefix=void 0,t.LogPrefix="CheatGUI",t.ConsoleLog=o,t.StatusLog=n,t.IndexInfo=function(e){return n("info","index.ts",e)},t.IndexSuccess=function(e){return n("success","index.ts",e)},t.IndexError=function(e){return n("error","index.ts",e)},t.BattleInfo=function(e){return n("info","battle.ts",e)},t.BattleSuccess=function(e){return n("success","battle.ts",e)},t.BattleError=function(e){return n("error","battle.ts",e)},t.BetaInfo=function(e){return n("info","beta.ts",e)},t.BetaSuccess=function(e){return n("success","beta.ts",e)},t.BetaError=function(e){return n("error","beta.ts",e)},t.InventoryInfo=function(e){return n("info","inventory.ts",e)},t.InventorySuccess=function(e){return n("success","inventory.ts",e)},t.InventoryError=function(e){return n("error","inventory.ts",e)},t.LocationInfo=function(e){return n("info","location.ts",e)},t.LocationSuccess=function(e){return n("success","location.ts",e)},t.LocationError=function(e){return n("error","location.ts",e)},t.MinigameInfo=function(e){return n("info","minigame.ts",e)},t.MinigameSuccess=function(e){return n("success","minigame.ts",e)},t.MinigameError=function(e){return n("error","minigame.ts",e)},t.MiscInfo=function(e){return n("info","misc.ts",e)},t.MiscSuccess=function(e){return n("success","misc.ts",e)},t.MiscError=function(e){return n("error","misc.ts",e)},t.PatchedInfo=function(e){return n("info","patched.ts",e)},t.PatchedSuccess=function(e){return n("success","patched.ts",e)},t.PatchedError=function(e){return n("error","patched.ts",e)},t.PetsInfo=function(e){return n("info","pets.ts",e)},t.PetsSuccess=function(e){return n("success","pets.ts",e)},t.PetsError=function(e){return n("error","pets.ts",e)},t.PlayerInfo=function(e){return n("info","player.ts",e)},t.PlayerSuccess=function(e){return n("success","player.ts",e)},t.PlayerError=function(e){return n("error","player.ts",e)},t.UtilityInfo=function(e){return n("info","utility.ts",e)},t.UtilitySuccess=function(e){return n("success","utility.ts",e)},t.UtilityError=function(e){return n("error","utility.ts",e)}}.apply(t,[o,t]),void 0===n||(e.exports=n)},3131:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))}}n=[o,t,o(2852)],a=function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PopupInterval=void 0;var n=!1;t.PopupInterval=function(e){n=e},s((function*(){setInterval(s((function*(){n&&o._.instance.prodigy.open.menuCloseAll()})),200)}))()}.apply(t,n),void 0===a||(e.exports=a)},3526:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),c=i.value}catch(e){return void o(e)}i.done?t(c):Promise.resolve(c).then(n,a)}n=[o,t,o(4759)],a=function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.statusMessage=void 0,t.statusMessage=function(){fetch("https://raw.githubusercontent.com/ProdigyPNP/ProdigyMathGameHacking/master/cheatGUI/statusmessage.json?updated=".concat(Date.now())).then((e=>e.json())).then(function(){var e,t=(e=function*(e){if(!1===e.enabled.value)return console.log("Status message is disabled.");yield o.Swal.fire({title:e.get("title"),html:e.get("html"),icon:e.get("icon")})},function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,c,"next",e)}function c(e){r(s,n,a,i,c,"throw",e)}i(void 0)}))});return function(e){return t.apply(this,arguments)}}())}}.apply(t,n),void 0===a||(e.exports=a)},4759:function(e,t,o){var n,a,r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};n=[o,t,o(6455)],a=function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NoLicense=t.License=t.Info=t.Confirm=t.Toast=t.NumberInput=t.Input=t.Swal=void 0,o=r(o),t.Swal=o.default,t.Input=t.Swal.mixin({input:"text",showCancelButton:!0,showConfirmButton:!0,toast:!1}),t.NumberInput=t.Input.mixin({toast:!1,input:"number"}),t.Toast=t.Swal.mixin({toast:!0,position:"bottom"}),t.Confirm=t.Swal.mixin({icon:"warning",showCancelButton:!0,toast:!1,confirmButtonText:"Confirm",cancelButtonText:"Cancel"}),t.Info=t.Swal.mixin({icon:"info",showCancelButton:!1,toast:!1}),t.License=t.Swal.mixin({icon:"info",showCancelButton:!0,toast:!1,confirmButtonText:"Agree",cancelButtonText:"Disagree"}),t.NoLicense=t.Swal.mixin({icon:"error",showCancelButton:!0,toast:!1,confirmButtonText:"Reload",cancelButtonText:"Play without hacks"})}.apply(t,n),void 0===a||(e.exports=a)},2852:(e,t,o)=>{var n;n=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.current=t.player=t._=void 0,t._=window._,t.player=t._.player,t.current=window.Boot.prototype.game._state._current;var o=t._.instance;t.game=o.game,t.prodigy=o.prodigy,t.gameData=t._.instance.game.state.states.get("Boot").gameData,t.getItem=(e,o)=>{var n;return null!==(n=t._.gameData[e].find((e=>e.ID===o)))&&void 0!==n?n: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,[o,t]),void 0===n||(e.exports=n)},450:(e,t,o)=>{"use strict";o.d(t,{Z:()=>i});var n=o(8081),a=o.n(n),r=o(3645),s=o.n(r)()(a());s.push([e.id,"@import url(https://fonts.googleapis.com/css?family=Arvo:400,700|Sen:400,700,800&display=swap&subset=latin-ext);"]),s.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;font-size:23px;height:26px;width:50px;border:1px solid rgba(0,0,0,.1)}#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 #fps-counter{z-index:2;position:absolute;border-radius:3px;background-color:rgba(255,255,255,.7333333333);transition:background-color .15s;width:130px;height:26px;font-size:23px;border:1px solid rgba(0,0,0,.1);margin-left:83%}#game-wrapper #fps-counter:hover{background-color:rgba(221,221,221,.7333333333)}#game-wrapper #fps-counter: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:rgba(0,0,0,.55);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;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 i=s},3645:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var o="",n=void 0!==t[5];return t[4]&&(o+="@supports (".concat(t[4],") {")),t[2]&&(o+="@media ".concat(t[2]," {")),n&&(o+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),o+=e(t),n&&(o+="}"),t[2]&&(o+="}"),t[4]&&(o+="}"),o})).join("")},t.i=function(e,o,n,a,r){"string"==typeof e&&(e=[[null,e,void 0]]);var s={};if(n)for(var i=0;i0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=r),o&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=o):u[2]=o),a&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=a):u[4]="".concat(a)),t.push(u))}},t}},8081:e=>{"use strict";e.exports=function(e){return e[1]}},1227:(e,t,o)=>{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 o="color: "+this.color;t.splice(1,0,o,"color: inherit");let n=0,a=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(n++,"%c"===e&&(a=n))})),t.splice(a,0,o)},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=o(2447)(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},2447:(e,t,o)=>{e.exports=function(e){function t(e){let o,a,r,s=null;function i(...e){if(!i.enabled)return;const n=i,a=Number(new Date),r=a-(o||a);n.diff=r,n.prev=o,n.curr=a,o=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,((o,a)=>{if("%%"===o)return"%";s++;const r=t.formatters[a];if("function"==typeof r){const t=e[s];o=r.call(n,t),e.splice(s,1),s--}return o})),t.formatArgs.call(n,e),(n.log||t.log).apply(n,e)}return i.namespace=e,i.useColors=t.useColors(),i.color=t.selectColor(e),i.extend=n,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 n(e,o){const n=t(this.namespace+(void 0===o?":":o)+e);return n.log=this.log,n}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 o;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const n=("string"==typeof e?e:"").split(/[\s,]+/),a=n.length;for(o=0;o{t[o]=e[o]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let o=0;for(let t=0;t{var t=1e3,o=60*t,n=60*o,a=24*n;function r(e,t,o,n){var a=t>=1.5*o;return Math.round(e/o)+" "+n+(a?"s":"")}e.exports=function(e,s){s=s||{};var i,c,l=typeof e;if("string"===l&&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*n;case"minutes":case"minute":case"mins":case"min":case"m":return s*o;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"===l&&isFinite(e))return s.long?(i=e,(c=Math.abs(i))>=a?r(i,c,a,"day"):c>=n?r(i,c,n,"hour"):c>=o?r(i,c,o,"minute"):c>=t?r(i,c,t,"second"):i+" ms"):function(e){var r=Math.abs(e);return r>=a?Math.round(e/a)+"d":r>=n?Math.round(e/n)+"h":r>=o?Math.round(e/o)+"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,o)=>{"use strict";o.r(t),o.d(t,{default:()=>y});var n=o(3379),a=o.n(n),r=o(7795),s=o.n(r),i=o(569),c=o.n(i),l=o(3565),u=o.n(l),d=o(9216),p=o.n(d),h=o(4589),m=o.n(h),f=o(450),g={};g.styleTagTransform=m(),g.setAttributes=u(),g.insert=c().bind(null,"head"),g.domAPI=s(),g.insertStyleElement=p(),a()(f.Z,g);const y=f.Z&&f.Z.locals?f.Z.locals:void 0},3379:e=>{"use strict";var t=[];function o(e){for(var o=-1,n=0;n{"use strict";var t={};e.exports=function(e,o){var n=function(e){if(void 0===t[e]){var o=document.querySelector(e);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(e){o=null}t[e]=o}return t[e]}(e);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(o)}},9216:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},3565:(e,t,o)=>{"use strict";e.exports=function(e){var t=o.nc;t&&e.setAttribute("nonce",t)}},7795:e=>{"use strict";e.exports=function(e){var t=e.insertStyleElement(e);return{update:function(o){!function(e,t,o){var n="";o.supports&&(n+="@supports (".concat(o.supports,") {")),o.media&&(n+="@media ".concat(o.media," {"));var a=void 0!==o.layer;a&&(n+="@layer".concat(o.layer.length>0?" ".concat(o.layer):""," {")),n+=o.css,a&&(n+="}"),o.media&&(n+="}"),o.supports&&(n+="}");var r=o.sourceMap;r&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(r))))," */")),t.styleTagTransform(n,e,t.options)}(t,e,o)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},4589:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},6455:function(e){e.exports=function(){"use strict";const e="SweetAlert2:",t=e=>e.charAt(0).toUpperCase()+e.slice(1),o=t=>{console.warn("".concat(e," ").concat("object"==typeof t?t.join(" "):t))},n=t=>{console.error("".concat(e," ").concat(t))},a=[],r=(e,t)=>{var n;n='"'.concat(e,'" is deprecated and will be removed in the next major release. Please use "').concat(t,'" instead.'),a.includes(n)||(a.push(n),o(n))},s=e=>"function"==typeof e?e():e,i=e=>e&&"function"==typeof e.toPromise,c=e=>i(e)?e.toPromise():Promise.resolve(e),l=e=>e&&Promise.resolve(e)===e,u={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,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",color:void 0,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,willOpen:void 0,didOpen:void 0,didRender:void 0,willClose:void 0,didClose:void 0,didDestroy:void 0,scrollbarPadding:!0},d=["allowEscapeKey","allowOutsideClick","background","buttonsStyling","cancelButtonAriaLabel","cancelButtonColor","cancelButtonText","closeButtonAriaLabel","closeButtonHtml","color","confirmButtonAriaLabel","confirmButtonColor","confirmButtonText","currentProgressStep","customClass","denyButtonAriaLabel","denyButtonColor","denyButtonText","didClose","didDestroy","footer","hideClass","html","icon","iconColor","iconHtml","imageAlt","imageHeight","imageUrl","imageWidth","preConfirm","preDeny","progressSteps","returnFocus","reverseButtons","showCancelButton","showCloseButton","showConfirmButton","showDenyButton","text","title","titleText","willClose"],p={},h=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],m=e=>Object.prototype.hasOwnProperty.call(u,e),f=e=>-1!==d.indexOf(e),g=e=>p[e],y=e=>{m(e)||o('Unknown parameter "'.concat(e,'"'))},w=e=>{h.includes(e)&&o('The parameter "'.concat(e,'" is incompatible with toasts'))},b=e=>{g(e)&&r(e,g(e))},v=e=>{const t={};for(const o in e)t[e[o]]="swal2-"+e[o];return t},_=v(["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","show","hide","close","title","html-container","actions","confirm","deny","cancel","default-outline","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","input-label","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loader","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error","no-war"]),k=v(["success","warning","info","question","error"]),C=()=>document.body.querySelector(".".concat(_.container)),x=e=>{const t=C();return t?t.querySelector(e):null},E=e=>x(".".concat(e)),T=()=>E(_.popup),S=()=>E(_.icon),P=()=>E(_.title),A=()=>E(_["html-container"]),I=()=>E(_.image),B=()=>E(_["progress-steps"]),D=()=>E(_["validation-message"]),O=()=>x(".".concat(_.actions," .").concat(_.confirm)),M=()=>x(".".concat(_.actions," .").concat(_.deny)),R=()=>x(".".concat(_.loader)),L=()=>x(".".concat(_.actions," .").concat(_.cancel)),N=()=>E(_.actions),j=()=>E(_.footer),H=()=>E(_["timer-progress-bar"]),F=()=>E(_.close),q=()=>{const e=Array.from(T().querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])')).sort(((e,t)=>{const o=parseInt(e.getAttribute("tabindex")),n=parseInt(t.getAttribute("tabindex"));return o>n?1:o"-1"!==e.getAttribute("tabindex")));return(e=>{const t=[];for(let o=0;ore(e)))},U=()=>G(document.body,_.shown)&&!G(document.body,_["toast-shown"])&&!G(document.body,_["no-backdrop"]),Y=()=>T()&&G(T(),_.toast),z={previousBodyPadding:null},W=(e,t)=>{if(e.textContent="",t){const o=(new DOMParser).parseFromString(t,"text/html");Array.from(o.querySelector("head").childNodes).forEach((t=>{e.appendChild(t)})),Array.from(o.querySelector("body").childNodes).forEach((t=>{e.appendChild(t)}))}},G=(e,t)=>{if(!t)return!1;const o=t.split(/\s+/);for(let t=0;t{if(((e,t)=>{Array.from(e.classList).forEach((o=>{Object.values(_).includes(o)||Object.values(k).includes(o)||Object.values(t.showClass).includes(o)||e.classList.remove(o)}))})(e,t),t.customClass&&t.customClass[n]){if("string"!=typeof t.customClass[n]&&!t.customClass[n].forEach)return o("Invalid type of customClass.".concat(n,'! Expected string or iterable object, got "').concat(typeof t.customClass[n],'"'));J(e,t.customClass[n])}},K=(e,t)=>{if(!t)return null;switch(t){case"select":case"textarea":case"file":return e.querySelector(".".concat(_.popup," > .").concat(_[t]));case"checkbox":return e.querySelector(".".concat(_.popup," > .").concat(_.checkbox," input"));case"radio":return e.querySelector(".".concat(_.popup," > .").concat(_.radio," input:checked"))||e.querySelector(".".concat(_.popup," > .").concat(_.radio," input:first-child"));case"range":return e.querySelector(".".concat(_.popup," > .").concat(_.range," input"));default:return e.querySelector(".".concat(_.popup," > .").concat(_.input))}},$=e=>{if(e.focus(),"file"!==e.type){const t=e.value;e.value="",e.value=t}},Z=(e,t,o)=>{e&&t&&("string"==typeof t&&(t=t.split(/\s+/).filter(Boolean)),t.forEach((t=>{Array.isArray(e)?e.forEach((e=>{o?e.classList.add(t):e.classList.remove(t)})):o?e.classList.add(t):e.classList.remove(t)})))},J=(e,t)=>{Z(e,t,!0)},X=(e,t)=>{Z(e,t,!1)},Q=(e,t)=>{const o=Array.from(e.children);for(let e=0;e{o==="".concat(parseInt(o))&&(o=parseInt(o)),o||0===parseInt(o)?e.style[t]="number"==typeof o?"".concat(o,"px"):o:e.style.removeProperty(t)},te=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"flex";e.style.display=t},oe=e=>{e.style.display="none"},ne=(e,t,o,n)=>{const a=e.querySelector(t);a&&(a.style[o]=n)},ae=function(e,t){t?te(e,arguments.length>2&&void 0!==arguments[2]?arguments[2]:"flex"):oe(e)},re=e=>!(!e||!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)),se=e=>!!(e.scrollHeight>e.clientHeight),ie=e=>{const t=window.getComputedStyle(e),o=parseFloat(t.getPropertyValue("animation-duration")||"0"),n=parseFloat(t.getPropertyValue("transition-duration")||"0");return o>0||n>0},ce=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const o=H();re(o)&&(t&&(o.style.transition="none",o.style.width="100%"),setTimeout((()=>{o.style.transition="width ".concat(e/1e3,"s linear"),o.style.width="0%"}),10))},le=()=>"undefined"==typeof window||"undefined"==typeof document,ue={},de=e=>new Promise((t=>{if(!e)return t();const o=window.scrollX,n=window.scrollY;ue.restoreFocusTimeout=setTimeout((()=>{ue.previousActiveElement instanceof HTMLElement?(ue.previousActiveElement.focus(),ue.previousActiveElement=null):document.body&&document.body.focus(),t()}),100),window.scrollTo(o,n)})),pe='\n
                                  \n \n
                                    \n
                                    \n \n

                                    \n
                                    \n \n \n
                                    \n \n \n
                                    \n \n
                                    \n \n \n
                                    \n
                                    \n
                                    \n \n \n \n
                                    \n
                                    \n
                                    \n
                                    \n
                                    \n
                                    \n').replace(/(^|\n)\s*/g,""),he=()=>{ue.currentInstance.resetValidationMessage()},me=e=>{const t=(()=>{const e=C();return!!e&&(e.remove(),X([document.documentElement,document.body],[_["no-backdrop"],_["toast-shown"],_["has-column"]]),!0)})();if(le())return void n("SweetAlert2 requires document to initialize");const o=document.createElement("div");o.className=_.container,t&&J(o,_["no-transition"]),W(o,pe);const a="string"==typeof(r=e.target)?document.querySelector(r):r;var r;a.appendChild(o),(e=>{const t=T();t.setAttribute("role",e.toast?"alert":"dialog"),t.setAttribute("aria-live",e.toast?"polite":"assertive"),e.toast||t.setAttribute("aria-modal","true")})(e),(e=>{"rtl"===window.getComputedStyle(e).direction&&J(C(),_.rtl)})(a),(()=>{const e=T(),t=Q(e,_.input),o=Q(e,_.file),n=e.querySelector(".".concat(_.range," input")),a=e.querySelector(".".concat(_.range," output")),r=Q(e,_.select),s=e.querySelector(".".concat(_.checkbox," input")),i=Q(e,_.textarea);t.oninput=he,o.onchange=he,r.onchange=he,s.onchange=he,i.oninput=he,n.oninput=()=>{he(),a.value=n.value},n.onchange=()=>{he(),a.value=n.value}})()},fe=(e,t)=>{e instanceof HTMLElement?t.appendChild(e):"object"==typeof e?ge(e,t):e&&W(t,e)},ge=(e,t)=>{e.jquery?ye(t,e):W(t,e.toString())},ye=(e,t)=>{if(e.textContent="",0 in t)for(let o=0;o in t;o++)e.appendChild(t[o].cloneNode(!0));else e.appendChild(t.cloneNode(!0))},we=(()=>{if(le())return!1;const e=document.createElement("div"),t={WebkitAnimation:"webkitAnimationEnd",animation:"animationend"};for(const o in t)if(Object.prototype.hasOwnProperty.call(t,o)&&void 0!==e.style[o])return t[o];return!1})(),be=(e,t)=>{const o=N(),n=R();t.showConfirmButton||t.showDenyButton||t.showCancelButton?te(o):oe(o),V(o,t,"actions"),function(e,t,o){const n=O(),a=M(),r=L();ve(n,"confirm",o),ve(a,"deny",o),ve(r,"cancel",o),function(e,t,o,n){if(!n.buttonsStyling)return X([e,t,o],_.styled);J([e,t,o],_.styled),n.confirmButtonColor&&(e.style.backgroundColor=n.confirmButtonColor,J(e,_["default-outline"])),n.denyButtonColor&&(t.style.backgroundColor=n.denyButtonColor,J(t,_["default-outline"])),n.cancelButtonColor&&(o.style.backgroundColor=n.cancelButtonColor,J(o,_["default-outline"]))}(n,a,r,o),o.reverseButtons&&(o.toast?(e.insertBefore(r,n),e.insertBefore(a,n)):(e.insertBefore(r,t),e.insertBefore(a,t),e.insertBefore(n,t)))}(o,n,t),W(n,t.loaderHtml),V(n,t,"loader")};function ve(e,o,n){ae(e,n["show".concat(t(o),"Button")],"inline-block"),W(e,n["".concat(o,"ButtonText")]),e.setAttribute("aria-label",n["".concat(o,"ButtonAriaLabel")]),e.className=_[o],V(e,n,"".concat(o,"Button")),J(e,n["".concat(o,"ButtonClass")])}const _e=(e,t)=>{const n=C();n&&(function(e,t){"string"==typeof t?e.style.background=t:t||J([document.documentElement,document.body],_["no-backdrop"])}(n,t.backdrop),function(e,t){t in _?J(e,_[t]):(o('The "position" parameter is not valid, defaulting to "center"'),J(e,_.center))}(n,t.position),function(e,t){if(t&&"string"==typeof t){const o="grow-".concat(t);o in _&&J(e,_[o])}}(n,t.grow),V(n,t,"container"))};var ke={awaitingPromise:new WeakMap,promise:new WeakMap,innerParams:new WeakMap,domCache:new WeakMap};const Ce=["input","file","range","select","radio","checkbox","textarea"],xe=e=>{if(!Be[e.input])return n('Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "'.concat(e.input,'"'));const t=Ae(e.input),o=Be[e.input](t,e);te(t),setTimeout((()=>{$(o)}))},Ee=(e,t)=>{const o=K(T(),e);if(o){(e=>{for(let t=0;t{const t=Ae(e.input);"object"==typeof e.customClass&&J(t,e.customClass.input)},Se=(e,t)=>{e.placeholder&&!t.inputPlaceholder||(e.placeholder=t.inputPlaceholder)},Pe=(e,t,o)=>{if(o.inputLabel){e.id=_.input;const n=document.createElement("label"),a=_["input-label"];n.setAttribute("for",e.id),n.className=a,"object"==typeof o.customClass&&J(n,o.customClass.inputLabel),n.innerText=o.inputLabel,t.insertAdjacentElement("beforebegin",n)}},Ae=e=>Q(T(),_[e]||_.input),Ie=(e,t)=>{["string","number"].includes(typeof t)?e.value="".concat(t):l(t)||o('Unexpected type of inputValue! Expected "string", "number" or "Promise", got "'.concat(typeof t,'"'))},Be={};Be.text=Be.email=Be.password=Be.number=Be.tel=Be.url=(e,t)=>(Ie(e,t.inputValue),Pe(e,e,t),Se(e,t),e.type=t.input,e),Be.file=(e,t)=>(Pe(e,e,t),Se(e,t),e),Be.range=(e,t)=>{const o=e.querySelector("input"),n=e.querySelector("output");return Ie(o,t.inputValue),o.type=t.input,Ie(n,t.inputValue),Pe(o,e,t),e},Be.select=(e,t)=>{if(e.textContent="",t.inputPlaceholder){const o=document.createElement("option");W(o,t.inputPlaceholder),o.value="",o.disabled=!0,o.selected=!0,e.appendChild(o)}return Pe(e,e,t),e},Be.radio=e=>(e.textContent="",e),Be.checkbox=(e,t)=>{const o=K(T(),"checkbox");o.value="1",o.id=_.checkbox,o.checked=Boolean(t.inputValue);const n=e.querySelector("span");return W(n,t.inputPlaceholder),o},Be.textarea=(e,t)=>{Ie(e,t.inputValue),Se(e,t),Pe(e,e,t);return setTimeout((()=>{if("MutationObserver"in window){const t=parseInt(window.getComputedStyle(T()).width);new MutationObserver((()=>{const o=e.offsetWidth+(n=e,parseInt(window.getComputedStyle(n).marginLeft)+parseInt(window.getComputedStyle(n).marginRight));var n;T().style.width=o>t?"".concat(o,"px"):null})).observe(e,{attributes:!0,attributeFilter:["style"]})}})),e};const De=(e,t)=>{const o=A();V(o,t,"htmlContainer"),t.html?(fe(t.html,o),te(o,"block")):t.text?(o.textContent=t.text,te(o,"block")):oe(o),((e,t)=>{const o=T(),n=ke.innerParams.get(e),a=!n||t.input!==n.input;Ce.forEach((e=>{const n=Q(o,_[e]);Ee(e,t.inputAttributes),n.className=_[e],a&&oe(n)})),t.input&&(a&&xe(t),Te(t))})(e,t)},Oe=(e,t)=>{for(const o in k)t.icon!==o&&X(e,k[o]);J(e,k[t.icon]),Le(e,t),Me(),V(e,t,"icon")},Me=()=>{const e=T(),t=window.getComputedStyle(e).getPropertyValue("background-color"),o=e.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");for(let e=0;e{let o,n=e.innerHTML;t.iconHtml?o=Ne(t.iconHtml):"success"===t.icon?(o='\n
                                    \n \n
                                    \n
                                    \n',n=n.replace(/ style=".*?"/g,"")):o="error"===t.icon?'\n \n \n \n \n':Ne({question:"?",warning:"!",info:"i"}[t.icon]),n.trim()!==o.trim()&&W(e,o)},Le=(e,t)=>{if(t.iconColor){e.style.color=t.iconColor,e.style.borderColor=t.iconColor;for(const o of[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"])ne(e,o,"backgroundColor",t.iconColor);ne(e,".swal2-success-ring","borderColor",t.iconColor)}},Ne=e=>'
                                    ').concat(e,"
                                    "),je=e=>{const t=document.createElement("li");return J(t,_["progress-step"]),W(t,e),t},He=e=>{const t=document.createElement("li");return J(t,_["progress-step-line"]),e.progressStepsDistance&&ee(t,"width",e.progressStepsDistance),t},Fe=(e,t)=>{e.className="".concat(_.popup," ").concat(re(e)?t.showClass.popup:""),t.toast?(J([document.documentElement,document.body],_["toast-shown"]),J(e,_.toast)):J(e,_.modal),V(e,t,"popup"),"string"==typeof t.customClass&&J(e,t.customClass),t.icon&&J(e,_["icon-".concat(t.icon)])},qe=(e,t)=>{((e,t)=>{const o=C(),n=T();t.toast?(ee(o,"width",t.width),n.style.width="100%",n.insertBefore(R(),S())):ee(n,"width",t.width),ee(n,"padding",t.padding),t.color&&(n.style.color=t.color),t.background&&(n.style.background=t.background),oe(D()),Fe(n,t)})(0,t),_e(0,t),((e,t)=>{const n=B();if(!t.progressSteps||0===t.progressSteps.length)return oe(n);te(n),n.textContent="",t.currentProgressStep>=t.progressSteps.length&&o("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),t.progressSteps.forEach(((e,o)=>{const a=je(e);if(n.appendChild(a),o===t.currentProgressStep&&J(a,_["active-progress-step"]),o!==t.progressSteps.length-1){const e=He(t);n.appendChild(e)}}))})(0,t),((e,t)=>{const o=ke.innerParams.get(e),a=S();if(o&&t.icon===o.icon)return Re(a,t),void Oe(a,t);if(t.icon||t.iconHtml){if(t.icon&&-1===Object.keys(k).indexOf(t.icon))return n('Unknown icon! Expected "success", "error", "warning", "info" or "question", got "'.concat(t.icon,'"')),void oe(a);te(a),Re(a,t),Oe(a,t),J(a,t.showClass.icon)}else oe(a)})(e,t),((e,t)=>{const o=I();if(!t.imageUrl)return oe(o);te(o,""),o.setAttribute("src",t.imageUrl),o.setAttribute("alt",t.imageAlt),ee(o,"width",t.imageWidth),ee(o,"height",t.imageHeight),o.className=_.image,V(o,t,"image")})(0,t),((e,t)=>{const o=P();ae(o,t.title||t.titleText,"block"),t.title&&fe(t.title,o),t.titleText&&(o.innerText=t.titleText),V(o,t,"title")})(0,t),((e,t)=>{const o=F();W(o,t.closeButtonHtml),V(o,t,"closeButton"),ae(o,t.showCloseButton),o.setAttribute("aria-label",t.closeButtonAriaLabel)})(0,t),De(e,t),be(0,t),((e,t)=>{const o=j();ae(o,t.footer),t.footer&&fe(t.footer,o),V(o,t,"footer")})(0,t),"function"==typeof t.didRender&&t.didRender(T())},Ue=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),Ye=()=>{Array.from(document.body.children).forEach((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")}))},ze=["swal-title","swal-html","swal-footer"],We=e=>{const t={};return Array.from(e.querySelectorAll("swal-param")).forEach((e=>{Xe(e,["name","value"]);const o=e.getAttribute("name"),n=e.getAttribute("value");"boolean"==typeof u[o]&&"false"===n&&(t[o]=!1),"object"==typeof u[o]&&(t[o]=JSON.parse(n))})),t},Ge=e=>{const o={};return Array.from(e.querySelectorAll("swal-button")).forEach((e=>{Xe(e,["type","color","aria-label"]);const n=e.getAttribute("type");o["".concat(n,"ButtonText")]=e.innerHTML,o["show".concat(t(n),"Button")]=!0,e.hasAttribute("color")&&(o["".concat(n,"ButtonColor")]=e.getAttribute("color")),e.hasAttribute("aria-label")&&(o["".concat(n,"ButtonAriaLabel")]=e.getAttribute("aria-label"))})),o},Ve=e=>{const t={},o=e.querySelector("swal-image");return o&&(Xe(o,["src","width","height","alt"]),o.hasAttribute("src")&&(t.imageUrl=o.getAttribute("src")),o.hasAttribute("width")&&(t.imageWidth=o.getAttribute("width")),o.hasAttribute("height")&&(t.imageHeight=o.getAttribute("height")),o.hasAttribute("alt")&&(t.imageAlt=o.getAttribute("alt"))),t},Ke=e=>{const t={},o=e.querySelector("swal-icon");return o&&(Xe(o,["type","color"]),o.hasAttribute("type")&&(t.icon=o.getAttribute("type")),o.hasAttribute("color")&&(t.iconColor=o.getAttribute("color")),t.iconHtml=o.innerHTML),t},$e=e=>{const t={},o=e.querySelector("swal-input");o&&(Xe(o,["type","label","placeholder","value"]),t.input=o.getAttribute("type")||"text",o.hasAttribute("label")&&(t.inputLabel=o.getAttribute("label")),o.hasAttribute("placeholder")&&(t.inputPlaceholder=o.getAttribute("placeholder")),o.hasAttribute("value")&&(t.inputValue=o.getAttribute("value")));const n=Array.from(e.querySelectorAll("swal-input-option"));return n.length&&(t.inputOptions={},n.forEach((e=>{Xe(e,["value"]);const o=e.getAttribute("value"),n=e.innerHTML;t.inputOptions[o]=n}))),t},Ze=(e,t)=>{const o={};for(const n in t){const a=t[n],r=e.querySelector(a);r&&(Xe(r,[]),o[a.replace(/^swal-/,"")]=r.innerHTML.trim())}return o},Je=e=>{const t=ze.concat(["swal-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Array.from(e.children).forEach((e=>{const n=e.tagName.toLowerCase();-1===t.indexOf(n)&&o("Unrecognized element <".concat(n,">"))}))},Xe=(e,t)=>{Array.from(e.attributes).forEach((n=>{-1===t.indexOf(n.name)&&o(['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.")])}))};var Qe={email:(e,t)=>/^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]{2,24}$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid email address"),url:(e,t)=>/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid URL")};function et(e){(function(e){e.inputValidator||Object.keys(Qe).forEach((t=>{e.input===t&&(e.inputValidator=Qe[t])}))})(e),e.showLoaderOnConfirm&&!e.preConfirm&&o("showLoaderOnConfirm is set to true, but preConfirm is not defined.\nshowLoaderOnConfirm should be used together with preConfirm, see usage example:\nhttps://sweetalert2.github.io/#ajax-request"),function(e){(!e.target||"string"==typeof e.target&&!document.querySelector(e.target)||"string"!=typeof e.target&&!e.target.appendChild)&&(o('Target parameter is not valid, defaulting to "body"'),e.target="body")}(e),"string"==typeof e.title&&(e.title=e.title.split("\n").join("
                                    ")),me(e)}class tt{constructor(e,t){this.callback=e,this.remaining=t,this.running=!1,this.start()}start(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}stop(){return this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=(new Date).getTime()-this.started.getTime()),this.remaining}increase(e){const t=this.running;return t&&this.stop(),this.remaining+=e,t&&this.start(),this.remaining}getTimerLeft(){return this.running&&(this.stop(),this.start()),this.remaining}isRunning(){return this.running}}const ot=()=>{null===z.previousBodyPadding&&document.body.scrollHeight>window.innerHeight&&(z.previousBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight="".concat(z.previousBodyPadding+(()=>{const e=document.createElement("div");e.className=_["scrollbar-measure"],document.body.appendChild(e);const t=e.getBoundingClientRect().width-e.clientWidth;return document.body.removeChild(e),t})(),"px"))},nt=()=>{const e=navigator.userAgent,t=!!e.match(/iPad/i)||!!e.match(/iPhone/i),o=!!e.match(/WebKit/i);if(t&&o&&!e.match(/CriOS/i)){const e=44;T().scrollHeight>window.innerHeight-e&&(C().style.paddingBottom="".concat(e,"px"))}},at=()=>{const e=C();let t;e.ontouchstart=e=>{t=rt(e)},e.ontouchmove=e=>{t&&(e.preventDefault(),e.stopPropagation())}},rt=e=>{const t=e.target,o=C();return!(st(e)||it(e)||t!==o&&(se(o)||!(t instanceof HTMLElement)||"INPUT"===t.tagName||"TEXTAREA"===t.tagName||se(A())&&A().contains(t)))},st=e=>e.touches&&e.touches.length&&"stylus"===e.touches[0].touchType,it=e=>e.touches&&e.touches.length>1,ct=e=>{const t=C(),o=T();"function"==typeof e.willOpen&&e.willOpen(o);const n=window.getComputedStyle(document.body).overflowY;pt(t,o,e),setTimeout((()=>{ut(t,o)}),10),U()&&(dt(t,e.scrollbarPadding,n),Array.from(document.body.children).forEach((e=>{e===C()||e.contains(C())||(e.hasAttribute("aria-hidden")&&e.setAttribute("data-previous-aria-hidden",e.getAttribute("aria-hidden")),e.setAttribute("aria-hidden","true"))}))),Y()||ue.previousActiveElement||(ue.previousActiveElement=document.activeElement),"function"==typeof e.didOpen&&setTimeout((()=>e.didOpen(o))),X(t,_["no-transition"])},lt=e=>{const t=T();if(e.target!==t)return;const o=C();t.removeEventListener(we,lt),o.style.overflowY="auto"},ut=(e,t)=>{we&&ie(t)?(e.style.overflowY="hidden",t.addEventListener(we,lt)):e.style.overflowY="auto"},dt=(e,t,o)=>{(()=>{if((/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)&&!G(document.body,_.iosfix)){const e=document.body.scrollTop;document.body.style.top="".concat(-1*e,"px"),J(document.body,_.iosfix),at(),nt()}})(),t&&"hidden"!==o&&ot(),setTimeout((()=>{e.scrollTop=0}))},pt=(e,t,o)=>{J(e,o.showClass.backdrop),t.style.setProperty("opacity","0","important"),te(t,"grid"),setTimeout((()=>{J(t,o.showClass.popup),t.style.removeProperty("opacity")}),10),J([document.documentElement,document.body],_.shown),o.heightAuto&&o.backdrop&&!o.toast&&J([document.documentElement,document.body],_["height-auto"])},ht=e=>{let t=T();t||new So,t=T();const o=R();Y()?oe(S()):mt(t,e),te(o),t.setAttribute("data-loading","true"),t.setAttribute("aria-busy","true"),t.focus()},mt=(e,t)=>{const o=N(),n=R();!t&&re(O())&&(t=O()),te(o),t&&(oe(t),n.setAttribute("data-button-to-replace",t.className)),n.parentNode.insertBefore(n,t),J([e,o],_.loading)},ft=e=>e.checked?1:0,gt=e=>e.checked?e.value:null,yt=e=>e.files.length?null!==e.getAttribute("multiple")?e.files:e.files[0]:null,wt=(e,t)=>{const o=T(),a=e=>vt[t.input](o,_t(e),t);i(t.inputOptions)||l(t.inputOptions)?(ht(O()),c(t.inputOptions).then((t=>{e.hideLoading(),a(t)}))):"object"==typeof t.inputOptions?a(t.inputOptions):n("Unexpected type of inputOptions! Expected object, Map or Promise, got ".concat(typeof t.inputOptions))},bt=(e,t)=>{const o=e.getInput();oe(o),c(t.inputValue).then((n=>{o.value="number"===t.input?parseFloat(n)||0:"".concat(n),te(o),o.focus(),e.hideLoading()})).catch((t=>{n("Error in inputValue promise: ".concat(t)),o.value="",te(o),o.focus(),e.hideLoading()}))},vt={select:(e,t,o)=>{const n=Q(e,_.select),a=(e,t,n)=>{const a=document.createElement("option");a.value=n,W(a,t),a.selected=kt(n,o.inputValue),e.appendChild(a)};t.forEach((e=>{const t=e[0],o=e[1];if(Array.isArray(o)){const e=document.createElement("optgroup");e.label=t,e.disabled=!1,n.appendChild(e),o.forEach((t=>a(e,t[1],t[0])))}else a(n,o,t)})),n.focus()},radio:(e,t,o)=>{const n=Q(e,_.radio);t.forEach((e=>{const t=e[0],a=e[1],r=document.createElement("input"),s=document.createElement("label");r.type="radio",r.name=_.radio,r.value=t,kt(t,o.inputValue)&&(r.checked=!0);const i=document.createElement("span");W(i,a),i.className=_.label,s.appendChild(r),s.appendChild(i),n.appendChild(s)}));const a=n.querySelectorAll("input");a.length&&a[0].focus()}},_t=e=>{const t=[];return"undefined"!=typeof Map&&e instanceof Map?e.forEach(((e,o)=>{let n=e;"object"==typeof n&&(n=_t(n)),t.push([o,n])})):Object.keys(e).forEach((o=>{let n=e[o];"object"==typeof n&&(n=_t(n)),t.push([o,n])})),t},kt=(e,t)=>t&&t.toString()===e.toString();function Ct(){const e=ke.innerParams.get(this);if(!e)return;const t=ke.domCache.get(this);oe(t.loader),Y()?e.icon&&te(S()):xt(t),X([t.popup,t.actions],_.loading),t.popup.removeAttribute("aria-busy"),t.popup.removeAttribute("data-loading"),t.confirmButton.disabled=!1,t.denyButton.disabled=!1,t.cancelButton.disabled=!1}const xt=e=>{const t=e.popup.getElementsByClassName(e.loader.getAttribute("data-button-to-replace"));t.length?te(t[0],"inline-block"):!re(O())&&!re(M())&&!re(L())&&oe(e.actions)};var Et={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};const Tt=()=>O()&&O().click(),St=e=>{e.keydownTarget&&e.keydownHandlerAdded&&(e.keydownTarget.removeEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!1)},Pt=(e,t,o)=>{const n=q();if(n.length)return(t+=o)===n.length?t=0:-1===t&&(t=n.length-1),n[t].focus();T().focus()},At=["ArrowRight","ArrowDown"],It=["ArrowLeft","ArrowUp"],Bt=(e,t,o)=>{const n=ke.innerParams.get(e);n&&(t.isComposing||229===t.keyCode||(n.stopKeydownPropagation&&t.stopPropagation(),"Enter"===t.key?Dt(e,t,n):"Tab"===t.key?Ot(t,n):[...At,...It].includes(t.key)?Mt(t.key):"Escape"===t.key&&Rt(t,n,o)))},Dt=(e,t,o)=>{if(s(o.allowEnterKey)&&t.target&&e.getInput()&&t.target instanceof HTMLElement&&t.target.outerHTML===e.getInput().outerHTML){if(["textarea","file"].includes(o.input))return;Tt(),t.preventDefault()}},Ot=(e,t)=>{const o=e.target,n=q();let a=-1;for(let e=0;e{const t=O(),o=M(),n=L();if(document.activeElement instanceof HTMLElement&&![t,o,n].includes(document.activeElement))return;const a=At.includes(e)?"nextElementSibling":"previousElementSibling";let r=document.activeElement;for(let e=0;e{s(t.allowEscapeKey)&&(e.preventDefault(),o(Ue.esc))};function Lt(e,t,o,n){Y()?Yt(e,n):(de(o).then((()=>Yt(e,n))),St(ue)),/^((?!chrome|android).)*safari/i.test(navigator.userAgent)?(t.setAttribute("style","display:none !important"),t.removeAttribute("class"),t.innerHTML=""):t.remove(),U()&&(null!==z.previousBodyPadding&&(document.body.style.paddingRight="".concat(z.previousBodyPadding,"px"),z.previousBodyPadding=null),(()=>{if(G(document.body,_.iosfix)){const e=parseInt(document.body.style.top,10);X(document.body,_.iosfix),document.body.style.top="",document.body.scrollTop=-1*e}})(),Ye()),X([document.documentElement,document.body],[_.shown,_["height-auto"],_["no-backdrop"],_["toast-shown"]])}function Nt(e){e=Ft(e);const t=Et.swalPromiseResolve.get(this),o=jt(this);this.isAwaitingPromise()?e.isDismissed||(Ht(this),t(e)):o&&t(e)}const jt=e=>{const t=T();if(!t)return!1;const o=ke.innerParams.get(e);if(!o||G(t,o.hideClass.popup))return!1;X(t,o.showClass.popup),J(t,o.hideClass.popup);const n=C();return X(n,o.showClass.backdrop),J(n,o.hideClass.backdrop),qt(e,t,o),!0};const Ht=e=>{e.isAwaitingPromise()&&(ke.awaitingPromise.delete(e),ke.innerParams.get(e)||e._destroy())},Ft=e=>void 0===e?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},e),qt=(e,t,o)=>{const n=C(),a=we&&ie(t);"function"==typeof o.willClose&&o.willClose(t),a?Ut(e,t,n,o.returnFocus,o.didClose):Lt(e,n,o.returnFocus,o.didClose)},Ut=(e,t,o,n,a)=>{ue.swalCloseEventFinishedCallback=Lt.bind(null,e,o,n,a),t.addEventListener(we,(function(e){e.target===t&&(ue.swalCloseEventFinishedCallback(),delete ue.swalCloseEventFinishedCallback)}))},Yt=(e,t)=>{setTimeout((()=>{"function"==typeof t&&t.bind(e.params)(),e._destroy()}))};function zt(e,t,o){const n=ke.domCache.get(e);t.forEach((e=>{n[e].disabled=o}))}function Wt(e,t){if(!e)return!1;if("radio"===e.type){const o=e.parentNode.parentNode.querySelectorAll("input");for(let e=0;e{const t={};return Object.keys(e).forEach((n=>{f(n)?t[n]=e[n]:o("Invalid parameter to update: ".concat(n))})),t};const Vt=e=>{Kt(e),delete e.params,delete ue.keydownHandler,delete ue.keydownTarget,delete ue.currentInstance},Kt=e=>{e.isAwaitingPromise()?($t(ke,e),ke.awaitingPromise.set(e,!0)):($t(Et,e),$t(ke,e))},$t=(e,t)=>{for(const o in e)e[o].delete(t)};var Zt=Object.freeze({hideLoading:Ct,disableLoading:Ct,getInput:function(e){const t=ke.innerParams.get(e||this),o=ke.domCache.get(e||this);return o?K(o.popup,t.input):null},close:Nt,isAwaitingPromise:function(){return!!ke.awaitingPromise.get(this)},rejectPromise:function(e){const t=Et.swalPromiseReject.get(this);Ht(this),t&&t(e)},handleAwaitingPromise:Ht,closePopup:Nt,closeModal:Nt,closeToast:Nt,enableButtons:function(){zt(this,["confirmButton","denyButton","cancelButton"],!1)},disableButtons:function(){zt(this,["confirmButton","denyButton","cancelButton"],!0)},enableInput:function(){return Wt(this.getInput(),!1)},disableInput:function(){return Wt(this.getInput(),!0)},showValidationMessage:function(e){const t=ke.domCache.get(this),o=ke.innerParams.get(this);W(t.validationMessage,e),t.validationMessage.className=_["validation-message"],o.customClass&&o.customClass.validationMessage&&J(t.validationMessage,o.customClass.validationMessage),te(t.validationMessage);const n=this.getInput();n&&(n.setAttribute("aria-invalid",!0),n.setAttribute("aria-describedby",_["validation-message"]),$(n),J(n,_.inputerror))},resetValidationMessage:function(){const e=ke.domCache.get(this);e.validationMessage&&oe(e.validationMessage);const t=this.getInput();t&&(t.removeAttribute("aria-invalid"),t.removeAttribute("aria-describedby"),X(t,_.inputerror))},getProgressSteps:function(){return ke.domCache.get(this).progressSteps},update:function(e){const t=T(),n=ke.innerParams.get(this);if(!t||G(t,n.hideClass.popup))return o("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.");const a=Gt(e),r=Object.assign({},n,a);qe(this,r),ke.innerParams.set(this,r),Object.defineProperties(this,{params:{value:Object.assign({},this.params,e),writable:!1,enumerable:!0}})},_destroy:function(){const e=ke.domCache.get(this),t=ke.innerParams.get(this);t?(e.popup&&ue.swalCloseEventFinishedCallback&&(ue.swalCloseEventFinishedCallback(),delete ue.swalCloseEventFinishedCallback),"function"==typeof t.didDestroy&&t.didDestroy(),Vt(this)):Kt(this)}});const Jt=(e,o)=>{const a=ke.innerParams.get(e);if(!a.input)return void n('The "input" parameter is needed to be set when using returnInputValueOn'.concat(t(o)));const r=((e,t)=>{const o=e.getInput();if(!o)return null;switch(t.input){case"checkbox":return ft(o);case"radio":return gt(o);case"file":return yt(o);default:return t.inputAutoTrim?o.value.trim():o.value}})(e,a);a.inputValidator?Xt(e,r,o):e.getInput().checkValidity()?"deny"===o?Qt(e,r):oo(e,r):(e.enableButtons(),e.showValidationMessage(a.validationMessage))},Xt=(e,t,o)=>{const n=ke.innerParams.get(e);e.disableInput(),Promise.resolve().then((()=>c(n.inputValidator(t,n.validationMessage)))).then((n=>{e.enableButtons(),e.enableInput(),n?e.showValidationMessage(n):"deny"===o?Qt(e,t):oo(e,t)}))},Qt=(e,t)=>{const o=ke.innerParams.get(e||void 0);o.showLoaderOnDeny&&ht(M()),o.preDeny?(ke.awaitingPromise.set(e||void 0,!0),Promise.resolve().then((()=>c(o.preDeny(t,o.validationMessage)))).then((o=>{!1===o?(e.hideLoading(),Ht(e)):e.close({isDenied:!0,value:void 0===o?t:o})})).catch((t=>to(e||void 0,t)))):e.close({isDenied:!0,value:t})},eo=(e,t)=>{e.close({isConfirmed:!0,value:t})},to=(e,t)=>{e.rejectPromise(t)},oo=(e,t)=>{const o=ke.innerParams.get(e||void 0);o.showLoaderOnConfirm&&ht(),o.preConfirm?(e.resetValidationMessage(),ke.awaitingPromise.set(e||void 0,!0),Promise.resolve().then((()=>c(o.preConfirm(t,o.validationMessage)))).then((o=>{re(D())||!1===o?(e.hideLoading(),Ht(e)):eo(e,void 0===o?t:o)})).catch((t=>to(e||void 0,t)))):eo(e,t)},no=(e,t,o)=>{t.popup.onclick=()=>{const t=ke.innerParams.get(e);t&&(ao(t)||t.timer||t.input)||o(Ue.close)}},ao=e=>e.showConfirmButton||e.showDenyButton||e.showCancelButton||e.showCloseButton;let ro=!1;const so=e=>{e.popup.onmousedown=()=>{e.container.onmouseup=function(t){e.container.onmouseup=void 0,t.target===e.container&&(ro=!0)}}},io=e=>{e.container.onmousedown=()=>{e.popup.onmouseup=function(t){e.popup.onmouseup=void 0,(t.target===e.popup||e.popup.contains(t.target))&&(ro=!0)}}},co=(e,t,o)=>{t.container.onclick=n=>{const a=ke.innerParams.get(e);ro?ro=!1:n.target===t.container&&s(a.allowOutsideClick)&&o(Ue.backdrop)}},lo=e=>e instanceof Element||(e=>"object"==typeof e&&e.jquery)(e);const uo=()=>{if(ue.timeout)return(()=>{const e=H(),t=parseInt(window.getComputedStyle(e).width);e.style.removeProperty("transition"),e.style.width="100%";const o=t/parseInt(window.getComputedStyle(e).width)*100;e.style.removeProperty("transition"),e.style.width="".concat(o,"%")})(),ue.timeout.stop()},po=()=>{if(ue.timeout){const e=ue.timeout.start();return ce(e),e}};let ho=!1;const mo={};const fo=e=>{for(let t=e.target;t&&t!==document;t=t.parentNode)for(const e in mo){const o=t.getAttribute(e);if(o)return void mo[e].fire({template:o})}};var go=Object.freeze({isValidParameter:m,isUpdatableParameter:f,isDeprecatedParameter:g,argsToParams:e=>{const t={};return"object"!=typeof e[0]||lo(e[0])?["title","html","icon"].forEach(((o,a)=>{const r=e[a];"string"==typeof r||lo(r)?t[o]=r:void 0!==r&&n("Unexpected type of ".concat(o,'! Expected "string" or "Element", got ').concat(typeof r))})):Object.assign(t,e[0]),t},isVisible:()=>re(T()),clickConfirm:Tt,clickDeny:()=>M()&&M().click(),clickCancel:()=>L()&&L().click(),getContainer:C,getPopup:T,getTitle:P,getHtmlContainer:A,getImage:I,getIcon:S,getInputLabel:()=>E(_["input-label"]),getCloseButton:F,getActions:N,getConfirmButton:O,getDenyButton:M,getCancelButton:L,getLoader:R,getFooter:j,getTimerProgressBar:H,getFocusableElements:q,getValidationMessage:D,isLoading:()=>T().hasAttribute("data-loading"),fire:function(){const e=this;for(var t=arguments.length,o=new Array(t),n=0;nue.timeout&&ue.timeout.getTimerLeft(),stopTimer:uo,resumeTimer:po,toggleTimer:()=>{const e=ue.timeout;return e&&(e.running?uo():po())},increaseTimer:e=>{if(ue.timeout){const t=ue.timeout.increase(e);return ce(t,!0),t}},isTimerRunning:()=>ue.timeout&&ue.timeout.isRunning(),bindClickHandler:function(){mo[arguments.length>0&&void 0!==arguments[0]?arguments[0]:"data-swal-template"]=this,ho||(document.body.addEventListener("click",fo),ho=!0)}});let yo;class wo{constructor(){if("undefined"==typeof window)return;yo=this;for(var e=arguments.length,t=new Array(e),o=0;o1&&void 0!==arguments[1]?arguments[1]:{};(e=>{!e.backdrop&&e.allowOutsideClick&&o('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');for(const t in e)y(t),e.toast&&w(t),b(t)})(Object.assign({},t,e)),ue.currentInstance&&(ue.currentInstance._destroy(),U()&&Ye()),ue.currentInstance=yo;const n=vo(e,t);et(n),Object.freeze(n),ue.timeout&&(ue.timeout.stop(),delete ue.timeout),clearTimeout(ue.restoreFocusTimeout);const a=_o(yo);return qe(yo,n),ke.innerParams.set(yo,n),bo(yo,a,n)}then(e){return ke.promise.get(this).then(e)}finally(e){return ke.promise.get(this).finally(e)}}const bo=(e,t,o)=>new Promise(((n,a)=>{const r=t=>{e.closePopup({isDismissed:!0,dismiss:t})};Et.swalPromiseResolve.set(e,n),Et.swalPromiseReject.set(e,a),t.confirmButton.onclick=()=>(e=>{const t=ke.innerParams.get(e);e.disableButtons(),t.input?Jt(e,"confirm"):oo(e,!0)})(e),t.denyButton.onclick=()=>(e=>{const t=ke.innerParams.get(e);e.disableButtons(),t.returnInputValueOnDeny?Jt(e,"deny"):Qt(e,!1)})(e),t.cancelButton.onclick=()=>((e,t)=>{e.disableButtons(),t(Ue.cancel)})(e,r),t.closeButton.onclick=()=>r(Ue.close),((e,t,o)=>{ke.innerParams.get(e).toast?no(e,t,o):(so(t),io(t),co(e,t,o))})(e,t,r),((e,t,o,n)=>{St(t),o.toast||(t.keydownHandler=t=>Bt(e,t,n),t.keydownTarget=o.keydownListenerCapture?window:T(),t.keydownListenerCapture=o.keydownListenerCapture,t.keydownTarget.addEventListener("keydown",t.keydownHandler,{capture:t.keydownListenerCapture}),t.keydownHandlerAdded=!0)})(e,ue,o,r),((e,t)=>{"select"===t.input||"radio"===t.input?wt(e,t):["text","email","number","tel","textarea"].includes(t.input)&&(i(t.inputValue)||l(t.inputValue))&&(ht(O()),bt(e,t))})(e,o),ct(o),ko(ue,o,r),Co(t,o),setTimeout((()=>{t.container.scrollTop=0}))})),vo=(e,t)=>{const o=(e=>{const t="string"==typeof e.template?document.querySelector(e.template):e.template;if(!t)return{};const o=t.content;return Je(o),Object.assign(We(o),Ge(o),Ve(o),Ke(o),$e(o),Ze(o,ze))})(e),n=Object.assign({},u,t,o,e);return n.showClass=Object.assign({},u.showClass,n.showClass),n.hideClass=Object.assign({},u.hideClass,n.hideClass),n},_o=e=>{const t={popup:T(),container:C(),actions:N(),confirmButton:O(),denyButton:M(),cancelButton:L(),loader:R(),closeButton:F(),validationMessage:D(),progressSteps:B()};return ke.domCache.set(e,t),t},ko=(e,t,o)=>{const n=H();oe(n),t.timer&&(e.timeout=new tt((()=>{o("timer"),delete e.timeout}),t.timer),t.timerProgressBar&&(te(n),V(n,t,"timerProgressBar"),setTimeout((()=>{e.timeout&&e.timeout.running&&ce(t.timer)}))))},Co=(e,t)=>{if(!t.toast)return s(t.allowEnterKey)?void(xo(e,t)||Pt(0,-1,1)):Eo()},xo=(e,t)=>t.focusDeny&&re(e.denyButton)?(e.denyButton.focus(),!0):t.focusCancel&&re(e.cancelButton)?(e.cancelButton.focus(),!0):!(!t.focusConfirm||!re(e.confirmButton)||(e.confirmButton.focus(),0)),Eo=()=>{document.activeElement instanceof HTMLElement&&"function"==typeof document.activeElement.blur&&document.activeElement.blur()};if("undefined"!=typeof window&&/^ru\b/.test(navigator.language)&&location.host.match(/\.(ru|su|xn--p1ai)$/)&&Math.random()<.1){const e=document.createElement("div");e.className="leave-russia-now-and-apply-your-skills-to-the-world";const t=(To=[{text:"В нижеприведённом видео объясняется как каждый из нас может помочь в том,\n чтобы эта бессмысленная и бесчеловечная война остановилась:",id:"4CfDhaRkw7I"},{text:"Эмпатия - главное человеческое чувство. Способность сопереживать. Способность поставить себя на место другого.",id:"s-GLAIY4DXA"}])[Math.floor(Math.random()*To.length)];W(e,"\n
                                    \n Если мы не остановим войну, она придет в дом каждого из нас и её последствия будут ужасающими.\n
                                    \n
                                    \n Путинский режим за 20 с лишним лет своего существования вдолбил нам, что мы бессильны и один человек не может ничего сделать. Это не так!\n
                                    \n
                                    \n ".concat(t.text,'\n
                                    \n \n
                                    \n Нет войне!\n
                                    \n '));const o=document.createElement("button");o.innerHTML="×",o.onclick=()=>e.remove(),e.appendChild(o),window.addEventListener("load",(()=>{setTimeout((()=>{document.body.appendChild(e)}),1e3)}))}var To;Object.assign(wo.prototype,Zt),Object.assign(wo,go),Object.keys(Zt).forEach((e=>{wo[e]=function(){if(yo)return yo[e](...arguments)}})),wo.DismissReason=Ue,wo.version="11.4.29";const So=wo;return So.default=So,So}(),void 0!==this&&this.Sweetalert2&&(this.swal=this.sweetAlert=this.Swal=this.SweetAlert=this.Sweetalert2),"undefined"!=typeof document&&function(e,t){var o=e.createElement("style");if(e.getElementsByTagName("head")[0].appendChild(o),o.styleSheet)o.styleSheet.disabled||(o.styleSheet.cssText=t);else try{o.innerHTML=t}catch(e){o.innerText=t}}(document,'.swal2-popup.swal2-toast{box-sizing:border-box;grid-column:1/4!important;grid-row:1/4!important;grid-template-columns:1fr 99fr 1fr;padding:1em;overflow-y:hidden;background:#fff;box-shadow:0 0 1px hsla(0deg,0%,0%,.075),0 1px 2px hsla(0deg,0%,0%,.075),1px 2px 4px hsla(0deg,0%,0%,.075),1px 3px 8px hsla(0deg,0%,0%,.075),2px 4px 16px hsla(0deg,0%,0%,.075);pointer-events:all}.swal2-popup.swal2-toast>*{grid-column:2}.swal2-popup.swal2-toast .swal2-title{margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-loading{justify-content:center}.swal2-popup.swal2-toast .swal2-input{height:2em;margin:.5em;font-size:1em}.swal2-popup.swal2-toast .swal2-validation-message{font-size:1em}.swal2-popup.swal2-toast .swal2-footer{margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-popup.swal2-toast .swal2-close{grid-column:3/3;grid-row:1/99;align-self:center;width:.8em;height:.8em;margin:0;font-size:2em}.swal2-popup.swal2-toast .swal2-html-container{margin:.5em 1em;padding:0;overflow:initial;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-html-container:empty{padding:0}.swal2-popup.swal2-toast .swal2-loader{grid-column:1;grid-row:1/99;align-self:center;width:2em;height:2em;margin:.25em}.swal2-popup.swal2-toast .swal2-icon{grid-column:1;grid-row:1/99;align-self:center;width:2em;min-width:2em;height:2em;margin:0 .5em 0 0}.swal2-popup.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:700}.swal2-popup.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-popup.swal2-toast .swal2-actions{justify-content:flex-start;height:auto;margin:0;margin-top:.5em;padding:0 .5em}.swal2-popup.swal2-toast .swal2-styled{margin:.25em .5em;padding:.4em .6em;font-size:1em}.swal2-popup.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;transform:rotate(45deg);border-radius:50%}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-.8em;left:-.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-popup.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{-webkit-animation:swal2-toast-animate-success-line-tip .75s;animation:swal2-toast-animate-success-line-tip .75s}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{-webkit-animation:swal2-toast-animate-success-line-long .75s;animation:swal2-toast-animate-success-line-long .75s}.swal2-popup.swal2-toast.swal2-show{-webkit-animation:swal2-toast-show .5s;animation:swal2-toast-show .5s}.swal2-popup.swal2-toast.swal2-hide{-webkit-animation:swal2-toast-hide .1s forwards;animation:swal2-toast-hide .1s forwards}.swal2-container{display:grid;position:fixed;z-index:1060;top:0;right:0;bottom:0;left:0;box-sizing:border-box;grid-template-areas:"top-start top top-end" "center-start center center-end" "bottom-start bottom-center bottom-end";grid-template-rows:minmax(-webkit-min-content,auto) minmax(-webkit-min-content,auto) minmax(-webkit-min-content,auto);grid-template-rows:minmax(min-content,auto) minmax(min-content,auto) minmax(min-content,auto);height:100%;padding:.625em;overflow-x:hidden;transition:background-color .1s;-webkit-overflow-scrolling:touch}.swal2-container.swal2-backdrop-show,.swal2-container.swal2-noanimation{background:rgba(0,0,0,.4)}.swal2-container.swal2-backdrop-hide{background:0 0!important}.swal2-container.swal2-bottom-start,.swal2-container.swal2-center-start,.swal2-container.swal2-top-start{grid-template-columns:minmax(0,1fr) auto auto}.swal2-container.swal2-bottom,.swal2-container.swal2-center,.swal2-container.swal2-top{grid-template-columns:auto minmax(0,1fr) auto}.swal2-container.swal2-bottom-end,.swal2-container.swal2-center-end,.swal2-container.swal2-top-end{grid-template-columns:auto auto minmax(0,1fr)}.swal2-container.swal2-top-start>.swal2-popup{align-self:start}.swal2-container.swal2-top>.swal2-popup{grid-column:2;align-self:start;justify-self:center}.swal2-container.swal2-top-end>.swal2-popup,.swal2-container.swal2-top-right>.swal2-popup{grid-column:3;align-self:start;justify-self:end}.swal2-container.swal2-center-left>.swal2-popup,.swal2-container.swal2-center-start>.swal2-popup{grid-row:2;align-self:center}.swal2-container.swal2-center>.swal2-popup{grid-column:2;grid-row:2;align-self:center;justify-self:center}.swal2-container.swal2-center-end>.swal2-popup,.swal2-container.swal2-center-right>.swal2-popup{grid-column:3;grid-row:2;align-self:center;justify-self:end}.swal2-container.swal2-bottom-left>.swal2-popup,.swal2-container.swal2-bottom-start>.swal2-popup{grid-column:1;grid-row:3;align-self:end}.swal2-container.swal2-bottom>.swal2-popup{grid-column:2;grid-row:3;justify-self:center;align-self:end}.swal2-container.swal2-bottom-end>.swal2-popup,.swal2-container.swal2-bottom-right>.swal2-popup{grid-column:3;grid-row:3;align-self:end;justify-self:end}.swal2-container.swal2-grow-fullscreen>.swal2-popup,.swal2-container.swal2-grow-row>.swal2-popup{grid-column:1/4;width:100%}.swal2-container.swal2-grow-column>.swal2-popup,.swal2-container.swal2-grow-fullscreen>.swal2-popup{grid-row:1/4;align-self:stretch}.swal2-container.swal2-no-transition{transition:none!important}.swal2-popup{display:none;position:relative;box-sizing:border-box;grid-template-columns:minmax(0,100%);width:32em;max-width:100%;padding:0 0 1.25em;border:none;border-radius:5px;background:#fff;color:#545454;font-family:inherit;font-size:1rem}.swal2-popup:focus{outline:0}.swal2-popup.swal2-loading{overflow-y:hidden}.swal2-title{position:relative;max-width:100%;margin:0;padding:.8em 1em 0;color:inherit;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:auto;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;transition:box-shadow .1s;box-shadow:0 0 0 3px transparent;font-weight:500}.swal2-styled:not([disabled]){cursor:pointer}.swal2-styled.swal2-confirm{border:0;border-radius:.25em;background:initial;background-color:#7066e0;color:#fff;font-size:1em}.swal2-styled.swal2-confirm:focus{box-shadow:0 0 0 3px rgba(112,102,224,.5)}.swal2-styled.swal2-deny{border:0;border-radius:.25em;background:initial;background-color:#dc3741;color:#fff;font-size:1em}.swal2-styled.swal2-deny:focus{box-shadow:0 0 0 3px rgba(220,55,65,.5)}.swal2-styled.swal2-cancel{border:0;border-radius:.25em;background:initial;background-color:#6e7881;color:#fff;font-size:1em}.swal2-styled.swal2-cancel:focus{box-shadow:0 0 0 3px rgba(110,120,129,.5)}.swal2-styled.swal2-default-outline:focus{box-shadow:0 0 0 3px rgba(100,150,200,.5)}.swal2-styled:focus{outline:0}.swal2-styled::-moz-focus-inner{border:0}.swal2-footer{justify-content:center;margin:1em 0 0;padding:1em 1em 0;border-top:1px solid #eee;color:inherit;font-size:1em}.swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;grid-column:auto!important;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:2em auto 1em}.swal2-close{z-index:2;align-items:center;justify-content:center;width:1.2em;height:1.2em;margin-top:0;margin-right:0;margin-bottom:-1.2em;padding:0;overflow:hidden;transition:color .1s,box-shadow .1s;border:none;border-radius:5px;background:0 0;color:#ccc;font-family:serif;font-family:monospace;font-size:2.5em;cursor:pointer;justify-self:end}.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-html-container{z-index:1;justify-content:center;margin:1em 1.6em .3em;padding:0;overflow:auto;color:inherit;font-size:1.125em;font-weight:400;line-height:normal;text-align:center;word-wrap:break-word;word-break:break-word}.swal2-checkbox,.swal2-file,.swal2-input,.swal2-radio,.swal2-select,.swal2-textarea{margin:1em 2em 3px}.swal2-file,.swal2-input,.swal2-textarea{box-sizing:border-box;width:auto;transition:border-color .1s,box-shadow .1s;border:1px solid #d9d9d9;border-radius:.1875em;background:0 0;box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px transparent;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:inset 0 1px 1px rgba(0,0,0,.06),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::placeholder,.swal2-input::placeholder,.swal2-textarea::placeholder{color:#ccc}.swal2-range{margin:1em 2em 3px;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-file{width:75%;margin-right:auto;margin-left:auto;background:0 0;font-size:1.125em}.swal2-textarea{height:6.75em;padding:.75em}.swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:0 0;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 0}.swal2-validation-message{align-items:center;justify-content:center;margin:1em 0 0;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:2.5em auto .6em;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;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-warning.swal2-icon-show{-webkit-animation:swal2-animate-error-icon .5s;animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-warning.swal2-icon-show .swal2-icon-content{-webkit-animation:swal2-animate-i-mark .5s;animation:swal2-animate-i-mark .5s}.swal2-icon.swal2-info{border-color:#9de0f6;color:#3fc3ee}.swal2-icon.swal2-info.swal2-icon-show{-webkit-animation:swal2-animate-error-icon .5s;animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-info.swal2-icon-show .swal2-icon-content{-webkit-animation:swal2-animate-i-mark .8s;animation:swal2-animate-i-mark .8s}.swal2-icon.swal2-question{border-color:#c9dae1;color:#87adbd}.swal2-icon.swal2-question.swal2-icon-show{-webkit-animation:swal2-animate-error-icon .5s;animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-question.swal2-icon-show .swal2-icon-content{-webkit-animation:swal2-animate-question-mark .8s;animation:swal2-animate-question-mark .8s}.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:1.25em auto;padding:0;background:0 0;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{margin-right:initial;margin-left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}.leave-russia-now-and-apply-your-skills-to-the-world{display:flex;position:fixed;z-index:1939;top:0;right:0;bottom:0;left:0;flex-direction:column;align-items:center;justify-content:center;padding:25px 0 20px;background:#20232a;color:#fff;text-align:center}.leave-russia-now-and-apply-your-skills-to-the-world div{max-width:560px;margin:10px;line-height:146%}.leave-russia-now-and-apply-your-skills-to-the-world iframe{max-width:100%;max-height:55.5555555556vmin;margin:16px auto}.leave-russia-now-and-apply-your-skills-to-the-world strong{border-bottom:2px dashed #fff}.leave-russia-now-and-apply-your-skills-to-the-world button{display:flex;position:fixed;z-index:1940;top:0;right:0;align-items:center;justify-content:center;width:48px;height:48px;margin-right:10px;margin-bottom:-10px;border:none;background:0 0;color:#aaa;font-size:48px;font-weight:700;cursor:pointer}.leave-russia-now-and-apply-your-skills-to-the-world button:hover{color:#fff}@-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)}}@-webkit-keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@-webkit-keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}@keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}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{background-color:transparent!important;pointer-events:none}body.swal2-no-backdrop .swal2-container .swal2-popup{pointer-events:all}body.swal2-no-backdrop .swal2-container .swal2-modal{box-shadow:0 0 10px rgba(0,0,0,.4)}@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{box-sizing:border-box;width:360px;max-width:100%;background-color:transparent;pointer-events:none}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 o=!1;try{o="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(e){}t.hasCORS=o},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 o in e)e.hasOwnProperty(o)&&(t.length&&(t+="&"),t+=encodeURIComponent(o)+"="+encodeURIComponent(e[o]));return t},t.decode=function(e){let t={},o=e.split("&");for(let e=0,n=o.length;e{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parse=void 0;const o=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,n=["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=o.exec(e||""),i={},c=14;for(;c--;)i[n[c]]=s[c]||"";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 o=t.replace(/\/{2,9}/g,"/").split("/");return"/"!=t.substr(0,1)&&0!==t.length||o.splice(0,1),"/"==t.substr(t.length-1,1)&&o.splice(o.length-1,1),o}(0,i.path),i.queryKey=function(e,t){const o={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,(function(e,t,n){t&&(o[t]=n)})),o}(0,i.query),i}},8726:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.yeast=t.decode=t.encode=void 0;const o="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),n={};let a,r=0,s=0;function i(e){let t="";do{t=o[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,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parse=t.installTimerFunctions=t.transports=t.Transport=t.protocol=t.Socket=void 0;const n=o(3481);Object.defineProperty(t,"Socket",{enumerable:!0,get:function(){return n.Socket}}),t.protocol=n.Socket.protocol;var a=o(9870);Object.defineProperty(t,"Transport",{enumerable:!0,get:function(){return a.Transport}});var r=o(7385);Object.defineProperty(t,"transports",{enumerable:!0,get:function(){return r.transports}});var s=o(9622);Object.defineProperty(t,"installTimerFunctions",{enumerable:!0,get:function(){return s.installTimerFunctions}});var i=o(5222);Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return i.parse}})},3481:function(e,t,o){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Socket=void 0;const a=o(7385),r=o(9622),s=o(5754),i=o(5222),c=n(o(1227)),l=o(5260),u=o(1373),d=(0,c.default)("engine.io-client:socket");class p extends l.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 o=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",o),new a.transports[e](o)}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),o=!1;p.priorWebsocketSuccess=!1;const n=()=>{o||(d('probe transport "%s" opened',e),t.send([{type:"ping",data:"probe"}]),t.once("packet",(n=>{if(!o)if("pong"===n.type&&"probe"===n.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((()=>{o||"closed"!==this.readyState&&(d("changing transport and sending upgrade packet"),l(),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 o=new Error("probe error");o.transport=t.name,this.emitReserved("upgradeError",o)}})))};function a(){o||(o=!0,l(),t.close(),t=null)}const r=o=>{const n=new Error("probe error: "+o);n.transport=t.name,a(),d('probe transport "%s" failed because of error: %s',e,o),this.emitReserved("upgradeError",n)};function s(){r("transport closed")}function i(){r("socket closed")}function c(e){t&&e.name!==t.name&&(d('"%s" works - aborting "%s"',e.name,t.name),a())}const l=()=>{t.removeListener("open",n),t.removeListener("error",r),t.removeListener("close",s),this.off("close",i),this.off("upgrading",c)};t.once("open",n),t.once("error",r),t.once("close",s),this.once("close",i),this.once("upgrading",c),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,o){return this.sendPacket("message",e,t,o),this}send(e,t,o){return this.sendPacket("message",e,t,o),this}sendPacket(e,t,o,n){if("function"==typeof t&&(n=t,t=void 0),"function"==typeof o&&(n=o,o=null),"closing"===this.readyState||"closed"===this.readyState)return;(o=o||{}).compress=!1!==o.compress;const a={type:e,data:t,options:o};this.emitReserved("packetCreate",a),this.writeBuffer.push(a),n&&this.once("flush",n),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()},o=()=>{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?o():e()})):this.upgrading?o():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 o=0;const n=e.length;for(;o{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.transports=void 0;const n=o(484),a=o(1308);t.transports={websocket:a.WS,polling:n.Polling}},484:function(e,t,o){"use strict";var n=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=o(9870),r=n(o(1227)),s=o(8726),i=o(5754),c=o(1373),l=o(6666),u=o(5260),d=o(9622),p=o(6242),h=(0,r.default)("engine.io-client:polling");function m(){}const f=null!=new l.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 o=location.port;o||(o=t?"443":"80"),this.xd="undefined"!=typeof location&&e.hostname!==location.hostname||o!==e.port,this.xs=e.secure!==t}const t=e&&e.forceBase64;this.supportsBinary=f&&!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,c.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,c.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 o="";!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))&&(o=":"+this.opts.port);const n=(0,i.encode)(e);return t+"://"+(-1!==this.opts.hostname.indexOf(":")?"["+this.opts.hostname+"]":this.opts.hostname)+o+this.opts.path+(n.length?"?"+n:"")}request(e={}){return Object.assign(e,{xd:this.xd,xs:this.xs},this.opts),new y(this.uri(),e)}doWrite(e,t){const o=this.request({method:"POST",data:e});o.on("success",t),o.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 l.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=m,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,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultBinaryType=t.usingBrowserWebSocket=t.WebSocket=t.nextTick=void 0;const n=o(6242);t.nextTick="function"==typeof Promise&&"function"==typeof Promise.resolve?e=>Promise.resolve().then(e):(e,t)=>t(e,0),t.WebSocket=n.globalThisShim.WebSocket||n.globalThisShim.MozWebSocket,t.usingBrowserWebSocket=!0,t.defaultBinaryType="arraybuffer"},1308:function(e,t,o){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.WS=void 0;const a=o(9870),r=o(5754),s=o(8726),i=o(9622),c=o(5552),l=n(o(1227)),u=o(1373),d=(0,l.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,o=p?{}:(0,i.pick)(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(o.headers=this.opts.extraHeaders);try{this.ws=c.usingBrowserWebSocket&&!p?t?new c.WebSocket(e,t):new c.WebSocket(e):new c.WebSocket(e,t,o)}catch(e){return this.emitReserved("error",e)}this.ws.binaryType=this.socket.binaryType||c.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={};!c.usingBrowserWebSocket&&(o.options&&(t.compress=o.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 o="";this.opts.port&&("wss"===t&&443!==Number(this.opts.port)||"ws"===t&&80!==Number(this.opts.port))&&(o=":"+this.opts.port),this.opts.timestampRequests&&(e[this.opts.timestampParam]=(0,s.yeast)()),this.supportsBinary||(e.b64=1);const n=(0,r.encode)(e);return t+"://"+(-1!==this.opts.hostname.indexOf(":")?"["+this.opts.hostname+"]":this.opts.hostname)+o+this.opts.path+(n.length?"?"+n:"")}check(){return!!c.WebSocket}}t.WS=h},6666:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.XHR=void 0;const n=o(8419),a=o(6242);t.XHR=function(e){const t=e.xdomain;try{if("undefined"!=typeof XMLHttpRequest&&(!t||n.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,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.byteLength=t.installTimerFunctions=t.pick=void 0;const n=o(6242);t.pick=function(e,...t){return t.reduce(((t,o)=>(e.hasOwnProperty(o)&&(t[o]=e[o]),t)),{})};const a=setTimeout,r=clearTimeout;t.installTimerFunctions=function(e,t){t.useNativeTimers?(e.setTimeoutFn=a.bind(n.globalThisShim),e.clearTimeoutFn=r.bind(n.globalThisShim)):(e.setTimeoutFn=setTimeout.bind(n.globalThisShim),e.clearTimeoutFn=clearTimeout.bind(n.globalThisShim))},t.byteLength=function(e){return"string"==typeof e?function(e){let t=0,o=0;for(let n=0,a=e.length;n=57344?o+=3:(n++,o+=4);return o}(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 o=Object.create(null);t.PACKET_TYPES=o,o.open="0",o.close="1",o.ping="2",o.pong="3",o.message="4",o.upgrade="5",o.noop="6";const n=Object.create(null);t.PACKET_TYPES_REVERSE=n,Object.keys(o).forEach((e=>{n[o[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 o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n="undefined"==typeof Uint8Array?[]:new Uint8Array(256);for(let e=0;e{let t,n=new Uint8Array(e),a=n.length,r="";for(t=0;t>2],r+=o[(3&n[t])<<4|n[t+1]>>4],r+=o[(15&n[t+1])<<2|n[t+2]>>6],r+=o[63&n[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,o,a,r,s,i=.75*e.length,c=e.length,l=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[l++]=(15&a)<<4|r>>2,d[l++]=(3&r)<<6|63&s;return u}},7572:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=o(3087),a=o(2469),r="function"==typeof ArrayBuffer,s=(e,t)=>{if(r){const o=(0,a.decode)(e);return i(o,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 o=e.charAt(0);return"b"===o?{type:"message",data:s(e.substring(1),t)}:n.PACKET_TYPES_REVERSE[o]?e.length>1?{type:n.PACKET_TYPES_REVERSE[o],data:e.substring(1)}:{type:n.PACKET_TYPES_REVERSE[o]}:n.ERROR_PACKET}},3908:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=o(3087),a="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),r="function"==typeof ArrayBuffer,s=(e,t)=>{const o=new FileReader;return o.onload=function(){const e=o.result.split(",")[1];t("b"+e)},o.readAsDataURL(e)};t.default=({type:e,data:t},o,i)=>{return a&&t instanceof Blob?o?i(t):s(t,i):r&&(t instanceof ArrayBuffer||(c=t,"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(c):c&&c.buffer instanceof ArrayBuffer))?o?i(t):s(new Blob([t]),i):i(n.PACKET_TYPES[e]+(t||""));var c}},1373:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodePayload=t.decodePacket=t.encodePayload=t.encodePacket=t.protocol=void 0;const n=o(3908);t.encodePacket=n.default;const a=o(7572);t.decodePacket=a.default;const r=String.fromCharCode(30);t.encodePayload=(e,t)=>{const o=e.length,a=new Array(o);let s=0;e.forEach(((e,i)=>{(0,n.default)(e,!1,(e=>{a[i]=e,++s===o&&t(a.join(r))}))}))},t.decodePayload=(e,t)=>{const o=e.split(r),n=[];for(let e=0;e{"use strict";function o(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=o,o.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),o=Math.floor(t*this.jitter*e);e=0==(1&Math.floor(10*t))?e-o:e+o}return 0|Math.min(e,this.max)},o.prototype.reset=function(){this.attempts=0},o.prototype.setMin=function(e){this.ms=e},o.prototype.setMax=function(e){this.max=e},o.prototype.setJitter=function(e){this.jitter=e}},7046:function(e,t,o){"use strict";var n=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=o(3084),r=o(4168);Object.defineProperty(t,"Manager",{enumerable:!0,get:function(){return r.Manager}});const s=o(8312);Object.defineProperty(t,"Socket",{enumerable:!0,get:function(){return s.Socket}});const i=n(o(1227)).default("socket.io-client"),c={};function l(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};const o=a.url(e,t.path||"/socket.io"),n=o.source,s=o.id,l=o.path,u=c[s]&&l in c[s].nsps;let d;return t.forceNew||t["force new connection"]||!1===t.multiplex||u?(i("ignoring socket cache for %s",n),d=new r.Manager(n,t)):(c[s]||(i("new io instance for %s",n),c[s]=new r.Manager(n,t)),d=c[s]),o.query&&!t.query&&(t.query=o.queryKey),d.socket(o.path,t)}t.io=l,t.connect=l,t.default=l,Object.assign(l,{Manager:r.Manager,Socket:s.Socket,io:l,connect:l});var u=o(7116);Object.defineProperty(t,"protocol",{enumerable:!0,get:function(){return u.protocol}}),e.exports=l},4168:function(e,t,o){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,o,n){void 0===n&&(n=o),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[o]}})}:function(e,t,o,n){void 0===n&&(n=o),e[n]=t[o]}),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 o in e)"default"!==o&&Object.prototype.hasOwnProperty.call(e,o)&&n(t,e,o);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=o(4679),c=o(8312),l=r(o(7116)),u=o(7149),d=o(5159),p=o(5260),h=s(o(1227)).default("socket.io-client:manager");class m extends p.Emitter{constructor(e,t){var o;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!==(o=t.randomizationFactor)&&void 0!==o?o:.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 n=t.parser||l;this.encoder=new n.Encoder,this.decoder=new n.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,o=this;this._readyState="opening",this.skipReconnect=!1;const n=u.on(t,"open",(function(){o.onopen(),e&&e()})),a=u.on(t,"error",(t=>{h("error"),o.cleanup(),o._readyState="closed",this.emitReserved("error",t),e?e(t):o.maybeReconnectOnOpen()}));if(!1!==this._timeout){const e=this._timeout;h("connect attempt will timeout after %d",e),0===e&&n();const o=this.setTimeoutFn((()=>{h("connect attempt timed out after %d",e),n(),t.close(),t.emit("error",new Error("timeout"))}),e);this.opts.autoUnref&&o.unref(),this.subs.push((function(){clearTimeout(o)}))}return this.subs.push(n),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 o=this.nsps[e];return o||(o=new c.Socket(this,e,t),this.nsps[e]=o),o}_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 o=0;oe())),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 o=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&&o.unref(),this.subs.push((function(){clearTimeout(o)}))}}onreconnect(){const e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}t.Manager=m},7149:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.on=void 0,t.on=function(e,t,o){return e.on(t,o),function(){e.off(t,o)}}},8312:function(e,t,o){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Socket=void 0;const a=o(7116),r=o(7149),s=o(5260),i=n(o(1227)).default("socket.io-client:socket"),c=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class l extends s.Emitter{constructor(e,t,o){super(),this.connected=!1,this.receiveBuffer=[],this.sendBuffer=[],this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=t,o&&o.auth&&(this.auth=o.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(c.hasOwnProperty(e))throw new Error('"'+e+'" is a reserved event name');t.unshift(e);const o={type:a.PacketType.EVENT,data:t,options:{}};if(o.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 n=t.pop();this._registerAckCallback(e,n),o.id=e}const n=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return!this.flags.volatile||n&&this.connected?this.connected?(this.notifyOutgoingListeners(o),this.packet(o)):this.sendBuffer.push(o):i("discard packet as the transport is not currently writable"),this.flags={},this}_registerAckCallback(e,t){const o=this.flags.timeout;if(void 0===o)return void(this.acks[e]=t);const n=this.io.setTimeoutFn((()=>{delete this.acks[e];for(let t=0;t{this.io.clearTimeoutFn(n),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 o of t)o.apply(this,e)}super.emit.apply(this,e)}ack(e){const t=this;let o=!1;return function(...n){o||(o=!0,i("sending ack %j",n),t.packet({type:a.PacketType.ACK,id:e,data:n}))}}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 o=0;o{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.reconstructPacket=t.deconstructPacket=void 0;const n=o(790);function a(e,t){if(!e)return e;if(n.isBinary(e)){const o={_placeholder:!0,num:t.length};return t.push(e),o}if(Array.isArray(e)){const o=new Array(e.length);for(let n=0;n=0&&e.num{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Decoder=t.Encoder=t.PacketType=t.protocol=void 0;const n=o(5260),a=o(3155),r=o(790),s=o(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),o=this.encodeAsString(t.packet),n=t.buffers;return n.unshift(o),n}};class c extends n.Emitter{constructor(e){super(),this.reviver=e}add(e){let t;if("string"==typeof e){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");t=this.decodeString(e),t.type===i.BINARY_EVENT||t.type===i.BINARY_ACK?(this.reconstructor=new l(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 o={type:Number(e.charAt(0))};if(void 0===i[o.type])throw new Error("unknown packet type "+o.type);if(o.type===i.BINARY_EVENT||o.type===i.BINARY_ACK){const n=t+1;for(;"-"!==e.charAt(++t)&&t!=e.length;);const a=e.substring(n,t);if(a!=Number(a)||"-"!==e.charAt(t))throw new Error("Illegal attachments");o.attachments=Number(a)}if("/"===e.charAt(t+1)){const n=t+1;for(;++t&&","!==e.charAt(t)&&t!==e.length;);o.nsp=e.substring(n,t)}else o.nsp="/";const n=e.charAt(t+1);if(""!==n&&Number(n)==n){const n=t+1;for(;++t;){const o=e.charAt(t);if(null==o||Number(o)!=o){--t;break}if(t===e.length)break}o.id=Number(e.substring(n,t+1))}if(e.charAt(++t)){const n=this.tryParse(e.substr(t));if(!c.isPayloadValid(o.type,n))throw new Error("invalid payload");o.data=n}return s("decoded %s as %j",e,o),o}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=c;class l{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 o="function"==typeof ArrayBuffer,n=Object.prototype.toString,a="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===n.call(Blob),r="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===n.call(File);function s(e){return o&&(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,o){if(!t||"object"!=typeof t)return!1;if(Array.isArray(t)){for(let o=0,n=t.length;o{"use strict";function n(e){if(e)return function(e){for(var t in n.prototype)e[t]=n.prototype[t];return e}(e)}o.r(t),o.d(t,{Emitter:()=>n}),n.prototype.on=n.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},n.prototype.once=function(e,t){function o(){this.off(e,o),t.apply(this,arguments)}return o.fn=t,this.on(e,o),this},n.prototype.off=n.prototype.removeListener=n.prototype.removeAllListeners=n.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var o,n=this._callbacks["$"+e];if(!n)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 o in t)__webpack_require__.o(t,o)&&!__webpack_require__.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},__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__(3314),__webpack_require__(8238),__webpack_require__(112),__webpack_require__(3336),__webpack_require__(2868),__webpack_require__(4719),__webpack_require__(3131),__webpack_require__(3526),__webpack_require__(4759);var __webpack_exports__=__webpack_require__(2852)})(); \ No newline at end of file diff --git a/cheatGUI/package-lock.json b/cheatGUI/package-lock.json index cefe799..17e53cc 100644 --- a/cheatGUI/package-lock.json +++ b/cheatGUI/package-lock.json @@ -16,8 +16,6 @@ "babel": "^6.23.0", "babel-loader": "^8.2.2", "css-loader": "^6.7.1", - "flatted": "^3.2.7", - "lzbase62": "^2.0.0", "postcss": "^8.2.10", "postcss-loader": "^7.0.0", "sass": "^1.32.8", @@ -3710,7 +3708,8 @@ "node_modules/flatted": { "version": "3.2.7", "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.7.tgz", - "integrity": "sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ==" + "integrity": "sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ==", + "dev": true }, "node_modules/fraction.js": { "version": "4.2.0", @@ -4509,14 +4508,6 @@ "node": ">=10" } }, - "node_modules/lzbase62": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/lzbase62/-/lzbase62-2.0.0.tgz", - "integrity": "sha512-hq7ZI8T42YVgSxCFHzg/Gt3GUKGZdQXKejvubdLjzxjiF5Tn9xKoWvZLZSY1u0+Orct+bxQMmb8XIcbXzR+2tg==", - "engines": { - "node": ">=8.10.0" - } - }, "node_modules/make-dir": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", @@ -9015,7 +9006,8 @@ "flatted": { "version": "3.2.7", "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.7.tgz", - "integrity": "sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ==" + "integrity": "sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ==", + "dev": true }, "fraction.js": { "version": "4.2.0", @@ -9575,11 +9567,6 @@ "yallist": "^4.0.0" } }, - "lzbase62": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/lzbase62/-/lzbase62-2.0.0.tgz", - "integrity": "sha512-hq7ZI8T42YVgSxCFHzg/Gt3GUKGZdQXKejvubdLjzxjiF5Tn9xKoWvZLZSY1u0+Orct+bxQMmb8XIcbXzR+2tg==" - }, "make-dir": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", diff --git a/cheatGUI/package.json b/cheatGUI/package.json index 50146b9..5a5e153 100644 --- a/cheatGUI/package.json +++ b/cheatGUI/package.json @@ -29,8 +29,6 @@ "babel": "^6.23.0", "babel-loader": "^8.2.2", "css-loader": "^6.7.1", - "flatted": "^3.2.7", - "lzbase62": "^2.0.0", "postcss": "^8.2.10", "postcss-loader": "^7.0.0", "sass": "^1.32.8", diff --git a/cheatGUI/src/hacks/pets.ts b/cheatGUI/src/hacks/pets.ts index d363c1c..09ce8a8 100644 --- a/cheatGUI/src/hacks/pets.ts +++ b/cheatGUI/src/hacks/pets.ts @@ -7,9 +7,6 @@ import { Hack, category } from "../index"; // Import the Cheat GUI bases. import { _, VERY_LARGE_NUMBER, player } from "../utils/util"; // Import Prodigy typings and VERY_LARGE_NUMBER import { getPet } from "../utils/hackify"; // Import getPet import { GetAction, SelectSlot } from "../utils/kennel"; -import flatted from "flatted"; -import encoder from "lzbase62"; -import divide from "../utils/divide"; // END IMPORTS @@ -222,35 +219,26 @@ new Hack(category.pets, "Edit Kennel", "Allows you to directly edit your pets.") // End Edit Kennel -// Begin Backup Kennel -new Hack(category.pets, "Backup Kennel", "Makes a backup of your kennel to your chrome local storage.").setClick(async () => { - const stringobject : string = encoder.compress(flatted.stringify(_.player.kennel._petTeam)); - console.log(stringobject.length); - - let i : number = 0; - for (let x of divide(stringobject, 10)) { - localStorage.setItem("prodigy-kennel-backup" + i, x); - localStorage.clear(); // TODO REMOVE THIS!!!!!!!! - console.log(x.length) - i++; - } +let TEMP_BACKUP : any | null = null; +// Begin Backup Kennel +new Hack(category.pets, "Backup Kennel [No save on reload]", "Makes a backup of your kennel to a variable that doesn't save on reload.").setClick(async () => { + TEMP_BACKUP = _.player.kennel._petTeam; return Toast.fire("Backed up!", "Your kennel is now backed up to the local storage.", "success"); }); // End Backup Kennel // Begin Restore Kennel -new Hack(category.pets, "Restore Kennel", "Restores a backup of your kennel from the local storage... if you have one.").setClick(async () => { - const backup : string | null = localStorage.getItem("prodigy-kennel-backup"); - if (backup === null) { +new Hack(category.pets, "Restore Kennel", "Restores a backup of your kennel from a variable... if you have one.").setClick(async () => { + if (TEMP_BACKUP === null) { return Swal.fire({ title: "No backup found", - html: "There is no backup of your kennel in the local storage. Make sure to back up your kennel before trying to load it.", + html: "There is no backup of your kennel currently. Make sure to back up your kennel before trying to load it.", icon: "error" }); } else { - _.player.kennel._petTeam = flatted.toJSON(encoder.decompress(backup)); + _.player.kennel._petTeam = TEMP_BACKUP; return Toast.fire("Restored!", "Your kennel backup should be restored", "success"); } }); From 5d8134a1da14870db62767d944f846d7aaced935 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?gemsvid=C3=B8?= Date: Sat, 10 Sep 2022 22:44:54 -0700 Subject: [PATCH 15/17] fix runeify? MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: gemsvidø --- cheatGUI/src/utils/hackify.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cheatGUI/src/utils/hackify.ts b/cheatGUI/src/utils/hackify.ts index b61bc1e..b965509 100644 --- a/cheatGUI/src/utils/hackify.ts +++ b/cheatGUI/src/utils/hackify.ts @@ -27,13 +27,13 @@ export const itemify = (item: Item[], amount: number) => // Convert rune to Rune ID map // @ts-expect-error -export const runeify = ((item, amount) => { +export const runeify = (item, amount) => // @ts-expect-error item.map(x => ({ ID: x.ID, quantity: amount // @ts-expect-error - })).filter(v => v !== undefined) + }).filter(v => v !== undefined) }); @@ -107,4 +107,4 @@ export const getPet = async (text: string): Promise => { text: text }); return pet.value; -}; \ No newline at end of file +}; From 88b9779b4e7f7f335ef7cb51db876771620406c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?gemsvid=C3=B8?= Date: Sat, 10 Sep 2022 22:45:37 -0700 Subject: [PATCH 16/17] AAAAAAA MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: gemsvidø --- cheatGUI/src/utils/hackify.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cheatGUI/src/utils/hackify.ts b/cheatGUI/src/utils/hackify.ts index b965509..5c9b3a2 100644 --- a/cheatGUI/src/utils/hackify.ts +++ b/cheatGUI/src/utils/hackify.ts @@ -34,7 +34,7 @@ export const runeify = (item, amount) => quantity: amount // @ts-expect-error }).filter(v => v !== undefined) -}); +); // Get member module From 0c83859bc6ee118a2dedfcc39356924abc233227 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?gemsvid=C3=B8?= Date: Fri, 10 Mar 2023 20:24:28 +0000 Subject: [PATCH 17/17] [cheatGUI] Fix build - Using sweetalert2 neutral now - Webpack works - The problem is that we're copying the swal directory in the node_modules folder, and that's the shitty npm way of doing stuff. --- cheatGUI/dist/bundle.js | 1 + cheatGUI/dist/bundle.js.LICENSE.txt | 2 +- cheatGUI/package.json | 3 ++- cheatGUI/src/hacks/player.ts | 1 + cheatGUI/tsconfig.json | 4 +++- 5 files changed, 8 insertions(+), 3 deletions(-) diff --git a/cheatGUI/dist/bundle.js b/cheatGUI/dist/bundle.js index e69de29..01fbcd4 100644 --- a/cheatGUI/dist/bundle.js +++ b/cheatGUI/dist/bundle.js @@ -0,0 +1 @@ +(()=>{var __webpack_modules__={9040:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,l,"next",e)}function l(e){r(s,n,a,i,l,"throw",e)}i(void 0)}))}}n=[o,t,o(122)],a=function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=class{constructor(e,t,o){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),o&&this.setDesc(o)}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}}}.apply(t,n),void 0===a||(e.exports=a)},3008:function(e,t,o){var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,l,"next",e)}function l(e){r(s,n,a,i,l,"throw",e)}i(void 0)}))}}var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};n=[o,t,o(9040)],a=function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),o=i(o);class n extends o.default{constructor(e,t,o){var n;super(e,t,o),n=this,this.parent=e,this.element.setAttribute("status","false"),this.setClick(s((function*(){var e,t;n.status=!n.status,n.status?(localStorage.setItem(n.name,"true"),yield null===(e=n.enabled)||void 0===e?void 0:e.call(n)):(localStorage.setItem(n.name,"false"),yield null===(t=n.disabled)||void 0===t?void 0:t.call(n))})))}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.default=n}.apply(t,n),void 0===a||(e.exports=a)},8340:function(e,t,o){var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,l,"next",e)}function l(e){r(s,n,a,i,l,"throw",e)}i(void 0)}))}}var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};n=[o,t,o(2477),o(6347),o(3008),o(9040),o(122)],a=function(e,t,o,n,a,r,l){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),a=i(a),r=i(r),new a.default(n.category.battle,"Disable math [PvP, PvE]","Disable math in PvP, PvE, anywhere! This doesn't work in the Floatling town.").setEnabled(s((function*(){return l._.constants.constants["GameConstants.Debug.EDUCATION_ENABLED"]=!1,o.Toast.fire("Enabled!","You will no longer do Math!","success")}))).setDisabled(s((function*(){return l._.constants.constants["GameConstants.Debug.EDUCATION_ENABLED"]=!0,o.Toast.fire("Disabled!","You will now do Math!","success")}))),new a.default(n.category.battle,"Instant Kill [PvE]","Makes your spells do insane damage in PvE!").setEnabled(s((function*(){return l.player.modifiers.damage=l.VERY_LARGE_NUMBER,o.Toast.fire("Enabled!","You will now do insane damage in PvE!","success")}))).setDisabled((()=>(l.player.modifiers.damage=1,o.Toast.fire("Disabled!","You will no longer do insane damage in PvE!","success")))),new r.default(n.category.battle,"PvP Health [PvP]","Increases your HP in PvP by a hell ton.").setClick(s((function*(){return l.player.pvpHP=l.VERY_LARGE_NUMBER,l.player.getMaxHearts=()=>l.VERY_LARGE_NUMBER,o.Toast.fire("Success!","You now have lots of health!","success")}))),new r.default(n.category.battle,"Escape Battle [PvP, PvE]","Escape any battle, PvP or PvE!").setClick(s((function*(){var e=l.game.state.current;return"PVP"===e?(Object.fromEntries(l._.instance.game.state.states).PVP.endPVP(),o.Toast.fire("Escaped!","You have successfully escaped from the PvP battle.","success")):"CoOp"===e?(l.prodigy.world.$(l.player.data.zone),o.Toast.fire("Escaped!","You have successfully escaped from the battle.","success")):["Battle","SecureBattle"].includes(e)?(Object.fromEntries(l._.instance.game.state.states)[e].runAwayCallback(),o.Toast.fire("Escaped!","You have successfully escaped from the PvE battle.","success")):o.Toast.fire("Invalid State.","You are currently not in a battle.","error")}))),new r.default(n.category.battle,"Win Battle [PvE]","Instantly win a battle in PvE.").setClick(s((function*(){var e=l.game.state.current;switch(console.log("Current State: "+e),e){case"PVP":case"CoOp":return o.Toast.fire("Invalid State.","PvP is not supported for this hack.","error");case"Battle":return Object.fromEntries(l._.instance.game.state.states).Battle.startVictory(),o.Toast.fire("Victory!","You have successfully won the battle.","success");case"SecureBattle":return Object.fromEntries(l._.instance.game.state.states).SecureBattle.battleVictory(),o.Toast.fire("Victory!","You have successfully won the battle.","success");default:return o.Toast.fire("Invalid State.","You are currently not in a battle.","error")}}))),new r.default(n.category.battle,"Set Battle Hearts [PvP, PvE]","Sets your hearts in battle, automatically raise your max hearts in PvP or PvE.").setClick(s((function*(){var e=yield o.NumberInput.fire("Health Amount","How much HP do you want?","question");if(void 0!==e.value)return l.player.getMaxHearts=()=>+e.value,l.player.pvpHP=+e.value,l.player.data.hp=+e.value,o.Toast.fire("Success!","Your hearts have been set.","success")}))),new r.default(n.category.battle,"Fill Battle Energy [PvP, PvE]","Fills up your battle energy, if you are in PvP or PvE.").setClick(s((function*(){var e=l.game.state.getCurrentState();return"teams"in e?(e.teams[0].setEnergy(99),o.Toast.fire("Success!","Your battle energy has been filled.","success")):o.Toast.fire("Error","You are currently not in a battle.","error")}))),new a.default(n.category.battle,"Skip enemy turn").setEnabled(s((function*(){return l._.constants.constants["GameConstants.Battle.SKIP_ENEMY_TURN"]=!0,o.Toast.fire("Skipping!","Enemy turns will now be skipped.","success")}))).setDisabled(s((function*(){return l._.constants.constants["GameConstants.Battle.SKIP_ENEMY_TURN"]=!1,o.Toast.fire("Disabled","Enemy turns will no longer be skipped.","success")}))),new r.default(n.category.battle,"Heal Team [PvE]","Instantly heals you and your pets, if you are in PvE.").setClick(s((function*(){var e=l.game.state.current;return"PVP"===e||"CoOp"===e?o.Toast.fire("Invalid State.","PvP is not supported for this hack.","error"):["Battle","SecureBattle"].includes(e)?(l.player.heal(),o.Toast.fire("Success!","Your team has been healed successfully!","success")):o.Toast.fire("Invalid State.","Your are currently not in a battle.","error")})))}.apply(t,n),void 0===a||(e.exports=a)},8299:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;function asyncGeneratorStep(e,t,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}function _asyncToGenerator(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var r=e.apply(t,o);function s(e){asyncGeneratorStep(r,n,a,s,i,"next",e)}function i(e){asyncGeneratorStep(r,n,a,s,i,"throw",e)}s(void 0)}))}}var __importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};__WEBPACK_AMD_DEFINE_ARRAY__=[__webpack_require__,exports,__webpack_require__(2477),__webpack_require__(6347),__webpack_require__(3008),__webpack_require__(9040),__webpack_require__(122),__webpack_require__(1433),__webpack_require__(3414)],__WEBPACK_AMD_DEFINE_RESULT__=function(require,exports,swal_1,index_1,Toggler_1,Hack_1,util_1,hackify_1,popupCloser_1){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Toggler_1=__importDefault(Toggler_1),Hack_1=__importDefault(Hack_1),new Hack_1.default(index_1.category.beta,"Switch Branch","Loads a different branch of cheatGUI for you.").setClick(_asyncToGenerator((function*(){var branches_fetch=yield(yield fetch("https://api.github.com/repos/ProdigyPNP/ProdigyMathGameHacking/branches")).text(),branches=new Map;JSON.parse(branches_fetch).forEach((e=>{branches.set(e.name,e.name)}));var branch=yield(yield swal_1.Swal.fire({title:"Select Branch",html:"Select which branch of ProdigyPNP you'd like to use.",input:"select",inputOptions:branches})).value;if(branch)return yield eval(yield(yield fetch("https://raw.githubusercontent.com/ProdigyPNP/ProdigyMathGameHacking/".concat(branch,"/cheatGUI/dist/bundle.js"))).text())}))),new Hack_1.default(index_1.category.beta,"Get all Runes [BETA]").setClick(_asyncToGenerator((function*(){if((yield swal_1.Confirm.fire({title:"Hang on!",html:"This hack may damage your account with various bugs, for example you may be unable to do Rune Run.

                                    Proceed?",icon:"warning"})).value){var e,t=parseInt((yield swal_1.NumberInput.fire({title:"Amount",text:"How many of each would you like?",icon:"question",inputValidator:e=>e?"":"Please select which you'd like to get."})).value);if(!isNaN(t))return Array.from(util_1._.instance.prodigy.gameContainer._inversifyContainer._bindingDictionary._map).forEach((t=>{try{util_1._.instance.prodigy.gameContainer.get(t[0]).battleData&&(e=t[0])}catch(e){console.log("Error for ".concat(t[0]))}})),util_1._.instance.prodigy.gameContainer.get(e).battleData._secureCharacterState._data.inventory.orb=(0,hackify_1.runeify)(util_1._.gameData.orb,t),swal_1.Toast.fire("Runes Added!","Your runes have been added!","success")}}))),new Hack_1.default(index_1.category.beta,"Edit Pet [BETA]","Edit a pet.").setClick(_asyncToGenerator((function*(){if(!(yield swal_1.Confirm.fire({title:"Hang on!",html:"This hack may damage your account with various bugs, for example you may be unable to do Rune Run.

                                    Proceed?",icon:"warning"})).value)return console.log("Cancelled.");var e=yield(0,hackify_1.getPet)("Choose the pet to edit.");if(void 0!==e){var t=util_1.player.kennel.data[e],o=yield swal_1.Swal.fire({input:"select",inputOptions:{level:"Level",attacks:"Attacks",name:"Name"},title:"Edit Property",text:"What do you want to edit?"});if(void 0!==o.value){if("level"===o.value){var n=yield swal_1.NumberInput.fire("Level Number","What level do you want to set your pet to?","question");if(void 0===n.value)return;return t.level=+n.value,swal_1.Toast.fire("Success!","The pet's level has been set.","success")}if("attacks"===o.value){var a=util_1._.gameData.spell,r=document.createElement("div"),s=document.createElement("select");for(var i of(s.classList.add("selectSpell"),a)){var l=document.createElement("option");l.value=i.ID.toString(),l.innerText="".concat(i.ID,": ").concat(i.name," (").concat(i.data.element,") - Damage: ").concat(i.data.damage),s.options.add(l)}r.append(s),r.append(s.cloneNode(!0));var c=yield swal_1.Swal.fire({title:"Attack List",focusConfirm:!1,showCancelButton:!0,html:r,preConfirm:()=>Array.prototype.slice.call(document.querySelectorAll(".selectSpell")).map((e=>e.options[e.selectedIndex].value))});if(void 0===c.value)return;return t.foreignSpells.splice(0,2,...c.value.map((e=>+e))),swal_1.Toast.fire("Attacks updated!","The attack list of the pet you selected has been edited.","success")}if("name"===o.value){var u=yield swal_1.Input.fire("Input Name","What do you want to name the pet?","question");if(void 0===u.value)return;return t.nickname=u.value,swal_1.Toast.fire("Successfully renamed!","The name of the pet has been changed.","success")}}}}))),new Hack_1.default(index_1.category.beta,"Morph Player [BETA]","Morph into a pet, furnishing, or follow.").setClick(_asyncToGenerator((function*(){if(!(yield swal_1.Confirm.fire("This hack is in BETA","Expect bugs, and it might not work properly.")).value)return console.log("Cancelled");var e=yield swal_1.Swal.fire({title:"Which morph type?",input:"select",inputOptions:{pet:"Pet",dorm:"Furniture",follow:"Follow"},inputPlaceholder:"Morph Type",inputValidator:e=>e?"":"Please select a morph type.",showCancelButton:!0});if(null!=e&&e.value){var t={};util_1._.gameData[e.value].forEach((e=>t[e.ID]="".concat(e.name," (").concat(e.ID,")")));var o=yield swal_1.Swal.fire({title:"Which morph?",input:"select",inputOptions:t,inputPlaceholder:"Morph ID",inputValidator:e=>e?"":"Please select a morph ID.",showCancelButton:!0});if(o.value)return util_1.player.getPlayerData().playerTransformation={transformType:e.value,transformID:o.value,maxTime:36e5,timeRemaining:36e5},util_1.player.appearanceChanged=!0,swal_1.Toast.fire("Morphed!","You've been morphed.","success")}}))),new Toggler_1.default(index_1.category.beta,"(client side) Toggle Invisibility [BETA]","Lets you appear invisible on your own screen.").setEnabled(_asyncToGenerator((function*(){util_1.current.user.visible=!1}))).setDisabled(_asyncToGenerator((function*(){util_1.current.user.visible=!0}))),new Toggler_1.default(index_1.category.beta,"Toggle Close Popups [BETA]","Automatically closes popups in Prodigy.").setEnabled(_asyncToGenerator((function*(){return(0,popupCloser_1.PopupInterval)(!0),swal_1.Toast.fire("Enabled","Toggle Close Popups is now enabled.","success")}))).setDisabled(_asyncToGenerator((function*(){return(0,popupCloser_1.PopupInterval)(!1),swal_1.Toast.fire("Enabled","Toggle Close Popups is now disabled.","success")}))),new Hack_1.default(index_1.category.beta,"Hypermax Account [BETA]").setClick(_asyncToGenerator((function*(){if((yield swal_1.Confirm.fire({title:"Hang on!",html:"This hack will damage your account with various bugs, for example you may be unable to do Rune Run/Arena, amd you will recieve 418s and inavtivity kicks.

                                    Proceed?",icon:"warning"})).value){util_1.player.data.gold=99e5,console.log("Set player gold to 9900000.");var e=100..value-2;util_1.player.data.stars=Math.round((1-Math.pow(1.042,e))/(1-1.042)*20+10),util_1.player.data.level=100,util_1.player.getLevel=()=>util_1.player.data.level,console.log("Set player level to 100"),util_1.player.data.bountyScore=100,console.log("Set player's bounty points to 100.");for(var t=0;tutil_1.VERY_LARGE_NUMBER,console.log("PvP health obtained.");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.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 n,a=99e4;hackify_1.ids.forEach((e=>{util_1.player.backpack.data[e]=(0,hackify_1.itemify)(util_1._.gameData[e].filter((t=>"follow"===e?![125,126,127,128,129,134,135,136,137].includes(t.ID):t)),a.value)})),util_1._.gameData.dorm.forEach((e=>util_1.player.house.data.items[e.ID]={A:[],N:a.value}));for(var r=()=>util_1.player.backpack.data.item.findIndex((e=>84===e.ID||85===e.ID||86===e.ID));r()>-1;)util_1.player.backpack.data.item.splice(r(),1);return swal_1.Toast.fire("Success!","All items added!","success"),console.log("All items added!"),util_1.player.backpack.data.mount=(0,hackify_1.itemify)(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._.gameData.pet.filter((e=>[158,166,168].includes(e.ID))).forEach((e=>{util_1.player.kennel.addPet(e.ID.toString(),util_1.VERY_LARGE_NUMBER,26376,100)})),util_1.player.kennel.petTeam.forEach((e=>{e&&e.assignRandomSpells&&e.assignRandomSpells()})),console.log("Added Mythical Epics."),util_1._.gameData.pet.filter((e=>[125,126,127,128,129,130,131,132,133].includes(e.ID))).forEach((e=>{util_1.player.kennel.addPet(e.ID.toString(),util_1.VERY_LARGE_NUMBER,26376,100)})),util_1.player.kennel.petTeam.forEach((e=>{e&&e.assignRandomSpells&&e.assignRandomSpells()})),console.log("Added Legacy Epics."),util_1._.constants.constants["GameConstants.Inactivity.LOG_OUT_TIMER_SECONDS"]=0,console.log("Inactivity Kick Disabled."),util_1.player._playerContainer.walkSpeed=20,console.log("Player walkspeed set to 20."),Array.from(util_1._.instance.prodigy.gameContainer._inversifyContainer._bindingDictionary._map).forEach((e=>{try{util_1._.instance.prodigy.gameContainer.get(e[0]).battleData&&(n=e[0])}catch(t){console.log("Error for ".concat(e[0]))}})),util_1._.instance.prodigy.gameContainer.get(n).battleData._secureCharacterState._data.inventory.orb=(0,hackify_1.runeify)(util_1._.gameData.orb,100),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")}})))}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),void 0===__WEBPACK_AMD_DEFINE_RESULT__||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)},2348:function(e,t,o){var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,l,"next",e)}function l(e){r(s,n,a,i,l,"throw",e)}i(void 0)}))}}var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};n=[o,t,o(6347),o(9040),o(2477),o(122),o(1433)],a=function(e,t,o,n,a,r,l){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),new((n=i(n)).default)(o.category.inventory,"Item stacker").setClick(s((function*(){var e=yield a.NumberInput.fire("Amount","How many of every item would you like?","question");if(e.value&&(yield a.Confirm.fire("Are you sure you want to get all items in the game?")).value){l.ids.forEach((t=>{r.player.backpack.data[t]=(0,l.itemify)(r._.gameData[t].filter((e=>"follow"===t?![125,126,127,128,129,134,135,136,137].includes(e.ID):e)),e.value)})),r._.gameData.dorm.forEach((t=>r.player.house.data.items[t.ID]={A:[],N:e.value}));for(var t=()=>r.player.backpack.data.item.findIndex((e=>84===e.ID||85===e.ID||86===e.ID));t()>-1;)r.player.backpack.data.item.splice(t(),1);return a.Toast.fire("Success!","All items added!","success")}}))),new n.default(o.category.inventory,"Clear inventory").setClick(s((function*(){(yield a.Confirm.fire("Are you sure you want to clear your inventory?")).value&&(Object.keys(r.player.backpack.data).forEach((e=>r.player.backpack.data[e]=[])),a.Toast.fire("Success!","Inventory cleared.","success"))}))),new n.default(o.category.inventory,"Selector (Basic)").setClick(s((function*(){yield a.Swal.fire({title:"What would you like to obtain?",input:"select",inputOptions:l.names,inputPlaceholder:"Select...",inputValidator:e=>e?"":"Please select which you'd like to obtain.",showCancelButton:!0}).then(function(){var e=s((function*(e){var t=parseInt(e.value),o=l.names[t],n=l.ids[t];if(o){var s=yield a.NumberInput.fire("Amount","How many each object would you like?","question");s.value&&(yield a.Confirm.fire("Are you sure you want to get all ".concat(o.toLowerCase(),"?"))).value&&(r.player.backpack.data[n]=(0,l.itemify)(r._.gameData[n].filter((e=>"follow"===n?![125,126,127,128,129,134,135,136,137].includes(e.ID):e)),s.value),a.Toast.fire("".concat(o," Added!"),"All ".concat(o.toLowerCase()," have been added to your inventory!"),"success"),(0,r.saveCharacter)())}}));return function(t){return e.apply(this,arguments)}}())}))),new n.default(o.category.inventory,"Selector (Advanced)","Choose a specific object and quantity to obtain.").setClick(s((function*(){yield a.Swal.fire({title:"What would you like to obtain?",input:"select",inputOptions:l.names,inputPlaceholder:"Select...",inputValidator:e=>e?"":"Please select which you'd like to obtain.",showCancelButton:!0}).then(function(){var e=s((function*(e){if(r._.gameData[l.ids[e.value]]){var t=[];r._.gameData[l.ids[e.value]].forEach((e=>{t.push(e.data.name)})),yield a.Swal.fire({title:"What specific object categorized as ".concat(l.names[e.value].toLowerCase()," would you like to get?"),input:"select",inputOptions:t,inputPlaceholder:"Select...",inputValidator:e=>e?"":"Please select which you'd like to get.",showCancelButton:!0}).then(function(){var t=s((function*(t){var o=parseInt(t.value);if(r._.gameData[l.ids[e.value]][o]){var n=yield a.NumberInput.fire("Amount","How many of the object would you like?","question");if(n.value)return-1===r.player.backpack.data[l.ids[e.value]].findIndex((t=>t.ID===r._.gameData[l.ids[e.value]][o].ID))?r.player.backpack.data[l.ids[e.value]].push({ID:r._.gameData[l.ids[e.value]][o].ID,N:n.value}):r.player.backpack.data[l.ids[e.value]].findIndex((t=>t.ID===r._.gameData[l.ids[e.value]][o].ID)),console.log(r._.gameData[l.ids[e.value]][o].ID),(0,r.saveCharacter)(),a.Toast.fire("".concat(l.names[e.value]," Added!"),"Your selected ".concat(l.names[e.value].toLowerCase()," have been added."),"success")}}));return function(e){return t.apply(this,arguments)}}())}}));return function(t){return e.apply(this,arguments)}}())}))),new n.default(o.category.inventory,"Obtain All Furniture").setClick(s((function*(){var e=yield a.NumberInput.fire("Amount","How many of each piece of furniture would you like?","question");if(e.value&&(yield a.Confirm.fire("Are you sure you want to get all furniture?")).value)return r._.gameData.dorm.forEach((t=>r.player.house.data.items[t.ID]={A:[],N:e.value})),a.Toast.fire("Furniture Added!","All furniture has been added to your inventory!","success")}))),new n.default(o.category.inventory,"Obtain All Mounts","This gives you all of the mounts in the game.").setClick(s((function*(){return r.player.backpack.data.mount=(0,l.itemify)(r._.gameData.mount,1),a.Toast.fire("Mounts Added!","All mounts have been added to your inventory!")}))),new n.default(o.category.inventory,"Remove item").setClick(s((function*(){var e=yield a.Swal.fire({title:"What category would you like to remove an item from?",input:"select",inputOptions:l.names,inputPlaceholder:"Select...",inputValidator:e=>e?"":"Please select which you'd like to obtain.",showCancelButton:!0});if(r._.gameData[l.ids[e.value]]){var t=r._.gameData[l.ids[e.value]].map((e=>e.data.name)),o=yield a.Swal.fire({title:"What specific object categorized as ".concat(l.names[e.value].toLowerCase()," would you like to remove?"),input:"select",inputOptions:t,inputPlaceholder:"Select...",inputValidator:e=>e?"":"Please select which you'd like to get.",showCancelButton:!0});if(o=parseInt(o.value),r._.gameData[l.ids[e.value]][o]){var n=yield a.NumberInput.fire("Amount","How many of the object would you like to remove?","question");if(n.value){if(-1!==r.player.backpack.data[l.ids[e.value]].findIndex((t=>t.ID===r._.gameData[l.ids[e.value]][o].ID))){var s=r.player.backpack.data[l.ids[e.value]].findIndex((t=>t.ID===r._.gameData[l.ids[e.value]][o].ID));return r.player.backpack.data[l.ids[e.value]][s].N-=parseInt(n.value),r.player.backpack.data[l.ids[e.value]][s].N<=0&&r.player.backpack.data[l.ids[e.value]].splice(s,1),(0,r.saveCharacter)(),a.Toast.fire("Removed!","Successfully removed ".concat(n.value," ").concat(r._.gameData[l.ids[e.value]][o].name,"!"),"success")}yield a.Swal.fire("Item Does Not Exist","You do not have any ".concat(r._.gameData[l.ids[e.value]][o].name,"."),"error")}}}}))),new n.default(o.category.inventory,"Obtain All Furniture").setClick(s((function*(){return(yield a.Confirm.fire("Are you sure you want to get all furniture?")).value?(r._.gameData.dorm.forEach((e=>r.player.house.data.items[e.ID]={A:[],N:r.VERY_LARGE_NUMBER})),a.Toast.fire("Furniture Added!","All furniture have been added to your inventory!","success")):console.log("Cancelled.")})))}.apply(t,n),void 0===a||(e.exports=a)},6021:function(e,t,o){var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,l,"next",e)}function l(e){r(s,n,a,i,l,"throw",e)}i(void 0)}))}}var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};n=[o,t,o(6347),o(3008),o(9040),o(2477),o(122),o(1433)],a=function(e,t,o,n,a,r,l,c){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useWASD=void 0,n=i(n),a=i(a),t.useWASD=!0,new n.default(o.category.location,"WASD Movement","Allows you to walk through walls or on air with WASD movement in Prodigy.").setEnabled(s((function*(){return t.useWASD=!0,r.Toast.fire("Enabled!","WASD Movement is now enabled.","success")}))).setDisabled(s((function*(){return t.useWASD=!1,r.Toast.fire("Disabled!","WASD Movement is now disabled.","success")}))).status=!0,new a.default(o.category.location,"Edit walkspeed","Lets you set your walkspeed.").setClick(s((function*(){var e=yield r.Input.fire("What do you want to set your walk speed to?");if(e.value){if(l.player._playerContainer)l.player._playerContainer.walkSpeed=parseFloat(e.value)||1.5;else var t=setInterval((()=>{l.player._playerContainer&&(clearInterval(t),l.player._playerContainer.walkSpeed=parseFloat(e.value))}),100);return r.Toast.fire("Success!","Successfully made walk speed ".concat(parseFloat(e.value)||1.5,"!"),"success")}})));var u=-1;new n.default(o.category.location,"Toggle Click Teleporting").setEnabled(s((function*(){return u=setInterval((()=>{try{l.player._playerContainer.walkSpeed=500}catch(e){}})),r.Toast.fire("Success!","Successfully enabled teleport click.","success")}))).setDisabled(s((function*(){return clearInterval(u),l.player._playerContainer.walkSpeed=1.5,r.Toast.fire("Success!","Successfully disabled teleport click.","success")}))),new a.default(o.category.location,"Teleport To Map (interactive)").setClick(s((function*(){var e=r.Swal.mixin({focusConfirm:!1,showCancelButton:!0,preConfirm:()=>{var e;return null===(e=document.querySelector(".radioDiv[checked]"))||void 0===e?void 0:e.getAttribute("zone")}}),t=document.createElement("div");t.classList.add("radioContainer");var o=function*(){var e=document.createElement("DIV");e.classList.add("radioDiv"),e.setAttribute("zone",n);var o=l.locations[n];o?e.style.backgroundImage="url(".concat(o,")"):e.innerText=n,e.onclick=()=>{document.querySelectorAll(".radioDiv[checked]").forEach((e=>e.removeAttribute("checked"))),e.setAttribute("checked","")},t.append(e)};for(var n of Object.keys(l.prodigy.world.zones))yield*o();var a=yield e.fire({title:"Teleport Zone",html:t,customClass:{popup:"radioSwal"}});if(a.value){var s=Object.keys(l.prodigy.world.zones[a.value].maps),i=yield r.Swal.fire({input:"select",inputOptions:new Map(s.map((e=>[e,e]))),title:"Map",text:"Which map in the zone do you want to teleport to?"});if(i.value){var c=(yield r.NumberInput.fire("Please enter the x to teleport to. (Try 500?)")).value||500,u=(yield r.NumberInput.fire("Please enter the y to teleport to. (Try 500?)")).value||500;return l.prodigy.world.zones[a.value].teleport(i.value,c,u,{},{}),r.Toast.fire("Teleported","You have been teleported!","success")}}}))),new a.default(o.category.location,"Teleport to house by userID").setClick(s((function*(){var e=(yield r.NumberInput.fire("Please enter the userID.")).value;if(e)return(0,c.toHouse)(e),r.Toast.fire("Teleported!","You have been teleported!","success")}))),new a.default(o.category.location,"Get Map Location").setClick(s((function*(){var e=l.player.data.zone;navigator.clipboard.writeText(e).then(s((function*(){return console.log("Async: Copying to clipboard was successful!"),r.Swal.fire({title:"Map Location",html:"You are at
                                    ".concat(e," .
                                    You can save this to get to the same zone.

                                    Your location is has also been copied to your clipboard."),icon:"info"})})),function(){var t=s((function*(t){return console.error("Async: Could not copy text: ",t),r.Swal.fire({title:"Map Location",html:"You are at
                                    ".concat(e," .
                                    You can save this to get to the same zone."),icon:"info"})}));return function(e){return t.apply(this,arguments)}}())})))}.apply(t,n),void 0===a||(e.exports=a)},1884:function(e,t,o){var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,l,"next",e)}function l(e){r(s,n,a,i,l,"throw",e)}i(void 0)}))}}var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};n=[o,t,o(6347),o(3008),o(122),o(2477)],a=function(e,t,o,n,a,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),new((n=i(n)).default)(o.category.minigames,"69x Walk Speed [Dyno Dig]","Walk so fast that you're teleporting, in Dyno Dig.").setEnabled(s((function*(){return a._.instance.game.state.states.get("DinoDig").walkSpeed=69,r.Toast.fire("Enabled!","You will now walk so fast that you're teleporting in Dyno Dig.","success")}))).setDisabled(s((function*(){return a._.instance.game.state.states.get("DinoDig").walkSpeed=1.5,r.Toast.fire("Disabled!","You will now walk at normal speed, in Dyno Dig.","success")})))}.apply(t,n),void 0===a||(e.exports=a)},1604:function(e,t,o){var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,l,"next",e)}function l(e){r(s,n,a,i,l,"throw",e)}i(void 0)}))}}var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};n=[o,t,o(2477),o(6347),o(3008),o(9040),o(122),o(1172)],a=function(e,t,o,n,a,r,l,c){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),a=i(a),new((r=i(r)).default)(n.category.misc,"Skip Tutorial").setClick(s((function*(){var e=(e,t,o,n)=>{l._.instance.prodigy.world.getZone(e).testQuest(t,o,n);try{Object.fromEntries(l._.instance.game.state.states).TileScreen.process()}catch(e){}};e("house",2),e("academy",2),l.player.state.set("tutorial-0",4),l.player.backpack.addKeyItem(13,0),l.player.tutorial.data.menus[14]=[1],l._.instance.prodigy.open.map(!0,[]),l.player.onTutorialComplete(),l.player.data.level=Math.max(l.player.data.level,5)}))),new a.default(n.category.misc,"Disable Monster Encounters").setEnabled(s((function*(){return l._.constants.constants["GameConstants.Debug.SCALE_ENCOUNTER_DISTANCE"]=0,o.Toast.fire("Enabled!","Monsters will no longer battle you.","success")}))).setDisabled((()=>(l._.constants.constants["GameConstants.Debug.SCALE_ENCOUNTER_DISTANCE"]=1,o.Toast.fire("Disabled!","Monsters will now battle you.","success")))),new a.default(n.category.beta,"FPS Counter [BETA]","Shows you a framerate counter").setEnabled(s((function*(){(0,c.startFps)()}))).setDisabled(s((function*(){(0,c.stopFps)()})));try{var u=l.current.user.source.canSpin;new a.default(n.category.misc,"Unlimited Spins","Lets you spin the wheel as many times as you want!").setEnabled(s((function*(){return l.player.canSpin=()=>{},o.Toast.fire("Enabled!","You can now spin the wheel as many times as you want!","success")}))).setDisabled(s((function*(){return l.player.canSpin=u,o.Toast.fire("Disabled!","You can now spin the wheel only when allowed.","success")})))}catch(e){console.error("Unlimited Spins ERROR: "+e)}new r.default(n.category.misc,"Bobbify","Converts your account into Bobby Fancywoman.").setClick(s((function*(){if((yield o.Confirm.fire("Are you sure you want your account to be turned into Bobby Fancywoman?","This action is not reversable.")).value)return l.player.name.data.nickname=null,l.player.name.data.firstName=44,l.player.name.data.middleName=754,l.player.name.data.lastName=882,l.player.data.stars=-1e22,l.player.data.level=69,l.player.appearance.setGender("male"),l.player.appearance.setEyeColor(1),l.player.appearance.setFace(4),l.player.appearance.setHair(19,1),l.player.appearance.setSkinColor(1),l.player.equipment.setFollow(19),l.player.equipment.setHat(19),l.player.equipment.setBoots(19),l.player.equipment.setOutfit(19),l.player.equipment.setWeapon(19),o.Toast.fire("Bobbified!","You are now Bobby Fancywoman.","success")}))),new r.default(n.category.misc,"Reset Account","Completely resets your account.").setClick(s((function*(){if((yield o.Confirm.fire("Are you sure you want to reset your account?","This action is not reversible.")).value)return l.player.resetAccount(),o.Swal.fire("Reset!","Your account has been reset. Reload Prodigy for the full effect.","success")}))),new r.default(n.category.misc,"[Fix] Fix Battle Crash").setClick(s((function*(){return l.player.kennel.petTeam.forEach((e=>{e&&e.assignRandomSpells&&e.assignRandomSpells()})),o.Toast.fire("Success!","Fixed kennel attack bug!","success")}))),new r.default(n.category.misc,"[Fix] Stuck in Unfinished Tower Fix","Takes you out of an unfinished tower if you're stuck in one.").setClick(s((function*(){return l._.instance.prodigy.world.zones.house.teleport("exit"),o.Toast.fire("Success!","You've been teleported outside of your house.","success")}))),new r.default(n.category.misc,"uwu","OwO").setClick(s((function*(){return(yield o.Confirm.fire("Are you sure that you want to UwU OwO?","Reload Prodigy to revert UwU.")).value?(Object.chance=e=>{var t={},o=0;for(var n of Object.keys(e).sort(((e,o)=>t[e]-t[o])))t[n]=[],t[n][0]=o+1,t[n][1]=e[n]+o,o=e[n]+o;return t},Object.random=e=>{var t=Object.values(e),o=t[t.length-1][1],n=Math.randint(o);return Object.reverse(e)[t.find((e=>n>=e[0]&&n<=e[1]))]},Array.prototype.join=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:",";return"string"==typeof e?this.reduce(((t,o,n,a)=>t+(nt+(n0&&void 0!==arguments[0]?arguments[0]:",";return"string"==typeof e?this.reduce(((t,o,n)=>t+(n?e+o:o)),""):e instanceof Function?this.reduce(((t,o,n,a)=>t+(n?e(a[n],n,a)+o:o)),""):void 0},String.UWUFX=e=>{var t=Object.chance({"owo :3":20,"✧w✧":20,UwU:20,OwO:10,rawr:10,"uwu :3":5,":3 meow":15,":3":15,X3:15,"*purrs*":15,owo:15,uwu:15,"^w^":15,"x3 rawr":15,owowowowo:15});return e.split(" ").leftJoin(((e,t)=>0===Math.floor(6*Math.random())&&/[A-Za-z]/.test(e[0])?" ".concat(e[0],"-"):" ")).split(" ").join(((e,o)=>0===Math.floor(5*Math.random())?" ".concat(Object.random(t)," "):" "))},String.UWUTable={y:"wy",l:"w",r:"w",ss:"zs",n:"nw",ove:"uv",ome:"um",x:"ks",com:"cum",stu:"stew",au:"aw"},Math.randint=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Math.floor(Math.random()*e-t)+t},String.prototype.escapeRegex=function(){return this.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")},String.prototype.replaceAll=function(e,t){return this.replace(new RegExp(e.toString().escapeRegex(),"gi"),(e=>t))},Object.fromArrays=(e,t)=>{var o={};return e.forEach(((e,n)=>{o[e]=t[n]})),o},Object.reverse=e=>Object.fromArrays(Object.values(e),Object.keys(e)),String.prototype.bulkReplace=function(e){var t=this;for(var o in e)t=t.replaceAll(o,e[o]);return t},String.UWU=e=>String(e).bulkReplace(String.UWUTable),Object.keys(l._.localizer.dataSource._languageData).map((e=>l._.localizer.dataSource._languageData[e]=String.UWUFX(String.UWU(l._.localizer.dataSource._languageData[e])))),Object.values(l._.gameData).map((e=>e.map((e=>[e.data.name&&(e.data.name=String.UWUFX(String.UWU(e.data.name))),e.name&&(e.name=String.UWUFX(String.UWU(e.name))),e.data.flavorText&&(e.data.flavorText=String.UWUFX(String.UWU(e.data.flavorText)))])))),o.Toast.fire("uwu","Reload Prodigy to fix uwu.","success")):console.log("uwu cancelled")})))}.apply(t,n),void 0===a||(e.exports=a)},6275:function(e,t,o){var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,l,"next",e)}function l(e){r(s,n,a,i,l,"throw",e)}i(void 0)}))}}var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};n=[o,t,o(2477),o(6347),o(9040),o(122)],a=function(e,t,o,n,a,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),a=i(a);var l=null;new a.default(n.category.patched,"Arena Point Increaser [Patched]").setClick(s((function*(){return l?o.Swal.fire("Already Enabled","Arena Point Increaser is already enabled.","error"):(yield o.Confirm.fire("This hack is patched.","Running it will probably do nothing.")).value?(l=setInterval(s((function*(){var e=yield(yield fetch("https://api.prodigygame.com/leaderboard-api/season/".concat(r.prodigy.pvpNetworkHandler.seasonID,"/user/").concat(r.player.userID,"/pvp?userID=").concat(r.player.userID),{headers:{authorization:"Bearer ".concat(r.prodigy.network.jwtAuthProvider.getToken()),"content-type":"application/x-www-form-urlencoded; charset=UTF-8"},body:"seasonID=".concat(r.prodigy.pvpNetworkHandler.seasonID,"&action=win"),method:"POST",mode:"cors"})).text();if(""!==e){var t=JSON.parse(e);console.log("[API] ".concat(t.points," Points (+100)"))}else console.log("[API] Failed to add points.")})),60500),o.Swal.fire("Enabled","Arena Point Increaser has been enabled.","success")):console.log("Cancelled")}))),new a.default(n.category.patched,"Disable Timeout Dialog [Patched]").setClick(s((function*(){return(yield o.Confirm.fire("This hack is patched.","Running it will probably do nothing.")).value?(r.prodigy.debugMisc.disableTimeoutDialogue(),o.Toast.fire("Enabled","Timeout Dialog has been disabled.","success")):console.log("Cancelled")})))}.apply(t,n),void 0===a||(e.exports=a)},8754:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;function asyncGeneratorStep(e,t,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}function _asyncToGenerator(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var r=e.apply(t,o);function s(e){asyncGeneratorStep(r,n,a,s,i,"next",e)}function i(e){asyncGeneratorStep(r,n,a,s,i,"throw",e)}s(void 0)}))}}var __importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};__WEBPACK_AMD_DEFINE_ARRAY__=[__webpack_require__,exports,__webpack_require__(2477),__webpack_require__(6347),__webpack_require__(9040),__webpack_require__(122),__webpack_require__(1433),__webpack_require__(2803)],__WEBPACK_AMD_DEFINE_RESULT__=function(require,exports,swal_1,index_1,Hack_1,util_1,hackify_1,kennel_1){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Hack_1=__importDefault(Hack_1),new Hack_1.default(index_1.category.pets,"Get All Pets").setClick(_asyncToGenerator((function*(){return(yield swal_1.Confirm.fire("Would you like to add all pets to your pets?")).value?(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()})),swal_1.Toast.fire("Success!","All pets have been added!","success")):console.log("Cancelled")}))),new Hack_1.default(index_1.category.pets,"Get All Legacy Epics").setClick(_asyncToGenerator((function*(){return(yield swal_1.Confirm.fire("This may damage your account.","Attempting to add legacy epics may damage your account. Would you still like to add all legacy epics to your team?","warning")).value?(util_1._.gameData.pet.filter((e=>[125,126,127,128,129,130,131,132,133].includes(e.ID))).forEach((e=>{util_1.player.kennel.addPet(e.ID.toString(),util_1.VERY_LARGE_NUMBER,26376,100)})),util_1.player.kennel.petTeam.forEach((e=>{e&&e.assignRandomSpells&&e.assignRandomSpells()})),swal_1.Toast.fire("Success!","All legacy epics have been added!","success")):console.log("Cancelled")}))),new Hack_1.default(index_1.category.pets,"Get All Mythical Epics").setClick(_asyncToGenerator((function*(){return(yield swal_1.Confirm.fire("Would you like to add all mythical epics to your pets?")).value?(util_1._.gameData.pet.filter((e=>[158,164,165,166,167,168,169,170,171,189].includes(e.ID))).forEach((e=>{util_1.player.kennel.addPet(e.ID.toString(),util_1.VERY_LARGE_NUMBER,26376,100)})),util_1.player.kennel.petTeam.forEach((e=>{e&&e.assignRandomSpells&&e.assignRandomSpells()})),swal_1.Toast.fire("Success!","All mythical epics have been added!","success")):console.log("Cancelled")}))),new Hack_1.default(index_1.category.pets,"Clear Pets").setClick(_asyncToGenerator((function*(){return(yield swal_1.Confirm.fire("Would you like to delete all of your pets?")).value?(util_1.player.kennel.data.length=0,swal_1.Toast.fire("Success!","Your pets have been cleared!","success")):console.log("Cancelled")}))),new Hack_1.default(index_1.category.pets,"Add Pet","Adds a pet from a list.").setClick(_asyncToGenerator((function*(){var e=yield swal_1.Swal.fire({input:"select",inputOptions:new Map(util_1._.gameData.pet.map((e=>[e.ID.toString(),"".concat(e.ID,": ").concat(e.data.name)]))),title:"Choose Pet",text:"Which pet do you want to obtain?"});if(void 0!==e.value)return util_1.player.kennel.addPet(e.value),util_1.player.kennel._encounterInfo._data.pets.push({firstSeenDate:Date.now(),ID:e.value,timesBattled:1,timesRescued:1}),swal_1.Toast.fire("Success!","Your chosen pet has been added to your pets!","success")}))),new Hack_1.default(index_1.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(_asyncToGenerator((function*(){var petTeam=util_1.player.kennel.petTeam.slice(0);petTeam.shift();var names=petTeam.map((e=>e.getName())),pet=yield swal_1.Swal.fire({title:"Which pet would you like to edit?",input:"select",inputOptions:names,inputPlaceholder:"Select...",inputValidator:e=>e?"":"Please select which you'd like to obtain.",showCancelButton:!0}),amt=yield swal_1.NumberInput.fire("Level","What would you like to set your pet's level to? (Can be set over 100)","question");if(amt.value){var num=amt.value;return eval("player.kennel.petTeam[parseInt(".concat(pet.value,")+1].getLevel = () => {return ").concat(num,"}")),swal_1.Toast.fire("Updated!","The level of your pet was successfully updated. Note: this hack is client-side.","success")}}))),new Hack_1.default(index_1.category.pets,"Delete Pet","Delete a pet.").setClick(_asyncToGenerator((function*(){var e=yield(0,hackify_1.getPet)("Which pet do you wish to delete?");if(void 0!==e)return util_1.player.kennel.data.splice(e,1),swal_1.Toast.fire("Successfully deleted!","The selected pet was deleted successfully.","success")}))),new Hack_1.default(index_1.category.pets,"Edit Kennel","Allows you to directly edit your pets.").setClick(_asyncToGenerator((function*(){null!==(yield(0,kennel_1.GetAction)())&&null!==(yield(0,kennel_1.SelectSlot)())&&console.log(s(parseInt(KennelSlot.value)))})));var TEMP_BACKUP=null;new Hack_1.default(index_1.category.pets,"Backup Kennel [No save on reload]","Makes a backup of your kennel to a variable that doesn't save on reload.").setClick(_asyncToGenerator((function*(){return TEMP_BACKUP=util_1._.player.kennel._petTeam,swal_1.Toast.fire("Backed up!","Your kennel is now backed up to the local storage.","success")}))),new Hack_1.default(index_1.category.pets,"Restore Kennel","Restores a backup of your kennel from a variable... if you have one.").setClick(_asyncToGenerator((function*(){return null===TEMP_BACKUP?swal_1.Swal.fire({title:"No backup found",html:"There is no backup of your kennel currently. Make sure to back up your kennel before trying to load it.",icon:"error"}):(util_1._.player.kennel._petTeam=TEMP_BACKUP,swal_1.Toast.fire("Restored!","Your kennel backup should be restored","success"))})))}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),void 0===__WEBPACK_AMD_DEFINE_RESULT__||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)},5834:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;function asyncGeneratorStep(e,t,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}function _asyncToGenerator(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var r=e.apply(t,o);function s(e){asyncGeneratorStep(r,n,a,s,i,"next",e)}function i(e){asyncGeneratorStep(r,n,a,s,i,"throw",e)}s(void 0)}))}}var __importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};__WEBPACK_AMD_DEFINE_ARRAY__=[__webpack_require__,exports,__webpack_require__(2477),__webpack_require__(6347),__webpack_require__(3008),__webpack_require__(9040),__webpack_require__(122),__webpack_require__(1433),__webpack_require__(9425)],__WEBPACK_AMD_DEFINE_RESULT__=function(require,exports,swal_1,index_1,Toggler_1,Hack_1,util_1,hackify_1,chat_1){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Toggler_1=__importDefault(Toggler_1),Hack_1=__importDefault(Hack_1),chat_1=__importDefault(chat_1),new Hack_1.default(index_1.category.player,"Open ProdigyPNP Chat","Opens a chat for ProdigyPNP users").setClick(_asyncToGenerator((function*(){return(0,chat_1.default)()}))),new Hack_1.default(index_1.category.player,"Max Account").setClick(_asyncToGenerator((function*(){if(!(yield swal_1.Confirm.fire("Are you sure that you want to max your account?","We recommend doing this on an alt.")).value)return console.log("Cancelled");util_1.player.data.gold=99e5,console.log("Set player gold to 9900000.");var e=100..value-2;util_1.player.data.stars=Math.round((1-Math.pow(1.042,e))/(1-1.042)*20+10),util_1.player.data.level=100,util_1.player.getLevel=()=>util_1.player.data.level,console.log("Set player level to 100"),util_1.player.data.bountyScore=100,console.log("Set player's bounty points to 100.");for(var t=0;t{util_1.player.backpack.data[e]=(0,hackify_1.itemify)(util_1._.gameData[e].filter((t=>"follow"===e?![125,126,127,128,129,134,135,136,137].includes(t.ID):t)),1..value)})),util_1._.gameData.dorm.forEach((e=>util_1.player.house.data.items[e.ID]={A:[],N:1..value}));for(var n=()=>util_1.player.backpack.data.item.findIndex((e=>84===e.ID||85===e.ID||86===e.ID));n()>-1;)util_1.player.backpack.data.item.splice(n(),1);swal_1.Toast.fire("Success!","All items added!","success"),console.log("All items added!"),util_1.player.backpack.data.mount=(0,hackify_1.itemify)(util_1._.gameData.mount,1),console.log("Added all mounts.");var a="currency";return util_1.player.backpack.data[a]=(0,hackify_1.itemify)(util_1._.gameData[a].filter((e=>e)),6969420),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.equipment.setHat(200),util_1.player.equipment.setBoots(93),util_1.player.equipment.setOutfit(161),util_1.player.equipment.setWeapon(196),util_1.player.appearanceChanged=!0,console.log("Appearance Refreshed."),(0,util_1.saveCharacter)(),console.log("Character Saved."),console.log("Max Account Successful."),swal_1.Toast.fire("Maxed!","Check your backpack!","success")}))),new Hack_1.default(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)return e.value>1e7?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 Hack_1.default(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;return 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 Hack_1.default(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");if(void 0!==e.value)return util_1.player.data.storedMemberStars=e.value,swal_1.Toast.fire("Success!","You have set your member stars to ".concat(e.value,"."),"success")}))),new Hack_1.default(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");if(void 0!==e.value)return 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 Hack_1.default(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;t(util_1._.instance.prodigy.gameContainer.get((0,hackify_1.getMemberModule)()).data.membership.active=!1,util_1.player.appearanceChanged=!0,swal_1.Toast.fire("Success!","You no longer have Prodigy membership!","success")))),new Hack_1.default(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 Hack_1.default(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"),o=(e,t)=>{var o=document.createElement("select");for(var n of(o.classList.add("selectName"),e.entries())){var a=document.createElement("option");[a.value,a.innerText]=n,t(a.value)&&(a.selected=!0),o.options.add(a)}return o},n=(t,n)=>o(new Map(e.filter((e=>e.data.type===t)).map((e=>[e.ID.toString(),e.name]))),(e=>n(+e)));t.append(n(0,(e=>e===util_1.player.name.data.firstName))),t.append(n(1,(e=>e===util_1.player.name.data.middleName))),t.append(n(2,(e=>e===util_1.player.name.data.lastName))),t.append(o(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 Hack_1.default(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");if(level.value)return 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 Hack_1.default(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 Hack_1.default(index_1.category.player,"Fix Morph Crash").setClick(_asyncToGenerator((function*(){return util_1.player.getPlayerData().playerTransformation=void 0,util_1.player.appearanceChanged=!0,swal_1.Toast.fire("Success!","Fixed morph crash bug.","success")}))),new Hack_1.default(index_1.category.player,"Permanent Morph","Makes Your Current Morph Last Forever.").setClick(_asyncToGenerator((function*(){return 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")):swal_1.Swal.fire("No Morph Active","Please use a Morph Marble and try again.","error")}))),new Hack_1.default(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 o=util_1._.instance.prodigy.world.zones[t].getCurrentQuestID();return util_1._.instance.prodigy.world.zones[t].completeQuest(o)?(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 Hack_1.default(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)});if(e.value)return util_1.player.data.tower=parseInt(e.value),swal_1.Toast.fire("Success!","Successfully set dark tower floor to ".concat(e,"!"),"success")}))),new Hack_1.default(index_1.category.player,"Get UserID").setClick(_asyncToGenerator((function*(){var e=util_1.player.userID;navigator.clipboard.writeText(e.toString()).then((function(){return 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){return 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 Hack_1.default(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();return 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 Hack_1.default(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?");if(e.value)return util_1.player.grade=parseInt(e.value),swal_1.Toast.fire("Success","Successfully changed grade to ".concat(e,"!"),"success")})))}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),void 0===__WEBPACK_AMD_DEFINE_RESULT__||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)},3649:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;function asyncGeneratorStep(e,t,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}function _asyncToGenerator(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var r=e.apply(t,o);function s(e){asyncGeneratorStep(r,n,a,s,i,"next",e)}function i(e){asyncGeneratorStep(r,n,a,s,i,"throw",e)}s(void 0)}))}}var __importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};__WEBPACK_AMD_DEFINE_ARRAY__=[__webpack_require__,exports,__webpack_require__(2477),__webpack_require__(6347),__webpack_require__(3008),__webpack_require__(9040),__webpack_require__(122)],__WEBPACK_AMD_DEFINE_RESULT__=function(require,exports,swal_1,index_1,Toggler_1,Hack_1,util_1){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Toggler_1=__importDefault(Toggler_1),Hack_1=__importDefault(Hack_1),new Hack_1.default(index_1.category.utility,"Close all popups","Closes all popups in Prodigy.").setClick(_asyncToGenerator((function*(){return util_1._.instance.prodigy.open.menuCloseAll(),swal_1.Toast.fire("Closed!","All open popups were closed.","success")}))),new Hack_1.default(index_1.category.utility,"Grab UserID of all players on screen","Shows you the UserID and name of every player currently shown on the screen.").setClick(_asyncToGenerator((function*(){var e=util_1.current.playerList;if(0===Object.keys(e).length)return swal_1.Toast.fire("No players found.","There are no other players on the screen.","error");var t="",o=0;return yield Object.keys(e).map((n=>{var a=Object.entries(e)[o][1].nameText.textSource.source;t+="
                                  • uID: ".concat(n," - ").concat(a,"
                                  • "),o++})),swal_1.Swal.fire({title:"All players on the screen:",html:t,icon:"info"})}))),new Hack_1.default(index_1.category.utility,"Save Character Locally [Local]","Saves your character locally.").setClick(_asyncToGenerator((function*(){return 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 Hack_1.default(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"});return t.ok?swal_1.Toast.fire("Success!","Character has been successfully loaded. Reload for the changes to take effect.","success"):swal_1.Toast.fire("Request failed.","An error occurred while loading the character. Error code: ".concat(t.status),"error")}return swal_1.Toast.fire("Error","No saved character.","error")}))),new Hack_1.default(index_1.category.utility,"Save Character","Helps fix bugs where not all hacks save.").setClick(_asyncToGenerator((function*(){return(0,util_1.saveCharacter)(),swal_1.Toast.fire("Success!","Your character has been saved!","success")}))),new Hack_1.default(index_1.category.utility,"Update menu","Updates menu to the latest version without needing to reload.").setClick(_asyncToGenerator((function*(){var _document$getElementB,_document$getElementB2;return 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 Hack_1.default(index_1.category.utility,"Disable inactivity kick","Keeps you from being logged out for inactivity.").setClick(_asyncToGenerator((function*(){return 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 Toggler_1.default(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 Hack_1.default(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);return swal_1.Toast.fire("Success!","Successfully made walk speed ".concat(parseFloat(e.value)||1.5,"!"),"success")}})));var teleportingInterval=-1;new Toggler_1.default(index_1.category.utility,"Toggle Click Teleporting").setEnabled(_asyncToGenerator((function*(){return teleportingInterval=setInterval((()=>{try{util_1.player._playerContainer.walkSpeed=500}catch(e){}})),swal_1.Toast.fire("Success!","Successfully enabled teleport click.","success")}))).setDisabled(_asyncToGenerator((function*(){return clearInterval(teleportingInterval),util_1.player._playerContainer.walkSpeed=1.5,swal_1.Toast.fire("Success!","Successfully disabled teleport click.","success")}))),new Toggler_1.default(index_1.category.utility,"Pause Game").setEnabled(_asyncToGenerator((function*(){return util_1._.network.game._paused=!0,swal_1.Toast.fire("Success!","Successfully paused Prodigy.","success")}))).setDisabled(_asyncToGenerator((function*(){return util_1._.network.game._paused=!1,swal_1.Toast.fire("Success!","Successfully resumed Prodigy.","success")}))),new Hack_1.default(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)return console.log("Cancelled.");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 swal_1.Swal.fire({title:"Error",html:"Oops! There was an error with the code!
                                     ".concat(e," "),icon:"error"})}return 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__)},6347:function(e,t,o){var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,l,"next",e)}function l(e){r(s,n,a,i,l,"throw",e)}i(void 0)}))}}var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};n=[o,t,o(6074),o(122),o(7509),o(6455),o(2477),o(3772)],a=function(e,t,o,n,a,r,l){"use strict";var c,u,d,p;Object.defineProperty(t,"__esModule",{value:!0}),t.category=t.toggler=t.wrapper=t.menu=void 0,r=i(r),t.menu=document.createElement("div"),t.wrapper=document.getElementById("game-wrapper"),null===(c=document.getElementById("cheat-menu"))||void 0===c||c.remove(),null===(u=document.getElementById("menu-toggler"))||void 0===u||u.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===(d=t.wrapper)||void 0===d||d.prepend(t.menu),t.toggler=document.createElement("button"),t.toggler.id="menu-toggler";var h=!1;null===(p=t.wrapper)||void 0===p||p.prepend(t.toggler),t.toggler.onclick=()=>{(h=!h)?(t.toggler.innerText="▼",t.menu.style.top="-100vh"):(t.toggler.innerText="▲",t.menu.style.top="10%")},t.toggler.onclick({});var f=document.createElement("DIV");f.classList.add("menu-left"),t.menu.append(f);var m=!0;function g(e){var t=document.createElement("div");0==m?(t.append(document.createElement("br")),t.append(document.createElement("br"))):m=!1,t.classList.add("menu-area"),t.style.textAlign="center",f.append(t);var o=document.createElement("h1");return o.innerText=e,o.style.textAlign="center",o.style.color="white",t.append(o),t}var y=document.createElement("h1");y.classList.add("menu-title"),y.innerText="Prodigy Hacks",y.style.textAlign="center",f.append(y);var w=document.createElement("h2");w.style.fontSize="25px",w.style.color="white",w.innerHTML="
                                    Press SHIFT to show/hide the menu. Scroll down in the menu for more hacks.",f.append(w);var _=document.createElement("h3");_.style.fontSize="20px",_.innerHTML="\n

                                    Join our Discord https://dsc.gg/ProdigyPNP!

                                    \n\n
                                    \n",_.style.color="white",f.append(_),t.category={player:g("Player Hacks"),inventory:g("Inventory Hacks"),location:g("Location Hacks"),pets:g("Pet Hacks"),battle:g("Battle Hacks"),minigames:g("Minigame Hacks"),misc:g("Miscellaneous Hacks"),utility:g("Utility Hacks"),beta:g("Beta Testing | Beta Hacks may damage your account"),patched:g("Patched Hacks")},localStorage.hasTip?console.log("Player already has tip."):(s((function*(){yield r.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,console.log("Player was shown the tip.")),localStorage.getItem("level")&&(n._.player.getLevel=()=>localStorage.getItem("level"),console.log("Loaded menu from localStorage."));var b=!0;document.addEventListener("keydown",(function(e){"Shift"==e.key&&(console.log("Shift key was pressed."),1==b?(console.log("Hiding cheat menu..."),document.getElementById("cheat-menu").style.display="none",document.getElementById("menu-toggler").style.display="none",b=!1,console.log("Hidden cheat menu.")):(console.log("Showing cheat menu..."),document.getElementById("cheat-menu").style.display="block",document.getElementById("menu-toggler").style.display="block",b=!0,console.log("Shown cheat menu.")))})),s((function*(){var e,t;(yield l.License.fire("ProdigyPNP",'\n

                                    \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 ')).value?yield(0,a.statusMessage)():(yield l.NoLicense.fire("ProdigyPNP License","\n

                                    \n You need to agree to our license to use our hacks. If you changed your mind and now agree to our license, reload Prodigy.\n

                                    \n ")).value?document.location="":(null===(e=document.getElementById("cheat-menu"))||void 0===e||e.remove(),null===(t=document.getElementById("menu-toggler"))||void 0===t||t.remove())}))()}.apply(t,n),void 0===a||(e.exports=a)},9425:(e,t,o)=>{var n;n=function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=null;t.default=function(){null===o||o.closed?o=window.open("https://chat.prodigypnp.com:8443/",null,"\n height=800,\n width=350,\n status=yes,\n toolbar=no,\n menubar=no,\n location=no\n "):o.focus()}}.apply(t,[o,t]),void 0===n||(e.exports=n)},864:(e,t,o)=>{var n;void 0===(n=function(e,t){}.apply(t,[o,t]))||(e.exports=n)},1172:(e,t,o)=>{var n,a;n=[o,t,o(6347)],a=function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stopFps=t.startFps=void 0;var n=document.createElement("button"),a=!1;t.startFps=function(){var e;a=!0,n.id="fps-counter",null===(e=o.wrapper)||void 0===e||e.prepend(n),setInterval((()=>{var e=_.player.game.fps._framerate;a?n.innerText=e.toFixed(2)+" FPS":n.remove()}),300)},t.stopFps=function(){var e;a=!1,null===(e=document.getElementById("fps-counter"))||void 0===e||e.remove()}}.apply(t,n),void 0===a||(e.exports=a)},1433:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}n=[o,t,o(122),o(2477)],a=function(e,t,o,n){"use strict";function a(e){o._.instance.prodigy.loading(!0);var t=t=>{var a=null!=t?t[e]:null;if(null!==a&&void 0!==a.house&&null!==a.house){o._.instance.prodigy.loading(!1);var r=o._.cloneDeep(o._.player.house);return r.setItems(a.house),void 0!==a.data.allowsHouseVisitors&&null!==a.data.allowsHouseVisitors&&a.data.allowsHouseVisitors?o._.instance.prodigy.world._("house",null,null,{house:r,getAllowsHouseVisitors:()=>void 0!==a.data.allowsHouseVisitors&&null!==a.data.allowsHouseVisitors&&a.data.allowsHouseVisitors,setAllowsHouseVisitors:e=>{a.data.allowsHouseVisitors=e}}):n.Swal.fire("Teleporting to ".concat(e," is not allowed."),"Try another user.","error")}};return o._.network.getCharData(e.toString(),["house","data"],t,t),n.Toast.fire("Teleported to house","You have been teleported to the house!","success")}Object.defineProperty(t,"__esModule",{value:!0}),t.getPet=t.teleportToHouse=t.toHouse=t.getMemberModule=t.runeify=t.itemify=t.ids=t.names=void 0,t.names=["Boots","Buddies","Fossils","Hats","Items","Key Items","Tower Town Frames","Tower Town Interiors","Mounts","Outfits","Relics","Weapons","Currencies"],t.ids=["boots","follow","fossil","hat","item","key","mathTownFrame","mathTownInterior","mount","outfit","spellRelic","weapon","currency"],t.itemify=(e,t)=>e.map((e=>({ID:e.ID,N:t}))).filter((e=>void 0!==e)),t.runeify=(e,t)=>e.map((e=>({ID:e.ID,quantity:t}.filter((e=>void 0!==e))))),t.getMemberModule=function(){return o._.player.hasMembership.toString().split('"')[1]},t.toHouse=function(e){if(o._.player.userID!==e){var t=o._.instance.prodigy.friendsListNetworkHandler.friendsList.length,r=o._.instance.prodigy.friendsListNetworkHandler.classList.length;o._.instance.prodigy.gameContainer.get("2e1-e659").create("house-visit","click","hub",t,r,null,null,e).broadcast()}var s=o._.instance.prodigy.world.getZone(o._.instance.prodigy.world.getCurrentZone());return s?s.handleLeaving(2,(()=>a(e))):n.Swal.fire({title:"Error",text:"You are not in a zone!",icon:"error"})},t.teleportToHouse=a;var s=function(){var e,t=(e=function*(e){return(yield n.Swal.fire({input:"select",inputOptions:new Map(o._.player.kennel.data.map(((e,t)=>{var n,a,r;return[t.toString(),"Level ".concat(e.level," - ").concat(null!==(n=null!==(a=e.nickname)&&void 0!==a?a:null===(r=o._.gameData.pet.find((t=>+t.ID==+e.ID)))||void 0===r?void 0:r.data.name)&&void 0!==n?n:"Unknown")]}))),title:"Choose Pet",text:e})).value},function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,l,"next",e)}function l(e){r(s,n,a,i,l,"throw",e)}i(void 0)}))});return function(e){return t.apply(this,arguments)}}();t.getPet=s}.apply(t,n),void 0===a||(e.exports=a)},2803:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,l,"next",e)}function l(e){r(s,n,a,i,l,"throw",e)}i(void 0)}))}}n=[o,t,o(2477)],a=function(e,t,o){"use strict";function n(){return(n=s((function*(){var e=new Map;e.set("Copy","Copy a slot to another slot"),e.set("Remove","Completley empty one slot");var t=yield o.Swal.fire({input:"select",inputOptions:e,title:"Select Action",text:"Select an action to perform on the Kennel"});return t.value?t.value:null}))).apply(this,arguments)}function a(){return(a=s((function*(){var e=new Map,t=e=>_.player.kennel._petTeam[e]?_.player.kennel._petTeam[e].source?_.player.kennel._petTeam[e].source.name:_.player.kennel._petTeam[e]._userDataPlatform?"Player":"null":"null";e.set("0","[0] Center - ".concat(t(0))),e.set("1","[1] Top - ".concat(t(1))),e.set("2","[2] Bottom - ".concat(t(2)));var n=yield o.Swal.fire({input:"select",inputOptions:e,title:"Select Slot",text:"Select a slot to edit"});return n.value?parseInt(n.value):null}))).apply(this,arguments)}Object.defineProperty(t,"__esModule",{value:!0}),t.SelectSlot=t.GetAction=void 0,t.GetAction=function(){return n.apply(this,arguments)},t.SelectSlot=function(){return a.apply(this,arguments)}}.apply(t,n),void 0===a||(e.exports=a)},9131:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}n=[o,t,o(122),o(2477)],void 0===(a=function(e,t,o,n){"use strict";window.addEventListener("keydown",(e=>{switch(e.key){case"`":o._.instance.prodigy.open.menuCloseAll();break;case"\\":var t=function(){var e,t=(e=function*(){if(!(yield n.Confirm.fire("Kit","Would you like to equip Celestial Gear?")).value)return console.log("Cancelled");o._.player.equipment.setHat(200),o._.player.equipment.setBoots(93),o._.player.equipment.setOutfit(161),o._.player.equipment.setWeapon(196),o._.player.appearanceChanged=!0,n.Toast.fire("Success!","You are now wearing Celestial Armor and wielding a Dual Blade.","success")},function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,l,"next",e)}function l(e){r(s,n,a,i,l,"throw",e)}i(void 0)}))});return function(){return t.apply(this,arguments)}}();t()}}))}.apply(t,n))||(e.exports=a)},3414:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,l,"next",e)}function l(e){r(s,n,a,i,l,"throw",e)}i(void 0)}))}}n=[o,t,o(122)],a=function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PopupInterval=void 0;var n=!1;t.PopupInterval=function(e){n=e},s((function*(){setInterval(s((function*(){n&&o._.instance.prodigy.open.menuCloseAll()})),200)}))()}.apply(t,n),void 0===a||(e.exports=a)},7509:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}n=[o,t,o(2477)],a=function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.statusMessage=void 0,t.statusMessage=function(){fetch("https://raw.githubusercontent.com/ProdigyPNP/ProdigyMathGameHacking/master/cheatGUI/statusmessage.json?updated=".concat(Date.now())).then((e=>e.json())).then(function(){var e,t=(e=function*(e){if(!1===e.enabled.value)return console.log("Status message is disabled.");yield o.Swal.fire({title:e.get("title"),html:e.get("html"),icon:e.get("icon")})},function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,l,"next",e)}function l(e){r(s,n,a,i,l,"throw",e)}i(void 0)}))});return function(e){return t.apply(this,arguments)}}())}}.apply(t,n),void 0===a||(e.exports=a)},2477:function(e,t,o){var n,a,r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};n=[o,t,o(6455)],a=function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NoLicense=t.License=t.Info=t.Confirm=t.Toast=t.NumberInput=t.Input=t.Swal=void 0,o=r(o),t.Swal=o.default,t.Input=t.Swal.mixin({input:"text",showCancelButton:!0,showConfirmButton:!0,toast:!1}),t.NumberInput=t.Input.mixin({toast:!1,input:"number"}),t.Toast=t.Swal.mixin({toast:!0,position:"bottom"}),t.Confirm=t.Swal.mixin({icon:"warning",showCancelButton:!0,toast:!1,confirmButtonText:"Confirm",cancelButtonText:"Cancel"}),t.Info=t.Swal.mixin({icon:"info",showCancelButton:!1,toast:!1}),t.License=t.Swal.mixin({icon:"info",showCancelButton:!0,toast:!1,confirmButtonText:"Agree",cancelButtonText:"Disagree"}),t.NoLicense=t.Swal.mixin({icon:"error",showCancelButton:!0,toast:!1,confirmButtonText:"Reload",cancelButtonText:"Play without hacks"}),window.Swal=t.Swal}.apply(t,n),void 0===a||(e.exports=a)},122:(e,t,o)=>{var n;n=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.current=t.player=t._=void 0,t._=window._,t.player=t._.player,t.current=window.Boot.prototype.game._state._current;var o=t._.instance;t.game=o.game,t.prodigy=o.prodigy,t.gameData=t._.instance.game.state.states.get("Boot").gameData,t.getItem=(e,o)=>{var n;return null!==(n=t._.gameData[e].find((e=>e.ID===o)))&&void 0!==n?n: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,[o,t]),void 0===n||(e.exports=n)},3521:(e,t,o)=>{var n,a;function r(e,t,o,n,a,r,s){try{var i=e[r](s),l=i.value}catch(e){return void o(e)}i.done?t(l):Promise.resolve(l).then(n,a)}function s(e){return function(){var t=this,o=arguments;return new Promise((function(n,a){var s=e.apply(t,o);function i(e){r(s,n,a,i,l,"next",e)}function l(e){r(s,n,a,i,l,"throw",e)}i(void 0)}))}}n=[o,t,o(6021),o(122)],void 0===(a=function(e,t,o,n){"use strict";function a(e){return r.apply(this,arguments)}function r(){return(r=s((function*(e){for(var t=0;t<100;t++)yield new Promise((e=>setTimeout(e,2))),n.player._playerContainer.x-=e/100}))).apply(this,arguments)}function i(e){return l.apply(this,arguments)}function l(){return(l=s((function*(e){for(var t=0;t<100;t++)yield new Promise((e=>setTimeout(e,2))),n.player._playerContainer.y-=e/100}))).apply(this,arguments)}window.addEventListener("keydown",(e=>{if(o.useWASD)switch(e.key){case"w":i(40);break;case"s":i(-40);break;case"a":a(40);break;case"d":a(-40)}}))}.apply(t,n))||(e.exports=a)},9227:(e,t,o)=>{"use strict";o.d(t,{Z:()=>i});var n=o(9442),a=o.n(n),r=o(2715),s=o.n(r)()(a());s.push([e.id,"@import url(https://fonts.googleapis.com/css?family=Arvo:400,700|Sen:400,700,800&display=swap&subset=latin-ext);"]),s.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;font-size:23px;height:26px;width:50px;border:1px solid rgba(0,0,0,.1)}#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 #fps-counter{z-index:2;position:absolute;border-radius:3px;background-color:rgba(255,255,255,.7333333333);transition:background-color .15s;width:130px;height:26px;font-size:23px;border:1px solid rgba(0,0,0,.1);margin-left:83%}#game-wrapper #fps-counter:hover{background-color:rgba(221,221,221,.7333333333)}#game-wrapper #fps-counter: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:rgba(0,0,0,.55);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}#chat-frame{width:12%;height:80%;top:-10%;bottom:-10%;left:80%;right:0%;position:fixed;z-index:4}.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;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:-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 i=s},2715:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var o="",n=void 0!==t[5];return t[4]&&(o+="@supports (".concat(t[4],") {")),t[2]&&(o+="@media ".concat(t[2]," {")),n&&(o+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),o+=e(t),n&&(o+="}"),t[2]&&(o+="}"),t[4]&&(o+="}"),o})).join("")},t.i=function(e,o,n,a,r){"string"==typeof e&&(e=[[null,e,void 0]]);var s={};if(n)for(var i=0;i0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=r),o&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=o):u[2]=o),a&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=a):u[4]="".concat(a)),t.push(u))}},t}},9442:e=>{"use strict";e.exports=function(e){return e[1]}},7820:(e,t,o)=>{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 o="color: "+this.color;t.splice(1,0,o,"color: inherit");let n=0,a=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(n++,"%c"===e&&(a=n))})),t.splice(a,0,o)},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=o(8455)(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},8455:(e,t,o)=>{e.exports=function(e){function t(e){let o,a,r,s=null;function i(...e){if(!i.enabled)return;const n=i,a=Number(new Date),r=a-(o||a);n.diff=r,n.prev=o,n.curr=a,o=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,((o,a)=>{if("%%"===o)return"%";s++;const r=t.formatters[a];if("function"==typeof r){const t=e[s];o=r.call(n,t),e.splice(s,1),s--}return o})),t.formatArgs.call(n,e),(n.log||t.log).apply(n,e)}return i.namespace=e,i.useColors=t.useColors(),i.color=t.selectColor(e),i.extend=n,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 n(e,o){const n=t(this.namespace+(void 0===o?":":o)+e);return n.log=this.log,n}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 o;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const n=("string"==typeof e?e:"").split(/[\s,]+/),a=n.length;for(o=0;o{t[o]=e[o]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let o=0;for(let t=0;t{var t=1e3,o=60*t,n=60*o,a=24*n;function r(e,t,o,n){var a=t>=1.5*o;return Math.round(e/o)+" "+n+(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*n;case"minutes":case"minute":case"mins":case"min":case"m":return s*o;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>=n?r(i,l,n,"hour"):l>=o?r(i,l,o,"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>=n?Math.round(e/n)+"h":r>=o?Math.round(e/o)+"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))}},3772:(e,t,o)=>{"use strict";o.r(t),o.d(t,{default:()=>y});var n=o(9138),a=o.n(n),r=o(2376),s=o.n(r),i=o(5647),l=o.n(i),c=o(4438),u=o.n(c),d=o(2084),p=o.n(d),h=o(7693),f=o.n(h),m=o(9227),g={};g.styleTagTransform=f(),g.setAttributes=u(),g.insert=l().bind(null,"head"),g.domAPI=s(),g.insertStyleElement=p(),a()(m.Z,g);const y=m.Z&&m.Z.locals?m.Z.locals:void 0},9138:e=>{"use strict";var t=[];function o(e){for(var o=-1,n=0;n{"use strict";var t={};e.exports=function(e,o){var n=function(e){if(void 0===t[e]){var o=document.querySelector(e);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(e){o=null}t[e]=o}return t[e]}(e);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(o)}},2084:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},4438:(e,t,o)=>{"use strict";e.exports=function(e){var t=o.nc;t&&e.setAttribute("nonce",t)}},2376:e=>{"use strict";e.exports=function(e){var t=e.insertStyleElement(e);return{update:function(o){!function(e,t,o){var n="";o.supports&&(n+="@supports (".concat(o.supports,") {")),o.media&&(n+="@media ".concat(o.media," {"));var a=void 0!==o.layer;a&&(n+="@layer".concat(o.layer.length>0?" ".concat(o.layer):""," {")),n+=o.css,a&&(n+="}"),o.media&&(n+="}"),o.supports&&(n+="}");var r=o.sourceMap;r&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(r))))," */")),t.styleTagTransform(n,e,t.options)}(t,e,o)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},7693:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},6455:function(e){e.exports=function(){"use strict";var e={awaitingPromise:new WeakMap,promise:new WeakMap,innerParams:new WeakMap,domCache:new WeakMap};const t=e=>{const t={};for(const o in e)t[e[o]]="swal2-"+e[o];return t},o=t(["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","show","hide","close","title","html-container","actions","confirm","deny","cancel","default-outline","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","input-label","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loader","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error"]),n=t(["success","warning","info","question","error"]),a="SweetAlert2:",r=e=>e.charAt(0).toUpperCase()+e.slice(1),s=e=>{console.warn(`${a} ${"object"==typeof e?e.join(" "):e}`)},i=e=>{console.error(`${a} ${e}`)},l=[],c=(e,t)=>{var o;o=`"${e}" is deprecated and will be removed in the next major release. Please use "${t}" instead.`,l.includes(o)||(l.push(o),s(o))},u=e=>"function"==typeof e?e():e,d=e=>e&&"function"==typeof e.toPromise,p=e=>d(e)?e.toPromise():Promise.resolve(e),h=e=>e&&Promise.resolve(e)===e,f=()=>document.body.querySelector(`.${o.container}`),m=e=>{const t=f();return t?t.querySelector(e):null},g=e=>m(`.${e}`),y=()=>g(o.popup),w=()=>g(o.icon),_=()=>g(o.title),b=()=>g(o["html-container"]),v=()=>g(o.image),k=()=>g(o["progress-steps"]),C=()=>g(o["validation-message"]),E=()=>m(`.${o.actions} .${o.confirm}`),x=()=>m(`.${o.actions} .${o.deny}`),T=()=>m(`.${o.loader}`),S=()=>m(`.${o.actions} .${o.cancel}`),P=()=>g(o.actions),A=()=>g(o.footer),D=()=>g(o["timer-progress-bar"]),B=()=>g(o.close),I=()=>{const e=Array.from(y().querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])')).sort(((e,t)=>{const o=parseInt(e.getAttribute("tabindex")),n=parseInt(t.getAttribute("tabindex"));return o>n?1:o"-1"!==e.getAttribute("tabindex")));return(e=>{const t=[];for(let o=0;oJ(e)))},O=()=>N(document.body,o.shown)&&!N(document.body,o["toast-shown"])&&!N(document.body,o["no-backdrop"]),M=()=>y()&&N(y(),o.toast),R={previousBodyPadding:null},L=(e,t)=>{if(e.textContent="",t){const o=(new DOMParser).parseFromString(t,"text/html");Array.from(o.querySelector("head").childNodes).forEach((t=>{e.appendChild(t)})),Array.from(o.querySelector("body").childNodes).forEach((t=>{t instanceof HTMLVideoElement||t instanceof HTMLAudioElement?e.appendChild(t.cloneNode(!0)):e.appendChild(t)}))}},N=(e,t)=>{if(!t)return!1;const o=t.split(/\s+/);for(let t=0;t{if(((e,t)=>{Array.from(e.classList).forEach((a=>{Object.values(o).includes(a)||Object.values(n).includes(a)||Object.values(t.showClass).includes(a)||e.classList.remove(a)}))})(e,t),t.customClass&&t.customClass[a]){if("string"!=typeof t.customClass[a]&&!t.customClass[a].forEach)return void s(`Invalid type of customClass.${a}! Expected string or iterable object, got "${typeof t.customClass[a]}"`);U(e,t.customClass[a])}},q=(e,t)=>{if(!t)return null;switch(t){case"select":case"textarea":case"file":return e.querySelector(`.${o.popup} > .${o[t]}`);case"checkbox":return e.querySelector(`.${o.popup} > .${o.checkbox} input`);case"radio":return e.querySelector(`.${o.popup} > .${o.radio} input:checked`)||e.querySelector(`.${o.popup} > .${o.radio} input:first-child`);case"range":return e.querySelector(`.${o.popup} > .${o.range} input`);default:return e.querySelector(`.${o.popup} > .${o.input}`)}},F=e=>{if(e.focus(),"file"!==e.type){const t=e.value;e.value="",e.value=t}},H=(e,t,o)=>{e&&t&&("string"==typeof t&&(t=t.split(/\s+/).filter(Boolean)),t.forEach((t=>{Array.isArray(e)?e.forEach((e=>{o?e.classList.add(t):e.classList.remove(t)})):o?e.classList.add(t):e.classList.remove(t)})))},U=(e,t)=>{H(e,t,!0)},$=(e,t)=>{H(e,t,!1)},W=(e,t)=>{const o=Array.from(e.children);for(let e=0;e{o===`${parseInt(o)}`&&(o=parseInt(o)),o||0===parseInt(o)?e.style[t]="number"==typeof o?`${o}px`:o:e.style.removeProperty(t)},Y=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"flex";e.style.display=t},z=e=>{e.style.display="none"},V=(e,t,o,n)=>{const a=e.querySelector(t);a&&(a.style[o]=n)},K=function(e,t){t?Y(e,arguments.length>2&&void 0!==arguments[2]?arguments[2]:"flex"):z(e)},J=e=>!(!e||!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)),Z=e=>!!(e.scrollHeight>e.clientHeight),X=e=>{const t=window.getComputedStyle(e),o=parseFloat(t.getPropertyValue("animation-duration")||"0"),n=parseFloat(t.getPropertyValue("transition-duration")||"0");return o>0||n>0},Q=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const o=D();J(o)&&(t&&(o.style.transition="none",o.style.width="100%"),setTimeout((()=>{o.style.transition=`width ${e/1e3}s linear`,o.style.width="0%"}),10))},ee={},te=e=>new Promise((t=>{if(!e)return t();const o=window.scrollX,n=window.scrollY;ee.restoreFocusTimeout=setTimeout((()=>{ee.previousActiveElement instanceof HTMLElement?(ee.previousActiveElement.focus(),ee.previousActiveElement=null):document.body&&document.body.focus(),t()}),100),window.scrollTo(o,n)})),oe=()=>"undefined"==typeof window||"undefined"==typeof document,ne=`\n
                                    \n \n
                                      \n
                                      \n \n

                                      \n
                                      \n \n \n
                                      \n \n \n
                                      \n \n
                                      \n \n \n
                                      \n
                                      \n
                                      \n \n \n \n
                                      \n
                                      \n
                                      \n
                                      \n
                                      \n
                                      \n`.replace(/(^|\n)\s*/g,""),ae=()=>{ee.currentInstance.resetValidationMessage()},re=e=>{const t=(()=>{const e=f();return!!e&&(e.remove(),$([document.documentElement,document.body],[o["no-backdrop"],o["toast-shown"],o["has-column"]]),!0)})();if(oe())return void i("SweetAlert2 requires document to initialize");const n=document.createElement("div");n.className=o.container,t&&U(n,o["no-transition"]),L(n,ne);const a="string"==typeof(r=e.target)?document.querySelector(r):r;var r;a.appendChild(n),(e=>{const t=y();t.setAttribute("role",e.toast?"alert":"dialog"),t.setAttribute("aria-live",e.toast?"polite":"assertive"),e.toast||t.setAttribute("aria-modal","true")})(e),(e=>{"rtl"===window.getComputedStyle(e).direction&&U(f(),o.rtl)})(a),(()=>{const e=y(),t=W(e,o.input),n=W(e,o.file),a=e.querySelector(`.${o.range} input`),r=e.querySelector(`.${o.range} output`),s=W(e,o.select),i=e.querySelector(`.${o.checkbox} input`),l=W(e,o.textarea);t.oninput=ae,n.onchange=ae,s.onchange=ae,i.onchange=ae,l.oninput=ae,a.oninput=()=>{ae(),r.value=a.value},a.onchange=()=>{ae(),r.value=a.value}})()},se=(e,t)=>{e instanceof HTMLElement?t.appendChild(e):"object"==typeof e?ie(e,t):e&&L(t,e)},ie=(e,t)=>{e.jquery?le(t,e):L(t,e.toString())},le=(e,t)=>{if(e.textContent="",0 in t)for(let o=0;o in t;o++)e.appendChild(t[o].cloneNode(!0));else e.appendChild(t.cloneNode(!0))},ce=(()=>{if(oe())return!1;const e=document.createElement("div"),t={WebkitAnimation:"webkitAnimationEnd",animation:"animationend"};for(const o in t)if(Object.prototype.hasOwnProperty.call(t,o)&&void 0!==e.style[o])return t[o];return!1})(),ue=(e,t)=>{const n=P(),a=T();t.showConfirmButton||t.showDenyButton||t.showCancelButton?Y(n):z(n),j(n,t,"actions"),function(e,t,n){const a=E(),r=x(),s=S();de(a,"confirm",n),de(r,"deny",n),de(s,"cancel",n),function(e,t,n,a){a.buttonsStyling?(U([e,t,n],o.styled),a.confirmButtonColor&&(e.style.backgroundColor=a.confirmButtonColor,U(e,o["default-outline"])),a.denyButtonColor&&(t.style.backgroundColor=a.denyButtonColor,U(t,o["default-outline"])),a.cancelButtonColor&&(n.style.backgroundColor=a.cancelButtonColor,U(n,o["default-outline"]))):$([e,t,n],o.styled)}(a,r,s,n),n.reverseButtons&&(n.toast?(e.insertBefore(s,a),e.insertBefore(r,a)):(e.insertBefore(s,t),e.insertBefore(r,t),e.insertBefore(a,t)))}(n,a,t),L(a,t.loaderHtml),j(a,t,"loader")};function de(e,t,n){K(e,n[`show${r(t)}Button`],"inline-block"),L(e,n[`${t}ButtonText`]),e.setAttribute("aria-label",n[`${t}ButtonAriaLabel`]),e.className=o[t],j(e,n,`${t}Button`),U(e,n[`${t}ButtonClass`])}const pe=(e,t)=>{const n=f();n&&(function(e,t){"string"==typeof t?e.style.background=t:t||U([document.documentElement,document.body],o["no-backdrop"])}(n,t.backdrop),function(e,t){t in o?U(e,o[t]):(s('The "position" parameter is not valid, defaulting to "center"'),U(e,o.center))}(n,t.position),function(e,t){if(t&&"string"==typeof t){const n=`grow-${t}`;n in o&&U(e,o[n])}}(n,t.grow),j(n,t,"container"))};const he=["input","file","range","select","radio","checkbox","textarea"],fe=e=>{if(!ve[e.input])return void i(`Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "${e.input}"`);const t=_e(e.input),o=ve[e.input](t,e);Y(t),setTimeout((()=>{F(o)}))},me=(e,t)=>{const o=q(y(),e);if(o){(e=>{for(let t=0;t{const t=_e(e.input);"object"==typeof e.customClass&&U(t,e.customClass.input)},ye=(e,t)=>{e.placeholder&&!t.inputPlaceholder||(e.placeholder=t.inputPlaceholder)},we=(e,t,n)=>{if(n.inputLabel){e.id=o.input;const a=document.createElement("label"),r=o["input-label"];a.setAttribute("for",e.id),a.className=r,"object"==typeof n.customClass&&U(a,n.customClass.inputLabel),a.innerText=n.inputLabel,t.insertAdjacentElement("beforebegin",a)}},_e=e=>W(y(),o[e]||o.input),be=(e,t)=>{["string","number"].includes(typeof t)?e.value=`${t}`:h(t)||s(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof t}"`)},ve={};ve.text=ve.email=ve.password=ve.number=ve.tel=ve.url=(e,t)=>(be(e,t.inputValue),we(e,e,t),ye(e,t),e.type=t.input,e),ve.file=(e,t)=>(we(e,e,t),ye(e,t),e),ve.range=(e,t)=>{const o=e.querySelector("input"),n=e.querySelector("output");return be(o,t.inputValue),o.type=t.input,be(n,t.inputValue),we(o,e,t),e},ve.select=(e,t)=>{if(e.textContent="",t.inputPlaceholder){const o=document.createElement("option");L(o,t.inputPlaceholder),o.value="",o.disabled=!0,o.selected=!0,e.appendChild(o)}return we(e,e,t),e},ve.radio=e=>(e.textContent="",e),ve.checkbox=(e,t)=>{const n=q(y(),"checkbox");n.value="1",n.id=o.checkbox,n.checked=Boolean(t.inputValue);const a=e.querySelector("span");return L(a,t.inputPlaceholder),n},ve.textarea=(e,t)=>{be(e,t.inputValue),ye(e,t),we(e,e,t);return setTimeout((()=>{if("MutationObserver"in window){const t=parseInt(window.getComputedStyle(y()).width);new MutationObserver((()=>{const o=e.offsetWidth+(n=e,parseInt(window.getComputedStyle(n).marginLeft)+parseInt(window.getComputedStyle(n).marginRight));var n;y().style.width=o>t?`${o}px`:null})).observe(e,{attributes:!0,attributeFilter:["style"]})}})),e};const ke=(t,n)=>{const a=b();j(a,n,"htmlContainer"),n.html?(se(n.html,a),Y(a,"block")):n.text?(a.textContent=n.text,Y(a,"block")):z(a),((t,n)=>{const a=y(),r=e.innerParams.get(t),s=!r||n.input!==r.input;he.forEach((e=>{const t=W(a,o[e]);me(e,n.inputAttributes),t.className=o[e],s&&z(t)})),n.input&&(s&&fe(n),ge(n))})(t,n)},Ce=(e,t)=>{for(const o in n)t.icon!==o&&$(e,n[o]);U(e,n[t.icon]),Te(e,t),Ee(),j(e,t,"icon")},Ee=()=>{const e=y(),t=window.getComputedStyle(e).getPropertyValue("background-color"),o=e.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");for(let e=0;e{let o,n=e.innerHTML;t.iconHtml?o=Se(t.iconHtml):"success"===t.icon?(o='\n
                                      \n \n
                                      \n
                                      \n',n=n.replace(/ style=".*?"/g,"")):o="error"===t.icon?'\n \n \n \n \n':Se({question:"?",warning:"!",info:"i"}[t.icon]),n.trim()!==o.trim()&&L(e,o)},Te=(e,t)=>{if(t.iconColor){e.style.color=t.iconColor,e.style.borderColor=t.iconColor;for(const o of[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"])V(e,o,"backgroundColor",t.iconColor);V(e,".swal2-success-ring","borderColor",t.iconColor)}},Se=e=>`
                                      ${e}
                                      `,Pe=(e,t)=>{e.className=`${o.popup} ${J(e)?t.showClass.popup:""}`,t.toast?(U([document.documentElement,document.body],o["toast-shown"]),U(e,o.toast)):U(e,o.modal),j(e,t,"popup"),"string"==typeof t.customClass&&U(e,t.customClass),t.icon&&U(e,o[`icon-${t.icon}`])},Ae=e=>{const t=document.createElement("li");return U(t,o["progress-step"]),L(t,e),t},De=e=>{const t=document.createElement("li");return U(t,o["progress-step-line"]),e.progressStepsDistance&&G(t,"width",e.progressStepsDistance),t},Be=(t,a)=>{((e,t)=>{const o=f(),n=y();t.toast?(G(o,"width",t.width),n.style.width="100%",n.insertBefore(T(),w())):G(n,"width",t.width),G(n,"padding",t.padding),t.color&&(n.style.color=t.color),t.background&&(n.style.background=t.background),z(C()),Pe(n,t)})(0,a),pe(0,a),((e,t)=>{const n=k();t.progressSteps&&0!==t.progressSteps.length?(Y(n),n.textContent="",t.currentProgressStep>=t.progressSteps.length&&s("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),t.progressSteps.forEach(((e,a)=>{const r=Ae(e);if(n.appendChild(r),a===t.currentProgressStep&&U(r,o["active-progress-step"]),a!==t.progressSteps.length-1){const e=De(t);n.appendChild(e)}}))):z(n)})(0,a),((t,o)=>{const a=e.innerParams.get(t),r=w();if(a&&o.icon===a.icon)return xe(r,o),void Ce(r,o);if(o.icon||o.iconHtml){if(o.icon&&-1===Object.keys(n).indexOf(o.icon))return i(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${o.icon}"`),void z(r);Y(r),xe(r,o),Ce(r,o),U(r,o.showClass.icon)}else z(r)})(t,a),((e,t)=>{const n=v();t.imageUrl?(Y(n,""),n.setAttribute("src",t.imageUrl),n.setAttribute("alt",t.imageAlt),G(n,"width",t.imageWidth),G(n,"height",t.imageHeight),n.className=o.image,j(n,t,"image")):z(n)})(0,a),((e,t)=>{const o=_();K(o,t.title||t.titleText,"block"),t.title&&se(t.title,o),t.titleText&&(o.innerText=t.titleText),j(o,t,"title")})(0,a),((e,t)=>{const o=B();L(o,t.closeButtonHtml),j(o,t,"closeButton"),K(o,t.showCloseButton),o.setAttribute("aria-label",t.closeButtonAriaLabel)})(0,a),ke(t,a),ue(0,a),((e,t)=>{const o=A();K(o,t.footer),t.footer&&se(t.footer,o),j(o,t,"footer")})(0,a),"function"==typeof a.didRender&&a.didRender(y())};function Ie(){const t=e.innerParams.get(this);if(!t)return;const n=e.domCache.get(this);z(n.loader),M()?t.icon&&Y(w()):Oe(n),$([n.popup,n.actions],o.loading),n.popup.removeAttribute("aria-busy"),n.popup.removeAttribute("data-loading"),n.confirmButton.disabled=!1,n.denyButton.disabled=!1,n.cancelButton.disabled=!1}const Oe=e=>{const t=e.popup.getElementsByClassName(e.loader.getAttribute("data-button-to-replace"));t.length?Y(t[0],"inline-block"):!J(E())&&!J(x())&&!J(S())&&z(e.actions)};const Me=()=>E()&&E().click(),Re=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),Le=e=>{e.keydownTarget&&e.keydownHandlerAdded&&(e.keydownTarget.removeEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!1)},Ne=(e,t,o)=>{const n=I();if(n.length)return(t+=o)===n.length?t=0:-1===t&&(t=n.length-1),void n[t].focus();y().focus()},je=["ArrowRight","ArrowDown"],qe=["ArrowLeft","ArrowUp"],Fe=(t,o,n)=>{const a=e.innerParams.get(t);a&&(o.isComposing||229===o.keyCode||(a.stopKeydownPropagation&&o.stopPropagation(),"Enter"===o.key?He(t,o,a):"Tab"===o.key?Ue(o,a):[...je,...qe].includes(o.key)?$e(o.key):"Escape"===o.key&&We(o,a,n)))},He=(e,t,o)=>{if(u(o.allowEnterKey)&&t.target&&e.getInput()&&t.target instanceof HTMLElement&&t.target.outerHTML===e.getInput().outerHTML){if(["textarea","file"].includes(o.input))return;Me(),t.preventDefault()}},Ue=(e,t)=>{const o=e.target,n=I();let a=-1;for(let e=0;e{const t=E(),o=x(),n=S();if(document.activeElement instanceof HTMLElement&&![t,o,n].includes(document.activeElement))return;const a=je.includes(e)?"nextElementSibling":"previousElementSibling";let r=document.activeElement;for(let e=0;e{u(t.allowEscapeKey)&&(e.preventDefault(),o(Re.esc))};var Ge={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};const Ye=()=>{Array.from(document.body.children).forEach((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")}))},ze=()=>{const e=navigator.userAgent,t=!!e.match(/iPad/i)||!!e.match(/iPhone/i),o=!!e.match(/WebKit/i);if(t&&o&&!e.match(/CriOS/i)){const e=44;y().scrollHeight>window.innerHeight-e&&(f().style.paddingBottom=`${e}px`)}},Ve=()=>{const e=f();let t;e.ontouchstart=e=>{t=Ke(e)},e.ontouchmove=e=>{t&&(e.preventDefault(),e.stopPropagation())}},Ke=e=>{const t=e.target,o=f();return!(Je(e)||Ze(e)||t!==o&&(Z(o)||!(t instanceof HTMLElement)||"INPUT"===t.tagName||"TEXTAREA"===t.tagName||Z(b())&&b().contains(t)))},Je=e=>e.touches&&e.touches.length&&"stylus"===e.touches[0].touchType,Ze=e=>e.touches&&e.touches.length>1,Xe=()=>{if(N(document.body,o.iosfix)){const e=parseInt(document.body.style.top,10);$(document.body,o.iosfix),document.body.style.top="",document.body.scrollTop=-1*e}},Qe=()=>{null===R.previousBodyPadding&&document.body.scrollHeight>window.innerHeight&&(R.previousBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${R.previousBodyPadding+(()=>{const e=document.createElement("div");e.className=o["scrollbar-measure"],document.body.appendChild(e);const t=e.getBoundingClientRect().width-e.clientWidth;return document.body.removeChild(e),t})()}px`)},et=()=>{null!==R.previousBodyPadding&&(document.body.style.paddingRight=`${R.previousBodyPadding}px`,R.previousBodyPadding=null)};function tt(e,t,n,a){M()?lt(e,a):(te(n).then((()=>lt(e,a))),Le(ee)),/^((?!chrome|android).)*safari/i.test(navigator.userAgent)?(t.setAttribute("style","display:none !important"),t.removeAttribute("class"),t.innerHTML=""):t.remove(),O()&&(et(),Xe(),Ye()),$([document.documentElement,document.body],[o.shown,o["height-auto"],o["no-backdrop"],o["toast-shown"]])}function ot(e){e=rt(e);const t=Ge.swalPromiseResolve.get(this),o=nt(this);this.isAwaitingPromise()?e.isDismissed||(at(this),t(e)):o&&t(e)}const nt=t=>{const o=y();if(!o)return!1;const n=e.innerParams.get(t);if(!n||N(o,n.hideClass.popup))return!1;$(o,n.showClass.popup),U(o,n.hideClass.popup);const a=f();return $(a,n.showClass.backdrop),U(a,n.hideClass.backdrop),st(t,o,n),!0};const at=t=>{t.isAwaitingPromise()&&(e.awaitingPromise.delete(t),e.innerParams.get(t)||t._destroy())},rt=e=>void 0===e?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},e),st=(e,t,o)=>{const n=f(),a=ce&&X(t);"function"==typeof o.willClose&&o.willClose(t),a?it(e,t,n,o.returnFocus,o.didClose):tt(e,n,o.returnFocus,o.didClose)},it=(e,t,o,n,a)=>{ee.swalCloseEventFinishedCallback=tt.bind(null,e,o,n,a),t.addEventListener(ce,(function(e){e.target===t&&(ee.swalCloseEventFinishedCallback(),delete ee.swalCloseEventFinishedCallback)}))},lt=(e,t)=>{setTimeout((()=>{"function"==typeof t&&t.bind(e.params)(),e._destroy()}))};function ct(t,o,n){const a=e.domCache.get(t);o.forEach((e=>{a[e].disabled=n}))}function ut(e,t){if(e)if("radio"===e.type){const o=e.parentNode.parentNode.querySelectorAll("input");for(let e=0;eObject.prototype.hasOwnProperty.call(dt,e),gt=e=>-1!==pt.indexOf(e),yt=e=>ht[e],wt=e=>{mt(e)||s(`Unknown parameter "${e}"`)},_t=e=>{ft.includes(e)&&s(`The parameter "${e}" is incompatible with toasts`)},bt=e=>{yt(e)&&c(e,yt(e))};const vt=e=>{const t={};return Object.keys(e).forEach((o=>{gt(o)?t[o]=e[o]:s(`Invalid parameter to update: ${o}`)})),t};const kt=e=>{Ct(e),delete e.params,delete ee.keydownHandler,delete ee.keydownTarget,delete ee.currentInstance},Ct=t=>{t.isAwaitingPromise()?(Et(e,t),e.awaitingPromise.set(t,!0)):(Et(Ge,t),Et(e,t))},Et=(e,t)=>{for(const o in e)e[o].delete(t)};var xt=Object.freeze({__proto__:null,hideLoading:Ie,disableLoading:Ie,getInput:function(t){const o=e.innerParams.get(t||this),n=e.domCache.get(t||this);return n?q(n.popup,o.input):null},close:ot,isAwaitingPromise:function(){return!!e.awaitingPromise.get(this)},rejectPromise:function(e){const t=Ge.swalPromiseReject.get(this);at(this),t&&t(e)},handleAwaitingPromise:at,closePopup:ot,closeModal:ot,closeToast:ot,enableButtons:function(){ct(this,["confirmButton","denyButton","cancelButton"],!1)},disableButtons:function(){ct(this,["confirmButton","denyButton","cancelButton"],!0)},enableInput:function(){ut(this.getInput(),!1)},disableInput:function(){ut(this.getInput(),!0)},showValidationMessage:function(t){const n=e.domCache.get(this),a=e.innerParams.get(this);L(n.validationMessage,t),n.validationMessage.className=o["validation-message"],a.customClass&&a.customClass.validationMessage&&U(n.validationMessage,a.customClass.validationMessage),Y(n.validationMessage);const r=this.getInput();r&&(r.setAttribute("aria-invalid",!0),r.setAttribute("aria-describedby",o["validation-message"]),F(r),U(r,o.inputerror))},resetValidationMessage:function(){const t=e.domCache.get(this);t.validationMessage&&z(t.validationMessage);const n=this.getInput();n&&(n.removeAttribute("aria-invalid"),n.removeAttribute("aria-describedby"),$(n,o.inputerror))},update:function(t){const o=y(),n=e.innerParams.get(this);if(!o||N(o,n.hideClass.popup))return void s("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.");const a=vt(t),r=Object.assign({},n,a);Be(this,r),e.innerParams.set(this,r),Object.defineProperties(this,{params:{value:Object.assign({},this.params,t),writable:!1,enumerable:!0}})},_destroy:function(){const t=e.domCache.get(this),o=e.innerParams.get(this);o?(t.popup&&ee.swalCloseEventFinishedCallback&&(ee.swalCloseEventFinishedCallback(),delete ee.swalCloseEventFinishedCallback),"function"==typeof o.didDestroy&&o.didDestroy(),kt(this)):Ct(this)}});const Tt=e=>{let t=y();t||new Ao,t=y();const o=T();M()?z(w()):St(t,e),Y(o),t.setAttribute("data-loading","true"),t.setAttribute("aria-busy","true"),t.focus()},St=(e,t)=>{const n=P(),a=T();!t&&J(E())&&(t=E()),Y(n),t&&(z(t),a.setAttribute("data-button-to-replace",t.className)),a.parentNode.insertBefore(a,t),U([e,n],o.loading)},Pt=e=>e.checked?1:0,At=e=>e.checked?e.value:null,Dt=e=>e.files.length?null!==e.getAttribute("multiple")?e.files:e.files[0]:null,Bt=(e,t)=>{const o=y(),n=e=>{Ot[t.input](o,Mt(e),t)};d(t.inputOptions)||h(t.inputOptions)?(Tt(E()),p(t.inputOptions).then((t=>{e.hideLoading(),n(t)}))):"object"==typeof t.inputOptions?n(t.inputOptions):i("Unexpected type of inputOptions! Expected object, Map or Promise, got "+typeof t.inputOptions)},It=(e,t)=>{const o=e.getInput();z(o),p(t.inputValue).then((n=>{o.value="number"===t.input?`${parseFloat(n)||0}`:`${n}`,Y(o),o.focus(),e.hideLoading()})).catch((t=>{i(`Error in inputValue promise: ${t}`),o.value="",Y(o),o.focus(),e.hideLoading()}))},Ot={select:(e,t,n)=>{const a=W(e,o.select),r=(e,t,o)=>{const a=document.createElement("option");a.value=o,L(a,t),a.selected=Rt(o,n.inputValue),e.appendChild(a)};t.forEach((e=>{const t=e[0],o=e[1];if(Array.isArray(o)){const e=document.createElement("optgroup");e.label=t,e.disabled=!1,a.appendChild(e),o.forEach((t=>r(e,t[1],t[0])))}else r(a,o,t)})),a.focus()},radio:(e,t,n)=>{const a=W(e,o.radio);t.forEach((e=>{const t=e[0],r=e[1],s=document.createElement("input"),i=document.createElement("label");s.type="radio",s.name=o.radio,s.value=t,Rt(t,n.inputValue)&&(s.checked=!0);const l=document.createElement("span");L(l,r),l.className=o.label,i.appendChild(s),i.appendChild(l),a.appendChild(i)}));const r=a.querySelectorAll("input");r.length&&r[0].focus()}},Mt=e=>{const t=[];return"undefined"!=typeof Map&&e instanceof Map?e.forEach(((e,o)=>{let n=e;"object"==typeof n&&(n=Mt(n)),t.push([o,n])})):Object.keys(e).forEach((o=>{let n=e[o];"object"==typeof n&&(n=Mt(n)),t.push([o,n])})),t},Rt=(e,t)=>t&&t.toString()===e.toString(),Lt=(t,o)=>{const n=e.innerParams.get(t);if(!n.input)return void i(`The "input" parameter is needed to be set when using returnInputValueOn${r(o)}`);const a=((e,t)=>{const o=e.getInput();if(!o)return null;switch(t.input){case"checkbox":return Pt(o);case"radio":return At(o);case"file":return Dt(o);default:return t.inputAutoTrim?o.value.trim():o.value}})(t,n);n.inputValidator?Nt(t,a,o):t.getInput().checkValidity()?"deny"===o?jt(t,a):Ht(t,a):(t.enableButtons(),t.showValidationMessage(n.validationMessage))},Nt=(t,o,n)=>{const a=e.innerParams.get(t);t.disableInput(),Promise.resolve().then((()=>p(a.inputValidator(o,a.validationMessage)))).then((e=>{t.enableButtons(),t.enableInput(),e?t.showValidationMessage(e):"deny"===n?jt(t,o):Ht(t,o)}))},jt=(t,o)=>{const n=e.innerParams.get(t||void 0);n.showLoaderOnDeny&&Tt(x()),n.preDeny?(e.awaitingPromise.set(t||void 0,!0),Promise.resolve().then((()=>p(n.preDeny(o,n.validationMessage)))).then((e=>{!1===e?(t.hideLoading(),at(t)):t.close({isDenied:!0,value:void 0===e?o:e})})).catch((e=>Ft(t||void 0,e)))):t.close({isDenied:!0,value:o})},qt=(e,t)=>{e.close({isConfirmed:!0,value:t})},Ft=(e,t)=>{e.rejectPromise(t)},Ht=(t,o)=>{const n=e.innerParams.get(t||void 0);n.showLoaderOnConfirm&&Tt(),n.preConfirm?(t.resetValidationMessage(),e.awaitingPromise.set(t||void 0,!0),Promise.resolve().then((()=>p(n.preConfirm(o,n.validationMessage)))).then((e=>{J(C())||!1===e?(t.hideLoading(),at(t)):qt(t,void 0===e?o:e)})).catch((e=>Ft(t||void 0,e)))):qt(t,o)},Ut=(t,o,n)=>{o.popup.onclick=()=>{const o=e.innerParams.get(t);o&&($t(o)||o.timer||o.input)||n(Re.close)}},$t=e=>e.showConfirmButton||e.showDenyButton||e.showCancelButton||e.showCloseButton;let Wt=!1;const Gt=e=>{e.popup.onmousedown=()=>{e.container.onmouseup=function(t){e.container.onmouseup=void 0,t.target===e.container&&(Wt=!0)}}},Yt=e=>{e.container.onmousedown=()=>{e.popup.onmouseup=function(t){e.popup.onmouseup=void 0,(t.target===e.popup||e.popup.contains(t.target))&&(Wt=!0)}}},zt=(t,o,n)=>{o.container.onclick=a=>{const r=e.innerParams.get(t);Wt?Wt=!1:a.target===o.container&&u(r.allowOutsideClick)&&n(Re.backdrop)}},Vt=e=>e instanceof Element||(e=>"object"==typeof e&&e.jquery)(e);const Kt=()=>{if(ee.timeout)return(()=>{const e=D(),t=parseInt(window.getComputedStyle(e).width);e.style.removeProperty("transition"),e.style.width="100%";const o=t/parseInt(window.getComputedStyle(e).width)*100;e.style.removeProperty("transition"),e.style.width=`${o}%`})(),ee.timeout.stop()},Jt=()=>{if(ee.timeout){const e=ee.timeout.start();return Q(e),e}};let Zt=!1;const Xt={};const Qt=e=>{for(let t=e.target;t&&t!==document;t=t.parentNode)for(const e in Xt){const o=t.getAttribute(e);if(o)return void Xt[e].fire({template:o})}};var eo=Object.freeze({__proto__:null,isValidParameter:mt,isUpdatableParameter:gt,isDeprecatedParameter:yt,argsToParams:e=>{const t={};return"object"!=typeof e[0]||Vt(e[0])?["title","html","icon"].forEach(((o,n)=>{const a=e[n];"string"==typeof a||Vt(a)?t[o]=a:void 0!==a&&i(`Unexpected type of ${o}! Expected "string" or "Element", got ${typeof a}`)})):Object.assign(t,e[0]),t},getContainer:f,getPopup:y,getTitle:_,getHtmlContainer:b,getImage:v,getIcon:w,getIconContent:()=>g(o["icon-content"]),getInputLabel:()=>g(o["input-label"]),getCloseButton:B,getActions:P,getConfirmButton:E,getDenyButton:x,getCancelButton:S,getLoader:T,getFooter:A,getTimerProgressBar:D,getFocusableElements:I,getValidationMessage:C,getProgressSteps:k,isLoading:()=>y().hasAttribute("data-loading"),isVisible:()=>J(y()),clickConfirm:Me,clickDeny:()=>x()&&x().click(),clickCancel:()=>S()&&S().click(),fire:function(){for(var e=arguments.length,t=new Array(e),o=0;oee.timeout&&ee.timeout.getTimerLeft(),stopTimer:Kt,resumeTimer:Jt,toggleTimer:()=>{const e=ee.timeout;return e&&(e.running?Kt():Jt())},increaseTimer:e=>{if(ee.timeout){const t=ee.timeout.increase(e);return Q(t,!0),t}},isTimerRunning:()=>ee.timeout&&ee.timeout.isRunning(),bindClickHandler:function(){Xt[arguments.length>0&&void 0!==arguments[0]?arguments[0]:"data-swal-template"]=this,Zt||(document.body.addEventListener("click",Qt),Zt=!0)}});class to{constructor(e,t){this.callback=e,this.remaining=t,this.running=!1,this.start()}start(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}stop(){return this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=(new Date).getTime()-this.started.getTime()),this.remaining}increase(e){const t=this.running;return t&&this.stop(),this.remaining+=e,t&&this.start(),this.remaining}getTimerLeft(){return this.running&&(this.stop(),this.start()),this.remaining}isRunning(){return this.running}}const oo=["swal-title","swal-html","swal-footer"],no=e=>{const t={};return Array.from(e.querySelectorAll("swal-param")).forEach((e=>{po(e,["name","value"]);const o=e.getAttribute("name"),n=e.getAttribute("value");t[o]="boolean"==typeof dt[o]?"false"!==n:"object"==typeof dt[o]?JSON.parse(n):n})),t},ao=e=>{const t={};return Array.from(e.querySelectorAll("swal-function-param")).forEach((e=>{const o=e.getAttribute("name"),n=e.getAttribute("value");t[o]=new Function(`return ${n}`)()})),t},ro=e=>{const t={};return Array.from(e.querySelectorAll("swal-button")).forEach((e=>{po(e,["type","color","aria-label"]);const o=e.getAttribute("type");t[`${o}ButtonText`]=e.innerHTML,t[`show${r(o)}Button`]=!0,e.hasAttribute("color")&&(t[`${o}ButtonColor`]=e.getAttribute("color")),e.hasAttribute("aria-label")&&(t[`${o}ButtonAriaLabel`]=e.getAttribute("aria-label"))})),t},so=e=>{const t={},o=e.querySelector("swal-image");return o&&(po(o,["src","width","height","alt"]),o.hasAttribute("src")&&(t.imageUrl=o.getAttribute("src")),o.hasAttribute("width")&&(t.imageWidth=o.getAttribute("width")),o.hasAttribute("height")&&(t.imageHeight=o.getAttribute("height")),o.hasAttribute("alt")&&(t.imageAlt=o.getAttribute("alt"))),t},io=e=>{const t={},o=e.querySelector("swal-icon");return o&&(po(o,["type","color"]),o.hasAttribute("type")&&(t.icon=o.getAttribute("type")),o.hasAttribute("color")&&(t.iconColor=o.getAttribute("color")),t.iconHtml=o.innerHTML),t},lo=e=>{const t={},o=e.querySelector("swal-input");o&&(po(o,["type","label","placeholder","value"]),t.input=o.getAttribute("type")||"text",o.hasAttribute("label")&&(t.inputLabel=o.getAttribute("label")),o.hasAttribute("placeholder")&&(t.inputPlaceholder=o.getAttribute("placeholder")),o.hasAttribute("value")&&(t.inputValue=o.getAttribute("value")));const n=Array.from(e.querySelectorAll("swal-input-option"));return n.length&&(t.inputOptions={},n.forEach((e=>{po(e,["value"]);const o=e.getAttribute("value"),n=e.innerHTML;t.inputOptions[o]=n}))),t},co=(e,t)=>{const o={};for(const n in t){const a=t[n],r=e.querySelector(a);r&&(po(r,[]),o[a.replace(/^swal-/,"")]=r.innerHTML.trim())}return o},uo=e=>{const t=oo.concat(["swal-param","swal-function-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Array.from(e.children).forEach((e=>{const o=e.tagName.toLowerCase();t.includes(o)||s(`Unrecognized element <${o}>`)}))},po=(e,t)=>{Array.from(e.attributes).forEach((o=>{-1===t.indexOf(o.name)&&s([`Unrecognized attribute "${o.name}" on <${e.tagName.toLowerCase()}>.`,t.length?`Allowed attributes are: ${t.join(", ")}`:"To set the value, use HTML within the element."])}))},ho=e=>{const t=f(),n=y();"function"==typeof e.willOpen&&e.willOpen(n);const a=window.getComputedStyle(document.body).overflowY;yo(t,n,e),setTimeout((()=>{mo(t,n)}),10),O()&&(go(t,e.scrollbarPadding,a),Array.from(document.body.children).forEach((e=>{e===f()||e.contains(f())||(e.hasAttribute("aria-hidden")&&e.setAttribute("data-previous-aria-hidden",e.getAttribute("aria-hidden")),e.setAttribute("aria-hidden","true"))}))),M()||ee.previousActiveElement||(ee.previousActiveElement=document.activeElement),"function"==typeof e.didOpen&&setTimeout((()=>e.didOpen(n))),$(t,o["no-transition"])},fo=e=>{const t=y();if(e.target!==t)return;const o=f();t.removeEventListener(ce,fo),o.style.overflowY="auto"},mo=(e,t)=>{ce&&X(t)?(e.style.overflowY="hidden",t.addEventListener(ce,fo)):e.style.overflowY="auto"},go=(e,t,n)=>{(()=>{if((/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)&&!N(document.body,o.iosfix)){const e=document.body.scrollTop;document.body.style.top=-1*e+"px",U(document.body,o.iosfix),Ve(),ze()}})(),t&&"hidden"!==n&&Qe(),setTimeout((()=>{e.scrollTop=0}))},yo=(e,t,n)=>{U(e,n.showClass.backdrop),t.style.setProperty("opacity","0","important"),Y(t,"grid"),setTimeout((()=>{U(t,n.showClass.popup),t.style.removeProperty("opacity")}),10),U([document.documentElement,document.body],o.shown),n.heightAuto&&n.backdrop&&!n.toast&&U([document.documentElement,document.body],o["height-auto"])};var wo={email:(e,t)=>/^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]{2,24}$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid email address"),url:(e,t)=>/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid URL")};function _o(e){(function(e){e.inputValidator||Object.keys(wo).forEach((t=>{e.input===t&&(e.inputValidator=wo[t])}))})(e),e.showLoaderOnConfirm&&!e.preConfirm&&s("showLoaderOnConfirm is set to true, but preConfirm is not defined.\nshowLoaderOnConfirm should be used together with preConfirm, see usage example:\nhttps://sweetalert2.github.io/#ajax-request"),function(e){(!e.target||"string"==typeof e.target&&!document.querySelector(e.target)||"string"!=typeof e.target&&!e.target.appendChild)&&(s('Target parameter is not valid, defaulting to "body"'),e.target="body")}(e),"string"==typeof e.title&&(e.title=e.title.split("\n").join("
                                      ")),re(e)}let bo;class vo{constructor(){if("undefined"==typeof window)return;bo=this;for(var t=arguments.length,o=new Array(t),n=0;n1&&void 0!==arguments[1]?arguments[1]:{};(e=>{!1===e.backdrop&&e.allowOutsideClick&&s('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');for(const t in e)wt(t),e.toast&&_t(t),bt(t)})(Object.assign({},o,t)),ee.currentInstance&&(ee.currentInstance._destroy(),O()&&Ye()),ee.currentInstance=bo;const n=Co(t,o);_o(n),Object.freeze(n),ee.timeout&&(ee.timeout.stop(),delete ee.timeout),clearTimeout(ee.restoreFocusTimeout);const a=Eo(bo);return Be(bo,n),e.innerParams.set(bo,n),ko(bo,a,n)}then(t){return e.promise.get(this).then(t)}finally(t){return e.promise.get(this).finally(t)}}const ko=(t,o,n)=>new Promise(((a,r)=>{const s=e=>{t.close({isDismissed:!0,dismiss:e})};Ge.swalPromiseResolve.set(t,a),Ge.swalPromiseReject.set(t,r),o.confirmButton.onclick=()=>{(t=>{const o=e.innerParams.get(t);t.disableButtons(),o.input?Lt(t,"confirm"):Ht(t,!0)})(t)},o.denyButton.onclick=()=>{(t=>{const o=e.innerParams.get(t);t.disableButtons(),o.returnInputValueOnDeny?Lt(t,"deny"):jt(t,!1)})(t)},o.cancelButton.onclick=()=>{((e,t)=>{e.disableButtons(),t(Re.cancel)})(t,s)},o.closeButton.onclick=()=>{s(Re.close)},((t,o,n)=>{e.innerParams.get(t).toast?Ut(t,o,n):(Gt(o),Yt(o),zt(t,o,n))})(t,o,s),((e,t,o,n)=>{Le(t),o.toast||(t.keydownHandler=t=>Fe(e,t,n),t.keydownTarget=o.keydownListenerCapture?window:y(),t.keydownListenerCapture=o.keydownListenerCapture,t.keydownTarget.addEventListener("keydown",t.keydownHandler,{capture:t.keydownListenerCapture}),t.keydownHandlerAdded=!0)})(t,ee,n,s),((e,t)=>{"select"===t.input||"radio"===t.input?Bt(e,t):["text","email","number","tel","textarea"].includes(t.input)&&(d(t.inputValue)||h(t.inputValue))&&(Tt(E()),It(e,t))})(t,n),ho(n),xo(ee,n,s),To(o,n),setTimeout((()=>{o.container.scrollTop=0}))})),Co=(e,t)=>{const o=(e=>{const t="string"==typeof e.template?document.querySelector(e.template):e.template;if(!t)return{};const o=t.content;return uo(o),Object.assign(no(o),ao(o),ro(o),so(o),io(o),lo(o),co(o,oo))})(e),n=Object.assign({},dt,t,o,e);return n.showClass=Object.assign({},dt.showClass,n.showClass),n.hideClass=Object.assign({},dt.hideClass,n.hideClass),n},Eo=t=>{const o={popup:y(),container:f(),actions:P(),confirmButton:E(),denyButton:x(),cancelButton:S(),loader:T(),closeButton:B(),validationMessage:C(),progressSteps:k()};return e.domCache.set(t,o),o},xo=(e,t,o)=>{const n=D();z(n),t.timer&&(e.timeout=new to((()=>{o("timer"),delete e.timeout}),t.timer),t.timerProgressBar&&(Y(n),j(n,t,"timerProgressBar"),setTimeout((()=>{e.timeout&&e.timeout.running&&Q(t.timer)}))))},To=(e,t)=>{t.toast||(u(t.allowEnterKey)?So(e,t)||Ne(0,-1,1):Po())},So=(e,t)=>t.focusDeny&&J(e.denyButton)?(e.denyButton.focus(),!0):t.focusCancel&&J(e.cancelButton)?(e.cancelButton.focus(),!0):!(!t.focusConfirm||!J(e.confirmButton)||(e.confirmButton.focus(),0)),Po=()=>{document.activeElement instanceof HTMLElement&&"function"==typeof document.activeElement.blur&&document.activeElement.blur()};Object.assign(vo.prototype,xt),Object.assign(vo,eo),Object.keys(xt).forEach((e=>{vo[e]=function(){if(bo)return bo[e](...arguments)}})),vo.DismissReason=Re,vo.version="11.6.15";const Ao=vo;return Ao.default=Ao,Ao}(),void 0!==this&&this.Sweetalert2&&(this.swal=this.sweetAlert=this.Swal=this.SweetAlert=this.Sweetalert2),"undefined"!=typeof document&&function(e,t){var o=e.createElement("style");if(e.getElementsByTagName("head")[0].appendChild(o),o.styleSheet)o.styleSheet.disabled||(o.styleSheet.cssText=t);else try{o.innerHTML=t}catch(e){o.innerText=t}}(document,'.swal2-popup.swal2-toast{box-sizing:border-box;grid-column:1/4 !important;grid-row:1/4 !important;grid-template-columns:min-content auto min-content;padding:1em;overflow-y:hidden;background:#fff;box-shadow:0 0 1px rgba(0,0,0,.075),0 1px 2px rgba(0,0,0,.075),1px 2px 4px rgba(0,0,0,.075),1px 3px 8px rgba(0,0,0,.075),2px 4px 16px rgba(0,0,0,.075);pointer-events:all}.swal2-popup.swal2-toast>*{grid-column:2}.swal2-popup.swal2-toast .swal2-title{margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-loading{justify-content:center}.swal2-popup.swal2-toast .swal2-input{height:2em;margin:.5em;font-size:1em}.swal2-popup.swal2-toast .swal2-validation-message{font-size:1em}.swal2-popup.swal2-toast .swal2-footer{margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-popup.swal2-toast .swal2-close{grid-column:3/3;grid-row:1/99;align-self:center;width:.8em;height:.8em;margin:0;font-size:2em}.swal2-popup.swal2-toast .swal2-html-container{margin:.5em 1em;padding:0;overflow:initial;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-html-container:empty{padding:0}.swal2-popup.swal2-toast .swal2-loader{grid-column:1;grid-row:1/99;align-self:center;width:2em;height:2em;margin:.25em}.swal2-popup.swal2-toast .swal2-icon{grid-column:1;grid-row:1/99;align-self:center;width:2em;min-width:2em;height:2em;margin:0 .5em 0 0}.swal2-popup.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:bold}.swal2-popup.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-popup.swal2-toast .swal2-actions{justify-content:flex-start;height:auto;margin:0;margin-top:.5em;padding:0 .5em}.swal2-popup.swal2-toast .swal2-styled{margin:.25em .5em;padding:.4em .6em;font-size:1em}.swal2-popup.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;transform:rotate(45deg);border-radius:50%}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.8em;left:-0.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-popup.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-toast-animate-success-line-tip .75s}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-toast-animate-success-line-long .75s}.swal2-popup.swal2-toast.swal2-show{animation:swal2-toast-show .5s}.swal2-popup.swal2-toast.swal2-hide{animation:swal2-toast-hide .1s forwards}.swal2-container{display:grid;position:fixed;z-index:1060;top:0;right:0;bottom:0;left:0;box-sizing:border-box;grid-template-areas:"top-start top top-end" "center-start center center-end" "bottom-start bottom-center bottom-end";grid-template-rows:minmax(min-content, auto) minmax(min-content, auto) minmax(min-content, auto);height:100%;padding:.625em;overflow-x:hidden;transition:background-color .1s;-webkit-overflow-scrolling:touch}.swal2-container.swal2-backdrop-show,.swal2-container.swal2-noanimation{background:rgba(0,0,0,.4)}.swal2-container.swal2-backdrop-hide{background:rgba(0,0,0,0) !important}.swal2-container.swal2-top-start,.swal2-container.swal2-center-start,.swal2-container.swal2-bottom-start{grid-template-columns:minmax(0, 1fr) auto auto}.swal2-container.swal2-top,.swal2-container.swal2-center,.swal2-container.swal2-bottom{grid-template-columns:auto minmax(0, 1fr) auto}.swal2-container.swal2-top-end,.swal2-container.swal2-center-end,.swal2-container.swal2-bottom-end{grid-template-columns:auto auto minmax(0, 1fr)}.swal2-container.swal2-top-start>.swal2-popup{align-self:start}.swal2-container.swal2-top>.swal2-popup{grid-column:2;align-self:start;justify-self:center}.swal2-container.swal2-top-end>.swal2-popup,.swal2-container.swal2-top-right>.swal2-popup{grid-column:3;align-self:start;justify-self:end}.swal2-container.swal2-center-start>.swal2-popup,.swal2-container.swal2-center-left>.swal2-popup{grid-row:2;align-self:center}.swal2-container.swal2-center>.swal2-popup{grid-column:2;grid-row:2;align-self:center;justify-self:center}.swal2-container.swal2-center-end>.swal2-popup,.swal2-container.swal2-center-right>.swal2-popup{grid-column:3;grid-row:2;align-self:center;justify-self:end}.swal2-container.swal2-bottom-start>.swal2-popup,.swal2-container.swal2-bottom-left>.swal2-popup{grid-column:1;grid-row:3;align-self:end}.swal2-container.swal2-bottom>.swal2-popup{grid-column:2;grid-row:3;justify-self:center;align-self:end}.swal2-container.swal2-bottom-end>.swal2-popup,.swal2-container.swal2-bottom-right>.swal2-popup{grid-column:3;grid-row:3;align-self:end;justify-self:end}.swal2-container.swal2-grow-row>.swal2-popup,.swal2-container.swal2-grow-fullscreen>.swal2-popup{grid-column:1/4;width:100%}.swal2-container.swal2-grow-column>.swal2-popup,.swal2-container.swal2-grow-fullscreen>.swal2-popup{grid-row:1/4;align-self:stretch}.swal2-container.swal2-no-transition{transition:none !important}.swal2-popup{display:none;position:relative;box-sizing:border-box;grid-template-columns:minmax(0, 100%);width:32em;max-width:100%;padding:0 0 1.25em;border:none;border-radius:5px;background:#fff;color:#545454;font-family:inherit;font-size:1rem}.swal2-popup:focus{outline:none}.swal2-popup.swal2-loading{overflow-y:hidden}.swal2-title{position:relative;max-width:100%;margin:0;padding:.8em 1em 0;color:inherit;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:auto;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, 0.1), rgba(0, 0, 0, 0.1))}.swal2-actions:not(.swal2-loading) .swal2-styled:active{background-image:linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2))}.swal2-loader{display:none;align-items:center;justify-content:center;width:2.2em;height:2.2em;margin:0 1.875em;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border-width:.25em;border-style:solid;border-radius:100%;border-color:#2778c4 rgba(0,0,0,0) #2778c4 rgba(0,0,0,0)}.swal2-styled{margin:.3125em;padding:.625em 1.1em;transition:box-shadow .1s;box-shadow:0 0 0 3px rgba(0,0,0,0);font-weight:500}.swal2-styled:not([disabled]){cursor:pointer}.swal2-styled.swal2-confirm{border:0;border-radius:.25em;background:initial;background-color:#7066e0;color:#fff;font-size:1em}.swal2-styled.swal2-confirm:focus{box-shadow:0 0 0 3px rgba(112,102,224,.5)}.swal2-styled.swal2-deny{border:0;border-radius:.25em;background:initial;background-color:#dc3741;color:#fff;font-size:1em}.swal2-styled.swal2-deny:focus{box-shadow:0 0 0 3px rgba(220,55,65,.5)}.swal2-styled.swal2-cancel{border:0;border-radius:.25em;background:initial;background-color:#6e7881;color:#fff;font-size:1em}.swal2-styled.swal2-cancel:focus{box-shadow:0 0 0 3px rgba(110,120,129,.5)}.swal2-styled.swal2-default-outline:focus{box-shadow:0 0 0 3px rgba(100,150,200,.5)}.swal2-styled:focus{outline:none}.swal2-styled::-moz-focus-inner{border:0}.swal2-footer{justify-content:center;margin:1em 0 0;padding:1em 1em 0;border-top:1px solid #eee;color:inherit;font-size:1em}.swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;grid-column:auto !important;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:2em auto 1em}.swal2-close{z-index:2;align-items:center;justify-content:center;width:1.2em;height:1.2em;margin-top:0;margin-right:0;margin-bottom:-1.2em;padding:0;overflow:hidden;transition:color .1s,box-shadow .1s;border:none;border-radius:5px;background:rgba(0,0,0,0);color:#ccc;font-family:serif;font-family:monospace;font-size:2.5em;cursor:pointer;justify-self:end}.swal2-close:hover{transform:none;background:rgba(0,0,0,0);color:#f27474}.swal2-close:focus{outline:none;box-shadow:inset 0 0 0 3px rgba(100,150,200,.5)}.swal2-close::-moz-focus-inner{border:0}.swal2-html-container{z-index:1;justify-content:center;margin:1em 1.6em .3em;padding:0;overflow:auto;color:inherit;font-size:1.125em;font-weight:normal;line-height:normal;text-align:center;word-wrap:break-word;word-break:break-word}.swal2-input,.swal2-file,.swal2-textarea,.swal2-select,.swal2-radio,.swal2-checkbox{margin:1em 2em 3px}.swal2-input,.swal2-file,.swal2-textarea{box-sizing:border-box;width:auto;transition:border-color .1s,box-shadow .1s;border:1px solid #d9d9d9;border-radius:.1875em;background:rgba(0,0,0,0);box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px rgba(0,0,0,0);color:inherit;font-size:1.125em}.swal2-input.swal2-inputerror,.swal2-file.swal2-inputerror,.swal2-textarea.swal2-inputerror{border-color:#f27474 !important;box-shadow:0 0 2px #f27474 !important}.swal2-input:focus,.swal2-file:focus,.swal2-textarea:focus{border:1px solid #b4dbed;outline:none;box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px rgba(100,150,200,.5)}.swal2-input::placeholder,.swal2-file::placeholder,.swal2-textarea::placeholder{color:#ccc}.swal2-range{margin:1em 2em 3px;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-file{width:75%;margin-right:auto;margin-left:auto;background:rgba(0,0,0,0);font-size:1.125em}.swal2-textarea{height:6.75em;padding:.75em}.swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:rgba(0,0,0,0);color:inherit;font-size:1.125em}.swal2-radio,.swal2-checkbox{align-items:center;justify-content:center;background:#fff;color:inherit}.swal2-radio label,.swal2-checkbox label{margin:0 .6em;font-size:1.125em}.swal2-radio input,.swal2-checkbox input{flex-shrink:0;margin:0 .4em}.swal2-input-label{display:flex;justify-content:center;margin:1em auto 0}.swal2-validation-message{align-items:center;justify-content:center;margin:1em 0 0;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:2.5em auto .6em;border:0.25em solid rgba(0,0,0,0);border-radius:50%;border-color:#000;font-family:inherit;line-height:5em;cursor:default;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{animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-error.swal2-icon-show .swal2-x-mark{animation:swal2-animate-error-x-mark .5s}.swal2-icon.swal2-warning{border-color:#facea8;color:#f8bb86}.swal2-icon.swal2-warning.swal2-icon-show{animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-warning.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .5s}.swal2-icon.swal2-info{border-color:#9de0f6;color:#3fc3ee}.swal2-icon.swal2-info.swal2-icon-show{animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-info.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .8s}.swal2-icon.swal2-question{border-color:#c9dae1;color:#87adbd}.swal2-icon.swal2-question.swal2-icon-show{animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-question.swal2-icon-show .swal2-icon-content{animation:swal2-animate-question-mark .8s}.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:-0.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:-0.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:-0.25em;left:-0.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{animation:swal2-animate-success-line-tip .75s}.swal2-icon.swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-animate-success-line-long .75s}.swal2-icon.swal2-success.swal2-icon-show .swal2-success-circular-line-right{animation:swal2-rotate-success-circular-line 4.25s ease-in}.swal2-progress-steps{flex-wrap:wrap;align-items:center;max-width:100%;margin:1.25em auto;padding:0;background:rgba(0,0,0,0);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:rgba(0,0,0,0)}.swal2-show{animation:swal2-show .3s}.swal2-hide{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{margin-right:initial;margin-left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}@keyframes swal2-toast-show{0%{transform:translateY(-0.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(0.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0deg)}}@keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@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:-0.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-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-show{0%{transform:scale(0.7)}45%{transform:scale(1.05)}80%{transform:scale(0.95)}100%{transform:scale(1)}}@keyframes swal2-hide{0%{transform:scale(1);opacity:1}100%{transform:scale(0.5);opacity:0}}@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:-0.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-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-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(0.4);opacity:0}50%{margin-top:1.625em;transform:scale(0.4);opacity:0}80%{margin-top:-0.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0deg);opacity:1}}@keyframes swal2-rotate-loading{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}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{background-color:rgba(0,0,0,0) !important;pointer-events:none}body.swal2-no-backdrop .swal2-container .swal2-popup{pointer-events:all}body.swal2-no-backdrop .swal2-container .swal2-modal{box-shadow:0 0 10px rgba(0,0,0,.4)}@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{box-sizing:border-box;width:360px;max-width:100%;background-color:rgba(0,0,0,0);pointer-events:none}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-start,body.swal2-toast-shown .swal2-container.swal2-top-left{top:0;right:auto;bottom:auto;left:0}body.swal2-toast-shown .swal2-container.swal2-center-start,body.swal2-toast-shown .swal2-container.swal2-center-left{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-start,body.swal2-toast-shown .swal2-container.swal2-bottom-left{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}')},8077:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hasCORS=void 0;let o=!1;try{o="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(e){}t.hasCORS=o},4120:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decode=t.encode=void 0,t.encode=function(e){let t="";for(let o in e)e.hasOwnProperty(o)&&(t.length&&(t+="&"),t+=encodeURIComponent(o)+"="+encodeURIComponent(e[o]));return t},t.decode=function(e){let t={},o=e.split("&");for(let e=0,n=o.length;e{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parse=void 0;const o=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,n=["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=o.exec(e||""),i={},l=14;for(;l--;)i[n[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 o=t.replace(/\/{2,9}/g,"/").split("/");return"/"!=t.slice(0,1)&&0!==t.length||o.splice(0,1),"/"==t.slice(-1)&&o.splice(o.length-1,1),o}(0,i.path),i.queryKey=function(e,t){const o={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,(function(e,t,n){t&&(o[t]=n)})),o}(0,i.query),i}},7174:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.yeast=t.decode=t.encode=void 0;const o="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),n=64,a={};let r,s=0,i=0;function l(e){let t="";do{t=o[e%n]+t,e=Math.floor(e/n)}while(e>0);return t}for(t.encode=l,t.decode=function(e){let t=0;for(i=0;i{"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")()},4364:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nextTick=t.parse=t.installTimerFunctions=t.transports=t.Transport=t.protocol=t.Socket=void 0;const n=o(147);Object.defineProperty(t,"Socket",{enumerable:!0,get:function(){return n.Socket}}),t.protocol=n.Socket.protocol;var a=o(3635);Object.defineProperty(t,"Transport",{enumerable:!0,get:function(){return a.Transport}});var r=o(4366);Object.defineProperty(t,"transports",{enumerable:!0,get:function(){return r.transports}});var s=o(4319);Object.defineProperty(t,"installTimerFunctions",{enumerable:!0,get:function(){return s.installTimerFunctions}});var i=o(1175);Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return i.parse}});var l=o(393);Object.defineProperty(t,"nextTick",{enumerable:!0,get:function(){return l.nextTick}})},147:function(e,t,o){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Socket=void 0;const a=o(4366),r=o(4319),s=o(4120),i=o(1175),l=n(o(7820)),c=o(3555),u=o(1247),d=(0,l.default)("engine.io-client:socket");class p extends c.Emitter{constructor(e,t={}){super(),this.writeBuffer=[],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.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!0},t),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),"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&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!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 o=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",o),new a.transports[e](o)}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),o=!1;p.priorWebsocketSuccess=!1;const n=()=>{o||(d('probe transport "%s" opened',e),t.send([{type:"ping",data:"probe"}]),t.once("packet",(n=>{if(!o)if("pong"===n.type&&"probe"===n.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((()=>{o||"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 o=new Error("probe error");o.transport=t.name,this.emitReserved("upgradeError",o)}})))};function a(){o||(o=!0,c(),t.close(),t=null)}const r=o=>{const n=new Error("probe error: "+o);n.transport=t.name,a(),d('probe transport "%s" failed because of error: %s',e,o),this.emitReserved("upgradeError",n)};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",n),t.removeListener("error",r),t.removeListener("close",s),this.off("close",i),this.off("upgrading",l)};t.once("open",n),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){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,o){return this.sendPacket("message",e,t,o),this}send(e,t,o){return this.sendPacket("message",e,t,o),this}sendPacket(e,t,o,n){if("function"==typeof t&&(n=t,t=void 0),"function"==typeof o&&(n=o,o=null),"closing"===this.readyState||"closed"===this.readyState)return;(o=o||{}).compress=!1!==o.compress;const a={type:e,data:t,options:o};this.emitReserved("packetCreate",a),this.writeBuffer.push(a),n&&this.once("flush",n),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()},o=()=>{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?o():e()})):this.upgrading?o():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("beforeunload",this.beforeunloadEventListener,!1),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 o=0;const n=e.length;for(;o{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.transports=void 0;const n=o(697),a=o(6800);t.transports={websocket:a.WS,polling:n.Polling}},697:function(e,t,o){"use strict";var n=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=o(3635),r=n(o(7820)),s=o(7174),i=o(4120),l=o(1247),c=o(8509),u=o(3555),d=o(4319),p=o(611),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 o=location.port;o||(o=t?"443":"80"),this.xd="undefined"!=typeof location&&e.hostname!==location.hostname||o!==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 o="";!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))&&(o=":"+this.opts.port);const n=(0,i.encode)(e);return t+"://"+(-1!==this.opts.hostname.indexOf(":")?"["+this.opts.hostname+"]":this.opts.hostname)+o+this.opts.path+(n.length?"?"+n:"")}request(e={}){return Object.assign(e,{xd:this.xd,xs:this.xs},this.opts),new y(this.uri(),e)}doWrite(e,t){const o=this.request({method:"POST",data:e});o.on("success",t),o.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()}},393:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultBinaryType=t.usingBrowserWebSocket=t.WebSocket=t.nextTick=void 0;const n=o(611);t.nextTick="function"==typeof Promise&&"function"==typeof Promise.resolve?e=>Promise.resolve().then(e):(e,t)=>t(e,0),t.WebSocket=n.globalThisShim.WebSocket||n.globalThisShim.MozWebSocket,t.usingBrowserWebSocket=!0,t.defaultBinaryType="arraybuffer"},6800:function(e,t,o){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.WS=void 0;const a=o(3635),r=o(4120),s=o(7174),i=o(4319),l=o(393),c=n(o(7820)),u=o(1247),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,o=p?{}:(0,i.pick)(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(o.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,o)}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&&(o.options&&(t.compress=o.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 o="";this.opts.port&&("wss"===t&&443!==Number(this.opts.port)||"ws"===t&&80!==Number(this.opts.port))&&(o=":"+this.opts.port),this.opts.timestampRequests&&(e[this.opts.timestampParam]=(0,s.yeast)()),this.supportsBinary||(e.b64=1);const n=(0,r.encode)(e);return t+"://"+(-1!==this.opts.hostname.indexOf(":")?"["+this.opts.hostname+"]":this.opts.hostname)+o+this.opts.path+(n.length?"?"+n:"")}check(){return!!l.WebSocket}}t.WS=h},8509:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.XHR=void 0;const n=o(8077),a=o(611);t.XHR=function(e){const t=e.xdomain;try{if("undefined"!=typeof XMLHttpRequest&&(!t||n.hasCORS))return new XMLHttpRequest}catch(e){}if(!t)try{return new(a.globalThisShim[["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch(e){}}},4319:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.byteLength=t.installTimerFunctions=t.pick=void 0;const n=o(611);t.pick=function(e,...t){return t.reduce(((t,o)=>(e.hasOwnProperty(o)&&(t[o]=e[o]),t)),{})};const a=n.globalThisShim.setTimeout,r=n.globalThisShim.clearTimeout;t.installTimerFunctions=function(e,t){t.useNativeTimers?(e.setTimeoutFn=a.bind(n.globalThisShim),e.clearTimeoutFn=r.bind(n.globalThisShim)):(e.setTimeoutFn=n.globalThisShim.setTimeout.bind(n.globalThisShim),e.clearTimeoutFn=n.globalThisShim.clearTimeout.bind(n.globalThisShim))};t.byteLength=function(e){return"string"==typeof e?function(e){let t=0,o=0;for(let n=0,a=e.length;n=57344?o+=3:(n++,o+=4);return o}(e):Math.ceil(1.33*(e.byteLength||e.size))}},8880:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ERROR_PACKET=t.PACKET_TYPES_REVERSE=t.PACKET_TYPES=void 0;const o=Object.create(null);t.PACKET_TYPES=o,o.open="0",o.close="1",o.ping="2",o.pong="3",o.message="4",o.upgrade="5",o.noop="6";const n=Object.create(null);t.PACKET_TYPES_REVERSE=n,Object.keys(o).forEach((e=>{n[o[e]]=e})),t.ERROR_PACKET={type:"error",data:"parser error"}},9445:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decode=t.encode=void 0;const o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n="undefined"==typeof Uint8Array?[]:new Uint8Array(256);for(let e=0;e{let t,n=new Uint8Array(e),a=n.length,r="";for(t=0;t>2],r+=o[(3&n[t])<<4|n[t+1]>>4],r+=o[(15&n[t+1])<<2|n[t+2]>>6],r+=o[63&n[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,o,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}},2781:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=o(8880),a=o(9445),r="function"==typeof ArrayBuffer,s=(e,t)=>{if(r){const o=(0,a.decode)(e);return i(o,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 o=e.charAt(0);return"b"===o?{type:"message",data:s(e.substring(1),t)}:n.PACKET_TYPES_REVERSE[o]?e.length>1?{type:n.PACKET_TYPES_REVERSE[o],data:e.substring(1)}:{type:n.PACKET_TYPES_REVERSE[o]}:n.ERROR_PACKET}},8746:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=o(8880),a="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),r="function"==typeof ArrayBuffer,s=(e,t)=>{const o=new FileReader;return o.onload=function(){const e=o.result.split(",")[1];t("b"+(e||""))},o.readAsDataURL(e)};t.default=({type:e,data:t},o,i)=>{return a&&t instanceof Blob?o?i(t):s(t,i):r&&(t instanceof ArrayBuffer||(l=t,"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(l):l&&l.buffer instanceof ArrayBuffer))?o?i(t):s(new Blob([t]),i):i(n.PACKET_TYPES[e]+(t||""));var l}},1247:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodePayload=t.decodePacket=t.encodePayload=t.encodePacket=t.protocol=void 0;const n=o(8746);t.encodePacket=n.default;const a=o(2781);t.decodePacket=a.default;const r=String.fromCharCode(30);t.encodePayload=(e,t)=>{const o=e.length,a=new Array(o);let s=0;e.forEach(((e,i)=>{(0,n.default)(e,!1,(e=>{a[i]=e,++s===o&&t(a.join(r))}))}))},t.decodePayload=(e,t)=>{const o=e.split(r),n=[];for(let e=0;e{"use strict";function o(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=o,o.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),o=Math.floor(t*this.jitter*e);e=0==(1&Math.floor(10*t))?e-o:e+o}return 0|Math.min(e,this.max)},o.prototype.reset=function(){this.attempts=0},o.prototype.setMin=function(e){this.ms=e},o.prototype.setMax=function(e){this.max=e},o.prototype.setJitter=function(e){this.jitter=e}},6074:function(e,t,o){"use strict";var n=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=o(4884),r=o(5682);Object.defineProperty(t,"Manager",{enumerable:!0,get:function(){return r.Manager}});const s=o(9925);Object.defineProperty(t,"Socket",{enumerable:!0,get:function(){return s.Socket}});const i=n(o(7820)).default("socket.io-client"),l={};function c(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};const o=a.url(e,t.path||"/socket.io"),n=o.source,s=o.id,c=o.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",n),d=new r.Manager(n,t)):(l[s]||(i("new io instance for %s",n),l[s]=new r.Manager(n,t)),d=l[s]),o.query&&!t.query&&(t.query=o.queryKey),d.socket(o.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=o(7890);Object.defineProperty(t,"protocol",{enumerable:!0,get:function(){return u.protocol}}),e.exports=c},5682:function(e,t,o){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,o,n){void 0===n&&(n=o),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[o]}})}:function(e,t,o,n){void 0===n&&(n=o),e[n]=t[o]}),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 o in e)"default"!==o&&Object.prototype.hasOwnProperty.call(e,o)&&n(t,e,o);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=o(4364),l=o(9925),c=r(o(7890)),u=o(2844),d=o(5868),p=o(3555),h=s(o(7820)).default("socket.io-client:manager");class f extends p.Emitter{constructor(e,t){var o;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!==(o=t.randomizationFactor)&&void 0!==o?o:.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 n=t.parser||c;this.encoder=new n.Encoder,this.decoder=new n.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,o=this;this._readyState="opening",this.skipReconnect=!1;const n=u.on(t,"open",(function(){o.onopen(),e&&e()})),a=u.on(t,"error",(t=>{h("error"),o.cleanup(),o._readyState="closed",this.emitReserved("error",t),e?e(t):o.maybeReconnectOnOpen()}));if(!1!==this._timeout){const e=this._timeout;h("connect attempt will timeout after %d",e),0===e&&n();const o=this.setTimeoutFn((()=>{h("connect attempt timed out after %d",e),n(),t.close(),t.emit("error",new Error("timeout"))}),e);this.opts.autoUnref&&o.unref(),this.subs.push((function(){clearTimeout(o)}))}return this.subs.push(n),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){try{this.decoder.add(e)}catch(e){this.onclose("parse error",e)}}ondecoded(e){i.nextTick((()=>{this.emitReserved("packet",e)}),this.setTimeoutFn)}onerror(e){h("error",e),this.emitReserved("error",e)}socket(e,t){let o=this.nsps[e];return o?this._autoConnect&&!o.active&&o.connect():(o=new l.Socket(this,e,t),this.nsps[e]=o),o}_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 o=0;oe())),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 o=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&&o.unref(),this.subs.push((function(){clearTimeout(o)}))}}onreconnect(){const e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}t.Manager=f},2844:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.on=void 0,t.on=function(e,t,o){return e.on(t,o),function(){e.off(t,o)}}},9925:function(e,t,o){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Socket=void 0;const a=o(7890),r=o(2844),s=o(3555),i=n(o(7820)).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,o){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=t,o&&o.auth&&(this.auth=o.auth),this._opts=Object.assign({},o),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.toString()+'" is a reserved event name');if(t.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(t),this;const o={type:a.PacketType.EVENT,data:t,options:{}};if(o.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 n=t.pop();this._registerAckCallback(e,n),o.id=e}const n=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return!this.flags.volatile||n&&this.connected?this.connected?(this.notifyOutgoingListeners(o),this.packet(o)):this.sendBuffer.push(o):i("discard packet as the transport is not currently writable"),this.flags={},this}_registerAckCallback(e,t){var o;const n=null!==(o=this.flags.timeout)&&void 0!==o?o:this._opts.ackTimeout;if(void 0===n)return void(this.acks[e]=t);const a=this.io.setTimeoutFn((()=>{delete this.acks[e];for(let t=0;t{this.io.clearTimeoutFn(a),t.apply(this,[null,...e])}}emitWithAck(e,...t){const o=void 0!==this.flags.timeout||void 0!==this._opts.ackTimeout;return new Promise(((n,a)=>{t.push(((e,t)=>o?e?a(e):n(t):n(e))),this.emit(e,...t)}))}_addToQueue(e){let t;"function"==typeof e[e.length-1]&&(t=e.pop());const o={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push(((e,...n)=>{if(o===this._queue[0])return null!==e?o.tryCount>this._opts.retries&&(i("packet [%d] is discarded after %d tries",o.id,o.tryCount),this._queue.shift(),t&&t(e)):(i("packet [%d] was successfully sent",o.id),this._queue.shift(),t&&t(null,...n)),o.pending=!1,this._drainQueue()})),this._queue.push(o),this._drainQueue()}_drainQueue(e=!1){if(i("draining queue"),!this.connected||0===this._queue.length)return;const t=this._queue[0];!t.pending||e?(t.pending=!0,t.tryCount++,i("sending packet [%d] (try n°%d)",t.id,t.tryCount),this.flags=t.flags,this.emit.apply(this,t.args)):i("packet [%d] has already been sent and is waiting for an ack",t.id)}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){i("transport is open - connecting"),"function"==typeof this.auth?this.auth((e=>{this._sendConnectPacket(e)})):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:a.PacketType.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}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:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):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 o of t)o.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&"string"==typeof e[e.length-1]&&(this._lastOffset=e[e.length-1])}ack(e){const t=this;let o=!1;return function(...n){o||(o=!0,i("sending ack %j",n),t.packet({type:a.PacketType.ACK,id:e,data:n}))}}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,t){i("socket connected with id %s",e),this.id=e,this.recovered=t&&this._pid===t,this._pid=t,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}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 o=0;o{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.reconstructPacket=t.deconstructPacket=void 0;const n=o(5033);function a(e,t){if(!e)return e;if((0,n.isBinary)(e)){const o={_placeholder:!0,num:t.length};return t.push(e),o}if(Array.isArray(e)){const o=new Array(e.length);for(let n=0;n=0&&e.num{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Decoder=t.Encoder=t.PacketType=t.protocol=void 0;const n=o(3555),a=o(4318),r=o(5033),s=(0,o(7820).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||!(0,r.hasBinary)(e)?[this.encodeAsString(e)]:this.encodeAsBinary({type:e.type===i.EVENT?i.BINARY_EVENT:i.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id})}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=(0,a.deconstructPacket)(e),o=this.encodeAsString(t.packet),n=t.buffers;return n.unshift(o),n}};class l extends n.Emitter{constructor(e){super(),this.reviver=e}add(e){let t;if("string"==typeof e){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");t=this.decodeString(e);const o=t.type===i.BINARY_EVENT;o||t.type===i.BINARY_ACK?(t.type=o?i.EVENT:i.ACK,this.reconstructor=new c(t),0===t.attachments&&super.emitReserved("decoded",t)):super.emitReserved("decoded",t)}else{if(!(0,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 o={type:Number(e.charAt(0))};if(void 0===i[o.type])throw new Error("unknown packet type "+o.type);if(o.type===i.BINARY_EVENT||o.type===i.BINARY_ACK){const n=t+1;for(;"-"!==e.charAt(++t)&&t!=e.length;);const a=e.substring(n,t);if(a!=Number(a)||"-"!==e.charAt(t))throw new Error("Illegal attachments");o.attachments=Number(a)}if("/"===e.charAt(t+1)){const n=t+1;for(;++t&&","!==e.charAt(t)&&t!==e.length;);o.nsp=e.substring(n,t)}else o.nsp="/";const n=e.charAt(t+1);if(""!==n&&Number(n)==n){const n=t+1;for(;++t;){const o=e.charAt(t);if(null==o||Number(o)!=o){--t;break}if(t===e.length)break}o.id=Number(e.substring(n,t+1))}if(e.charAt(++t)){const n=this.tryParse(e.substr(t));if(!l.isPayloadValid(o.type,n))throw new Error("invalid payload");o.data=n}return s("decoded %s as %j",e,o),o}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(),this.reconstructor=null)}}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=(0,a.reconstructPacket)(this.reconPack,this.buffers);return this.finishedReconstruction(),e}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}},5033:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hasBinary=t.isBinary=void 0;const o="function"==typeof ArrayBuffer,n=e=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,a=Object.prototype.toString,r="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===a.call(Blob),s="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===a.call(File);function i(e){return o&&(e instanceof ArrayBuffer||n(e))||r&&e instanceof Blob||s&&e instanceof File}t.isBinary=i,t.hasBinary=function e(t,o){if(!t||"object"!=typeof t)return!1;if(Array.isArray(t)){for(let o=0,n=t.length;o{"use strict";function n(e){if(e)return function(e){for(var t in n.prototype)e[t]=n.prototype[t];return e}(e)}o.r(t),o.d(t,{Emitter:()=>n}),n.prototype.on=n.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},n.prototype.once=function(e,t){function o(){this.off(e,o),t.apply(this,arguments)}return o.fn=t,this.on(e,o),this},n.prototype.off=n.prototype.removeListener=n.prototype.removeAllListeners=n.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var o,n=this._callbacks["$"+e];if(!n)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 o in t)__webpack_require__.o(t,o)&&!__webpack_require__.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},__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__(6347),__webpack_require__(8340),__webpack_require__(8299),__webpack_require__(2348),__webpack_require__(6021),__webpack_require__(1884),__webpack_require__(1604),__webpack_require__(6275),__webpack_require__(8754),__webpack_require__(5834),__webpack_require__(3649),__webpack_require__(9425),__webpack_require__(864),__webpack_require__(1172),__webpack_require__(1433),__webpack_require__(2803),__webpack_require__(9131),__webpack_require__(3414),__webpack_require__(7509),__webpack_require__(2477),__webpack_require__(122);var __webpack_exports__=__webpack_require__(3521)})(); \ No newline at end of file diff --git a/cheatGUI/dist/bundle.js.LICENSE.txt b/cheatGUI/dist/bundle.js.LICENSE.txt index 2662166..7b5b52e 100644 --- a/cheatGUI/dist/bundle.js.LICENSE.txt +++ b/cheatGUI/dist/bundle.js.LICENSE.txt @@ -1 +1 @@ -/*! (c) 2022 ProdigyPNP */ +/*! (c) 2023 ProdigyPNP */ diff --git a/cheatGUI/package.json b/cheatGUI/package.json index f80054a..7f1fbce 100644 --- a/cheatGUI/package.json +++ b/cheatGUI/package.json @@ -6,7 +6,8 @@ "scripts": { "build": "webpack --config webpack.config.js && rm dist/bundle.js.LICENSE.txt && touch dist/bundle.js.LICENSE.txt && echo \"/*! (c) 2023 ProdigyPNP */\" >> dist/bundle.js.LICENSE.txt", "dev": "node hot-reload.mjs", - "setup": "pnpm install" + "setup": "pnpm install", + "postinstall": "cp -r ./node_modules/sweetalert2-neutral ./node_modules/sweetalert2" }, "repository": { "type": "git", diff --git a/cheatGUI/src/hacks/player.ts b/cheatGUI/src/hacks/player.ts index 5f4ea24..4e5c01d 100644 --- a/cheatGUI/src/hacks/player.ts +++ b/cheatGUI/src/hacks/player.ts @@ -421,6 +421,7 @@ new Hack(category.player, "Change Name", "Change the name of your wizard.").setC } }); if (name.value === undefined) return; + // @ts-expect-error if (name.value[3] === "null") name.value[3] = null; [ player.name.data.firstName, diff --git a/cheatGUI/tsconfig.json b/cheatGUI/tsconfig.json index 0e27179..eb83d74 100644 --- a/cheatGUI/tsconfig.json +++ b/cheatGUI/tsconfig.json @@ -51,7 +51,9 @@ /* Module Resolution Options */ "moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */ // "baseUrl": "./", /* Base directory to resolve non-absolute module names. */ - // "paths": {}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */ + "paths": { + "sweetalert2": ["./node_modules/sweetalert2-neutral"] + }, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */ // "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */ // "typeRoots": [], /* List of folders to include type definitions from. */ // "types": [""], /* Type declaration files to be included in compilation. */