mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-29 17:37:34 +01:00
20 lines
2.0 MiB
20 lines
2.0 MiB
!function(e){function t(t){for(var a,o,s=t[0],l=t[1],c=t[2],u=0,m=[];u<s.length;u++)o=s[u],Object.prototype.hasOwnProperty.call(r,o)&&r[o]&&m.push(r[o][0]),r[o]=0;for(a in l)Object.prototype.hasOwnProperty.call(l,a)&&(e[a]=l[a]);for(f&&f(t);m.length;)m.shift()();return i.push.apply(i,c||[]),n()}function n(){for(var e,t=0;t<i.length;t++){for(var n=i[t],a=!0,s=1;s<n.length;s++){var l=n[s];0!==r[l]&&(a=!1)}a&&(i.splice(t--,1),e=o(o.s=n[0]))}return e}var a={},r={0:0},i=[];function o(t){if(a[t])return a[t].exports;var n=a[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,o),n.l=!0,n.exports}o.m=e,o.c=a,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)o.d(n,a,function(t){return e[t]}.bind(null,a));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="";var s=window.webpackJsonp=window.webpackJsonp||[],l=s.push.bind(s);s.push=t,s=s.slice();for(var c=0;c<s.length;c++)t(s[c]);var f=l;i.push([1552,1]),n()}([,,function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return s}));var a=n(603),r=n(109),i=n(22);let o=new a.a;function s(e){o=JSON.parse(e,i.c),o.money=parseFloat(o.money),o.exploits=Object(r.c)(o.exploits)}},,function(e,t,n){"use strict";let a;n.d(t,"a",(function(){return a})),function(e){e.Illuminati="Illuminati",e.Daedalus="Daedalus",e.TheCovenant="The Covenant",e.ECorp="ECorp",e.MegaCorp="MegaCorp",e.BachmanAssociates="Bachman & Associates",e.BladeIndustries="Blade Industries",e.NWO="NWO",e.ClarkeIncorporated="Clarke Incorporated",e.OmniTekIncorporated="OmniTek Incorporated",e.FourSigma="Four Sigma",e.KuaiGongInternational="KuaiGong International",e.FulcrumSecretTechnologies="Fulcrum Secret Technologies",e.BitRunners="BitRunners",e.TheBlackHand="The Black Hand",e.NiteSec="NiteSec",e.Aevum="Aevum",e.Chongqing="Chongqing",e.Ishima="Ishima",e.NewTokyo="New Tokyo",e.Sector12="Sector-12",e.Volhaven="Volhaven",e.SpeakersForTheDead="Speakers for the Dead",e.TheDarkArmy="The Dark Army",e.TheSyndicate="The Syndicate",e.Silhouette="Silhouette",e.Tetrads="Tetrads",e.SlumSnakes="Slum Snakes",e.Netburners="Netburners",e.TianDiHui="Tian Di Hui",e.CyberSec="CyberSec",e.Bladeburners="Bladeburners",e.ChurchOfTheMachineGod="Church of the Machine God",e.ShadowsOfAnarchy="Shadows of Anarchy"}(a||(a={}))},function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return l}));var a=n(175),r=n(345),i=n(412),o=n(125);const s={ActiveScriptsServerPageSize:10,ActiveScriptsScriptPageSize:10,AutosaveInterval:60,CodeInstructionRunTime:50,DisableASCIIArt:!1,DisableHotkeys:!1,DisableTextEffects:!1,DisableOverviewProgressBars:!1,EnableBashHotkeys:!1,TimestampsFormat:"",Locale:"en",MaxRecentScriptsCapacity:50,MaxLogCapacity:50,MaxPortCapacity:50,MaxTerminalCapacity:500,SaveGameOnFileSave:!0,SuppressBuyAugmentationConfirmation:!1,SuppressFactionInvites:!1,SuppressMessages:!1,SuppressTravelConfirmation:!1,SuppressBladeburnerPopup:!1,SuppressTIXPopup:!1,SuppressSavedGameToast:!1,SuppressAutosaveDisabledWarnings:!1,UseIEC60027_2:!1,ExcludeRunningScriptsFromSave:!1,IsSidebarOpened:!0,theme:r.a,styles:i.a,overview:{x:0,y:0,opened:!0},EditorTheme:o.a},l={ActiveScriptsServerPageSize:s.ActiveScriptsServerPageSize,ActiveScriptsScriptPageSize:s.ActiveScriptsScriptPageSize,AutosaveInterval:s.AutosaveInterval,CodeInstructionRunTime:25,DisableASCIIArt:s.DisableASCIIArt,DisableHotkeys:s.DisableHotkeys,DisableTextEffects:s.DisableTextEffects,DisableOverviewProgressBars:s.DisableOverviewProgressBars,EnableBashHotkeys:s.EnableBashHotkeys,TimestampsFormat:s.TimestampsFormat,Locale:"en",MaxRecentScriptsCapacity:s.MaxRecentScriptsCapacity,MaxLogCapacity:s.MaxLogCapacity,MaxPortCapacity:s.MaxPortCapacity,MaxTerminalCapacity:s.MaxTerminalCapacity,OwnedAugmentationsOrder:a.a.AcquirementTime,PurchaseAugmentationsOrder:a.b.Default,SaveGameOnFileSave:s.SaveGameOnFileSave,SuppressBuyAugmentationConfirmation:s.SuppressBuyAugmentationConfirmation,SuppressFactionInvites:s.SuppressFactionInvites,SuppressMessages:s.SuppressMessages,SuppressTravelConfirmation:s.SuppressTravelConfirmation,SuppressBladeburnerPopup:s.SuppressBladeburnerPopup,SuppressTIXPopup:s.SuppressTIXPopup,SuppressSavedGameToast:s.SuppressSavedGameToast,SuppressAutosaveDisabledWarnings:s.SuppressAutosaveDisabledWarnings,UseIEC60027_2:s.UseIEC60027_2,ExcludeRunningScriptsFromSave:s.ExcludeRunningScriptsFromSave,IsSidebarOpened:s.IsSidebarOpened,MonacoTheme:"monokai",MonacoInsertSpaces:!1,MonacoFontSize:20,MonacoVim:!1,MonacoWordWrap:"off",theme:{...r.a},styles:{...i.a},overview:s.overview,EditorTheme:{...o.a},init(){Object.assign(l,s)},load(e){const t=JSON.parse(e);Object.assign(l.theme,t.theme),delete t.theme,Object.assign(l.styles,t.styles),delete t.styles,Object.assign(l.overview,t.overview),delete t.overview,Object.assign(l.EditorTheme,t.EditorTheme),delete t.EditorTheme,Object.assign(l,t)}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var a=n(188),r=n.n(a),i=(n(1561),n(1562),n(1563),n(1564),n(1565),n(1566),n(1567),n(1568),n(1569),n(1570),n(1571),n(1572),n(1573),n(1574),n(5));const o=[1e15,1e18,1e21,1e24,1e27,1e30],s=["q","Q","s","S","o","n"],l=1e9,c=2**30;const f=new class{constructor(){var e,t,n;n="en",(t="defaultLocale")in(e=this)?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,this.defaultLocale="en"}updateLocale(e){return null!=r.a.locale(e)||(console.warn("Invalid locale for numeral: "+e),r.a.locale(this.defaultLocale),!1)}format(e,t){Math.abs(e)<1e-6&&(e=0);const n=r()(e).format(t);return"NaN"===n?""+e:n}formatBigNumber(e){return this.format(e,"0.000a")}formatReallyBigNumber(e,t=3){const n=Math.abs(e);if(e===1/0)return"∞";for(let a=0;a<o.length;a++)if(o[a]<n&&n<=1e3*o[a])return this.format(e/o[a],"0."+"0".repeat(t))+s[a];if(n<1e3)return this.format(e,"0."+"0".repeat(t));const a=this.format(e,"0."+"0".repeat(t)+"a");return"NaNt"===a?this.format(e,"0."+" ".repeat(t)+"e+0"):a}formatHp(e){return e<1e6?this.format(e,"0,0"):this.formatReallyBigNumber(e)}formatMoney(e){return"$"+this.formatReallyBigNumber(e)}formatSkill(e){return e<1e15?this.format(e,"0,0"):this.formatReallyBigNumber(e)}formatExp(e){return this.formatReallyBigNumber(e)}formatHashes(e){return this.formatReallyBigNumber(e)}formatReputation(e){return this.formatReallyBigNumber(e)}formatFavor(e){return this.format(e,"0,0")}formatSecurity(e){return e.toFixed(3)}formatRAM(e){return i.a.UseIEC60027_2?this.format(e*c,"0.00ib"):this.format(e*l,"0.00b")}formatPercentage(e,t=2){const n="0."+"0".repeat(t)+"%";return this.format(e,n)}formatServerSecurity(e){return this.format(e,"0,0.000")}formatRespect(e){return this.formatReallyBigNumber(e,5)}formatWanted(e){return this.formatReallyBigNumber(e,5)}formatMultiplier(e){return this.format(e,"0,0.00")}formatSleeveShock(e){return this.format(e,"0,0.000")}formatSleeveSynchro(e){return this.format(e,"0,0.000")}formatSleeveMemory(e){return this.format(e,"0")}formatPopulation(e){return this.format(e,"0.000a")}formatStamina(e){return this.format(e,"0.0")}formatShares(e){return e<1e3?this.format(e,"0"):this.formatReallyBigNumber(e)}formatInfiltrationSecurity(e){return this.formatReallyBigNumber(e)}formatThreads(e){return this.format(e,"0,0")}formatStaneksGiftHeat(e){return this.format(e,"0.000a")}formatStaneksGiftCharge(e){return this.format(e,"0.000a")}formatStaneksGiftPower(e){return this.format(e,"0.00")}parseCustomLargeNumber(e){const t=new RegExp("^(-?\\d+\\.?\\d*)(["+s.join("")+"]?)$"),n=e.match(t);if(null==n)return NaN;const[,a,r]=n,i=s.indexOf(r);return-1===i?NaN:parseFloat(a)*o[i]}largestAbsoluteNumber(e,t=0,n=0){isNaN(e)&&(e=0),isNaN(t)&&(t=0),isNaN(n)&&(n=0);switch(Math.max(Math.abs(e),Math.abs(t),Math.abs(n))){case Math.abs(e):return e;case Math.abs(t):return t;case Math.abs(n):return n}return 0}parseMoney(e){const t=r()(e).value(),n=parseFloat(e),a=this.parseCustomLargeNumber(e);return isNaN(n)&&isNaN(a)?null===t?NaN:t:null===t&&isNaN(a)?n:isNaN(n)?null===t?a:this.largestAbsoluteNumber(t,a):null===t?this.largestAbsoluteNumber(n,a):isNaN(a)?this.largestAbsoluteNumber(t,n):this.largestAbsoluteNumber(t,n,a)}}},,,function(e,t,n){"use strict";let a;n.d(t,"a",(function(){return a})),function(e){e.AevumAeroCorp="AeroCorp",e.AevumBachmanAndAssociates="Bachman & Associates",e.AevumClarkeIncorporated="Clarke Incorporated",e.AevumCrushFitnessGym="Crush Fitness Gym",e.AevumECorp="ECorp",e.AevumFulcrumTechnologies="Fulcrum Technologies",e.AevumGalacticCybersystems="Galactic Cybersystems",e.AevumNetLinkTechnologies="NetLink Technologies",e.AevumPolice="Aevum Police Headquarters",e.AevumRhoConstruction="Rho Construction",e.AevumSnapFitnessGym="Snap Fitness Gym",e.AevumSummitUniversity="Summit University",e.AevumWatchdogSecurity="Watchdog Security",e.AevumCasino="Iker Molina Casino",e.ChongqingKuaiGongInternational="KuaiGong International",e.ChongqingSolarisSpaceSystems="Solaris Space Systems",e.ChongqingChurchOfTheMachineGod="Church of the Machine God",e.Sector12AlphaEnterprises="Alpha Enterprises",e.Sector12BladeIndustries="Blade Industries",e.Sector12CIA="Central Intelligence Agency",e.Sector12CarmichaelSecurity="Carmichael Security",e.Sector12CityHall="Sector-12 City Hall",e.Sector12DeltaOne="DeltaOne",e.Sector12FoodNStuff="FoodNStuff",e.Sector12FourSigma="Four Sigma",e.Sector12IcarusMicrosystems="Icarus Microsystems",e.Sector12IronGym="Iron Gym",e.Sector12JoesGuns="Joe's Guns",e.Sector12MegaCorp="MegaCorp",e.Sector12NSA="National Security Agency",e.Sector12PowerhouseGym="Powerhouse Gym",e.Sector12RothmanUniversity="Rothman University",e.Sector12UniversalEnergy="Universal Energy",e.NewTokyoDefComm="DefComm",e.NewTokyoGlobalPharmaceuticals="Global Pharmaceuticals",e.NewTokyoNoodleBar="Noodle Bar",e.NewTokyoVitaLife="VitaLife",e.NewTokyoArcade="Arcade",e.IshimaNovaMedical="Nova Medical",e.IshimaOmegaSoftware="Omega Software",e.IshimaStormTechnologies="Storm Technologies",e.IshimaGlitch="0x6C1",e.VolhavenCompuTek="CompuTek",e.VolhavenHeliosLabs="Helios Labs",e.VolhavenLexoCorp="LexoCorp",e.VolhavenMilleniumFitnessGym="Millenium Fitness Gym",e.VolhavenNWO="NWO",e.VolhavenOmniTekIncorporated="OmniTek Incorporated",e.VolhavenOmniaCybersystems="Omnia Cybersystems",e.VolhavenSysCoreSecurities="SysCore Securities",e.VolhavenZBInstituteOfTechnology="ZB Institute of Technology",e.Hospital="Hospital",e.Slums="The Slums",e.TravelAgency="Travel Agency",e.WorldStockExchange="World Stock Exchange",e.Void="The Void"}(a||(a={}))},,function(e,t,n){"use strict";let a;n.d(t,"a",(function(){return a})),function(e){e.Targeting1="Augmented Targeting I",e.Targeting2="Augmented Targeting II",e.Targeting3="Augmented Targeting III",e.SyntheticHeart="Synthetic Heart",e.SynfibrilMuscle="Synfibril Muscle",e.CombatRib1="Combat Rib I",e.CombatRib2="Combat Rib II",e.CombatRib3="Combat Rib III",e.NanofiberWeave="Nanofiber Weave",e.SubdermalArmor="NEMEAN Subdermal Weave",e.WiredReflexes="Wired Reflexes",e.GrapheneBoneLacings="Graphene Bone Lacings",e.BionicSpine="Bionic Spine",e.GrapheneBionicSpine="Graphene Bionic Spine Upgrade",e.BionicLegs="Bionic Legs",e.GrapheneBionicLegs="Graphene Bionic Legs Upgrade",e.SpeechProcessor="Speech Processor Implant",e.TITN41Injection="TITN-41 Gene-Modification Injection",e.EnhancedSocialInteractionImplant="Enhanced Social Interaction Implant",e.BitWire="BitWire",e.ArtificialBioNeuralNetwork="Artificial Bio-neural Network Implant",e.ArtificialSynapticPotentiation="Artificial Synaptic Potentiation",e.EnhancedMyelinSheathing="Enhanced Myelin Sheathing",e.SynapticEnhancement="Synaptic Enhancement Implant",e.NeuralRetentionEnhancement="Neural-Retention Enhancement",e.DataJack="DataJack",e.ENM="Embedded Netburner Module",e.ENMCore="Embedded Netburner Module Core Implant",e.ENMCoreV2="Embedded Netburner Module Core V2 Upgrade",e.ENMCoreV3="Embedded Netburner Module Core V3 Upgrade",e.ENMAnalyzeEngine="Embedded Netburner Module Analyze Engine",e.ENMDMA="Embedded Netburner Module Direct Memory Access Upgrade",e.Neuralstimulator="Neuralstimulator",e.NeuralAccelerator="Neural Accelerator",e.CranialSignalProcessorsG1="Cranial Signal Processors - Gen I",e.CranialSignalProcessorsG2="Cranial Signal Processors - Gen II",e.CranialSignalProcessorsG3="Cranial Signal Processors - Gen III",e.CranialSignalProcessorsG4="Cranial Signal Processors - Gen IV",e.CranialSignalProcessorsG5="Cranial Signal Processors - Gen V",e.NeuronalDensification="Neuronal Densification",e.NeuroreceptorManager="Neuroreceptor Management Implant",e.NuoptimalInjectorImplant="Nuoptimal Nootropic Injector Implant",e.SpeechEnhancement="Speech Enhancement",e.FocusWire="FocusWire",e.PCDNI="PC Direct-Neural Interface",e.PCDNIOptimizer="PC Direct-Neural Interface Optimization Submodule",e.PCDNINeuralNetwork="PC Direct-Neural Interface NeuroNet Injector",e.PCMatrix="PCMatrix",e.ADRPheromone1="ADR-V1 Pheromone Gene",e.ADRPheromone2="ADR-V2 Pheromone Gene",e.ShadowsSimulacrum="The Shadow's Simulacrum",e.HacknetNodeCPUUpload="Hacknet Node CPU Architecture Neural-Upload",e.HacknetNodeCacheUpload="Hacknet Node Cache Architecture Neural-Upload",e.HacknetNodeNICUpload="Hacknet Node NIC Architecture Neural-Upload",e.HacknetNodeKernelDNI="Hacknet Node Kernel Direct-Neural Interface",e.HacknetNodeCoreDNI="Hacknet Node Core Direct-Neural Interface",e.NeuroFluxGovernor="NeuroFlux Governor",e.Neurotrainer1="Neurotrainer I",e.Neurotrainer2="Neurotrainer II",e.Neurotrainer3="Neurotrainer III",e.Hypersight="HyperSight Corneal Implant",e.LuminCloaking1="LuminCloaking-V1 Skin Implant",e.LuminCloaking2="LuminCloaking-V2 Skin Implant",e.HemoRecirculator="HemoRecirculator",e.SmartSonar="SmartSonar Implant",e.PowerRecirculator="Power Recirculation Core",e.QLink="QLink",e.TheRedPill="The Red Pill",e.SPTN97="SPTN-97 Gene Modification",e.HiveMind="ECorp HVMind Implant",e.CordiARCReactor="CordiARC Fusion Reactor",e.SmartJaw="SmartJaw",e.Neotra="Neotra",e.Xanipher="Xanipher",e.nextSENS="nextSENS Gene Modification",e.OmniTekInfoLoad="OmniTek InfoLoad",e.PhotosyntheticCells="Photosynthetic Cells",e.Neurolink="BitRunners Neurolink",e.TheBlackHand="The Black Hand",e.UnstableCircadianModulator="Unstable Circadian Modulator",e.CRTX42AA="CRTX42-AA Gene Modification",e.Neuregen="Neuregen Gene Modification",e.CashRoot="CashRoot Starter Kit",e.NutriGen="NutriGen Implant",e.INFRARet="INFRARET Enhancement",e.DermaForce="DermaForce Particle Barrier",e.GrapheneBrachiBlades="Graphene BrachiBlades Upgrade",e.GrapheneBionicArms="Graphene Bionic Arms Upgrade",e.BrachiBlades="BrachiBlades",e.BionicArms="Bionic Arms",e.SNA="Social Negotiation Assistant (S.N.A)",e.HydroflameLeftArm="Hydroflame Left Arm",e.CongruityImplant="nickofolas Congruity Implant",e.EsperEyewear="EsperTech Bladeburner Eyewear",e.EMS4Recombination="EMS-4 Recombination",e.OrionShoulder="ORION-MKIV Shoulder",e.HyperionV1="Hyperion Plasma Cannon V1",e.HyperionV2="Hyperion Plasma Cannon V2",e.GolemSerum="GOLEM Serum",e.VangelisVirus="Vangelis Virus",e.VangelisVirus3="Vangelis Virus 3.0",e.INTERLINKED="I.N.T.E.R.L.I.N.K.E.D",e.BladeRunner="Blade's Runners",e.BladeArmor="BLADE-51b Tesla Armor",e.BladeArmorPowerCells="BLADE-51b Tesla Armor: Power Cells Upgrade",e.BladeArmorEnergyShielding="BLADE-51b Tesla Armor: Energy Shielding Upgrade",e.BladeArmorUnibeam="BLADE-51b Tesla Armor: Unibeam Upgrade",e.BladeArmorOmnibeam="BLADE-51b Tesla Armor: Omnibeam Upgrade",e.BladeArmorIPU="BLADE-51b Tesla Armor: IPU Upgrade",e.BladesSimulacrum="The Blade's Simulacrum",e.StaneksGift1="Stanek's Gift - Genesis",e.StaneksGift2="Stanek's Gift - Awakening",e.StaneksGift3="Stanek's Gift - Serenity",e.MightOfAres="SoA - Might of Ares",e.WisdomOfAthena="SoA - Wisdom of Athena",e.TrickeryOfHermes="SoA - Trickery of Hermes",e.BeautyOfAphrodite="SoA - Beauty of Aphrodite",e.ChaosOfDionysus="SoA - Chaos of Dionysus",e.FloodOfPoseidon="SoA - Flood of Poseidon",e.HuntOfArtemis="SoA - Hunt of Artemis",e.KnowledgeOfApollo="SoA - Knowledge of Apollo",e.WKSharmonizer="SoA - phyzical WKS harmonizer"}(a||(a={}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));const a={VersionString:"1.7.0",VersionNumber:19,_idleSpeed:200,MaxSkillLevel:975,MilliPerCycle:200,CorpFactionRepRequirement:2e5,BaseCostFor1GBOfRamHome:32e3,BaseCostFor1GBOfRamServer:55e3,TravelCost:2e5,BaseFavorToDonate:150,DonateMoneyToRepDivisor:1e6,FactionReputationToFavorBase:500,FactionReputationToFavorMult:1.02,CompanyReputationToFavorBase:500,CompanyReputationToFavorMult:1.02,NeuroFluxGovernorLevelMult:1.14,NumNetscriptPorts:20,HomeComputerMaxRam:1073741824,ServerBaseGrowthRate:1.03,ServerMaxGrowthRate:1.0035,ServerFortifyAmount:.002,ServerWeakenAmount:.05,PurchasedServerLimit:25,PurchasedServerMaxRam:1048576,MultipleAugMultiplier:1.9,TorRouterCost:2e5,WSEAccountCost:2e8,TIXAPICost:5e9,MarketData4SCost:1e9,MarketDataTixApi4SCost:25e9,StockMarketCommission:1e5,HospitalCostPerHp:1e5,IntelligenceCrimeWeight:.025,IntelligenceInfiltrationWeight:.1,IntelligenceCrimeBaseExpGain:.05,IntelligenceProgramBaseExpGain:.1,IntelligenceGraftBaseExpGain:.05,IntelligenceTerminalHackBaseExpGain:200,IntelligenceSingFnBaseExpGain:1.5,IntelligenceClassBaseExpGain:.01,MillisecondsPer20Hours:72e6,GameCyclesPer20Hours:36e4,MillisecondsPer10Hours:36e6,GameCyclesPer10Hours:18e4,MillisecondsPer8Hours:288e5,GameCyclesPer8Hours:144e3,MillisecondsPer4Hours:144e5,GameCyclesPer4Hours:72e3,MillisecondsPer2Hours:72e5,GameCyclesPer2Hours:36e3,MillisecondsPerHour:36e5,GameCyclesPerHour:18e3,MillisecondsPerHalfHour:18e5,GameCyclesPerHalfHour:9e3,MillisecondsPerQuarterHour:9e5,GameCyclesPerQuarterHour:4500,MillisecondsPerFiveMinutes:3e5,GameCyclesPerFiveMinutes:1500,BaseFocusBonus:.8,ClassDataStructuresBaseCost:40,ClassNetworksBaseCost:80,ClassAlgorithmsBaseCost:320,ClassManagementBaseCost:160,ClassLeadershipBaseCost:320,ClassGymBaseCost:120,ClassStudyComputerScienceBaseExp:.5,ClassDataStructuresBaseExp:1,ClassNetworksBaseExp:2,ClassAlgorithmsBaseExp:4,ClassManagementBaseExp:2,ClassLeadershipBaseExp:4,CodingContractBaseFactionRepGain:2500,CodingContractBaseCompanyRepGain:4e3,CodingContractBaseMoneyGain:75e6,AugmentationGraftingCostMult:3,AugmentationGraftingTimeBase:36e5,SoACostMult:7,SoARepMult:1.3,EntropyEffect:.98,TotalNumBitNodes:24,InfiniteLoopLimit:2e3,Donations:20,LatestUpdate:"\n ## [draft] v1.7.0 - 2022-04-13 to 2022-05-20\n\n#### Information\n\nModifications included between **2022-04-13** and **2022-05-20** 'b5e4d70' to '0fbe4a1').\n\n_[See Pull Requests on GitHub](https://github.com/search?q=user%3Adanielyxie%20repo%3Abitburner%20is%3Apr%20is%3Amerged%20merged%3A%222022-04-13T16%3A32%3A26.000Z..2022-05-20T06%3A08%3A51.000Z%22)_\n\n#### Merged Pull Requests\n\n- [Feature] Monaco Theme Editor (by @nickofolas) #[3438](https://github.com/danielyxie/bitburner/pull/3438)\n- [Fix] Dummy Stanek grid width (by @nickofolas) #[3442](https://github.com/danielyxie/bitburner/pull/3442)\n- [Fix] Theme browser assets not loading (by @nickofolas) #[3446](https://github.com/danielyxie/bitburner/pull/3446)\n- Accept valid JSON arrays in coding contracts (by @Savlik) #[3247](https://github.com/danielyxie/bitburner/pull/3247)\n- another dark theme? (by @hydroflame) #[3450](https://github.com/danielyxie/bitburner/pull/3450)\n- API: Add repFromDonation() to the Formula API (by @Hoekstraa) #[3461](https://github.com/danielyxie/bitburner/pull/3461)\n- API: Add safeguard to ns.killall(), preventing killing itself by default (by @Hoekstraa) #[3607](https://github.com/danielyxie/bitburner/pull/3607)\n- API: FIX #2993 sleeve.travel with invalid city names (by @TheMas3212) #[3458](https://github.com/danielyxie/bitburner/pull/3458)\n- API: Fix inconsistent return value in 'ns.grafting.getAugmentationGraftTime' (by @nickofolas) #[3539](https://github.com/danielyxie/bitburner/pull/3539)\n- API: Fix leak of real Employee object in hireEmployee (by @TheMas3212) #[3483](https://github.com/danielyxie/bitburner/pull/3483)\n- API: replace a number of references to workerscript.log with _ctx.log (by @TheMas3212) #[3470](https://github.com/danielyxie/bitburner/pull/3470)\n- API: Terminal screen can now be cleared from within scripts with ns.ui.clearTerminal() (by @Hoekstraa) #[3618](https://github.com/danielyxie/bitburner/pull/3618)\n- AUGMENTATIONS: Fix 'isSpecial' filter in helper (Removes NeuroFlux, Stanek's Gift, etc from gangs) (by @nickofolas) #[3565](https://github.com/danielyxie/bitburner/pull/3565)\n- AUGMENTATIONS: Fix Augmentation rep req not being properly influenced by BitNode multipliers (by @nickofolas) #[3652](https://github.com/danielyxie/bitburner/pull/3652)\n- AUGMENTATIONS: Fix NeuroFlux being applied improperly and migrate broken saves (by @nickofolas) #[3613](https://github.com/danielyxie/bitburner/pull/3613)\n- AUGMENTATIONS: Fix reputation check for faction augs (by @nickofolas) #[3609](https://github.com/danielyxie/bitburner/pull/3609)\n- AUGMENTATIONS: Tweak a couple small UI elements (by @nickofolas) #[3614](https://github.com/danielyxie/bitburner/pull/3614)\n- basic doc no longer hacker themed (by @hydroflame) #[3449](https://github.com/danielyxie/bitburner/pull/3449)\n- BITNODE: FIX #3546 BitVerse now shows proper BN level when accessed via flume (by @nickofolas) #[3550](https://github.com/danielyxie/bitburner/pull/3550)\n- BLADEBURNER: fixes #3648 : Automate console command capitalisation inconsistent (by @Vic1970) #[3647](https://github.com/danielyxie/bitburner/pull/3647)\n- BLADEBURNER: Fix #3594 Blade's Simulacrum worked without being installed (by @Undeemiss) #[3639](https://github.com/danielyxie/bitburner/pull/3639)\n- blood (by @hydroflame) #[3495](https://github.com/danielyxie/bitburner/pull/3495)\n- BUGFIX: getAugmentationCost response backwards (by @phyzical) #[3617](https://github.com/danielyxie/bitburner/pull/3617)\n- BUGFIX: Handle edge case in LZ compression code and fix docs (by @stalefishies) #[3581](https://github.com/danielyxie/bitburner/pull/3581)\n- BUGFIX: make bonustime for gang in miliseconds (by @phyzical) #[3578](https://github.com/danielyxie/bitburner/pull/3578)\n- BUGFIX: sleeve stale object refence during augmentation (by @phyzical) #[3601](https://github.com/danielyxie/bitburner/pull/3601)\n- Bugfix/corp updates (by @phyzical) #[3321](https://github.com/danielyxie/bitburner/pull/3321)\n- Bump async from 2.6.3 to 2.6.4 (by @dependabot[bot]) #[3463](https://github.com/danielyxie/bitburner/pull/3463)\n- CODINGCONTRACT: Fix #3391 Double contract reward exploit (by @Undeemiss) #[3646](https://github.com/danielyxie/bitburner/pull/3646)\n- CODINGCONTRACT: FIX #3484 BREAKING Fixed capitalization in contract name (by @Undeemiss) #[3537](https://github.com/danielyxie/bitburner/pull/3537)\n- CODINGCONTRACT: New \"Proper 2-Coloring of a Graph\" contract (by @Undeemiss) #[3530](https://github.com/danielyxie/bitburner/pull/3530)\n- CODINGCONTRACT: Three new compression contracts (by @stalefishies) #[3541](https://github.com/danielyxie/bitburner/pull/3541)\n- CODINGCONTRACT: Typo & clarity fixes to description of Encoded Binary to Integer contract (by @ActuallyCurtis) #[3469](https://github.com/danielyxie/bitburner/pull/3469)\n- CODINGCONTRACT: Updated description of 2-coloring contract (by @Undeemiss) #[3531](https://github.com/danielyxie/bitburner/pull/3531)\n- COMPANY: Fix #3551 Applying for a new job will not change active employer if player is performing company work (by @Snarling) #[3552](https://github.com/danielyxie/bitburner/pull/3552)\n- CORPORATIONS: Expose makeProducts on NSDivision interface (by @DavidGrinberg) #[3570](https://github.com/danielyxie/bitburner/pull/3570)\n- CORPORATIONS: Expose sales cost on NSMaterial interface (by @DavidGrinberg) #[3574](https://github.com/danielyxie/bitburner/pull/3574)\n- Corrected example grids found in Stanek help (by @Undeemiss) #[3441](https://github.com/danielyxie/bitburner/pull/3441)\n- Create program action no longer creates duplicates (by @Undeemiss) #[3436](https://github.com/danielyxie/bitburner/pull/3436)\n- DOCUMENTATION: Add descriptions for compression contracts (by @stalefishies) #[3559](https://github.com/danielyxie/bitburner/pull/3559)\n- DOCUMENTATION: Add new coding contract descriptions (by @stalefishies) #[3542](https://github.com/danielyxie/bitburner/pull/3542)\n- DOCUMENTATION: Clarify definition for installAugmentations() (by @PSEUDOSTAGE) #[3560](https://github.com/danielyxie/bitburner/pull/3560)\n- DOCUMENTATION: FIX #3516 \"cannot\" misspelled as \"cannnot\" (by @Undeemiss) #[3533](https://github.com/danielyxie/bitburner/pull/3533)\n- EDITOR: FIX #3502 Editor theme migration crash (by @nickofolas) #[3503](https://github.com/danielyxie/bitburner/pull/3503)\n- FEATURE: added logic to allow quitJob to be called from singularity (by @phyzical) #[3577](https://github.com/danielyxie/bitburner/pull/3577)\n- fix #3395 donating to special factions possible via singularity (by @TheMas3212) #[3456](https://github.com/danielyxie/bitburner/pull/3456)\n- fix b1tflum3 and destroyW0r1dD43m0n singularity functions to check for sf4 (by @TheMas3212) #[3443](https://github.com/danielyxie/bitburner/pull/3443)\n- Fix inconsistancy with trying to work for gang factions while running a gang (by @TheMas3212) #[3454](https://github.com/danielyxie/bitburner/pull/3454)\n- Fix infiltration rep BN mult calculation (by @trambelus) #[3632](https://github.com/danielyxie/bitburner/pull/3632)\n- Fix script editor settings. (by @hydroflame) #[3504](https://github.com/danielyxie/bitburner/pull/3504)\n- Fix test/jest/Netscript/DynamicRamCalculation.test.js (by @TheMas3212) #[3455](https://github.com/danielyxie/bitburner/pull/3455)\n- GRAFTING: Fix Grafting not being handled in singularity stop work (by @nickofolas) #[3568](https://github.com/danielyxie/bitburner/pull/3568)\n- GRAFTING: Implement sorting options (by @nickofolas) #[3654](https://github.com/danielyxie/bitburner/pull/3654)\n- INFILTRATION: Added new faction called infiltrators that provide infiltration specific augs. (by @phyzical) #[3241](https://github.com/danielyxie/bitburner/pull/3241)\n- INFILTRATION: Fix minigame cycle (by @nickofolas) #[3549](https://github.com/danielyxie/bitburner/pull/3549)\n- INFILTRATION: Fix phyzical WKS aug effects being applied before aug is installed (by @nickofolas) #[3555](https://github.com/danielyxie/bitburner/pull/3555)\n- INFILTRATION: Fix rep reward being substantially higher than intended (by @nickofolas) #[3562](https://github.com/danielyxie/bitburner/pull/3562)\n- INFILTRATION: New faction, Shadows of Anarchy, provides various augs to help infiltrations. (by @hydroflame) #[3543](https://github.com/danielyxie/bitburner/pull/3543)\n- INFILTRATION: Update gameplay UI (by @nickofolas) #[3587](https://github.com/danielyxie/bitburner/pull/3587)\n- keeping up to date (by @hydroflame) #[3432](https://github.com/danielyxie/bitburner/pull/3432)\n- Keeping up to date. (by @hydroflame) #[3561](https://github.com/danielyxie/bitburner/pull/3561)\n- Make .lit and .msg files clickable (by @Chris380) #[3453](https://github.com/danielyxie/bitburner/pull/3453)\n- MESSAGES: Added the name of NiteSec's server to their .msg (by @Undeemiss) #[3466](https://github.com/danielyxie/bitburner/pull/3466)\n- MISC: add better typing to Electron.tsx (by @taralx) #[3540](https://github.com/danielyxie/bitburner/pull/3540)\n- MISC: Added NS function closeTail to close tail windows (by @Undeemiss) #[3666](https://github.com/danielyxie/bitburner/pull/3666)\n- MISC: Adjust deps to current usage (by @taralx) #[3519](https://github.com/danielyxie/bitburner/pull/3519)\n- MISC: Close some GitHub issues that do not need action (by @Undeemiss) #[3640](https://github.com/danielyxie/bitburner/pull/3640)\n- MISC: Closing more GitHub issues I missed last time (by @Undeemiss) #[3665](https://github.com/danielyxie/bitburner/pull/3665)\n- MISC: Correct BB Skill point achievement name (by @Undeemiss) #[3571](https://github.com/danielyxie/bitburner/pull/3571)\n- MISC: Correct typos in getScriptRam docs. (by @nzdjb) #[3590](https://github.com/danielyxie/bitburner/pull/3590)\n- MISC: Fix #3125 BREAKING Renamed BN mult CorporationSoftCap to CorporationSoftcap (by @Undeemiss) #[3638](https://github.com/danielyxie/bitburner/pull/3638)\n- MISC: FIX #3593 Float errors can no longer prevent full usage of a server's available ram. (by @Snarling) #[3619](https://github.com/danielyxie/bitburner/pull/3619)\n- MISC: fix typing conflict between jest and cypress (by @taralx) #[3518](https://github.com/danielyxie/bitburner/pull/3518)\n- MISC: fix typing conflict between jest and cypress (by @taralx) #[3644](https://github.com/danielyxie/bitburner/pull/3644)\n- MISC: Fixed typo in exceptionAlert.ts (by @Undeemiss) #[3572](https://github.com/danielyxie/bitburner/pull/3572)\n- MISC: Fixed typos in game options (by @notacompsciguy) #[3584](https://github.com/danielyxie/bitburner/pull/3584)\n- MISC: HammingCodingContracts need rework (by @Hedrauta) #[3479](https://github.com/danielyxie/bitburner/pull/3479)\n- MISC: Implemented infinite loop safety net. (by @hydroflame) #[3624](https://github.com/danielyxie/bitburner/pull/3624)\n- MISC: make jQuery use explicit (by @taralx) #[3517](https://github.com/danielyxie/bitburner/pull/3517)\n- MISC: Make tutorial explain ns1 vs ns2 better (by @hydroflame) #[3586](https://github.com/danielyxie/bitburner/pull/3586)\n- MISC: Remove comments that describe nonexistent augs (by @Undeemiss) #[3569](https://github.com/danielyxie/bitburner/pull/3569)\n- MISC: update @types/numeral and fix type errors (by @taralx) #[3521](https://github.com/danielyxie/bitburner/pull/3521)\n- MISC: Update logic for stats page BitNode level (by @nickofolas) #[3512](https://github.com/danielyxie/bitburner/pull/3512)\n- MISC: upgrade to eslint v8 (by @taralx) #[3523](https://github.com/danielyxie/bitburner/pull/3523)\n- MISC: Wrap most of the API in the new api wrapper (by @hydroflame) #[3627](https://github.com/danielyxie/bitburner/pull/3627)\n- OPTIONS: Fix sliders not sliding correctly (by @nickofolas) #[3642](https://github.com/danielyxie/bitburner/pull/3642)\n- REFACTOR: augmentation cost, rep cost and level to be calculated in place (by @phyzical) #[3544](https://github.com/danielyxie/bitburner/pull/3544)\n- REFACTOR: augmentation isSpecial adjustments (by @phyzical) #[3564](https://github.com/danielyxie/bitburner/pull/3564)\n- Reran npm format and lint to fix formatting (by @Undeemiss) #[3434](https://github.com/danielyxie/bitburner/pull/3434)\n- Revert \"MISC: fix typing conflict between jest and cypress\" (by @hydroflame) #[3608](https://github.com/danielyxie/bitburner/pull/3608)\n- Revert \"MISC: HammingCodingContracts need rework\" (by @hydroflame) #[3500](https://github.com/danielyxie/bitburner/pull/3500)\n- revert theme (by @hydroflame) #[3451](https://github.com/danielyxie/bitburner/pull/3451)\n- Singularity: Fix #3489 Disable checkTixApiAccess for purchase4SMarketData (by @DavidGrinberg) #[3490](https://github.com/danielyxie/bitburner/pull/3490)\n- SLEEVES: Fix issues with Sleeve UI crashing when Sleeve task faction becomes gang faction (by @nickofolas) #[3557](https://github.com/danielyxie/bitburner/pull/3557)\n- STANEK: Fix #3196 Charging booster fragments throws an error (by @Undeemiss) #[3637](https://github.com/danielyxie/bitburner/pull/3637)\n- STANEK: FIX #3277 Can no longer overlap rotated fragments (by @Undeemiss) #[3460](https://github.com/danielyxie/bitburner/pull/3460)\n- STANEK: FIX #3282 Added NS function stanek.acceptGift (by @Undeemiss) #[3513](https://github.com/danielyxie/bitburner/pull/3513)\n- STANEK: Properly reapply entropy in Stanek's Gift (by @nickofolas) #[3673](https://github.com/danielyxie/bitburner/pull/3673)\n- STANEK: Stanek NS functions correctly throw errors when stanek not installed (by @Undeemiss) #[3660](https://github.com/danielyxie/bitburner/pull/3660)\n- Started collecting lore so that additions to it are simpler (by @Undeemiss) #[3465](https://github.com/danielyxie/bitburner/pull/3465)\n- TERMINAL: FIX #3492 Allow cd .. even when destination directory is empty (by @Snarling) #[3525](https://github.com/danielyxie/bitburner/pull/3525)\n- TERMINAL: FIX #3651 Make directory name regex more flexible (by @Dane-Horn) #[3653](https://github.com/danielyxie/bitburner/pull/3653)\n- TOOLING: Add GitHub action to validate PR titles (by @MartinFournier) #[3471](https://github.com/danielyxie/bitburner/pull/3471)\n- UI FIX #3485 - Allow bulk purchasing when smart supply is enabled (by @phyzical) #[3486](https://github.com/danielyxie/bitburner/pull/3486)\n- UI: Change text color of Augmentations page backup button (by @nickofolas) #[3511](https://github.com/danielyxie/bitburner/pull/3511)\n- UI: FIX #1754 Stanek effect summary & slight tweak. (by @borisflagell) #[3622](https://github.com/danielyxie/bitburner/pull/3622)\n- UI: FIX #2228,#2958 Fix tab highlights and highlight files not on home. (by @phyzical) #[2989](https://github.com/danielyxie/bitburner/pull/2989)\n- UI: FIX #2256 Hacknet server's upgrade tooltip were not handling RAM… (by @borisflagell) #[3532](https://github.com/danielyxie/bitburner/pull/3532)\n- UI: FIX #2741 Allow using modifier keys inside the typing infiltration (by @Dane-Horn) #[3634](https://github.com/danielyxie/bitburner/pull/3634)\n- UI: FIX #2829 Remove defeated NPC gangs from territory page (by @Dane-Horn) #[3633](https://github.com/danielyxie/bitburner/pull/3633)\n- UI: FIX #3313 Streamline the GraftingRoot page by making it rerender. (by @borisflagell) #[3558](https://github.com/danielyxie/bitburner/pull/3558)\n- UI: FIX #3341 Enable touch-clicks in react-draggable (by @Snarling) #[3488](https://github.com/danielyxie/bitburner/pull/3488)\n- UI: FIX #3415 Tweak Manage Gang button visibility (by @borisflagell) #[3528](https://github.com/danielyxie/bitburner/pull/3528)\n- UI: FIX #3457 autocomplete suggestions no longer require hovering terminal input (by @Snarling) #[3493](https://github.com/danielyxie/bitburner/pull/3493)\n- UI: FIX #3473 'mv' now says destination script is running instead of returning an error (by @Hoekstraa) #[3474](https://github.com/danielyxie/bitburner/pull/3474)\n- UI: FIX #3522 realigned autocomplete popup (by @Snarling) #[3524](https://github.com/danielyxie/bitburner/pull/3524)\n- UI: FIX #3592 Sidebar and bash shortcuts now work on MacOS with US-like layouts (by @Hoekstraa) #[3605](https://github.com/danielyxie/bitburner/pull/3605)\n- UI: Fix Agility BitNode multiplier not appearing in UI (by @nickofolas) #[3662](https://github.com/danielyxie/bitburner/pull/3662)\n- UI: Fix exclusive augs not always showing as purchasable through gangs when they should (by @nickofolas) #[3676](https://github.com/danielyxie/bitburner/pull/3676)\n- UI: Fix the achievement covenant icon was not shown (by @Risenafis) #[3510](https://github.com/danielyxie/bitburner/pull/3510)\n- UI: Fix z-index of modals overriding everything (by @nickofolas) #[3620](https://github.com/danielyxie/bitburner/pull/3620)\n- UI: lightweight description update on \"increase maximum money\" hash spending option. (by @borisflagell) #[3547](https://github.com/danielyxie/bitburner/pull/3547)\n- UI: Minor improvements to log boxes (by @nickofolas) #[3641](https://github.com/danielyxie/bitburner/pull/3641)\n- UI: Overhaul GameOptions UI (by @nickofolas) #[3505](https://github.com/danielyxie/bitburner/pull/3505)\n- UI: Positioning improved for tail titlebar buttons, and tail window has minimum size constraints. (by @Snarling) #[3548](https://github.com/danielyxie/bitburner/pull/3548)\n- UI: Redesign purchasable Augmentations (by @nickofolas) #[3545](https://github.com/danielyxie/bitburner/pull/3545)\n- UI: Refactor and redesign WorkInProgress interface (by @nickofolas) #[3611](https://github.com/danielyxie/bitburner/pull/3611)\n- UI: Refactors, redesigns, and new section to stats page (by @nickofolas) #[3626](https://github.com/danielyxie/bitburner/pull/3626)\n- UI: Sort and color Graft Augmentation list (by @jaype87) #[3616](https://github.com/danielyxie/bitburner/pull/3616)\n- UI: Update Factions list interface (by @nickofolas) #[3675](https://github.com/danielyxie/bitburner/pull/3675)\n- WORK: FIX #3435 Quitting the active job now sets first remaining job as active (by @Snarling) #[3507](https://github.com/danielyxie/bitburner/pull/3507)\n- WORK: Refactor work types to use 'enum's instead of constants (by @nickofolas) #[3612](https://github.com/danielyxie/bitburner/pull/3612)\n\n#### Other Changes\n\n- increase donation counter (by @hydroflame) - [8456410](https://github.com/danielyxie/bitburner/commit/84564100e90c46ae4b816853c2cdea0bc309af4d)\n- allbuild commit 7f9e3775 (by @hydroflame) - [791c19c](https://github.com/danielyxie/bitburner/commit/791c19c4fe447c9231bfb423b9fc48114e783b43)\n- allbuild commit bcbda22a (by @hydroflame) - [032c440](https://github.com/danielyxie/bitburner/commit/032c440eaeb069eecd720ec2f8e069f705a0c1b4)\n- fix documentation for getDarkwebPrograms (by @hydroflame) - [4056956](https://github.com/danielyxie/bitburner/commit/4056956c2ada37946333bdad44cb0b6eb3909bf8)\n- support ASNI (by @hydroflame) - [36c7ef1](https://github.com/danielyxie/bitburner/commit/36c7ef1ad7ea8bb69fca23bce5883a3c2e23f1e0)\n- allbuild commit 22b6d0d5 (by @hydroflame) - [b46718d](https://github.com/danielyxie/bitburner/commit/b46718d188880ecf716ae045861d81d61e00af4b)\n- allbuild commit 36c7ef1a (by @hydroflame) - [d0ebf5e](https://github.com/danielyxie/bitburner/commit/d0ebf5e14e0498cb063fde35d63c9f59f2c01e35)\n- Update documentation for employee (by @hydroflame) - [100e81c](https://github.com/danielyxie/bitburner/commit/100e81c8ab4a408f74cc9bd9ffe2b8bad3d03462)\n- allbuild commit c799b291 (by @hydroflame) - [f5f5879](https://github.com/danielyxie/bitburner/commit/f5f5879fc380678d978e2b0a29ba7b6f0b4c9ec0)\n- ideas (by @hydroflame) - [0121fee](https://github.com/danielyxie/bitburner/commit/0121fee6e4c690d01650d1e68a80ea363bb48bce)\n- allbuild commit 0121fee6 (by @hydroflame) - [5c417e9](https://github.com/danielyxie/bitburner/commit/5c417e9b4df236df8bf3e2f8262b7bce87c934df)\n- Update codebase for stanek (by @hydroflame) - [c2b4a5b](https://github.com/danielyxie/bitburner/commit/c2b4a5b52a2162d2e49c7317b0a60a349984eb47)\n- fix lint (by @hydroflame) - [4cc518f](https://github.com/danielyxie/bitburner/commit/4cc518f37723aafb3168b64cd689408afdb74877)\n- Fix (by @hydroflame) - [9af553f](https://github.com/danielyxie/bitburner/commit/9af553f63cb1380795550648b0134b608564fab8)\n- Fix stanek leaking classes (by @hydroflame) - [fda3f02](https://github.com/danielyxie/bitburner/commit/fda3f02d73dba27034128c9be5e810a51e475e38)\n- fix conflicts (by @hydroflame) - [ca1a2aa](https://github.com/danielyxie/bitburner/commit/ca1a2aad333fa838b6d0e57f89e1cedba086a4a0)\n- Nerf noodle bar.\n\n"}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var a=n(347),r=n(0),i=n.n(r),o=n(1);function s(e,t){"string"!=typeof e?a.a.emit(e):a.a.emit(i.a.createElement(o.a,{component:"span",sx:t,dangerouslySetInnerHTML:{__html:e}}))}},function(e,t,n){"use strict";let a;n.d(t,"a",(function(){return a})),function(e){e.Aevum="Aevum",e.Chongqing="Chongqing",e.Ishima="Ishima",e.NewTokyo="New Tokyo",e.Sector12="Sector-12",e.Volhaven="Volhaven"}(a||(a={}))},,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var a=n(0),r=n(6),i=n(118),o=n(142);const s=Object(i.a)(e=>Object(o.a)({unbuyable:{color:e.palette.action.disabled},money:{color:e.colors.money}}));function l(e){const t=s();if(void 0!==e.player){if("number"!=typeof e.money)throw new Error("if player if provided, money should be number, contact dev");if(!e.player.canAfford(e.money))return a.createElement("span",{className:t.unbuyable},r.a.formatMoney(e.money))}return a.createElement("span",{className:t.money},"number"==typeof e.money?r.a.formatMoney(e.money):e.money)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var a=n(153);const r=Object.assign({},a.b)},function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return o}));var a=n(394);function r(e,t){if(null==t)return null;if("object"==typeof t&&"string"==typeof t.ctor&&void 0!==t.data){if("AllServersMap"===t.ctor)return console.warn("Converting AllServersMap for v0.43.1"),t.data;const e=r.constructors[t.ctor];if("function"==typeof e&&"function"==typeof e.fromJSON){const n=e.fromJSON(t);return void 0!==e.validationData&&Object(a.b)(n,e.validationData),n}}return t}function i(e,t,n){n||(n=Object.keys(t));const a={};for(let e=0;e<n.length;++e){const r=n[e];a[r]=t[r]}return{ctor:e,data:a}}function o(e,t){const n=new e;for(const e in t)n[e]=t[e];return n}(r||(r={})).constructors={}},,function(e,t,n){"use strict";n.d(t,"d",(function(){return r})),n.d(t,"h",(function(){return i})),n.d(t,"c",(function(){return o})),n.d(t,"f",(function(){return s})),n.d(t,"g",(function(){return l})),n.d(t,"e",(function(){return c})),n.d(t,"b",(function(){return f})),n.d(t,"a",(function(){return u}));var a=n(148);function r(e,t=!1){e=Math.floor(e);const n=Math.floor(e/1e3),a=Math.floor(n/86400),r=n%86400,i=Math.floor(r/3600),o=r%3600,s=Math.floor(o/60),l=o%60,c=(()=>{let t=""+e%1e3;for(;t.length<3;)t="0"+t;return t})();let f="";return a>0&&(f+=a+" days "),i>0&&(f+=i+" hours "),s>0&&(f+=s+" minutes "),f+=(t?`${l}.${c}`:""+l)+" seconds",f}function i(e){if(!o(e))return"";if(0===e.length)return"";const t=e.concat().sort(),n=t[0],a=t[t.length-1],r=n.length;let i=0;for(;i<r&&(s=n.charAt(i),l=a.charAt(i),s.toUpperCase()===l.toUpperCase());)i++;var s,l;return n.substring(0,i)}function o(e){return e.every(a.a)}function s(e,t=0){return e.toLocaleString(void 0,{maximumFractionDigits:t,minimumFractionDigits:t})}function l(e){let t="";const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";for(let a=0;a<e;a++)t+=n.charAt(Math.floor(Math.random()*n.length));return t}function c(e,t=0){let n=3735928559^t,a=1103547991^t;for(let t,r=0;r<e.length;r++)t=e.charCodeAt(r),n=Math.imul(n^t,2654435761),a=Math.imul(a^t,1597334677);return n=Math.imul(n^n>>>16,2246822507)^Math.imul(a^a>>>13,3266489909),a=Math.imul(a^a>>>16,2246822507)^Math.imul(n^n>>>13,3266489909),(4294967296*(2097151&a)+(n>>>0)).toString(16)}function f(e){return e.charAt(0).toUpperCase()+e.slice(1)}function u(e){return e.split(" ").map(e=>f(e)).join(" ")}},function(e,t,n){"use strict";let a,r;n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return r})),function(e){e.ENTER="Enter",e.ESC="Escape",e.TAB="Tab",e.SPACE=" ",e.BACKSPACE="Backspace",e.UP_ARROW="ArrowUp",e.DOWN_ARROW="ArrowDown",e.LEFT_ARROW="ArrowLeft",e.RIGHT_ARROW="ArrowRight",e.QUOTE="'",e.DOUBLE_QUOTE='"',e.OPEN_BRACKET="[",e.CLOSE_BRACKET="]",e.LESS_THAN="<",e.GREATER_THAN=">",e.OPEN_PARENTHESIS="(",e.CLOSE_PARENTHESIS=")",e.OPEN_BRACE="{",e.CLOSE_BRACE="}",e.PIPE="|",e.DOT=".",e.FORWARD_SLASH="/",e.HYPHEN="-",e.HASH="#",e.k0="0",e.k1="1",e.k2="2",e.k3="3",e.k4="4",e.k5="5",e.k6="6",e.k7="7",e.k8="8",e.k9="9",e.A="a",e.B="b",e.C="c",e.D="d",e.E="e",e.F="f",e.G="g",e.H="h",e.I="i",e.J="j",e.K="k",e.L="l",e.M="m",e.N="n",e.O="o",e.P="p",e.Q="q",e.R="r",e.S="s",e.T="t",e.U="u",e.V="v",e.W="w",e.X="x",e.Y="y",e.Z="z"}(a||(a={})),function(e){e.ENTER="Enter",e.ESC="Escape",e.TAB="Tab",e.SPACE="Space",e.BACKSPACE="Backspace",e.UP_ARROW="ArrowUp",e.DOWN_ARROW="ArrowDown",e.LEFT_ARROW="ArrowLeft",e.RIGHT_ARROW="ArrowRight",e.BACKWARD_SLASH="Backslash",e.BACKQUOTE="Backquote",e.COMMA="Comma",e.DOT="Period",e.EQUAL="Equal",e.FORWARD_SLASH="Slash",e.HYPHEN="Minus",e.SEMICOLON="Semicolon",e.QUOTE="Quote",e.k0="Digit0",e.k1="Digit1",e.k2="Digit2",e.k3="Digit3",e.k4="Digit4",e.k5="Digit5",e.k6="Digit6",e.k7="Digit7",e.k8="Digit8",e.k9="Digit9",e.A="KeyA",e.B="KeyB",e.C="KeyC",e.D="KeyD",e.E="KeyE",e.F="KeyF",e.G="KeyG",e.H="KeyH",e.I="KeyI",e.J="KeyJ",e.K="KeyK",e.L="KeyL",e.M="KeyM",e.N="KeyN",e.O="KeyO",e.P="KeyP",e.Q="KeyQ",e.R="KeyR",e.S="KeyS",e.T="KeyT",e.U="KeyU",e.V="KeyV",e.W="KeyW",e.X="KeyX",e.Y="KeyY",e.Z="KeyZ"}(r||(r={}))},function(e,t,n){"use strict";let a;n.d(t,"a",(function(){return a})),function(e){e[e.ActiveScripts=0]="ActiveScripts",e[e.Augmentations=1]="Augmentations",e[e.BitVerse=2]="BitVerse",e[e.Bladeburner=3]="Bladeburner",e[e.City=4]="City",e[e.Corporation=5]="Corporation",e[e.CreateProgram=6]="CreateProgram",e[e.ScriptEditor=7]="ScriptEditor",e[e.DevMenu=8]="DevMenu",e[e.Faction=9]="Faction",e[e.Factions=10]="Factions",e[e.Gang=11]="Gang",e[e.Hacknet=12]="Hacknet",e[e.Infiltration=13]="Infiltration",e[e.Job=14]="Job",e[e.Milestones=15]="Milestones",e[e.Options=16]="Options",e[e.Grafting=17]="Grafting",e[e.Sleeves=18]="Sleeves",e[e.Stats=19]="Stats",e[e.StockMarket=20]="StockMarket",e[e.Terminal=21]="Terminal",e[e.Travel=22]="Travel",e[e.Tutorial=23]="Tutorial",e[e.Work=24]="Work",e[e.BladeburnerCinematic=25]="BladeburnerCinematic",e[e.Location=26]="Location",e[e.Loading=27]="Loading",e[e.StaneksGift=28]="StaneksGift",e[e.Recovery=29]="Recovery",e[e.Achievements=30]="Achievements",e[e.ThemeBrowser=31]="ThemeBrowser",e[e.ImportSave=32]="ImportSave"}(a||(a={}))},function(e,t,n){"use strict";n.d(t,"d",(function(){return m})),n.d(t,"c",(function(){return h})),n.d(t,"b",(function(){return d})),n.d(t,"g",(function(){return p})),n.d(t,"e",(function(){return g})),n.d(t,"a",(function(){return y})),n.d(t,"f",(function(){return b})),n.d(t,"i",(function(){return E})),n.d(t,"h",(function(){return v})),n.d(t,"j",(function(){return k}));var a=n(44),r=n(470),i=n(348),o=n(33),s=n(22),l=n(1032),c=n(87),f=n(21);let u={};function m(e){if(u.hasOwnProperty(e)){const t=u[e];if(t)return t}if(!Object(l.a)(e))return function(e){for(const t of Object.keys(u)){const n=u[t];if(n.hostname==e)return n}return null}(e);const t=function(e){for(const t of Object.keys(u)){const n=u[t];if(n.ip===e)return n}}(e);return void 0!==t?t:null}function h(){const e=[];for(const t of Object.keys(u))e.push(u[t]);return e}function d(e){for(const t of Object.keys(u)){const n=u[t];if(n.ip===e||n.hostname===e){delete u[t];break}}}function p(e){return null!=u[e]}function g(){let e;do{e=Object(i.a)()}while(p(e));return e}function y(e){if(m(e.hostname))throw console.warn("Hostname of the server thats being added: "+e.hostname),console.warn("The server that already has this IP is: "+u[e.hostname].hostname),new Error("Error: Trying to add a server with an existing IP");u[e.hostname]=e}function b(e){const t=[];for(let e=0;e<15;e++)t.push([]);const n=["hackDifficulty","moneyAvailable","requiredHackingSkill","serverGrowth"],i=e=>{switch(typeof e){case"number":return e;case"object":return Object(o.a)(e.min,e.max);default:throw Error(`Do not know how to convert the type '${typeof e}' to a number`)}};for(const e of r.a){const r={hostname:e.hostname,ip:g(),numOpenPortsRequired:e.numOpenPortsRequired,organizationName:e.organizationName};void 0!==e.maxRamExponent&&(r.maxRam=Math.pow(2,i(e.maxRamExponent)));for(const t of n)void 0!==e[t]&&(r[t]=i(e[t]));const o=new a.a(r);for(const t of e.literature||[])o.messages.push(t);o.hostname===c.a.WorldDaemon&&(o.requiredHackingSkill*=f.a.WorldDaemonDifficulty),y(o),void 0!==e.networkLayer&&t[i(e.networkLayer)-1].push(o)}const s=(e,t)=>{for(const r of e)n=r,a=t(),n.serversOnNetwork.push(a.hostname),a.serversOnNetwork.push(n.hostname);var n,a};s(t[0],()=>e);for(let e=1;e<t.length;e++)s(t[e],()=>{return(n=t[e-1])[Math.floor(Math.random()*n.length)];var n})}function E(){for(const e of Object.keys(u))delete u[e];u={}}function v(e){u=JSON.parse(e,s.c)}function k(e=!1){const t=JSON.parse(JSON.stringify(u),s.c);for(const n of Object.keys(t)){const a=t[n];if(e)a.runningScripts=[];else for(let e=0;e<a.runningScripts.length;++e){const t=a.runningScripts[e];t.logs.length=0,t.logs=[]}}return JSON.stringify(t)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o}));var a=n(0),r=n.n(a);const i={Player:r.a.createContext({}),Router:r.a.createContext({})},o={Player:()=>Object(a.useContext)(i.Player),Router:()=>Object(a.useContext)(i.Router)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"d",(function(){return s})),n.d(t,"b",(function(){return l})),n.d(t,"c",(function(){return c}));var a=n(189),r=n(385),i=n(22);let o={};function s(e){o=JSON.parse(e,i.c);for(const e of Object.keys(o))try{o[e].getInfo()}catch(t){console.error("deleting "+e),delete o[e]}}function l(e){return o.hasOwnProperty(e)}function c(){for(const e of Object.keys(r.a))f(new a.a(e))}function f(e){if(!(e instanceof a.a))throw new Error("Invalid argument 'newFactionObject' passed into resetFaction()");const t=e.name;l(t)&&(e.favor=o[t].favor,delete o[t]),function(e){const t=e.name;o[t]=e}(e)}},,function(e,t,n){"use strict";n.d(t,"j",(function(){return a})),n.d(t,"d",(function(){return r})),n.d(t,"i",(function(){return i})),n.d(t,"f",(function(){return o})),n.d(t,"b",(function(){return s})),n.d(t,"h",(function(){return l})),n.d(t,"a",(function(){return c})),n.d(t,"e",(function(){return f})),n.d(t,"k",(function(){return u})),n.d(t,"c",(function(){return m})),n.d(t,"g",(function(){return h}));const a=["Software Engineering Intern","Junior Software Engineer","Senior Software Engineer","Lead Software Developer","Head of Software","Head of Engineering","Vice President of Technology","Chief Technology Officer"],r=["IT Intern","IT Analyst","IT Manager","Systems Administrator"],i=["Security Engineer"],o=["Network Engineer","Network Administrator"],s=["Business Intern","Business Analyst","Business Manager","Operations Manager","Chief Financial Officer","Chief Executive Officer"],l=["Police Officer","Police Chief","Security Guard","Security Officer","Security Supervisor","Head of Security"],c=["Field Agent","Secret Agent","Special Operative"],f=["Waiter","Employee"],u=["Software Consultant","Senior Software Consultant"],m=["Business Consultant","Senior Business Consultant"],h=["Part-time Waiter","Part-time Employee"]},,function(e,t,n){"use strict";function a(e,t){const n=Math.min(e,t),a=Math.max(e,t);return Math.floor(Math.random()*(a-n+1))+n}n.d(t,"a",(function(){return a}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return y}));var a=n(0),r=n(29),i=n(6),o=n(20),s=n(22),l=n(4),c=n(11),f=n(12),u=n(73),m=n(21),h=n(115),d=n(360),p=n(240);function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class y{constructor(e={info:"",moneyCost:0,name:"",repCost:0,factions:[]}){g(this,"baseCost",0),g(this,"baseRepRequirement",0),g(this,"isSpecial",!1),g(this,"name",""),g(this,"prereqs",[]),g(this,"mults",Object(p.a)()),g(this,"factions",[]),this.name=e.name,this.info=e.info,this.prereqs=e.prereqs?e.prereqs:[],this.baseRepRequirement=e.repCost,Object.freeze(this.baseRepRequirement),this.baseCost=e.moneyCost,Object.freeze(this.baseCost),this.factions=e.factions,e.isSpecial&&(this.isSpecial=!0),e.hacking&&(this.mults.hacking=e.hacking),e.strength&&(this.mults.strength=e.strength),e.defense&&(this.mults.defense=e.defense),e.dexterity&&(this.mults.dexterity=e.dexterity),e.agility&&(this.mults.agility=e.agility),e.charisma&&(this.mults.charisma=e.charisma),e.hacking_exp&&(this.mults.hacking_exp=e.hacking_exp),e.strength_exp&&(this.mults.strength_exp=e.strength_exp),e.defense_exp&&(this.mults.defense_exp=e.defense_exp),e.dexterity_exp&&(this.mults.dexterity_exp=e.dexterity_exp),e.agility_exp&&(this.mults.agility_exp=e.agility_exp),e.charisma_exp&&(this.mults.charisma_exp=e.charisma_exp),e.hacking_chance&&(this.mults.hacking_chance=e.hacking_chance),e.hacking_speed&&(this.mults.hacking_speed=e.hacking_speed),e.hacking_money&&(this.mults.hacking_money=e.hacking_money),e.hacking_grow&&(this.mults.hacking_grow=e.hacking_grow),e.company_rep&&(this.mults.company_rep=e.company_rep),e.faction_rep&&(this.mults.faction_rep=e.faction_rep),e.crime_money&&(this.mults.crime_money=e.crime_money),e.crime_success&&(this.mults.crime_success=e.crime_success),e.work_money&&(this.mults.work_money=e.work_money),e.hacknet_node_money&&(this.mults.hacknet_node_money=e.hacknet_node_money),e.hacknet_node_purchase_cost&&(this.mults.hacknet_node_purchase_cost=e.hacknet_node_purchase_cost),e.hacknet_node_ram_cost&&(this.mults.hacknet_node_ram_cost=e.hacknet_node_ram_cost),e.hacknet_node_core_cost&&(this.mults.hacknet_node_core_cost=e.hacknet_node_core_cost),e.hacknet_node_level_cost&&(this.mults.hacknet_node_level_cost=e.hacknet_node_level_cost),e.bladeburner_max_stamina&&(this.mults.bladeburner_max_stamina=e.bladeburner_max_stamina),e.bladeburner_stamina_gain&&(this.mults.bladeburner_stamina_gain=e.bladeburner_stamina_gain),e.bladeburner_analysis&&(this.mults.bladeburner_analysis=e.bladeburner_analysis),e.bladeburner_success_chance&&(this.mults.bladeburner_success_chance=e.bladeburner_success_chance),void 0===e.stats?this.stats=function(e,t,n){const r=(e,t=0)=>e===1.0777-1?"7.77%":e===1.777-1?"77.7%":i.a.formatPercentage(e,t);let s=a.createElement(a.Fragment,null,"Effects:");return 1!==e.hacking&&e.hacking==e.strength&&e.hacking==e.defense&&e.hacking==e.dexterity&&e.hacking==e.agility&&e.hacking==e.charisma?s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(e.hacking-1)," all skills"):(1!==e.hacking&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(e.hacking-1)," hacking skill")),1!==e.strength&&e.strength==e.defense&&e.strength==e.dexterity&&e.strength==e.agility?s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(e.strength-1)," combat skills"):(1!==e.strength&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(e.strength-1)," strength skill")),1!==e.defense&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(e.defense-1)," defense skill")),1!==e.dexterity&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(e.dexterity-1)," dexterity skill")),1!==e.agility&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(e.agility-1)," agility skill"))),1!==e.charisma&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(e.charisma-1)," charisma skill"))),1!==e.hacking_exp&&e.hacking_exp===e.strength_exp&&e.hacking_exp===e.defense_exp&&e.hacking_exp===e.dexterity_exp&&e.hacking_exp===e.agility_exp&&e.hacking_exp===e.charisma_exp?s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(e.hacking_exp-1)," exp for all skills"):(1!==e.hacking_exp&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(e.hacking_exp-1)," hacking exp")),1!==e.strength_exp&&e.strength_exp===e.defense_exp&&e.strength_exp===e.dexterity_exp&&e.strength_exp===e.agility_exp?s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(e.strength_exp-1)," combat exp"):(1!==e.strength_exp&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(e.strength_exp-1)," strength exp")),1!==e.defense_exp&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(e.defense_exp-1)," defense exp")),1!==e.dexterity_exp&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(e.dexterity_exp-1)," dexterity exp")),1!==e.agility_exp&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(e.agility_exp-1)," agility exp"))),1!==e.charisma_exp&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(e.charisma_exp-1)," charisma exp"))),1!==e.hacking_speed&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(e.hacking_speed-1)," faster hack(), grow(), and weaken()")),1!==e.hacking_chance&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(e.hacking_chance-1)," hack() success chance")),1!==e.hacking_money&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(e.hacking_money-1)," hack() power")),1!==e.hacking_grow&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(e.hacking_grow-1)," grow() power")),1!==e.faction_rep&&e.faction_rep===e.company_rep?s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(e.faction_rep-1)," reputation from factions and companies"):(1!==e.faction_rep&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(e.faction_rep-1)," reputation from factions")),1!==e.company_rep&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(e.company_rep-1)," reputation from companies"))),1!==e.crime_money&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(e.crime_money-1)," crime money")),1!==e.crime_success&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(e.crime_success-1)," crime success rate")),1!==e.work_money&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(e.work_money-1)," work money")),1!==e.hacknet_node_money&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(e.hacknet_node_money-1)," hacknet production")),1!==e.hacknet_node_purchase_cost&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"-",r(-(e.hacknet_node_purchase_cost-1))," hacknet nodes cost")),1!==e.hacknet_node_level_cost&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"-",r(-(e.hacknet_node_level_cost-1))," hacknet nodes upgrade cost")),1!==e.bladeburner_max_stamina&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(e.bladeburner_max_stamina-1)," Bladeburner Max Stamina")),1!==e.bladeburner_stamina_gain&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(e.bladeburner_stamina_gain-1)," Bladeburner Stamina gain")),1!==e.bladeburner_analysis&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(e.bladeburner_analysis-1)," Bladeburner Field Analysis effectiveness")),1!==e.bladeburner_success_chance&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(e.bladeburner_success_chance-1)," Bladeburner Contracts and Operations success chance")),n&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"Start with ",a.createElement(o.a,{money:n})," after installing Augmentations.")),t&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"Start with ",t.join(" and ")," after installing Augmentations.")),s}(this.mults,e.programs,e.startingMoney):this.stats=e.stats}addToFactions(e){for(let t=0;t<e.length;++t){const n=r.a[e[t]];null!=n?n.augmentations.push(this.name):console.warn("In Augmentation.addToFactions(), could not find faction with this name: "+e[t])}}getCost(e){const t=u.a[this.name];let n=t.baseCost,a=t.baseRepRequirement;if(t.name===c.a.NeuroFluxGovernor){let r=this.getLevel(e);--r;const i=Math.pow(f.a.NeuroFluxGovernorLevelMult,r);a=t.baseRepRequirement*i*m.a.AugmentationRepCost,n=t.baseCost*i*m.a.AugmentationMoneyCost;for(let t=0;t<e.queuedAugmentations.length;++t)n*=Object(h.c)()}else if(t.factions.includes(l.a.ShadowsOfAnarchy)){const r=Object(d.e)().map(e=>e.name),i=Math.pow(f.a.SoACostMult,r.filter(t=>e.hasAugmentation(t)).length);n=t.baseCost*i,r.find(e=>e===t.name)&&(a=t.baseRepRequirement*i)}else n=t.baseCost*Object(h.d)()*m.a.AugmentationMoneyCost,a=t.baseRepRequirement*m.a.AugmentationRepCost;return{moneyCost:n,repCost:a}}getLevel(e){if(this.name===c.a.NeuroFluxGovernor){let t=0;for(let n=0;n<e.augmentations.length;++n)e.augmentations[n].name===c.a.NeuroFluxGovernor&&(t=e.augmentations[n].level);for(let n=0;n<e.queuedAugmentations.length;++n)e.queuedAugmentations[n].name==c.a.NeuroFluxGovernor&&++t;return t+1}return 0}addToAllFactions(){for(const e of Object.keys(r.a))if(r.a.hasOwnProperty(e)){const t=r.a[e];if(null==t){console.warn("Invalid Faction object in addToAllFactions(). Key value: "+e);continue}if(t.getInfo().special)continue;t.augmentations.push(this.name)}}toJSON(){return Object(s.b)("Augmentation",this)}static fromJSON(e){return Object(s.a)(y,e.data)}}s.c.constructors.Augmentation=y},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var a=n(18),r=n(1482),i=n(814),o=n(142),s=n(118),l=n(0),c=n.n(l);const f=Object(s.a)(e=>Object(o.a)({modal:{display:"flex",alignItems:"center",justifyContent:"center"},paper:{backgroundColor:e.palette.background.default,border:"2px solid "+e.palette.primary.main,boxShadow:`0px 3px 5px -1px ${e.palette.primary.dark},0px 5px 8px 0px ${e.palette.primary.dark},0px 1px 14px 0px ${e.palette.primary.dark}`,padding:2,maxWidth:"80%",maxHeight:"80%",overflow:"auto","&::-webkit-scrollbar":{display:"none"},scrollbarWidth:"none"}})),u=e=>{const t=f();return c.a.createElement(i.a,{disableRestoreFocus:!0,disableScrollLock:!0,disableEnforceFocus:!0,disableAutoFocus:!0,open:e.open,onClose:e.onClose,closeAfterTransition:!0,className:t.modal,sx:e.sx},c.a.createElement(r.a,{in:e.open},c.a.createElement("div",{className:t.paper},c.a.createElement(a.a,{sx:{m:2}},e.children))))}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var a=n(15);const r=["START","PURCHASE","PRODUCTION","SALE","EXPORT"],i={INITIALSHARES:1e9,SHARESPERPRICEUPDATE:1e6,IssueNewSharesCooldown:216e3,SellSharesCooldown:18e3,CyclesPerMarketCycle:50,CyclesPerIndustryStateCycle:50/r.length,SecsPerMarketCycle:10,Cities:[a.a.Aevum,a.a.Chongqing,a.a.Sector12,a.a.NewTokyo,a.a.Ishima,a.a.Volhaven],WarehouseInitialCost:5e9,WarehouseInitialSize:100,WarehouseUpgradeBaseCost:1e9,OfficeInitialCost:4e9,OfficeInitialSize:3,OfficeUpgradeBaseCost:1e9,BribeThreshold:1e14,BribeToRepRatio:1e9,ProductProductionCostRatio:5,DividendMaxPercentage:1,EmployeeSalaryMultiplier:3,CyclesPerEmployeeRaise:400,EmployeeRaiseAmount:50,BaseMaxProducts:3,AllCorporationStates:r,AllMaterials:["Water","Energy","Food","Plants","Metal","Hardware","Chemicals","Drugs","Robots","AI Cores","Real Estate"],FundingRoundShares:[.1,.35,.25,.2],FundingRoundMultiplier:[4,3,3,2.5],AvgProfitLength:1}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"c",(function(){return r})),n.d(t,"b",(function(){return i}));const a={MoneyGainPerLevel:1.5,BaseCost:1e3,LevelBaseCost:1,RamBaseCost:3e4,CoreBaseCost:5e5,PurchaseNextMult:1.85,UpgradeLevelMult:1.04,UpgradeRamMult:1.28,UpgradeCoreMult:1.48,MaxLevel:200,MaxRam:64,MaxCores:16},r={x1:1,x5:5,x10:10,MAX:"MAX"},i={HashesPerLevel:.001,BaseCost:5e4,RamBaseCost:2e5,CoreBaseCost:1e6,CacheBaseCost:1e7,PurchaseMult:3.2,UpgradeLevelMult:1.1,UpgradeRamMult:1.4,UpgradeCoreMult:1.55,UpgradeCacheMult:1.85,MaxServers:20,MaxLevel:300,MaxRam:8192,MaxCores:128,MaxCache:15}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));const a={Idle:1,Contract:2,Operation:3,BlackOp:4,BlackOperation:4,Training:5,Recruitment:6,FieldAnalysis:7,"Field Analysis":7,Diplomacy:8,"Hyperbolic Regeneration Chamber":9,"Incite Violence":10}},function(e,t,n){"use strict";n.d(t,"f",(function(){return a})),n.d(t,"b",(function(){return u})),n.d(t,"e",(function(){return l})),n.d(t,"c",(function(){return c})),n.d(t,"a",(function(){return s})),n.d(t,"d",(function(){return f}));var a,r=n(2),i=n(64),o=n(387);!function(e){e[e.Start=0]="Start",e[e.NSSelection=1]="NSSelection",e[e.GoToCharacterPage=2]="GoToCharacterPage",e[e.CharacterPage=3]="CharacterPage",e[e.CharacterGoToTerminalPage=4]="CharacterGoToTerminalPage",e[e.TerminalIntro=5]="TerminalIntro",e[e.TerminalHelp=6]="TerminalHelp",e[e.TerminalLs=7]="TerminalLs",e[e.TerminalScan=8]="TerminalScan",e[e.TerminalScanAnalyze1=9]="TerminalScanAnalyze1",e[e.TerminalScanAnalyze2=10]="TerminalScanAnalyze2",e[e.TerminalConnect=11]="TerminalConnect",e[e.TerminalAnalyze=12]="TerminalAnalyze",e[e.TerminalNuke=13]="TerminalNuke",e[e.TerminalManualHack=14]="TerminalManualHack",e[e.TerminalHackingMechanics=15]="TerminalHackingMechanics",e[e.TerminalGoHome=16]="TerminalGoHome",e[e.TerminalCreateScript=17]="TerminalCreateScript",e[e.TerminalTypeScript=18]="TerminalTypeScript",e[e.TerminalFree=19]="TerminalFree",e[e.TerminalRunScript=20]="TerminalRunScript",e[e.TerminalGoToActiveScriptsPage=21]="TerminalGoToActiveScriptsPage",e[e.ActiveScriptsPage=22]="ActiveScriptsPage",e[e.ActiveScriptsToTerminal=23]="ActiveScriptsToTerminal",e[e.TerminalTailScript=24]="TerminalTailScript",e[e.GoToHacknetNodesPage=25]="GoToHacknetNodesPage",e[e.HacknetNodesIntroduction=26]="HacknetNodesIntroduction",e[e.HacknetNodesGoToWorldPage=27]="HacknetNodesGoToWorldPage",e[e.WorldDescription=28]="WorldDescription",e[e.TutorialPageInfo=29]="TutorialPageInfo",e[e.End=30]="End"}(a||(a={}));const s={currStep:a.Start,isRunning:!1,stepIsDone:{[a.Start]:!1,[a.NSSelection]:!1,[a.GoToCharacterPage]:!1,[a.CharacterPage]:!1,[a.CharacterGoToTerminalPage]:!1,[a.TerminalIntro]:!1,[a.TerminalHelp]:!1,[a.TerminalLs]:!1,[a.TerminalScan]:!1,[a.TerminalScanAnalyze1]:!1,[a.TerminalScanAnalyze2]:!1,[a.TerminalConnect]:!1,[a.TerminalAnalyze]:!1,[a.TerminalNuke]:!1,[a.TerminalManualHack]:!1,[a.TerminalHackingMechanics]:!1,[a.TerminalGoHome]:!1,[a.TerminalCreateScript]:!1,[a.TerminalTypeScript]:!1,[a.TerminalFree]:!1,[a.TerminalRunScript]:!1,[a.TerminalGoToActiveScriptsPage]:!1,[a.ActiveScriptsPage]:!1,[a.ActiveScriptsToTerminal]:!1,[a.TerminalTailScript]:!1,[a.GoToHacknetNodesPage]:!1,[a.HacknetNodesIntroduction]:!1,[a.HacknetNodesGoToWorldPage]:!1,[a.WorldDescription]:!1,[a.TutorialPageInfo]:!1,[a.End]:!1}};function l(){s.isRunning=!0,s.currStep=a.Start}function c(){s.stepIsDone[s.currStep]=!0,s.currStep<a.End&&(s.currStep+=1),s.currStep===a.End&&u(),o.a.emit()}function f(){s.currStep>a.Start&&(s.currStep-=1),o.a.emit()}function u(){s.isRunning=!1,s.currStep=a.Start,r.a.getHomeComputer().messages.push(i.a.HackersStartingHandbook),o.a.emit()}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var a=n(587),r=n(21),i=n(1029),o=n(348),s=n(22);function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class c extends a.a{constructor(e={hostname:"",ip:Object(o.a)()}){super(e),l(this,"backdoorInstalled",!1),l(this,"baseDifficulty",1),l(this,"hackDifficulty",1),l(this,"minDifficulty",1),l(this,"moneyAvailable",0),l(this,"moneyMax",0),l(this,"numOpenPortsRequired",5),l(this,"openPortCount",0),l(this,"requiredHackingSkill",1),l(this,"serverGrowth",1),this.hostname.startsWith("hacknet-node-")&&(this.hostname=Object(i.a)(10)),this.purchasedByPlayer=null!=e.purchasedByPlayer&&e.purchasedByPlayer,this.maxRam=null!=e.maxRam?e.maxRam:0,this.requiredHackingSkill=null!=e.requiredHackingSkill?e.requiredHackingSkill:1,this.moneyAvailable=null!=e.moneyAvailable?e.moneyAvailable*r.a.ServerStartingMoney:0,this.moneyMax=25*this.moneyAvailable*r.a.ServerMaxMoney,this.hackDifficulty=null!=e.hackDifficulty?e.hackDifficulty*r.a.ServerStartingSecurity:1,this.baseDifficulty=this.hackDifficulty,this.minDifficulty=Math.max(1,Math.round(this.hackDifficulty/3)),this.serverGrowth=null!=e.serverGrowth?e.serverGrowth:1,this.numOpenPortsRequired=null!=e.numOpenPortsRequired?e.numOpenPortsRequired:5}capDifficulty(){this.hackDifficulty<this.minDifficulty&&(this.hackDifficulty=this.minDifficulty),this.hackDifficulty<1&&(this.hackDifficulty=1),this.hackDifficulty>100&&(this.hackDifficulty=100)}changeMinimumSecurity(e,t=!1){t?this.minDifficulty*=e:this.minDifficulty+=e,this.minDifficulty=Math.max(1,this.minDifficulty)}changeMaximumMoney(e){if(this.moneyMax>1e13){const t=this.moneyMax-1e13;e=1+(e-1)/Math.log(t)/Math.log(8)}this.moneyMax*=e}fortify(e){this.hackDifficulty+=e,this.capDifficulty()}weaken(e){this.hackDifficulty-=e*r.a.ServerWeakenRate,this.capDifficulty()}toJSON(){return Object(s.b)("Server",this)}static fromJSON(e){return Object(s.a)(c,e.data)}}s.c.constructors.Server=c},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));const a={Operations:"Operations",Engineer:"Engineer",Business:"Business",Management:"Management",RandD:"Research & Development",Training:"Training",Unassigned:"Unassigned"}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return s}));var a=n(0),r=n.n(a);const i={Corporation:r.a.createContext({}),Division:r.a.createContext({})},o=()=>Object(a.useContext)(i.Corporation),s=()=>Object(a.useContext)(i.Division)},,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"d",(function(){return l})),n.d(t,"b",(function(){return c})),n.d(t,"c",(function(){return f})),n.d(t,"e",(function(){return u}));var a=n(0),r=n.n(a),i=n(135),o=n(145);const s={Energy:"Energy",Utilities:"Water Utilities",Agriculture:"Agriculture",Fishing:"Fishing",Mining:"Mining",Food:"Food",Tobacco:"Tobacco",Chemical:"Chemical",Pharmaceutical:"Pharmaceutical",Computer:"Computer Hardware",Robotics:"Robotics",Software:"Software",Healthcare:"Healthcare",RealEstate:"RealEstate"},l={Energy:225e9,Utilities:15e10,Agriculture:4e10,Fishing:8e10,Mining:3e11,Food:1e10,Tobacco:2e10,Chemical:7e10,Pharmaceutical:2e11,Computer:5e11,Robotics:1e12,Software:25e9,Healthcare:75e10,RealEstate:6e11},c={Energy:e=>r.a.createElement(r.a.Fragment,null,"Engage in the production and distribution of energy.",r.a.createElement("br",null),r.a.createElement("br",null),"Starting cost: ",r.a.createElement(o.a,{money:l.Energy,corp:e}),r.a.createElement("br",null),"Recommended starting Industry: NO"),Utilities:e=>r.a.createElement(r.a.Fragment,null,"Distribute water and provide wastewater services.",r.a.createElement("br",null),r.a.createElement("br",null),"Starting cost: ",r.a.createElement(o.a,{money:l.Utilities,corp:e}),r.a.createElement("br",null),"Recommended starting Industry: NO"),Agriculture:e=>r.a.createElement(r.a.Fragment,null,"Cultivate crops and breed livestock to produce food.",r.a.createElement("br",null),r.a.createElement("br",null),"Starting cost: ",r.a.createElement(o.a,{money:l.Agriculture,corp:e}),r.a.createElement("br",null),"Recommended starting Industry: YES"),Fishing:e=>r.a.createElement(r.a.Fragment,null,"Produce food through the breeding and processing of fish and fish products.",r.a.createElement("br",null),r.a.createElement("br",null),"Starting cost: ",r.a.createElement(o.a,{money:l.Fishing,corp:e}),r.a.createElement("br",null),"Recommended starting Industry: NO"),Mining:e=>r.a.createElement(r.a.Fragment,null,"Extract and process metals from the earth.",r.a.createElement("br",null),r.a.createElement("br",null),"Starting cost: ",r.a.createElement(o.a,{money:l.Mining,corp:e}),r.a.createElement("br",null),"Recommended starting Industry: NO"),Food:e=>r.a.createElement(r.a.Fragment,null,"Create your own restaurants all around the world.",r.a.createElement("br",null),r.a.createElement("br",null),"Starting cost: ",r.a.createElement(o.a,{money:l.Food,corp:e}),r.a.createElement("br",null),"Recommended starting Industry: YES"),Tobacco:e=>r.a.createElement(r.a.Fragment,null,"Create and distribute tobacco and tobacco-related products.",r.a.createElement("br",null),r.a.createElement("br",null),"Starting cost: ",r.a.createElement(o.a,{money:l.Tobacco,corp:e}),r.a.createElement("br",null),"Recommended starting Industry: YES"),Chemical:e=>r.a.createElement(r.a.Fragment,null,"Produce industrial chemicals.",r.a.createElement("br",null),r.a.createElement("br",null),"Starting cost: ",r.a.createElement(o.a,{money:l.Chemical,corp:e}),r.a.createElement("br",null),"Recommended starting Industry: NO"),Pharmaceutical:e=>r.a.createElement(r.a.Fragment,null,"Discover, develop, and create new pharmaceutical drugs.",r.a.createElement("br",null),r.a.createElement("br",null),"Starting cost: ",r.a.createElement(o.a,{money:l.Pharmaceutical,corp:e}),r.a.createElement("br",null),"Recommended starting Industry: NO"),Computer:e=>r.a.createElement(r.a.Fragment,null,"Develop and manufacture new computer hardware and networking infrastructures.",r.a.createElement("br",null),r.a.createElement("br",null),"Starting cost: ",r.a.createElement(o.a,{money:l.Computer,corp:e}),r.a.createElement("br",null),"Recommended starting Industry: NO"),Robotics:e=>r.a.createElement(r.a.Fragment,null,"Develop and create robots.",r.a.createElement("br",null),r.a.createElement("br",null),"Starting cost: ",r.a.createElement(o.a,{money:l.Robotics,corp:e}),r.a.createElement("br",null),"Recommended starting Industry: NO"),Software:e=>r.a.createElement(r.a.Fragment,null,"Develop computer software and create AI Cores.",r.a.createElement("br",null),r.a.createElement("br",null),"Starting cost: ",r.a.createElement(o.a,{money:l.Software,corp:e}),r.a.createElement("br",null),"Recommended starting Industry: YES"),Healthcare:e=>r.a.createElement(r.a.Fragment,null,"Create and manage hospitals.",r.a.createElement("br",null),r.a.createElement("br",null),"Starting cost: ",r.a.createElement(o.a,{money:l.Healthcare,corp:e}),r.a.createElement("br",null),"Recommended starting Industry: NO"),RealEstate:e=>r.a.createElement(r.a.Fragment,null,"Develop and manage real estate properties.",r.a.createElement("br",null),r.a.createElement("br",null),"Starting cost: ",r.a.createElement(o.a,{money:l.RealEstate,corp:e}),r.a.createElement("br",null),"Recommended starting Industry: NO")},f={Energy:Object(i.a)(),Utilities:Object(i.a)(),Agriculture:Object(i.a)(),Fishing:Object(i.a)(),Mining:Object(i.a)(),Food:Object(i.b)(),Tobacco:Object(i.b)(),Chemical:Object(i.a)(),Pharmaceutical:Object(i.b)(),Computer:Object(i.b)(),Robotics:Object(i.b)(),Software:Object(i.b)(),Healthcare:Object(i.b)(),RealEstate:Object(i.b)()};function u(){f.Energy=Object(i.a)(),f.Utilities=Object(i.a)(),f.Agriculture=Object(i.a)(),f.Fishing=Object(i.a)(),f.Mining=Object(i.a)(),f.Food=Object(i.b)(),f.Tobacco=Object(i.b)(),f.Chemical=Object(i.a)(),f.Pharmaceutical=Object(i.b)(),f.Computer=Object(i.b)(),f.Robotics=Object(i.b)(),f.Software=Object(i.b)(),f.Healthcare=Object(i.b)(),f.RealEstate=Object(i.b)()}},function(e,t,n){"use strict";let a;n.d(t,"a",(function(){return a})),function(e){e[e.Company=0]="Company",e[e.Gym=1]="Gym",e[e.Hospital=2]="Hospital",e[e.Slums=3]="Slums",e[e.Special=4]="Special",e[e.StockMarket=5]="StockMarket",e[e.TechVendor=6]="TechVendor",e[e.TravelAgency=7]="TravelAgency",e[e.University=8]="University",e[e.Casino=9]="Casino"}(a||(a={}))},,,function(e,t,n){"use strict";n.d(t,"g",(function(){return d})),n.d(t,"l",(function(){return p})),n.d(t,"h",(function(){return g})),n.d(t,"a",(function(){return y})),n.d(t,"b",(function(){return b})),n.d(t,"e",(function(){return E})),n.d(t,"f",(function(){return v})),n.d(t,"d",(function(){return k})),n.d(t,"c",(function(){return w})),n.d(t,"n",(function(){return _})),n.d(t,"o",(function(){return S})),n.d(t,"k",(function(){return C})),n.d(t,"j",(function(){return x})),n.d(t,"i",(function(){return L})),n.d(t,"p",(function(){return M})),n.d(t,"m",(function(){return T}));var a=n(226),r=n(213),i=n(158),o=n(40),s=n(91),l=n(386),c=n(244),f=n(355),u=n(42),m=n(27),h=n(44);function d(e){return 9===e.bitNodeN||e.sourceFileLvl(9)>0}function p(e){if(u.a.isRunning){if(u.a.currStep!==u.f.HacknetNodesIntroduction)return-1;Object(u.c)()}const t=e.hacknetNodes.length;if(d(e)){const n=b(e);if(isNaN(n))throw new Error("Calculated cost of purchasing HacknetServer is NaN");return!e.canAfford(n)||t>=o.b.MaxServers?-1:(e.loseMoney(n,"hacknet_expenses"),e.createHacknetServer(),M(e),t)}{const n=y(e);if(isNaN(n))throw new Error("Calculated cost of purchasing HacknetNode is NaN");if(!e.canAfford(n))return-1;const r="hacknet-node-"+t,i=new a.a(r,e.mults.hacknet_node_money);return e.loseMoney(n,"hacknet_expenses"),e.hacknetNodes.push(i),t}}function g(e){return d(e)&&e.hacknetNodes.length>=o.b.MaxServers}function y(e){return Object(r.d)(e.hacknetNodes.length+1,e.mults.hacknet_node_purchase_cost)}function b(e){return Object(i.f)(e.hacknetNodes.length+1,e.mults.hacknet_node_purchase_cost)}function E(e,t,n){if(null==n)throw new Error("getMaxNumberLevelUpgrades() called without maxLevel arg");if(e.money<t.calculateLevelUpgradeCost(1,e.mults.hacknet_node_level_cost))return 0;let a=1,r=n-1;const i=n-t.level;if(e.money>t.calculateLevelUpgradeCost(i,e.mults.hacknet_node_level_cost))return i;for(;a<=r;){const o=(a+r)/2|0;if(o!==n&&e.money>t.calculateLevelUpgradeCost(o,e.mults.hacknet_node_level_cost)&&e.money<t.calculateLevelUpgradeCost(o+1,e.mults.hacknet_node_level_cost))return Math.min(i,o);if(e.money<t.calculateLevelUpgradeCost(o,e.mults.hacknet_node_level_cost))r=o-1;else{if(!(e.money>t.calculateLevelUpgradeCost(o,e.mults.hacknet_node_level_cost)))return Math.min(i,o);a=o+1}}return 0}function v(e,t,n){if(null==n)throw new Error("getMaxNumberRamUpgrades() called without maxLevel arg");if(e.money<t.calculateRamUpgradeCost(1,e.mults.hacknet_node_ram_cost))return 0;let a;if(a=t instanceof s.a?Math.round(Math.log2(n/t.maxRam)):Math.round(Math.log2(n/t.ram)),e.money>t.calculateRamUpgradeCost(a,e.mults.hacknet_node_ram_cost))return a;for(let n=a-1;n>=0;--n)if(e.money>t.calculateRamUpgradeCost(n,e.mults.hacknet_node_ram_cost))return n;return 0}function k(e,t,n){if(null==n)throw new Error("getMaxNumberCoreUpgrades() called without maxLevel arg");if(e.money<t.calculateCoreUpgradeCost(1,e.mults.hacknet_node_core_cost))return 0;let a=1,r=n-1;const i=n-t.cores;if(e.money>t.calculateCoreUpgradeCost(i,e.mults.hacknet_node_core_cost))return i;for(;a<=r;){const o=(a+r)/2|0;if(o!=n&&e.money>t.calculateCoreUpgradeCost(o,e.mults.hacknet_node_core_cost)&&e.money<t.calculateCoreUpgradeCost(o+1,e.mults.hacknet_node_core_cost))return Math.min(i,o);if(e.money<t.calculateCoreUpgradeCost(o,e.mults.hacknet_node_core_cost))r=o-1;else{if(!(e.money>t.calculateCoreUpgradeCost(o,e.mults.hacknet_node_core_cost)))return Math.min(i,o);a=o+1}}return 0}function w(e,t,n){if(null==n)throw new Error("getMaxNumberCacheUpgrades() called without maxLevel arg");if(!e.canAfford(t.calculateCacheUpgradeCost(1)))return 0;let a=1,r=n-1;const i=n-t.cache;if(e.canAfford(t.calculateCacheUpgradeCost(i)))return i;for(;a<=r;){const o=(a+r)/2|0;if(o!=n&&e.canAfford(t.calculateCacheUpgradeCost(o))&&!e.canAfford(t.calculateCacheUpgradeCost(o+1)))return Math.min(i,o);if(e.canAfford(t.calculateCacheUpgradeCost(o))){if(!e.canAfford(t.calculateCacheUpgradeCost(o)))return Math.min(i,o);a=o+1}else r=o-1}return 0}function _(e,t,n=1){const a=Math.round(n),r=t.calculateLevelUpgradeCost(a,e.mults.hacknet_node_level_cost);if(isNaN(r)||r<=0||a<0)return!1;const i=t instanceof s.a;if(t.level>=(i?o.b.MaxLevel:o.a.MaxLevel))return!1;if(t.level+a>(i?o.b.MaxLevel:o.a.MaxLevel)){return _(e,t,Math.max(0,(i?o.b.MaxLevel:o.a.MaxLevel)-t.level))}return!!e.canAfford(r)&&(e.loseMoney(r,"hacknet_expenses"),t.upgradeLevel(a,e.mults.hacknet_node_money),!0)}function S(e,t,n=1){const r=Math.round(n),i=t.calculateRamUpgradeCost(r,e.mults.hacknet_node_ram_cost);if(isNaN(i)||i<=0||r<0)return!1;if(t instanceof s.a&&t.maxRam>=o.b.MaxRam)return!1;if(t instanceof a.a&&t.ram>=o.a.MaxRam)return!1;if(t instanceof s.a){if(t.maxRam*Math.pow(2,r)>o.b.MaxRam){return S(e,t,Math.max(0,Math.log2(Math.round(o.b.MaxRam/t.maxRam))))}}else if(t instanceof a.a&&t.ram*Math.pow(2,r)>o.a.MaxRam){return S(e,t,Math.max(0,Math.log2(Math.round(o.a.MaxRam/t.ram))))}return!!e.canAfford(i)&&(e.loseMoney(i,"hacknet_expenses"),t.upgradeRam(r,e.mults.hacknet_node_money),!0)}function C(e,t,n=1){const a=Math.round(n),r=t.calculateCoreUpgradeCost(a,e.mults.hacknet_node_core_cost);if(isNaN(r)||r<=0||a<0)return!1;const i=t instanceof s.a;if(t.cores>=(i?o.b.MaxCores:o.a.MaxCores))return!1;if(t.cores+a>(i?o.b.MaxCores:o.a.MaxCores)){return C(e,t,Math.max(0,(i?o.b.MaxCores:o.a.MaxCores)-t.cores))}return!!e.canAfford(r)&&(e.loseMoney(r,"hacknet_expenses"),t.upgradeCore(a,e.mults.hacknet_node_money),!0)}function x(e,t,n=1){const a=Math.round(n),r=t.calculateCacheUpgradeCost(a);if(isNaN(r)||r<=0||a<0)return!1;if(!(t instanceof s.a))return console.warn("purchaseCacheUpgrade() called for a non-HacknetNode"),!1;if(t.cache+a>o.b.MaxCache){return x(e,t,Math.max(0,o.b.MaxCache-t.cache))}return!!e.canAfford(r)&&(e.loseMoney(r,"hacknet_expenses"),t.upgradeCache(a),!0)}function L(e,t){return 0===e.hacknetNodes.length?0:d(e)?function(e,t){if(!(e.hashManager instanceof l.a))throw new Error("Player does not have a HashManager (should be in 'hashManager' prop)");let n=0;for(let r=0;r<e.hacknetNodes.length;++r){const i=e.hacknetNodes[r];if(i instanceof a.a)throw new Error("player nodes should not be HacketNode");const o=Object(m.d)(i);if(!(o instanceof s.a))throw new Error("player nodes shoud not be Server");o.updateHashRate(e.mults.hacknet_node_money);const l=o.process(t);n+=l}const r=e.hashManager.storeHashes(n);if(r>0){const t=c.a["Sell for Money"];if(null===t)throw new Error("Could not get the hash upgrade");if(!t.cost)throw new Error("Upgrade is not properly configured");const n=r/t.cost;n>0&&e.gainMoney(t.value*n,"hacknet")}return n}(e,t):e.hacknetNodes[0]instanceof a.a?function(e,t){let n=0;for(let a=0;a<e.hacknetNodes.length;++a){const r=e.hacknetNodes[a];if("string"==typeof r)throw new Error("player node should not be ip string");n+=O(e,t,r)}return n}(e,t):0}function O(e,t,n){const a=n.process(t);return e.gainMoney(a,"hacknet"),a}function M(e){if(!(e.hashManager instanceof l.a))return void console.error("Player does not have a HashManager");const t=e.hacknetNodes;if(0===t.length)return void e.hashManager.updateCapacity(0);let n=0;for(let r=0;r<t.length;++r){if("string"!=typeof t[r])return void e.hashManager.updateCapacity(0);const i=t[r];if(i instanceof a.a)throw new Error("player nodes should be string but isn't");const o=Object(m.d)(i);if(!(o instanceof s.a))return void e.hashManager.updateCapacity(0);n+=o.hashCapacity}e.hashManager.updateCapacity(n)}function T(e,t,n){if(!(e.hashManager instanceof l.a))return console.error("Player does not have a HashManager"),!1;if(e.hashManager.upgrade(t)){const a=c.a[t];switch(t){case"Sell for Money":e.gainMoney(a.value,"hacknet");break;case"Sell for Corporation Funds":{const n=e.corporation;if(null===n)return e.hashManager.refundUpgrade(t),!1;n.funds=n.funds+a.value;break}case"Reduce Minimum Security":try{const e=Object(m.d)(n);if(null==e)return console.error("Invalid target specified in purchaseHashUpgrade(): "+n),!1;if(!(e instanceof h.a))throw new Error(`'${n}' is not a normal server.`);e.changeMinimumSecurity(a.value,!0)}catch(n){return e.hashManager.refundUpgrade(t),!1}break;case"Increase Maximum Money":try{const e=Object(m.d)(n);if(null==e)return console.error("Invalid target specified in purchaseHashUpgrade(): "+n),!1;if(!(e instanceof h.a))throw new Error(`'${n}' is not a normal server.`);e.changeMaximumMoney(a.value)}catch(n){return e.hashManager.refundUpgrade(t),!1}break;case"Improve Studying":case"Improve Gym Training":break;case"Exchange for Corporation Research":{const n=e.corporation;if(null===n)return e.hashManager.refundUpgrade(t),!1;for(const e of n.divisions)e.sciResearch.qty+=a.value;break}case"Exchange for Bladeburner Rank":{const n=e.bladeburner;if(null===n)return e.hashManager.refundUpgrade(t),!1;n.changeRank(e,a.value);break}case"Exchange for Bladeburner SP":{const n=e.bladeburner;if(null===n)return e.hashManager.refundUpgrade(t),!1;n.skillPoints+=a.value;break}case"Generate Coding Contract":Object(f.b)();break;default:return console.warn(`Unrecognized upgrade name ${t}. Upgrade has no effect`),e.hashManager.refundUpgrade(t),!1}return!0}return!1}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var a=n(15);const r={CityNames:[a.a.Aevum,a.a.Chongqing,a.a.Sector12,a.a.NewTokyo,a.a.Ishima,a.a.Volhaven],CyclesPerSecond:5,StaminaGainPerSecond:.0085,BaseStaminaLoss:.285,MaxStaminaToGainFactor:7e4,DifficultyToTimeFactor:10,DiffMultExponentialFactor:.28,DiffMultLinearFactor:650,EffAgiLinearFactor:1e4,EffDexLinearFactor:1e4,EffAgiExponentialFactor:.04,EffDexExponentialFactor:.035,BaseRecruitmentTimeNeeded:300,PopulationThreshold:1e9,PopulationExponent:.7,ChaosThreshold:50,BaseStatGain:1,BaseIntGain:.003,ActionCountGrowthPeriod:480,RankToFactionRepFactor:2,RankNeededForFaction:25,ContractSuccessesPerLevel:3,OperationSuccessesPerLevel:2.5,RanksPerSkillPoint:3,ContractBaseMoneyGain:25e4,HrcHpGain:2,HrcStaminaGain:1}},function(e,t,n){"use strict";let a;n.d(t,"a",(function(){return a})),function(e){e.OperationTyphoon="Operation Typhoon",e.OperationZero="Operation Zero",e.OperationX="Operation X",e.OperationTitan="Operation Titan",e.OperationAres="Operation Ares",e.OperationArchangel="Operation Archangel",e.OperationJuggernaut="Operation Juggernaut",e.OperationRedDragon="Operation Red Dragon",e.OperationK="Operation K",e.OperationDeckard="Operation Deckard",e.OperationTyrell="Operation Tyrell",e.OperationWallace="Operation Wallace",e.OperationShoulderOfOrion="Operation Shoulder of Orion",e.OperationHyron="Operation Hyron",e.OperationMorpheus="Operation Morpheus",e.OperationIonStorm="Operation Ion Storm",e.OperationAnnihilus="Operation Annihilus",e.OperationUltron="Operation Ultron",e.OperationCenturion="Operation Centurion",e.OperationVindictus="Operation Vindictus",e.OperationDaedalus="Operation Daedalus"}(a||(a={}))},function(e,t,n){"use strict";n.d(t,"P",(function(){return q})),n.d(t,"S",(function(){return $})),n.d(t,"T",(function(){return K})),n.d(t,"Z",(function(){return z})),n.d(t,"o",(function(){return V})),n.d(t,"p",(function(){return Y})),n.d(t,"lb",(function(){return J})),n.d(t,"cb",(function(){return X})),n.d(t,"N",(function(){return Q})),n.d(t,"eb",(function(){return Z})),n.d(t,"C",(function(){return ee})),n.d(t,"R",(function(){return te})),n.d(t,"s",(function(){return ne})),n.d(t,"ab",(function(){return ae})),n.d(t,"A",(function(){return re})),n.d(t,"E",(function(){return ie})),n.d(t,"y",(function(){return oe})),n.d(t,"z",(function(){return se})),n.d(t,"v",(function(){return le})),n.d(t,"w",(function(){return ce})),n.d(t,"B",(function(){return fe})),n.d(t,"D",(function(){return ue})),n.d(t,"U",(function(){return me})),n.d(t,"hb",(function(){return he})),n.d(t,"ib",(function(){return de})),n.d(t,"jb",(function(){return pe})),n.d(t,"bb",(function(){return ge})),n.d(t,"O",(function(){return ye})),n.d(t,"f",(function(){return be})),n.d(t,"I",(function(){return Ee})),n.d(t,"W",(function(){return ve})),n.d(t,"M",(function(){return ke})),n.d(t,"m",(function(){return we})),n.d(t,"l",(function(){return _e})),n.d(t,"e",(function(){return Se})),n.d(t,"j",(function(){return Ce})),n.d(t,"g",(function(){return xe})),n.d(t,"c",(function(){return Le})),n.d(t,"b",(function(){return Oe})),n.d(t,"k",(function(){return Me})),n.d(t,"a",(function(){return Te})),n.d(t,"d",(function(){return Ae})),n.d(t,"h",(function(){return Re})),n.d(t,"n",(function(){return Ne})),n.d(t,"i",(function(){return Pe})),n.d(t,"Q",(function(){return Ie})),n.d(t,"X",(function(){return Fe})),n.d(t,"Y",(function(){return De})),n.d(t,"t",(function(){return je})),n.d(t,"db",(function(){return Be})),n.d(t,"V",(function(){return Ge})),n.d(t,"x",(function(){return We})),n.d(t,"kb",(function(){return He})),n.d(t,"L",(function(){return Ue})),n.d(t,"r",(function(){return qe})),n.d(t,"K",(function(){return $e})),n.d(t,"J",(function(){return Ke})),n.d(t,"G",(function(){return ze})),n.d(t,"F",(function(){return Ve})),n.d(t,"H",(function(){return Ye})),n.d(t,"fb",(function(){return Je})),n.d(t,"q",(function(){return Xe})),n.d(t,"gb",(function(){return Qe})),n.d(t,"u",(function(){return Ze}));var a=n(115),r=n(349),i=n(11),o=n(21),s=n(116),l=n(258),c=n(74),f=n(694),u=n(547),m=n(104),h=n(31),d=n(12),p=n(60),g=n(189),y=n(29),b=n(81),E=n(156),v=n(181),k=n(15),w=n(9),_=n(334),S=n(185),C=n(288),x=n(27),L=n(44),O=n(137),M=n(87),T=n(1381),A=n(1382),R=n(378),N=n(417),P=n(91),I=n(6),F=n(396),D=n(14),j=n(94),B=n(306),G=n(4),W=n(2),H=n(321),U=n(240);function q(){const e=Object(O.g)({adminRights:!0,hostname:"home",ip:Object(x.e)(),isConnectedTo:!0,maxRam:8,organizationName:"Home PC",purchasedByPlayer:!0});this.currentServer=M.a.Home,Object(x.a)(e),this.getHomeComputer().programs.push(p.a.NukeProgram.name)}function $(){this.currentServer=M.a.Home,this.numPeopleKilled=0,this.hacking=1,this.strength=1,this.defense=1,this.dexterity=1,this.agility=1,this.charisma=1,this.hacking_exp=0,this.strength_exp=0,this.defense_exp=0,this.dexterity_exp=0,this.agility_exp=0,this.charisma_exp=0,this.money=1e3+d.a.Donations,this.city=k.a.Sector12,this.location=w.a.TravelAgency,this.companyName="",this.jobs={},this.purchasedServers=[],this.factions=[],this.factionInvitations=[],this.queuedAugmentations=[];const e=Math.min(3,this.sourceFileLvl(10)+(10===this.bitNodeN?1:0))+this.sleevesFromCovenant;this.sleeves.length>e&&(this.sleeves.length=e);for(let t=this.sleeves.length;t<e;t++)this.sleeves.push(new _.a(this));for(let e=0;e<this.sleeves.length;++e)this.sleeves[e]instanceof _.a&&(this.sleeves[e].shock>=100?this.sleeves[e].synchronize(this):this.sleeves[e].shockRecovery(this));this.lastUpdate=(new Date).getTime(),this.playtimeSinceLastAug=0,this.scriptProdSinceLastAug=0,this.moneySourceA.reset(),this.hacknetNodes.length=0,this.hashManager.prestige(),this.reapplyAllAugmentations(!0),this.hp=this.max_hp}function K(){this.entropy=0,this.prestigeAugmentation(),this.karma=0;for(let e=0;e<this.sleeves.length;++e)this.sleeves[e]instanceof _.a?this.sleeves[e].prestige(this):this.sleeves[e]=new _.a(this);if(10===this.bitNodeN)for(let e=0;e<this.sleeves.length;e++)this.sleeves[e].shock=Math.max(25,this.sleeves[e].shock),this.sleeves[e].sync=Math.max(25,this.sleeves[e].sync);this.gang=null,Object(b.c)(),this.hasWseAccount=!1,this.hasTixApiAccess=!1,this.has4SData=!1,this.has4SDataTixApi=!1,this.corporation=null,this.moneySourceB.reset(),this.playtimeSinceLastBitnode=0,this.augmentations=[]}function z(e){this.factionInvitations.includes(e)||this.factions.includes(e)||this.factionInvitations.push(e)}function V(e,t=1){return Object(S.b)(e,t)}function Y(e,t=1){return Object(S.c)(e,t)}function J(){this.hacking=Math.max(1,Math.floor(this.calculateSkill(this.hacking_exp,this.mults.hacking*o.a.HackingLevelMultiplier))),this.strength=Math.max(1,Math.floor(this.calculateSkill(this.strength_exp,this.mults.strength*o.a.StrengthLevelMultiplier))),this.defense=Math.max(1,Math.floor(this.calculateSkill(this.defense_exp,this.mults.defense*o.a.DefenseLevelMultiplier))),this.dexterity=Math.max(1,Math.floor(this.calculateSkill(this.dexterity_exp,this.mults.dexterity*o.a.DexterityLevelMultiplier))),this.agility=Math.max(1,Math.floor(this.calculateSkill(this.agility_exp,this.mults.agility*o.a.AgilityLevelMultiplier))),this.charisma=Math.max(1,Math.floor(this.calculateSkill(this.charisma_exp,this.mults.charisma*o.a.CharismaLevelMultiplier))),this.intelligence>0?this.intelligence=Math.floor(this.calculateSkill(this.intelligence_exp)):this.intelligence=0;const e=this.hp/this.max_hp;this.max_hp=Math.floor(10+this.defense/10),this.hp=Math.round(this.max_hp*e)}function X(){this.mults=Object(U.a)()}function Q(e){const t=this.getHomeComputer();if(null==t)return!1;for(let n=0;n<t.programs.length;++n)if(e.toLowerCase()==t.programs[n].toLowerCase())return!0;return!1}function Z(e){isNaN(e)?console.error("NaN passed into Player.setMoney()"):this.money=e}function ee(e,t){isNaN(e)?console.error("NaN passed into Player.gainMoney()"):(this.money=this.money+e,this.recordMoneySource(e,t))}function te(e,t){isNaN(e)?console.error("NaN passed into Player.loseMoney()"):this.money===1/0&&e===1/0||(this.money=this.money-e,this.recordMoneySource(-1*e,t))}function ne(e){return isNaN(e)?(console.error("NaN passed into Player.canAfford()"),!1):this.money>=e}function ae(e,t){this.moneySourceA instanceof F.a||(console.warn("Player.moneySourceA was not properly initialized. Resetting"),this.moneySourceA=new F.a),this.moneySourceB instanceof F.a||(console.warn("Player.moneySourceB was not properly initialized. Resetting"),this.moneySourceB=new F.a),this.moneySourceA.record(e,t),this.moneySourceB.record(e,t)}function re(e){isNaN(e)?console.error("ERR: NaN passed into Player.gainHackingExp()"):(this.hacking_exp+=e,this.hacking_exp<0&&(this.hacking_exp=0),this.hacking=Object(S.b)(this.hacking_exp,this.mults.hacking*o.a.HackingLevelMultiplier))}function ie(e){isNaN(e)?console.error("ERR: NaN passed into Player.gainStrengthExp()"):(this.strength_exp+=e,this.strength_exp<0&&(this.strength_exp=0),this.strength=Object(S.b)(this.strength_exp,this.mults.strength*o.a.StrengthLevelMultiplier))}function oe(e){if(isNaN(e))return void console.error("ERR: NaN passed into player.gainDefenseExp()");this.defense_exp+=e,this.defense_exp<0&&(this.defense_exp=0),this.defense=Object(S.b)(this.defense_exp,this.mults.defense*o.a.DefenseLevelMultiplier);const t=this.hp/this.max_hp;this.max_hp=Math.floor(10+this.defense/10),this.hp=Math.round(this.max_hp*t)}function se(e){isNaN(e)?console.error("ERR: NaN passed into Player.gainDexterityExp()"):(this.dexterity_exp+=e,this.dexterity_exp<0&&(this.dexterity_exp=0),this.dexterity=Object(S.b)(this.dexterity_exp,this.mults.dexterity*o.a.DexterityLevelMultiplier))}function le(e){isNaN(e)?console.error("ERR: NaN passed into Player.gainAgilityExp()"):(this.agility_exp+=e,this.agility_exp<0&&(this.agility_exp=0),this.agility=Object(S.b)(this.agility_exp,this.mults.agility*o.a.AgilityLevelMultiplier))}function ce(e){isNaN(e)?console.error("ERR: NaN passed into Player.gainCharismaExp()"):(this.charisma_exp+=e,this.charisma_exp<0&&(this.charisma_exp=0),this.charisma=Object(S.b)(this.charisma_exp,this.mults.charisma*o.a.CharismaLevelMultiplier))}function fe(e){isNaN(e)?console.error("ERROR: NaN passed into Player.gainIntelligenceExp()"):(W.a.sourceFileLvl(5)>0||this.intelligence>0)&&(this.intelligence_exp+=e,this.intelligence=Math.floor(this.calculateSkill(this.intelligence_exp,1)))}function ue(e){this.gainHackingExp(e.hack*this.mults.hacking_exp),this.gainStrengthExp(e.str*this.mults.strength_exp),this.gainDefenseExp(e.def*this.mults.defense_exp),this.gainDexterityExp(e.dex*this.mults.dexterity_exp),this.gainAgilityExp(e.agi*this.mults.agility_exp),this.gainCharismaExp(e.cha*this.mults.charisma_exp),this.gainIntelligenceExp(e.int)}function me(e){const t=e.toLowerCase();return t.includes("hack")?this.hacking:t.includes("str")?this.strength:t.includes("def")?this.defense:t.includes("dex")?this.dexterity:t.includes("agi")?this.agility:t.includes("cha")?this.charisma:t.includes("int")?this.intelligence:0}function he(){this.focus=!0}function de(){this.focus=!1}function pe(e){return"number"!=typeof e?(console.warn("Player.takeDamage() called without a numeric argument: "+e),!1):(this.hp-=e,this.hp<=0&&(this.hospitalize(),!0))}function ge(e){"number"==typeof e?(this.hp+=e,this.hp>this.max_hp&&(this.hp=this.max_hp)):console.warn("Player.regenerateHp() called without a numeric argument: "+e)}function ye(){const e=Object(N.b)(this);return j.b.emit("You've been Hospitalized for "+I.a.formatMoney(e),j.d.WARNING,2e3),this.loseMoney(e,"hospitalization"),this.hp=this.max_hp,e}function be(e,t=!1){const n=c.a[this.location];if(!(n instanceof l.a))return console.error(`Could not find company that matches the location: ${this.location}. Player.applyToCompany() failed`),!1;let a=e;if(!this.isQualified(n,a))return t||Object(D.a)("Unfortunately, you do not qualify for this position<br>"+Object(u.a)(n,a)),!1;if(!n.hasPosition(a))return console.error(`Company ${n.name} does not have position ${a}. Player.applyToCompany() failed`),!1;for(;;){const e=Object(f.a)(a);if(null==e)break;if(!n.hasPosition(e)||!this.isQualified(n,e))break;a=e}if(this.jobs[n.name]===a.name){if(!t){const e=Object(f.a)(a);if(null!=e&&n.hasPosition(e)){const t=Object(u.a)(n,e);Object(D.a)("Unfortunately, you do not qualify for a promotion<br>"+t)}else Object(D.a)("You are already at the highest position for your field! No promotion available")}return!1}return this.jobs[n.name]=a.name,t||Object(D.a)("Congratulations! You were offered a new job at "+n.name+" as a "+a.name+"!"),!0}function Ee(e,t){let n=null;if(""!==this.companyName&&(n=c.a[this.companyName]),null==n||n.name!=e.name)return t;const a=this.jobs[this.companyName];if(!a)return t;const r=m.a[a];return r.isSoftwareJob()&&t.isSoftwareJob()||r.isITJob()&&t.isITJob()||r.isBusinessJob()&&t.isBusinessJob()||r.isSecurityEngineerJob()&&t.isSecurityEngineerJob()||r.isNetworkEngineerJob()&&t.isNetworkEngineerJob()||r.isSecurityJob()&&t.isSecurityJob()||r.isAgentJob()&&t.isAgentJob()||r.isSoftwareConsultantJob()&&t.isSoftwareConsultantJob()||r.isBusinessConsultantJob()&&t.isBusinessConsultantJob()||r.isPartTimeJob()&&t.isPartTimeJob()?Object(f.a)(r):t}function ve(e,t=!1){Object(H.b)(this.currentWork)&&this.currentWork.companyName===e&&this.finishWork(!0),delete this.jobs[e],this.companyName===e&&(this.companyName=this.hasJob()?Object.keys(this.jobs)[0]:"")}function ke(){return Boolean(Object.keys(this.jobs).length)}function we(e=!1){return this.applyForJob(m.a[h.j[0]],e)}function _e(e=!1){return this.applyForJob(m.a[h.k[0]],e)}function Se(e=!1){return this.applyForJob(m.a[h.d[0]],e)}function Ce(e=!1){const t=c.a[this.location];return this.isQualified(t,m.a[h.i[0]])?this.applyForJob(m.a[h.i[0]],e):(e||Object(D.a)("Unfortunately, you do not qualify for this position"),!1)}function xe(e=!1){const t=c.a[this.location];if(this.isQualified(t,m.a[h.f[0]])){const t=m.a[h.f[0]];return this.applyForJob(t,e)}return e||Object(D.a)("Unfortunately, you do not qualify for this position"),!1}function Le(e=!1){return this.applyForJob(m.a[h.b[0]],e)}function Oe(e=!1){return this.applyForJob(m.a[h.c[0]],e)}function Me(e=!1){return this.applyForJob(m.a[h.h[2]],e)}function Te(e=!1){const t=c.a[this.location];if(this.isQualified(t,m.a[h.a[0]])){const t=m.a[h.a[0]];return this.applyForJob(t,e)}return e||Object(D.a)("Unfortunately, you do not qualify for this position"),!1}function Ae(e=!1){const t=c.a[this.location],n=h.e[1];return!!t.hasPosition(n)&&(this.isQualified(t,m.a[n])?(this.jobs[t.name]=n,this.companyName=t.name,e||Object(D.a)("Congratulations, you are now employed at "+this.location),!0):(e||Object(D.a)("Unfortunately, you do not qualify for this position"),!1))}function Re(e=!1){const t=c.a[this.location],n=h.g[1];return!!t.hasPosition(n)&&(this.isQualified(t,m.a[n])?(this.jobs[t.name]=n,this.companyName=t.name,e||Object(D.a)("Congratulations, you are now employed part-time at "+this.location),!0):(e||Object(D.a)("Unfortunately, you do not qualify for this position"),!1))}function Ne(e=!1){const t=c.a[this.location],n=h.e[0];return!!t.hasPosition(n)&&(this.isQualified(t,m.a[n])?(this.jobs[t.name]=n,this.companyName=t.name,e||Object(D.a)("Congratulations, you are now employed as a waiter at "+this.location),!0):(e||Object(D.a)("Unfortunately, you do not qualify for this position"),!1))}function Pe(e=!1){const t=c.a[this.location],n=h.g[0];return!!t.hasPosition(n)&&(this.isQualified(t,m.a[n])?(this.jobs[t.name]=n,this.companyName=t.name,e||Object(D.a)("Congratulations, you are now employed as a part-time waiter at "+this.location),!0):(e||Object(D.a)("Unfortunately, you do not qualify for this position"),!1))}function Ie(e,t){const n=e.jobStatReqOffset,a=t.requiredHacking>0?t.requiredHacking+n:0,r=t.requiredStrength>0?t.requiredStrength+n:0,i=t.requiredDefense>0?t.requiredDefense+n:0,o=t.requiredDexterity>0?t.requiredDexterity+n:0,s=t.requiredDexterity>0?t.requiredDexterity+n:0,l=t.requiredCharisma>0?t.requiredCharisma+n:0;return this.hacking>=a&&this.strength>=r&&this.defense>=i&&this.dexterity>=o&&this.agility>=s&&this.charisma>=l&&e.playerReputation>=t.requiredReputation}function Fe(e=!0){e&&this.resetMultipliers();for(let e=0;e<this.augmentations.length;++e){"HacknetNode NIC Architecture Neural-Upload"===this.augmentations[e].name&&(this.augmentations[e].name="Hacknet Node NIC Architecture Neural-Upload");const t=this.augmentations[e];if(t.name!=i.a.NeuroFluxGovernor)Object(a.a)(this.augmentations[e],!0);else for(let n=0;n<t.level;++n)Object(a.a)(this.augmentations[e],!0)}this.updateSkillLevels()}function De(){for(let e=0;e<this.sourceFiles.length;++e){const t="SourceFile"+this.sourceFiles[e].n;null!=R.a[t]?Object(T.a)(this.sourceFiles[e]):console.error("Invalid source file number: "+this.sourceFiles[e].n)}Object(A.a)(),this.updateSkillLevels()}function je(){const e=[],t=this.augmentations.length,n=Object.keys(this.jobs),a=Object.values(this.jobs);function r(e,t=d.a.CorpFactionRepRequirement){return n.includes(e)&&function(e){const t=c.a[e];return null==t?0:t.playerReputation}(e)>t}const i=y.a[G.a.Illuminati];!i.isBanned&&!i.isMember&&!i.alreadyInvited&&t>=30&&this.money>=15e10&&this.hacking>=1500&&this.strength>=1200&&this.defense>=1200&&this.dexterity>=1200&&this.agility>=1200&&e.push(i);const s=y.a[G.a.Daedalus];!s.isBanned&&!s.isMember&&!s.alreadyInvited&&t>=o.a.DaedalusAugsRequirement&&this.money>=1e11&&(this.hacking>=2500||this.strength>=1500&&this.defense>=1500&&this.dexterity>=1500&&this.agility>=1500)&&e.push(s);const l=y.a[G.a.TheCovenant];!l.isBanned&&!l.isMember&&!l.alreadyInvited&&t>=20&&this.money>=75e9&&this.hacking>=850&&this.strength>=850&&this.defense>=850&&this.dexterity>=850&&this.agility>=850&&e.push(l);const f=y.a[G.a.ECorp];f.isBanned||f.isMember||f.alreadyInvited||!r(w.a.AevumECorp)||e.push(f);const u=y.a[G.a.MegaCorp];u.isBanned||u.isMember||u.alreadyInvited||!r(w.a.Sector12MegaCorp)||e.push(u);const m=y.a[G.a.BachmanAssociates];m.isBanned||m.isMember||m.alreadyInvited||!r(w.a.AevumBachmanAndAssociates)||e.push(m);const h=y.a[G.a.BladeIndustries];h.isBanned||h.isMember||h.alreadyInvited||!r(w.a.Sector12BladeIndustries)||e.push(h);const p=y.a[G.a.NWO];p.isBanned||p.isMember||p.alreadyInvited||!r(w.a.VolhavenNWO)||e.push(p);const g=y.a[G.a.ClarkeIncorporated];g.isBanned||g.isMember||g.alreadyInvited||!r(w.a.AevumClarkeIncorporated)||e.push(g);const b=y.a[G.a.OmniTekIncorporated];b.isBanned||b.isMember||b.alreadyInvited||!r(w.a.VolhavenOmniTekIncorporated)||e.push(b);const E=y.a[G.a.FourSigma];E.isBanned||E.isMember||E.alreadyInvited||!r(w.a.Sector12FourSigma)||e.push(E);const v=y.a[G.a.KuaiGongInternational];v.isBanned||v.isMember||v.alreadyInvited||!r(w.a.ChongqingKuaiGongInternational)||e.push(v);const _=y.a[G.a.FulcrumSecretTechnologies],S=Object(x.d)(M.a.FulcrumSecretTechnologies);if(!(S instanceof L.a))throw new Error(G.a.FulcrumSecretTechnologies+" should be normal server");null==S?console.error(`Could not find ${G.a.FulcrumSecretTechnologies} Server`):_.isBanned||_.isMember||_.alreadyInvited||!S.backdoorInstalled||!r(w.a.AevumFulcrumTechnologies)||e.push(_);const C=y.a[G.a.BitRunners],O=Object(x.d)(M.a.BitRunnersServer);if(!(O instanceof L.a))throw new Error(G.a.BitRunners+" should be normal server");null==O?console.error(`Could not find ${G.a.BitRunners} Server`):C.isBanned||C.isMember||!O.backdoorInstalled||C.alreadyInvited||e.push(C);const T=y.a[G.a.TheBlackHand],A=Object(x.d)(M.a.TheBlackHandServer);if(!(A instanceof L.a))throw new Error(G.a.TheBlackHand+" should be normal server");null==A?console.error(`Could not find ${G.a.TheBlackHand} Server`):T.isBanned||T.isMember||!A.backdoorInstalled||T.alreadyInvited||e.push(T);const R=y.a[G.a.NiteSec],N=Object(x.d)(M.a.NiteSecServer);if(!(N instanceof L.a))throw new Error(G.a.NiteSec+" should be normal server");null==N?console.error(`Could not find ${G.a.NiteSec} Server`):R.isBanned||R.isMember||!N.backdoorInstalled||R.alreadyInvited||e.push(R);const I=y.a[G.a.Chongqing];!I.isBanned&&!I.isMember&&!I.alreadyInvited&&this.money>=2e7&&this.city==k.a.Chongqing&&e.push(I);const F=y.a[G.a.Sector12];!F.isBanned&&!F.isMember&&!F.alreadyInvited&&this.money>=15e6&&this.city==k.a.Sector12&&e.push(F);const D=y.a[G.a.NewTokyo];!D.isBanned&&!D.isMember&&!D.alreadyInvited&&this.money>=2e7&&this.city==k.a.NewTokyo&&e.push(D);const j=y.a[G.a.Aevum];!j.isBanned&&!j.isMember&&!j.alreadyInvited&&this.money>=4e7&&this.city==k.a.Aevum&&e.push(j);const B=y.a[G.a.Ishima];!B.isBanned&&!B.isMember&&!B.alreadyInvited&&this.money>=3e7&&this.city==k.a.Ishima&&e.push(B);const W=y.a[G.a.Volhaven];!W.isBanned&&!W.isMember&&!W.alreadyInvited&&this.money>=5e7&&this.city==k.a.Volhaven&&e.push(W);const H=y.a[G.a.SpeakersForTheDead];!H.isBanned&&!H.isMember&&!H.alreadyInvited&&this.hacking>=100&&this.strength>=300&&this.defense>=300&&this.dexterity>=300&&this.agility>=300&&this.numPeopleKilled>=30&&this.karma<=-45&&!n.includes(w.a.Sector12CIA)&&!n.includes(w.a.Sector12NSA)&&e.push(H);const U=y.a[G.a.TheDarkArmy];!U.isBanned&&!U.isMember&&!U.alreadyInvited&&this.hacking>=300&&this.strength>=300&&this.defense>=300&&this.dexterity>=300&&this.agility>=300&&this.city==k.a.Chongqing&&this.numPeopleKilled>=5&&this.karma<=-45&&!n.includes(w.a.Sector12CIA)&&!n.includes(w.a.Sector12NSA)&&e.push(U);const q=y.a[G.a.TheSyndicate];!q.isBanned&&!q.isMember&&!q.alreadyInvited&&this.hacking>=200&&this.strength>=200&&this.defense>=200&&this.dexterity>=200&&this.agility>=200&&(this.city==k.a.Aevum||this.city==k.a.Sector12)&&this.money>=1e7&&this.karma<=-90&&!n.includes(w.a.Sector12CIA)&&!n.includes(w.a.Sector12NSA)&&e.push(q);const $=y.a[G.a.Silhouette];!$.isBanned&&!$.isMember&&!$.alreadyInvited&&(a.includes("Chief Technology Officer")||a.includes("Chief Financial Officer")||a.includes("Chief Executive Officer"))&&this.money>=15e6&&this.karma<=-22&&e.push($);const K=y.a[G.a.Tetrads];!K.isBanned&&!K.isMember&&!K.alreadyInvited&&(this.city==k.a.Chongqing||this.city==k.a.NewTokyo||this.city==k.a.Ishima)&&this.strength>=75&&this.defense>=75&&this.dexterity>=75&&this.agility>=75&&this.karma<=-18&&e.push(K);const z=y.a[G.a.SlumSnakes];!z.isBanned&&!z.isMember&&!z.alreadyInvited&&this.strength>=30&&this.defense>=30&&this.dexterity>=30&&this.agility>=30&&this.karma<=-9&&this.money>=1e6&&e.push(z);const V=y.a[G.a.Netburners];let Y=0,J=0,X=0;for(let e=0;e<this.hacknetNodes.length;++e){const t=this.hacknetNodes[e];if("string"==typeof t){const e=Object(x.d)(t);if(null===e||!(e instanceof P.a))throw new Error("player hacknet server was not HacknetServer");X+=e.level,Y+=e.maxRam,J+=e.cores}else X+=t.level,Y+=t.ram,J+=t.cores}!V.isBanned&&!V.isMember&&!V.alreadyInvited&&this.hacking>=80&&Y>=8&&J>=4&&X>=100&&e.push(V);const Q=y.a[G.a.TianDiHui];!Q.isBanned&&!Q.isMember&&!Q.alreadyInvited&&this.money>=1e6&&this.hacking>=50&&(this.city==k.a.Chongqing||this.city==k.a.NewTokyo||this.city==k.a.Ishima)&&e.push(Q);const Z=y.a[G.a.CyberSec],ee=Object(x.d)(M.a.CyberSecServer);if(!(ee instanceof L.a))throw new Error(G.a.CyberSec+" should be normal server");return null==ee?console.error(`Could not find ${G.a.CyberSec} Server`):Z.isBanned||Z.isMember||!ee.backdoorInstalled||Z.alreadyInvited||e.push(Z),e}function Be(e){this.bitNodeN=e}function Ge(e){for(const t of this.queuedAugmentations)if(t.name==e)return void console.warn(`tried to queue ${e} twice, this may be a bug`);for(const t of this.augmentations)if(t.name==e)return void console.warn(`tried to queue ${e} twice, this may be a bug`);this.queuedAugmentations.push(new r.a(e))}function We(e,t=1){if(null==e||null==e.type)return"No reward for this contract";switch(e.type){case s.c.FactionReputation:if(null==e.name||!(y.a[e.name]instanceof g.a))return e.type=s.c.FactionReputationAll,this.gainCodingContractReward(e);const n=d.a.CodingContractBaseFactionRepGain*t;return y.a[e.name].playerReputation+=n,`Gained ${n} faction reputation for ${e.name}`;case s.c.FactionReputationAll:const a=d.a.CodingContractBaseFactionRepGain*t,r=[G.a.Bladeburners],i=this.factions.slice().filter(e=>!r.includes(e));if(0==i.length)return e.type=s.c.Money,this.gainCodingContractReward(e,t);const f=Math.floor(a/i.length);for(const e of i)y.a[e]instanceof g.a&&(y.a[e].playerReputation+=f);return`Gained ${f} reputation for each of the following factions: ${i.toString()}`;case s.c.CompanyReputation:{if(null==e.name||!(c.a[e.name]instanceof l.a))return e.type=s.c.FactionReputationAll,this.gainCodingContractReward(e);const n=d.a.CodingContractBaseCompanyRepGain*t;return c.a[e.name].playerReputation+=n,`Gained ${n} company reputation for ${e.name}`}case s.c.Money:default:{const e=d.a.CodingContractBaseMoneyGain*t*o.a.CodingContractMoney;return this.gainMoney(e,"codingcontract"),"Gained "+I.a.formatMoney(e)}}}function He(e){return null==E.a[e]?(console.warn("Player.travel() called with invalid city: "+e),!1):(this.city=e,!0)}function Ue(e){return null==v.a[e]?(console.warn("Player.gotoLocation() called with invalid location: "+e),!1):(this.location=e,!0)}function qe(){return 10===this.bitNodeN||this.sourceFileLvl(10)>0}function $e(e){this.exploits.includes(e)||(this.exploits.push(e),j.b.emit("SF -1 acquired!",j.d.SUCCESS,2e3))}function Ke(e){const t=B.a[e];t&&(this.achievements.map(e=>e.ID).includes(e)||(this.achievements.push({ID:e,unlockedOn:(new Date).getTime()}),j.b.emit(`Unlocked Achievement: "${t.Name}"`,j.d.SUCCESS,2e3)))}function ze(e){return Object(C.a)(this.intelligence,e)}function Ve(){return this.moneySourceA.casino}function Ye(e){return this.hasOwnProperty(e)?this[e]:1}function Je(e,t){this.hasOwnProperty(e)&&(this[e]=t)}function Xe(){return 13===this.bitNodeN||this.sourceFileLvl(13)>0}function Qe(e){const t=this.sourceFiles.find(t=>t.n===e);return t?t.lvl:0}function Ze(){let e=1;return this.hasAugmentation(i.a.NeuroreceptorManager)||(e=this.focus?1:d.a.BaseFocusBonus),e}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var a=n(1030),r=n(1031);const i={};for(const e of r.a)i[e.key]=new a.a(e.name,e.create,e.run)},function(e,t,n){"use strict";let a;function r(e){switch(e){case a.HackingChance:return"+x% hack() success chance";case a.HackingSpeed:return"+x% faster hack(), grow(), and weaken()";case a.HackingMoney:return"+x% hack() power";case a.HackingGrow:return"+x% grow() power";case a.Hacking:return"+x% hacking skill";case a.Strength:return"+x% strength skill";case a.Defense:return"+x% defense skill";case a.Dexterity:return"+x% dexterity skill";case a.Agility:return"+x% agility skill";case a.Charisma:return"+x% charisma skill";case a.HacknetMoney:return"+x% hacknet production";case a.HacknetCost:return"-x% cheaper hacknet cost";case a.Rep:return"+x% reputation from factions and companies";case a.WorkMoney:return"+x% work money";case a.Crime:return"+x% crime money";case a.Bladeburner:return"+x% all bladeburner stats"}throw new Error("Calling effect for fragment type that doesn't have an effect "+e)}n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return r})),function(e){e[e.None=0]="None",e[e.Delete=1]="Delete",e[e.HackingChance=2]="HackingChance",e[e.HackingSpeed=3]="HackingSpeed",e[e.HackingMoney=4]="HackingMoney",e[e.HackingGrow=5]="HackingGrow",e[e.Hacking=6]="Hacking",e[e.Strength=7]="Strength",e[e.Defense=8]="Defense",e[e.Dexterity=9]="Dexterity",e[e.Agility=10]="Agility",e[e.Charisma=11]="Charisma",e[e.HacknetMoney=12]="HacknetMoney",e[e.HacknetCost=13]="HacknetCost",e[e.Rep=14]="Rep",e[e.WorkMoney=15]="WorkMoney",e[e.Crime=16]="Crime",e[e.Bladeburner=17]="Bladeburner",e[e.Booster=18]="Booster"}(a||(a={}))},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"o",(function(){return NewIndustry})),__webpack_require__.d(__webpack_exports__,"n",(function(){return NewCity})),__webpack_require__.d(__webpack_exports__,"B",(function(){return UnlockUpgrade})),__webpack_require__.d(__webpack_exports__,"j",(function(){return LevelUpgrade})),__webpack_require__.d(__webpack_exports__,"i",(function(){return IssueDividends})),__webpack_require__.d(__webpack_exports__,"r",(function(){return SellMaterial})),__webpack_require__.d(__webpack_exports__,"s",(function(){return SellProduct})),__webpack_require__.d(__webpack_exports__,"y",(function(){return SetSmartSupply})),__webpack_require__.d(__webpack_exports__,"z",(function(){return SetSmartSupplyUseLeftovers})),__webpack_require__.d(__webpack_exports__,"e",(function(){return BuyMaterial})),__webpack_require__.d(__webpack_exports__,"b",(function(){return BulkPurchase})),__webpack_require__.d(__webpack_exports__,"t",(function(){return SellShares})),__webpack_require__.d(__webpack_exports__,"c",(function(){return BuyBackShares})),__webpack_require__.d(__webpack_exports__,"a",(function(){return AssignJob})),__webpack_require__.d(__webpack_exports__,"C",(function(){return UpgradeOfficeSize})),__webpack_require__.d(__webpack_exports__,"A",(function(){return ThrowParty})),__webpack_require__.d(__webpack_exports__,"p",(function(){return PurchaseWarehouse})),__webpack_require__.d(__webpack_exports__,"E",(function(){return UpgradeWarehouseCost})),__webpack_require__.d(__webpack_exports__,"D",(function(){return UpgradeWarehouse})),__webpack_require__.d(__webpack_exports__,"d",(function(){return BuyCoffee})),__webpack_require__.d(__webpack_exports__,"h",(function(){return HireAdVert})),__webpack_require__.d(__webpack_exports__,"m",(function(){return MakeProduct})),__webpack_require__.d(__webpack_exports__,"q",(function(){return Research})),__webpack_require__.d(__webpack_exports__,"g",(function(){return ExportMaterial})),__webpack_require__.d(__webpack_exports__,"f",(function(){return CancelExportMaterial})),__webpack_require__.d(__webpack_exports__,"l",(function(){return LimitProductProduction})),__webpack_require__.d(__webpack_exports__,"k",(function(){return LimitMaterialProduction})),__webpack_require__.d(__webpack_exports__,"u",(function(){return SetMaterialMarketTA1})),__webpack_require__.d(__webpack_exports__,"v",(function(){return SetMaterialMarketTA2})),__webpack_require__.d(__webpack_exports__,"w",(function(){return SetProductMarketTA1})),__webpack_require__.d(__webpack_exports__,"x",(function(){return SetProductMarketTA2}));var _MaterialSizes__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(183),_IndustryData__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(50),_Industry__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(1062),_data_Constants__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(39),_OfficeSpace__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(389),_Product__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(419),_Warehouse__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(246),_Locations_Cities__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(156),_EmployeePositions__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(45),_IndustryUpgrades__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(329),_ResearchMap__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(289),_ui_Helpers__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(420);function NewIndustry(e,t,n){if(e.divisions.find(({type:e})=>t==e))throw new Error(`You have already expanded into the ${t} industry!`);for(let t=0;t<e.divisions.length;++t)if(e.divisions[t].name===n)throw new Error("This division name is already in use!");const a=_IndustryData__WEBPACK_IMPORTED_MODULE_1__.d[t];if(void 0===a)throw new Error(`Invalid industry: '${t}'`);if(e.funds<a)throw new Error("Not enough money to create a new division in this industry");if(""===n)throw new Error("New division must have a name!");e.funds=e.funds-a,e.divisions.push(new _Industry__WEBPACK_IMPORTED_MODULE_2__.a({corp:e,name:n,type:t}))}function NewCity(e,t,n){if(e.funds<_data_Constants__WEBPACK_IMPORTED_MODULE_3__.a.OfficeInitialCost)throw new Error("You don't have enough company funds to open a new office!");if(t.offices[n])throw new Error(`You have already expanded into ${n} for ${t.name}`);e.funds=e.funds-_data_Constants__WEBPACK_IMPORTED_MODULE_3__.a.OfficeInitialCost,t.offices[n]=new _OfficeSpace__WEBPACK_IMPORTED_MODULE_4__.a({loc:n,size:_data_Constants__WEBPACK_IMPORTED_MODULE_3__.a.OfficeInitialSize})}function UnlockUpgrade(e,t){if(e.funds<t.price)throw new Error("Insufficient funds");if(1===e.unlockUpgrades[t.index])throw new Error(`You have already unlocked the ${t.name} upgrade!`);e.unlock(t)}function LevelUpgrade(e,t){const n=t.basePrice,a=t.priceMult,r=e.upgrades[t.index],i=n*Math.pow(a,r);if(e.funds<i)throw new Error("Insufficient funds");e.upgrade(t)}function IssueDividends(e,t){if(isNaN(t)||t<0||t>_data_Constants__WEBPACK_IMPORTED_MODULE_3__.a.DividendMaxPercentage)throw new Error("Invalid value. Must be an integer between 0 and "+_data_Constants__WEBPACK_IMPORTED_MODULE_3__.a.DividendMaxPercentage);e.dividendPercentage=100*t}function SellMaterial(mat,amt,price){""===price&&(price="0"),""===amt&&(amt="0");let cost=price.replace(/\s+/g,"");cost=cost.replace(/[^-()\d/*+.MPe]/g,"");let temp=cost.replace(/MP/g,mat.bCost+"");try{temp=eval(temp)}catch(e){throw new Error("Invalid value or expression for sell price field: "+e)}if(null==temp||isNaN(parseFloat(temp))||parseFloat(temp)<0)throw new Error("Invalid value or expression for sell price field");if(cost.includes("MP")?mat.sCost=cost:mat.sCost=temp,amt=amt.toUpperCase(),amt.includes("MAX")||amt.includes("PROD")){let q=amt.replace(/\s+/g,"");q=q.replace(/[^-()\d/*+.MAXPROD]/g,"");let tempQty=q.replace(/MAX/g,mat.maxsll.toString());tempQty=tempQty.replace(/PROD/g,mat.prd.toString());try{tempQty=eval(tempQty)}catch(e){throw new Error("Invalid value or expression for sell quantity field: "+e)}if(null==tempQty||isNaN(parseFloat(tempQty))||parseFloat(tempQty)<0)throw new Error("Invalid value or expression for sell quantity field");mat.sllman[0]=!0,mat.sllman[1]=q}else{if(isNaN(parseFloat(amt))||parseFloat(amt)<0)throw new Error("Invalid value for sell quantity field! Must be numeric or 'PROD' or 'MAX'");{let e=parseFloat(amt);isNaN(e)&&(e=0),0===e?(mat.sllman[0]=!1,mat.sllman[1]=0):(mat.sllman[0]=!0,mat.sllman[1]=e)}}}function SellProduct(product,city,amt,price,all){if(price.includes("MP")){price=price.replace(/\s+/g,""),price=price.replace(/[^-()\d/*+.MP]/g,"");let temp=price.replace(/MP/g,"1");try{temp=eval(temp)}catch(e){throw new Error("Invalid value or expression for sell price field: "+e)}if(null==temp||isNaN(parseFloat(temp))||parseFloat(temp)<0)throw new Error("Invalid value or expression for sell price field.");product.sCost=price}else{const e=parseFloat(price);if(isNaN(e))throw new Error("Invalid value for sell price field");product.sCost=e}const cities=Object.keys(_Locations_Cities__WEBPACK_IMPORTED_MODULE_7__.a);if(amt=amt.toUpperCase(),amt.includes("MAX")||amt.includes("PROD")){let qty=amt.replace(/\s+/g,"");qty=qty.replace(/[^-()\d/*+.MAXPROD]/g,"");let temp=qty.replace(/MAX/g,product.maxsll.toString());temp=temp.replace(/PROD/g,product.data[city][1].toString());try{temp=eval(temp)}catch(e){throw new Error("Invalid value or expression for sell quantity field: "+e)}if(null==temp||isNaN(parseFloat(temp))||parseFloat(temp)<0)throw new Error("Invalid value or expression for sell quantity field");if(all)for(let e=0;e<cities.length;++e){const t=cities[e];product.sllman[t][0]=!0,product.sllman[t][1]=qty}else product.sllman[city][0]=!0,product.sllman[city][1]=qty}else{if(isNaN(parseFloat(amt))||parseFloat(amt)<0)throw new Error("Invalid value for sell quantity field! Must be numeric or 'PROD' or 'MAX'");{let e=parseFloat(amt);if(isNaN(e)&&(e=0),0===e)if(all)for(let e=0;e<cities.length;++e){const t=cities[e];product.sllman[t][0]=!1,product.sllman[t][1]=""}else product.sllman[city][0]=!1,product.sllman[city][1]="";else if(all)for(let t=0;t<cities.length;++t){const n=cities[t];product.sllman[n][0]=!0,product.sllman[n][1]=e}else product.sllman[city][0]=!0,product.sllman[city][1]=e}}}function SetSmartSupply(e,t){e.smartSupplyEnabled=t}function SetSmartSupplyUseLeftovers(e,t,n){if(!Object.keys(e.smartSupplyUseLeftovers).includes(t.name.replace(/ /g,"")))throw new Error(`Invalid material '${t.name}'`);e.smartSupplyUseLeftovers[t.name.replace(/ /g,"")]=n}function BuyMaterial(e,t){if(isNaN(t)||t<0)throw new Error(`Invalid amount '${t}' to buy material '${e.name}'`);e.buy=t}function BulkPurchase(e,t,n,a){const r=_MaterialSizes__WEBPACK_IMPORTED_MODULE_0__.a[n.name],i=(t.size-t.sizeUsed)/r;if(isNaN(a)||a<0)throw new Error("Invalid input amount");if(a>i)throw new Error("You do not have enough warehouse size to fit this purchase");const o=a*n.bCost;if(!(e.funds>=o))throw new Error("You cannot afford this purchase.");e.funds=e.funds-o,n.qty+=a}function SellShares(e,t,n){if(isNaN(n))throw new Error("Invalid value for number of shares");if(n<0)throw new Error("Invalid value for number of shares");if(n>e.numShares)throw new Error("You don't have that many shares to sell!");if(!e.public)throw new Error("You haven't gone public!");if(e.shareSaleCooldown)throw new Error("Share sale on cooldown!");const a=e.calculateShareSale(n),r=a[0],i=a[1],o=a[2];return e.numShares-=n,e.issuedShares+=n,e.sharePrice=i,e.shareSalesUntilPriceUpdate=o,e.shareSaleCooldown=_data_Constants__WEBPACK_IMPORTED_MODULE_3__.a.SellSharesCooldown,t.gainMoney(r,"corporation"),r}function BuyBackShares(e,t,n){if(isNaN(n))throw new Error("Invalid value for number of shares");if(n<0)throw new Error("Invalid value for number of shares");if(n>e.issuedShares)throw new Error("You don't have that many shares to buy!");if(!e.public)throw new Error("You haven't gone public!");const a=1.1*e.sharePrice;if(t.money<n*a)throw new Error("You cant afford that many shares!");return e.numShares+=n,e.issuedShares-=n,t.loseMoney(n*a,"corporation"),!0}function AssignJob(e,t){if(!Object.values(_EmployeePositions__WEBPACK_IMPORTED_MODULE_8__.a).includes(t))throw new Error(`'${t}' is not a valid job.`);e.pos=t}function UpgradeOfficeSize(e,t,n){const a=Math.round(t.size/_data_Constants__WEBPACK_IMPORTED_MODULE_3__.a.OfficeInitialSize);let r=0;for(let e=0;e<n/_data_Constants__WEBPACK_IMPORTED_MODULE_3__.a.OfficeInitialSize;++e)r+=Math.pow(1.09,a+e);const i=_data_Constants__WEBPACK_IMPORTED_MODULE_3__.a.OfficeInitialCost*r;e.funds<i||(t.size+=n,e.funds=e.funds-i)}function ThrowParty(e,t,n){const a=n*t.employees.length;if(e.funds<a)return 0;e.funds=e.funds-a;let r=0;for(let e=0;e<t.employees.length;++e)r=t.employees[e].throwParty(n);return r}function PurchaseWarehouse(e,t,n){e.funds<_data_Constants__WEBPACK_IMPORTED_MODULE_3__.a.WarehouseInitialCost||t.warehouses[n]instanceof _Warehouse__WEBPACK_IMPORTED_MODULE_6__.a||(t.warehouses[n]=new _Warehouse__WEBPACK_IMPORTED_MODULE_6__.a({corp:e,industry:t,loc:n,size:_data_Constants__WEBPACK_IMPORTED_MODULE_3__.a.WarehouseInitialSize}),e.funds=e.funds-_data_Constants__WEBPACK_IMPORTED_MODULE_3__.a.WarehouseInitialCost)}function UpgradeWarehouseCost(e,t){return Array.from(Array(t).keys()).reduce((t,n)=>t+_data_Constants__WEBPACK_IMPORTED_MODULE_3__.a.WarehouseUpgradeBaseCost*Math.pow(1.07,e.level+1+n),0)}function UpgradeWarehouse(e,t,n,a=1){const r=UpgradeWarehouseCost(n,a);e.funds<r||(n.level+=a,n.updateSize(e,t),e.funds=e.funds-r)}function BuyCoffee(e,t,n){const a=_IndustryUpgrades__WEBPACK_IMPORTED_MODULE_9__.a[0],r=n.employees.length*a[1];e.funds<r||(e.funds=e.funds-r,t.upgrade(a,{corporation:e,office:n}))}function HireAdVert(e,t,n){const a=_IndustryUpgrades__WEBPACK_IMPORTED_MODULE_9__.a[1],r=a[1]*Math.pow(a[2],t.upgrades[1]);e.funds<r||(e.funds=e.funds-r,t.upgrade(a,{corporation:e,office:n}))}function MakeProduct(e,t,n,a,r,i){if(r<0&&(r=0),i<0&&(i=0),null==a||""===a)throw new Error("You must specify a name for your product!");if(!t.makesProducts)throw new Error("You cannot create products for this industry!");if(isNaN(r))throw new Error("Invalid value for design investment");if(isNaN(i))throw new Error("Invalid value for marketing investment");if(e.funds<r+i)throw new Error("You don't have enough company funds to make this large of an investment");let o=3;t.hasResearch("uPgrade: Capacity.II")?o=5:t.hasResearch("uPgrade: Capacity.I")&&(o=4);const s=t.products;if(Object.keys(s).length>=o)throw new Error(`You are already at the max products (${o}) for division: ${t.name}!`);const l=new _Product__WEBPACK_IMPORTED_MODULE_5__.a({name:a.replace(/[<>]/g,"").trim(),createCity:n,designCost:r,advCost:i});if(s[l.name]instanceof _Product__WEBPACK_IMPORTED_MODULE_5__.a)throw new Error("You already have a product with this name!");e.funds=e.funds-(r+i),s[l.name]=l}function Research(e,t){const n=_IndustryData__WEBPACK_IMPORTED_MODULE_1__.c[e.type];if(void 0===n)throw new Error(`No research tree for industry '${e.type}'`);if(!n.getAllNodes().includes(t))throw new Error(`No research named '${t}'`);const a=_ResearchMap__WEBPACK_IMPORTED_MODULE_10__.a[t];if(e.sciResearch.qty<a.cost)throw new Error("You do not have enough Scientific Research for "+a.name);e.sciResearch.qty-=a.cost,n.research(t),e.researched[t]=!0}function ExportMaterial(divisionName,cityName,material,amt,division){let sanitizedAmt=amt.replace(/\s+/g,"").toUpperCase();sanitizedAmt=sanitizedAmt.replace(/[^-()\d/*+.MAX]/g,"");let temp=sanitizedAmt.replace(/MAX/g,"1");try{temp=eval(temp)}catch(e){throw new Error("Invalid expression entered for export amount: "+e)}const n=parseFloat(temp);if(null==n||isNaN(n)||n<0)throw new Error("Invalid amount entered for export");if(!division||!Object(_ui_Helpers__WEBPACK_IMPORTED_MODULE_11__.a)(material.name,division))throw new Error(`You cannot export material: ${material.name} to division: ${divisionName}!`);const exportObj={ind:divisionName,city:cityName,amt:sanitizedAmt};material.exp.push(exportObj)}function CancelExportMaterial(e,t,n,a){for(let r=0;r<n.exp.length;++r)if(n.exp[r].ind===e&&n.exp[r].city===t&&n.exp[r].amt===a){n.exp.splice(r,1);break}}function LimitProductProduction(e,t,n){n<0||isNaN(n)?(e.prdman[t][0]=!1,e.prdman[t][1]=0):(e.prdman[t][0]=!0,e.prdman[t][1]=n)}function LimitMaterialProduction(e,t){t<0||isNaN(t)?(e.prdman[0]=!1,e.prdman[1]=0):(e.prdman[0]=!0,e.prdman[1]=t)}function SetMaterialMarketTA1(e,t){e.marketTa1=t}function SetMaterialMarketTA2(e,t){e.marketTa2=t}function SetProductMarketTA1(e,t){e.marketTa1=t}function SetProductMarketTA2(e,t){e.marketTa2=t}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));const a={HackersStartingHandbook:"hackers-starting-handbook.lit",CorporationManagementHandbook:"corporation-management-handbook.lit",HistoryOfSynthoids:"history-of-synthoids.lit",AGreenTomorrow:"A-Green-Tomorrow.lit",AlphaOmega:"alpha-omega.lit",SimulatedReality:"simulated-reality.lit",BeyondMan:"beyond-man.lit",BrighterThanTheSun:"brighter-than-the-sun.lit",DemocracyIsDead:"democracy-is-dead.lit",Sector12Crime:"sector-12-crime.lit",ManAndMachine:"man-and-machine.lit",SecretSocieties:"secret-societies.lit",TheFailedFrontier:"the-failed-frontier.lit",CodedIntelligence:"coded-intelligence.lit",SyntheticMuscles:"synthetic-muscles.lit",TensionsInTechRace:"tensions-in-tech-race.lit",CostOfImmortality:"cost-of-immortality.lit",TheHiddenWorld:"the-hidden-world.lit",TheNewGod:"the-new-god.lit",NewTriads:"new-triads.lit",TheSecretWar:"the-secret-war.lit"}},function(e,t,n){"use strict";let a;n.d(t,"a",(function(){return a})),function(e){e[e.Idle=0]="Idle",e[e.Company=1]="Company",e[e.Faction=2]="Faction",e[e.Crime=3]="Crime",e[e.Class=4]="Class",e[e.Gym=5]="Gym",e[e.Bladeburner=6]="Bladeburner",e[e.Recovery=7]="Recovery",e[e.Synchro=8]="Synchro"}(a||(a={}))},,,,,,,function(e,t,n){"use strict";let a;n.d(t,"a",(function(){return a})),function(e){e.Long="L",e.Short="S"}(a||(a={}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));const a={}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return l}));var a=n(1036),r=n(258),i=n(22);let o={};function s(){const e=o;o={},a.a.forEach(e=>{var t;null!=o[(t=e).name]&&console.warn("Duplicate Company Position being defined: "+t.name),o[t.name]=new r.a(t)});for(const t of Object.keys(o)){const n=o[t];e[t]instanceof r.a?(n.favor=e[t].favor,isNaN(n.favor)&&(n.favor=0)):n.favor=0}}function l(e){o=JSON.parse(e,i.c)}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var a=n(0),r=n.n(a),i=n(48),o=n(30),s=n(1),l=n(6),c=n(24),f=n(307);const u=({name:e,color:t,classes:n=Object(f.b)(),children:a,data:u})=>{let m="";return u&&(void 0!==u.content?m=u.content:void 0!==u.level&&void 0!==u.exp?m=`${Object(c.f)(u.level,0)} (${l.a.formatExp(u.exp)} exp)`:void 0!==u.level&&void 0===u.exp&&(m=""+Object(c.f)(u.level,0))),r.a.createElement(i.a,null,r.a.createElement(o.a,{classes:{root:n.cellNone}},r.a.createElement(s.a,{style:{color:t}},e)),r.a.createElement(o.a,{align:"right",classes:{root:n.cellNone}},m?r.a.createElement(s.a,{style:{color:t}},m):r.a.createElement(r.a.Fragment,null),a))}},function(e,t,n){"use strict";n.d(t,"b",(function(){return f})),n.d(t,"a",(function(){return u}));var a=n(0),r=n.n(a),i=n(30),o=n(150),s=n(118);function l(){return(l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}const c=Object(s.a)({root:{borderBottom:"none"},small:{width:"1px"}}),f=e=>r.a.createElement(i.a,l({},e,{classes:{root:c().root,...e.classes}})),u=e=>r.a.createElement(o.a,l({},e,{classes:{root:c().small,...e.classes}}))},,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"c",(function(){return o})),n.d(t,"b",(function(){return s}));var a=n(4),r=n(22);let i={[a.a.SlumSnakes]:{power:1,territory:1/7},[a.a.Tetrads]:{power:1,territory:1/7},[a.a.TheSyndicate]:{power:1,territory:1/7},[a.a.TheDarkArmy]:{power:1,territory:1/7},[a.a.SpeakersForTheDead]:{power:1,territory:1/7},[a.a.NiteSec]:{power:1,territory:1/7},[a.a.TheBlackHand]:{power:1,territory:1/7}};function o(){i={[a.a.SlumSnakes]:{power:1,territory:1/7},[a.a.Tetrads]:{power:1,territory:1/7},[a.a.TheSyndicate]:{power:1,territory:1/7},[a.a.TheDarkArmy]:{power:1,territory:1/7},[a.a.SpeakersForTheDead]:{power:1,territory:1/7},[a.a.NiteSec]:{power:1,territory:1/7},[a.a.TheBlackHand]:{power:1,territory:1/7}}}function s(e){i=JSON.parse(e,r.c)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var a=n(279),r=n(12),i=n(250);const o={Shoplift:new a.a("Shoplift",i.a.Shoplift,2e3,15e3,.05,.1,{dexterity_success_weight:1,agility_success_weight:1,dexterity_exp:2,agility_exp:2}),RobStore:new a.a("Rob Store",i.a.RobStore,6e4,4e5,.2,.5,{hacking_exp:30,dexterity_exp:45,agility_exp:45,hacking_success_weight:.5,dexterity_success_weight:2,agility_success_weight:1,intelligence_exp:7.5*r.a.IntelligenceCrimeBaseExpGain}),Mug:new a.a("Mug",i.a.Mug,4e3,36e3,.2,.25,{strength_exp:3,defense_exp:3,dexterity_exp:3,agility_exp:3,strength_success_weight:1.5,defense_success_weight:.5,dexterity_success_weight:1.5,agility_success_weight:.5}),Larceny:new a.a("Larceny",i.a.Larceny,9e4,8e5,1/3,1.5,{hacking_exp:45,dexterity_exp:60,agility_exp:60,hacking_success_weight:.5,dexterity_success_weight:1,agility_success_weight:1,intelligence_exp:15*r.a.IntelligenceCrimeBaseExpGain}),DealDrugs:new a.a("Deal Drugs",i.a.Drugs,1e4,12e4,1,.5,{dexterity_exp:5,agility_exp:5,charisma_exp:10,charisma_success_weight:3,dexterity_success_weight:2,agility_success_weight:1}),BondForgery:new a.a("Bond Forgery",i.a.BondForgery,3e5,45e5,.5,.1,{hacking_exp:100,dexterity_exp:150,charisma_exp:15,hacking_success_weight:.05,dexterity_success_weight:1.25,intelligence_exp:60*r.a.IntelligenceCrimeBaseExpGain}),TraffickArms:new a.a("Traffick Arms",i.a.TraffickArms,4e4,6e5,2,1,{strength_exp:20,defense_exp:20,dexterity_exp:20,agility_exp:20,charisma_exp:40,charisma_success_weight:1,strength_success_weight:1,defense_success_weight:1,dexterity_success_weight:1,agility_success_weight:1}),Homicide:new a.a("Homicide",i.a.Homicide,3e3,45e3,1,3,{strength_exp:2,defense_exp:2,dexterity_exp:2,agility_exp:2,strength_success_weight:2,defense_success_weight:2,dexterity_success_weight:.5,agility_success_weight:.5,kills:1}),GrandTheftAuto:new a.a("Grand Theft Auto",i.a.GrandTheftAuto,8e4,16e5,8,5,{strength_exp:20,defense_exp:20,dexterity_exp:20,agility_exp:80,charisma_exp:40,hacking_success_weight:1,strength_success_weight:1,dexterity_success_weight:4,agility_success_weight:2,charisma_success_weight:2,intelligence_exp:16*r.a.IntelligenceCrimeBaseExpGain}),Kidnap:new a.a("Kidnap",i.a.Kidnap,12e4,36e5,5,6,{strength_exp:80,defense_exp:80,dexterity_exp:80,agility_exp:80,charisma_exp:80,charisma_success_weight:1,strength_success_weight:1,dexterity_success_weight:1,agility_success_weight:1,intelligence_exp:26*r.a.IntelligenceCrimeBaseExpGain}),Assassination:new a.a("Assassination",i.a.Assassination,3e5,12e6,8,10,{strength_exp:300,defense_exp:300,dexterity_exp:300,agility_exp:300,strength_success_weight:1,dexterity_success_weight:2,agility_success_weight:1,intelligence_exp:65*r.a.IntelligenceCrimeBaseExpGain,kills:1}),Heist:new a.a("Heist",i.a.Heist,6e5,12e7,18,15,{hacking_exp:450,strength_exp:450,defense_exp:450,dexterity_exp:450,agility_exp:450,charisma_exp:450,hacking_success_weight:1,strength_success_weight:1,defense_success_weight:1,dexterity_success_weight:1,agility_success_weight:1,charisma_success_weight:1,intelligence_exp:130*r.a.IntelligenceCrimeBaseExpGain})}},function(e,t,n){"use strict";function a(e){return e.startsWith("/")?e.slice(1):e}function r(e){return e.endsWith("/")?e.slice(0,-1):e}function i(e){return null!=e.match(/^[.a-zA-Z0-9_-]+[.][a-zA-Z0-9]+(?:-\d+(?:\.\d*)?%-INC)?$/)}function o(e){return null!=e.match(/^.?[a-zA-Z0-9_-]+$/)}function s(e){let t=e;if(0===t.length)return!1;if(1===t.length)return"/"===t;if(!t.startsWith("/"))return!1;t=t.slice(1),t=r(t);const n=t.split("/");for(const e of n)if("."!==e&&".."!==e&&!o(e))return!1;return!0}function l(e){if(null==e||"string"!=typeof e)return!1;const t=e;if(t.length<3)return!1;if(t.endsWith("/"))return!1;const n=t.lastIndexOf("/");if(-1===n)return i(t);const a=t.slice(n+1);return s(t.slice(0,n+1))&&i(a)}function c(e){let t=e;if(t=a(t),t=r(t),-1===t.lastIndexOf("/"))return"/";const n=t.split("/");return 0===n.length?"/":n[0]+"/"}function f(e){const t=e,n=t.lastIndexOf("/");return-1===n?"":t.slice(0,n+1)}function u(e,t,n){const a=h(e,n);if(null===a)return e;{const e=r(a),n=function(e){const t=e,n=t.lastIndexOf("/");if(-1===n)return t;return t.slice(n+1)}(t);return e+"/"+n}}function m(e){return!!l(e)&&(null!=e&&0!==e.length&&e.lastIndexOf("/")<=0)}function h(e,t){let n=e;if(!n.startsWith("/")&&t&&(n=t+(t.endsWith("/")?"":"/")+n),!s(n))return null;n=a(n),n=r(n);const i=n.split("/"),o=[];for(const e of i)if("."!==e)if(".."===e){if(null==o.pop())return null}else o.push(e);return"/"+o.join("/")}function d(e,t){let n=e;if(n.startsWith("/")||null==t||(n=t+(t.endsWith("/")?"":"/")+n),!l(n))return null;n=a(n);const r=n.split("/"),i=[];for(const e of r)if("."!==e)if(".."===e){if(null==i.pop())return null}else i.push(e);return"/"+i.join("/")}function p(e,t){return e.startsWith("/")||(e="/"+e),t.startsWith("/")||(t="/"+t),e===t}function g(e,t){return e.endsWith(".ns")||e.endsWith(".js")||(e+=".js"),t.endsWith(".ns")||t.endsWith(".js")||(t+=".js"),p(e,t)}n.d(t,"k",(function(){return a})),n.d(t,"l",(function(){return r})),n.d(t,"i",(function(){return s})),n.d(t,"j",(function(){return l})),n.d(t,"g",(function(){return c})),n.d(t,"e",(function(){return f})),n.d(t,"f",(function(){return u})),n.d(t,"h",(function(){return m})),n.d(t,"c",(function(){return h})),n.d(t,"d",(function(){return d})),n.d(t,"a",(function(){return p})),n.d(t,"b",(function(){return g}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));const a=new(n(960).a)},,function(e,t,n){"use strict";function a(e){return function(t){t.isTrusted&&e()}}n.d(t,"a",(function(){return a}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));const a={Home:"home",FulcrumSecretTechnologies:"fulcrumassets",CyberSecServer:"CSEC",NiteSecServer:"avmnite-02h",TheBlackHandServer:"I.I.I.I",BitRunnersServer:"run4theh111z",TheDarkArmyServer:".",DaedalusServer:"The-Cave",WorldDaemon:"w0r1d_d43m0n",DarkWeb:"darkweb"}},function(e,t,n){"use strict";n.d(t,"a",(function(){return p})),n.d(t,"c",(function(){return g})),n.d(t,"d",(function(){return y})),n.d(t,"b",(function(){return b}));var a=n(0),r=n.n(a),i=n(22),o=n(12),s=n(9),l=n(6),c=n(14),f=n(20),u=n(24),m=n(333),h=n(154),d=n(164);let p;!function(e){e.StudyComputerScience="StudyComputerScience",e.DataStructures="DataStructures",e.Networks="Networks",e.Algorithms="Algorithms",e.Management="Management",e.Leadership="Leadership",e.GymStrength="GymStrength",e.GymDefense="GymDefense",e.GymDexterity="GymDexterity",e.GymAgility="GymAgility"}(p||(p={}));const g={[p.StudyComputerScience]:{youAreCurrently:"studying Computer Science",type:p.StudyComputerScience,earnings:Object(d.b)({hackExp:.5,intExp:.01})},[p.DataStructures]:{youAreCurrently:"taking a Data Structures course",type:p.DataStructures,earnings:Object(d.b)({money:-40,hackExp:1,intExp:.01})},[p.Networks]:{youAreCurrently:"taking a Networks course",type:p.Networks,earnings:Object(d.b)({money:-80,hackExp:2,intExp:.01})},[p.Algorithms]:{youAreCurrently:"taking an Algorithms course",type:p.Algorithms,earnings:Object(d.b)({money:-320,hackExp:4,intExp:.01})},[p.Management]:{youAreCurrently:"taking a Management course",type:p.Management,earnings:Object(d.b)({money:-160,chaExp:2,intExp:.01})},[p.Leadership]:{youAreCurrently:"taking a Leadership course",type:p.Leadership,earnings:Object(d.b)({money:-320,chaExp:4,intExp:.01})},[p.GymStrength]:{youAreCurrently:"training your strength at a gym",type:p.GymStrength,earnings:Object(d.b)({money:-120,strExp:1})},[p.GymDefense]:{youAreCurrently:"training your defense at a gym",type:p.GymDefense,earnings:Object(d.b)({money:-120,defExp:1})},[p.GymDexterity]:{youAreCurrently:"training your dexterity at a gym",type:p.GymDexterity,earnings:Object(d.b)({money:-120,dexExp:1})},[p.GymAgility]:{youAreCurrently:"training your agility at a gym",type:p.GymAgility,earnings:Object(d.b)({money:-120,agiExp:1})}},y=e=>null!==e&&e.type===h.b.CLASS;class b extends h.a{constructor(e){var t,n,a,r,i,o;super(h.b.CLASS,null===(t=null==e?void 0:e.singularity)||void 0===t||t),r=this,i="earnings",o=Object(d.b)(),i in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o,this.classType=null!==(n=null==e?void 0:e.classType)&&void 0!==n?n:p.StudyComputerScience,this.location=null!==(a=null==e?void 0:e.location)&&void 0!==a?a:s.a.Sector12RothmanUniversity}isGym(){return[p.GymAgility,p.GymDefense,p.GymDexterity,p.GymStrength].includes(this.classType)}getClass(){return g[this.classType]}calculateRates(e){return Object(m.a)(e,this)}process(e,t){this.cyclesWorked+=t;const n=this.calculateRates(e),a=Object(d.a)(e,n,t,"class");return this.earnings=Object(d.c)(this.earnings,a),!1}finish(){this.singularity||Object(c.a)(r.a.createElement(r.a.Fragment,null,"After ",this.getClass().youAreCurrently," for"," ",Object(u.d)(this.cyclesWorked*o.a._idleSpeed),", ",r.a.createElement("br",null),"you spent a total of ",r.a.createElement(f.a,{money:-this.earnings.money}),". ",r.a.createElement("br",null),r.a.createElement("br",null),"You earned a total of: ",r.a.createElement("br",null),l.a.formatExp(this.earnings.hackExp)," hacking exp ",r.a.createElement("br",null),l.a.formatExp(this.earnings.strExp)," strength exp ",r.a.createElement("br",null),l.a.formatExp(this.earnings.defExp)," defense exp ",r.a.createElement("br",null),l.a.formatExp(this.earnings.dexExp)," dexterity exp ",r.a.createElement("br",null),l.a.formatExp(this.earnings.agiExp)," agility exp ",r.a.createElement("br",null),l.a.formatExp(this.earnings.chaExp)," charisma exp",r.a.createElement("br",null)))}toJSON(){return Object(i.b)("ClassWork",this)}static fromJSON(e){return Object(i.a)(b,e.data)}}i.c.constructors.ClassWork=b},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var a=n(12),r=n(587),i=n(40),o=n(158),s=n(348),l=n(22);function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class f extends r.a{constructor(e={hostname:"",ip:Object(s.a)()}){super(e),c(this,"cache",1),c(this,"cores",1),c(this,"hashCapacity",0),c(this,"hashRate",0),c(this,"level",1),c(this,"onlineTimeSeconds",0),c(this,"totalHashesGenerated",0),c(this,"purchasedByPlayer",!0),this.maxRam=1,this.updateHashCapacity()}calculateCacheUpgradeCost(e){return Object(o.a)(this.cache,e)}calculateCoreUpgradeCost(e,t){return Object(o.b)(this.cores,e,t)}calculateLevelUpgradeCost(e,t){return Object(o.d)(this.level,e,t)}calculateRamUpgradeCost(e,t){return Object(o.e)(this.maxRam,e,t)}process(e=1){const t=e*a.a.MilliPerCycle/1e3;this.onlineTimeSeconds+=t;const n=this.hashRate*t;return this.totalHashesGenerated+=n,n}upgradeCache(e){this.cache=Math.min(i.b.MaxCache,Math.round(this.cache+e)),this.updateHashCapacity()}upgradeCore(e,t){this.cores=Math.min(i.b.MaxCores,Math.round(this.cores+e)),this.updateHashRate(t),this.cpuCores=this.cores}upgradeLevel(e,t){this.level=Math.min(i.b.MaxLevel,Math.round(this.level+e)),this.updateHashRate(t)}upgradeRam(e,t){for(let t=0;t<e;++t)this.maxRam*=2;return this.maxRam=Math.min(i.b.MaxRam,Math.round(this.maxRam)),this.updateHashRate(t),!0}runScript(e,t){super.runScript(e),null!=t&&"number"==typeof t&&this.updateHashRate(t)}updateRamUsed(e,t){super.updateRamUsed(e,t),this.updateHashRate(t.mults.hacknet_node_money)}updateHashCapacity(){this.hashCapacity=32*Math.pow(2,this.cache)}updateHashRate(e){this.hashRate=Object(o.c)(this.level,this.ramUsed,this.maxRam,this.cores,e),isNaN(this.hashRate)&&(this.hashRate=0,console.error("Error calculating Hacknet Server hash production. This is a bug. Please report to game dev",!1))}toJSON(){return Object(l.b)("HacknetServer",this)}static fromJSON(e){return Object(l.a)(f,e.data)}}l.c.constructors.HacknetServer=f},function(e,t,n){"use strict";n.d(t,"b",(function(){return Le})),n.d(t,"a",(function(){return Oe}));var a=n(0),r=n.n(a),i=n(115),o=n(110),s=n(356),l=n(9),c=n(181),f=n(42),u=n(1078),m=n(387),h=n(471),d=n(14),p=n(27),g=n(29),y=n(247),b=n(103),E=n(118),v=n(142),k=n(18),w=n(1),_=n(26),S=n(1097),C=n(1101),x=n(1123),L=n(1128),O=n(1157),M=n(1184),T=n(1207),A=n(1244),R=n(631),N=n(1257),P=n(1258),I=n(1300),F=n(1309),D=n(1318),j=n(1342),B=n(422),G=n(650),W=n(1355),H=n(1356),U=n(1361),q=n(1362),$=n(423),K=n(1373),z=n(1385),V=n(649),Y=n(1386),J=n(1395),X=n(1398),Q=n(102),Z=n(307),ee=n(1405),te=n(202),ne=n(1406),ae=n(94),re=n(182),ie=n(347),oe=n(418),se=n(604),le=n(306),ce=n(427),fe=n(28),ue=n(428),me=n(1408),he=n(1411),de=n(5),pe=n(1412),ge=n(1417),ye=n(1422),be=n(1423),Ee=n.n(be),ve=n(1424),ke=n.n(ve),we=n(475),_e=n(223);const Se=location,Ce=Object(E.a)(e=>Object(v.a)({root:{"-ms-overflow-style":"none","scrollbar-width":"none",margin:e.spacing(0),flexGrow:1,display:"block",padding:"8px",minHeight:"100vh",boxSizing:"border-box"}})),xe=()=>{throw new Error("Router called before initialization")};let Le={isInitialized:!1,page:xe,allowRouting:xe,toActiveScripts:xe,toAugmentations:xe,toBitVerse:xe,toBladeburner:xe,toStats:xe,toCity:xe,toCorporation:xe,toCreateProgram:xe,toDevMenu:xe,toFaction:xe,toFactions:xe,toGameOptions:xe,toGang:xe,toHacknetNodes:xe,toInfiltration:xe,toJob:xe,toMilestones:xe,toGrafting:xe,toScriptEditor:xe,toSleeves:xe,toStockMarket:xe,toTerminal:xe,toTravel:xe,toTutorial:xe,toWork:xe,toBladeburnerCinematic:xe,toLocation:xe,toStaneksGift:xe,toAchievements:xe,toThemeBrowser:xe,toImportSave:xe};function Oe({player:e,engine:t,terminal:n}){const E=Ce(),[{files:v,vim:be},ve]=Object(a.useState)({files:{},vim:!1}),[xe,Oe]=Object(a.useState)(function(e){return ue.b?_.a.Recovery:null!==e.currentWork?_.a.Work:_.a.Terminal}(e)),Me=Object(a.useState)(0)[1],[Te,Ae]=Object(a.useState)(!1),[Re,Ne]=Object(a.useState)(Object(_e.b)(e.currentWork)?g.a[e.currentWork.factionName]:void 0);if(void 0===Re&&xe===_.a.Faction)throw new Error("Trying to go to a page without the proper setup");const[Pe,Ie]=Object(a.useState)(!1),[Fe,De]=Object(a.useState)(!1),[je,Be]=Object(a.useState)(void 0);if(void 0===je&&(xe===_.a.Infiltration||xe===_.a.Location||xe===_.a.Job))throw new Error("Trying to go to a page without the proper setup");const[Ge,We]=Object(a.useState)(""),[He,Ue]=Object(a.useState)(0),[qe,$e]=Object(a.useState)(de.a.IsSidebarOpened),[Ke,ze]=Object(a.useState)(void 0),[Ve,Ye]=Object(a.useState)(!1);if(void 0===Ke&&xe===_.a.ImportSave)throw new Error("Trying to go to a page without the proper setup");const[Je,Xe]=Object(a.useState)(!0);function Qe(){Me(e=>e+1)}function Ze(){for(const e of Object(p.c)())e.runningScripts=[];o.c.saveGame(),setTimeout(()=>Se.reload(),2e3)}function et(){Object(d.a)("Soft Reset!"),Object(i.f)(!0),Ue(He+1),Le.toTerminal()}Object(a.useEffect)(()=>m.a.subscribe(Qe),[]),Le={isInitialized:!0,page:()=>xe,allowRouting:e=>Xe(e),toActiveScripts:()=>Oe(_.a.ActiveScripts),toAugmentations:()=>Oe(_.a.Augmentations),toBladeburner:()=>Oe(_.a.Bladeburner),toStats:()=>Oe(_.a.Stats),toCorporation:()=>Oe(_.a.Corporation),toCreateProgram:()=>Oe(_.a.CreateProgram),toDevMenu:()=>Oe(_.a.DevMenu),toFaction:(e,t=!1)=>{Ae(t),Oe(_.a.Faction),e&&Ne(e)},toFactions:()=>Oe(_.a.Factions),toGameOptions:()=>Oe(_.a.Options),toGang:()=>Oe(_.a.Gang),toHacknetNodes:()=>Oe(_.a.Hacknet),toMilestones:()=>Oe(_.a.Milestones),toGrafting:()=>Oe(_.a.Grafting),toScriptEditor:(e,t)=>{ve({files:e,vim:!(null==t||!t.vim)}),Oe(_.a.ScriptEditor)},toSleeves:()=>Oe(_.a.Sleeves),toStockMarket:()=>Oe(_.a.StockMarket),toTerminal:()=>Oe(_.a.Terminal),toTutorial:()=>Oe(_.a.Tutorial),toJob:()=>{Be(c.a[e.companyName]),Oe(_.a.Job)},toCity:()=>{Oe(_.a.City)},toTravel:()=>{e.gotoLocation(l.a.TravelAgency),Oe(_.a.Travel)},toBitVerse:(e,t)=>{Ie(e),De(t),Object(le.b)(),Oe(_.a.BitVerse)},toInfiltration:e=>{Be(e),Oe(_.a.Infiltration)},toWork:()=>Oe(_.a.Work),toBladeburnerCinematic:()=>{Oe(_.a.BladeburnerCinematic),We(Ge)},toLocation:e=>{Be(e),Oe(_.a.Location)},toStaneksGift:()=>{Oe(_.a.StaneksGift)},toAchievements:()=>{Oe(_.a.Achievements)},toThemeBrowser:()=>{Oe(_.a.ThemeBrowser)},toImportSave:(e,t=!1)=>{ze(e),Ye(t),Oe(_.a.ImportSave)}},Object(a.useEffect)(()=>{ke()(Le).filter(e=>e.startsWith("to")).forEach(e=>{Le[e]=Ee()(Le[e],(t,...n)=>{if(Je)return t(...n);console.error(`Routing is currently disabled - Attempted router.${e}()`)})})}),Object(a.useEffect)(()=>{xe!==_.a.Terminal&&window.scrollTo(0,0)});let tt=r.a.createElement(w.a,null,"Cannot load"),nt=!0,at=!0,rt=!1;switch(xe){case _.a.Recovery:tt=r.a.createElement(ue.c,{router:Le,softReset:et}),nt=!1,at=!1,rt=!0;break;case _.a.BitVerse:tt=r.a.createElement(J.a,{flume:Pe,enter:ce.a,quick:Fe}),nt=!1,at=!1;break;case _.a.Infiltration:tt=r.a.createElement(A.a,{location:je}),nt=!1,at=!1;break;case _.a.BladeburnerCinematic:tt=r.a.createElement(ee.a,null),nt=!1,at=!1;break;case _.a.Work:tt=r.a.createElement(N.a,null),nt=!1;break;case _.a.Terminal:tt=r.a.createElement(H.a,{terminal:n,router:Le,player:e});break;case _.a.Sleeves:tt=r.a.createElement(I.a,null);break;case _.a.StaneksGift:tt=r.a.createElement(X.a,{staneksGift:Q.c});break;case _.a.Stats:tt=r.a.createElement(z.a,null);break;case _.a.ScriptEditor:tt=r.a.createElement(G.a,{files:v,hostname:e.getCurrentServer().hostname,player:e,router:Le,vim:be});break;case _.a.ActiveScripts:tt=r.a.createElement(q.a,{workerScripts:te.a});break;case _.a.Hacknet:tt=r.a.createElement(F.a,{player:e});break;case _.a.CreateProgram:tt=r.a.createElement(B.a,null);break;case _.a.Factions:tt=r.a.createElement($.a,{player:e,router:Le});break;case _.a.Faction:tt=r.a.createElement(K.a,{faction:Re,augPage:Te});break;case _.a.Milestones:tt=r.a.createElement(W.a,{player:e});break;case _.a.Tutorial:tt=r.a.createElement(U.a,{reactivateTutorial:()=>{Object(h.a)(),Le.toTerminal(),Object(f.e)()}});break;case _.a.DevMenu:tt=r.a.createElement(L.a,{player:e,engine:t,router:Le});break;case _.a.Gang:tt=r.a.createElement(M.a,null);break;case _.a.Corporation:tt=r.a.createElement(T.a,null);break;case _.a.Bladeburner:tt=r.a.createElement(O.a,null);break;case _.a.Grafting:tt=r.a.createElement(R.b,null);break;case _.a.Travel:tt=r.a.createElement(V.a,{p:e,router:Le});break;case _.a.StockMarket:tt=r.a.createElement(Y.a,{buyStockLong:y.a,buyStockShort:y.d,cancelOrder:b.c,eventEmitterForReset:b.e,initStockMarket:b.g,p:e,placeOrder:b.j,sellStockLong:y.c,sellStockShort:y.b,stockMarket:b.a});break;case _.a.City:tt=r.a.createElement(j.a,null);break;case _.a.Job:case _.a.Location:tt=r.a.createElement(D.a,{loc:je});break;case _.a.Options:tt=r.a.createElement(P.a,{player:e,router:Le,save:()=>o.c.saveGame(),export:()=>{Object(s.c)(e),o.c.exportGame()},forceKill:Ze,softReset:et});break;case _.a.Augmentations:tt=r.a.createElement(x.a,{exportGameFn:()=>{Object(s.c)(e),o.c.exportGame()},installAugmentationsFn:()=>{Object(i.f)()}});break;case _.a.Achievements:tt=r.a.createElement(me.a,null);break;case _.a.ThemeBrowser:tt=r.a.createElement(pe.a,{router:Le});break;case _.a.ImportSave:tt=r.a.createElement(ge.a,{importString:Ke,automatic:Ve,router:Le}),nt=!1,at=!1,rt=!0}return r.a.createElement(fe.a.Player.Provider,{value:e},r.a.createElement(fe.a.Router.Provider,{value:Le},r.a.createElement(he.a,{key:He,router:Le,softReset:et},r.a.createElement(ye.a,{content:rt?tt:null},r.a.createElement(ae.c,null,r.a.createElement(S.a,{mode:f.a.isRunning?"tutorial":"overview"},f.a.isRunning?r.a.createElement(u.a,null):r.a.createElement(Z.a,{save:()=>o.c.saveGame(),killScripts:Ze})),nt?r.a.createElement(k.a,{display:"flex",flexDirection:"row",width:"100%"},r.a.createElement(C.a,{player:e,router:Le,page:xe,opened:qe,onToggled:e=>{$e(e),de.a.IsSidebarOpened=e}}),r.a.createElement(k.a,{className:E.root},tt)):r.a.createElement(k.a,{className:E.root},tt),r.a.createElement(ne.a,null),at&&r.a.createElement(r.a.Fragment,null,r.a.createElement(re.d,null),r.a.createElement(ie.b,null),r.a.createElement(oe.b,null),r.a.createElement(se.b,null),r.a.createElement(ae.a,null)),r.a.createElement(we.a,null))))))}},,function(e,t,n){"use strict";n.d(t,"d",(function(){return u})),n.d(t,"c",(function(){return h})),n.d(t,"b",(function(){return d})),n.d(t,"a",(function(){return p}));var a=n(0),r=n.n(a),i=n(785),o=n(118),s=n(126),l=n(1788),c=n(43),f=n(182);let u;!function(e){e.SUCCESS="success",e.WARNING="warning",e.ERROR="error",e.INFO="info"}(u||(u={}));const m=Object(o.a)(()=>({snackbar:{zIndex:f.e+1e3+" !important","& .MuiAlert-icon":{alignSelf:"center"}}}));function h(e){const t=m();return r.a.createElement(i.a,{dense:!0,maxSnack:9,anchorOrigin:{horizontal:"right",vertical:"bottom"},autoHideDuration:2e3,classes:{containerRoot:t.snackbar}},e.children)}const d=new s.a;function p(){const{enqueueSnackbar:e,closeSnackbar:t}=Object(i.b)();return Object(a.useEffect)(()=>d.subscribe((n,a,i)=>{const o=e(r.a.createElement(l.a,{severity:a},n),{content:(e,t)=>r.a.createElement(c.a,{key:e},t),variant:a,autoHideDuration:i,onClick:()=>t(o)})})),r.a.createElement(r.a.Fragment,null)}},,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var a=n(9);const r={};r[a.a.AevumECorp]="ECP",r[a.a.Sector12MegaCorp]="MGCP",r[a.a.Sector12BladeIndustries]="BLD",r[a.a.AevumClarkeIncorporated]="CLRK",r[a.a.VolhavenOmniTekIncorporated]="OMTK",r[a.a.Sector12FourSigma]="FSIG",r[a.a.ChongqingKuaiGongInternational]="KGI",r[a.a.AevumFulcrumTechnologies]="FLCM",r[a.a.IshimaStormTechnologies]="STM",r[a.a.NewTokyoDefComm]="DCOMM",r[a.a.VolhavenHeliosLabs]="HLS",r[a.a.NewTokyoVitaLife]="VITA",r[a.a.Sector12IcarusMicrosystems]="ICRS",r[a.a.Sector12UniversalEnergy]="UNV",r[a.a.AevumAeroCorp]="AERO",r[a.a.VolhavenOmniaCybersystems]="OMN",r[a.a.ChongqingSolarisSpaceSystems]="SLRS",r[a.a.NewTokyoGlobalPharmaceuticals]="GPH",r[a.a.IshimaNovaMedical]="NVMD",r[a.a.AevumWatchdogSecurity]="WDS",r[a.a.VolhavenLexoCorp]="LXO",r[a.a.AevumRhoConstruction]="RHOC",r[a.a.Sector12AlphaEnterprises]="APHE",r[a.a.VolhavenSysCoreSecurities]="SYSC",r[a.a.VolhavenCompuTek]="CTK",r[a.a.AevumNetLinkTechnologies]="NTLK",r[a.a.IshimaOmegaSoftware]="OMGA",r[a.a.Sector12FoodNStuff]="FNS",r[a.a.Sector12JoesGuns]="JGN",r["Sigma Cosmetics"]="SGC",r["Catalyst Ventures"]="CTYS",r["Microdyne Technologies"]="MDYN",r["Titan Laboratories"]="TITN"},function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return r}));const a=[".js",".script",".ns"];function r(e){return a.some(t=>e.endsWith(t))}},function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return o})),n.d(t,"e",(function(){return s})),n.d(t,"d",(function(){return l})),n.d(t,"a",(function(){return c})),n.d(t,"f",(function(){return f}));var a=n(21),r=n(288);function i(e,t){const n=(100-e.hackDifficulty)/100,a=1.75*t.hacking,i=(a-e.requiredHackingSkill)/a*n*t.mults.hacking_chance*Object(r.a)(t.intelligence,1);return i>1?1:i<0?0:i}function o(e,t){null==e.baseDifficulty&&(e.baseDifficulty=e.hackDifficulty);let n=3;return n+=.3*e.baseDifficulty,n*t.mults.hacking_exp*a.a.HackExpGain}function s(e,t){const n=(100-e.hackDifficulty)/100*((t.hacking-(e.requiredHackingSkill-1))/t.hacking)*t.mults.hacking_money*a.a.ScriptHackMoney/240;return n<0?0:n>1?1:n}function l(e,t){let n=2.5*(e.requiredHackingSkill*e.hackDifficulty)+500;n/=t.hacking+50;return 5*n/(t.mults.hacking_speed*Object(r.a)(t.intelligence,1))}function c(e,t){return 3.2*l(e,t)}function f(e,t){return 4*l(e,t)}},function(e,t,n){"use strict";let a;n.d(t,"a",(function(){return a})),function(e){e.HACKING="HACKING",e.FIELD="FIELD",e.SECURITY="SECURITY"}(a||(a={}))},function(e,t,n){"use strict";n.d(t,"c",(function(){return i})),n.d(t,"b",(function(){return o})),n.d(t,"d",(function(){return s})),n.d(t,"a",(function(){return l}));var a=n(22),r=n(783);let i=new r.a;function o(e){i=e?JSON.parse(e,a.c):new r.a}function s(e){const t=[];for(let n=0;n<e[0];++n)t.push(1==e.length?0:s(e.slice(1)));return t}function l(e){const t=s([e.width(),e.height()]);for(let n=0;n<e.width();n++)for(let a=0;a<e.height();a++){e.fragmentAt(n,a)&&(t[n][a]=1)}return t}},function(e,t,n){"use strict";n.d(t,"a",(function(){return g})),n.d(t,"b",(function(){return y})),n.d(t,"j",(function(){return b})),n.d(t,"c",(function(){return E})),n.d(t,"i",(function(){return v})),n.d(t,"d",(function(){return k})),n.d(t,"f",(function(){return w})),n.d(t,"h",(function(){return _})),n.d(t,"k",(function(){return C})),n.d(t,"g",(function(){return x})),n.d(t,"e",(function(){return L}));var a=n(782),r=n(339),i=n(155),o=n(676),s=n(1043),l=n(117),c=n(72),f=n(98),u=n(12),m=n(126),h=n(6),d=n(14),p=n(22);let g={lastUpdate:0,Orders:{},storedCycles:0,ticksUntilCycle:0};const y={};function b(e,t,n,o,s,l=null){if(!(e instanceof i.a))return l?l.log("stock.placeOrder",()=>`Invalid stock: '${e}'`):Object(d.a)("ERROR: Invalid stock passed to placeOrder() function"),!1;if("number"!=typeof t||"number"!=typeof n)return l?l.log("stock.placeOrder",()=>`Invalid arguments: shares='${t}' price='${n}'`):Object(d.a)("ERROR: Invalid numeric value provided for either 'shares' or 'price' argument"),!1;const c=new a.a(e.symbol,t,n,o,s);if(null==g.Orders){const e={};for(const t of Object.keys(g)){const n=g[t];n instanceof i.a&&(e[n.symbol]=[])}g.Orders=e}g.Orders[e.symbol].push(c);const f={stockMarket:g,symbolToStockMap:y};return Object(r.a)(e,c.type,c.pos,f),!0}function E(e,t=null){if(null==g.Orders)return!1;if(e.order&&e.order instanceof a.a){const t=e.order,n=g.Orders[t.stockSymbol];for(let e=0;e<n.length;++e)if(t==n[e])return n.splice(e,1),!0;return!1}if(e.stock&&e.shares&&e.price&&e.type&&e.pos&&e.stock instanceof i.a){const n=g.Orders[e.stock.symbol],a=e.stock.symbol+" - "+e.shares+" @ "+h.a.formatMoney(e.price);for(let r=0;r<n.length;++r){const i=n[r];if(e.shares===i.shares&&e.price===i.price&&e.type===i.type&&e.pos===i.pos)return n.splice(r,1),t&&t.scriptRef.log("Successfully cancelled order: "+a),!0}return t&&t.scriptRef.log("Failed to cancel order: "+a),!1}return!1}function v(e){g=""===e?{lastUpdate:0,Orders:{},storedCycles:0,ticksUntilCycle:0}:JSON.parse(e,p.c)}function k(){g={lastUpdate:0,Orders:{},storedCycles:0,ticksUntilCycle:0}}function w(){for(const e of Object.keys(g))g.hasOwnProperty(e)&&delete g[e];for(const e of s.a){const t=e.name;g[t]=new i.a(e)}const e={};for(const t of Object.keys(g)){const n=g[t];n instanceof i.a&&(e[n.symbol]=[])}g.Orders=e,g.storedCycles=0,g.lastUpdate=0,g.ticksUntilCycle=o.a}function _(){for(const e of Object.keys(f.a))if(f.a.hasOwnProperty(e)){const t=g[e];if(null==t){console.error("Could not find Stock for "+e);continue}const n=f.a[e];y[n]=t}}const S=6e3/u.a.MilliPerCycle;function C(e=1){if((null==g.storedCycles||isNaN(g.storedCycles))&&(g.storedCycles=0),g.storedCycles+=e,g.storedCycles<S)return;const t=(new Date).getTime();if(t-g.lastUpdate<4e3)return;g.lastUpdate=t,g.storedCycles-=S,null!=g.ticksUntilCycle&&"number"==typeof g.ticksUntilCycle||(g.ticksUntilCycle=o.a),--g.ticksUntilCycle,g.ticksUntilCycle<=0&&function(){for(const e of Object.keys(g)){const t=g[e];if(!(t instanceof i.a))continue;Math.random()<.45&&(t.b=!t.b,t.flipForecastForecast()),g.ticksUntilCycle=o.a}}();const n=Math.random();for(const e of Object.keys(g)){const t=g[e];if(!(t instanceof i.a))continue;let a=n*t.mv/100;isNaN(a)&&(a=.02);let o=50;o=t.b?(o+t.otlkMag)/100:(o-t.otlkMag)/100,t.price>=t.cap&&(o=.1,t.b=!1),isNaN(o)&&(o=.5);const s=Math.random(),f={stockMarket:g,symbolToStockMap:y};s<o?(t.changePrice(t.price*(1+a)),Object(r.a)(t,l.a.LimitBuy,c.a.Short,f),Object(r.a)(t,l.a.LimitSell,c.a.Long,f),Object(r.a)(t,l.a.StopBuy,c.a.Long,f),Object(r.a)(t,l.a.StopSell,c.a.Short,f)):(t.changePrice(t.price/(1+a)),Object(r.a)(t,l.a.LimitBuy,c.a.Long,f),Object(r.a)(t,l.a.LimitSell,c.a.Short,f),Object(r.a)(t,l.a.StopBuy,c.a.Short,f),Object(r.a)(t,l.a.StopSell,c.a.Long,f));let u=t.otlkMag*a;t.otlkMag<5&&(t.otlkMag<=1?u=1:u*=10),t.cycleForecast(u),t.cycleForecastForecast(u/2),t.shareTxUntilMovement=Math.min(t.shareTxUntilMovement+10,t.shareTxForMovement)}}function x(){w(),_()}const L=new m.a},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var a=n(1195),r=n(375);const i={};a.a.forEach(e=>{var t;null!=i[(t=e).name]&&console.warn("Duplicate Company Position being defined: "+t.name),i[t.name]=new r.a(t)})},function(e,t,n){"use strict";n.d(t,"c",(function(){return y})),n.d(t,"d",(function(){return b})),n.d(t,"b",(function(){return E})),n.d(t,"f",(function(){return v})),n.d(t,"e",(function(){return k})),n.d(t,"a",(function(){return w}));var a=n(73),r=n(349),i=n(11),o=n(21),s=n(189),l=n(29),c=n(2),f=n(5),u=n(291),m=n(14),h=n(604),d=n(4),p=n(320),g=n(223);function y(e){c.a.receiveInvite(e.name),e.alreadyInvited=!0,f.a.SuppressFactionInvites||h.a.emit(e)}function b(e){if(e.isMember)return;e.isMember=!0,c.a.factions.push(e.name);const t=Object.values(d.a).map(e=>e);c.a.factions.sort((e,n)=>t.indexOf(e)-t.indexOf(n));const n=e.getInfo();for(const e of n.enemies)l.a[e]instanceof s.a&&(l.a[e].isBanned=!0);for(let t=0;t<c.a.factionInvitations.length;++t)(c.a.factionInvitations[t]==e.name||l.a[c.a.factionInvitations[t]].isBanned)&&(c.a.factionInvitations.splice(t,1),t--)}function E(e){return e.prereqs.every(e=>c.a.hasAugmentation(e))}function v(e,t,n=!1){const a=E(e),o=e.getCost(c.a);if(a)if(0!==o.moneyCost&&c.a.money<o.moneyCost){const t="You don't have enough money to purchase "+e.name;if(n)return t;Object(m.a)(t)}else if(t.playerReputation<o.repCost){const t="You don't have enough faction reputation to purchase "+e.name;if(n)return t;Object(m.a)(t)}else if(0===o.moneyCost||c.a.money>=o.moneyCost){const t=new r.a(e.name);if(e.name==i.a.NeuroFluxGovernor&&(t.level=e.getLevel(c.a)),c.a.queuedAugmentations.push(t),c.a.loseMoney(o.moneyCost,"augmentations"),n)return"You purchased "+e.name;f.a.SuppressBuyAugmentationConfirmation||Object(m.a)("You purchased "+e.name+". Its enhancements will not take effect until they are installed. To install your augmentations, go to the 'Augmentations' tab on the left-hand navigation menu. Purchasing additional augmentations will now be more expensive.")}else Object(m.a)("Hmm, something went wrong when trying to purchase an Augmentation. Please report this to the game developer with an explanation of how to reproduce this.");else{const t=`You must first purchase or install ${e.prereqs.filter(e=>!c.a.hasAugmentation(e)).join(",")} before you can purchase this one.`;if(n)return t;Object(m.a)(t)}return""}function k(e){for(const t of Object.keys(l.a)){if(Object(g.b)(c.a.currentWork)&&t===c.a.currentWork.factionName)continue;if(!l.a.hasOwnProperty(t))continue;const n=l.a[t];if(!n.isMember)continue;if(!n.getInfo().offersWork())continue;if(c.a.getGangName()===t)continue;const a=Math.min(.1,n.favor/1e3+.01),r=Object(u.c)(c.a,n),i=Object(u.b)(c.a,n),s=Object(u.a)(c.a,n),f=Math.max(r*a,i*a,s*a,1/120);n.playerReputation+=f*e*c.a.mults.faction_rep*o.a.FactionPassiveRepGain}}const w=(e,t)=>{if(e.hasGangWith(t.name)){let n=Object.values(a.a);n=n.filter(e=>!e.isSpecial&&e.name!==i.a.CongruityImplant),2===e.bitNodeN&&n.push(a.a[i.a.TheRedPill]);const r=Object(p.b)(`BN${e.bitNodeN}.${e.sourceFileLvl(e.bitNodeN)}`),s=e=>e.factions.length>1||(!!t.augmentations.includes(e.name)||r()>=1-o.a.GangUniqueAugs);return n=n.filter(s),n.map(e=>e.name)}return t.augmentations.slice()}},,,,function(e,t,n){"use strict";let a;n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return o})),function(e){e.Bypass="Bypass",e.PrototypeTampering="PrototypeTampering",e.Unclickable="Unclickable",e.UndocumentedFunctionCall="UndocumentedFunctionCall",e.TimeCompression="TimeCompression",e.RealityAlteration="RealityAlteration",e.N00dles="N00dles",e.YoureNotMeantToAccessThis="YoureNotMeantToAccessThis",e.TrueRecursion="TrueRecursion",e.INeedARainbow="INeedARainbow",e.EditSaveFile="EditSaveFile"}(a||(a={}));const r={Bypass:"by circumventing the ram cost of document.",EditSaveFile:"by editing your save file.",PrototypeTampering:"by tampering with Numbers prototype.",TimeCompression:"by compressing time.",Unclickable:"by clicking the unclickable.",UndocumentedFunctionCall:"by looking beyond the documentation.",RealityAlteration:"by altering reality to suit your whims.",N00dles:"by harnessing the power of the n00dles.",YoureNotMeantToAccessThis:"by accessing the dev menu.",TrueRecursion:"by truly recursing.",INeedARainbow:"by using the power of the rainbow."};function i(e){return r[e]}function o(e){return e=e.filter(e=>Object.keys(a).includes(e)),[...new Set(e)]}},function(e,t,n){"use strict";n.d(t,"c",(function(){return I})),n.d(t,"b",(function(){return A})),n.d(t,"a",(function(){return P}));var a=n(162),r=n(74),i=n(12),o=n(29),s=n(81),l=n(2),c=n(27),f=n(5),u=n(103),m=n(102),h=n(94),d=n(356),p=n(14),g=n(22),y=n(350),b=n(1075),E=n(11),v=n(349),k=n(9),w=n(603),_=n(303),S=n(125),C=n(4),x=n(189),L=n(137),O=n(87);function M(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class T{constructor(){M(this,"PlayerSave",""),M(this,"AllServersSave",""),M(this,"CompaniesSave",""),M(this,"FactionsSave",""),M(this,"AliasesSave",""),M(this,"GlobalAliasesSave",""),M(this,"StockMarketSave",""),M(this,"SettingsSave",""),M(this,"VersionSave",""),M(this,"AllGangsSave",""),M(this,"LastExportBonus",""),M(this,"StaneksGiftSave","")}getSaveString(e=!1){this.PlayerSave=JSON.stringify(l.a),this.AllServersSave=Object(c.j)(e),this.CompaniesSave=JSON.stringify(r.a),this.FactionsSave=JSON.stringify(o.a),this.AliasesSave=JSON.stringify(a.a),this.GlobalAliasesSave=JSON.stringify(a.b),this.StockMarketSave=JSON.stringify(u.a),this.SettingsSave=JSON.stringify(f.a),this.VersionSave=JSON.stringify(i.a.VersionNumber),this.LastExportBonus=JSON.stringify(d.a),this.StaneksGiftSave=JSON.stringify(m.c),l.a.inGang()&&(this.AllGangsSave=JSON.stringify(s.a));return btoa(unescape(encodeURIComponent(JSON.stringify(this))))}saveGame(e=!0){const t=(new Date).getTime();l.a.lastSave=t;const n=this.getSaveString(f.a.ExcludeRunningScriptsFromSave);return new Promise((a,r)=>{Object(y.c)(n).then(()=>{const r={playerIdentifier:l.a.identifier,fileName:this.getSaveFileName(),save:n,savedOn:t};return Object(_.d)(r),e&&h.b.emit("Game Saved!",h.d.INFO,2e3),a()}).catch(e=>(console.error(e),r()))})}getSaveFileName(e=!1){const t=Math.round(Date.now()/1e3),n=l.a.bitNodeN;let a=`bitburnerSave_${t}_BN${n}x${l.a.sourceFileLvl(n)+1}.json`;return e&&(a="RECOVERY"+a),a}exportGame(){const e=this.getSaveString(f.a.ExcludeRunningScriptsFromSave);P(this.getSaveFileName(),e)}importGame(e,t=!0){if(!e||""===e)throw new Error("Invalid import string");return Object(y.c)(e).then(()=>(t&&setTimeout(()=>location.reload(),1e3),Promise.resolve()))}getImportStringFromFile(e){if(null===e)return Promise.reject(new Error("No file selected"));const t=e[0];if(!t)return Promise.reject(new Error("Invalid file selected"));const n=new FileReader,a=new Promise((e,t)=>{n.onload=function(n){const a=n.target;if(null===a)return t(new Error("Error importing file"));const r=a.result;if("string"!=typeof r)return t(new Error("FileReader event was not type string"));e(r)}});return n.readAsText(t),a}async getImportDataFromString(e){var t,n,a,r,i,o,s,c;if(!e||""===e)throw new Error("Invalid import string");let f,u;try{f=window.atob(e),f=f.trim()}catch(e){console.error(e)}if(!f||""===f)return Promise.reject(new Error("Save game had not content or was not base64 encoded"));try{u=JSON.parse(f)}catch(e){console.error(e)}if(!u||"BitburnerSaveObject"!==u.ctor||!u.data)return Promise.reject(new Error("Save game did not seem valid"));const m={base64:e,parsed:u},h=w.a.fromJSON(JSON.parse(u.data.PlayerSave)),d={identifier:h.identifier,lastSave:h.lastSave,totalPlaytime:h.totalPlaytime,money:h.money,hacking:h.hacking,augmentations:null!==(t=null===(n=h.augmentations)||void 0===n?void 0:n.reduce((e,t)=>e+t.level,0))&&void 0!==t?t:0,factions:null!==(a=null===(r=h.factions)||void 0===r?void 0:r.length)&&void 0!==a?a:0,achievements:null!==(i=null===(o=h.achievements)||void 0===o?void 0:o.length)&&void 0!==i?i:0,bitNode:h.bitNodeN,bitNodeLevel:h.sourceFileLvl(l.a.bitNodeN)+1,sourceFiles:null!==(s=null===(c=h.sourceFiles)||void 0===c?void 0:c.reduce((e,t)=>e+t.lvl,0))&&void 0!==s?s:0};return m.playerData=d,Promise.resolve(m)}toJSON(){return Object(g.b)("BitburnerSaveObject",this)}static fromJSON(e){return Object(g.a)(T,e.data)}}function A(e){if(-1!==navigator.userAgent.indexOf("wv")&&-1!==navigator.userAgent.indexOf("Chrome/")&&setInterval(()=>{Object(p.a)("SCAM ALERT. This app is not official and you should uninstall it.")},1e3),!e)return!1;e=decodeURIComponent(escape(atob(e)));const t=JSON.parse(e,g.c);if(Object(l.b)(t.PlayerSave),Object(c.h)(t.AllServersSave),Object(r.c)(t.CompaniesSave),Object(o.d)(t.FactionsSave),t.hasOwnProperty("StaneksGiftSave")?Object(m.b)(t.StaneksGiftSave):(console.warn("Could not load Staneks Gift from save"),Object(m.b)("")),t.hasOwnProperty("AliasesSave"))try{Object(a.c)(t.AliasesSave)}catch(e){console.warn("Could not load Aliases from save"),Object(a.c)("")}else console.warn("Save file did not contain an Aliases property"),Object(a.c)("");if(t.hasOwnProperty("GlobalAliasesSave"))try{Object(a.d)(t.GlobalAliasesSave)}catch(e){console.warn("Could not load GlobalAliases from save"),Object(a.d)("")}else console.warn("Save file did not contain a GlobalAliases property"),Object(a.d)("");if(t.hasOwnProperty("StockMarketSave"))try{Object(u.i)(t.StockMarketSave)}catch(e){Object(u.i)("")}else Object(u.i)("");if(t.hasOwnProperty("SettingsSave"))try{f.a.load(t.SettingsSave)}catch(e){console.error("ERROR: Failed to parse Settings. Re-initing default values"),f.a.init()}else f.a.init();if(t.hasOwnProperty("LastExportBonus"))try{d.d(JSON.parse(t.LastExportBonus))}catch(e){d.d((new Date).getTime()),console.error("ERROR: Failed to parse last export bonus Settings "+e)}if(l.a.inGang()&&t.hasOwnProperty("AllGangsSave"))try{Object(s.b)(t.AllGangsSave)}catch(e){console.error("ERROR: Failed to parse AllGangsSave: "+e)}if(t.hasOwnProperty("VersionSave"))try{const e=JSON.parse(t.VersionSave,g.c);!function(e){const t=l.a;if("string"==typeof e){if(e<="0.41.2"){null!=t.companyPosition&&"string"!=typeof t.companyPosition&&(t.companyPosition=t.companyPosition.data.positionName,null==t.companyPosition&&(t.companyPosition=""));for(const e of Object.keys(r.a)){const t=r.a[e];if(0==t.name&&null!=t.companyName&&(t.name=t.companyName),t.companyPositions instanceof Array){const e={};for(let n=0;n<t.companyPositions.length;++n)e[t.companyPositions[n]]=!0;t.companyPositions=e}}}if(e<"0.43.0"&&(""!==t.companyName&&null!=t.companyPosition&&""!==t.companyPosition&&(t.jobs[t.companyName]=t.companyPosition),delete t.companyPosition),e<"0.56.0"){for(const e of t.queuedAugmentations)"Graphene BranchiBlades Upgrade"===e.name&&(e.name="Graphene BrachiBlades Upgrade");for(const e of t.augmentations)"Graphene BranchiBlades Upgrade"===e.name&&(e.name="Graphene BrachiBlades Upgrade")}if(e<"0.56.1"){0===t.bladeburner&&(t.bladeburner=null),0===t.gang&&(t.gang=null),0===t.corporation&&(t.corporation=null);const e=t.getHomeComputer();for(let t=0;t<e.messages.length;t++)e.messages[t].filename&&(e.messages[t]=e.messages[t].filename)}if(e<"0.58.0"){const e=[[/getStockSymbols/g,"stock.getSymbols"],[/getStockPrice/g,"stock.getPrice"],[/getStockAskPrice/g,"stock.getAskPrice"],[/getStockBidPrice/g,"stock.getBidPrice"],[/getStockPosition/g,"stock.getPosition"],[/getStockMaxShares/g,"stock.getMaxShares"],[/getStockPurchaseCost/g,"stock.getPurchaseCost"],[/getStockSaleGain/g,"stock.getSaleGain"],[/buyStock/g,"stock.buy"],[/sellStock/g,"stock.sell"],[/shortStock/g,"stock.short"],[/sellShort/g,"stock.sellShort"],[/placeOrder/g,"stock.placeOrder"],[/cancelOrder/g,"stock.cancelOrder"],[/getOrders/g,"stock.getOrders"],[/getStockVolatility/g,"stock.getVolatility"],[/getStockForecast/g,"stock.getForecast"],[/purchase4SMarketData/g,"stock.purchase4SMarketData"],[/purchase4SMarketDataTixApi/g,"stock.purchase4SMarketDataTixApi"]];function n(t){for(const n of e)t=t.replace(n[0],n[1]);return t}for(const e of Object(c.c)())for(const t of e.scripts)t.code=n(t.code)}Object(b.a)(),e=1}if("number"==typeof e){if(e<2){const e=l.a.augmentations.find(e=>e.name===E.a.NeuroFluxGovernor);if(e)e.level+=10;else{const e=new v.a(E.a.NeuroFluxGovernor);e.level=10,l.a.augmentations.push(e)}l.a.reapplyAllAugmentations(!0),l.a.reapplyAllSourceFiles()}if(e<3&&(t.money=parseFloat(t.money),t.corporation)){t.corporation.funds=parseFloat(t.corporation.funds),t.corporation.revenue=parseFloat(t.corporation.revenue),t.corporation.expenses=parseFloat(t.corporation.expenses);for(let e=0;e<t.corporation.divisions.length;++e){const n=t.corporation.divisions[e];n.lastCycleRevenue=parseFloat(n.lastCycleRevenue),n.lastCycleExpenses=parseFloat(n.lastCycleExpenses),n.thisCycleRevenue=parseFloat(n.thisCycleRevenue),n.thisCycleExpenses=parseFloat(n.thisCycleExpenses)}}if(e<9&&u.a.hasOwnProperty("Joes Guns")){const e=u.a["Joes Guns"];delete u.a["Joes Guns"],u.a[k.a.Sector12JoesGuns]=e}if(e<10&&t.sleeves&&t.sleeves.length>0)for(const e of t.sleeves)if(e.augmentations&&0!==e.augmentations.length)for(const t of e.augmentations)"Graphene BranchiBlades Upgrade"===t.name&&(t.name="Graphene BrachiBlades Upgrade");if(e<12&&void 0!==t.resleeves&&delete t.resleeves,e<15&&(f.a.EditorTheme={...S.a}),e<16){o.a[C.a.ShadowsOfAnarchy]=new x.a(C.a.ShadowsOfAnarchy);for(const e of Object(c.c)())for(const t of e.contracts)"HammingCodes: Integer to encoded Binary"==t.type&&(t.type="HammingCodes: Integer to Encoded Binary")}if(e<17){let e=[...l.a.augmentations];e=e.filter(e=>e.name===E.a.NeuroFluxGovernor);const t=new v.a(E.a.NeuroFluxGovernor);t.level=0;for(const n of e)t.level+=n.level;l.a.augmentations=[...l.a.augmentations.filter(e=>e.name!==E.a.NeuroFluxGovernor),t],l.a.reapplyAllAugmentations(!0),l.a.reapplyAllSourceFiles()}if(e<20){if(!Object(c.d)(O.a.DarkWeb)){const e=Object(L.g)({ip:Object(c.e)(),hostname:O.a.DarkWeb,organizationName:"",isConnectedTo:!1,adminRights:!1,purchasedByPlayer:!1,maxRam:1});Object(c.a)(e)}}}}(e),window.location.href.toLowerCase().includes("bitburner-beta")?Object(p.a)("You are playing on the beta environment! This branch of the game features the latest developments in the game. This version may be unstable.<br>Please report any bugs/issues through the github repository (https://github.com/danielyxie/bitburner/issues) or the Bitburner subreddit (reddit.com/r/bitburner).<br><br>"+i.a.LatestUpdate,R):e!==i.a.VersionNumber&&N()}catch(e){N()}else N();return!0}const R={"& h1, & h2, & h3, & h4, & p, & a, & ul":{margin:0,color:f.a.theme.primary,whiteSpace:"initial"},"& ul":{paddingLeft:"1.5em",lineHeight:1.5}};function N(){setTimeout(()=>Object(p.a)("New update!<br>Please report any bugs/issues through the GitHub repository or the Bitburner subreddit (reddit.com/r/bitburner).<br><br>"+i.a.LatestUpdate,R),1e3)}function P(e,t){const n=new Blob([t],{type:"text/plain"}),a=window.navigator;if(a.msSaveOrOpenBlob)a.msSaveOrOpenBlob(n,e);else{const t=document.createElement("a"),a=URL.createObjectURL(n);t.href=a,t.download=e,document.body.appendChild(t),t.click(),setTimeout((function(){document.body.removeChild(t),window.URL.revokeObjectURL(a)}),0)}}g.c.constructors.BitburnerSaveObject=T;const I=new T},function(e,t,n){"use strict";n.d(t,"c",(function(){return o})),n.d(t,"b",(function(){return s})),n.d(t,"d",(function(){return l})),n.d(t,"a",(function(){return c}));var a=n(148),r=n(27),i=n(184);function o(e,t){return t.delayReject&&t.delayReject(),new Promise((function(n,a){t.delay=window.setTimeout(()=>{t.delay=null,t.delayReject=void 0,t.env.stopFlag?a(new i.a(t)):n()},e),t.delayReject=a}))}function s(e,t){const n=Object(r.d)(e.hostname);if(null==n)throw new Error("WorkerScript constructed with invalid server ip: "+e.hostname);for(const n of e.scriptRef.dependencies){var a,i;t=null!==(a=null===(i=t)||void 0===i?void 0:i.replace(new RegExp(n.url,"g"),n.filename))&&void 0!==a?a:t}return"|DELIMITER|"+n.hostname+"|DELIMITER|"+e.name+"|DELIMITER|"+t}function l(e,t){const n=e.workerScript.scriptRef.threads;if(!t)return isNaN(n)||n<1?1:n;const a=0|t;if(isNaN(t)||a<1)throw s(e.workerScript,`Invalid thread count passed to ${e.function}: ${t}. Threads must be a positive number.`);if(a>n)throw s(e.workerScript,`Too many threads requested by ${e.function}. Requested: ${t}. Has: ${n}.`);return a}function c(e){if(!Object(a.a)(e))return!1;return 4==e.split("|DELIMITER|").length}},,,,function(e,t,n){"use strict";n.d(t,"c",(function(){return b})),n.d(t,"d",(function(){return E})),n.d(t,"g",(function(){return S})),n.d(t,"f",(function(){return w})),n.d(t,"e",(function(){return y})),n.d(t,"a",(function(){return k})),n.d(t,"b",(function(){return _}));var a=n(34),r=n(73),i=n(349),o=n(11),s=n(12),l=n(29),c=n(2),f=n(471),u=n(14),m=n(1428),h=n(4),d=n(360),p=n(92),g=n(240);function y(){!function(){for(const e of Object.keys(l.a))l.a.hasOwnProperty(e)&&(l.a[e].augmentations=[])}(),Object(m.a)(r.a),[Object(d.d)(),Object(d.f)(),...Object(d.c)(),...Object(d.e)(),...Object(l.b)(h.a.Bladeburners)?Object(d.a)():[],...Object(l.b)(h.a.ChurchOfTheMachineGod)?Object(d.b)():[]].map(v),c.a.reapplyAllAugmentations()}function b(){return s.a.MultipleAugMultiplier*[1,.96,.94,.93][c.a.sourceFileLvl(11)]}function E(){return Math.pow(b(),c.a.queuedAugmentations.length)}function v(e){e.addToFactions(e.factions);const t=e.name;_(t)&&delete r.a[t],function(e){const t=e.name;r.a[t]=e}(e)}function k(e,t=!1){const n=r.a[e.name];c.a.mults=Object(g.b)(c.a.mults,n.mults),e.name!==o.a.CongruityImplant||t||(c.a.entropy=0,c.a.applyEntropy(c.a.entropy));const a=c.a.augmentations.find(e=>e.name===o.a.NeuroFluxGovernor);if(e.name!==o.a.NeuroFluxGovernor||t||!a){if(!t){const t=new i.a(e.name);c.a.augmentations.push(t)}}else a.level=e.level}function w(e){if(0==c.a.queuedAugmentations.length&&!e)return Object(u.a)("You have not purchased any Augmentations to install!"),!1;let t="",n=-1;for(let e=c.a.queuedAugmentations.length-1;e>=0;e--)if(c.a.queuedAugmentations[e].name===o.a.NeuroFluxGovernor){n=e;break}for(let e=0;e<c.a.queuedAugmentations.length;++e){const a=c.a.queuedAugmentations[e],i=r.a[a.name];if(null==i){console.error("Invalid augmentation: "+a.name);continue}if(k(c.a.queuedAugmentations[e]),a.name===o.a.NeuroFluxGovernor&&e!==n)continue;let s="";a.name===o.a.NeuroFluxGovernor&&(s=" - "+a.level),t+=i.name+s+"<br>"}return c.a.queuedAugmentations=[],e||Object(u.a)("You slowly drift to sleep as scientists put you under in order to install the following Augmentations:<br>"+t+"<br>You wake up in your home...you feel different..."),Object(f.a)(),p.b.toTerminal(),!0}function _(e){return r.a.hasOwnProperty(e)}function S(e){return(e instanceof a.a?e.name:e)===o.a.NeuroFluxGovernor}},function(e,t,n){"use strict";n.d(t,"d",(function(){return s})),n.d(t,"c",(function(){return l})),n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return f}));var a=n(980),r=n(22),i=n(588);class o{constructor(e,t,n,a,r,i){this.name=e,this.desc=t,this.generate=n,this.solver=a,this.difficulty=r,this.numTries=i}}const s={};for(const e of a.a)s[e.name]=new o(e.name,e.desc,e.gen,e.solver,e.difficulty,e.numTries);let l,c;!function(e){e[e.FactionReputation=0]="FactionReputation",e[e.FactionReputationAll=1]="FactionReputationAll",e[e.CompanyReputation=2]="CompanyReputation",e[e.Money=3]="Money"}(l||(l={})),function(e){e[e.Success=0]="Success",e[e.Failure=1]="Failure",e[e.Cancelled=2]="Cancelled"}(c||(c={}));class f{constructor(e="",t="Find Largest Prime Factor",n=null){var a,r,i;if(i=0,(r="tries")in(a=this)?Object.defineProperty(a,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):a[r]=i,this.fn=e,this.fn.endsWith(".cct")||(this.fn+=".cct"),null==s[t])throw new Error(`Error: invalid contract type: ${t} please contact developer`);this.type=t,this.data=s[t].generate(),this.reward=n}getData(){return this.data}getDescription(){return s[this.type].desc(this.data)}getDifficulty(){return s[this.type].difficulty}getMaxNumTries(){return s[this.type].numTries}getType(){return s[this.type].name}isSolution(e){return s[this.type].solver(this.data,e)}async prompt(){return new Promise(e=>{const t={c:this,onClose:()=>{e(c.Cancelled)},onAttempt:t=>{this.isSolution(t)?e(c.Success):e(c.Failure)}};i.a.emit(t)})}toJSON(){return Object(r.b)("CodingContract",this)}static fromJSON(e){return Object(r.a)(f,e.data)}}r.c.constructors.CodingContract=f},function(e,t,n){"use strict";let a;n.d(t,"a",(function(){return a})),function(e){e.LimitBuy="Limit Buy Order",e.LimitSell="Limit Sell Order",e.StopBuy="Stop Buy Order",e.StopSell="Stop Sell Order"}(a||(a={}))},,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var a=n(0),r=n.n(a),i=n(6),o=n(20);function s({money:e}){return r.a.createElement(o.a,{money:i.a.formatMoney(e)+" / sec"})}},function(e,t,n){"use strict";n.d(t,"c",(function(){return i})),n.d(t,"b",(function(){return s})),n.d(t,"d",(function(){return l})),n.d(t,"a",(function(){return c}));var a=n(61),r=n(216);const i=[];class o{constructor(e,t,n,a,r){this.id=e,this.shape=t,this.type=n,this.power=a,this.limit=r}fullAt(e,t,n){if(t<0)return!1;if(t>=this.height(n))return!1;if(e<0)return!1;if(e>=this.width(n))return!1;let[a,r,i,o]=[0,0,1,1];1===n?[a,r,i,o]=[this.width(n)-1,0,-1,1]:2===n?[a,r,i,o]=[this.width(n)-1,this.height(n)-1,-1,-1]:3===n&&([a,r,i,o]=[0,this.height(n)-1,1,-1]);let[s,l]=[a+i*e,r+o*t];return n%2==1&&([s,l]=[l,s]),this.shape[l][s]}width(e){return e%2==0?this.shape[0].length:this.shape.length}height(e){return e%2==0?this.shape.length:this.shape[0].length}neighboors(e){const t=[],n=(n,a)=>{this.fullAt(n,a,e)||t.some(e=>e[0]===n&&e[1]===a)||t.push([n,a])};for(let t=0;t<this.height(e);t++)for(let a=0;a<this.width(e);a++)this.fullAt(a,t,e)&&(n(a-1,t),n(a+1,t),n(a,t-1),n(a,t+1));const a=[];for(const e of t)a.some(t=>t[0]===e[0]&&t[1]===e[1])||a.push(e);return a}copy(){return Object.assign({},this)}}function s(e){for(const t of i)if(t.id===e)return t;return null}!function(){const e=!1,t=!0;i.push(new o(0,r.a.S,a.b.Hacking,1,1)),i.push(new o(1,r.a.Z,a.b.Hacking,1,1)),i.push(new o(5,r.a.T,a.b.HackingSpeed,1.3,1)),i.push(new o(6,r.a.I,a.b.HackingMoney,2,1)),i.push(new o(7,r.a.J,a.b.HackingGrow,.5,1)),i.push(new o(10,r.a.T,a.b.Strength,2,1)),i.push(new o(12,r.a.L,a.b.Defense,2,1)),i.push(new o(14,r.a.L,a.b.Dexterity,2,1)),i.push(new o(16,r.a.S,a.b.Agility,2,1)),i.push(new o(18,r.a.S,a.b.Charisma,3,1)),i.push(new o(20,r.a.I,a.b.HacknetMoney,1,1)),i.push(new o(21,r.a.O,a.b.HacknetCost,2,1)),i.push(new o(25,r.a.J,a.b.Rep,.5,1)),i.push(new o(27,r.a.J,a.b.WorkMoney,10,1)),i.push(new o(28,r.a.L,a.b.Crime,2,1)),i.push(new o(30,r.a.S,a.b.Bladeburner,.4,1)),i.push(new o(100,[[e,t,t],[t,t,e],[e,t,e]],a.b.Booster,1.1,99)),i.push(new o(101,[[t,t,t,t],[t,e,e,e]],a.b.Booster,1.1,99)),i.push(new o(102,[[e,t,t,t],[t,t,e,e]],a.b.Booster,1.1,99)),i.push(new o(103,[[t,t,t,e],[e,e,t,t]],a.b.Booster,1.1,99)),i.push(new o(104,[[e,t,t],[e,t,e],[t,t,e]],a.b.Booster,1.1,99)),i.push(new o(105,[[e,e,t],[e,t,t],[t,t,e]],a.b.Booster,1.1,99)),i.push(new o(106,[[t,e,e],[t,t,t],[t,e,e]],a.b.Booster,1.1,99)),i.push(new o(107,[[e,t,e],[t,t,t],[e,t,e]],a.b.Booster,1.1,99))}();const l=new o(-2,[],a.b.None,0,1/0),c=new o(-2,[],a.b.Delete,0,1/0)},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"d",(function(){return i})),n.d(t,"c",(function(){return o})),n.d(t,"b",(function(){return s}));const a={base:"vs-dark",inherit:!0,common:{accent:"B5CEA8",bg:"1E1E1E",fg:"D4D4D4"},syntax:{tag:"569CD6",entity:"569CD6",string:"CE9178",regexp:"646695",markup:"569CD6",keyword:"569CD6",comment:"6A9955",constant:"569CD6",error:"F44747"},ui:{line:"1E1E1E",panel:{bg:"252526",selected:"252526",border:"1E1E1E"},selection:{bg:"ADD6FF26"}}},r=/^#?([0-9A-Fa-f]{6})([0-9A-Fa-f]{2})?$/,i=e=>{for(const[t,n]of Object.entries(e)){switch(t){case"base":["vs-dark","vs"].includes(e.base)||(e.base="vs-dark");continue;case"inherit":"boolean"!=typeof e.inherit&&(e.inherit=!0);continue}const a=e=>{for(const[t,n]of Object.entries(e))"object"==typeof n?a(n):n.match(r)||(e[t]="FF0000")};a(n)}};function o(e){const t=[{token:"",background:e.ui.line,foreground:e.common.fg},{token:"identifier",foreground:e.common.accent},{token:"keyword",foreground:e.syntax.keyword},{token:"string",foreground:e.syntax.string},{token:"string.escape",foreground:e.syntax.regexp},{token:"comment",foreground:e.syntax.comment},{token:"constant",foreground:e.syntax.constant},{token:"entity",foreground:e.syntax.entity},{token:"type",foreground:e.syntax.tag},{token:"tag",foreground:e.syntax.tag},{token:"regexp",foreground:e.syntax.regexp},{token:"attribute",foreground:e.syntax.tag},{token:"constructor",foreground:e.syntax.markup},{token:"invalid",foreground:e.syntax.error},{token:"number",foreground:e.common.accent},{token:"delimiter",foreground:e.common.fg},{token:"ns",foreground:e.syntax.tag},{token:"netscriptfunction",foreground:e.syntax.markup},{token:"otherkeywords",foreground:e.syntax.keyword},{token:"otherkeyvars",foreground:e.common.accent},{token:"this",foreground:e.syntax.tag}],n=Object.fromEntries([["editor.background",e.common.bg],["editor.foreground",e.common.fg],["editor.lineHighlightBackground",e.ui.line],["editor.selectionBackground",e.ui.selection.bg],["editorSuggestWidget.background",e.ui.panel.bg],["editorSuggestWidget.border",e.ui.panel.border],["editorSuggestWidget.selectedBackground",e.ui.panel.selected],["editorHoverWidget.background",e.ui.panel.bg],["editorHoverWidget.border",e.ui.panel.border],["editorWidget.background",e.ui.panel.bg],["editorWidget.border",e.ui.panel.border],["input.background",e.ui.panel.bg],["input.border",e.ui.panel.border]].map(([e,t])=>[e,"#"+t]));return{base:e.base,inherit:e.inherit,rules:t,colors:n}}async function s(e){e.editor.defineTheme("monokai",{base:"vs-dark",inherit:!0,rules:[{background:"272822",token:""},{foreground:"75715e",token:"comment"},{foreground:"e6db74",token:"string"},{token:"number",foreground:"ae81ff"},{token:"otherkeyvars",foreground:"ae81ff"},{foreground:"ae81ff",token:"function"},{foreground:"f92672",token:"keyword"},{token:"storage.type.function.js",foreground:"ae81ff"},{token:"ns",foreground:"97d92b"},{token:"netscriptfunction",foreground:"53d3e4"},{token:"otherkeywords",foreground:"53d3e4"},{token:"this",foreground:"fd971f"}],colors:{"editor.foreground":"#F8F8F2","editor.background":"#272822","editor.selectionBackground":"#49483E","editor.lineHighlightBackground":"#3E3D32","editorCursor.foreground":"#F8F8F0","editorWhitespace.foreground":"#3B3A32","editorIndentGuide.activeBackground":"#9D550FB0","editor.selectionHighlightBorder":"#222218"}}),e.editor.defineTheme("solarized-dark",{base:"vs-dark",inherit:!0,rules:[{background:"002b36",token:""},{foreground:"586e75",token:"comment"},{foreground:"00afaf",token:"string"},{token:"number",foreground:"00afaf"},{token:"otherkeyvars",foreground:"268bd2"},{foreground:"268bd2",token:"function"},{foreground:"859900",token:"keyword"},{token:"storage.type.function.js",foreground:"cb4b16"},{token:"ns",foreground:"cb4b16"},{token:"netscriptfunction",foreground:"268bd2"},{token:"otherkeywords",foreground:"268bd2"},{token:"type.identifier.js",foreground:"b58900"},{token:"delimiter.square.js",foreground:"0087ff"},{token:"delimiter.bracket.js",foreground:"0087ff"},{token:"this",foreground:"cb4b16"}],colors:{"editor.foreground":"#839496","editor.background":"#002b36","editor.selectionBackground":"#073642","editor.lineHighlightBackground":"#073642","editorCursor.foreground":"#819090","editorWhitespace.foreground":"#073642","editorIndentGuide.activeBackground":"#9D550FB0","editor.selectionHighlightBorder":"#222218"}}),e.editor.defineTheme("solarized-light",{base:"vs",inherit:!0,rules:[{foreground:"657b83",background:"fdf6e3",token:""},{foreground:"586e75",token:"comment"},{foreground:"2aa198",token:"string"},{token:"number",foreground:"2aa198"},{token:"otherkeyvars",foreground:"268bd2"},{foreground:"268bd2",token:"function"},{foreground:"859900",token:"keyword"},{token:"storage.type.function.js",foreground:"bc4b16"},{token:"ns",foreground:"cb4b16"},{token:"netscriptfunction",foreground:"268bd2"},{token:"otherkeywords",foreground:"268bd2"},{token:"type.identifier.js",foreground:"b58900"},{token:"delimiter.square.js",foreground:"0087ff"},{token:"delimiter.bracket.js",foreground:"0087ff"},{token:"this",foreground:"cb4b16"}],colors:{"editor.foreground":"#657b83","editor.background":"#fdf6e3","editor.selectionBackground":"#eee8d5","editor.lineHighlightBackground":"#eee8d5","editorCursor.foreground":"#657b83","editorWhitespace.foreground":"#eee8d5","editorIndentGuide.activeBackground":"#eee8d5","editor.selectionHighlightBorder":"#073642"}}),e.editor.defineTheme("dracula",{base:"vs-dark",inherit:!0,rules:[{background:"282A36",foreground:"F8F8F2",token:""},{foreground:"6272A4",token:"comment"},{foreground:"F1FA8C",token:"string"},{token:"number",foreground:"BD93F9"},{token:"otherkeyvars",foreground:"BD93F9"},{foreground:"FF79C6",token:"function"},{foreground:"FF79C6",token:"keyword"},{token:"storage.type.function.js",foreground:"FF79C6"},{token:"ns",foreground:"FFB86C",fontStyle:"italic"},{token:"netscriptfunction",foreground:"FF79C6"},{token:"otherkeywords",foreground:"FF68A7"},{token:"type.identifier.js",foreground:"7EE9FD",fontStyle:"italic"},{token:"delimiter.square.js",foreground:"FFD709"},{token:"delimiter.parenthesis.js",foreground:"FFD709"},{token:"delimiter.bracket.js",foreground:"FFD709"},{token:"this",foreground:"BD93F9",fontStyle:"italic"}],colors:{"editor.foreground":"#F8F8F2","editor.background":"#282A36","editorLineNumber.foreground":"#6272A4","editor.selectionBackground":"#44475A","editor.selectionHighlightBackground":"#424450","editor.foldBackground":"#21222C","editor.wordHighlightBackground":"#8BE9FD50","editor.wordHighlightStrongBackground":"#50FA7B50","editor.findMatchBackground":"#FFB86C80","editor.findMatchHighlightBackground":"#FFFFFF40","editor.findRangeHighlightBackground":"#44475A75","editor.hoverHighlightBackground":"#8BE9FD50","editor.lineHighlightBorder":"#44475A","editor.rangeHighlightBackground":"#BD93F915","editor.snippetTabstopHighlightBackground":"#282A36","editor.snippetTabstopHighlightBorder":"#6272A4","editor.snippetFinalTabstopHighlightBackground":"#282A36","editor.snippetFinalTabstopHighlightBorder":"#50FA7B"}}),e.editor.defineTheme("one-dark",{base:"vs-dark",inherit:!0,rules:[{token:"",background:"333842",foreground:"ABB2BF"},{token:"comment",foreground:"5C6370"},{token:"string",foreground:"98C379"},{token:"number",foreground:"D19A66"},{token:"function",foreground:"C678DD"},{token:"keyword",foreground:"C678DD"},{token:"otherkeyvars",foreground:"D19A66"},{token:"otherkeywords",foreground:"C678DD"},{token:"ns",foreground:"E06C75"},{token:"netscriptfunction",foreground:"61AFEF"},{token:"type.identifier",foreground:"E5C07B"},{token:"delimiter",foreground:"ABB2BF"},{token:"this",foreground:"E06C75"}],colors:{"editor.background":"#282C34","editor.foreground":"#ABB2BF","editor.lineHighlightBackground":"#99BBFF0A","editor.selectionBackground":"#3E4451","editor.findMatchHighlightBackground":"#528BFF3D","editorCursor.foreground":"#528BFF","editorHoverWidget.background":"#21252B","editorHoverWidget.border":"#181A1F","editorIndentGuide.background":"#ABB2BF26","editorIndentGuide.activeBackground":"#626772","editorLineNumber.foreground":"#636D83","editorLineNumber.activeForeground":"#ABB2BF","editorSuggestWidget.background":"#21252B","editorSuggestWidget.border":"#181A1F","editorSuggestWidget.selectedBackground":"#2C313A","editorWhitespace.foreground":"#ABB2BF26","editorWidget.background":"#21252B","editorWidget.border":"#3A3F4B","input.background":"#1B1D23","input.border":"#181A1F","peekView.border":"#528BFF","peekViewResult.background":"#21252B","peekViewResult.selectionBackground":"#2C313A","peekViewTitle.background":"#1B1D23","peekViewEditor.background":"#1B1D23","scrollbarSlider.background":"#4E566680","scrollbarSlider.activeBackground":"#747D9180","scrollbarSlider.hoverBackground":"#5A637580"}})}},function(e,t,n){"use strict";function a(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){const t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)}))}n.d(t,"a",(function(){return r}));class r{constructor(){var e,t,n;n={},(t="subscribers")in(e=this)?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}subscribe(e){let t=a();for(;void 0!==this.subscribers[t];)t=a();return this.subscribers[t]=e,()=>{delete this.subscribers[t]}}emit(...e){for(const t in this.subscribers){const n=this.subscribers[t];void 0!==n&&n(...e)}}}},,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var a=n(0),r=n.n(a),i=n(622),o=n.n(i),s=n(1132),l=n.n(s),c=n(112),f=n(1133),u=n.n(f),m=n(619),h=n.n(m),d=n(75),p=n(19);function g(e){const[t,n]=Object(a.useState)("");const{label:i,placeholder:s,add:f,subtract:m,reset:g,tons:y}=e;return r.a.createElement(r.a.Fragment,null,r.a.createElement(d.a,{label:i,value:t,onChange:function(e){""===e.target.value?n(""):n(parseFloat(e.target.value))},placeholder:s,type:"number",InputProps:{startAdornment:r.a.createElement(r.a.Fragment,null,r.a.createElement(p.a,{title:"Add a lot"},r.a.createElement(c.a,{onClick:y,size:"large"},r.a.createElement(h.a,{style:{transform:"rotate(-90deg)"}}))),r.a.createElement(p.a,{title:"Add"},r.a.createElement(c.a,{onClick:()=>f("string"!=typeof t?t:0),size:"large"},r.a.createElement(o.a,null)))),endAdornment:r.a.createElement(r.a.Fragment,null,r.a.createElement(p.a,{title:"Remove"},r.a.createElement(c.a,{onClick:()=>m("string"!=typeof t?t:0),size:"large"},r.a.createElement(l.a,null))),r.a.createElement(p.a,{title:"Reset"},r.a.createElement(c.a,{onClick:g,size:"large"},r.a.createElement(u.a,null))))}}))}},function(e,t,n){"use strict";n.d(t,"e",(function(){return r})),n.d(t,"g",(function(){return i})),n.d(t,"a",(function(){return o})),n.d(t,"d",(function(){return s})),n.d(t,"f",(function(){return l})),n.d(t,"b",(function(){return c})),n.d(t,"c",(function(){return f}));var a=n(25);function r(e,t){return Math.random()*(t-e)+e}const i="↑",o="↓",s="←",l="→";function c(e){switch(e.key){case a.a.UP_ARROW:case a.a.W:return i;case a.a.LEFT_ARROW:case a.a.A:return s;case a.a.DOWN_ARROW:case a.a.S:return o;case a.a.RIGHT_ARROW:case a.a.D:return l}return""}function f(e){switch(e.key){case a.a.DOWN_ARROW:case a.a.S:return i;case a.a.RIGHT_ARROW:case a.a.D:return s;case a.a.UP_ARROW:case a.a.W:return o;case a.a.LEFT_ARROW:case a.a.A:return l}return""}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return l}));var a=n(289),r=n(673);function i(e){const t=a.a[e];if(null==t)throw new Error("Invalid research name: "+e);return new r.a({text:t.name,cost:t.cost})}function o(){const e=i("Hi-Tech R&D Laboratory"),t=i("AutoBrew"),n=i("AutoPartyManager"),a=i("Automatic Drug Administration"),r=i("Bulk Purchasing"),o=i("CPH4 Injections"),s=i("Drones"),l=i("Drones - Assembly"),c=i("Drones - Transport"),f=i("Go-Juice"),u=i("HRBuddy-Recruitment"),m=i("HRBuddy-Training"),h=i("JoyWire"),d=i("Market-TA.I"),p=i("Market-TA.II"),g=i("Overclock"),y=i("Self-Correcting Assemblers"),b=i("Sti.mu");return a.addChild(f),a.addChild(o),s.addChild(l),s.addChild(c),u.addChild(m),d.addChild(p),g.addChild(b),e.addChild(t),e.addChild(n),e.addChild(a),e.addChild(r),e.addChild(s),e.addChild(u),e.addChild(h),e.addChild(d),e.addChild(g),e.addChild(y),e}function s(){const e=new r.b;return e.setRoot(o()),e}function l(){const e=new r.b,t=o(),n=i("uPgrade: Fulcrum"),a=i("uPgrade: Capacity.I"),s=i("uPgrade: Capacity.II"),l=i("uPgrade: Dashboard");return a.addChild(s),n.addChild(a),n.addChild(l),t.addChild(n),e.setRoot(t),e}},,function(e,t,n){"use strict";n.d(t,"g",(function(){return u})),n.d(t,"c",(function(){return m})),n.d(t,"d",(function(){return h})),n.d(t,"f",(function(){return d})),n.d(t,"e",(function(){return p})),n.d(t,"a",(function(){return g})),n.d(t,"b",(function(){return y}));var a=n(27),r=n(44),i=n(607),o=n(21),s=n(12),l=n(60),c=n(64),f=n(781);function u(e){let t=e.hostname.replace(/ /g,"-");if(null!=e.ip&&Object(a.g)(e.ip)&&(e.ip=Object(a.e)()),null!=Object(a.d)(t)){t+="-0";for(let e=0;e<200&&(t=t.replace(/-[0-9]+$/,"-"+e),null!=Object(a.d)(t));++e);}return e.hostname=t,new r.a(e)}function m(e,t,n,a=1){let r=1+(s.a.ServerBaseGrowthRate-1)/e.hackDifficulty;r>s.a.ServerMaxGrowthRate&&(r=s.a.ServerMaxGrowthRate);const i=e.serverGrowth/100,l=1+(a-1)/16;return Math.log(t)/(Math.log(r)*n.mults.hacking_grow*i*o.a.ServerGrowthRate*l)}function h(e,t,n,a,r=1){if(n<0&&(n=0),t>e.moneyMax&&(t=e.moneyMax),t<=n)return 0;const i=1+(s.a.ServerBaseGrowthRate-1)/e.hackDifficulty,l=Math.min(i,s.a.ServerMaxGrowthRate),c=1+(r-1)/16,f=e.serverGrowth/100*a.mults.hacking_grow*c*o.a.ServerGrowthRate,u=f*Math.log(l),m=n*u+Math.log(t*u);let h;if(m<Math.log(2.5)){const e=Math.exp(m);h=(e+4/3*e*e)/(1+7/3*e+5/6*e*e)}else h=m,m>0&&(h-=Math.log(m));let d=h/u-n;const p=l**f;let g=1/0;do{const e=p**d,a=n+d;g=(a*e-t)/(a*u+1)/e,d-=g}while(Math.abs(g)>=1);const y=Math.floor(d);if(t<=(n+y)*Math.pow(l,y*f))return y;const b=Math.ceil(d);return t<=(n+b)*Math.pow(l,b*f)?b:b+1}function d(e,t,n,a=1){let r=Object(i.a)(e,t,n,a);r<1&&(console.warn("serverGrowth calculated to be less than 1"),r=1);const o=e.moneyAvailable;if(e.moneyAvailable+=1*t,e.moneyAvailable*=r,Object(f.a)(e.moneyMax)&&isNaN(e.moneyAvailable)&&(e.moneyAvailable=e.moneyMax),Object(f.a)(e.moneyMax)&&e.moneyAvailable>e.moneyMax&&(e.moneyAvailable=e.moneyMax),o!==e.moneyAvailable){let r=h(e,e.moneyAvailable,o,n,a);r=Math.min(Math.max(0,Math.ceil(r)),t),e.fortify(2*s.a.ServerFortifyAmount*r)}return e.moneyAvailable/o}function p(e,t){const n=t.programs.includes(l.a.BitFlume.name);t.programs.length=0,t.runningScripts=[],t.serversOnNetwork=[],t.isConnectedTo=!0,t.ramUsed=0,t.programs.push(l.a.NukeProgram.name),n&&t.programs.push(l.a.BitFlume.name),t.scripts.forEach((function(n){n.updateRamUsage(e,t.scripts)})),t.messages.length=0,t.messages.push(c.a.HackersStartingHandbook)}function g(e,t){return t>e.serversOnNetwork.length?(console.error("Tried to get server on network that was out of range"),null):Object(a.d)(e.serversOnNetwork[t])}function y(e){return e instanceof r.a&&e.backdoorInstalled}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));const a={BladesIntuition:"Blade's Intuition",Cloak:"Cloak",Marksman:"Marksman",WeaponProficiency:"Weapon Proficiency",ShortCircuit:"Short-Circuit",DigitalObserver:"Digital Observer",Tracer:"Tracer",Overclock:"Overclock",Reaper:"Reaper",EvasiveSystem:"Evasive System",Datamancer:"Datamancer",CybersEdge:"Cyber's Edge",HandsOfMidas:"Hands of Midas",Hyperdrive:"Hyperdrive"}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var a=n(0),r=n(6),i=n(118),o=n(142);const s=Object(i.a)(e=>Object(o.a)({reputation:{color:e.colors.rep}}));function l({reputation:e}){const t=s();return a.createElement("span",{className:t.reputation},"number"==typeof e?r.a.formatReputation(e):e)}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var a=n(359),r=n(22);class i extends a.a{constructor(e=null){super(e),this.count=1}getActionTimePenalty(){return 1.5}getChaosCompetencePenalty(){return 1}getChaosDifficultyBonus(){return 1}toJSON(){return Object(r.b)("BlackOperation",this)}static fromJSON(e){return Object(r.a)(i,e.data)}}r.c.constructors.BlackOperation=i},,function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i}));var a=n(0);const r={Gang:n.n(a).a.createContext({})},i=()=>Object(a.useContext)(r.Gang)},function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var a=n(184),r=n(432),i=n(202),o=n(302),s=n(376),l=n(27),c=n(328),f=n(14),u=n(473),m=n(2);function h(e,t,n){if(null!=n&&"boolean"==typeof n||(n=!0),e instanceof r.a)return p(e),!0;if(e instanceof s.a&&"string"==typeof t){const a=d(e.pid,n);if(a)return a;for(const a of i.a.values())if(a.name==e.filename&&a.hostname==t&&Object(c.a)(a.args,e.args))return p(a,n),!0;return!1}return"number"==typeof e?d(e,n):(console.error("killWorkerScript() called with invalid argument:"),console.error(e),!1)}function d(e,t=!0){const n=i.a.get(e);return n instanceof r.a&&(p(n,t),!0)}function p(e,t=!0){if("function"==typeof e.atExit){try{e.atExit()}catch(t){Object(f.a)(`Error trying to call atExit for script ${e.name} on ${e.hostname} ${e.scriptRef.args} ${t}`)}e.atExit=void 0}e.env.stopFlag=!0,function(e){e instanceof r.a&&e.delay&&(clearTimeout(e.delay),e.delayReject&&e.delayReject(new a.a(e)))}(e),function(e,t=!0){const n=e.hostname,a=e.name,r=Object(l.d)(n);if(null==r)return void console.error("Could not find server on which this script is running: "+n);for(let t=0;t<r.runningScripts.length;++t){const n=r.runningScripts[t];if(n.filename===a&&Object(c.a)(n.args,e.args)){r.runningScripts.splice(t,1);break}}r.updateRamUsed(0,m.a);for(const e of r.runningScripts)r.updateRamUsed(r.ramUsed+e.ramUsage*e.threads,m.a);i.a.delete(e.pid),Object(u.a)(e),t&&o.a.emit()}(e,t)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var a=n(0),r=n(6),i=n(118),o=n(142);const s=Object(i.a)(e=>Object(o.a)({unbuyable:{color:e.palette.action.disabled},money:{color:e.colors.money}}));function l(e){const t=s();return e.corp.funds>e.money?a.createElement("span",{className:t.money},r.a.formatMoney(e.money)):a.createElement("span",{className:t.unbuyable},r.a.formatMoney(e.money))}},,,function(e,t,n){"use strict";function a(e){return"string"==typeof e||e instanceof String}n.d(t,"a",(function(){return a}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var a=n(341),r=n(281),i=n(19),o=n(1),s=n(0),l=n.n(s);function c({checked:e,onChange:t,text:n,tooltip:c}){const[f,u]=Object(s.useState)(e);return Object(s.useEffect)(()=>t(f),[f]),l.a.createElement(a.a,{control:l.a.createElement(r.a,{checked:f,onChange:function(e){u(e.target.checked)}}),label:l.a.createElement(i.a,{title:l.a.createElement(o.a,null,c)},l.a.createElement(o.a,null,n))})}},,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return f})),n.d(t,"c",(function(){return u})),n.d(t,"d",(function(){return m}));var a=n(0),r=n.n(a),i=n(21),o=n(4),s=n(15);class l{constructor(e,t,n,a="",i=r.a.createElement(r.a.Fragment,null)){this.number=e,this.difficulty=t,this.name=n,this.desc=a,this.info=i}}const c={};c.BitNode1=new l(1,0,"Source Genesis","The original BitNode",r.a.createElement(r.a.Fragment,null,"The first BitNode created by the Enders to imprison the minds of humans. It became the prototype and testing-grounds for all of the BitNodes that followed.",r.a.createElement("br",null),r.a.createElement("br",null),"This is the first BitNode that you play through. It has no special modifications or mechanics.",r.a.createElement("br",null),r.a.createElement("br",null),"Destroying this BitNode will give you Source-File 1, or if you already have this Source-File it will upgrade its level up to a maximum of 3. This Source-File lets the player start with 32GB of RAM on his/her home computer when entering a new BitNode, and also increases all of the player's multipliers by:",r.a.createElement("br",null),r.a.createElement("br",null),"Level 1: 16%",r.a.createElement("br",null),"Level 2: 24%",r.a.createElement("br",null),"Level 3: 28%")),c.BitNode2=new l(2,0,"Rise of the Underworld","From the shadows, they rose",r.a.createElement(r.a.Fragment,null,"From the shadows, they rose.",r.a.createElement("br",null),r.a.createElement("br",null),"Organized crime groups quickly filled the void of power left behind from the collapse of Western government in the 2050s. As society and civilization broke down, people quickly succumbed to the innate human impulse of evil and savagery. The organized crime factions quickly rose to the top of the modern world.",r.a.createElement("br",null),r.a.createElement("br",null),"Certain Factions (",o.a.SlumSnakes,", ",o.a.Tetrads,", ",o.a.TheSyndicate,","," ",o.a.TheDarkArmy,", ",o.a.SpeakersForTheDead,", ",o.a.NiteSec,", ",o.a.TheBlackHand,") give the player the ability to form and manage their own gangs. These gangs will earn the player money and reputation with the corresponding Faction",r.a.createElement("br",null),"Every Augmentation in the game will be available through the Factions listed above",r.a.createElement("br",null),r.a.createElement("br",null),"Destroying this BitNode will give you Source-File 2, or if you already have this Source-File it will upgrade its level up to a maximum of 3. This Source-File allows you to form gangs in other BitNodes once your karma decreases to a certain value. It also increases the player's crime success rate, crime money, and charisma multipliers by:",r.a.createElement("br",null),r.a.createElement("br",null),"Level 1: 24%",r.a.createElement("br",null),"Level 2: 36%",r.a.createElement("br",null),"Level 3: 42%")),c.BitNode3=new l(3,0,"Corporatocracy","The Price of Civilization",r.a.createElement(r.a.Fragment,null,"Our greatest illusion is that a healthy society can revolve around a single-minded pursuit of wealth.",r.a.createElement("br",null),r.a.createElement("br",null),"Sometime in the early 21st century economic and political globalization turned the world into a corporatocracy, and it never looked back. Now, the privileged elite will happily bankrupt their own countrymen, decimate their own community, and evict their neighbors from houses in their desperate bid to increase their wealth.",r.a.createElement("br",null),r.a.createElement("br",null),"In this BitNode you can create and manage your own corporation. Running a successful corporation has the potential of generating massive profits.",r.a.createElement("br",null),r.a.createElement("br",null),"Destroying this BitNode will give you Source-File 3, or if you already have this Source-File it will upgrade its level up to a maximum of 3. This Source-File lets you create corporations on other BitNodes (although some BitNodes will disable this mechanic). This Source-File also increases your charisma and company salary multipliers by:",r.a.createElement("br",null),"Level 1: 8%",r.a.createElement("br",null),"Level 2: 12%",r.a.createElement("br",null),"Level 3: 14%")),c.BitNode4=new l(4,1,"The Singularity","The Man and the Machine",r.a.createElement(r.a.Fragment,null,"The Singularity has arrived. The human race is gone, replaced by artificially superintelligent beings that are more machine than man. ",r.a.createElement("br",null),r.a.createElement("br",null),r.a.createElement("br",null),"In this BitNode you will gain access to a new set of Netscript Functions known as Singularity Functions. These functions allow you to control most aspects of the game through scripts, including working for factions/companies, purchasing/installing Augmentations, and creating programs.",r.a.createElement("br",null),r.a.createElement("br",null),"Destroying this BitNode will give you Source-File 4, or if you already have this Source-File it will upgrade its level up to a maximum of 3. This Source-File lets you access and use the Singularity Functions in other BitNodes. Each level of this Source-File reduces the RAM cost of singularity functions.")),c.BitNode5=new l(5,1,"Artificial Intelligence","Posthuman",r.a.createElement(r.a.Fragment,null,"They said it couldn't be done. They said the human brain, along with its consciousness and intelligence, couldn't be replicated. They said the complexity of the brain results from unpredictable, nonlinear interactions that couldn't be modeled by 1's and 0's. They were wrong.",r.a.createElement("br",null),r.a.createElement("br",null),"Destroying this BitNode will give you Source-File 5, or if you already have this Source-File it will upgrade its level up to a maximum of 3. This Source-File grants you a special new stat called Intelligence. Intelligence is unique because it is permanent and persistent (it never gets reset back to 1). However gaining Intelligence experience is much slower than other stats. Higher Intelligence levels will boost your production for many actions in the game. ",r.a.createElement("br",null),r.a.createElement("br",null),"In addition, this Source-File will unlock the getBitNodeMultipliers() Netscript function and let you start with Formulas.exe, and will also raise all of your hacking-related multipliers by:",r.a.createElement("br",null),r.a.createElement("br",null),"Level 1: 8%",r.a.createElement("br",null),"Level 2: 12%",r.a.createElement("br",null),"Level 3: 14%")),c.BitNode6=new l(6,1,o.a.Bladeburners,"Like Tears in Rain",r.a.createElement(r.a.Fragment,null,"In the middle of the 21st century, ",o.a.OmniTekIncorporated," began designing and manufacturing advanced synthetic androids, or Synthoids for short. They achieved a major technological breakthrough in the sixth generation of their Synthoid design, called MK-VI, by developing a hyperintelligent AI. Many argue that this was the first sentient AI ever created. This resulted in Synthoid models that were stronger, faster, and more intelligent than the humans that had created them.",r.a.createElement("br",null),r.a.createElement("br",null),"In this BitNode you will be able to access the ",o.a.Bladeburners," Division at the NSA, which provides a new mechanic for progression.",r.a.createElement("br",null),r.a.createElement("br",null),"Destroying this BitNode will give you Source-File 6, or if you already have this Source-File it will upgrade its level up to a maximum of 3. This Source-File allows you to access the NSA's ",o.a.Bladeburners," Division in other BitNodes. In addition, this Source-File will raise both the level and experience gain rate of all your combat stats by:",r.a.createElement("br",null),r.a.createElement("br",null),"Level 1: 8%",r.a.createElement("br",null),"Level 2: 12%",r.a.createElement("br",null),"Level 3: 14%")),c.BitNode7=new l(7,2,o.a.Bladeburners+" 2079","More human than humans",r.a.createElement(r.a.Fragment,null,"In the middle of the 21st century, you were doing cutting-edge work at ",o.a.OmniTekIncorporated," as part of the AI design team for advanced synthetic androids, or Synthoids for short. You helped achieve a major technological breakthrough in the sixth generation of the company's Synthoid design, called MK-VI, by developing a hyperintelligent AI. Many argue that this was the first sentient AI ever created. This resulted in Synthoid models that were stronger, faster, and more intelligent than the humans that had created them.",r.a.createElement("br",null),r.a.createElement("br",null),"In this BitNode you will be able to access the ",o.a.Bladeburners," API, which allows you to access"," ",o.a.Bladeburners,"functionality through Netscript.",r.a.createElement("br",null),r.a.createElement("br",null),"Destroying this BitNode will give you Source-File 7, or if you already have this Source-File it will upgrade its level up to a maximum of 3. This Source-File allows you to access the ",o.a.Bladeburners," Netscript API in other BitNodes. In addition, this Source-File will increase all of your ",o.a.Bladeburners," multipliers by:",r.a.createElement("br",null),r.a.createElement("br",null),"Level 1: 8%",r.a.createElement("br",null),"Level 2: 12%",r.a.createElement("br",null),"Level 3: 14%")),c.BitNode8=new l(8,2,"Ghost of Wall Street","Money never sleeps",r.a.createElement(r.a.Fragment,null,"You are trying to make a name for yourself as an up-and-coming hedge fund manager on Wall Street.",r.a.createElement("br",null),r.a.createElement("br",null),"In this BitNode:",r.a.createElement("br",null),r.a.createElement("br",null),"You start with $250 million",r.a.createElement("br",null),"You start with a WSE membership and access to the TIX API",r.a.createElement("br",null),"You are able to short stocks and place different types of orders (limit/stop)",r.a.createElement("br",null),r.a.createElement("br",null),"Destroying this BitNode will give you Source-File 8, or if you already have this Source-File it will upgrade its level up to a maximum of 3. This Source-File grants the following benefits:",r.a.createElement("br",null),r.a.createElement("br",null),"Level 1: Permanent access to WSE and TIX API",r.a.createElement("br",null),"Level 2: Ability to short stocks in other BitNodes",r.a.createElement("br",null),"Level 3: Ability to use limit/stop orders in other BitNodes",r.a.createElement("br",null),r.a.createElement("br",null),"This Source-File also increases your hacking growth multipliers by:",r.a.createElement("br",null),"Level 1: 12%",r.a.createElement("br",null),"Level 2: 18%",r.a.createElement("br",null),"Level 3: 21%")),c.BitNode9=new l(9,2,"Hacktocracy","Hacknet Unleashed",r.a.createElement(r.a.Fragment,null,"When ",o.a.FulcrumSecretTechnologies," released their open-source Linux distro Chapeau, it quickly became the OS of choice for the underground hacking community. Chapeau became especially notorious for powering the Hacknet, a global, decentralized network used for nefarious purposes. ",o.a.FulcrumSecretTechnologies," ","quickly abandoned the project and dissociated themselves from it.",r.a.createElement("br",null),r.a.createElement("br",null),"This BitNode unlocks the Hacknet Server, an upgraded version of the Hacknet Node. Hacknet Servers generate hashes, which can be spent on a variety of different upgrades.",r.a.createElement("br",null),r.a.createElement("br",null),"Destroying this BitNode will give you Source-File 9, or if you already have this Source-File it will upgrade its level up to a maximum of 3. This Source-File grants the following benefits:",r.a.createElement("br",null),r.a.createElement("br",null),"Level 1: Permanently unlocks the Hacknet Server in other BitNodes",r.a.createElement("br",null),"Level 2: You start with 128GB of RAM on your home computer when entering a new BitNode",r.a.createElement("br",null),"Level 3: Grants a highly-upgraded Hacknet Server when entering a new BitNode",r.a.createElement("br",null),r.a.createElement("br",null),"(Note that the Level 3 effect of this Source-File only applies when entering a new BitNode, NOT when installing Augmentations)",r.a.createElement("br",null),r.a.createElement("br",null),"This Source-File also increases your hacknet multipliers by:",r.a.createElement("br",null),"Level 1: 8%",r.a.createElement("br",null),"Level 2: 12%",r.a.createElement("br",null),"Level 3: 14%")),c.BitNode10=new l(10,2,"Digital Carbon","Your body is not who you are",r.a.createElement(r.a.Fragment,null,"In 2084, VitaLife unveiled to the world the Persona Core, a technology that allowed people to digitize their consciousness. Their consciousness could then be transferred into Synthoids or other bodies by trasmitting the digitized data. Human bodies became nothing more than 'sleeves' for the human consciousness. Mankind had finally achieved immortality - at least for those that could afford it.",r.a.createElement("br",null),r.a.createElement("br",null),"This BitNode unlocks Sleeve technology. Sleeve technology allows you to:",r.a.createElement("br",null),r.a.createElement("br",null),"1. Grafting: Visit VitaLife in New Tokyo to be able to obtain Augmentations without needing to install",r.a.createElement("br",null),"2. Duplicate Sleeves: Duplicate your consciousness into Synthoids, allowing you to perform different tasks synchronously.",r.a.createElement("br",null),r.a.createElement("br",null),"Destroying this BitNode will give you Source-File 10, or if you already have this Source-File it will upgrade its level up to a maximum of 3. This Source-File unlocks Sleeve technology in other BitNodes. Each level of this Source-File also grants you a Duplicate Sleeve")),c.BitNode11=new l(11,1,"The Big Crash","Okay. Sell it all.",r.a.createElement(r.a.Fragment,null,"The 2050s was defined by the massive amounts of violent civil unrest and anarchic rebellion that rose all around the world. It was this period of disorder that eventually lead to the governmental reformation of many global superpowers, most notably the USA and China. But just as the world was slowly beginning to recover from these dark times, financial catastrophe hit.",r.a.createElement("br",null),r.a.createElement("br",null),"In many countries, the high cost of trying to deal with the civil disorder bankrupted the governments. In all of this chaos and confusion, hackers were able to steal billions of dollars from the world's largest electronic banks, prompting an international banking crisis as governments were unable to bail out insolvent banks. Now, the world is slowly crumbling in the middle of the biggest economic crisis of all time.",r.a.createElement("br",null),r.a.createElement("br",null),"Destroying this BitNode will give you Source-File 11, or if you already have this Source-File it will upgrade its level up to a maximum of 3. This Source-File makes it so that company favor increases BOTH the player's salary and reputation gain rate at that company by 1% per favor (rather than just the reputation gain). This Source-File also increases the player's company salary and reputation gain multipliers by:",r.a.createElement("br",null),r.a.createElement("br",null),"Level 1: 32%",r.a.createElement("br",null),"Level 2: 48%",r.a.createElement("br",null),"Level 3: 56%",r.a.createElement("br",null),r.a.createElement("br",null),"It also reduces the price increase for every aug bought by:",r.a.createElement("br",null),r.a.createElement("br",null),"Level 1: 4%",r.a.createElement("br",null),"Level 2: 6%",r.a.createElement("br",null),"Level 3: 7%")),c.BitNode12=new l(12,0,"The Recursion","Repeat.",r.a.createElement(r.a.Fragment,null,"To iterate is human, to recurse divine.",r.a.createElement("br",null),r.a.createElement("br",null),"Every time this BitNode is destroyed, it becomes slightly harder. Destroying this BitNode will give you Source-File 12, or if you already have this Source-File it will upgrade its level. There is no maximum level for Source-File 12. Each level of Source-File 12 lets you start any BitNodes with NeuroFlux Governor equal to the level of this source file.")),c.BitNode13=new l(13,2,"They're lunatics","1 step back, 2 steps forward",r.a.createElement(r.a.Fragment,null,"With the invention of Augmentations in the 2040s a religious group known as the"," ",o.a.ChurchOfTheMachineGod," has rallied far more support than anyone would have hoped.",r.a.createElement("br",null),r.a.createElement("br",null),'Their leader, Allison "Mother" Stanek is said to have created her own Augmentation whose power goes beyond any other. Find her in ',s.a.Chongqing," and gain her trust.",r.a.createElement("br",null),r.a.createElement("br",null),"Destroying this BitNode will give you Source-File 13, or if you already have this Source-File it will upgrade its level up to a maximum of 3. This Source-File lets the ",o.a.ChurchOfTheMachineGod," appear in other BitNodes.",r.a.createElement("br",null),r.a.createElement("br",null),"Each level of this Source-File increases the size of Stanek's Gift."));const f={HackingLevelMultiplier:1,StrengthLevelMultiplier:1,DefenseLevelMultiplier:1,DexterityLevelMultiplier:1,AgilityLevelMultiplier:1,CharismaLevelMultiplier:1,ServerGrowthRate:1,ServerMaxMoney:1,ServerStartingMoney:1,ServerStartingSecurity:1,ServerWeakenRate:1,HomeComputerRamCost:1,PurchasedServerCost:1,PurchasedServerSoftcap:1,PurchasedServerLimit:1,PurchasedServerMaxRam:1,CompanyWorkMoney:1,CrimeMoney:1,HacknetNodeMoney:1,ManualHackMoney:1,ScriptHackMoney:1,ScriptHackMoneyGain:1,CodingContractMoney:1,ClassGymExpGain:1,CompanyWorkExpGain:1,CrimeExpGain:1,FactionWorkExpGain:1,HackExpGain:1,FactionPassiveRepGain:1,FactionWorkRepGain:1,RepToDonateToFaction:1,AugmentationMoneyCost:1,AugmentationRepCost:1,InfiltrationMoney:1,InfiltrationRep:1,FourSigmaMarketDataCost:1,FourSigmaMarketDataApiCost:1,CorporationValuation:1,CorporationSoftcap:1,BladeburnerRank:1,BladeburnerSkillCost:1,GangSoftcap:1,GangUniqueAugs:1,DaedalusAugsRequirement:30,StaneksGiftPowerMultiplier:1,StaneksGiftExtraSize:0,WorldDaemonDifficulty:1};function u(e,t){const n=Object.assign({},f);switch(e){case 1:return n;case 2:return Object.assign(n,{HackingLevelMultiplier:.8,ServerGrowthRate:.8,ServerMaxMoney:.2,ServerStartingMoney:.4,CrimeMoney:3,InfiltrationMoney:3,FactionWorkRepGain:.5,FactionPassiveRepGain:0,StaneksGiftPowerMultiplier:2,StaneksGiftExtraSize:-6,PurchasedServerSoftcap:1.3,CorporationSoftcap:.9,WorldDaemonDifficulty:5});case 3:return Object.assign(n,{HackingLevelMultiplier:.8,RepToDonateToFaction:.5,AugmentationRepCost:3,AugmentationMoneyCost:3,ServerMaxMoney:.2,ServerStartingMoney:.2,ServerGrowthRate:.2,ScriptHackMoney:.2,CompanyWorkMoney:.25,CrimeMoney:.25,HacknetNodeMoney:.25,HomeComputerRamCost:1.5,PurchasedServerCost:2,StaneksGiftPowerMultiplier:.75,StaneksGiftExtraSize:-2,PurchasedServerSoftcap:1.3,GangSoftcap:.9,WorldDaemonDifficulty:2,GangUniqueAugs:.5});case 4:return Object.assign(n,{ServerMaxMoney:.15,ServerStartingMoney:.75,ScriptHackMoney:.2,CompanyWorkMoney:.1,CrimeMoney:.2,HacknetNodeMoney:.05,CompanyWorkExpGain:.5,ClassGymExpGain:.5,FactionWorkExpGain:.5,HackExpGain:.4,CrimeExpGain:.5,FactionWorkRepGain:.75,StaneksGiftPowerMultiplier:1.5,StaneksGiftExtraSize:0,PurchasedServerSoftcap:1.2,WorldDaemonDifficulty:3,GangUniqueAugs:.5});case 5:return Object.assign(n,{ServerMaxMoney:2,ServerStartingSecurity:2,ServerStartingMoney:.5,ScriptHackMoney:.15,HacknetNodeMoney:.2,CrimeMoney:.5,InfiltrationRep:1.5,InfiltrationMoney:1.5,AugmentationMoneyCost:2,HackExpGain:.5,CorporationValuation:.5,StaneksGiftPowerMultiplier:1.3,StaneksGiftExtraSize:0,PurchasedServerSoftcap:1.2,WorldDaemonDifficulty:1.5,GangUniqueAugs:.5});case 6:return Object.assign(n,{HackingLevelMultiplier:.35,ServerMaxMoney:.4,ServerStartingMoney:.5,ServerStartingSecurity:1.5,ScriptHackMoney:.75,CompanyWorkMoney:.5,CrimeMoney:.75,InfiltrationMoney:.75,CorporationValuation:.2,HacknetNodeMoney:.2,HackExpGain:.25,DaedalusAugsRequirement:35,PurchasedServerSoftcap:2,StaneksGiftPowerMultiplier:.5,StaneksGiftExtraSize:2,GangSoftcap:.7,CorporationSoftcap:.9,WorldDaemonDifficulty:2,GangUniqueAugs:.2});case 7:return Object.assign(n,{BladeburnerRank:.6,BladeburnerSkillCost:2,AugmentationMoneyCost:3,HackingLevelMultiplier:.35,ServerMaxMoney:.4,ServerStartingMoney:.5,ServerStartingSecurity:1.5,ScriptHackMoney:.5,CompanyWorkMoney:.5,CrimeMoney:.75,InfiltrationMoney:.75,CorporationValuation:.2,HacknetNodeMoney:.2,HackExpGain:.25,FourSigmaMarketDataCost:2,FourSigmaMarketDataApiCost:2,DaedalusAugsRequirement:35,PurchasedServerSoftcap:2,StaneksGiftPowerMultiplier:.9,StaneksGiftExtraSize:-1,GangSoftcap:.7,CorporationSoftcap:.9,WorldDaemonDifficulty:2,GangUniqueAugs:.2});case 8:return Object.assign(n,{ScriptHackMoney:.3,ScriptHackMoneyGain:0,ManualHackMoney:0,CompanyWorkMoney:0,CrimeMoney:0,HacknetNodeMoney:0,InfiltrationMoney:0,RepToDonateToFaction:0,CorporationValuation:0,CodingContractMoney:0,StaneksGiftExtraSize:-99,PurchasedServerSoftcap:4,GangSoftcap:0,CorporationSoftcap:0,GangUniqueAugs:0});case 9:return Object.assign(n,{HackingLevelMultiplier:.5,StrengthLevelMultiplier:.45,DefenseLevelMultiplier:.45,DexterityLevelMultiplier:.45,AgilityLevelMultiplier:.45,CharismaLevelMultiplier:.45,PurchasedServerLimit:0,HomeComputerRamCost:5,CrimeMoney:.5,ScriptHackMoney:.1,HackExpGain:.05,ServerStartingMoney:.1,ServerMaxMoney:.1,ServerStartingSecurity:2.5,CorporationValuation:.5,FourSigmaMarketDataCost:5,FourSigmaMarketDataApiCost:4,BladeburnerRank:.9,BladeburnerSkillCost:1.2,StaneksGiftPowerMultiplier:.5,StaneksGiftExtraSize:2,GangSoftcap:.8,CorporationSoftcap:.7,WorldDaemonDifficulty:2,GangUniqueAugs:.25});case 10:return Object.assign(n,{HackingLevelMultiplier:.35,StrengthLevelMultiplier:.4,DefenseLevelMultiplier:.4,DexterityLevelMultiplier:.4,AgilityLevelMultiplier:.4,CharismaLevelMultiplier:.4,CompanyWorkMoney:.5,CrimeMoney:.5,HacknetNodeMoney:.5,ManualHackMoney:.5,ScriptHackMoney:.5,CodingContractMoney:.5,InfiltrationMoney:.5,CorporationValuation:.5,AugmentationMoneyCost:5,AugmentationRepCost:2,HomeComputerRamCost:1.5,PurchasedServerCost:5,PurchasedServerLimit:.6,PurchasedServerMaxRam:.5,BladeburnerRank:.8,StaneksGiftPowerMultiplier:.75,StaneksGiftExtraSize:-3,PurchasedServerSoftcap:1.1,GangSoftcap:.9,CorporationSoftcap:.9,WorldDaemonDifficulty:2,GangUniqueAugs:.25});case 11:return Object.assign(n,{HackingLevelMultiplier:.6,HackExpGain:.5,ServerMaxMoney:.1,ServerStartingMoney:.1,ServerGrowthRate:.2,ServerWeakenRate:2,CrimeMoney:3,CompanyWorkMoney:.5,HacknetNodeMoney:.1,AugmentationMoneyCost:2,InfiltrationMoney:2.5,InfiltrationRep:2.5,CorporationValuation:.1,CodingContractMoney:.25,FourSigmaMarketDataCost:4,FourSigmaMarketDataApiCost:4,PurchasedServerSoftcap:2,CorporationSoftcap:.9,WorldDaemonDifficulty:1.5,GangUniqueAugs:.75});case 12:{const e=Math.pow(1.02,t),a=1/e;return Object.assign(n,{DaedalusAugsRequirement:Math.floor(Math.min(n.DaedalusAugsRequirement+e,40)),HackingLevelMultiplier:a,StrengthLevelMultiplier:a,DefenseLevelMultiplier:a,DexterityLevelMultiplier:a,AgilityLevelMultiplier:a,CharismaLevelMultiplier:a,ServerMaxMoney:a,ServerStartingMoney:a,ServerGrowthRate:a,ServerWeakenRate:a,ServerStartingSecurity:1.5,HomeComputerRamCost:e,PurchasedServerCost:e,PurchasedServerLimit:a,PurchasedServerMaxRam:a,PurchasedServerSoftcap:e,ManualHackMoney:a,ScriptHackMoney:a,CompanyWorkMoney:a,CrimeMoney:a,HacknetNodeMoney:a,CodingContractMoney:a,CompanyWorkExpGain:a,ClassGymExpGain:a,FactionWorkExpGain:a,HackExpGain:a,CrimeExpGain:a,FactionWorkRepGain:a,FactionPassiveRepGain:a,RepToDonateToFaction:e,AugmentationRepCost:e,AugmentationMoneyCost:e,InfiltrationMoney:a,InfiltrationRep:a,FourSigmaMarketDataCost:e,FourSigmaMarketDataApiCost:e,CorporationValuation:a,BladeburnerRank:a,BladeburnerSkillCost:e,StaneksGiftPowerMultiplier:e,StaneksGiftExtraSize:e,GangSoftcap:.8,CorporationSoftcap:.8,WorldDaemonDifficulty:e,GangUniqueAugs:a})}case 13:return Object.assign(n,{PurchasedServerSoftcap:1.6,HackingLevelMultiplier:.25,StrengthLevelMultiplier:.7,DefenseLevelMultiplier:.7,DexterityLevelMultiplier:.7,AgilityLevelMultiplier:.7,ServerMaxMoney:.45,ServerStartingMoney:.75,ServerStartingSecurity:3,ScriptHackMoney:.2,CompanyWorkMoney:.4,CrimeMoney:.4,HacknetNodeMoney:.4,CodingContractMoney:.4,CompanyWorkExpGain:.5,ClassGymExpGain:.5,FactionWorkExpGain:.5,HackExpGain:.1,CrimeExpGain:.5,FactionWorkRepGain:.6,FourSigmaMarketDataCost:10,FourSigmaMarketDataApiCost:10,CorporationValuation:.001,BladeburnerRank:.45,BladeburnerSkillCost:2,StaneksGiftPowerMultiplier:2,StaneksGiftExtraSize:1,GangSoftcap:.3,CorporationSoftcap:.3,WorldDaemonDifficulty:3,GangUniqueAugs:.1});default:throw new Error("Invalid BitNodeN")}}function m(e){Object.assign(i.a,u(e.bitNodeN,e.sourceFileLvl(e.bitNodeN)))}Object.freeze(f)},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return r}));class a{constructor(e,t){this.type=e,this.singularity=t,this.cyclesWorked=0}}let r;!function(e){e.CRIME="CRIME",e.CLASS="CLASS",e.CREATE_PROGRAM="CREATE_PROGRAM",e.GRAFTING="GRAFTING",e.FACTION="FACTION",e.COMPANY="COMPANY"}(r||(r={}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var a=n(22),r=n(33);const i={b:!0,initPrice:1e4,marketCap:1e12,mv:1,name:"",otlkMag:0,spreadPerc:0,shareTxForMovement:1e6,symbol:""};function o(e){let t;switch(typeof e){case"number":return e;case"object":{const n=e;t=Object(r.a)(n.min,n.max);break}default:throw Error(`Do not know how to convert the type '${typeof e}' to a number`)}return"object"==typeof e&&"number"==typeof e.divisor?t/e.divisor:t}class s{constructor(e=i){this.name=e.name,this.symbol=e.symbol,this.price=o(e.initPrice),this.lastPrice=this.price,this.playerShares=0,this.playerAvgPx=0,this.playerShortShares=0,this.playerAvgShortPx=0,this.mv=o(e.mv),this.b=e.b,this.otlkMag=e.otlkMag,this.otlkMagForecast=this.getAbsoluteForecast(),this.cap=Object(r.a)(1e3*this.price,25e3*this.price),this.spreadPerc=o(e.spreadPerc),this.shareTxForMovement=o(e.shareTxForMovement),this.shareTxUntilMovement=this.shareTxForMovement;const t=e.marketCap/this.price;this.totalShares=1e5*Math.round(t/1e5);this.maxShares=1e5*Math.round(.2*this.totalShares/1e5)}changeForecastForecast(e){this.otlkMagForecast=e,this.otlkMagForecast>100?this.otlkMagForecast=100:this.otlkMagForecast<0&&(this.otlkMagForecast=0)}changePrice(e){this.lastPrice=this.price,this.price=e}cycleForecast(e=.1){const t=this.getForecastIncreaseChance();Math.random()<t?this.b?this.otlkMag+=e:this.otlkMag-=e:this.b?this.otlkMag-=e:this.otlkMag+=e,this.otlkMag=Math.min(this.otlkMag,50),this.otlkMag<0&&(this.otlkMag*=-1,this.b=!this.b)}cycleForecastForecast(e=.1){Math.random()<.5?this.changeForecastForecast(this.otlkMagForecast+e):this.changeForecastForecast(this.otlkMagForecast-e)}flipForecastForecast(){const e=this.otlkMagForecast-50;this.otlkMagForecast=50+-1*e}getAbsoluteForecast(){return this.b?50+this.otlkMag:50-this.otlkMag}getAskPrice(){return this.price*(1+this.spreadPerc/100)}getBidPrice(){return this.price*(1-this.spreadPerc/100)}getForecastIncreaseChance(){const e=this.otlkMagForecast-this.getAbsoluteForecast();return(50+Math.min(Math.max(e,-45),45))/100}influenceForecast(e){this.otlkMag>5&&(this.otlkMag=Math.max(5,this.otlkMag-e))}influenceForecastForecast(e){this.otlkMagForecast>50?(this.otlkMagForecast-=e,this.otlkMagForecast=Math.max(50,this.otlkMagForecast)):this.otlkMagForecast<50&&(this.otlkMagForecast+=e,this.otlkMagForecast=Math.min(50,this.otlkMagForecast))}toJSON(){return Object(a.b)("Stock",this)}static fromJSON(e){return Object(a.a)(s,e.data)}}a.c.constructors.Stock=s},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));const a={}},,function(e,t,n){"use strict";n.d(t,"c",(function(){return i})),n.d(t,"d",(function(){return o})),n.d(t,"e",(function(){return s})),n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return c})),n.d(t,"f",(function(){return f}));var a=n(21),r=n(40);function i(e,t,n,i,o){return r.b.HashesPerLevel*e*Math.pow(1.07,Math.log2(n))*(1+(i-1)/5)*(1-t/n)*o*a.a.HacknetNodeMoney}function o(e,t=1,n=1){const a=Math.round(t);if(isNaN(a)||a<1)return 0;if(e>=r.b.MaxLevel)return 1/0;const i=r.b.UpgradeLevelMult;let o=0,s=e;for(let e=0;e<a;++e)o+=Math.pow(i,s),++s;return 10*r.b.BaseCost*o*n}function s(e,t=1,n=1){const a=Math.round(t);if(isNaN(a)||a<1)return 0;if(e>=r.b.MaxRam)return 1/0;let i=0,o=Math.round(Math.log2(e)),s=e;for(let e=0;e<a;++e){i+=s*r.b.RamBaseCost*Math.pow(r.b.UpgradeRamMult,o),s*=2,++o}return i*=n,i}function l(e,t=1,n=1){const a=Math.round(t);if(isNaN(a)||a<1)return 0;if(e>=r.b.MaxCores)return 1/0;const i=r.b.UpgradeCoreMult;let o=0,s=e;for(let e=0;e<a;++e)o+=Math.pow(i,s-1),++s;return o*=r.b.CoreBaseCost,o*=n,o}function c(e,t=1){const n=Math.round(t);if(isNaN(n)||n<1)return 0;if(e>=r.b.MaxCache)return 1/0;const a=r.b.UpgradeCacheMult;let i=0,o=e;for(let e=0;e<n;++e)i+=Math.pow(a,o-1),++o;return i*=r.b.CacheBaseCost,i}function f(e,t=1){return e-1>=r.b.MaxServers?1/0:r.b.BaseCost*Math.pow(r.b.PurchaseMult,e-1)*t}},,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return o})),n.d(t,"d",(function(){return s})),n.d(t,"f",(function(){return l})),n.d(t,"e",(function(){return c})),n.d(t,"g",(function(){return m})),n.d(t,"h",(function(){return h}));var a=n(84);let r={},i={};function o(e){r=""===e?{}:JSON.parse(e)}function s(e){i=""===e?{}:JSON.parse(e)}function l(){for(const e of Object.keys(r))r.hasOwnProperty(e)&&a.a.print("alias "+e+"="+r[e]);for(const e of Object.keys(i))i.hasOwnProperty(e)&&a.a.print("global alias "+e+"="+i[e])}function c(e,t=!1){const n=e.match(/^([\w|!%,@-]+)=(("(.+)")|('(.+)'))$/);return null!=n&&7==n.length&&(t?function(e,t){e in r&&delete r[e];i[e]=t.trim()}(n[1],n[4]||n[6]):function(e,t){e in i&&delete i[e];r[e]=t.trim()}(n[1],n[4]||n[6]),!0)}function f(e){return r.hasOwnProperty(e)?r[e]:null}function u(e){return i.hasOwnProperty(e)?i[e]:null}function m(e){return r.hasOwnProperty(e)?(delete r[e],!0):!!i.hasOwnProperty(e)&&(delete i[e],!0)}function h(e){const t=e.split(" ");if(t.length>0){if("unalias"===t[0]||"alias"===t[0])return t.join(" ");let e=!0,r=0;for(;e&&r<10;){var n;r++,e=!1;const i=null===(n=f(t[0]))||void 0===n?void 0:n.split(" ");null!=i&&(e=!0,t.splice(0,1,...i));for(let n=0;n<t.length;++n){var a;const r=null===(a=u(t[n]))||void 0===a?void 0:a.split(" ");null!=r&&(e=!0,t.splice(n,1,...r),n+=r.length-1)}}}return t.join(" ")}},,function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return i}));const a=e=>{var t,n,a,r,i,o,s,l,c;return{money:null!==(t=null==e?void 0:e.money)&&void 0!==t?t:0,reputation:null!==(n=null==e?void 0:e.reputation)&&void 0!==n?n:0,hackExp:null!==(a=null==e?void 0:e.hackExp)&&void 0!==a?a:0,strExp:null!==(r=null==e?void 0:e.strExp)&&void 0!==r?r:0,defExp:null!==(i=null==e?void 0:e.defExp)&&void 0!==i?i:0,dexExp:null!==(o=null==e?void 0:e.dexExp)&&void 0!==o?o:0,agiExp:null!==(s=null==e?void 0:e.agiExp)&&void 0!==s?s:0,chaExp:null!==(l=null==e?void 0:e.chaExp)&&void 0!==l?l:0,intExp:null!==(c=null==e?void 0:e.intExp)&&void 0!==c?c:0}},r=(e,t)=>({money:e.money+t.money,reputation:e.reputation+t.reputation,hackExp:e.hackExp+t.hackExp,strExp:e.strExp+t.strExp,defExp:e.defExp+t.defExp,dexExp:e.dexExp+t.dexExp,agiExp:e.agiExp+t.agiExp,chaExp:e.chaExp+t.chaExp,intExp:e.intExp+t.intExp}),i=(e,t,n,a)=>{const r={money:t.money*n,reputation:0,hackExp:t.hackExp*n,strExp:t.strExp*n,defExp:t.defExp*n,dexExp:t.dexExp*n,agiExp:t.agiExp*n,chaExp:t.chaExp*n,intExp:t.intExp*n};return e.gainHackingExp(r.hackExp),e.gainStrengthExp(r.strExp),e.gainDefenseExp(r.defExp),e.gainDexterityExp(r.dexExp),e.gainAgilityExp(r.agiExp),e.gainCharismaExp(r.chaExp),e.gainIntelligenceExp(r.intExp),e.gainMoney(r.money,a),r}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));class a{constructor(e,t,n){this.title=e,this.fn=t,this.txt=n}}},,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var a=n(0),r=n.n(a),i=n(1),o=n(19);function s(e){const[t,n]=Object(a.useState)(!1);return r.a.createElement(o.a,{open:t,title:r.a.createElement(i.a,null,"Copied!")},r.a.createElement(i.a,{variant:e.variant,color:e.color,onClick:function(){const t=document.createElement("textarea");t.value=e.value,document.body.appendChild(t),t.select(),t.setSelectionRange(0,1e10),document.execCommand("copy"),document.body.removeChild(t),n(!0),setTimeout(()=>n(!1),1e3)}},e.value))}},,,,function(e,t,n){"use strict";n.d(t,"b",(function(){return f})),n.d(t,"c",(function(){return m})),n.d(t,"a",(function(){return h}));var a=n(0),r=n.n(a),i=n(665),o=n(957),s=n(1762),l=n(126),c=n(5);const f=new l.a;let u;function m(){var e,t;u=Object(i.a)({colors:{hp:c.a.theme.hp,money:c.a.theme.money,hack:c.a.theme.hack,combat:c.a.theme.combat,cha:c.a.theme.cha,int:c.a.theme.int,rep:c.a.theme.rep,backgroundprimary:c.a.theme.backgroundprimary,backgroundsecondary:c.a.theme.backgroundsecondary,button:c.a.theme.button,successlight:c.a.theme.successlight,success:c.a.theme.success,successdark:c.a.theme.successdark,white:c.a.theme.white,black:c.a.theme.black},palette:{primary:{light:c.a.theme.primarylight,main:c.a.theme.primary,dark:c.a.theme.primarydark},secondary:{light:c.a.theme.secondarylight,main:c.a.theme.secondary,dark:c.a.theme.secondarydark},error:{light:c.a.theme.errorlight,main:c.a.theme.error,dark:c.a.theme.errordark},info:{light:c.a.theme.infolight,main:c.a.theme.info,dark:c.a.theme.infodark},warning:{light:c.a.theme.warninglight,main:c.a.theme.warning,dark:c.a.theme.warningdark},success:{light:c.a.theme.successlight,main:c.a.theme.success,dark:c.a.theme.successdark},background:{default:c.a.theme.backgroundprimary,paper:c.a.theme.well},action:{disabled:c.a.theme.disabled}},typography:{fontFamily:c.a.styles.fontFamily,button:{textTransform:"none"}},components:{MuiInputBase:{styleOverrides:{root:{backgroundColor:c.a.theme.well,color:c.a.theme.primary},input:{"&::placeholder":{userSelect:"none",color:c.a.theme.primarydark}}}},MuiInput:{styleOverrides:{root:{backgroundColor:c.a.theme.well,borderBottomColor:"#fff"},underline:{"&:hover":{borderBottomColor:c.a.theme.primarydark},"&:before":{borderBottomColor:c.a.theme.primary},"&:after":{borderBottomColor:c.a.theme.primarylight}}}},MuiInputLabel:{styleOverrides:{root:{color:c.a.theme.primarydark,userSelect:"none","&:before":{color:c.a.theme.primarylight}}}},MuiButtonGroup:{styleOverrides:{root:{"& .MuiButton-root:not(:last-of-type)":{marginRight:"1px"}}}},MuiButton:{styleOverrides:{root:{backgroundColor:c.a.theme.button,border:"1px solid "+c.a.theme.well,"&:hover":{backgroundColor:c.a.theme.backgroundsecondary},borderRadius:0}}},MuiSelect:{styleOverrides:{icon:{color:c.a.theme.primary}},defaultProps:{variant:"standard"}},MuiTextField:{defaultProps:{variant:"standard"}},MuiTypography:{defaultProps:{color:"primary"},styleOverrides:{root:{lineHeight:c.a.styles.lineHeight}}},MuiMenu:{styleOverrides:{list:{backgroundColor:c.a.theme.well}}},MuiMenuItem:{styleOverrides:{root:{color:c.a.theme.primary}}},MuiAccordionSummary:{styleOverrides:{root:{backgroundColor:"#111"}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:c.a.theme.backgroundsecondary}}},MuiIconButton:{styleOverrides:{root:{color:c.a.theme.primary}}},MuiTooltip:{styleOverrides:{tooltip:{fontSize:"1em",color:c.a.theme.primary,backgroundColor:c.a.theme.well,borderRadius:0,border:"2px solid white",maxWidth:"100vh"}},defaultProps:{disableInteractive:!0}},MuiSlider:{styleOverrides:{valueLabel:{color:c.a.theme.primary,backgroundColor:c.a.theme.well}}},MuiDrawer:{styleOverrides:{paper:{"&::-webkit-scrollbar":{display:"none"},scrollbarWidth:"none",backgroundColor:c.a.theme.backgroundsecondary},paperAnchorDockedLeft:{borderRight:"1px solid "+c.a.theme.welllight}}},MuiDivider:{styleOverrides:{root:{backgroundColor:c.a.theme.welllight}}},MuiFormControlLabel:{styleOverrides:{root:{color:c.a.theme.primary}}},MuiSwitch:{styleOverrides:{switchBase:{color:c.a.theme.primarydark},track:{backgroundColor:c.a.theme.welllight}}},MuiPaper:{styleOverrides:{root:{borderRadius:0,backgroundColor:c.a.theme.backgroundsecondary,border:"1px solid "+c.a.theme.welllight}}},MuiTablePagination:{styleOverrides:{select:{color:c.a.theme.primary},selectLabel:{color:c.a.theme.primary},displayedRows:{color:c.a.theme.primary}}},MuiTab:{styleOverrides:{textColorPrimary:{color:c.a.theme.secondary,"&.Mui-selected":{color:c.a.theme.primary}},root:{backgroundColor:c.a.theme.backgroundsecondary,border:"1px solid "+c.a.theme.well,margin:"3px","&.Mui-selected":{backgroundColor:c.a.theme.button}}}},MuiTabs:{styleOverrides:{scrollButtons:{backgroundColor:c.a.theme.backgroundsecondary,color:c.a.theme.secondary,margin:"3px",opacity:1,width:"fit-content","&.Mui-disabled":{opacity:.5}}},defaultProps:{TabIndicatorProps:{style:{display:"none"}}}},MuiAlert:{styleOverrides:{root:{backgroundColor:c.a.theme.black,borderRadius:0,border:"1px solid "+c.a.theme.well},standardSuccess:{color:c.a.theme.successlight},standardError:{color:c.a.theme.errorlight},standardWarning:{color:c.a.theme.warninglight},standardInfo:{color:c.a.theme.infolight}}}}}),document.body.style.backgroundColor=null!==(e=null===(t=u.colors.backgroundprimary)||void 0===t?void 0:t.toString())&&void 0!==e?e:"black"}m();const h=({children:e})=>r.a.createElement(o.a,{injectFirst:!0},r.a.createElement(s.a,{theme:u},e))},,function(e,t,n){"use strict";let a,r;n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return r})),function(e){e[e.Cost=0]="Cost",e[e.Default=1]="Default",e[e.Reputation=2]="Reputation",e[e.Purchasable=3]="Purchasable"}(a||(a={})),function(e){e[e.Alphabetically=0]="Alphabetically",e[e.AcquirementTime=1]="AcquirementTime"}(r||(r={}))},,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var a=n(445),r=n(156),i=n(784),o=n(15),s=n(613);const l={};function c(e){if(!e.name)throw new Error("Invalid constructor parameters for Location. No 'name' property");return l[e.name]instanceof i.a&&console.warn(`Property with name ${e.name} already exists and is being overwritten`),l[e.name]=new i.a(e),l[e.name]}r.a[o.a.Aevum]=new a.a(o.a.Aevum),r.a[o.a.Chongqing]=new a.a(o.a.Chongqing),r.a[o.a.Ishima]=new a.a(o.a.Ishima),r.a[o.a.NewTokyo]=new a.a(o.a.NewTokyo),r.a[o.a.Sector12]=new a.a(o.a.Sector12),r.a[o.a.Volhaven]=new a.a(o.a.Volhaven),r.a[o.a.Aevum].asciiArt="\n [aevum police headquarters] 26 \n o \n I \\ [bachman & associates] \n \\ 56 B \n x \\ [summit university] \n \\ \\ 28 \n \\ [snap fitness gym] x o--L-----------N \n K \\ / \n \\ \\ Q [casino] \n x 58 \\ / [travel agency] \n \\ 94 95 o \n 90 x 59 o------o | \n \\ / \\ | 98 102 103 \n o--------O------x----o 93 96 o-----+------------o o----o \n \\ | \\ / \n [hospital] \\ 61 [ecorp] x 31 99 o-F-o 101 \n o | \n | o---E-- | [fulcrum tech.] \n x 62 / A [aerocorp] \n [crush fitness gym] | / | \n | / | \n o--------D------+--o o \n | |\\ [rho construction] \n H [netlink tech.] | J \n | | \\ \n | 34 x \\ \n [clarke inc.] C | \\ [world stock exchange] \n | | \\ \n | | o-M-------R--------o \n[galactic cybersystems] G 35 x \n | [watchdog security] \n | \n 67 o \n \n [the slums] P ",r.a[o.a.Chongqing].asciiArt="\n | \n 75 o \n \\ \n o 76 \n 7 | | \n | + 77 \n [world stock exchange] F | \n \\ o 78 [kuaigong international] \n \\ / \n 38 o----x--x------x------A------G-- \n / 39 | 41 [church] \n 37 o + 79 o--x--x-C-0 \n / | / \n / x-----+-----x-----0 [hospital] \n[solaris space system] B | \n | + 80 \n | | \n 34 o E [travel agency] \n | \n | \n x 82 \n [the slums] D ",r.a[o.a.Ishima].asciiArt="\n o 59 \n o o | \n [storm tech.] | | G [world stock exchange] \n | | 28 | \n 23 o--C------o--------+----x----o | \n / / 25 | 27 \\ x 57 \n / / | \\ | \n / / | \\ | \n o 22 o | \\| 29/56 \n | | o \n | [hospital] D / \\ 3 2 1 \n o | / \\ o-------x------o \n / o / \\ / \n 48 o / 55 x \\ / \n \\ / / x [glitch] \n \\ / [nova medical] / 4/30 \\ \n 49 x A \\ H \n / \\ / \\ \n / \\ [travel agency] F o 31 \n / \\ 51 / \n / o----B------x-----o \n o 50 52 \n [omega soft.] \n [the slums] E ",r.a[o.a.NewTokyo].asciiArt="\n \n \n o \n \\ \n [arcade] E [defcomm] \n \\ \n o--x---A--x--o [travel agency] \n 7 8 10 H \n [vitalife] o 12 [global pharmaceuticals] \n | \n o--D-x----x-------x-C-+--------x--x-B-x---x-o \n 21 22 23 \\ 24 25 26 27 \n \\ \n [noodle bar] x 14 \n \\ \n \\ \n [hospital] o 15 [world stock exchange] \n | \n o--x--F--x-----x-----x---+---x----x--I--x-o \n | \n | \n o 17 \n \n \n \n G [the slums] \n ",r.a[o.a.Sector12].asciiArt="\n 78 o 97 \n o [icarus microsystems] / \n N [powerhouse gym] o I \n 1 | | / \n o-----+---x----o 4 A [alpha ent.] o-------o / \n | 3 \\ | \\ / \n | \\ | [iron gym] x 95 \n (79) x \\ | / \\ \n | o-E----+----x----J--o 10 / o----T--o \n | | 8 \\ 94 x \n 80 x [city hall] | x 11 / [world stock exchange]\n | | \\ / \n | C [cia] \\ / \n Q [hospital] | F P [universal energy] \n | o [deltaone] \\ / \n | 35 o---------x 13/92/36 \n L [megacorp] 33 / / \\ \n | o------------o 34 / \\ \n (29) | / [carmichael sec.] D \\ \n o-----+-----x------o / O [rothman university] \n | 31 32 [nsa] M \n | / \n B [blade industries] H \n | / [four sigma] \n | [joe's guns] / \n | / \n 85 o--G--------K--------S-------o 88 [the slums] R \n \n [foodnstuff] [travel agency] ",r.a[o.a.Volhaven].asciiArt="\n [omnia cybersystems] \n 17 66 68 \n o o------G-------o \n \\ / \\ \n \\ o 65 o 69 \n [syscore sec.] H | | \n \\ | | [millenium fitness gym] \n \\ | 21 22 23 24 | 26 \n o----+--x--x----x---x---+-----x-------D-----o \n 19 | | 28 \n | F [omnitek inc.] \n [hospital] J 63 o \n | / 72 \n 3 | 5 6 / 9 \n o--------+----x-----x----+----------M-------o \n / | | \n / 61 x [helios labs] B [world stock exchange] \n [travel agency] L | | \n / | o \n / E [nwo] / 75 \n / [computek] | / \n / A-------o------I-----o \n 1 o | | \n | [zb] o 77 \n [lexocorp] C \n | \n o \n 57 \n \n \n [the slums] K ";for(const e of s.a){const t=c(e),n=t.city;if(null===n)for(const e of Object.keys(r.a))r.a[e].addLocation(t.name);else r.a[n].addLocation(t.name)}},function(e,t,n){"use strict";n.d(t,"c",(function(){return L})),n.d(t,"b",(function(){return O})),n.d(t,"a",(function(){return M})),n.d(t,"d",(function(){return A})),n.d(t,"e",(function(){return N}));var a=n(0),r=n.n(a),i=n(126),o=n(144),s=n(1),l=n(18),c=n(8),f=n(43),u=n(463),m=n.n(u),h=n(1044),d=n(118),p=n(142),g=n(609),y=n.n(g),b=n(202),E=n(201),v=n(27),k=n(239),w=n(2),_=n(113),S=n(5),C=n(608);let x=0;const L=new i.a,O=new i.a,M=new i.a;let T=[];function A(){const e=Object(a.useState)(!0)[1];function t(){e(e=>!e)}return Object(a.useEffect)(()=>L.subscribe(e=>{const n=e.server+"-"+e.filename+e.args.map(e=>""+e).join("-");T.find(e=>e.id===n)||(T.push({id:n,script:e}),t())}),[]),Object(a.useEffect)(()=>O.subscribe(e=>{!function(e){T=T.filter(t=>t.script.pid!=e),t()}(e)}),[]),Object(a.useEffect)(()=>M.subscribe(()=>{T=[],t()})),r.a.createElement(r.a.Fragment,null,T.map(e=>r.a.createElement(P,{key:e.id,script:e.script,id:e.id,onClose:()=>{return n=e.id,T=T.filter(e=>e.id!==n),void t();var n}})))}const R=Object(d.a)(e=>Object(p.a)({logs:{overflowY:"scroll",overflowX:"hidden",scrollbarWidth:"auto",flexDirection:"column-reverse",whiteSpace:"pre-wrap",wordWrap:"break-word"},titleButton:{padding:"1px 0",height:"100%"}})),N=1500;function P(e){const t=Object(a.useRef)(null),n=Object(a.useRef)(null),[i,u]=Object(a.useState)(e.script),d=R(),p=Object(a.useRef)(null),g=Object(a.useState)(!1)[1],[L,O]=Object(a.useState)(!1);function M(){g(e=>!e)}function T(){Object(o.a)(i,i.server,!0)}function A(){const e=Object(v.d)(i.server);if(null===e)return;const t=Object(k.a)(i.filename,i.args,e);null===t?Object(E.e)(w.a,i,e):u(t)}function P(){const e=p.current;null!==e&&(e.style.zIndex=N+x+"",x++,M())}function I(e=!1){const t=`${i.filename} ${i.args.map(e=>""+e).join(" ")}`;return e||t.length<=30?t:t.slice(0,27)+"..."}function F(){O(!L)}Object(a.useEffect)(()=>{P();const e=setInterval(M,1e3);return()=>clearInterval(e)},[]),Object(a.useEffect)(()=>(window.addEventListener("resize",D),()=>{window.removeEventListener("resize",D)}),[]);const D=Object(_.debounce)(()=>{const e=null==t?void 0:t.current;e&&(j(e)||B())},100),j=e=>{const t=e.getBoundingClientRect();return!(t.right<0||t.bottom<0||t.left>innerWidth||t.top>outerWidth)},B=()=>{const e=null==n?void 0:n.current;if(!e)return;const t=e.state;t.x=0,t.y=0,e.setState(t)},G=[250,33];return r.a.createElement(m.a,{handle:".drag",onDrag:e=>{if(e.clientX<0||e.clientY<0||e.clientX>innerWidth||e.clientY>innerHeight)return!1},ref:n,onMouseDown:P},r.a.createElement(l.a,{display:"flex",sx:{flexFlow:"column",position:"fixed",left:"40%",top:"30%",zIndex:1400,minWidth:G[0]+"px",minHeight:G[1]+"px",...L?{border:"none",margin:0,maxHeight:0,padding:0}:{border:"1px solid "+S.a.theme.welllight}},ref:p},r.a.createElement(h.ResizableBox,{height:500,width:500,minConstraints:G,handle:r.a.createElement("span",{style:{position:"absolute",right:"-10px",bottom:"-16px",cursor:"nw-resize",display:L?"none":"inline-block"}},r.a.createElement(y.a,{color:"primary",style:{transform:"rotate(45deg)",fontSize:"1.75rem"}}))},r.a.createElement(r.a.Fragment,null,r.a.createElement(f.a,{className:"drag",sx:{display:"flex",alignItems:"center",cursor:"grab"},ref:t},r.a.createElement(s.a,{variant:"h6",sx:{marginRight:"auto",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},title:I(!0)},I(!0)),r.a.createElement("span",{style:{minWidth:"fit-content",height:G[1]+"px"}},b.a.has(i.pid)?r.a.createElement(c.a,{className:d.titleButton,onClick:T,onTouchEnd:T},"Kill"):r.a.createElement(c.a,{className:d.titleButton,onClick:A,onTouchEnd:A},"Run"),r.a.createElement(c.a,{className:d.titleButton,onClick:F,onTouchEnd:F},L?"🗖":"🗕"),r.a.createElement(c.a,{className:d.titleButton,onClick:e.onClose,onTouchEnd:e.onClose},"Close"))),r.a.createElement(f.a,{className:d.logs,sx:{height:`calc(100% - ${G[1]}px)`,display:L?"none":"flex"}},r.a.createElement("span",{style:{display:"flex",flexDirection:"column"}},i.logs.map((e,t)=>{return r.a.createElement(r.a.Fragment,{key:t},r.a.createElement(C.a,{text:e,color:(n=e,n.match(/(^\[[^\]]+\] )?ERROR/)||n.match(/(^\[[^\]]+\] )?FAIL/)?"error":n.match(/(^\[[^\]]+\] )?SUCCESS/)?"success":n.match(/(^\[[^\]]+\] )?WARN/)?"warn":n.match(/(^\[[^\]]+\] )?INFO/)?"info":"primary")}),r.a.createElement("br",null));var n})))))))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));const a={Water:.05,Energy:.01,Food:.03,Plants:.05,Metal:.1,Hardware:.06,Chemicals:.05,Drugs:.02,Robots:.5,AICores:.1,RealEstate:.005,"Real Estate":.005,"AI Cores":.1}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));class a{constructor(e){var t,n,a;a="",(n="errorMessage")in(t=this)?Object.defineProperty(t,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[n]=a,this.pid=e.pid,this.name=e.name,this.hostname=e.hostname,this.errorMessage=e.errorMessage,Object.freeze(this)}}Object.freeze(a),Object.freeze(a.prototype)},function(e,t,n){"use strict";function a(e,t=1){return Math.max(Math.floor(t*(32*Math.log(e+534.5)-200)),1)}function r(e,t=1){return Math.exp((e/t+200)/32)-534.6}function i(e,t=1){const n=a(e,t),i=n+1;let o=r(n,t);o<0&&(o=0);let s=r(i,t);s<0&&(s=0);let l=s-o!=0?100*(e-o)/(s-o):99.99;l<0&&(l=0),l>100&&(l=100);let c=e-o,f=s-e;return c<0&&(c=0),f<0&&(f=0),{currentSkill:n,nextSkill:i,baseExperience:o,experience:e,nextExperience:s,currentExperience:c,remainingExperience:f,progress:l}}n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return r})),n.d(t,"c",(function(){return i}))},,function(e,t,n){"use strict";let a;n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return r})),function(e){e.Weapon="w",e.Armor="a",e.Vehicle="v",e.Rootkit="r",e.Augmentation="g"}(a||(a={}));const r=[{cost:1e6,mults:{str:1.04,def:1.04},name:"Baseball Bat",upgType:a.Weapon},{cost:12e6,mults:{str:1.08,def:1.08,dex:1.08},name:"Katana",upgType:a.Weapon},{cost:25e6,mults:{str:1.1,def:1.1,dex:1.1,agi:1.1},name:"Glock 18C",upgType:a.Weapon},{cost:5e7,mults:{str:1.12,def:1.1,agi:1.1},name:"P90C",upgType:a.Weapon},{cost:6e7,mults:{str:1.2,def:1.15},name:"Steyr AUG",upgType:a.Weapon},{cost:1e8,mults:{str:1.25,def:1.2},name:"AK-47",upgType:a.Weapon},{cost:15e7,mults:{str:1.3,def:1.25},name:"M15A10 Assault Rifle",upgType:a.Weapon},{cost:225e6,mults:{str:1.3,dex:1.25,agi:1.3},name:"AWM Sniper Rifle",upgType:a.Weapon},{cost:2e6,mults:{def:1.04},name:"Bulletproof Vest",upgType:a.Armor},{cost:5e6,mults:{def:1.08},name:"Full Body Armor",upgType:a.Armor},{cost:25e6,mults:{def:1.15,agi:1.15},name:"Liquid Body Armor",upgType:a.Armor},{cost:4e7,mults:{def:1.2},name:"Graphene Plating Armor",upgType:a.Armor},{cost:3e6,mults:{agi:1.04,cha:1.04},name:"Ford Flex V20",upgType:a.Vehicle},{cost:9e6,mults:{agi:1.08,cha:1.08},name:"ATX1070 Superbike",upgType:a.Vehicle},{cost:18e6,mults:{agi:1.12,cha:1.12},name:"Mercedes-Benz S9001",upgType:a.Vehicle},{cost:3e7,mults:{agi:1.16,cha:1.16},name:"White Ferrari",upgType:a.Vehicle},{cost:5e6,mults:{hack:1.05},name:"NUKE Rootkit",upgType:a.Rootkit},{cost:25e6,mults:{hack:1.1},name:"Soulstealer Rootkit",upgType:a.Rootkit},{cost:75e6,mults:{hack:1.15},name:"Demon Rootkit",upgType:a.Rootkit},{cost:4e7,mults:{hack:1.12},name:"Hmap Node",upgType:a.Rootkit},{cost:75e6,mults:{hack:1.15},name:"Jack the Ripper",upgType:a.Rootkit},{cost:1e10,mults:{str:1.3,dex:1.3},name:"Bionic Arms",upgType:a.Augmentation},{cost:1e10,mults:{agi:1.6},name:"Bionic Legs",upgType:a.Augmentation},{cost:15e9,mults:{str:1.15,def:1.15,dex:1.15,agi:1.15},name:"Bionic Spine",upgType:a.Augmentation},{cost:2e10,mults:{str:1.4,def:1.4},name:"BrachiBlades",upgType:a.Augmentation},{cost:12e9,mults:{str:1.2,def:1.2},name:"Nanofiber Weave",upgType:a.Augmentation},{cost:25e9,mults:{str:1.5,agi:1.5},name:"Synthetic Heart",upgType:a.Augmentation},{cost:15e9,mults:{str:1.3,def:1.3},name:"Synfibril Muscle",upgType:a.Augmentation},{cost:5e9,mults:{hack:1.05},name:"BitWire",upgType:a.Augmentation},{cost:1e10,mults:{hack:1.15},name:"Neuralstimulator",upgType:a.Augmentation},{cost:75e8,mults:{hack:1.1},name:"DataJack",upgType:a.Augmentation},{cost:5e10,mults:{str:1.7,def:1.7},name:"Graphene Bone Lacings",upgType:a.Augmentation}]},,function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var a=n(385),r=n(354),i=n(22);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class s{constructor(e=""){o(this,"alreadyInvited",!1),o(this,"augmentations",[]),o(this,"favor",0),o(this,"isBanned",!1),o(this,"isMember",!1),o(this,"name",""),o(this,"playerReputation",0),this.name=e}getInfo(){const e=a.a[this.name];if(null==e)throw new Error(`Missing faction from FactionInfos: ${this.name} this probably means the faction got corrupted somehow`);return e}gainFavor(){null==this.favor&&(this.favor=0),this.favor+=this.getFavorGain()}getFavorGain(){null==this.favor&&(this.favor=0);const e=Math.max(0,Object(r.a)(this.favor))+this.playerReputation;return Object(r.b)(e)-this.favor}toJSON(){return Object(i.b)("Faction",this)}static fromJSON(e){return Object(i.a)(s,e.data)}}i.c.constructors.Faction=s},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var a=n(4);const r={GangRespectToReputationRatio:75,MaximumGangMembers:12,CyclesPerTerritoryAndPowerUpdate:100,AscensionMultiplierRatio:.15,Names:[a.a.SlumSnakes,a.a.Tetrads,a.a.TheSyndicate,a.a.TheDarkArmy,a.a.SpeakersForTheDead,a.a.NiteSec,a.a.TheBlackHand],GangKarmaRequirement:-54e3}},,,,,,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return A})),n.d(t,"c",(function(){return R})),n.d(t,"e",(function(){return P})),n.d(t,"f",(function(){return F})),n.d(t,"b",(function(){return D})),n.d(t,"d",(function(){return j}));var a=n(144),r=n(184),i=n(432),o=n(202),s=n(302),l=n(537),c=n(12),f=n(605),u=n(111),m=n(538),h=n(655),d=n(1427),p=n(376),g=n(663),y=n(239),b=n(27),E=n(5),v=n(696),k=n(14),w=n(261),_=n(536),S=n(148),C=n(433),x=n(260),L=n(309),O=n(83),M=n(2),T=n(84);const A=[];for(let e=0;e<c.a.NumNetscriptPorts;++e)A.push(Object(d.a)());function R(){for(const e of o.a.values())e.env.stopFlag=!0,Object(a.a)(e);for(const e of A)e.clear();s.a.emit(),o.a.clear()}function N(e){const t=e.code;let n,i;e.running=!0;try{const a=function(e,t){const n=Object(x.a)(e,{ecmaVersion:9,allowReserved:!0,sourceType:"module"}),a=t.getServer();if(null==a)throw new Error("Failed to find underlying Server object for script");let r="",i=!1;if(Object(L.b)(n,{ImportDeclaration:e=>{i=!0;let t=e.source.value;t.startsWith("./")&&(t=t.slice(2));const n=function(e){for(let t=0;t<a.scripts.length;++t)if(a.scripts[t].filename===e)return a.scripts[t];return null}(t);if(null==n)throw new Error("'Import' failed due to invalid script: "+t);const o=Object(x.a)(n.code,{ecmaVersion:9,allowReserved:!0,sourceType:"module"});if(1===e.specifiers.length&&"ImportNamespaceSpecifier"===e.specifiers[0].type){const t=e.specifiers[0].local.name,n=[],a=[];Object(L.b)(o,{FunctionDeclaration:e=>{n.push(e.id.name),a.push(e)}}),r+=`var ${t};\n(function (namespace) {\n`,a.forEach(e=>{r+=Object(v.generate)(e),r+="\n"}),n.forEach(e=>{r+="namespace."+e+" = "+e,r+="\n"}),r+=`})(${t} || (" + namespace + " = {}));\n`}else{const t=[];e.specifiers.forEach(e=>{t.push(e.local.name)});const n=[];Object(L.b)(o,{FunctionDeclaration:e=>{t.includes(e.id.name)&&n.push(e)}}),n.forEach(e=>{r+=Object(v.generate)(e),r+="\n"})}}}),!i)return{code:e,lineOffset:0};let o=0;if("Program"!==n.type||null==n.body)throw new Error("Code could not be properly parsed");for(let e=n.body.length-1;e>=0;--e)"ImportDeclaration"===n.body[e].type&&(n.body.splice(e,1),++o);const s=(r.match(/\n/g)||[]).length-o;e=Object(v.generate)(n);return{code:e=r+e,lineOffset:s}}(t,e);n=a.code,i=a.lineOffset}catch(t){return Object(k.a)("Error processing Imports in "+e.name+":<br>"+t),e.env.stopFlag=!0,e.running=!1,Object(a.a)(e),Promise.resolve()}const o=function(t,n){const i=Object(m.a)(e);for(const o of Object.keys(i)){const s=i[o];if("function"==typeof s)if(["hack","grow","weaken","sleep","prompt","manualHack","scp","write","share","wget"].includes(o)){const i=function(...n){const i=[];for(let e=0;e<n.length-1;++e)"object"==typeof n[e]||n[e].constructor===Array?i.push(t.pseudoToNative(n[e])):i.push(n[e]);const o=n[n.length-1];s(...i).then((function(e){o(e)})).catch((function(t){if(!(t instanceof r.a)){console.error(t);const n=t.split("|DELIMITER|"),r=n[1],i=n[2],o=n[3];let s=`${i}@${r}<br>`;return s+="<br>",s+=o,Object(k.a)(s),e.env.stopFlag=!0,e.running=!1,Object(a.a)(e),Promise.resolve()}}))};t.setProperty(n,o,t.createAsyncFunction(i))}else if("sprintf"===o||"vsprintf"===o||"scp"===o||"write"==o||"tryWrite"===o||"run"===o||"exec"===o){const e=function(...e){const n=[];for(let a=0;a<e.length;++a)"object"==typeof e[a]||e[a].constructor===Array?n.push(t.pseudoToNative(e[a])):n.push(e[a]);return s(...n)};t.setProperty(n,o,t.createNativeFunction(e))}else{const e=function(...e){const n=s(...e);return null==n?n:n.constructor===Array||n===Object(n)?t.nativeToPseudo(n):n};t.setProperty(n,o,t.createNativeFunction(e))}else t.setProperty(n,o,t.nativeToPseudo(s))}t.setProperty(n,"args",t.nativeToPseudo(e.args))};let s;try{s=new f.a(n,o,i)}catch(t){return Object(k.a)("Syntax ERROR in "+e.name+":<br>"+t),e.env.stopFlag=!0,e.running=!1,Object(a.a)(e),Promise.resolve()}return new Promise((function(t,n){try{!function a(){try{if(e.env.stopFlag)return n(new r.a(e));let i=!0,o=0;for(;o<3&&i;)i=i&&s.step(),o++;i?setTimeout(a,E.a.CodeInstructionRunTime):t()}catch(t){return t=t.toString(),Object(u.a)(t)||(t=Object(u.b)(e,t)),e.errorMessage=t,n(new r.a(e))}}()}catch(t){return Object(S.a)(t)?(e.errorMessage=t,n(new r.a(e))):t instanceof r.a?n(t):(console.error(t),n(new r.a(e)))}}))}function P(e,t,n,a){return I(e,t,n,a)?(n.runScript(t),t.pid):0}function I(e,t,n,c){let f=1;t.threads&&!isNaN(t.threads)?f=t.threads:t.threads=1;const d=Object(g.a)(t),p=Object(_.a)(d*f);if(p>n.maxRam-n.ramUsed+.001)return Object(k.a)(`Not enough RAM to run script ${t.filename} with args `+Object(w.a)(t.args)+". This likely occurred because you re-loaded the game and the script's RAM usage increased (either because of an update to the game or your changes to the script.)"),!1;n.updateRamUsed(Object(_.a)(n.ramUsed+p),M.a);const y=Object(l.a)();if(-1===y)throw new Error("Failed to start script because could not find available PID. This is most because you have too many scripts running.");const b=new i.a(t,y,m.a);b.ramUsage=d,o.a.set(y,b),s.a.emit();let E=null;if(b.name.endsWith(".js")||b.name.endsWith(".ns"))E=function(e,t){t.running=!0;let n=null;function a(e,a){return function(...i){if(t.env.stopFlag)throw new r.a(t);if("asleep"===e)return a(...i);if(n)throw t.errorMessage=Object(u.b)(t,Object(C.sprintf)("Concurrent calls to Netscript functions are not allowed! Did you forget to await hack(), grow(), or some other promise-returning function? (Currently running: %s tried to run: %s)",n,e)),new r.a(t);let o;n=e;try{o=a(...i)}catch(e){throw n=null,e}return o&&void 0!==o.finally?o.finally((function(){n=null})):(n=null,o)}}return function e(t,...n){for(const r of Object.keys(t))switch(typeof t[r]){case"function":t[r]=a([...n,r].join("."),t[r]);break;case"object":if(Array.isArray(t[r]))continue;e(t[r],...n,r)}}(t.env.vars),new Promise((n,a)=>{Object(h.b)(e,t.getServer().scripts,t).then(()=>{n()}).catch(e=>a(e))}).catch(e=>{if(e instanceof Error)throw e instanceof SyntaxError?t.errorMessage=Object(u.b)(t,e.message+" (sorry we can't be more helpful)"):t.errorMessage=Object(u.b)(t,e.message+(e.stack&&"\nstack:\n"+e.stack.toString()||"")),new r.a(t);if(Object(u.a)(e))throw t.errorMessage=e,new r.a(t);if(e instanceof r.a)throw e;throw t.errorMessage=Object(u.b)(t,""+e),new r.a(t)})}(e,b);else if(E=N(b),!(E instanceof Promise))return!1;return E.then((function(){b.running=!1,b.env.stopFlag=!0,void 0!==c&&c.running&&(c.scriptRef.onlineExpGained+=t.onlineExpGained,c.scriptRef.onlineMoneyMade+=t.onlineMoneyMade),Object(a.a)(b),b.log("",()=>"Script finished running")})).catch((function(e){if(e instanceof Error)return Object(k.a)("Script runtime unknown error. This is a bug please contact game developer"),void console.error("Evaluating workerscript returns an Error. THIS SHOULDN'T HAPPEN: "+e.toString());if(e instanceof r.a){if(!Object(u.a)(b.errorMessage))return void b.log("",()=>"Script killed");{const e=b.errorMessage.split("|DELIMITER|");if(4!=e.length)return console.error("ERROR: Something wrong with Error text in evaluator..."),void console.error("Error text: "+b.errorMessage);const t=e[1],n=e[2],a=e[3];let r=`RUNTIME ERROR<br>${n}@${t} (PID - ${b.pid})<br>`;b.args.length>0&&(r+=`Args: ${Object(w.a)(b.args)}<br>`),r+="<br>",r+=a,Object(k.a)(r),b.log("",()=>"Script crashed with runtime error")}}else{if(Object(u.a)(e))return Object(k.a)("Script runtime unknown error. This is a bug please contact game developer"),void console.error("ERROR: Evaluating workerscript returns only error message rather than WorkerScript object. THIS SHOULDN'T HAPPEN: "+e.toString());Object(k.a)("An unknown script died for an unknown reason. This is a bug please contact game dev"),console.error(e)}Object(a.a)(b)})),!0}function F(e=1){const t=e*c.a._idleSpeed/1e3;for(const e of o.a.values())e.scriptRef.onlineRunningTime+=t}function D(e){const t=-1!==window.location.href.toLowerCase().indexOf("?noscripts");t&&(T.a.warn("Skipped loading player scripts during startup"),console.info("Skipping the load of any scripts during startup"));for(const n of Object(b.c)()){n.ramUsed=0;for(let e=0;e<n.scripts.length;++e)n.scripts[e].markUpdated();if(t)n.runningScripts.length=0;else for(let t=0;t<n.runningScripts.length;++t){const a=n.runningScripts[t].filename;I(e,n.runningScripts[t],n),n.runningScripts[t]?Object(y.c)(n.runningScripts[t]):console.error(`createAndAddWorkerScript removed ${a} from ${n}`)}}}function j(e,t,n,a,r,o,s=1){if(!(o instanceof i.a))return 0;if("string"!=typeof a||!Array.isArray(r))return o.log(t,()=>`Invalid arguments: scriptname='${a} args='${r}'`),console.error("runScriptFromScript() failed due to invalid arguments"),0;r.forEach((e,t)=>{if("string"!=typeof e&&"number"!=typeof e&&"boolean"!=typeof e)throw new Error(`Only strings, numbers, and booleans can be passed as arguments to other scripts.\n${a} argument index ${t} is of type ${typeof e} and value ${JSON.stringify(e)}`)});if(null!=n.getRunningScript(a,r))return o.log(t,()=>`'${a}' is already running on '${n.hostname}'`),0;for(let e=0;e<r.length;++e)if(null==r[e])return o.log(t,()=>"Cannot execute a script with null/undefined as an argument"),0;for(let i=0;i<n.scripts.length;++i){if(!Object(O.a)(n.scripts[i].filename,a))continue;const l=n.scripts[i];let c=l.ramUsage;if(0===(s=Math.floor(Number(s))))return 0;c*=s;const f=n.maxRam-n.ramUsed;if(0==n.hasAdminRights)return o.log(t,()=>`You do not have root access on '${n.hostname}'`),0;if(c>f+.001)return o.log(t,()=>`Cannot run script '${a}' (t=${s}) on '${n.hostname}' because there is not enough available RAM!`),0;o.log(t,()=>`'${a}' on '${n.hostname}' with ${s} threads and args: ${Object(w.a)(r)}.`);const u=new p.a(l,r);return u.threads=s,u.server=n.hostname,P(e,u,n,o)}return o.log(t,()=>`Could not find script '${a}' on '${n.hostname}'`),0}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));const a=new Map},function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var a=n(0),r=n.n(a),i=n(77),o=n(151),s=n(150),l=n(48),c=n(1);function f({rows:e,title:t,wide:n}){const a=n?s.a:i.a;return r.a.createElement(r.a.Fragment,null,t&&r.a.createElement(c.a,null,t),r.a.createElement(a,{size:"small",padding:"none"},r.a.createElement(o.a,null,e.map((e,t)=>r.a.createElement(l.a,{key:t},e.map((e,t)=>r.a.createElement(i.b,{key:t,align:0!==t?"right":"left"},r.a.createElement(c.a,{noWrap:!0},e))))))))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var a=n(22);function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class i{constructor(e={}){r(this,"name","InitName"),r(this,"qty",0),r(this,"qlt",0),r(this,"dmd",0),r(this,"dmdR",[0,0]),r(this,"cmp",0),r(this,"cmpR",[0,0]),r(this,"mv",0),r(this,"mku",0),r(this,"buy",0),r(this,"sll",0),r(this,"prd",0),r(this,"imp",0),r(this,"exp",[]),r(this,"totalExp",0),r(this,"bCost",0),r(this,"sCost",0),r(this,"prdman",[!1,0]),r(this,"sllman",[!1,0]),r(this,"marketTa1",!1),r(this,"marketTa2",!1),r(this,"marketTa2Price",0),r(this,"maxsll",0),e.name&&(this.name=e.name),this.init()}getMarkupLimit(){return this.qlt/this.mku}init(){switch(this.name){case"Water":this.dmd=75,this.dmdR=[65,85],this.cmp=50,this.cmpR=[40,60],this.bCost=1500,this.mv=.2,this.mku=6;break;case"Energy":this.dmd=90,this.dmdR=[80,99],this.cmp=80,this.cmpR=[65,95],this.bCost=2e3,this.mv=.2,this.mku=6;break;case"Food":this.dmd=80,this.dmdR=[70,90],this.cmp=60,this.cmpR=[35,85],this.bCost=5e3,this.mv=1,this.mku=3;break;case"Plants":this.dmd=70,this.dmdR=[20,90],this.cmp=50,this.cmpR=[30,70],this.bCost=3e3,this.mv=.6,this.mku=3.75;break;case"Metal":this.dmd=80,this.dmdR=[75,85],this.cmp=70,this.cmpR=[60,80],this.bCost=2650,this.mv=1,this.mku=6;break;case"Hardware":this.dmd=85,this.dmdR=[80,90],this.cmp=80,this.cmpR=[65,95],this.bCost=8e3,this.mv=.5,this.mku=1;break;case"Chemicals":this.dmd=55,this.dmdR=[40,70],this.cmp=60,this.cmpR=[40,80],this.bCost=9e3,this.mv=1.2,this.mku=2;break;case"Real Estate":this.dmd=50,this.dmdR=[5,99],this.cmp=50,this.cmpR=[25,75],this.bCost=8e4,this.mv=1.5,this.mku=1.5;break;case"Drugs":this.dmd=60,this.dmdR=[45,75],this.cmp=70,this.cmpR=[40,99],this.bCost=4e4,this.mv=1.6,this.mku=1;break;case"Robots":this.dmd=90,this.dmdR=[80,99],this.cmp=90,this.cmpR=[80,99],this.bCost=75e3,this.mv=.5,this.mku=1;break;case"AI Cores":this.dmd=90,this.dmdR=[80,99],this.cmp=90,this.cmpR=[80,99],this.bCost=15e3,this.mv=.8,this.mku=.5;break;case"Scientific Research":case"InitName":break;default:console.error("Invalid material type in init(): "+this.name)}}processMarket(){const e=1+Math.random()*this.mv/300,t=1+Math.random()*this.mv/100;Math.random()<.5?(this.cmp*=t,this.cmp>this.cmpR[1]&&(this.cmp=this.cmpR[1]),this.bCost*=1/e):(this.cmp*=1/t,this.cmp<this.cmpR[0]&&(this.cmp=this.cmpR[0]),this.bCost*=e);const n=1+Math.random()*this.mv/100;Math.random()<.5?(this.dmd*=n,this.dmd>this.dmdR[1]&&(this.dmd=this.dmdR[1]),this.bCost*=e):(this.dmd*=1/n,this.dmd<this.dmdR[0]&&(this.dmd=this.dmdR[0]),this.bCost*=1/e)}toJSON(){return Object(a.b)("Material",this)}static fromJSON(e){return Object(a.a)(i,e.data)}}a.c.constructors.Material=i},function(e,t,n){"use strict";n.d(t,"f",(function(){return r})),n.d(t,"d",(function(){return i})),n.d(t,"e",(function(){return o})),n.d(t,"c",(function(){return s})),n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return c}));var a=n(21);function r(e){return e.respect/(e.respect+e.wantedLevel)}function i(e,t,n){if(0===n.baseRespect)return 0;let i=n.hackWeight/100*t.hack+n.strWeight/100*t.str+n.defWeight/100*t.def+n.dexWeight/100*t.dex+n.agiWeight/100*t.agi+n.chaWeight/100*t.cha;if(i-=4*n.difficulty,i<=0)return 0;const o=Math.max(.005,Math.pow(100*e.territory,n.territory.respect)/100),s=(.2*e.territory+.8)*a.a.GangSoftcap;if(isNaN(o)||o<=0)return 0;const l=r(e);return Math.pow(11*n.baseRespect*i*o*l,s)}function o(e,t,n){if(0===n.baseWanted)return 0;let a=n.hackWeight/100*t.hack+n.strWeight/100*t.str+n.defWeight/100*t.def+n.dexWeight/100*t.dex+n.agiWeight/100*t.agi+n.chaWeight/100*t.cha;if(a-=3.5*n.difficulty,a<=0)return 0;const r=Math.max(.005,Math.pow(100*e.territory,n.territory.wanted)/100);if(isNaN(r)||r<=0)return 0;if(n.baseWanted<0)return.4*n.baseWanted*a*r;const i=7*n.baseWanted/Math.pow(3*a*r,.8);return Math.min(100,i)}function s(e,t,n){if(0===n.baseMoney)return 0;let i=n.hackWeight/100*t.hack+n.strWeight/100*t.str+n.defWeight/100*t.def+n.dexWeight/100*t.dex+n.agiWeight/100*t.agi+n.chaWeight/100*t.cha;if(i-=3.2*n.difficulty,i<=0)return 0;const o=Math.max(.005,Math.pow(100*e.territory,n.territory.money)/100);if(isNaN(o)||o<=0)return 0;const s=r(e),l=(.2*e.territory+.8)*a.a.GangSoftcap;return Math.pow(5*n.baseMoney*i*o*s,l)}function l(e){return Math.max(e-1e3,0)}function c(e){return Math.max(Math.pow(e/2e3,.5),1)}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var a=n(43),r=n(0),i=n.n(r),o=n(11),s=n(28),l=n(424);function c(e){const t=s.b.Player(),[n,c]=Object(r.useState)(100),f=(t.hasAugmentation(o.a.WKSharmonizer,!0)?1.3:1)*e.millis;return Object(r.useEffect)(()=>{const t=setInterval(()=>{c(t=>(t<=0&&e.onExpire(),t-200/f*100))},200);return()=>{clearInterval(t)}},[]),e.noPaper?i.a.createElement(l.a,{variant:"determinate",value:n,color:"primary"}):i.a.createElement(a.a,{sx:{p:1,mb:1}},i.a.createElement(l.a,{variant:"determinate",value:n,color:"primary"}))}},,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return I}));var a=n(22),r=n(265),i=n(41),o=n(555),s=n(274),l=n(141),c=n(359),f=n(671),u=n(263),m=n(24),h=n(230),d=n(249),p=n(443),g=n(233),y=n(672),b=n(271),E=n(33),v=n(56),k=n(6),w=n(21),_=n(310),S=n(189),C=n(29),x=n(417),L=n(14),O=n(5),M=n(11),T=n(1033),A=n(105),R=n(4),N=n(25);function P(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class I{constructor(e){P(this,"numHosp",0),P(this,"moneyLost",0),P(this,"rank",0),P(this,"maxRank",0),P(this,"skillPoints",0),P(this,"totalSkillPoints",0),P(this,"teamSize",0),P(this,"sleeveSize",0),P(this,"teamLost",0),P(this,"hpLost",0),P(this,"storedCycles",0),P(this,"randomEventCounter",Object(E.a)(240,600)),P(this,"actionTimeToComplete",0),P(this,"actionTimeCurrent",0),P(this,"actionTimeOverflow",0),P(this,"action",new r.a({type:i.a.Idle})),P(this,"cities",{}),P(this,"city",v.a.CityNames[2]),P(this,"skills",{}),P(this,"skillMultipliers",{}),P(this,"staminaBonus",0),P(this,"maxStamina",0),P(this,"stamina",0),P(this,"contracts",{}),P(this,"operations",{}),P(this,"blackops",{}),P(this,"logging",{general:!0,contracts:!0,ops:!0,blackops:!0,events:!0}),P(this,"automateEnabled",!1),P(this,"automateActionHigh",new r.a({type:i.a.Idle})),P(this,"automateThreshHigh",0),P(this,"automateActionLow",new r.a({type:i.a.Idle})),P(this,"automateThreshLow",0),P(this,"consoleHistory",[]),P(this,"consoleLogs",["Bladeburner Console","Type 'help' to see console commands"]);for(let e=0;e<v.a.CityNames.length;++e)this.cities[v.a.CityNames[e]]=new p.a(v.a.CityNames[e]);this.updateSkillMultipliers(),e&&this.calculateMaxStamina(e),this.stamina=this.maxStamina,this.create()}getCurrentCity(){const e=this.cities[this.city];if(!(e instanceof p.a))throw new Error("Bladeburner.getCurrentCity() did not properly return a City object");return e}calculateStaminaPenalty(){return Math.min(1,this.stamina/(.5*this.maxStamina))}canAttemptBlackOp(e){if(null!=this.blackops[e.name])return{error:"Tried to start a Black Operation that had already been completed"};const t=this.getActionObject(e);if(!(t instanceof l.a))throw new Error("Action should be BlackOperation but isn't");if(null==t)throw new Error("Failed to get BlackOperation object for: "+e.name);if(t.reqdRank>this.rank)return{error:"Tried to start a Black Operation without the rank requirement"};const n=[];for(const e of Object.keys(s.a))s.a.hasOwnProperty(e)&&n.push(e);n.sort((function(e,t){return s.a[e].reqdRank-s.a[t].reqdRank}));const a=n.indexOf(e.name);return-1===a?{error:`Invalid Black Op: '${name}'`}:a>0&&null==this.blackops[n[a-1]]?{error:`Preceding Black Op must be completed before starting '${e.name}'.`}:{isAvailable:!0,action:t}}startAction(e,t){if(null!=t)switch(this.action=t,this.actionTimeCurrent=0,t.type){case i.a.Idle:this.actionTimeToComplete=0;break;case i.a.Contract:try{const n=this.getActionObject(t);if(null==n)throw new Error("Failed to get Contract Object for: "+t.name);if(n.count<1)return this.resetAction();this.actionTimeToComplete=n.getActionTime(this,e)}catch(e){Object(b.a)(e)}break;case i.a.Operation:try{const n=this.getActionObject(t);if(null==n)throw new Error("Failed to get Operation Object for: "+t.name);if(n.count<1)return this.resetAction();if("Raid"===t.name&&0===this.getCurrentCity().comms)return this.resetAction();this.actionTimeToComplete=n.getActionTime(this,e)}catch(e){Object(b.a)(e)}break;case i.a.BlackOp:case i.a.BlackOperation:try{const n=this.canAttemptBlackOp(t);if(!n.isAvailable){this.resetAction(),this.log("Error: "+n.error);break}if(void 0===n.action)throw new Error("action should not be null");this.actionTimeToComplete=n.action.getActionTime(this,e)}catch(e){Object(b.a)(e)}break;case i.a.Recruitment:this.actionTimeToComplete=this.getRecruitmentTime(e);break;case i.a.Training:case i.a.FieldAnalysis:case i.a["Field Analysis"]:this.actionTimeToComplete=30;break;case i.a.Diplomacy:case i.a["Hyperbolic Regeneration Chamber"]:case i.a["Incite Violence"]:this.actionTimeToComplete=60;break;default:throw new Error("Invalid Action Type in startAction(Bladeburner,player, ): "+t.type)}}upgradeSkill(e){const t=e.name;if(this.skills[t]?++this.skills[t]:this.skills[t]=1,isNaN(this.skills[t])||this.skills[t]<0)throw new Error("Level of Skill "+t+" is invalid: "+this.skills[t]);this.updateSkillMultipliers()}executeConsoleCommands(e,t){try{this.consoleHistory[this.consoleHistory.length-1]!=t&&(this.consoleHistory.push(t),this.consoleHistory.length>50&&this.consoleHistory.splice(0,1));const n=t.split(";");for(let t=0;t<n.length;++t)this.executeConsoleCommand(e,n[t])}catch(e){Object(b.a)(e)}}postToConsole(e,t=!0){t&&(this.consoleLogs.push(e),this.consoleLogs.length>100&&this.consoleLogs.shift())}log(e){this.postToConsole(`[${Object(T.a)()}] ${e}`)}resetAction(){this.action=new r.a({type:i.a.Idle}),this.actionTimeCurrent=0,this.actionTimeToComplete=0}clearConsole(){this.consoleLogs.length=0}prestige(){this.resetAction();const e=C.a[R.a.Bladeburners];this.rank>=v.a.RankNeededForFaction&&Object(A.d)(e)}storeCycles(e=0){this.storedCycles+=e}getActionIdFromTypeAndName(e="",t=""){if(""===e||""===t)return null;const n=new r.a,a=e.toLowerCase().trim(),o=t.toLowerCase().trim();switch(a){case"contract":case"contracts":case"contr":return n.type=i.a.Contract,this.contracts.hasOwnProperty(t)?(n.name=t,n):null;case"operation":case"operations":case"op":case"ops":return n.type=i.a.Operation,this.operations.hasOwnProperty(t)?(n.name=t,n):null;case"blackoperation":case"black operation":case"black operations":case"black op":case"black ops":case"blackop":case"blackops":return n.type=i.a.BlackOp,s.a.hasOwnProperty(t)?(n.name=t,n):null;case"general":case"general action":case"gen":break;default:return null}if(a.startsWith("gen")){switch(o){case"training":n.type=i.a.Training,n.name="Training";break;case"recruitment":case"recruit":n.type=i.a.Recruitment,n.name="Recruitment";break;case"field analysis":case"fieldanalysis":n.type=i.a["Field Analysis"],n.name="Field Analysis";break;case"diplomacy":n.type=i.a.Diplomacy,n.name="Diplomacy";break;case"hyperbolic regeneration chamber":n.type=i.a["Hyperbolic Regeneration Chamber"],n.name="Hyperbolic Regeneration Chamber";break;case"incite violence":n.type=i.a["Incite Violence"],n.name="Incite Violence";break;default:return null}return n}return null}executeStartConsoleCommand(e,t){if(3!==t.length)return this.postToConsole("Invalid usage of 'start' console command: start [type] [name]"),void this.postToConsole("Use 'help start' for more info");const n=t[2];switch(t[1].toLowerCase()){case"general":case"gen":null!=u.a[n]?(this.action.type=i.a[n],this.action.name=n,this.startAction(e,this.action)):this.postToConsole("Invalid action name specified: "+t[2]);break;case"contract":case"contracts":null!=this.contracts[n]?(this.action.type=i.a.Contract,this.action.name=n,this.startAction(e,this.action)):this.postToConsole("Invalid contract name specified: "+t[2]);break;case"ops":case"op":case"operations":case"operation":null!=this.operations[n]?(this.action.type=i.a.Operation,this.action.name=n,this.startAction(e,this.action)):this.postToConsole("Invalid Operation name specified: "+t[2]);break;case"blackops":case"blackop":case"black operations":case"black operation":null!=s.a[n]?(this.action.type=i.a.BlackOperation,this.action.name=n,this.startAction(e,this.action)):this.postToConsole("Invalid BlackOp name specified: "+t[2]);break;default:this.postToConsole("Invalid action/event type specified: "+t[1]),this.postToConsole("Examples of valid action/event identifiers are: [general, contract, op, blackop]")}}executeSkillConsoleCommand(e){switch(e.length){case 1:this.postToConsole("Invalid usage of 'skill' console command: skill [action] [name]"),this.postToConsole("Use 'help skill' for more info");break;case 2:if("list"===e[1].toLowerCase()){this.postToConsole("Skills: ");const e=Object.keys(h.a);for(let t=0;t<e.length;++t){const n=h.a[e[t]];let a=0;null!=this.skills[n.name]&&(a=this.skills[n.name]),this.postToConsole(n.name+": Level "+Object(m.f)(a,0))}this.postToConsole(" "),this.postToConsole("Effects: ");const t=Object.keys(this.skillMultipliers);for(let e=0;e<t.length;++e){const n=this.skillMultipliers[t[e]];if(n&&1!==n){const a=Object(m.f)(n,3);switch(t[e]){case"successChanceAll":this.postToConsole("Total Success Chance: x"+a);break;case"successChanceStealth":this.postToConsole("Stealth Success Chance: x"+a);break;case"successChanceKill":this.postToConsole("Retirement Success Chance: x"+a);break;case"successChanceContract":this.postToConsole("Contract Success Chance: x"+a);break;case"successChanceOperation":this.postToConsole("Operation Success Chance: x"+a);break;case"successChanceEstimate":this.postToConsole("Synthoid Data Estimate: x"+a);break;case"actionTime":this.postToConsole("Action Time: x"+a);break;case"effHack":this.postToConsole("Hacking Skill: x"+a);break;case"effStr":this.postToConsole("Strength: x"+a);break;case"effDef":this.postToConsole("Defense: x"+a);break;case"effDex":this.postToConsole("Dexterity: x"+a);break;case"effAgi":this.postToConsole("Agility: x"+a);break;case"effCha":this.postToConsole("Charisma: x"+a);break;case"effInt":this.postToConsole("Intelligence: x"+a);break;case"stamina":this.postToConsole("Stamina: x"+a);break;default:console.warn("Unrecognized SkillMult Key: "+t[e])}}}}else this.postToConsole("Invalid usage of 'skill' console command: skill [action] [name]"),this.postToConsole("Use 'help skill' for more info");break;case 3:{const t=e[2],n=h.a[t];if(null==n||!(n instanceof d.a)){this.postToConsole("Invalid skill name (Note that it is case-sensitive): "+t);break}if("list"===e[1].toLowerCase()){let e=0;void 0!==this.skills[n.name]&&(e=this.skills[n.name]),this.postToConsole(n.name+": Level "+Object(m.f)(e))}else if("level"===e[1].toLowerCase()){let e=0;this.skills[t]&&!isNaN(this.skills[t])&&(e=this.skills[t]);const a=n.calculateCost(e);0!==n.maxLvl&&e>=n.maxLvl?this.postToConsole(`This skill ${n.name} is already at max level (${e}/${n.maxLvl}).`):this.skillPoints>=a?(this.skillPoints-=a,this.upgradeSkill(n),this.log(n.name+" upgraded to Level "+this.skills[t])):this.postToConsole("You do not have enough Skill Points to upgrade this. You need "+Object(m.f)(a,0))}else this.postToConsole("Invalid usage of 'skill' console command: skill [action] [name]"),this.postToConsole("Use 'help skill' for more info");break}default:this.postToConsole("Invalid usage of 'skill' console command: skill [action] [name]"),this.postToConsole("Use 'help skill' for more info")}}executeLogConsoleCommand(e){if(e.length<3)return this.postToConsole("Invalid usage of log command: log [enable/disable] [action/event]"),void this.postToConsole("Use 'help log' for more details and examples");let t=!0;switch(e[1].toLowerCase().includes("d")&&(t=!1),e[2].toLowerCase()){case"general":case"gen":this.logging.general=t,this.log("Logging "+(t?"enabled":"disabled")+" for general actions");break;case"contract":case"contracts":this.logging.contracts=t,this.log("Logging "+(t?"enabled":"disabled")+" for Contracts");break;case"ops":case"op":case"operations":case"operation":this.logging.ops=t,this.log("Logging "+(t?"enabled":"disabled")+" for Operations");break;case"blackops":case"blackop":case"black operations":case"black operation":this.logging.blackops=t,this.log("Logging "+(t?"enabled":"disabled")+" for BlackOps");break;case"event":case"events":this.logging.events=t,this.log("Logging "+(t?"enabled":"disabled")+" for events");break;case"all":this.logging.general=t,this.logging.contracts=t,this.logging.ops=t,this.logging.blackops=t,this.logging.events=t,this.log("Logging "+(t?"enabled":"disabled")+" for everything");break;default:this.postToConsole("Invalid action/event type specified: "+e[2]),this.postToConsole("Examples of valid action/event identifiers are: [general, contracts, ops, blackops, events]")}}executeHelpConsoleCommand(e){if(1===e.length)for(const e of y.a.helpList)this.postToConsole(e);else for(let t=1;t<e.length;++t){if(!(e[t]in y.a))continue;const n=y.a[e[t]];for(const e of n)this.postToConsole(e)}}executeAutomateConsoleCommand(e){if(2===e.length||4===e.length)if(2!==e.length)if(4!==e.length);else{const t=e[1].toLowerCase(),n=e[2];let a=!1;switch(e[3].toLowerCase().includes("hi")&&(a=!0),t){case"general":case"gen":if(null!=u.a[n]){const e=new r.a({type:i.a[n],name:n});a?this.automateActionHigh=e:this.automateActionLow=e,this.log("Automate ("+(a?"HIGH":"LOW")+") action set to "+n)}else this.postToConsole("Invalid action name specified: "+n);break;case"contract":case"contracts":if(null!=this.contracts[n]){const e=new r.a({type:i.a.Contract,name:n});a?this.automateActionHigh=e:this.automateActionLow=e,this.log("Automate ("+(a?"HIGH":"LOW")+") action set to "+n)}else this.postToConsole("Invalid contract name specified: "+n);break;case"ops":case"op":case"operations":case"operation":if(null!=this.operations[n]){const e=new r.a({type:i.a.Operation,name:n});a?this.automateActionHigh=e:this.automateActionLow=e,this.log("Automate ("+(a?"HIGH":"LOW")+") action set to "+n)}else this.postToConsole("Invalid Operation name specified: "+n);break;case"stamina":isNaN(parseFloat(n))?this.postToConsole("Invalid value specified for stamina threshold (must be numeric): "+n):(a?this.automateThreshHigh=Number(n):this.automateThreshLow=Number(n),this.log("Automate ("+(a?"HIGH":"LOW")+") stamina threshold set to "+n))}}else{const t=e[1];if("status"===t.toLowerCase())this.postToConsole("Automation: "+(this.automateEnabled?"enabled":"disabled")),this.postToConsole("When your stamina drops to "+Object(m.f)(this.automateThreshLow,0)+", you will automatically switch to "+this.automateActionLow.name+". When your stamina recovers to "+Object(m.f)(this.automateThreshHigh,0)+", you will automatically switch to "+this.automateActionHigh.name+".");else if(t.toLowerCase().includes("en")){if(!(this.automateActionLow instanceof r.a&&this.automateActionHigh instanceof r.a))return this.log("Failed to enable automation. Actions were not set");this.automateEnabled=!0,this.log("Bladeburner automation enabled")}else t.toLowerCase().includes("d")?(this.automateEnabled=!1,this.log("Bladeburner automation disabled")):this.log("Invalid argument for 'automate' console command: "+e[1])}else this.postToConsole("Invalid use of 'automate' command: automate [var] [val] [hi/low]. Use 'help automate' for more info")}parseCommandArguments(e){const t=[];let n=0,a=0;for(;a<e.length;){const r=e.charAt(a);if('"'===r){const r=e.indexOf('"',a+1);if(-1!==r&&(r===e.length-1||e.charAt(r+1)===N.a.SPACE)){t.push(e.substr(a+1,r-a-1)),n=a=r===e.length-1?r+1:r+2;continue}}else if("'"===r){const r=e.indexOf("'",a+1);if(-1!==r&&(r===e.length-1||e.charAt(r+1)===N.a.SPACE)){t.push(e.substr(a+1,r-a-1)),n=a=r===e.length-1?r+1:r+2;continue}}else r===N.a.SPACE&&(t.push(e.substr(n,a-n)),n=a+1);++a}return n!==a&&t.push(e.substr(n,a-n)),t}executeConsoleCommand(e,t){t=(t=t.trim()).replace(/\s\s+/g," ");const n=this.parseCommandArguments(t);if(!(n.length<=0))switch(n[0].toLowerCase()){case"automate":this.executeAutomateConsoleCommand(n);break;case"clear":case"cls":this.clearConsole();break;case"help":this.executeHelpConsoleCommand(n);break;case"log":this.executeLogConsoleCommand(n);break;case"skill":this.executeSkillConsoleCommand(n);break;case"start":this.executeStartConsoleCommand(e,n);break;case"stop":this.resetAction();break;default:this.postToConsole("Invalid console command")}}triggerMigration(e){let t=v.a.CityNames[Object(E.a)(0,5)];for(;t===e;)t=v.a.CityNames[Object(E.a)(0,5)];const n=this.cities[t],a=this.cities[e];if(null==n||null==a)throw new Error("Failed to find City with name: "+t);const r=Math.random();let i=Object(E.a)(3,15)/100;r<.05&&a.comms>0&&(i*=Object(E.a)(2,4),--a.comms,++n.comms);const o=Math.round(a.pop*i);a.pop-=o,n.pop+=o}triggerPotentialMigration(e,t){(null==t||isNaN(t))&&console.error("Invalid 'chance' parameter passed into Bladeburner.triggerPotentialMigration()"),t>1&&(t/=100),Math.random()<t&&this.triggerMigration(e)}randomEvent(){const e=Math.random(),t=v.a.CityNames[Object(E.a)(0,5)],n=this.cities[t];if(!(n instanceof p.a))throw new Error("sourceCity was not a City object in Bladeburner.randomEvent()");let a=v.a.CityNames[Object(E.a)(0,5)];for(;a===t;)a=v.a.CityNames[Object(E.a)(0,5)];const r=this.cities[a];if(!(n instanceof p.a&&r instanceof p.a))throw new Error("sourceCity/destCity was not a City object in Bladeburner.randomEvent()");if(e<=.05){++n.comms;const e=Object(E.a)(10,20)/100,t=Math.round(n.pop*e);n.pop+=t,this.logging.events&&this.log("Intelligence indicates that a new Synthoid community was formed in a city")}else if(e<=.1)if(n.comms<=0){++n.comms;const e=Object(E.a)(10,20)/100,t=Math.round(n.pop*e);n.pop+=t,this.logging.events&&this.log("Intelligence indicates that a new Synthoid community was formed in a city")}else{--n.comms,++r.comms;const e=Object(E.a)(10,20)/100,a=Math.round(n.pop*e);n.pop-=a,r.pop+=a,this.logging.events&&this.log("Intelligence indicates that a Synthoid community migrated from "+t+" to some other city")}else if(e<=.3){const e=Object(E.a)(8,24)/100,a=Math.round(n.pop*e);n.pop+=a,this.logging.events&&this.log("Intelligence indicates that the Synthoid population of "+t+" just changed significantly")}else if(e<=.5)this.triggerMigration(t),this.logging.events&&this.log("Intelligence indicates that a large number of Synthoids migrated from "+t+" to some other city");else if(e<=.7)n.chaos+=1,n.chaos*=1+Object(E.a)(5,20)/100,this.logging.events&&this.log("Tensions between Synthoids and humans lead to riots in "+t+"! Chaos increased");else if(e<=.9){const e=Object(E.a)(8,20)/100,a=Math.round(n.pop*e);n.pop-=a,this.logging.events&&this.log("Intelligence indicates that the Synthoid population of "+t+" just changed significantly")}}getActionStats(e,t){const n=e.getDifficulty(),a=Math.pow(n,v.a.DiffMultExponentialFactor)+n/v.a.DiffMultLinearFactor,r=this.actionTimeToComplete,i=t?1:.5,o=r*v.a.BaseStatGain*i*a,s=r*v.a.BaseIntGain*i*a,l=this.skillMultipliers.expGain;return{hack:o*e.weights.hack*l,str:o*e.weights.str*l,def:o*e.weights.def*l,dex:o*e.weights.dex*l,agi:o*e.weights.agi*l,cha:o*e.weights.cha*l,int:s*e.weights.int*l,money:0}}getDiplomacyEffectiveness(e){return(100-(Math.pow(e.charisma,.045)+e.charisma/1e3))/100}getRecruitmentSuccessChance(e){return Math.pow(e.charisma,.45)/(this.teamSize-this.sleeveSize+1)}getRecruitmentTime(e){const t=e.charisma*this.skillMultipliers.effCha,n=Math.pow(t,.81)+t/90;return Math.max(10,Math.round(v.a.BaseRecruitmentTimeNeeded-n))}sleeveSupport(e){e?(this.sleeveSize+=1,this.teamSize+=1):(this.sleeveSize-=1,this.teamSize-=1)}resetSkillMultipliers(){this.skillMultipliers={successChanceAll:1,successChanceStealth:1,successChanceKill:1,successChanceContract:1,successChanceOperation:1,successChanceEstimate:1,actionTime:1,effHack:1,effStr:1,effDef:1,effDex:1,effAgi:1,effCha:1,effInt:1,stamina:1,money:1,expGain:1}}updateSkillMultipliers(){this.resetSkillMultipliers();for(const e of Object.keys(this.skills))if(this.skills.hasOwnProperty(e)){const t=h.a[e];if(null==t)throw new Error("Could not find Skill Object for: "+e);const n=this.skills[e];if(null==n||n<=0)continue;const a=Object.keys(this.skillMultipliers);for(let e=0;e<a.length;++e){const r=a[e];if(null!=t.getMultiplier(r)&&!isNaN(t.getMultiplier(r))){const e=t.getMultiplier(r)*n;let a=1+e/100;"actionTime"===r&&(a=1-e/100),this.skillMultipliers[r]*=a}}}}completeOperation(e,t){if(this.action.type!==i.a.Operation)throw new Error("completeOperation() called even though current action is not an Operation");const n=this.getActionObject(this.action);if(null==n)throw new Error("Failed to get Contract/Operation Object for: "+this.action.name);const a=n.teamCount;if(a>=1){let r;r=e?Math.ceil(a/2):Math.floor(a);const i=Object(E.a)(0,r);if(this.teamSize-=i,this.teamSize<this.sleeveSize){const e=t.sleeves.filter(e=>"Support main sleeve"==e.bbAction);for(let t=0;t>this.teamSize-this.sleeveSize;t--){const t=Math.floor(Math.random()*e.length);e[t].takeDamage(e[t].max_hp),e.splice(t,1)}this.teamSize+=this.sleeveSize}this.teamLost+=i,this.logging.ops&&i>0&&this.log("Lost "+Object(m.f)(i,0)+" team members during this "+n.name)}const r=this.getCurrentCity();switch(n.name){case"Investigation":e?r.improvePopulationEstimateByPercentage(.4*this.skillMultipliers.successChanceEstimate):this.triggerPotentialMigration(this.city,.1);break;case"Undercover Operation":e?r.improvePopulationEstimateByPercentage(.8*this.skillMultipliers.successChanceEstimate):this.triggerPotentialMigration(this.city,.15);break;case"Sting Operation":e&&r.changePopulationByPercentage(-.1,{changeEstEqually:!0,nonZero:!0}),r.changeChaosByCount(.1);break;case"Raid":if(e)r.changePopulationByPercentage(-1,{changeEstEqually:!0,nonZero:!0}),--r.comms;else{const e=Object(E.a)(-10,-5)/10;r.changePopulationByPercentage(e,{nonZero:!0,changeEstEqually:!1})}r.changeChaosByPercentage(Object(E.a)(1,5));break;case"Stealth Retirement Operation":e&&r.changePopulationByPercentage(-.5,{changeEstEqually:!0,nonZero:!0}),r.changeChaosByPercentage(Object(E.a)(-3,-1));break;case"Assassination":e&&r.changePopulationByCount(-1,{estChange:-1,estOffset:0}),r.changeChaosByPercentage(Object(E.a)(-5,5));break;default:throw new Error("Invalid Action name in completeOperation: "+this.action.name)}}getActionObject(e){switch(e.type){case i.a.Contract:return this.contracts[e.name];case i.a.Operation:return this.operations[e.name];case i.a.BlackOp:case i.a.BlackOperation:return s.a[e.name];case i.a.Training:return u.a.Training;case i.a["Field Analysis"]:return u.a["Field Analysis"];case i.a.Recruitment:return u.a.Recruitment;case i.a.Diplomacy:return u.a.Diplomacy;case i.a["Hyperbolic Regeneration Chamber"]:return u.a["Hyperbolic Regeneration Chamber"];case i.a["Incite Violence"]:return u.a["Incite Violence"];default:return null}}completeContract(e,t){if(t.type!==i.a.Contract)throw new Error("completeContract() called even though current action is not a Contract");const n=this.getCurrentCity();if(e)switch(t.name){case"Tracking":n.improvePopulationEstimateByCount(Object(E.a)(100,1e3));break;case"Bounty Hunter":n.changePopulationByCount(-1,{estChange:-1,estOffset:0}),n.changeChaosByCount(.02);break;case"Retirement":n.changePopulationByCount(-1,{estChange:-1,estOffset:0}),n.changeChaosByCount(.04);break;default:throw new Error("Invalid Action name in completeContract: "+t.name)}}completeAction(e,t,n,a=!0){let r=Object(g.a)();switch(n.type){case i.a.Contract:case i.a.Operation:try{const o=n.type===i.a.Operation,s=this.getActionObject(n);if(null==s)throw new Error("Failed to get Contract/Operation Object for: "+n.name);const l=s.getDifficulty(),c=Math.pow(l,v.a.DiffMultExponentialFactor)+l/v.a.DiffMultLinearFactor,f=Math.pow(s.rewardFac,s.level-1);if(a&&(this.stamina-=v.a.BaseStaminaLoss*c,this.stamina<0&&(this.stamina=0)),s.attempt(this,t)){r=this.getActionStats(s,!0),++s.successes,--s.count;let a=0;if(o||(a=v.a.ContractBaseMoneyGain*f*this.skillMultipliers.money,r.money=a),o?s.setMaxLevel(v.a.OperationSuccessesPerLevel):s.setMaxLevel(v.a.ContractSuccessesPerLevel),s.rankGain){const e=Object(_.a)(s.rankGain*f*w.a.BladeburnerRank,10);this.changeRank(t,e),o&&this.logging.ops?this.log(t.whoAmI()+": "+s.name+" successfully completed! Gained "+Object(m.f)(e,3)+" rank"):!o&&this.logging.contracts&&this.log(t.whoAmI()+": "+s.name+" contract successfully completed! Gained "+Object(m.f)(e,3)+" rank and "+k.a.formatMoney(a))}o?this.completeOperation(!0,e):this.completeContract(!0,n)}else{r=this.getActionStats(s,!1),++s.failures;let a=0,i=0;if(s.rankLoss&&(a=Object(_.a)(s.rankLoss*f,10),this.changeRank(t,-1*a)),s.hpLoss){i=s.hpLoss*c,i=Math.ceil(Object(_.a)(i,10)),this.hpLost+=i;const n=Object(x.a)(e,i);t.takeDamage(i)&&(++this.numHosp,this.moneyLost+=n)}let l="";a>0&&(l+="Lost "+Object(m.f)(a,3)+" rank. "),i>0&&(l+="Took "+Object(m.f)(i,0)+" damage."),o&&this.logging.ops?this.log(t.whoAmI()+": "+s.name+" failed! "+l):!o&&this.logging.contracts&&this.log(t.whoAmI()+": "+s.name+" contract failed! "+l),o?this.completeOperation(!1,e):this.completeContract(!1,n)}s.autoLevel&&(s.level=s.maxLevel)}catch(e){Object(b.a)(e)}break;case i.a.BlackOp:case i.a.BlackOperation:try{const a=this.getActionObject(n);if(null==a||!(a instanceof l.a))throw new Error("Failed to get BlackOperation Object for: "+n.name);const i=a.getDifficulty(),o=Math.pow(i,v.a.DiffMultExponentialFactor)+i/v.a.DiffMultLinearFactor;this.stamina-=v.a.BaseStaminaLoss*o,this.stamina<0&&(this.stamina=0);const s=a.teamCount;let c;if(a.attempt(this,t)){r=this.getActionStats(a,!0),a.count=0,this.blackops[a.name]=!0;let e=0;a.rankGain&&(e=Object(_.a)(a.rankGain*w.a.BladeburnerRank,10),this.changeRank(t,e)),c=Math.ceil(s/2),this.logging.blackops&&this.log(t.whoAmI()+": "+a.name+" successful! Gained "+Object(m.f)(e,1)+" rank")}else{r=this.getActionStats(a,!1);let n=0,i=0;if(a.rankLoss&&(n=Object(_.a)(a.rankLoss,10),this.changeRank(t,-1*n)),a.hpLoss){i=a.hpLoss*o,i=Math.ceil(Object(_.a)(i,10));const n=Object(x.a)(e,i);t.takeDamage(i)&&(++this.numHosp,this.moneyLost+=n)}c=Math.floor(s),this.logging.blackops&&this.log(t.whoAmI()+": "+a.name+" failed! Lost "+Object(m.f)(n,1)+" rank and took "+Object(m.f)(i,0)+" damage")}if(this.resetAction(),s>=1){const n=Object(E.a)(1,c);if(this.teamSize-=n,this.teamSize<this.sleeveSize){const t=e.sleeves.filter(e=>"Support main sleeve"==e.bbAction);for(let e=0;e>this.teamSize-this.sleeveSize;e--){const e=Math.floor(Math.random()*t.length);t[e].takeDamage(t[e].max_hp),t.splice(e,1)}this.teamSize+=this.sleeveSize}this.teamLost+=n,this.logging.blackops&&this.log(`${t.whoAmI()}: You lost ${Object(m.f)(n,0)} team members during ${a.name}`)}}catch(e){Object(b.a)(e)}break;case i.a.Training:{this.stamina-=.5*v.a.BaseStaminaLoss;const e=30*t.mults.strength_exp,n=30*t.mults.defense_exp,a=30*t.mults.dexterity_exp,i=30*t.mults.agility_exp,o=.04*this.skillMultipliers.stamina;r.str=e,r.def=n,r.dex=a,r.agi=i,this.staminaBonus+=o,this.logging.general&&this.log(t.whoAmI()+": Training completed. Gained: "+Object(m.f)(e,1)+" str exp, "+Object(m.f)(n,1)+" def exp, "+Object(m.f)(a,1)+" dex exp, "+Object(m.f)(i,1)+" agi exp, "+Object(m.f)(o,3)+" max stamina");break}case i.a.FieldAnalysis:case i.a["Field Analysis"]:{let e=.04*Math.pow(t.hacking,.3)+.04*Math.pow(t.intelligence,.9)+.02*Math.pow(t.charisma,.3);if(e*=t.mults.bladeburner_analysis,isNaN(e)||e<0)throw new Error("Field Analysis Effectiveness calculated to be NaN or negative");const n=20*t.mults.hacking_exp,a=20*t.mults.charisma_exp,i=.1*w.a.BladeburnerRank;r.hack=n,r.cha=a,r.int=v.a.BaseIntGain,this.changeRank(t,i),this.getCurrentCity().improvePopulationEstimateByPercentage(e*this.skillMultipliers.successChanceEstimate),this.logging.general&&this.log(t.whoAmI()+": "+`Field analysis completed. Gained ${Object(m.f)(i,2)} rank, `+Object(m.f)(n,1)+" hacking exp, and "+Object(m.f)(a,1)+" charisma exp");break}case i.a.Recruitment:{const e=this.getRecruitmentSuccessChance(t),n=1e3*this.getRecruitmentTime(t);if(Math.random()<e){const e=2*v.a.BaseStatGain*n;r.cha=e,++this.teamSize,this.logging.general&&this.log(t.whoAmI()+": Successfully recruited a team member! Gained "+Object(m.f)(e,1)+" charisma exp")}else{const e=v.a.BaseStatGain*n;r.cha=e,this.logging.general&&this.log(t.whoAmI()+": Failed to recruit a team member. Gained "+Object(m.f)(e,1)+" charisma exp")}break}case i.a.Diplomacy:{const e=this.getDiplomacyEffectiveness(t);this.getCurrentCity().chaos*=e,this.getCurrentCity().chaos<0&&(this.getCurrentCity().chaos=0),this.logging.general&&this.log(`${t.whoAmI()}: Diplomacy completed. Chaos levels in the current city fell by ${k.a.formatPercentage(1-e)}`);break}case i.a["Hyperbolic Regeneration Chamber"]:{t.regenerateHp(v.a.HrcHpGain);const e=this.maxStamina*(v.a.HrcStaminaGain/100);this.stamina=Math.min(this.maxStamina,this.stamina+e),this.logging.general&&this.log(`${t.whoAmI()}: Rested in Hyperbolic Regeneration Chamber. Restored ${v.a.HrcHpGain} HP and gained ${k.a.formatStamina(e)} stamina`);break}case i.a["Incite Violence"]:for(const e of Object.keys(this.contracts)){const t=o.a[e];if(!t)throw new Error("trying to generate count for action that doesn't exist? "+e);this.contracts[e].count+=180*t()/v.a.ActionCountGrowthPeriod}for(const e of Object.keys(this.operations)){const t=o.a[e];if(!t)throw new Error("trying to generate count for action that doesn't exist? "+e);this.operations[e].count+=180*t()/v.a.ActionCountGrowthPeriod}this.logging.general&&this.log(t.whoAmI()+": Incited violence in the synthoid communities.");for(const e of Object.keys(this.cities)){const t=this.cities[e];t.chaos+=10,t.chaos+=t.chaos/(Math.log(t.chaos)/Math.log(10))}break;default:console.error("Bladeburner.completeAction() called for invalid action: "+n.type)}return r}infiltrateSynthoidCommunities(e){const t=e.sleeves.filter(e=>"Infiltrate synthoids"===e.bbAction).length,n=Math.pow(t,-.5)/2;for(const e of Object.keys(this.contracts))this.contracts[e].count+=n;for(const e of Object.keys(this.operations))this.operations[e].count+=n;this.logging.general&&this.log("Sleeve: Infiltrate the synthoid communities.")}changeRank(e,t){if(isNaN(t))throw new Error("NaN passed into Bladeburner.changeRank()");this.rank+=t,this.rank<0&&(this.rank=0),this.maxRank=Math.max(this.rank,this.maxRank);const n=R.a.Bladeburners;if(Object(C.b)(n)){const a=C.a[n];if(!(a instanceof S.a))throw new Error(`Could not properly get ${R.a.Bladeburners} Faction object in ${R.a.Bladeburners} UI Overview Faction button`);if(a.isMember){const n=1+a.favor/100;a.playerReputation+=v.a.RankToFactionRepFactor*t*e.mults.faction_rep*n}}const a=(this.totalSkillPoints+1)*v.a.RanksPerSkillPoint;if(this.maxRank>=a){const e=Math.floor((this.maxRank-a)/v.a.RanksPerSkillPoint+1);this.skillPoints+=e,this.totalSkillPoints+=e}}processAction(e,t,n){if(this.action.type!==i.a.Idle){if(this.actionTimeToComplete<=0)throw new Error(`Invalid actionTimeToComplete value: ${this.actionTimeToComplete}, type; ${this.action.type}`);if(!(this.action instanceof r.a))throw new Error("Bladeburner.action is not an ActionIdentifier Object");if(this.actionTimeCurrent+=n+this.actionTimeOverflow,this.actionTimeOverflow=0,this.actionTimeCurrent>=this.actionTimeToComplete){this.actionTimeOverflow=this.actionTimeCurrent-this.actionTimeToComplete;const e=this.getActionObject(this.action),n=this.completeAction(t,t,this.action);if(t.gainMoney(n.money,"bladeburner"),t.gainStats(n),null==e)throw new Error("Failed to get BlackOperation Object for: "+this.action.name);this.action.type!=i.a.BlackOperation&&this.action.type!=i.a.BlackOp&&this.startAction(t,this.action)}}}calculateStaminaGainPerSecond(e){const t=e.agility*this.skillMultipliers.effAgi,n=this.maxStamina/v.a.MaxStaminaToGainFactor;return(v.a.StaminaGainPerSecond+n)*Math.pow(t,.17)*(this.skillMultipliers.stamina*e.mults.bladeburner_stamina_gain)}calculateMaxStamina(e){const t=e.agility*this.skillMultipliers.effAgi,n=(Math.pow(t,.8)+this.staminaBonus)*this.skillMultipliers.stamina*e.mults.bladeburner_max_stamina;if(this.maxStamina!==n){const e=this.maxStamina;this.maxStamina=n,this.stamina=this.maxStamina*this.stamina/e}if(isNaN(n))throw new Error("Max Stamina calculated to be NaN in Bladeburner.calculateMaxStamina()")}create(){this.contracts.Tracking=new f.a({name:"Tracking",baseDifficulty:125,difficultyFac:1.02,rewardFac:1.041,rankGain:.3,hpLoss:.5,count:Object(E.a)(25,150),weights:{hack:0,str:.05,def:.05,dex:.35,agi:.35,cha:.1,int:.05},decays:{hack:0,str:.91,def:.91,dex:.91,agi:.91,cha:.9,int:1},isStealth:!0}),this.contracts["Bounty Hunter"]=new f.a({name:"Bounty Hunter",baseDifficulty:250,difficultyFac:1.04,rewardFac:1.085,rankGain:.9,hpLoss:1,count:Object(E.a)(5,150),weights:{hack:0,str:.15,def:.15,dex:.25,agi:.25,cha:.1,int:.1},decays:{hack:0,str:.91,def:.91,dex:.91,agi:.91,cha:.8,int:.9},isKill:!0}),this.contracts.Retirement=new f.a({name:"Retirement",baseDifficulty:200,difficultyFac:1.03,rewardFac:1.065,rankGain:.6,hpLoss:1,count:Object(E.a)(5,150),weights:{hack:0,str:.2,def:.2,dex:.2,agi:.2,cha:.1,int:.1},decays:{hack:0,str:.91,def:.91,dex:.91,agi:.91,cha:.8,int:.9},isKill:!0}),this.operations.Investigation=new c.a({name:"Investigation",baseDifficulty:400,difficultyFac:1.03,rewardFac:1.07,reqdRank:25,rankGain:2.2,rankLoss:.2,count:Object(E.a)(1,100),weights:{hack:.25,str:.05,def:.05,dex:.2,agi:.1,cha:.25,int:.1},decays:{hack:.85,str:.9,def:.9,dex:.9,agi:.9,cha:.7,int:.9},isStealth:!0}),this.operations["Undercover Operation"]=new c.a({name:"Undercover Operation",baseDifficulty:500,difficultyFac:1.04,rewardFac:1.09,reqdRank:100,rankGain:4.4,rankLoss:.4,hpLoss:2,count:Object(E.a)(1,100),weights:{hack:.2,str:.05,def:.05,dex:.2,agi:.2,cha:.2,int:.1},decays:{hack:.8,str:.9,def:.9,dex:.9,agi:.9,cha:.7,int:.9},isStealth:!0}),this.operations["Sting Operation"]=new c.a({name:"Sting Operation",baseDifficulty:650,difficultyFac:1.04,rewardFac:1.095,reqdRank:500,rankGain:5.5,rankLoss:.5,hpLoss:2.5,count:Object(E.a)(1,150),weights:{hack:.25,str:.05,def:.05,dex:.25,agi:.1,cha:.2,int:.1},decays:{hack:.8,str:.85,def:.85,dex:.85,agi:.85,cha:.7,int:.9},isStealth:!0}),this.operations.Raid=new c.a({name:"Raid",baseDifficulty:800,difficultyFac:1.045,rewardFac:1.1,reqdRank:3e3,rankGain:55,rankLoss:2.5,hpLoss:50,count:Object(E.a)(1,150),weights:{hack:.1,str:.2,def:.2,dex:.2,agi:.2,cha:0,int:.1},decays:{hack:.7,str:.8,def:.8,dex:.8,agi:.8,cha:0,int:.9},isKill:!0}),this.operations["Stealth Retirement Operation"]=new c.a({name:"Stealth Retirement Operation",baseDifficulty:1e3,difficultyFac:1.05,rewardFac:1.11,reqdRank:2e4,rankGain:22,rankLoss:2,hpLoss:10,count:Object(E.a)(1,150),weights:{hack:.1,str:.1,def:.1,dex:.3,agi:.3,cha:0,int:.1},decays:{hack:.7,str:.8,def:.8,dex:.8,agi:.8,cha:0,int:.9},isStealth:!0,isKill:!0}),this.operations.Assassination=new c.a({name:"Assassination",baseDifficulty:1500,difficultyFac:1.06,rewardFac:1.14,reqdRank:5e4,rankGain:44,rankLoss:4,hpLoss:5,count:Object(E.a)(1,150),weights:{hack:.1,str:.1,def:.1,dex:.3,agi:.3,cha:0,int:.1},decays:{hack:.6,str:.8,def:.8,dex:.8,agi:.8,cha:0,int:.8},isStealth:!0,isKill:!0})}process(e,t){if(e.isInitialized){if(!t.hasAugmentation(M.a.BladesSimulacrum,!0)&&t.currentWork){if(this.action.type!==i.a.Idle){let e="Your Bladeburner action was cancelled because you started doing something else.";this.automateEnabled&&(e+="<br /><br />Your automation was disabled as well. You will have to re-enable it through the Bladeburner console",this.automateEnabled=!1),O.a.SuppressBladeburnerPopup||Object(L.a)(e)}this.resetAction()}if(this.stamina<=0&&(this.log("Your Bladeburner action was cancelled because your stamina hit 0"),this.resetAction()),this.storedCycles>=v.a.CyclesPerSecond){let n=Math.floor(this.storedCycles/v.a.CyclesPerSecond);n=Math.min(n,5),this.storedCycles-=n*v.a.CyclesPerSecond,this.calculateMaxStamina(t),this.stamina+=this.calculateStaminaGainPerSecond(t)*n,this.stamina=Math.min(this.maxStamina,this.stamina);for(const e of Object.values(this.contracts)){const t=o.a[e.name];if(void 0===t)throw new Error(`growth formula for action '${e.name}' is undefined`);e.count+=n*t()/v.a.ActionCountGrowthPeriod}for(const e of Object.values(this.operations)){const t=o.a[e.name];if(void 0===t)throw new Error(`growth formula for action '${e.name}' is undefined`);void 0!==t&&(e.count+=n*t()/v.a.ActionCountGrowthPeriod)}for(const e of v.a.CityNames){const t=this.cities[e];if(!(t instanceof p.a))throw new Error("Invalid City object when processing passive chaos reduction in Bladeburner.process");t.chaos-=1e-4*n,t.chaos=Math.max(0,t.chaos)}this.randomEventCounter-=n,this.randomEventCounter<=0&&(this.randomEvent(),this.randomEventCounter+=Object(E.a)(240,600)),this.processAction(e,t,n),this.automateEnabled&&(this.stamina<=this.automateThreshLow?this.action.name===this.automateActionLow.name&&this.action.type===this.automateActionLow.type||(this.action=new r.a({type:this.automateActionLow.type,name:this.automateActionLow.name}),this.startAction(t,this.action)):this.stamina>=this.automateThreshHigh&&(this.action.name===this.automateActionHigh.name&&this.action.type===this.automateActionHigh.type||(this.action=new r.a({type:this.automateActionHigh.type,name:this.automateActionHigh.name}),this.startAction(t,this.action))))}}}getTypeAndNameFromActionId(e){const t={type:"",name:""},n=Object.keys(i.a);for(let a=0;a<n.length;++a)if(e.type===i.a[n[a]]){t.type=n[a];break}return["Training","Recruitment","FieldAnalysis","Field Analysis","Diplomacy","Hyperbolic Regeneration Chamber","Incite Violence"].includes(t.type)&&(t.type="General"),null==t.type&&(t.type="Idle"),t.name=null!=e.name?e.name:"Idle",t}getContractNamesNetscriptFn(){return Object.keys(this.contracts)}getOperationNamesNetscriptFn(){return Object.keys(this.operations)}getBlackOpNamesNetscriptFn(){return Object.keys(s.a)}getGeneralActionNamesNetscriptFn(){return Object.keys(u.a)}getSkillNamesNetscriptFn(){return Object.keys(h.a)}startActionNetscriptFn(e,t,n,a){const r=`Invalid action: type='${t}' name='${n}'`,o=this.getActionIdFromTypeAndName(t,n);if(null==o)return a.log("bladeburner.startAction",()=>r),!1;if(o.type===i.a.BlackOp){const e=this.canAttemptBlackOp(o);if(!e.isAvailable)return a.log("bladeburner.startAction",()=>e.error+""),!1}try{return this.startAction(e,o),a.log("bladeburner.startAction",()=>`Starting bladeburner action with type '${t}' and name '${n}'`),!0}catch(e){return this.resetAction(),a.log("bladeburner.startAction",()=>r),!1}}getActionTimeNetscriptFn(e,t,n){const a=this.getActionIdFromTypeAndName(t,n);if(null==a)return"bladeburner.getActionTime";const r=this.getActionObject(a);if(null==r)return"bladeburner.getActionTime";switch(a.type){case i.a.Contract:case i.a.Operation:case i.a.BlackOp:case i.a.BlackOperation:return 1e3*r.getActionTime(this,e);case i.a.Training:case i.a["Field Analysis"]:case i.a.FieldAnalysis:return 3e4;case i.a.Recruitment:return 1e3*this.getRecruitmentTime(e);case i.a.Diplomacy:case i.a["Hyperbolic Regeneration Chamber"]:case i.a["Incite Violence"]:return 6e4;default:return"bladeburner.getActionTime"}}getActionEstimatedSuccessChanceNetscriptFn(e,t,n){const a=this.getActionIdFromTypeAndName(t,n);if(null==a)return"bladeburner.getActionEstimatedSuccessChance";const r=this.getActionObject(a);if(null==r)return"bladeburner.getActionEstimatedSuccessChance";switch(a.type){case i.a.Contract:case i.a.Operation:case i.a.BlackOp:case i.a.BlackOperation:return r.getEstSuccessChance(this,e);case i.a.Training:case i.a["Field Analysis"]:case i.a.FieldAnalysis:case i.a.Diplomacy:case i.a["Hyperbolic Regeneration Chamber"]:case i.a["Incite Violence"]:return[1,1];case i.a.Recruitment:{const t=this.getRecruitmentSuccessChance(e);return[t,t]}default:return"bladeburner.getActionEstimatedSuccessChance"}}getActionCountRemainingNetscriptFn(e,t,n){const a=`Invalid action: type='${e}' name='${t}'`,r=this.getActionIdFromTypeAndName(e,t);if(null==r)return n.log("bladeburner.getActionCountRemaining",()=>a),-1;const o=this.getActionObject(r);if(null==o)return n.log("bladeburner.getActionCountRemaining",()=>a),-1;switch(r.type){case i.a.Contract:case i.a.Operation:return Math.floor(o.count);case i.a.BlackOp:case i.a.BlackOperation:return null!=this.blackops[t]?0:1;case i.a.Training:case i.a.Recruitment:case i.a["Field Analysis"]:case i.a.FieldAnalysis:case i.a.Diplomacy:case i.a["Hyperbolic Regeneration Chamber"]:case i.a["Incite Violence"]:return 1/0;default:return n.log("bladeburner.getActionCountRemaining",()=>a),-1}}getSkillLevelNetscriptFn(e,t){return""!==e&&h.a.hasOwnProperty(e)?null==this.skills[e]?0:this.skills[e]:(t.log("bladeburner.getSkillLevel",()=>`Invalid skill: '${e}'`),-1)}getSkillUpgradeCostNetscriptFn(e,t){if(""===e||!h.a.hasOwnProperty(e))return t.log("bladeburner.getSkillUpgradeCost",()=>`Invalid skill: '${e}'`),-1;const n=h.a[e];return null==this.skills[e]?n.calculateCost(0):n.calculateCost(this.skills[e])}upgradeSkillNetscriptFn(e,t){const n=`Invalid skill: '${e}'`;if(!h.a.hasOwnProperty(e))return t.log("bladeburner.upgradeSkill",()=>n),!1;const a=h.a[e];let r=0;this.skills[e]&&!isNaN(this.skills[e])&&(r=this.skills[e]);const i=a.calculateCost(r);return a.maxLvl&&r>=a.maxLvl?(t.log("bladeburner.upgradeSkill",()=>`Skill '${e}' is already maxed.`),!1):this.skillPoints<i?(t.log("bladeburner.upgradeSkill",()=>`You do not have enough skill points to upgrade ${e} (You have ${this.skillPoints}, you need ${i})`),!1):(this.skillPoints-=i,this.upgradeSkill(a),t.log("bladeburner.upgradeSkill",()=>`'${e}' upgraded to level ${this.skills[e]}`),!0)}getTeamSizeNetscriptFn(e,t,n){if(""===e&&""===t)return this.teamSize;const a=`Invalid action: type='${e}' name='${t}'`,r=this.getActionIdFromTypeAndName(e,t);if(null==r)return n.log("bladeburner.getTeamSize",()=>a),-1;const o=this.getActionObject(r);return null==o?(n.log("bladeburner.getTeamSize",()=>a),-1):r.type===i.a.Operation||r.type===i.a.BlackOp||r.type===i.a.BlackOperation?o.teamCount:0}setTeamSizeNetscriptFn(e,t,n,a){const r=`Invalid action: type='${e}' name='${t}'`,o=this.getActionIdFromTypeAndName(e,t);if(null==o)return a.log("bladeburner.setTeamSize",()=>r),-1;if(o.type!==i.a.Operation&&o.type!==i.a.BlackOp&&o.type!==i.a.BlackOperation)return a.log("bladeburner.setTeamSize",()=>"Only valid for 'Operations' and 'BlackOps'"),-1;const s=this.getActionObject(o);if(null==s)return a.log("bladeburner.setTeamSize",()=>r),-1;let l=Math.round(n);return isNaN(l)||l<0?(a.log("bladeburner.setTeamSize",()=>"Invalid size: "+n),-1):(this.teamSize<l&&(l=this.teamSize),s.teamCount=l,a.log("bladeburner.setTeamSize",()=>`Team size for '${t}' set to ${l}.`),l)}joinBladeburnerFactionNetscriptFn(e){const t=C.a[R.a.Bladeburners];return!!t.isMember||(this.rank>=v.a.RankNeededForFaction?(Object(A.d)(t),e.log("bladeburner.joinBladeburnerFaction",()=>`Joined ${R.a.Bladeburners} faction.`),!0):(e.log("bladeburner.joinBladeburnerFaction",()=>`You do not have the required rank (${this.rank}/${v.a.RankNeededForFaction}).`),!1))}toJSON(){return Object(a.b)("Bladeburner",this)}static fromJSON(e){return Object(a.a)(I,e.data)}}a.c.constructors.Bladeburner=I},function(e,t,n){"use strict";n.d(t,"c",(function(){return i})),n.d(t,"b",(function(){return o})),n.d(t,"e",(function(){return s})),n.d(t,"a",(function(){return l})),n.d(t,"d",(function(){return c}));var a=n(21),r=n(40);function i(e,t,n,i){return e*r.a.MoneyGainPerLevel*Math.pow(1.035,t-1)*((n+5)/6)*i*a.a.HacknetNodeMoney}function o(e,t=1,n=1){const a=Math.round(t);if(isNaN(a)||a<1)return 0;if(e>=r.a.MaxLevel)return 1/0;const i=r.a.UpgradeLevelMult;let o=0,s=e;for(let e=0;e<a;++e)o+=r.a.LevelBaseCost*Math.pow(i,s),++s;return r.a.BaseCost/2*o*n}function s(e,t=1,n=1){const a=Math.round(t);if(isNaN(a)||a<1)return 0;if(e>=r.a.MaxRam)return 1/0;let i=0,o=Math.round(Math.log2(e)),s=e;for(let e=0;e<a;++e){i+=s*r.a.RamBaseCost*Math.pow(r.a.UpgradeRamMult,o),s*=2,++o}return i*=n,i}function l(e,t=1,n=1){const a=Math.round(t);if(isNaN(a)||a<1)return 0;if(e>=r.a.MaxCores)return 1/0;const i=r.a.CoreBaseCost,o=r.a.UpgradeCoreMult;let s=0,l=e;for(let e=0;e<a;++e)s+=i*Math.pow(o,l-1),++l;return s*=n,s}function c(e,t=1){return e<=0?0:r.a.BaseCost*Math.pow(r.a.PurchaseNextMult,e-1)*t}},function(e,t,n){"use strict";n.d(t,"c",(function(){return i})),n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return s}));var a=n(0),r=n(14);function i(e,t){e.gainMoney(t,"casino")}function o(e){const t=e.getCasinoWinnings()>1e10;return t&&Object(r.a)(a.createElement(a.Fragment,null,"Alright cheater get out of here. You're not allowed here anymore.")),t}class s extends a.Component{win(e,t){e.gainMoney(t,"casino")}reachedLimit(e){const t=e.getCasinoWinnings()>1e10;return t&&Object(r.a)(a.createElement(a.Fragment,null,"Alright cheater get out of here. You're not allowed here anymore.")),t}}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));const a=!1,r=!0,i={O:[[r,r],[r,r]],I:[[r,r,r,r]],L:[[a,a,r],[r,r,r]],J:[[r,a,a],[r,r,r]],S:[[a,r,r],[r,r,a]],Z:[[r,r,a],[a,r,r]],T:[[r,r,r],[a,r,a]]}},,,,,function(e,t,n){"use strict";function a(e,t,n){function a(e,t,a){function r(e,t,n){return(1-n)*e+n*t}for(const i of Object.keys(e))n[i]=r(e[i],t[i],a);return e}return t<0?a(e.Trivial,e.Trivial,0):t>=0&&t<1?a(e.Trivial,e.Normal,t):t>=1&&t<2?a(e.Normal,e.Hard,t-1):t>=2&&t<3?a(e.Hard,e.Impossible,t-2):a(e.Impossible,e.Impossible,0)}n.d(t,"a",(function(){return a}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var a=n(0),r=n.n(a);function i(e){return Object(a.useEffect)(()=>{function t(t){if(!t.isTrusted)return;e.onKeyDown.bind(this)(t)}return document.addEventListener("keydown",t),()=>document.removeEventListener("keydown",t)}),r.a.createElement(r.a.Fragment,null)}},function(e,t,n){"use strict";n.d(t,"b",(function(){return y})),n.d(t,"a",(function(){return b}));var a=n(0),r=n.n(a),i=n(154),o=n(22),s=n(4),l=n(29),c=n(164),f=n(14),u=n(139),m=n(291),h=n(12),d=n(11),p=n(1035),g=n(101);const y=e=>null!==e&&e.type===i.b.FACTION;class b extends i.a{constructor(e){var t,n,a;super(i.b.FACTION,null===(t=null==e?void 0:e.singularity)||void 0===t||t),this.factionWorkType=null!==(n=null==e?void 0:e.factionWorkType)&&void 0!==n?n:g.a.HACKING,this.factionName=null!==(a=null==e?void 0:e.faction)&&void 0!==a?a:s.a.Sector12}getFaction(){const e=l.a[this.factionName];if(!e)throw new Error(`Faction work started with invalid / unknown faction: '${this.factionName}'`);return e}getReputationRate(e){const t=this.getFaction(),n={[g.a.HACKING]:m.c,[g.a.FIELD]:m.a,[g.a.SECURITY]:m.b}[this.factionWorkType](e,t);let a=1;return e.hasAugmentation(d.a.NeuroreceptorManager)||(a=e.focus?1:h.a.BaseFocusBonus),n*a}getExpRates(e){return Object(p.a)(e,this.factionWorkType)}process(e,t){this.cyclesWorked+=t,this.getFaction().playerReputation+=this.getReputationRate(e)*t;const n=this.getExpRates(e);return Object(c.a)(e,n,t,"class"),!1}finish(){this.singularity||Object(f.a)(r.a.createElement(r.a.Fragment,null,"You worked for ",this.getFaction().name,".",r.a.createElement("br",null),"They now have a total of ",r.a.createElement(u.a,{reputation:this.getFaction().playerReputation})," reputation."))}toJSON(){return Object(o.b)("FactionWork",this)}static fromJSON(e){return Object(o.a)(b,e.data)}}o.c.constructors.FactionWork=b},,function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var a=n(0),r=n(6),i=n(118),o=n(142);const s=Object(i.a)(e=>Object(o.a)({money:{color:e.colors.money}}));function l({hashes:e}){const t=s();return a.createElement("span",{className:t.money},"number"==typeof e?r.a.formatHashes(e):e)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var a=n(12),r=n(213),i=n(40),o=n(14),s=n(22),l=n(394);function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class f{constructor(e="",t=1){c(this,"cores",1),c(this,"level",1),c(this,"moneyGainRatePerSecond",0),c(this,"onlineTimeSeconds",0),c(this,"ram",1),c(this,"totalMoneyGenerated",0),this.name=e,this.updateMoneyGainRate(t)}calculateCoreUpgradeCost(e=1,t){return Object(r.a)(this.cores,e,t)}calculateLevelUpgradeCost(e=1,t){return Object(r.b)(this.level,e,t)}calculateRamUpgradeCost(e=1,t){return Object(r.e)(this.ram,e,t)}process(e=1){const t=e*a.a.MilliPerCycle/1e3;let n=this.moneyGainRatePerSecond*t;return isNaN(n)&&(console.error(`Hacknet Node ${this.name} calculated earnings of NaN`),n=0),this.totalMoneyGenerated+=n,this.onlineTimeSeconds+=t,n}upgradeCore(e=1,t){this.cores=Math.min(i.a.MaxCores,Math.round(this.cores+e)),this.updateMoneyGainRate(t)}upgradeLevel(e=1,t){this.level=Math.min(i.a.MaxLevel,Math.round(this.level+e)),this.updateMoneyGainRate(t)}upgradeRam(e=1,t){for(let t=0;t<e;++t)this.ram*=2;this.ram=Math.round(this.ram),this.updateMoneyGainRate(t)}updateMoneyGainRate(e){this.moneyGainRatePerSecond=Object(r.c)(this.level,this.ram,this.cores,e),isNaN(this.moneyGainRatePerSecond)&&(this.moneyGainRatePerSecond=0,Object(o.a)("Error in calculating Hacknet Node production. Please report to game developer"))}toJSON(){return Object(s.b)("HacknetNode",this)}static fromJSON(e){return Object(s.a)(f,e.data)}}c(f,"validationData",{cores:Object(l.a)(1,1,i.a.MaxCores),level:Object(l.a)(1,1,i.a.MaxLevel),ram:Object(l.a)(1,1,i.a.MaxRam),onlineTimeSeconds:Object(l.a)(0,0,1/0),totalMoneyGenerated:Object(l.a)(0,0,1/0)}),s.c.constructors.HacknetNode=f},function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return f})),n.d(t,"c",(function(){return u})),n.d(t,"e",(function(){return m})),n.d(t,"d",(function(){return h}));var a=n(27),r=n(137),i=n(21),o=n(12),s=n(14),l=n(1042);function c(e){const t=Math.round(e);if(isNaN(t)||!Object(l.a)(t)||1!==Math.sign(t))return 1/0;if(t>u())return 1/0;const n=Math.max(0,Math.log(t)/Math.log(2)-6);return t*o.a.BaseCostFor1GBOfRamServer*i.a.PurchasedServerCost*Math.pow(i.a.PurchasedServerSoftcap,n)}function f(){return Math.round(o.a.PurchasedServerLimit*i.a.PurchasedServerLimit)}function u(){const e=Math.round(o.a.PurchasedServerMaxRam*i.a.PurchasedServerMaxRam);return 1<<31-Math.clz32(e)}function m(e,t,n,i){if(!i.canAfford(n))return void Object(s.a)("You don't have enough money to purchase this server!");if(i.purchasedServers.length>=f())return void Object(s.a)("You have reached the maximum limit of "+f()+" servers. You cannot purchase any more. You can delete some of your purchased servers using the deleteServer() Netscript function in a script");if(""==e)return void Object(s.a)("You must enter a hostname for your new server!");const o=Object(r.g)({adminRights:!0,hostname:e,ip:Object(a.e)(),isConnectedTo:!1,maxRam:t,organizationName:"",purchasedByPlayer:!0});Object(a.a)(o),i.purchasedServers.push(o.hostname);const l=i.getHomeComputer();l.serversOnNetwork.push(o.hostname),o.serversOnNetwork.push(l.hostname),i.loseMoney(n,"servers"),Object(s.a)("Server successfully purchased with hostname "+o.hostname)}function h(e){const t=e.getUpgradeHomeRamCost();if(!e.canAfford(t))return void Object(s.a)("You do not have enough money to purchase additional RAM for your home computer");const n=e.getHomeComputer();n.maxRam>=o.a.HomeComputerMaxRam?Object(s.a)("You cannot upgrade your home computer RAM because it is at its maximum possible value"):(n.maxRam*=2,e.loseMoney(t,"servers"))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"c",(function(){return s})),n.d(t,"b",(function(){return l}));var a=n(14),r=n(22),i=n(83);class o{get filename(){return this.fn}set filename(e){this.fn=e}constructor(e="",t=""){this.fn=(e.endsWith(".txt")?e:e+".txt").replace(/\s+/g,""),this.text=t}append(e){this.text+=e}download(){const e=this.fn,t=new Blob([this.text],{type:"text/plain"}),n=window.navigator;if(n.msSaveOrOpenBlob)n.msSaveOrOpenBlob(t,e);else{const e=document.createElement("a"),n=URL.createObjectURL(t);e.href=n,e.download=this.fn,document.body.appendChild(e),e.click(),setTimeout(()=>{document.body.removeChild(e),window.URL.revokeObjectURL(n)},0)}}read(){return this.text}show(){Object(a.a)(`${this.fn}<br /><br />${this.text}`)}toJSON(){return Object(r.b)("TextFile",this)}write(e){this.text=e}static fromJSON(e){return Object(r.a)(o,e.data)}}function s(e,t){let n=e.endsWith(".txt")?e:e+".txt";Object(i.h)(n)&&(n=Object(i.k)(n));for(const e of t.textFiles)if(e.fn===n)return e;return null}function l(e,t,n){if(null!==s(e,n))return void console.error(`A file named "${e}" already exists on server ${n.hostname}.`);const a=new o(e,t);return n.textFiles.push(a),a}r.c.constructors.TextFile=o},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return d})),n.d(t,"c",(function(){return p}));const a={ScriptBaseRamCost:1.6,ScriptDomRamCost:25,ScriptCorporationRamCost:1022.4,ScriptHackRamCost:.1,ScriptHackAnalyzeRamCost:1,ScriptGrowRamCost:.15,ScriptGrowthAnalyzeRamCost:1,ScriptWeakenRamCost:.15,ScriptWeakenAnalyzeRamCost:1,ScriptScanRamCost:.2,ScriptRecentScriptsRamCost:.2,ScriptPortProgramRamCost:.05,ScriptRunRamCost:1,ScriptExecRamCost:1.3,ScriptSpawnRamCost:2,ScriptScpRamCost:.6,ScriptKillRamCost:.5,ScriptHasRootAccessRamCost:.05,ScriptGetHostnameRamCost:.05,ScriptGetHackingLevelRamCost:.05,ScriptGetMultipliersRamCost:4,ScriptGetServerRamCost:.1,ScriptGetServerMaxRam:.05,ScriptGetServerUsedRam:.05,ScriptFileExistsRamCost:.1,ScriptIsRunningRamCost:.1,ScriptHacknetNodesRamCost:4,ScriptHNUpgLevelRamCost:.4,ScriptHNUpgRamRamCost:.6,ScriptHNUpgCoreRamCost:.8,ScriptGetStockRamCost:2,ScriptBuySellStockRamCost:2.5,ScriptGetPurchaseServerRamCost:.25,ScriptPurchaseServerRamCost:2.25,ScriptGetPurchasedServerLimit:.05,ScriptGetPurchasedServerMaxRam:.05,ScriptRoundRamCost:.05,ScriptReadWriteRamCost:1,ScriptArbScriptRamCost:1,ScriptGetScriptRamCost:.1,ScriptGetRunningScriptRamCost:.3,ScriptGetHackTimeRamCost:.05,ScriptGetFavorToDonate:.1,ScriptCodingContractBaseRamCost:10,ScriptSleeveBaseRamCost:4,ScriptGetOwnedSourceFiles:5,ScriptClearTerminalCost:.2,ScriptSingularityFn1RamCost:2,ScriptSingularityFn2RamCost:3,ScriptSingularityFn3RamCost:5,ScriptGangApiBaseRamCost:4,ScriptBladeburnerApiBaseRamCost:4,ScriptStanekWidth:.4,ScriptStanekHeight:.4,ScriptStanekCharge:.4,ScriptStanekFragmentDefinitions:0,ScriptStanekPlacedFragments:5,ScriptStanekClear:0,ScriptStanekCanPlace:.5,ScriptStanekPlace:5,ScriptStanekFragmentAt:2,ScriptStanekDeleteAt:.15,ScriptInfiltrationCalculateDifficulty:2.5,ScriptInfiltrationCalculateRewards:2.5,ScriptInfiltrationGetLocations:5,ScriptInfiltrationGetInfiltrations:15,ScriptStanekAcceptGift:2};function r(e){return t=>{if(4===t.bitNodeN)return e;const n=t.sourceFileLvl(4);return n<=1?16*e:2===n?4*e:e}}const i={getSymbols:a.ScriptGetStockRamCost,getPrice:a.ScriptGetStockRamCost,getAskPrice:a.ScriptGetStockRamCost,getBidPrice:a.ScriptGetStockRamCost,getPosition:a.ScriptGetStockRamCost,getMaxShares:a.ScriptGetStockRamCost,getPurchaseCost:a.ScriptGetStockRamCost,getSaleGain:a.ScriptGetStockRamCost,buy:a.ScriptBuySellStockRamCost,sell:a.ScriptBuySellStockRamCost,short:a.ScriptBuySellStockRamCost,sellShort:a.ScriptBuySellStockRamCost,placeOrder:a.ScriptBuySellStockRamCost,cancelOrder:a.ScriptBuySellStockRamCost,getOrders:a.ScriptBuySellStockRamCost,getVolatility:a.ScriptBuySellStockRamCost,getForecast:a.ScriptBuySellStockRamCost,purchase4SMarketData:a.ScriptBuySellStockRamCost,purchase4SMarketDataTixApi:a.ScriptBuySellStockRamCost,purchaseWseAccount:a.ScriptBuySellStockRamCost,purchaseTixApi:a.ScriptBuySellStockRamCost},o={universityCourse:r(a.ScriptSingularityFn1RamCost),gymWorkout:r(a.ScriptSingularityFn1RamCost),travelToCity:r(a.ScriptSingularityFn1RamCost),goToLocation:r(a.ScriptSingularityFn3RamCost),purchaseTor:r(a.ScriptSingularityFn1RamCost),purchaseProgram:r(a.ScriptSingularityFn1RamCost),getCurrentServer:r(a.ScriptSingularityFn1RamCost),connect:r(a.ScriptSingularityFn1RamCost),manualHack:r(a.ScriptSingularityFn1RamCost),installBackdoor:r(a.ScriptSingularityFn1RamCost),getDarkwebProgramCost:r(a.ScriptSingularityFn1RamCost/4),getDarkwebPrograms:r(a.ScriptSingularityFn1RamCost/4),getStats:r(a.ScriptSingularityFn1RamCost/4),getCharacterInformation:r(a.ScriptSingularityFn1RamCost/4),hospitalize:r(a.ScriptSingularityFn1RamCost/4),isBusy:r(a.ScriptSingularityFn1RamCost/4),stopAction:r(a.ScriptSingularityFn1RamCost/2),upgradeHomeRam:r(a.ScriptSingularityFn2RamCost),upgradeHomeCores:r(a.ScriptSingularityFn2RamCost),getUpgradeHomeRamCost:r(a.ScriptSingularityFn2RamCost/2),getUpgradeHomeCoresCost:r(a.ScriptSingularityFn2RamCost/2),workForCompany:r(a.ScriptSingularityFn2RamCost),applyToCompany:r(a.ScriptSingularityFn2RamCost),quitJob:r(a.ScriptSingularityFn2RamCost),getCompanyRep:r(a.ScriptSingularityFn2RamCost/3),getCompanyFavor:r(a.ScriptSingularityFn2RamCost/3),getCompanyFavorGain:r(a.ScriptSingularityFn2RamCost/4),checkFactionInvitations:r(a.ScriptSingularityFn2RamCost),joinFaction:r(a.ScriptSingularityFn2RamCost),workForFaction:r(a.ScriptSingularityFn2RamCost),getFactionRep:r(a.ScriptSingularityFn2RamCost/3),getFactionFavor:r(a.ScriptSingularityFn2RamCost/3),getFactionFavorGain:r(a.ScriptSingularityFn2RamCost/4),donateToFaction:r(a.ScriptSingularityFn3RamCost),createProgram:r(a.ScriptSingularityFn3RamCost),commitCrime:r(a.ScriptSingularityFn3RamCost),getCrimeChance:r(a.ScriptSingularityFn3RamCost),getCrimeStats:r(a.ScriptSingularityFn3RamCost),getOwnedAugmentations:r(a.ScriptSingularityFn3RamCost),getAugmentationsFromFaction:r(a.ScriptSingularityFn3RamCost),getAugmentationCost:r(a.ScriptSingularityFn3RamCost),getAugmentationPrereq:r(a.ScriptSingularityFn3RamCost),getAugmentationPrice:r(a.ScriptSingularityFn3RamCost/2),getAugmentationRepReq:r(a.ScriptSingularityFn3RamCost/2),getAugmentationStats:r(a.ScriptSingularityFn3RamCost),purchaseAugmentation:r(a.ScriptSingularityFn3RamCost),softReset:r(a.ScriptSingularityFn3RamCost),installAugmentations:r(a.ScriptSingularityFn3RamCost),isFocused:r(.1),setFocus:r(.1),b1tflum3:r(16),destroyW0r1dD43m0n:r(32)},s={createGang:a.ScriptGangApiBaseRamCost/4,inGang:a.ScriptGangApiBaseRamCost/4,getMemberNames:a.ScriptGangApiBaseRamCost/4,getGangInformation:a.ScriptGangApiBaseRamCost/2,getOtherGangInformation:a.ScriptGangApiBaseRamCost/2,getMemberInformation:a.ScriptGangApiBaseRamCost/2,canRecruitMember:a.ScriptGangApiBaseRamCost/4,recruitMember:a.ScriptGangApiBaseRamCost/2,getTaskNames:a.ScriptGangApiBaseRamCost/4,getTaskStats:a.ScriptGangApiBaseRamCost/4,setMemberTask:a.ScriptGangApiBaseRamCost/2,getEquipmentNames:a.ScriptGangApiBaseRamCost/4,getEquipmentCost:a.ScriptGangApiBaseRamCost/2,getEquipmentType:a.ScriptGangApiBaseRamCost/2,getEquipmentStats:a.ScriptGangApiBaseRamCost/2,purchaseEquipment:a.ScriptGangApiBaseRamCost,ascendMember:a.ScriptGangApiBaseRamCost,getAscensionResult:a.ScriptGangApiBaseRamCost/2,setTerritoryWarfare:a.ScriptGangApiBaseRamCost/2,getChanceToWinClash:a.ScriptGangApiBaseRamCost,getBonusTime:0},l={getContractNames:a.ScriptBladeburnerApiBaseRamCost/10,getOperationNames:a.ScriptBladeburnerApiBaseRamCost/10,getBlackOpNames:a.ScriptBladeburnerApiBaseRamCost/10,getBlackOpRank:a.ScriptBladeburnerApiBaseRamCost/2,getGeneralActionNames:a.ScriptBladeburnerApiBaseRamCost/10,getSkillNames:a.ScriptBladeburnerApiBaseRamCost/10,startAction:a.ScriptBladeburnerApiBaseRamCost,stopBladeburnerAction:a.ScriptBladeburnerApiBaseRamCost/2,getCurrentAction:a.ScriptBladeburnerApiBaseRamCost/4,getActionTime:a.ScriptBladeburnerApiBaseRamCost,getActionCurrentTime:a.ScriptBladeburnerApiBaseRamCost,getActionEstimatedSuccessChance:a.ScriptBladeburnerApiBaseRamCost,getActionRepGain:a.ScriptBladeburnerApiBaseRamCost,getActionCountRemaining:a.ScriptBladeburnerApiBaseRamCost,getActionMaxLevel:a.ScriptBladeburnerApiBaseRamCost,getActionCurrentLevel:a.ScriptBladeburnerApiBaseRamCost,getActionAutolevel:a.ScriptBladeburnerApiBaseRamCost,setActionAutolevel:a.ScriptBladeburnerApiBaseRamCost,setActionLevel:a.ScriptBladeburnerApiBaseRamCost,getRank:a.ScriptBladeburnerApiBaseRamCost,getSkillPoints:a.ScriptBladeburnerApiBaseRamCost,getSkillLevel:a.ScriptBladeburnerApiBaseRamCost,getSkillUpgradeCost:a.ScriptBladeburnerApiBaseRamCost,upgradeSkill:a.ScriptBladeburnerApiBaseRamCost,getTeamSize:a.ScriptBladeburnerApiBaseRamCost,setTeamSize:a.ScriptBladeburnerApiBaseRamCost,getCityEstimatedPopulation:a.ScriptBladeburnerApiBaseRamCost,getCityCommunities:a.ScriptBladeburnerApiBaseRamCost,getCityChaos:a.ScriptBladeburnerApiBaseRamCost,getCity:a.ScriptBladeburnerApiBaseRamCost,switchCity:a.ScriptBladeburnerApiBaseRamCost,getStamina:a.ScriptBladeburnerApiBaseRamCost,joinBladeburnerFaction:a.ScriptBladeburnerApiBaseRamCost,joinBladeburnerDivision:a.ScriptBladeburnerApiBaseRamCost,getBonusTime:0},c={getPossibleLocations:a.ScriptInfiltrationGetLocations,getInfiltration:a.ScriptInfiltrationGetInfiltrations},f={attempt:a.ScriptCodingContractBaseRamCost,getContractType:a.ScriptCodingContractBaseRamCost/2,getData:a.ScriptCodingContractBaseRamCost/2,getDescription:a.ScriptCodingContractBaseRamCost/2,getNumTriesRemaining:a.ScriptCodingContractBaseRamCost/5},u={getNumSleeves:a.ScriptSleeveBaseRamCost,setToShockRecovery:a.ScriptSleeveBaseRamCost,setToSynchronize:a.ScriptSleeveBaseRamCost,setToCommitCrime:a.ScriptSleeveBaseRamCost,setToUniversityCourse:a.ScriptSleeveBaseRamCost,travel:a.ScriptSleeveBaseRamCost,setToCompanyWork:a.ScriptSleeveBaseRamCost,setToFactionWork:a.ScriptSleeveBaseRamCost,setToGymWorkout:a.ScriptSleeveBaseRamCost,getSleeveStats:a.ScriptSleeveBaseRamCost,getTask:a.ScriptSleeveBaseRamCost,getInformation:a.ScriptSleeveBaseRamCost,getSleeveAugmentations:a.ScriptSleeveBaseRamCost,getSleevePurchasableAugs:a.ScriptSleeveBaseRamCost,purchaseSleeveAug:a.ScriptSleeveBaseRamCost,setToBladeburnerAction:a.ScriptSleeveBaseRamCost},m={giftWidth:a.ScriptStanekWidth,giftHeight:a.ScriptStanekHeight,chargeFragment:a.ScriptStanekCharge,fragmentDefinitions:a.ScriptStanekFragmentDefinitions,activeFragments:a.ScriptStanekPlacedFragments,clearGift:a.ScriptStanekClear,canPlaceFragment:a.ScriptStanekCanPlace,placeFragment:a.ScriptStanekPlace,getFragment:a.ScriptStanekFragmentAt,removeFragment:a.ScriptStanekDeleteAt,acceptGift:a.ScriptStanekAcceptGift},h={args:void 0,enums:void 0,corporation:{createCorporation:0,hasUnlockUpgrade:0,getUnlockUpgradeCost:0,getUpgradeLevel:0,getUpgradeLevelCost:0,getExpandIndustryCost:0,getExpandCityCost:0,getInvestmentOffer:0,acceptInvestmentOffer:0,goPublic:0,bribe:0,getCorporation:0,getDivision:0,expandIndustry:0,expandCity:0,unlockUpgrade:0,levelUpgrade:0,issueDividends:0,buyBackShares:0,sellShares:0,getBonusTime:0,sellMaterial:0,sellProduct:0,discontinueProduct:0,setSmartSupply:0,setSmartSupplyUseLeftovers:0,buyMaterial:0,bulkPurchase:0,getWarehouse:0,getProduct:0,getMaterial:0,setMaterialMarketTA1:0,setMaterialMarketTA2:0,setProductMarketTA1:0,setProductMarketTA2:0,exportMaterial:0,cancelExportMaterial:0,purchaseWarehouse:0,upgradeWarehouse:0,makeProduct:0,limitMaterialProduction:0,limitProductProduction:0,getPurchaseWarehouseCost:0,getUpgradeWarehouseCost:0,hasWarehouse:0,assignJob:0,hireEmployee:0,upgradeOfficeSize:0,throwParty:0,buyCoffee:0,hireAdVert:0,research:0,getOffice:0,getEmployee:0,getHireAdVertCost:0,getHireAdVertCount:0,getResearchCost:0,hasResearched:0,setAutoJobAssignment:0,getOfficeSizeUpgradeCost:0},hacknet:{numNodes:0,purchaseNode:0,getPurchaseNodeCost:0,getNodeStats:0,upgradeLevel:0,upgradeRam:0,upgradeCore:0,upgradeCache:0,getLevelUpgradeCost:0,getRamUpgradeCost:0,getCoreUpgradeCost:0,getCacheUpgradeCost:0,numHashes:0,hashCost:0,spendHashes:0,maxNumNodes:0,hashCapacity:0,getHashUpgrades:0,getHashUpgradeLevel:0,getStudyMult:0,getTrainingMult:0},stock:i,singularity:o,...o,gang:s,bladeburner:l,infiltration:c,codingcontract:f,sleeve:u,stanek:m,ui:{getTheme:0,setTheme:0,resetTheme:0,getStyles:0,setStyles:0,resetStyles:0,getGameInfo:0,clearTerminal:0},grafting:{getAugmentationGraftPrice:3.75,getAugmentationGraftTime:3.75,getGraftableAugmentations:5,graftAugmentation:7.5},sprintf:0,vsprintf:0,scan:a.ScriptScanRamCost,hack:a.ScriptHackRamCost,hackAnalyzeThreads:a.ScriptHackAnalyzeRamCost,hackAnalyze:a.ScriptHackAnalyzeRamCost,hackAnalyzeSecurity:a.ScriptHackAnalyzeRamCost,hackAnalyzeChance:a.ScriptHackAnalyzeRamCost,sleep:0,asleep:0,share:2.4,getSharePower:.2,grow:a.ScriptGrowRamCost,growthAnalyze:a.ScriptGrowthAnalyzeRamCost,growthAnalyzeSecurity:a.ScriptGrowthAnalyzeRamCost,weaken:a.ScriptWeakenRamCost,weakenAnalyze:a.ScriptWeakenAnalyzeRamCost,print:0,printf:0,tprint:0,tprintf:0,clearLog:0,disableLog:0,enableLog:0,isLogEnabled:0,getScriptLogs:0,nuke:a.ScriptPortProgramRamCost,brutessh:a.ScriptPortProgramRamCost,ftpcrack:a.ScriptPortProgramRamCost,relaysmtp:a.ScriptPortProgramRamCost,httpworm:a.ScriptPortProgramRamCost,sqlinject:a.ScriptPortProgramRamCost,run:a.ScriptRunRamCost,exec:a.ScriptExecRamCost,spawn:a.ScriptSpawnRamCost,kill:a.ScriptKillRamCost,killall:a.ScriptKillRamCost,exit:0,atExit:0,scp:a.ScriptScpRamCost,ls:a.ScriptScanRamCost,ps:a.ScriptScanRamCost,getRecentScripts:a.ScriptRecentScriptsRamCost,hasRootAccess:a.ScriptHasRootAccessRamCost,getHostname:a.ScriptGetHostnameRamCost,getHackingLevel:a.ScriptGetHackingLevelRamCost,getHackingMultipliers:a.ScriptGetMultipliersRamCost,getHacknetMultipliers:a.ScriptGetMultipliersRamCost,getBitNodeMultipliers:a.ScriptGetMultipliersRamCost,getServer:a.ScriptGetMultipliersRamCost/2,getServerMoneyAvailable:a.ScriptGetServerRamCost,getServerSecurityLevel:a.ScriptGetServerRamCost,getServerBaseSecurityLevel:a.ScriptGetServerRamCost,getServerMinSecurityLevel:a.ScriptGetServerRamCost,getServerRequiredHackingLevel:a.ScriptGetServerRamCost,getServerMaxMoney:a.ScriptGetServerRamCost,getServerGrowth:a.ScriptGetServerRamCost,getServerNumPortsRequired:a.ScriptGetServerRamCost,getServerRam:a.ScriptGetServerRamCost,getServerMaxRam:a.ScriptGetServerMaxRam,getServerUsedRam:a.ScriptGetServerUsedRam,serverExists:a.ScriptGetServerRamCost,fileExists:a.ScriptFileExistsRamCost,isRunning:a.ScriptIsRunningRamCost,getPurchasedServerLimit:a.ScriptGetPurchasedServerLimit,getPurchasedServerMaxRam:a.ScriptGetPurchasedServerMaxRam,getPurchasedServerCost:a.ScriptGetPurchaseServerRamCost,purchaseServer:a.ScriptPurchaseServerRamCost,deleteServer:a.ScriptPurchaseServerRamCost,getPurchasedServers:a.ScriptPurchaseServerRamCost,write:0,tryWritePort:0,read:0,peek:0,clear:0,writePort:0,readPort:0,getPortHandle:0,rm:a.ScriptReadWriteRamCost,scriptRunning:a.ScriptArbScriptRamCost,scriptKill:a.ScriptArbScriptRamCost,getScriptName:0,getScriptRam:a.ScriptGetScriptRamCost,getHackTime:a.ScriptGetHackTimeRamCost,getGrowTime:a.ScriptGetHackTimeRamCost,getWeakenTime:a.ScriptGetHackTimeRamCost,getScriptIncome:a.ScriptGetScriptRamCost,getScriptExpGain:a.ScriptGetScriptRamCost,getRunningScript:a.ScriptGetRunningScriptRamCost,nFormat:0,tFormat:0,getTimeSinceLastAug:a.ScriptGetHackTimeRamCost,prompt:0,wget:0,getFavorToDonate:a.ScriptGetFavorToDonate,getPlayer:a.ScriptSingularityFn1RamCost/4,mv:0,getOwnedSourceFiles:a.ScriptGetOwnedSourceFiles,tail:0,toast:0,closeTail:0,clearPort:0,openDevMenu:0,alert:0,flags:0,exploit:0,bypass:0,alterReality:0,rainbow:0,heart:{break:0},formulas:{reputation:{calculateFavorToRep:0,calculateRepToFavor:0,repFromDonation:0},skills:{calculateSkill:0,calculateExp:0},hacking:{hackChance:0,hackExp:0,hackPercent:0,growPercent:0,hackTime:0,growTime:0,weakenTime:0},hacknetNodes:{moneyGainRate:0,levelUpgradeCost:0,ramUpgradeCost:0,coreUpgradeCost:0,hacknetNodeCost:0,constants:0},hacknetServers:{hashGainRate:0,levelUpgradeCost:0,ramUpgradeCost:0,coreUpgradeCost:0,cacheUpgradeCost:0,hashUpgradeCost:0,hacknetServerCost:0,constants:0},gang:{wantedPenalty:0,respectGain:0,wantedLevelGain:0,moneyGain:0,ascensionPointsGain:0,ascensionMultiplier:0}}},d=h;function p(e,...t){if(0===t.length)return console.warn("No arguments passed to getRamCost()"),0;let n=d[t[0]];for(let e=1;e<t.length;++e){if(null==n)return console.warn("Invalid function passed to getRamCost: "+t),0;const a=typeof n;if("function"===a||"number"===a)break;n=n[t[e]]}return"number"==typeof n?n:"function"==typeof n?n(e):(console.warn(`Unexpected type (${n}) for value [${t}]`),0)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var a=n(249),r=n(138);const i={};i[r.a.BladesIntuition]=new a.a({name:r.a.BladesIntuition,desc:"Each level of this skill increases your success chance for all Contracts, Operations, and BlackOps by 3%",baseCost:3,costInc:2.1,successChanceAll:3}),i[r.a.Cloak]=new a.a({name:r.a.Cloak,desc:"Each level of this skill increases your success chance in stealth-related Contracts, Operations, and BlackOps by 5.5%",baseCost:2,costInc:1.1,successChanceStealth:5.5}),i[r.a.ShortCircuit]=new a.a({name:r.a.ShortCircuit,desc:"Each level of this skill increases your success chance in Contracts, Operations, and BlackOps that involve retirement by 5.5%",baseCost:2,costInc:2.1,successChanceKill:5.5}),i[r.a.DigitalObserver]=new a.a({name:r.a.DigitalObserver,desc:"Each level of this skill increases your success chance in all Operations and BlackOps by 4%",baseCost:2,costInc:2.1,successChanceOperation:4}),i[r.a.Tracer]=new a.a({name:r.a.Tracer,desc:"Each level of this skill increases your success chance in all Contracts by 4%",baseCost:2,costInc:2.1,successChanceContract:4}),i[r.a.Overclock]=new a.a({name:r.a.Overclock,desc:"Each level of this skill decreases the time it takes to attempt a Contract, Operation, and BlackOp by 1% (Max Level: 90)",baseCost:3,costInc:1.4,maxLvl:90,actionTime:1}),i[r.a.Reaper]=new a.a({name:r.a.Reaper,desc:"Each level of this skill increases your effective combat stats for Bladeburner actions by 2%",baseCost:2,costInc:2.1,effStr:2,effDef:2,effDex:2,effAgi:2}),i[r.a.EvasiveSystem]=new a.a({name:r.a.EvasiveSystem,desc:"Each level of this skill increases your effective dexterity and agility for Bladeburner actions by 4%",baseCost:2,costInc:2.1,effDex:4,effAgi:4}),i[r.a.Datamancer]=new a.a({name:r.a.Datamancer,desc:"Each level of this skill increases your effectiveness in synthoid population analysis and investigation by 5%. This affects all actions that can potentially increase the accuracy of your synthoid population/community estimates.",baseCost:3,costInc:1,successChanceEstimate:5}),i[r.a.CybersEdge]=new a.a({name:r.a.CybersEdge,desc:"Each level of this skill increases your max stamina by 2%",baseCost:1,costInc:3,stamina:2}),i[r.a.HandsOfMidas]=new a.a({name:r.a.HandsOfMidas,desc:"Each level of this skill increases the amount of money you receive from Contracts by 10%",baseCost:2,costInc:2.5,money:10}),i[r.a.Hyperdrive]=new a.a({name:r.a.Hyperdrive,desc:"Each level of this skill increases the experience earned from Contracts, Operations, and BlackOps by 10%",baseCost:1,costInc:2.5,expGain:10})},function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return s})),n.d(t,"d",(function(){return l})),n.d(t,"a",(function(){return c}));var a=n(155),r=n(72),i=n(12);function o(e,t,n){if(isNaN(t)||t<=0||!(e instanceof a.a))return null;t=Math.min(t,e.maxShares);return n===r.a.Long?t*e.getAskPrice()+i.a.StockMarketCommission:t*e.getBidPrice()+i.a.StockMarketCommission}function s(e,t,n){if(isNaN(t)||t<=0||!(e instanceof a.a))return null;t=Math.min(t,e.maxShares);if(n===r.a.Long)return t*e.getBidPrice()-i.a.StockMarketCommission;return t*e.playerAvgShortPx+((e.playerAvgShortPx-e.getAskPrice())*t-i.a.StockMarketCommission)}function l(e,t){if(isNaN(t)||t<=0||!(e instanceof a.a))return;t=Math.min(t,e.maxShares);const n=e.shareTxUntilMovement;if(t<=n)return e.shareTxUntilMovement-=t,void(e.shareTxUntilMovement<=0&&(e.shareTxUntilMovement=e.shareTxForMovement,e.influenceForecast(.006),e.influenceForecastForecast(e.mv/100*.006)));const r=t-n;let i=1+Math.ceil(r/e.shareTxForMovement);e.shareTxUntilMovement=e.shareTxForMovement-(t-e.shareTxUntilMovement)%e.shareTxForMovement,(e.shareTxUntilMovement===e.shareTxForMovement||e.shareTxUntilMovement<=0)&&(++i,e.shareTxUntilMovement=e.shareTxForMovement);const o=.006*(i-1),s=o*(e.mv/100);e.influenceForecast(o),e.influenceForecastForecast(s)}function c(e,t,n){if(!(e instanceof a.a))return 0;const o=t===r.a.Long,s=n-i.a.StockMarketCommission,l=o?e.getAskPrice():e.getBidPrice();return Math.floor(s/l)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var a=n(187),r=n(1048);const i={};a.b.forEach(e=>{i[e.name]=new r.a(e.name,e.cost,e.upgType,e.mults)})},function(e,t,n){"use strict";function a(){return{hack:0,str:0,def:0,dex:0,agi:0,cha:0,int:0,money:0}}n.d(t,"a",(function(){return a}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o})),n.d(t,"d",(function(){return s})),n.d(t,"c",(function(){return l}));var a=n(21),r=n(12);function i(){return r.a.MarketData4SCost*a.a.FourSigmaMarketDataCost}function o(){return r.a.MarketDataTixApi4SCost*a.a.FourSigmaMarketDataApiCost}function s(){return r.a.WSEAccountCost}function l(){return r.a.TIXAPICost}},,,,,function(e,t,n){"use strict";n.d(t,"c",(function(){return f})),n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return m}));var a=n(12),r=n(2),i=n(44),o=n(137),s=n(27),l=n(6),c=n(328);function f(e){const t=((new Date).getTime()-r.a.lastUpdate)/1e3;let n=e.onlineRunningTime/14400;n>=1&&(n=1);for(const n of Object.keys(e.dataMap))if(e.dataMap.hasOwnProperty(n)){if(0==e.dataMap[n][2]||null==e.dataMap[n][2])continue;const a=Object(s.d)(n);if(null==a)continue;const c=Math.round(.5*e.dataMap[n][2]/e.onlineRunningTime*t);e.log(`Called on ${a.hostname} ${c} times while offline`);const f=Object(s.d)(e.server);if(null===f)throw new Error("getServer of null key?");if(!(a instanceof i.a))throw new Error("trying to grow a non-normal server");const u=Object(o.f)(a,c,r.a,f.cpuCores);e.log(`'${a.hostname}' grown by ${l.a.format(100*u-100,"0.000000%")} while offline`)}const c=n*(e.onlineExpGained/e.onlineRunningTime)*t;r.a.gainHackingExp(c),e.offlineRunningTime+=t,e.offlineExpGained+=c;for(const n of Object.keys(e.dataMap))if(e.dataMap.hasOwnProperty(n)){if(0==e.dataMap[n][3]||null==e.dataMap[n][3])continue;const r=Object(s.d)(n);if(null==r)continue;if(!(r instanceof i.a))throw new Error("trying to weaken a non-normal server");const o=Object(s.d)(e.server);if(null===o)throw new Error("getServer of null key?");const l=Math.round(.5*e.dataMap[n][3]/e.onlineRunningTime*t);e.log(`Called weaken() on ${r.hostname} ${l} times while offline`);const c=1+(o.cpuCores-1)/16;r.weaken(a.a.ServerWeakenAmount*l*c)}}function u(e,t,n){for(let a=0;a<n.runningScripts.length;++a)if(n.runningScripts[a].filename===e&&Object(c.a)(n.runningScripts[a].args,t))return n.runningScripts[a];return null}function m(e,t){for(let n=0;n<t.runningScripts.length;++n)if(t.runningScripts[n].pid===e)return t.runningScripts[n];return null}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return r}));const a=()=>({hacking_chance:1,hacking_speed:1,hacking_money:1,hacking_grow:1,hacking:1,hacking_exp:1,strength:1,strength_exp:1,defense:1,defense_exp:1,dexterity:1,dexterity_exp:1,agility:1,agility_exp:1,charisma:1,charisma_exp:1,hacknet_node_money:1,hacknet_node_purchase_cost:1,hacknet_node_ram_cost:1,hacknet_node_core_cost:1,hacknet_node_level_cost:1,company_rep:1,faction_rep:1,work_money:1,crime_success:1,crime_money:1,bladeburner_max_stamina:1,bladeburner_stamina_gain:1,bladeburner_analysis:1,bladeburner_success_chance:1}),r=(e,t)=>{var n,a,r,i,o,s,l,c,f,u,m,h,d,p,g,y,b,E,v,k,w,_,S,C,x,L,O,M,T,A;return{hacking_chance:e.hacking_chance*(null!==(n=t.hacking_chance)&&void 0!==n?n:1),hacking_speed:e.hacking_speed*(null!==(a=t.hacking_speed)&&void 0!==a?a:1),hacking_money:e.hacking_money*(null!==(r=t.hacking_money)&&void 0!==r?r:1),hacking_grow:e.hacking_grow*(null!==(i=t.hacking_grow)&&void 0!==i?i:1),hacking:e.hacking*(null!==(o=t.hacking)&&void 0!==o?o:1),hacking_exp:e.hacking_exp*(null!==(s=t.hacking_exp)&&void 0!==s?s:1),strength:e.strength*(null!==(l=t.strength)&&void 0!==l?l:1),strength_exp:e.strength_exp*(null!==(c=t.strength_exp)&&void 0!==c?c:1),defense:e.defense*(null!==(f=t.defense)&&void 0!==f?f:1),defense_exp:e.defense_exp*(null!==(u=t.defense_exp)&&void 0!==u?u:1),dexterity:e.dexterity*(null!==(m=t.dexterity)&&void 0!==m?m:1),dexterity_exp:e.dexterity_exp*(null!==(h=t.dexterity_exp)&&void 0!==h?h:1),agility:e.agility*(null!==(d=t.agility)&&void 0!==d?d:1),agility_exp:e.agility_exp*(null!==(p=t.agility_exp)&&void 0!==p?p:1),charisma:e.charisma*(null!==(g=t.charisma)&&void 0!==g?g:1),charisma_exp:e.charisma_exp*(null!==(y=t.charisma_exp)&&void 0!==y?y:1),hacknet_node_money:e.hacknet_node_money*(null!==(b=t.hacknet_node_money)&&void 0!==b?b:1),hacknet_node_purchase_cost:e.hacknet_node_purchase_cost*(null!==(E=t.hacknet_node_purchase_cost)&&void 0!==E?E:1),hacknet_node_ram_cost:e.hacknet_node_ram_cost*(null!==(v=t.hacknet_node_ram_cost)&&void 0!==v?v:1),hacknet_node_core_cost:e.hacknet_node_core_cost*(null!==(k=t.hacknet_node_core_cost)&&void 0!==k?k:1),hacknet_node_level_cost:e.hacknet_node_level_cost*(null!==(w=t.hacknet_node_level_cost)&&void 0!==w?w:1),company_rep:e.company_rep*(null!==(_=t.company_rep)&&void 0!==_?_:1),faction_rep:e.faction_rep*(null!==(S=t.faction_rep)&&void 0!==S?S:1),work_money:e.work_money*(null!==(C=t.work_money)&&void 0!==C?C:1),crime_success:e.crime_success*(null!==(x=t.crime_success)&&void 0!==x?x:1),crime_money:e.crime_money*(null!==(L=t.crime_money)&&void 0!==L?L:1),bladeburner_max_stamina:e.bladeburner_max_stamina*(null!==(O=t.bladeburner_max_stamina)&&void 0!==O?O:1),bladeburner_stamina_gain:e.bladeburner_stamina_gain*(null!==(M=t.bladeburner_stamina_gain)&&void 0!==M?M:1),bladeburner_analysis:e.bladeburner_analysis*(null!==(T=t.bladeburner_analysis)&&void 0!==T?T:1),bladeburner_success_chance:e.bladeburner_success_chance*(null!==(A=t.bladeburner_success_chance)&&void 0!==A?A:1)}}},,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var a=n(1039),r=n(1040);const i={};for(const e of r.a)i[(o=e).name]=new a.a(o);var o},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var a=n(1046),r=n(610);const i={};a.a.forEach(e=>{i[e.name]=new r.a(e.name,e.desc,e.isHacking,e.isCombat,e.params)})},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var a=n(204),r=n(183),i=n(22),o=n(271);function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class l{constructor(e={}){var t;s(this,"level",1),s(this,"sizeUsed",0),s(this,"smartSupplyEnabled",!1),s(this,"smartSupplyUseLeftovers",{}),s(this,"smartSupplyStore",0),this.loc=e.loc?e.loc:"",this.size=e.size?e.size:0,this.materials={Water:new a.a({name:"Water"}),Energy:new a.a({name:"Energy"}),Food:new a.a({name:"Food"}),Plants:new a.a({name:"Plants"}),Metal:new a.a({name:"Metal"}),Hardware:new a.a({name:"Hardware"}),Chemicals:new a.a({name:"Chemicals"}),Drugs:new a.a({name:"Drugs"}),Robots:new a.a({name:"Robots"}),AICores:new a.a({name:"AI Cores"}),RealEstate:new a.a({name:"Real Estate"})},this.smartSupplyUseLeftovers={Water:!0,Energy:!0,Food:!0,Plants:!0,Metal:!0,Hardware:!0,Chemicals:!0,Drugs:!0,Robots:!0,AICores:!0,RealEstate:!0},e.corp&&e.industry&&this.updateSize(e.corp,e.industry),null!==(t=e.corp)&&void 0!==t&&t.unlockUpgrades[1]&&(this.smartSupplyEnabled=!0)}updateMaterialSizeUsed(){this.sizeUsed=0;for(const e of Object.keys(this.materials)){const t=this.materials[e];r.a.hasOwnProperty(e)&&(this.sizeUsed+=t.qty*r.a[e])}this.sizeUsed>this.size&&console.warn("Warehouse size used greater than capacity, something went wrong")}updateSize(e,t){try{this.size=100*this.level*e.getStorageMultiplier()*t.getStorageMultiplier()}catch(e){Object(o.a)(e)}}toJSON(){return Object(i.b)("Warehouse",this)}static fromJSON(e){return Object(i.a)(l,e.data)}}i.c.constructors.Warehouse=l},function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"c",(function(){return m})),n.d(t,"d",(function(){return h})),n.d(t,"b",(function(){return d}));var a=n(231),r=n(72),i=n(12),o=n(2),s=n(6),l=n(20),c=n(14),f=n(0);function u(e,t,n=null,u={}){if((t=Math.round(t))<=0)return!1;if(null==e||isNaN(t))return n?n.log("stock.buy",()=>`Invalid arguments: stock='${e}' shares='${t}'`):!0!==u.suppressDialog&&Object(c.a)("Failed to buy stock. This may be a bug, contact developer"),!1;const m=Object(a.b)(e,t,r.a.Long);if(null==m)return!1;if(o.a.money<m)return n?n.log("stock.buy",()=>`You do not have enough money to purchase this position. You need ${s.a.formatMoney(m)}.`):!0!==u.suppressDialog&&Object(c.a)(f.createElement(f.Fragment,null,"You do not have enough money to purchase this. You need ",f.createElement(l.a,{money:m}))),!1;if(t+e.playerShares+e.playerShortShares>e.maxShares)return n?n.log("stock.buy",()=>`Purchasing '${t+e.playerShares+e.playerShortShares}' shares would exceed ${e.symbol}'s maximum (${e.maxShares}) number of shares`):!0!==u.suppressDialog&&Object(c.a)(`You cannot purchase this many shares. ${e.symbol} has a maximum of ${s.a.formatShares(e.maxShares)} shares.`),!1;const h=e.playerShares*e.playerAvgPx;o.a.loseMoney(m,"stock");const d=h+m-i.a.StockMarketCommission;if(e.playerShares=Math.round(e.playerShares+t),e.playerAvgPx=d/e.playerShares,Object(a.d)(e,t),null!=u.rerenderFn&&"function"==typeof u.rerenderFn&&u.rerenderFn(),n){const a=`Bought ${s.a.formatShares(t)} shares of ${e.symbol} for ${s.a.formatMoney(m)}. Paid ${s.a.formatMoney(i.a.StockMarketCommission)} in commission fees.`;n.log("stock.buy",()=>a)}else!0!==u.suppressDialog&&Object(c.a)(f.createElement(f.Fragment,null,"Bought ",s.a.formatShares(t)," shares of ",e.symbol," for ",f.createElement(l.a,{money:m}),". Paid"," ",f.createElement(l.a,{money:i.a.StockMarketCommission})," in commission fees."));return!0}function m(e,t,n=null,i={}){if(null==e||t<0||isNaN(t))return n?n.log("stock.sell",()=>`Invalid arguments: stock='${e}' shares='${t}'`):!0!==i.suppressDialog&&Object(c.a)("Failed to sell stock. This is probably due to an invalid quantity. Otherwise, this may be a bug, contact developer"),!1;if((t=Math.round(t))>e.playerShares&&(t=e.playerShares),0===t)return!1;const u=Object(a.c)(e,t,r.a.Long);if(null==u)return!1;let m=u-e.playerAvgPx*t;if(isNaN(m)&&(m=0),o.a.gainMoney(u,"stock"),n&&(n.scriptRef.onlineMoneyMade+=m,o.a.scriptProdSinceLastAug+=m),e.playerShares=Math.round(e.playerShares-t),0===e.playerShares&&(e.playerAvgPx=0),Object(a.d)(e,t),null!=i.rerenderFn&&"function"==typeof i.rerenderFn&&i.rerenderFn(),n){const a=`Sold ${s.a.formatShares(t)} shares of ${e.symbol}. After commissions, you gained a total of ${s.a.formatMoney(u)}.`;n.log("stock.sell",()=>a)}else!0!==i.suppressDialog&&Object(c.a)(f.createElement(f.Fragment,null,"Sold ",s.a.formatShares(t)," shares of ",e.symbol,". After commissions, you gained a total of"," ",f.createElement(l.a,{money:u}),"."));return!0}function h(e,t,n=null,u={}){if((t=Math.round(t))<=0)return!1;if(null==e||isNaN(t))return n?n.log("stock.short",()=>`Invalid arguments: stock='${e}' shares='${t}'`):!0!==u.suppressDialog&&Object(c.a)("Failed to initiate a short position in a stock. This is probably due to an invalid quantity. Otherwise, this may be a bug, so contact developer"),!1;const m=Object(a.b)(e,t,r.a.Short);if(null==m)return!1;if(o.a.money<m)return n?n.log("stock.short",()=>"You do not have enough money to purchase this short position. You need "+s.a.formatMoney(m)):!0!==u.suppressDialog&&Object(c.a)(f.createElement(f.Fragment,null,"You do not have enough money to purchase this short position. You need ",f.createElement(l.a,{money:m}))),!1;if(t+e.playerShares+e.playerShortShares>e.maxShares)return n?n.log("stock.short",()=>`This '${t+e.playerShares+e.playerShortShares}' short shares would exceed ${e.symbol}'s maximum (${e.maxShares}) number of shares.`):!0!==u.suppressDialog&&Object(c.a)(`You cannot purchase this many shares. ${e.symbol} has a maximum of ${e.maxShares} shares.`),!1;const h=e.playerShortShares*e.playerAvgShortPx;o.a.loseMoney(m,"stock");const d=h+m-i.a.StockMarketCommission;if(e.playerShortShares=Math.round(e.playerShortShares+t),e.playerAvgShortPx=d/e.playerShortShares,Object(a.d)(e,t),null!=u.rerenderFn&&"function"==typeof u.rerenderFn&&u.rerenderFn(),n){const a=`Bought a short position of ${s.a.formatShares(t)} shares of ${e.symbol} for ${s.a.formatMoney(m)}. Paid ${s.a.formatMoney(i.a.StockMarketCommission)} in commission fees.`;n.log("stock.short",()=>a)}else u.suppressDialog||Object(c.a)(f.createElement(f.Fragment,null,"Bought a short position of ",s.a.formatShares(t)," shares of ",e.symbol," for"," ",f.createElement(l.a,{money:m}),". Paid ",f.createElement(l.a,{money:i.a.StockMarketCommission})," in commission fees."));return!0}function d(e,t,n=null,i={}){if(null==e||isNaN(t)||t<0)return n?n.log("stock.sellShort",()=>`Invalid arguments: stock='${e}' shares='${t}'`):i.suppressDialog||Object(c.a)("Failed to sell a short position in a stock. This is probably due to an invalid quantity. Otherwise, this may be a bug, so contact developer"),!1;if((t=Math.round(t))>e.playerShortShares&&(t=e.playerShortShares),0===t)return!1;const u=t*e.playerAvgShortPx,m=Object(a.c)(e,t,r.a.Short);if(null==m||isNaN(m)||null==u)return n?n.log("stock.sellShort",()=>"Failed to sell short position in a stock. This is probably either due to invalid arguments, or a bug"):i.suppressDialog||Object(c.a)("Failed to sell short position in a stock. This is probably either due to invalid arguments, or a bug"),!1;let h=m-u;if(isNaN(h)&&(h=0),o.a.gainMoney(m,"stock"),n&&(n.scriptRef.onlineMoneyMade+=h,o.a.scriptProdSinceLastAug+=h),e.playerShortShares=Math.round(e.playerShortShares-t),0===e.playerShortShares&&(e.playerAvgShortPx=0),Object(a.d)(e,t),null!=i.rerenderFn&&"function"==typeof i.rerenderFn&&i.rerenderFn(),n){const a=`Sold your short position of ${s.a.formatShares(t)} shares of ${e.symbol}. After commissions, you gained a total of `+s.a.formatMoney(m);n.log("stock.sellShort",()=>a)}else i.suppressDialog||Object(c.a)(f.createElement(f.Fragment,null,"Sold your short position of ",s.a.formatShares(t)," shares of ",e.symbol,". After commissions, you gained a total of ",f.createElement(l.a,{money:m})));return!0}},function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return l})),n.d(t,"a",(function(){return c})),n.d(t,"d",(function(){return f}));var a=n(0),r=n.n(a),i=n(5),o=n(384);class s{constructor(e,t){i.a.TimestampsFormat&&(e="["+Object(o.a)(i.a.TimestampsFormat)+"] "+e),this.text=e,this.color=t}}class l{constructor(e){i.a.TimestampsFormat&&(e=r.a.createElement(r.a.Fragment,null,"[",Object(o.a)(i.a.TimestampsFormat),"] ",e)),this.raw=e}}class c{constructor(e,t){i.a.TimestampsFormat&&(e="["+Object(o.a)(i.a.TimestampsFormat)+"] "+e),this.hostname=t,this.dashes=e}}class f{constructor(e,t,n){this.time=e,this.timeLeft=e,this.action=t,this.server=n}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var a=n(21);function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class i{constructor(e={name:"foo",desc:"foo"}){if(r(this,"baseCost",1),r(this,"costInc",1),r(this,"maxLvl",0),r(this,"successChanceAll",0),r(this,"successChanceStealth",0),r(this,"successChanceKill",0),r(this,"successChanceContract",0),r(this,"successChanceOperation",0),r(this,"successChanceEstimate",0),r(this,"actionTime",0),r(this,"effHack",0),r(this,"effStr",0),r(this,"effDef",0),r(this,"effDex",0),r(this,"effAgi",0),r(this,"effCha",0),r(this,"stamina",0),r(this,"money",0),r(this,"expGain",0),!e.name)throw new Error("Failed to initialize Bladeburner Skill. No name was specified in ctor");if(!e.desc)throw new Error("Failed to initialize Bladeburner Skills. No desc was specified in ctor");this.name=e.name,this.desc=e.desc,this.baseCost=e.baseCost?e.baseCost:1,this.costInc=e.costInc?e.costInc:1,e.maxLvl&&(this.maxLvl=e.maxLvl),e.successChanceAll&&(this.successChanceAll=e.successChanceAll),e.successChanceStealth&&(this.successChanceStealth=e.successChanceStealth),e.successChanceKill&&(this.successChanceKill=e.successChanceKill),e.successChanceContract&&(this.successChanceContract=e.successChanceContract),e.successChanceOperation&&(this.successChanceOperation=e.successChanceOperation),e.successChanceEstimate&&(this.successChanceEstimate=e.successChanceEstimate),e.actionTime&&(this.actionTime=e.actionTime),e.effHack&&(this.effHack=e.effHack),e.effStr&&(this.effStr=e.effStr),e.effDef&&(this.effDef=e.effDef),e.effDex&&(this.effDex=e.effDex),e.effAgi&&(this.effAgi=e.effAgi),e.effCha&&(this.effCha=e.effCha),e.stamina&&(this.stamina=e.stamina),e.money&&(this.money=e.money),e.expGain&&(this.expGain=e.expGain)}calculateCost(e){return Math.floor((this.baseCost+e*this.costInc)*a.a.BladeburnerSkillCost)}getMultiplier(e){return"successChanceAll"===e?this.successChanceAll:"successChanceStealth"===e?this.successChanceStealth:"successChanceKill"===e?this.successChanceKill:"successChanceContract"===e?this.successChanceContract:"successChanceOperation"===e?this.successChanceOperation:"successChanceEstimate"===e?this.successChanceEstimate:"actionTime"===e?this.actionTime:"effHack"===e?this.effHack:"effStr"===e?this.effStr:"effDef"===e?this.effDef:"effDex"===e?this.effDex:"effAgi"===e?this.effAgi:"effCha"===e?this.effCha:"stamina"===e?this.stamina:"money"===e?this.money:"expGain"===e?this.expGain:0}}},function(e,t,n){"use strict";let a;n.d(t,"a",(function(){return a})),function(e){e.None="",e.Shoplift="shoplift",e.RobStore="rob a store",e.Mug="mug someone",e.Larceny="commit larceny",e.Drugs="deal drugs",e.BondForgery="forge corporate bonds",e.TraffickArms="traffick illegal arms",e.Homicide="commit homicide",e.GrandTheftAuto="commit grand theft auto",e.Kidnap="kidnap someone for ransom",e.Assassination="assassinate a high-profile target",e.Heist="pull off the ultimate heist"}(a||(a={}))},,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var a=n(0),r=n.n(a),i=n(37),o=n(8),s=n(1);function l(e){return r.a.createElement(i.a,{open:e.open,onClose:e.onClose},r.a.createElement(r.a.Fragment,null,r.a.createElement(s.a,null,e.confirmationText),r.a.createElement(o.a,{onClick:()=>{e.onConfirm()}},"Confirm"),e.additionalButton&&r.a.createElement(r.a.Fragment,null,e.additionalButton)))}},function(e,t,n){"use strict";function a(e){const t=Object.assign({},{progress:0,totalTicks:20},e);t.progress=Math.max(Math.min(t.progress,1),0);const n=Math.max(Math.floor(t.progress/(1/t.totalTicks)),1),a=Math.max(t.totalTicks-n,0);return`[${"|".repeat(n)}${"-".repeat(a)}]`}n.d(t,"a",(function(){return a}))},function(e,t,n){"use strict";function a(){try{return"c9432e4c"}catch(e){}return"DEV"}n.d(t,"a",(function(){return a}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var a=n(375),r=n(31),i=n(354),o=n(22);const s={name:"",info:"",companyPositions:{},expMultiplier:1,salaryMultiplier:1,jobStatReqOffset:0};class l{constructor(e=s){this.name=e.name,this.info=e.info,this.companyPositions=e.companyPositions,this.expMultiplier=e.expMultiplier,this.salaryMultiplier=e.salaryMultiplier,this.jobStatReqOffset=e.jobStatReqOffset,this.isPlayerEmployed=!1,this.playerReputation=1,this.favor=0,this.isMegacorp=!1,e.isMegacorp&&(this.isMegacorp=!0)}hasPosition(e){return e instanceof a.a?null!=this.companyPositions[e.name]:null!=this.companyPositions[e]}hasAgentPositions(){return null!=this.companyPositions[r.a[0]]}hasBusinessConsultantPositions(){return null!=this.companyPositions[r.c[0]]}hasBusinessPositions(){return null!=this.companyPositions[r.b[0]]}hasEmployeePositions(){return null!=this.companyPositions[r.e[1]]}hasITPositions(){return null!=this.companyPositions[r.d[0]]}hasSecurityPositions(){return null!=this.companyPositions[r.h[2]]}hasSoftwareConsultantPositions(){return null!=this.companyPositions[r.k[0]]}hasSoftwarePositions(){return null!=this.companyPositions[r.j[0]]}hasWaiterPositions(){return null!=this.companyPositions[r.e[0]]}gainFavor(){null==this.favor&&(this.favor=0),this.favor+=this.getFavorGain()}getFavorGain(){null==this.favor&&(this.favor=0);const e=Math.max(0,Object(i.a)(this.favor))+this.playerReputation;return Object(i.b)(e)-this.favor}toJSON(){return Object(o.b)("Company",this)}static fromJSON(e){return Object(o.a)(l,e.data)}}o.c.constructors.Company=l},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var a=n(535),r=n(22),i=n(536);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}let s=0;class l{constructor(e=null,t="",n="",a="",r=[]){o(this,"code",""),o(this,"filename",""),o(this,"url",""),o(this,"module",""),o(this,"dependencies",[]),o(this,"dependents",[]),o(this,"ramUsage",0),o(this,"server",""),this.filename=t,this.code=n,this.ramUsage=0,this.server=a,this.module="",this.moduleSequenceNumber=++s,""!==this.code&&null!==e&&this.updateRamUsage(e,r)}download(){const e=this.filename,t=new Blob([this.code],{type:"text/plain"}),n=window.navigator;if(n.msSaveOrOpenBlob)n.msSaveOrOpenBlob(t,e);else{const n=document.createElement("a"),a=URL.createObjectURL(t);n.href=a,n.download=e,document.body.appendChild(n),n.click(),setTimeout((function(){document.body.removeChild(n),window.URL.revokeObjectURL(a)}),0)}}markUpdated(){this.module="",this.moduleSequenceNumber=++s}saveScript(e,t,n,a,r){this.code=l.formatCode(n),this.filename=t,this.server=a,this.updateRamUsage(e,r),this.markUpdated();for(const e of this.dependents){const[t]=r.filter(t=>t.filename===e.filename&&t.server==e.server);null!==t&&t.markUpdated()}}async updateRamUsage(e,t){const n=await Object(a.a)(e,this.code,t);n.cost>0&&(this.ramUsage=Object(i.a)(n.cost),this.ramUsageEntries=n.entries),this.markUpdated()}imports(){return[]}toJSON(){return Object(r.b)("Script",this)}static fromJSON(e){const t=Object(r.a)(l,e.data);return t.url="",t.dependents=[],t}static formatCode(e){return e.replace(/^\s+|\s+$/g,"")}}r.c.constructors.Script=l},,function(e,t,n){"use strict";function a(e){const t=[];for(let n=0;n<e.length;++n){let r=e[n];Array.isArray(r)?r=a(r):"string"==typeof r&&(r=`"${r}"`),t.push(r)}return`[${t.join(", ")}]`}n.d(t,"a",(function(){return a}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var a=n(312),r=n(60);const i={BruteSSHProgram:new a.a(r.a.BruteSSHProgram.name,5e5,"Opens up SSH Ports."),FTPCrackProgram:new a.a(r.a.FTPCrackProgram.name,15e5,"Opens up FTP Ports."),RelaySMTPProgram:new a.a(r.a.RelaySMTPProgram.name,5e6,"Opens up SMTP Ports."),HTTPWormProgram:new a.a(r.a.HTTPWormProgram.name,3e7,"Opens up HTTP Ports."),SQLInjectProgram:new a.a(r.a.SQLInjectProgram.name,25e7,"Opens up SQL Ports."),ServerProfiler:new a.a(r.a.ServerProfiler.name,5e5,"Displays detailed information about a server."),DeepscanV1:new a.a(r.a.DeepscanV1.name,5e5,"Enables 'scan-analyze' with a depth up to 5."),DeepscanV2:new a.a(r.a.DeepscanV2.name,25e6,"Enables 'scan-analyze' with a depth up to 10."),AutolinkProgram:new a.a(r.a.AutoLink.name,1e6,"Enables direct connect via 'scan-analyze'."),FormulasProgram:new a.a(r.a.Formulas.name,5e9,"Unlock access to the formulas API.")}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var a=n(472);const r={},i=["Training","Field Analysis","Recruitment","Diplomacy","Hyperbolic Regeneration Chamber","Incite Violence"];for(const e of i)r[e]=new a.a({name:e})},function(e,t,n){"use strict";let a;n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return r})),function(e){e.Clubs="clubs",e.Diamonds="diamonds",e.Hearts="hearts",e.Spades="spades"}(a||(a={}));class r{constructor(e,t){if(this.value=e,this.suit=t,e<1||e>13)throw new Error("Card instantiated with improper value: "+e)}formatValue(){switch(this.value){case 1:return"A";case 11:return"J";case 12:return"Q";case 13:return"K";default:return""+this.value}}isRedSuit(){return this.suit===a.Hearts||this.suit===a.Diamonds}getStringRepresentation(){return`${this.formatValue()} of ${this.suit}`}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var a=n(22);function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class i{constructor(e={}){r(this,"name",""),r(this,"type",-1),e.name&&(this.name=e.name),e.type&&(this.type=e.type)}toJSON(){return Object(a.b)("ActionIdentifier",this)}static fromJSON(e){return Object(a.a)(i,e.data)}}a.c.constructors.ActionIdentifier=i},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var a=n(153);function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class i{constructor(e,t){r(this,"lvl",1),r(this,"owned",!1);const n="BitNode"+e,i=a.a[n];if(null==i)throw new Error("Invalid Bit Node for this Source File");this.n=e,this.name=`Source-File ${e}: ${i.name}`,this.info=t}}},,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var a=n(0),r=n.n(a),i=n(790);function o({children:e}){return r.a.createElement(i.MathJaxContext,{version:3,src:"dist/ext/MathJax-3.2.0/es5/tex-chtml.js"},r.a.createElement(i.MathJax,null,e))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var a=n(14);function r(e){console.error(e);let t="",n="UNKNOWN FILE NAME",r="UNKNOWN LINE NUMBER";var i,o,s,l;"object"==typeof(l=e)&&null!=l&&l.hasOwnProperty("fileName")&&l.hasOwnProperty("lineNumber")?(n=null!==(i=e.fileName)&&void 0!==i?i:n,r=null!==(o=null===(s=e.lineNumber)||void 0===s?void 0:s.toString())&&void 0!==o?o:r):t=String(e);Object(a.a)("Caught an exception: "+t+"<br><br>Filename: "+n+"<br><br>Line Number: "+r+"<br><br>This is a bug, please report to game developer with this message as well as details about how to reproduce the bug.<br><br>If you want to be safe, I suggest refreshing the game WITHOUT saving so that your save doesn't get corrupted")}},function(e,t,n){"use strict";let a;n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return r})),function(e){e[e.Export=0]="Export",e[e.SmartSupply=1]="SmartSupply",e[e.MarketResearchDemand=2]="MarketResearchDemand",e[e.MarketDataCompetition=3]="MarketDataCompetition",e[e.VeChain=4]="VeChain",e[e.ShadyAccounting=5]="ShadyAccounting",e[e.GovernmentPartnership=6]="GovernmentPartnership",e[e.WarehouseAPI=7]="WarehouseAPI",e[e.OfficeAPI=8]="OfficeAPI"}(a||(a={}));const r={[a.Export]:{index:0,price:2e10,name:"Export",desc:"Develop infrastructure to export your materials to your other facilities. This allows you to move materials around between different divisions and cities."},[a.SmartSupply]:{index:1,price:25e9,name:"Smart Supply",desc:"Use advanced AI to anticipate your supply needs. This allows you to purchase exactly however many materials you need for production."},[a.MarketResearchDemand]:{index:2,price:5e9,name:"Market Research - Demand",desc:"Mine and analyze market data to determine the demand of all resources. The demand attribute, which affects sales, will be displayed for every material and product."},[a.MarketDataCompetition]:{index:3,price:5e9,name:"Market Data - Competition",desc:"Mine and analyze market data to determine how much competition there is on the market for all resources. The competition attribute, which affects sales, will be displayed for every material and product."},[a.VeChain]:{index:4,price:1e10,name:"VeChain",desc:"Use AI and blockchain technology to identify where you can improve your supply chain systems. This upgrade will allow you to view a wide array of useful statistics about your Corporation."},[a.ShadyAccounting]:{index:5,price:5e14,name:"Shady Accounting",desc:"Utilize unscrupulous accounting practices and pay off government officials to save money on taxes. This reduces the dividend tax rate by 5%."},[a.GovernmentPartnership]:{index:6,price:2e15,name:"Government Partnership",desc:"Help national governments further their agendas in exchange for lowered taxes. This reduces the dividend tax rate by 10%"},[a.WarehouseAPI]:{index:7,price:5e10,name:"Warehouse API",desc:"Enables the warehouse API."},[a.OfficeAPI]:{index:8,price:5e10,name:"Office API",desc:"Enables the office API."}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return o}));var a=n(73);const r=e=>{const t=[];for(const[e,n]of Object.entries(a.a))n.isSpecial||t.push(e);return t.filter(t=>!e.hasAugmentation(t))},i=e=>1+(e.getIntelligenceBonus(3)-1)/3,o=(e,t)=>t.time/i(e)},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var a=n(141),r=n(57);const i={};i[r.a.OperationTyphoon]=new a.a({name:r.a.OperationTyphoon,baseDifficulty:2e3,reqdRank:2500,rankGain:50,rankLoss:10,hpLoss:100,weights:{hack:.1,str:.2,def:.2,dex:.2,agi:.2,cha:0,int:.1},decays:{hack:.6,str:.8,def:.8,dex:.8,agi:.8,cha:0,int:.75},isKill:!0}),i[r.a.OperationZero]=new a.a({name:r.a.OperationZero,baseDifficulty:2500,reqdRank:5e3,rankGain:60,rankLoss:15,hpLoss:50,weights:{hack:.2,str:.15,def:.15,dex:.2,agi:.2,cha:0,int:.1},decays:{hack:.6,str:.8,def:.8,dex:.8,agi:.8,cha:0,int:.75},isStealth:!0}),i[r.a.OperationX]=new a.a({name:r.a.OperationX,baseDifficulty:3e3,reqdRank:7500,rankGain:75,rankLoss:15,hpLoss:100,weights:{hack:.1,str:.2,def:.2,dex:.2,agi:.2,cha:0,int:.1},decays:{hack:.6,str:.8,def:.8,dex:.8,agi:.8,cha:0,int:.75},isKill:!0}),i[r.a.OperationTitan]=new a.a({name:r.a.OperationTitan,baseDifficulty:4e3,reqdRank:1e4,rankGain:100,rankLoss:20,hpLoss:100,weights:{hack:.1,str:.2,def:.2,dex:.2,agi:.2,cha:0,int:.1},decays:{hack:.6,str:.8,def:.8,dex:.8,agi:.8,cha:0,int:.75},isKill:!0}),i[r.a.OperationAres]=new a.a({name:r.a.OperationAres,baseDifficulty:5e3,reqdRank:12500,rankGain:125,rankLoss:20,hpLoss:200,weights:{hack:0,str:.25,def:.25,dex:.25,agi:.25,cha:0,int:0},decays:{hack:0,str:.8,def:.8,dex:.8,agi:.8,cha:0,int:.75},isKill:!0}),i[r.a.OperationArchangel]=new a.a({name:r.a.OperationArchangel,baseDifficulty:7500,reqdRank:15e3,rankGain:200,rankLoss:20,hpLoss:25,weights:{hack:0,str:.2,def:.2,dex:.3,agi:.3,cha:0,int:0},decays:{hack:0,str:.8,def:.8,dex:.8,agi:.8,cha:0,int:.75},isKill:!0}),i[r.a.OperationJuggernaut]=new a.a({name:r.a.OperationJuggernaut,baseDifficulty:1e4,reqdRank:2e4,rankGain:300,rankLoss:40,hpLoss:300,weights:{hack:0,str:.25,def:.25,dex:.25,agi:.25,cha:0,int:0},decays:{hack:0,str:.8,def:.8,dex:.8,agi:.8,cha:0,int:.75},isKill:!0}),i[r.a.OperationRedDragon]=new a.a({name:r.a.OperationRedDragon,baseDifficulty:12500,reqdRank:25e3,rankGain:500,rankLoss:50,hpLoss:500,weights:{hack:.05,str:.2,def:.2,dex:.25,agi:.25,cha:0,int:.05},decays:{hack:.6,str:.8,def:.8,dex:.8,agi:.8,cha:0,int:.75},isKill:!0}),i[r.a.OperationK]=new a.a({name:r.a.OperationK,baseDifficulty:15e3,reqdRank:3e4,rankGain:750,rankLoss:60,hpLoss:1e3,weights:{hack:.05,str:.2,def:.2,dex:.25,agi:.25,cha:0,int:.05},decays:{hack:.6,str:.8,def:.8,dex:.8,agi:.8,cha:0,int:.75},isKill:!0}),i[r.a.OperationDeckard]=new a.a({name:r.a.OperationDeckard,baseDifficulty:2e4,reqdRank:4e4,rankGain:1e3,rankLoss:75,hpLoss:200,weights:{hack:0,str:.24,def:.24,dex:.24,agi:.24,cha:0,int:.04},decays:{hack:0,str:.8,def:.8,dex:.8,agi:.8,cha:0,int:.75},isKill:!0}),i[r.a.OperationTyrell]=new a.a({name:r.a.OperationTyrell,baseDifficulty:25e3,reqdRank:5e4,rankGain:1500,rankLoss:100,hpLoss:500,weights:{hack:.1,str:.2,def:.2,dex:.2,agi:.2,cha:0,int:.1},decays:{hack:.6,str:.8,def:.8,dex:.8,agi:.8,cha:0,int:.75},isKill:!0}),i[r.a.OperationWallace]=new a.a({name:r.a.OperationWallace,baseDifficulty:3e4,reqdRank:75e3,rankGain:2e3,rankLoss:150,hpLoss:1500,weights:{hack:0,str:.24,def:.24,dex:.24,agi:.24,cha:0,int:.04},decays:{hack:.6,str:.8,def:.8,dex:.8,agi:.8,cha:0,int:.75},isKill:!0}),i[r.a.OperationShoulderOfOrion]=new a.a({name:r.a.OperationShoulderOfOrion,baseDifficulty:35e3,reqdRank:1e5,rankGain:2500,rankLoss:500,hpLoss:1500,weights:{hack:.1,str:.2,def:.2,dex:.2,agi:.2,cha:0,int:.1},decays:{hack:.6,str:.8,def:.8,dex:.8,agi:.8,cha:0,int:.75},isStealth:!0}),i[r.a.OperationHyron]=new a.a({name:r.a.OperationHyron,baseDifficulty:4e4,reqdRank:125e3,rankGain:3e3,rankLoss:1e3,hpLoss:500,weights:{hack:.1,str:.2,def:.2,dex:.2,agi:.2,cha:0,int:.1},decays:{hack:.6,str:.8,def:.8,dex:.8,agi:.8,cha:0,int:.75},isKill:!0}),i[r.a.OperationMorpheus]=new a.a({name:r.a.OperationMorpheus,baseDifficulty:45e3,reqdRank:15e4,rankGain:4e3,rankLoss:1e3,hpLoss:100,weights:{hack:.05,str:.15,def:.15,dex:.3,agi:.3,cha:0,int:.05},decays:{hack:.6,str:.8,def:.8,dex:.8,agi:.8,cha:0,int:.75},isStealth:!0}),i[r.a.OperationIonStorm]=new a.a({name:r.a.OperationIonStorm,baseDifficulty:5e4,reqdRank:175e3,rankGain:5e3,rankLoss:1e3,hpLoss:5e3,weights:{hack:0,str:.24,def:.24,dex:.24,agi:.24,cha:0,int:.04},decays:{hack:.6,str:.8,def:.8,dex:.8,agi:.8,cha:0,int:.75},isKill:!0}),i[r.a.OperationAnnihilus]=new a.a({name:r.a.OperationAnnihilus,baseDifficulty:55e3,reqdRank:2e5,rankGain:7500,rankLoss:1e3,hpLoss:1e4,weights:{hack:0,str:.24,def:.24,dex:.24,agi:.24,cha:0,int:.04},decays:{hack:.6,str:.8,def:.8,dex:.8,agi:.8,cha:0,int:.75},isKill:!0}),i[r.a.OperationUltron]=new a.a({name:r.a.OperationUltron,baseDifficulty:6e4,reqdRank:25e4,rankGain:1e4,rankLoss:2e3,hpLoss:1e4,weights:{hack:.1,str:.2,def:.2,dex:.2,agi:.2,cha:0,int:.1},decays:{hack:.6,str:.8,def:.8,dex:.8,agi:.8,cha:0,int:.75},isKill:!0}),i[r.a.OperationCenturion]=new a.a({name:r.a.OperationCenturion,baseDifficulty:7e4,reqdRank:3e5,rankGain:15e3,rankLoss:5e3,hpLoss:1e4,weights:{hack:.1,str:.2,def:.2,dex:.2,agi:.2,cha:0,int:.1},decays:{hack:.6,str:.8,def:.8,dex:.8,agi:.8,cha:0,int:.75}}),i[r.a.OperationVindictus]=new a.a({name:r.a.OperationVindictus,baseDifficulty:75e3,reqdRank:35e4,rankGain:2e4,rankLoss:2e4,hpLoss:2e4,weights:{hack:.1,str:.2,def:.2,dex:.2,agi:.2,cha:0,int:.1},decays:{hack:.6,str:.8,def:.8,dex:.8,agi:.8,cha:0,int:.75}}),i[r.a.OperationDaedalus]=new a.a({name:r.a.OperationDaedalus,baseDifficulty:8e4,reqdRank:4e5,rankGain:4e4,rankLoss:1e4,hpLoss:1e5,weights:{hack:.1,str:.2,def:.2,dex:.2,agi:.2,cha:0,int:.1},decays:{hack:.6,str:.8,def:.8,dex:.8,agi:.8,cha:0,int:.75}})},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var a=n(122),r=n(22);class i{constructor(e){e?(this.id=e.fragment.id,this.x=e.x,this.y=e.y,this.highestCharge=0,this.numCharge=0,this.rotation=e.rotation):(this.id=-1,this.x=-1,this.y=-1,this.highestCharge=0,this.numCharge=0,this.rotation=0)}collide(e){const t=this.fragment(),n=e.fragment(),a=e.x-this.x,r=e.y-this.y,i=Math.max(t.shape.length,t.shape[0].length);for(let o=0;o<i;o++)for(let s=0;s<i;s++)if(t.fullAt(s,o,this.rotation)&&n.fullAt(s-a,o-r,e.rotation))return!0;return!1}fragment(){const e=Object(a.b)(this.id);if(null===e)throw new Error("ActiveFragment id refers to unknown Fragment.");return e}fullAt(e,t){return this.fragment().fullAt(e-this.x,t-this.y,this.rotation)}neighboors(){return this.fragment().neighboors(this.rotation).map(e=>[this.x+e[0],this.y+e[1]])}copy(){return Object.assign({},this)}toJSON(){return Object(r.b)("ActiveFragment",this)}static fromJSON(e){return Object(r.a)(i,e.data)}}r.c.constructors.ActiveFragment=i},,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var a=n(12),r=n(474);function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class o{constructor(e="",t,n=0,a=0,r=0,o=0,s={}){i(this,"difficulty",0),i(this,"karma",0),i(this,"kills",0),i(this,"money",0),i(this,"name",""),i(this,"time",0),i(this,"hacking_success_weight",0),i(this,"strength_success_weight",0),i(this,"defense_success_weight",0),i(this,"dexterity_success_weight",0),i(this,"agility_success_weight",0),i(this,"charisma_success_weight",0),i(this,"hacking_exp",0),i(this,"strength_exp",0),i(this,"defense_exp",0),i(this,"dexterity_exp",0),i(this,"agility_exp",0),i(this,"charisma_exp",0),i(this,"intelligence_exp",0),this.name=e,this.type=t,this.time=n,this.money=a,this.difficulty=r,this.karma=o,this.hacking_success_weight=s.hacking_success_weight?s.hacking_success_weight:0,this.strength_success_weight=s.strength_success_weight?s.strength_success_weight:0,this.defense_success_weight=s.defense_success_weight?s.defense_success_weight:0,this.dexterity_success_weight=s.dexterity_success_weight?s.dexterity_success_weight:0,this.agility_success_weight=s.agility_success_weight?s.agility_success_weight:0,this.charisma_success_weight=s.charisma_success_weight?s.charisma_success_weight:0,this.hacking_exp=s.hacking_exp?s.hacking_exp:0,this.strength_exp=s.strength_exp?s.strength_exp:0,this.defense_exp=s.defense_exp?s.defense_exp:0,this.dexterity_exp=s.dexterity_exp?s.dexterity_exp:0,this.agility_exp=s.agility_exp?s.agility_exp:0,this.charisma_exp=s.charisma_exp?s.charisma_exp:0,this.intelligence_exp=s.intelligence_exp?s.intelligence_exp:0,this.kills=s.kills?s.kills:0}commit(e,t,n=1,a=null){return n<=0&&(n=1),t.startWork(new r.a({crimeType:this.type,singularity:null!==a})),t.focus=!0,e.toWork(),this.time}successRate(e){let t=this.hacking_success_weight*e.hacking+this.strength_success_weight*e.strength+this.defense_success_weight*e.defense+this.dexterity_success_weight*e.dexterity+this.agility_success_weight*e.agility+this.charisma_success_weight*e.charisma+a.a.IntelligenceCrimeWeight*e.intelligence;return t/=a.a.MaxSkillLevel,t/=this.difficulty,t*=e.mults.crime_success,t*=e.getIntelligenceBonus(1),Math.min(t,1)}}},,,,,,,,,function(e,t,n){"use strict";function a(e,t=1){return 1+t*Math.pow(e,.8)/600}n.d(t,"a",(function(){return a}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var a=n(1037),r=n(1038);const i={};for(const e of r.a)null!=i[(o=e).name]&&console.warn("Duplicate Research being defined: "+o.name),i[o.name]=new a.a(o);var o},,function(e,t,n){"use strict";n.d(t,"c",(function(){return s})),n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return c}));var a=n(12),r=n(21),i=n(431);function o(e){let t=1+e.favor/100;return isNaN(t)&&(t=1),t*r.a.FactionWorkRepGain}function s(e,t){return(e.hacking+e.intelligence/3)/a.a.MaxSkillLevel*e.mults.faction_rep*e.getIntelligenceBonus(1)*o(t)*Object(i.a)()}function l(e,t){return.9*(e.strength+e.defense+e.dexterity+e.agility+(e.hacking+e.intelligence)*Object(i.a)())/a.a.MaxSkillLevel/4.5*e.mults.faction_rep*o(t)*e.getIntelligenceBonus(1)}function c(e,t){return.9*(e.strength+e.defense+e.dexterity+e.agility+e.charisma+(e.hacking+e.intelligence)*Object(i.a)())/a.a.MaxSkillLevel/5.5*e.mults.faction_rep*o(t)*e.getIntelligenceBonus(1)}},function(e,t,n){"use strict";let a;n.d(t,"a",(function(){return a})),function(e){e[e.SYSTEM=0]="SYSTEM",e[e.INTERFACE=1]="INTERFACE",e[e.GAMEPLAY=2]="GAMEPLAY",e[e.MISC=3]="MISC"}(a||(a={}))},,function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var a=n(0),r=n.n(a),i=n(6),o=n(225);function s({hashes:e}){return r.a.createElement(o.a,{hashes:i.a.formatHashes(e)+" h / s"})}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));class a{constructor(e,t){this.filename=e,this.msg=t}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var a=n(0),r=n(547),i=n(28),o=n(8),s=n(19);function l(e){const t=i.b.Player();return a.createElement(a.Fragment,null,a.createElement(s.a,{title:a.createElement("span",{dangerouslySetInnerHTML:{__html:function(){const n=t.getNextCompanyPosition(e.company,e.entryPosType);return null==n?"":e.company.hasPosition(n)?Object(r.a)(e.company,n,!0):""}()}})},a.createElement(o.a,{onClick:e.onClick},e.text)))}},,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));const a=new(n(126).a)},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return d})),n.d(t,"d",(function(){return p})),n.d(t,"c",(function(){return g})),n.d(t,"e",(function(){return y})),n.d(t,"b",(function(){return b}));var a=n(2),r=n(92),i=n(83),o=n(84),s=n(94),l=n(27),c=n(110),f=n(5),u=n(614),m=n(12),h=n(257);function d(){navigator.userAgent.toLowerCase().indexOf(" electron/")>-1&&(document.achievements=[],function(){function t(e){return e=e.replace(/\/\/+/g,"/"),(e=Object(i.k)(e)).includes("/")&&(e="/"+Object(i.k)(e)),e}document.getFiles=function(){const e=Object(l.d)("home");return null===e?{res:!1,msg:"Home server does not exist."}:{res:!0,data:{files:e.scripts.map(e=>({filename:e.filename,code:e.code,ramUsage:e.ramUsage}))}}},document.deleteFile=function(e){e=t(e);const n=Object(l.d)("home");return null===n?{res:!1,msg:"Home server does not exist."}:n.removeFile(e)},document.saveFile=function(n,r){var i;n=t(n),r=e.from(r,"base64").toString();const o=Object(l.d)("home");if(null===o)return{res:!1,msg:"Home server does not exist."};const{success:s,overwritten:c}=o.writeToScriptFile(a.a,n,r);let f;return s&&(f=o.getScript(n)),{res:s,data:{overwritten:c,ramUsage:null===(i=f)||void 0===i?void 0:i.ramUsage}}}}(),function(){const e={terminal:(e,t)=>{const n={info:o.a.info,warn:o.a.warn,error:o.a.error,success:o.a.success};let a;t&&(a=n[t]),a||(a=o.a.print),a.bind(o.a)(e)},toast:(e,t,n=2e3)=>s.b.emit(e,t,n)};window.appNotifier=e}(),function(){const e={triggerSave:()=>c.c.saveGame(!0),triggerGameExport:()=>{try{c.c.exportGame()}catch(e){console.error(e),s.b.emit("Could not export game.",s.d.ERROR,2e3)}},triggerScriptsExport:()=>Object(u.b)("*",a.a.getHomeComputer()),getSaveData:()=>({save:c.c.getSaveString(f.a.ExcludeRunningScriptsFromSave),fileName:c.c.getSaveFileName()}),getSaveInfo:async e=>{try{return(await c.c.getImportDataFromString(e)).playerData}catch(e){return void console.error(e)}},pushSaveData:(e,t=!1)=>r.b.toImportSave(e,t)};window.appSaveFns=e}(),function(){const e=window.electronBridge;if(!e)return;e.receive("get-save-data-request",()=>{const t=window.appSaveFns.getSaveData();e.send("get-save-data-response",t)}),e.receive("get-save-info-request",async t=>{const n=await window.appSaveFns.getSaveInfo(t);e.send("get-save-info-response",n)}),e.receive("push-save-request",({save:e,automatic:t=!1})=>{window.appSaveFns.pushSaveData(e,t)}),e.receive("trigger-save",()=>window.appSaveFns.triggerSave().then(()=>{e.send("save-completed")}).catch(e=>{console.error(e),s.b.emit("Could not save game.",s.d.ERROR,2e3)})),e.receive("trigger-game-export",()=>{try{window.appSaveFns.triggerGameExport()}catch(e){console.error(e),s.b.emit("Could not export game.",s.d.ERROR,2e3)}}),e.receive("trigger-scripts-export",()=>{try{window.appSaveFns.triggerScriptsExport()}catch(e){console.error(e),s.b.emit("Could not export scripts.",s.d.ERROR,2e3)}})}())}function p(e){const t=window.electronBridge;t&&t.send("push-game-saved",e)}function g(){const e=window.electronBridge;e&&e.send("push-game-ready",{player:{identifier:a.a.identifier,playtime:a.a.totalPlaytime,lastSave:a.a.lastSave},game:{version:m.a.VersionString,hash:Object(h.a)()}})}function y(e){const t=window.electronBridge;t&&(t.send("push-import-result",{wasImported:e}),b())}function b(){const e=window.electronBridge;e&&e.send("push-disable-restore",{duration:6e4})}}).call(this,n(167).Buffer)},,function(e,t,n){"use strict";n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return f}));var a=n(14),r=n(22),i=n(11),o=n(12),s=n(60),l=n(154);const c=e=>null!==e&&e.type===l.b.CREATE_PROGRAM;class f extends l.a{constructor(e){var t,n;if(super(l.b.CREATE_PROGRAM,null===(t=null==e?void 0:e.singularity)||void 0===t||t),this.unitCompleted=0,this.programName=null!==(n=null==e?void 0:e.programName)&&void 0!==n?n:"",null!=e&&e.player){const t=e.player;for(let e=0;e<t.getHomeComputer().programs.length;++e){const n=t.getHomeComputer().programs[e];if(n.startsWith(this.programName)&&n.endsWith("%-INC")){const a=n.split("-");if(3!=a.length)break;const r=Number(a[1].slice(0,-1));if(isNaN(r)||r<0||r>=100)break;this.unitCompleted=r/100*this.unitNeeded(),t.getHomeComputer().programs.splice(e,1)}}}}unitNeeded(){var e,t;return null!==(e=null===(t=this.getProgram().create)||void 0===t?void 0:t.time)&&void 0!==e?e:0}getProgram(){const e=Object.values(s.a).find(e=>e.name.toLowerCase()===this.programName.toLowerCase());if(!e)throw new Error("Create program work started with invalid program "+this.programName);return e}process(e,t){var n,a;let r=1;e.hasAugmentation(i.a.NeuroreceptorManager)||(r=e.focus?1:o.a.BaseFocusBonus);const s=null!==(n=null===(a=this.getProgram().create)||void 0===a?void 0:a.level)&&void 0!==n?n:0;let l=e.hacking/s*e.getIntelligenceBonus(3);return l=1+(l-1)/5,l*=r,this.cyclesWorked+=t,this.unitCompleted+=o.a._idleSpeed*t*l,this.unitCompleted>=this.unitNeeded()}finish(e,t){const n=this.programName;if(t){if(!e.getHomeComputer().programs.includes(n)){const t=n+"-"+(100*this.unitCompleted/this.unitNeeded()).toFixed(2)+"%-INC";e.getHomeComputer().programs.push(t)}}else{if(e.gainIntelligenceExp(o.a.IntelligenceProgramBaseExpGain*this.cyclesWorked*o.a._idleSpeed/1e3),!this.singularity){const e=[`You've finished creating ${n}!`,"The new program can be found on your home computer."];Object(a.a)(e.join("<br>"))}e.getHomeComputer().programs.includes(n)||e.getHomeComputer().programs.push(n)}}toJSON(){return Object(r.b)("CreateProgramWork",this)}static fromJSON(e){return Object(r.a)(f,e.data)}}r.c.constructors.CreateProgramWork=f},function(e,t,n){"use strict";n.d(t,"a",(function(){return R})),n.d(t,"b",(function(){return N}));var a=n(11),r=n(138),i=n(230),o=n(12),s=n(50),l=n(109),c=n(29),f=n(81),u=n(190),m=n(40),h=n(54),d=n(226),p=n(91),g=n(15),y=n(2),b=n(60),E=n(27),v=n(87),k=n(44),w=n(92),_=n(26),S=n(1153),C=n(4),x=n(57),L=n(88);const O=S.a;function M(){const e=Object(E.d)(v.a.WorldDaemon);return e instanceof k.a&&(!!e.backdoorInstalled||null!==y.a.bladeburner&&y.a.bladeburner.blackops.hasOwnProperty(x.a.OperationDaedalus))}function T(e,t){return e.bitNodeN===t||e.sourceFiles.some(e=>e.n===t)}function A(e){return e.sourceFiles.some(e=>1===e.n)}const R={[C.a.CyberSec.toUpperCase()]:{...O[C.a.CyberSec.toUpperCase()],Icon:"CSEC",Condition:()=>y.a.factions.includes(C.a.CyberSec)},[C.a.NiteSec.toUpperCase()]:{...O[C.a.NiteSec.toUpperCase()],Icon:C.a.NiteSec,Condition:()=>y.a.factions.includes(C.a.NiteSec)},THE_BLACK_HAND:{...O.THE_BLACK_HAND,Icon:"TBH",Condition:()=>y.a.factions.includes(C.a.TheBlackHand)},[C.a.BitRunners.toUpperCase()]:{...O[C.a.BitRunners.toUpperCase()],Icon:C.a.BitRunners.toLowerCase(),Condition:()=>y.a.factions.includes(C.a.BitRunners)},[C.a.Daedalus.toUpperCase()]:{...O[C.a.Daedalus.toUpperCase()],Icon:C.a.Daedalus.toLowerCase(),Condition:()=>y.a.factions.includes(C.a.Daedalus)},THE_COVENANT:{...O.THE_COVENANT,Icon:C.a.TheCovenant.toLowerCase().replace(/ /g,""),Condition:()=>y.a.factions.includes(C.a.TheCovenant)},[C.a.Illuminati.toUpperCase()]:{...O[C.a.Illuminati.toUpperCase()],Icon:C.a.Illuminati.toLowerCase(),Condition:()=>y.a.factions.includes(C.a.Illuminati)},"BRUTESSH.EXE":{...O["BRUTESSH.EXE"],Icon:"p0",Condition:()=>y.a.getHomeComputer().programs.includes(b.a.BruteSSHProgram.name)},"FTPCRACK.EXE":{...O["FTPCRACK.EXE"],Icon:"p1",Condition:()=>y.a.getHomeComputer().programs.includes(b.a.FTPCrackProgram.name)},"RELAYSMTP.EXE":{...O["RELAYSMTP.EXE"],Icon:"p2",Condition:()=>y.a.getHomeComputer().programs.includes(b.a.RelaySMTPProgram.name)},"HTTPWORM.EXE":{...O["HTTPWORM.EXE"],Icon:"p3",Condition:()=>y.a.getHomeComputer().programs.includes(b.a.HTTPWormProgram.name)},"SQLINJECT.EXE":{...O["SQLINJECT.EXE"],Icon:"p4",Condition:()=>y.a.getHomeComputer().programs.includes(b.a.SQLInjectProgram.name)},"FORMULAS.EXE":{...O["FORMULAS.EXE"],Icon:"formulas",Condition:()=>y.a.getHomeComputer().programs.includes(b.a.Formulas.name)},"SF1.1":{...O["SF1.1"],Icon:"SF1.1",Visible:()=>T(y.a,1),Condition:()=>y.a.sourceFileLvl(1)>=1},"SF2.1":{...O["SF2.1"],Icon:"SF2.1",Visible:()=>T(y.a,2),Condition:()=>y.a.sourceFileLvl(2)>=1},"SF3.1":{...O["SF3.1"],Icon:"SF3.1",Visible:()=>T(y.a,3),Condition:()=>y.a.sourceFileLvl(3)>=1},"SF4.1":{...O["SF4.1"],Icon:"SF4.1",Visible:()=>T(y.a,4),Condition:()=>y.a.sourceFileLvl(4)>=1},"SF5.1":{...O["SF5.1"],Icon:"SF5.1",Visible:()=>T(y.a,5),Condition:()=>y.a.sourceFileLvl(5)>=1},"SF6.1":{...O["SF6.1"],Icon:"SF6.1",Visible:()=>T(y.a,6),Condition:()=>y.a.sourceFileLvl(6)>=1},"SF7.1":{...O["SF7.1"],Icon:"SF7.1",Visible:()=>T(y.a,7),Condition:()=>y.a.sourceFileLvl(7)>=1},"SF8.1":{...O["SF8.1"],Icon:"SF8.1",Visible:()=>T(y.a,8),Condition:()=>y.a.sourceFileLvl(8)>=1},"SF9.1":{...O["SF9.1"],Icon:"SF9.1",Visible:()=>T(y.a,9),Condition:()=>y.a.sourceFileLvl(9)>=1},"SF10.1":{...O["SF10.1"],Icon:"SF10.1",Visible:()=>T(y.a,10),Condition:()=>y.a.sourceFileLvl(10)>=1},"SF11.1":{...O["SF11.1"],Icon:"SF11.1",Visible:()=>T(y.a,11),Condition:()=>y.a.sourceFileLvl(11)>=1},"SF12.1":{...O["SF12.1"],Icon:"SF12.1",Visible:()=>T(y.a,12),Condition:()=>y.a.sourceFileLvl(12)>=1},MONEY_1Q:{...O.MONEY_1Q,Icon:"$1Q",Condition:()=>y.a.money>=1e18},MONEY_M1B:{...O.MONEY_M1B,Icon:"-1b",Secret:!0,Condition:()=>y.a.money<=-1e9},INSTALL_1:{...O.INSTALL_1,Icon:"install",Condition:()=>y.a.augmentations.length>=1},INSTALL_100:{...O.INSTALL_100,Icon:"install_100",Condition:()=>y.a.augmentations.length>=100},QUEUE_40:{...O.QUEUE_40,Icon:"queue40",Condition:()=>y.a.queuedAugmentations.length>=40},HACKING_100000:{...O.HACKING_100000,Icon:"hack100000",Condition:()=>y.a.hacking>=1e5},COMBAT_3000:{...O.COMBAT_3000,Icon:"combat3000",Condition:()=>y.a.strength>=3e3&&y.a.defense>=3e3&&y.a.dexterity>=3e3&&y.a.agility>=3e3},NEUROFLUX_255:{...O.NEUROFLUX_255,Icon:"nf255",Condition:()=>y.a.augmentations.some(e=>e.name===a.a.NeuroFluxGovernor&&e.level>=255)},NS2:{...O.NS2,Icon:"ns2",Condition:()=>y.a.getHomeComputer().scripts.some(e=>e.filename.endsWith(".js")||e.filename.endsWith(".ns"))},FROZE:{...O.FROZE,Icon:"forze",Condition:()=>location.href.includes("noScripts")},RUNNING_SCRIPTS_1000:{...O.RUNNING_SCRIPTS_1000,Icon:"run1000",Condition:()=>{let e=0;for(const t of Object(E.c)())e+=t.runningScripts.length;return e>=1e3}},DRAIN_SERVER:{...O.DRAIN_SERVER,Icon:"drain",Condition:()=>{for(const e of Object(E.c)())if(e instanceof k.a&&e.moneyMax>0&&0===e.moneyAvailable)return!0;return!1}},MAX_RAM:{...O.MAX_RAM,Icon:"maxram",Condition:()=>y.a.getHomeComputer().maxRam===o.a.HomeComputerMaxRam},MAX_CORES:{...O.MAX_CORES,Icon:"maxcores",Condition:()=>8===y.a.getHomeComputer().cpuCores},SCRIPTS_30:{...O.SCRIPTS_30,Icon:"folders",Condition:()=>y.a.getHomeComputer().scripts.length>=30},KARMA_1000000:{...O.KARMA_1000000,Icon:"karma",Secret:!0,Condition:()=>y.a.karma<=-1e6},STOCK_1q:{...O.STOCK_1q,Icon:"$1Q",Condition:()=>y.a.moneySourceB.stock>=1e15},DISCOUNT:{...O.DISCOUNT,Icon:"discount",Condition:()=>{const e=Object(E.d)("powerhouse-fitness");return e instanceof k.a&&e.backdoorInstalled}},SCRIPT_32GB:{...O.SCRIPT_32GB,Icon:"bigcost",Condition:()=>y.a.getHomeComputer().scripts.some(e=>e.ramUsage>=32)},FIRST_HACKNET_NODE:{...O.FIRST_HACKNET_NODE,Icon:"node",Condition:()=>!Object(h.g)(y.a)&&y.a.hacknetNodes.length>0},"30_HACKNET_NODE":{...O["30_HACKNET_NODE"],Icon:"hacknet-all",Condition:()=>!Object(h.g)(y.a)&&y.a.hacknetNodes.length>=30},MAX_HACKNET_NODE:{...O.MAX_HACKNET_NODE,Icon:"hacknet-max",Condition:()=>{if(Object(h.g)(y.a))return!1;for(const e of y.a.hacknetNodes){if(!(e instanceof d.a))return!1;if(e.ram===m.a.MaxRam&&e.cores===m.a.MaxCores&&e.level===m.a.MaxLevel)return!0}return!1}},HACKNET_NODE_10M:{...O.HACKNET_NODE_10M,Icon:"hacknet-10m",Condition:()=>!Object(h.g)(y.a)&&y.a.moneySourceB.hacknet>=1e7},REPUTATION_10M:{...O.REPUTATION_10M,Icon:"reputation",Condition:()=>Object.values(c.a).some(e=>e.playerReputation>=1e7)},DONATION:{...O.DONATION,Icon:"donation",Condition:()=>Object.values(c.a).some(e=>e.favor>=150)},TRAVEL:{...O.TRAVEL,Icon:"TRAVEL",Condition:()=>y.a.city!==g.a.Sector12},WORKOUT:{...O.WORKOUT,Icon:"WORKOUT",Condition:()=>Object(L.d)(y.a.currentWork)},TOR:{...O.TOR,Icon:"TOR",Condition:()=>y.a.hasTorRouter()},HOSPITALIZED:{...O.HOSPITALIZED,Icon:"OUCH",Condition:()=>0!==y.a.moneySourceB.hospitalization},GANG:{...O.GANG,Icon:"GANG",Visible:()=>T(y.a,2),Condition:()=>null!==y.a.gang},FULL_GANG:{...O.FULL_GANG,Icon:"GANGMAX",Visible:()=>T(y.a,2),Condition:()=>null!==y.a.gang&&y.a.gang.members.length===u.a.MaximumGangMembers},GANG_TERRITORY:{...O.GANG_TERRITORY,Icon:"GANG100%",Visible:()=>T(y.a,2),Condition:()=>null!==y.a.gang&&f.a[y.a.gang.facName].territory>=.999},GANG_MEMBER_POWER:{...O.GANG_MEMBER_POWER,Icon:"GANG10000",Visible:()=>T(y.a,2),Condition:()=>null!==y.a.gang&&y.a.gang.members.some(e=>e.hack>=1e4||e.str>=1e4||e.def>=1e4||e.dex>=1e4||e.agi>=1e4||e.cha>=1e4)},CORPORATION:{...O.CORPORATION,Icon:"CORP",Visible:()=>T(y.a,3),Condition:()=>null!==y.a.corporation},CORPORATION_BRIBE:{...O.CORPORATION_BRIBE,Icon:"CORPLOBBY",Visible:()=>T(y.a,3),Condition:()=>null!==y.a.corporation&&1===y.a.corporation.unlockUpgrades[6]},CORPORATION_PROD_1000:{...O.CORPORATION_PROD_1000,Icon:"CORP1000",Visible:()=>T(y.a,3),Condition:()=>null!==y.a.corporation&&y.a.corporation.divisions.some(e=>e.prodMult>=1e3)},CORPORATION_EMPLOYEE_3000:{...O.CORPORATION_EMPLOYEE_3000,Icon:"CORPCITY",Visible:()=>T(y.a,3),Condition:()=>{if(null===y.a.corporation)return!1;for(const e of y.a.corporation.divisions)for(const t of Object.values(e.offices))if(0!==t&&t.employees.length>=3e3)return!0;return!1}},CORPORATION_REAL_ESTATE:{...O.CORPORATION_REAL_ESTATE,Icon:"CORPRE",Name:"Own the land",Description:"Expand to the Real Estate division.",Visible:()=>T(y.a,3),Condition:()=>null!==y.a.corporation&&y.a.corporation.divisions.some(e=>e.type===s.a.RealEstate)},INTELLIGENCE_255:{...O.INTELLIGENCE_255,Icon:"INT255",Visible:()=>T(y.a,5),Condition:()=>y.a.intelligence>=255},BLADEBURNER_DIVISION:{...O.BLADEBURNER_DIVISION,Icon:"BLADE",Visible:()=>T(y.a,6),Condition:()=>null!==y.a.bladeburner},BLADEBURNER_OVERCLOCK:{...O.BLADEBURNER_OVERCLOCK,Icon:"BLADEOVERCLOCK",Visible:()=>T(y.a,6),Condition:()=>null!==y.a.bladeburner&&y.a.bladeburner.skills[r.a.Overclock]===i.a[r.a.Overclock].maxLvl},BLADEBURNER_UNSPENT_100000:{...O.BLADEBURNER_UNSPENT_100000,Icon:"BLADE100K",Visible:()=>T(y.a,6),Condition:()=>null!==y.a.bladeburner&&y.a.bladeburner.skillPoints>=1e5},"4S":{...O["4S"],Icon:"4S",Condition:()=>y.a.has4SData},FIRST_HACKNET_SERVER:{...O.FIRST_HACKNET_SERVER,Icon:"HASHNET",Visible:()=>T(y.a,9),Condition:()=>Object(h.g)(y.a)&&y.a.hacknetNodes.length>0,AdditionalUnlock:[O.FIRST_HACKNET_NODE.ID]},ALL_HACKNET_SERVER:{...O.ALL_HACKNET_SERVER,Icon:"HASHNETALL",Visible:()=>T(y.a,9),Condition:()=>Object(h.g)(y.a)&&y.a.hacknetNodes.length===m.b.MaxServers,AdditionalUnlock:[O["30_HACKNET_NODE"].ID]},MAX_HACKNET_SERVER:{...O.MAX_HACKNET_SERVER,Icon:"HASHNETALL",Visible:()=>T(y.a,9),Condition:()=>{if(!Object(h.g)(y.a))return!1;for(const e of y.a.hacknetNodes){if("string"!=typeof e)return!1;const t=Object(E.d)(e);if(!(t instanceof p.a))return!1;if(t.maxRam===m.b.MaxRam&&t.cores===m.b.MaxCores&&t.level===m.b.MaxLevel&&t.cache===m.b.MaxCache)return!0}return!1},AdditionalUnlock:[O.MAX_HACKNET_NODE.ID]},HACKNET_SERVER_1B:{...O.HACKNET_SERVER_1B,Icon:"HASHNETMONEY",Visible:()=>T(y.a,9),Condition:()=>Object(h.g)(y.a)&&y.a.moneySourceB.hacknet>=1e9,AdditionalUnlock:[O.HACKNET_NODE_10M.ID]},MAX_CACHE:{...O.MAX_CACHE,Icon:"HASHNETCAP",Visible:()=>T(y.a,9),Condition:()=>Object(h.g)(y.a)&&y.a.hashManager.hashes===y.a.hashManager.capacity&&y.a.hashManager.capacity>0},SLEEVE_8:{...O.SLEEVE_8,Icon:"SLEEVE8",Visible:()=>T(y.a,10),Condition:()=>8===y.a.sleeves.length&&3===y.a.sourceFileLvl(10)},INDECISIVE:{...O.INDECISIVE,Icon:"1H",Visible:()=>A(y.a),Condition:function(){let e=0;return setInterval(()=>{w.b.page()===_.a.BitVerse?e++:e=0},6e4),()=>e>60}()},FAST_BN:{...O.FAST_BN,Icon:"2DAYS",Visible:()=>A(y.a),Condition:()=>M()&&y.a.playtimeSinceLastBitnode<1728e5},CHALLENGE_BN1:{...O.CHALLENGE_BN1,Icon:"BN1+",Visible:()=>A(y.a),Condition:()=>1===y.a.bitNodeN&&M()&&y.a.getHomeComputer().maxRam<=128&&1===y.a.getHomeComputer().cpuCores},CHALLENGE_BN2:{...O.CHALLENGE_BN2,Icon:"BN2+",Visible:()=>T(y.a,2),Condition:()=>2===y.a.bitNodeN&&M()&&null===y.a.gang},CHALLENGE_BN3:{...O.CHALLENGE_BN3,Icon:"BN3+",Visible:()=>T(y.a,3),Condition:()=>3===y.a.bitNodeN&&M()&&null===y.a.corporation},CHALLENGE_BN6:{...O.CHALLENGE_BN6,Icon:"BN6+",Visible:()=>T(y.a,6),Condition:()=>6===y.a.bitNodeN&&M()&&null===y.a.bladeburner},CHALLENGE_BN7:{...O.CHALLENGE_BN7,Icon:"BN7+",Visible:()=>T(y.a,7),Condition:()=>7===y.a.bitNodeN&&M()&&null===y.a.bladeburner},CHALLENGE_BN8:{...O.CHALLENGE_BN8,Icon:"BN8+",Visible:()=>T(y.a,8),Condition:()=>8===y.a.bitNodeN&&M()&&!y.a.has4SData&&!y.a.has4SDataTixApi},CHALLENGE_BN9:{...O.CHALLENGE_BN9,Icon:"BN9+",Visible:()=>T(y.a,9),Condition:()=>9===y.a.bitNodeN&&M()&&0===y.a.moneySourceB.hacknet&&0===y.a.moneySourceB.hacknet_expenses},CHALLENGE_BN10:{...O.CHALLENGE_BN10,Icon:"BN10+",Visible:()=>T(y.a,10),Condition:()=>10===y.a.bitNodeN&&M()&&!y.a.sleeves.some(e=>e.augmentations.length>0||e.hacking_exp>0||e.strength_exp>0||e.defense_exp>0||e.agility_exp>0||e.dexterity_exp>0||e.charisma_exp>0)},CHALLENGE_BN12:{...O.CHALLENGE_BN12,Icon:"BN12+",Visible:()=>T(y.a,12),Condition:()=>y.a.sourceFileLvl(12)>=50},BYPASS:{...O.BYPASS,Icon:"SF-1",Secret:!0,Condition:()=>y.a.exploits.includes(l.a.Bypass)},PROTOTYPETAMPERING:{...O.PROTOTYPETAMPERING,Icon:"SF-1",Secret:!0,Condition:()=>y.a.exploits.includes(l.a.PrototypeTampering)},UNCLICKABLE:{...O.UNCLICKABLE,Icon:"SF-1",Secret:!0,Condition:()=>y.a.exploits.includes(l.a.Unclickable)},UNDOCUMENTEDFUNCTIONCALL:{...O.UNDOCUMENTEDFUNCTIONCALL,Icon:"SF-1",Secret:!0,Condition:()=>y.a.exploits.includes(l.a.UndocumentedFunctionCall)},TIMECOMPRESSION:{...O.TIMECOMPRESSION,Icon:"SF-1",Secret:!0,Condition:()=>y.a.exploits.includes(l.a.TimeCompression)},REALITYALTERATION:{...O.REALITYALTERATION,Icon:"SF-1",Secret:!0,Condition:()=>y.a.exploits.includes(l.a.RealityAlteration)},N00DLES:{...O.N00DLES,Icon:"SF-1",Secret:!0,Condition:()=>y.a.exploits.includes(l.a.N00dles)},EDITSAVEFILE:{...O.EDITSAVEFILE,Icon:"SF-1",Secret:!0,Condition:()=>y.a.exploits.includes(l.a.EditSaveFile)},UNACHIEVABLE:{...O.UNACHIEVABLE,Icon:"SF-1",Secret:!0,Condition:()=>!1},CHALLENGE_BN13:{...O.CHALLENGE_BN13,Icon:"BN13+",Visible:()=>T(y.a,13),Condition:()=>13===y.a.bitNodeN&&M()&&!y.a.augmentations.some(e=>e.name===a.a.StaneksGift1)},DEVMENU:{...O.DEVMENU,Icon:"SF-1",Secret:!0,Condition:()=>y.a.exploits.includes(l.a.YoureNotMeantToAccessThis)},RAINBOW:{...O.RAINBOW,Icon:"SF-1",Secret:!0,Condition:()=>y.a.exploits.includes(l.a.INeedARainbow)},TRUE_RECURSION:{...O.TRUE_RECURSION,Icon:"SF-1",Secret:!0,Condition:()=>y.a.exploits.includes(l.a.TrueRecursion)}};function N(){const e=y.a.achievements.map(e=>e.ID),t=Object.values(R).filter(t=>!e.includes(t.ID)&&t.Condition()).flatMap(e=>[e.ID,...e.AdditionalUnlock||[]]);for(const e of t)y.a.giveAchievement(e);document.achievements=[...y.a.achievements.map(e=>e.ID)]}},function(e,t,n){"use strict";n.d(t,"b",(function(){return W})),n.d(t,"a",(function(){return H}));var a=n(0),r=n.n(a),i=n(127),o=n(118),s=n(142),l=n(6),c=n(139),f=n(1192),u=n(24),m=n(150),h=n(151),d=n(30),p=n(48),g=n(1),y=n(8),b=n(112),E=n(480),v=n.n(E),k=n(1198),w=n.n(k),_=n(5),S=n(28),C=n(404),x=n(21),L=n(19),O=n(18),M=n(88),T=n(12),A=n(305),R=n(382),N=n(223),P=n(392),I=n(321),F=n(474);function D(){const e=Object(i.a)(),t=S.b.Player(),n=W();if(0===t.intelligence)return r.a.createElement(r.a.Fragment,null);const a=t.calculateSkillProgress(t.intelligence_exp);return r.a.createElement(r.a.Fragment,null,r.a.createElement(p.a,null,r.a.createElement(d.a,{component:"th",scope:"row",classes:{root:n.cell}},r.a.createElement(g.a,{classes:{root:n.int}},"Int ")),r.a.createElement(d.a,{align:"right",classes:{root:n.cell}},r.a.createElement(g.a,{classes:{root:n.int}},l.a.formatSkill(t.intelligence))),r.a.createElement(d.a,{align:"right",classes:{root:n.cell}},r.a.createElement(g.a,{id:"overview-int-hook",classes:{root:n.int}}))),r.a.createElement(p.a,null,!_.a.DisableOverviewProgressBars&&r.a.createElement(C.a,{progress:a,color:e.colors.int})))}function j(){const e=S.b.Player(),t=W(),n=e.bladeburner;if(null===n)return r.a.createElement(r.a.Fragment,null);const a=n.getTypeAndNameFromActionId(n.action);return"Idle"===a.type?r.a.createElement(r.a.Fragment,null):r.a.createElement(r.a.Fragment,null,r.a.createElement(p.a,null,r.a.createElement(d.a,{component:"th",scope:"row",colSpan:2,classes:{root:t.cellNone}},r.a.createElement(g.a,null,"Bladeburner:"))),r.a.createElement(p.a,null,r.a.createElement(d.a,{component:"th",scope:"row",colSpan:2,classes:{root:t.cellNone}},r.a.createElement(g.a,null,a.type,": ",a.name))))}function B({tooltip:e,children:t,onClickFocus:n,header:a}){const i=W();return r.a.createElement(r.a.Fragment,null,r.a.createElement(p.a,null,r.a.createElement(d.a,{component:"th",scope:"row",colSpan:2,classes:{root:i.workCell}},r.a.createElement(L.a,{title:r.a.createElement(r.a.Fragment,null,e)},r.a.createElement(g.a,{className:i.workHeader,sx:{pt:1,pb:.5}},a)))),r.a.createElement(p.a,null,r.a.createElement(d.a,{component:"th",scope:"row",colSpan:2,classes:{root:i.workCell}},r.a.createElement(g.a,{className:i.workSubtitles},t))),r.a.createElement(p.a,null,r.a.createElement(d.a,{component:"th",scope:"row",align:"center",colSpan:2,classes:{root:i.cellNone}},r.a.createElement(y.a,{sx:{mt:1},onClick:n},"Focus"))))}function G(){const e=S.b.Player(),t=S.b.Router();if(null===e.currentWork||e.focus)return r.a.createElement(r.a.Fragment,null);let n=r.a.createElement(r.a.Fragment,null),a=r.a.createElement(r.a.Fragment,null),i=r.a.createElement(r.a.Fragment,null);if(Object(F.b)(e.currentWork)){const t=e.currentWork.getCrime(),o=e.currentWork.unitCompleted/t.time*100;n=r.a.createElement(r.a.Fragment,null,e.currentWork.crimeType),a=r.a.createElement(r.a.Fragment,null,"You are attempting to ",e.currentWork.crimeType),i=r.a.createElement(r.a.Fragment,null,o.toFixed(2),"%")}if(Object(M.d)(e.currentWork)&&(n=r.a.createElement(r.a.Fragment,null,e.currentWork.getClass().youAreCurrently),a=r.a.createElement(r.a.Fragment,null,"You are ",e.currentWork.getClass().youAreCurrently),i=r.a.createElement(r.a.Fragment,null,Object(u.d)(e.currentWork.cyclesWorked*T.a._idleSpeed))),Object(A.b)(e.currentWork)){const t=e.currentWork;n=r.a.createElement(r.a.Fragment,null,"Coding ",t.programName),a=r.a.createElement(r.a.Fragment,null,"Creating a program"),i=r.a.createElement(r.a.Fragment,null,t.programName," ",(t.unitCompleted/t.unitNeeded()*100).toFixed(2),"%")}if(Object(R.b)(e.currentWork)){const t=e.currentWork;n=r.a.createElement(r.a.Fragment,null,"Grafting ",t.augmentation),a=r.a.createElement(r.a.Fragment,null,"Grafting an Augmentation"),i=r.a.createElement(r.a.Fragment,null,r.a.createElement("strong",null,(t.unitCompleted/t.unitNeeded()*100).toFixed(2),"%")," done")}if(Object(N.b)(e.currentWork)){const t=e.currentWork;a=r.a.createElement(r.a.Fragment,null,"Working for ",r.a.createElement("strong",null,t.factionName)),i=r.a.createElement(r.a.Fragment,null,r.a.createElement(c.a,{reputation:t.getFaction().playerReputation})," rep",r.a.createElement("br",null),"(",r.a.createElement(P.a,{reputation:t.getReputationRate(e)*(1e3/T.a._idleSpeed)}),")")}if(Object(I.b)(e.currentWork)){const t=e.currentWork;n=r.a.createElement(r.a.Fragment,null,e.jobs[t.companyName]," at ",r.a.createElement("strong",null,t.companyName)),a=r.a.createElement(r.a.Fragment,null,"Working at ",r.a.createElement("strong",null,t.companyName)),i=r.a.createElement(r.a.Fragment,null,r.a.createElement(c.a,{reputation:t.getCompany().playerReputation})," rep",r.a.createElement("br",null),"(",r.a.createElement(P.a,{reputation:t.getGainRates(e).reputation*(1e3/T.a._idleSpeed)}),")")}return r.a.createElement(B,{tooltip:n,header:a,onClickFocus:()=>{e.startFocusing(),t.toWork()}},i)}const W=Object(o.a)(e=>Object(s.a)({workCell:{textAlign:"center",maxWidth:"200px",borderBottom:"none",padding:0,margin:0},workHeader:{fontSize:"0.9rem"},workSubtitles:{fontSize:"0.8rem"},cellNone:{borderBottom:"none",padding:0,margin:0},cell:{padding:0,margin:0},hp:{color:e.colors.hp},money:{color:e.colors.money},hack:{color:e.colors.hack},combat:{color:e.colors.combat},cha:{color:e.colors.cha},int:{color:e.colors.int}}));function H({save:e,killScripts:t}){const[n,o]=Object(a.useState)(!1),s=S.b.Player(),c=Object(a.useState)(!1)[1];Object(a.useEffect)(()=>{const e=setInterval(()=>c(e=>!e),600);return()=>clearInterval(e)},[]);const u=W(),y=Object(i.a)(),E=s.calculateSkillProgress(s.hacking_exp,s.mults.hacking*x.a.HackingLevelMultiplier),k=s.calculateSkillProgress(s.strength_exp,s.mults.strength*x.a.StrengthLevelMultiplier),M=s.calculateSkillProgress(s.defense_exp,s.mults.defense*x.a.DefenseLevelMultiplier),T=s.calculateSkillProgress(s.dexterity_exp,s.mults.dexterity*x.a.DexterityLevelMultiplier),A=s.calculateSkillProgress(s.agility_exp,s.mults.agility*x.a.AgilityLevelMultiplier),R=s.calculateSkillProgress(s.charisma_exp,s.mults.charisma*x.a.CharismaLevelMultiplier);return r.a.createElement(r.a.Fragment,null,r.a.createElement(m.a,{sx:{display:"block",m:1}},r.a.createElement(h.a,null,r.a.createElement(p.a,null,r.a.createElement(d.a,{component:"th",scope:"row",classes:{root:u.cellNone}},r.a.createElement(g.a,{classes:{root:u.hp}},"HP ")),r.a.createElement(d.a,{align:"right",classes:{root:u.cellNone}},r.a.createElement(g.a,{classes:{root:u.hp}},l.a.formatHp(s.hp)," / ",l.a.formatHp(s.max_hp))),r.a.createElement(d.a,{align:"right",classes:{root:u.cellNone}},r.a.createElement(g.a,{id:"overview-hp-hook",classes:{root:u.hp}}))),r.a.createElement(p.a,null,r.a.createElement(d.a,{component:"th",scope:"row",classes:{root:u.cellNone}},r.a.createElement(g.a,{classes:{root:u.money}},"Money ")),r.a.createElement(d.a,{align:"right",classes:{root:u.cellNone}},r.a.createElement(g.a,{classes:{root:u.money}},l.a.formatMoney(s.money))),r.a.createElement(d.a,{align:"right",classes:{root:u.cellNone}},r.a.createElement(g.a,{id:"overview-money-hook",classes:{root:u.money}}))),r.a.createElement(p.a,null,r.a.createElement(d.a,{component:"th",scope:"row",classes:{root:u.cellNone}},r.a.createElement(g.a,{classes:{root:u.hack}},"Hack ")),r.a.createElement(d.a,{align:"right",classes:{root:u.cellNone}},r.a.createElement(g.a,{classes:{root:u.hack}},l.a.formatSkill(s.hacking)))),r.a.createElement(p.a,null,!_.a.DisableOverviewProgressBars&&r.a.createElement(C.a,{progress:E,color:y.colors.hack})),r.a.createElement(p.a,null,r.a.createElement(d.a,{component:"th",scope:"row",classes:{root:u.cell}},r.a.createElement(g.a,{classes:{root:u.hack}})),r.a.createElement(d.a,{align:"right",classes:{root:u.cell}},r.a.createElement(g.a,{id:"overview-hack-hook",classes:{root:u.hack}}))),r.a.createElement(p.a,null,r.a.createElement(d.a,{component:"th",scope:"row",classes:{root:u.cellNone}},r.a.createElement(g.a,{classes:{root:u.combat}},"Str ")),r.a.createElement(d.a,{align:"right",classes:{root:u.cellNone}},r.a.createElement(g.a,{classes:{root:u.combat}},l.a.formatSkill(s.strength))),r.a.createElement(d.a,{align:"right",classes:{root:u.cellNone}},r.a.createElement(g.a,{id:"overview-str-hook",classes:{root:u.combat}}))),r.a.createElement(p.a,null,!_.a.DisableOverviewProgressBars&&r.a.createElement(C.a,{progress:k,color:y.colors.combat})),r.a.createElement(p.a,null,r.a.createElement(d.a,{component:"th",scope:"row",classes:{root:u.cellNone}},r.a.createElement(g.a,{classes:{root:u.combat}},"Def ")),r.a.createElement(d.a,{align:"right",classes:{root:u.cellNone}},r.a.createElement(g.a,{classes:{root:u.combat}},l.a.formatSkill(s.defense))),r.a.createElement(d.a,{align:"right",classes:{root:u.cellNone}},r.a.createElement(g.a,{id:"overview-def-hook",classes:{root:u.combat}}))),r.a.createElement(p.a,null,!_.a.DisableOverviewProgressBars&&r.a.createElement(C.a,{progress:M,color:y.colors.combat})),r.a.createElement(p.a,null,r.a.createElement(d.a,{component:"th",scope:"row",classes:{root:u.cellNone}},r.a.createElement(g.a,{classes:{root:u.combat}},"Dex ")),r.a.createElement(d.a,{align:"right",classes:{root:u.cellNone}},r.a.createElement(g.a,{classes:{root:u.combat}},l.a.formatSkill(s.dexterity))),r.a.createElement(d.a,{align:"right",classes:{root:u.cellNone}},r.a.createElement(g.a,{id:"overview-dex-hook",classes:{root:u.combat}}))),r.a.createElement(p.a,null,!_.a.DisableOverviewProgressBars&&r.a.createElement(C.a,{progress:T,color:y.colors.combat})),r.a.createElement(p.a,null,r.a.createElement(d.a,{component:"th",scope:"row",classes:{root:u.cell}},r.a.createElement(g.a,{classes:{root:u.combat}},"Agi ")),r.a.createElement(d.a,{align:"right",classes:{root:u.cell}},r.a.createElement(g.a,{classes:{root:u.combat}},l.a.formatSkill(s.agility))),r.a.createElement(d.a,{align:"right",classes:{root:u.cell}},r.a.createElement(g.a,{id:"overview-agi-hook",classes:{root:u.combat}}))),r.a.createElement(p.a,null,!_.a.DisableOverviewProgressBars&&r.a.createElement(C.a,{progress:A,color:y.colors.combat})),r.a.createElement(p.a,null,r.a.createElement(d.a,{component:"th",scope:"row",classes:{root:u.cellNone}},r.a.createElement(g.a,{classes:{root:u.cha}},"Cha ")),r.a.createElement(d.a,{align:"right",classes:{root:u.cellNone}},r.a.createElement(g.a,{classes:{root:u.cha}},l.a.formatSkill(s.charisma))),r.a.createElement(d.a,{align:"right",classes:{root:u.cellNone}},r.a.createElement(g.a,{id:"overview-cha-hook",classes:{root:u.cha}}))),r.a.createElement(p.a,null,!_.a.DisableOverviewProgressBars&&r.a.createElement(C.a,{progress:R,color:y.colors.cha})),r.a.createElement(D,null),r.a.createElement(p.a,null,r.a.createElement(d.a,{component:"th",scope:"row",classes:{root:u.cell}},r.a.createElement(g.a,{id:"overview-extra-hook-0",classes:{root:u.hack}})),r.a.createElement(d.a,{component:"th",scope:"row",align:"right",classes:{root:u.cell}},r.a.createElement(g.a,{id:"overview-extra-hook-1",classes:{root:u.hack}})),r.a.createElement(d.a,{component:"th",scope:"row",align:"right",classes:{root:u.cell}},r.a.createElement(g.a,{id:"overview-extra-hook-2",classes:{root:u.hack}}))),r.a.createElement(G,null),r.a.createElement(j,null))),r.a.createElement(O.a,{sx:{display:"flex",borderTop:"1px solid "+_.a.theme.welllight}},r.a.createElement(O.a,{sx:{display:"flex",flex:1,justifyContent:"flex-start",alignItems:"center"}},r.a.createElement(b.a,{"aria-label":"save game",onClick:e},r.a.createElement(L.a,{title:0!==_.a.AutosaveInterval?"Save game":"Save game (auto-saves are disabled!)"},r.a.createElement(v.a,{color:0!==_.a.AutosaveInterval?"primary":"error"})))),r.a.createElement(O.a,{sx:{display:"flex",flex:1,justifyContent:"flex-end",alignItems:"center"}},r.a.createElement(b.a,{"aria-label":"kill all scripts",onClick:()=>o(!0)},r.a.createElement(L.a,{title:"Kill all running scripts"},r.a.createElement(w.a,{color:"error"}))))),r.a.createElement(f.a,{open:n,onClose:()=>o(!1),killScripts:t}))}},,,function(e,t,n){"use strict";function a(e,t){if(t<0||t>100)return e;const n=e*(t/100);return e+(Math.random()*(2*n)-n)}n.d(t,"a",(function(){return a}))},,function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));class a{constructor(e,t,n){this.program=e,this.price=t,this.description=n}}},,,,,,,,function(e,t,n){"use strict";function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",(function(){return r})),n.d(t,"c",(function(){return i})),n.d(t,"b",(function(){return o}));const r=new class{constructor(){a(this,"m",1024),a(this,"a",341),a(this,"c",1),this.x=0,this.reset()}step(){this.x=(this.a*this.x+this.c)%this.m}random(){return this.step(),this.x/this.m}reset(){this.x=(new Date).getTime()%this.m}};class i{constructor(e){a(this,"s1",0),a(this,"s2",0),a(this,"s3",0);const t=e/1e3%3e4;this.s1=t,this.s2=t,this.s3=t}step(){this.s1=171*this.s1%30269,this.s2=172*this.s2%30307,this.s3=170*this.s3%30323}random(){return this.step(),(this.s1/30269+this.s2/30307+this.s3/30323)%1}}function o(e){let t=1779033703^e.length;for(let n=0;n<e.length;n++)t=Math.imul(t^e.charCodeAt(n),3432918353),t=t<<13|t>>>19;const n=()=>(t=Math.imul(t^t>>>16,2246822507),t=Math.imul(t^t>>>13,3266489909),(t^=t>>>16)>>>0);let a=n(),r=n(),i=n(),o=n();return()=>{a>>>=0,r>>>=0,i>>>=0,o>>>=0;let e=a+r|0;return a=r^r>>>9,r=i+(i<<3)|0,i=i<<21|i>>>11,o=o+1|0,e=e+o|0,i=i+e|0,(e>>>0)/4294967296}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return d})),n.d(t,"a",(function(){return p}));var a=n(0),r=n.n(a),i=n(22),o=n(154),s=n(539),l=n(9),c=n(1194),f=n(74),u=n(164),m=n(14),h=n(139);const d=e=>null!==e&&e.type===o.b.COMPANY;class p extends o.a{constructor(e){var t,n;super(o.b.COMPANY,null!==(t=null==e?void 0:e.singularity)&&void 0!==t&&t),this.companyName=null!==(n=null==e?void 0:e.companyName)&&void 0!==n?n:l.a.NewTokyoNoodleBar,console.log(f.a)}getCompany(){const e=f.a[this.companyName];if(!e)throw new Error(`Company not found: '${this.companyName}'`);return e}getGainRates(e){return Object(c.a)(e,this.getCompany())}process(e,t){this.cyclesWorked+=t;const n=this.getCompany(),a=this.getGainRates(e);return Object(u.a)(e,a,t,"work"),n.playerReputation+=a.reputation*t,Object(s.a)(n,a.reputation,t),!1}finish(){Object(m.a)(r.a.createElement(r.a.Fragment,null,"You finished working for ",this.companyName,r.a.createElement("br",null),"You have ",r.a.createElement(h.a,{reputation:this.getCompany().playerReputation})," reputation with them."))}toJSON(){return Object(i.b)("CompanyWork",this)}static fromJSON(e){return Object(i.a)(p,e.data)}}i.c.constructors.CompanyWork=p},,,,,,,function(e,t,n){"use strict";function a(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;++n){const r=e[n],i=t[n];if(Array.isArray(r)){if(!Array.isArray(i))return!1;if(!a(r,i))return!1}else if(!(r===i||Number.isNaN(r)&&Number.isNaN(i)))return!1}return!0}n.d(t,"a",(function(){return a}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));const a={0:[0,5e5,1,1.05,"Coffee","Provide your employees with coffee, increasing their energy by 5%."],1:[1,1e9,1.06,1.03,"AdVert.Inc","Hire AdVert.Inc to advertise your company. Each level of this upgrade grants your company a static increase of 3 and 1 to its awareness and popularity, respectively. It will then increase your company's awareness by 1%, and its popularity by a random percentage between 1% and 3%. These effects are increased by other upgrades that increase the power of your advertising."]}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var a=n(0),r=n(6),i=n(118),o=n(142);const s=Object(i.a)(e=>Object(o.a)({favor:{color:e.colors.rep}}));function l({favor:e}){const t=s();return a.createElement("span",{className:t.favor},"number"==typeof e?r.a.formatFavor(e):e)}},,function(e,t,n){"use strict";n.d(t,"b",(function(){return f})),n.d(t,"a",(function(){return u}));var a=n(181),r=n(21),i=n(12),o=n(88),s=n(27),l=n(470);const c=1e3/i.a._idleSpeed;function f(e,t){const n=l.a.find(e=>e.specialName===t.name),a=Object(s.d)(n?n.hostname:"").backdoorInstalled?.9:1;return e.earnings.money*t.costMult*a}function u(e,t){const n=e.hashManager,i=o.c[t.classType],s=a.a[t.location],l=t.isGym()?n.getTrainingMult():n.getStudyMult(),u=f(i,s)/c,m=i.earnings.hackExp*s.expMult/c*l,h=i.earnings.strExp*s.expMult/c*l,d=i.earnings.defExp*s.expMult/c*l,p=i.earnings.dexExp*s.expMult/c*l,g=i.earnings.agiExp*s.expMult/c*l,y=i.earnings.chaExp*s.expMult/c*l;return{money:u,reputation:0,hackExp:m*e.mults.hacking_exp*r.a.ClassGymExpGain,strExp:h*e.mults.strength_exp*r.a.ClassGymExpGain,defExp:d*e.mults.defense_exp*r.a.ClassGymExpGain,dexExp:p*e.mults.dexterity_exp*r.a.ClassGymExpGain,agiExp:g*e.mults.agility_exp*r.a.ClassGymExpGain,chaExp:y*e.mults.charisma_exp*r.a.ClassGymExpGain,intExp:0}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return w}));var a=n(65),r=n(1380),i=n(233),o=n(21),s=n(82),l=n(74),c=n(258),f=n(104),u=n(12),m=n(189),h=n(29),d=n(15),p=n(9),g=n(22),y=n(56),b=n(6),E=n(24),v=n(101);function k(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class w extends r.a{constructor(e=null){super(),k(this,"className",""),k(this,"crimeType",""),k(this,"currentTask",a.a.Idle),k(this,"currentTaskLocation",""),k(this,"currentTaskMaxTime",0),k(this,"currentTaskTime",0),k(this,"earningsForSleeves",Object(i.a)()),k(this,"earningsForPlayer",Object(i.a)()),k(this,"earningsForTask",Object(i.a)()),k(this,"factionWorkType",v.a.HACKING),k(this,"gainRatesForTask",Object(i.a)()),k(this,"gymStatType",""),k(this,"bbAction",""),k(this,"bbContract",""),k(this,"logs",[]),k(this,"memory",1),k(this,"shock",1),k(this,"storedCycles",0),k(this,"sync",1),null!=e&&this.shockRecovery(e)}commitCrime(e,t){const n=s.a[t]||Object.values(s.a).find(e=>e.name===t);return!!n&&(this.currentTask!==a.a.Idle?this.finishTask(e):this.resetTaskStatus(e),this.gainRatesForTask.hack=n.hacking_exp*this.mults.hacking_exp*o.a.CrimeExpGain,this.gainRatesForTask.str=n.strength_exp*this.mults.strength_exp*o.a.CrimeExpGain,this.gainRatesForTask.def=n.defense_exp*this.mults.defense_exp*o.a.CrimeExpGain,this.gainRatesForTask.dex=n.dexterity_exp*this.mults.dexterity_exp*o.a.CrimeExpGain,this.gainRatesForTask.agi=n.agility_exp*this.mults.agility_exp*o.a.CrimeExpGain,this.gainRatesForTask.cha=n.charisma_exp*this.mults.charisma_exp*o.a.CrimeExpGain,this.gainRatesForTask.int=n.intelligence_exp,this.gainRatesForTask.money=n.money*this.mults.crime_money*o.a.CrimeMoney,this.currentTaskLocation=String(this.gainRatesForTask.money),this.crimeType=n.name,this.currentTaskMaxTime=n.time,this.currentTask=a.a.Crime,!0)}finishTask(e){let t=Object(i.a)();if(this.currentTask===a.a.Crime){if(this.currentTaskTime>=this.currentTaskMaxTime){const n=Object.values(s.a).find(e=>e.name===this.crimeType);if(!n)return console.error("Invalid data stored in sleeve.crimeType: "+this.crimeType),this.resetTaskStatus(e),t;if(Math.random()<n.successRate(this)){const a=Object(i.a)(),r=Object.keys(a);for(let e=0;e<r.length;++e){const t=r[e];a[t]=2*this.gainRatesForTask[t]}t=this.gainExperience(e,a),this.gainMoney(e,this.gainRatesForTask),e.karma-=n.karma*(this.sync/100)}else t=this.gainExperience(e,this.gainRatesForTask);return this.currentTaskTime=0,t}}else if(this.currentTask===a.a.Bladeburner){if(0===this.currentTaskMaxTime)return this.currentTaskTime=0,t;const a=e.bladeburner;if(null===a){const n="bladeburner is null";return console.error(`Function: sleeves.finishTask; Message: '${n}'`),this.resetTaskStatus(e),t}if(this.currentTaskTime>=this.currentTaskMaxTime){var n;if("Infiltrate synthoids"===this.bbAction)return a.infiltrateSynthoidCommunities(e),this.currentTaskTime=0,t;let r,i;"Take on contracts"===this.bbAction?(r="Contracts",i=this.bbContract):(r="General",i=this.bbAction);const o=a.getActionIdFromTypeAndName(r,i);if(null===o){const n=`Invalid action: type='${r}' name='${i}'`;return console.error(`Function: sleeves.finishTask; Message: '${n}'`),this.resetTaskStatus(e),t}const s=a.getActionObject(o);if((null!==(n=null==s?void 0:s.count)&&void 0!==n?n:0)>0){const n=a.completeAction(e,this,o,!1);if(n)return t=this.gainExperience(e,n),this.gainMoney(e,n),this.currentTaskTime=0,t}}}return this.resetTaskStatus(e),t}gainExperience(e,t,n=1,a=!1){if(a)return t.hack>0&&(this.hacking_exp+=t.hack),t.str>0&&(this.strength_exp+=t.str),t.def>0&&(this.defense_exp+=t.def),t.dex>0&&(this.dexterity_exp+=t.dex),t.agi>0&&(this.agility_exp+=t.agi),t.cha>0&&(this.charisma_exp+=t.cha),Object(i.a)();const r=this.shock/100*(this.sync/100)*n,o=t.hack*r,s=t.str*r,l=t.def*r,c=t.dex*r,f=t.agi*r,u=t.cha*r,m=t.int*r;return o>0&&(this.gainHackingExp(o),e.gainHackingExp(o),this.earningsForPlayer.hack+=o,this.earningsForTask.hack+=o),s>0&&(this.gainStrengthExp(s),e.gainStrengthExp(s),this.earningsForPlayer.str+=s,this.earningsForTask.str+=s),l>0&&(this.gainDefenseExp(l),e.gainDefenseExp(l),this.earningsForPlayer.def+=l,this.earningsForTask.def+=l),c>0&&(this.gainDexterityExp(c),e.gainDexterityExp(c),this.earningsForPlayer.dex+=c,this.earningsForTask.dex+=c),f>0&&(this.gainAgilityExp(f),e.gainAgilityExp(f),this.earningsForPlayer.agi+=f,this.earningsForTask.agi+=f),u>0&&(this.gainCharismaExp(u),e.gainCharismaExp(u),this.earningsForPlayer.cha+=u,this.earningsForTask.cha+=u),m>0&&(this.gainIntelligenceExp(m),e.gainIntelligenceExp(m)),this.earningsForSleeves.hack+=o*(this.sync/100),this.earningsForSleeves.str+=s*(this.sync/100),this.earningsForSleeves.def+=l*(this.sync/100),this.earningsForSleeves.dex+=c*(this.sync/100),this.earningsForSleeves.agi+=f*(this.sync/100),this.earningsForSleeves.cha+=u*(this.sync/100),{hack:o*(this.sync/100),str:s*(this.sync/100),def:l*(this.sync/100),dex:c*(this.sync/100),agi:f*(this.sync/100),cha:u*(this.sync/100),int:m*(this.sync/100),money:t.money}}gainMoney(e,t,n=1){const a=t.money*n;this.earningsForTask.money+=a,this.earningsForPlayer.money+=a,e.gainMoney(a,"sleeves")}getMemoryUpgradeCost(e){const t=Math.round(e);if(t<0)return 0;if(this.memory+t>100)return this.getMemoryUpgradeCost(100-this.memory);let n=0,a=this.memory-1;for(let t=0;t<e;++t)n+=Math.pow(1.02,a),++a;return 1e12*n}getRepGain(e){if(this.currentTask!==a.a.Faction){if(this.currentTask===a.a.Company){const t=this.currentTaskLocation,n=l.a[t];if(null==n)return console.error("Invalid company found when trying to calculate rep gain: "+t),0;const a=f.a[e.jobs[t]];if(null==a)return console.error("Invalid company position name found when trying to calculate rep gain: "+e.jobs[t]),0;const r=a.calculateJobPerformance(this.hacking,this.strength,this.defense,this.dexterity,this.agility,this.charisma),i=1+n.favor/100;return r*this.mults.company_rep*i}return 0}{let e=1;const t=h.a[this.currentTaskLocation];switch(null!=t&&(e=1+t.favor/100),this.factionWorkType){case v.a.HACKING:return this.getFactionHackingWorkRepGain()*(this.shock/100)*e;case v.a.FIELD:return this.getFactionFieldWorkRepGain()*(this.shock/100)*e;case v.a.SECURITY:return this.getFactionSecurityWorkRepGain()*(this.shock/100)*e;default:return console.warn("Invalid Sleeve.factionWorkType property in Sleeve.getRepGain(): "+this.factionWorkType),0}}}installAugmentation(e){this.hacking_exp=0,this.strength_exp=0,this.defense_exp=0,this.dexterity_exp=0,this.agility_exp=0,this.charisma_exp=0,this.applyAugmentation(e),this.augmentations.push({name:e.name,level:1}),this.updateStatLevels()}log(e){this.logs.push(e),this.logs.length>50&&this.logs.shift()}prestige(e){this.hacking_exp=0,this.strength_exp=0,this.defense_exp=0,this.dexterity_exp=0,this.agility_exp=0,this.charisma_exp=0,this.resetTaskStatus(e),this.earningsForSleeves=Object(i.a)(),this.earningsForPlayer=Object(i.a)(),this.shockRecovery(e),this.augmentations=[],this.resetMultipliers(),this.city=d.a.Sector12,this.shock=1,this.storedCycles=0,this.sync=Math.max(this.memory,1),this.logs=[]}process(e,t=1){const n=1e3/u.a.MilliPerCycle;if(this.storedCycles+=t,this.storedCycles<n)return null;let r=this.storedCycles;r=Math.min(r,15);let o=r*u.a.MilliPerCycle;0!==this.currentTaskMaxTime&&this.currentTaskTime+o>this.currentTaskMaxTime&&(o=this.currentTaskMaxTime-this.currentTaskTime,r=Math.floor(o/u.a.MilliPerCycle),(o<0||r<0)&&(console.warn("Sleeve.process() calculated negative cycle usage"),o=0,r=0)),this.currentTaskTime+=o,this.shock=Math.min(100,this.shock+1e-4*r);let s=Object(i.a)();switch(this.currentTask){case a.a.Idle:break;case a.a.Class:case a.a.Gym:this.updateTaskGainRates(e),s=this.gainExperience(e,this.gainRatesForTask,r),this.gainMoney(e,this.gainRatesForTask,r);break;case a.a.Faction:{s=this.gainExperience(e,this.gainRatesForTask,r),this.gainMoney(e,this.gainRatesForTask,r);const t=h.a[this.currentTaskLocation];if(!(t instanceof m.a)){console.error("Invalid faction for Sleeve task: "+this.currentTaskLocation);break}e.gang&&t.name===e.gang.facName&&this.resetTaskStatus(e),t.playerReputation+=this.getRepGain(e)*r;break}case a.a.Company:{s=this.gainExperience(e,this.gainRatesForTask,r),this.gainMoney(e,this.gainRatesForTask,r);const t=l.a[this.currentTaskLocation];if(!(t instanceof c.a)){console.error("Invalid company for Sleeve task: "+this.currentTaskLocation);break}t.playerReputation+=this.getRepGain(e)*r;break}case a.a.Recovery:this.shock=Math.min(100,this.shock+2e-4*r),this.shock>=100&&this.resetTaskStatus(e);break;case a.a.Synchro:this.sync=Math.min(100,this.sync+2e-4*e.getIntelligenceBonus(.5)*r),this.sync>=100&&this.resetTaskStatus(e)}return 0!==this.currentTaskMaxTime&&this.currentTaskTime>=this.currentTaskMaxTime&&(this.currentTask===a.a.Crime||this.currentTask===a.a.Bladeburner?s=this.finishTask(e):this.finishTask(e)),this.updateStatLevels(),this.storedCycles-=r,s}resetTaskStatus(e){var t;"Support main sleeve"==this.bbAction&&(null===(t=e.bladeburner)||void 0===t||t.sleeveSupport(!1));if(this.currentTask==a.a.Class){const t=Object(i.a)();t.int=u.a.IntelligenceClassBaseExpGain*Math.round(this.currentTaskTime/1e3);const n=this.gainExperience(e,t);e.sleeves.filter(e=>e!=this).forEach(t=>t.gainExperience(e,n,1,!0))}this.earningsForTask=Object(i.a)(),this.gainRatesForTask=Object(i.a)(),this.currentTask=a.a.Idle,this.currentTaskTime=0,this.currentTaskMaxTime=0,this.factionWorkType=v.a.HACKING,this.crimeType="",this.currentTaskLocation="",this.gymStatType="",this.className="",this.bbAction="",this.bbContract="------"}shockRecovery(e){return this.currentTask!==a.a.Idle?this.finishTask(e):this.resetTaskStatus(e),this.currentTask=a.a.Recovery,!0}synchronize(e){return this.currentTask!==a.a.Idle?this.finishTask(e):this.resetTaskStatus(e),this.currentTask=a.a.Synchro,!0}takeUniversityCourse(e,t,n){this.currentTask!==a.a.Idle?this.finishTask(e):this.resetTaskStatus(e);let r=1;switch(t.toLowerCase()){case p.a.AevumSummitUniversity.toLowerCase():if(this.city!==d.a.Aevum)return!1;this.currentTaskLocation=p.a.AevumSummitUniversity,r=4;break;case p.a.Sector12RothmanUniversity.toLowerCase():if(this.city!==d.a.Sector12)return!1;this.currentTaskLocation=p.a.Sector12RothmanUniversity,r=3;break;case p.a.VolhavenZBInstituteOfTechnology.toLowerCase():if(this.city!==d.a.Volhaven)return!1;this.currentTaskLocation=p.a.VolhavenZBInstituteOfTechnology,r=5;break;default:return!1}switch(n.toLowerCase()){case"study computer science":break;case"data structures":this.gainRatesForTask.money=u.a.ClassDataStructuresBaseCost*r*-1;break;case"networks":this.gainRatesForTask.money=u.a.ClassNetworksBaseCost*r*-1;break;case"algorithms":this.gainRatesForTask.money=u.a.ClassAlgorithmsBaseCost*r*-1;break;case"management":this.gainRatesForTask.money=u.a.ClassManagementBaseCost*r*-1;break;case"leadership":this.gainRatesForTask.money=u.a.ClassLeadershipBaseCost*r*-1;break;default:return!1}return this.className=n,this.currentTask=a.a.Class,!0}travel(e,t){return e.loseMoney(u.a.TravelCost,"sleeves"),this.city=t,!0}tryBuyAugmentation(e,t){return!!e.canAfford(t.baseCost)&&(!this.augmentations.some(e=>e.name===t.name)&&(e.loseMoney(t.baseCost,"sleeves"),this.installAugmentation(t),!0))}updateTaskGainRates(e){if(this.currentTask!==a.a.Class)if(this.currentTask!==a.a.Gym)console.warn("Sleeve.updateTaskGainRates() called for unexpected task type "+this.currentTask);else{let t=1;switch(this.currentTaskLocation.toLowerCase()){case p.a.AevumCrushFitnessGym.toLowerCase():t=2;break;case p.a.AevumSnapFitnessGym.toLowerCase():t=5;break;case p.a.Sector12IronGym.toLowerCase():t=1;break;case p.a.Sector12PowerhouseGym.toLowerCase():t=10;break;case p.a.VolhavenMilleniumFitnessGym.toLowerCase():t=4;break;default:return}const n=1,a=e.hashManager.getTrainingMult()*t,r=this.gymStatType.toLowerCase();r.includes("str")?this.gainRatesForTask.str=n*a*this.mults.strength_exp:r.includes("def")?this.gainRatesForTask.def=n*a*this.mults.defense_exp:r.includes("dex")?this.gainRatesForTask.dex=n*a*this.mults.dexterity_exp:r.includes("agi")&&(this.gainRatesForTask.agi=n*a*this.mults.agility_exp)}else{let t=1;switch(this.currentTaskLocation.toLowerCase()){case p.a.AevumSummitUniversity.toLowerCase():t=3;break;case p.a.Sector12RothmanUniversity.toLowerCase():t=2;break;case p.a.VolhavenZBInstituteOfTechnology.toLowerCase():t=4;break;default:return}const n=t*e.hashManager.getStudyMult();switch(this.className.toLowerCase()){case"study computer science":this.gainRatesForTask.hack=u.a.ClassStudyComputerScienceBaseExp*n*this.mults.hacking_exp;break;case"data structures":this.gainRatesForTask.hack=u.a.ClassDataStructuresBaseExp*n*this.mults.hacking_exp;break;case"networks":this.gainRatesForTask.hack=u.a.ClassNetworksBaseExp*n*this.mults.hacking_exp;break;case"algorithms":this.gainRatesForTask.hack=u.a.ClassAlgorithmsBaseExp*n*this.mults.hacking_exp;break;case"management":this.gainRatesForTask.cha=u.a.ClassManagementBaseExp*n*this.mults.charisma_exp;break;case"leadership":this.gainRatesForTask.cha=u.a.ClassLeadershipBaseExp*n*this.mults.charisma_exp}}}upgradeMemory(e){e<0?console.warn("Sleeve.upgradeMemory() called with negative value: "+e):this.memory=Math.min(100,Math.round(this.memory+e))}workForCompany(e,t){if(!(l.a[t]instanceof c.a)||null==e.jobs[t])return!1;this.currentTask!==a.a.Idle?this.finishTask(e):this.resetTaskStatus(e);const n=l.a[t],r=f.a[e.jobs[t]];return null!=n&&(null!=r&&(this.gainRatesForTask.money=r.baseSalary*n.salaryMultiplier*this.mults.work_money*o.a.CompanyWorkMoney,this.gainRatesForTask.hack=r.hackingExpGain*n.expMultiplier*this.mults.hacking_exp*o.a.CompanyWorkExpGain,this.gainRatesForTask.str=r.strengthExpGain*n.expMultiplier*this.mults.strength_exp*o.a.CompanyWorkExpGain,this.gainRatesForTask.def=r.defenseExpGain*n.expMultiplier*this.mults.defense_exp*o.a.CompanyWorkExpGain,this.gainRatesForTask.dex=r.dexterityExpGain*n.expMultiplier*this.mults.dexterity_exp*o.a.CompanyWorkExpGain,this.gainRatesForTask.agi=r.agilityExpGain*n.expMultiplier*this.mults.agility_exp*o.a.CompanyWorkExpGain,this.gainRatesForTask.cha=r.charismaExpGain*n.expMultiplier*this.mults.charisma_exp*o.a.CompanyWorkExpGain,this.currentTaskLocation=t,this.currentTask=a.a.Company,!0))}workForFaction(e,t,n){const r=h.a[t];if(!(""!==t&&r&&r instanceof m.a&&e.factions.includes(t)))return!1;this.currentTask!==a.a.Idle?this.finishTask(e):this.resetTaskStatus(e);const i=r.getInfo(),s=n.toLowerCase();if(s.includes("hack")){if(!i.offerHackingWork)return!1;this.factionWorkType=v.a.HACKING,this.gainRatesForTask.hack=.15*this.mults.hacking_exp*o.a.FactionWorkExpGain}else if(s.includes("field")){if(!i.offerFieldWork)return!1;this.factionWorkType=v.a.FIELD,this.gainRatesForTask.hack=.1*this.mults.hacking_exp*o.a.FactionWorkExpGain,this.gainRatesForTask.str=.1*this.mults.strength_exp*o.a.FactionWorkExpGain,this.gainRatesForTask.def=.1*this.mults.defense_exp*o.a.FactionWorkExpGain,this.gainRatesForTask.dex=.1*this.mults.dexterity_exp*o.a.FactionWorkExpGain,this.gainRatesForTask.agi=.1*this.mults.agility_exp*o.a.FactionWorkExpGain,this.gainRatesForTask.cha=.1*this.mults.charisma_exp*o.a.FactionWorkExpGain}else{if(!s.includes("security"))return!1;if(!i.offerSecurityWork)return!1;this.factionWorkType=v.a.SECURITY,this.gainRatesForTask.hack=.1*this.mults.hacking_exp*o.a.FactionWorkExpGain,this.gainRatesForTask.str=.15*this.mults.strength_exp*o.a.FactionWorkExpGain,this.gainRatesForTask.def=.15*this.mults.defense_exp*o.a.FactionWorkExpGain,this.gainRatesForTask.dex=.15*this.mults.dexterity_exp*o.a.FactionWorkExpGain,this.gainRatesForTask.agi=.15*this.mults.agility_exp*o.a.FactionWorkExpGain}return this.currentTaskLocation=t,this.currentTask=a.a.Faction,!0}workoutAtGym(e,t,n){this.currentTask!==a.a.Idle?this.finishTask(e):this.resetTaskStatus(e);let r=1;switch(t.toLowerCase()){case p.a.AevumCrushFitnessGym.toLowerCase():if(this.city!=d.a.Aevum)return!1;this.currentTaskLocation=p.a.AevumCrushFitnessGym,r=3;break;case p.a.AevumSnapFitnessGym.toLowerCase():if(this.city!=d.a.Aevum)return!1;this.currentTaskLocation=p.a.AevumSnapFitnessGym,r=10;break;case p.a.Sector12IronGym.toLowerCase():if(this.city!=d.a.Sector12)return!1;this.currentTaskLocation=p.a.Sector12IronGym,r=1;break;case p.a.Sector12PowerhouseGym.toLowerCase():if(this.city!=d.a.Sector12)return!1;this.currentTaskLocation=p.a.Sector12PowerhouseGym,r=20;break;case p.a.VolhavenMilleniumFitnessGym.toLowerCase():if(this.city!=d.a.Volhaven)return!1;this.currentTaskLocation=p.a.VolhavenMilleniumFitnessGym,r=7;break;default:return!1}const i=n.toLowerCase();return this.gainRatesForTask.money=u.a.ClassGymBaseCost*r*-1,!!(i.includes("str")||i.includes("def")||i.includes("dex")||i.includes("agi"))&&(this.gymStatType=n,this.currentTask=a.a.Gym,!0)}bladeburner(e,t,n){var r,i,o;this.currentTask!==a.a.Idle?this.finishTask(e):this.resetTaskStatus(e),this.gainRatesForTask.hack=0,this.gainRatesForTask.str=0,this.gainRatesForTask.def=0,this.gainRatesForTask.dex=0,this.gainRatesForTask.agi=0,this.gainRatesForTask.cha=0,this.gainRatesForTask.money=0,this.currentTaskLocation="";let s=0;switch(this.bbContract="------",t){case"Field analysis":s=this.getBladeburnerActionTime(e,"General",t),this.gainRatesForTask.hack=20*this.mults.hacking_exp,this.gainRatesForTask.cha=20*this.mults.charisma_exp;break;case"Recruitment":s=this.getBladeburnerActionTime(e,"General",t),this.gainRatesForTask.cha=2*y.a.BaseStatGain*(null!==(r=null===(i=e.bladeburner)||void 0===i?void 0:i.getRecruitmentTime(this))&&void 0!==r?r:0)*1e3,this.currentTaskLocation=`(Success Rate: ${b.a.formatPercentage(this.recruitmentSuccessChance(e))})`;break;case"Diplomacy":s=this.getBladeburnerActionTime(e,"General",t);break;case"Infiltrate synthoids":s=6e4,this.currentTaskLocation="This will generate additional contracts and operations";break;case"Support main sleeve":null===(o=e.bladeburner)||void 0===o||o.sleeveSupport(!0),s=0;break;case"Take on contracts":s=this.getBladeburnerActionTime(e,"Contracts",n),this.contractGainRates(e,"Contracts",n),this.currentTaskLocation=this.contractSuccessChance(e,"Contracts",n),this.bbContract=Object(E.a)(n.toLowerCase())}return this.bbAction=Object(E.b)(t.toLowerCase()),this.currentTaskMaxTime=s,this.currentTask=a.a.Bladeburner,!0}recruitmentSuccessChance(e){var t,n;return Math.max(0,Math.min(1,null!==(t=null===(n=e.bladeburner)||void 0===n?void 0:n.getRecruitmentSuccessChance(this))&&void 0!==t?t:0))}contractSuccessChance(e,t,n){const a=e.bladeburner;if(null===a){const e="bladeburner is null";return console.error(`Function: sleeves.contractSuccessChance; Message: '${e}'`),"0%"}const r=a.getActionEstimatedSuccessChanceNetscriptFn(this,t,n);return"string"==typeof r?(console.error(`Function: sleeves.contractSuccessChance; Message: '${r}'`),"0%"):r[0]>=1?"100%":`${b.a.formatPercentage(r[0])} - ${b.a.formatPercentage(r[1])}`}contractGainRates(e,t,n){const a=e.bladeburner;if(null===a){const e="bladeburner is null";return void console.error(`Function: sleeves.contractGainRates; Message: '${e}'`)}const r=a.getActionIdFromTypeAndName(t,n);if(null===r){const a=`Invalid action: type='${t}' name='${n}'`;return console.error(`Function: sleeves.contractGainRates; Message: '${a}'`),void this.resetTaskStatus(e)}const i=a.getActionObject(r);if(null===i){const a=`Invalid action: type='${t}' name='${n}'`;return console.error(`Function: sleeves.contractGainRates; Message: '${a}'`),void this.resetTaskStatus(e)}const o=a.getActionStats(i,!0);this.gainRatesForTask.hack=o.hack,this.gainRatesForTask.str=o.str,this.gainRatesForTask.def=o.def,this.gainRatesForTask.dex=o.dex,this.gainRatesForTask.agi=o.agi,this.gainRatesForTask.cha=o.cha;const s=Math.pow(i.rewardFac,i.level-1);this.gainRatesForTask.money=y.a.ContractBaseMoneyGain*s*a.skillMultipliers.money}getBladeburnerActionTime(e,t,n){const a=e.bladeburner;if(null===a){const e="bladeburner is null";return console.error(`Function: sleeves.getBladeburnerActionTime; Message: '${e}'`),-1}const r=a.getActionTimeNetscriptFn(this,t,n);if("string"==typeof r){const e=`Invalid action: type='${t}' name='${n}'`;return console.error(`Function: sleeves.getBladeburnerActionTime; Message: '${e}'`),-1}return r}takeDamage(e){return"number"!=typeof e?(console.warn("Player.takeDamage() called without a numeric argument: "+e),!1):(this.hp-=e,this.hp<=0&&(this.shock+=.5,this.hp=this.max_hp,!0))}whoAmI(){return"Sleeve"}toJSON(){return Object(g.b)("Sleeve",this)}static fromJSON(e){return Object(g.a)(w,e.data)}}g.c.constructors.Sleeve=w},function(e,t,n){"use strict";let a;n.d(t,"a",(function(){return a})),function(e){e[e.SyntaxError=-1]="SyntaxError",e[e.ImportError=-2]="ImportError",e[e.URLImportError=-3]="URLImportError"}(a||(a={}))},function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return i}));var a=n(126);const r=new a.a,i=new a.a},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var a=n(247),r=n(155),i=n(117),o=n(72),s=n(6),l=n(20),c=n(14),f=n(5),u=n(0);function m(e,t,n,a){const s=a.stockMarket.Orders;if(null==s){const e={};for(const t of Object.keys(a.stockMarket)){const n=a.stockMarket[t];n instanceof r.a&&(e[n.symbol]=[])}return void(a.stockMarket.Orders=e)}let l=s[e.symbol];if(null==l||l.constructor!==Array)return console.error(`Invalid Order book for ${e.symbol} in processOrders(): ${l}`),void(l=[]);for(const r of l)if(r.type===t&&r.pos===n)switch(r.type){case i.a.LimitBuy:(r.pos===o.a.Long&&e.price<=r.price||r.pos===o.a.Short&&e.price>=r.price)&&h(r,a);break;case i.a.LimitSell:case i.a.StopBuy:(r.pos===o.a.Long&&e.price>=r.price||r.pos===o.a.Short&&e.price<=r.price)&&h(r,a);break;case i.a.StopSell:(r.pos===o.a.Long&&e.price<=r.price||r.pos===o.a.Short&&e.price>=r.price)&&h(r,a);break;default:return void console.warn("Invalid order type: "+r.type)}}function h(e,t){const n=t.symbolToStockMap[e.stockSymbol];if(!(n instanceof r.a))return void console.error("Could not find stock for this order: "+e.stockSymbol);const m=t.stockMarket.Orders[n.symbol],h={suppressDialog:!0};let d=!0,p=!1;switch(e.type){case i.a.LimitBuy:case i.a.StopBuy:p=!0,e.pos===o.a.Long?d=Object(a.a)(n,e.shares,null,h)&&d:e.pos===o.a.Short&&(d=Object(a.d)(n,e.shares,null,h)&&d);break;case i.a.LimitSell:case i.a.StopSell:e.pos===o.a.Long?d=Object(a.c)(n,e.shares,null,h)&&d:e.pos===o.a.Short&&(d=Object(a.b)(n,e.shares,null,h)&&d);break;default:return void console.warn("Invalid order type: "+e.type)}const g=e.pos===o.a.Long?"Long":"Short";if(d){for(let t=0;t<m.length;++t)if(e==m[t])return m.splice(t,1),void(f.a.SuppressTIXPopup||Object(c.a)(u.createElement(u.Fragment,null,e.type," for ",n.symbol," @ ",u.createElement(l.a,{money:e.price})," (",g,") was filled (",s.a.formatShares(Math.round(e.shares))," shares)")));console.error("Could not find the following Order in Order Book: "),console.error(e)}else p&&Object(c.a)(u.createElement(u.Fragment,null,"Failed to execute ",e.type," for ",n.symbol," @ ",u.createElement(l.a,{money:e.price})," (",g,"). This is most likely because you do not have enough money or the order would exceed the stock's maximum number of shares"))}},,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i}));var a=n(757);const r={...a.Default.colors},i=()=>({...a})},,function(e,t,n){"use strict";n.d(t,"a",(function(){return f})),n.d(t,"b",(function(){return m}));var a=n(0),r=n.n(a),i=n(126),o=n(37),s=n(1),l=n(18),c=n(779);const f=new i.a;let u=0;function m(){const[e,t]=Object(a.useState)([]);return Object(a.useEffect)(()=>f.subscribe(e=>{const n=u+"";u++,t(t=>{const a=function(e){return"string"==typeof e?Object(c.sha256)(e):Object(c.sha256)(JSON.stringify(e.props))}(e);return t.some(e=>e.hash===a)?t:[...t,{id:n,text:e,hash:a}]})}),[]),Object(a.useEffect)(()=>{function e(e){"Escape"===e.code&&t([])}return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[]),r.a.createElement(r.a.Fragment,null,e.length>0&&r.a.createElement(o.a,{open:!0,onClose:function(){t(e=>e.slice(1,1e99))}},r.a.createElement(l.a,{overflow:"scroll",sx:{overflowWrap:"break-word",whiteSpace:"pre-line"}},r.a.createElement(s.a,{component:"span"},e[0].text))))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var a=n(554);const r=()=>`${Object(a.a)(99)}.${Object(a.a)(9)}.${Object(a.a)(9)}.${Object(a.a)(9)}`},function(e,t,n){"use strict";function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",(function(){return r}));class r{constructor(e=""){a(this,"level",1),a(this,"name",""),this.name=e}}},function(e,t,n){"use strict";function a(){return new Promise((e,t)=>{window.indexedDB||t("Indexed DB does not exists");const n=window.indexedDB.open("bitburnerSave",1);n.onupgradeneeded=function(){this.result.createObjectStore("savestring")},n.onerror=function(e){t("Failed to get IDB "+e)},n.onsuccess=function(){const n=this.result;n?e(n.transaction(["savestring"],"readwrite").objectStore("savestring")):t("database loading result was undefined")}})}function r(){return new Promise((e,t)=>{a().then(t=>new Promise((e,n)=>{const a=t.get("save");a.onerror=function(e){n("Error in Database request to get savestring: "+e)},a.onsuccess=function(){e(this.result)}}).then(t=>e(t))).catch(e=>t(e))})}function i(e){return a().then(t=>new Promise((n,a)=>{const r=t.put(e,"save");r.onerror=function(e){a("Error saving game to IndexedDB: "+e)},r.onsuccess=()=>n()}))}function o(){return a().then(e=>{e.delete("save")})}n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return o}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return E})),n.d(t,"b",(function(){return b})),n.d(t,"c",(function(){return g}));var a=n(295),r=n(11),i=n(92),o=n(60),s=n(2),l=n(26),c=n(27),f=n(87),u=n(5),m=n(14),h=n(4),d=n(44);function p(e,t=!1){!t&&u.a.SuppressMessages||g(e.filename),function(e){if(y(e))return;const t=Object(c.d)("home");if(null==t)throw new Error("The home server doesn't exist. You done goofed.");t.messages.push(e.filename)}(e)}function g(e){const t=v[e];if(!(t instanceof a.a))throw new Error("trying to display unexistent message");const n="Message received from unknown sender: <br><br><i>"+t.msg+"</i><br><br>This message was saved as "+t.filename+" onto your home computer.";Object(m.a)(n)}function y(e){const t=Object(c.d)("home");if(null==t)throw new Error("The home server doesn't exist. You done goofed.");return t.messages.includes(e.filename)}function b(){if(i.b.page()===l.a.BitVerse)return;const e=v[E.Jumper0],t=v[E.Jumper1],n=v[E.Jumper2],a=v[E.Jumper3],u=v[E.Jumper4],m=v[E.CyberSecTest],h=v[E.NiteSecTest],g=v[E.BitRunnersTest],b=v[E.TruthGazer],k=v[E.RedPill];if(s.a.hasAugmentation(r.a.TheRedPill)){const e=Object(c.d)(f.a.WorldDaemon);if(!(e instanceof d.a))throw new Error("The world daemon is not a server???? Please un-break reality");s.a.hacking>=e.requiredHackingSkill?p(k,0===s.a.sourceFiles.length):y(b)||p(b)}else if(!y(e)&&s.a.hacking>=25){p(e);const t=o.a.Flight.name,n=s.a.getHomeComputer();n.programs.includes(t)||n.programs.push(t)}else!y(t)&&s.a.hacking>=40?p(t):!y(m)&&s.a.hacking>=50?p(m):!y(n)&&s.a.hacking>=175?p(n):!y(h)&&s.a.hacking>=200?p(h):!y(a)&&s.a.hacking>=350?p(a):!y(u)&&s.a.hacking>=490?p(u):!y(g)&&s.a.hacking>=500&&p(g)}let E;!function(e){e.Jumper0="j0.msg",e.Jumper1="j1.msg",e.Jumper2="j2.msg",e.Jumper3="j3.msg",e.Jumper4="j4.msg",e.CyberSecTest="csec-test.msg",e.NiteSecTest="nitesec-test.msg",e.BitRunnersTest="19dfj3l1nd.msg",e.TruthGazer="truthgazer.msg",e.RedPill="icarus.msg"}(E||(E={}));const v={[E.Jumper0]:new a.a(E.Jumper0,"I know you can sense it. I know you're searching for it. It's why you spend night after night at your computer. <br><br>It's real, I've seen it. And I can help you find it. But not right now. You're not ready yet.<br><br>Use this program to track your progress<br><br>The fl1ght.exe program was added to your home computer<br><br>-jump3R"),[E.Jumper1]:new a.a(E.Jumper1,`Soon you will be contacted by a hacking group known as ${h.a.NiteSec}. They can help you with your search. <br><br>You should join them, garner their favor, and exploit them for their Augmentations. But do not trust them. They are not what they seem. No one is.<br><br>-jump3R`),[E.Jumper2]:new a.a(E.Jumper2,`Do not try to save the world. There is no world to save. If you want to find the truth, worry only about yourself. Ethics and morals will get you killed. <br><br>Watch out for a hacking group known as ${h.a.NiteSec}.<br><br>-jump3R`),[E.Jumper3]:new a.a(E.Jumper3,`You must learn to walk before you can run. And you must run before you can fly. Look for ${h.a.TheBlackHand}. <br><br>I.I.I.I <br><br>-jump3R`),[E.Jumper4]:new a.a(E.Jumper4,"To find what you are searching for, you must understand the bits. The bits are all around us. The runners will help you.<br><br>-jump3R"),[E.CyberSecTest]:new a.a(E.CyberSecTest,"We've been watching you. Your skills are very impressive. But you're wasting your talents. If you join us, you can put your skills to good use and change the world for the better. If you join us, we can unlock your full potential. <br><br>But first, you must pass our test. Find and install the backdoor on our server. <br><br>-"+h.a.CyberSec),[E.NiteSecTest]:new a.a(E.NiteSecTest,"People say that the corrupted governments and corporations rule the world. Yes, maybe they do. But do you know who everyone really fears? People like us. Because they can't hide from us. Because they can't fight shadows and ideas with bullets. <br><br>Join us, and people will fear you, too. <br><br>Find and install the backdoor on our server, avmnite-02h. Then, we will contact you again.<br><br>-"+h.a.NiteSec),[E.BitRunnersTest]:new a.a(E.BitRunnersTest,"We know what you are doing. We know what drives you. We know what you are looking for. <br><br> We can help you find the answers.<br><br>run4theh111z"),[E.TruthGazer]:new a.a(E.TruthGazer,"@&*($#@&__TH3__#@A&#@*)__TRU1H__(*)&*)($#@&()E&R)W&<br>%@*$^$()@&$)$*@__CAN__()(@^#)@&@)#__N0__(#@&#)@&@&(<br>*(__LON6ER__^#)@)(()*#@)@__ESCAP3__)#(@(#@*@()@(#*$<br>()@)#$*%)$#()$#__Y0UR__(*)$#()%(&(%)*!)($__GAZ3__#("),[E.RedPill]:new a.a(E.RedPill,"@)(#V%*N)@(#*)*C)@#%*)*V)@#(*%V@)(#VN%*)@#(*%<br>)@B(*#%)@)M#B*%V)____FIND___#$@)#%(B*)@#(*%B)<br>@_#(%_@#M(BDSPOMB__THE-CAVE_#)$(*@#$)@#BNBEGB<br>DFLSMFVMV)#@($*)@#*$MV)@#(*$V)M#(*$)M@(#*VM$)")}},,,function(e,t,n){"use strict";function a(e){const t=25e3*(Math.pow(1.02,e)-1);return Math.round(1e4*t)/1e4}function r(e){const t=Math.log(e/25e3+1)/Math.log(1.02);return Math.round(1e4*t)/1e4}n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"b",(function(){return f})),n.d(t,"c",(function(){return u})),n.d(t,"a",(function(){return m}));var a=n(116),r=n(29),i=n(2),o=n(27),s=n(87),l=n(44),c=n(33);function f(){const e=h(),t=d(),n=p(),r=g(n,t),i=new a.a(r,e,t);n.addContract(i)}function u(){const e=h(),t=d(),n=i.a.getHomeComputer(),r=g(n,t),o=new a.a(r,e,t);n.addContract(o)}function m(e){let t;const n=Object.keys(a.d);t=null!=e.problemType&&n.includes(e.problemType)?e.problemType:h();const r=d();let i,s;null!=e.server?(i=Object(o.d)(e.server),null==i&&(i=p())):i=p(),s=null!=e.fn?e.fn:g(i,r);const l=new a.a(s,t,r);i.addContract(l)}function h(){const e=Object.keys(a.d);return e[Object(c.a)(0,e.length-1)]}function d(){const e={name:"",type:Object(c.a)(0,a.c.Money)};e.type=function(e){let t=e;const n=i.a.factions.filter(e=>{try{return r.a[e].getInfo().offerHackingWork}catch(e){return console.error("Error when trying to filter Hacking Factions for Coding Contract Generation: "+e),!1}});return t===a.c.FactionReputation&&0===n.length&&(t=a.c.CompanyReputation),t===a.c.FactionReputationAll&&0===n.length&&(t=a.c.CompanyReputation),t===a.c.CompanyReputation&&0===Object.keys(i.a.jobs).length&&(t=a.c.Money),t}(e.type);const t=i.a.factions.filter(e=>r.a[e].getInfo().offerHackingWork);switch(e.type){case a.c.FactionReputation:{const n=t.length,a=t[Object(c.a)(0,n-1)];e.name=a;break}case a.c.CompanyReputation:{const t=Object.keys(i.a.jobs);t.length>0?e.name=t[Object(c.a)(0,t.length-1)]:e.type=a.c.Money;break}}return e}function p(){const e=Object(o.c)().filter(e=>0!==e.serversOnNetwork.length);let t=Object(c.a)(0,e.length-1),n=e[t];for(let a=0;a<200&&(!(n instanceof l.a)||n.purchasedByPlayer||n.hostname===s.a.WorldDaemon);++a)t=Object(c.a)(0,e.length-1),n=e[t];return n}function g(e,t){let n="contract-"+Object(c.a)(0,1e6);for(let t=0;t<1e3&&!(e.contracts.filter(e=>e.fn===n).length<=0);++t)n="contract-"+Object(c.a)(0,1e6);return t.name&&(n+="-"+t.name.replace(/\s/g,"")),n}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return o})),n.d(t,"d",(function(){return s}));var a=n(29);let r=0;function i(){return(new Date).getTime()-r>864e5}function o(e){if(i()){for(const t of e.factions)a.a[t].favor++;r=(new Date).getTime()}}function s(e){r=e}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var a=n(0),r=n(1),i=n(8),o=n(43),s=n(18);function l(e){return a.createElement(s.a,null,a.createElement(o.a,{sx:{my:1,p:1}},a.createElement(i.a,{onClick:e.onClick},e.buttonText),a.createElement(r.a,null,e.infoText)))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var a=n(56),r=n(472),i=n(22);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class s extends r.a{constructor(e=null){super(e),o(this,"reqdRank",100),o(this,"teamCount",0),e&&e.reqdRank&&(this.reqdRank=e.reqdRank),e&&e.teamCount&&(this.teamCount=e.teamCount)}getTeamSuccessBonus(e){if(this.teamCount&&this.teamCount>0){this.teamCount=Math.min(this.teamCount,e.teamSize);return Math.pow(this.teamCount,.05)}return 1}getActionTypeSkillSuccessBonus(e){return e.skillMultipliers.successChanceOperation}getChaosDifficultyBonus(e){const t=e.getCurrentCity();if(t.chaos>a.a.ChaosThreshold){const e=t.chaos-a.a.ChaosThreshold+1;return Math.pow(e,.5)}return 1}toJSON(){return Object(i.b)("Operation",this)}static fromJSON(e){return Object(i.a)(s,e.data)}}i.c.constructors.Operation=s},function(e,t,n){"use strict";n.d(t,"e",(function(){return m})),n.d(t,"c",(function(){return h})),n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return p})),n.d(t,"d",(function(){return g})),n.d(t,"f",(function(){return y}));var a=n(34),r=n(11),i=n(2),o=n(60),s=n(320),l=n(0),c=n.n(l),f=n(4),u=n(12);const m=()=>[new a.a({name:r.a.WKSharmonizer,repCost:1e4,moneyCost:1e6,info:`A copy of the WKS harmonizer from the MIA leader of the ${f.a.ShadowsOfAnarchy} injects *Γ-based cells that provides general enhancement to the body.`,stats:c.a.createElement(c.a.Fragment,null,"This augmentation makes many aspects of infiltration easier and more productive. Such as increased timer, rewards, reduced damage taken, etc."),isSpecial:!0,factions:[f.a.ShadowsOfAnarchy]}),new a.a({name:r.a.MightOfAres,repCost:1e4,moneyCost:1e6,info:"Extra-occular neurons taken from old martial art master. Injecting them gives the user the ability to predict the enemy's attack before they even know it themself.",stats:c.a.createElement(c.a.Fragment,null,"This augmentation makes the Slash minigame easier by showing you via an indicator when the slash in coming."),isSpecial:!0,factions:[f.a.ShadowsOfAnarchy]}),new a.a({name:r.a.WisdomOfAthena,repCost:1e4,moneyCost:1e6,info:"A connective brain implant to SASHA that focuses on pattern recognition and predictive templating.",stats:c.a.createElement(c.a.Fragment,null,"This augmentation makes the Bracket minigame easier by removing all '[' ']'."),isSpecial:!0,factions:[f.a.ShadowsOfAnarchy]}),new a.a({name:r.a.ChaosOfDionysus,repCost:1e4,moneyCost:1e6,info:"Opto-occipito implant to process visual signals before brain interpretation.",stats:c.a.createElement(c.a.Fragment,null,"This augmentation makes the Backwards minigame easier by flipping the words."),isSpecial:!0,factions:[f.a.ShadowsOfAnarchy]}),new a.a({name:r.a.BeautyOfAphrodite,repCost:1e4,moneyCost:1e6,info:"Pheromone extruder injected in the thoracodorsal nerve. Emits pleasing scent guaranteed to make conversational partners more agreeable.",stats:c.a.createElement(c.a.Fragment,null,"This augmentation makes the Bribe minigame easier by indicating the incorrect paths."),isSpecial:!0,factions:[f.a.ShadowsOfAnarchy]}),new a.a({name:r.a.TrickeryOfHermes,repCost:1e4,moneyCost:1e6,info:"Penta-dynamo-neurovascular-valve inserted in the carpal ligament, enhances dexterity.",stats:c.a.createElement(c.a.Fragment,null,"This augmentation makes the Cheat Code minigame easier by allowing the opposite character."),isSpecial:!0,factions:[f.a.ShadowsOfAnarchy]}),new a.a({name:r.a.FloodOfPoseidon,repCost:1e4,moneyCost:1e6,info:"Transtinatium VVD reticulator used in optico-sterbing recognition.",stats:c.a.createElement(c.a.Fragment,null,"This augmentation makes the Symbol matching minigame easier by indicating the correct choice."),isSpecial:!0,factions:[f.a.ShadowsOfAnarchy]}),new a.a({name:r.a.HuntOfArtemis,repCost:1e4,moneyCost:1e6,info:"magneto-turboencabulator based on technology by Micha Eike Siemon, increases the user's electro-magnetic sensitivity.",stats:c.a.createElement(c.a.Fragment,null,"This augmentation makes the Minesweeper minigame easier by showing the location of all mines and keeping their position."),isSpecial:!0,factions:[f.a.ShadowsOfAnarchy]}),new a.a({name:r.a.KnowledgeOfApollo,repCost:1e4,moneyCost:1e6,info:"Neodynic retention fjengeln spoofer using -φ karmions, net positive effect on implantee's delta wave.",stats:c.a.createElement(c.a.Fragment,null,"This augmentation makes the Wire Cutting minigame easier by indicating the incorrect wires."),isSpecial:!0,factions:[f.a.ShadowsOfAnarchy]})],h=()=>[new a.a({name:r.a.HemoRecirculator,moneyCost:45e6,repCost:1e4,info:"A heart implant that greatly increases the body's ability to effectively use and pump blood.",strength:1.08,defense:1.08,agility:1.08,dexterity:1.08,factions:[f.a.Tetrads,f.a.TheDarkArmy,f.a.TheSyndicate]}),new a.a({name:r.a.Targeting1,moneyCost:15e6,repCost:5e3,info:"A cranial implant that is embedded within the inner ear structures and optic nerves. It regulates and enhances balance and hand-eye coordination.",dexterity:1.1,factions:[f.a.SlumSnakes,f.a.TheDarkArmy,f.a.TheSyndicate,f.a.Sector12,f.a.Ishima,f.a.OmniTekIncorporated,f.a.KuaiGongInternational,f.a.BladeIndustries]}),new a.a({name:r.a.Targeting2,moneyCost:425e5,repCost:8750,info:"This upgraded version of the 'Augmented Targeting' implant is capable of augmenting reality by digitally displaying weaknesses and vital signs of threats.",prereqs:[r.a.Targeting1],dexterity:1.2,factions:[f.a.TheDarkArmy,f.a.TheSyndicate,f.a.Sector12,f.a.OmniTekIncorporated,f.a.KuaiGongInternational,f.a.BladeIndustries]}),new a.a({name:r.a.Targeting3,moneyCost:115e6,repCost:27500,info:"The latest version of the 'Augmented Targeting' implant adds the ability to lock-on and track threats.",prereqs:[r.a.Targeting2,r.a.Targeting1],dexterity:1.3,factions:[f.a.TheDarkArmy,f.a.TheSyndicate,f.a.OmniTekIncorporated,f.a.KuaiGongInternational,f.a.BladeIndustries,f.a.TheCovenant]}),new a.a({name:r.a.SyntheticHeart,moneyCost:2875e6,repCost:75e4,info:"This advanced artificial heart, created from plasteel and graphene, is capable of pumping blood more efficiently than an organic heart.",agility:1.5,strength:1.5,factions:[f.a.KuaiGongInternational,f.a.FulcrumSecretTechnologies,f.a.SpeakersForTheDead,f.a.NWO,f.a.TheCovenant,f.a.Daedalus,f.a.Illuminati]}),new a.a({name:r.a.SynfibrilMuscle,repCost:437500,moneyCost:1125e6,info:"The myofibrils in human muscles are injected with special chemicals that react with the proteins inside the myofibrils, altering their underlying structure. The end result is muscles that are stronger and more elastic. Scientists have named these artificially enhanced units 'synfibrils'.",strength:1.3,defense:1.3,factions:[f.a.KuaiGongInternational,f.a.FulcrumSecretTechnologies,f.a.SpeakersForTheDead,f.a.NWO,f.a.TheCovenant,f.a.Daedalus,f.a.Illuminati,f.a.BladeIndustries]}),new a.a({name:r.a.CombatRib1,repCost:7500,moneyCost:2375e4,info:"The rib cage is augmented to continuously release boosters into the bloodstream which increase the oxygen-carrying capacity of blood.",strength:1.1,defense:1.1,factions:[f.a.SlumSnakes,f.a.TheDarkArmy,f.a.TheSyndicate,f.a.Volhaven,f.a.Ishima,f.a.OmniTekIncorporated,f.a.KuaiGongInternational,f.a.BladeIndustries]}),new a.a({name:r.a.CombatRib2,repCost:18750,moneyCost:65e6,info:"An upgraded version of the 'Combat Rib' augmentation that adds potent stimulants which improve focus and endurance while decreasing reaction time and fatigue.",prereqs:[r.a.CombatRib1],strength:1.14,defense:1.14,factions:[f.a.TheDarkArmy,f.a.TheSyndicate,f.a.Volhaven,f.a.OmniTekIncorporated,f.a.KuaiGongInternational,f.a.BladeIndustries]}),new a.a({name:r.a.CombatRib3,repCost:35e3,moneyCost:12e7,info:"The latest version of the 'Combat Rib' augmentation releases advanced anabolic steroids that improve muscle mass and physical performance while being safe and free of side effects.",prereqs:[r.a.CombatRib2,r.a.CombatRib1],strength:1.18,defense:1.18,factions:[f.a.TheDarkArmy,f.a.TheSyndicate,f.a.OmniTekIncorporated,f.a.KuaiGongInternational,f.a.BladeIndustries,f.a.TheCovenant]}),new a.a({name:r.a.NanofiberWeave,repCost:37500,moneyCost:125e6,info:"Synthetic nanofibers are woven into the skin's extracellular matrix using electrospinning, which improves its regenerative and extracellular homeostasis abilities.",strength:1.2,defense:1.2,factions:[f.a.TheDarkArmy,f.a.TheSyndicate,f.a.OmniTekIncorporated,f.a.BladeIndustries,f.a.TianDiHui,f.a.SpeakersForTheDead,f.a.FulcrumSecretTechnologies]}),new a.a({name:r.a.SubdermalArmor,repCost:875e3,moneyCost:325e7,info:"The NEMEAN Subdermal Weave is a thin, light-weight, graphene plating that houses a dilatant fluid. The material is implanted underneath the skin, and is the most advanced form of defensive enhancement that has ever been created. The dilatant fluid, despite being thin and light, is extremely effective at stopping piercing blows and reducing blunt trauma. The properties of graphene allow the plating to mitigate damage from any fire or electrical traumas.",defense:2.2,factions:[f.a.TheSyndicate,f.a.FulcrumSecretTechnologies,f.a.Illuminati,f.a.Daedalus,f.a.TheCovenant]}),new a.a({name:r.a.WiredReflexes,repCost:1250,moneyCost:25e5,info:"Synthetic nerve-enhancements are injected into all major parts of the somatic nervous system, supercharging the spread of neural signals and increasing reflex speed.",agility:1.05,dexterity:1.05,factions:[f.a.TianDiHui,f.a.SlumSnakes,f.a.Sector12,f.a.Volhaven,f.a.Aevum,f.a.Ishima,f.a.TheSyndicate,f.a.TheDarkArmy,f.a.SpeakersForTheDead]}),new a.a({name:r.a.GrapheneBoneLacings,repCost:1125e3,moneyCost:425e7,info:"Graphene is grafted and fused into the skeletal structure, enhancing bone density and tensile strength.",strength:1.7,defense:1.7,factions:[f.a.FulcrumSecretTechnologies,f.a.TheCovenant]}),new a.a({name:r.a.BionicSpine,repCost:45e3,moneyCost:125e6,info:"The spine is reconstructed using plasteel and carbon fibers. It is now capable of stimulating and regulating neural signals passing through the spinal cord, improving senses and reaction speed. The 'Bionic Spine' also interfaces with all other 'Bionic' implants.",strength:1.15,defense:1.15,agility:1.15,dexterity:1.15,factions:[f.a.SpeakersForTheDead,f.a.TheSyndicate,f.a.KuaiGongInternational,f.a.OmniTekIncorporated,f.a.BladeIndustries]}),new a.a({name:r.a.GrapheneBionicSpine,repCost:1625e3,moneyCost:6e9,info:"An upgrade to the 'Bionic Spine' augmentation. The spine is fused with graphene which enhances durability and supercharges all body functions.",prereqs:[r.a.BionicSpine],strength:1.6,defense:1.6,agility:1.6,dexterity:1.6,factions:[f.a.FulcrumSecretTechnologies,f.a.ECorp]}),new a.a({name:r.a.BionicLegs,repCost:15e4,moneyCost:375e6,info:"Cybernetic legs, created from plasteel and carbon fibers, enhance running speed.",agility:1.6,factions:[f.a.SpeakersForTheDead,f.a.TheSyndicate,f.a.KuaiGongInternational,f.a.OmniTekIncorporated,f.a.BladeIndustries]}),new a.a({name:r.a.GrapheneBionicLegs,repCost:75e4,moneyCost:45e8,info:"An upgrade to the 'Bionic Legs' augmentation. The legs are fused with graphene, greatly enhancing jumping ability.",prereqs:[r.a.BionicLegs],agility:2.5,factions:[f.a.MegaCorp,f.a.ECorp,f.a.FulcrumSecretTechnologies]}),new a.a({name:r.a.SpeechProcessor,repCost:7500,moneyCost:5e7,info:"A cochlear implant with an embedded computer that analyzes incoming speech. The embedded computer processes characteristics of incoming speech, such as tone and inflection, to pick up on subtle cues and aid in social interactions.",charisma:1.2,factions:[f.a.TianDiHui,f.a.Chongqing,f.a.Sector12,f.a.NewTokyo,f.a.Aevum,f.a.Ishima,f.a.Volhaven,f.a.Silhouette]}),new a.a({name:r.a.TITN41Injection,repCost:25e3,moneyCost:19e7,info:"TITN is a series of viruses that targets and alters the sequences of human DNA in genes that control personality. The TITN-41 strain alters these genes so that the subject becomes more outgoing and sociable.",charisma:1.15,charisma_exp:1.15,factions:[f.a.Silhouette]}),new a.a({name:r.a.EnhancedSocialInteractionImplant,repCost:375e3,moneyCost:1375e6,info:"A cranial implant that greatly assists in the user's ability to analyze social situations and interactions. The system uses a wide variety of factors such as facial expression, body language, voice tone, and inflection to determine the best course of action during social situations. The implant also uses deep learning software to continuously learn new behavior patterns and how to best respond.",charisma:1.6,charisma_exp:1.6,factions:[f.a.BachmanAssociates,f.a.NWO,f.a.ClarkeIncorporated,f.a.OmniTekIncorporated,f.a.FourSigma]}),new a.a({name:r.a.BitWire,repCost:3750,moneyCost:1e7,info:"A small brain implant embedded in the cerebrum. This regulates and improves the brain's computing capabilities.",hacking:1.05,factions:[f.a.CyberSec,f.a.NiteSec]}),new a.a({name:r.a.ArtificialBioNeuralNetwork,repCost:275e3,moneyCost:3e9,info:"A network consisting of millions of nanoprocessors is embedded into the brain. The network is meant to mimic the way a biological brain solves a problem, with each nanoprocessor acting similar to the way a neuron would in a neural network. However, these nanoprocessors are programmed to perform computations much faster than organic neurons, allowing the user to solve much more complex problems at a much faster rate.",hacking_speed:1.03,hacking_money:1.15,hacking:1.12,factions:[f.a.BitRunners,f.a.FulcrumSecretTechnologies]}),new a.a({name:r.a.ArtificialSynapticPotentiation,repCost:6250,moneyCost:8e7,info:"The body is injected with a chemical that artificially induces synaptic potentiation, otherwise known as the strengthening of synapses. This results in enhanced cognitive abilities.",hacking_speed:1.02,hacking_chance:1.05,hacking_exp:1.05,factions:[f.a.TheBlackHand,f.a.NiteSec]}),new a.a({name:r.a.EnhancedMyelinSheathing,repCost:1e5,moneyCost:1375e6,info:"Electrical signals are used to induce a new, artificial form of myelinogenesis in the human body. This process results in the proliferation of new, synthetic myelin sheaths in the nervous system. These myelin sheaths can propogate neuro-signals much faster than their organic counterparts, leading to greater processing speeds and better brain function.",hacking_speed:1.03,hacking_exp:1.1,hacking:1.08,factions:[f.a.FulcrumSecretTechnologies,f.a.BitRunners,f.a.TheBlackHand]}),new a.a({name:r.a.SynapticEnhancement,repCost:2e3,moneyCost:75e5,info:"A small cranial implant that continuously uses weak electrical signals to stimulate the brain and induce stronger synaptic activity. This improves the user's cognitive abilities.",hacking_speed:1.03,factions:[f.a.CyberSec,f.a.Aevum]}),new a.a({name:r.a.NeuralRetentionEnhancement,repCost:2e4,moneyCost:25e7,info:"Chemical injections are used to permanently alter and strengthen the brain's neuronal circuits, strengthening the ability to retain information.",hacking_exp:1.25,factions:[f.a.NiteSec]}),new a.a({name:r.a.DataJack,repCost:112500,moneyCost:45e7,info:"A brain implant that provides an interface for direct, wireless communication between a computer's main memory and the mind. This implant allows the user to not only access a computer's memory, but also alter and delete it.",hacking_money:1.25,factions:[f.a.BitRunners,f.a.TheBlackHand,f.a.NiteSec,f.a.Chongqing,f.a.NewTokyo]}),new a.a({name:r.a.ENM,repCost:15e3,moneyCost:25e7,info:"A thin device embedded inside the arm containing a wireless module capable of connecting to nearby networks. Once connected, the Netburner Module is capable of capturing and processing all of the traffic on that network. By itself, the Embedded Netburner Module does not do much, but a variety of very powerful upgrades can be installed that allow you to fully control the traffic on a network.",hacking:1.08,factions:[f.a.BitRunners,f.a.TheBlackHand,f.a.NiteSec,f.a.ECorp,f.a.MegaCorp,f.a.FulcrumSecretTechnologies,f.a.NWO,f.a.BladeIndustries]}),new a.a({name:r.a.ENMCore,repCost:175e3,moneyCost:25e8,info:"The Core library is an implant that upgrades the firmware of the Embedded Netburner Module. This upgrade allows the Embedded Netburner Module to generate its own data on a network.",prereqs:[r.a.ENM],hacking_speed:1.03,hacking_money:1.1,hacking_chance:1.03,hacking_exp:1.07,hacking:1.07,factions:[f.a.BitRunners,f.a.TheBlackHand,f.a.ECorp,f.a.MegaCorp,f.a.FulcrumSecretTechnologies,f.a.NWO,f.a.BladeIndustries]}),new a.a({name:r.a.ENMCoreV2,repCost:1e6,moneyCost:45e8,info:"The Core V2 library is an implant that upgrades the firmware of the Embedded Netburner Module. This upgraded firmware allows the Embedded Netburner Module to control information on a network by re-routing traffic, spoofing IP addresses, and altering the data inside network packets.",prereqs:[r.a.ENMCore,r.a.ENM],hacking_speed:1.05,hacking_money:1.3,hacking_chance:1.05,hacking_exp:1.15,hacking:1.08,factions:[f.a.BitRunners,f.a.ECorp,f.a.MegaCorp,f.a.FulcrumSecretTechnologies,f.a.NWO,f.a.BladeIndustries,f.a.OmniTekIncorporated,f.a.KuaiGongInternational]}),new a.a({name:r.a.ENMCoreV3,repCost:175e4,moneyCost:75e8,info:"The Core V3 library is an implant that upgrades the firmware of the Embedded Netburner Module. This upgraded firmware allows the Embedded Netburner Module to seamlessly inject code into any device on a network.",prereqs:[r.a.ENMCoreV2,r.a.ENMCore,r.a.ENM],hacking_speed:1.05,hacking_money:1.4,hacking_chance:1.1,hacking_exp:1.25,hacking:1.1,factions:[f.a.ECorp,f.a.MegaCorp,f.a.FulcrumSecretTechnologies,f.a.NWO,f.a.Daedalus,f.a.TheCovenant,f.a.Illuminati]}),new a.a({name:r.a.ENMAnalyzeEngine,repCost:625e3,moneyCost:6e9,info:"Installs the Analyze Engine for the Embedded Netburner Module, which is a CPU cluster that vastly outperforms the Netburner Module's native single-core processor.",prereqs:[r.a.ENM],hacking_speed:1.1,factions:[f.a.ECorp,f.a.MegaCorp,f.a.FulcrumSecretTechnologies,f.a.NWO,f.a.Daedalus,f.a.TheCovenant,f.a.Illuminati]}),new a.a({name:r.a.ENMDMA,repCost:1e6,moneyCost:7e9,info:"This implant installs a Direct Memory Access (DMA) controller into the Embedded Netburner Module. This allows the Module to send and receive data directly to and from the main memory of devices on a network.",prereqs:[r.a.ENM],hacking_money:1.4,hacking_chance:1.2,factions:[f.a.ECorp,f.a.MegaCorp,f.a.FulcrumSecretTechnologies,f.a.NWO,f.a.Daedalus,f.a.TheCovenant,f.a.Illuminati]}),new a.a({name:r.a.Neuralstimulator,repCost:5e4,moneyCost:3e9,info:"A cranial implant that intelligently stimulates certain areas of the brain in order to improve cognitive functions.",hacking_speed:1.02,hacking_chance:1.1,hacking_exp:1.12,factions:[f.a.TheBlackHand,f.a.Chongqing,f.a.Sector12,f.a.NewTokyo,f.a.Aevum,f.a.Ishima,f.a.Volhaven,f.a.BachmanAssociates,f.a.ClarkeIncorporated,f.a.FourSigma]}),new a.a({name:r.a.NeuralAccelerator,repCost:2e5,moneyCost:175e7,info:"A microprocessor that accelerates the processing speed of biological neural networks. This is a cranial implant that is embedded inside the brain.",hacking:1.1,hacking_exp:1.15,hacking_money:1.2,factions:[f.a.BitRunners]}),new a.a({name:r.a.CranialSignalProcessorsG1,repCost:1e4,moneyCost:7e7,info:"The first generation of Cranial Signal Processors. Cranial Signal Processors are a set of specialized microprocessors that are attached to neurons in the brain. These chips process neural signals to quickly and automatically perform specific computations so that the brain doesn't have to.",hacking_speed:1.01,hacking:1.05,factions:[f.a.CyberSec,f.a.NiteSec]}),new a.a({name:r.a.CranialSignalProcessorsG2,repCost:18750,moneyCost:125e6,info:"The second generation of Cranial Signal Processors. Cranial Signal Processors are a set of specialized microprocessors that are attached to neurons in the brain. These chips process neural signals to quickly and automatically perform specific computations so that the brain doesn't have to.",prereqs:[r.a.CranialSignalProcessorsG1],hacking_speed:1.02,hacking_chance:1.05,hacking:1.07,factions:[f.a.CyberSec,f.a.NiteSec]}),new a.a({name:r.a.CranialSignalProcessorsG3,repCost:5e4,moneyCost:55e7,info:"The third generation of Cranial Signal Processors. Cranial Signal Processors are a set of specialized microprocessors that are attached to neurons in the brain. These chips process neural signals to quickly and automatically perform specific computations so that the brain doesn't have to.",prereqs:[r.a.CranialSignalProcessorsG2,r.a.CranialSignalProcessorsG1],hacking_speed:1.02,hacking_money:1.15,hacking:1.09,factions:[f.a.NiteSec,f.a.TheBlackHand,f.a.BitRunners]}),new a.a({name:r.a.CranialSignalProcessorsG4,repCost:125e3,moneyCost:11e8,info:"The fourth generation of Cranial Signal Processors. Cranial Signal Processors are a set of specialized microprocessors that are attached to neurons in the brain. These chips process neural signals to quickly and automatically perform specific computations so that the brain doesn't have to.",prereqs:[r.a.CranialSignalProcessorsG3,r.a.CranialSignalProcessorsG2,r.a.CranialSignalProcessorsG1],hacking_speed:1.02,hacking_money:1.2,hacking_grow:1.25,factions:[f.a.TheBlackHand,f.a.BitRunners]}),new a.a({name:r.a.CranialSignalProcessorsG5,repCost:25e4,moneyCost:225e7,info:"The fifth generation of Cranial Signal Processors. Cranial Signal Processors are a set of specialized microprocessors that are attached to neurons in the brain. These chips process neural signals to quickly and automatically perform specific computations so that the brain doesn't have to.",prereqs:[r.a.CranialSignalProcessorsG4,r.a.CranialSignalProcessorsG3,r.a.CranialSignalProcessorsG2,r.a.CranialSignalProcessorsG1],hacking:1.3,hacking_money:1.25,hacking_grow:1.75,factions:[f.a.BitRunners]}),new a.a({name:r.a.NeuronalDensification,repCost:187500,moneyCost:1375e6,info:"The brain is surgically re-engineered to have increased neuronal density by decreasing the neuron gap junction. Then, the body is genetically modified to enhance the production and capabilities of its neural stem cells.",hacking:1.15,hacking_exp:1.1,hacking_speed:1.03,factions:[f.a.ClarkeIncorporated]}),new a.a({name:r.a.NuoptimalInjectorImplant,repCost:5e3,moneyCost:2e7,info:"This torso implant automatically injects nootropic supplements into the bloodstream to improve memory, increase focus, and provide other cognitive enhancements.",company_rep:1.2,factions:[f.a.TianDiHui,f.a.Volhaven,f.a.NewTokyo,f.a.Chongqing,f.a.ClarkeIncorporated,f.a.FourSigma,f.a.BachmanAssociates]}),new a.a({name:r.a.SpeechEnhancement,repCost:2500,moneyCost:125e5,info:"An advanced neural implant that improves your speaking abilities, making you more convincing and likable in conversations and overall improving your social interactions.",company_rep:1.1,charisma:1.1,factions:[f.a.TianDiHui,f.a.SpeakersForTheDead,f.a.FourSigma,f.a.KuaiGongInternational,f.a.ClarkeIncorporated,f.a.BachmanAssociates]}),new a.a({name:r.a.FocusWire,repCost:75e3,moneyCost:9e8,info:"A cranial implant that stops procrastination by blocking specific neural pathways in the brain.",hacking_exp:1.05,strength_exp:1.05,defense_exp:1.05,dexterity_exp:1.05,agility_exp:1.05,charisma_exp:1.05,company_rep:1.1,work_money:1.2,factions:[f.a.BachmanAssociates,f.a.ClarkeIncorporated,f.a.FourSigma,f.a.KuaiGongInternational]}),new a.a({name:r.a.PCDNI,repCost:375e3,moneyCost:375e7,info:"Installs a Direct-Neural Interface jack into your arm that is compatible with most computers. Connecting to a computer through this jack allows you to interface with it using the brain's electrochemical signals.",company_rep:1.3,hacking:1.08,factions:[f.a.FourSigma,f.a.OmniTekIncorporated,f.a.ECorp,f.a.BladeIndustries]}),new a.a({name:r.a.PCDNIOptimizer,repCost:5e5,moneyCost:45e8,info:"This is a submodule upgrade to the PC Direct-Neural Interface augmentation. It improves the performance of the interface and gives the user more control options to a connected computer.",prereqs:[r.a.PCDNI],company_rep:1.75,hacking:1.1,factions:[f.a.FulcrumSecretTechnologies,f.a.ECorp,f.a.BladeIndustries]}),new a.a({name:r.a.PCDNINeuralNetwork,repCost:15e5,moneyCost:75e8,info:"This is an additional installation that upgrades the functionality of the PC Direct-Neural Interface augmentation. When connected to a computer, the Neural Network upgrade allows the user to use their own brain's processing power to aid the computer in computational tasks.",prereqs:[r.a.PCDNI],company_rep:2,hacking:1.1,hacking_speed:1.05,factions:[f.a.FulcrumSecretTechnologies]}),new a.a({name:r.a.ADRPheromone1,repCost:3750,moneyCost:175e5,info:"The body is genetically re-engineered so that it produces the ADR-V1 pheromone, an artificial pheromone discovered by scientists. The ADR-V1 pheromone, when excreted, triggers feelings of admiration and approval in other people.",company_rep:1.1,faction_rep:1.1,factions:[f.a.TianDiHui,f.a.TheSyndicate,f.a.NWO,f.a.MegaCorp,f.a.FourSigma]}),new a.a({name:r.a.ADRPheromone2,repCost:62500,moneyCost:55e7,info:"The body is genetically re-engineered so that it produces the ADR-V2 pheromone, which is similar to but more potent than ADR-V1. This pheromone, when excreted, triggers feelings of admiration, approval, and respect in others.",company_rep:1.2,faction_rep:1.2,factions:[f.a.Silhouette,f.a.FourSigma,f.a.BachmanAssociates,f.a.ClarkeIncorporated]}),new a.a({name:r.a.ShadowsSimulacrum,repCost:37500,moneyCost:4e8,info:"A crude but functional matter phase-shifter module that is embedded in the brainstem and cerebellum. This augmentation was developed by criminal organizations and allows the user to project and control holographic simulacrums within a large radius. These simulacrums are commonly used for espionage and surveillance work.",company_rep:1.15,faction_rep:1.15,factions:[f.a.TheSyndicate,f.a.TheDarkArmy,f.a.SpeakersForTheDead]}),new a.a({name:r.a.HacknetNodeCPUUpload,repCost:3750,moneyCost:11e6,info:"Uploads the architecture and design details of a Hacknet Node's CPU into the brain. This allows the user to engineer custom hardware and software for the Hacknet Node that provides better performance.",hacknet_node_money:1.15,hacknet_node_purchase_cost:.85,factions:[f.a.Netburners]}),new a.a({name:r.a.HacknetNodeCacheUpload,repCost:2500,moneyCost:55e5,info:"Uploads the architecture and design details of a Hacknet Node's main-memory cache into the brain. This allows the user to engineer custom cache hardware for the Hacknet Node that offers better performance.",hacknet_node_money:1.1,hacknet_node_level_cost:.85,factions:[f.a.Netburners]}),new a.a({name:r.a.HacknetNodeNICUpload,repCost:1875,moneyCost:45e5,info:"Uploads the architecture and design details of a Hacknet Node's Network Interface Card (NIC) into the brain. This allows the user to engineer a custom NIC for the Hacknet Node that offers better performance.",hacknet_node_money:1.1,hacknet_node_purchase_cost:.9,factions:[f.a.Netburners]}),new a.a({name:r.a.HacknetNodeKernelDNI,repCost:7500,moneyCost:4e7,info:"Installs a Direct-Neural Interface jack into the arm that is capable of connecting to a Hacknet Node. This lets the user access and manipulate the Node's kernel using electrochemical signals.",hacknet_node_money:1.25,factions:[f.a.Netburners]}),new a.a({name:r.a.HacknetNodeCoreDNI,repCost:12500,moneyCost:6e7,info:"Installs a Direct-Neural Interface jack into the arm that is capable of connecting to a Hacknet Node. This lets the user access and manipulate the Node's processing logic using electrochemical signals.",hacknet_node_money:1.45,factions:[f.a.Netburners]}),new a.a({name:r.a.Neurotrainer1,repCost:1e3,moneyCost:4e6,info:"A decentralized cranial implant that improves the brain's ability to learn. It is installed by releasing millions of nanobots into the human brain, each of which attaches to a different neural pathway to enhance the brain's ability to retain and retrieve information.",hacking_exp:1.1,strength_exp:1.1,defense_exp:1.1,dexterity_exp:1.1,agility_exp:1.1,charisma_exp:1.1,factions:[f.a.CyberSec,f.a.Aevum]}),new a.a({name:r.a.Neurotrainer2,repCost:1e4,moneyCost:45e6,info:"A decentralized cranial implant that improves the brain's ability to learn. This is a more powerful version of the Neurotrainer I augmentation, but it does not require Neurotrainer I to be installed as a prerequisite.",hacking_exp:1.15,strength_exp:1.15,defense_exp:1.15,dexterity_exp:1.15,agility_exp:1.15,charisma_exp:1.15,factions:[f.a.BitRunners,f.a.NiteSec]}),new a.a({name:r.a.Neurotrainer3,repCost:25e3,moneyCost:13e7,info:"A decentralized cranial implant that improves the brain's ability to learn. This is a more powerful version of the Neurotrainer I and Neurotrainer II augmentation, but it does not require either of them to be installed as a prerequisite.",hacking_exp:1.2,strength_exp:1.2,defense_exp:1.2,dexterity_exp:1.2,agility_exp:1.2,charisma_exp:1.2,factions:[f.a.NWO,f.a.FourSigma]}),new a.a({name:r.a.Hypersight,repCost:15e4,moneyCost:275e7,info:"A bionic eye implant that grants sight capabilities far beyond those of a natural human. Embedded circuitry within the implant provides the ability to detect heat and movement through solid objects such as walls, thus providing 'x-ray vision'-like capabilities.",dexterity:1.4,hacking_speed:1.03,hacking_money:1.1,factions:[f.a.BladeIndustries,f.a.KuaiGongInternational]}),new a.a({name:r.a.LuminCloaking1,repCost:1500,moneyCost:5e6,info:"A skin implant that reinforces the skin with highly-advanced synthetic cells. These cells, when powered, have a negative refractive index. As a result, they bend light around the skin, making the user much harder to see with the naked eye.",agility:1.05,crime_money:1.1,factions:[f.a.SlumSnakes,f.a.Tetrads]}),new a.a({name:r.a.LuminCloaking2,repCost:5e3,moneyCost:3e7,info:"This is a more advanced version of the LuminCloaking-V1 augmentation. This skin implant reinforces the skin with highly-advanced synthetic cells. These cells, when powered, are capable of not only bending light but also of bending heat, making the user more resilient as well as stealthy.",prereqs:[r.a.LuminCloaking1],agility:1.1,defense:1.1,crime_money:1.25,factions:[f.a.SlumSnakes,f.a.Tetrads]}),new a.a({name:r.a.SmartSonar,repCost:22500,moneyCost:75e6,info:"A cochlear implant that helps the player detect and locate enemies using sound propagation.",dexterity:1.1,dexterity_exp:1.15,crime_money:1.25,factions:[f.a.SlumSnakes]}),new a.a({name:r.a.PowerRecirculator,repCost:25e3,moneyCost:18e7,info:"The body's nerves are attached with polypyrrole nanocircuits that are capable of capturing wasted energy, in the form of heat, and converting it back into usable power.",hacking:1.05,strength:1.05,defense:1.05,dexterity:1.05,agility:1.05,charisma:1.05,hacking_exp:1.1,strength_exp:1.1,defense_exp:1.1,dexterity_exp:1.1,agility_exp:1.1,charisma_exp:1.1,factions:[f.a.Tetrads,f.a.TheDarkArmy,f.a.TheSyndicate,f.a.NWO]}),new a.a({name:r.a.QLink,repCost:1875e3,moneyCost:25e12,info:`A brain implant that wirelessly connects you to the ${f.a.Illuminati}'s quantum supercomputer, allowing you to access and use its incredible computing power.`,hacking:1.75,hacking_speed:2,hacking_chance:2.5,hacking_money:4,factions:[f.a.Illuminati]}),new a.a({name:r.a.SPTN97,repCost:125e4,moneyCost:4875e6,info:"The SPTN-97 gene is injected into the genome. The SPTN-97 gene is an artificially-synthesized gene that was developed by DARPA to create super-soldiers through genetic modification. The gene was outlawed in 2056.",strength:1.75,defense:1.75,dexterity:1.75,agility:1.75,hacking:1.15,factions:[f.a.TheCovenant]}),new a.a({name:r.a.HiveMind,repCost:15e5,moneyCost:55e8,info:`A brain implant developed by ${f.a.ECorp}. They do not reveal what exactly the implant does, but they promise that it will greatly enhance your abilities.`,hacking_grow:3,stats:null,factions:[f.a.ECorp]}),new a.a({name:r.a.TheRedPill,repCost:25e5,moneyCost:0,info:"It's time to leave the cave.",stats:null,isSpecial:!0,factions:[f.a.Daedalus]}),new a.a({name:r.a.CordiARCReactor,repCost:1125e3,moneyCost:5e9,info:"The thoracic cavity is equipped with a small chamber designed to hold and sustain hydrogen plasma. The plasma is used to generate fusion power through nuclear fusion, providing limitless amounts of clean energy for the body.",strength:1.35,defense:1.35,dexterity:1.35,agility:1.35,strength_exp:1.35,defense_exp:1.35,dexterity_exp:1.35,agility_exp:1.35,factions:[f.a.MegaCorp]}),new a.a({name:r.a.SmartJaw,repCost:375e3,moneyCost:275e7,info:"A bionic jaw that contains advanced hardware and software capable of psychoanalyzing and profiling the personality of others using optical imaging software.",charisma:1.5,charisma_exp:1.5,company_rep:1.25,faction_rep:1.25,factions:[f.a.BachmanAssociates]}),new a.a({name:r.a.Neotra,repCost:562500,moneyCost:2875e6,info:"A highly-advanced techno-organic drug that is injected into the skeletal and integumentary system. The drug permanently modifies the DNA of the body's skin and bone cells, granting them the ability to repair and restructure themselves.",strength:1.55,defense:1.55,factions:[f.a.BladeIndustries]}),new a.a({name:r.a.Xanipher,repCost:875e3,moneyCost:425e7,info:"A concoction of advanced nanobots that is orally ingested into the body. These nanobots induce physiological changes and significantly improve the body's functioning in all aspects.",hacking:1.2,strength:1.2,defense:1.2,dexterity:1.2,agility:1.2,charisma:1.2,hacking_exp:1.15,strength_exp:1.15,defense_exp:1.15,dexterity_exp:1.15,agility_exp:1.15,charisma_exp:1.15,factions:[f.a.NWO]}),new a.a({name:r.a.HydroflameLeftArm,repCost:125e4,moneyCost:25e11,info:"The left arm of a legendary BitRunner who ascended beyond this world. It projects a light blue energy shield that protects the exposed inner parts. Even though it contains no weapons, the advanced tungsten titanium alloy increases the user's strength to unbelievable levels. The augmentation gets more powerful over time for seemingly no reason.",strength:2.7,factions:[f.a.NWO]}),new a.a({name:r.a.nextSENS,repCost:437500,moneyCost:1925e6,info:"The body is genetically re-engineered to maintain a state of negligible senescence, preventing the body from deteriorating with age.",hacking:1.2,strength:1.2,defense:1.2,dexterity:1.2,agility:1.2,charisma:1.2,factions:[f.a.ClarkeIncorporated]}),new a.a({name:r.a.OmniTekInfoLoad,repCost:625e3,moneyCost:2875e6,info:"OmniTek's data and information repository is uploaded into your brain, enhancing your programming and hacking abilities.",hacking:1.2,hacking_exp:1.25,factions:[f.a.OmniTekIncorporated]}),new a.a({name:r.a.PhotosyntheticCells,repCost:562500,moneyCost:275e7,info:"Chloroplasts are added to epidermal stem cells and are applied to the body using a skin graft. The result is photosynthetic skin cells, allowing users to generate their own energy and nutrition using solar power.",strength:1.4,defense:1.4,agility:1.4,factions:[f.a.KuaiGongInternational]}),new a.a({name:r.a.Neurolink,repCost:875e3,moneyCost:4375e6,info:`A brain implant that provides a high-bandwidth, direct neural link between your mind and the ${f.a.BitRunners}' data servers, which reportedly contain the largest database of hacking tools and information in the world.`,hacking:1.15,hacking_exp:1.2,hacking_chance:1.1,hacking_speed:1.05,programs:[o.a.FTPCrackProgram.name,o.a.RelaySMTPProgram.name],factions:[f.a.BitRunners]}),new a.a({name:r.a.TheBlackHand,repCost:1e5,moneyCost:55e7,info:"A highly advanced bionic hand. This prosthetic not only enhances strength and dexterity but it is also embedded with hardware and firmware that lets the user connect to, access, and hack devices and machines by just touching them.",strength:1.15,dexterity:1.15,hacking:1.1,hacking_speed:1.02,hacking_money:1.1,factions:[f.a.TheBlackHand]}),new a.a({name:r.a.CRTX42AA,repCost:45e3,moneyCost:225e6,info:"The CRTX42-AA gene is injected into the genome. The CRTX42-AA is an artificially-synthesized gene that targets the visual and prefrontal cortex and improves cognitive abilities.",hacking:1.08,hacking_exp:1.15,factions:[f.a.NiteSec]}),new a.a({name:r.a.Neuregen,repCost:37500,moneyCost:375e6,info:"A drug that genetically modifies the neurons in the brain resulting in neurons that never die, continuously regenerate, and strengthen themselves.",hacking_exp:1.4,factions:[f.a.Chongqing]}),new a.a({name:r.a.CashRoot,repCost:12500,moneyCost:125e6,info:c.a.createElement(c.a.Fragment,null,"A collection of digital assets saved on a small chip. The chip is implanted into your wrist. A small jack in the chip allows you to connect it to a computer and upload the assets."),startingMoney:1e6,programs:[o.a.BruteSSHProgram.name],factions:[f.a.Sector12]}),new a.a({name:r.a.NutriGen,repCost:6250,moneyCost:25e5,info:"A thermo-powered artificial nutrition generator. Endogenously synthesizes glucose, amino acids, and vitamins and redistributes them across the body. The device is powered by the body's naturally wasted energy in the form of heat.",strength_exp:1.2,defense_exp:1.2,dexterity_exp:1.2,agility_exp:1.2,factions:[f.a.NewTokyo]}),new a.a({name:r.a.PCMatrix,repCost:1e5,moneyCost:2e9,info:"A 'Probability Computation Matrix' is installed in the frontal cortex. This implant uses advanced mathematical algorithims to rapidly identify and compute statistical outcomes of nearly every situation.",charisma:1.0777,charisma_exp:1.0777,work_money:1.777,faction_rep:1.0777,company_rep:1.0777,crime_success:1.0777,crime_money:1.0777,programs:[o.a.DeepscanV1.name,o.a.AutoLink.name],factions:[f.a.Aevum]}),new a.a({name:r.a.INFRARet,repCost:7500,moneyCost:3e7,info:"A tiny chip that sits behind the retinae. This implant lets the user visually detect infrared radiation.",crime_success:1.25,crime_money:1.1,dexterity:1.1,factions:[f.a.Ishima]}),new a.a({name:r.a.DermaForce,repCost:15e3,moneyCost:5e7,info:"Synthetic skin that is grafted onto the body. This skin consists of millions of nanobots capable of projecting high-density muon beams, creating an energy barrier around the user.",defense:1.4,factions:[f.a.Volhaven]}),new a.a({name:r.a.GrapheneBrachiBlades,repCost:225e3,moneyCost:25e8,info:"An upgrade to the BrachiBlades augmentation. It infuses the retractable blades with an advanced graphene material making them stronger and lighter.",prereqs:[r.a.BrachiBlades],strength:1.4,defense:1.4,crime_success:1.1,crime_money:1.3,factions:[f.a.SpeakersForTheDead]}),new a.a({name:r.a.GrapheneBionicArms,repCost:5e5,moneyCost:375e7,info:"An upgrade to the Bionic Arms augmentation. It infuses the prosthetic arms with an advanced graphene material to make them stronger and lighter.",prereqs:[r.a.BionicArms],strength:1.85,dexterity:1.85,factions:[f.a.TheDarkArmy]}),new a.a({name:r.a.BrachiBlades,repCost:12500,moneyCost:9e7,info:"A set of retractable plasteel blades that are implanted in the arm, underneath the skin.",strength:1.15,defense:1.15,crime_success:1.1,crime_money:1.15,factions:[f.a.TheSyndicate]}),new a.a({name:r.a.BionicArms,repCost:62500,moneyCost:275e6,info:"Cybernetic arms created from plasteel and carbon fibers that completely replace the user's organic arms.",strength:1.3,dexterity:1.3,factions:[f.a.Tetrads]}),new a.a({name:r.a.SNA,repCost:6250,moneyCost:3e7,info:"A cranial implant that affects the user's personality, making them better at negotiation in social situations.",work_money:1.1,company_rep:1.15,faction_rep:1.15,factions:[f.a.TianDiHui]}),new a.a({name:r.a.NeuroreceptorManager,repCost:75e3,moneyCost:55e7,info:"A brain implant carefully assembled around the synapses, which micromanages the activity and levels of various neuroreceptor chemicals and modulates electrical activity to optimize concentration, allowing the user to multitask much more effectively.",stats:c.a.createElement(c.a.Fragment,null,"This augmentation removes the penalty for not focusing on actions such as working in a job or working for a faction."),factions:[f.a.TianDiHui]}),new a.a({name:r.a.CongruityImplant,repCost:1/0,moneyCost:5e13,info:c.a.createElement(c.a.Fragment,null,"Developed by a pioneer in Grafting research, this implant generates pulses of stability which seem to have a nullifying effect versus the Entropy virus.",c.a.createElement("br",null),c.a.createElement("br",null),c.a.createElement("b",null,"Note:")," For unknown reasons, the lowercase ",c.a.createElement("code",null,"n")," appears to be an integral component to its functionality."),stats:c.a.createElement(c.a.Fragment,null,"This Augmentation removes the Entropy virus, and prevents it from affecting you again."),factions:[]})],d=()=>[new a.a({name:r.a.EsperEyewear,repCost:1250,moneyCost:165e6,info:"Ballistic-grade protective and retractable eyewear that was designed specifically for Bladeburner units. This is implanted by installing a mechanical frame in the skull's orbit. This frame interfaces with the brain and allows the user to automatically extrude and extract the eyewear. The eyewear protects against debris, shrapnel, lasers, blinding flashes, and gas. It is also embedded with a data processing chip that can be programmed to display an AR HUD to assist the user in field missions.",bladeburner_success_chance:1.03,dexterity:1.05,isSpecial:!0,factions:[f.a.Bladeburners]}),new a.a({name:r.a.EMS4Recombination,repCost:2500,moneyCost:275e6,info:"A DNA recombination of the EMS-4 Gene. This genetic engineering technique was originally used on Bladeburners during the Synthoid uprising to induce wakefulness and concentration, suppress fear, reduce empathy, improve reflexes, and improve memory among other things.",bladeburner_success_chance:1.03,bladeburner_analysis:1.05,bladeburner_stamina_gain:1.02,isSpecial:!0,factions:[f.a.Bladeburners]}),new a.a({name:r.a.OrionShoulder,repCost:6250,moneyCost:55e7,info:"A bionic shoulder augmentation for the right shoulder. Using cybernetics, the ORION-MKIV shoulder enhances the strength and dexterity of the user's right arm. It also provides protection due to its crystallized graphene plating.",defense:1.05,strength:1.05,dexterity:1.05,bladeburner_success_chance:1.04,isSpecial:!0,factions:[f.a.Bladeburners]}),new a.a({name:r.a.HyperionV1,repCost:12500,moneyCost:275e7,info:"A pair of mini plasma cannons embedded into the hands. The Hyperion is capable of rapidly firing bolts of high-density plasma. The weapon is meant to be used against augmented enemies as the ionized nature of the plasma disrupts the electrical systems of Augmentations. However, it can also be effective against non-augmented enemies due to its high temperature and concussive force.",bladeburner_success_chance:1.06,isSpecial:!0,factions:[f.a.Bladeburners]}),new a.a({name:r.a.HyperionV2,repCost:25e3,moneyCost:55e8,info:"A pair of mini plasma cannons embedded into the hands. This augmentation is more advanced and powerful than the original V1 model. This V2 model is more power-efficient, more accurate, and can fire plasma bolts at a much higher velocity than the V1 model.",prereqs:[r.a.HyperionV1],bladeburner_success_chance:1.08,isSpecial:!0,factions:[f.a.Bladeburners]}),new a.a({name:r.a.GolemSerum,repCost:31250,moneyCost:11e9,info:"A serum that permanently enhances many aspects of human capabilities, including strength, speed, immune system enhancements, and mitochondrial efficiency. The serum was originally developed by the Chinese military in an attempt to create super soldiers.",strength:1.07,defense:1.07,dexterity:1.07,agility:1.07,bladeburner_stamina_gain:1.05,isSpecial:!0,factions:[f.a.Bladeburners]}),new a.a({name:r.a.VangelisVirus,repCost:18750,moneyCost:275e7,info:"A synthetic symbiotic virus that is injected into human brain tissue. The Vangelis virus heightens the senses and focus of its host, and also enhances its intuition.",dexterity_exp:1.1,bladeburner_analysis:1.1,bladeburner_success_chance:1.04,isSpecial:!0,factions:[f.a.Bladeburners]}),new a.a({name:r.a.VangelisVirus3,repCost:37500,moneyCost:11e9,info:"An improved version of Vangelis, a synthetic symbiotic virus that is injected into human brain tissue. On top of the benefits of the original virus, this also grants accelerated healing and enhanced reflexes.",prereqs:[r.a.VangelisVirus],defense_exp:1.1,dexterity_exp:1.1,bladeburner_analysis:1.15,bladeburner_success_chance:1.05,isSpecial:!0,factions:[f.a.Bladeburners]}),new a.a({name:r.a.INTERLINKED,repCost:25e3,moneyCost:55e8,info:"The DNA is genetically modified to enhance the human's body extracellular matrix (ECM). This improves the ECM's ability to structurally support the body and grants heightened strength and durability.",strength_exp:1.05,defense_exp:1.05,dexterity_exp:1.05,agility_exp:1.05,bladeburner_max_stamina:1.1,isSpecial:!0,factions:[f.a.Bladeburners]}),new a.a({name:r.a.BladeRunner,repCost:2e4,moneyCost:825e7,info:`A cybernetic foot augmentation that was specifically created for ${f.a.Bladeburners} during the Synthoid Uprising. The organic musculature of the human foot is enhanced with flexible carbon nanotube matrices that are controlled by intelligent servo-motors.`,agility:1.05,bladeburner_max_stamina:1.05,bladeburner_stamina_gain:1.05,isSpecial:!0,factions:[f.a.Bladeburners]}),new a.a({name:r.a.BladeArmor,repCost:12500,moneyCost:1375e6,info:`A powered exoskeleton suit designed as armor for ${f.a.Bladeburners} units. This exoskeleton is incredibly adaptable and can protect the wearer from blunt, piercing, concussive, thermal, chemical, and electric trauma. It also enhances the user's physical abilities.`,strength:1.04,defense:1.04,dexterity:1.04,agility:1.04,bladeburner_stamina_gain:1.02,bladeburner_success_chance:1.03,isSpecial:!0,factions:[f.a.Bladeburners]}),new a.a({name:r.a.BladeArmorPowerCells,repCost:18750,moneyCost:275e7,info:"Upgrades the BLADE-51b Tesla Armor with Ion Power Cells, which are capable of more efficiently storing and using power.",prereqs:[r.a.BladeArmor],bladeburner_success_chance:1.05,bladeburner_stamina_gain:1.02,bladeburner_max_stamina:1.05,isSpecial:!0,factions:[f.a.Bladeburners]}),new a.a({name:r.a.BladeArmorEnergyShielding,repCost:21250,moneyCost:55e8,info:"Upgrades the BLADE-51b Tesla Armor with a plasma energy propulsion system that is capable of projecting an energy shielding force field.",prereqs:[r.a.BladeArmor],defense:1.05,bladeburner_success_chance:1.06,isSpecial:!0,factions:[f.a.Bladeburners]}),new a.a({name:r.a.BladeArmorUnibeam,repCost:31250,moneyCost:165e8,info:"Upgrades the BLADE-51b Tesla Armor with a concentrated deuterium-fluoride laser weapon. It's precision and accuracy makes it useful for quickly neutralizing threats while keeping casualties to a minimum.",prereqs:[r.a.BladeArmor],bladeburner_success_chance:1.08,isSpecial:!0,factions:[f.a.Bladeburners]}),new a.a({name:r.a.BladeArmorOmnibeam,repCost:62500,moneyCost:275e8,info:"Upgrades the BLADE-51b Tesla Armor Unibeam augmentation to use a multiple-fiber system. This upgraded weapon uses multiple fiber laser modules that combine together to form a single, more powerful beam of up to 2000MW.",prereqs:[r.a.BladeArmorUnibeam],bladeburner_success_chance:1.1,isSpecial:!0,factions:[f.a.Bladeburners]}),new a.a({name:r.a.BladeArmorIPU,repCost:15e3,moneyCost:11e8,info:"Upgrades the BLADE-51b Tesla Armor with an AI Information Processing Unit that was specially designed to analyze Synthoid related data and information.",prereqs:[r.a.BladeArmor],bladeburner_analysis:1.15,bladeburner_success_chance:1.02,isSpecial:!0,factions:[f.a.Bladeburners]}),new a.a({name:r.a.BladesSimulacrum,repCost:1250,moneyCost:15e10,info:"A highly-advanced matter phase-shifter module that is embedded in the brainstem and cerebellum. This augmentation allows the user to project and control a holographic simulacrum within an extremely large radius. These specially-modified holograms were specifically weaponized by Bladeburner units to be used against Synthoids.",stats:c.a.createElement(c.a.Fragment,null,"This augmentation allows you to perform Bladeburner actions and other actions (such as working, commiting crimes, etc.) at the same time."),isSpecial:!0,factions:[f.a.Bladeburners]})],p=()=>[new a.a({name:r.a.StaneksGift1,repCost:0,moneyCost:0,info:'Allison "Mother" Stanek imparts you with her gift. An experimental Augmentation implanted at the base of the neck. It allows you to overclock your entire system by carefully changing the configuration.',isSpecial:!0,hacking_chance:.9,hacking_speed:.9,hacking_money:.9,hacking_grow:.9,hacking:.9,strength:.9,defense:.9,dexterity:.9,agility:.9,charisma:.9,hacking_exp:.9,strength_exp:.9,defense_exp:.9,dexterity_exp:.9,agility_exp:.9,charisma_exp:.9,company_rep:.9,faction_rep:.9,crime_money:.9,crime_success:.9,hacknet_node_money:.9,hacknet_node_purchase_cost:1.1,hacknet_node_ram_cost:1.1,hacknet_node_core_cost:1.1,hacknet_node_level_cost:1.1,work_money:.9,stats:c.a.createElement(c.a.Fragment,null,"Its unstable nature decreases all your stats by 10%"),factions:[f.a.ChurchOfTheMachineGod]}),new a.a({name:r.a.StaneksGift2,repCost:1e6,moneyCost:0,info:"The next evolution is near, a coming together of man and machine. A synthesis greater than the birth of the human organism. Time spent with the gift has allowed for acclimatization of the invasive augment and the toll it takes upon your frame granting a 5% reduced penalty to all stats.",prereqs:[r.a.StaneksGift1],isSpecial:!0,hacking_chance:.95/.9,hacking_speed:.95/.9,hacking_money:.95/.9,hacking_grow:.95/.9,hacking:.95/.9,strength:.95/.9,defense:.95/.9,dexterity:.95/.9,agility:.95/.9,charisma:.95/.9,hacking_exp:.95/.9,strength_exp:.95/.9,defense_exp:.95/.9,dexterity_exp:.95/.9,agility_exp:.95/.9,charisma_exp:.95/.9,company_rep:.95/.9,faction_rep:.95/.9,crime_money:.95/.9,crime_success:.95/.9,hacknet_node_money:.95/.9,hacknet_node_purchase_cost:1.05/1.1,hacknet_node_ram_cost:1.05/1.1,hacknet_node_core_cost:1.05/1.1,hacknet_node_level_cost:1.05/1.1,work_money:.95/.9,stats:c.a.createElement(c.a.Fragment,null,"The penalty for the gift is reduced to 5%"),factions:[f.a.ChurchOfTheMachineGod]}),new a.a({name:r.a.StaneksGift3,repCost:1e8,moneyCost:0,info:"The synthesis of human and machine is nothing to fear. It is our destiny. You will become greater than the sum of our parts. As One. Embrace your gift fully and wholly free of it's accursed toll. Serenity brings tranquility in the form of no longer suffering a stat penalty. ",prereqs:[r.a.StaneksGift2,r.a.StaneksGift1],isSpecial:!0,hacking_chance:1/.95,hacking_speed:1/.95,hacking_money:1/.95,hacking_grow:1/.95,hacking:1/.95,strength:1/.95,defense:1/.95,dexterity:1/.95,agility:1/.95,charisma:1/.95,hacking_exp:1/.95,strength_exp:1/.95,defense_exp:1/.95,dexterity_exp:1/.95,agility_exp:1/.95,charisma_exp:1/.95,company_rep:1/.95,faction_rep:1/.95,crime_money:1/.95,crime_success:1/.95,hacknet_node_money:1/.95,hacknet_node_purchase_cost:1/1.05,hacknet_node_ram_cost:1/1.05,hacknet_node_core_cost:1/1.05,hacknet_node_level_cost:1/1.05,work_money:1/.95,stats:c.a.createElement(c.a.Fragment,null,"Stanek's Gift has no penalty."),factions:[f.a.ChurchOfTheMachineGod]})];function g(){const e=u.a.Donations/1e6/100;return new a.a({name:r.a.NeuroFluxGovernor,repCost:500,moneyCost:75e4,info:"A device that is embedded in the back of the neck. The NeuroFlux Governor monitors and regulates nervous impulses coming to and from the spinal column, essentially 'governing' the body. By doing so, it improves the functionality of the body's nervous system.",stats:c.a.createElement(c.a.Fragment,null,"This special augmentation can be leveled up infinitely. Each level of this augmentation increases MOST multipliers by 1% (+",(100*e).toFixed(6),"% boosted by real life blood donations), stacking multiplicatively."),isSpecial:!0,hacking_chance:1.01+e,hacking_speed:1.01+e,hacking_money:1.01+e,hacking_grow:1.01+e,hacking:1.01+e,strength:1.01+e,defense:1.01+e,dexterity:1.01+e,agility:1.01+e,charisma:1.01+e,hacking_exp:1.01+e,strength_exp:1.01+e,defense_exp:1.01+e,dexterity_exp:1.01+e,agility_exp:1.01+e,charisma_exp:1.01+e,company_rep:1.01+e,faction_rep:1.01+e,crime_money:1.01+e,crime_success:1.01+e,hacknet_node_money:1.01+e,hacknet_node_purchase_cost:1/(1.01+e),hacknet_node_ram_cost:1/(1.01+e),hacknet_node_core_cost:1/(1.01+e),hacknet_node_level_cost:1/(1.01+e),work_money:1.01+e,factions:Object.values(f.a).filter(e=>![f.a.ShadowsOfAnarchy,f.a.Bladeburners,f.a.ChurchOfTheMachineGod].includes(e))})}function y(){const e=function(){const e=[{bonuses:{hacking_chance:1.25,hacking_speed:1.1,hacking_money:1.25,hacking_grow:1.1},description:"Increases the player's hacking chance by 25%.<br>Increases the player's hacking speed by 10%.<br>Increases the amount of money the player's gains from hacking by 25%.<br>Improves grow() by 10%."},{bonuses:{hacking:1.15,hacking_exp:2},description:"Increases the player's hacking skill by 15%.<br>Increases the player's hacking experience gain rate by 100%."},{bonuses:{strength:1.25,strength_exp:2,defense:1.25,defense_exp:2,dexterity:1.25,dexterity_exp:2,agility:1.25,agility_exp:2},description:"Increases all of the player's combat stats by 25%.<br>Increases all of the player's combat stat experience gain rate by 100%."},{bonuses:{charisma:1.5,charisma_exp:2},description:"This augmentation increases the player's charisma by 50%.<br>Increases the player's charisma experience gain rate by 100%."},{bonuses:{hacknet_node_money:1.2,hacknet_node_purchase_cost:.85,hacknet_node_ram_cost:.85,hacknet_node_core_cost:.85,hacknet_node_level_cost:.85},description:"Increases the amount of money produced by Hacknet Nodes by 20%.<br>Decreases all costs related to Hacknet Node by 15%."},{bonuses:{company_rep:1.25,faction_rep:1.15,work_money:1.7},description:"Increases the amount of money the player gains from working by 70%.<br>Increases the amount of reputation the player gains when working for a company by 25%.<br>Increases the amount of reputation the player gains for a faction by 15%."},{bonuses:{crime_success:2,crime_money:2},description:"Increases the player's crime success rate by 100%.<br>Increases the amount of money the player gains from crimes by 100%."}],t=new s.c(Math.floor(i.a.lastUpdate/36e5));for(let e=0;e<5;e++)t.step();return e[Math.floor(e.length*t.random())]}(),t={name:r.a.UnstableCircadianModulator,moneyCost:5e9,repCost:362500,info:"An experimental nanobot injection. Its unstable nature leads to unpredictable results based on your circadian rhythm.",factions:[f.a.SpeakersForTheDead]};return Object.keys(e.bonuses).forEach(n=>t[n]=e.bonuses[n]),new a.a(t)}},,,,,,,,,,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var a=n(12),r=n(31);class i{constructor(e){this.name=e.name,this.nextPosition=e.nextPosition,this.baseSalary=e.baseSalary,this.repMultiplier=e.repMultiplier,this.requiredHacking=null!=e.reqdHacking?e.reqdHacking:0,this.requiredStrength=null!=e.reqdStrength?e.reqdStrength:0,this.requiredDefense=null!=e.reqdDefense?e.reqdDefense:0,this.requiredDexterity=null!=e.reqdDexterity?e.reqdDexterity:0,this.requiredAgility=null!=e.reqdAgility?e.reqdAgility:0,this.requiredCharisma=null!=e.reqdCharisma?e.reqdCharisma:0,this.requiredReputation=null!=e.reqdReputation?e.reqdReputation:0,this.hackingEffectiveness=null!=e.hackingEffectiveness?e.hackingEffectiveness:0,this.strengthEffectiveness=null!=e.strengthEffectiveness?e.strengthEffectiveness:0,this.defenseEffectiveness=null!=e.defenseEffectiveness?e.defenseEffectiveness:0,this.dexterityEffectiveness=null!=e.dexterityEffectiveness?e.dexterityEffectiveness:0,this.agilityEffectiveness=null!=e.agilityEffectiveness?e.agilityEffectiveness:0,this.charismaEffectiveness=null!=e.charismaEffectiveness?e.charismaEffectiveness:0,100!==Math.round(this.hackingEffectiveness+this.strengthEffectiveness+this.defenseEffectiveness+this.dexterityEffectiveness+this.agilityEffectiveness+this.charismaEffectiveness)&&console.error(`CompanyPosition ${this.name} parameters do not sum to 100`),this.hackingExpGain=null!=e.hackingExpGain?e.hackingExpGain:0,this.strengthExpGain=null!=e.strengthExpGain?e.strengthExpGain:0,this.defenseExpGain=null!=e.defenseExpGain?e.defenseExpGain:0,this.dexterityExpGain=null!=e.dexterityExpGain?e.dexterityExpGain:0,this.agilityExpGain=null!=e.agilityExpGain?e.agilityExpGain:0,this.charismaExpGain=null!=e.charismaExpGain?e.charismaExpGain:0}calculateJobPerformance(e,t,n,r,i,o){const s=this.hackingEffectiveness*e/a.a.MaxSkillLevel,l=this.strengthEffectiveness*t/a.a.MaxSkillLevel,c=this.defenseEffectiveness*n/a.a.MaxSkillLevel,f=this.dexterityEffectiveness*r/a.a.MaxSkillLevel,u=this.agilityEffectiveness*i/a.a.MaxSkillLevel,m=this.charismaEffectiveness*o/a.a.MaxSkillLevel;let h=this.repMultiplier*(s+l+c+f+u+m)/100;return isNaN(h)&&(console.error("Company reputation gain calculated to be NaN"),h=0),h}isSoftwareJob(){return r.j.includes(this.name)}isITJob(){return r.d.includes(this.name)}isSecurityEngineerJob(){return r.i.includes(this.name)}isNetworkEngineerJob(){return r.f.includes(this.name)}isBusinessJob(){return r.b.includes(this.name)}isSecurityJob(){return r.h.includes(this.name)}isAgentJob(){return r.a.includes(this.name)}isSoftwareConsultantJob(){return r.k.includes(this.name)}isBusinessConsultantJob(){return r.c.includes(this.name)}isPartTimeJob(){return r.g.includes(this.name)}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var a=n(5),r=n(84),i=n(22),o=n(384);function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class l{constructor(e=null,t=[]){s(this,"args",[]),s(this,"dataMap",{}),s(this,"filename",""),s(this,"logs",[]),s(this,"logUpd",!1),s(this,"offlineExpGained",0),s(this,"offlineMoneyMade",0),s(this,"offlineRunningTime",.01),s(this,"onlineExpGained",0),s(this,"onlineMoneyMade",0),s(this,"onlineRunningTime",.01),s(this,"pid",-1),s(this,"ramUsage",0),s(this,"server",""),s(this,"threads",1),s(this,"dependencies",[]),null!=e&&(this.filename=e.filename,this.args=t,this.server=e.server,this.ramUsage=e.ramUsage,this.dependencies=e.dependencies)}log(e){this.logs.length>a.a.MaxLogCapacity&&this.logs.shift();let t=e;a.a.TimestampsFormat&&(t="["+Object(o.a)(a.a.TimestampsFormat)+"] "+t),this.logs.push(t),this.logUpd=!0}displayLog(){for(let e=0;e<this.logs.length;++e)r.a.print(this.logs[e])}clearLog(){this.logs.length=0}recordHack(e,t,n=1){null!=this.dataMap[e]&&this.dataMap[e].constructor===Array||(this.dataMap[e]=[0,0,0,0]),this.dataMap[e][0]+=t,this.dataMap[e][1]+=n}recordGrow(e,t=1){null!=this.dataMap[e]&&this.dataMap[e].constructor===Array||(this.dataMap[e]=[0,0,0,0]),this.dataMap[e][2]+=t}recordWeaken(e,t=1){null!=this.dataMap[e]&&this.dataMap[e].constructor===Array||(this.dataMap[e]=[0,0,0,0]),this.dataMap[e][3]+=t}toJSON(){return Object(i.b)("RunningScript",this)}static fromJSON(e){return Object(i.a)(l,e.data)}}i.c.constructors.RunningScript=l},function(e,t,n){"use strict";function a(e,t){return Object.values(e).includes(t)}n.d(t,"a",(function(){return a}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var a=n(0),r=n.n(a),i=n(266);const o={};o.SourceFile1=new i.a(1,r.a.createElement(r.a.Fragment,null,"This Source-File lets the player start with 32GB of RAM on his/her home computer. It also increases all of the player's multipliers by:",r.a.createElement("br",null),r.a.createElement("br",null),"Level 1: 16%",r.a.createElement("br",null),"Level 2: 24%",r.a.createElement("br",null),"Level 3: 28%")),o.SourceFile2=new i.a(2,r.a.createElement(r.a.Fragment,null,"This Source-File allows you to form gangs in other BitNodes once your karma decreases to a certain value. It also increases the player's crime success rate, crime money, and charisma multipliers by:",r.a.createElement("br",null),r.a.createElement("br",null),"Level 1: 24%",r.a.createElement("br",null),"Level 2: 36%",r.a.createElement("br",null),"Level 3: 42%")),o.SourceFile3=new i.a(3,r.a.createElement(r.a.Fragment,null,"This Source-File lets you create corporations on other BitNodes (although some BitNodes will disable this mechanic). This Source-File also increases your charisma and company salary multipliers by:",r.a.createElement("br",null),"Level 1: 8%",r.a.createElement("br",null),"Level 2: 12%",r.a.createElement("br",null),"Level 3: 14%")),o.SourceFile4=new i.a(4,r.a.createElement(r.a.Fragment,null,"This Source-File lets you access and use the Singularity Functions in every BitNode. Every level of this Source-File reduces the RAM cost of Singularity functions.")),o.SourceFile5=new i.a(5,r.a.createElement(r.a.Fragment,null,"This Source-File grants a special new stat called Intelligence. Intelligence is unique because it is permanent and persistent (it never gets reset back to 1). However, gaining Intelligence experience is much slower than other stats. Higher Intelligence levels will boost your production for many actions in the game. In addition, this Source-File will unlock:",r.a.createElement("br",null),r.a.createElement("ul",null,r.a.createElement("li",null,"The ",r.a.createElement("code",null,"getBitNodeMultipliers()")," Netscript function"),r.a.createElement("li",null,"Permanent access to Formulas.exe"),r.a.createElement("li",null,"Access to BitNode multiplier information on the ",r.a.createElement("b",null,"Stats")," page")),"It will also raise all of your hacking-related multipliers by:",r.a.createElement("br",null),r.a.createElement("br",null),"Level 1: 8%",r.a.createElement("br",null),"Level 2: 12%",r.a.createElement("br",null),"Level 3: 14%")),o.SourceFile6=new i.a(6,r.a.createElement(r.a.Fragment,null,"This Source-File allows you to access the NSA's Bladeburner Division in other BitNodes. In addition, this Source-File will raise both the level and experience gain rate of all your combat stats by:",r.a.createElement("br",null),r.a.createElement("br",null),"Level 1: 8%",r.a.createElement("br",null),"Level 2: 12%",r.a.createElement("br",null),"Level 3: 14%")),o.SourceFile7=new i.a(7,r.a.createElement(r.a.Fragment,null,"This Source-File allows you to access the Bladeburner Netscript API in other BitNodes. In addition, this Source-File will increase all of your Bladeburner multipliers by:",r.a.createElement("br",null),r.a.createElement("br",null),"Level 1: 8%",r.a.createElement("br",null),"Level 2: 12%",r.a.createElement("br",null),"Level 3: 14%")),o.SourceFile8=new i.a(8,r.a.createElement(r.a.Fragment,null,"This Source-File grants the following benefits:",r.a.createElement("br",null),r.a.createElement("br",null),"Level 1: Permanent access to WSE and TIX API",r.a.createElement("br",null),"Level 2: Ability to short stocks in other BitNodes",r.a.createElement("br",null),"Level 3: Ability to use limit/stop orders in other BitNodes",r.a.createElement("br",null),r.a.createElement("br",null),"This Source-File also increases your hacking growth multipliers by:",r.a.createElement("br",null),"Level 1: 12%",r.a.createElement("br",null),"Level 2: 18%",r.a.createElement("br",null),"Level 3: 21%")),o.SourceFile9=new i.a(9,r.a.createElement(r.a.Fragment,null,"This Source-File grants the following benefits:",r.a.createElement("br",null),r.a.createElement("br",null),"Level 1: Permanently unlocks the Hacknet Server in other BitNodes",r.a.createElement("br",null),"Level 2: You start with 128GB of RAM on your home computer when entering a new BitNode",r.a.createElement("br",null),"Level 3: Grants a highly-upgraded Hacknet Server when entering a new BitNode",r.a.createElement("br",null),r.a.createElement("br",null),"(Note that the Level 3 effect of this Source-File only applies when entering a new BitNode, NOT when installing Augmentations)",r.a.createElement("br",null),r.a.createElement("br",null),"This Source-File also increases your hacknet multipliers by:",r.a.createElement("br",null),"Level 1: 8%",r.a.createElement("br",null),"Level 2: 12%",r.a.createElement("br",null),"Level 3: 14%")),o.SourceFile10=new i.a(10,r.a.createElement(r.a.Fragment,null,"This Source-File unlocks Sleeve technology, and the Grafting API in other BitNodes. Each level of this Source-File also grants you a Duplicate Sleeve")),o.SourceFile11=new i.a(11,r.a.createElement(r.a.Fragment,null,"This Source-File makes it so that company favor increases BOTH the player's salary and reputation gain rate at that company by 1% per favor (rather than just the reputation gain). This Source-File also increases the player's company salary and reputation gain multipliers by:",r.a.createElement("br",null),r.a.createElement("br",null),"Level 1: 32%",r.a.createElement("br",null),"Level 2: 48%",r.a.createElement("br",null),"Level 3: 56%",r.a.createElement("br",null),r.a.createElement("br",null),"It also reduces the price increase for every aug bought by:",r.a.createElement("br",null),r.a.createElement("br",null),"Level 1: 4%",r.a.createElement("br",null),"Level 2: 6%",r.a.createElement("br",null),"Level 3: 7%")),o.SourceFile12=new i.a(12,r.a.createElement(r.a.Fragment,null,"This Source-File lets the player start with Neuroflux Governor equal to the level of this Source-File.")),o.SourceFile13=new i.a(13,r.a.createElement(r.a.Fragment,null,"Each level of this Source-File increases the size of Stanek's Gift."))},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var a=n(0),r=n.n(a),i=n(141),o=n(28),s=n(8),l=n(11);function c(e){const t=o.b.Player(),n=e.bladeburner.getActionObject({name:e.name,type:e.type});if(null==n)throw new Error("Failed to get Operation Object for: "+e.name);let a=!1;return n.count<1&&(a=!0),"Raid"===e.name&&0===e.bladeburner.getCurrentCity().comms&&(a=!0),n instanceof i.a&&e.bladeburner.rank<n.reqdRank&&(a=!0),r.a.createElement(s.a,{sx:{mx:1},disabled:a,onClick:function(){a||(e.bladeburner.action.type=e.type,e.bladeburner.action.name=e.name,t.hasAugmentation(l.a.BladesSimulacrum,!0)||t.finishWork(!0),e.bladeburner.startAction(t,e.bladeburner.action),e.rerender())}},"Start")}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var a=n(0),r=n.n(a);function i(e,t,n){return e.substring(0,t)+n+e.substring(t+1)}function o(e){const[t,n]=Object(a.useState)(e.content);return Object(a.useEffect)(()=>{let e=5;const a=[],r=setInterval(()=>{if(e--,e>0)return;e=5*Math.random();const r=Math.random()*t.length,o=t.charAt(r);n(e=>i(e,r,function(e){const t=e=>e[Math.floor(Math.random()*e.length)],n=["abcdefghijklmnopqrstuvwxyz","ABCDEFGHIJKLMNOPQRSTUVWXYZ","1234567890"," _","()[]{}<>"];for(const a of n)if(a.includes(e))return t(a);return t("!@#$%^&*()_+|\\';\"/.,?`~")}(o))),a.push(window.setTimeout(()=>{n(e=>i(e,r,o))},500))},20);return()=>{clearInterval(r),a.forEach(e=>clearTimeout(e))}},[]),r.a.createElement("span",null,t)}},,function(e,t,n){"use strict";n.d(t,"b",(function(){return p})),n.d(t,"a",(function(){return g}));var a=n(0),r=n.n(a),i=n(12),o=n(11),s=n(631),l=n(154),c=n(273),f=n(115),u=n(14),m=n(22),h=n(391),d=n(73);const p=e=>null!==e&&e.type===l.b.GRAFTING;class g extends l.a{constructor(e){var t,n;super(l.b.GRAFTING,null===(t=null==e?void 0:e.singularity)||void 0===t||t),this.unitCompleted=0,this.augmentation=null!==(n=null==e?void 0:e.augmentation)&&void 0!==n?n:o.a.Targeting1,null!=e&&e.player&&e.player.loseMoney(s.a[this.augmentation].cost,"augmentations")}unitNeeded(){return new h.a(d.a[this.augmentation]).time}process(e,t){let n=1;return e.hasAugmentation(o.a.NeuroreceptorManager)||(n=e.focus?1:i.a.BaseFocusBonus),this.cyclesWorked+=t,this.unitCompleted+=i.a._idleSpeed*t*Object(c.c)(e)*n,this.unitCompleted>=this.unitNeeded()}finish(e,t){const n=this.augmentation;t?t&&!this.singularity&&Object(u.a)(r.a.createElement(r.a.Fragment,null,"You cancelled the grafting of ",n,".",r.a.createElement("br",null),"Your money was not returned to you.")):(Object(f.a)({name:n,level:1}),e.hasAugmentation(o.a.CongruityImplant)||(e.entropy+=1,e.applyEntropy(e.entropy)),this.singularity||Object(u.a)(r.a.createElement(r.a.Fragment,null,"You've finished grafting ",n,".",r.a.createElement("br",null),"The augmentation has been applied to your body"," ",e.hasAugmentation(o.a.CongruityImplant)?".":", but you feel a bit off."))),t||e.gainIntelligenceExp(i.a.IntelligenceGraftBaseExpGain*this.cyclesWorked*i.a._idleSpeed/1e4)}toJSON(){return Object(m.b)("GraftingWork",this)}static fromJSON(e){return Object(m.a)(g,e.data)}}m.c.constructors.GraftingWork=g},,function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var a=n(1764);function r(e){try{return Object(a.a)(new Date,e)}catch(e){return"format error"}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var a=n(0),r=n.n(a),i=n(4),o=n(28),s=n(358),l=n(1);class c{constructor(e){var t,n,a,i,o,s,l;this.infoText=null!==(t=e.infoText)&&void 0!==t?t:r.a.createElement(r.a.Fragment,null),this.enemies=null!==(n=e.enemies)&&void 0!==n?n:[],this.offerHackingWork=null!==(a=e.offerHackingWork)&&void 0!==a&&a,this.offerFieldWork=null!==(i=e.offerFieldWork)&&void 0!==i&&i,this.offerSecurityWork=null!==(o=e.offerSecurityWork)&&void 0!==o&&o,this.keep=null!==(s=e.keepOnInstall)&&void 0!==s&&s,this.special=null!==(l=e.special)&&void 0!==l&&l,this.assignment=e.assignment}offersWork(){return this.offerFieldWork||this.offerHackingWork||this.offerSecurityWork}}const f={[i.a.Illuminati]:new c({infoText:r.a.createElement(r.a.Fragment,null,"Humanity never changes. No matter how civilized society becomes, it will eventually fall back into chaos. And from this chaos, we are the invisible hand that guides them to order."," "),offerHackingWork:!0,offerFieldWork:!0}),[i.a.Daedalus]:new c({infoText:r.a.createElement(r.a.Fragment,null,"Yesterday we obeyed kings and bent our necks to emperors. Today we kneel only to truth."),offerHackingWork:!0,offerFieldWork:!0}),[i.a.TheCovenant]:new c({infoText:r.a.createElement(r.a.Fragment,null,"Surrender yourself. Give up your empty individuality to become part of something great, something eternal. Become a slave. Submit your mind, body, and soul. Only then can you set yourself free.",r.a.createElement("br",null),r.a.createElement("br",null),"Only then can you discover immortality."),offerHackingWork:!0,offerFieldWork:!0}),[i.a.ECorp]:new c({infoText:r.a.createElement(r.a.Fragment,null,i.a.ECorp,"'s mission is simple: to connect the world of today with the technology of tomorrow. With our wide range of Internet-related software and commercial hardware, ",i.a.ECorp," makes the world's information universally accessible."),offerHackingWork:!0,offerFieldWork:!0,offerSecurityWork:!0,keepOnInstall:!0}),[i.a.MegaCorp]:new c({infoText:r.a.createElement(r.a.Fragment,null,i.a.MegaCorp," does what no other dares to do. We imagine. We create. We invent. We create what others have never even dreamed of. Our work fills the world's needs for food, water, power, and transportation on an unprecedented scale, in ways that no other company can.",r.a.createElement("br",null),r.a.createElement("br",null),"In our labs and factories and on the ground with customers, ",i.a.MegaCorp," is ushering in a new era for the world."),offerHackingWork:!0,offerFieldWork:!0,offerSecurityWork:!0,keepOnInstall:!0}),[i.a.BachmanAssociates]:new c({infoText:r.a.createElement(r.a.Fragment,null,"Where Law and Business meet - that's where we are.",r.a.createElement("br",null),r.a.createElement("br",null),"Legal Insight - Business Instinct - Innovative Experience."),offerHackingWork:!0,offerFieldWork:!0,offerSecurityWork:!0,keepOnInstall:!0}),[i.a.BladeIndustries]:new c({infoText:r.a.createElement(r.a.Fragment,null,"Augmentation is Salvation."),offerHackingWork:!0,offerFieldWork:!0,offerSecurityWork:!0,keepOnInstall:!0}),[i.a.NWO]:new c({infoText:r.a.createElement(r.a.Fragment,null,"Humans don't truly desire freedom. They want to be observed, understood, and judged. They want to be given purpose and direction in life. That is why they created God. And that is why they created civilization - not because of willingness, but because of a need to be incorporated into higher orders of structure and meaning."),offerHackingWork:!0,offerFieldWork:!0,offerSecurityWork:!0,keepOnInstall:!0}),[i.a.ClarkeIncorporated]:new c({infoText:r.a.createElement(r.a.Fragment,null,"The Power of the Genome - Unlocked."),offerHackingWork:!0,offerFieldWork:!0,offerSecurityWork:!0,keepOnInstall:!0}),[i.a.OmniTekIncorporated]:new c({infoText:r.a.createElement(r.a.Fragment,null,"Simply put, our mission is to design and build robots that make a difference."),offerHackingWork:!0,offerFieldWork:!0,offerSecurityWork:!0,keepOnInstall:!0}),[i.a.FourSigma]:new c({infoText:r.a.createElement(r.a.Fragment,null,"The scientific method is the best way to approach investing. Big strategies backed up with big data. Driven by deep learning and innovative ideas. And improved by iteration. That's ",i.a.FourSigma,"."),offerHackingWork:!0,offerFieldWork:!0,offerSecurityWork:!0,keepOnInstall:!0}),[i.a.KuaiGongInternational]:new c({infoText:r.a.createElement(r.a.Fragment,null,"Dream big. Work hard. Make history."),offerHackingWork:!0,offerFieldWork:!0,offerSecurityWork:!0,keepOnInstall:!0}),[i.a.FulcrumSecretTechnologies]:new c({infoText:r.a.createElement(r.a.Fragment,null,"The human organism has an innate desire to worship. That is why they created gods. If there were no gods, it would be necessary to create them. And now we can."),offerHackingWork:!0,offerSecurityWork:!0,keepOnInstall:!0}),[i.a.BitRunners]:new c({infoText:r.a.createElement(r.a.Fragment,null,"Our entire lives are controlled by bits. All of our actions, our thoughts, our personal information. It's all transformed into bits, stored in bits, communicated through bits. It’s impossible for any person to move, to live, to operate at any level without the use of bits. And when a person moves, lives, and operates, they leave behind their bits, mere traces of seemingly meaningless fragments of information. But these bits can be reconstructed. Transformed. Used.",r.a.createElement("br",null),r.a.createElement("br",null),"Those who run the bits, run the world."),offerHackingWork:!0}),[i.a.TheBlackHand]:new c({infoText:r.a.createElement(r.a.Fragment,null,"The world, so afraid of strong government, now has no government. Only power - Digital power. Financial power. Technological power. And those at the top rule with an invisible hand. They built a society where the rich get richer, and everyone else suffers.",r.a.createElement("br",null),r.a.createElement("br",null),"So much pain. So many lives. Their darkness must end."),offerHackingWork:!0,offerFieldWork:!0}),[i.a.NiteSec]:new c({infoText:r.a.createElement(r.a.Fragment,null," __..__ ",r.a.createElement("br",null)," _.nITESECNIt. ",r.a.createElement("br",null)," .-'NITESECNITESEc. ",r.a.createElement("br",null)," .' NITESECNITESECn ",r.a.createElement("br",null)," / NITESECNITESEC; ",r.a.createElement("br",null)," : :NITESECNITESEC; ",r.a.createElement("br",null)," ; $ NITESECNITESECN ",r.a.createElement("br",null)," : _, ,N'ITESECNITESEC ",r.a.createElement("br",null)," : .+^^`, : `NITESECNIT ",r.a.createElement("br",null)," ) /), `-,-=,NITESECNI ",r.a.createElement("br",null)," / ^ ,-;|NITESECN; ",r.a.createElement("br",null)," / _.' '-';NITESECN ",r.a.createElement("br",null)," ( , ,-''`^NITE' ",r.a.createElement("br",null)," )` :`. .' ",r.a.createElement("br",null)," )-- ; `- / ",r.a.createElement("br",null)," ' _.-' : ",r.a.createElement("br",null)," ( _.-' . ",r.a.createElement("br",null)," ------. ",r.a.createElement("br",null)," . ",r.a.createElement("br",null)," _.nIt ",r.a.createElement("br",null)," _.nITESECNi ",r.a.createElement("br",null)," nITESECNIT^' ",r.a.createElement("br",null)," NITE^' ___ ",r.a.createElement("br",null)," / .gP''''Tp. ",r.a.createElement("br",null)," : d' . `b ",r.a.createElement("br",null)," ; d' o `b ; ",r.a.createElement("br",null)," / d; `b| ",r.a.createElement("br",null)," /, $; @ `: ",r.a.createElement("br",null)," /' $/ ; ",r.a.createElement("br",null)," .' $/b o | ",r.a.createElement("br",null)," .' d$/$; : ",r.a.createElement("br",null)," / .d/$/$; , ; ",r.a.createElement("br",null)," d .dNITESEC $ | ",r.a.createElement("br",null)," :bp.__.gNITESEC/$ :$ ; ",r.a.createElement("br",null)," NITESECNITESECNIT /$b : ",r.a.createElement("br",null)),offerHackingWork:!0,offerFieldWork:!1,offerSecurityWork:!1,special:!1,keepOnInstall:!1}),[i.a.Aevum]:new c({infoText:r.a.createElement(r.a.Fragment,null,"The Silicon City."),enemies:[i.a.Chongqing,i.a.NewTokyo,i.a.Ishima,i.a.Volhaven],offerHackingWork:!0,offerFieldWork:!0,offerSecurityWork:!0}),[i.a.Chongqing]:new c({infoText:r.a.createElement(r.a.Fragment,null,"Serve the People."),enemies:[i.a.Sector12,i.a.Aevum,i.a.Volhaven],offerHackingWork:!0,offerFieldWork:!0,offerSecurityWork:!0}),[i.a.Ishima]:new c({infoText:r.a.createElement(r.a.Fragment,null,"The East Asian Order of the Future."),enemies:[i.a.Sector12,i.a.Aevum,i.a.Volhaven],offerHackingWork:!0,offerFieldWork:!0,offerSecurityWork:!0}),[i.a.NewTokyo]:new c({infoText:r.a.createElement(r.a.Fragment,null,"Asia's World City."),enemies:[i.a.Sector12,i.a.Aevum,i.a.Volhaven],offerHackingWork:!0,offerFieldWork:!0,offerSecurityWork:!0}),[i.a.Sector12]:new c({infoText:r.a.createElement(r.a.Fragment,null,"The City of the Future."),enemies:[i.a.Chongqing,i.a.NewTokyo,i.a.Ishima,i.a.Volhaven],offerHackingWork:!0,offerFieldWork:!0,offerSecurityWork:!0}),[i.a.Volhaven]:new c({infoText:r.a.createElement(r.a.Fragment,null,"Benefit, Honor, and Glory."),enemies:[i.a.Chongqing,i.a.Sector12,i.a.NewTokyo,i.a.Aevum,i.a.Ishima],offerHackingWork:!0,offerFieldWork:!0,offerSecurityWork:!0}),[i.a.SpeakersForTheDead]:new c({infoText:r.a.createElement(r.a.Fragment,null,"It is better to reign in Hell than to serve in Heaven."),offerHackingWork:!0,offerFieldWork:!0,offerSecurityWork:!0}),[i.a.TheDarkArmy]:new c({infoText:r.a.createElement(r.a.Fragment,null,"The World doesn't care about right or wrong. It only cares about power."),offerHackingWork:!0,offerFieldWork:!0}),[i.a.TheSyndicate]:new c({infoText:r.a.createElement(r.a.Fragment,null,"Honor holds you back."),offerHackingWork:!0,offerFieldWork:!0,offerSecurityWork:!0}),[i.a.Silhouette]:new c({infoText:r.a.createElement(r.a.Fragment,null,"Corporations have filled the void of power left behind by the collapse of Western government. The issue is they've become so big that you don't know who they're working for. And if you're employed at one of these corporations, you don't even know who you're working for.",r.a.createElement("br",null),r.a.createElement("br",null),"That's terror. Terror, fear, and corruption. All born into the system, all propagated by the system."),offerHackingWork:!0,offerFieldWork:!0}),[i.a.Tetrads]:new c({infoText:r.a.createElement(r.a.Fragment,null,"Following the mandate of Heaven and carrying out the way."),offerFieldWork:!0,offerSecurityWork:!0}),[i.a.SlumSnakes]:new c({infoText:r.a.createElement(r.a.Fragment,null,i.a.SlumSnakes," rule!"),offerFieldWork:!0,offerSecurityWork:!0}),[i.a.Netburners]:new c({infoText:r.a.createElement(r.a.Fragment,null,"~~//*>H4CK||3T 8URN3R5**>?>\\~~"),offerHackingWork:!0}),[i.a.TianDiHui]:new c({infoText:r.a.createElement(r.a.Fragment,null,"Obey Heaven and work righteously."),offerHackingWork:!0,offerSecurityWork:!0}),[i.a.CyberSec]:new c({infoText:r.a.createElement(r.a.Fragment,null,"The Internet is the first thing that was built that we don't fully understand, the largest experiment in anarchy that we have ever had. And as the world becomes increasingly dominated by it, society approaches the brink of total chaos. We serve only to protect society, to protect humanity, to protect the world from imminent collapse."),offerHackingWork:!0}),[i.a.Bladeburners]:new c({infoText:r.a.createElement(r.a.Fragment,null,"It's too bad they won't live. But then again, who does?",r.a.createElement("br",null),r.a.createElement("br",null),"Note that for this faction, reputation can only be gained through ",i.a.Bladeburners," actions."," ","Completing ",i.a.Bladeburners," contracts/operations will increase your reputation."),special:!0,assignment:()=>{const e=o.b.Router();return r.a.createElement(s.a,{buttonText:"Open Bladeburner headquarters",infoText:"You can gain reputation with bladeburner by completing contracts and operations.",onClick:()=>e.toBladeburner()})}}),[i.a.ChurchOfTheMachineGod]:new c({infoText:r.a.createElement(r.a.Fragment,null," `` ",r.a.createElement("br",null)," -odmmNmds: ",r.a.createElement("br",null)," `hNmo:..-omNh. ",r.a.createElement("br",null)," yMd` `hNh ",r.a.createElement("br",null)," mMd oNm ",r.a.createElement("br",null)," oMNo .mM/ ",r.a.createElement("br",null)," `dMN+ -mM+ ",r.a.createElement("br",null)," -mMNo -mN+ ",r.a.createElement("br",null)," .+- :mMNo/mN/ ",r.a.createElement("br",null),":yNMd. :NMNNN/ ",r.a.createElement("br",null),"-mMMMh. /NMMh` ",r.a.createElement("br",null)," .dMMMd. /NMMMy` ",r.a.createElement("br",null)," `yMMMd. /NNyNMMh` ",r.a.createElement("br",null)," `sMMMd. +Nm: +NMMh. ",r.a.createElement("br",null)," oMMMm- oNm: /NMMd. ",r.a.createElement("br",null)," +NMMmsMm- :mMMd. ",r.a.createElement("br",null)," /NMMMm- -mMMd. ",r.a.createElement("br",null)," /MMMm- -mMMd. ",r.a.createElement("br",null)," `sMNMMm- .mMmo ",r.a.createElement("br",null)," `sMd:hMMm. ./. ",r.a.createElement("br",null)," `yMy` `yNMd` ",r.a.createElement("br",null)," `hMs` oMMy ",r.a.createElement("br",null)," `hMh sMN- ",r.a.createElement("br",null)," /MM- .NMo ",r.a.createElement("br",null)," +MM: :MM+ ",r.a.createElement("br",null)," sNNo-.`.-omNy` ",r.a.createElement("br",null)," -smNNNNmdo- ",r.a.createElement("br",null)," `..` ",r.a.createElement("br",null),r.a.createElement("br",null),"Many cultures predict an end to humanity in the near future, a final Armageddon that will end the world; but we disagree."),offerHackingWork:!1,offerFieldWork:!1,offerSecurityWork:!1,special:!0,keepOnInstall:!0,assignment:()=>{const e=o.b.Router();return r.a.createElement(s.a,{buttonText:"Open Staneks Gift",infoText:"Stanek's Gift is a powerful augmentation that powers up the stat you chose to boost.Gaining reputation with the Church of the Machine God can only be done by charging the gift.",onClick:()=>e.toStaneksGift()})}}),[i.a.ShadowsOfAnarchy]:new c({infoText:r.a.createElement(r.a.Fragment,null,"The government is ruled by the corporations that we have allowed to consume it. To release the world from its shackles, the gods grant us their strength."),special:!0,keepOnInstall:!0,assignment:()=>r.a.createElement(l.a,null,i.a.ShadowsOfAnarchy," can only gain reputation by infiltrating.")})}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var a=n(244),r=n(22);function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class o{constructor(){i(this,"capacity",0),i(this,"hashes",0),i(this,"upgrades",{});for(const e of Object.keys(a.a))this.upgrades[e]=0}getMult(e){const t=a.a[e],n=this.upgrades[e];return null==t||null==n?(console.error("Could not find Hash Study upgrade"),1):1+t.value*n/100}getStudyMult(){return this.getMult("Improve Studying")}getTrainingMult(){return this.getMult("Improve Gym Training")}getUpgrade(e){const t=a.a[e];return t||(console.error("Invalid Upgrade Name given to HashManager.getUpgrade(): "+e),null)}getUpgradeCost(e){const t=this.getUpgrade(e),n=this.upgrades[e];return null==t||null==n?(console.error("Invalid Upgrade Name given to HashManager.getUpgradeCost(): "+e),1/0):t.getCost(n)}prestige(){for(const e of Object.keys(a.a))this.upgrades[e]=0;this.hashes=0,this.updateCapacity(0)}refundUpgrade(e){const t=a.a[e];--this.upgrades[e];const n=this.upgrades[e];if(null==t||null==n||n<0)return void console.error("Invalid Upgrade Name given to HashManager.upgrade(): "+e);const r=t.getCost(n);this.hashes+=r}storeHashes(e){this.hashes+=e;let t=this.hashes;return this.hashes=Math.min(this.hashes,this.capacity),t-=this.hashes,t}updateCapacity(e){e<0&&(this.capacity=0),this.capacity=Math.max(e,0)}upgrade(e){if(null==a.a[e])return console.error("Invalid Upgrade Name given to HashManager.upgrade(): "+e),!1;const t=this.getUpgradeCost(e);return!(this.hashes<t)&&(this.hashes-=t,++this.upgrades[e],!0)}toJSON(){return Object(r.b)("HashManager",this)}static fromJSON(e){return Object(r.a)(o,e.data)}}r.c.constructors.HashManager=o},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));const a=new(n(126).a)},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o}));var a=n(82),r=n(14);function i(e,t){let n=0,i=!1;for(const r of Object.keys(a.a)){const o=a.a[r];if(o.type===t){n=o.successRate(e),i=!0;break}}return i?Math.random()<=n:(Object(r.a)(`ERR: Unrecognized crime type: ${t} This is probably a bug please contact the developer`),!1)}function o(e){return(e=e.toLowerCase()).includes("shoplift")?a.a.Shoplift:e.includes("rob")&&e.includes("store")?a.a.RobStore:e.includes("mug")?a.a.Mug:e.includes("larceny")?a.a.Larceny:e.includes("drugs")?a.a.DealDrugs:e.includes("bond")&&e.includes("forge")?a.a.BondForgery:(e.includes("traffic")||e.includes("illegal"))&&e.includes("arms")?a.a.TraffickArms:e.includes("homicide")?a.a.Homicide:e.includes("grand")&&e.includes("auto")?a.a.GrandTheftAuto:e.includes("kidnap")?a.a.Kidnap:e.includes("assassin")?a.a.Assassination:e.includes("heist")?a.a.Heist:null}},function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var a=n(45),r=n(39),i=n(33),o=n(24),s=n(22),l=n(1064);function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class f{constructor(e={}){c(this,"minEne",0),c(this,"maxEne",100),c(this,"minHap",0),c(this,"maxHap",100),c(this,"maxMor",100),c(this,"employees",[]),c(this,"employeeProd",{[a.a.Operations]:0,[a.a.Engineer]:0,[a.a.Business]:0,[a.a.Management]:0,[a.a.RandD]:0,total:0}),c(this,"employeeJobs",{[a.a.Operations]:0,[a.a.Engineer]:0,[a.a.Business]:0,[a.a.Management]:0,[a.a.RandD]:0,[a.a.Training]:0,[a.a.Unassigned]:0,total:0}),this.loc=e.loc?e.loc:"",this.size=e.size?e.size:1}atCapacity(){return this.employees.length>=this.size}process(e=1,t,n){if(n.hasResearch("HRBuddy-Recruitment")&&!this.atCapacity()){const e=this.hireRandomEmployee();n.hasResearch("HRBuddy-Training")&&void 0!==e&&(e.pos=a.a.Training)}this.calculateTotalEmployees(),this.maxEne=100,this.maxHap=100,this.maxMor=100,n.hasResearch("Go-Juice")&&(this.maxEne+=10),n.hasResearch("JoyWire")&&(this.maxHap+=10),n.hasResearch("Sti.mu")&&(this.maxMor+=10);let r=1;t.funds<0&&n.lastCycleRevenue<0?r=Math.pow(.99,e):t.funds>0&&n.lastCycleRevenue>0&&(r=Math.pow(1.01,e));const i=n.hasResearch("AutoBrew"),o=n.hasResearch("AutoPartyManager");let s=0;for(let t=0;t<this.employees.length;++t){const n=this.employees[t];o?(n.mor=this.maxMor,n.hap=this.maxHap):(n.mor*=r,n.hap*=r,n.mor=Math.min(n.mor,this.maxMor),n.hap=Math.min(n.hap,this.maxHap)),i?n.ene=this.maxEne:(n.ene*=r,n.ene=Math.min(n.ene,this.maxEne));s+=n.process(e,this)}return this.calculateEmployeeProductivity(t,n),s}calculateTotalEmployees(){for(const e of Object.keys(this.employeeJobs))this.employeeJobs[e]=0;for(let e=0;e<this.employees.length;++e){const t=this.employees[e];this.employeeJobs[t.pos]++}this.employeeJobs.total=this.employees.length}calculateEmployeeProductivity(e,t){for(const e of Object.keys(this.employeeProd))this.employeeProd[e]=0;let n=0;for(let a=0;a<this.employees.length;++a){const r=this.employees[a],i=r.calculateProductivity(e,t);this.employeeProd[r.pos]+=i,n+=i}this.employeeProd.total=n}hireRandomEmployee(){if(this.atCapacity())return;if(null!=document.getElementById("cmpy-mgmt-hire-employee-popup"))return;const e=Object(i.a)(50,100),t=Object(i.a)(50,100),n=Object(i.a)(50,100),a=Object(i.a)(50,100),s=Object(i.a)(50,100),c=r.a.EmployeeSalaryMultiplier*(e+t+n+a+s),f=new l.a({intelligence:e,charisma:t,experience:n,creativity:a,efficiency:s,salary:c}),u=Object(o.g)(7);for(let e=0;e<this.employees.length;++e)if(this.employees[e].name===u)return this.hireRandomEmployee();return f.name=u,this.employees.push(f),f}assignEmployeeToJob(e){for(let t=0;t<this.employees.length;++t)if(this.employees[t].pos===a.a.Unassigned)return this.employees[t].pos=e,!0;return!1}unassignEmployeeFromJob(e){for(let t=0;t<this.employees.length;++t)if(this.employees[t].pos===e)return this.employees[t].pos=a.a.Unassigned,!0;return!1}setEmployeeToJob(e,t){let n=this.employees.reduce((t,n)=>n.pos===e?t+1:t,0);for(const r of this.employees){if(n==t)return!0;r.pos===a.a.Unassigned&&n<=t?(r.pos=e,n++):r.pos===e&&n>=t&&(r.pos=a.a.Unassigned,n--)}return n===t}toJSON(){return Object(s.b)("OfficeSpace",this)}static fromJSON(e){return Object(s.a)(f,e.data)}}s.c.constructors.OfficeSpace=f},function(e,t,n){"use strict";let a;n.d(t,"a",(function(){return r})),function(e){e[e.SmartFactories=0]="SmartFactories",e[e.SmartStorage=1]="SmartStorage",e[e.DreamSense=2]="DreamSense",e[e.WilsonAnalytics=3]="WilsonAnalytics",e[e.NuoptimalNootropicInjectorImplants=4]="NuoptimalNootropicInjectorImplants",e[e.SpeechProcessorImplants=5]="SpeechProcessorImplants",e[e.NeuralAccelerators=6]="NeuralAccelerators",e[e.FocusWires=7]="FocusWires",e[e.ABCSalesBots=8]="ABCSalesBots",e[e.ProjectInsight=9]="ProjectInsight"}(a||(a={}));const r={[a.SmartFactories]:{index:a.SmartFactories,basePrice:2e9,priceMult:1.06,benefit:.03,name:"Smart Factories",desc:"Advanced AI automatically optimizes the operation and productivity of factories. Each level of this upgrade increases your global production by 3% (additive)."},[a.SmartStorage]:{index:a.SmartStorage,basePrice:2e9,priceMult:1.06,benefit:.1,name:"Smart Storage",desc:"Advanced AI automatically optimizes your warehouse storage methods. Each level of this upgrade increases your global warehouse storage size by 10% (additive)."},[a.DreamSense]:{index:a.DreamSense,basePrice:4e9,priceMult:1.1,benefit:.001,name:"DreamSense",desc:"Use DreamSense LCC Technologies to advertise your corporation to consumers through their dreams. Each level of this upgrade provides a passive increase in awareness of all of your companies (divisions) by 0.004 / market cycle,and in popularity by 0.001 / market cycle. A market cycle is approximately 15 seconds."},[a.WilsonAnalytics]:{index:a.WilsonAnalytics,basePrice:4e9,priceMult:1.5,benefit:.005,name:"Wilson Analytics",desc:"Purchase data and analysis from Wilson, a marketing research firm. Each level of this upgrade increases the effectiveness of your advertising by 0.5% (additive)."},[a.NuoptimalNootropicInjectorImplants]:{index:a.NuoptimalNootropicInjectorImplants,basePrice:1e9,priceMult:1.06,benefit:.1,name:"Nuoptimal Nootropic Injector Implants",desc:"Purchase the Nuoptimal Nootropic Injector augmentation for your employees. Each level of this upgrade globally increases the creativity of your employees by 10% (additive)."},[a.SpeechProcessorImplants]:{index:a.SpeechProcessorImplants,basePrice:1e9,priceMult:1.06,benefit:.1,name:"Speech Processor Implants",desc:"Purchase the Speech Processor augmentation for your employees. Each level of this upgrade globally increases the charisma of your employees by 10% (additive)."},[a.NeuralAccelerators]:{index:a.NeuralAccelerators,basePrice:1e9,priceMult:1.06,benefit:.1,name:"Neural Accelerators",desc:"Purchase the Neural Accelerator augmentation for your employees. Each level of this upgrade globally increases the intelligence of your employees by 10% (additive)."},[a.FocusWires]:{index:a.FocusWires,basePrice:1e9,priceMult:1.06,benefit:.1,name:"FocusWires",desc:"Purchase the FocusWire augmentation for your employees. Each level of this upgrade globally increases the efficiency of your employees by 10% (additive)."},[a.ABCSalesBots]:{index:a.ABCSalesBots,basePrice:1e9,priceMult:1.07,benefit:.01,name:"ABC SalesBots",desc:"Always Be Closing. Purchase these robotic salesmen to increase the amount of materials and products you sell. Each level of this upgrade globally increases your sales by 1% (additive)."},[a.ProjectInsight]:{index:a.ProjectInsight,basePrice:5e9,priceMult:1.07,benefit:.05,name:"Project Insight",desc:"Purchase 'Project Insight', a R&D service provided by the secretive Fulcrum Technologies. Each level of this upgrade globally increases the amount of Scientific Research you produce by 5% (additive)."}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var a=n(113),r=n(12);class i{constructor(e){this.augmentation=e}get cost(){return this.augmentation.baseCost*r.a.AugmentationGraftingCostMult}get time(){const e=Math.max(Object(a.sum)(Object.values(this.augmentation.mults)),1),t=Math.log2(e);return(r.a.AugmentationGraftingTimeBase*t+r.a.MillisecondsPerHalfHour)/2}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var a=n(0),r=n.n(a),i=n(6),o=n(139);function s({reputation:e}){return r.a.createElement(o.a,{reputation:i.a.formatReputation(e)+" / sec"})}},,function(e,t,n){"use strict";function a(e,t){for(const n of Object.keys(t)){const a=t[n];void 0!==a&&("function"==typeof a?a(e,n):void 0!==a.func?a.func(e,t,n):(typeof e[n]!=typeof a.default&&(e[n]=a.default),"number"==typeof e[n]&&void 0!==a.min&&e[n]<a.min&&(e[n]=a.min),"number"==typeof e[n]&&void 0!==a.max&&e[n]>a.max&&(e[n]=a.max)))}}function r(e,t,n){return(a,r)=>{"number"==typeof a[r]?(a[r]<t&&(a[r]=t),a[r]>n&&(a[r]=n)):a[r]=e}}n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return s})),n.d(t,"a",(function(){return l}));var a=n(21),r=n(613),i=n(11);function o(e,t,n,r){const o=n*Math.pow(1.01,n);return Math.pow(t+1,2)*Math.pow(r,3)*3e3*o*(e.hasAugmentation(i.a.WKSharmonizer,!0)?1.5:1)*a.a.InfiltrationMoney}function s(e,t,n,r){const o=n*Math.pow(1.01,n);return Math.pow(t+1,1.1)*Math.pow(r,1.2)*30*o*(e.hasAugmentation(i.a.WKSharmonizer,!0)?1.5:1)*a.a.InfiltrationRep}function l(e,t,n){return n/r.a.reduce((e,t)=>{var n;const a=(null===(n=t.infiltrationData)||void 0===n?void 0:n.startingSecurityLevel)||0;return e>a?e:a},0)*5e3*(e.hasAugmentation(i.a.WKSharmonizer,!0)?2:1)*(1+t.favor/100)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var a=n(22);function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class i{constructor(){r(this,"bladeburner",0),r(this,"casino",0),r(this,"class",0),r(this,"codingcontract",0),r(this,"corporation",0),r(this,"crime",0),r(this,"gang",0),r(this,"hacking",0),r(this,"hacknet",0),r(this,"hacknet_expenses",0),r(this,"hospitalization",0),r(this,"infiltration",0),r(this,"sleeves",0),r(this,"stock",0),r(this,"total",0),r(this,"work",0),r(this,"servers",0),r(this,"other",0),r(this,"augmentations",0)}record(e,t){const n=t.toLowerCase();"number"==typeof this[n]?(this[n]+=e,this.total+=e):console.warn("MoneySourceTracker.record() called with invalid source: "+t)}reset(){for(const e in this)"number"==typeof this[e]&&(this[e]=0)}toJSON(){return Object(a.b)("MoneySourceTracker",this)}static fromJSON(e){return Object(a.a)(i,e.data)}}a.c.constructors.MoneySourceTracker=i},,function(e,t,n){"use strict";function a(){const e=Math.random();return e<.4?"ABCDEFGHIJKLMNOPQRSTUVWXYZ"[Math.floor(26*Math.random())]:e<.8?"abcdefghijklmnopqrstuvwxyz"[Math.floor(26*Math.random())]:"01234567689"[Math.floor(10*Math.random())]}function r(){const e=50+Math.floor(25*(Math.random()+Math.random()));let t="";for(;t.length<e;)if(Math.random()<.8)t+=a();else{const e=1+Math.floor(9*Math.random()),n=1+Math.floor(9*Math.random());if(n>t.length)continue;for(let a=0;a<e;++a)t+=t[t.length-n]}return t.substring(0,e)}function i(e){var t;let n=Array.from(Array(10),()=>Array(10).fill(null)),a=Array.from(Array(10),()=>Array(10));function r(e,t,n,a){const r=e[t][n];(null==r||a.length<r.length||a.length===r.length&&Math.random()<.5)&&(e[t][n]=a)}n[0][1]="";for(let t=1;t<e.length;++t){for(const e of a)e.fill(null);const i=e[t];for(let o=1;o<=9;++o){const s=n[0][o];if(null!=s){o<9?r(a,0,o+1,s):r(a,0,1,s+"9"+e.substring(t-9,t)+"0");for(let n=1;n<=Math.min(9,t);++n)e[t-n]===i&&r(a,n,1,s+String(o)+e.substring(t-o,t))}}for(let o=1;o<=9;++o)for(let s=1;s<=9;++s){const l=n[o][s];if(null!=l){e[t-o]===i&&(s<9?r(a,o,s+1,l):r(a,o,1,l+"9"+String(o)+"0")),r(a,0,1,l+String(s)+String(o));for(let n=1;n<=Math.min(9,t);++n)e[t-n]===i&&r(a,n,1,l+String(s)+String(o)+"0")}}const o=a;a=n,n=o}let i=null;for(let t=1;t<=9;++t){let a=n[0][t];null!=a&&(a+=String(t)+e.substring(e.length-t,e.length),(null==i||a.length<i.length||a.length==i.length&&Math.random()<.5)&&(i=a))}for(let e=1;e<=9;++e)for(let t=1;t<=9;++t){let a=n[e][t];null!=a&&(a+=String(t)+""+String(e),(null==i||a.length<i.length||a.length==i.length&&Math.random()<.5)&&(i=a))}return null!==(t=i)&&void 0!==t?t:""}function o(e){let t="";for(let n=0;n<e.length;){const a=e.charCodeAt(n)-48;if(a<0||a>9||n+1+a>e.length)return null;if(t+=e.substring(n+1,n+1+a),n+=1+a,n>=e.length)break;const r=e.charCodeAt(n)-48;if(r<0||r>9)return null;if(0===r)++n;else{if(n+1>=e.length)return null;const a=e.charCodeAt(n+1)-48;if(r>0&&(a<1||a>9)||a>t.length)return null;for(let e=0;e<r;++e)t+=t[t.length-a];n+=2}}return t}n.d(t,"a",(function(){return a})),n.d(t,"d",(function(){return r})),n.d(t,"c",(function(){return i})),n.d(t,"b",(function(){return o}))},,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var a=n(0),r=n(1495),i=n(1),o=n(19),s=n(30),l=n(307),c=n(6);function f({min:e,max:t,current:n,remaining:s,progress:l,color:f}){const u=a.createElement(i.a,{sx:{textAlign:"right"}},a.createElement("strong",null,"Progress:")," ",c.a.formatExp(n)," / ",c.a.formatExp(t-e),a.createElement("br",null),a.createElement("strong",null,"Remaining:")," ",c.a.formatExp(s)," (",l.toFixed(2),"%)");return a.createElement(o.a,{title:u},a.createElement(r.a,{variant:"determinate",value:l,sx:{backgroundColor:"#111111","& .MuiLinearProgress-bar1Determinate":{backgroundColor:f}}}))}function u({progress:e,color:t}){const n=Object(l.b)();return a.createElement(s.a,{component:"th",scope:"row",colSpan:2,classes:{root:n.cellNone},style:{paddingBottom:"2px",position:"relative",top:"-3px"}},a.createElement(f,{min:e.baseExperience,max:e.nextExperience,current:e.currentExperience,remaining:e.remainingExperience,progress:e.progress,color:t}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"f",(function(){return s})),n.d(t,"b",(function(){return l})),n.d(t,"c",(function(){return c})),n.d(t,"d",(function(){return f})),n.d(t,"e",(function(){return u})),n.d(t,"g",(function(){return m}));var a=n(29),r=n(540),i=n(190);function o(){return 2===this.bitNodeN||!(this.sourceFileLvl(2)<=0)&&this.karma<=i.a.GangKarmaRequirement}function s(){return 2===this.bitNodeN||this.sourceFileLvl(2)>=1}function l(){const e=this.gang;if(null===e)throw new Error("Cannot get gang faction because player is not in a gang.");const t=a.a[e.facName];if(null==t)throw new Error("Gang has invalid faction name: "+e.facName);return t}function c(){if(!this.inGang())return"";const e=this.gang;if(null===e)throw new Error("Cannot get gang faction because player is not in a gang.");return e.facName}function f(e){if(!this.inGang())return!1;const t=this.gang;if(null===t)throw new Error("Cannot get gang faction because player is not in a gang.");return t.facName===e}function u(){return null!=this.gang&&null!=this.gang&&this.gang instanceof r.a}function m(e,t){this.gang=new r.a(e,t);const n=a.a[e];if(null==n)throw new Error("Invalid faction name when creating gang: "+e);n.playerReputation=0}},,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));const a={lineHeight:1.5,fontFamily:"Lucida Console, Lucida Sans Unicode, Fira Mono, Consolas, Courier New, Courier, monospace, Times New Roman"}},,,,,function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return i}));var a=n(12);function r(e){return e.money<0?0:Math.min(.1*e.money,(e.max_hp-e.hp)*a.a.HospitalCostPerHp)}function i(e,t){const n=e.hp;e.hp-=t;const a=r(e);return e.hp=n,a}},function(e,t,n){"use strict";n.d(t,"a",(function(){return h})),n.d(t,"b",(function(){return d}));var a=n(0),r=n.n(a),i=n(126),o=n(37),s=n(1),l=n(8),c=n(130),f=n(75),u=n(71),m=n(25);const h=new i.a;function d(){var e,t,n;const[i,l]=Object(a.useState)(null);if(Object(a.useEffect)(()=>h.subscribe(e=>{l(e)}),[]),null===i)return r.a.createElement(r.a.Fragment,null);const c={text:g,select:y};let f=p;null!=i&&null!==(e=i.options)&&void 0!==e&&e.type&&["text","select"].includes(null==i||null===(t=i.options)||void 0===t?void 0:t.type)&&(f=c[null==i||null===(n=i.options)||void 0===n?void 0:n.type]);return r.a.createElement(o.a,{open:!0,onClose:function(){var e,t;null!==i&&(["text","select"].includes(null!==(e=null==i||null===(t=i.options)||void 0===t?void 0:t.type)&&void 0!==e?e:"")?i.resolve(""):i.resolve(!1),l(null))}},r.a.createElement("pre",null,r.a.createElement(s.a,null,i.txt)),r.a.createElement(f,{prompt:i,resolve:e=>{i.resolve(e),l(null)}}))}function p({resolve:e}){return r.a.createElement(r.a.Fragment,null,r.a.createElement("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",paddingTop:"10px"}},r.a.createElement(l.a,{style:{marginRight:"auto"},onClick:()=>e(!0)},"Yes"),r.a.createElement(l.a,{onClick:()=>e(!1)},"No")))}function g({resolve:e}){const[t,n]=Object(a.useState)(""),i=()=>e(t);return r.a.createElement(r.a.Fragment,null,r.a.createElement("div",{style:{display:"flex",alignItems:"center",paddingTop:"10px"}},r.a.createElement(f.a,{autoFocus:!0,value:t,onInput:e=>{n(e.target.value)},onKeyDown:e=>{e.stopPropagation(),e.key===m.a.ENTER&&(e.preventDefault(),i())},style:{flex:"1 0 auto"},InputProps:{endAdornment:r.a.createElement(l.a,{onClick:i},"Confirm")}})))}function y({prompt:e,resolve:t}){var n;const[i,o]=Object(a.useState)("");return r.a.createElement(r.a.Fragment,null,r.a.createElement("div",{style:{display:"flex",alignItems:"center",paddingTop:"10px"}},r.a.createElement(c.a,{onChange:e=>{o(e.target.value)},value:i,style:{flex:"1 0 auto"}},(e=>{const t=[];for(const n of e)t.push(r.a.createElement(u.a,{key:n,value:n},n));return t})((null==e||null===(n=e.options)||void 0===n?void 0:n.choices)||[])),r.a.createElement(l.a,{onClick:()=>t(i),disabled:""===i},"Confirm")))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var a=n(45),r=n(183),i=n(1065),o=n(556),s=n(22),l=n(33);function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class f{constructor(e={}){c(this,"name",""),c(this,"dmd",0),c(this,"cmp",0),c(this,"mku",0),c(this,"pCost",0),c(this,"sCost",0),c(this,"fin",!1),c(this,"prog",0),c(this,"createCity",""),c(this,"designCost",0),c(this,"advCost",0),c(this,"rat",0),c(this,"qlt",0),c(this,"per",0),c(this,"dur",0),c(this,"rel",0),c(this,"aes",0),c(this,"fea",0),c(this,"data",Object(o.a)([0,0,0])),c(this,"loc",""),c(this,"siz",0),c(this,"reqMats",{}),c(this,"prdman",Object(o.a)([!1,0])),c(this,"sllman",Object(o.a)([!1,0])),c(this,"marketTa1",!1),c(this,"marketTa2",!1),c(this,"marketTa2Price",Object(o.a)(0)),c(this,"maxsll",0),this.name=e.name?e.name:"",this.dmd=e.demand?e.demand:0,this.cmp=e.competition?e.competition:0,this.mku=e.markup?e.markup:0,this.createCity=e.createCity?e.createCity:"",this.designCost=e.designCost?e.designCost:0,this.advCost=e.advCost?e.advCost:0,this.qlt=e.quality?e.quality:0,this.per=e.performance?e.performance:0,this.dur=e.durability?e.durability:0,this.rel=e.reliability?e.reliability:0,this.aes=e.aesthetics?e.aesthetics:0,this.fea=e.features?e.features:0,this.loc=e.loc?e.loc:"",this.siz=e.size?e.size:0,this.reqMats=e.req?e.req:{}}createProduct(e=1,t=1){this.fin||(this.prog+=.01*e*t)}finishProduct(e,t){this.fin=!0;const n=e[a.a.Engineer]/e.total,i=e[a.a.Management]/e.total,o=e[a.a.RandD]/e.total,s=e[a.a.Operations]/e.total,c=e[a.a.Business]/e.total,f=(1.2*n+.9*i+1.3*o+1.5*s+c)*(1+Math.pow(this.designCost,.1)/100)*(1+Math.pow(t.sciResearch.qty,t.sciFac)/800);this.qlt=f*(.1*e[a.a.Engineer]+.05*e[a.a.Management]+.05*e[a.a.RandD]+.02*e[a.a.Operations]+.02*e[a.a.Business]),this.per=f*(.15*e[a.a.Engineer]+.02*e[a.a.Management]+.02*e[a.a.RandD]+.02*e[a.a.Operations]+.02*e[a.a.Business]),this.dur=f*(.05*e[a.a.Engineer]+.02*e[a.a.Management]+.08*e[a.a.RandD]+.05*e[a.a.Operations]+.05*e[a.a.Business]),this.rel=f*(.02*e[a.a.Engineer]+.08*e[a.a.Management]+.02*e[a.a.RandD]+.05*e[a.a.Operations]+.08*e[a.a.Business]),this.aes=f*(0*e[a.a.Engineer]+.08*e[a.a.Management]+.05*e[a.a.RandD]+.02*e[a.a.Operations]+.1*e[a.a.Business]),this.fea=f*(.08*e[a.a.Engineer]+.05*e[a.a.Management]+.02*e[a.a.RandD]+.05*e[a.a.Operations]+.05*e[a.a.Business]),this.calculateRating(t);const u=1+Math.pow(this.advCost,.1)/100,m=Math.max(c+i,1/e.total);this.mku=100/(u*Math.pow(this.qlt+.001,.65)*m),0!==this.mku&&isFinite(this.mku)||(this.mku=1),this.dmd=0===t.awareness?20:Math.min(100,u*(t.popularity/t.awareness*100)),this.cmp=Object(l.a)(0,70);for(const e of Object.keys(t.reqMats))if(t.reqMats.hasOwnProperty(e)){const n=t.reqMats[e];if(void 0===n)continue;this.reqMats[e]=n}this.siz=0;for(const e of Object.keys(t.reqMats)){const n=t.reqMats[e];void 0!==n&&(this.siz+=r.a[e]*n)}}calculateRating(e){const t=i.a[e.type];null!=t?(this.rat=0,this.rat+=t.Quality?this.qlt*t.Quality:0,this.rat+=t.Performance?this.per*t.Performance:0,this.rat+=t.Durability?this.dur*t.Durability:0,this.rat+=t.Reliability?this.rel*t.Reliability:0,this.rat+=t.Aesthetics?this.aes*t.Aesthetics:0,this.rat+=t.Features?this.fea*t.Features:0):console.error("Could not find product rating weights for: "+e)}toJSON(){return Object(s.b)("Product",this)}static fromJSON(e){return Object(s.a)(f,e.data)}}s.c.constructors.Product=f},function(e,t,n){"use strict";function a(e,t){return!!Object.keys(t.reqMats).includes(e)||(!!t.prodMats.includes(e)||!!["Hardware","Robots","AICores","RealEstate","AI Cores","Real Estate"].includes(e))}n.d(t,"a",(function(){return a}))},,function(e,t,n){"use strict";n.d(t,"b",(function(){return b})),n.d(t,"a",(function(){return E}));var a=n(0),r=n.n(a),i=n(113),o=n(252),s=n(1),l=n(18),c=n(43),f=n(8),u=n(1791),m=n(1792),h=n(1793),d=n(28),p=n(5),g=n(60),y=n(305);const b=[];function E(){const e=d.b.Player(),t=d.b.Router(),n=Object(a.useState)(!1)[1];function E(){n(e=>!e)}const v=[...Object.values(g.a)].filter(t=>{const n=t.create;return null!==n&&("b1t_flum3.exe"!==t.name||n.req(e))}).sort((t,n)=>{var a,r,i,o;return e.hasProgram(t.name)?1:e.hasProgram(n.name)?-1:(null!==(a=null===(r=t.create)||void 0===r?void 0:r.level)&&void 0!==a?a:0)-(null!==(i=null===(o=n.create)||void 0===o?void 0:o.level)&&void 0!==i?i:0)});Object(a.useEffect)(()=>{v.forEach(e=>{b.includes(e.name)||b.push(e.name)})},[]),Object(a.useEffect)(()=>{const e=setInterval(E,200);return()=>clearInterval(e)},[]);const k=t=>Math.ceil(Math.max(t-(e.hacking+e.intelligence/2),0));return r.a.createElement(o.a,{disableGutters:!0,maxWidth:"lg",sx:{mx:0,mb:10}},r.a.createElement(s.a,{variant:"h4"},"Create program"),r.a.createElement(s.a,null,"This page displays any programs that you are able to create. Writing the code for a program takes time, which can vary based on how complex the program is. If you are working on creating a program you can cancel at any time. Your progress will be saved and you can continue later."),r.a.createElement(l.a,{sx:{display:"grid",gridTemplateColumns:"repeat(3, 1fr)",my:1}},v.map(n=>{const a=n.create;if(null===a)return r.a.createElement(r.a.Fragment,null);const o=(t=>{const n=Object(i.find)(e.getHomeComputer().programs,e=>e.startsWith(t)&&e.endsWith("%-INC"));if(!n)return-1;const a=n.split("-");if(3!=a.length)return-1;const r=Number(a[1].slice(0,-1));return isNaN(r)||r<0||r>=100?-1:r})(n.name);return r.a.createElement(l.a,{component:c.a,sx:{p:1,opacity:e.hasProgram(n.name)?.75:1},key:n.name},r.a.createElement(s.a,{variant:"h6",sx:{display:"flex",alignItems:"center",flexWrap:"wrap"}},e.hasProgram(n.name)&&r.a.createElement(u.a,{sx:{mr:1}})||a.req(e)&&r.a.createElement(m.a,{sx:{mr:1}})||r.a.createElement(h.a,{sx:{mr:1}}),n.name),!e.hasProgram(n.name)&&a.req(e)&&r.a.createElement(f.a,{sx:{my:1,width:"100%"},onClick:a=>{a.isTrusted&&(e.startWork(new y.a({player:e,singularity:!1,programName:n.name})),e.startFocusing(),t.toWork())}},"Create program"),e.hasProgram(n.name)||0===k(a.level)||r.a.createElement(s.a,{color:p.a.theme.hack},r.a.createElement("b",null,"Unlocks in:")," ",k(a.level)," hacking levels"),-1!==o&&r.a.createElement(s.a,{color:p.a.theme.infolight},r.a.createElement("b",null,"Current completion:")," ",o,"%"),r.a.createElement(s.a,null,a.tooltip))})))}},function(e,t,n){"use strict";n.d(t,"b",(function(){return S})),n.d(t,"a",(function(){return L}));var a=n(1794),r=n(1795),i=n(1796),o=n(1797),s=n(1491),l=n(704),c=n(705),f=n(19),u=n(43),m=n(18),h=n(8),d=n(1),p=n(127),g=n(252),y=n(0),b=n.n(y),E=n(5),v=n(6),k=n(4),w=n(105),_=n(29);const S=[],C=e=>{const t=e.faction.getInfo();return b.a.createElement(b.a.Fragment,null,t.offerFieldWork&&b.a.createElement(f.a,{title:"This Faction offers field work"},b.a.createElement(a.a,{sx:{color:E.a.theme.info,mr:.5},fontSize:"small"})),t.offerHackingWork&&b.a.createElement(f.a,{title:"This Faction offers hacking work"},b.a.createElement(r.a,{sx:{color:E.a.theme.hack,mr:.5},fontSize:"small"})),t.offerSecurityWork&&b.a.createElement(f.a,{title:"This Faction offers security work"},b.a.createElement(i.a,{sx:{color:E.a.theme.combat,mr:.5},fontSize:"small"})))},x=e=>{const t=e.faction.getInfo();return b.a.createElement(u.a,{sx:{display:"grid",p:1,alignItems:"center",gridTemplateColumns:"minmax(0, 4fr)"+(e.joined?" 1fr":"")}},b.a.createElement(m.a,{display:"flex",sx:{alignItems:"center"}},e.joined?b.a.createElement(m.a,{display:"grid",sx:{mr:1,gridTemplateColumns:"1fr 1fr",minWidth:"fit-content",gap:.5,"& .MuiButton-root":{height:"48px"}}},b.a.createElement(h.a,{onClick:()=>{return t=e.faction,void e.router.toFaction(t);var t}},"Details"),b.a.createElement(h.a,{onClick:()=>{return t=e.faction,void e.router.toFaction(t,!0);var t}},"Augments")):b.a.createElement(h.a,{sx:{height:"48px",mr:1},onClick:t=>{return n=t,a=e.faction.name,void(n.isTrusted&&(Object(w.d)(_.a[a]),e.rerender()));var n,a}},"Join!"),b.a.createElement("span",{style:{maxWidth:e.joined?"70%":"95%"}},b.a.createElement(d.a,{variant:"h6",sx:{mr:1,display:"grid",gridTemplateColumns:"fit-content(100vw) max-content",alignItems:"center"}},b.a.createElement("span",{style:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},title:e.faction.name},e.faction.name),b.a.createElement("span",{style:{display:"flex",alignItems:"center"}},e.player.hasGangWith(e.faction.name)&&b.a.createElement(f.a,{title:"You have a gang with this Faction"},b.a.createElement(o.a,{sx:{color:E.a.theme.hp,ml:1}})),t.special&&b.a.createElement(f.a,{title:"This is a special Faction"},b.a.createElement(s.a,{sx:{ml:1,color:E.a.theme.money,transform:"rotate(180deg)"}})),!e.joined&&t.enemies.length>0&&b.a.createElement(f.a,{title:b.a.createElement(d.a,null,"This Faction is enemies with:",b.a.createElement("ul",null,t.enemies.map(e=>b.a.createElement("li",{key:e},e))),"Joining this Faction will prevent you from joining its enemies")},b.a.createElement(l.a,{sx:{ml:1,color:E.a.theme.error}})))),b.a.createElement("span",{style:{display:"flex",alignItems:"center"}},!e.player.hasGangWith(e.faction.name)&&b.a.createElement(C,{faction:e.faction}),e.joined&&b.a.createElement(d.a,{variant:"body2",sx:{display:"flex"}},(n=e.faction,a=e.player,Object(w.a)(a,n).filter(e=>!a.hasAugmentation(e)).length)," Augmentations left")))),e.joined&&b.a.createElement(m.a,{display:"grid",sx:{alignItems:"center",justifyItems:"left",gridAutoFlow:"row"}},b.a.createElement(d.a,{sx:{color:E.a.theme.rep}},v.a.formatFavor(e.faction.favor)," favor"),b.a.createElement(d.a,{sx:{color:E.a.theme.rep}},v.a.formatReputation(e.faction.playerReputation)," rep")));var n,a};function L(e){const t=Object(p.a)(),n=Object(y.useState)(!1)[1];function a(){n(e=>!e)}Object(y.useEffect)(()=>{const e=setInterval(a,200);return()=>clearInterval(e)},[]),Object(y.useEffect)(()=>{e.player.factionInvitations.forEach(e=>{S.includes(e)||S.push(e)})},[]);const r=Object.values(k.a).map(e=>e),i=[...e.player.factions];i.sort((e,t)=>r.indexOf(e)-r.indexOf(t));const o=e.player.factionInvitations;return b.a.createElement(g.a,{disableGutters:!0,maxWidth:"lg",sx:{mx:0,mb:10}},b.a.createElement(d.a,{variant:"h4"},"Factions",b.a.createElement(f.a,{title:b.a.createElement(d.a,null,"Throughout the game you may receive invitations from factions. There are many different factions, and each faction has different criteria for determining its potential members. Joining a faction and furthering its cause is crucial to progressing in the game and unlocking endgame content.")},b.a.createElement(c.a,{sx:{ml:1,mb:0},color:"info"}))),b.a.createElement(m.a,{display:"grid",sx:{gap:1,gridTemplateColumns:(o.length>0?"1fr ":"")+"2fr",[t.breakpoints.down("lg")]:{gridTemplateColumns:"1fr","& > span:nth-child(1)":{order:1}},gridTemplateRows:"minmax(0, 1fr)","& > span > .MuiBox-root":{display:"grid",gridAutoRows:"70px",gap:1}}},o.length>0&&b.a.createElement("span",null,b.a.createElement(d.a,{variant:"h5",color:"primary"},"Faction Invitations"),b.a.createElement(m.a,null,o.map(t=>_.a.hasOwnProperty(t)?b.a.createElement(x,{key:t,faction:_.a[t],player:e.player,router:e.router,joined:!1,rerender:a}):null))),b.a.createElement("span",null,b.a.createElement(d.a,{variant:"h5",color:"primary"},"Your Factions"),b.a.createElement(m.a,null,i.length>0?i.map(t=>_.a.hasOwnProperty(t)?b.a.createElement(x,{key:t,faction:_.a[t],player:e.player,router:e.router,joined:!0,rerender:a}):null):b.a.createElement(d.a,null,"You have not yet joined any Factions.")))))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var a=n(1495),r=n(1806);const i=Object(r.a)(e=>({root:{backgroundColor:e.palette.background.paper},bar:{transition:"none",backgroundColor:e.palette.primary.main}}))(a.a)},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var a=n(0),r=n.n(a),i=n(2),o=n(471),s=n(623),l=n(378),c=n(14);function f(e,t,n,a){t?0===i.a.sourceFileLvl(5)&&5!==a&&(i.a.intelligence=0,i.a.intelligence_exp=0):function(e){const t="SourceFile"+e.toString(),n=l.a[t];if(null==n)return void console.error("Could not find source file for Bit node: "+e);let a=!1,o=null;for(let t=0;t<i.a.sourceFiles.length;++t)if(i.a.sourceFiles[t].n===e){a=!0,o=i.a.sourceFiles[t];break}if(a&&o)o.lvl>=3&&12!==o.n?Object(c.a)(`The Source-File for the BitNode you just destroyed, ${n.name}, is already at max level!`):(++o.lvl,Object(c.a)(n.name+" was upgraded to level "+o.lvl+" for destroying its corresponding BitNode!"));else{const t=new s.a(e,1);i.a.sourceFiles.push(t),5===e&&0===i.a.intelligence&&(i.a.intelligence=1),Object(c.a)(r.a.createElement(r.a.Fragment,null,"You received a Source-File for destroying a BitNode!",r.a.createElement("br",null),r.a.createElement("br",null),n.name,r.a.createElement("br",null),r.a.createElement("br",null),n.info))}}(n),5===a&&0===i.a.intelligence&&(i.a.intelligence=1),i.a.bitNodeN=a,6===a?e.toBladeburnerCinematic():e.toTerminal(),Object(o.b)(t)}},function(e,t,n){"use strict";n.d(t,"b",(function(){return _})),n.d(t,"a",(function(){return S})),n.d(t,"c",(function(){return C}));var a=n(0),r=n.n(a),i=n(18),o=n(1),s=n(152),l=n(364),c=n(19),f=n(8),u=n(43),m=n(75),h=n(5),d=n(350),p=n(110),g=n(549),y=n(645),b=n(647),E=n(662),v=n.n(E),k=n(1407),w=n.n(k);let _=!1;function S(){_=!0}function C({router:e,softReset:t,errorData:n,resetError:E}){var k,S;return h.a.AutosaveInterval=0,Object(a.useEffect)(()=>{Object(d.b)().then(e=>{const t=`RECOVERY_BITBURNER_${Math.round(Date.now()/1e3)}.json`;Object(p.a)(t,e)}).catch(e=>console.error(e))},[]),r.a.createElement(i.a,{sx:{padding:"8px 16px",minHeight:"100vh",maxWidth:"1200px",boxSizing:"border-box"}},r.a.createElement(o.a,{variant:"h3"},"RECOVERY MODE ACTIVATED"),r.a.createElement(o.a,null,"There was an error with your save file and the game went into recovery mode. In this mode saving is disabled and the game will automatically export your save file (to prevent corruption)."),r.a.createElement(o.a,null,"At this point it is recommended to alert a developer."),r.a.createElement(o.a,null,r.a.createElement(s.a,{href:null!==(k=null==n?void 0:n.issueUrl)&&void 0!==k?k:g.b,target:"_blank"},"File an issue on github")),r.a.createElement(o.a,null,r.a.createElement(s.a,{href:"https://www.reddit.com/r/Bitburner/",target:"_blank"},"Make a reddit post")),r.a.createElement(o.a,null,r.a.createElement(s.a,{href:"https://discord.gg/TFc3hKD",target:"_blank"},"Post in the #bug-report channel on Discord.")),r.a.createElement(o.a,null,"Please include your save file."),r.a.createElement("br",null),r.a.createElement("br",null),r.a.createElement(o.a,null,"You can disable recovery mode now. But chances are the game will not work correctly."),r.a.createElement(l.a,{sx:{my:2}},r.a.createElement(c.a,{title:"Disables the recovery mode & attempt to head back to the terminal page. This may or may not work. Ensure you have saved the recovery file."},r.a.createElement(f.a,{onClick:function(){E&&E(),_=!1,e.toTerminal()},startIcon:r.a.createElement(v.a,null)},"Disable Recovery Mode")),r.a.createElement(b.a,{color:"warning",onTriggered:t}),r.a.createElement(y.a,{color:"error"})),n&&r.a.createElement(u.a,{sx:{px:2,pt:1,pb:2,mt:2}},r.a.createElement(o.a,{variant:"h5"},n.title),r.a.createElement(i.a,{sx:{my:2}},r.a.createElement(m.a,{label:"Bug Report Text",value:n.body,variant:"outlined",color:"secondary",multiline:!0,fullWidth:!0,rows:12,sx:{"& .MuiOutlinedInput-root":{color:h.a.theme.secondary}}})),r.a.createElement(c.a,{title:"Submitting an issue to GitHub really help us improve the game!"},r.a.createElement(f.a,{component:s.a,startIcon:r.a.createElement(w.a,null),color:"info",sx:{px:2},href:null!==(S=n.issueUrl)&&void 0!==S?S:g.b,target:"_blank"},"Submit Issue to GitHub"))))}},,,function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return o}));var a=n(1034);let r=1;function i(e){return r+=e,()=>r-=e}function o(){return Object(a.a)(r)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var a=n(1041),r=n(229),i=n(27);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class s{constructor(e,t,n){o(this,"code",""),o(this,"delay",null),o(this,"disableLogs",{}),o(this,"dynamicLoadedFns",{}),o(this,"dynamicRamUsage",r.a.ScriptBaseRamCost),o(this,"errorMessage",""),o(this,"loadedFns",{}),o(this,"output",""),o(this,"ramUsage",0),o(this,"running",!1),this.name=e.filename,this.hostname=e.server;const s=Math.round(t);if("number"!=typeof s||isNaN(s))throw new Error("Invalid PID when constructing WorkerScript: "+t);this.pid=s,e.pid=s;const l=Object(i.d)(this.hostname);if(null==l)throw new Error("WorkerScript constructed with invalid server ip: "+this.hostname);let c=!1;for(let e=0;e<l.scripts.length;++e)l.scripts[e].filename===this.name&&(c=!0,this.code=l.scripts[e].code);if(!c)throw new Error("WorkerScript constructed with invalid script filename: "+this.name);this.scriptRef=e,this.args=e.args.slice(),this.env=new a.a(null),"function"==typeof n&&(this.env.vars=n(this)),this.env.set("args",e.args.slice())}getServer(){const e=Object(i.d)(this.hostname);if(null==e)throw new Error(`Script ${this.name} pid ${this.pid} is running on non-existent server?`);return e}getScript(){const e=this.getServer();for(let t=0;t<e.scripts.length;++t)if(e.scripts[t].filename===this.name)return e.scripts[t];return console.error("Failed to find underlying Script object in WorkerScript.getScript(). This probably means somethings wrong"),null}getScriptOnServer(e,t){null==t&&(t=this.getServer());for(let n=0;n<t.scripts.length;++n)if(t.scripts[n].filename===e)return t.scripts[n];return null}shouldLog(e){return null==this.disableLogs[e]}log(e,t){this.shouldLog(e)&&(e&&t?this.scriptRef.log(`${e}: ${t()}`):e?this.scriptRef.log(e):this.scriptRef.log(t()))}print(e){this.scriptRef.log(e)}}},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var a=n(1430),r=n(272),i=n(390),o=n(246),s=n(39),l=n(21),c=n(486),f=n(64),u=n(14),m=n(22),h=n(148);function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class p{constructor(e={}){d(this,"name","The Corporation"),d(this,"divisions",[]),d(this,"funds",15e10),d(this,"revenue",0),d(this,"expenses",0),d(this,"fundingRound",0),d(this,"public",!1),d(this,"totalShares",s.a.INITIALSHARES),d(this,"numShares",s.a.INITIALSHARES),d(this,"shareSalesUntilPriceUpdate",s.a.SHARESPERPRICEUPDATE),d(this,"shareSaleCooldown",0),d(this,"issueNewSharesCooldown",0),d(this,"dividendPercentage",0),d(this,"dividendTaxPercentage",50),d(this,"issuedShares",0),d(this,"sharePrice",0),d(this,"storedCycles",0),d(this,"avgProfit",0),d(this,"state",new a.a),this.name=e.name?e.name:"The Corporation";const t=Object.keys(r.b).length,n=Object.keys(i.a).length;this.unlockUpgrades=Array(t).fill(0),this.upgrades=Array(n).fill(0),this.upgradeMultipliers=Array(n).fill(1)}addFunds(e){isFinite(e)?this.funds=this.funds+e:console.error("Trying to add invalid amount of funds. Report to a developper.")}getState(){return this.state.getState()}storeCycles(e=1){this.storedCycles+=e}process(e){if(this.storedCycles>=s.a.CyclesPerIndustryStateCycle){const t=this.getState(),n=1,a=n*s.a.CyclesPerIndustryStateCycle;if(this.storedCycles-=a,this.divisions.forEach(e=>{e.process(n,t,this)}),this.shareSaleCooldown>0&&(this.shareSaleCooldown-=a),this.issueNewSharesCooldown>0&&(this.issueNewSharesCooldown-=a),"START"===t){this.revenue=0,this.expenses=0,this.divisions.forEach(e=>{e.lastCycleRevenue!==-1/0&&e.lastCycleRevenue!==1/0&&e.lastCycleExpenses!==-1/0&&e.lastCycleExpenses!==1/0&&(this.revenue=this.revenue+e.lastCycleRevenue,this.expenses=this.expenses+e.lastCycleExpenses)});const t=this.revenue-this.expenses;this.avgProfit=(this.avgProfit*(s.a.AvgProfitLength-1)+t)/s.a.AvgProfitLength;const a=t*(n*s.a.SecsPerMarketCycle);if((isNaN(this.funds)||this.funds===1/0||this.funds===-1/0)&&(Object(u.a)("There was an error calculating your Corporations funds and they got reset to 0. This is a bug. Please report to game developer.<br><br>(Your funds have been set to $150b for the inconvenience)"),this.funds=15e10),this.dividendPercentage>0&&a>0)if(isNaN(this.dividendPercentage)||this.dividendPercentage<0||this.dividendPercentage>100*s.a.DividendMaxPercentage)console.error("Invalid Corporation dividend percentage: "+this.dividendPercentage);else{const t=a-this.dividendPercentage/100*a;e.gainMoney(this.getDividends(),"corporation"),this.addFunds(t)}else this.addFunds(a);this.updateSharePrice()}this.state.nextState()}}getDividends(){const e=(this.revenue-this.expenses)*s.a.SecsPerMarketCycle,t=this.dividendPercentage/100*e/this.totalShares,n=this.numShares*t;let a=-.15;return 1===this.unlockUpgrades[5]&&(a+=.05),1===this.unlockUpgrades[6]&&(a+=.1),Math.pow(n,l.a.CorporationSoftcap+a)}determineValuation(){let e,t=this.avgProfit;return this.public?(this.dividendPercentage>0&&(t*=(100-this.dividendPercentage)/100),e=this.funds+85e3*t,e*=Math.pow(1.1,this.divisions.length),e=Math.max(e,0)):(e=1e10+Math.max(this.funds,0)/3,t>0?(e+=315e3*t,e*=Math.pow(1.1,this.divisions.length)):e=1e10*Math.pow(1.1,this.divisions.length),e-=e%1e6),e*l.a.CorporationValuation}getTargetSharePrice(){return this.determineValuation()/(2*(this.totalShares-this.numShares)+1)}updateSharePrice(){const e=this.getTargetSharePrice();this.sharePrice<=e?this.sharePrice*=1+.01*Math.random():this.sharePrice*=1-.01*Math.random(),this.sharePrice<=.01&&(this.sharePrice=.01)}immediatelyUpdateSharePrice(){this.sharePrice=this.getTargetSharePrice()}calculateShareSale(e){let t=e,n=this.shareSalesUntilPriceUpdate,a=this.sharePrice,r=0,i=0;const o=Math.ceil(e/s.a.SHARESPERPRICEUPDATE);if(isNaN(o)||o>1e7)return console.error("Something went wrong or unexpected when calculating share sale. Maxiterations calculated to be "+o),[0,0,0];for(let e=0;e<o;++e){if(t<n){i+=a*t,n-=t;break}i+=a*n,n=s.a.SHARESPERPRICEUPDATE,t-=n,r+=n,a=this.determineValuation()/(2*(this.totalShares+r-this.numShares))}return[i,a,n]}convertCooldownToString(e){const t=e/5;return t>3600?Math.floor(t/3600)+" hour(s)":t>60?Math.floor(t/60)+" minute(s)":Math.floor(t)+" second(s)"}unlock(e){const t=e.index,n=e.price;for(;this.unlockUpgrades.length<=t;)this.unlockUpgrades.push(0);this.funds<n?Object(u.a)("You don't have enough funds to unlock this!"):(this.unlockUpgrades[t]=1,this.funds=this.funds-n,5===t?this.dividendTaxPercentage-=5:6===t&&(this.dividendTaxPercentage-=10))}upgrade(e){const t=e.index,n=e.basePrice,a=e.priceMult,r=e.benefit;for(;this.upgrades.length<=t;)this.upgrades.push(0);for(;this.upgradeMultipliers.length<=t;)this.upgradeMultipliers.push(1);const i=n*Math.pow(a,this.upgrades[t]);if(this.funds<i)Object(u.a)("You don't have enough funds to purchase this!");else if(++this.upgrades[t],this.funds=this.funds-i,this.upgradeMultipliers[t]=1+this.upgrades[t]*r,1===t)for(let e=0;e<this.divisions.length;++e){const t=this.divisions[e];for(const e of Object.keys(t.warehouses)){const n=t.warehouses[e];0!==n&&(t.warehouses.hasOwnProperty(e)&&n instanceof o.a&&n.updateSize(this,t))}}}getProductionMultiplier(){const e=this.upgradeMultipliers[0];return isNaN(e)||e<1?1:e}getStorageMultiplier(){const e=this.upgradeMultipliers[1];return isNaN(e)||e<1?1:e}getDreamSenseGain(){const e=this.upgradeMultipliers[2]-1;return e<=0?0:e}getAdvertisingMultiplier(){const e=this.upgradeMultipliers[3];return isNaN(e)||e<1?1:e}getEmployeeCreMultiplier(){const e=this.upgradeMultipliers[4];return isNaN(e)||e<1?1:e}getEmployeeChaMultiplier(){const e=this.upgradeMultipliers[5];return isNaN(e)||e<1?1:e}getEmployeeIntMultiplier(){const e=this.upgradeMultipliers[6];return isNaN(e)||e<1?1:e}getEmployeeEffMultiplier(){const e=this.upgradeMultipliers[7];return isNaN(e)||e<1?1:e}getSalesMultiplier(){const e=this.upgradeMultipliers[8];return isNaN(e)||e<1?1:e}getScientificResearchMultiplier(){const e=this.upgradeMultipliers[9];return isNaN(e)||e<1?1:e}getStarterGuide(e){const t=e.getHomeComputer();let n=!1;const a=f.a.CorporationManagementHandbook;for(let e=0;e<t.messages.length;++e)if(Object(h.a)(t.messages[e])&&t.messages[e]===a){n=!0;break}n||t.messages.push(a),Object(c.a)(a)}toJSON(){return Object(m.b)("Corporation",this)}static fromJSON(e){return Object(m.a)(p,e.data)}}m.c.constructors.Corporation=p},,,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var a=n(56),r=n(33),i=n(22),o=n(310);function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class l{constructor(e=a.a.CityNames[2]){s(this,"name",""),s(this,"pop",0),s(this,"popEst",0),s(this,"comms",0),s(this,"chaos",0),this.name=e,this.pop=Object(r.a)(a.a.PopulationThreshold,1.5*a.a.PopulationThreshold),this.popEst=this.pop*(Math.random()+.5),this.comms=Object(r.a)(5,150),this.chaos=0}changeChaosByPercentage(e){if(isNaN(e))throw new Error("NaN passed into City.chaosChaosByPercentage()");0!==e&&(this.chaos+=this.chaos*(e/100),this.chaos<0&&(this.chaos=0))}improvePopulationEstimateByCount(e){if(isNaN(e))throw new Error("NaN passeed into City.improvePopulationEstimateByCount()");this.popEst<this.pop?(this.popEst+=e,this.popEst>this.pop&&(this.popEst=this.pop)):this.popEst>this.pop&&(this.popEst-=e,this.popEst<this.pop&&(this.popEst=this.pop))}improvePopulationEstimateByPercentage(e,t=1){if(e*=t,isNaN(e))throw new Error("NaN passed into City.improvePopulationEstimateByPercentage()");this.popEst<this.pop?(++this.popEst,this.popEst*=1+e/100,this.popEst>this.pop&&(this.popEst=this.pop)):this.popEst>this.pop&&(this.popEst*=1-e/100,this.popEst<this.pop&&(this.popEst=this.pop))}changePopulationByCount(e,t={estChange:0,estOffset:0}){if(isNaN(e))throw new Error("NaN passed into City.changePopulationByCount()");this.pop+=e,t.estChange&&!isNaN(t.estChange)&&(this.popEst+=t.estChange),t.estOffset&&(this.popEst=Object(o.a)(this.popEst,t.estOffset)),this.popEst=Math.max(this.popEst,0)}changePopulationByPercentage(e,t={nonZero:!1,changeEstEqually:!1}){if(isNaN(e))throw new Error("NaN passed into City.changePopulationByPercentage()");if(0===e)return 0;let n=Math.round(this.pop*(e/100));return t.nonZero&&0===n&&(n=e>0?1:-1),this.pop+=n,t.changeEstEqually&&(this.popEst+=n,this.popEst<0&&(this.popEst=0)),n}changeChaosByCount(e){if(isNaN(e))throw new Error("NaN passed into City.changeChaosByCount()");0!==e&&(this.chaos+=e,this.chaos<0&&(this.chaos=0))}toJSON(){return Object(i.b)("City",this)}static fromJSON(e){return Object(i.a)(l,e.data)}}i.c.constructors.City=l},,function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));class a{constructor(e,t=[],n=""){this.name=e,this.locations=t,this.asciiArt=n}addLocation(e){this.locations.push(e)}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var a=n(18),r=n(19),i=n(1),o=n(1810),s=n(0),l=n.n(s);const c=e=>{const[t,n]=Object(s.useState)(e.initialValue);return l.a.createElement(a.a,null,l.a.createElement(r.a,{title:l.a.createElement(i.a,null,e.tooltip)},l.a.createElement(i.a,null,e.label)),l.a.createElement(o.a,{value:t,onChange:(e,t)=>{"number"==typeof t&&n(t)},onChangeCommitted:e.callback,step:e.step,min:e.min,max:e.max,valueLabelDisplay:"auto",sx:{"& .MuiSlider-thumb":{height:"12px",width:"12px"}},marks:e.marks}))}},,,function(e,t,n){"use strict";n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return f}));var a=n(0),r=n(1),i=n(19),o=n(8),s=n(75);let l;function c(e){let t="",n="";return e.tickerDisplayMode===l.Portfolio?(t="Switch to 'All Stocks' Mode",n="Displays all stocks on the WSE"):(t="Switch to 'Portfolio' Mode",n="Displays only the stocks for which you have shares or orders"),a.createElement(i.a,{title:a.createElement(r.a,null,n)},a.createElement(o.a,{onClick:e.changeDisplayMode},t))}function f(e){return a.createElement(a.Fragment,null,a.createElement(c,e),a.createElement("br",null),a.createElement(s.a,{sx:{width:"100%"},onChange:e.changeWatchlistFilter,placeholder:"Filter Stocks by symbol (comma-separated list)",type:"text"}))}!function(e){e[e.AllStocks=0]="AllStocks",e[e.Portfolio=1]="Portfolio"}(l||(l={}))},function(e,t,n){"use strict";n.d(t,"f",(function(){return c})),n.d(t,"b",(function(){return f})),n.d(t,"c",(function(){return u})),n.d(t,"e",(function(){return m})),n.d(t,"d",(function(){return h})),n.d(t,"a",(function(){return d}));var a=n(12),r=n(21),i=n(44),o=n(91),s=n(27),l=n(87);function c(){return this.getHomeComputer().serversOnNetwork.includes(l.a.DarkWeb)}function f(){const e=Object(s.d)(this.currentServer);if(null===e)throw new Error("somehow connected to a server that does not exist. "+this.currentServer);return e}function u(){const e=Object(s.d)("home");if(e instanceof i.a)return e;throw new Error("home computer was not a normal server")}function m(){const e=this.getHomeComputer().maxRam,t=Math.log2(e),n=Math.pow(1.58,t);return e*a.a.BaseCostFor1GBOfRamHome*n*r.a.HomeComputerRamCost}function h(){return 1e9*Math.pow(7.5,this.getHomeComputer().cpuCores)}function d(){const e="hacknet-node-"+this.hacknetNodes.length,t=new o.a({adminRights:!0,hostname:e,ip:Object(s.e)()});this.hacknetNodes.push(t.hostname),Object(s.a)(t);return this.getHomeComputer().serversOnNetwork.push(t.hostname),t.serversOnNetwork.push(l.a.Home),t}},,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var a=n(4),r=n(9),i=n(64),o=n(87);const s=[{hackDifficulty:99,hostname:r.a.AevumECorp.toLowerCase(),moneyAvailable:{max:7e10,min:3e10},networkLayer:15,numOpenPortsRequired:5,organizationName:r.a.AevumECorp,requiredHackingSkill:{max:1400,min:1050},serverGrowth:99,specialName:r.a.AevumECorp},{hackDifficulty:99,hostname:r.a.Sector12MegaCorp.toLowerCase(),moneyAvailable:{max:6e10,min:4e10},networkLayer:15,numOpenPortsRequired:5,organizationName:r.a.Sector12MegaCorp,requiredHackingSkill:{max:1350,min:1100},serverGrowth:99,specialName:r.a.Sector12MegaCorp},{hackDifficulty:{max:88,min:72},hostname:"b-and-a",moneyAvailable:{max:3e10,min:15e9},networkLayer:14,numOpenPortsRequired:5,organizationName:r.a.AevumBachmanAndAssociates,requiredHackingSkill:{max:1150,min:900},serverGrowth:{max:80,min:60},specialName:r.a.AevumBachmanAndAssociates},{hackDifficulty:{max:97,min:88},hostname:"blade",literature:[i.a.BeyondMan],maxRamExponent:{max:9,min:5},moneyAvailable:{max:4e10,min:1e10},networkLayer:14,numOpenPortsRequired:5,organizationName:r.a.Sector12BladeIndustries,requiredHackingSkill:{max:1200,min:900},serverGrowth:{max:85,min:55},specialName:r.a.Sector12BladeIndustries},{hackDifficulty:99,hostname:r.a.VolhavenNWO.toLowerCase(),literature:[i.a.TheHiddenWorld],moneyAvailable:{max:4e10,min:2e10},networkLayer:14,numOpenPortsRequired:5,organizationName:r.a.VolhavenNWO,requiredHackingSkill:{max:1300,min:950},serverGrowth:{max:95,min:65},specialName:r.a.VolhavenNWO},{hackDifficulty:{max:65,min:45},hostname:"clarkinc",literature:[i.a.BeyondMan,i.a.CostOfImmortality],moneyAvailable:{max:25e9,min:15e9},networkLayer:14,numOpenPortsRequired:5,organizationName:r.a.AevumClarkeIncorporated,requiredHackingSkill:{max:1250,min:950},serverGrowth:{max:75,min:45},specialName:r.a.AevumClarkeIncorporated},{hackDifficulty:{max:99,min:90},hostname:"omnitek",literature:[i.a.CodedIntelligence,i.a.HistoryOfSynthoids],maxRamExponent:{max:9,min:7},moneyAvailable:{max:22e9,min:13e9},networkLayer:13,numOpenPortsRequired:5,organizationName:r.a.VolhavenOmniTekIncorporated,requiredHackingSkill:{max:1100,min:900},serverGrowth:{max:99,min:95},specialName:r.a.VolhavenOmniTekIncorporated},{hackDifficulty:{max:75,min:55},hostname:"4sigma",moneyAvailable:{max:25e9,min:15e9},networkLayer:13,numOpenPortsRequired:5,organizationName:r.a.Sector12FourSigma,requiredHackingSkill:{max:1250,min:900},serverGrowth:{max:99,min:75},specialName:r.a.Sector12FourSigma},{hackDifficulty:{max:99,min:95},hostname:"kuai-gong",moneyAvailable:{max:3e10,min:2e10},networkLayer:13,numOpenPortsRequired:5,organizationName:r.a.ChongqingKuaiGongInternational,requiredHackingSkill:{max:1300,min:950},serverGrowth:{max:99,min:90},specialName:r.a.ChongqingKuaiGongInternational},{hackDifficulty:{max:97,min:83},hostname:"fulcrumtech",literature:[i.a.SimulatedReality],maxRamExponent:{max:11,min:7},moneyAvailable:{max:18e8,min:14e8},networkLayer:12,numOpenPortsRequired:5,organizationName:r.a.AevumFulcrumTechnologies,requiredHackingSkill:{max:1250,min:950},serverGrowth:{max:99,min:80},specialName:r.a.AevumFulcrumTechnologies},{hackDifficulty:99,hostname:"fulcrumassets",moneyAvailable:1e6,networkLayer:15,numOpenPortsRequired:5,organizationName:r.a.AevumFulcrumTechnologies,requiredHackingSkill:{max:1600,min:1100},serverGrowth:1,specialName:o.a.FulcrumSecretTechnologies},{hackDifficulty:{max:92,min:78},hostname:"stormtech",moneyAvailable:{max:12e8,min:1e9},networkLayer:12,numOpenPortsRequired:5,organizationName:r.a.IshimaStormTechnologies,requiredHackingSkill:{max:1075,min:875},serverGrowth:{max:92,min:68},specialName:r.a.IshimaStormTechnologies},{hackDifficulty:{max:96,min:84},hostname:"defcomm",moneyAvailable:{max:95e7,min:8e8},networkLayer:9,numOpenPortsRequired:5,organizationName:r.a.NewTokyoDefComm,requiredHackingSkill:{max:1050,min:850},serverGrowth:{max:73,min:47},specialName:r.a.NewTokyoDefComm},{hackDifficulty:{max:90,min:70},hostname:"infocomm",moneyAvailable:{max:9e8,min:6e8},networkLayer:10,numOpenPortsRequired:5,organizationName:"InfoComm",requiredHackingSkill:{max:950,min:875},serverGrowth:{max:75,min:35}},{hackDifficulty:{max:95,min:85},hostname:"helios",literature:[i.a.BeyondMan],maxRamExponent:{max:8,min:5},moneyAvailable:{max:75e7,min:55e7},networkLayer:12,numOpenPortsRequired:5,organizationName:r.a.VolhavenHeliosLabs,requiredHackingSkill:{max:900,min:800},serverGrowth:{max:80,min:70},specialName:r.a.VolhavenHeliosLabs},{hackDifficulty:{max:90,min:80},hostname:r.a.NewTokyoVitaLife.toLowerCase(),literature:[i.a.AGreenTomorrow],maxRamExponent:{max:7,min:4},moneyAvailable:{max:8e8,min:7e8},networkLayer:12,numOpenPortsRequired:5,organizationName:r.a.NewTokyoVitaLife,requiredHackingSkill:{max:900,min:775},serverGrowth:{max:80,min:60},specialName:r.a.NewTokyoVitaLife},{hackDifficulty:{max:95,min:85},hostname:"icarus",moneyAvailable:{max:1e9,min:9e8},networkLayer:9,numOpenPortsRequired:5,organizationName:r.a.Sector12IcarusMicrosystems,requiredHackingSkill:{max:925,min:850},serverGrowth:{max:95,min:85},specialName:r.a.Sector12IcarusMicrosystems},{hackDifficulty:{max:90,min:80},hostname:"univ-energy",maxRamExponent:{max:7,min:4},moneyAvailable:{max:12e8,min:11e8},networkLayer:9,numOpenPortsRequired:4,organizationName:r.a.Sector12UniversalEnergy,requiredHackingSkill:{max:900,min:800},serverGrowth:{max:90,min:80},specialName:r.a.Sector12UniversalEnergy},{hackDifficulty:{max:80,min:70},hostname:"titan-labs",literature:[i.a.CodedIntelligence],maxRamExponent:{max:7,min:4},moneyAvailable:{max:9e8,min:75e7},networkLayer:11,numOpenPortsRequired:5,organizationName:"Titan Laboratories",requiredHackingSkill:{max:875,min:800},serverGrowth:{max:80,min:60}},{hackDifficulty:{max:75,min:65},hostname:"microdyne",literature:[i.a.SyntheticMuscles],maxRamExponent:{max:6,min:4},moneyAvailable:{max:7e8,min:5e8},networkLayer:11,numOpenPortsRequired:5,organizationName:"Microdyne Technologies",requiredHackingSkill:{max:875,min:800},serverGrowth:{max:90,min:70}},{hackDifficulty:{max:80,min:70},hostname:"taiyang-digital",literature:[i.a.AGreenTomorrow,i.a.BrighterThanTheSun],moneyAvailable:{max:9e8,min:8e8},networkLayer:10,numOpenPortsRequired:5,organizationName:"Taiyang Digital",requiredHackingSkill:{max:950,min:850},serverGrowth:{max:80,min:70}},{hackDifficulty:{max:65,min:55},hostname:"galactic-cyber",moneyAvailable:{max:85e7,min:75e7},networkLayer:7,numOpenPortsRequired:5,organizationName:r.a.AevumGalacticCybersystems,requiredHackingSkill:{max:875,min:825},serverGrowth:{max:90,min:70},specialName:r.a.AevumGalacticCybersystems},{hackDifficulty:{max:90,min:80},hostname:r.a.AevumAeroCorp.toLowerCase(),literature:[i.a.ManAndMachine],moneyAvailable:{max:12e8,min:1e9},networkLayer:7,numOpenPortsRequired:5,organizationName:r.a.AevumAeroCorp,requiredHackingSkill:{max:925,min:850},serverGrowth:{max:65,min:55},specialName:r.a.AevumAeroCorp},{hackDifficulty:{max:95,min:85},hostname:"omnia",literature:[i.a.HistoryOfSynthoids],maxRamExponent:{max:6,min:4},moneyAvailable:{max:1e9,min:9e8},networkLayer:8,numOpenPortsRequired:5,organizationName:r.a.VolhavenOmniaCybersystems,requiredHackingSkill:{max:950,min:850},serverGrowth:{max:70,min:60},specialName:r.a.VolhavenOmniaCybersystems},{hackDifficulty:{max:65,min:55},hostname:"zb-def",literature:[i.a.SyntheticMuscles],moneyAvailable:{max:11e8,min:9e8},networkLayer:10,numOpenPortsRequired:4,organizationName:"ZB Defense Industries",requiredHackingSkill:{max:825,min:775},serverGrowth:{max:75,min:65}},{hackDifficulty:{max:80,min:60},hostname:"applied-energetics",moneyAvailable:{max:1e9,min:7e8},networkLayer:11,numOpenPortsRequired:4,organizationName:"Applied Energetics",requiredHackingSkill:{max:850,min:775},serverGrowth:{max:75,min:70}},{hackDifficulty:{max:80,min:70},hostname:"solaris",literature:[i.a.AGreenTomorrow,i.a.TheFailedFrontier],maxRamExponent:{max:7,min:4},moneyAvailable:{max:9e8,min:7e8},networkLayer:9,numOpenPortsRequired:5,organizationName:r.a.ChongqingSolarisSpaceSystems,requiredHackingSkill:{max:850,min:750},serverGrowth:{max:80,min:70},specialName:r.a.ChongqingSolarisSpaceSystems},{hackDifficulty:{max:85,min:75},hostname:r.a.Sector12DeltaOne.toLowerCase(),moneyAvailable:{max:17e8,min:13e8},networkLayer:8,numOpenPortsRequired:5,organizationName:r.a.Sector12DeltaOne,requiredHackingSkill:{max:900,min:800},serverGrowth:{max:70,min:50},specialName:r.a.Sector12DeltaOne},{hackDifficulty:{max:85,min:75},hostname:"global-pharm",literature:[i.a.AGreenTomorrow],maxRamExponent:{max:6,min:3},moneyAvailable:{max:175e7,min:15e8},networkLayer:7,numOpenPortsRequired:4,organizationName:r.a.NewTokyoGlobalPharmaceuticals,requiredHackingSkill:{max:850,min:750},serverGrowth:{max:90,min:80},specialName:r.a.NewTokyoGlobalPharmaceuticals},{hackDifficulty:{max:80,min:60},hostname:"nova-med",moneyAvailable:{max:125e7,min:11e8},networkLayer:10,numOpenPortsRequired:4,organizationName:r.a.IshimaNovaMedical,requiredHackingSkill:{max:850,min:775},serverGrowth:{max:85,min:65},specialName:r.a.IshimaNovaMedical},{hackDifficulty:{max:90,min:70},hostname:"zeus-med",moneyAvailable:{max:15e8,min:13e8},networkLayer:9,numOpenPortsRequired:5,organizationName:"Zeus Medical",requiredHackingSkill:{max:850,min:800},serverGrowth:{max:80,min:70}},{hackDifficulty:{max:80,min:70},hostname:"unitalife",maxRamExponent:{max:6,min:4},moneyAvailable:{max:11e8,min:1e9},networkLayer:8,numOpenPortsRequired:4,organizationName:"UnitaLife Group",requiredHackingSkill:{max:825,min:775},serverGrowth:{max:80,min:70}},{hackDifficulty:{max:80,min:60},hostname:"lexo-corp",maxRamExponent:{max:7,min:4},moneyAvailable:{max:8e8,min:7e8},networkLayer:6,numOpenPortsRequired:4,organizationName:r.a.VolhavenLexoCorp,requiredHackingSkill:{max:750,min:650},serverGrowth:{max:65,min:55},specialName:r.a.VolhavenLexoCorp},{hackDifficulty:{max:60,min:40},hostname:"rho-construction",maxRamExponent:{max:6,min:4},moneyAvailable:{max:7e8,min:5e8},networkLayer:6,numOpenPortsRequired:3,organizationName:r.a.AevumRhoConstruction,requiredHackingSkill:{max:525,min:475},serverGrowth:{max:60,min:40},specialName:r.a.AevumRhoConstruction},{hackDifficulty:{max:70,min:50},hostname:"alpha-ent",literature:[i.a.Sector12Crime],maxRamExponent:{max:7,min:4},moneyAvailable:{max:75e7,min:6e8},networkLayer:6,numOpenPortsRequired:4,organizationName:r.a.Sector12AlphaEnterprises,requiredHackingSkill:{max:600,min:500},serverGrowth:{max:60,min:50},specialName:r.a.Sector12AlphaEnterprises},{hackDifficulty:{max:80,min:70},hostname:"aevum-police",maxRamExponent:{max:6,min:4},moneyAvailable:{max:4e8,min:2e8},networkLayer:6,numOpenPortsRequired:4,organizationName:r.a.AevumPolice,requiredHackingSkill:{max:450,min:400},serverGrowth:{max:50,min:30},specialName:r.a.AevumPolice},{hackDifficulty:{max:55,min:45},hostname:"rothman-uni",literature:[i.a.SecretSocieties,i.a.TheFailedFrontier,i.a.TensionsInTechRace],maxRamExponent:{max:7,min:4},moneyAvailable:{max:25e7,min:175e6},networkLayer:5,numOpenPortsRequired:3,organizationName:r.a.Sector12RothmanUniversity,requiredHackingSkill:{max:430,min:370},serverGrowth:{max:45,min:35},specialName:r.a.Sector12RothmanUniversity},{hackDifficulty:{max:85,min:65},hostname:"zb-institute",maxRamExponent:{max:7,min:4},moneyAvailable:{max:11e8,min:8e8},networkLayer:5,numOpenPortsRequired:5,organizationName:r.a.VolhavenZBInstituteOfTechnology,requiredHackingSkill:{max:775,min:725},serverGrowth:{max:85,min:75},specialName:r.a.VolhavenZBInstituteOfTechnology},{hackDifficulty:{max:65,min:45},hostname:"summit-uni",literature:[i.a.SecretSocieties,i.a.TheFailedFrontier,i.a.SyntheticMuscles],maxRamExponent:{max:6,min:4},moneyAvailable:{max:35e7,min:2e8},networkLayer:5,numOpenPortsRequired:3,organizationName:r.a.AevumSummitUniversity,requiredHackingSkill:{max:475,min:425},serverGrowth:{max:60,min:40},specialName:r.a.AevumSummitUniversity},{hackDifficulty:{max:80,min:60},hostname:"syscore",moneyAvailable:{max:6e8,min:4e8},networkLayer:5,numOpenPortsRequired:4,organizationName:r.a.VolhavenSysCoreSecurities,requiredHackingSkill:{max:650,min:550},serverGrowth:{max:70,min:60},specialName:r.a.VolhavenSysCoreSecurities},{hackDifficulty:{max:70,min:60},hostname:"catalyst",literature:[i.a.TensionsInTechRace],maxRamExponent:{max:7,min:4},moneyAvailable:{max:55e7,min:3e8},networkLayer:5,numOpenPortsRequired:3,organizationName:"Catalyst Ventures",requiredHackingSkill:{max:450,min:400},serverGrowth:{max:55,min:25}},{hackDifficulty:{max:45,min:35},hostname:"the-hub",maxRamExponent:{max:6,min:3},moneyAvailable:{max:2e8,min:15e7},networkLayer:4,numOpenPortsRequired:2,organizationName:"The Hub",requiredHackingSkill:{max:325,min:275},serverGrowth:{max:55,min:45}},{hackDifficulty:{max:65,min:55},hostname:r.a.VolhavenCompuTek.toLowerCase(),literature:[i.a.ManAndMachine],moneyAvailable:{max:25e7,min:22e7},networkLayer:4,numOpenPortsRequired:3,organizationName:r.a.VolhavenCompuTek,requiredHackingSkill:{max:400,min:300},serverGrowth:{max:65,min:45},specialName:r.a.VolhavenCompuTek},{hackDifficulty:{max:80,min:60},hostname:"netlink",literature:[i.a.SimulatedReality],maxRamExponent:{max:7,min:4},moneyAvailable:275e6,networkLayer:4,numOpenPortsRequired:3,organizationName:r.a.AevumNetLinkTechnologies,requiredHackingSkill:{max:425,min:375},serverGrowth:{max:75,min:45},specialName:r.a.AevumNetLinkTechnologies},{hackDifficulty:{max:65,min:35},hostname:"johnson-ortho",moneyAvailable:{max:85e6,min:7e7},networkLayer:4,numOpenPortsRequired:2,organizationName:"Johnson Orthopedics",requiredHackingSkill:{max:300,min:250},serverGrowth:{max:65,min:35}},{hackDifficulty:1,hostname:"n00dles",literature:[],maxRamExponent:2,moneyAvailable:7e4,networkLayer:1,numOpenPortsRequired:0,organizationName:r.a.NewTokyoNoodleBar,requiredHackingSkill:1,serverGrowth:3e3,specialName:r.a.NewTokyoNoodleBar},{hackDifficulty:10,hostname:r.a.Sector12FoodNStuff.toLowerCase(),literature:[i.a.Sector12Crime],maxRamExponent:4,moneyAvailable:2e6,networkLayer:1,numOpenPortsRequired:0,organizationName:r.a.Sector12FoodNStuff,requiredHackingSkill:1,serverGrowth:5,specialName:r.a.Sector12FoodNStuff},{hackDifficulty:10,hostname:"sigma-cosmetics",maxRamExponent:4,moneyAvailable:23e5,networkLayer:1,numOpenPortsRequired:0,organizationName:"Sigma Cosmetics",requiredHackingSkill:5,serverGrowth:10},{hackDifficulty:15,hostname:"joesguns",maxRamExponent:4,moneyAvailable:25e5,networkLayer:1,numOpenPortsRequired:0,organizationName:r.a.Sector12JoesGuns,requiredHackingSkill:10,serverGrowth:20,specialName:r.a.Sector12JoesGuns},{hackDifficulty:25,hostname:"zer0",maxRamExponent:5,moneyAvailable:75e5,networkLayer:2,numOpenPortsRequired:1,organizationName:"ZER0 Nightclub",requiredHackingSkill:75,serverGrowth:40},{hackDifficulty:20,hostname:"nectar-net",maxRamExponent:4,moneyAvailable:275e4,networkLayer:2,numOpenPortsRequired:0,organizationName:"Nectar Nightclub Network",requiredHackingSkill:20,serverGrowth:25},{hackDifficulty:25,hostname:"neo-net",literature:[i.a.TheHiddenWorld],maxRamExponent:5,moneyAvailable:5e6,networkLayer:3,numOpenPortsRequired:1,organizationName:"Neo Nightclub Network",requiredHackingSkill:50,serverGrowth:25},{hackDifficulty:30,hostname:"silver-helix",literature:[i.a.NewTriads],maxRamExponent:6,moneyAvailable:45e6,networkLayer:3,numOpenPortsRequired:2,organizationName:"Silver Helix",requiredHackingSkill:150,serverGrowth:30},{hackDifficulty:15,hostname:"hong-fang-tea",literature:[i.a.BrighterThanTheSun],maxRamExponent:4,moneyAvailable:3e6,networkLayer:1,numOpenPortsRequired:0,organizationName:"HongFang Teahouse",requiredHackingSkill:30,serverGrowth:20},{hackDifficulty:15,hostname:"harakiri-sushi",maxRamExponent:4,moneyAvailable:4e6,networkLayer:1,numOpenPortsRequired:0,organizationName:"HaraKiri Sushi Bar Network",requiredHackingSkill:40,serverGrowth:40},{hackDifficulty:20,hostname:"phantasy",maxRamExponent:5,moneyAvailable:24e6,networkLayer:3,numOpenPortsRequired:2,organizationName:"Phantasy Club",requiredHackingSkill:100,serverGrowth:35},{hackDifficulty:15,hostname:"max-hardware",maxRamExponent:5,moneyAvailable:1e7,networkLayer:2,numOpenPortsRequired:1,organizationName:"Max Hardware Store",requiredHackingSkill:80,serverGrowth:30},{hackDifficulty:{max:35,min:25},hostname:"omega-net",literature:[i.a.TheNewGod],maxRamExponent:5,moneyAvailable:{max:7e7,min:6e7},networkLayer:3,numOpenPortsRequired:2,organizationName:r.a.IshimaOmegaSoftware,requiredHackingSkill:{max:220,min:180},serverGrowth:{max:40,min:30},specialName:r.a.IshimaOmegaSoftware},{hackDifficulty:{max:45,min:35},hostname:"crush-fitness",moneyAvailable:{max:6e7,min:4e7},networkLayer:4,numOpenPortsRequired:2,organizationName:"Crush Fitness",requiredHackingSkill:{max:275,min:225},serverGrowth:{max:33,min:27},specialName:r.a.AevumCrushFitnessGym},{hackDifficulty:30,hostname:"iron-gym",maxRamExponent:5,moneyAvailable:2e7,networkLayer:1,numOpenPortsRequired:1,organizationName:r.a.Sector12IronGym+" Network",requiredHackingSkill:100,serverGrowth:20,specialName:r.a.Sector12IronGym},{hackDifficulty:{max:55,min:45},hostname:"millenium-fitness",maxRamExponent:{max:8,min:4},moneyAvailable:25e7,networkLayer:6,numOpenPortsRequired:3,organizationName:"Millenium Fitness Network",requiredHackingSkill:{max:525,min:475},serverGrowth:{max:45,min:25},specialName:r.a.VolhavenMilleniumFitnessGym},{hackDifficulty:{max:65,min:55},hostname:"powerhouse-fitness",maxRamExponent:{max:6,min:4},moneyAvailable:9e8,networkLayer:14,numOpenPortsRequired:5,organizationName:"Powerhouse Fitness",requiredHackingSkill:{max:1100,min:950},serverGrowth:{max:60,min:50},specialName:r.a.Sector12PowerhouseGym},{hackDifficulty:{max:60,min:40},hostname:"snap-fitness",moneyAvailable:45e7,networkLayer:7,numOpenPortsRequired:4,organizationName:"Snap Fitness",requiredHackingSkill:{max:800,min:675},serverGrowth:{max:60,min:40},specialName:r.a.AevumSnapFitnessGym},{hackDifficulty:0,hostname:"run4theh111z",literature:[i.a.SimulatedReality,i.a.TheNewGod],maxRamExponent:{max:9,min:5},moneyAvailable:0,networkLayer:11,numOpenPortsRequired:4,organizationName:"The Runners",requiredHackingSkill:{max:550,min:505},serverGrowth:0,specialName:o.a.BitRunnersServer},{hackDifficulty:0,hostname:"I.I.I.I",literature:[i.a.DemocracyIsDead],maxRamExponent:{max:8,min:4},moneyAvailable:0,networkLayer:5,numOpenPortsRequired:3,organizationName:"I.I.I.I",requiredHackingSkill:{max:365,min:340},serverGrowth:0,specialName:o.a.TheBlackHandServer},{hackDifficulty:0,hostname:"avmnite-02h",literature:[i.a.DemocracyIsDead],maxRamExponent:{max:7,min:4},moneyAvailable:0,networkLayer:4,numOpenPortsRequired:2,organizationName:a.a.NiteSec,requiredHackingSkill:{max:220,min:202},serverGrowth:0,specialName:o.a.NiteSecServer},{hackDifficulty:0,hostname:".",maxRamExponent:4,moneyAvailable:0,networkLayer:13,numOpenPortsRequired:4,organizationName:".",requiredHackingSkill:{max:550,min:505},serverGrowth:0,specialName:o.a.TheDarkArmyServer},{hackDifficulty:0,hostname:"CSEC",literature:[i.a.DemocracyIsDead],maxRamExponent:3,moneyAvailable:0,networkLayer:2,numOpenPortsRequired:1,organizationName:a.a.CyberSec,requiredHackingSkill:{max:60,min:51},serverGrowth:0,specialName:o.a.CyberSecServer},{hackDifficulty:0,hostname:"The-Cave",literature:[i.a.AlphaOmega],moneyAvailable:0,networkLayer:15,numOpenPortsRequired:5,organizationName:"Helios",requiredHackingSkill:925,serverGrowth:0,specialName:o.a.DaedalusServer},{hackDifficulty:0,hostname:"w0r1d_d43m0n",moneyAvailable:0,numOpenPortsRequired:5,organizationName:"w0r1d_d43m0n",requiredHackingSkill:3e3,serverGrowth:0,specialName:o.a.WorldDaemon},{hostname:o.a.DarkWeb,moneyAvailable:0,numOpenPortsRequired:5,organizationName:o.a.DarkWeb,requiredHackingSkill:1,specialName:o.a.DarkWeb}]},function(e,t,n){"use strict";n.d(t,"a",(function(){return N})),n.d(t,"b",(function(){return P}));var a=n(4),r=n(15),i=n(73),o=n(115),s=n(11),l=n(153),c=n(212),f=n(74),u=n(50),m=n(60),h=n(189),d=n(29),p=n(105),g=n(54),y=n(201),b=n(2),E=n(92),v=n(537),k=n(64),w=n(27),_=n(137),S=n(87),C=n(103),x=n(84),L=n(14),O=n(102),M=n(422),T=n(423),A=n(12),R=n(182);function N(){Object(l.d)(b.a);const e=b.a.factions.concat(b.a.factionInvitations).filter((function(e){return d.a[e].getInfo().keep}));b.a.prestigeAugmentation(),Object(y.c)();const t=b.a.getHomeComputer();Object(w.i)(),Object(w.a)(t),Object(_.e)(b.a,t),Object(o.b)(s.a.Neurolink)&&b.a.hasAugmentation(s.a.Neurolink)&&(t.programs.push(m.a.FTPCrackProgram.name),t.programs.push(m.a.RelaySMTPProgram.name)),Object(o.b)(s.a.CashRoot)&&b.a.hasAugmentation(s.a.CashRoot)&&(b.a.setMoney(1e6),t.programs.push(m.a.BruteSSHProgram.name)),Object(o.b)(s.a.PCMatrix)&&b.a.hasAugmentation(s.a.PCMatrix)&&(t.programs.push(m.a.DeepscanV1.name),t.programs.push(m.a.AutoLink.name)),(b.a.sourceFileLvl(5)>0||5===b.a.bitNodeN)&&t.programs.push(m.a.Formulas.name),Object(w.f)(b.a.getHomeComputer());for(const e of Object.keys(f.a))f.a.hasOwnProperty(e)&&f.a[e].gainFavor();for(const e of Object.keys(d.a))d.a.hasOwnProperty(e)&&d.a[e].gainFavor();null!==x.a.action&&x.a.finishAction(E.b,b.a,!0),x.a.clear(),R.a.emit(),Object(d.c)(),b.a.factionInvitations=b.a.factionInvitations.concat(e),Object(o.e)(),b.a.reapplyAllSourceFiles(),Object(f.b)(),b.a.applyEntropy(b.a.entropy);const n=b.a.gang;if(b.a.inGang()&&null!==n){const e=d.a[n.facName];e instanceof h.a&&Object(p.d)(e);const t=.95;for(const e of n.members)e.hack_asc_points*=t,e.str_asc_points*=t,e.def_asc_points*=t,e.dex_asc_points*=t,e.agi_asc_points*=t,e.cha_asc_points*=t}if(3===b.a.bitNodeN&&t.messages.push(k.a.CorporationManagementHandbook),b.a.bladeburner instanceof c.a&&b.a.bladeburner.prestige(),8===b.a.bitNodeN&&(b.a.money=25e7),(8===b.a.bitNodeN||b.a.sourceFileLvl(8)>0)&&(b.a.hasWseAccount=!0,b.a.hasTixApiAccess=!0),b.a.hasWseAccount&&(Object(C.f)(),Object(C.h)()),Object(o.b)(s.a.TheRedPill)&&b.a.hasAugmentation(s.a.TheRedPill)){const e=Object(w.d)(S.a.WorldDaemon),t=Object(w.d)(S.a.DaedalusServer);e&&t&&(e.serversOnNetwork.push(t.hostname),t.serversOnNetwork.push(e.hostname))}Object(o.b)(s.a.StaneksGift1)&&b.a.hasAugmentation(s.a.StaneksGift1)&&Object(p.d)(d.a[a.a.ChurchOfTheMachineGod]),O.c.prestigeAugmentation(),Object(v.b)(),M.b.splice(0,M.b.length),T.b.splice(0,T.b.length)}function P(e){Object(l.d)(b.a),b.a.prestigeSourceFile(),Object(y.c)();const t=b.a.getHomeComputer();null!==x.a.action&&x.a.finishAction(E.b,b.a,!0),x.a.clear(),R.a.emit(),Object(w.i)(),Object(w.a)(t),Object(_.e)(b.a,t),Object(w.f)(b.a.getHomeComputer()),b.a.sourceFileLvl(9)>=2?t.setMaxRam(128):b.a.sourceFileLvl(1)>0?t.setMaxRam(32):t.setMaxRam(8),t.cpuCores=1;for(const e of Object.keys(f.a))f.a.hasOwnProperty(e)&&(f.a[e].favor=0);for(const e of Object.keys(d.a))d.a.hasOwnProperty(e)&&(d.a[e].favor=0);null!==x.a.action&&x.a.finishAction(E.b,b.a,!0);for(const e of Object.keys(i.a))i.a.hasOwnProperty(e)&&delete i.a[e];if(b.a.sourceFileLvl(12)>0&&b.a.augmentations.push({name:s.a.NeuroFluxGovernor,level:b.a.sourceFileLvl(12)}),Object(d.c)(),Object(o.e)(),b.a.reapplyAllSourceFiles(),Object(f.b)(),(b.a.sourceFileLvl(5)>0||5===b.a.bitNodeN)&&t.programs.push(m.a.Formulas.name),3===b.a.bitNodeN&&(t.messages.push(k.a.CorporationManagementHandbook),Object(L.a)("You received a copy of the Corporation Management Handbook on your home computer. Read it if you need help getting started with Corporations!")),8===b.a.bitNodeN&&(b.a.money=25e7),(8===b.a.bitNodeN||b.a.sourceFileLvl(8)>0)&&(b.a.hasWseAccount=!0,b.a.hasTixApiAccess=!0),10===b.a.bitNodeN&&Object(L.a)("Visit VitaLife in New Tokyo if you'd like to purchase a new sleeve!"),13===b.a.bitNodeN&&Object(L.a)("Trouble is brewing in "+r.a.Chongqing),b.a.hasWseAccount?(Object(C.f)(),Object(C.h)()):Object(C.d)(),b.a.gang=null,b.a.corporation=null,Object(u.e)(),b.a.bladeburner=null,b.a.sourceFileLvl(9)>=3){const e=b.a.createHacknetServer();e.level=100,e.cores=10,e.cache=5,e.updateHashRate(b.a.mults.hacknet_node_money),e.updateHashCapacity(),Object(g.p)(b.a)}13===b.a.bitNodeN&&(b.a.money=A.a.TravelCost),O.c.prestigeSourceFile(),0===b.a.sourceFileLvl(5)||e||b.a.gainIntelligenceExp(300),Object(v.b)()}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var a=n(2),r=n(33),i=n(310),o=n(22),s=n(56);function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class c{constructor(e=null){l(this,"name",""),l(this,"level",1),l(this,"maxLevel",1),l(this,"autoLevel",!0),l(this,"baseDifficulty",100),l(this,"difficultyFac",1.01),l(this,"rewardFac",1.02),l(this,"successes",0),l(this,"failures",0),l(this,"rankGain",0),l(this,"rankLoss",0),l(this,"hpLoss",0),l(this,"hpLost",0),l(this,"isStealth",!1),l(this,"isKill",!1),l(this,"count",Object(r.a)(1e3,25e3)),l(this,"weights",{hack:1/7,str:1/7,def:1/7,dex:1/7,agi:1/7,cha:1/7,int:1/7}),l(this,"decays",{hack:.9,str:.9,def:.9,dex:.9,agi:.9,cha:.9,int:.9}),l(this,"teamCount",0),e&&e.name&&(this.name=e.name),e&&e.baseDifficulty&&(this.baseDifficulty=Object(i.a)(e.baseDifficulty,10)),e&&e.difficultyFac&&(this.difficultyFac=e.difficultyFac),e&&e.rewardFac&&(this.rewardFac=e.rewardFac),e&&e.rankGain&&(this.rankGain=e.rankGain),e&&e.rankLoss&&(this.rankLoss=e.rankLoss),e&&e.hpLoss&&(this.hpLoss=e.hpLoss),e&&e.isStealth&&(this.isStealth=e.isStealth),e&&e.isKill&&(this.isKill=e.isKill),e&&e.count&&(this.count=e.count),e&&e.weights&&(this.weights=e.weights),e&&e.decays&&(this.decays=e.decays);let t=0;for(const e of Object.keys(this.weights))this.weights.hasOwnProperty(e)&&(t+=this.weights[e]);if(t-1>=10*Number.EPSILON)throw new Error("Invalid weights when constructing Action "+this.name+". The weights should sum up to 1. They sum up to :1");for(const e of Object.keys(this.decays))if(this.decays.hasOwnProperty(e)&&this.decays[e]>1)throw new Error(`Invalid decays when constructing Action ${this.name}. Decay value cannot be greater than 1`)}getDifficulty(){const e=this.baseDifficulty*Math.pow(this.difficultyFac,this.level-1);if(isNaN(e))throw new Error("Calculated NaN in Action.getDifficulty()");return e}attempt(e,t){return Math.random()<this.getSuccessChance(e,t)}getActionTimePenalty(){return 1}getActionTime(e,t){let n=this.getDifficulty()/s.a.DifficultyToTimeFactor;const a=e.skillMultipliers.actionTime,r=t.agility*e.skillMultipliers.effAgi,i=t.dexterity*e.skillMultipliers.effDex,o=.5*(Math.pow(r,s.a.EffAgiExponentialFactor)+Math.pow(i,s.a.EffDexExponentialFactor)+r/s.a.EffAgiLinearFactor+i/s.a.EffDexLinearFactor);return n=Math.max(1,n*a/o),Math.ceil(n*this.getActionTimePenalty())}getTeamSuccessBonus(e){return 1}getActionTypeSkillSuccessBonus(e){return 1}getChaosCompetencePenalty(e,t){const n=e.getCurrentCity();return t.est?Math.pow(n.popEst/s.a.PopulationThreshold,s.a.PopulationExponent):Math.pow(n.pop/s.a.PopulationThreshold,s.a.PopulationExponent)}getChaosDifficultyBonus(e){const t=e.getCurrentCity();if(t.chaos>s.a.ChaosThreshold){const e=t.chaos-s.a.ChaosThreshold+1;return Math.pow(e,.5)}return 1}getEstSuccessChance(e,t){function n(e){return Math.max(0,Math.min(e,1))}const a=this.getSuccessChance(e,t,{est:!0}),r=this.getSuccessChance(e,t),i=Math.abs(r-a);let o=r-i,s=r+i;const l=e.getCurrentCity(),c=l.pop/l.popEst;return c<1?o*=c:s*=c,[n(o),n(s)]}getSuccessChance(e,t,n={est:!1}){if(null==e)throw new Error("Invalid Bladeburner instance passed into Action.getSuccessChance");let r=this.getDifficulty(),i=0;for(const n of Object.keys(this.weights))if(this.weights.hasOwnProperty(n)){const a=t.queryStatFromString(n),r="eff"+n.charAt(0).toUpperCase()+n.slice(1);let o=e.skillMultipliers[r];null==o&&(console.error("Failed to find Bladeburner Skill multiplier for: "+n),o=1),i+=this.weights[n]*Math.pow(o*a,this.decays[n])}if(i*=a.a.getIntelligenceBonus(.75),i*=e.calculateStaminaPenalty(),i*=this.getTeamSuccessBonus(e),i*=this.getChaosCompetencePenalty(e,n),r*=this.getChaosDifficultyBonus(e),"Raid"==this.name&&e.getCurrentCity().comms<=0)return 0;if(i*=e.skillMultipliers.successChanceAll,i*=this.getActionTypeSkillSuccessBonus(e),this.isStealth&&(i*=e.skillMultipliers.successChanceStealth),this.isKill&&(i*=e.skillMultipliers.successChanceKill),i*=a.a.mults.bladeburner_success_chance,isNaN(i))throw new Error("Competence calculated as NaN in Action.getSuccessChance()");return Math.min(1,i/r)}getSuccessesNeededForNextLevel(e){return Math.ceil(.5*this.maxLevel*(2*e+(this.maxLevel-1)))}setMaxLevel(e){this.successes>=this.getSuccessesNeededForNextLevel(e)&&++this.maxLevel}toJSON(){return Object(o.b)("Action",this)}static fromJSON(e){return Object(o.a)(c,e.data)}}o.c.constructors.Action=c},function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return i}));var a=n(5);const r=[];function i(e){if(r.find(t=>t.runningScript.pid===e.pid))return;const t=new Date;for(r.unshift({timeOfDeath:t,runningScript:e.scriptRef});r.length>a.a.MaxRecentScriptsCapacity;)r.pop()}},function(e,t,n){"use strict";n.d(t,"b",(function(){return f})),n.d(t,"a",(function(){return u}));var a=n(22),r=n(12),i=n(388),o=n(82),s=n(14),l=n(250),c=n(154);const f=e=>null!==e&&e.type===c.b.CRIME;class u extends c.a{constructor(e){var t,n;super(c.b.CRIME,null===(t=null==e?void 0:e.singularity)||void 0===t||t),this.crimeType=null!==(n=null==e?void 0:e.crimeType)&&void 0!==n?n:l.a.Shoplift,this.unitCompleted=0}getCrime(){const e=Object.values(o.a).find(e=>e.type===this.crimeType);if(!e)throw new Error("CrimeWork object constructed with invalid crime type");return e}process(e,t=1){var n,a;this.cyclesWorked+=t;const i=null!==(n=null===(a=Object.values(o.a).find(e=>e.type===this.crimeType))||void 0===a?void 0:a.time)&&void 0!==n?n:0;return this.unitCompleted+=r.a._idleSpeed*t,this.unitCompleted>=i&&(this.commit(e),this.unitCompleted-=i),!1}commit(e){let t=null;for(const e of Object.keys(o.a))if(o.a[e].type==this.crimeType){t=o.a[e];break}if(null==t)return void Object(s.a)(`ERR: Unrecognized crime type (${this.crimeType}). This is probably a bug please contact the developer`);const n=e.focusPenalty();let a=2*t.hacking_exp,r=2*t.strength_exp,l=2*t.defense_exp,c=2*t.dexterity_exp,f=2*t.agility_exp,u=2*t.charisma_exp,m=t.karma;Object(i.a)(e,t.type)?(e.gainMoney(t.money*n,"crime"),e.numPeopleKilled+=t.kills,e.gainIntelligenceExp(t.intelligence_exp*n)):(a/=4,r/=4,l/=4,c/=4,f/=4,u/=4,m/=4),e.gainHackingExp(a*n),e.gainStrengthExp(r*n),e.gainDefenseExp(l*n),e.gainDexterityExp(c*n),e.gainAgilityExp(f*n),e.gainCharismaExp(u*n),e.karma-=m*n}finish(e,t){}toJSON(){return Object(a.b)("CrimeWork",this)}static fromJSON(e){return Object(a.a)(u,e.data)}}a.c.constructors.CrimeWork=u},function(e,t,n){"use strict";n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return c}));var a=n(0),r=n.n(a),i=n(126),o=n(37);const s=["ttftfffttttttttttfffffffttftt1ttttttt111tttt1111111tttt1tt111tttt111111tttt1ttttttttttttttt111111111\nttfttttttttttttttttfLLLftfffffffffftttt111tt11111ttffffftttt1111111111111111ttttttfttttttttt111111t1\nttttttttttttttttffffLfftffffffffLLffttttttftt111ttfffffftttttttt111111ttttttffffttfffttttttt111111tt\nttttttttttttttttfffLfttffffffLLffffttttttttttt1tfffffffffftttttt111111tffffffffftttfffftttt11111ttt1\nttttttttttttffLfttfffttfffffffffttfftttttt1t1tt11tfffffftttttt111t111111ttffffLLffttfffftt111111tttt\nttttttttttffLLLLfttttffLLLfttttftfLftttttttffffttttffffttttfftt11t111tt111ttfffLffttfftttttt1111tttt\nttttttttffLLLLLLLffttfLLffttfffftfLfttttttffttt11111ttttffffffftt1111tft11111ttffffttt11tfftt11ttttt\ntttttttfffLLLLLLLLfftffttttffLffftfftttttft1i;;::::;iitffffffffftt111tft1tttt1ttffLfttttfffffttttttt\ntttttttfffLLLLLLLLfttttffftffffftfttttttff1:,,,,,,,,::itfffffffft11111111ttttttttttt1tfffffffffffttt\ntttffttffLLLLLLLLLfttfftffffffffLLLftttttt;::,:::;;;;::1tfffftfft11111ttt1ttt1tfttt11ttffffffffLfttt\ntffffffffLLLLLLLffftfLfffttfLLffLLLfttttti;;;iii11111;:i11ttffft111111tfft11t11tt1tttttfffLLLLLLfttf\ntfffffttttfLLLffttttfffffttLLLLfLLLftttfti:;;;iiiiiiii;it111tt111t1111tffttfftt11ttftttfffLLLLLLffff\nttttfttttffffftttttttttttttfLLLffLLfttttt1;;;;;;iiiiii;1tft11tt1111111tfftfffftttttttttttfLLfffttfff\ntfffffffffftttfffffffffttffttLLfffLfttttt11i;;;;iiiiiii1tt11tfftt11111ttt1fffttt1tttttttttfffftttttt\nttffffffffftttfffffffffttffftffttftttttff1ii;;;;iii1iii111tt1ttttt1111t111ffttffttfffffLffttttffffff\nttffffffffttttffffffffttttttttttffftttttft1ii;;;ii1iii111tfft11ttt111111t1tt1tfft1ttffffLLftttLLLLLL\ntttffffffffttfffffffftttttttt11fffftttt1t111iiii;iiiii11ttffft11111111ttttttt1tt11ttffffLfftttfLLLLf\ntttttttffffttfffttttttttffttt11tffttttttt11ttii;;;iiii11i1ffftt1111111tttt111tttt11ttttffffftffLLLff\ntfttttttttttttttttttttfffftttt11tfftttttt111t1i;;;iiii1i,,:;i1111t1111ttt111t1tfftt11111ttfftffffftt\nttttfffftttttttfffftttffffttffttttft111tt11111i;;;iiii1;,,....,:::;i11tt111tt11tffftttttttt1tttttttt\nt11ttffffftttffffffttttfffttffttttft1111111111;;;;;;;it;,...........,:it111ttt1tffftttttfft11ttfffff\ntt1ttfffftt1ttfffft111tffttfttttttt1111t1i;:;11i1i;;1t1:,,............,itt11tt1tfftt1tfffffft1tffLLf\ntfttttfttttt11tttt1ttt11ttttttftt111111i:,..:1111iii11;,...............;tt111t11ttttttttffttt11ffLLf\ntfftttttttfftttttttffftt111ttffftt11i;,.,...,iiii;;;;:,,...............:1ttt1111ttfffttttft1tt1ttfft\nttttttttttttttt11ttttttttttfffffft1:,..........::::::,,,...............,1ttttt11ttfffffttttffftttttt\ntfffttttffffftt11ttttttttttfffffft1:...........:;::;:..................,1tttttt1ttfffffttttttttftttf\ntfffttttfffffft1ttftttfftttttffft11:...........,:::::..................,1tttft11tfffffffttfffffffttf\ntfffttttffffff11tttttttttttttttttt1;...........,::::,...................;t1t1111tfffffLfttfffffffttf\ntfffttttfftttt11tttttttt1tfftttttt1:...........,::::,...... ............,1111tt11fffffLftttffttffttf\ntttttttttttttt11tttttttt1tffftttft1:...........,:::,,....................it1ttt11tfffffftttffttffttt\nttttt1tttttttt11ttttttttttffttttttt:...........,::,,.....................:111tt11tttttttt1tttttttttt\nttttt1tttttttt11tftttttftttttttttt1;,:;:.......,:,,,....................,,1111t11ttttttt11ttttttfttt\n1tttt1ttfffttt11ttffffffttttfffft11ii1i:.......,:,,,.....................,1tt1111ttttttt111tttttfttt\n1ttt11tttttttt11tttttttttttttttttti;;;;:.......,:,,,....... .............,itt1111tttt11t111ttttttt1t\n111111tttttttt11111111ttttttttttt1i;;;;:.......,:,,,......................itt11111111111111111111111\n1111111111111111111111ttttttttttt1;;;;;:...... ,:,,,,.....................itt11t11111111111111111111\n1111111111111111111111tttttttttt1;:,::;,...... ,:...,.....................ittttt11111111111111111111\n111111111111111111111111tttttttt1i,..... .... .:........................,i1tttt11111111111111111111\n1111111111111111111111111t11t11111;,....,,.... ,:::,,,...................,11ttttt11t1111111t11111111\n11111111111111111111111111111111111iiiiii. ... .::::::,..................,11t1ttt111t11111tttttt1111\n1111111111111111111111111111111111111111:.,.....::::::,..................:111tttttt1tttt11tttttt1111\n1111111111111111111111111111111111111111:::,...,::::;::,..,,.............:11tt1ttttttttttttttttt1111\n","ttftfffttttttttttffffffftfftttttttttt111tttt1111111ttttttt111tttt111111tttttttttttttttttttt11111111t\nttfttttttttttttttftfLLLftfffffffffftt11111tt11111ttffffttttt1111111111111111ttttttfttttttttt111111tt\nttftttttttttttttffffLftttfffffffLLLfttttttftt111ttfffffftttttttt111111tttttffffftfffftttttt1111111tt\nttttttttttttttttfffLLttffffffLLffffttttttttttt1tffffffffffttttttt11111tffffffffftttfffffttt1111ttttt\nttttttttttttffffttfffttfffffffffttfftttttt1tttt1ttftfffftt1ttt111t111111ttffffLLffttfffft1111111tttt\nttttttttttffLLLLfttttffLLLfttttttfLftttttttfft11i;;:;;i11ttfftt11t111tt111tttffffftttttttttt111ttttt\nttttttttffLLLLLLLffttfLLLfttfffftfLLttttttfff1;,,,,,,,,:;tffffft11111tft11111ttffffttt11tffftt1ttttt\ntttttttfffLLLLLLLLfftffttttffLffftfftttttfft1;:,,,,,::::,;tffftttt111tft1tttt1ttffLfttttfffffftttttt\ntttttttffLLLLLLLLLfttttffftffffftfftttttfffti:;;;iiii11i;:tffffft11111111ttftttttttt1ttffffffffffttt\ntttffttffLLLLLLLLLftffftfLftfftfLLLftttttfft::i;iiiiii11i:1ffftft11111ttt1ttt1ttttt11ttfffffLLfLfttt\nttfLfffffLLLLLLLLfftfLLfffffLfffLLLfttttt1tt;:;;;;;iiiiiii1tffft11111tffft11t11tt1tttttfffLLLLLLffff\ntffftfttttfLLLffttttfffffttLLLLfLLLftttft111i;;;;;;iiiiii111tt111t1111tffttfftt11tfft1tfffLLLLLLLffL\ntttfftttttffLftttttttttttttfLfLffLLfttttttt1iii;;;;;ii11i1t11t11111111tffttfffttttttt11ttfLLLLffftff\nttfLffffffftttfffffffffttfftfLLfffLftttttfft1ii;;;;iii1i1tt1tfftt11111ttt1tffttt1ttt1tttttffffttffft\nttffffffffftttffffffffttfffftffffftttttfffft111;;;;iiii1111t1ttttt1111tt11ffttfftttfffffLfttttfffffL\nttffffffffttttffffffffttttttttttffftttttttt11ttii;iiiiii11tft11ttt111111t11t1tfft1tfffffLLftttLLLLLL\n1ttffffffffttfffffffftttttttt11ffffttttt1111tftiii;;iiii1;,;1111111111tttt11111111ttffffLfftttffLLLf\nttttttttfffttfffttttttttffttt11tffftttttt11ttf1;;;i;iiii1:,,.,,::;ii11tttt111tttt11ttffffffftffLLLff\ntfttttttttttttttttttttfffftttt11tfftttttt111tt1;;;i;;ii1t:,,........,:;1t111t1tfftt11111ttfftffffftt\ntftttffffttttttfftftttffffttffttttftt11tt111i;;;;;;;;;it1,,............,;11tt11tffffttttttt1tttttttt\ntttttffffftttfffffft1ttffftfffttttft111111;:,.;iii;;;i11,.,.............,1tttt1tffftttttfft111tfffff\n1tttffffftt1ttfffftt11tffttfttttttt1111i;,....,1iii;ii;,................,111tt1tfft11tffffftt1tLffLf\ntftttfftt1ttt1tttt1tttt1ttttttttt1111;:,.......i1;;;:::.................,it11t11ttttttttffftt11fffLf\ntfftttttttfftt1111ttfftt11ttfffftt1ti..........:i;::;:,..................ittt111t1tffttttft1tt1tffft\nttttttttttttttt11tttttttt1tffffffftti,.........,::::::,..................itttt11ttffffftttttfftttttt\ntfffttttfffffft11ttttttttttffffffft1i,.........,:,:::,...................,1tttt11tfffffttttttttffttf\ntfffttttfffffft11tftttfftttttffft1111:.........,:,:::,....................;tt111tfffffffttfffffffttf\ntfffttttfffffft1tttttttftttttttttt111;.........,:,::,,....................,111111fffffLfttfffffffttf\ntffftttttttffft11tttttttttffttttfft11i.........,:.:,,......................:1tt11fffffLftttffttffttf\ntttttttttttttt111ttttttt1tffftttfft111:....... ,:.:,,.......................1tt11tfffffftttffftffttt\nttttt1tttttttt11ttttttttttfttttttft111i,...... ,:,,,,......................,itt11ttttttt11ttttttfttt\nttttt1tttttttt11tfttttfftttttffttt1111i,...... ,:.,,,......................:11111ttttttt11ttttttfttt\n1tttt1ttftfttt11tfffffffttttfffft11111,....... ,,.,,....... ...............it1111ttttttt111tttttfttt\n1tttt1tttttttt11ttttttttttttttttt1111;,....... ,,.,,......................:tt11111ttt11t111ttttttt1t\n11t111tttttttt111t1111tttttttttt1iiii:,,...... ,,.........................;t111111111111111111111111\n111111111tt11111111111ttttttttt1;;iiii:....... ,,............ ...........;tttt1111111111111111111111\n1111111111111111111111ttttttttt1;;;iii;... ....,::::,....,:::,,.........;1ttttt111111111111111111111\n111111111111111111111111tttttttt1i;;ii: .,....,:::::... .;;;;;:,.....,;1ttttttttt111111111111111111\n1111111111111111111111111tt1111111i,,.,:;i: ...,:::::.....:;;;;;:.....,1ttttttttt11t1111111t11111111\n11111111111111111111111111111111111:.:1tti,....,:::::.... ,;;;;;;,.....ittttttttt111t11111ttttt11111\n1111111111111111111111111111111111111ttt;,,....,:::::,... .,;;;;:,.,,..:ttttttttttt1tttt11tttttt1111\n11111111111111111111111111111111111111t1,,,....:;;::::,.....:;;;:......,1ttttttttttttttttttttttt1111\n","ttftffftttttttttffffffLftfftttttttttt111tttt1111111tttt1tt111tttt111111tttttttttttttttttttt11111111t\nttfttttttttttttttfffLLLftfffffffffttt11111tt11111ttfffft1ttt1111111111111111tttttffttttttttt111111tt\nttftttttttttttttffffLffttfffffffLLLfttttttfttt11tffffffftttttttt111111tttttffffftfffftttttt1111111tt\nttttttttttttttttfffLLttffffffLLffffttttttttttt1ttt1iiiii1tttttttt11111tffffffffftttfffffttt1111t1tt1\nttttttttttttffffttffftffffffffffttffttttt11tttt1i::,,,,,,:;111111t111111ttffffLLffttfLfftt11111ttttt\nttttttttttffLLLLfttttffLLLfftttttfLftttttttfft1i;,,,,,,,,,:;ttt11t111tt111tttffffftttftttttt111ttttt\nttttttttffLLLLLLLffttfLLLfttfffftfLLtttttffffti;::;;;;;iii::1ftt11111tft11111ttffffttt11tffftt1ttttt\ntttttttfffLLLLLLLLLftffttttffLffftffttttffffft;:;iiii11111i:iftttt111ttt1tttt11tffLfttttfffffttttttt\ntttttttffLLLLLLLLLfttttffftffLLftfftttttffffft;:;;;;;iiiiii;1fftt11111111ttftttttttt1ttffffffffffttt\ntttfftfffLLLLLLLLLftffftfLftffffLLLftttttffffti;;;;;;;ii;iiitffft11111ttt1ttt1tfttt11ttfffffLLfLfttt\nttfLfffffLLLLLLLLffffLLfffffLfffLLLLtttttttff1iii;;i;;iii111tfft111111ffft11t11tt1tttttfffLLLLLLffff\ntffftftttffLLLffttttfffffttLLLLfLLLffttftt11t1iii;;;;;iiiii1tt111t1111tffttfftt11tfft1tfffLLLLLLLfff\nttffftttttffLftttttttttttttfLLLffLLftttttttft111i;;;;iiii1111111111111tffttfffttttttt11ttfLLffffftff\nttfLffffffftttfffffffffttfttfLLfffLftttttfffft11i;;;;iiii1t1ttttt11111ttt1tffttt11ttttttttfffftfttft\nttffffffffftttffffffffttfffftffffftttttfffft11t1i;;;;;iii1ii1ttttt1111t111ffttfft1tfffffLfttttfffffL\nttffffffffttttffffffffttttttttttffftttttttt11tft1i;;;;iii1i,:;i1ttt11111t11t1tfft1ttffffLLfttfLLLLLL\ntttffffffffttfffffffftttttttt11ffffttttt1111tfti;ii;;iiii1;,,...,:;ii1tttt1111tt11ttffffffftttffLLLf\nttttttttfffttfffttttttttffttt11tffftttttt11t1iii;;ii;;;i1t:,.........,:;1t111ttt111ttffffffftffLLLLf\ntfttttttttttttttttttttfffftttt11tfftt11tt1i:,.:;;;i;;;itti,,............,;1111ttttt11111ttfftffffftt\ntfttfffftttttttfffftttffffttffttttft1111i:....,;;;ii;i11;.,,.............:1tt1ttffffttttttt1ttttttft\ntttttffffftttffftffttttffftfffttttft1i:,.......:;;;;;;;:,................:tttt1tffftttttfft11ttfffff\n1t1tffffftt1ttfffftt11tffttftttttttt1,.........,ii;;;;;,.................:11tt1tfft11tfffffft1fLLfLf\ntftttfftt1ttt1tftt1ttt11ttttttttt111i,.........,11;:;;:,.................,1t1t11ttttttttfftt111fffLf\ntfftttttttffttt111ttfftt11ttffffftt11,.........,i;::::,..................,1tt11111ffft1ttt11tt1tffft\nttttttttttttttt11tttttttt1tffffffft11;..........::::::,...................;tt1111tfffftttttffftttttt\ntfffttttfffffft11ttttttttttffffffft11:..........:::::,..,;:,...............ittt1tttttffttttttttffttf\ntfffttttfffffft11tftttffttttfffft1111:..........:::::,..;1i;:,..............1t11tfffffffttfffffffttf\ntfffttttfffffft1tttttttftttttttttt111;..........::,:,...;ii;;;,.............:1111tffffLfttfffffffttf\ntffftttttttfft11ttttttttttfftttttft11i,.........::,,,...;;;;;i:..............;111tffffLfttfffttffttf\ntttttttttttttt111tttttttttffftttfft11i,.........::,,,...;;;;;i:..............:111tfffffftttffttffttt\ntttttttttttttt11ttttttttttfftttttft111:.........:,,,....::;;;;:.............,1t11ttttttt11tttttffttt\nttttt1tttttttt11tfttttfftttttfftttt111:.........:,,,......,::::..,.........,i1111ttttttt11ttttttfttt\n1tttt1ttfttttt11tfffffffttttfffft1111i:,........:,,,..... .......,,...... .it1111ttttttt111tttttft1t\n1tttt1tttttttt11ttttttttttttttttt1iiii;,........:........... ...........:itt11111ttt1t1111ttttttt1t\n111111tttttttt111tt111tttttttttti;;;iii:... ....:,,...................:i1tttt11111111111111111111111\n111111111tt11111111111tttttttttt1;;;;;;;. .,....::::..................:1tttttt1111111111111111111111\n1111111111111111111111ttttttttttt1i;;::..:;1,...::::...................;ttttttt111111111111111111111\n1111111111111111111111111tttttttt111i,.,it1;....::::,..................,1ttttttttt111111111111111111\n1111111111111111111111111tttt11111111ii1t1i:...,::::,........,..........itttttttt11t1111111tt1t11111\n11111111111111111111111111111111111111tt1;:....::::;:.......,...........:1ttttttt111t11111ttttt11111\n111111111111111111111111111111111111111ti,,....:;:;::,..................,ittttttttt1tttt11tttttt1111\n111111111111111111111111111111111111111t:,:.,.:;;;;:::,..................;111t1ttttttttttttttttt1111\n","ttftffftttttttttffffffLftfftttttttttt111tttt1111111tttt11t111tttt111111tttttttttttttttttttt11111111t\nttfttttttttttttttfffLLLftfffffffffttttt1111t11111ttffffftttt1111111111111111tttttfftttttttt1111111tt\nttftttttttttttttffffLffttffffffffLLfttttttfttt11ttt1iiii;i11tttt111111tttttffffftffffttttttt111111tt\nttttttttttttttttfffLLttffffffLLffffttttttttttt1tt1::,,,,,,:;1ttt111111tfftfffffftttfffffttt1111t1tt1\nttttttttttttffffttffftffffffffffttfftttttt1ttt11i;:,,,,,,,,,:1111t1111111tffffLLffttfLfftt11111ttttt\nttttttttttffLLLLfttttffLLLfftttttfLftttttttffft1;:::;;;;;;;::it11t111tt111tttffffftttfttttt1111ttttt\nttttttttffLLLLLLLffttfLLLfttfffftfLLtttttfffffti:;;ii111111i:itt11111tft11111ttffffttt1ttffftt1ttttt\ntttttttfffLLLLLLLLLftffftttffLffftffttttfffffft;:;;;;;iiiiii;ittt1111ttt1tttt11tffLfttttfffffftttttt\ntttttttffLLLLLLLLLfttttffftffLLftfftttttffffffti;;;;;;;ii;iiitttt11111111ttftttttttt1ttffffffffffttt\ntttfftfffLLLLLLLLLftffftfLftffffLLLftttttfffff1iii;;i;;i1i1i1tttt11111ttt1ttt1tfttt111tfffffLLfLfttt\nttfLffffffLLLLLLLffffLLfffffLfffLLLftttttttfft1i;;;;;;;iiiiitfft111111ffft11t11tt1tttttffffLLLLLffft\ntffftfttttfLLLffttttffffftfLLLLfLLLftttftt1111111i;;;;iiii111t111t1111tffttfftt11tfft1tffLLLLLLLLfff\nttffftttttffLftttttttttttttfLLLffLLftttt1tttt11tti;;;iiiii111111111111tffttffftttttttt1ttfLLLfffffff\nttfLffffffftttfffffffffttfttfLLfffLftttttffft1111i;;;;;ii111tfttt11111ttt1tffttt11ttttttttfLfftfttft\nttffffffffftttfffffffffttffftffffftttttfffft11t11i;;;;iii1i:;1ttft11111111ffttfftttfffffLfttttfffffL\nttffffffffttttffffffffttttttttttffftttttft111tttiii;;iiii1;,,,:;i1111111111t1tfft1ttffffLLftttfLLLLL\ntttffffffffttffffffffttttttttttfffftttt1111i;:;iiii;;;i;11:,,.....,:;i1tft1111tt111tffffLfftttffLLLf\nttttttttfffttfffttttttttfftt111tfffttt11i;,,..:i;;;i;ii1t1,,..........,:i1111ttt1111tffffffftffLLLLf\ntfttttttttttttttttttttffffttttt1tffti;:,,.....,;;;iiii1ti,,,.............;1111ttttt11111ttfftffffftt\ntttttffffttttttfffftttffffttffttttf1:.........,;:;;;;;;;,.,,,............:1tt1ttffff11ttttt1ttttttft\ntttttffffftttffftfft1ttffftfffttttf1,..........,;;;;;;;:.:ii;;:,.........:tttt1tfffttttffft111tfffff\n1tttffffftt1ttfffftt11tffttfttttt1t1,...........ii;;;::,,;i;;ii:.........:tttt1tfft11tfffffft1fLLfLf\ntftttffttttt11tftt1tttt1ttttttttt11i,..........,1i;;::,.:i;;;;i:.........,1t1t11ttttttttfftt111fffLf\ntfftttttttffttt11tttffttt1tttffft11i,..........,ii;:::,.,:;;iii:..........it111111tfft1ttt11tt1tffft\nttttttttttttttt11tttttttt1tfffffftti,...........:::::,....:;;ii:..........:tt111ttfffftttttffftttttt\ntfffttttfffffft11ttttttttttfffffft1i,...........:::::,.....,:;;:.... ......,1t111ttttffttttttttffttf\ntfffttttfffffft11tftttffttttfffft111:...........:::::,........,..,..........,1111tffffffttfffffffttf\ntfffttttfffffft1tttttttftttttttttt11:...........::,:,........ ...:;,.........:111tffffLfttfffttffttf\ntffftttttttfft11ttttttttttffttttttti,...........:::,,.............,...........,i1tffffLfttfffttffttf\ntttttttttttttt111tttttttttffftttfft;,:;:........:::,.............. ...........:11tfffffftttffttffttt\ntttttttttttttt11ttttttttttfftttttftii1i;:.......:::,.......... ..............:t111tttttt11tttttffttt\nttttt1tttttttt11tfttttfftttttffttt1ii;ii;,......::,,........................:1111ttttttt11ttttttfttt\n1tttt1ttfttttt11tfffffffttttfffft11i;;ii;,......:,,,..........:........ .;t1111ttttttt111tttttft1t\n1tttt1tttttttt11tttttttttttttttttt11;:;i:,,.....:,.................. .;i;;1tt1111tttt1t1111ttttttt1t\n111111tttttttt111t111ttttttttttttt11i:,,:1;....,::....................:1ttttt11111111111111111111111\n111111111tt1111111111tttttttttttttt11i;;1t:....:::::...................;tttttttt11111111111111111111\n1111111111111111111111ttttttttttttt111ttt1,,,.,:::::,..................,1ttttttt11111111111111111111\n111111111111111111111111tttttttttt1111111i,::.,;::;:,...................;ttttttttt111111111111111111\n1111111111111111111111111ttttttt11111111t;.,,.,;;;;;,...................,1ttttttt11t1111111tttt11111\n111111111111111111111111111111111111111t1:..,,:;;;;;:,...................;ttttttt111t11111ttttt11111\n111111111111111111111111111111111111111ti,,,::;;;;;;;:,..................,1tttttttt1tttt11tttttt1111\n111111111111111111111111111111111111111t;,,::,;;;ii;;::,..................it1tttttttttttttttttt11111\n","ttftffftttttttttffffffLftfftttttttttt111tttt1111111tttt111111tttt1111111ttttttttttttttttttt11111111t\nttfttttttttttttttfffLLLftfffffffffttttt111tt11111ttffffftttt1111111111111111tttttfftttttttt1111111tt\nttftttttttttttttffffLffttfffffffLLLftttttttttt11ttt1iiii;i11tttt111111ttttttfffftffffttttttt111111t1\nttttttttttttttttfffLLttffffffLLffffttttttttttt1ttt;:,,,,,,,:itttt11111tfftfffffftttfffffttt1111t1ttt\nttttttttttttffffttffftffffffffffttfftttttt1tttt11i:,,,,,,,,,:i111t1111111tffffLLffttfLfft111111ttttt\nttttttttttffLLLLfttttffLLLfftttttfLftttttttffft1;::;;;;;;;;;,;t111111tt111tttffffftttftt1tt1111ttttt\nttttttttffLLLLLLLffttfLLffttfffftfLLtttttffffff1,:iiii111111;:tt11111tft11111ttffffttt11tffft11ttttt\ntttttttfffLLLLLLLLLftffftttffLffftffttttfffffffi:;;;;;iiiii1;;ttt1111ttt1tttt11tffLfttttfffffftttttt\ntttttttffLLLLLLLLLfttttffftffLLftfftttttfffffff1;;;;;;;ii;;ii1ttt11111111ttftttttttt1ttffffffffffttt\ntttfftfffLLLLLLLLLffffftfLftffffLLLftttttfffff1iiiiii;;iiii1itttt11111ttt1ttt11tttt11ttfffffLLfLfttt\ntffLLffffLLLLLLLLffffLLftffLLLffLLLftttttttffftiii;;;;;ii1ii1tft111111ffft11t11tt1tttttffffLLLLLffft\ntfffffttftfLLLffttttfffffttLLLLfLLLftttft111tt111i;;;;iiiii1tt111t1111tffttfftt11tfft1tffLLLLLLLLfff\nttttfttfffffLftttttttttttttfLLLffLLftttt1tttt11tti;;;iiiii111t11111111tffttffftttttttt1ttfLLLfffffff\nttffffffffftttfffffffffttfftfLLfffLftttttffft11t1i;;;;;iii11ttttt11111ttt1tffttt11ttttttttfLfftftttt\nttffffffffftttfffffffffttffftffftftttttffft111t11i;;;;iii1ii11tttt1111tt11ffttfftttfffffLfttttffffff\nttffffffffttttffffffffttttttttttffftttttttt11111iii;;iiii1;,:;1tttt11111t11t1tfft1ttffffLLftttfLLLLL\ntttffffffffttffffffffttttttttt1tffftttt11i;:,:i;;i;;;;;i11,,..,,:;i111tttt1111tt11ttffffLfftttffLLLf\nttttttttfffttfffttttttttffttt11ttff1ii;:,....,;::;i;;i11ti,,.......,:;ittt111ttt1111ttffffffttfLLLLf\ntfttttttttttttttttttttfffftttt11tff;,,........;;;;iii1tti,,,,:;;::,....,i11111ttttt11111ttfftffffftt\ntfttfffffttttttfffft1tffffttfft1ttt:..........:;;;;;;;i;...,;i;iii:.....,i1tt1ttffff11ttt1t1ttttttft\nttttfffffftttfffffft11tffftffftttti,..........,:;;;;;;;,...,;;iiii,......;tttt1tffftttttftt111tfffff\n1tttffffftt1ttfffftt111ffttft11tt1;,...........;i;;;;;:,.....:;iii,......;tttt1tfft11tffffftt1fLLfLf\ntttttffttttt11tftt1tttt1tttt1tttti,............;1;::;;,......,;iii,......;t11t11ttttttttfftt111fffLf\ntfftttttttffttt111ttfftt111ttfffti.............;i;::::,.......,;;;,......;ttt11111tfft1tttt1tt1tffft\nttttttttttttttt11ttttttt11tffffffi,............,::;:::,..........,.......:ttt1111tfffftt1tttfftttttt\ntfffttttfffffft11tttttttttttffffti,............,:::::,..............,....,ittt11ttttttft1ttttttffttf\ntfffttttfffffft11tffttff11t1tfff1;...... ....,.,:::::,.....................;11111tffffffttfffffffttf\ntfffttttfffffft1tttttttfttttttti:,......:iiii;,,:::,:.......................,;111tffffffttfffttffttf\ntffftttttttfft11ttftttttttfftti,,::,.,:;1i;;;;.,::::,.........................,i1tffffLfttfffttffttf\ntttttttttttttt111ttttttt1ttfft1:::,,,:,:;;;;i:.,:::,,..........................;1tfffffftttffttffttt\nttttt1tttttttt11ttttttttttfttt1;,...,...:;;;:, ,:::,..........................;11ttttttt11ttttttfttt\nttttt1tttttttt11tfttttfftttttfti,..,....,,,....,:::,.........................:111ttttttt11ttttttfttt\n1tttt1ttfttttt11tfffffffttttffft1;::::,,.......,:,:,.................. .:1111ttttttt111tttttfttt\n1tttt1tttttttt11ttttttttttttttttttt11111:......,:,,,..................,::,:1tt1111ttt1t1111ttttttt1t\n111111tttttttt111t1111tttttttttttt111111:......,,.....................,1tttttt1111111111111111111111\n1111111111t11111111111ttttttttttttt11111:......,:,,....................:1t1ttttt11111111111111111111\n1111111111111111111111ttttttttttttt1111t:......,;;::....................:1ttttttt1111111111111111111\n111111111111111111111111ttttttttt1111111:......,::::,...................,itttttt11111111111111111111\n111111111111111111111111111tttt111111111:......,;;::,....................:1ttttttt1tt11111ttttt11111\n1111111111111111111111111111111111111111:......:;;;::,...................,ittttttt11t11111ttttt11111\n11111111111111111111111111111111111111t1:......:;i;;::,...................:11tttttt1tttt11ttttt11111\n1111111111111111111111111111111111111111,......:;;;;;::,..................,1tttttttttttttttttttt1111\n","ttftfffttttttttttfffffLftfftttttttttt111tttt1111111tttt111111ttttt11111tttttttttttttttttttt11111111t\nttfttttttttttttttfffLLLftffffffffftttttt111111111ttfffftt1tt1111111111111111ttttttftttttttt1111111tt\nttftttttttttttttffffLftttfffffffLLLft1tttttft111tfftttfttttttttt111111ttttttfffftffffttttttt11111tt1\nttttttttttttttttfffLfttffffffLLffffttttttttttt1ttti;;;;::;i1tttt111111tffffffffftttfffffttt11111ttt1\ntttttttttttfffffttffftffffffffffttfftttttt1ttt111i,,,,,,,,,;11111t1111111tffffLLffttfLfft111111ttttt\nttttttttttffLLLLfttttffLLLfftttttfLftttttttffft1i::,,,,,,,,,:1t11t111tt1111ttffffftttftt1tt1111ttttt\nttttttttffLLLLLLLffttfLLLfttfLfftfLLtttttfffffti:;;iiiiiiii::1tt11111tftt1111ttffffttt11tffft11ttttt\ntttttttfffLLLLLLLLLftffftttffLffftfftttttffffft::;;iii1i111i:1ttt1111ttt1tttt11tffLfttttfffffftttttt\ntttttttffLLLLLLLLLfttttffftffLfftfftttttfffffft;;;;;;;iiiiii;tttt11111111ttftttttttt11tffffffffffttt\ntttfftfffLLLLLLLLLfttfftfLfffffffLLftttttfffft1ii;;;;;iiiiiitfttt11111ttt1ttt11tttt11ttfffffLLfLfttt\nttfLLfffffLLLLLLLfftfLLftfffLLffLLLftttttttfftiii;;i;;ii111itfft111111tfft11t11tt1tttttfffLLLLLLLfff\ntfffffttftfLLLffttttffffftfLLLLfLLLftttft111tt1iii;;;;iiiii1tt111tt111tffttfftt11tfftttffLLLLLLLLfff\nttttfttffttffftttttttttttttfLLLffLLftttt1tttt11t1i;;;iiii1111t11111111tffttffftttttttt1ttfLLLfffffff\nttfLffffffftttfffffffffttftttfLfffLftttttfffft11i;;;;iiii111tfttt11111ttt1fffttt1ttt1tttttfLLffftttt\nttffffffffftttfffffffffttfftttfttttttttffft11111i;;;;;iii1tt11tttt1111t111ffttffttfffffLLfttttfLffff\nttffffffffttttffffffffttttttttttffftt11ttt1111t1i;;;iii1i1itt11ttt111111t11t1ttft1ttffffLLftttfLLLLL\ntttffffffffttfffffffftttttt1111tffftttt11i;::i1iii;;;iii1i,:;i11t11111tttt1111tt11ttffffLfftttffLLLf\nttttttttfffttfffttttttttffttt11ttft1ii;:,....;i;;;ii;;i1t:,...,:;i1111tttt111ttt1111tttffffftfLLLLLf\ntfttttttttttttttttttttfffftttt11t1:,,........ii:;;iii1tt1,,,......,,;i1tt11111ttttt11111ttfftffffftt\ntfttfffffttttttfffft1tffffttfft11;,..........:;::;ii11t1:,,,...,,:,...,it11tt11tffffttttttt1ttttffft\nttttfffffftttfffffft11tfffttfttt1,....,,......,:;;;;;;i,.......:iii;;,.,1t1ttt1tffftttttfftt11tfffff\n1tttffffftt1ttfffft1111tfttft11ti,.............;i;;;;;:........:iiiii:..it11tt1tfftt1tfffffft1fLffLf\ntttttffttttt11tttt1tttt1tttt1tt;,..............i1;;;;;,........,;iii;,..it111t11ttttttttfftt111fffLf\ntfftttttttfftt1111ttfft11111tft:...............;i;;;;:,.........:;ii:..,ittt111111tfftttttt1tt1tffft\nttttttttttttttt11ttttttt11ttff1,...............,::::::......... ,;ii:...itttt111ttffffft1tttfttttttt\ntfffttttffftttt11ttttttt111tft;,........... ..,:;:::,...........,:;:...;ttttt11ttfffffttttttttffttf\ntfffttttfffffft11ttttttf11111;:,..... .....,:::::::::...............,...:1ttt1111fffffffttfffffffttf\ntfffttttfffffft11ttttttt11ti,,...........,:;i;;;:::::..................,.:tt11111tffffffttfffffffttf\ntffftttttttfff111ttttttt111,.,,,,...,,..,;;;;;i;:,::,....................,;i1t111tffffLfttfffftffttt\ntttttttttttttt111ttttttt11t:.......,....,:;;;;;:::,:,.......................:1t11tfffffftttffttffttt\nttttt11ttttttt11tttttttt11t1,............,,,...,::::.........................:111ttttttt11ttttttfttt\nttttt1tttttttt11ttttttfft1t1:,............ .. ,:::,........................,i111ttttttt11ttttttfttt\n1tttt1ttfttttt11tfftttfftttttt1;::,,::.........,:,,,........................i1111ttttttt111tttttfttt\n1ttt11tttttttt11tttttttttttttttttt111i.........,::,,................. . .;t11111ttt1tt111ttttttt1t\n11t111tttt1tt111111111tttttttttttt111i,........,:,,...................,..,itttt111111111111111111111\n1111111111111111111111tttttttttttt111i,....... ,:....................i111ttttttt11111111111111111111\n1111111111111111111111ttttttttttt1111i,....... ,:,::,................,i1t11tttttt1t11111111111111111\n111111111111111111111111tttttttt11111i,........,::;:,..................;1ttttttt11111111111111111111\n1111111111111111111111111tttt11111111i........ ,,:::,..................,1ttttttttttt1111111tt1t11111\n1111111111111111111111111111111111111i,........,,:::,...................it111ttttt11t11111ttttt11111\n111111111111111111111111111111111111t1,........,,,:::,..................,1t1ttttttt1tttt11ttttt11111\n11111111111111111111111111111111111111,........,,,;;::,..................i111ttttttttttttttttttt1111\n","ttftffftttttttffffffffLfttftttttttttt111tttt1111111tttt111111tttt1111111ttttttttttttttttttt11111111t\nttfttttttttttttttftfLLLftffftffffftttttt111111111ttfffftt1tt1111111111111111ttftttftttttttt1111111tt\nttftttttttttttttffffLftttfffffffLLLft11tttfft111tfffffffttt1ttttt11111ttttttfffftffffttttttt11111tt1\nttttttttttttttttfffffttffffffLLffffttt1ttttttt1tt111ii11tft1ttttt11111tfftfffffftttfffffttt11111ttt1\nttttttttttttffffttfffttfffffffffttffftttt111ttt1:,,,,,,,:i1111111t111111ttffffLLffttfLfft111111ttttt\nttttttttttffLLLLfttttffLLLfftttttfLLfttttttftt1;:,,,,,,,,,;1tt111t1111t111tttffffftttftt1ttt111ttttt\nttttttttffLLLLLLLffttfLLLfttfffftfLLfttttffft1i;;;;;;;;;;::1tttt11111ttt11111ttffffttt11tffft11ttttt\ntttttttfffLLLLLLLLLftffftttffLLfftfftttttffffi:;iii111111i:ittttt1111ttt1tttt11tfLLfttttfffffftttttt\ntttttttffLLLLLLLLLfttttffftffLfftfftttttfffff;:;;;;iiiiiii:ittttt11111111ttttttttttt11tffffffffffttt\ntttffftffLLLLLLLLLfttfftfLftfffffLLftttttffff1i;;;;;ii;iiiittttft11111ttt1ttt1ttttt11ttfffffLLfLfttt\nttfLLfffffLLLLLLLfftfLLftfffLfffLLLftttttttf1i1i;i;;iiii1i1tffft111111tfft11t11tt1tttttfffLLLLLLffff\ntfffffttttfLLLffttttfffffttLLLLfLLLftttft1111iii;;;;ii1i1i11tt111t1111tffttfftt11tfftttfffLLLLLLLfff\ntttffttfftffLftttttttttttttfLLLffLLfttttttttt11i;;;;iiii11t11111111111tffttfffttttttt11ttfLLLfffffff\nttfLffffffftttfffffffffttftttfLfffLftttttffft11i;;;iiiii1t11ttttt11111ttt1fffttt1tttttttttfLLftftttt\nttffffffffftttfffffffffttffttfffttttttttfft1111i;;;;iii1111111tttt1111tt11ffttffttfffffLffttftffffff\nttffffffffttttffffffffttttttttttffftt11tttt11t1ii;;;iii11tfft11ttt111111t11tttfft1ttffffLLfttffLLLLL\ntttffffffffttfffffffftt1ttt1111fffft1tt11iiii1iiii;iiii1i:1tft11111111tttt111ttt11ttffffLfftttffLLLf\nttttttttfffttfffttttt1ttfft11111tft11i;:,..,;ti;;;i;iii1;,,,:;i1111111tttt111ttt1111tffffffftfLLLLLf\ntfttttttttttttttttttttfffftttt11i;::,,......iti::;i;iitt:,,....,:;i111ttt111t1ttttt11111ttfftffffftt\ntfttfffffttttttfffftttffffttft11:...........;ii::;i11tti,,,,.......,:itt111tt1ttffff11ttt111ttttttft\nttttfffffftttffftfft11tfffttftt;,............,:;;;;;11;,..............;1111ttt1tffftttttfftt1ttfffLf\n1t1tffffft11ttfffft1111tfttft11:.............,:ii;;;;;,...............:11t11tt1tfft11tfffffft1ffffLf\ntttttfftt1tt11tttt1ttt11t1111t;,..............:i1;;;;:,...............,111111t11ftttttttfftt11tfffLf\ntfftttttttfftt1111tttft11111t1,...............:ii;;;;,............,,,.,1tttt11111ttfftttttt1tt1tffft\nttttttttttttttt11ttttttt11ttfi................:;::;::,...........,;i;;:1tttttt11ttffffftttttfftttttf\ntfffttttftttttt11ttttttt11ttfi................,;;:::,............,;iiii1tttttft1ttffftfttttttttftttf\ntfffttttfffffft11ttttttt11111;........ .......:;:::,............:iiiii11ttftt11tfffffffttfffffffttf\ntfffttttftffff111ttttttt11ti:,....... ,:::;;:,.,;:::,............:;;ii:i11tt1111tfffffffttfffffffttf\ntffftttttfffft111ttttttt11i,.........,iii;;;,..,:::,.............::;;,.it1111tt11tffffffttfffftffttf\ntttttttttttttt111ttttttt11,.,,,,..,,,:;;;;;;,..,:::,.............,::;..:i111ttt11tfffffftttffttffttt\nttttt1tttttttt111ttttttt11;,,,...... .:;;;;:...,:,,,.....................:111tt11ttttttt11tttttffttt\nttttt1tttttttt11tttttttt111,..........,,,,.....,:,,.......................:111111ttttttt11tttttffttt\n1tttt1tttttttt11ttttttfft11i:,.....,.... .....,::,......................,1t11111ttttttt111tttttft1t\n1tttt1tttttttt11ttttttttttttt1ii;;;:...........,:,,.....................,it111111ttttttt111ttttttt1t\n11t1111tttttt111111111tt1tttttttt11:...........,:,,.............. .;t11111111111111111111111111\n1111111111111111111111ttttttttttt11,.......... ,,................,:,,,:i1tttt1t111111111111111111111\n1111111111111111111111tttttttttt11i,...........,,,,..............:1t11ttttttttttt1111111111111111111\n111111111111111111111111tttttt1111;........... ,,:;,..............:11ttttttttttttt111111111111111111\n11111111111111111111111111tttt1111;........... ,,:;:...............:111tttttttttt11t1111111tttt11111\n1111111111111111111111111111111111;....,,......,,,::................i1ttttttttttttt1t11111ttttt11111\n1111111111111111111111111111111111;............:,,;:,...............;1tttttttttttttttttt11ttttt11111\n1111111111111111111111111111111111:............,,:;;:...............,1t1tttttttttttttttttttttttt1111\n","ttftffftttttttfffffttfLfttftttttttttt111tttt1111111tttt111111tttt111111tttttttttttttttttttt11111111t\nttfttttttttttttttftffLLftffffffffttttttt111111111ttfffft1ttt1111111111111111ttttttftttttttt111111ttt\nttftttttttttttttffffLftttfffffffLLLftt1tttttt111ttfffffftttttttt111111tttttffffftffffttttttt111tttt1\nttttttttttttttttfffLfttffffffLLffffttt1tttttt11tffffffffffttttttt11111tffffffffftttfffffttt11111tttt\nttttttttttttffffttfffttfffffffffttffftttt11111111i;i11ttt11tt1111t111111ttffffLLffttfLfft111111ttttt\nttttttttttffLLLLfttttffLLLfftttttfLLfttttttfti:::,,,,:;i1ttfttt11t111tt111tttffffftttftt1ttt11tttttt\nttttttttffLLLLLLLffttfLLLfttfffftfLLftttttft1;,,,,,,,,,,;tffffft11111tft11111ttffLfttt11tffftttttttt\ntttttttfffLLLLLLLLLfttfttttfLLfLftffttttfffti;:;;;;iii;::1fffffttt111ttt1tttt1ttfLLfttttfffffftttttt\ntttttttffLLLLLLLLLfttttffffffLfftfftttttfffi;;iiiii1111i:iffffftt11111111ttttttttttt1ttffffffffffttt\ntttfftfffLLLLLLLLLftffftfLftffffLLLftttttffi:;;;;iiiiiii:1ftttfftt1111ttt1ttt1ttttt111tffffffLfLfttt\ntffLLfffffLLLLLLLfftfLLftftfLfffLLLLttttt1t1i;;;;;ii;iiii1ttffft111111tfft1tt11tt1tt1ttfffLLLLLLffff\ntfffffttttfLLLffttttfffffttLLLLfLLLftttft11i1i;;;;i111iii111tt111t1111fffttfftt11tfftttfffLLLLLLLffL\ntttffttfftffLftttttttttttttfLLLffLLftttt1tti1i;;;;ii1iii1tt11111111111tffttffftttttttttttfLLLLfffffL\nttfLfffffffttffffffffffttftttfLfffLftttttfftt1;;;;iiii11ttt1ttftt11111tfttffftt111ttttttttfLLftftttt\nttffffffffftttfffffffffttffttfftttttttttfft111i;;;iiii1t111t1ttttt1111tt11ffttffttfffffLLfttffffffff\nttffffffffttttffffffffttttttttttfffttt1tft1111i;;;iiii111tfft11ttt111111t11tttfft1tfffffLLfttfLLLLLL\ntttffffffffttfffffffftt1ttt1111tffft11t111111iiii;;iii111fffft11111111ttft111ttt11tfffffLfftttfLLLLf\ntttttttttffttfffttttt1ttfft1t11ttfftttt1iiii1i;;;iii1i1i,;i1ttt1111111tttt111tttt111tffffffftfLLLLLf\ntfttttttttttttttttt11tfffftttt11tff11i;:,,,:11i;;iii;it;....,:;i111111ttt111t1ttftt11111ttfftffffftt\ntfttfffffttttttfffftttffffttfft1ii;:,,.....:11;:;;;;1tt;,,,.....,,;i11tt111tt1ttfffftttttt11ttttttft\nttttfffffftttffftfft11tfffttft1;,..........:1ii;;ii1tti,,,..........,it1111ttt1tfffttttffftt1ttfffLf\n1tttffffftt1ttfffft1111tfttft1i,............,:;ii;;i1i,..............:111111tt1tfft11tfffffft1ffffLf\ntftttffttttt11tttt1ttt11t1111t;..............,;1i;;;;,...............,1111111t11ftttttttfftt11tfffLf\ntfftttttttfftt1111ttttt11111tt:............. ,;ii;;;:,...............,i111tt11111tffftttttt1tttttfft\nttttttttttttttt11ttttttt11ttft,...............;;;;;:,.................ittttttt11ttffffftttttfffttttt\ntfffftttftttttt11ttttttt11ttf1,...............:;;;::,.......,,,.......;tttttfftttfffftfttttttttffttf\ntfffttttfffffft11ttttttt1111t1,...............:;;;::........,;i;:,....;t1ttfttt1tfffffffttfffffffttf\ntfffttttftffft111ttttttt11t111,...............,::::,........:iiiii:...;t11tt1111tffffLffttfffffffttf\ntffft1tttfffft111ttttttt11ttt1,..... ..........::::,.......,;iiii;,...it11111tt1tfffLfLfttfffftffttf\ntttttttttttttt111ttttttt11tt1:... .,..........,:::.........:;;i;,...,1t1t11tft11tfffffftttffttffttt\nttttt1tttttttt111ttttttt1tt1:,...:;ii:.........,::,.........,:;;:.....,it1111tt11ttttttt11tttttffttt\nttttt1tttttttt11ttttttttt1t;::,;iiii;,.........,:,,...........,,,......,;11111111ttttttt11tttttffttt\n1tttt1tttttttt11ttttttfft1ti:,,;;;:;;,.........,:,,.......... ..........:tttt1111ttttttt111tttttfttt\n11ttt1tttttttt11ttttttttttt1,.,::::;;:.........,:,,...............,....;ttttt1111ttttttt111ttttttt1t\n11tt11tttt1tt111111111111ttti:,,,::;:..........,:,,............ ......;ttttt11111111111111111111t111\n1111111111111111111111tttttttt1:,,,............,:,.............,. .,;11tttttt1111111111111111111111\n1111111111111111111111tttttttttt1:.............,,............ .11ii1ttttttt1111111111111111111111111\n111111111111111111111111tttttt111,.............,::,,...........ittttttttttttt11111111111111111111111\n11111111111111111111111111111111;..............,;;;:,..........:11tttttttttttttt11111111111111t11111\n11111111111111111111111111111111;..............,;;;:,...........:11tttttttttttttttt1111111ttttt11111\n11111111111111111111111111111111:..............,;;;;:...........:1ttttttttttttttttttttttt1ttttt11111\n11111111111111111111111111111111:..............,;i;::,..........,1tttttttttttttttttttttttttttttt1111\n","ttftffftttttttfffffttfffttftttttttttt111tttt1111111ttttt11111tttt111111tttttttttttttttttttt11111111t\nttfttttttttttttttftffLLftffffffffttttttt111111111ttfffffttttt111111111111111ttffttftttttttt11111tttt\ntfttttttttttttttffffLffttfffffffLLLft11tttttt111tfffffffttttttttt11111ttttfffffftfLLfttttttt1111ttt1\nttttttttttttttttfffLfttffffffLLffffttt1ttttttt1ttfffffffffttttttt1111ttfftffffLftttfffffttt11111tttt\nttttttttttttffffttfffttffffffffftttfttttt111ttt1ttffffffttttt1111t111111ttffffLLffttfLLft111111ttttt\nttttttttttffLLLLftttttfLLLfftttttffLftttttttt11ii11fffft1ttfftt11t111tt111ttfffLLftttftt1ttt11tttttt\nttttttttffLLLLLLLffttfLLLfttfffftfLLfttttt1i:;:,,::;i1tttffffftt11111tft11111ttfLLfttt11tffftttttttt\ntttttttfffLLLLLLLLLftffttttffLffftffttttfti:,,,,,,,,,:;tfffffttttt111tftttttt1ttffLfttttfffffftttttt\ntttttttffLLLLLLLLLfttttffftffLfftffttttttti:::::;;;;;,,1ffttffttt11111111ttttttttttt1ttffffffffffttt\ntttfftfffLLLLLLLLLfftfftffftffffLLLfttttti;iiiii11111;:1ttfffffftt1111ttt1ttt1tftttt11tfffffLLfLfttt\nttfLLffffLLLLLLLLfftfLLftttfffffLLLLttttt;;i;;iiiiii1;:i11tfffft111111ffft1tt11tt1tt1ttfffLLLLLLffff\ntfffffttttfLLLffttttfffffttLLLLfLLLftttft1ii;;;ii;;iii;tt11ttt111t1111tffttfftt11tfftttffLLLLLLLLffL\ntttffttfftffLftttttttttttttfLLLffLLftttt11ti;;;iiii1iii1ttt1ttt1111111tfftfffftttttttttttfLLLLffffff\nttfLffffffftttfffffffffttftttfLfffLfttttt11i;;;iii1iii1tttt1tfftt11111tfttffftt11tttttttttfLLffftttt\nttffffffffftttfffffffffttfftttfftffttttfft11;;;iiiii11tt111ttttttt1111tt1tffttffttfffffLLfttftfLffff\nttffffffffttttffffffffttttttttttfffttt1tft11i;iii11i11111tfft11ttt11111tt11tttfft1tffffLLLfttfLLLLLL\nttfffffffffttfffffffftt1ttt111tfffftttt11111i;i;iiii111ttfffft11111111tttt11tttt11tffffLLfftttfLLLLf\nttttttttfffttfffttttt1ttfftt111tfffttt111111;;i;;iii11i1ttffft11111111tttt111tttt11ttfffffLftfLLLLLf\ntfttttttttttttttttt11tfffftttt11tffttt1t1ii1;;i;;iiii1;,::i11tt1tt1111ttt11tt1tfftt11111ttfftfLffftt\ntfttfffffttttttfffft1tffffttfft11tft11i::,,1ii;:;ii;it:,,...,,:;i11111tt111tt1ttfffftttttt11tttttfft\nttttfffffftttffftfft11tfffttfttttt1i:,....,it1i;;;;i1t;,,,,.......,;111t111ttt1tfffttttffftt11tffLLf\n1tttffffftt1ttfffft111ttfttft11i;:,........i1tt1ii1tt1:,,...........:1111111tt1tfftt1tfffffft1ffffLf\ntftttffttttt11tttt1ttt11t1111t;,...........,;;;11;;;;:..............,1t111111t1tftttttttfftt11tfffLf\ntfftttttttfftt1111ttttt11111tt:..............:;ii;;:,................it111tt11111tffftttttt1tttttfft\nttttttttttttttt11ttttttt11ttf1,..............,;;;;::,................it1tttttt1ttfffffftttttfffttttt\ntfffttttffttttt11ttttttt11ttfi................;;;:::,,:;:,...........;tttttttftttffffffttttttttffttf\ntfffttttfffffft11ttttttt1111ti................:;:::,.:;iii;,.........:111ttfftt1tfffffffttfffffffttf\ntfffttttftffff111ttttttt11t11;................,;:::,.;iiiii:.........:tt11ttt111tfffLfLfttfffffffttf\ntffft1tttfffft111ttttttt1tttt;................,::::,.:;;ii;,.........;ttt1111tt1tfffLLLfttfffftffttf\ntttttttttttttt111tttt1tt11ttti.................:::,...,;;i;,.........itttt11ttt11ffffffftttfftfffttt\ntttttttttttttt111ttttttt11tt1;.................:::,....,:;:,.........,1tt1111tt11ttttttt11tttttffttt\nttttt1tttttttt11ttttttttt1t11:.................:::,.... ..............:1111111t11ttttttt11tttttffttt\n1tttt1tttttttt11ttttttfft11ti;,................,::,.........,......... :ttttt1111ttttttt111tttttfttt\n11tt11tttttttt11tttttttt1tt1iiii:..............::,,...................:1tttt111111tttttt111ttttttt1t\n11t1111tttttt1111111111t111iiiiii:.............,:,,,.................:1ttttt11111111111111111111t111\n11111111111111111111111t11i;;iiii;.............,:,,,........... .,;ttttttttt1111111111111111111111\n1111111111111111111111tt1t1i;;ii;,.............,,........... :i;;i1tttttttt1111111111111111111111111\n1111111111111111111111111ttti:,,...............,,,.......... :ttttttttttttttt1t111111111111111111111\n11111111111111111111111111111;::...............:;;::,........,i11ttttttttttttttt1111111111111tt11111\n111111111111111111111111111111t;...............:ii;;:,........;t1tttttttttttttttt1t1111111ttttt11111\n1111111111111111111111111111111:...............:;i;:::........:tttttttttttttttttttt1ttttt1ttttt11111\n1111111111111111111111111111111:............. ,;ii;;;:,..,,...:ttttttttttttttttttttttttttttttttt1111\n","ttfttfftttttttffffftfffftfftttttttttt111tttt1111111tttt111111tttt111111tttttttttttttttttttt11111111t\nttfttttttttttttttttffLLttffffffftttttt1t111111111tfffffftttt1111111111111111ttffttfttttttttt1111tttt\nttttttttttttttttffffLffttfffffffLLLftt1tttttt111tfffffffftttttttt11111tttttffffftfLLfttttttt111ttttt\nttttttttttttttttfffffttffffffLLffffttttttttttt1tffffffffffttttttt11111tfffffffLftttfffffttt1111ttttt\nttttttttttttffffttfffttfffffffffttffttttt1111tt1ttffffffttttt1111t111111ttffffLLffttfLLft111111ttttt\nttttttttttffLLLLfttttffLLLfftttttfLftttttttfffttttffffftttffftt11t111tt111ttfffLLftttftt1tt111tttttt\nttttttttffLLLLLLLffttfLLLfttfffftfLftttttt11i;;;;i1tftttffffffftt1111tftt1111tffLLfttt11tffftttttttt\ntttttttfffLLLLLLLLLftffttttffLLfftffttttti:::,,,,::;i1tffffffffttt111tft1tttt1ttffLfttttfffffftttttt\ntttttttffLLLLLLLLLfttttffftffLfftfftttt11;,,,,,,,:,,,;tffffffffttt1111t11ttttttttttt1ttffffffLfffttt\ntttfftfffLLLLLLLLLftffftfLftffffLLLftttt1i;;;;iiiii:,:1tttfffffftt1111ttt1ttt1tfttt111tfffffLLfLfttt\nttfLfffffLLLLLLLLfftfLLftttfLfffLLLLttt1i1iiiii1111i::1111ttffft111111ffft1tt11tt1tt1ttfffLLLLLLffff\ntfffffttttfLLLffttttfffffttLLLLfLLLftttt11;;;iiiiiii:;ttt111tt111tt111tffttfftt11tfftttffLLLLLLLLffL\ntttffttffttfLftttttttttttttfLLLffLLftttt1i;;;iii;iii;ittfft11tt1111111tfftfffftttttttttttfLLLLffffff\nttffffffffftttfffffffffttfttfLLfffLfttt111;;;i111111iitfttt1tfftt11111tfttfffttt1tttttttttfLLftfttft\nttffffffffftttfffffffffttffttffftfftttttt1i;;iiiii1i1tft11tttttttt1111tt1tffttffttfffffLLfttftffffff\nttffffffffftttffffffffttttttttttfffttt1ttti;;;i111iitt111tfft11ttt111111t1ttttfft1tffffLLLfttfLLLLLL\ntttffffffffttfffffffftt1ttt111tfffftttt111ii;iii;ii11111tfffft11111111tfft11tttt11tffffLLfftttfLLLLL\nttttttttfffttfffttttt1ttfft1111tffftttt1111;;;i;;;i111ttttffftt1111111tttt111tttt11ttfffffLftfLLLLLf\ntfttttttttttttttttt1ttfffftttt11tfft111tt1i;;;i;;i1i1;i11tffftt11t1111ttt11tt1tfftt11111ttfftfLffftt\ntfttffffftt11ttfffftttffffttfft11tft11ii;ii;;;;:;iii1,.,,,:;iii1ttt111tt111tt1ttfffftttttt11ttttfftt\nttttfffffftttffftfft11tfffttftttttt1;:,..:11;;i;;;;11:,,,.....,,:i1111tt111ttt1tffftttttfftt1ttffLLf\ntt1tffffftt1ttfffft1111tfttft1111i:,.....,i11iiiii1tt:.,..........:111111t11tt1tffft1tfffffft1fLffLf\ntftttffttttt11tttt1ttt11t11111;:,.........;i11i1111t;..............;t11111111t1tfttttttfffftt1tfffLf\ntfftttttttfftt1111ttfft111111:.............,::;ii;;:...............:111111ttt111ttffftttfft1tttttfft\nttttttttttttttt11ttttttt11tt1,..............::;;;;;,...............,1111tttttt11tffLffftttttfftttttt\ntfffftttffttttt11ttttttt11tfi,..............,::;;::,,...............i111ttttfftttffffffttttttttffttf\ntfffttttfffffft11ttttttt111ti................::::::,:;;::,..........it111ttffttttfffLfLfttfffffffttf\ntfffttttftffff111ttttttt1tt1;................,;::::.:iiiii,.........;11111ttt11ttfffLfLfttfffffffttf\ntffft1tttfffft111ttttttt11tti,................::::,.:ii;ii:.........;tttt1111ttttfffLLLfttfffftffttf\ntttttttttttttt111ttttttt1ttf1.................,:::,.,:;iii:.. ......:ttttt11tft11tfffffftttfftfffttt\ntttttttttttttt111ttttttt1ttt;::...............,:::,. .:;ii:..........;ttt1111tt11tttttft11tttttffttt\nttttt1tttttttt11ttttttttt1t111i;,..............:::,....,::,...........;1111111t11ttttttt11tttttffttt\n1tttt1tttttttt11ttttttfftt1iiiiii:.............:::,.... ............. :ttttt1111ttttttt111ttttffttt\nt1ttt1tttttttt111ttttttttt1i;iiii;,............,:,,,................. ,1tttt111111tttttt111ttttttt1t\n11t1111tt1ttt11111111111111i;iii1i,............,::,,.................:1tttt11111111111111111111tt111\n11111111111111111111111111t1;;;;;,.............,:,,,.......... .:1tttttt111111111111111111111111\n1111111111111111111111111t11;,.................,:,,..........,;:::;1ttttttt1111111111111111111111111\n11111111111111111111111111111:..,..............,,............:ttttttttttttttttt111111111111111111111\n111111111111111111111111111111ii;..............,::,...........i111ttttttttttt11111t11111111111111111\n111111111111111111111111111111t;...............,;ii;::,.......:1ttttttttttttt11t1tt1111111ttttt11111\n111111111111111111111111111111i,...............:;ii;;;:,......,1ttttttttttttttttttt111111tttttt11111\n11111111111111111111111111111ti,...............:;ii;;;;:,..:..,1ttttttttttttttttttttttttttttttt11111\n","ttfttfffttttttffffttfffftfftttttttttt111tttt1111111tttt111111tttt111111tttttttttttttttttttt1111111tt\nttfttttttttttttttttffLLttffffffffftttttt111111111tfffffftttt1111111111111111ttftttfttttttttt1111tttt\nttttttttttttttttffffLffttfffffffLLLftt1tttttt111tfffffffftttttttt11111tttttffffftfLLfttttttt1111ttt1\nttttttttttttttttfffffttffffffLLffffttttttttttt1tffffffffffttttttt1111ttfffffffLftttfffffttt1111ttttt\nttttttttttttffffttfffttfffffffffttffftttt1111tt1ttffffffttttt1111t111111ttffffLLLfttfLLft111111ttttt\nttttttttttffLLLLfttttffLLLfftttttfLftttttttfffft1ttfffftttffftt11t111tt111ttfffLLftttftt1ttt11tttttt\nttttttttffLLLLLLLffttfLLLfttfffftfLftttttfttttttttttftttffffffftt1111tftt1111tffLLfttt11tffftttttttt\ntttttttfffLLLLLLLLLftffttttffLffftffttttt1ii::::;111tttffffffffttt111tft1tttt1ttffLfttttfffffftttttt\ntttttttffLLLLLLLLLfttttffffffLfftffttttt1:,,,,,,,,:;ittffffffffttt1111t11ttttttttttt1ttffffffffffttt\ntttffttffLLLLLLLLLftffftfLftffffLLLftttti::,::::::,,,;ttttfffffftt1111tft1ttt1tffttt11tfffffLLfLfttt\nttfLffffffLLLLLLLfftfLLftttfLfffLLLfftt11iiiii111i;,,;t111tfffft111111ffft1tt11ttttt1ttfffLLLLLLffff\ntfffffttttfLLLffttttfffffttLLLLfLLLftttt1iiiii1111i:,iftt111ttt11tt111tffttfftt11tfftttffLLLLLLLLffL\nttttftttttffLftttttttttttttfLLLffLLftttti;;;ii;iiii::1ttttt11tt1111111tfftfffftttttttttttfLLLLffffff\nttfLfffffffttffffffffffttfttfLLfffLfttt1i;;i1i;iiii:;tftttt1tfftt11111tfttfffttt1tttttttttfLLftftttt\nttffffffffftttffffffffftfffttffftffttttti;;iii111i1iitft11tttttttt1111tt11ffttffttfffffLLfttftfffffL\nttffffffffftttffffffffttttttttttfffttttti;;;ii1111ii1t111tfft11ttt111111t11tttfft1tfffffLLfttfLLLLLL\ntttffffffffttfffffffftt1ttt111tfffftttt1i;;;iiiiii11111ttfffft11111111tfftt1tttt11tfffffLfftttfLLLLf\nttttttttfffttfffttttt1ttfft1111ttffttt111i;;ii;;;itt11ttttfffft1111111tttt111tttt11tttfffffftfLLLLLf\ntfttttttttttttttttt11tfffftttt11tfft1t1t1i;;;ii;;it111ttttffftt11t1111ttt111t1tfftt11111ttfftfLffftt\ntfttffffftt11ttfffftttffffttfft1ttft11ii1;;;;i;:;i1;;i11tttft111tt1111tt111tt1tffffftttttt11ttttfftt\nttttfffffftttffftfft11tfffttftttt1i;:,,:1i;;;;i;;;1;.,,,;;i11111111111tt111ttt1tffftttttfftt1ttffLLf\n1tttffffftt1ttfffft111tffttft1ii:,.....,11iiiiiii1t:,,,.....,:;i111111111t11tt1tffft1tfffffft1fLffLf\ntftttffttttt11tttt1ttt11t11i;:,........,i1tt1ii11tt:,,,,........:t11111111111t1tfftttttfffftt1tfffLf\ntfftttttttfftt1111ttfftt11i,............::;;iiiii1;,,............it1111111ttt111ttffftttfft1tttttfft\nttttttttttttttt11ttttttt11;...............:;;;;:;;...............:111111tttttttttffLffftttttfftttttt\ntfffftttffttttt11ttttttt11:...............,;;;;;;:,..............,111111ttttfftttffffffttttttttffttf\ntfffttttfffffft11ttttttt11,...............,:;;;;:,...............,1111111ttffttttfffLfLfttfffffffttf\ntfffttttftffff111ttttttt11:...... ........:;;;;:,...............,11111111ttt1tttfffLfLfttfffffffttf\ntffft1tttfffft111ttttttt11:.......:;;;:....,;;::::.......,::,....,1tt11tt1111tt1tfffLLLfttfffftffttf\ntttttttttttttt111ttttttt11:.....:;;;;;:.....:;:::,.......,:iii;,.,1t1t11tt11tft1tffffffftttfftfffttt\ntttttttttttttt111ttttttt1i,.....:;:;;;:.....,::::,........;;iii;..;t1111t1111tt11tttttftt1tttttffttt\nttttt1tttttttt11tttttttt1i,.....:::;;;,......::::,.......,;;ii;:..,;1t11111111t11ttttttt11tttttffttt\n1tttt1tttttttt11ttttttttti....,,,,:;;,.......,:::,,.......,;;;;,....,it11tttt1111ttttttt111ttttffttt\n11tt11tttttttt111ttttttt1:,,.,,,..,,,.........::::,........,:;,..... ,1tttttt11111ttttt1111ttttttt1t\n1111111tttttt11111111111i,,..,,,.... .........::::,..................itttt111111111111111111111tt111\n1111111111111111111111111,...,,...............,::,,,...........,,...;tttttt1111111111111111111111111\n11111111111111111111111111,..... .............,::,,,......... . .:1tttttt1111111111111111111111111\n1111111111111111111111111ti,,,.,,..............::,,..........,,,::i1tttttttttt1111111111111111111111\n11111111111111111111111111111i11;..............:,............,1tttttttttttttt11111111111111111111111\n1111111111111111111111111111111i...............:;:::::,.......;tttttttttttttt11t1ttt111111ttttt11111\n1111111111111111111111111111111:...............:iiii;;::,......ittttttttttttttttttttt1111tttttt11111\n1111111111111111111111111111111,...............:iiiii;;:,......,1tttttttttttttttttttttttttttttt11111\n","tttttfftttttttffffftfffftfftttttttttt111tttt1111111tttt111111tttt111111tttttttttttttttttttt1111111tt\nttfttttttttttttttttffLLftfffffffffttt1tt111111111tfffffftttt1111111111111111ttftttftttttttt11111tttt\nttttttttttttttttfffffftttfffffffLLLftt1tttttt111tfffffffftttttttt11111tttttffffftfLLfttttttt1111ttt1\nttttttttttttttttfffffttffffffLLffffttttttttttt1tffffffffffttttttt11111tfffffffLfttffffffttt1111ttttt\nttttttttttttffffttfffttfffffffffttfftttttt11ttt1ttfffffftttttt11tt111111ttffffLLLfttfLLft111111ttttt\nttttttttttffLLLLfttttffLLLfftttttfLftttttttfffft1tffffftttffftt11t111tt111ttfffLLffttfft1tt111tttttt\nttttttttfffLLLLLLffttfLLLfttfffftfLfttttttffffffttttftttffffffftt1111tftt1111tffLLfttt11tffftttttttt\ntttttttfffLLLLLLLLLftffttttfLLffftfftttttftttttttffttttffffffffftt111tftttttttttfLLfttttfffffftttttt\ntttttttffLLLLLLLLLfttttffffffffftffttttttiii;::::i1ttttffffffffftt1111t11ttttttttttttttffffffffffttt\ntttffttffLLLLLLLLLftffftfLfttfffLLLfttt11:,,,,,,,:::itttttfffffft11111tft1ttt1tffttt11tfffffLLfLfttt\ntffLffffffLLLLLLLfftfLLftttfLfffLLLLfttt1i::::,,::,,,itt11tfffft111111ffft1tt11tt1tt1ttffLLLLLLLffff\ntfffffttttfLLLffttttfffffttLLLLfLLLftttttiiiiii1i;:,,:ttt111ttt11tt111tffttfftt1ttfftttffLLLLLLLLffL\nttttftttttffLftttttttttttttfLLLffLLftttti;iiii111i;:,iftftt11ttt11111tffftfffftttttttttttfLLLLffffff\nttfLffffffftttfffffffffttfttfLLfffLfttt1;;;ii;iiii;::1ffttt1tffft11111ffttfffttt11ttttttttfLfftftttt\nttffffffffftttffffffffftfffttffftfftttt1;;i1i;;iii;:itft11tttttfttt111tt1tffttffttfffffLLftfftfffffL\nttffffffffftttffffffffttttttttttffftttt1;;iiii111iii1t111tfft1tttt111111t1ttttfftttfffffLLfttfLLLLLL\ntttffffffffttfffffffftt1ttt111ttffftttti;;iiiiiiiii1111ttfffft11111111tffttttttt11tfffffLfftttfLLLLL\nttttttttfffttfffttttt1ttfft1111ttfftttt1;;;iiii;;itt11tffffffft1111111tttt111tftt11tttfffffftfLLLLLf\ntfttttttttttttttttt11tfffftttt11tfftttt1i;;;;ii;;it1111tftfffft11t1111ttt111t1tfftt11111ttfftfLffftt\ntfttfffffttt1ttfffftttffftttfft11tft111i;;;;;ii;;i111111tttft111tt1111ttt11tt1tffffftttttt11ttttffft\nttttfffffftttffftfft11tfffttfttt11i;;:ii;;;;iiiii1;11tt111t11111tt1111tt111tft1tffffttfffftt11tffLLf\n1tttffffft11ttfffft1111tfttftii;:,....;1i;;;;ii111,,:;i1tt11tt11111111111t11tt1tffft1tfffffft1fLffLf\ntftttffttttt11ttt11ttt1111i;:,.......,i1tiiii;;11i,,,..,:;i1t1t111t1111111111t1tfftttttfffftt1tfffLf\ntfftttttttffttt111ttttt1i:...........,ii111iii11i:.,,......,:;1t111111111tttt111ttfLftttfftttttttfft\nttttttttttttttt11tttt11t;..............,::;;i1ti:,............,1t1111111tttffttttffLfffttttffffttttt\ntfffttttfftfttt11tttttt1,...............:;:;;;;;:..............;tt111111tttffftttffffffftttttttffttf\ntfffttttfffffft11tttttt1................,;;;;;;;:..............:t11111111ttffttttffLLfLfttfffffffttf\ntfffttttfttftt111tttttti............... .:;;;;;:,..............:1111111111tttttttffLLfLfttfffffffttf\ntffft1ttttttft111tttttt;............. .:;;;;;;:::..............:111tt11tt111ttt1tfffLLLfttfffftffttf\ntttttttttttttt111ttttt1,..............:;i;;i;::::..............:1ttt1111tt11tff1tffffffftttfftfffttt\nttttttttttt1tt111ttttt;..............:;;;;;i:::::..............;1111111111111tt11tttttftt1tttttffttt\nttttt1tttttttt11tttttt:..............:;;;::;:::::..............;t1111111111111t11ttttttt11tttttffttt\n1tttt1tttttttt11ttttt1,........... .,,:,...,:::::..............,11i;;i111tttt1111ttttttt111ttttffttt\n11tt11ttttttt1111tttt;............,..... ...,::::...............:i;:;;i1ttttt11111tttttt111ttttttt1t\n11111111t1tt111111111,............,.........,::::,..............,:::;ii1tt111111111111111111111tt111\n111111111111111111111,............ .........,,,::,..............::::;i11tt11111111111111111111111111\n1111111111111111111111:....... .............,,:,,..............,::::i111t11111111111111111111111111\n11111111111111111111111:....,,,,.............,:::,,..................,1t1111111111111111111111111111\n111111111111111111111111iiii11t; .............,:,..,........ ..:1tttttt11111111111111111111111\n111111111111111111111111111111t:...............:,,,:,,......,,,,,:;;1tttttttt1t111tt1111111tttt11111\n111111111111111111111111111111t: .............::;ii;::,.....,i111ttttttttttttttt11ttt111111tttt11111\n111111111111111111111111111111t:..............:;;iiii;:,.....,i1ttttttttttttttttttttttttttttttt11111\n","tttttfttttttttffffffffffffftttttttttt111tttt1111111ttttttt111tttt111111tttttttttttttttttttt1111111tt\nttfttttttttttttttttffLLftfffffffffttt1tt111111t11tfffffftttt1111111111111111ttftttftttttttt111111ttt\nttttttttttttttttffffLftttfffffffLLLfttttttttt111tfffffffftttttttt11111tttttffffftffLfttttttt11111ttt\nttttttttttttttttfffffttffffffLLffffttt1ttttttt1tffffffffffttttttt11111tfffffffLffttfffffttt1111ttttt\nttttttttttttffffttfffttfffffffffttfftttttt11ttt1ttfffffftttttt11tt111111ttffffLLLfttfLLft111111ttttt\nttttttttttffLLLLfttttffLLLfftttttfLftttttttfffft1ttfffffttffftt11t111tt111ttfffLLftttftt1ttt11tttttt\nttttttttfffLLLLLLffttfLLLfttfffftfLfttttttffffffttttffttffffffftt1111tftt111ttffLLfttt11tffftttttttt\ntttttttfffLLLLLLLLLfttfttttfLLffftfftttttfftffffffftttfffffffffftt111tft1tttttttfLLfttttfffffftttttt\ntttttttffLLLLLLLLLfttttffffffffftfftttttt1iii::;i1ttttfffffffffftt1111t11ttttttttttttttffffffffffttt\nttttfttfLLLLLLLLLLfftfftfLfttfffLLLfttt11:,::,,,,,:;1tttttfffffftt1111tft1ttt1tffttt11tfffffLLLLfttt\nttffffffffLLLLLLLfftfLLftttfLLffLLLffttt1;:,,,,,,,,,;ttt11tfffft111111ffft1tt11ttttt1ttffLLLLLLLLfff\ntfffffttttfLLLffttttfffffttLLLLfLLLftttt1iiiiiiii;:,,iftt111ttt11tt111tffttfftt11tfftttffLLLLLLLLffL\nttttftttttffLftttttttttttttfLLLffLLfttt1i;iii1111i:,:1ftfft11ttt111111tfftfffftttttttttttfLLLLffffff\nttfLffffffftttfffffffffttffttfLfffLfttt1;;;i;iii1i:,;tffttt1tffft11111tfttfffttt11ttttttttfLLftfttft\nttffffffffftttffffffffftffftttfffffttt11;;;ii;;iii::1fft11tttttfttt111tt1tffttffttfffffLLffffffffffL\nttffffffffftttffffffffttttttttttfffttt1i;;iiiii11i;itt111tfft1tttt111111t1ttttfftttffffLLLfttfLLLLLL\ntttffffffffttfffffffftt1ttt111ttfffttt1i;;iiiiiiiii1111ttfffft11t11111tffttttttt11ttffffLfftttfLLLLL\nttttttttfffttfffttttt1ttfft1111ttffttt1i;;;iiii;;;1t11tffffffft1111111ttttt1ttfft11ttffffLfftfLLLLLf\ntfttttttttttttttttt11tfffftttt11tfftt111;;iiiii;;;1111ttftfffft11t1111tttt1tt1tffttt1111ttfftfLffftt\ntfttfffffttt1ttftfftttffftttfft11tft1i1i;;;;iii;;;111111tttft111tt1111ttt11tf1tffffftttttttttttttfft\n111tfffffftttffftttt11tfftttfttt11i;;;1;;;;;iiii;i1t11t111t11111tt1111tt111tft1fffffttfffftt11tffLLf\n1t1tffffft11ttffttt1111tftttti;:,,...:1i;;;;iiii1i:;i1ttt111tt11111111111t11tt1tffft1tffffffttfLffLf\ntftttfftt11t11ttt11ttt111i;:,,.......:11ii;;ii;11i,.,,:;11tt11tt11t1111111111t1tffttttffffftt1tfffLf\ntffttttttttftt1111ttttt1:............:1111iiii1ti;,,....,,;i1tttt11111111tttt111ttfLffttfftttttttfft\nttttttttttttttt111ttt1t;...............,:;;i1tt1;,..........,itttt111111tttttttttffLfffttttffffttttf\ntfffttttfftfttt11ttttt1,................:::::;i;:,...........,1ttt111111ttttfftttffffffftttttttffttf\ntffft1ttffffff111ttttti.................,;;;;;;;:,...........,1t111111111ttffttttffLLfLfttfffffffttf\ntffft1ttfttttt111ttttti................,,;;;;;;::,............it1111111111tttttttffLLfLfttfffffffttf\ntffft1tttttttt111ttttt;.............:;iii;;:;;:::,............it1111111tt111tttttfffLLLfttfffftffttf\nttttt1tttttttt111tttti,............,;;iiii::;::::,...........,1ttttt111ttt11tft1tfffffLftttfftfffttt\nttttt1tttt11tt111ttt1:.............:;;;iii;::::::............,1tttt1111111111tt1tttfttftt1tttttffttt\nttttt1tttttttt11tttti..............,;;;;:,,:::,,:............:tt11t11111111111t11ttttttt11tttttffttt\n1tttt1tttttttt11tttt:............. ,::,. .::,,,:........... :t1111111t111ttt1111ttttttt111ttttffttt\n11tt11tttttt111111ti.......................,:::::.............it111t11111tttt1111tttttt1111ttttttt1t\n1111111111111111111,.............,.........,:::::.............:1t11ii;:;11111111111111111111111tt111\n1111111111111111111:........................,,:::..............;ii;:;:;ii111111111111111111111111111\n11111111111111111111:....... ..............,,,:,...............,:::::;i1111111111111111111111111111\n111111111111111111111:......,,..............,,,:,...............:::;::;i11t1111111111111111111111111\n1111111111111111111111iiiiii1;...............,,,,.,..............,::::;11111111111111111111111111111\n11111111111111111111111111111;................,,:,,,...... .it1111111111111111111111111111\n1111111111111111111111111111t;...............;i;;;::,.....,,.....,,,;i1ttttttttt11tt111111ttttt11111\n1111111111111111111111111111t;...............:i;;i;::,....:i111111tttttttttttttttttttttttttttttt1111\n","tttttfttttttttffffftfffftfftttttttttt111tttt1111111ttttttt111tttt111111tttttttttttttttttttt1111111tt\nttfttttttttttttttttffLLftfffffffftttt1t1111111t11tfffffftttt1111111111111111ttftttftttttttt111111ttt\nttttttttttttttttffffLftttfffffffLLfftt1tttttt111tfffffffftttttttt11111tttttffffftffLfttttttt11111ttt\nttttttttttttttttfffffttffffffLLLfffttt1ttttttt1tffffffffffttttttt11111tfffffffLffttfffffttt1111ttttt\nttttttttttttffffttfffttffffffffftttftttttt11ttt1ttfffffftttttt11tt111111ttffffLLLfttfLLft111111ttttt\nttttttttttffLLLLfttttffLLLfftttttfffttttt1tfffft1ttfffffttfffft11t111tt111ttfffLLftttftt1ttt11tttttt\nttttttttfffLLLLLLffttfLLLfttfffftfLftttttttfffffftttffttffffffftt1111tftt111ttffLLfttt11tffftttttttt\ntttttttfffLLLLLLLLLfttfttttfLLffftffttttt111i;iitfftttfffffffffftt111tft1tttttttfLLfttttfffffftttttt\ntttttttffLLLLLLLLLfttttffffffffftfftttt1;:,::,,,:;ittttffffffffftt1111t11ttttttttttttttffffffffffttt\ntttffftfLLLLLLLLLLfttfftfffttfffLLLftt1i:,,,,,,,,,,:1tttttfffffftt1111tft1ttt1tffttt11tffffLLLLLfttt\nttffffffffLLLLLLLfftfLLftttfLLffLLLftt1i;;;;;;;i;:,:tftt11tfffft11111tffft1tt11ttttt1ttfffLLLLLLLfff\ntfffffttttfLLLffttttfffffttLLLLfLLLft1;iiiii11111i::tffft11tttt11t111tfffttfftt1ttfftttffLLLLLLLLffL\ntttfftttttffLftttttttttttttfLLLffLLftt11;;;iiiiiii:;tffffft11tt1111111tfftfffftttttttttttfLLLLffffff\nttfLffffffftttfffffffffttffttLLfffLft11i;;;;i;;iii;tffffttt1tffft11111tfttfffttt1tttttttttfLLftffttt\nttffffffffftttffffffffftffffttfftfttt11i;;;i1iii1iitffft11tttttfft1111tt1tffttffttfffffLLfffftfLffLL\nttffffffffftttffffffffttttttttttffftt11i;;;iii111ii1tt111tfft1ttft111111t1ttttfftttffffLLLfttfLLLLLL\ntttffffffffttfffffffftt1ttt111ttffftttti;;;;iiiiii11111ttfffft11t11111tfftttttttt1tfffffLLftttfLLLLf\nttttttttfffttfffttttt1ttfft1111ttffttt1i;;;iiii;;itt11tffffffft1111111ttttt1ttfft11ttffffLfftfLLLLLf\ntftttttttttttt1tttt11tfffft1tt11tfft111;;;;;iii;;it111ttfffffft11t1111tttt1tt1tffftt1111ttfftfLffftt\ntfttffffftt11ttftfftttffftttfft11tti;;1;;;:;iii::i111111ttfft111tt1111ttt11tf1tffffftttttttttttttfft\n111tfffffftttffftttt11tfftttft1i;:,..,1i;;;;iii;i;:;;1t111t11111tt1111tt111tft1fffffttfffftt11tffLLf\n1tttffffft11ttffftt1111tt1ii:,,......,i1i;;;ii;11;...,:;i111tt11111111111t11tf1tfffttfffffffttfLffLf\ntfttttftt11t11ttt11ttt11;,,..........,11t1iiii1t1:,,.....,:i111111t1111111111t1tffttttffffttt1tfffLf\ntffttttttttfttt111ttttti,.............:;;iii11t1i,,.........,ittt11111111tttt11tttfLffttffttttttffft\nttttttttttttttt111tttt1:................:;;;;;i;:,...........:ttt1111111tttffttttffLLffttttffftttttf\ntfffttttftttttt11ttttti.................,;;;ii;;:............,1ttt11111ttttffftttffffffttttttttffttf\ntffft1ttfffftf111ttttti..................:;;;i;;:,...........,1tt11111111ttffttttffLLfLfttfffffffttf\ntffft1ttfttttt111ttttt;..................,;;;;;::,...........,1t1111111111tttttttffLLfLfttfffffffttf\ntffft1tttttttt111ttttt;...........,,.....,;;:;:::............,111111111tt111tttttfffLLLfttfffftffttf\nttttt1tttttttt111tttti,........,;ii:......:;:::::............,ittttt111ttt11tft1tfffffLftttfftfffttt\nttttt1tttt111t111tttt;........:;;;;:,.....,;:::::.............ittttt1111t1111tt1ttfttttttttttttffttt\nttttt1tttttttt11tttt1,.......,:::;;;,......::::::.............;tt1t1111111ttt1tttfttttttt1tttttffttt\n1tttt1tttttttt11tttti.........,:::;:.......,:::::..........,,:;1t11111111ttff1111ttttttt111ttttffttt\n111111tttttt111111t1,..........,:::........,:::::..........,:;;i1111t111ttttt11111ttttt1111ttttttt1t\n1111111111111111111;............,,.........,::::,.........,:;;;i1111111111111111111111111111111tt111\n11111111111111111111:.......................,:::,.. ......,:;;ii111111111111111111111111111111111111\n111111111111111111111:.......,..............,:::,..........,::i11t1111111111111111111111111111111111\n1111111111111111111111:,,..,, ..............,,,::,............,1111111111111111111111111111111111111\n1111111111111111111111111i11:...............,..,:,,..... ..:1t11111111111111111111111111111111111\n111111111111111111111111111;................,::::,,.....::::;i11tttt111111t1111111111111111111111111\n111111111111111111111111111,.................ii;;::,....:1tttt1ttttttttttttttttt11tt111111ttttt11111\n1111111111111111111111111ti..................;i;;;:,.....;t1ttttttttttttttttttttt1ttttttttttttt11111\n","ttffftfffttttttttftttfffttftttttttttt111tttt111111tttttttt111tttt111111tttttttttttttttttttt1111111tt\nttfftttttttttttttttffLLftfffffffftttt1t111t111t11tfffffftttt111111111111111tttftttfttttttttt1111tttt\nttttttttttttttttffffLftttfffffffLLffttttttttt111tfffffffftttttttt11111ttttfffffftfLLfttttttt111tttt1\nttttttttttttttftfffffttffffffLLffffttttttttttt1tffffffffffttttttt1111ttfffffffLfttffffffttt1111ttttt\nttttttttttttffffttfffttffffffffftttfttttt1111tt1ttffffffttttt1111tt11111ttffffLLffttfLLft111111ttttt\nttttttttttffLLLLfttttffLLLfftttttffftttt11tttffttttfffffttfffft11t111tt111ttfffLLftttftt1ttt11tttttt\nttttttttfffLLLLLLffttfLLLfttfffftfLftt11ii;i;;ii1tttffttffffffftt1111tftt111ttffLLfttt11tffftttttttt\ntttttttfffLLLLLLLLLfttfttttfLLffftfftt1:,,,,,,,,:iftttfffffffffftt111tft1tttttttfLLfttttfffffftttttt\ntttttttffLLLLLLLLLfttttffffffffftff1i;;:,,,,,,,,:;ttttfffffffffftt1111t11ttttttttttttttffffffffffttt\ntttffftfLLLLLLLLLLfttfftfffttfffLLLt;,,:;;;;;iiii:ittttttffffffftt1111tft1ttt1tftttt11tffffLLLLLfttt\nttffffffffLLLLLLLfftfLLftttfLLffLLLfi,:iiii111111;1ffftt11tfffft11111tffftt1t1tttttt1ttfffLLLLLLffff\ntfffffttttfLLLffttttfffffttLLLLfffffi:;;;;;iiiiiiitffffft11tttt11t111tfffttffft1ttfftttffLLLLLLLLffL\ntttfftttttfffftttttttttttttfLLLffLLti;;;;;i;;iiii1ftffffftt11tt1111111tfftfffftttttttttttfLLLLffffff\nttfLffffffftttfffffffffttffttfLfffLtii;;;ii;;i1111tfffffttt1tffft11111tfttffftttttttttttttfLLfffffft\nttffffffffftttffffffffftffffttfftftt1ii;;;;;;iii11ttffft11tttttfftt111tt1tffttffttfffffLLffffffLffLL\nttffffffffftttffffffffttttttttttffftt11i;;;;;i111111tt111tfft1ttft11111tt1ttttfftttffffLLLfttfLLLLLL\ntttffffffffttfffffffftt1ttt1111tfffttti;;;;;;iiiii11111ttfffft11t11111tfftttttttt1ttfffLLLftttfLLLLf\nttttttttfffttfffttttt1ttfft11111tfft11i;;;:;;ii;;itt11ttfffffft1111111ttttt1ttfft11ttffffffftfLLLLLf\ntftttttttttttt1tttt11ttffft1tt11ttti::i;;;:;iii;;;i;i1ttftfffft1tt1111tttt1tt1tffftt1111tffftfLffftt\ntfttffffftt11ttftfft1tffftttff1i;:,...;1;;;;;i;:;i,..,:;i1tft111tt1111ttt11tf1tffffftttttttttttttfft\n111tfffffftttffftttt11tfft11i;:,......,11;iii;;iii,,,....,:;i1111t1111tt111tft1fffffttfffftt11tffLLf\n1tttffffft11ttffftt1111t1;;,..........,i1t11ii11i:.,........,111111111111t11tt1tfffttfffffffttfLffLf\ntfttttftt11t11ttt11ttt11:..............;iiiiiii11,,,......,,,itt11t1111111111t1tffttttffffftt1tfffLf\ntffttttttttfttt111ttttt;................,;;;i;;ii,...........;ttt11111111ttt111tttfLffttfft1ttttffft\nttttttttttttttt111ttt11:.................:;;;i;::............;ttt1111111tttftttttffLLffttttffffttttf\ntfffttttftttttt11ttttt1,.................,;;;;;;:............:ttttt11111tttffftttffffffftttttttffttf\ntffft1ttfffftf111ttttt1,..................:;;;:::............:1tt11111111ttffttttffLLfLfttfffffffttf\ntffft1tttttttt111ttttti...................,;;::::............,111111111111tttttttffLLfLfttfffffffttf\ntffft1tttttttt111ttttt:...................,::::::,:::,.......,1t1t11111tt111tttttfffLLLfttfffftffttf\nttttt1tttttttt111tttt1,....................,::::::;;;ii:......ittt11111ttt1ttff1tfffffLftttfftfffttt\nttttt1ttttt11t111tttti.....................,:::::,;;;ii;,.....itttt1111tt111tttttttttttttttttttffttt\nttttt1tttttttt11ttttt;........ .............:::::,;;;ii;,.....:1t1t1111111tttttttfttttttt1tttttffttt\n1tttt1tttttttt11ttttt:.... :i;:.............:::::..,;;i:.......it11111111ttff1111tfttttt11tttttffttt\n11tt11tttttt1111111t1,...,;iiii;, ..........::::,. .,:,......;111111111ttttt1111ttttttt111ttttttt1t\n11111111111111111111i..,.,;;;iii;...........:::::.......,....itt1111111111111111111111111111111tt111\n11t111111111111111111;....::;;ii;...........::::,..........,;111111111111111111111111111111111111111\n1111111111111111111111, ...,:;;;,............,,:,.....,,:;11tt11111111111111111111111111111111111111\n1111111111111111111111i:,....... ............,,:,.....:1tttttt11111111111111111111111111111111111111\n1111111111111111111111111;.,. ..............;;;:,,....,it11ttt11111111111t11111111111111111111111111\n111111111111111111111111i,..................;ii;:,.....,1t1ttttt1111111111t1111111111111111111111111\n111111111111111111111111:...................;ii;;:......;ttttttttttt11tttt1t111111tt11111111ttt11111\n111111111111111111111111:...................:i;:;;,.....:t1tttttttttttttttttttttt1tttttttttttttt1111\n","ttffftfffttttttttttttfffttftt111ttttt111tttt111111ttttttttt11tttt111111ttttttttttttttttttttt111111tt\nttfftttttttttttttttffLLftfffffffftttt111111111t11tffffffttttt11111111111111tttftttfttttttttt1111tttt\nttttttttttttttttffffLftttfffffffLLfft111ttttt111tfffffffftttttttt11111ttttfffffftfLLfttttttt111ttttt\nttttttttttttttttfffffttffffffLLLfffttt1ttttttt1tffffffffffttttttt1111ttffffffLffttffffffttt1111tttt1\nttttttttttttfffftttffttffffffffftttftt1t1iii11111tfffffftttttt11tt111111ttffffLLffttfLLft111111ttttt\nttttttttttffLLLLfttttffLLLfftttttffft11i:,,,::::;1tfffftttfffft11t111tt111ttfffLLfttfftt1ttt11tttttt\nttttttttfffLLLLLLffttfLLLfttfffftfft1;:,,,,,,,,,:tttttttffffffftt1111tftt111tttfLLfttt11tffftttttttt\ntttttttfffLLLLLLLLLfttfttttffLfftt1::,,,,,:::::;itfttttffffffffftt111tft1ttfttttfLLfttttfffffftttttt\ntttttttfLLLLLLLLLLfttttffftffffttf1,,,,:;iii1111itftttfffffffffftt1111t11ttffttttttttttffffffffffttt\ntttffftfLLLLLLLLLLfttfftfffttffffft:,,,:;iii111ii1tttttttffffffftt1111tft1ttt1tftttt11tffffLLLLLfttt\nttffffffffLLLLLLLfftfLLftttfLfffLft:,,:;;;;iiiiii1tffftt11tfffft111111ffftt1t1tttttttttfffLLLLLLffff\ntfffffttttfLLLffttttfffffttfLLfffft;:::;;;iii;iii1tffffft11tttt11tt111fffttffft1ttfftttffLLLLLLLLffL\ntttfftttttfffftttttttttttttfLLLffffti;;;i;;iii;iitfffffffft1tttt1t1111tfftfffftttttttttttfLLLLffffff\nttfLffffffftttfffffffffttffttfLftfft1i;;;;;iiiii11ffffftttt1tffft11111tfttffftttttttttttttfLLffffftt\nttffffffffftttfffffffftttfftttftttttt1;;;;;iiiii11ttffft11tttttfftt111tt1tffttffttfffffLLffffffLffLL\nttffffffffftttffffffffttttttttttfftt11i;;;;;;ii1111ttt111tfft1ttft11111tt1ttttfftttffffLLLfttffLLLLL\ntttffffffffttfffffffft11ttt1111ttff1;i;;;;;;;ii;iiii111ttfffft11t11111tfftttttttt1tffffLLLftttfLLLLf\nttttttttfffttffftt1tt1tttft1111tt1;,.:i;;;;;iii::;;,,:;i1tfffft1111111ttttt1ttfft11ttffffffftfLLLLLf\ntfttttttttttttttttt11ttffft1tti;:,...,ii;;;;ii;::;;.....,:itftt1tt1111tttt1tt1tffftt1111tffftfLffftt\ntfttffffftt11ttftfft1tttft1i;:,.......:11iiii;;;:;:,,,,,,..;t111tt1111ttt11tf1tffffftttttttttttttfft\n111tfffffftttffttttt11tti;:,..........,1tt1ii11i;;,,.,.,,,,,1111t11111tt111tft1tffffttfffftt11tffLLf\n1tttffffft11ttttttt1111;...............:11iiii;;1;.,.,,.,..,1t11111111111t11tf1tfffttfffffffttfLffLf\ntfttttftt11t11ttt111tt1,................,;;;ii;i1:.........,111t1111111111111t1tffttttffffftt1tfffLf\ntffttttttttftt11111ttt;..................:;;;;:;i:..........itttt11111111ttt111tttfLffttfft1tttttfft\ntttttttttttttt1111ttt1:..................,;;;;:::,..,.......;tttt1111111tttffttttffLLffttttffftttttf\ntfffttttftttttt11tttt;....................:;;::::,,.........:ttttt111111ttttfftttffffffftttttttffttf\ntffft1ttfftttt111tttt:....................,;:::,:;;;;:,.....:1ttt11111111ttffttttffLLfLfttfffffffttf\ntffft1ttfttttt111ttt1,.....................:::,,::;iii;,.....itt1111111111tttttttffLLfLfttfffffffttf\ntffft1tttttttt111ttt;......................,::,,::;;;i;,.....:111111111tt111tttttfffLLLfttfffftffttf\nttttt11ttttttt111tt1:......................,:,..:,:;;i;.......:tttt1111ttt1ttffttffffffftttfftfffttt\nttttt1ttttt111111tt1:......................,:,..:. .:;:......,itttt1111tt111ttttttfttffft1tftttffttt\nttttt1tttttttt111tt1:........... .........,,,.,:...........,1tt11tt111111ttt1ttttffftttt1tftttffttt\nttttt1tttttttt11ttti,......... .,..........,,,.,:..........,it11111111111ttft1111ttttttt11tttttffttt\n11tt11ttttt111111tt:..........,::;,........,,,.,:......,:i11t11111111111ttttt1111ttttttt111ttttttt1t\n11111111111111111111:........:;;ii;.........,,.,,.....i1ttt11t11t111111111111111111111111111111tt111\n1111111111111111111ti........,:;;i;,...........,,.....;t11111111111111111111111111111111111111111111\n11111111111111111111ti;,......,:;;;. ......,:,.,:.....,1t1t11111111111111111111111111111111111111111\n11111111111111111111111;........,,,........:;::,,......;t1tttt11111111111111111111111111111111111111\n1111111111111111111111i......... ........:;;::,......,1ttttt11111111111t11111111111111111111111111\n1111111111111111111111:........ ...........:;;;::.......it1ttttt1111111111t1111111111111111111111111\n111111111111111111111i,........,......... ,ii;;::,......:ttttttttttt11ttt1tt11t111tt111111t1tttt1111\n11111111111111111111t;.........,..........:iiii;::,.....,1ttttttttttttttt1ttt1ttt1tttttttttttttt1111\n","ttttftfffttttttttttttfffttttt111ttttt111tttt111111ttttttttt11tttt111111tttttttttttttttttttt1111111tt\nttfftttttttttttttttffLLftffftfffftttt111111111t11tffffffttttt11111111111111tttftttfttttttttt1111tttt\nttttttttttttttttfffffftttfffffffLLLft111tttttt11tfffffffftttttttt11111ttttfffffftfLLfttttttt111ttttt\nttttttttttttttttfffffttfffffffffffft11111;:::;;i1tffffffffttttttt1111ttffffffLffttffffffttt1111tttt1\nttttttttttttfffftttffttffffffffftttft1;::,,,,,,,,ifffffftttttt11tt111111ttffffLLffttfLLft111111ttttt\nttttttttttffLLLLfttttffLLLfftttttff1;:,,,,,,,,,,:itfffftttfffft11t111tt111ttfffLLfttfftt1ttt11tttttt\nttttttttfffLLLLLLffttfLLLfttfffttt1:,,,,:::;;i;;1tttftttffffffftt1111tftt111tttfLLfttt11tffftttttttt\ntttttttfffLLLLLLLLLfttfttttffLfftt;,,,,,:;ii11t11tfttttffffffffftt111tft1ttfttttfLLfttttfffffftttttt\ntttttttfLLLLLLLLLLfttttffffffffttt;,,,,:;;;iii1111ttttfffffffffftt1111t11ttffttttttt1ttffffffffffttt\ntttffftfLLLLLLLLLLfttfftfffttttfft:,,,,:;;;iiiiii1tttttttffffffftt1111tft1ttt1tftttt11tffffLLLLLfttt\nttffffffffLLLLLLLfftfffftttfLftfLfi;;;;;;;iii1iii1tffftt11tfffft111111ffftt1t1tttttttttfffLLLLLLffff\ntfffffttttfLLLffttttfffffttfLLftfffi;;;i;;;;iiiii1fffffft11tttt11tt111fffttffft1ttfftttffLLLLLLLLffL\ntttfftttttffffttttttttttttttffftffft;;;;;;;;iiii1tttfffffft1tttt1t1111tfftfffftttttttttttfLLLLffffff\nttffffffffftttfffffffffttftttffftfft1;;;;;;;;iii1ttfffffttt1tffft11111tfttfLftttttttttttttfLLftffftt\nttffffffffftttfffffffftttfftttftttt1i;;;;;;;;ii111tffftt11tttttfftt111tt1tffttffttfffffLLffffffLffLL\nttffffffffttttfffffffft1tt1111ttt1::i;;;;;;;i1i;i111ttt11tfft1ttft11111tt1ttttfftttffffLLLfttffLLLLL\ntttffffffffttffffffftt111tt111i;:,..;i;;i;iii11;;;;,::;1tfffft11t11111tfftttttttt1tfffffLfftttfLLLLf\nttttttttfffttffttttt111ttt1;:,......,ii;;iii;11;:;;,...,:1fffft1111111ttftt1ttfft11ttffffffftfLLLLLf\ntftttttttttttt11tt111tt1;:,..........;11iii;1t1;:;;,,,,,.:tfttt1tt1111tttt1tt1tffftt1111ttfftfLffftt\ntfttffffftt11tttttt111:..............:1tt1ii11i::;:,,,,,,,if1111tt1111ttt11tf1tfffffttttttttttttffft\n111tfffffft1tfftttt11;................:ii;;i;:,,;;,.,,.,..it1111111111tt111tft1tffffttfffftt1ttffLLf\n1tttffffft111tttttt1i,............,....:;;;;;;:,1i,..,,,..;ttt11111111111t11tt1tfffttfffffffttfLfLLL\ntfttttftt1t111ttt111;..................,;;;;;:,:1i,.......it111t11t1111111111t1tffttttffffftt1tffLLf\ntffttttttttft1111111,...................:;;;::,,;;,.......it1tttt11111111ttt111tttfLffttfft1tttttfft\ntttttttttttttt1111t;....................,;;:::,.:,..,.....:tttttt1111111tttffttttffLLffttttffffttttf\ntfffttttfttttt111t1,.....................;;:::..:,........,1tttttt111111ttttfftttffffffftttttttffttf\ntffft1ttfftttt111ti......................::::,..:,.....,:::i1ttt111111111ttffttttffLLfLfttfffffffttf\nttfft1tttttttt111t:......................,:::,..:,....,:;iiiitt11111111111tttttttffLLfLfttfffffffttf\ntffft1tttttttt1111;.......................,:,...:,....:;;iiii1111111111tt111tftttfffLLLfttfffftffttf\nttttt11ttttttt111t;...................,,,,,,,...,......,;;ii1111ttt1111ttt1tfffttffffffftttfftfffttt\nttttt11tt11111111i,.................,::::::,....:........,,:i1111tt1111tt111ttttttfffffft1tftttffttt\nttttt11ttttttt11t;.................,:;;;;;;,....:.... .. .,1t11ttt1111111ttt1ttttffffttt1tftttffttt\nttttt11ttttttt1111:................,::::;i:.....:.,..,,,:;i11tttt111111111tft1111ttttttt11tttttffttt\n111tt11ttt1111111t1:. ............::::;:.....,:....it11111tt1tt1111111ttttt1111ttttttt111ttttttt1t\n11111111111111111111i:,..............,,,,......,:....:1tt111111t1111111111111111111111111111111tt111\n11111111111111111111t11:........,.... . ..,....:.....it1t111t11111111111111111111111111111111111111\n11111111111111111111111:,..................:....:.....:1ttt11t11t11111111111111111111111111111111111\n1111111111111111111111i,...................:....:......it1ttttt1tt11111111111t1111111111111111111111\n1111111111111111111111;....................,,..,:,.....:tttttttt111111111111111111111111111111111111\n1111111111111111111111:.................. .::..,:......,1t1ttttt11t1t11111t1111111111111111111111111\n11111111111111111111ti,.................. ,;::,,:.......itttttttttttt111t1tt11t111tt111tttt1tttt1111\n11111111111111111111t;....................,;;;:,:.......:tttttttttttttttt1ttt1ttt1tttttttttttttt1111\n","tttttttttttttttttttttffftttt1111111tt1111tt1111111ttttttttt11tttt1111111ttttttttttttttttttt1111111tt\nttfttttttttttttttttffLfttffttfffttttt1111111111111tffffftttt111111111111111tttffttftttttttt11111tttt\nttttttttttttttttffffLftttfffffffffftt11111iii1i11ffffffffttttttt111111tttttffffftfLLfttttttt111ttttt\nttttttttttttttttffffftttffffffffffttt11;::,,,,,:;1ffffffffttttttt1111ttfffffffLfttffffffttt1111ttttt\nttttttttttttfffftttffttffffffffttttt1;:,,,,,,,,,,:tffffftttttt111t111111ttffffLLffttfLLft111111ttttt\nttttttttttffLLLLftttttffLLfttttttft;,,,,,,,,:::,:itfffftttfffft11t111tt111ttfffLLfttfftt1ttt11tttttt\nttttttttffLLLLLLLffttfLLLfttfffttt;,,,,,,:;ii1111tttttttffffffftt1111tftt111tttfLLfttt11tffftttttttt\ntttttttfffLLLLLLLLffttfttttffffft1:,,,,,:;iii11111fttttffffffffftt111tft1ttft11tffLfttttfffffftttttt\ntttttttfLLLLLLLLLffttttffftfffftt1:,,,,,:;;;iiiii1ftttfffffffffftt1111t11ttffttttttt1ttffffffffffttt\ntttffttfLLLLLLLLLLfttfttffftttttft::;;::;;iiiiiii1ttttttttfffffftt1111tft1ttt1tffttt11tffffLLLLLfttt\nttffffffffLLLLLLffftfffttttffftfLfi:;i;;;;;iiiiii1tffftt11tfffft111111ffftt1tt1tt1tttttfffLLLLLLffff\ntffftfttttfLLLfftttttffffttfLLftfff;:;;;;;;;iiiii1tffffftt1tttt11tt111fffttffft1ttfftttffLLLLLLLLffL\ntttttttttttfffttttttttttttttffffffft;;;;;;;;iiii1ttffffffft1ttt1111111tfftfffftttttttttttfLLLLffffff\nttffffffffftttfffffffffttft1tfffttt1i;;;;;;;;iii1ttfffftttt1tffft11111tfttffftttttttttttttfLLfffffft\nttffffffffftttfffffffftttffttttti::i;;;i;;;;ii1111tttttt11tttttfftt111tt1tffttffttfffffLLffffffLLfLL\nttffffffffttttfffffffft1ttt11i;:,.,ii;;iiiii11:i1111tt111tfft1ttft11111tt1ttttffttttfffLLLfttfLLLLLL\ntttffffffffttffffffftt111i;:,......:11;;iiiii1::;;;::;i1ttffft11t11111tfftttttttt1ttffffLfftttLLLLLf\nttttttttfffttfttt1111ii;:,.........,it1iii;;1ti::;;,..,:1tfffft1111111ttttt11tfft11ttffffffftfLLLLLf\ntfttttttttt1tt111111;,..............;1111ii1ti:;:;;,,,,.:tffftt11t1111tttt1tt1tffftt1111ttfftfLffftt\ntfttfffftt1111ttttti,................:;;;i;;;,,:;;:,,,,,,itt1111tt1111ttt11tf1tffffftttttt1tttttffft\n111tfffffft1ttttttt:..........,,......:;;;;;;,.,i;,,,,,,.;t111111111111t111tft1tffffttfffftt1ttffLLf\n111ttfffft111ttttt1,............,.....,;;;;;:,.:1i,......;11t111111111111t11tt1tfffttfffffffttfLfLLL\ntttt1tftt11111tt11;....................:;;;;:,.:1i,......:tt11111111111111111t1tffttttffffftt1tffLLf\nttft11ttttttt1111i,....................,:;:;:.,,;:,......:111tttt11111111tttt11tttfLffttfft1tttttfft\ntttttt1ttttttt111;......................,;:;:..,:,.......:11tttttt111111tttffttttffLLffttttffffttttf\ntffft11ttttttt11i,.......................:::,..,:,.......,1tttttttt11111ttttfftttffffffftttftttffttf\ntffft11ttttttt11;........................,:::,..:,........;11tttt11111111ttffttttffLLfLfttfffffffttf\ntttft11ttttttt11;......................,:;;;;;;,:,........,111tt1111111111tttttttffLLfLfttfffffffttf\ntfttt11ttttttt11i.....................:::;;;;;:.:,....... ,1t11111111111t111tftttfffLLLfttfffftffttf\ntttt111ttttttt11:....................,:::;;;;;.,:,..........,:;iii11111ttt11tffttffffffftttfftfffttt\nttttt11tt1111111,....................,:::;;;;,.,:.......... .::;;;;ii11111ttftttftfffft1tftttffttt\nttttt11ttttttt11i................. ....,,,,.....:.... ........,:::;;;;ii111tt1tttfffffttt1tftttffttt\nttttt11ttttttt11ti,. .........,... .. ....,..:,.. ....,:::;;;iii1ttt1111ttttttt11tttttffttt\n11111111ttt111111t1ii;;;,.......................:..,.:1;:,,.. ..,;i1i1t1ttt1111ttttttt111ttttttt1t\n1111111111111111111ttttt:,......................:.. ,tttt111i;;;;i1tt1111111111111111111111111tt111\n111111111111111111111111:,..................,...:.....it1t1ttttttttt11111111111111111111111111111111\n111111111111111111111111;,..................,...:.... ;tttt11t11t11111111111111111111111111111111111\n111111111111111111111111:...................,..,:.....:ttttttttttt1111111111111111111111111111111111\n11111111111111111111111i,...................:,.,:.....,1ttttttttt11111111111111111111111111111111111\n11111111111111111111111;...................,::..:.....,1ttttttttt1t11t1111t1111111111111111111111111\n11111111111111111111111:.................. :;:,,:......itttttttttttttt111ttt11t1111t111t1ttttttt1111\n111111111111111111111t1:.................. :;;:::......;ttttttttttttttttt1ttt1ttt11ttttttttttttt1111\n","tttftttttttttttttttttffftttt1111111tt1111tt11111111tttt1ttt11tttt111111tttttttttttttttttttt1111111tt\nttfftttttttttttttttffLfftfftttffttttt111111111111ttffffftttt1111111111111111ttffttfttttttttt1111tttt\ntttttttttttttttttffffftttffffffffffft111tt111111ttffffffttttttttt11111tttttffffftfLLftttttt11111ttt1\nttttttttttttttttffffftttffffffLffftt111i;;:::::;1tffffffffttttttt11111tfffffffLfftfffffftttt111ttttt\nttttttttttttfffftttffttffffffffttttt1i;,,,,,,,,,,;fffffftttttt111t111111ttffffLLffttfLLft111111ttttt\nttttttttttffLLLLftttttffLLftttttttti:,,,,,,,,,,,,;tfffftttfffft11t111tt111tttffLLfttfftt1tt111tttttt\nttttttttffLLLLLLLffttfLLffttfffttti,,,,,,:;;;ii;itttttttffffffftt1111tftt1tttttfLLfttt11tffftttttttt\ntttttttfffLLLLLLLLLfttfttttffffft1:,,,,::;i111tt1tfttttffffffffftt111tft1ttft11tffLfttttfffffftttttt\ntttttttfLfLLLLLLLLfttttffftfffftti,,,,,,:;;iiii1i1ftttfffffffffft11111t11ttftttttttttttfffffLLfLfttt\ntttffttfLLLLLLLLLLfttfttffftttttf1,,::,:;iiiiiiii1ttttttttfffffftt1111tft1ttt1ttfttt11tffffLLLLLfttt\nttfffftfffLLLLLfffftfffttttffftfLf;:ii;;;;iii11ii1tfffft11tfffft111111ffft11t1ttt1tt1tffffLLLLLLLfff\ntffftfttttfLLLfttttttffffttfLLftff1:;ii;;;;iiiiii1ffffftt11tttt1ttt111fffttfffttttfft1tffLLLLLLLLffL\ntttttttttttfffttttttttttttttfffffff1;;;;;;;iiiii1tffffffftt1ttt1111111tfftfffftttttttttttfLLLLffffff\nttffffffffftttffffffffftttt1tffftft1i;;;;;;;iiii1ttfffffttt1tffft11111tfttfffttt1tttttttttfLLftfffft\nttffffffffttttfffffffft1tftt1tft1;ii;;;;;;;;ii1111ttftft11tttttfft1111tt1tffttffttfffffLLffffffLffLL\nttffffffffttttfffffffft1tttt1ii;,.:i;;;i;iii111t111ttt111tffttttftt1111tt1ttttfft1tffffLLLfttfLLLLLL\ntttffffffffttfffftfttt111ii;:,....,i1;;iiiii1i:;;;i11111tfffft11t11111tfftttttttt1tfffffLfftttfLLLLf\ntttttttttffttfttt1111ii;:,.........;11iiii;;11;::;;,:;1tftfffft1111111tttt11ttfft11ttffffffftfLLLLLf\ntft1ttttttt1t1111111:,.............:1tt1iii1t1;;:;:,,.,:1tffftt11t1111ttt11tt1tffftt1111ttfftfLLfftt\ntttttffttt1111ttttt;................:iiiiii11,:;:;:,,,,.:tttt111tt1111ttt11tf1tffffftttttt1ttttttfft\n1tttfffffft1tftttt1,.................,;;;;:;:.,:i:,,,,,,,it11111111111tt111tft1tffffttfffftt11tffLLf\n111ttfffft111ttttti...................:;;;;;:,,:1;.......;t1tt11111111111t11tf1tfffttfffffffttfLfLLf\ntttt1tftt11111ttt1:...................,;:;;;:..;1;.......:tt111t11t1111111111t1tffttttffffftt11ffLLf\nttft1111ttttt1111;.....................:;:;;,..,;:.......,111tttt11111111tttt11tttfLffttfft1tt1tffft\n1tttt11ttttttt111,.....................,::;;,..,:,.......,1ttttttt111111tttffttttffLLffttttffffttttf\ntfftt11ttttttt11;.......................:::;,..,:,........itttttttt1111tttttfftttffffffftttftttffttf\nttfft11ttttttt11,.......................,;;;;:,,:,........;11tttt11111111ttffttttffLLfLfttfffffffttf\ntttft11ttttttt1i,.....................,::;i;;;,,:.........:111tt1111111111tttttttffLLfLfttfffffffttf\nttttt11ttttttt1i.....................,:::;i;i:.,:,........,1t1111t111111t111ttfttffLLLLfttfffttffttf\ntttt111ttt11t11;.....................,:::;;;;,.,:..........1tt111tt11111ttt1tffttffffffftttffftffttt\nttttt11t1111111:......................:::::,...,:..........:i1tttt1tt111t1111tttttfttffft1tttttffttt\nttttt11tttt11t1i.......................... ....,,.......... .,,:i11iii11111tt1t1ttffffttt1ttttttfttt\nttttt11tttttt111;... ......................,:............ .,:::;iiii1111111tfttttt11ttttttfttt\n11111111t1111111t1i;;::::......................,:..,:.. .......,::;;;;;;iii11111tttttt111ttttttt1t\n11111111111111111ttttttt1,.....................,:......:,.. ..,:;;;:;;;iiii11111111111111111tt111\n111111111111111111111111i,.................,::..,.... ,tt1ii;,,.. ..,:i;;iii111111111111111111111111\n111111111111111111111111i,.................,;:,,,......1tttttt11i;;::itt11t1111111111111111111111111\n111111111111111111111111i,................ ,;:::,......it1t1tttttttttt11tt11t111111111111111111t1111\n111111111111111111111111;................. ,;;::,......it1tttttttt1111111t11111111111111111111111111\n111111111111111111111111:................. .;;:::......;t1ttttttt1ttttt111t1111111111111111111111111\n111111111111111111111111,...................;i;::,.....;tt1ttttttttttt11tttttttt111t111111tttttt1111\n111111111111111111111111:...................:i;:::.....ittttttttttttttttttttt1ttt111tttttttttttt1111\n","tttftttttttttttttttttffftttt1111111tt1111tt11111111tttt1ttt11tttt111111tttttttttttttttttttt1111111tt\nttfftttttttttttttttffLfftfftttffttttt111111111111ttffffftttt1111111111111111ttffttfttttttttt1111tttt\ntttttttttttttttttffffftttffffffffffft1111tttt111ttffffffttttttttt11111tttttffffftfLLfttttttt1111ttt1\nttttttttttttttttffffftttffffffLffftt11111i;iiii1tfffffffffttttttt11111tfffffffLfttffffffttt1111ttttt\nttttttttttttfffftttffttffffffffttttt11;::,,,,,,::1fffffftttttt111t111111ttffffLLffttfLLft111111ttttt\nttttttttttffLLLLftttttffLLftttttttf1;:,,,,,,,,,,,itfffftttfffft11t111tt111tttffLLfttfftt1ttt11tttttt\nttttttttfffLLLLLLffttfLLffttfffttt1,,,,,,,::::::itttftttffffffftt1111tftt11t11tfLLfttt11tffftttttttt\ntttttttfffLLLLLLLLLfttfttttffLfft1:,,,,,:;ii11111ffttttffffffffftt111tft1ttft11tffLfttttfffffftttttt\ntttttttfLfLLLLLLLLfttttffftfffftt1:,,,,:;;iii1111fftttfffffffffftt1111111ttftttttttttttfffffLLfffttt\ntttffttfLLLLLLLLLLfttfttffftttttf1,,,,,:;iiii;iii1ttttttttfffffftt1111ttt1ttt1ttfttt11tfffffLLLLfttt\nttfffftfffLLLLLfffftfffttttffftfLt:;;;:;;iiiiiii11tfffft11tfffft111111ffft1tt1ttt1tt1tfffLLLLLLLffff\ntffftfttttfLLLfttttttffftttfLLftff1;;;i;;;iii1iiitfffffft11tttt1ttt111fffttfffttttfftttffLLLLLLLLffL\ntttttttttttfffttttttttttttttffftfffi;;;;;;iiiiii1tffffffftt1ttt1111111ffftfffftttttttt1ttfLLLLffffff\nttffffffffftttffffffffftttt1tffftffti;;;;;;iiiii1tttffffttt1tffft11111tfttfffttt1tttttttttfLLftfffft\nttffffffffftttfffffffftttftt1tftt111i;;;;;;;;ii111tfftft11tttttfft1111tt1tffttffttfffffLLffffffLffLL\ntttfffffffttttfffffffft1tt111111i::i;;;i;;;;i11t111ttt111tffttttftt1111tt1ttttfft1tffffLLLfttfLLLLLL\ntttffffffffttfffftfftt111111i;:,..,ii;;iiiii11:;;;111111tfffft11t11111tfftttttttt1tfffffLfftttfLLLLf\ntttttttttffttfttt1111111i;:,.......:11;iiii;11;::;;,:i1tftfffft1111111tttt11ttfft11ttffffffftfLLLLLf\ntfttttttttt1t1111111i;:,...........:1t1iii;itt;;;;:.,,,:itffftt11t1111ttt11tt1tffftt1111ttfftfLffftt\ntttttffftt1111ttttt1:..............,i111ii1tti:;;;:,,,,.,1tft111tt1111ttt11tf1tffffftttttt1ttttttftt\n111tfffffft1tfttttt;.................:;;;;;;;,.:i:.,,,,,.;t11111111111tt111tft1tffffttfffftt11tfffLf\n111ttfffft111ttttt1,..................:;;;;;:,.:1;.....,.:11tt11111111111t11tf1tfffttfffffffttfLfLLf\ntttt1tftt111111tt11,..................,;;;;;:,.;1;.......,1t111t11t1111111111tttffttttffffftt11fffLf\ntttt111tttttt11111;....................::;;;,..,;:.......,i11tttt11111111tttt11tttfLffttfft1tt1tffft\n1tttt11ttttttt111i.....................,::;;,..,:.........ittttttt111111tttffttttffLLffttttffffttttf\ntfftt11ttttttt111,......................::::,..,:,........itttttttt11111ttttfftttffffffftttttttffttf\nttfft11ttttttt11;.......................,:::,..,:,........;11tttt11111111ttffttttffLLfLfttfffffffttf\ntttft11ttttttt11:........................,:,,..,:,........,111tt1111111111tftttttffLLfLfttfffffffttf\nttttt11ttttttt11,.......................,,::,..,:..........it11111t11111t111tttttffLLLLfttffftfffttf\ntttt111tttt1t11i......................::;;;;;:.,:..........;t11tttt11111tt11tffttffffffftttffftffttt\nttttt11tt111111:....................,:::;i;;i,.,:..........;ttttttt1111111111tttttfttffft1tttttffttt\nttttt11ttttttt1;....................,:::;i;;:..,,...........:;iii1111111111tt1t1ttfffttt11ttttttfttt\nttttt11tttttt111:...................,:::;;;;...,,........... .,:;;;:;i1111ttt1111ttttttt11ttttttfttt\n11111111t11t11111;,.. ...............,,,....,:.... .......,:::::;;11tt11111111tt1tt1111ttttttt1t\n11111111111111111t11i;;;:.......,..... ......,,....,,. ...,::;::;i1111111111111111111111111tt111\n11111111111111111111tttti,...................,.,,... :1i:,. .,,;;i1111111111111111111111111111111\n111111111111111111111111i,...................:,,,.....ittt1i:,.. ,1tttt111111111111111111111111t1111\n111111111111111111111111;,...................,,::.... .111tttt1ii1ttt11111111t11111111111111111t1111\n111111111111111111111111;....................,:::......it1t11ttttt1111111111111111111111111111111111\n111111111111111111111111;....................,::,......;t1tttttt11tt1tt111t1111111111111111111111111\n11111111111111111111111t:....................::::......:1111ttttttttttt1tt11ttt11111111111tttttt1111\n11111111111111111111111t:....................:;::,.....,1tttttttttttttttttttttttt111tttttttttttt1111\n","tttftttttttttttttttttffftttttt11ttttt1111tt11111111tttt1ttt11tttt111111tttttttttttttttttttt1111111tt\nttfftttttttttttttttffLfftfffttffttttt111111111t11ttffffftttt1111111111111111ttffttfttttttttt1111tttt\ntttttttttttttttttffffftttffffffffffft1111tttt111tfffffffttttttttt11111tttttffffftfLLfttttttt1111ttt1\nttttttttttttttttffffftttffffffLfffttt1111ttttt1tffffffffffttttttt11111tfffffffLfttffffffttt1111ttttt\nttttttttttttfffftttftttffffffffttttft1i;:;;;;;i11tfffffftttttt111t111111ttffffLLffttfLLft111111ttttt\nttttttttttffLLLLftttttffLLfttttttfft1;:,,,,,,,,:1ttfffftttfffft11t111tt111tttffLLfttffft1ttt11tttttt\nttttttttfffLLLLLLffttfLLffttfffttti::,,,,,,,,,,;ttttftttffffffftt1111tftt11t11tfLLfttt11tffftttttttt\ntttttttfffLLLLLLLLLfttfttttfffffti,,,,::;;;iiiii1ffttttffffffffftt111tft1ttft11tffLfttttfffffftttttt\ntttttttfLLLLLLLLLLftttttfftfffftt1:,,,;iii1111111fftttfffffffffftt1111111ttftttttttttttfffffLLfffttt\ntttffttfffLLLLLLLLfttfttffftttttff:,,:;;;iiii1ii1tttttttttfffffftt1111ttt1ttt1ttfttt11tfffffLLLLfttt\nttfffftfffLLLLLfffttfffttttffftfLt;:,:;;;;iiiiii11tfffft11tfffft11111tffft1tt11tt1ttttfffLLLLLLLffff\ntffftfttttfLLffttttttffftttfLLftff1;;;;;iiiii;i11ttfffftt11tttt1ttt11tfffttffft1ttfft1tffLLLLLLLLffL\ntttttttttttffftttttttttttttfffLtfffii;;;;;ii;;iittffffffftt1ttt1111111ffftfffftttttttt1ttfLLLLffffff\nttffffffffftttfffffffffttft1tffftffti;;;;;iiiii1ttttffffttt1tffft11111tfttfffttt1tttttttttfLLfffffft\nttffffffffftttfffffffftttfttttfttttti;;;;;iiii1111tfftft11ttttffff1111tt1tffttffttfffffLLffffffLffLL\nttffffffffttttfffffffft1tt11111tft11i;;;;;;;iit11111tt111tffttttft11111tt1ttttfft1tffffLLLfttfLLLLLL\ntttffffffftttfffftfftt1111111111i:,;i;;;;;;ii1i;;;111111tfffft11t11111tfftttttttt1tfffffLfftttfLLLLf\nttttt1tttffttfttt11t111tttt1i;:,...:1i;ii;ii;1i:;;i;;i1tftfffft1111111tttt11ttfft11ttffffffftfLLLLLf\ntfttttttttt1tt1111111ttt1;:,,.......;ti;iii;it1;;;;,..,:i1fffft11t1111ttt11tt1tffftt1111ttfftfLffftt\nttttfffftt1111ttttt111;:,...........;tt11iii1t1::;;,,,,,.,1ft111tt1111ttt11tf1tffffftttttt1ttttttftt\n111tfffffft1ttttttt11,..............:i11iii111:,;;,,,,,,,.;t1111t11111tt111tft1tffffttfffftt11tfffLf\n111ttfffft111ttttttt;.................:;;;;;;:.,ii,....,,.:1tt11111111111t11tf1tfffttfffffffttfLfLLf\ntttt1tftt11111ttt111:.................,;;i;;;,.,1i,.......:t111111t1111111111tttffttttffffftt11fffLf\ntttt11ttttttt1111111,..................:;;;;;,,,;;,.......:11tttt11111111tttt11tttfLffttfft1tt1tffft\n1tttt11ttttttt11111i...................,;;;;:,..:,........:1tttttt111111tttffttttfLLLLfttttffffttttf\ntfftt11ttttttt11111:....................:i;;:,.,:,........,1ttttttt1111ttttffftttffffffftttttttffttf\nttfft11ttftttt111ti,.....................;;::,..:,........,i1tttt11111111ttffttttffLLfLfttfffffffttf\ntttft11ttttttt111t;......................,::,...:,.........;11t11111111111ttt1tttffLLLLfttfffffffttf\nttttt11ttttttt111t:......................,::,...:,...,,....it11111111111t111tttttfffLLLfttfffftffttf\ntttt11tttt11tt1111,.......................,,,...:,...,:;;;;itt11ttt1111ttt1ttftttffffffftttffftffttt\nttttt11t111111111i.........................,,...:,...,:;iiii11111t111111t111tttttttttffft1tftttffttt\nttttt11ttttttt111,.........................,,...:....,:;;iii11111111111111ttttt1ttfffttt11ttttttfttt\nttttt11ttttttt111;...................,,,,..,....,......,:;ii1ttt1111111111ttt1111tfttttt11ttttttfttt\n11111111t11t11111t;...............,:::::::..,...:.........,,it11tt1111111tttt1111ttt1tt1111ttttttt1t\n1111111111111111111,.............:::::;;i:......:..... :1ttttt111111111111111111111111111111t111\n11111111111111111111;,.. ........,::::;;:.......,... ,i;;;i1tttt111111111111111111111111111111111111\n11111111111111111111t11i,.........,:::;;. ..,:,.:.....itttttttt1111111t111111111111111111111111t1111\n11111111111111111111111t;...........,,,.... ,:,,:......it1111ttt1111111111111111111111111111111t1111\n111111111111111111111111;.......... .... .:,,:,. ...:tttt11tt111111111111111111111111111111111111\n111111111111111111111111;....................::::..,,..,1tttttttt1tttt1111t1111111111111111111111111\n11111111111111111111111t;....................::::..,,...;t1tttttttttttt1t11ttttt111t111111tttttt1111\n11111111111111111111111ti....................:;::,......:11tttttttttttttttttttttt11t11t1111ttttt1111\n","tttftftttttttttttttttfffttttt1111tttt111tttt1111111tttttttt11tttt111111tttttttttttttttttttt1111111tt\nttfftttttttttttttttffLfttfffttffttttt111111111t11tfffffftttt1111111111111111ttffttfttttttttt1111tttt\nttttttttttttttttfffffftttffffffffffftt11ttttt111tffffffftttttttt11111ttttttffffftfLLfttttttt1111ttt1\nttttttttttttttttffffftttffffffLfffttttt11tttt11tffffffffffttttttt1111ttfffffffLfttffffffttt1111ttttt\nttttttttttttfffftttffttffffffffftttft1tttt11ttt1ttfffffftttttt111t111111ttffffLLffttfLLft111111ttttt\nttttttttttffLLLLftttttffLLftttttttfft11iiiiiittt1ttfffffttfffft11t111tt111tttffLLfttffft1ttt11tttttt\nttttttttfffLLLLLLffttfLLffttfffttfft;::,,,,,,:itttttffttffffffftt1111tftt11t11tfLLftttt1tffftttttttt\ntttttttfffLLLLLLLLLfttfttttffffft11i:,,,,,,,,:,;fffttttffffffffftt111tft1ttft11tffLfttttfffffftttttt\ntttttttffLLLLLLLLLfttttfffttffftt1;:::::;;;iii;:tfftttfffffffffftt1111111ttftttttttttttfffffLLfffttt\ntttffttfffLLLLLLLLfttfttfLfttttfft;:;iii111111i;1ttttttttffffffftt1111ttt1ttt1ttftt11ttfffffLLLLfttt\nttfffftfffLLLLLLffftfffttttfffffLf;:;;;;ii1iiiii11tfffft11tfffft11111tffft1tt11tt1ttttfffLLLLLLLffff\ntffffftttffLLffftttttffffttfLLffffi:i;;;;;ii;ii11ttffffft11tttt1ttt11tfffttffft1ttfftttffLLLLLLLLffL\ntttttttttttffftttttttttttttfLfftffi;ii;ii;i11111tfffffffftt1ttt1111111ffftfffftttttttt1ttfLLLLffffff\nttffffffffftttfffffffffttftttfLftf1;;;;;;;;i1111tttffffftttttffft11111tfttfffttt1tttttttttfLLfffffft\nttffffffffftttfffffffftttfftttftttt1i;;;;;iiii1111ttftft11ttttffff1111tt1tffttffttfffffLLfffffffffLL\ntttfffffffttttfffffffft1ttt1111tfftt1i;;;;iii1tt111ttt111tffttttft11111tt1ttttfft1tffffLLLfttfLLLLLL\ntttffffffffttffffttftt111t11111ttfft1;;;;;;ii1ti;;i11111ttffft11t11111tfft1tttttt1tfffffLfftttfLLLLL\nttttt1tttffttfttt111111tttt11111tti:i;;;;;;iii1;:;i1i1ttftfffft1111111tttt11ttfft11ttffffffftfLLLLLf\ntfttttttttt1tt11t1111ttfftt1tt1i;:..;i;;;;;iii1i:;;:,,:;i1ffftt11t1111ttt11tt1tffftt1111ttfftfLffftt\ntfttfffftt1111tttttt1tttttt1i;,.....:11;ii;;;iti:;;,,,...,:1t111tt1111ttt11tf1tffffftttttt1tttttfftt\n1t1tfffffft1tttttttt111tti:,....,...,i11iii;i1ti;i,,,,,,,,.,i111t11111tt111tft1tffffttfffftt11tffLLf\n1t1ttfffft111tttttt1111:,...........,i1t1iii11i,;1,....,,...;t11111111111t11tf1tfffttfffffffttfLLLLf\ntftt1tftt1tt11ttt111tt;..............,:;i;;;;;,.i1,.........:11111t1111111111tttffttttffffftt1tffLLf\ntfftttttttttt111111ttt:................,;;i;;:,,:;,.........:tttt11111111tttt11tttfLffttfft1tt1tffft\ntttttt1ttttttt1111ttti,................,:;;;;:,.,:..........,ttttt111111tttffttttfLLLLfttttffffttttf\ntffft11ttttttt1111ttt;..................,;;;::,.,,..........,1tttt111111tttffftttffffffftttttttffttf\ntffft11ttftttt111tttt:...................:;;::..::,,.........ittt11111111ttffttttffLLfLfttfffffffttf\ntffft11ttttttt111ttt1:...................,;::,,::;;;i;,......;t11111111111ttt1tttffLLLLfttfffffffttf\ntttft11ttttttt111ttt1,....................,::,,::;;iii;. ...,it11tt11111t111tttttfffLLLfttfffftffttf\nttttt1tttttttt111t1ti.....................,:,,,,::;iii;.....,it11tt1111ttt1ttftttffffffftttffftffttt\nttttt11tt11111111t1ti......................,:,. ,,,:;i:.......;11tt11111t111tttttttttffft1tttttffttt\nttttt11tttt11t11tttt;......................,,,..,, .,,.......,;11111111111ttttt1ttfffttt11ttttttfttt\nttttt1tttttttt111ttt:.......................,,..,,.....,....:1ttt111111111ttt1111tfttttt11ttttttfttt\n1111111ttt1t11111tt1,.......................,,..:,.........:1t11111111111tttt1111ttt1ttt111ttttttt1t\n11111111111111111111;....... ............,,..:,.....,;ii1t1t111111111111111111111111111111111t111\n111111111111111111111,.... .,::,................:....,11ttt11tt11t1111111111111111111111111111111111\n111111111111111111111;.....;i;;;,...............:,....it1111ttt1tt1111t111111111111111111111111t1111\n1111111111111111111111i:.,iii;;i:.......... ,::,:......itttttttt1111111111111111111111111111111t1111\n111111111111111111111111i,:;;;ii;,......... ,;;::,.....:1ttttttt11111111111t111111111111111111111111\n111111111111111111111111i,.,::;;:.......... ,;;;::......itttttttt1tttt11t1tt111111111111111111111111\n111111111111111111111111i..,.................;;;::,.,,..:1tt1tttttttttttt11ttttt11111111tttttttt1111\n111111111111111111111111i..... .............;i;:::,.....itttttttttttttt1tttttttt11t11t1111ttttt1111\n","tttfttfttttttttttttttfffttttt1111tttt111tttt111111ttttttttt11tttt111111tttttttttttttttttttt111111ttt\nttfftttttttttttttttffLfftfftttffftttt111111111111tfffffftttt111111111111111tttffttfttttttttt11111ttt\nttttttttttttttttffffLffttfffffffffffttttttttt111tffffffffttttttt111111ttttffffLfffLLfttttttt1111t1t1\nttttttttttttttttffffftttffffffLffffttttttttttt1tffffffffffttttttt1111ttfffffffLfttffffffttt1111ttttt\nttttttttttttfffftttffttffffffffftttftttttt11ttt1ttfffffftttttt111t111111ttffffLLffttfLLfft111111tttt\nttttttttttffLLLLftttttfLLLftttttttfftttttttfffft1tffffftttfffft11t111tt111tttffLLfttfftt1ttt111ttttt\nttttttttfffLLLLLLffttfLLLfttfffftffft11i;ii1ttffttttffttffffffftt1111tftt11t11tfLLfftt11tffftttttttt\ntttttttfffLLLLLLLLffttfttttffLfLftti;:;:,,,:;;itffftttfffffffffftt111tft1ttft11tffLfttttfffffftttttt\ntttttttffLLLLLLLLLfttttffftffffftt1;,,,,,,,,::,:tfftttfffffffffftt1111111ttftttttttttttfffffLLfffttt\ntttffttfffLLLLLLLLfttfftfLftttffff1;::::;;iii;,:1ttttttttffffffftt1111ttt1ttt1ttfttt1ttfffffLLLLfttt\nttfffftfffLLLLLfffftfffftttfLfffLfi;iiii11111i;:i1tfffft11tfffft11111tffft1tt11tt1ttttfffLLLLLLLffff\ntffffftttffLLfffttttfffffttfLLffLf;;;;iiiiiiii;:1tfffffft11tttt1ttt11tfffttffft1ttfft1tffLLLLLLLLffL\ntttttttttttffftttttttttttttffLLffLt;;:;;ii;;iii;ttffffffftt1ttt1111111ffftfffftttttttt1ttfLLLLffffff\nttffffffffftttfffffffffttftttfLftf11i;;;i1ii11ii1tfffffftttttffft11111tfttfffttt1tttttttttfLLfffffft\nttffffffffftttfffffffftttfftttfttt11i;;;;i1111i111ttffft11ttttffft1111tt1tffttffttfffffLLfffffffffLL\ntttfffffffttttfffffffftttttt111tfft11;;;;iiiii1t1111tt111tffttttft11111tt1ttttfft1tffffLLLfttfLLLLLL\ntttffffffffttfffffffft111tt1111ttfft1i;;;iiiii1;;;111111ttffft11t11111tfft1tttttt1tfffffLfftttfLLLLL\nttttt1tttffttfftttttt11ttttt111tttft1i;;;;iiiii;;;1t11ttftfffft1111111tttt11ttfft11ttffffffftfLLLLLf\ntft1ttttttttttttttt11tffftt1tt11tff1ii;;;;;iiii:;;i;;i1tttffftt11t1111ttt11tt1tffftt1111ttfftfLffftt\nttttffffttt11tttttft1tttttt1ttt11i;,:i;;;;;iii;;;;:...,,,:;i1111tt1111ttt11tt1tffffftttttt1ttttttftt\n111tfffffft1ttfftttt11tttt1tfti;,...,i1i;;ii;;i1i;,.........,i11111111tt111tft1tffffttfffftt11tffLLf\n1t1ttfffft111tftttt1111ttt11;:,......;11iii;;1t11;......,.,,.,i1111111111t11tt1tfffttfffffffttfLLLLf\ntftt1tftt1tt11ttt11ttt11i;:,.........:1tt1i;i1111;............;t11t1111111111tttffttttffffftt1tffLLf\ntfftttttttttt111111tttt1,.............:;;;;;;;;:;:............:tt11111111tttt11tttffftttfft1tt1tffft\n1ttttt1ttttttt1111tt11ti................:;;;;;:,:,............,1tt111111tttffttttfLLLLfttttffffttttf\ntffftttttttttt111tttt1ti................,;;;;::,:,.............ittt11111tttffftttffffffftttttttffttf\ntfffttttfftttt111tttttt;.................:;;:::,:,.............:tt1111111ttffttttffLLfLfttfffffffttf\ntffftttttttttt111tttttt;.................,:;:::,:.,:,,.........,it11111111ttt1tttffLLLLfttfffffffttf\ntttft11ttttttt111tttttt:..................,::::,:,,;;;;;:,......itt11111t111tttttffLLLLfttfffftffttf\nttttt1tttttttt1111t1ttt;...................,::,,:,:;;;iii;.....,1tt1111ttt11tftttffffffftttffftffttt\nttttt11tt1111t111tt1ttt:...................,::,,:::;;iiii;,.....:i1t1111t111tttttttttffft1tftttffttt\nttttt11ttttttt11ttttttt:....................::,,:..,,:;ii:...... .1t111111ttttt1ttffffft11ttttttfttt\nttttt1tttttttt111tttttt:....................,::,:. ..::,......,1t1111111ttt1111tfttttt11ttttttfttt\n1111111tttttt1111ttt1tt:.... ...............,:,,:..............,1t1111111tttt1111ttt1ttt111ttttttt1t\n11111111111111111111111;;;;:,...............,:,,:....... ...,,:1ttt11111111111111111111111111111t111\n11111111111111111111111iiiiii:...............,,,:........,:i11tt1tt111111111111111111111111111111111\n11111111111111111111111iiiiiii...............,,,:.......,1tttt11tt1111t111111111111111111111111t1111\n1111111111111111111111i;iiiiii,..............,.,:........ittt11t111111111111111111111111111111111111\n111111111111111111111111iiii;,...............::::,,......:1ttttt11t111111111111111111111111111111111\n1111111111111111111111111i:,. ...............:i;:::,......itttttt1ttt111t1tt111111111111111111111111\n11111111111111111111111111:................. :i;;;::,.....;ttttttttttttttt1ttttt111111111ttttttt1111\n11111111111111111111111111:................. :i;;;;::,....:tttttttttttttttttttttt11t11t1111ttttt1111\n","tttftttttttttttttttttfffttttt1t1ttttt111tttt1111111tttttttt11tttt111111tttttttttttttttttttt111111ttt\nttfftttttttttttttttffLLftffftfffftttt111111111t11tfffffftttt1111111111111111ttffttfttttttttt1111tttt\nttttttttttttttttffffLffttfffffffffffttttttttt111tfffffffftttttttt11111tttttfffffffLLfttttttt111tttt1\nttttttttttttttttfffffttfffffffLffffttttttttttt1tffffffffffttttttt1111ttffffffLLfttffffffttt1111tttt1\nttttttttttttfffftttftttffffffffftttfttttt111ttt1ttfffffftttttt111tt11111ttffffLLffttfLLff111111ttttt\nttttttttttffLLLLftttttfLLLftttttttffttttttttffft1tffffftttfffft11tt11tt111tttffLLfttfftt1ttt111ttttt\nttttttttfffLLLLLLffttfLLffttfffftfffttttttfffffftfttffttffffffftt1111tftt11t11tfLLfftt11tffftttttttt\ntttttttfffLLLLLLLLffttfttttffffffttft111i;ii1ttfffftttffffffffffft111tft1ttft11tffLfttttfffffftttttt\ntttttttffLLLLLLLLLfttttffffffffftft1i:::,,,,::;;1fftttfffffffffftt1111111ttftttttttttttfffffLLfffttt\ntttffttfffLLLLLLLLfttfftfLffftfffLf1;,,,,,,,::,,:1tttttttffffffftt1111ttt1ttt1ttfttt1ttfffffLLLLfttt\nttfLfftfffLLLLLfffftfLfftttfffffLLf1;;;;;iiiii:,:1tfffft11tfffft11111tffft1tt11tt1ttttfffLLLLLLLffff\ntffffftttffLLfffttttfffffttfLLLffLfiiiii111111i::1tffffft11tttt1ttt11tfffttffft1ttfft1tffLLLLLLLLffL\ntttftttttttffftttttttttttttfffLffLfii;;;iiiiiii;:1ftffffftt1ttt1111111ffftfffftttttttt1ttfLLLLffffff\nttffffffffftttfffffffffttfttffLfffLti;:;;ii;ii1;;ttffffftttttffft11111tfttffftttttttttttttfLLfffftft\nttffffffffftttfffffffftttfftttftttt1i;;;ii11111ii1ttffft11ttttffft1111tt1tffttffttfffffLLfffffffffLL\ntttfffffffttttfffffffftttttt111tfff1ii;;;iiiiiii1111tt111tffttttft11111tt1ttttfft1tffffLLLfttfLLLLLL\n1tfffffffffttfffffffftt1ttt1111tffft1i;;;iiiiii;;i111111tfffft11t11111tfft1tttttt1tfffffLfftttfLLLLL\ntttttttttffttfftttttt1ttfft1111tttftt1;;;iiiiii;:;tt11ttftfffft1111111ttttt1ttfft11ttffffffftfLLLLLf\ntft1ttttttttttttttt11tfffft1tt11ttft11;;;;;iiii;;;1t11ttttffftt11t1111tftt1tt1tffftt1111ttfftfLffftt\nttttffffttt11tttttft1ttfffttfft11tftiii;;;;iiii;;;;:;ii1tttft111tt1111ttt11tt1tffffftttttttttttttftt\n111tfffffft1ttfttttt11tfftttfttt11i:,ii;;;;;iii;i:.....,,::;i111t11111tt111tft1fffffttfffftt11tffLLf\n1t1ttfffft111tffttt1111tft1ft1i;:,...;1i;;;;;;i11:...........,;1111111111t11tt1tfffttfffffffttfLLLLf\ntftt1tftt1tt11tft11ttt111111;:,......,111ii;;i1t1:........,,...;11t1111111111tttffttttffffftt1tffLLf\ntffttttttttttt1111ttttt11;:,.........,i111i;i1t1;,.............,1t1111111tttt11t1tfLftttfft1tt1tffft\n1ttttttttttttt1111ttt11ti,............,::::;;;i;:,..............it111111tttffttttfLLLffttttffffttttf\ntfffttttffttttt11ttttttti...............,;;;;;;;:...............:t111111tttffftttffffffftttttttffttf\ntfffttttfffttft11ttttttt;...............,:;;;;:::...............,1t111111ttffttttffLLfLfttfffffffttf\ntffft1ttttttttt11ttttttt:................,;;;;:::................it1111111ttt1tttffLLLLfttfffffffttf\ntffft1tttttttt111ttttttt:................,:;;::::................:t1111tt111tttttffLLLLfttfffftffttf\nttttt1tttttttt111111tt1t;.................,::::::................,1t111ttt11tftttfffffffttfffftffttt\nttttt1tttt11tt111ttttttt:.,:;:............,::::::................,itt111t111ttt1tttttfft11tftttffttt\nttttt1tttttttt11tttttttt;:;iii:............,:::::...........,:,....:1t11111tttt11tfffttt11ttttttfttt\nttttt1tttttttt111ttttttt;;iiiii:. ..........:::::...........,;;;;:..it1111tft1111ttttttt11ttttttfttt\n1111111tttttt1111ttttttt:;iiiii;............,::::,........,::;;iii;it111ttttt11111tt1ttt111ttttttt1t\n111111111111111111111111:;;iiii;,...........,:,::,.........,;;iiii;it111111111111111111111111111tt11\n111111111111111111111111;:;:;;;,............,::::,...........:;;ii;it1111111111111111111111111111111\n111111111111111111111111;::.... .............,:::,,......... .,,:i1t1111111111111111111111111111111\n111111111111111111111111i;,..................,,,:,,....... .;,..,;11111111111111111111111111111t1111\n1111111111111111111111111i;:;i;,..............,,:,,,........1tii11t111111111111111111111111111111111\n111111111111111111111111111111:..............,:::;;:,.......;ttttttttt11t1tt111111111111111111111111\n11111111111111111111111111111;,..............:i;;ii;;:,.....,1ttt1tttttttt1ttttt1111111111tttttt1111\n1111111111111111111111111111i,...............,i;;iiii;:......ittttttttttttttttttt11t11t1111ttttt1111\n","tttftttttttttttttttttfffttttt1t1ttttt111tttt1111111tttttttt11tttt111111tttttttttttttttttttt111111ttt\nttfftttttttttttttttffLLftffftfffftttt111111111t11ttffffftttt1111111111111111ttftttfttttttttt1111tttt\nttttttttttttttttffffLffttfffffffffffttttttttt111tfffffffftttttttt11111tttttffffftfLLfttttttt111tttt1\nttttttttttttttttfffffttfffffffLfffftttttttttt11tffffffffffttttttt1111ttfffffffLftttfffffttt1111tttt1\nttttttttttttfffftttftttffffffffftttfttttt111ttt1ttfffffftttttt111tt11111ttffffLLffttfLLff111111ttttt\nttttttttttffLLLLftttttfLLLftttttttffttttttttffft1ttfffffttfffft11tt11tt111tttffLLfttfftt1ttt111ttttt\nttttttttfffLLLLLLffttfLLLfttfffftffftttttfffffffffttffttffffffftt1111tftt11t11tfLLfftt11tffftttttttt\ntttttttfffLLLLLLLLffttfttttffLffftfftttttfftffffffftttffffffffffft111tft1ttft11tffLfttttfffffftttttt\ntttttttffLLLLLLLLLfttttffffffffftfftt11iii;:;;i1tfftttfffffffffftt1111111ttftttttttttttfffffLLfffttt\ntttffttfLLLLLLLLLLfttfftfLffttfffLLft1;:::,,,,::;;1ttttttffffffftt1111ttt1ttt1ttfttt1ttffffLLLLLfttt\nttfLLftfffLLLLLLLfftfLfftttfLfffLLLfti;,,,,:::::,,;fffft11tfffft11111tffft1tt11tt1ttttfffLLLLLLLffff\ntfffffttttfLLfffttttfffffttLLLLffLLf1ii;;iiii11i:,;tfffft11tttt1ttt11tfffttffft1ttfft1tffLLLLLLLLffL\ntttttttttttffftttttttttttttfffLffLLf1iiiiiii1111;:;tffffftt1ttt111111tffftfffftttttttt1ttfLLLLffffff\nttffffffffftttfffffffffttfttffLfffLf111;;;ii;;i1i:itfffftttttffft11111tfttffftttttttttttttfLLfffftft\nttffffffffftttffffffffttffftttftttttt1i;;;iii;iii;ifftft11tttttffft111tt1tffttffttfffffLLfffffffffLL\ntttfffffffttttfffffffftttttt111tffft11i;;;ii11111111tt111tffftttft11111tt1ttttfft1tffffLLLfttfLLLLLL\n1tfffffffffttfffffffftt1ttt1111fffft111i;;;iiiiiii11111ttfffft11111111tfft1tttttt1tfffffLfftttfLLLLL\ntttttttttffttfftttttt1ttftt1111ttffttt1i;;;iiii;;;1t11ttttfffft1111111ttttt1ttfft11ttffffffftfLLLLLf\ntft1ttttttttttttttt1ttfffftttt11ttft1t1i;;iiiii;:;1t111tttffftt11t1111tftt1tt1tffftt1111ttfftfLffftt\nttttfffftttt1ttttfft1tffffttfft11tft111i;;;;;ii;:;i11111ttttt1111t1111ttt11tt1tfffffttttttttttttffft\n111tfffffftttffftttt11tfftttfttt1ttt1i1i;;;;iiiiii::;i111tt11111t11111tt111tft1fffffttfffftt1ttfLLLf\n1t1ttfffft111tffttt1111tfttft11tti;::,i1;;;;;iii11:...,,::;i1tt1111111111t11tt1tfffttfffffffttfLLLLf\ntttt1tftt1tt11ttt11ttt1111tt11i;,,....;1i;;;;;;i11:.,.......,,:i11t1111111111tttffttttffffftt1tffLLf\ntffttttttttttt1111ttttt111i;:,........;1t1ii;;i1ii,.............;t1111111tttt11t1tfLftttfft1tt1tffft\n1ttttttttttttt1111tttttt11:...........:iiiiii1tti,..............,1t11111tttttttttfLLLffttttffffttttf\ntfffttttffttttt11ttttttt1i,.............,:::;;ii;,...............;t11111ttttfftttffffffftttttttffttf\ntfffttttfffffft11ttttttt1;..............,:;;;;;;:,...............,1111111ttffttttffLLfLfttfffffffttf\ntffftttttttttt111ttttttt1:.......... ....:;;;;;;:,................it111111tttttttffLLLLfttfffffffttf\ntffft1tttttttt111ttttttt1,........,,:;:,.,;;;;;:;,................;t1111t111tttttffffLLfttfffffffttf\nttttt1tttttttt1111t1tttt1,.......;;;;;:,..:;;::::,................,1t11ttt11tftttfffffffttfffftffttt\nttttt1tttt11tt111ttttttt1:......;;;;;;;:,.:;;::::,................,it111t1111tt11ttttfft11tftttffttt\nttttt1tttttttt11tttttttti,......:;:;;;:...,:;::::,.................:1t11111tt1t11tfffttt11ttttttfttt\nttttt1tttttttt11tttttttti,......:;:;;:.....,:::::,..................:11111ttt1111ttttttt11ttttttfttt\n1t1t111tttttt111111ttttt;...,,,.,:::. ......:::::,...................,111tttt11111ttttt1111ttttttt1t\n111111111111111111111111,,,,,,,.............,:::::,..................,1t111111111111111111111111tt11\n11111111111111111111111i,,..:,..............,,::::,,.................,11tt11111111111111111111111111\n111111111111111111111111;...................,:,,::,,.................,;ii11t111111111111111111111111\n111111111111111111111111i,..................,:::::,,................:::;;;i111t111111111111111111111\n1111111111111111111111111i;;;;i1:............::,:,,,,........... ..::;;;;i1111111111111111111111111\n111111111111111111111111111111t1,............,.,:,,,:,,........:,,..,:;;;i11t11111111111111111111111\n1111111111111111111111111111111i.............,,::;;;i;:,...... :111i;::;;;1ttttt11t1111111tttttt1111\n111111111111111111111111111111ti.............:1;;1iiii;:,.......i1tttt11111tt1tt111111t1111ttttt1111\n","tttttttttttttttttttttfffttttt1111tttt111tttt1111111tttttttt11tttt111111tttttttttttttttttttt111111ttt\nttfftttttttttttttttffLLftffftfffftttt111111111t11ttffffftttt1111111111111111ttftttfttttttttt1111tttt\nttttttttttttttttffffLffttfffffffffffttttttttt111tfffffffftttttttt11111tttttffffftfLLfttttttt1111ttt1\nttttttttttttttttfffffttfffffffLfffftttttttttt11tffffffffffttttttt11111tffffffffftttfffffttt11111ttt1\nttttttttttttfffftttffttffffffffftttfttttt111ttt1ttfffffftttttt11tt111111ttffffLLffttfLLff111111ttttt\nttttttttttffLLLLftttttfLLLfttttttffffttttttfffft1tffffffttfffft11t111tt111tttffLLfttfftt1ttt111ttttt\nttttttttfffLLLLLLffttfLLLfttfffftfffttttttfffffftfttfftffffffffttt111tftt11t11tfLLLftt11tffft1tttttt\ntttttttfLfLLLLLLLLffttfttttffLLfftffttttffffffffffftttfffffffffftt111tft1ttft11tffLfttttfffffftttttt\ntttttttffLLLLLLLLLfttttffffffLLftffttttttt11i;ii1tftttfffffffffftt1111111ttftttttttttttfffffLLfffttt\ntttffttfLLLLLLLLLLfttfftfffffffffLLfttt1i;::,,,,:;;1tttttffffffftt1111ttt1ttt1ttfttt1ttfffffLLLLfttt\nttfLLftfffLLLLLLLfftfLfftttfLfffLLLLttt1;,,,,,,,::,:iftt11tfffft11111tffft1tt11tt1ttttfffLLLLLLLLfff\ntfffffttttfLLfffttttfffffttLLLLfLLLftt1i;;;;;;iiii:,;fftt11tttt1ttt11tfffttffft1ttfft1tffLLLLLLLLffL\ntttttttttttffftttttttttttttffLLffLLftt1;iiiii11111i::tfffft1ttt111111tffftfffftttttttt1ttfLLLLffffff\nttfLffffffftttfffffffffttfttffLfffLftt1;i;;;iiiiiii;;tfftttttffft11111tfttffftttttttttttttfLLftfffft\nttffffffffftttffffffffftffftttfttftttttii;;;;ii;;ii;iftt11tttttfft1111tt1tffttffttfffffLLfffffffffLL\nttffffffffttttfffffffftttttt11ttfffttt11ii;;ii1111ii11111tffftttftt1111tt1ttttfft1tffffLLLfttfLLLLLL\n1ttffffffffttfffffffftt1ttt111tffffttt1i1i;;;iiiiii1111ttfffft11t11111tfft1tttttt1ttffffLfftttfLLLLf\ntttttttttffttfftttttt1ttfff1111ttffttttt1i;;;;i;:;it11ttftfffft1111111ttttt1ttfft11ttffffffftfLLLLLf\ntft1ttttttttttttttt11tfffftttt11tfftt11tt1;;;ii;;;1t111tttffftt11t1111tttt1tt1tffftt1111ttfftfLffftt\ntfttfffftttt1ttttfft1tffffttfftt1tft1111t1;;;;i;:;i11111tttft111tt1111ttt11tt1tfffffttttttttttttffft\n1tttfffffftttffftfft11tfffttfttttttt11111i;;:;iiii1i;i1t1tt11111t11111tt111tft1fffffttfffftt1ttffLLf\n1t1tffffft111tffttt1111tfttft11tt1t1i;;;1i;;;;ii1ii1,.,:;ii1tt11111111111t11tt1tfffttfffffffttfLfLLf\ntfttttftt1tt11ttt11ttt11t1t11tt11i:,...,11;;;;;it111,,.....,:;i11tt1111111111tttffttttffffftt1tffLLf\ntffttttttttttt1111ttftt111111i;:,......:1t1i;;;;i1t1,..........,:i1111111tttt11t1tfLftttfft1tt1tffft\n1ttttttttttttt1111ttttt111tt;..........:1111iii1;11:.............,it1111tttttt1ttfLLLffttttffffttttf\ntfffttttffttttt11ttttttt11t1,...........,,:::;;i;;:...............:t1111ttttfft1tffffffftttttttffttf\ntfffttttfffffft11ttttttt111i..............:;:::;;::...............,1t1111ttffttttffLLfLfttfffffffttf\ntfffttttttttttt11ttttttt111:..............,;;;;;;:,................;t11111ttt1t1tffLLLLfttfffffffttf\ntffft1tttttttt111ttttttt11i,..........,::::;;;;;;:,................,1t11t111tttttffffLLfttfffffffttf\nttttt1tttttttt111tt1tttt11i.........:;;;;:,;;::::::.................;t1ttt11tftttffffffftttffftffttt\nttttt1tttt11tt111ttttttt111,.......;;;;;;:,:;::::::,................:tttt1111tt11ttfttft11tftttffttt\nttttt1tttttttt11tttttttt11;,......,;;;;;;:::;::::::,................,itt111t11t11ttftttt11ttttttfttt\nttttt1tttttttt11tttttttt11;,......:;;;;i;...,:::::,,.................:tt1tttt1111ttttttt11ttttttfttt\n1t1t111tttttt111tttttttt1;,.,.....,:;:......,:::::,,..................it1tttt11111tttt11111ttttttt1t\n1111111111111111111111111:,,,......,,. .....,,::::,,..................,1t11111111111111111111111tt11\n1111111111111111111111111,,....,,...........,,,:::::,..................itt11111111111111111111111111\n1111111111111111111111111;,.................,:::::::,,................:1tt11111111111111111111111111\n11111111111111111111111111:.... ............,:::,:,,.................,1tt11111111111111111111111111\n11111111111111111111111111ii;;;;;i, .........,,::,,,,,................,:;;1tt11111111111111111111111\n11111111111111111111111111111111t1,..........,,,:,,:,:,,. ...........,:::;;i11tt11111111111111111111\n11111111111111111111111111111111t;.............,:::;;;;:,........ .,:::;;:;i1t111111111ttttttt11111\n111111111111111111111111111111111:...........,;;;i1iiii;:,.......::,,::::;;i1ttt111t11t1111ttttt1111\n","tttftttttttttttttttttfffttttt1111tttt111tttt1111111tttttttt11tttt111111tttttttttttttttttttt11111111t\nttfftttttttttttttttffLLftffftfffftttt111111111t11ttffffftttt1111111111111111ttftttfttttttttt1111tttt\nttftttttttttttttffffLffttfffffffLfffttttttttt111tfffffffftttttttt11111ttttttfffftfLLfttttttt111tttt1\nttttttttttttttttfffffttfffffffLfffftttttttttt11tffffffffffttttttt11111tfffffffffttffffffttt11111ttt1\ntttttttttttffffftttffttffffffffftttfttttt111ttt1ttfffffftttttt11tt111111ttffffLLffttfLLfft11111ttttt\nttttttttttffLLLLftttttfLLLfttttttffLftttttttffft1ttfffffttfffft11t111tt111tttffLLfttfftt1ttt111ttttt\nttttttttfffLLLLLLffttfLLLfttfffftfLfttttttffffffffftftttfffffffttt111tftt11t11tfLLfftt11tffft11ttttt\ntttttttfffLLLLLLLLffttfttttfLLLfftffttttffftt1iii11tttfffffffffftt111tft1ttft11tffLfttttfffffftttttt\ntttttttffLLLLLLLLLfttttffffffLffffftttttfti;;::,,,:;i1tffffffffftt1111111ttftttttttttttfffffLLfffttt\ntttfffffLLLLLLLLLLfttfftfLfffffffLLfttttt1;,,,,,,,::,:ittffffffftt1111ttt1ttt1tftttt1ttffffLLLLLfttt\nttfLLffffLLLLLLLLfftfLfftttfLfffLLLLfttt1i;:::;;iiii;,;t11tfffft11111tffft1tt1ttt1ttttfffLLLLLLLLfff\ntffffftttffLLLffttttfffffttLLLLfLLLffttf1;;iiii11111i::1t11tttt1ttt11tfffttfftttttfft1tffLLLLLLLLffL\ntttttttttttffftttttttttttttfffLffLLftttti:;;;;iiiiiii;;tftt1ttt111111tffftfffftttttttt1ttfLLLLffffff\nttfLffffffftttfffffffffttfttffLfffLfttttti;;;;;iii;i1iiftttttffft11111tfttffftttttttttttttfLLftfffft\nttffffffffftttffffffffftfffftffffftttttft11i;;;iiii1iiit11tttttfft1111tt11ffttffttfffffLLfffffffffLL\nttffffffffttttfffffffftttttt1tttffftttttti1i;;;ii11iii111tffftttftt1111tt1ttttfft1tffffLLLfttfLLLLLL\n1ttffffffffttfffffffftt1ttt1111tfffftttt111i;;iiiiii111ttfffft11t11111tfftttttttt1ttffffLfftttfLLLLf\ntttttttttffttfftttttt1ttfftttt1ttfftttttt111i;i;:;ii11ttftfffft1111111ttttt1ttfft11ttffffffftfLLLLLf\ntft1ttttttttttttttt11tfffftttt11tfftt1ttt111;;i;;;iii1ttttffftt11t1111ttt11tt1tffttt1111ttfftfLffftt\ntfttffffttt11tttttft1tffffttffttttft111ttt11;;;;:;i1i1;;11tft111tt1111tt111tt1tfffffttttt11tttttffft\n1tttfffffftttffftfft11tfftttffttttft1111iii1;;;i;iiii1i,,,:;;i11tt1111tt111tft1fffffttfffftt11tffLLf\n111ttfffftt1ttffttt1111tfttft11tt1t1i;:,,,;1i;;i1ii;iti,,.....,:;i1t11111t11tt1tfffttffffffft1fffLLf\ntfttttftt1tt11tft11ttt11tttt1tt11i;:,.....;11i;i1i;1tt;,,.........,:i11111111t1tffttttffffftt1tfffLf\ntffttttttttftt1111ttttt11111tft;,.........;11111i1ttti,.............,1111tttt1111tffftttfft1tt1tffft\n1ttttttttttttt1111tttttt11tfff1,...........,:;;;;;11i:...............itttttttt1ttfffLffttttffffttttf\ntfffttttffttttt11ttttttt11tfffi............ ,:;;;;;;;,...............;t1ttttfft1tffffffftttttttffttf\ntfffttttfffffft11tttttttttt1tf;..............:;;;;;;;,...............:111ttttttttfffLfLfttfffffffttf\ntfffttttftftft111ttttttt11t111:..............:;;;;;::,...............,1t11ttt1t1tffLLLLfttfffffffttf\ntfffttttfttttt111ttttttt11ttt1:..............,;;;::;::................itt111tttttffffLLfttfffffffttf\ntttttttttttttt111ttttttt1ttfft:..............,;;;;::::................:1tt11tft1tffffffftttffttffttt\nttttt1tttt11tt11tttttttt1tttt1;.,::,..........:;:::;::,...............,1t1111tt11tttttft11tfttttfttt\nttttt1tttttttt11ttttttttt1ttt1;,:;;:..........,::::::,,................it11111111ttftttt11ttttttfttt\nttttt1tttttttt11tttttttttttttiiiiii;,.........,:::::::,................:ttttt1111ttttttt11ttttttfttt\n1t1111tttttttt11tttttttt1ttt1;;;;ii;,.........,:::::::,.................ittttt1111tttt11111ttttttt1t\n11111111111111111111111111tt1;;;;ii;...........::::::::................ :1t111111111111111111111t111\n11111111111111111111111111tt1;::;;i:...........,:::::::,...............,itttt11111111111111111111111\n11111111111111111111111tttttt;,,,::............,::::::,,...............ittttt11111111111111111111111\n1111111111111111111111111tttt1:,,..............,:::::,,,,.......,:;::,:1t1111111111111111111111t1111\n11111111111111111111111111111111i;;i:..........,:,,,.,,.,.......::;;i;it1ttt111111111111111111111111\n1111111111111111111111111111111111ti...........,,.,:,:;::,......,:;;ii1ttttt11111111111111111t111111\n1111111111111111111111111111111111t;...........,;iiiiiii;:,......:;;;i1ttttt111t1111111111tttttt1111\n11111111111111111111111111111111111:...........,;i11iiii;:,.......,:i1tttttt1ttttt1t11t1111ttttt1111\n"];const l=new i.a;function c(){const[e,t]=Object(a.useState)(function(){const e=new Date;return 3===e.getMonth()&&1===e.getDate()}()),[n,i]=Object(a.useState)(0);return Object(a.useEffect)(()=>{const e=setInterval(()=>i(e=>(e+1)%s.length),100);return()=>clearInterval(e)},[]),Object(a.useEffect)(()=>l.subscribe(()=>{t(!0)}),[]),e?r.a.createElement(o.a,{open:e,onClose:()=>t(!1)},r.a.createElement("pre",{style:{color:"#0f0"}},s[n]),r.a.createElement("div",{style:{display:"none"}},r.a.createElement("iframe",{width:"560",height:"315",src:"https://www.youtube.com/embed/a3Z7zEc7AXQ?autoplay=1",title:"YouTube video player",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"}))):r.a.createElement(r.a.Fragment,null)}},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var a=n(0),r=n.n(a),i=n(15),o=n(1),s=n(19),l=n(118),c=n(142);const f=Object(l.a)(e=>Object(c.a)({travel:{color:e.colors.white,lineHeight:"1em",whiteSpace:"pre",cursor:"pointer"}}));function u(e){const t=f();return e.city!==e.currentCity?r.a.createElement(s.a,{title:r.a.createElement(o.a,null,e.city)},r.a.createElement("span",{onClick:()=>e.onTravel(e.city),className:t.travel},e.city[0])):r.a.createElement("span",null,e.city[0])}function m(e){return r.a.createElement(r.a.Fragment,null,r.a.createElement(o.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}}," ,_ . ._. _. ."),r.a.createElement(o.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}}," , _-\\','|~\\~ ~/ ;-'_ _-' ,;_;_, ~~-"),r.a.createElement(o.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}}," /~~-\\_/-'~'--' \\~~| ', ,' / / ~|-_\\_/~/~ ~~--~~~~'--_"),r.a.createElement(o.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}}," / ,/'-/~ '\\ ,' _ , '",r.a.createElement(u,{onTravel:e.onTravel,currentCity:e.currentCity,city:i.a.Volhaven}),",'|~ ._/-, /~"),r.a.createElement(o.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}}," ~/-'~\\_, '-,| '|. ' ~ ,\\ /'~ / /_ /~"),r.a.createElement(o.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}},".-~ '| '',\\~|\\ _\\~ ,_ , ",r.a.createElement(u,{onTravel:e.onTravel,currentCity:e.currentCity,city:i.a.Chongqing})," /,"),r.a.createElement(o.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}}," '\\ ",r.a.createElement(u,{onTravel:e.onTravel,currentCity:e.currentCity,city:i.a.Sector12})," /'~ |_/~\\\\,-,~ \\ \" ,_,/ |"),r.a.createElement(o.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}}," | / ._-~'\\_ _~| \\ ) ",r.a.createElement(u,{onTravel:e.onTravel,currentCity:e.currentCity,city:i.a.NewTokyo})),r.a.createElement(o.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}}," \\ __-\\ '/ ~ |\\ \\_ / ~"),r.a.createElement(o.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}}," ., '\\ |, ~-_ - | \\\\_' ~| /\\ \\~ ,"),r.a.createElement(o.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}}," ~-_' _; '\\ '-, \\,' /\\/ |"),r.a.createElement(o.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}}," '\\_,~'\\_ \\_ _, /' ' |, /|'"),r.a.createElement(o.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}}," / \\_ ~ | / \\ ~'; -,_."),r.a.createElement(o.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}}," | ~\\ | | , '-_, ,; ~ ~\\"),r.a.createElement(o.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}}," \\, ",r.a.createElement(u,{onTravel:e.onTravel,currentCity:e.currentCity,city:i.a.Aevum})," / \\ / /| ,-, , -,"),r.a.createElement(o.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}}," | ,/ | |' |/ ,- ~ \\ '."),r.a.createElement(o.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}}," ,| ,/ \\ ,/ \\ ",r.a.createElement(u,{onTravel:e.onTravel,currentCity:e.currentCity,city:i.a.Ishima})," |"),r.a.createElement(o.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}}," / | ~ -~~-, / _"),r.a.createElement(o.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}}," | ,-' ~ /"),r.a.createElement(o.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}}," / ,' ~"),r.a.createElement(o.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}}," ',| ~"),r.a.createElement(o.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}}," ~'"))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var a=n(0),r=n.n(a),i=n(24),o=n(1170),s=n(1171),l=n(2);function c(e){const t=e.action.getEstSuccessChance(e.bladeburner,l.a);let n=r.a.createElement(r.a.Fragment,null);return n=t[0]===t[1]?r.a.createElement(r.a.Fragment,null,Object(i.f)(100*t[0],1),"%"):r.a.createElement(r.a.Fragment,null,Object(i.f)(100*t[0],1),"% ~ ",Object(i.f)(100*t[1],1),"%"),r.a.createElement(r.a.Fragment,null,"Estimated success chance: ",n," ",e.action.isStealth?r.a.createElement(o.a,null):r.a.createElement(r.a.Fragment,null),e.action.isKill?r.a.createElement(s.a,null):r.a.createElement(r.a.Fragment,null))}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var a=n(0),r=n.n(a),i=n(37);function o(e){return r.a.createElement(i.a,{open:e.open,onClose:e.onClose},e.children)}},,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var a=n(1431),r=n(14);function i(e){const t=a.a[e];if(null==t)return;const n=`<i>${t.title}</i><br><br>${t.txt}`;Object(r.a)(n)}},,,,,,function(e,t,n){"use strict";n.d(t,"c",(function(){return m})),n.d(t,"d",(function(){return h})),n.d(t,"b",(function(){return d})),n.d(t,"a",(function(){return p}));var a=n(0),r=n.n(a),i=n(262),o=n(2),s=n(84),l=n(87),c=n(6),f=n(20),u=n(305);function m(){const e=o.a.getCurrentServer();null!==e&&l.a.DarkWeb==e.hostname&&s.a.print("You are now connected to the dark web. From the dark web you can purchase illegal items. Use the 'buy -l' command to display a list of all the items you can buy. Use 'buy [item-name]' to purchase an item. Use 'buy -a' to purchase all unowned items.")}function h(){for(const e of Object.keys(i.a)){const t=i.a[e],n=o.a.getHomeComputer().programs.includes(t.program)?r.a.createElement("span",{style:{color:"green"}},"[OWNED]"):r.a.createElement(f.a,{money:t.price});s.a.printRaw(r.a.createElement(r.a.Fragment,null,r.a.createElement("span",null,t.program)," - ",r.a.createElement("span",null,n)," - ",r.a.createElement("span",null,t.description)))}}function d(e){e=e.toLowerCase();let t=null;for(const n of Object.keys(i.a)){const a=i.a[n];a.program.toLowerCase()==e&&(t=a)}null!==t?o.a.hasProgram(t.program)?s.a.print("You already have the "+t.program+" program"):o.a.money<t.price?s.a.error("Not enough money to purchase "+t.program):(o.a.loseMoney(t.price,"other"),o.a.getHomeComputer().pushProgram(t.program),Object(u.b)(o.a.currentWork)&&o.a.currentWork.programName===t.program&&o.a.finishWork(!0),s.a.print("You have purchased the "+t.program+" program. The new program can be found on your home computer.")):s.a.error("Unrecognized item: "+e)}function p(){const e=[];let t=0;for(const n of Object.keys(i.a)){const a=i.a[n];o.a.hasProgram(a.program)||(e.push(a),t+=a.price)}if(0!==e.length)if(t>o.a.money)s.a.error("Not enough money to purchase remaining programs, "+c.a.formatMoney(t)+" required");else for(const t of e)d(t.program);else s.a.print("All available programs have been purchased already.")}},function(e,t,n){"use strict";function a(e,t){const n=e.hostname;return"requiredHackingSkill"in e?!1===e.hasAdminRights?{res:!1,msg:`Cannot ${t} ${n} server because you do not have root access`}:{res:!0}:{res:!1,msg:`Cannot ${t} ${n} server because it is a Hacknet Node`}}function r(e,t){const n=a(e,"hack");if(!n.res)return n;return e.requiredHackingSkill>t.hacking?{res:!1,msg:`Cannot hack ${e.hostname} server because your hacking skill is not high enough`}:{res:!0}}function i(e){return a(e,"grow")}function o(e){return a(e,"weaken")}n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return i})),n.d(t,"c",(function(){return o}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o}));var a=n(185);function r(e,t,n){const a=n-Math.pow(t,.9)/250-e.intelligence/1600;return a<0?0:a>3?3:a}function i(e,t){return r(e,e.strength+e.defense+e.dexterity+e.agility+e.charisma,t)}function o(e,t){return r(e,Object(a.b)(9e3*e.mults.strength_exp,e.mults.strength)+Object(a.b)(9e3*e.mults.defense_exp,e.mults.defense)+Object(a.b)(9e3*e.mults.agility_exp,e.mults.agility)+Object(a.b)(9e3*e.mults.dexterity_exp,e.mults.dexterity)+Object(a.b)(9e3*e.mults.charisma_exp,e.mults.charisma),t)}},function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return s}));var a=n(25),r=n(162);function i(e){return"string"==typeof e&&(!isNaN(e)&&!isNaN(parseFloat(e)))}function o(e){const t=(e=(e=e.trim()).replace(/\s\s+/g," ")).match(/(?:'[^']*'|"[^"]*"|[^;"])*/g);if(!t)return[];const n=t.map(r.h).map(e=>e.match(/(?:'[^']*'|"[^"]*"|[^;"])*/g)).flat(),a=[];for(const e of n)null!==e&&(e.match(/^\s*$/)||a.push(e.trim()));return a}function s(e){let t="";const n=[];let r=0,o=0,s="";for(;o<e.length;){let l=!1;o>=1&&(s=e.charAt(o-1),"\\"===s&&(l=!0));const c=e.charAt(o);if(c===a.a.DOUBLE_QUOTE)if(l||s!==a.a.SPACE)""===t?t=a.a.DOUBLE_QUOTE:t===a.a.DOUBLE_QUOTE&&(t="");else{const t=e.indexOf(a.a.DOUBLE_QUOTE,o+1);if(-1!==t&&(t===e.length-1||e.charAt(t+1)===a.a.SPACE)){n.push(e.substr(o+1,t-o-1)),r=o=t===e.length-1?t+1:t+2;continue}}else if(c===a.a.QUOTE)if(l||s!==a.a.SPACE)""===t?t=a.a.QUOTE:t===a.a.QUOTE&&(t="");else{const t=e.indexOf(a.a.QUOTE,o+1);if(-1!==t&&(t===e.length-1||e.charAt(t+1)===a.a.SPACE)){n.push(e.substr(o+1,t-o-1)),r=o=t===e.length-1?t+1:t+2;continue}}else if(c===a.a.SPACE&&""===t){const t=e.substr(r,o-r);i(t)?n.push(parseFloat(t)):"true"===t?n.push(!0):"false"===t?n.push(!1):n.push(t),r=o+1}++o}if(r!==o){const t=e.substr(r,o-r);i(t)?n.push(parseFloat(t)):"true"===t?n.push(!0):"false"===t?n.push(!1):n.push(t)}return n}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var a=n(0),r=n.n(a),i=n(1397),o=n(1),s=n(8);function l(e){const[t,n]=Object(a.useState)(0),[l,c]=Object(a.useState)(!1);return r.a.createElement(r.a.Fragment,null,e.lines.slice(0,t).map((e,t)=>r.a.createElement(o.a,{key:t},e)),e.lines.length>t&&r.a.createElement(i.a,{key:t,text:e.lines[t],onDone:function(){const a=t+1;n(a),a>=e.lines.length&&(e.onDone&&e.auto&&e.onDone(),c(!0))}}),!e.auto&&e.onDone&&l&&r.a.createElement(s.a,{onClick:e.onDone},"Continue ..."))}},,,,,,,,,,,,,,function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return r}));const a=5,r=1e13},,,,,,,,,,,,,,,,,,,,,,,,,function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"b",(function(){return checkInfiniteLoop})),__webpack_require__.d(__webpack_exports__,"a",(function(){return calculateRamUsage}));var acorn_walk__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(309),acorn__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(260),_RamCalculationErrorCodes__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(335),_Netscript_RamCostGenerator__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(229),_Terminal_DirectoryHelpers__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(83);const specialReferenceIF="__SPECIAL_referenceIf",specialReferenceFOR="__SPECIAL_referenceFor",specialReferenceWHILE="__SPECIAL_referenceWhile",memCheckGlobalKey=".__GLOBAL__";async function parseOnlyRamCalculate(player,otherScripts,code,workerScript){try{let dependencyMap={};const completedParses=new Set,parseQueue=[];function parseCode(e,t){const n=parseOnlyCalculateDeps(e,t);completedParses.add(t);for(let e=0;e<n.additionalModules.length;++e)completedParses.has(n.additionalModules[e])||parseQueue.push(n.additionalModules[e]);dependencyMap=Object.assign(dependencyMap,n.dependencyMap)}const initialModule="__SPECIAL_INITIAL_MODULE__";for(parseCode(code,initialModule);parseQueue.length>0;){const nextModule=parseQueue.shift();if(void 0===nextModule)throw new Error("nextModule should not be undefined");let code;if(nextModule.startsWith("https://")||nextModule.startsWith("http://"))try{const module=await eval("import(nextModule)");code="";for(const e in module)"function"==typeof module[e]&&(code+=module[e].toString()+";\n")}catch(e){return console.error(`Error dynamically importing module from ${nextModule} for RAM calculations: ${e}`),{cost:_RamCalculationErrorCodes__WEBPACK_IMPORTED_MODULE_2__.a.URLImportError}}else{if(!Array.isArray(otherScripts))return console.warn("parseOnlyRamCalculate() not called with array of scripts"),{cost:_RamCalculationErrorCodes__WEBPACK_IMPORTED_MODULE_2__.a.ImportError};let e=null;const t=nextModule.startsWith("./")?nextModule.slice(2):nextModule;for(const n of otherScripts)if(Object(_Terminal_DirectoryHelpers__WEBPACK_IMPORTED_MODULE_4__.b)(n.filename,t)){e=n;break}if(null==e)return{cost:_RamCalculationErrorCodes__WEBPACK_IMPORTED_MODULE_2__.a.ImportError};code=e.code}parseCode(code,nextModule)}let ram=_Netscript_RamCostGenerator__WEBPACK_IMPORTED_MODULE_3__.a.ScriptBaseRamCost;const detailedCosts=[{type:"misc",name:"baseCost",cost:_Netscript_RamCostGenerator__WEBPACK_IMPORTED_MODULE_3__.a.ScriptBaseRamCost}],unresolvedRefs=Object.keys(dependencyMap).filter(e=>e.startsWith(initialModule)),resolvedRefs=new Set;for(;unresolvedRefs.length>0;){const e=unresolvedRefs.shift();if(void 0===e)throw new Error("ref should not be undefined");if("hacknet"!==e||resolvedRefs.has("hacknet")||(ram+=_Netscript_RamCostGenerator__WEBPACK_IMPORTED_MODULE_3__.a.ScriptHacknetNodesRamCost,detailedCosts.push({type:"ns",name:"hacknet",cost:_Netscript_RamCostGenerator__WEBPACK_IMPORTED_MODULE_3__.a.ScriptHacknetNodesRamCost})),"document"!==e||resolvedRefs.has("document")||(ram+=_Netscript_RamCostGenerator__WEBPACK_IMPORTED_MODULE_3__.a.ScriptDomRamCost,detailedCosts.push({type:"dom",name:"document",cost:_Netscript_RamCostGenerator__WEBPACK_IMPORTED_MODULE_3__.a.ScriptDomRamCost})),"window"!==e||resolvedRefs.has("window")||(ram+=_Netscript_RamCostGenerator__WEBPACK_IMPORTED_MODULE_3__.a.ScriptDomRamCost,detailedCosts.push({type:"dom",name:"window",cost:_Netscript_RamCostGenerator__WEBPACK_IMPORTED_MODULE_3__.a.ScriptDomRamCost})),"corporation"!==e||resolvedRefs.has("corporation")||(ram+=_Netscript_RamCostGenerator__WEBPACK_IMPORTED_MODULE_3__.a.ScriptCorporationRamCost,detailedCosts.push({type:"ns",name:"corporation",cost:_Netscript_RamCostGenerator__WEBPACK_IMPORTED_MODULE_3__.a.ScriptCorporationRamCost})),resolvedRefs.add(e),e.endsWith(".*")){const t=e.slice(0,e.length-2);for(const e of Object.keys(dependencyMap).filter(e=>e.startsWith(t)))for(const t of dependencyMap[e]||[])resolvedRefs.has(t)||unresolvedRefs.push(t)}else for(const t of dependencyMap[e]||[])resolvedRefs.has(t)||unresolvedRefs.push(t);try{function applyFuncRam(e){return"number"==typeof e?e:"function"==typeof e?e(player):0}if(workerScript.loadedFns[e])continue;let t;workerScript.loadedFns[e]=!0;let n="n/a";e in workerScript.env.vars.bladeburner?(t=workerScript.env.vars.bladeburner[e],n="bladeburner."+e):e in workerScript.env.vars.codingcontract?(t=workerScript.env.vars.codingcontract[e],n="codingcontract."+e):e in workerScript.env.vars.stanek?(t=workerScript.env.vars.stanek[e],n="stanek."+e):e in workerScript.env.vars.infiltration?(t=workerScript.env.vars.infiltration[e],n="infiltration."+e):e in workerScript.env.vars.gang?(t=workerScript.env.vars.gang[e],n="gang."+e):e in workerScript.env.vars.sleeve?(t=workerScript.env.vars.sleeve[e],n="sleeve."+e):e in workerScript.env.vars.stock?(t=workerScript.env.vars.stock[e],n="stock."+e):e in workerScript.env.vars.ui?(t=workerScript.env.vars.ui[e],n="ui."+e):e in workerScript.env.vars.grafting?(t=workerScript.env.vars.grafting[e],n="grafting."+e):e in workerScript.env.vars.singularity?(t=workerScript.env.vars.singularity[e],n="singularity."+e):(t=workerScript.env.vars[e],n=""+e);const a=applyFuncRam(t);ram+=a,detailedCosts.push({type:"fn",name:n,cost:a})}catch(e){continue}}return{cost:ram,entries:detailedCosts.filter(e=>e.cost>0)}}catch(e){return{cost:_RamCalculationErrorCodes__WEBPACK_IMPORTED_MODULE_2__.a.SyntaxError}}}function checkInfiniteLoop(e){const t=Object(acorn__WEBPACK_IMPORTED_MODULE_1__.a)(e,{sourceType:"module",ecmaVersion:"latest"});let n=-1;return acorn_walk__WEBPACK_IMPORTED_MODULE_0__.a(t,{},{WhileStatement:(t,a,r)=>{!function(e){return"Literal"===e.type&&"true"===e.raw}(t.test)||function(e){let t=!1;return acorn_walk__WEBPACK_IMPORTED_MODULE_0__.a(e,{},{AwaitExpression:()=>{t=!0}}),t}(t)?t.body&&r(t.body,a):n=(e.slice(0,t.start).match(/\n/g)||[]).length+1}}),n}function parseOnlyCalculateDeps(e,t){const n=Object(acorn__WEBPACK_IMPORTED_MODULE_1__.a)(e,{sourceType:"module",ecmaVersion:"latest"}),a=t+memCheckGlobalKey,r={};r[a]=new Set;const i={},o=[];function s(e,n){const a=r[e]||(r[e]=new Set),o=i[n];void 0!==o&&a.add(o),a.add(t+"."+n),a.add(n)}const l=Object.getOwnPropertyNames(Object.prototype);function c(){return{Identifier:(e,t)=>{l.includes(e.name)||s(t.key,e.name)},WhileStatement:(e,t,n)=>{s(t.key,specialReferenceWHILE),e.test&&n(e.test,t),e.body&&n(e.body,t)},DoWhileStatement:(e,t,n)=>{s(t.key,specialReferenceWHILE),e.test&&n(e.test,t),e.body&&n(e.body,t)},ForStatement:(e,t,n)=>{s(t.key,specialReferenceFOR),e.init&&n(e.init,t),e.test&&n(e.test,t),e.update&&n(e.update,t),e.body&&n(e.body,t)},IfStatement:(e,t,n)=>{s(t.key,specialReferenceIF),e.test&&n(e.test,t),e.consequent&&n(e.consequent,t),e.alternate&&n(e.alternate,t)},MemberExpression:(e,t,n)=>{e.object&&n(e.object,t),e.property&&n(e.property,t)}}}return acorn_walk__WEBPACK_IMPORTED_MODULE_0__.a(n,{key:a},Object.assign({ImportDeclaration:(e,t)=>{const n=e.source.value;o.push(n);const a=r[t.key];if(void 0===a)throw new Error("set should not be undefined");a.add(n+memCheckGlobalKey);for(let a=0;a<e.specifiers.length;++a){const o=e.specifiers[a];if(void 0!==o.imported&&void 0!==o.local)i[o.local.name]=n+"."+o.imported.name;else{const e=r[t.key];if(void 0===e)throw new Error("set should not be undefined");e.add(n+".*")}}},FunctionDeclaration:e=>{const n=t+"."+(null===e.id?"__SPECIAL_DEFAULT_EXPORT__":e.id.name);acorn_walk__WEBPACK_IMPORTED_MODULE_0__.a(e,{key:n},c())}},c())),{dependencyMap:r,additionalModules:o}}async function calculateRamUsage(e,t,n){const a={loadedFns:{},env:{vars:_Netscript_RamCostGenerator__WEBPACK_IMPORTED_MODULE_3__.b}};try{return await parseOnlyRamCalculate(e,n,t,a)}catch(e){return console.error("Failed to parse script for RAM calculations:"),console.error(e),{cost:_RamCalculationErrorCodes__WEBPACK_IMPORTED_MODULE_2__.a.SyntaxError}}}},function(e,t,n){"use strict";function a(e){return+(Math.round(parseFloat(e+"e+2"))+"e-2")}n.d(t,"a",(function(){return a}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o}));var a=n(202);let r=1;function i(){let e=r,t=!1;for(let n=0;n<1e6;){if(!a.a.has(e+n)){t=!0,e+=n;break}n===Number.MAX_SAFE_INTEGER-1?n=1:++n}return t?(r=e+1,r>=Number.MAX_SAFE_INTEGER&&(r=1),e):-1}function o(){r=1}},function(e,t,n){"use strict";n.d(t,"a",(function(){return ie}));var a=n(606),r=n.n(a),i=n(433),o=n(302),s=n(21),l=n(12),c=n(100),f=n(493),u=n(91),m=n(84),h=n(2),d=n(60),p=n(259),g=n(239),y=n(99),b=n(418),E=n(27),v=n(137),k=n(227),w=n(44),_=n(539),S=n(83),C=n(228),x=n(201),L=n(144),O=n(202),M=n(111),T=n(6),A=n(24),R=n(182),N=n(261),P=n(148),I=n(1045),F=n(1050),D=n(1051),j=n(1053),B=n(1054),G=n(1056),W=n(1057),H=n(1058),U=n(1059),q=n(1061),$=n(1066),K=n(1067),z=n(1068),V=n(1425),Y=n(657),J=n(14),X=n(94),Q=n(377),Z=n(656),ee=n(288),te=n(431),ne=n(473),ae=n(15),re=n(1426);function ie(e){const t=function(e,t){const n=Object(E.d)(e);if(null==n)throw t.makeRuntimeErrorMsg("Invalid hostname: "+e);return n},n=function(n,a,r,i){if(!Array.isArray(i))throw Object(M.b)(e,`Invalid scriptArgs argument passed into getRunningScript() from ${n.function}(). This is probably a bug. Please report to game developer`);if(null!=a&&"string"==typeof a){null==r&&(r=e.hostname);const o=t(r,n);return Object(g.a)(a,i,o)}return e.scriptRef},a=function(e){for(const t of Object(E.c)()){const n=Object(g.b)(e,t);if(n)return n}return null},oe=function(e){return{args:e.args.slice(),filename:e.filename,logs:e.logs.slice(),offlineExpGained:e.offlineExpGained,offlineMoneyMade:e.offlineMoneyMade,offlineRunningTime:e.offlineRunningTime,onlineExpGained:e.onlineExpGained,onlineMoneyMade:e.onlineMoneyMade,onlineRunningTime:e.onlineRunningTime,pid:e.pid,ramUsage:e.ramUsage,server:e.server,threads:e.threads}},se=function(e,t,n){return Array.isArray(n)||(n=[]),`Cannot find running script ${e} on server ${t} with args: ${Object(N.a)(n)}`},le=function(t,n=""){return t instanceof u.a&&(e.log(n,()=>"Does not work on Hacknet Servers"),!0)},ce=function(t,n){const a=(new Error).stack;if(void 0===a)throw new Error("how did we not throw an error?");const r=a.split("\n").slice(1),i=e.getServer().scripts,o=[];for(const e of r){let t;for(const n of i){n.url&&e.includes(n.url)&&(t=n.filename);for(const a of n.dependencies)e.includes(a.url)&&(t=a.filename)}if(!t)continue;function s(e){const t=e.match(/.*:(\d+):\d+.*/),n=e.match(/.*at (.+) \(.*/);return t&&n?{line:t[1],func:n[1]}:null}let n={line:"-1",func:"unknown"};const a=s(e);function l(e){const t=e.match(/.*:(\d+):\d+$/),n=e.lastIndexOf("@");return t&&-1!==n?{line:t[1],func:e.slice(0,n)}:null}a&&(n=a);const r=l(e);r&&(n=r),o.push(`${t}:L${n.line}@${n.func}`)}e.log(t,()=>n);let c=`${t}: ${n}`;return 0!==o.length&&(c+="<br><br>Stack:<br>"+o.join("<br>")),Object(M.b)(e,c)},fe=async function(n,a,r,{threads:i,stock:o}={}){if(void 0===a)throw n.makeRuntimeErrorMsg("Takes 1 argument.");const u=Object(M.d)(n,i),m=t(a,n);if(!(m instanceof w.a))throw n.makeRuntimeErrorMsg("Cannot be executed on this server.");const d=Object(c.d)(m,h.a),p=Object(f.b)(m,h.a);if(!p.res)throw n.makeRuntimeErrorMsg(p.msg||"");return n.log(()=>`Executing on '${m.hostname}' in ${Object(A.d)(1e3*d,!0)} (t=${T.a.formatThreads(u)})`),Object(M.c)(1e3*d,e).then((function(){const t=Object(c.b)(m,h.a),a=Math.random();let i=Object(c.c)(m,h.a)*u;const f=i/4;if(a<t){const t=Object(c.e)(m,h.a);let a=Math.ceil(1/t);isNaN(a)&&(a=1e6);let d=Math.floor(m.moneyAvailable*t)*u;d<=0&&(d=0,i=f),d>m.moneyAvailable&&(d=m.moneyAvailable),m.moneyAvailable-=d,m.moneyAvailable<0&&(m.moneyAvailable=0);let p=d*s.a.ScriptHackMoneyGain;return r&&(p=d*s.a.ManualHackMoney),h.a.gainMoney(p,"hacking"),e.scriptRef.onlineMoneyMade+=p,h.a.scriptProdSinceLastAug+=p,e.scriptRef.recordHack(m.hostname,p,u),h.a.gainHackingExp(i),r&&h.a.gainIntelligenceExp(.005),e.scriptRef.onlineExpGained+=i,n.log(()=>`Successfully hacked '${m.hostname}' for ${T.a.formatMoney(p)} and ${T.a.formatExp(i)} exp (t=${T.a.formatThreads(u)})`),m.fortify(l.a.ServerFortifyAmount*Math.min(u,a)),o&&Object(_.c)(m,d),r&&(m.backdoorInstalled=!0),Promise.resolve(p)}return h.a.gainHackingExp(f),e.scriptRef.onlineExpGained+=f,n.log(()=>`Failed to hack '${m.hostname}'. Gained ${T.a.formatExp(f)} exp (t=${T.a.formatThreads(u)})`),Promise.resolve(0)}))},ue=function(e){let t="";for(let n of e)n=Object(Y.a)(n),t+="object"==typeof n?JSON.stringify(n):""+n;return t},me={updateDynamicRam:function(t,n){if(e.dynamicLoadedFns[t])return;e.dynamicLoadedFns[t]=!0;let a=e.scriptRef.threads;if("number"!=typeof a&&(console.warn(`WorkerScript detected NaN for threadcount for ${e.name} on ${e.hostname}`),a=1),e.dynamicRamUsage+=n,e.dynamicRamUsage>1.01*e.ramUsage)throw Object(M.b)(e,`Dynamic RAM usage calculated to be greater than initial RAM usage on fn: ${t}.\n This is probably because you somehow circumvented the static RAM calculation.\n\n Threads: ${a}\n Dynamic RAM Usage: ${T.a.formatRAM(e.dynamicRamUsage)}\n Static RAM Usage: ${T.a.formatRAM(e.ramUsage)}\n\n One of these could be the reason:\n * Using eval() to get a reference to a ns function\n const myScan = eval('ns.scan');\n\n * Using map access to do the same\n const myScan = ns['scan'];\n\n Sorry :(`)},makeRuntimeErrorMsg:ce,string:(e,t,n)=>{if("string"==typeof n)return n;if("number"==typeof n)return n+"";throw ce(e,t+" should be a string.")},number:(e,t,n)=>{if("string"==typeof n){const e=parseFloat(n);if(!isNaN(e))return e}else if("number"==typeof n){if(isNaN(n))throw ce(e,t+" is NaN.");return n}throw ce(e,t+" should be a number.")},boolean:e=>!!e,city:(e,t,n)=>{if("string"!=typeof n)throw ce(e,t+" should be a city name.");const a=n;if(!Object.values(ae.a).includes(a))throw ce(e,t+" should be a city name.");return a},getServer:t,checkSingularityAccess:function(e){if(4!==h.a.bitNodeN&&0===h.a.sourceFileLvl(4))throw ce(e,"This singularity function requires Source-File 4 to run. A power up you obtain later in the game. It will be very obvious when and how you can obtain it.")},hack:fe,getValidPort:(e,t)=>{if(isNaN(t))throw ce(e,`Invalid argument. Must be a port number between 1 and ${l.a.NumNetscriptPorts}, is ${t}`);if((t=Math.round(t))<1||t>l.a.NumNetscriptPorts)throw ce(e,`Trying to use an invalid port: ${t}. Only ports 1-${l.a.NumNetscriptPorts} are valid.`);const n=x.a[t-1];if(null==n||!(n instanceof Object))throw ce(e,`Could not find port: ${t}. This is a bug. Report to dev.`);return n}},he=Object(V.a)(h.a,e),de={...{...he,args:e.args,enums:{toast:X.d},singularity:he,gang:Object(I.a)(h.a,e),bladeburner:Object(H.a)(h.a,e),codingcontract:Object(U.a)(h.a,e),sleeve:Object(F.a)(h.a),corporation:Object(q.a)(h.a,e),stanek:Object(B.a)(h.a,e,me),infiltration:Object(G.a)(h.a),ui:Object(W.a)(),formulas:Object($.a)(h.a,me),stock:Object(K.a)(h.a,e),grafting:Object(z.a)(h.a),hacknet:Object(j.a)(h.a,e),sprintf:()=>i.sprintf,vsprintf:()=>i.vsprintf,scan:n=>(a=e.hostname)=>{const r=n.helper.string("hostname",a),i=t(r,n),o=[];for(let e=0;e<i.serversOnNetwork.length;e++){const t=Object(v.a)(i,e);if(null===t)continue;const n=t.hostname;null!==n&&o.push(n)}return n.log(()=>`returned ${i.serversOnNetwork.length} connections for ${i.hostname}`),o},hack:e=>(t,{threads:n,stock:a}={})=>{const r=e.helper.string("hostname",t);return fe(e,r,!1,{threads:n,stock:a})},hackAnalyzeThreads:e=>(n,a)=>{const r=e.helper.string("hostname",n),i=e.helper.number("hackAmount",a),o=t(r,e);if(!(o instanceof w.a))return e.log(()=>"Cannot be executed on this server."),-1;if(isNaN(i))throw e.makeRuntimeErrorMsg(`Invalid hackAmount argument passed into hackAnalyzeThreads: ${i}. Must be numeric.`);if(i<0||i>o.moneyAvailable)return-1;if(0===i)return 0;const s=Object(c.e)(o,h.a);return 0===s||0===o.moneyAvailable?0:i/Math.floor(o.moneyAvailable*s)},hackAnalyze:e=>n=>{const a=e.helper.string("hostname",n),r=t(a,e);return r instanceof w.a?Object(c.e)(r,h.a):(e.log(()=>"Cannot be executed on this server."),0)},hackAnalyzeSecurity:e=>(n,a)=>{let r=e.helper.number("threads",n);if(a){const n=e.helper.string("hostname",a),i=t(n,e);if(!(i instanceof w.a))return e.log(()=>"Cannot be executed on this server."),0;const o=Object(c.e)(i,h.a);o>0&&(r=Math.min(r,Math.ceil(1/o)))}return l.a.ServerFortifyAmount*r},hackAnalyzeChance:e=>n=>{const a=e.helper.string("hostname",n),r=t(a,e);return r instanceof w.a?Object(c.b)(r,h.a):(e.log(()=>"Cannot be executed on this server."),0)},sleep:t=>async(n=0)=>{const a=t.helper.number("time",n);if(void 0===a)throw t.makeRuntimeErrorMsg("Takes 1 argument.");return t.log(()=>`Sleeping for ${a} milliseconds`),Object(M.c)(a,e).then((function(){return Promise.resolve(!0)}))},asleep:e=>function(t=0){const n=e.helper.number("time",t);return e.log(()=>`Sleeping for ${n} milliseconds`),new Promise(e=>setTimeout(()=>e(!0),n))},grow:n=>async(a,{threads:r,stock:i}={})=>{const o=n.helper.string("hostname",a),s=Object(M.d)(n,null!=r?r:e.scriptRef.threads),l=t(o,n);if(!(l instanceof w.a))return n.log(()=>"Cannot be executed on this server."),Promise.resolve(0);const u=Object(E.d)(e.hostname);if(null===u)throw new Error("Workerscript host is null");const m=Object(f.a)(l);if(!m.res)throw n.makeRuntimeErrorMsg(m.msg||"");const d=Object(c.a)(l,h.a);return n.log(()=>`Executing on '${l.hostname}' in ${Object(A.d)(1e3*d,!0)} (t=${T.a.formatThreads(s)}).`),Object(M.c)(1e3*d,e).then((function(){const t=l.moneyAvailable<=0?1:l.moneyAvailable;Object(v.f)(l,s,h.a,u.cpuCores);const a=l.moneyAvailable;e.scriptRef.recordGrow(l.hostname,s);const r=Object(c.c)(l,h.a)*s,o=a/t-1;return n.log(()=>`Available money on '${l.hostname}' grown by ${T.a.formatPercentage(o,6)}. Gained ${T.a.formatExp(r)} hacking exp (t=${T.a.formatThreads(s)}).`),e.scriptRef.onlineExpGained+=r,h.a.gainHackingExp(r),i&&Object(_.b)(l,a-t),Promise.resolve(a/t)}))},growthAnalyze:e=>(n,a,r=1)=>{const i=e.helper.string("hostname",n),o=e.helper.number("growth",a),s=e.helper.number("cores",r),l=t(i,e);if(!(l instanceof w.a))return e.log(()=>"Cannot be executed on this server."),0;if("number"!=typeof o||isNaN(o)||o<1||!isFinite(o))throw e.makeRuntimeErrorMsg(`Invalid argument: growth must be numeric and >= 1, is ${o}.`);return Object(v.c)(l,Number(o),h.a,s)},growthAnalyzeSecurity:e=>(n,a,r)=>{let i=e.helper.number("threads",n);if(a){const n=e.helper.number("cores",r)||1,o=e.helper.string("hostname",a),s=t(o,e);if(!(s instanceof w.a))return e.log(()=>"Cannot be executed on this server."),0;const l=Math.ceil(Object(v.d)(s,s.moneyMax,s.moneyAvailable,h.a,n));i=Math.min(i,l)}return 2*l.a.ServerFortifyAmount*i},weaken:n=>async(a,{threads:r}={})=>{const i=n.helper.string("hostname",a),o=Object(M.d)(n,null!=r?r:e.scriptRef.threads);if(void 0===i)throw n.makeRuntimeErrorMsg("Takes 1 argument.");const s=t(i,n);if(!(s instanceof w.a))return n.log(()=>"Cannot be executed on this server."),Promise.resolve(0);const u=Object(f.c)(s);if(!u.res)throw n.makeRuntimeErrorMsg(u.msg||"");const m=Object(c.f)(s,h.a);return n.log(()=>`Executing on '${s.hostname}' in ${Object(A.d)(1e3*m,!0)} (t=${T.a.formatThreads(o)})`),Object(M.c)(1e3*m,e).then((function(){const t=Object(E.d)(e.hostname);if(null===t)return n.log(()=>"Server is null, did it die?"),Promise.resolve(0);const a=1+(t.cpuCores-1)/16;s.weaken(l.a.ServerWeakenAmount*o*a),e.scriptRef.recordWeaken(s.hostname,o);const r=Object(c.c)(s,h.a)*o;return n.log(()=>`'${s.hostname}' security level weakened to ${s.hackDifficulty}. Gained ${T.a.formatExp(r)} hacking exp (t=${T.a.formatThreads(o)})`),e.scriptRef.onlineExpGained+=r,h.a.gainHackingExp(r),Promise.resolve(l.a.ServerWeakenAmount*o*a)}))},weakenAnalyze:e=>(t,n=1)=>{const a=e.helper.number("threads",t),r=1+(e.helper.number("cores",n)-1)/16;return l.a.ServerWeakenAmount*a*r*s.a.ServerWeakenRate},share:t=>async()=>{t.log(()=>"Sharing this computer.");const n=Object(te.b)(e.scriptRef.threads*Object(ee.a)(h.a.intelligence,2));return Object(M.c)(1e4,e).finally((function(){t.log(()=>"Finished sharing this computer."),n()}))},getSharePower:()=>()=>Object(te.a)(),print:t=>(...n)=>{if(0===n.length)throw t.makeRuntimeErrorMsg("Takes at least 1 argument.");e.print(ue(n))},printf:t=>(n,...a)=>{const r=t.helper.string("format",n);if("string"!=typeof r)throw t.makeRuntimeErrorMsg("First argument must be string for the format.");e.print(Object(i.vsprintf)(r,a))},tprint:t=>(...n)=>{if(0===n.length)throw t.makeRuntimeErrorMsg("Takes at least 1 argument.");const a=ue(n);a.startsWith("ERROR")||a.startsWith("FAIL")?m.a.error(`${e.scriptRef.filename}: ${a}`):a.startsWith("SUCCESS")?m.a.success(`${e.scriptRef.filename}: ${a}`):a.startsWith("WARN")?m.a.warn(`${e.scriptRef.filename}: ${a}`):a.startsWith("INFO")?m.a.info(`${e.scriptRef.filename}: ${a}`):m.a.print(`${e.scriptRef.filename}: ${a}`)},tprintf:e=>(t,...n)=>{const a=e.helper.string("format",t),r=Object(i.vsprintf)(a,n);r.startsWith("ERROR")||r.startsWith("FAIL")?m.a.error(""+r):r.startsWith("SUCCESS")?m.a.success(""+r):r.startsWith("WARN")?m.a.warn(""+r):r.startsWith("INFO")?m.a.info(""+r):m.a.print(""+r)},clearLog:()=>()=>{e.scriptRef.clearLog()},disableLog:t=>n=>{const a=t.helper.string("fn",n);if("ALL"===a){for(const t of Object.keys(pe))e.disableLogs[t]=!0;t.log(()=>"Disabled logging for all functions")}else{if(void 0===pe[a])throw t.makeRuntimeErrorMsg(`Invalid argument: ${a}.`);e.disableLogs[a]=!0,t.log(()=>"Disabled logging for "+a)}},enableLog:t=>n=>{const a=t.helper.string("fn",n);if("ALL"===a){for(const t of Object.keys(pe))delete e.disableLogs[t];t.log(()=>"Enabled logging for all functions")}else if(void 0===pe[a])throw t.makeRuntimeErrorMsg(`Invalid argument: ${a}.`);delete e.disableLogs[a],t.log(()=>"Enabled logging for "+a)},isLogEnabled:t=>n=>{const a=t.helper.string("fn",n);if(void 0===pe[a])throw t.makeRuntimeErrorMsg(`Invalid argument: ${a}.`);return!e.disableLogs[a]},getScriptLogs:e=>(t,a,...r)=>{const i=n(e,t,a,r);return null==i?(e.log(()=>se(t,a,r)),[]):i.logs.slice()},tail:t=>(r,i=e.hostname,...o)=>{let s;s=void 0===r?e.scriptRef:"number"==typeof r?a(r):n(t,r,i,o),null!=s?R.c.emit(s):t.log(()=>se(r,i,o))},closeTail:t=>(n=e.scriptRef.pid)=>{const a=t.helper.number("pid",n);R.b.emit(a)},nuke:e=>n=>{const a=e.helper.string("hostname",n),r=t(a,e);if(!(r instanceof w.a))return e.log(()=>"Cannot be executed on this server."),!1;if(r.hasAdminRights)return e.log(()=>`Already have root access to '${r.hostname}'.`),!0;if(!h.a.hasProgram(d.a.NukeProgram.name))throw e.makeRuntimeErrorMsg("You do not have the NUKE.exe virus!");if(r.openPortCount<r.numOpenPortsRequired)throw e.makeRuntimeErrorMsg("Not enough ports opened to use NUKE.exe virus.");return r.hasAdminRights=!0,e.log(()=>`Executed NUKE.exe virus on '${r.hostname}' to gain root access.`),!0},brutessh:e=>n=>{const a=e.helper.string("hostname",n),r=t(a,e);if(!(r instanceof w.a))return e.log(()=>"Cannot be executed on this server."),!1;if(!h.a.hasProgram(d.a.BruteSSHProgram.name))throw e.makeRuntimeErrorMsg("You do not have the BruteSSH.exe program!");return r.sshPortOpen?e.log(()=>`SSH Port (22) already opened on '${r.hostname}'.`):(e.log(()=>`Executed BruteSSH.exe on '${r.hostname}' to open SSH port (22).`),r.sshPortOpen=!0,++r.openPortCount),!0},ftpcrack:e=>n=>{const a=e.helper.string("hostname",n);if(void 0===a)throw e.makeRuntimeErrorMsg("Takes 1 argument.");const r=t(a,e);if(!(r instanceof w.a))return e.log(()=>"Cannot be executed on this server."),!1;if(!h.a.hasProgram(d.a.FTPCrackProgram.name))throw e.makeRuntimeErrorMsg("You do not have the FTPCrack.exe program!");return r.ftpPortOpen?e.log(()=>`FTP Port (21) already opened on '${r.hostname}'.`):(e.log(()=>`Executed FTPCrack.exe on '${r.hostname}' to open FTP port (21).`),r.ftpPortOpen=!0,++r.openPortCount),!0},relaysmtp:e=>n=>{const a=e.helper.string("hostname",n);if(void 0===a)throw e.makeRuntimeErrorMsg("Takes 1 argument.");const r=t(a,e);if(!(r instanceof w.a))return e.log(()=>"Cannot be executed on this server."),!1;if(!h.a.hasProgram(d.a.RelaySMTPProgram.name))throw e.makeRuntimeErrorMsg("You do not have the relaySMTP.exe program!");return r.smtpPortOpen?e.log(()=>`SMTP Port (25) already opened on '${r.hostname}'.`):(e.log(()=>`Executed relaySMTP.exe on '${r.hostname}' to open SMTP port (25).`),r.smtpPortOpen=!0,++r.openPortCount),!0},httpworm:e=>n=>{const a=e.helper.string("hostname",n);if(void 0===a)throw e.makeRuntimeErrorMsg("Takes 1 argument");const r=t(a,e);if(!(r instanceof w.a))return e.log(()=>"Cannot be executed on this server."),!1;if(!h.a.hasProgram(d.a.HTTPWormProgram.name))throw e.makeRuntimeErrorMsg("You do not have the HTTPWorm.exe program!");return r.httpPortOpen?e.log(()=>`HTTP Port (80) already opened on '${r.hostname}'.`):(e.log(()=>`Executed HTTPWorm.exe on '${r.hostname}' to open HTTP port (80).`),r.httpPortOpen=!0,++r.openPortCount),!0},sqlinject:e=>n=>{const a=e.helper.string("hostname",n);if(void 0===a)throw e.makeRuntimeErrorMsg("Takes 1 argument.");const r=t(a,e);if(!(r instanceof w.a))return e.log(()=>"Cannot be executed on this server."),!1;if(!h.a.hasProgram(d.a.SQLInjectProgram.name))throw e.makeRuntimeErrorMsg("You do not have the SQLInject.exe program!");return r.sqlPortOpen?e.log(()=>`SQL Port (1433) already opened on '${r.hostname}'.`):(e.log(()=>`Executed SQLInject.exe on '${r.hostname}' to open SQL port (1433).`),r.sqlPortOpen=!0,++r.openPortCount),!0},run:t=>(n,a=1,...r)=>{const i=t.helper.string("scriptname",n),o=t.helper.number("threads",a);if(void 0===i)throw t.makeRuntimeErrorMsg("Usage: run(scriptname, [numThreads], [arg1], [arg2]...)");if(isNaN(o)||o<=0)throw t.makeRuntimeErrorMsg("Invalid thread count. Must be numeric and > 0, is "+o);const s=Object(E.d)(e.hostname);if(null==s)throw t.makeRuntimeErrorMsg("Could not find server. This is a bug. Report to dev.");return Object(x.d)(h.a,"run",s,i,r,e,o)},exec:n=>(a,r,i=1,...o)=>{const s=n.helper.string("scriptname",a),l=n.helper.string("hostname",r),c=n.helper.number("threads",i);if(void 0===s||void 0===l)throw n.makeRuntimeErrorMsg("Usage: exec(scriptname, server, [numThreads], [arg1], [arg2]...)");if(isNaN(c)||c<=0)throw n.makeRuntimeErrorMsg("Invalid thread count. Must be numeric and > 0, is "+c);const f=t(l,n);return Object(x.d)(h.a,"exec",f,s,o,e,c)},spawn:t=>(n,a=1,...r)=>{const i=t.helper.string("scriptname",n),o=t.helper.number("threads",a);if(!i||!o)throw t.makeRuntimeErrorMsg("Usage: spawn(scriptname, threads)");setTimeout(()=>{if(isNaN(o)||o<=0)throw t.makeRuntimeErrorMsg("Invalid thread count. Must be numeric and > 0, is "+o);const n=Object(E.d)(e.hostname);if(null==n)throw t.makeRuntimeErrorMsg("Could not find server. This is a bug. Report to dev");return Object(x.d)(h.a,"spawn",n,i,r,e,o)},1e4),t.log(()=>`Will execute '${i}' in 10 seconds`),e.running=!1,Object(L.a)(e)&&t.log(()=>"Exiting...")},kill:e=>(a,r,...i)=>{let o;const s="number"==typeof a;if(s)o=Object(L.a)(a);else{if(void 0===a||void 0===r)throw e.makeRuntimeErrorMsg("Usage: kill(scriptname, server, [arg1], [arg2]...)");const s=t(r,e),l=n(e,a,r,i);if(null==l)return e.log(()=>se(a,r,i)),!1;o=Object(L.a)(l,s.hostname)}return o?(s?e.log(()=>"Killing script with PID "+a):e.log(()=>`Killing '${a}' on '${r}' with args: ${Object(N.a)(i)}.`),!0):(s?e.log(()=>"No script with PID "+a):e.log(()=>`No such script '${a}' on '${r}' with args: ${Object(N.a)(i)}`),!1)},killall:n=>(a=e.hostname,r=!0)=>{const i=n.helper.string("hostname",a),s=me.boolean(r);if(void 0===i)throw n.makeRuntimeErrorMsg("Usage: killall(hostname, [safetyguard boolean])");const l=t(i,n);let c=0;for(let t=l.runningScripts.length-1;t>=0;--t)!0===s&&l.runningScripts[t].pid==e.pid||(Object(L.a)(l.runningScripts[t],l.hostname,!1),++c);return o.a.emit(),n.log(()=>`Killing all scripts on '${l.hostname}'. May take a few minutes for the scripts to die.`),c>0},exit:t=>()=>{e.running=!1,Object(L.a)(e)?t.log(()=>"Exiting..."):t.log(()=>"Failed. This is a bug. Report to dev.")},scp:n=>async(a,r,i)=>{const o=n.helper.string("hostname1",r);if(a&&a.constructor===Array){const t=a;if(0===t.length)throw n.makeRuntimeErrorMsg("No scripts to copy");let r=!0;return await Promise.all(t.map((async function(t){await ie(e).scp(t,o,i)||(r=!1)}))),Promise.resolve(r)}if(!Object(S.j)(a))throw n.makeRuntimeErrorMsg(`Invalid filename: '${a}'`);if(!a.endsWith(".lit")&&!Object(y.a)(a)&&!a.endsWith("txt"))throw n.makeRuntimeErrorMsg("Only works for scripts, .lit and .txt files");let s,l;if(null!=i){if(void 0===a||void 0===o||void 0===i)throw n.makeRuntimeErrorMsg("Takes 2 or 3 arguments");s=t(i,n),l=t(o,n)}else{if(null==o)throw n.makeRuntimeErrorMsg("Takes 2 or 3 arguments");if(void 0===a||void 0===o)throw n.makeRuntimeErrorMsg("Takes 2 or 3 arguments");if(s=t(o,n),l=Object(E.d)(e.hostname),null==l)throw n.makeRuntimeErrorMsg("Could not find server hostname for this script. This is a bug. Report to dev.")}if(a.endsWith(".lit")){let e=!1;for(let t=0;t<l.messages.length;++t)if(l.messages[t]==a){e=!0;break}if(!e)return n.log(()=>`File '${a}' does not exist.`),Promise.resolve(!1);for(let e=0;e<s.messages.length;++e)if(s.messages[e]===a)return n.log(()=>{var e;return`File '${a}' copied over to '${null===(e=s)||void 0===e?void 0:e.hostname}'.`}),Promise.resolve(!0);return s.messages.push(a),n.log(()=>{var e;return`File '${a}' copied over to '${null===(e=s)||void 0===e?void 0:e.hostname}'.`}),Promise.resolve(!0)}if(a.endsWith(".txt")){let e;for(let t=0;t<l.textFiles.length;++t)if(l.textFiles[t].fn===a){e=l.textFiles[t];break}if(void 0===e)return n.log(()=>`File '${a}' does not exist.`),Promise.resolve(!1);for(let t=0;t<s.textFiles.length;++t)if(s.textFiles[t].fn===a)return s.textFiles[t].text=e.text,n.log(()=>{var e;return`File '${a}' copied over to '${null===(e=s)||void 0===e?void 0:e.hostname}'.`}),Promise.resolve(!0);const t=new C.a(e.fn,e.text);return s.textFiles.push(t),n.log(()=>{var e;return`File '${a}' copied over to '${null===(e=s)||void 0===e?void 0:e.hostname}'.`}),Promise.resolve(!0)}let c=null;for(let e=0;e<l.scripts.length;++e)if(a==l.scripts[e].filename){c=l.scripts[e];break}if(null==c)return n.log(()=>`File '${a}' does not exist.`),Promise.resolve(!1);for(let e=0;e<s.scripts.length;++e)if(a==s.scripts[e].filename){n.log(()=>{var e;return`WARNING: File '${a}' overwritten on '${null===(e=s)||void 0===e?void 0:e.hostname}'`});const t=s.scripts[e];return t.code===c.code||(t.code=c.code,t.ramUsage=c.ramUsage,t.markUpdated()),Promise.resolve(!0)}const f=new p.a(h.a,a);return f.code=c.code,f.ramUsage=c.ramUsage,f.server=s.hostname,s.scripts.push(f),n.log(()=>{var e;return`File '${a}' copied over to '${null===(e=s)||void 0===e?void 0:e.hostname}'.`}),new Promise(e=>{null!==s?f.updateRamUsage(h.a,s.scripts).then(()=>e(!0)):e(!1)})},ls:e=>(n,a="")=>{const r=e.helper.string("hostname",n),i=e.helper.string("grep",a),o=t(r,e);let s="";void 0!==a&&(s=i.toString());const l=[];for(let e=0;e<o.programs.length;e++)s?o.programs[e].includes(s)&&l.push(o.programs[e]):l.push(o.programs[e]);for(let e=0;e<o.scripts.length;e++)s?o.scripts[e].filename.includes(s)&&l.push(o.scripts[e].filename):l.push(o.scripts[e].filename);for(let e=0;e<o.messages.length;e++)if(s){const t=o.messages[e];t.includes(s)&&l.push(t)}else l.push(o.messages[e]);for(let e=0;e<o.textFiles.length;e++)s?o.textFiles[e].fn.includes(s)&&l.push(o.textFiles[e].fn):l.push(o.textFiles[e].fn);for(let e=0;e<o.contracts.length;++e)s?o.contracts[e].fn.includes(s)&&l.push(o.contracts[e].fn):l.push(o.contracts[e].fn);return l.sort(),l},getRecentScripts:()=>()=>ne.b.map(e=>({timeOfDeath:e.timeOfDeath,...oe(e.runningScript)})),ps:n=>(a=e.hostname)=>{const r=n.helper.string("hostname",a),i=t(r,n),o=[];for(const e of i.runningScripts)o.push({filename:e.filename,threads:e.threads,args:e.args.slice(),pid:e.pid});return o},hasRootAccess:e=>n=>{const a=e.helper.string("hostname",n);return t(a,e).hasAdminRights},getHostname:t=>()=>{const n=Object(E.d)(e.hostname);if(null==n)throw t.makeRuntimeErrorMsg("Could not find server. This is a bug. Report to dev.");return n.hostname},getHackingLevel:e=>()=>(h.a.updateSkillLevels(),e.log(()=>"returned "+h.a.hacking),h.a.hacking),getHackingMultipliers:()=>()=>({chance:h.a.mults.hacking_chance,speed:h.a.mults.hacking_speed,money:h.a.mults.hacking_money,growth:h.a.mults.hacking_grow}),getHacknetMultipliers:()=>()=>({production:h.a.mults.hacknet_node_money,purchaseCost:h.a.mults.hacknet_node_purchase_cost,ramCost:h.a.mults.hacknet_node_ram_cost,coreCost:h.a.mults.hacknet_node_core_cost,levelCost:h.a.mults.hacknet_node_level_cost}),getBitNodeMultipliers:e=>()=>{if(h.a.sourceFileLvl(5)<=0&&5!==h.a.bitNodeN)throw e.makeRuntimeErrorMsg("Requires Source-File 5 to run.");return Object.assign({},s.a)},getServer:n=>(a=e.hostname)=>{const r=n.helper.string("hostname",a),i=t(r,n),o=Object.assign({},i);return o.contracts=void 0,o.messages=void 0,o.runningScripts=void 0,o.scripts=void 0,o.textFiles=void 0,o.programs=void 0,o.serversOnNetwork=void 0,o.baseDifficulty||(o.baseDifficulty=0),o.hackDifficulty||(o.hackDifficulty=0),o.minDifficulty||(o.minDifficulty=0),o.moneyAvailable||(o.moneyAvailable=0),o.moneyMax||(o.moneyMax=0),o.numOpenPortsRequired||(o.numOpenPortsRequired=0),o.openPortCount||(o.openPortCount=0),o.requiredHackingSkill||(o.requiredHackingSkill=0),o.serverGrowth||(o.serverGrowth=0),o},getServerMoneyAvailable:e=>n=>{const a=e.helper.string("hostname",n),r=t(a,e);return r instanceof w.a?le(r,"getServerMoneyAvailable")?0:"home"==r.hostname?(e.log(()=>"returned player's money: "+T.a.formatMoney(h.a.money)),h.a.money):(e.log(()=>`returned ${T.a.formatMoney(r.moneyAvailable)} for '${r.hostname}'`),r.moneyAvailable):(e.log(()=>"Cannot be executed on this server."),0)},getServerSecurityLevel:e=>n=>{const a=e.helper.string("hostname",n),r=t(a,e);return r instanceof w.a?le(r,"getServerSecurityLevel")?1:(e.log(()=>`returned ${T.a.formatServerSecurity(r.hackDifficulty)} for '${r.hostname}'`),r.hackDifficulty):(e.log(()=>"Cannot be executed on this server."),1)},getServerBaseSecurityLevel:e=>n=>{const a=e.helper.string("hostname",n);e.log(()=>"getServerBaseSecurityLevel is deprecated because it's not useful.");const r=t(a,e);return r instanceof w.a?le(r,"getServerBaseSecurityLevel")?1:(e.log(()=>`returned ${T.a.formatServerSecurity(r.baseDifficulty)} for '${r.hostname}'`),r.baseDifficulty):(e.log(()=>"Cannot be executed on this server."),1)},getServerMinSecurityLevel:e=>n=>{const a=e.helper.string("hostname",n),r=t(a,e);return r instanceof w.a?le(r,"getServerMinSecurityLevel")?1:(e.log(()=>`returned ${T.a.formatServerSecurity(r.minDifficulty)} for ${r.hostname}`),r.minDifficulty):(e.log(()=>"Cannot be executed on this server."),1)},getServerRequiredHackingLevel:e=>n=>{const a=e.helper.string("hostname",n),r=t(a,e);return r instanceof w.a?le(r,"getServerRequiredHackingLevel")?1:(e.log(()=>`returned ${T.a.formatSkill(r.requiredHackingSkill)} for '${r.hostname}'`),r.requiredHackingSkill):(e.log(()=>"Cannot be executed on this server."),1)},getServerMaxMoney:e=>n=>{const a=e.helper.string("hostname",n),r=t(a,e);return r instanceof w.a?le(r,"getServerMaxMoney")?0:(e.log(()=>`returned ${T.a.formatMoney(r.moneyMax)} for '${r.hostname}'`),r.moneyMax):(e.log(()=>"Cannot be executed on this server."),0)},getServerGrowth:e=>n=>{const a=e.helper.string("hostname",n),r=t(a,e);return r instanceof w.a?le(r,"getServerGrowth")?1:(e.log(()=>`returned ${r.serverGrowth} for '${r.hostname}'`),r.serverGrowth):(e.log(()=>"Cannot be executed on this server."),1)},getServerNumPortsRequired:e=>n=>{const a=e.helper.string("hostname",n),r=t(a,e);return r instanceof w.a?le(r,"getServerNumPortsRequired")?5:(e.log(()=>`returned ${r.numOpenPortsRequired} for '${r.hostname}'`),r.numOpenPortsRequired):(e.log(()=>"Cannot be executed on this server."),5)},getServerRam:e=>n=>{const a=e.helper.string("hostname",n);e.log(()=>"getServerRam is deprecated in favor of getServerMaxRam / getServerUsedRam");const r=t(a,e);return e.log(()=>`returned [${T.a.formatRAM(r.maxRam)}, ${T.a.formatRAM(r.ramUsed)}]`),[r.maxRam,r.ramUsed]},getServerMaxRam:e=>n=>{const a=e.helper.string("hostname",n),r=t(a,e);return e.log(()=>"returned "+T.a.formatRAM(r.maxRam)),r.maxRam},getServerUsedRam:e=>n=>{const a=e.helper.string("hostname",n),r=t(a,e);return e.log(()=>"returned "+T.a.formatRAM(r.ramUsed)),r.ramUsed},serverExists:e=>t=>{const n=e.helper.string("hostname",t);return null!==Object(E.d)(n)},fileExists:n=>(a,r=e.hostname)=>{const i=n.helper.string("filename",a),o=n.helper.string("hostname",r);if(void 0===i)throw n.makeRuntimeErrorMsg("Usage: fileExists(scriptname, [server])");const s=t(o,n);for(let e=0;e<s.scripts.length;++e)if(i==s.scripts[e].filename)return!0;for(let e=0;e<s.programs.length;++e)if(i.toLowerCase()==s.programs[e].toLowerCase())return!0;for(let e=0;e<s.messages.length;++e)if(i.toLowerCase()===s.messages[e].toLowerCase())return!0;return null!=Object(C.c)(i,s)},isRunning:t=>(r,i=e.hostname,...o)=>{if(void 0===r||void 0===i)throw t.makeRuntimeErrorMsg("Usage: isRunning(scriptname, server, [arg1], [arg2]...)");return"number"==typeof r?null!=a(r):null!=n(t,r,i,o)},getPurchasedServerLimit:()=>()=>Object(k.b)(),getPurchasedServerMaxRam:()=>()=>Object(k.c)(),getPurchasedServerCost:e=>t=>{const n=e.helper.number("ram",t),a=Object(k.a)(n);return a===1/0?(e.log(()=>`Invalid argument: ram='${n}'`),1/0):a},purchaseServer:e=>(t,n)=>{const a=e.helper.string("name",t),r=e.helper.number("ram",n);let i=String(a);if(i=i.replace(/\s+/g,""),""==i)return e.log(()=>`Invalid argument: hostname='${i}'`),"";if(h.a.purchasedServers.length>=Object(k.b)())return e.log(()=>`You have reached the maximum limit of ${Object(k.b)()} servers. You cannot purchase any more.`),"";const o=Object(k.a)(r);if(o===1/0)return r>Object(k.c)()?e.log(()=>`Invalid argument: ram='${r}' must not be greater than getPurchaseServerMaxRam`):e.log(()=>`Invalid argument: ram='${r}' must be a positive power of 2`),"";if(h.a.money<o)return e.log(()=>"Not enough money to purchase server. Need "+T.a.formatMoney(o)),"";const s=Object(v.g)({ip:Object(E.e)(),hostname:i,organizationName:"",isConnectedTo:!1,adminRights:!0,purchasedByPlayer:!0,maxRam:r});Object(E.a)(s),h.a.purchasedServers.push(s.hostname);const l=h.a.getHomeComputer();return l.serversOnNetwork.push(s.hostname),s.serversOnNetwork.push(l.hostname),h.a.loseMoney(o,"servers"),e.log(()=>`Purchased new server with hostname '${s.hostname}' for ${T.a.formatMoney(o)}`),s.hostname},deleteServer:t=>n=>{const a=t.helper.string("name",n);let r=String(a);r=r.replace(/\s\s+/g,"");const i=Object(E.d)(r);if(!(i instanceof w.a))return t.log(()=>`Invalid argument: hostname='${r}'`),!1;if(!i.purchasedByPlayer||"home"===i.hostname)return t.log(()=>"Cannot delete non-purchased server."),!1;const o=i.hostname;if(i.isConnectedTo)return t.log(()=>"You are currently connected to the server you are trying to delete."),!1;if(o===e.hostname)return t.log(()=>"Cannot delete the server this script is running on."),!1;if(i.runningScripts.length>0)return t.log(()=>`Cannot delete server '${o}' because it still has scripts running.`),!1;let s=!1;for(let e=0;e<h.a.purchasedServers.length;++e)if(o==h.a.purchasedServers[e]){s=!0,h.a.purchasedServers.splice(e,1);break}if(!s)return t.log(()=>`Could not identify server ${o} as a purchased server. This is a bug. Report to dev.`),!1;Object(E.b)(o),s=!1;const l=h.a.getHomeComputer();for(let e=0;e<l.serversOnNetwork.length;++e)if(o==l.serversOnNetwork[e])return l.serversOnNetwork.splice(e,1),t.log(()=>"Deleted server '"+r),!0;return t.log(()=>`Could not find server ${o} as a purchased server. This is a bug. Report to dev.`),!1},getPurchasedServers:()=>()=>{const e=[];return h.a.purchasedServers.forEach((function(t){e.push(t)})),e},writePort:e=>(t,n="")=>{const a=e.helper.number("port",t);if("string"!=typeof n&&"number"!=typeof n)throw e.makeRuntimeErrorMsg("Trying to write invalid data to a port: only strings and numbers are valid.");const r=me.getValidPort("writePort",a);return Promise.resolve(r.write(n))},write:t=>(n,a="",r="a")=>{const i=t.helper.string("port",n),o=t.helper.string("mode",r);if(Object(P.a)(i)){let n=i;if(!Object(S.j)(n))throw t.makeRuntimeErrorMsg("Invalid filepath: "+n);0===n.lastIndexOf("/")&&(n=Object(S.k)(n));try{a=String(a)}catch(e){throw t.makeRuntimeErrorMsg(`Invalid data (${e}). Data being written must be convertible to a string`)}const r=e.getServer();if(null==r)throw t.makeRuntimeErrorMsg("Error getting Server. This is a bug. Report to dev.");if(Object(y.a)(n)){let t=e.getScriptOnServer(n,r);return null==t?(t=new p.a(h.a,n,a,r.hostname,r.scripts),r.scripts.push(t),t.updateRamUsage(h.a,r.scripts)):("w"===o?t.code=a:t.code+=a,t.updateRamUsage(h.a,r.scripts))}{const e=Object(C.c)(n,r);if(null==e)return Object(C.b)(n,a,r),Promise.resolve();"w"===o?e.write(a):e.append(a)}return Promise.resolve()}throw t.makeRuntimeErrorMsg("Invalid argument: "+i)},tryWritePort:e=>(t,n="")=>{let a=e.helper.number("port",t);if("string"!=typeof n&&"number"!=typeof n)throw ce("tryWritePort","Trying to write invalid data to a port: only strings and numbers are valid.");if(isNaN(a))throw e.makeRuntimeErrorMsg("Invalid argument: "+a);{if(a=Math.round(a),a<1||a>l.a.NumNetscriptPorts)throw ce("tryWritePort",`Invalid port: ${a}. Only ports 1-${l.a.NumNetscriptPorts} are valid.`);const t=x.a[a-1];if(null==t||!(t instanceof Object))throw e.makeRuntimeErrorMsg(`Could not find port: ${a}. This is a bug. Report to dev.`);return Promise.resolve(t.tryWrite(n))}},readPort:e=>t=>{const n=e.helper.number("port",t);return me.getValidPort("readPort",n).read()},read:t=>n=>{const a=t.helper.string("port",n);if(Object(P.a)(a)){const n=a,r=Object(E.d)(e.hostname);if(null==r)throw t.makeRuntimeErrorMsg("Error getting Server. This is a bug. Report to dev.");if(Object(y.a)(n)){const t=e.getScriptOnServer(n,r);return null==t?"":t.code}{const e=Object(C.c)(n,r);return null!==e?e.text:""}}throw t.makeRuntimeErrorMsg("Invalid argument: "+a)},peek:e=>t=>{const n=e.helper.number("port",t);return me.getValidPort("peek",n).peek()},clear:t=>n=>{const a=t.helper.string("file",n);if(!Object(P.a)(a))throw t.makeRuntimeErrorMsg("Invalid argument: "+a);{const n=a,r=Object(E.d)(e.hostname);if(null==r)throw t.makeRuntimeErrorMsg("Error getting Server. This is a bug. Report to dev.");const i=Object(C.c)(n,r);null!=i&&i.write("")}},clearPort:e=>t=>{const n=e.helper.number("port",t);me.getValidPort("clearPort",n).clear()},getPortHandle:e=>t=>{const n=e.helper.number("port",t);return me.getValidPort("getPortHandle",n)},rm:n=>(a,r)=>{const i=n.helper.string("fn",a);null!=r&&""!==r||(r=e.hostname);const o=t(r,n).removeFile(i);return o.res||n.log(()=>o.msg+""),o.res},scriptRunning:e=>(n,a)=>{const r=e.helper.string("scriptname",n),i=e.helper.string("hostname",a),o=t(i,e);for(let e=0;e<o.runningScripts.length;++e)if(o.runningScripts[e].filename==r)return!0;return!1},scriptKill:e=>(n,a)=>{const r=e.helper.string("scriptname",n),i=e.helper.string("hostname",a),o=t(i,e);let s=!1;for(let e=0;e<o.runningScripts.length;e++)o.runningScripts[e].filename==r&&(Object(L.a)(o.runningScripts[e],o.hostname),s=!0,e--);return s},getScriptName:()=>()=>e.name,getScriptRam:n=>(a,r=e.hostname)=>{const i=n.helper.string("scriptname",a),o=n.helper.string("hostname",r),s=t(o,n);for(let e=0;e<s.scripts.length;++e)if(s.scripts[e].filename==i)return s.scripts[e].ramUsage;return 0},getRunningScript:t=>(r,i,...o)=>{let s;return s=void 0===r&&void 0===i&&0===o.length?e.scriptRef:"number"==typeof r?a(r):n(t,r,i,o),null===s?null:oe(s)},getHackTime:n=>(a=e.hostname)=>{const r=n.helper.string("hostname",a),i=t(r,n);return i instanceof w.a?le(i,"getHackTime")?1/0:1e3*Object(c.d)(i,h.a):(n.log(()=>"invalid for this kind of server"),1/0)},getGrowTime:n=>(a=e.hostname)=>{const r=n.helper.string("hostname",a),i=t(r,n);return i instanceof w.a?le(i,"getGrowTime")?1/0:1e3*Object(c.a)(i,h.a):(n.log(()=>"invalid for this kind of server"),1/0)},getWeakenTime:n=>(a=e.hostname)=>{const r=n.helper.string("hostname",a),i=t(r,n);return i instanceof w.a?le(i,"getWeakenTime")?1/0:1e3*Object(c.f)(i,h.a):(n.log(()=>"invalid for this kind of server"),1/0)},getScriptIncome:e=>(n,a,...r)=>{if(void 0===n){const e=[];let t=0;for(const e of O.a.values())t+=e.scriptRef.onlineMoneyMade/e.scriptRef.onlineRunningTime;return e.push(t),e.push(h.a.scriptProdSinceLastAug/(h.a.playtimeSinceLastAug/1e3)),e}{const i=t(a,e),o=Object(g.a)(n,r,i);return null==o?(e.log(()=>`No such script '${n}' on '${i.hostname}' with args: ${Object(N.a)(r)}`),-1):o.onlineMoneyMade/o.onlineRunningTime}},getScriptExpGain:e=>(n,a,...r)=>{if(void 0===n){let e=0;for(const t of O.a.values())e+=t.scriptRef.onlineExpGained/t.scriptRef.onlineRunningTime;return e}{const i=t(a,e),o=Object(g.a)(n,r,i);return null==o?(e.log(()=>`No such script '${n}' on '${i.hostname}' with args: ${Object(N.a)(r)}`),-1):o.onlineExpGained/o.onlineRunningTime}},nFormat:e=>(t,n)=>{const a=e.helper.number("n",t),r=e.helper.string("format",n);return isNaN(a)?"":T.a.format(a,r)},tFormat:e=>(t,n=!1)=>{const a=e.helper.number("milliseconds",t),r=me.boolean(n);return Object(A.d)(a,r)},getTimeSinceLastAug:()=>()=>h.a.playtimeSinceLastAug,alert:e=>t=>{const n=e.helper.string("message",t);Object(J.a)(n)},toast:e=>(t,n=X.d.SUCCESS,a=2e3)=>{const r=e.helper.string("message",t),i=e.helper.string("variant",n);if(!Object(Q.a)(X.d,i))throw new Error("variant must be one of "+Object.values(X.d).join(", "));X.b.emit(r,i,a)},prompt:e=>(t,n)=>{const a=e.helper.string("txt",t);return new Promise((function(e){b.a.emit({txt:a,options:n,resolve:e})}))},wget:n=>async(a,i,o=e.hostname)=>{const s=n.helper.string("url",a),l=n.helper.string("target",i),c=n.helper.string("hostname",o);if(!Object(y.a)(l)&&!l.endsWith(".txt"))return n.log(()=>`Invalid target file: '${l}'. Must be a script or text file.`),Promise.resolve(!1);const f=t(c,n);return new Promise((function(e){r.a.get(s,(function(t){let a;return a=Object(y.a)(l)?f.writeToScriptFile(h.a,l,t):f.writeToTextFile(l,t),a.success?a.overwritten?(n.log(()=>`Successfully retrieved content and overwrote '${l}' on '${c}'`),e(!0)):(n.log(()=>`Successfully retrieved content to new file '${l}' on '${c}'`),e(!0)):(n.log(()=>"Failed."),e(!1))}),"text").fail((function(t){return n.log(()=>JSON.stringify(t)),e(!1)}))}))},getFavorToDonate:()=>()=>Math.floor(l.a.BaseFavorToDonate*s.a.RepToDonateToFaction),getOwnedSourceFiles:()=>()=>{const e=[];for(let t=0;t<h.a.sourceFiles.length;++t)e.push({n:h.a.sourceFiles[t].n,lvl:h.a.sourceFiles[t].lvl});return e},getPlayer:()=>()=>{const e={hacking:h.a.hacking,hp:h.a.hp,max_hp:h.a.max_hp,strength:h.a.strength,defense:h.a.defense,dexterity:h.a.dexterity,agility:h.a.agility,charisma:h.a.charisma,intelligence:h.a.intelligence,hacking_exp:h.a.hacking_exp,strength_exp:h.a.strength_exp,defense_exp:h.a.defense_exp,dexterity_exp:h.a.dexterity_exp,agility_exp:h.a.agility_exp,charisma_exp:h.a.charisma_exp,hacking_chance_mult:h.a.mults.hacking_chance,mults:JSON.parse(JSON.stringify(h.a.mults)),numPeopleKilled:h.a.numPeopleKilled,money:h.a.money,city:h.a.city,location:h.a.location,companyName:h.a.companyName,hasWseAccount:h.a.hasWseAccount,hasTixApiAccess:h.a.hasTixApiAccess,has4SData:h.a.has4SData,has4SDataTixApi:h.a.has4SDataTixApi,bitNodeN:h.a.bitNodeN,totalPlaytime:h.a.totalPlaytime,playtimeSinceLastAug:h.a.playtimeSinceLastAug,playtimeSinceLastBitnode:h.a.playtimeSinceLastBitnode,jobs:{},factions:h.a.factions.slice(),tor:h.a.hasTorRouter(),inBladeburner:h.a.inBladeburner(),hasCorporation:h.a.hasCorporation(),entropy:h.a.entropy};return Object.assign(e.jobs,h.a.jobs),e},atExit:t=>n=>{if("function"!=typeof n)throw t.makeRuntimeErrorMsg("argument should be function");e.atExit=()=>{n()}},mv:e=>(n,a,r)=>{const i=e.helper.string("host",n),o=e.helper.string("source",a),s=e.helper.string("destination",r);if(!Object(S.j)(o))throw e.makeRuntimeErrorMsg(`Invalid filename: '${o}'`);if(!Object(S.j)(s))throw e.makeRuntimeErrorMsg(`Invalid filename: '${s}'`);const l=o.endsWith(".txt"),c=s.endsWith(".txt");if(!Object(y.a)(o)&&!l)throw e.makeRuntimeErrorMsg("'mv' can only be used on scripts and text files (.txt)");if(l!=c)throw e.makeRuntimeErrorMsg("Source and destination files must have the same type");if(o===s)return;const f=t(i,e);if(!l&&f.isRunning(o))throw e.makeRuntimeErrorMsg("Cannot use 'mv' on a script that is running");const u=l?f.textFiles:f.scripts;let m=null,h=null;for(let e=0;e<u.length;++e){const t=u[e];t.filename===o?m=t:t.filename===s&&(h=t)}if(null==m)throw e.makeRuntimeErrorMsg(`Source file ${o} does not exist`);null!=h?(h instanceof C.a&&m instanceof C.a?h.text=m.text:h instanceof p.a&&m instanceof p.a&&(h.code=m.code,h.markUpdated()),f.removeFile(o)):(m.filename=s,m instanceof p.a&&m.markUpdated())},flags:Object(Z.a)(e.args)},...Object(D.a)(h.a)};const pe=Object.fromEntries([...function e(t,n){const a=[];for(const[r,i]of Object.entries(t))"args"!==r&&("function"==typeof i?a.push(n+r):"object"==typeof i&&a.push(...e(i,r+".")));return a}(de,"")].map(e=>[e,!0]));return Object(re.a)(me,{},e,de)}},function(e,t,n){"use strict";n.d(t,"c",(function(){return i})),n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return s}));var a=n(155),r=n(103);function i(e,t){const n=e.organizationName;let i=null;if("string"==typeof n&&""!==n&&(i=r.a[n]),!(i instanceof a.a))return;const o=t/e.moneyMax;Math.random()<o&&i.changeForecastForecast(i.otlkMagForecast-.1)}function o(e,t){const n=e.organizationName;let i=null;if("string"==typeof n&&""!==n&&(i=r.a[n]),!(i instanceof a.a))return;const o=t/e.moneyMax;Math.random()<o&&i.changeForecastForecast(i.otlkMagForecast+.1)}function s(e,t,n){const i=e.name;let o=null;if("string"==typeof i&&""!==i&&(o=r.a[i]),o instanceof a.a&&Math.random()<.002*n){const e=.001*t;o.changeForecastForecast(o.otlkMagForecast+e)}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var a=n(189),r=n(29),i=n(14),o=n(22),s=n(271),l=n(33),c=n(190),f=n(12),u=n(245),m=n(81),h=n(1047),d=n(1049);class p{constructor(e="",t=!1){this.facName=e,this.members=[],this.wanted=1,this.respect=1,this.isHackingGang=t,this.respectGainRate=0,this.wantedGainRate=0,this.moneyGainRate=0,this.storedCycles=0,this.storedTerritoryAndPowerCycles=0,this.territoryClashChance=0,this.territoryWarfareEngaged=!1,this.notifyMemberDeath=!0}getPower(){return m.a[this.facName].power}getTerritory(){return m.a[this.facName].territory}process(e=1,t){const n=1e3/f.a._idleSpeed;if(isNaN(e)&&console.error("NaN passed into Gang.process(): "+e),this.storedCycles+=e,this.storedCycles<2*n)return;const a=Math.min(this.storedCycles,5*n);try{this.processGains(a,t),this.processExperienceGains(a),this.processTerritoryAndPowerGains(a),this.storedCycles-=a}catch(e){console.error("Exception caught when processing Gang: "+e)}}processGains(e=1,t){let n=0,o=0,s=0,l=0;for(let e=0;e<this.members.length;++e){o+=this.members[e].calculateRespectGain(this),n+=this.members[e].calculateMoneyGain(this);s+=this.members[e].calculateWantedLevelGain(this),this.members[e].getTask().baseWanted<0&&l++}this.respectGainRate=o,this.wantedGainRate=s,this.moneyGainRate=n;const f=o*e;this.respect+=f;const u=r.a[this.facName];if(!(u instanceof a.a))throw Object(i.a)("ERROR: Could not get Faction associates with your gang. This is a bug, please report to game dev"),new Error("Could not find the faction associated with this gang.");const m=1+u.favor/100;u.playerReputation+=t.mults.faction_rep*f*m/c.a.GangRespectToReputationRatio;for(let t=0;t<this.members.length;++t)this.members[t].recordEarnedRespect(e,this);if(!(1===this.wanted&&s<0)){const t=this.wanted;let n=t+s*e;n*=1-.001*l,s<=0&&n>t&&(n=1),this.wanted=n,this.wanted<1&&(this.wanted=1)}t.gainMoney(n*e,"gang")}processTerritoryAndPowerGains(e=1){if(this.storedTerritoryAndPowerCycles+=e,this.storedTerritoryAndPowerCycles<c.a.CyclesPerTerritoryAndPowerUpdate)return;this.storedTerritoryAndPowerCycles-=c.a.CyclesPerTerritoryAndPowerUpdate;const t=this.facName;for(const e of Object.keys(m.a))if(m.a.hasOwnProperty(e))if(e==t)m.a[e].power+=this.calculatePower();else{const t=Math.random();if(t<.5){const t=.005*m.a[e].power;m.a[e].power+=Math.min(.85,t)}else{const n=d.a[e];if(void 0===n)throw new Error("Should not be undefined");const a=.75*t*m.a[e].territory*n;m.a[e].power+=a}}this.territoryWarfareEngaged?this.territoryClashChance=1:this.territoryClashChance>0&&(this.territoryClashChance=Math.max(0,this.territoryClashChance-.01));const n=c.a.Names.filter(e=>m.a[e].territory>0||e===t);if(n.length>1)for(let e=0;e<n.length;++e){const r=n.filter(t=>t!==n[e]),i=Object(l.a)(0,r.length-1),o=n[e],s=r[i];if(!(o!==t&&s!==t||Math.random()<this.territoryClashChance))continue;const c=m.a[o].power,f=c/(c+m.a[s].power);function a(e,t){const n=Math.max(1,1+Math.log(m.a[e].power/m.a[t].power)/Math.log(50));return Math.min(m.a[t].territory,1e-4*n*(Math.random()+.5))}if(Math.random()<f){if(m.a[s].territory<=0)return;const e=a(o,s);m.a[o].territory+=e,m.a[s].territory-=e,o===t?(this.clash(!0),m.a[s].power*=1/1.01):s===t?this.clash(!1):m.a[s].power*=1/1.01}else{if(m.a[o].territory<=0)return;const e=a(s,o);m.a[o].territory-=e,m.a[s].territory+=e,o===t?this.clash(!1):s===t?(this.clash(!0),m.a[o].power*=1/1.01):m.a[o].power*=1/1.01}const u=Object.values(m.a).map(e=>e.territory).reduce((e,t)=>e+t,0);Object.values(m.a).forEach(e=>e.territory/=u)}}processExperienceGains(e=1){for(let t=0;t<this.members.length;++t)this.members[t].gainExperience(e),this.members[t].updateSkillLevels()}clash(e=!1){let t=.01;if(e?t/=2:m.a[this.facName].power*=1/1.008,!(Math.random()<.65))for(let e=this.members.length-1;e>=0;--e){const n=this.members[e];if("Territory Warfare"!==n.task)continue;const a=t/Math.pow(n.def,.6);Math.random()<a&&this.killMember(n)}}canRecruitMember(){return!(this.members.length>=c.a.MaximumGangMembers)&&this.respect>=this.getRespectNeededToRecruitMember()}getRespectNeededToRecruitMember(){if(this.members.length<3)return 0;const e=this.members.length-2;return Math.pow(5,e)}recruitMember(e){if(""===(e=String(e))||!this.canRecruitMember())return!1;if(this.members.filter(t=>t.name===e).length>=1)return!1;const t=new h.a(e);return this.members.push(t),!0}getWantedPenalty(){return this.respect/(this.respect+this.wanted)}calculatePower(){let e=0;for(let t=0;t<this.members.length;++t)u.a.hasOwnProperty(this.members[t].task)&&"Territory Warfare"===this.members[t].task&&(e+=this.members[t].calculatePower());return.015*Math.max(.002,this.getTerritory())*e}killMember(e){const t=this.respect,n=.05*t+e.earnedRespect;this.respect=Math.max(0,t-n);for(let t=0;t<this.members.length;++t)if(e.name===this.members[t].name){this.members.splice(t,1);break}this.notifyMemberDeath&&Object(i.a)(`${e.name} was killed in a gang clash! You lost ${n} respect`)}ascendMember(e,t){try{const n=e.ascend();return this.respect=Math.max(1,this.respect-n.respect),t&&t.log("gang.ascendMember",()=>"Ascended Gang member "+e.name),n}catch(e){throw null==t&&Object(s.a)(e),e}}getDiscount(){const e=this.getPower(),t=this.respect,n=Math.pow(t,.01)+t/5e6+Math.pow(e,.01)+e/1e6-1;return Math.max(1,n)}getAllTaskNames(){return Object.keys(u.a).filter(e=>{const t=u.a[e];return null!=t&&("Unassigned"!==t.name&&(this.isHackingGang===t.isHacking||!this.isHackingGang===t.isCombat))})}getUpgradeCost(e){return null==e?1/0:e.cost/this.getDiscount()}toJSON(){return Object(o.b)("Gang",this)}static fromJSON(e){return Object(o.a)(p,e.data)}}o.c.constructors.Gang=p},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var a=n(12);function r(e,t){return e/a.a.DonateMoneyToRepDivisor*t.mults.faction_rep}},,,,,,function(e,t,n){"use strict";function a(e,t,n=!1){let a="";const r=e.jobStatReqOffset,i=t.requiredHacking>0?t.requiredHacking+r:0,o=t.requiredStrength>0?t.requiredStrength+r:0,s=t.requiredDefense>0?t.requiredDefense+r:0,l=t.requiredDexterity>0?t.requiredDexterity+r:0,c=t.requiredDexterity>0?t.requiredDexterity+r:0,f=t.requiredCharisma>0?t.requiredCharisma+r:0,u=t.requiredReputation;return n?(a="Requires:<br>",a+=i.toString()+" hacking<br>",a+=o.toString()+" strength<br>",a+=s.toString()+" defense<br>",a+=l.toString()+" dexterity<br>",a+=c.toString()+" agility<br>",a+=f.toString()+" charisma<br>",a+=u.toString()+" reputation"):(a="(Requires ",i>0&&(a+=i+" hacking, "),o>0&&(a+=o+" strength, "),s>0&&(a+=s+" defense, "),l>0&&(a+=l+" dexterity, "),c>0&&(a+=c+" agility, "),f>0&&(a+=f+" charisma, "),u>1&&(a+=u+" reputation, "),a=a.substring(0,a.length-2),a+=")"),a}n.d(t,"a",(function(){return a}))},function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return i}));const a=["Type 'help name' to learn more about the command "," ",' alias [-g] [name="value"] Create or display Terminal aliases'," analyze Get information about the current machine "," backdoor Install a backdoor on the current machine "," buy [-l/-a/program] Purchase a program through the Dark Web"," cat [file] Display a .msg, .lit, or .txt file"," cd [dir] Change to a new directory"," check [script] [args...] Print a script's logs to Terminal"," clear Clear all text on the terminal "," cls See 'clear' command "," connect [hostname] Connects to a remote server"," cp [src] [dst] Copy a file"," download [script/text file] Downloads scripts or text files to your computer"," expr [math expression] Evaluate a mathematical expression"," free Check the machine's memory (RAM) usage"," grow Spoof money in a servers bank account, increasing the amount available."," hack Hack the current machine"," help [command] Display this help text, or the help text for a command"," history [-c] Display the terminal history"," home Connect to home computer"," hostname Displays the hostname of the machine"," kill [script/pid] [args...] Stops the specified script on the current server "," killall Stops all running scripts on the current machine"," ls [dir] [--grep pattern] Displays all files on the machine"," lscpu Displays the number of CPU cores on the machine"," mem [script] [-t n] Displays the amount of RAM required to run the script"," mv [src] [dest] Move/rename a text or script file"," nano [file ...] Text editor - Open up and edit one or more scripts or text files"," ps Display all scripts that are currently running"," rm [file] Delete a file from the server"," run [name] [-t n] [--tail] [args...] Execute a program or script"," scan Prints all immediately-available network connections"," scan-analyze [d] [-a] Prints info for all servers up to d nodes away"," scp [file ...] [server] Copies a file to a destination server"," sudov Shows whether you have root access on this computer"," tail [script] [args...] Displays dynamic logs for the specified script"," top Displays all running scripts and their RAM usage"," unalias [alias name] Deletes the specified alias"," vim [file ...] Text editor - Open up and edit one or more scripts or text files in vim mode"," weaken Reduce the security of the current machine"," wget [url] [target file] Retrieves code/text from a web server"," "],r=e=>[`Usage: ${e} [file ...] | [glob]`," ","Opens up the specified file(s) in the Script Editor. Only scripts (.js, .ns, .script) or text files (.txt) ","can be edited using the Script Editor. If a file does not exist a new one will be created"," ",`If provided a glob as the only argument, ${e} can spider directories and open all matching `,`files at once. ${e} cannot create files using globs, so your scripts must already exist.`," ","Examples:"," ",` ${e} test.js`,` ${e} test.js test2.js`," ",` ${e} test.*`,` ${e} /my-dir/*.js`," "],i={alias:['Usage: alias [-g] [name="value"] '," ","Create or display aliases. An alias enables a replacement of a word with another string. ","It can be used to abbreviate a commonly used command, or commonly used parts of a command. The NAME ","of an alias defines the word that will be replaced, while the VALUE defines what it will be replaced by. For example, ","you could create the alias 'nuke' for the Terminal command 'run NUKE.exe' using the following: "," ",' alias nuke="run NUKE.exe"'," ","Then, to run the NUKE.exe program you would just have to enter 'nuke' in Terminal rather than the full command. ","It is important to note that 'default' aliases will only be substituted for the first word of a Terminal command. For ","example, if the following alias was set: "," ",' alias worm="HTTPWorm.exe"'," ","and then you tried to run the following terminal command: "," "," run worm"," ","This would fail because the worm alias is not the first word of a Terminal command. To allow an alias to be substituted ","anywhere in a Terminal command, rather than just the first word, you must set it to be a global alias using the -g flag: "," ",' alias -g worm="HTTPWorm.exe"'," ","Now, the 'worm' alias will be substituted anytime it shows up as an individual word in a Terminal command. "," ","Entering just the command 'alias' without any arguments prints the list of all defined aliases in the reusable form ","'alias NAME=VALUE' on the Terminal. "," ","The 'unalias' command can be used to remove aliases."," "],analyze:["Usage: analyze"," ","Prints details and statistics about the current server. The information that is printed includes basic ","server details such as the hostname, whether the player has root access, what ports are opened/closed, and also ","hacking-related information such as an estimated chance to successfully hack, an estimate of how much money is ","available on the server, etc."," "],backdoor:["Usage: backdoor"," ","Install a backdoor on the current machine, grants a secret bonus depending on the machine."," ","Requires root access to run."," "],buy:["Usage: buy [-l / -a / program]"," ","Purchase a program through the Dark Web. Requires a TOR router to use."," ","If this command is ran with the '-l' flag, it will display a list of all programs that can be bought through the ","dark web to the Terminal, as well as their costs."," ","If this command is ran with the '-a' flag, it will attempt to purchase all unowned programs."," ","Otherwise, the name of the program must be passed in as a parameter. This name is NOT case-sensitive."," "],cat:["Usage: cat [file]"," ","Display message (.msg), literature (.lit), or text (.txt) files. Examples:"," "," cat j1.msg"," "," cat foo.lit"," "," cat servers.txt"," "],cd:["Usage: cd [dir]"," ","Change to the specified directory. Note that this works even for directories that don't exist. If you ","change to a directory that does not exist, it will not be 'created'. Examples:"," "," cd scripts/hacking"," "," cd /logs"," "," cd ../"," "],check:["Usage: check [script name] [args...]"," ","Print the logs of the script specified by the script name and arguments to the Terminal. Each argument must be separated by ","a space. Remember that a running script is uniquely ","identified both by its name and the arguments that are used to start it. So, if a script was ran with the following arguments: "," "," run foo.script 1 2 foodnstuff"," ","Then to run the 'check' command on this script you would have to pass the same arguments in: "," "," check foo.script 1 2 foodnstuff"," "],clear:["Usage: clear"," ","Clear the Terminal screen, deleting all of the text. Note that this does not delete the user's command history, so using the up ","and down arrow keys is still valid. Also note that this is permanent and there is no way to undo this. Synonymous with 'cls' command"," "],cls:["Usage: cls"," ","Clear the Terminal screen, deleting all of the text. Note that this does not delete the user's command history, so using the up ","and down arrow keys is still valid. Also note that this is permanent and there is no way to undo this. Synonymous with 'clear' command"," "],connect:["Usage: connect [hostname]"," ","Connect to a remote server. The hostname of the remote server must be given as the argument ","to this command. Note that only servers that are immediately adjacent to the current server in the network and the ones that have","a backdoor installed can be connected to. To see which servers can be connected to, use the 'scan' command."," "],cp:["Usage: cp [src] [dst]"," ","Copy a file on this server. To copy a file to another server use scp."," "],download:["Usage: download [script/text file]"," ","Downloads a script or text file to your computer (like your real life computer)."," ","You can also download all of your scripts/text files as a zip file using the following Terminal commands:"," ","Download all scripts and text files: download *"," ","Download all scripts: download *.script"," ","Download all text files: download *.txt"," "],expr:["Usage: expr [mathematical expression]"," ","Evaluate a simple mathematical expression. Supports native JavaScript operators:"," ","+, -, /, *, **, %"," ","Example:"," "," expr 25 * 2 ** 10"," ","Note that letters (non-digits) are not allowed and will be removed from the input."," "],free:["Usage: free"," ","Displays the memory usage on the current machine. Print the amount of RAM that is available on the current server as well as ","how much of it is being used."," "],grow:["Usage: grow"," ","Spoof transactions in the current server. Increasing the money available by hacking. Requires root access.","See the wiki page for hacking mechanics."," "],hack:["Usage: hack"," ","Attempt to hack the current server. Requires root access in order to be run. See the wiki page for hacking mechanics"," "],help:["Usage: help [command]"," ","Display Terminal help information. Without arguments, 'help' prints a list of all valid Terminal commands and a brief ","description of their functionality. You can also pass the name of a Terminal command as an argument to 'help' to print ","more detailed information about the Terminal command. Examples: "," "," help alias"," "," help scan-analyze"," "],history:["Usage: history [-c]"," ","Without arguments, displays the terminal command history. To clear the history, pass in the '-c' argument."," "],home:["Usage: home"," ","Connect to your home computer. This will work no matter what server you are currently connected to."," "],hostname:["Usage: hostname"," ","Prints the hostname of the current server"," "],kill:["Usage: kill [script name] [args...] or kill [pid"," ","Kill the script specified by the script name and arguments OR by its PID."," ","If you are killing the script using its filename and arguments, then each ","argument must be separated by a space. Remember that a running script is ","uniquely identified by both its name and the arguments that are used to start ","it. So, if a script was ran with the following arguments:"," "," run foo.script 1 sigma-cosmetics"," ","Then to kill this script the same arguments would have to be used:"," "," kill foo.script 1 sigma-cosmetics"," ","If you are killing the script using its PID, then the PID argument must be numeric"," "],killall:["Usage: killall"," ","Kills all scripts on the current server. ","Note that after the 'kill' command is issued for a script, it may take a while for the script to actually stop running. ","This will happen if the script is in the middle of a command such as grow() or weaken() that takes time to execute. ","The script will not be stopped/killed until after that time has elapsed."," "],ls:["Usage: ls [dir] [-l] [--grep pattern]"," ","The ls command, with no arguments, prints all files and directories on the current server's directory to the Terminal screen. ","The files will be displayed in alphabetical order. "," ","The 'dir' optional parameter can be used to display files/directories in another directory."," ","The '-l' optional parameter allows you to force each item onto a single line."," ","The '--grep pattern' optional parameter can be used to only display files whose filenames match the specified pattern."," ","Examples:"," ","List all files with the '.script' extension in the current directory:"," "," ls -l --grep .script"," ","List all files with the '.js' extension in the root directory:"," "," ls / -l --grep .js"," ","List all files with the word 'purchase' in the filename, in the 'scripts' directory:"," "," ls scripts -l --grep purchase"," "],lscpu:["Usage: lscpu"," ","Prints the number of CPU Cores the current server has"," "],mem:["Usage: mem [script name] [-t num_threads]"," ","Displays the amount of RAM needed to run the specified script with a single thread. The command can also be used to print ","the amount of RAM needed to run a script with multiple threads using the '-t' flag. If the '-t' flag is specified, then ","an argument for the number of threads must be passed in afterwards. Examples:"," "," mem foo.script"," "," mem foo.script -t 50"," ","The first example above will print the amount of RAM needed to run 'foo.script' with a single thread. The second example ","above will print the amount of RAM needed to run 'foo.script' with 50 threads."," "],mv:["Usage: mv [src] [dest]"," ","Move the source file to the specified destination. This can also be used to rename files. ","This command only works for scripts and text files (.txt). This command CANNOT be used to ","convert to different file types"," ","Note that, unlike the Linux 'mv' command, the destination argument must be the ","full filepath. ","Examples: "," "," mv hacking-controller.script scripts/hacking-controller.script"," "," mv myScript.js myOldScript.js"," "],nano:r("nano"),ps:["Usage: ps"," ","Prints all scripts that are running on the current server"," "],rm:["Usage: rm [file]"," ","Removes the specified file from the current server. A file can be a script, a program, or a message file. "," ","WARNING: This is permanent and cannot be undone"," "],run:["Usage: run [file name] [-t] [num threads] [args...]"," ","Execute a program, script or coding contract."," ","The '[-t]', '[num threads]', and '[args...]' arguments are only valid when running a script. The '-t' flag is used ","to indicate that the script should be run with the specified number of threads. If the flag is omitted, ","then the script will be run with a single thread by default. ","If the '-t' flag is used, then it MUST come immediately ","after the script name, and the [num threads] argument MUST come immediately afterwards. "," ","[args...] represents a variable number of arguments that will be passed into the script. See the documentation ","about script arguments. Each specified argument must be separated by a space. "," "],scan:["Usage: scan"," ","Prints all immediately-available network connection. This will print a list of all servers that you can currently connect ","to using the 'connect' Terminal command."," "],"scan-analyze":["Usage: scan-analyze [depth] [-a]"," ","Prints detailed information about all servers up to [depth] nodes away on the network. Calling ","'scan-analyze 1' will display information for the same servers that are shown by the 'scan' Terminal ","command. This command also shows the relative paths to reach each server."," ","By default, the maximum depth that can be specified for 'scan-analyze' is 3. However, once you have ","the DeepscanV1.exe and DeepscanV2.exe programs, you can execute 'scan-analyze' with a depth up to ","5 and 10, respectively."," ","The information 'scan-analyze' displays about each server includes whether or not you have root access to it, ","its required hacking level, the number of open ports required to run NUKE.exe on it, and how much RAM ","it has."," ","By default, this command will not display servers that you have purchased. However, you can pass in the ","-a flag at the end of the command if you would like to enable that."," "],scp:["Usage: scp [filename ...] [target server]"," ","Copies the specified file(s) from the current server to the target server. ","This command only works for script files (.script or .js extension), literature files (.lit extension), ","and text files (.txt extension). ","The second argument passed in must be the hostname or IP of the target server. Examples:"," "," scp foo.script n00dles"," "," scp foo.script bar.script n00dles"," "],sudov:["Usage: sudov"," ","Prints whether or not you have root access to the current machine"," "],tail:["Usage: tail [script name] [args...]"," ","Displays dynamic logs for the script specified by the script name and arguments. Each argument must be separated ","by a space. Remember that a running script is uniquely identified by both its name and the arguments that were used ","to run it. So, if a script was ran with the following arguments: "," "," run foo.script 10 50000"," ","Then in order to check its logs with 'tail' the same arguments must be used: "," "," tail foo.script 10 50000"," "],top:["Usage: top"," ","Prints a list of all scripts running on the current server as well as their thread count and how much ","RAM they are using in total."," "],unalias:["Usage: unalias [alias name]"," ","Deletes the specified alias. Note that the double quotation marks are required. "," ","As an example, if an alias was declared using:"," ",' alias r="run"'," ","Then it could be removed using:"," "," unalias r"," ","It is not necessary to differentiate between global and non-global aliases when using 'unalias'"," "],vim:r("vim"),weaken:["Usage: weaken"," ","Reduces the security level of the current server. Decreasing the time it takes for all operations on this server.","Requires root access. See the wiki page for hacking mechanics."," "],wget:["Usage: wget [url] [target file]"," ","Retrieves data from a URL and downloads it to a file on the current server. The data can only ","be downloaded to a script (.script, .ns, .js) or a text file (.txt). If the file already exists, ","it will be overwritten by this command."," ","Note that it will not be possible to download data from many websites because they do not allow ","cross-origin resource sharing (CORS). Example:"," "," wget https://raw.githubusercontent.com/danielyxie/bitburner/master/README.md game_readme.txt"," "]}},function(e,t,n){"use strict";n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return c}));var a,r,i=n(26),o=n(257),s=n(12);!function(e){e[e.Production=0]="Production",e[e.Development=1]="Development"}(a||(a={})),function(e){e[e.Browser=0]="Browser",e[e.Steam=1]="Steam"}(r||(r={}));const l="https://github.com/danielyxie/bitburner/issues/new";function c(e,t,n){var c,f,u,m;const h=function(e,t,n){const i=navigator.userAgent.toLowerCase().indexOf(" electron/")>-1,l=a.Production,c={version:s.a.VersionString,hash:Object(o.a)(),toDisplay:()=>`v${s.a.VersionString} (${Object(o.a)()})`},f={userAgent:navigator.userAgent,language:navigator.language,cookiesEnabled:navigator.cookieEnabled,doNotTrack:navigator.doNotTrack,indexedDb:!!window.indexedDB};return{platform:i?r.Steam:r.Browser,environment:l,version:c,features:f,error:e,errorInfo:t,page:n}}(e,t,n),d=h.error.fileName,p=`lang=${h.features.language} cookiesEnabled=${h.features.cookiesEnabled.toString()} doNotTrack=${null!==(c=h.features.doNotTrack)&&void 0!==c?c:"null"} indexedDb=${h.features.indexedDb.toString()}`,g=`${h.error.name}: ${h.error.message}${h.page&&` (at "${i.a[h.page]}")`}`,y=`\n## ${g}\n\n### How did this happen?\n\nPlease fill this information with details if relevant.\n\n- [ ] Save file\n- [ ] Minimal scripts to reproduce the issue\n- [ ] Steps to reproduce\n\n### Environment\n\n* Error: ${null!==(f=null===(u=h.error)||void 0===u?void 0:u.toString())&&void 0!==f?f:"n/a"}\n* Page: ${h.page?i.a[h.page]:"n/a"}\n* Version: ${h.version.toDisplay()}\n* Environment: ${a[h.environment]}\n* Platform: ${r[h.platform]}\n* UserAgent: ${navigator.userAgent}\n* Features: ${p}\n* Source: ${null!=d?d:"n/a"}\n\n${h.environment===a.Development?`\n### Stack Trace\n\`\`\`\n${null===(m=h.errorInfo)||void 0===m?void 0:m.componentStack.toString().trim()}\n\`\`\`\n`:""}\n### Save\n\`\`\`\nCopy your save here if possible\n\`\`\`\n`.trim();return{metadata:h,fileName:d,features:p,title:g,body:y,issueUrl:`${l}?title=${encodeURIComponent(g)}&body=${encodeURIComponent(y)}`}}},,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var a=n(33);function r(e){const t=Math.max(Math.min(e,255),0);return Object(a.a)(0,t)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var a=n(33);const r={Tracking:()=>Object(a.a)(5,75)/10,"Bounty Hunter":()=>Object(a.a)(5,75)/10,Retirement:()=>Object(a.a)(5,75)/10,Investigation:()=>Object(a.a)(10,40)/10,"Undercover Operation":()=>Object(a.a)(10,40)/10,"Sting Operation":()=>Object(a.a)(3,40)/10,Raid:()=>Object(a.a)(2,40)/10,"Stealth Retirement Operation":()=>Object(a.a)(1,20)/10,Assassination:()=>Object(a.a)(1,20)/10}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var a=n(156);function r(e){const t={},n=Object.keys(a.a);for(let a=0;a<n.length;++a)t[n[a]]=e;return JSON.parse(JSON.stringify(t))}},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var a=n(43),r=n(1),i=n(251),o=n(96),s=n(113),l=n(0),c=n.n(l);const f=e=>{var t;return c.a.createElement(a.a,{sx:{height:"fit-content",p:1}},c.a.createElement(r.a,{variant:"h6"},e.title),(null===(t=e.children)||void 0===t?void 0:t.length)>1?c.a.createElement(i.a,{disablePadding:!0,dense:!0},e.children.filter(e=>e).map((e,t)=>c.a.createElement(o.a,{key:Object(s.uniqueId)(String(t)),sx:{px:0,display:"block"}},e))):e.children)}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));class a{constructor(e){this.cards=e}addCards(...e){return new a([...this.cards,...e])}removeByIndex(e){if(e>=this.cards.length)throw new Error("Tried to remove invalid card from Hand by index: "+e);return new a([...this.cards.slice().splice(e,1)])}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var a=n(0),r=n(1),i=n(19),o=n(8);function s(e){return a.createElement(i.a,{title:null!=e.tooltip?a.createElement(r.a,null,e.tooltip):""},a.createElement(o.a,{onClick:e.onClick},e.text))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var a=n(18),r=n(150),i=n(0),o=n(1404),s=n(661),l=n(102);function c(e){const t=new o.a(e.width,e.height,e.fragments),n=Object(l.d)([e.width,e.height]);return i.createElement(a.a,null,i.createElement(r.a,{sx:{width:e.width,height:e.height}},i.createElement(s.a,{width:e.width,height:e.height,ghostGrid:n,gift:t,enter:()=>{},click:()=>{}})))}},,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var a=n(116),r=n(259),i=n(83),o=n(228),s=n(99),l=n(348),c=n(328);function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class u{constructor(e={hostname:"",ip:Object(l.a)()}){f(this,"contracts",[]),f(this,"cpuCores",1),f(this,"ftpPortOpen",!1),f(this,"hasAdminRights",!1),f(this,"hostname",""),f(this,"httpPortOpen",!1),f(this,"ip",""),f(this,"isConnectedTo",!1),f(this,"maxRam",0),f(this,"messages",[]),f(this,"organizationName",""),f(this,"programs",[]),f(this,"ramUsed",0),f(this,"runningScripts",[]),f(this,"scripts",[]),f(this,"serversOnNetwork",[]),f(this,"smtpPortOpen",!1),f(this,"sqlPortOpen",!1),f(this,"sshPortOpen",!1),f(this,"textFiles",[]),f(this,"purchasedByPlayer",!1),this.ip=e.ip?e.ip:Object(l.a)(),this.hostname=e.hostname,this.organizationName=null!=e.organizationName?e.organizationName:"",this.isConnectedTo=null!=e.isConnectedTo&&e.isConnectedTo,this.hasAdminRights=null!=e.adminRights&&e.adminRights}addContract(e){this.contracts.push(e)}getContract(e){for(const t of this.contracts)if(t.fn===e)return t;return null}getRunningScript(e,t){for(const n of this.runningScripts)if(n.filename===e&&Object(c.a)(n.args,t))return n;return null}getScript(e){for(let t=0;t<this.scripts.length;t++)if(this.scripts[t].filename===e)return this.scripts[t];return null}isRunning(e){for(const t of this.runningScripts)if(t.filename===e)return!0;return!1}removeContract(e){e instanceof a.a?this.contracts=this.contracts.filter(t=>t.fn!==e.fn):this.contracts=this.contracts.filter(t=>t.fn!==e)}removeFile(e){if(e.endsWith(".exe")||null!=e.match(/^.+\.exe-\d+(?:\.\d*)?%-INC$/)){for(let t=0;t<this.programs.length;++t)if(this.programs[t]===e)return this.programs.splice(t,1),{res:!0}}else if(Object(s.a)(e)){for(let t=0;t<this.scripts.length;++t)if(this.scripts[t].filename===e)return this.isRunning(e)?{res:!1,msg:"Cannot delete a script that is currently running!"}:(this.scripts.splice(t,1),{res:!0})}else if(e.endsWith(".lit"))for(let t=0;t<this.messages.length;++t){const n=this.messages[t];if("string"==typeof n&&n===e)return this.messages.splice(t,1),{res:!0}}else if(e.endsWith(".txt")){for(let t=0;t<this.textFiles.length;++t)if(this.textFiles[t].fn===e)return this.textFiles.splice(t,1),{res:!0}}else if(e.endsWith(".cct"))for(let t=0;t<this.contracts.length;++t)if(this.contracts[t].fn===e)return this.contracts.splice(t,1),{res:!0};return{res:!1,msg:"No such file exists"}}runScript(e){this.runningScripts.push(e)}setMaxRam(e){this.maxRam=e}updateRamUsed(e,t){this.ramUsed=e}pushProgram(e){if(this.programs.includes(e))return;const t=this.programs.findIndex(t=>t.startsWith(e));t>-1&&this.programs.splice(t,1),this.programs.push(e)}writeToScriptFile(e,t,n){const a={success:!1,overwritten:!1};if(!Object(i.j)(t)||!Object(s.a)(t))return a;for(let r=0;r<this.scripts.length;++r)if(t===this.scripts[r].filename){const t=this.scripts[r];return t.code=n,t.updateRamUsage(e,this.scripts),t.markUpdated(),a.overwritten=!0,a.success=!0,a}const o=new r.a(e,t,n,this.hostname,this.scripts);return this.scripts.push(o),a.success=!0,a}writeToTextFile(e,t){const n={success:!1,overwritten:!1};if(!Object(i.j)(e)||!e.endsWith("txt"))return n;for(let a=0;a<this.textFiles.length;++a)if(this.textFiles[a].fn===e)return n.overwritten=!0,this.textFiles[a].text=t,n.success=!0,n;const a=new o.a(e,t);return this.textFiles.push(a),n.success=!0,n}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return h})),n.d(t,"b",(function(){return d}));var a=n(0),r=n.n(a),i=n(25),o=n(116),s=n(169),l=n(37),c=n(126),f=n(1),u=n(75),m=n(8);const h=new c.a;function d(){const[e,t]=Object(a.useState)(null),[n,c]=Object(a.useState)("");if(Object(a.useEffect)(()=>{h.subscribe(e=>t(e))}),null===e)return r.a.createElement(r.a.Fragment,null);function d(){null!==e&&(e.onClose(),t(null))}const p=o.d[e.c.type],g=[];for(const[t,n]of p.desc(e.c.data).split("\n").entries())g.push(r.a.createElement("span",{key:t,dangerouslySetInnerHTML:{__html:n+"<br />"}}));return r.a.createElement(l.a,{open:null!==e,onClose:d},r.a.createElement(s.a,{variant:"h4",value:e.c.type}),r.a.createElement(f.a,null,"You are attempting to solve a Coding Contract. You have ",e.c.getMaxNumTries()-e.c.tries," tries remaining, after which the contract will self-destruct."),r.a.createElement("br",null),r.a.createElement(f.a,null,g),r.a.createElement("br",null),r.a.createElement(u.a,{autoFocus:!0,placeholder:"Enter Solution here",value:n,onChange:function(e){c(e.target.value)},onKeyDown:function(t){if(null===e)return;const a=t.target.value;t.key===i.a.ENTER&&""!==a&&(t.preventDefault(),e.onAttempt(n),c(""),d())},InputProps:{endAdornment:r.a.createElement(m.a,{onClick:()=>{e.onAttempt(n),c(""),d()}},"Solve")}}))}},,,,,,,,,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return f})),n.d(t,"b",(function(){return u}));var a=n(0),r=n.n(a),i=n(37),o=n(28),s=n(126),l=n(1),c=n(8);const f=new s.a;function u(){const e=o.b.Router(),[t,n]=Object(a.useState)(!1);return Object(a.useEffect)(()=>f.subscribe(()=>n(!0)),[]),r.a.createElement(i.a,{open:t,onClose:()=>n(!1)},r.a.createElement(l.a,null,"WARNING: USING THIS PROGRAM WILL CAUSE YOU TO LOSE ALL OF YOUR PROGRESS ON THE CURRENT BITNODE.",r.a.createElement("br",null),r.a.createElement("br",null),"Do you want to travel to the BitNode Nexus? This allows you to reset the current BitNode and select a new one."),r.a.createElement("br",null),r.a.createElement("br",null),r.a.createElement(c.a,{onClick:function(){e.toBitVerse(!0,!1),n(!1)}},"Travel to the BitVerse"))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return E}));var a=n(780),r=n(697),i=n(698),o=n(405),s=n(58),l=n(450),c=n(699),f=n(9),u=n(386),m=n(15),h=n(396),d=n(22),p=n(24),g=n(33),y=n(12),b=n(240);class E{constructor(){this.hacking=1,this.hp=10,this.max_hp=10,this.strength=1,this.defense=1,this.dexterity=1,this.agility=1,this.charisma=1,this.intelligence=0,this.hacking_exp=0,this.strength_exp=0,this.defense_exp=0,this.dexterity_exp=0,this.agility_exp=0,this.charisma_exp=0,this.intelligence_exp=0,this.mults=Object(b.a)(),this.money=1e3+y.a.Donations,this.city=m.a.Sector12,this.location=f.a.TravelAgency,this.jobs={},this.companyName="",this.currentServer="",this.purchasedServers=[],this.hacknetNodes=[],this.hashManager=new u.a,this.factions=[],this.factionInvitations=[],this.queuedAugmentations=[],this.augmentations=[],this.sourceFiles=[],this.numPeopleKilled=0,this.karma=0,this.hasWseAccount=!1,this.hasTixApiAccess=!1,this.has4SData=!1,this.has4SDataTixApi=!1,this.gang=null,this.corporation=null,this.bladeburner=null,this.sleeves=[],this.sleevesFromCovenant=0,this.bitNodeN=1,this.entropy=0,this.lastUpdate=0,this.lastSave=0,this.totalPlaytime=0,this.playtimeSinceLastAug=0,this.playtimeSinceLastBitnode=0,this.moneySourceA=new h.a,this.moneySourceB=new h.a,this.scriptProdSinceLastAug=0,this.exploits=[],this.achievements=[],this.terminalCommandHistory=[],this.focus=!1,this.currentWork=null,this.identifier=Object(p.e)("I-"+(new Date).getTime()+navigator.userAgent+window.innerWidth+window.innerHeight+Object(g.a)(100,999)),this.init=s.P,this.prestigeAugmentation=s.S,this.prestigeSourceFile=s.T,this.receiveInvite=s.Z,this.calculateSkill=s.o,this.calculateSkillProgress=s.p,this.updateSkillLevels=s.lb,this.resetMultipliers=s.cb,this.hasProgram=s.N,this.setMoney=s.eb,this.gainMoney=s.C,this.loseMoney=s.R,this.canAfford=s.s,this.recordMoneySource=s.ab,this.gainHackingExp=s.A,this.gainStrengthExp=s.E,this.gainDefenseExp=s.y,this.gainDexterityExp=s.z,this.gainAgilityExp=s.v,this.gainCharismaExp=s.w,this.gainIntelligenceExp=s.B,this.gainStats=s.D,this.queryStatFromString=s.U,this.startWork=c.c,this.processWork=c.b,this.finishWork=c.a,this.startFocusing=s.hb,this.stopFocusing=s.ib,this.takeDamage=s.jb,this.regenerateHp=s.bb,this.hospitalize=s.O,this.applyForJob=s.f,this.getNextCompanyPosition=s.I,this.quitJob=s.W,this.hasJob=s.M,this.applyForSoftwareJob=s.m,this.applyForSoftwareConsultantJob=s.l,this.applyForItJob=s.e,this.applyForSecurityEngineerJob=s.j,this.applyForNetworkEngineerJob=s.g,this.applyForBusinessJob=s.c,this.applyForBusinessConsultantJob=s.b,this.applyForSecurityJob=s.k,this.applyForAgentJob=s.a,this.applyForEmployeeJob=s.d,this.applyForPartTimeEmployeeJob=s.h,this.applyForWaiterJob=s.n,this.applyForPartTimeWaiterJob=s.i,this.isQualified=s.Q,this.reapplyAllAugmentations=s.X,this.reapplyAllSourceFiles=s.Y,this.checkForFactionInvitations=s.t,this.setBitNodeNumber=s.db,this.queueAugmentation=s.V,this.gainCodingContractReward=s.x,this.travel=s.kb,this.gotoLocation=s.L,this.canAccessGrafting=s.r,this.giveExploit=s.K,this.giveAchievement=s.J,this.getIntelligenceBonus=s.G,this.getCasinoWinnings=s.F,this.hasAugmentation=a.b,this.canAccessBladeburner=r.a,this.inBladeburner=r.b,this.startBladeburner=r.c,this.canAccessCorporation=i.a,this.hasCorporation=i.b,this.startCorporation=i.c,this.canAccessGang=o.a,this.isAwareOfGang=o.f,this.getGangFaction=o.b,this.getGangName=o.c,this.hasGangWith=o.d,this.inGang=o.e,this.startGang=o.g,this.hasTorRouter=l.f,this.getCurrentServer=l.b,this.getHomeComputer=l.c,this.getUpgradeHomeRamCost=l.e,this.getUpgradeHomeCoresCost=l.d,this.createHacknetServer=l.a,this.getMult=s.H,this.setMult=s.fb,this.canAccessCotMG=s.q,this.sourceFileLvl=s.gb,this.applyEntropy=a.a,this.focusPenalty=s.u}whoAmI(){return"Player"}toJSON(){return Object(d.b)("PlayerObject",this)}static fromJSON(e){return Object(d.a)(E,e.data)}}d.c.constructors.PlayerObject=E},function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return m}));var a=n(0),r=n.n(a),i=n(105),o=n(37),s=n(28),l=n(126),c=n(1),f=n(8);const u=new l.a;function m(){const[e,t]=Object(a.useState)(null),n=s.b.Player();return Object(a.useEffect)(()=>u.subscribe(e=>t(e)),[]),r.a.createElement(o.a,{open:null!==e,onClose:()=>t(null)},r.a.createElement(c.a,{variant:"h4"},"You have received a faction invitation."),r.a.createElement(c.a,null,"Would you like to join ",(e||{name:""}).name,"? ",r.a.createElement("br",null),r.a.createElement("br",null),"Warning: Joining this faction may prevent you from joining other factions during this run!"),r.a.createElement(f.a,{onClick:function(){if(null===e)return;-1===n.factionInvitations.findIndex(t=>t===e.name)&&console.error("Could not find faction in Player.factionInvitations"),Object(i.d)(e),t(null)}},"Join!"),r.a.createElement(f.a,{onClick:()=>t(null)},"Decide later"))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var a=n(260),r=function(e,t,n=0){this.sourceCode=e,this.sourceCodeLineOffset=n,"string"==typeof e&&(e=a.a(e,r.PARSE_OPTIONS)),this.ast=e,this.initFunc_=t,this.paused_=!1,this.polyfills_=[],this.functionCounter_=0,this.stepFunctions_=Object.create(null);var i,o,s=/^step([A-Z]\w*)$/;for(var l in this)"function"==typeof this[l]&&(i=l.match(s))&&(this.stepFunctions_[i[1]]=this[l].bind(this));this.global=this.createScope(this.ast,null),this.ast=a.a(this.polyfills_.join("\n"),r.PARSE_OPTIONS),this.polyfills_=void 0,this.stripLocations_(this.ast,void 0,void 0),(o=new r.State(this.ast,this.global)).done=!1,this.stateStack=[o],this.run(),this.value=void 0,this.ast=e,(o=new r.State(this.ast,this.global)).done=!1,this.stateStack.length=0,this.stateStack[0]=o,this.nodeConstructor=o.node.constructor,this.stateStack=this.stateStack};
|
||
/**
|
||
* @license
|
||
* JavaScript Interpreter
|
||
*
|
||
* Copyright 2013 Google Inc.
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*/r.PARSE_OPTIONS={ecmaVersion:5,locations:!0},r.READONLY_DESCRIPTOR={configurable:!0,enumerable:!0,writable:!1},r.NONENUMERABLE_DESCRIPTOR={configurable:!0,enumerable:!1,writable:!0},r.READONLY_NONENUMERABLE_DESCRIPTOR={configurable:!0,enumerable:!1,writable:!1},r.VARIABLE_DESCRIPTOR={configurable:!1,enumerable:!0,writable:!0},r.STEP_ERROR={},r.SCOPE_REFERENCE={},r.VALUE_IN_DESCRIPTOR={},r.toStringCycles_=[],r.prototype.getErrorLineNumber=function(e){var t=this.sourceCode;if(null==e||null==e.start)return NaN;try{return((t=t.substring(0,e.start)).match(/\n/g)||[]).length+1-this.sourceCodeLineOffset}catch(e){return NaN}},r.prototype.getErrorLineNumberMessage=function(e){return isNaN(e)?" (Unknown line number)":e<=0?" (Error occurred in an imported function)":" (Line Number "+e+". This line number is probably incorrect if your script is importing any functions. This is being worked on)"},r.prototype.appendCode=function(e){var t=this.stateStack[0];if(!t||"Program"!==t.node.type)throw Error("Expecting original AST to start with a Program node.");if("string"==typeof e&&(e=a.a(e,r.PARSE_OPTIONS)),!e||"Program"!==e.type)throw Error("Expecting new AST to start with a Program node.");this.populateScope_(e,t.scope);for(var n,i=0;n=e.body[i];i++)t.node.body.push(n);t.done=!1},r.prototype.step=function(){var e=this.stateStack,t=e[e.length-1];if(!t)return!1;var n=t.node,a=n.type;if("Program"===a&&t.done)return!1;if(this.paused_)return!0;try{var i=this.stepFunctions_[a](e,t,n)}catch(e){if(e!==r.STEP_ERROR)throw e}return i&&e.push(i),!!n.end||this.step()},r.prototype.run=function(){for(;!this.paused_&&this.step(););return this.paused_},r.prototype.initGlobalScope=function(e){this.setProperty(e,"NaN",NaN,r.READONLY_DESCRIPTOR),this.setProperty(e,"Infinity",1/0,r.READONLY_DESCRIPTOR),this.setProperty(e,"undefined",void 0,r.READONLY_DESCRIPTOR),this.setProperty(e,"window",e,r.READONLY_DESCRIPTOR),this.setProperty(e,"this",e,r.READONLY_DESCRIPTOR),this.setProperty(e,"self",e),this.OBJECT_PROTO=new r.Object(null),this.FUNCTION_PROTO=new r.Object(this.OBJECT_PROTO),this.initFunction(e),this.initObject(e),e.proto=this.OBJECT_PROTO,this.setProperty(e,"constructor",this.OBJECT,r.NONENUMERABLE_DESCRIPTOR),this.initArray(e),this.initString(e),this.initBoolean(e),this.initNumber(e),this.initDate(e),this.initRegExp(e),this.initError(e),this.initMath(e),this.initJSON(e);var t=this,n=this.createNativeFunction((function(e){throw EvalError("Can't happen")}),!1);n.eval=!0,this.setProperty(e,"eval",n),this.setProperty(e,"parseInt",this.createNativeFunction(parseInt,!1)),this.setProperty(e,"parseFloat",this.createNativeFunction(parseFloat,!1)),this.setProperty(e,"isNaN",this.createNativeFunction(isNaN,!1)),this.setProperty(e,"isFinite",this.createNativeFunction(isFinite,!1));for(var a=[[escape,"escape"],[unescape,"unescape"],[decodeURI,"decodeURI"],[decodeURIComponent,"decodeURIComponent"],[encodeURI,"encodeURI"],[encodeURIComponent,"encodeURIComponent"]],i=0;i<a.length;i++){var o=function(e){return function(n){try{return e(n)}catch(e){t.throwException(t.URI_ERROR,e.message)}}}(a[i][0]);this.setProperty(e,a[i][1],this.createNativeFunction(o,!1),r.NONENUMERABLE_DESCRIPTOR)}this.OBJECT=this.OBJECT,this.OBJECT_PROTO=this.OBJECT_PROTO,this.FUNCTION=this.FUNCTION,this.FUNCTION_PROTO=this.FUNCTION_PROTO,this.ARRAY=this.ARRAY,this.ARRAY_PROTO=this.ARRAY_PROTO,this.REGEXP=this.REGEXP,this.REGEXP_PROTO=this.REGEXP_PROTO,this.DATE=this.DATE,this.DATE_PROTO=this.DATE_PROTO,this.UNDEFINED=void 0,this.NULL=null,this.NAN=NaN,this.TRUE=!0,this.FALSE=!1,this.STRING_EMPTY="",this.NUMBER_ZERO=0,this.NUMBER_ONE=1,this.initFunc_&&this.initFunc_(this,e)},r.prototype.initFunction=function(e){var t,n=this,i=/^[A-Za-z_$][\w$]*$/;(t=function(e){if(n.calledWithNew())var t=this;else t=n.createObjectProto(n.FUNCTION_PROTO);if(arguments.length)var o=String(arguments[arguments.length-1]);else o="";var s=Array.prototype.slice.call(arguments,0,-1).join(",").trim();if(s){for(var l=s.split(/\s*,\s*/),c=0;c<l.length;c++){var f=l[c];i.test(f)||n.throwException(n.SYNTAX_ERROR,"Invalid function argument: "+f)}s=l.join(", ")}t.parentScope=n.global;try{var u=a.a("(function("+s+") {"+o+"})",r.PARSE_OPTIONS)}catch(e){n.throwException(n.SYNTAX_ERROR,"Invalid code: "+e.message)}return 1!==u.body.length&&n.throwException(n.SYNTAX_ERROR,"Invalid code in function body."),t.node=u.body[0].expression,n.setProperty(t,"length",t.node.length,r.READONLY_DESCRIPTOR),t}).id=this.functionCounter_++,this.FUNCTION=this.createObjectProto(this.FUNCTION_PROTO),this.setProperty(e,"Function",this.FUNCTION),this.setProperty(this.FUNCTION,"prototype",this.FUNCTION_PROTO),this.FUNCTION.nativeFunc=t,this.setProperty(this.FUNCTION_PROTO,"constructor",this.FUNCTION,r.NONENUMERABLE_DESCRIPTOR),this.FUNCTION_PROTO.nativeFunc=function(){},this.FUNCTION_PROTO.nativeFunc.id=this.functionCounter_++,this.setProperty(this.FUNCTION_PROTO,"length",0,r.READONLY_DESCRIPTOR);var o=function(e){if(!(e&&e.isObject||n.getScope().strict))if(null==e)e=n.global;else{var t=n.createObjectProto(n.getPrototype(e));t.data=e,e=t}return e};t=function(e,t){var a=n.stateStack[n.stateStack.length-1];a.func_=this,a.funcThis_=o(e),a.arguments_=[],null!=t&&(t.isObject?a.arguments_=n.arrayPseudoToNative(t):n.throwException(n.TYPE_ERROR,"CreateListFromArrayLike called on non-object")),a.doneExec_=!1},this.setNativeFunctionPrototype(this.FUNCTION,"apply",t),t=function(e){var t=n.stateStack[n.stateStack.length-1];t.func_=this,t.funcThis_=o(e),t.arguments_=[];for(var a=1;a<arguments.length;a++)t.arguments_.push(arguments[a]);t.doneExec_=!1},this.setNativeFunctionPrototype(this.FUNCTION,"call",t),this.polyfills_.push("Object.defineProperty(Function.prototype, 'bind',","{configurable: true, writable: true, value:","function(oThis) {","if (typeof this !== 'function') {","throw TypeError('What is trying to be bound is not callable');","}","var aArgs = Array.prototype.slice.call(arguments, 1),","fToBind = this,","fNOP = function() {},","fBound = function() {","return fToBind.apply(this instanceof fNOP","? this",": oThis,","aArgs.concat(Array.prototype.slice.call(arguments)));","};","if (this.prototype) {","fNOP.prototype = this.prototype;","}","fBound.prototype = new fNOP();","return fBound;","}","});",""),t=function(){return this.toString()},this.setNativeFunctionPrototype(this.FUNCTION,"toString",t),this.setProperty(this.FUNCTION,"toString",this.createNativeFunction(t,!1),r.NONENUMERABLE_DESCRIPTOR),t=function(){return this.valueOf()},this.setNativeFunctionPrototype(this.FUNCTION,"valueOf",t),this.setProperty(this.FUNCTION,"valueOf",this.createNativeFunction(t,!1),r.NONENUMERABLE_DESCRIPTOR)},r.prototype.initObject=function(e){var t,n=this;t=function(e){if(null==e)return n.calledWithNew()?this:n.createObjectProto(n.OBJECT_PROTO);if(!e.isObject){var t=n.createObjectProto(n.getPrototype(e));return t.data=e,t}return e},this.OBJECT=this.createNativeFunction(t,!0),this.setProperty(this.OBJECT,"prototype",this.OBJECT_PROTO),this.setProperty(this.OBJECT_PROTO,"constructor",this.OBJECT,r.NONENUMERABLE_DESCRIPTOR),this.setProperty(e,"Object",this.OBJECT);var a=function(e){null==e&&n.throwException(n.TYPE_ERROR,"Cannot convert '"+e+"' to object")};t=function(e){a(e);var t=e.isObject?e.properties:e;return n.arrayNativeToPseudo(Object.getOwnPropertyNames(t))},this.setProperty(this.OBJECT,"getOwnPropertyNames",this.createNativeFunction(t,!1),r.NONENUMERABLE_DESCRIPTOR),t=function(e){return a(e),e.isObject&&(e=e.properties),n.arrayNativeToPseudo(Object.keys(e))},this.setProperty(this.OBJECT,"keys",this.createNativeFunction(t,!1),r.NONENUMERABLE_DESCRIPTOR),t=function(e){return null===e?n.createObjectProto(null):(void 0!==e&&e.isObject||n.throwException(n.TYPE_ERROR,"Object prototype may only be an Object or null"),n.createObjectProto(e))},this.setProperty(this.OBJECT,"create",this.createNativeFunction(t,!1),r.NONENUMERABLE_DESCRIPTOR),this.polyfills_.push("(function() {","var create_ = Object.create;","Object.create = function(proto, props) {","var obj = create_(proto);","props && Object.defineProperties(obj, props);","return obj;","};","})();",""),t=function(e,t,a){return t=String(t),e&&e.isObject||n.throwException(n.TYPE_ERROR,"Object.defineProperty called on non-object"),a&&a.isObject||n.throwException(n.TYPE_ERROR,"Property description must be an object"),!e.properties[t]&&e.preventExtensions&&n.throwException(n.TYPE_ERROR,"Can't define property '"+t+"', object is not extensible"),n.setProperty(e,t,r.VALUE_IN_DESCRIPTOR,a.properties),e},this.setProperty(this.OBJECT,"defineProperty",this.createNativeFunction(t,!1),r.NONENUMERABLE_DESCRIPTOR),this.polyfills_.push("(function() {","var defineProperty_ = Object.defineProperty;","Object.defineProperty = function(obj, prop, d1) {","var d2 = {};","if ('configurable' in d1) d2.configurable = d1.configurable;","if ('enumerable' in d1) d2.enumerable = d1.enumerable;","if ('writable' in d1) d2.writable = d1.writable;","if ('value' in d1) d2.value = d1.value;","if ('get' in d1) d2.get = d1.get;","if ('set' in d1) d2.set = d1.set;","return defineProperty_(obj, prop, d2);","};","})();","Object.defineProperty(Object, 'defineProperties',","{configurable: true, writable: true, value:","function(obj, props) {","var keys = Object.keys(props);","for (var i = 0; i < keys.length; i++) {","Object.defineProperty(obj, keys[i], props[keys[i]]);","}","return obj;","}","});",""),t=function(e,t){if(e&&e.isObject||n.throwException(n.TYPE_ERROR,"Object.getOwnPropertyDescriptor called on non-object"),(t=String(t))in e.properties){var a=Object.getOwnPropertyDescriptor(e.properties,t),r=e.getter[t],i=e.setter[t];(r||i)&&(a.get=r,a.set=i,delete a.value,delete a.writable);var o=a.value,s="value"in a;delete a.value;var l=n.nativeToPseudo(a);return s&&n.setProperty(l,"value",o),l}},this.setProperty(this.OBJECT,"getOwnPropertyDescriptor",this.createNativeFunction(t,!1),r.NONENUMERABLE_DESCRIPTOR),t=function(e){return a(e),n.getPrototype(e)},this.setProperty(this.OBJECT,"getPrototypeOf",this.createNativeFunction(t,!1),r.NONENUMERABLE_DESCRIPTOR),t=function(e){return Boolean(e)&&!e.preventExtensions},this.setProperty(this.OBJECT,"isExtensible",this.createNativeFunction(t,!1),r.NONENUMERABLE_DESCRIPTOR),t=function(e){return e&&e.isObject&&(e.preventExtensions=!0),e},this.setProperty(this.OBJECT,"preventExtensions",this.createNativeFunction(t,!1),r.NONENUMERABLE_DESCRIPTOR),this.setNativeFunctionPrototype(this.OBJECT,"toString",r.Object.prototype.toString),this.setNativeFunctionPrototype(this.OBJECT,"toLocaleString",r.Object.prototype.toString),this.setNativeFunctionPrototype(this.OBJECT,"valueOf",r.Object.prototype.valueOf),t=function(e){return a(this),this.isObject?String(e)in this.properties:this.hasOwnProperty(e)},this.setNativeFunctionPrototype(this.OBJECT,"hasOwnProperty",t),t=function(e){return a(this),this.isObject?Object.prototype.propertyIsEnumerable.call(this.properties,e):this.propertyIsEnumerable(e)},this.setNativeFunctionPrototype(this.OBJECT,"propertyIsEnumerable",t),t=function(e){for(;;){if(!(e=n.getPrototype(e)))return!1;if(e===this)return!0}},this.setNativeFunctionPrototype(this.OBJECT,"isPrototypeOf",t)},r.prototype.initArray=function(e){var t,n=this;t=function(e){if(n.calledWithNew())var t=this;else t=n.createObjectProto(n.ARRAY_PROTO);var a=arguments[0];if(1===arguments.length&&"number"==typeof a)isNaN(r.legalArrayLength(a))&&n.throwException(n.RANGE_ERROR,"Invalid array length"),t.properties.length=a;else{for(var i=0;i<arguments.length;i++)t.properties[i]=arguments[i];t.properties.length=i}return t},this.ARRAY=this.createNativeFunction(t,!0),this.ARRAY_PROTO=this.ARRAY.properties.prototype,this.setProperty(e,"Array",this.ARRAY),t=function(e){return e&&"Array"===e.class},this.setProperty(this.ARRAY,"isArray",this.createNativeFunction(t,!1),r.NONENUMERABLE_DESCRIPTOR),t=function(){return Array.prototype.pop.call(this.properties)},this.setNativeFunctionPrototype(this.ARRAY,"pop",t),t=function(e){return Array.prototype.push.apply(this.properties,arguments)},this.setNativeFunctionPrototype(this.ARRAY,"push",t),t=function(){return Array.prototype.shift.call(this.properties)},this.setNativeFunctionPrototype(this.ARRAY,"shift",t),t=function(e){return Array.prototype.unshift.apply(this.properties,arguments)},this.setNativeFunctionPrototype(this.ARRAY,"unshift",t),t=function(){return Array.prototype.reverse.call(this.properties),this},this.setNativeFunctionPrototype(this.ARRAY,"reverse",t),t=function(e,t){var a=Array.prototype.splice.apply(this.properties,arguments);return n.arrayNativeToPseudo(a)},this.setNativeFunctionPrototype(this.ARRAY,"splice",t),t=function(e,t){var a=Array.prototype.slice.call(this.properties,e,t);return n.arrayNativeToPseudo(a)},this.setNativeFunctionPrototype(this.ARRAY,"slice",t),t=function(e){return Array.prototype.join.call(this.properties,e)},this.setNativeFunctionPrototype(this.ARRAY,"join",t),t=function(e){for(var t=[],a=0,r=n.getProperty(this,"length"),i=0;i<r;i++){if(n.hasProperty(this,i)){var o=n.getProperty(this,i);t[a]=o}a++}for(i=0;i<arguments.length;i++){var s=arguments[i];if(n.isa(s,n.ARRAY))for(var l=n.getProperty(s,"length"),c=0;c<l;c++)n.hasProperty(s,c)&&(t[a]=n.getProperty(s,c)),a++;else t[a]=s}return n.arrayNativeToPseudo(t)},this.setNativeFunctionPrototype(this.ARRAY,"concat",t),t=function(e,t){return Array.prototype.indexOf.apply(this.properties,arguments)},this.setNativeFunctionPrototype(this.ARRAY,"indexOf",t),t=function(e,t){return Array.prototype.lastIndexOf.apply(this.properties,arguments)},this.setNativeFunctionPrototype(this.ARRAY,"lastIndexOf",t),t=function(){return Array.prototype.sort.call(this.properties),this},this.setNativeFunctionPrototype(this.ARRAY,"sort",t),this.polyfills_.push("Object.defineProperty(Array.prototype, 'every',","{configurable: true, writable: true, value:","function(callbackfn, thisArg) {","if (!this || typeof callbackfn !== 'function') throw TypeError();","var T, k;","var O = Object(this);","var len = O.length >>> 0;","if (arguments.length > 1) T = thisArg;","k = 0;","while (k < len) {","if (k in O && !callbackfn.call(T, O[k], k, O)) return false;","k++;","}","return true;","}","});","Object.defineProperty(Array.prototype, 'filter',","{configurable: true, writable: true, value:","function(fun/*, thisArg*/) {","if (this === void 0 || this === null || typeof fun !== 'function') throw TypeError();","var t = Object(this);","var len = t.length >>> 0;","var res = [];","var thisArg = arguments.length >= 2 ? arguments[1] : void 0;","for (var i = 0; i < len; i++) {","if (i in t) {","var val = t[i];","if (fun.call(thisArg, val, i, t)) res.push(val);","}","}","return res;","}","});","if (!Array.prototype.find) {","Object.defineProperty(Array.prototype, 'find', {","value: function(predicate) {","if (this == null) {","throw new TypeError('\"this\" is null or not defined');","}","var o = Object(this);","var len = o.length >>> 0;","if (typeof predicate !== 'function') {","throw new TypeError('predicate must be a function');","}","var thisArg = arguments[1];","var k = 0;","while (k < len) {","var kValue = o[k];","if (predicate.call(thisArg, kValue, k, o)) {","return kValue;","}","k++;","}","return undefined;","},","configurable: true,","writable: true","});","}","if (!Array.prototype.findIndex) {","Object.defineProperty(Array.prototype, 'findIndex', {","value: function(predicate) {","if (this == null) {","throw new TypeError('\"this\" is null or not defined');","}","var o = Object(this);","var len = o.length >>> 0;","if (typeof predicate !== 'function') {","throw new TypeError('predicate must be a function');","}","var thisArg = arguments[1];","var k = 0;","while (k < len) {","var kValue = o[k];","if (predicate.call(thisArg, kValue, k, o)) {","return k;","}","k++;","}","return -1;","},","configurable: true,","writable: true","});","}","Object.defineProperty(Array.prototype, 'forEach',","{configurable: true, writable: true, value:","function(callback, thisArg) {","if (!this || typeof callback !== 'function') throw TypeError();","var T, k;","var O = Object(this);","var len = O.length >>> 0;","if (arguments.length > 1) T = thisArg;","k = 0;","while (k < len) {","if (k in O) callback.call(T, O[k], k, O);","k++;","}","}","});","Object.defineProperty(Array.prototype, 'includes', {","value: function(searchElement, fromIndex) {","if (this == null) {","throw new TypeError('\"this\" is null or not defined');","}","// 1. Let O be ? ToObject(this value).","var o = Object(this);",'// 2. Let len be ? ToLength(? Get(O, "length")).',"var len = o.length >>> 0;","// 3. If len is 0, return false.","if (len === 0) {","return false;","}","// 4. Let n be ? ToInteger(fromIndex).","// (If fromIndex is undefined, this step produces the value 0.)","var n = fromIndex | 0;","// 5. If n ≥ 0, then","// a. Let k be n.","// 6. Else n < 0,","// a. Let k be len + n.","// b. If k < 0, let k be 0.","var k = Math.max(n >= 0 ? n : len - Math.abs(n), 0);","function sameValueZero(x, y) {","return x === y || (typeof x === 'number' && typeof y === 'number' && isNaN(x) && isNaN(y));","}","// 7. Repeat, while k < len","while (k < len) {","// a. Let elementK be the result of ? Get(O, ! ToString(k)).","// b. If SameValueZero(searchElement, elementK) is true, return true.","if (sameValueZero(o[k], searchElement)) {","return true;","}","// c. Increase k by 1. ","k++;","}","// 8. Return false","return false;","}","});","Object.defineProperty(Array.prototype, 'map',","{configurable: true, writable: true, value:","function(callback, thisArg) {","if (!this || typeof callback !== 'function') new TypeError;","var T, A, k;","var O = Object(this);","var len = O.length >>> 0;","if (arguments.length > 1) T = thisArg;","A = new Array(len);","k = 0;","while (k < len) {","if (k in O) A[k] = callback.call(T, O[k], k, O);","k++;","}","return A;","}","});","Object.defineProperty(Array.prototype, 'reduce',","{configurable: true, writable: true, value:","function(callback /*, initialValue*/) {","if (!this || typeof callback !== 'function') throw TypeError();","var t = Object(this), len = t.length >>> 0, k = 0, value;","if (arguments.length === 2) {","value = arguments[1];","} else {","while (k < len && !(k in t)) k++;","if (k >= len) {","throw TypeError('Reduce of empty array with no initial value');","}","value = t[k++];","}","for (; k < len; k++) {","if (k in t) value = callback(value, t[k], k, t);","}","return value;","}","});","Object.defineProperty(Array.prototype, 'reduceRight',","{configurable: true, writable: true, value:","function(callback /*, initialValue*/) {","if (null === this || 'undefined' === typeof this || 'function' !== typeof callback) throw TypeError();","var t = Object(this), len = t.length >>> 0, k = len - 1, value;","if (arguments.length >= 2) {","value = arguments[1];","} else {","while (k >= 0 && !(k in t)) k--;","if (k < 0) {","throw TypeError('Reduce of empty array with no initial value');","}","value = t[k--];","}","for (; k >= 0; k--) {","if (k in t) value = callback(value, t[k], k, t);","}","return value;","}","});","Object.defineProperty(Array.prototype, 'some',","{configurable: true, writable: true, value:","function(fun/*, thisArg*/) {","if (!this || typeof fun !== 'function') throw TypeError();","var t = Object(this);","var len = t.length >>> 0;","var thisArg = arguments.length >= 2 ? arguments[1] : void 0;","for (var i = 0; i < len; i++) {","if (i in t && fun.call(thisArg, t[i], i, t)) {","return true;","}","}","return false;","}","});","(function() {","var sort_ = Array.prototype.sort;","Array.prototype.sort = function(opt_comp) {","if (typeof opt_comp !== 'function') {","return sort_.call(this);","}","for (var i = 0; i < this.length; i++) {","var changes = 0;","for (var j = 0; j < this.length - i - 1; j++) {","if (opt_comp(this[j], this[j + 1]) > 0) {","var swap = this[j];","this[j] = this[j + 1];","this[j + 1] = swap;","changes++;","}","}","if (!changes) break;","}","return this;","};","})();","Object.defineProperty(Array.prototype, 'toLocaleString',","{configurable: true, writable: true, value:","function() {","var out = [];","for (var i = 0; i < this.length; i++) {","out[i] = (this[i] === null || this[i] === undefined) ? '' : this[i].toLocaleString();","}","return out.join(',');","}","});","")},r.prototype.initString=function(e){var t,n=this;t=function(e){return e=String(e),n.calledWithNew()?(this.data=e,this):e},this.STRING=this.createNativeFunction(t,!0),this.setProperty(e,"String",this.STRING),this.setProperty(this.STRING,"fromCharCode",this.createNativeFunction(String.fromCharCode,!1),r.NONENUMERABLE_DESCRIPTOR);for(var a=["charAt","charCodeAt","concat","indexOf","lastIndexOf","slice","substr","substring","toLocaleLowerCase","toLocaleUpperCase","toLowerCase","toUpperCase","trim"],i=0;i<a.length;i++)this.setNativeFunctionPrototype(this.STRING,a[i],String.prototype[a[i]]);t=function(e,t,a){return t=t?n.pseudoToNative(t):void 0,a=a?n.pseudoToNative(a):void 0,String(this).localeCompare(e,t,a)},this.setNativeFunctionPrototype(this.STRING,"localeCompare",t),t=function(e,t){n.isa(e,n.REGEXP)&&(e=e.data);var a=String(this).split(e,t);return n.arrayNativeToPseudo(a)},this.setNativeFunctionPrototype(this.STRING,"split",t),t=function(e){n.isa(e,n.REGEXP)&&(e=e.data);var t=String(this).match(e);return t&&n.arrayNativeToPseudo(t)},this.setNativeFunctionPrototype(this.STRING,"match",t),t=function(e){return n.isa(e,n.REGEXP)&&(e=e.data),String(this).search(e)},this.setNativeFunctionPrototype(this.STRING,"search",t),t=function(e,t){return n.isa(e,n.REGEXP)&&(e=e.data),String(this).replace(e,t)},this.setNativeFunctionPrototype(this.STRING,"replace",t),this.polyfills_.push("(function() {","var replace_ = String.prototype.replace;","String.prototype.replace = function(substr, newSubstr) {","if (typeof newSubstr !== 'function') {","return replace_.call(this, substr, newSubstr);","}","var str = this;","if (substr instanceof RegExp) {","var subs = [];","var m = substr.exec(str);","while (m) {","m.push(m.index, str);","var inject = newSubstr.apply(null, m);","subs.push([m.index, m[0].length, inject]);","m = substr.global ? substr.exec(str) : null;","}","for (var i = subs.length - 1; i >= 0; i--) {","str = str.substring(0, subs[i][0]) + subs[i][2] + str.substring(subs[i][0] + subs[i][1]);","}","} else {","var i = str.indexOf(substr);","if (i !== -1) {","var inject = newSubstr(str.substr(i, substr.length), i, str);","str = str.substring(0, i) + inject + str.substring(i + substr.length);","}","}","return str;","};","})();","if (!String.prototype.endsWith) {","String.prototype.endsWith = function(search, this_len) {","if (this_len === undefined || this_len > this.length) {","this_len = this.length;","}","return this.substring(this_len - search.length, this_len) === search;","};","}","if (!String.prototype.includes) {","String.prototype.includes = function(search, start) {","'use strict';","if (typeof start !== 'number') {","start = 0;","}"," ","if (start + search.length > this.length) {","return false;","} else {","return this.indexOf(search, start) !== -1;","}","};","}","if (!String.prototype.startsWith) {","String.prototype.startsWith = function(search, pos) {","return this.substr(!pos || pos < 0 ? 0 : +pos, search.length) === search;","};","}","")},r.prototype.initBoolean=function(e){var t,n=this;t=function(e){return e=Boolean(e),n.calledWithNew()?(this.data=e,this):e},this.BOOLEAN=this.createNativeFunction(t,!0),this.setProperty(e,"Boolean",this.BOOLEAN)},r.prototype.initNumber=function(e){var t,n=this;t=function(e){return e=Number(e),n.calledWithNew()?(this.data=e,this):e},this.NUMBER=this.createNativeFunction(t,!0),this.setProperty(e,"Number",this.NUMBER);for(var a=["MAX_VALUE","MIN_VALUE","NaN","NEGATIVE_INFINITY","POSITIVE_INFINITY"],i=0;i<a.length;i++)this.setProperty(this.NUMBER,a[i],Number[a[i]],r.READONLY_NONENUMERABLE_DESCRIPTOR);t=function(e){try{return Number(this).toExponential(e)}catch(e){n.throwException(n.ERROR,e.message)}},this.setNativeFunctionPrototype(this.NUMBER,"toExponential",t),t=function(e){try{return Number(this).toFixed(e)}catch(e){n.throwException(n.ERROR,e.message)}},this.setNativeFunctionPrototype(this.NUMBER,"toFixed",t),t=function(e){try{return Number(this).toPrecision(e)}catch(e){n.throwException(n.ERROR,e.message)}},this.setNativeFunctionPrototype(this.NUMBER,"toPrecision",t),t=function(e){try{return Number(this).toString(e)}catch(e){n.throwException(n.ERROR,e.message)}},this.setNativeFunctionPrototype(this.NUMBER,"toString",t),t=function(e,t){return e=e?n.pseudoToNative(e):void 0,t=t?n.pseudoToNative(t):void 0,Number(this).toLocaleString(e,t)},this.setNativeFunctionPrototype(this.NUMBER,"toLocaleString",t)},r.prototype.initDate=function(e){var t,n=this;t=function(e,t){if(!n.calledWithNew())return Date();var a=[null].concat(Array.from(arguments));return this.data=new(Function.prototype.bind.apply(Date,a)),this},this.DATE=this.createNativeFunction(t,!0),this.DATE_PROTO=this.DATE.properties.prototype,this.setProperty(e,"Date",this.DATE),this.setProperty(this.DATE,"now",this.createNativeFunction(Date.now,!1),r.NONENUMERABLE_DESCRIPTOR),this.setProperty(this.DATE,"parse",this.createNativeFunction(Date.parse,!1),r.NONENUMERABLE_DESCRIPTOR),this.setProperty(this.DATE,"UTC",this.createNativeFunction(Date.UTC,!1),r.NONENUMERABLE_DESCRIPTOR);for(var a=["getDate","getDay","getFullYear","getHours","getMilliseconds","getMinutes","getMonth","getSeconds","getTime","getTimezoneOffset","getUTCDate","getUTCDay","getUTCFullYear","getUTCHours","getUTCMilliseconds","getUTCMinutes","getUTCMonth","getUTCSeconds","getYear","setDate","setFullYear","setHours","setMilliseconds","setMinutes","setMonth","setSeconds","setTime","setUTCDate","setUTCFullYear","setUTCHours","setUTCMilliseconds","setUTCMinutes","setUTCMonth","setUTCSeconds","setYear","toDateString","toISOString","toJSON","toGMTString","toLocaleDateString","toLocaleString","toLocaleTimeString","toTimeString","toUTCString"],i=0;i<a.length;i++)t=function(e){return function(t){for(var a=[],r=0;r<arguments.length;r++)a[r]=n.pseudoToNative(arguments[r]);return this.data[e].apply(this.data,a)}}(a[i]),this.setNativeFunctionPrototype(this.DATE,a[i],t)},r.prototype.initRegExp=function(e){var t,n=this;t=function(e,t){if(n.calledWithNew())var a=this;else a=n.createObjectProto(n.REGEXP_PROTO);return e=e?e.toString():"",t=t?t.toString():"",n.populateRegExp(a,new RegExp(e,t)),a},this.REGEXP=this.createNativeFunction(t,!0),this.REGEXP_PROTO=this.REGEXP.properties.prototype,this.setProperty(e,"RegExp",this.REGEXP),this.setProperty(this.REGEXP.properties.prototype,"global",void 0,r.READONLY_NONENUMERABLE_DESCRIPTOR),this.setProperty(this.REGEXP.properties.prototype,"ignoreCase",void 0,r.READONLY_NONENUMERABLE_DESCRIPTOR),this.setProperty(this.REGEXP.properties.prototype,"multiline",void 0,r.READONLY_NONENUMERABLE_DESCRIPTOR),this.setProperty(this.REGEXP.properties.prototype,"source","(?:)",r.READONLY_NONENUMERABLE_DESCRIPTOR),t=function(e){return this.data.test(e)},this.setNativeFunctionPrototype(this.REGEXP,"test",t),t=function(e){e=e.toString(),this.data.lastIndex=Number(n.getProperty(this,"lastIndex"));var t=this.data.exec(e);if(n.setProperty(this,"lastIndex",this.data.lastIndex),t){for(var a=n.createObjectProto(n.ARRAY_PROTO),r=0;r<t.length;r++)n.setProperty(a,r,t[r]);return n.setProperty(a,"index",t.index),n.setProperty(a,"input",t.input),a}return null},this.setNativeFunctionPrototype(this.REGEXP,"exec",t)},r.prototype.initError=function(e){var t=this;this.ERROR=this.createNativeFunction((function(e){if(t.calledWithNew())var n=this;else n=t.createObject(t.ERROR);return e&&t.setProperty(n,"message",String(e),r.NONENUMERABLE_DESCRIPTOR),n}),!0),this.setProperty(e,"Error",this.ERROR),this.setProperty(this.ERROR.properties.prototype,"message","",r.NONENUMERABLE_DESCRIPTOR),this.setProperty(this.ERROR.properties.prototype,"name","Error",r.NONENUMERABLE_DESCRIPTOR);var n=function(n){var a=t.createNativeFunction((function(e){if(t.calledWithNew())var n=this;else n=t.createObject(a);return e&&t.setProperty(n,"message",String(e),r.NONENUMERABLE_DESCRIPTOR),n}),!0);return t.setProperty(a,"prototype",t.createObject(t.ERROR)),t.setProperty(a.properties.prototype,"name",n,r.NONENUMERABLE_DESCRIPTOR),t.setProperty(e,n,a),a};this.EVAL_ERROR=n("EvalError"),this.RANGE_ERROR=n("RangeError"),this.REFERENCE_ERROR=n("ReferenceError"),this.SYNTAX_ERROR=n("SyntaxError"),this.TYPE_ERROR=n("TypeError"),this.URI_ERROR=n("URIError")},r.prototype.initMath=function(e){var t=this.createObjectProto(this.OBJECT_PROTO);this.setProperty(e,"Math",t);for(var n=["E","LN2","LN10","LOG2E","LOG10E","PI","SQRT1_2","SQRT2"],a=0;a<n.length;a++)this.setProperty(t,n[a],Math[n[a]],r.READONLY_NONENUMERABLE_DESCRIPTOR);var i=["abs","acos","asin","atan","atan2","ceil","cos","exp","floor","log","max","min","pow","random","round","sin","sqrt","tan"];for(a=0;a<i.length;a++)this.setProperty(t,i[a],this.createNativeFunction(Math[i[a]],!1),r.NONENUMERABLE_DESCRIPTOR)},r.prototype.initJSON=function(e){var t=this,n=t.createObjectProto(this.OBJECT_PROTO);this.setProperty(e,"JSON",n);var a=function(e){try{var n=JSON.parse(e.toString())}catch(e){t.throwException(t.SYNTAX_ERROR,e.message)}return t.nativeToPseudo(n)};this.setProperty(n,"parse",this.createNativeFunction(a,!1)),a=function(e){var n=t.pseudoToNative(e);try{var a=JSON.stringify(n)}catch(e){t.throwException(t.TYPE_ERROR,e.message)}return a},this.setProperty(n,"stringify",this.createNativeFunction(a,!1))},r.prototype.isa=function(e,t){if(null==e||!t)return!1;var n=t.properties.prototype;if(e===n)return!0;for(e=this.getPrototype(e);e;){if(e===n)return!0;e=e.proto}return!1},r.legalArrayLength=function(e){var t=e>>>0;return t===Number(e)?t:NaN},r.legalArrayIndex=function(e){var t=e>>>0;return String(t)===String(e)&&4294967295!==t?t:NaN},r.Value,r.Object=function(e){this.getter=Object.create(null),this.setter=Object.create(null),this.properties=Object.create(null),this.proto=e},r.Object.prototype.proto=null,r.Object.prototype.isObject=!0,r.Object.prototype.class="Object",r.Object.prototype.data=null,r.Object.prototype.toString=function(){if("Array"===this.class){(a=r.toStringCycles_).push(this);try{for(var e=[],t=0;t<this.properties.length;t++){var n=this.properties[t];e[t]=n&&n.isObject&&-1!==a.indexOf(n)?"...":n}}finally{a.pop()}return e.join(",")}if("Error"===this.class){var a,i,o;if(-1!==(a=r.toStringCycles_).indexOf(this))return"[object Error]";var s=this;do{if("name"in s.properties){i=s.properties.name;break}}while(s=s.proto);s=this;do{if("message"in s.properties){o=s.properties.message;break}}while(s=s.proto);a.push(this);try{i=i&&i.toString(),o=o&&o.toString()}finally{a.pop()}return o?i+": "+o:String(i)}return null!==this.data?String(this.data):"[object "+this.class+"]"},r.Object.prototype.valueOf=function(){return void 0===this.data||null===this.data||this.data instanceof RegExp?this:this.data instanceof Date?this.data.valueOf():this.data},r.prototype.createObject=function(e){return this.createObjectProto(e&&e.properties.prototype)},r.prototype.createObjectProto=function(e){if("object"!=typeof e)throw Error("Non object prototype");var t=new r.Object(e);return this.isa(t,this.FUNCTION)&&(this.setProperty(t,"prototype",this.createObjectProto(this.OBJECT_PROTO||null)),t.class="Function"),this.isa(t,this.ARRAY)&&(this.setProperty(t,"length",0,{configurable:!1,enumerable:!1,writable:!0}),t.class="Array"),this.isa(t,this.ERROR)&&(t.class="Error"),t},r.prototype.populateRegExp=function(e,t){e.data=t,this.setProperty(e,"lastIndex",t.lastIndex,r.NONENUMERABLE_DESCRIPTOR),this.setProperty(e,"source",t.source,r.READONLY_NONENUMERABLE_DESCRIPTOR),this.setProperty(e,"global",t.global,r.READONLY_NONENUMERABLE_DESCRIPTOR),this.setProperty(e,"ignoreCase",t.ignoreCase,r.READONLY_NONENUMERABLE_DESCRIPTOR),this.setProperty(e,"multiline",t.multiline,r.READONLY_NONENUMERABLE_DESCRIPTOR)},r.prototype.createFunction=function(e,t){var n=this.createObjectProto(this.FUNCTION_PROTO);return n.parentScope=t,n.node=e,this.setProperty(n,"length",n.node.params.length,r.READONLY_DESCRIPTOR),n},r.prototype.createNativeFunction=function(e,t){var n=this.createObjectProto(this.FUNCTION_PROTO);return n.nativeFunc=e,e.id=this.functionCounter_++,this.setProperty(n,"length",e.length,r.READONLY_DESCRIPTOR),t?this.setProperty(n.properties.prototype,"constructor",n,r.NONENUMERABLE_DESCRIPTOR):!1===t&&(n.illegalConstructor=!0,this.setProperty(n,"prototype",void 0)),n},r.prototype.createAsyncFunction=function(e){var t=this.createObjectProto(this.FUNCTION_PROTO);return t.asyncFunc=e,e.id=this.functionCounter_++,this.setProperty(t,"length",e.length,r.READONLY_DESCRIPTOR),t},r.prototype.nativeToPseudo=function(e){if("object"!=typeof e&&"function"!=typeof e||null===e)return e;if(e instanceof RegExp){var t=this.createObjectProto(this.REGEXP_PROTO);return this.populateRegExp(t,e),t}if(e instanceof Date){var n=this.createObjectProto(this.DATE_PROTO);return n.data=e,n}if(e instanceof Function){var a=this;return this.createNativeFunction((function(){return a.nativeToPseudo(e.apply(a,Array.prototype.slice.call(arguments).map((function(e){return a.pseudoToNative(e)}))))}),void 0)}var r;if(Array.isArray(e)){r=this.createObjectProto(this.ARRAY_PROTO);for(var i=0;i<e.length;i++)i in e&&this.setProperty(r,i,this.nativeToPseudo(e[i]))}else for(var o in r=this.createObjectProto(this.OBJECT_PROTO),e)this.setProperty(r,o,this.nativeToPseudo(e[o]));return r},r.prototype.pseudoToNative=function(e,t){if("object"!=typeof e&&"function"!=typeof e||null===e)return e;if(this.isa(e,this.REGEXP))return e.data;if(this.isa(e,this.DATE))return e.data;var n,a=t||{pseudo:[],native:[]};if(-1!==(i=a.pseudo.indexOf(e)))return a.native[i];if(a.pseudo.push(e),this.isa(e,this.ARRAY)){n=[],a.native.push(n);for(var r=this.getProperty(e,"length"),i=0;i<r;i++)this.hasProperty(e,i)&&(n[i]=this.pseudoToNative(this.getProperty(e,i),a))}else{var o;for(var s in n={},a.native.push(n),e.properties)o=e.properties[s],n[s]=this.pseudoToNative(o,a)}return a.pseudo.pop(),a.native.pop(),n},r.prototype.arrayNativeToPseudo=function(e){for(var t=this.createObjectProto(this.ARRAY_PROTO),n=Object.getOwnPropertyNames(e),a=0;a<n.length;a++)this.setProperty(t,n[a],e[n[a]]);return t},r.prototype.arrayPseudoToNative=function(e){var t=[];for(var n in e.properties)t[n]=this.getProperty(e,n);return t.length=r.legalArrayLength(this.getProperty(e,"length"))||0,t},r.prototype.getPrototype=function(e){switch(typeof e){case"number":return this.NUMBER.properties.prototype;case"boolean":return this.BOOLEAN.properties.prototype;case"string":return this.STRING.properties.prototype}return e?e.proto:null},r.prototype.getProperty=function(e,t,n){if(t=String(t),null==e){let a;null!=n&&null!=n.loc&&null!=n.loc.start&&(a=n.loc.start.line),this.throwException(this.TYPE_ERROR,"Cannot read property '"+t+"' of "+e,a)}if("length"===t){if(this.isa(e,this.STRING))return String(e).length}else if(t.charCodeAt(0)<64&&this.isa(e,this.STRING)){var a=r.legalArrayIndex(t);if(!isNaN(a)&&a<String(e).length)return String(e)[a]}do{if(e.properties&&t in e.properties){var i=e.getter[t];return i?(i.isGetter=!0,i):e.properties[t]}}while(e=this.getPrototype(e))},r.prototype.hasProperty=function(e,t){if(!e.isObject)throw TypeError("Primitive data type has no properties");if("length"===(t=String(t))&&this.isa(e,this.STRING))return!0;if(this.isa(e,this.STRING)){var n=r.legalArrayIndex(t);if(!isNaN(n)&&n<String(e).length)return!0}do{if(e.properties&&t in e.properties)return!0}while(e=this.getPrototype(e));return!1},r.prototype.setProperty=function(e,t,n,a){t=String(t),null==e&&this.throwException(this.TYPE_ERROR,"Cannot set property '"+t+"' of "+e),a&&("get"in a||"set"in a)&&("value"in a||"writable"in a)&&this.throwException(this.TYPE_ERROR,"Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");var i=!this.stateStack||this.getScope().strict;if(e.isObject){if(this.isa(e,this.STRING)){var o=r.legalArrayIndex(t);if("length"===t||!isNaN(o)&&o<String(e).length)return void(i&&this.throwException(this.TYPE_ERROR,"Cannot assign to read only property '"+t+"' of String '"+e.data+"'"))}if("Array"===e.class){var s,l=e.properties.length;if("length"===t){if(a){if(!("value"in a))return;n=a.value}if(n=r.legalArrayLength(n),isNaN(n)&&this.throwException(this.RANGE_ERROR,"Invalid array length"),n<l)for(s in e.properties)s=r.legalArrayIndex(s),!isNaN(s)&&n<=s&&delete e.properties[s]}else isNaN(s=r.legalArrayIndex(t))||(e.properties.length=Math.max(l,s+1))}if(!e.preventExtensions||t in e.properties)if(a){"get"in a&&(a.get?e.getter[t]=a.get:delete e.getter[t]),"set"in a&&(a.set?e.setter[t]=a.set:delete e.setter[t]);var c={};"configurable"in a&&(c.configurable=a.configurable),"enumerable"in a&&(c.enumerable=a.enumerable),"writable"in a&&(c.writable=a.writable,delete e.getter[t],delete e.setter[t]),"value"in a?(c.value=a.value,delete e.getter[t],delete e.setter[t]):n!==r.VALUE_IN_DESCRIPTOR&&(c.value=n,delete e.getter[t],delete e.setter[t]);try{Object.defineProperty(e.properties,t,c)}catch(e){this.throwException(this.TYPE_ERROR,"Cannot redefine property: "+t)}}else{if(n===r.VALUE_IN_DESCRIPTOR)throw ReferenceError("Value not specified.");for(var f=e;!(t in f.properties);)if(!(f=this.getPrototype(f))){f=e;break}if(f.setter&&f.setter[t])return f.setter[t];if(f.getter&&f.getter[t])i&&this.throwException(this.TYPE_ERROR,"Cannot set property '"+t+"' of object '"+e+"' which only has a getter");else try{e.properties[t]=n}catch(n){i&&this.throwException(this.TYPE_ERROR,"Cannot assign to read only property '"+t+"' of object '"+e+"'")}}else i&&this.throwException(this.TYPE_ERROR,"Can't add property '"+t+"', object is not extensible")}else i&&this.throwException(this.TYPE_ERROR,"Can't create property '"+t+"' on '"+e+"'")},r.prototype.setNativeFunctionPrototype=function(e,t,n){this.setProperty(e.properties.prototype,t,this.createNativeFunction(n,!1),r.NONENUMERABLE_DESCRIPTOR)},r.prototype.getScope=function(){var e=this.stateStack[this.stateStack.length-1].scope;if(!e)throw Error("No scope found.");return e},r.prototype.createScope=function(e,t){var n=this.createObjectProto(null);if(n.parentScope=t,t||this.initGlobalScope(n),this.populateScope_(e,n),n.strict=!1,t&&t.strict)n.strict=!0;else{var a=e.body&&e.body[0];a&&a.expression&&"Literal"===a.expression.type&&"use strict"===a.expression.value&&(n.strict=!0)}return n},r.prototype.createSpecialScope=function(e,t){if(!e)throw Error("parentScope required");var n=t||this.createObjectProto(null);return n.parentScope=e,n.strict=e.strict,n},r.prototype.getValueFromScope=function(e,t){for(var n=this.getScope();n&&n!==this.global;){if(e in n.properties)return n.properties[e];n=n.parentScope}if(n===this.global&&this.hasProperty(n,e))return this.getProperty(n,e);var a,r=this.stateStack[this.stateStack.length-1].node;"UnaryExpression"===r.type&&"typeof"===r.operator||(null!=t&&null!=t.loc&&null!=t.loc.start&&(a=t.loc.start.line),this.throwException(this.REFERENCE_ERROR,e+" is not defined",a))},r.prototype.setValueToScope=function(e,t){for(var n=this.getScope(),a=n.strict;n&&n!==this.global;){if(e in n.properties)return void(n.properties[e]=t);n=n.parentScope}if(n===this.global&&(!a||this.hasProperty(n,e)))return this.setProperty(n,e,t);this.throwException(this.REFERENCE_ERROR,e+" is not defined")},r.prototype.populateScope_=function(e,t){if("VariableDeclaration"===e.type)for(var n=0;n<e.declarations.length;n++)this.setProperty(t,e.declarations[n].id.name,void 0,r.VARIABLE_DESCRIPTOR);else{if("FunctionDeclaration"===e.type)return void this.setProperty(t,e.id.name,this.createFunction(e,t),r.VARIABLE_DESCRIPTOR);if("FunctionExpression"===e.type)return;if("ExpressionStatement"===e.type)return}var a=e.constructor;for(var i in e){var o=e[i];if(o&&"object"==typeof o)if(Array.isArray(o))for(n=0;n<o.length;n++)o[n]&&o[n].constructor===a&&this.populateScope_(o[n],t);else o.constructor===a&&this.populateScope_(o,t)}},r.prototype.stripLocations_=function(e,t,n){for(var a in t?e.start=t:delete e.start,n?e.end=n:delete e.end,e)if(e.hasOwnProperty(a)){var r=e[a];r&&"object"==typeof r&&this.stripLocations_(r,t,n)}},r.prototype.calledWithNew=function(){return this.stateStack[this.stateStack.length-1].isConstructor},r.prototype.getValue=function(e,t){return e[0]===r.SCOPE_REFERENCE?this.getValueFromScope(e[1],t):this.getProperty(e[0],e[1],t)},r.prototype.setValue=function(e,t){return e[0]===r.SCOPE_REFERENCE?this.setValueToScope(e[1],t):this.setProperty(e[0],e[1],t)},r.Completion={NORMAL:0,BREAK:1,CONTINUE:2,RETURN:3,THROW:4},r.prototype.throwException=function(e,t,n){if(void 0===t)var a=e;else{a=this.createObject(e);this.setProperty(a,"message",t,r.NONENUMERABLE_DESCRIPTOR)}var i;throw null!=n&&(i=this.getErrorLineNumberMessage(n)),this.unwind(r.Completion.THROW,a,void 0,i),r.STEP_ERROR},r.prototype.unwind=function(e,t,n,a=""){if(e===r.Completion.NORMAL)throw TypeError("Should not unwind for NORMAL completions");for(var i=this.stateStack;i.length>0;i.pop()){var o=i[i.length-1];switch(o.node.type){case"TryStatement":return void(o.cv={type:e,value:t,label:n});case"CallExpression":case"NewExpression":if(e===r.Completion.RETURN)return void(o.value=t);if(e!==r.Completion.THROW)throw Error("Unsynatctic break/continue not rejected by Acorn")}if(e===r.Completion.BREAK){if(n?o.labels&&-1!==o.labels.indexOf(n):o.isLoop||o.isSwitch)return void i.pop()}else if(e===r.Completion.CONTINUE&&(n?o.labels&&-1!==o.labels.indexOf(n):o.isLoop))return}var s;if(this.isa(t,this.ERROR)){var l={EvalError:EvalError,RangeError:RangeError,ReferenceError:ReferenceError,SyntaxError:SyntaxError,TypeError:TypeError,URIError:URIError},c=this.getProperty(t,"name").toString(),f=this.getProperty(t,"message").valueOf();s=(e=l[c]||Error)(f+a)}else s=String(t)+a;throw s},r.prototype.createGetter_=function(e,t){var n=Array.isArray(t)?t[0]:t,a=new this.nodeConstructor;a.type="CallExpression";var i=new r.State(a,this.stateStack[this.stateStack.length-1].scope);return i.doneCallee_=!0,i.funcThis_=n,i.func_=e,i.doneArgs_=!0,i.arguments_=[],i},r.prototype.createSetter_=function(e,t,n){var a=Array.isArray(t)?t[0]:this.global,i=new this.nodeConstructor;i.type="CallExpression";var o=new r.State(i,this.stateStack[this.stateStack.length-1].scope);return o.doneCallee_=!0,o.funcThis_=a,o.func_=e,o.doneArgs_=!0,o.arguments_=[n],o},r.State=function(e,t){this.node=e,this.scope=t},r.prototype.stepArrayExpression=function(e,t,n){var a=n.elements,i=t.n_||0;for(t.array_?(this.setProperty(t.array_,i,t.value),i++):(t.array_=this.createObjectProto(this.ARRAY_PROTO),t.array_.properties.length=a.length);i<a.length;){if(a[i])return t.n_=i,new r.State(a[i],t.scope);i++}e.pop(),e[e.length-1].value=t.array_},r.prototype.stepAssignmentExpression=function(e,t,n){if(!t.doneLeft_){t.doneLeft_=!0;var a=new r.State(n.left,t.scope);return a.components=!0,a}if(!t.doneRight_){if(t.leftReference_||(t.leftReference_=t.value),t.doneGetter_&&(t.leftValue_=t.value),!t.doneGetter_&&"="!==n.operator){var i=this.getValue(t.leftReference_,n);if(t.leftValue_=i,i&&"object"==typeof i&&i.isGetter){i.isGetter=!1,t.doneGetter_=!0;var o=i;return this.createGetter_(o,t.leftReference_)}}return t.doneRight_=!0,new r.State(n.right,t.scope)}if(t.doneSetter_)return e.pop(),void(e[e.length-1].value=t.setterValue_);var s=t.leftValue_,l=t.value;switch(n.operator){case"=":s=l;break;case"+=":s+=l;break;case"-=":s-=l;break;case"*=":s*=l;break;case"/=":s/=l;break;case"%=":s%=l;break;case"<<=":s<<=l;break;case">>=":s>>=l;break;case">>>=":s>>>=l;break;case"&=":s&=l;break;case"^=":s^=l;break;case"|=":s|=l;break;default:throw SyntaxError("Unknown assignment expression: "+n.operator)}var c=this.setValue(t.leftReference_,s);if(c)return t.doneSetter_=!0,t.setterValue_=s,this.createSetter_(c,t.leftReference_,s);e.pop(),e[e.length-1].value=s},r.prototype.stepBinaryExpression=function(e,t,n){if(!t.doneLeft_)return t.doneLeft_=!0,new r.State(n.left,t.scope);if(!t.doneRight_)return t.doneRight_=!0,t.leftValue_=t.value,new r.State(n.right,t.scope);e.pop();var a,i=t.leftValue_,o=t.value;switch(n.operator){case"==":a=i==o;break;case"!=":a=i!=o;break;case"===":a=i===o;break;case"!==":a=i!==o;break;case">":a=i>o;break;case">=":a=i>=o;break;case"<":a=i<o;break;case"<=":a=i<=o;break;case"+":a=i+o;break;case"-":a=i-o;break;case"*":a=i*o;break;case"/":a=i/o;break;case"%":a=i%o;break;case"&":a=i&o;break;case"|":a=i|o;break;case"^":a=i^o;break;case"<<":a=i<<o;break;case">>":a=i>>o;break;case">>>":a=i>>>o;break;case"in":if(!o||!o.isObject){let e=this.getErrorLineNumber(n);this.throwException(this.TYPE_ERROR,"'in' expects an object, not '"+o+"'",e)}a=this.hasProperty(o,i);break;case"instanceof":if(!this.isa(o,this.FUNCTION)){let e=this.getErrorLineNumber(n);this.throwException(this.TYPE_ERROR,"Right-hand side of instanceof is not an object",e)}a=!!i.isObject&&this.isa(i,o);break;default:throw SyntaxError("Unknown binary operator: "+n.operator)}e[e.length-1].value=a},r.prototype.stepBlockStatement=function(e,t,n){var a=t.n_||0,i=n.body[a];if(i)return t.n_=a+1,new r.State(i,t.scope);e.pop()},r.prototype.stepBreakStatement=function(e,t,n){var a=n.label&&n.label.name;this.unwind(r.Completion.BREAK,void 0,a)},r.prototype.stepCallExpression=function(e,t,n){if(!t.doneCallee_){t.doneCallee_=1;var i=new r.State(n.callee,t.scope);return i.components=!0,i}if(1===t.doneCallee_){t.doneCallee_=2;var o=t.value;if(Array.isArray(o)){if(t.func_=this.getValue(o,n),o[0]===r.SCOPE_REFERENCE?t.directEval_="eval"===o[1]:t.funcThis_=o[0],(o=t.func_)&&"object"==typeof o&&o.isGetter)return o.isGetter=!1,t.doneCallee_=1,this.createGetter_(o,t.value)}else t.func_=o;t.arguments_=[],t.n_=0}o=t.func_;if(!t.doneArgs_){if(0!==t.n_&&t.arguments_.push(t.value),n.arguments[t.n_])return new r.State(n.arguments[t.n_++],t.scope);if("NewExpression"===n.type){if(o.illegalConstructor){let e=this.getErrorLineNumber(n);this.throwException(this.TYPE_ERROR,o+" is not a constructor",e)}var s=o.properties.prototype;"object"==typeof s&&null!==s||(s=this.OBJECT_PROTO),t.funcThis_=this.createObjectProto(s),t.isConstructor=!0}else void 0===t.funcThis_&&(t.funcThis_=t.scope.strict?void 0:this.global);t.doneArgs_=!0}if(t.doneExec_)e.pop(),t.isConstructor&&"object"!=typeof t.value?e[e.length-1].value=t.funcThis_:e[e.length-1].value=t.value;else{if(t.doneExec_=!0,!o||!o.isObject){let e=this.getErrorLineNumber(n);this.throwException(this.TYPE_ERROR,o+" is not a function",e)}var l=o.node;if(l){for(var c=this.createScope(l.body,o.parentScope),f=0;f<l.params.length;f++){var u=l.params[f].name,m=t.arguments_.length>f?t.arguments_[f]:void 0;this.setProperty(c,u,m)}var h=this.createObjectProto(this.ARRAY_PROTO);for(f=0;f<t.arguments_.length;f++)this.setProperty(h,f,t.arguments_[f]);this.setProperty(c,"arguments",h);var d=l.id&&l.id.name;return d&&this.setProperty(c,d,o),this.setProperty(c,"this",t.funcThis_,r.READONLY_DESCRIPTOR),t.value=void 0,new r.State(l.body,c)}if(o.eval){var p=t.arguments_[0];if("string"==typeof p){try{var g=a.a(p.toString(),r.PARSE_OPTIONS)}catch(e){let t=this.getErrorLineNumber(n);this.throwException(this.SYNTAX_ERROR,"Invalid code: "+e.message,t)}var y=new this.nodeConstructor;return y.type="EvalProgram_",y.body=g.body,this.stripLocations_(y,n.start,n.end),(c=t.directEval_?t.scope:this.global).strict?c=this.createScope(g,c):this.populateScope_(g,c),this.value=void 0,new r.State(y,c)}t.value=p}else if(o.nativeFunc)t.value=o.nativeFunc.apply(t.funcThis_,t.arguments_);else{if(o.asyncFunc){var b=this,E=t.arguments_.concat((function(e){t.value=e,b.paused_=!1}));return this.paused_=!0,void o.asyncFunc.apply(t.funcThis_,E)}{let e=this.getErrorLineNumber(n);this.throwException(this.TYPE_ERROR,o.class+" is not a function",e)}}}},r.prototype.stepCatchClause=function(e,t,n){if(!t.done_){t.done_=!0;var a=this.createSpecialScope(t.scope);return this.setProperty(a,n.param.name,t.throwValue),new r.State(n.body,a)}e.pop()},r.prototype.stepConditionalExpression=function(e,t,n){var a=t.mode_||0;if(0===a)return t.mode_=1,new r.State(n.test,t.scope);if(1===a){t.mode_=2;var i=Boolean(t.value);if(i&&n.consequent)return new r.State(n.consequent,t.scope);if(!i&&n.alternate)return new r.State(n.alternate,t.scope);this.value=void 0}e.pop(),"ConditionalExpression"===n.type&&(e[e.length-1].value=t.value)},r.prototype.stepContinueStatement=function(e,t,n){var a=n.label&&n.label.name;this.unwind(r.Completion.CONTINUE,void 0,a)},r.prototype.stepDebuggerStatement=function(e,t,n){e.pop()},r.prototype.stepDoWhileStatement=function(e,t,n){if("DoWhileStatement"===n.type&&void 0===t.test_&&(t.value=!0,t.test_=!0),!t.test_)return t.test_=!0,new r.State(n.test,t.scope);if(t.value){if(n.body)return t.test_=!1,t.isLoop=!0,new r.State(n.body,t.scope)}else e.pop()},r.prototype.stepEmptyStatement=function(e,t,n){e.pop()},r.prototype.stepEvalProgram_=function(e,t,n){var a=t.n_||0,i=n.body[a];if(i)return t.n_=a+1,new r.State(i,t.scope);e.pop(),e[e.length-1].value=this.value},r.prototype.stepExpressionStatement=function(e,t,n){if(!t.done_)return t.done_=!0,new r.State(n.expression,t.scope);e.pop(),this.value=t.value},r.prototype.stepForInStatement=function(e,t,n){if(!t.doneInit_&&(t.doneInit_=!0,n.left.declarations&&n.left.declarations[0].init)){if(t.scope.strict){let e=this.getErrorLineNumber(n);this.throwException(this.SYNTAX_ERROR,"for-in loop variable declaration may not have an initializer.",e)}return new r.State(n.left,t.scope)}if(!t.doneObject_)return t.doneObject_=!0,t.variable_||(t.variable_=t.value),new r.State(n.right,t.scope);if(t.isLoop||(t.isLoop=!0,t.object_=t.value,t.visited_=Object.create(null)),void 0===t.name_)e:for(;;){if(t.object_&&t.object_.isObject)for(t.props_||(t.props_=Object.getOwnPropertyNames(t.object_.properties));;){if(void 0===(a=t.props_.shift()))break;if(Object.prototype.hasOwnProperty.call(t.object_.properties,a)&&(!t.visited_[a]&&(t.visited_[a]=!0,Object.prototype.propertyIsEnumerable.call(t.object_.properties,a)))){t.name_=a;break e}}else if(null!==t.object_&&void 0!==t.object_)for(t.props_||(t.props_=Object.getOwnPropertyNames(t.object_));;){var a;if(void 0===(a=t.props_.shift()))break;if(t.visited_[a]=!0,Object.prototype.propertyIsEnumerable.call(t.object_,a)){t.name_=a;break e}}if(t.object_=this.getPrototype(t.object_),t.props_=null,null===t.object_)return void e.pop()}if(!t.doneVariable_){t.doneVariable_=!0;var i=n.left;if("VariableDeclaration"!==i.type){t.variable_=null;var o=new r.State(i,t.scope);return o.components=!0,o}t.variable_=[r.SCOPE_REFERENCE,i.declarations[0].id.name]}if(t.variable_||(t.variable_=t.value),!t.doneSetter_){t.doneSetter_=!0;var s=t.name_,l=this.setValue(t.variable_,s);if(l)return this.createSetter_(l,t.variable_,s)}return t.name_=void 0,t.doneVariable_=!1,t.doneSetter_=!1,n.body?new r.State(n.body,t.scope):void 0},r.prototype.stepForStatement=function(e,t,n){var a=t.mode_||0;if(0===a){if(t.mode_=1,n.init)return new r.State(n.init,t.scope)}else if(1===a){if(t.mode_=2,n.test)return new r.State(n.test,t.scope)}else if(2===a){if(t.mode_=3,!n.test||t.value)return t.isLoop=!0,new r.State(n.body,t.scope);e.pop()}else if(3===a&&(t.mode_=1,n.update))return new r.State(n.update,t.scope)},r.prototype.stepFunctionDeclaration=function(e,t,n){e.pop()},r.prototype.stepFunctionExpression=function(e,t,n){e.pop(),e[e.length-1].value=this.createFunction(n,t.scope)},r.prototype.stepIdentifier=function(e,t,n){if(e.pop(),t.components)e[e.length-1].value=[r.SCOPE_REFERENCE,n.name];else{var a=this.getValueFromScope(n.name,n);if(a&&"object"==typeof a&&a.isGetter){a.isGetter=!1;for(var i=t.scope;!this.hasProperty(i,n.name);)i=i.parentScope;var o=a;return this.createGetter_(o,this.global)}e[e.length-1].value=a}},r.prototype.stepIfStatement=r.prototype.stepConditionalExpression,r.prototype.stepLabeledStatement=function(e,t,n){e.pop();var a=t.labels||[];a.push(n.label.name);var i=new r.State(n.body,t.scope);return i.labels=a,i},r.prototype.stepLiteral=function(e,t,n){e.pop();var a=n.value;if(a instanceof RegExp){var r=this.createObjectProto(this.REGEXP_PROTO);this.populateRegExp(r,a),a=r}e[e.length-1].value=a},r.prototype.stepLogicalExpression=function(e,t,n){if("&&"!==n.operator&&"||"!==n.operator)throw SyntaxError("Unknown logical operator: "+n.operator);if(!t.doneLeft_)return t.doneLeft_=!0,new r.State(n.left,t.scope);if(t.doneRight_)e.pop(),e[e.length-1].value=t.value;else{if(!("&&"===n.operator&&!t.value||"||"===n.operator&&t.value))return t.doneRight_=!0,new r.State(n.right,t.scope);e.pop(),e[e.length-1].value=t.value}},r.prototype.stepMemberExpression=function(e,t,n){if(!t.doneObject_)return t.doneObject_=!0,new r.State(n.object,t.scope);var a;if(n.computed){if(!t.doneProperty_)return t.object_=t.value,t.doneProperty_=!0,new r.State(n.property,t.scope);a=t.value}else t.object_=t.value,a=n.property.name;if(e.pop(),t.components)e[e.length-1].value=[t.object_,a];else{var i=this.getProperty(t.object_,a);if(i&&"object"==typeof i&&i.isGetter){i.isGetter=!1;var o=i;return this.createGetter_(o,t.object_)}e[e.length-1].value=i}},r.prototype.stepNewExpression=r.prototype.stepCallExpression,r.prototype.stepObjectExpression=function(e,t,n){var a=t.n_||0,i=n.properties[a];if(t.object_){if("Identifier"===(s=i.key).type)var o=s.name;else{if("Literal"!==s.type)throw SyntaxError("Unknown object structure: "+s.type);o=s.value}t.properties_[o]||(t.properties_[o]={}),t.properties_[o][i.kind]=t.value,t.n_=++a,i=n.properties[a]}else t.object_=this.createObjectProto(this.OBJECT_PROTO),t.properties_=Object.create(null);if(i)return new r.State(i.value,t.scope);for(var s in t.properties_){var l=t.properties_[s];if("get"in l||"set"in l){var c={configurable:!0,enumerable:!0,get:l.get,set:l.set};this.setProperty(t.object_,s,null,c)}else this.setProperty(t.object_,s,l.init)}e.pop(),e[e.length-1].value=t.object_},r.prototype.stepProgram=function(e,t,n){var a=n.body.shift();if(a)return t.done=!1,new r.State(a,t.scope);t.done=!0},r.prototype.stepReturnStatement=function(e,t,n){if(n.argument&&!t.done_)return t.done_=!0,new r.State(n.argument,t.scope);this.unwind(r.Completion.RETURN,t.value,void 0)},r.prototype.stepSequenceExpression=function(e,t,n){var a=t.n_||0,i=n.expressions[a];if(i)return t.n_=a+1,new r.State(i,t.scope);e.pop(),e[e.length-1].value=t.value},r.prototype.stepSwitchStatement=function(e,t,n){if(!t.test_)return t.test_=1,new r.State(n.discriminant,t.scope);for(1===t.test_&&(t.test_=2,t.switchValue_=t.value,t.defaultCase_=-1);;){var a=t.index_||0,i=n.cases[a];if(t.matched_||!i||i.test)if(i||t.matched_||-1===t.defaultCase_){if(!i)return void e.pop();if(!t.matched_&&!t.tested_&&i.test)return t.tested_=!0,new r.State(i.test,t.scope);if(t.matched_||t.value===t.switchValue_){t.matched_=!0;var o=t.n_||0;if(i.consequent[o])return t.isSwitch=!0,t.n_=o+1,new r.State(i.consequent[o],t.scope)}t.tested_=!1,t.n_=0,t.index_=a+1}else t.matched_=!0,t.index_=t.defaultCase_;else t.defaultCase_=a,t.index_=a+1}},r.prototype.stepThisExpression=function(e,t,n){e.pop(),e[e.length-1].value=this.getValueFromScope("this",n)},r.prototype.stepThrowStatement=function(e,t,n){if(!t.done_)return t.done_=!0,new r.State(n.argument,t.scope);this.throwException(t.value)},r.prototype.stepTryStatement=function(e,t,n){if(!t.doneBlock_)return t.doneBlock_=!0,new r.State(n.block,t.scope);if(t.cv&&t.cv.type===r.Completion.THROW&&!t.doneHandler_&&n.handler){t.doneHandler_=!0;var a=new r.State(n.handler,t.scope);return a.throwValue=t.cv.value,t.cv=void 0,a}if(!t.doneFinalizer_&&n.finalizer)return t.doneFinalizer_=!0,new r.State(n.finalizer,t.scope);e.pop(),t.cv&&this.unwind(t.cv.type,t.cv.value,t.cv.label)},r.prototype.stepUnaryExpression=function(e,t,n){if(!t.done_){t.done_=!0;var a=new r.State(n.argument,t.scope);return a.components="delete"===n.operator,a}e.pop();var i=t.value;if("-"===n.operator)i=-i;else if("+"===n.operator)i=+i;else if("!"===n.operator)i=!i;else if("~"===n.operator)i=~i;else if("delete"===n.operator){var o=!0;if(Array.isArray(i)){var s=i[0];s===r.SCOPE_REFERENCE&&(s=t.scope);var l=String(i[1]);try{delete s.properties[l]}catch(e){t.scope.strict?this.throwException(this.TYPE_ERROR,"Cannot delete property '"+l+"' of '"+s+"'"):o=!1}}i=o}else if("typeof"===n.operator)i=i&&"Function"===i.class?"function":typeof i;else{if("void"!==n.operator)throw SyntaxError("Unknown unary operator: "+n.operator);i=void 0}e[e.length-1].value=i},r.prototype.stepUpdateExpression=function(e,t,n){if(!t.doneLeft_){t.doneLeft_=!0;var a=new r.State(n.argument,t.scope);return a.components=!0,a}if(t.leftSide_||(t.leftSide_=t.value),t.doneGetter_&&(t.leftValue_=t.value),!t.doneGetter_){var i=this.getValue(t.leftSide_,n);if(t.leftValue_=i,i&&"object"==typeof i&&i.isGetter){i.isGetter=!1,t.doneGetter_=!0;var o=i;return this.createGetter_(o,t.leftSide_)}}if(t.doneSetter_)return e.pop(),void(e[e.length-1].value=t.setterValue_);var s;i=Number(t.leftValue_);if("++"===n.operator)s=i+1;else{if("--"!==n.operator)throw SyntaxError("Unknown update expression: "+n.operator);s=i-1}var l=n.prefix?s:i,c=this.setValue(t.leftSide_,s);if(c)return t.doneSetter_=!0,t.setterValue_=l,this.createSetter_(c,t.leftSide_,s);e.pop(),e[e.length-1].value=l},r.prototype.stepVariableDeclaration=function(e,t,n){var a=n.declarations,i=t.n_||0,o=a[i];for(t.init_&&o&&(this.setValueToScope(o.id.name,t.value),t.init_=!1,o=a[++i]);o;){if(o.init)return t.n_=i,t.init_=!0,new r.State(o.init,t.scope);o=a[++i]}e.pop()},r.prototype.stepWithStatement=function(e,t,n){if(!t.doneObject_)return t.doneObject_=!0,new r.State(n.object,t.scope);if(!t.doneBody_){t.doneBody_=!0;var a=this.createSpecialScope(t.scope,t.value);return new r.State(n.body,a)}e.pop()},r.prototype.stepWhileStatement=r.prototype.stepDoWhileStatement,r.prototype.step=r.prototype.step,r.prototype.run=r.prototype.run,r.prototype.appendCode=r.prototype.appendCode,r.prototype.createObject=r.prototype.createObject,r.prototype.createObjectProto=r.prototype.createObjectProto,r.prototype.createAsyncFunction=r.prototype.createAsyncFunction,r.prototype.createNativeFunction=r.prototype.createNativeFunction,r.prototype.getProperty=r.prototype.getProperty,r.prototype.setProperty=r.prototype.setProperty,r.prototype.nativeToPseudo=r.prototype.nativeToPseudo,r.prototype.pseudoToNative=r.prototype.pseudoToNative,r.prototype.createPrimitive=function(e){return e}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var a=n(12),r=n(21);function i(e,t,n,i=1){const o=Math.max(Math.floor(t),0);let s=1+(a.a.ServerBaseGrowthRate-1)/e.hackDifficulty;s>a.a.ServerMaxGrowthRate&&(s=a.a.ServerMaxGrowthRate);const l=o*(e.serverGrowth/100)*r.a.ServerGrowthRate,c=1+(i-1)/16;return Math.pow(s,l*n.mults.hacking_grow*c)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var a=n(1),r=n(0),i=n.n(r),o=n(118),s=n(142),l=n(113),c=n.n(l);const f=new RegExp("\\[(?<code>.*?)m","ug"),u=Object(o.a)(e=>Object(s.a)({success:{whiteSpace:"pre-wrap",overflowWrap:"anywhere",margin:e.spacing(0),color:e.colors.success},error:{whiteSpace:"pre-wrap",overflowWrap:"anywhere",margin:e.spacing(0),color:e.palette.error.main},primary:{whiteSpace:"pre-wrap",overflowWrap:"anywhere",margin:e.spacing(0),color:e.palette.primary.main},info:{whiteSpace:"pre-wrap",overflowWrap:"anywhere",margin:e.spacing(0),color:e.palette.info.main},warning:{whiteSpace:"pre-wrap",overflowWrap:"anywhere",margin:e.spacing(0),color:e.palette.warning.main}})),m=(e,t)=>({error:e.error,success:e.success,info:e.info,warn:e.warning}[t]||e.primary),h=i.a.memo(e=>{const t=u(),n=[],r=[{0:"",index:0,groups:{code:null}},...e.text.matchAll(f),null];return r.length>2&&r.slice(0,-1).forEach((t,a)=>{const i=r[a+1];if(!t||void 0===t.index||void 0===t.groups)return;const o=t.index+t[0].length,s=i?i.index:e.text.length,l=e.text.slice(o,s);o!==s&&n.push({code:t.groups.code,text:l})}),0===n.length&&n.push({code:null,text:e.text}),i.a.createElement(a.a,{classes:{root:m(t,e.color)},paragraph:!1},n.map((e,t)=>{const n=function(e){const t={0:"#404040",1:"#ff0000",2:"#00ff00",3:"#ffff00",4:"#0000ff",5:"#ff00ff",6:"#00ffff",7:"#ffffff"},n={0:"#000000",1:"#800000",2:"#008000",3:"#808000",4:"#000080",5:"#800080",6:"#008080",7:"#c0c0c0"},a={};if(null===e||"0"===e)return a;const r=e.split(";").map(e=>parseInt(e)).filter((e,t,n)=>5!=e||0==t||38!=n[t-1]&&48!=n[t-1]);let i=null;r.forEach(e=>{null!==i?(a[i]=(e=>{if(0<=e&&e<8)return t[e];if(8<=e&&e<16)return n[e];if(16<=e&&e<232){const t=e-16,n=Math.floor(t/36),a=Math.floor(t%36/6),r=Math.floor(t%6/1);return`rgb(${n<=0?0:55+40*n}, ${a<=0?0:55+40*a}, ${r<=0?0:55+40*r})`}if(232<=e&&e<256){const t=10*(e-232)+8;return`rgb(${t}, ${t}, ${t})`}return"initial"})(e),i=null):1==e?a.fontWeight="bold":4==e?a.textDecoration="underline":30<=e&&e<38?t[e%10]&&(a.color=t[e%10]):40<=e&&e<48?n[e%10]&&(a.backgroundColor=n[e%10]):38==e?i="color":48==e&&(i="backgroundColor")}),void 0!==a.backgroundColor&&(a.display="inline-block");return a}(e.code);return c.a.isEmpty(n)?e.text:i.a.createElement(a.a,{key:t,paragraph:!1,component:"span",sx:n},e.text)}))})},,function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));class a{constructor(e,t,n,a,r){this.name=e,this.desc=t,this.isHacking=n,this.isCombat=a,this.baseRespect=r.baseRespect?r.baseRespect:0,this.baseWanted=r.baseWanted?r.baseWanted:0,this.baseMoney=r.baseMoney?r.baseMoney:0,this.hackWeight=r.hackWeight?r.hackWeight:0,this.strWeight=r.strWeight?r.strWeight:0,this.defWeight=r.defWeight?r.defWeight:0,this.dexWeight=r.dexWeight?r.dexWeight:0,this.agiWeight=r.agiWeight?r.agiWeight:0,this.chaWeight=r.chaWeight?r.chaWeight:0,100!=Math.round(this.hackWeight+this.strWeight+this.defWeight+this.dexWeight+this.agiWeight+this.chaWeight)&&console.error(`GangMemberTask ${this.name} weights do not add up to 100`),this.difficulty=r.difficulty?r.difficulty:1,this.territory=r.territory?r.territory:{money:1,respect:1,wanted:1}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var a=n(4),r=n(73),i=n(29);function o(e,t){const n=e.augmentations.map(e=>e.name),o=[];function s(e){if(n.includes(e.name))return!1;if(o.includes(e))return!1;if(e.isSpecial)return!1;const t=["hacking_mult","strength_mult","defense_mult","dexterity_mult","agility_mult","charisma_mult","hacking_exp_mult","strength_exp_mult","defense_exp_mult","dexterity_exp_mult","agility_exp_mult","charisma_exp_mult","company_rep_mult","faction_rep_mult","crime_money_mult","crime_success_mult","work_money_mult"];for(const n of Object.keys(e.mults))if(t.includes(n))return!0;return!1}if(t.inGang()){const e=t.getGangFaction();for(const n of Object.keys(r.a)){const a=r.a[n];s(a)&&(e.playerReputation>a.getCost(t).repCost&&o.push(a))}}for(const e of t.factions){if(e===a.a.Bladeburners)continue;if(e===a.a.Netburners)continue;const n=i.a[e];if(null!=n)for(const e of n.augmentations){const a=r.a[e];s(a)&&(n.playerReputation>a.getCost(t).repCost&&o.push(a))}}return o}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));const a=new(n(126).a)},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var a=n(15),r=n(9),i=n(51);const o=[{city:a.a.Aevum,infiltrationData:{maxClearanceLevel:12,startingSecurityLevel:8.18},name:r.a.AevumAeroCorp,types:[i.a.Company]},{city:a.a.Aevum,infiltrationData:{maxClearanceLevel:15,startingSecurityLevel:8.19},name:r.a.AevumBachmanAndAssociates,types:[i.a.Company]},{city:a.a.Aevum,infiltrationData:{maxClearanceLevel:18,startingSecurityLevel:9.55},name:r.a.AevumClarkeIncorporated,types:[i.a.Company]},{city:a.a.Aevum,costMult:3,expMult:2,name:r.a.AevumCrushFitnessGym,types:[i.a.Gym]},{city:a.a.Aevum,infiltrationData:{maxClearanceLevel:37,startingSecurityLevel:17.02},name:r.a.AevumECorp,types:[i.a.Company,i.a.TechVendor],techVendorMaxRam:512,techVendorMinRam:128},{city:a.a.Aevum,infiltrationData:{maxClearanceLevel:25,startingSecurityLevel:15.54},name:r.a.AevumFulcrumTechnologies,types:[i.a.Company,i.a.TechVendor],techVendorMaxRam:1024,techVendorMinRam:256},{city:a.a.Aevum,infiltrationData:{maxClearanceLevel:12,startingSecurityLevel:7.89},name:r.a.AevumGalacticCybersystems,types:[i.a.Company]},{city:a.a.Aevum,infiltrationData:{maxClearanceLevel:6,startingSecurityLevel:3.29},name:r.a.AevumNetLinkTechnologies,types:[i.a.Company,i.a.TechVendor],techVendorMaxRam:64,techVendorMinRam:8},{city:a.a.Aevum,infiltrationData:{maxClearanceLevel:6,startingSecurityLevel:5.35},name:r.a.AevumPolice,types:[i.a.Company]},{city:a.a.Aevum,infiltrationData:{maxClearanceLevel:5,startingSecurityLevel:5.02},name:r.a.AevumRhoConstruction,types:[i.a.Company]},{city:a.a.Aevum,costMult:10,expMult:5,name:r.a.AevumSnapFitnessGym,types:[i.a.Gym]},{city:a.a.Aevum,costMult:4,expMult:3,name:r.a.AevumSummitUniversity,types:[i.a.University]},{city:a.a.Aevum,infiltrationData:{maxClearanceLevel:7,startingSecurityLevel:5.85},name:r.a.AevumWatchdogSecurity,types:[i.a.Company]},{city:a.a.Aevum,name:r.a.AevumCasino,types:[i.a.Casino]},{city:a.a.Chongqing,infiltrationData:{maxClearanceLevel:25,startingSecurityLevel:16.25},name:r.a.ChongqingKuaiGongInternational,types:[i.a.Company]},{city:a.a.Chongqing,infiltrationData:{maxClearanceLevel:18,startingSecurityLevel:12.59},name:r.a.ChongqingSolarisSpaceSystems,types:[i.a.Company]},{city:a.a.Ishima,infiltrationData:{maxClearanceLevel:12,startingSecurityLevel:5.02},name:r.a.IshimaNovaMedical,types:[i.a.Company]},{city:a.a.Ishima,infiltrationData:{maxClearanceLevel:10,startingSecurityLevel:3.2},name:r.a.IshimaOmegaSoftware,types:[i.a.Company,i.a.TechVendor],techVendorMaxRam:128,techVendorMinRam:4},{city:a.a.Ishima,infiltrationData:{maxClearanceLevel:25,startingSecurityLevel:5.38},name:r.a.IshimaStormTechnologies,types:[i.a.Company,i.a.TechVendor],techVendorMaxRam:512,techVendorMinRam:32},{city:a.a.NewTokyo,infiltrationData:{maxClearanceLevel:17,startingSecurityLevel:7.18},name:r.a.NewTokyoDefComm,types:[i.a.Company]},{city:a.a.NewTokyo,infiltrationData:{maxClearanceLevel:20,startingSecurityLevel:5.9},name:r.a.NewTokyoGlobalPharmaceuticals,types:[i.a.Company]},{city:a.a.NewTokyo,infiltrationData:{maxClearanceLevel:5,startingSecurityLevel:2.5},name:r.a.NewTokyoNoodleBar,types:[i.a.Company,i.a.Special]},{city:a.a.NewTokyo,infiltrationData:{maxClearanceLevel:25,startingSecurityLevel:5.52},name:r.a.NewTokyoVitaLife,types:[i.a.Company,i.a.Special]},{city:a.a.NewTokyo,name:r.a.NewTokyoArcade,types:[i.a.Special]},{city:a.a.Sector12,infiltrationData:{maxClearanceLevel:10,startingSecurityLevel:3.62},name:r.a.Sector12AlphaEnterprises,types:[i.a.Company,i.a.TechVendor],techVendorMaxRam:8,techVendorMinRam:2},{city:a.a.Sector12,infiltrationData:{maxClearanceLevel:25,startingSecurityLevel:10.59},name:r.a.Sector12BladeIndustries,types:[i.a.Company]},{city:a.a.Sector12,name:r.a.Sector12CIA,types:[i.a.Company]},{city:a.a.Sector12,infiltrationData:{maxClearanceLevel:15,startingSecurityLevel:4.66},name:r.a.Sector12CarmichaelSecurity,types:[i.a.Company]},{city:a.a.Sector12,name:r.a.Sector12CityHall,types:[i.a.Special]},{city:a.a.Sector12,infiltrationData:{maxClearanceLevel:12,startingSecurityLevel:5.9},name:r.a.Sector12DeltaOne,types:[i.a.Company]},{city:a.a.Sector12,name:r.a.Sector12FoodNStuff,types:[i.a.Company]},{city:a.a.Sector12,infiltrationData:{maxClearanceLevel:25,startingSecurityLevel:8.18},name:r.a.Sector12FourSigma,types:[i.a.Company]},{city:a.a.Sector12,infiltrationData:{maxClearanceLevel:17,startingSecurityLevel:6.02},name:r.a.Sector12IcarusMicrosystems,types:[i.a.Company]},{city:a.a.Sector12,expMult:1,costMult:1,name:r.a.Sector12IronGym,types:[i.a.Gym]},{city:a.a.Sector12,infiltrationData:{maxClearanceLevel:5,startingSecurityLevel:3.13},name:r.a.Sector12JoesGuns,types:[i.a.Company]},{city:a.a.Sector12,infiltrationData:{maxClearanceLevel:31,startingSecurityLevel:16.36},name:r.a.Sector12MegaCorp,types:[i.a.Company]},{city:a.a.Sector12,name:r.a.Sector12NSA,types:[i.a.Company,i.a.Special]},{city:a.a.Sector12,costMult:20,expMult:10,name:r.a.Sector12PowerhouseGym,types:[i.a.Gym]},{city:a.a.Sector12,costMult:3,expMult:2,name:r.a.Sector12RothmanUniversity,types:[i.a.University]},{city:a.a.Sector12,infiltrationData:{maxClearanceLevel:12,startingSecurityLevel:5.9},name:r.a.Sector12UniversalEnergy,types:[i.a.Company]},{city:a.a.Volhaven,infiltrationData:{maxClearanceLevel:15,startingSecurityLevel:3.59},name:r.a.VolhavenCompuTek,types:[i.a.Company,i.a.TechVendor],techVendorMaxRam:256,techVendorMinRam:8},{city:a.a.Volhaven,infiltrationData:{maxClearanceLevel:18,startingSecurityLevel:7.28},name:r.a.VolhavenHeliosLabs,types:[i.a.Company]},{city:a.a.Volhaven,infiltrationData:{maxClearanceLevel:15,startingSecurityLevel:4.35},name:r.a.VolhavenLexoCorp,types:[i.a.Company]},{city:a.a.Volhaven,costMult:7,expMult:4,name:r.a.VolhavenMilleniumFitnessGym,types:[i.a.Gym]},{city:a.a.Volhaven,infiltrationData:{maxClearanceLevel:50,startingSecurityLevel:8.53},name:r.a.VolhavenNWO,types:[i.a.Company]},{city:a.a.Volhaven,infiltrationData:{maxClearanceLevel:25,startingSecurityLevel:7.74},name:r.a.VolhavenOmniTekIncorporated,types:[i.a.Company,i.a.TechVendor],techVendorMaxRam:1024,techVendorMinRam:128},{city:a.a.Volhaven,infiltrationData:{maxClearanceLevel:22,startingSecurityLevel:6},name:r.a.VolhavenOmniaCybersystems,types:[i.a.Company]},{city:a.a.Volhaven,infiltrationData:{maxClearanceLevel:18,startingSecurityLevel:4.77},name:r.a.VolhavenSysCoreSecurities,types:[i.a.Company]},{city:a.a.Volhaven,costMult:5,expMult:4,name:r.a.VolhavenZBInstituteOfTechnology,types:[i.a.University]},{city:null,name:r.a.Hospital,types:[i.a.Hospital]},{city:null,name:r.a.Slums,types:[i.a.Slums]},{city:null,name:r.a.TravelAgency,types:[i.a.TravelAgency]},{city:null,name:r.a.WorldStockExchange,types:[i.a.StockMarket]},{city:a.a.Chongqing,name:r.a.ChongqingChurchOfTheMachineGod,types:[i.a.Special]},{city:a.a.Ishima,name:r.a.IshimaGlitch,types:[i.a.Special]}]},function(e,t,n){"use strict";n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return c}));var a=n(99),r=n(1076),i=n.n(r),o=n(1077),s=n.n(o);function l(e,t){const n=1==e.length||"*.*"===e?null:e.slice(1),r=new s.a,o=(e,t)=>{for(let a=0;a<t.length;++a){let i=e[a];i.startsWith("/")&&(i=i.slice(1)),n&&!i.endsWith(n)||r.file(i,new Blob([t[a]],{type:"text/plain"}))}};if(n&&!Object(a.a)(n)||o(t.scripts.map(e=>e.filename),t.scripts.map(e=>e.code)),n&&!n.endsWith(".txt")||o(t.textFiles.map(e=>e.fn),t.textFiles.map(e=>e.text)),0==Object.keys(r.files).length)throw new Error("No files match the pattern "+e);const l=`bitburner${Object(a.a)(e)?"Scripts":"*.txt"===e?"Texts":"Files"}.zip`;r.generateAsync({type:"blob"}).then(e=>i.a.saveAs(e,l))}function c(e,t,n,r,i){try{if(1!==i.length)return void e.error("Incorrect usage of download command. Usage: download [script/text file]");const t=i[0]+"";if(t.startsWith("*"))try{return void l(t,r)}catch(t){return e.error(t.message)}else if(Object(a.a)(t)){const a=e.getScript(n,t);if(null!=a)return a.download()}else{if(!t.endsWith(".txt"))return void e.error("Cannot download this filetype");{const a=e.getTextFile(n,t);if(null!=a)return a.download()}}return void e.error(t+" does not exist")}catch(t){return void e.error(t+"")}}},,,,,,,,,function(e,t,n){"use strict";function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",(function(){return r}));class r{constructor(e,t){a(this,"lvl",1),a(this,"n",1),this.n=e,this.lvl=t}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return i}));var a=n(0);const r=a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16px",height:"16px",viewBox:"0 0 166 132",style:{fill:"#adff2f"}},a.createElement("g",null,a.createElement("path",{d:"M132.658-0.18l-24.321,24.321c-7.915-2.71-16.342-4.392-25.087-4.392c-45.84,0-83,46-83,46 s14.1,17.44,35.635,30.844L12.32,120.158l12.021,12.021L144.68,11.841L132.658-0.18z M52.033,80.445 c-2.104-4.458-3.283-9.438-3.283-14.695c0-19.054,15.446-34.5,34.5-34.5c5.258,0,10.237,1.179,14.695,3.284L52.033,80.445z"}),a.createElement("path",{d:"M134.865,37.656l-18.482,18.482c0.884,3.052,1.367,6.275,1.367,9.612c0,19.055-15.446,34.5-34.5,34.5 c-3.337,0-6.56-0.483-9.611-1.367l-10.124,10.124c6.326,1.725,12.934,2.743,19.735,2.743c45.84,0,83-46,83-46 S153.987,50.575,134.865,37.656z"}))),i=a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16px",height:"16px",viewBox:"-22 0 511 511.99561",style:{fill:"#adff2f"}},a.createElement("path",{d:"m.496094 466.242188 39.902344-39.902344 45.753906 45.753906-39.898438 39.902344zm0 0"}),a.createElement("path",{d:"m468.421875 89.832031-1.675781-89.832031-300.265625 300.265625 45.753906 45.753906zm0 0"}),a.createElement("path",{d:"m95.210938 316.785156 16.84375 16.847656h.003906l83.65625 83.65625 22.753906-22.753906-100.503906-100.503906zm0 0"}),a.createElement("path",{d:"m101.445312 365.300781-39.902343 39.902344 45.753906 45.753906 39.902344-39.902343-39.90625-39.902344zm0 0"}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var a=n(0),r=n.n(a),i=n(56),o=n(28),s=n(1),l=n(19),c=n(18),f=n(112),u=n(626),m=n.n(u),h=n(627),d=n.n(h);function p({action:e,isActive:t,bladeburner:n,rerender:a}){const u=o.b.Player(),h=e.level<e.maxLevel,p=e.level>1;return r.a.createElement(c.a,{display:"flex",flexDirection:"row",alignItems:"center"},r.a.createElement(c.a,{display:"flex"},r.a.createElement(l.a,{title:r.a.createElement(s.a,null,e.getSuccessesNeededForNextLevel(i.a.ContractSuccessesPerLevel)," successes needed for next level")},r.a.createElement(s.a,null,"Level: ",e.level," / ",e.maxLevel))),r.a.createElement(l.a,{title:t?r.a.createElement(s.a,null,"WARNING: changing the level will restart the Operation"):""},r.a.createElement("span",null,r.a.createElement(f.a,{disabled:!h,onClick:function(){h&&(++e.level,t&&n.startAction(u,n.action),a())}},r.a.createElement(m.a,null)))),r.a.createElement(l.a,{title:t?r.a.createElement(s.a,null,"WARNING: changing the level will restart the Operation"):""},r.a.createElement("span",null,r.a.createElement(f.a,{disabled:!p,onClick:function(){p&&(--e.level,t&&n.startAction(u,n.action),a())}},r.a.createElement(d.a,null)))))}},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var a=n(0),r=n.n(a),i=n(1),o=n(19),s=n(18),l=n(281);function c(e){return r.a.createElement(s.a,{display:"flex",flexDirection:"row",alignItems:"center"},r.a.createElement(o.a,{title:r.a.createElement(i.a,null,"Automatically increase operation level when possible")},r.a.createElement(i.a,null," Autolevel:")),r.a.createElement(l.a,{checked:e.action.autoLevel,onChange:function(t){e.action.autoLevel=t.target.checked,e.rerender()}}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var a=n(0),r=n.n(a),i=n(1175),o=n(24),s=n(8);function l(e){const[t,n]=Object(a.useState)(!1);return r.a.createElement(r.a.Fragment,null,r.a.createElement(s.a,{disabled:0===e.bladeburner.teamSize,onClick:()=>n(!0)},"Set Team Size (Curr Size: ",Object(o.f)(e.action.teamCount,0),")"),r.a.createElement(i.a,{open:t,onClose:()=>n(!1),action:e.action,bladeburner:e.bladeburner}))}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return T})),n.d(t,"b",(function(){return N}));var a=n(1496),r=n(1497),i=n(1804),o=n(1),s=n(252),l=n(8),c=n(18),f=n(43),u=n(251),m=n(363),h=n(0),d=n.n(h),p=n(382),g=n(11),y=n(73),b=n(12),E=n(105),v=n(9),k=n(181),w=n(175),_=n(5),S=n(28),C=n(255),x=n(20),L=n(24),O=n(391),M=n(273);const T={},A=(e,t)=>!(e.money<t.cost)&&Object(E.b)(t.augmentation),R=e=>{const t=e.aug,n=e.player;return d.a.createElement(o.a,{color:_.a.theme.money},d.a.createElement("b",null,"Pre-Requisites:"),d.a.createElement("br",null),t.prereqs.map(e=>d.a.createElement("span",{style:{display:"flex",alignItems:"center"}},n.hasAugmentation(e)?d.a.createElement(a.a,{sx:{mr:1}}):d.a.createElement(r.a,{sx:{mr:1}}),e)))},N=()=>{const e=S.b.Player(),t=S.b.Router();for(const e of Object.values(y.a)){const t=e.name,n=new O.a(e);T[t]=n}const[n,a]=Object(h.useState)(Object(M.b)(e)[0]),[r,E]=Object(h.useState)(!1),N=y.a[n],P=Object(h.useState)(!1)[1];function I(){P(e=>!e)}const F=e=>{_.a.PurchaseAugmentationsOrder=e,I()};return Object(h.useEffect)(()=>{const e=setInterval(I,200);return()=>clearInterval(e)},[]),d.a.createElement(s.a,{disableGutters:!0,maxWidth:"lg",sx:{mx:0}},d.a.createElement(l.a,{onClick:()=>t.toLocation(k.a[v.a.NewTokyoVitaLife])},"Back"),d.a.createElement(o.a,{variant:"h4"},"Grafting Laboratory"),d.a.createElement(o.a,null,"You find yourself in a secret laboratory, owned by a mysterious researcher.",d.a.createElement("br",null),"The scientist explains that they've been studying Augmentation grafting, the process of applying Augmentations without requiring a body reset.",d.a.createElement("br",null),d.a.createElement("br",null),"Through legally questionable connections, the scientist has access to a vast array of Augmentation blueprints, even private designs. They offer to build and graft the Augmentations to you, in exchange for both a hefty sum of money, and being a lab rat."),d.a.createElement(c.a,{sx:{my:3}},d.a.createElement(f.a,{sx:{p:1}},d.a.createElement(o.a,{variant:"h5"},"Graft Augmentations"),d.a.createElement(c.a,{sx:{display:"grid",gridTemplateColumns:"1fr 1fr"}},d.a.createElement(l.a,{sx:{width:"100%"},onClick:()=>F(w.b.Cost)},"Sort by Cost"),d.a.createElement(l.a,{sx:{width:"100%"},onClick:()=>F(w.b.Default)},"Sort by Default Order"))),Object(M.b)(e).length>0?d.a.createElement(f.a,{sx:{mb:1,width:"fit-content",display:"grid",gridTemplateColumns:"1fr 3fr"}},d.a.createElement(u.a,{sx:{height:400,overflowY:"scroll",borderRight:"1px solid "+_.a.theme.welllight}},(()=>{const t=Object(M.b)(e);switch(_.a.PurchaseAugmentationsOrder){case w.b.Cost:return t.sort((e,t)=>T[e].cost-T[t].cost);default:return t}})().map((t,r)=>d.a.createElement(m.a,{key:r+1,onClick:()=>a(t),selected:n===t},d.a.createElement(o.a,{sx:{color:A(e,T[t])?_.a.theme.primary:_.a.theme.disabled}},t)))),d.a.createElement(c.a,{sx:{m:1}},d.a.createElement(o.a,{variant:"h6",sx:{display:"flex",alignItems:"center",flexWrap:"wrap"}},d.a.createElement(i.a,{sx:{mr:1}})," ",n),d.a.createElement(l.a,{onClick:()=>E(!0),sx:{width:"100%"},disabled:!A(e,T[n])},"Graft Augmentation (",d.a.createElement(o.a,null,d.a.createElement(x.a,{money:T[n].cost,player:e})),")"),d.a.createElement(C.a,{open:r,onClose:()=>E(!1),onConfirm:()=>{e.startWork(new p.a({augmentation:n,singularity:!1,player:e})),e.startFocusing(),t.toWork()},confirmationText:d.a.createElement(d.a.Fragment,null,"Cancelling grafting will ",d.a.createElement("b",null,"not")," save grafting progress, and the money you spend will ",d.a.createElement("b",null,"not")," ","be returned.",!e.hasAugmentation(g.a.CongruityImplant)&&d.a.createElement(d.a.Fragment,null,d.a.createElement("br",null),d.a.createElement("br",null),"Additionally, grafting an Augmentation will increase the potency of the Entropy virus."))}),d.a.createElement(c.a,{sx:{maxHeight:330,overflowY:"scroll"}},d.a.createElement(o.a,{color:_.a.theme.info},d.a.createElement("b",null,"Time to Graft:")," ",Object(L.d)(Object(M.a)(e,T[n]))),N.prereqs.length>0&&d.a.createElement(R,{player:e,aug:N}),d.a.createElement("br",null),d.a.createElement(o.a,null,(()=>{const e="string"==typeof N.info?d.a.createElement("span",null,N.info):N.info;return d.a.createElement(d.a.Fragment,null,e,d.a.createElement("br",null),d.a.createElement("br",null),N.stats)})())))):d.a.createElement(o.a,null,"All Augmentations owned")),d.a.createElement(c.a,{sx:{my:3}},d.a.createElement(o.a,{variant:"h5"},"Entropy Virus"),d.a.createElement(f.a,{sx:{my:1,p:1,width:"fit-content"}},d.a.createElement(o.a,null,d.a.createElement("b",null,"Entropy strength:")," ",e.entropy,d.a.createElement("br",null),d.a.createElement("b",null,"All multipliers decreased by:")," ",Object(L.f)(100*(1-b.a.EntropyEffect**e.entropy),3),"% (multiplicative)")),d.a.createElement(o.a,null,"When installed on an unconscious individual, Augmentations are scanned by the body on awakening, eliminating hidden malware. However, grafted Augmentations do not provide this security measure.",d.a.createElement("br",null),d.a.createElement("br",null),'Individuals who tested Augmentation grafting have reported symptoms of an unknown virus, which they\'ve dubbed "Entropy". This virus seems to grow more potent with each grafted Augmentation...')))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var a=n(0),r=n.n(a);function i(){const[e,t]=Object(a.useState)(!0);return Object(a.useEffect)(()=>{const e=setInterval(()=>t(e=>!e),1e3);return()=>clearInterval(e)}),r.a.createElement(r.a.Fragment,null,e?"|":r.a.createElement(r.a.Fragment,null," "))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var a=n(0),r=n.n(a),i=n(8),o=n(19),s=n(1265),l=n.n(s),c=n(1264);function f(){const[e,t]=Object(a.useState)(!1);return r.a.createElement(r.a.Fragment,null,r.a.createElement(o.a,{title:"The style editor allows you to modify certain CSS rules used by the game."},r.a.createElement(i.a,{startIcon:r.a.createElement(l.a,null),onClick:()=>t(!0)},"Style Editor")),r.a.createElement(c.a,{open:e,onClose:()=>t(!1)}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var a=n(0),r=n.n(a),i=n(8),o=n(19),s=n(1266),l=n(1298),c=n.n(l);function f({router:e}){const[t,n]=Object(a.useState)(!1);return r.a.createElement(r.a.Fragment,null,r.a.createElement(o.a,{title:"The theme editor allows you to modify the colors the game uses."},r.a.createElement(i.a,{id:"bb-theme-editor-button",startIcon:r.a.createElement(c.a,null),onClick:()=>n(!0)},"Theme Editor")),r.a.createElement(s.a,{open:t,onClose:()=>n(!1),router:e}))}},,,,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var a=n(0),r=n.n(a),i=n(1),o=n(152);function s(){return r.a.createElement(r.a.Fragment,null,r.a.createElement(i.a,{sx:{my:1}},"If you've created a theme that you believe should be added in game's theme browser, feel free to"," ",r.a.createElement(o.a,{href:"https://github.com/danielyxie/bitburner/tree/dev/src/Themes/README.md",target:"_blank"},"create a pull request"),"."),r.a.createElement(i.a,{sx:{my:1}},"Head over to the"," ",r.a.createElement(o.a,{href:"https://discord.com/channels/415207508303544321/921991895230611466",target:"_blank"},"theme-sharing")," ","discord channel for more."))}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var a=n(0),r=n.n(a),i=n(350),o=n(255),s=n(8),l=n(19),c=n(646),f=n.n(c),u=n(303);function m({color:e="primary"}){const[t,n]=Object(a.useState)(!1);return r.a.createElement(r.a.Fragment,null,r.a.createElement(l.a,{title:"This will permanently delete your local save game. Did you export it before?"},r.a.createElement(s.a,{startIcon:r.a.createElement(f.a,null),color:e,onClick:()=>n(!0)},"Delete Save")),r.a.createElement(o.a,{onConfirm:()=>{n(!1),Object(i.a)().then(()=>{Object(u.b)(),setTimeout(()=>location.reload(),1e3)}).catch(e=>console.error("Could not delete game: "+e))},open:t,onClose:()=>n(!1),confirmationText:"Really delete your game? (It's permanent!)"}))}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var a=n(0),r=n.n(a),i=n(255),o=n(8),s=n(19),l=n(1299),c=n.n(l);function f({color:e="primary",noConfirmation:t=!1,onTriggered:n}){const[l,f]=Object(a.useState)(!1);return r.a.createElement(r.a.Fragment,null,r.a.createElement(s.a,{title:"Perform a soft reset. Resets everything as if you had just purchased an Augmentation."},r.a.createElement(o.a,{startIcon:r.a.createElement(c.a,null),color:e,onClick:function(){t?n():f(!0)}},"Soft Reset")),r.a.createElement(i.a,{onConfirm:n,open:l,onClose:()=>f(!1),confirmationText:"This will perform the same action as installing Augmentations, are you sure?"}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return S}));var a=n(1849),r=n(704),i=n(1491),o=n(1496),s=n(1497),l=n(19),c=n(1),f=n(252),u=n(43),m=n(18),h=n(8),d=n(0),p=n.n(d),g=n(5),y=n(6),b=n(11),E=n(73),v=n(1305);const k=e=>{const t=e.aug.prereqs.filter(t=>e.player.hasAugmentation(t)),n=e.aug.prereqs.length>0&&t.length===e.aug.prereqs.length;return p.a.createElement(l.a,{title:p.a.createElement(p.a.Fragment,null,p.a.createElement(c.a,{sx:{color:g.a.theme.money}},"This Augmentation has the following pre-requisite(s):"),e.aug.prereqs.map(t=>p.a.createElement(_,{fulfilled:e.player.hasAugmentation(t),value:t,color:g.a.theme.money,key:t})))},p.a.createElement(c.a,{sx:{ml:1,fontSize:"0.9rem",display:"flex",alignItems:"center",color:n?g.a.theme.successlight:g.a.theme.error,gridArea:"prereqs"}},n?p.a.createElement(p.a.Fragment,null,p.a.createElement(a.a,{fontSize:"small",sx:{mr:1}}),"Pre-requisites Owned"):p.a.createElement(p.a.Fragment,null,p.a.createElement(r.a,{fontSize:"small",sx:{mr:1}}),"Missing ",e.aug.prereqs.length-t.length," pre-requisite(s)")))},w=e=>p.a.createElement(l.a,{title:p.a.createElement(p.a.Fragment,null,p.a.createElement(c.a,{sx:{color:g.a.theme.money}},"This Augmentation can only be acquired from the following source(s):"),p.a.createElement("ul",null,p.a.createElement(c.a,{sx:{color:g.a.theme.money}},p.a.createElement("li",null,p.a.createElement("b",null,e.aug.factions[0])," faction"),e.player.isAwareOfGang()&&!e.aug.isSpecial&&p.a.createElement("li",null,"Certain ",p.a.createElement("b",null,"gangs")),e.player.canAccessGrafting()&&!e.aug.isSpecial&&e.aug.name!==b.a.TheRedPill&&p.a.createElement("li",null,p.a.createElement("b",null,"Grafting")))))},p.a.createElement(i.a,{fontSize:"small",sx:{ml:1,color:g.a.theme.money,transform:"rotate(180deg)",gridArea:"exclusive"}})),_=e=>p.a.createElement(c.a,{sx:{display:"flex",alignItems:"center",color:e.fulfilled?e.color:g.a.theme.error}},e.fulfilled?p.a.createElement(o.a,{sx:{mr:1}}):p.a.createElement(s.a,{sx:{mr:1}}),e.value),S=e=>p.a.createElement(f.a,{maxWidth:"lg",disableGutters:!0,sx:{mx:0,display:"grid",gridTemplateColumns:"repeat(1, 1fr)",gap:.75}},e.augNames.map(t=>p.a.createElement(C,{key:t,parent:e,augName:t,owned:!1})),e.ownedAugNames.map(t=>p.a.createElement(C,{key:t,parent:e,augName:t,owned:!0})));function C(e){const[t,n]=Object(d.useState)(!1),a=E.a[e.augName],r=a.getCost(e.parent.player),i=e.parent.sleeveAugs?a.baseCost:r.moneyCost,o=r.repCost,s="string"==typeof a.info?p.a.createElement("span",null,a.info):a.info,f=p.a.createElement(p.a.Fragment,null,s,p.a.createElement("br",null),p.a.createElement("br",null),a.stats);return p.a.createElement(u.a,{sx:{p:.5,display:"grid",gridTemplateColumns:"minmax(0, 4fr) 1.4fr",gap:1,opacity:e.owned?.75:1,minWidth:"1100px"}},p.a.createElement(p.a.Fragment,null,p.a.createElement(m.a,{sx:{display:"flex",alignItems:"center"}},p.a.createElement(h.a,{onClick:()=>e.parent.purchaseAugmentation(e.parent.player,a,e=>{n(e)}),disabled:!e.parent.canPurchase(e.parent.player,a)||e.owned,sx:{width:"48px",height:"36px",float:"left",clear:"none",mr:1}},e.owned?"Owned":"Buy"),p.a.createElement(m.a,{sx:{maxWidth:e.owned?"100%":"85%"}},p.a.createElement(m.a,{sx:{display:"grid",alignItems:"center",gridTemplateAreas:'"title exclusive prereqs"'}},p.a.createElement(l.a,{title:p.a.createElement(p.a.Fragment,null,p.a.createElement(c.a,{variant:"h5"},e.augName,e.augName===b.a.NeuroFluxGovernor&&" - Level "+a.getLevel(e.parent.player)),p.a.createElement(c.a,null,f))},p.a.createElement(c.a,{sx:{gridArea:"title",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",color:e.owned||!e.parent.canPurchase(e.parent.player,a)?g.a.theme.disabled:g.a.theme.primary}},a.name,a.name===b.a.NeuroFluxGovernor&&" - Level "+a.getLevel(e.parent.player))),1===a.factions.length&&!e.parent.sleeveAugs&&p.a.createElement(w,{player:e.parent.player,aug:a}),a.prereqs.length>0&&!e.parent.sleeveAugs&&p.a.createElement(k,{player:e.parent.player,aug:a})))),e.owned||p.a.createElement(m.a,{sx:{display:"grid",alignItems:"center",gridTemplateColumns:"1fr 1fr"}},p.a.createElement(_,{fulfilled:0===i||e.parent.player.money>i,value:y.a.formatMoney(i),color:g.a.theme.money}),void 0!==e.parent.rep&&p.a.createElement(_,{fulfilled:e.parent.rep>=o,value:y.a.formatReputation(o)+" rep",color:g.a.theme.rep})),g.a.SuppressBuyAugmentationConfirmation||p.a.createElement(v.a,{open:t,onClose:()=>n(!1),faction:e.parent.faction,aug:a})))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return y}));var a=n(0),r=n.n(a),i=n(15),o=n(1335),s=n(12),l=n(5),c=n(28),f=n(20),u=n(478),m=n(14),h=n(1),d=n(18),p=n(8);function g(e,t,n){const a=s.a.TravelCost;e.canAfford(a)&&(e.loseMoney(a,"other"),e.travel(n),Object(m.a)(r.a.createElement(r.a.Fragment,null,"You are now in ",n,"!")),t.toCity())}function y(e){const t=c.b.Player(),n=c.b.Router(),m=Object(a.useState)(!1)[1],[y,b]=Object(a.useState)(!1),[E,v]=Object(a.useState)(i.a.Sector12);function k(){m(e=>!e)}function w(e){const a=s.a.TravelCost;t.canAfford(a)&&(l.a.SuppressTravelConfirmation?g(t,n,e):(b(!0),v(e)))}return Object(a.useEffect)(()=>{const e=setInterval(k,1e3);return()=>clearInterval(e)},[]),r.a.createElement(r.a.Fragment,null,r.a.createElement(h.a,{variant:"h4"},"Travel Agency"),r.a.createElement(d.a,{mx:2},r.a.createElement(h.a,null,"From here, you can travel to any other city! A ticket costs"," ",r.a.createElement(f.a,{money:s.a.TravelCost,player:e.p}),"."),l.a.DisableASCIIArt?r.a.createElement(r.a.Fragment,null,Object.values(i.a).filter(t=>t!=e.p.city).map(e=>{if(void 0===Object.entries(i.a).find(t=>t[1]===e))throw new Error(`could not find key for city '${e}'`);return r.a.createElement(r.a.Fragment,{key:e},r.a.createElement(p.a,{onClick:()=>w(e),sx:{m:2}},r.a.createElement(h.a,null,"Travel to ",e)),r.a.createElement("br",null))})):r.a.createElement(u.a,{currentCity:e.p.city,onTravel:e=>w(e)})),r.a.createElement(o.a,{city:E,travel:()=>g(t,n,E),open:y,onClose:()=>b(!1)}))}},function(e,t,n){"use strict";n.d(t,"b",(function(){return z})),n.d(t,"a",(function(){return X}));var a=n(0),r=n.n(a),i=n(542),o=n(1343),s=n(83),l=n(14),c=n(99),f=n(259),u=n(228),m=n(535),h=n(335),d=n(6),p=n(692),g=n(352),y=n.n(g),b=n(538),E=n(5),v=n(42),k=n(113),w=n(110),_=n(125),S=n(27),C=n(8),x=n(1),L=n(152),O=n(18),M=n(620),T=n.n(M),A=n(1354),R=n.n(A),N=n(546),P=n.n(N),I=n(150),F=n(30),D=n(48),j=n(151),B=n(418),G=n(37),W=n(1346),H=n(19),U=n(75);function q(){return(q=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}let $=!1,K=[];function z(){const e=Object(b.a)({});K=function e(t){let n=[];const a=Object.keys(t);for(const r of a)"object"==typeof t[r]&&(n.push(r),n=n.concat(e(t[r]))),"function"==typeof t[r]&&n.push(r);return n}(e);const t=["heart","break","exploit","bypass","corporation","alterReality"];K=K.filter(e=>!t.includes(e)).sort()}class V{constructor(e,t,n,a,r){this.fileName=e,this.code=t,this.hostname=n,this.lastPosition=a,this.model=r}}let Y=[],J=null;function X(e){const t=Object(a.useState)(!1)[1];const n=Object(a.useRef)(null),g=Object(a.useRef)(null),b=Object(a.useRef)(null),[M,A]=Object(a.useState)(null),[N,z]=Object(a.useState)(null),[X,Q]=Object(a.useState)(""),[Z,ee]=Object(a.useState)(!1),[te,ne]=Object(a.useState)("RAM: ???"),[ae,re]=Object(a.useState)([["???",""]]),[ie,oe]=Object(a.useState)(!1),[se,le]=Object(a.useState)([]),[ce,fe]=Object(a.useState)(!1),[ue,me]=Object(a.useState)({theme:E.a.MonacoTheme,insertSpaces:E.a.MonacoInsertSpaces,fontSize:E.a.MonacoFontSize,wordWrap:E.a.MonacoWordWrap,vim:e.vim||E.a.MonacoVim}),[he,de]=Object(a.useState)(!1);Y=Y.filter(e=>null!==Object(S.d)(e.hostname)),J&&null===Object(S.d)(J.hostname)&&(J=Y[0],void 0===J&&(J=null));const[pe,ge]=Object(a.useState)({height:window.innerHeight,width:window.innerWidth});function ye(e){null!==g.current&&(e.model=g.current.editor.createModel(e.code,e.fileName.endsWith(".txt")?"plaintext":"javascript"))}Object(a.useEffect)(()=>{const e=Object(k.debounce)((function(){ge({height:window.innerHeight,width:window.innerWidth})}),250);return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[]),Object(a.useEffect)(()=>{null!==J&&Ee(J.code)},[]),Object(a.useEffect)(()=>{function t(t){E.a.DisableHotkeys||("KeyB"==t.code&&(t.ctrlKey||t.metaKey)&&(t.preventDefault(),e.router.toTerminal()),"KeyS"==t.code&&(t.ctrlKey||t.metaKey)&&(t.preventDefault(),t.stopPropagation(),ke()))}return document.addEventListener("keydown",t),()=>document.removeEventListener("keydown",t)}),Object(a.useEffect)(()=>{if(ue.vim&&N&&!M)try{window.require(["monaco-vim"],(function(t){A(t.initVimMode(N,b.current)),t.VimMode.Vim.defineEx("write","w",(function(){ke()})),t.VimMode.Vim.defineEx("quit","q",(function(){e.router.toTerminal()})),t.VimMode.Vim.defineEx("wqriteandquit","wq",(function(){ke(),e.router.toTerminal()})),t.VimMode.Vim.defineAction("nextTabs",(function(e,t){var n;const a=null!==(n=t.repeat)&&void 0!==n?n:1,r=we();if(void 0!==r){_e((r+a)%Y.length)}})),t.VimMode.Vim.defineAction("prevTabs",(function(e,t){var n;const a=null!==(n=t.repeat)&&void 0!==n?n:1,r=we();if(void 0!==r){let e=r-a;for(;e<0;)e+=Y.length;_e(e)}})),t.VimMode.Vim.mapCommand("gt","action","nextTabs",{},{context:"normal"}),t.VimMode.Vim.mapCommand("gT","action","prevTabs",{},{context:"normal"}),N.focus()}))}catch{}else ue.vim||(null==M||M.dispose(),A(null));return()=>{null==M||M.dispose()}},[ue,n,N,M]);const be=Object(a.useMemo)(()=>Object(k.debounce)((e,t)=>{ne(e),re(t),oe(!1)},300),[]);async function Ee(t){if(null!=J&&J.fileName.endsWith(".txt"))return void be("N/A",[["N/A",""]]);oe(!0);const n=t+"",a=await Object(m.a)(e.player,n,e.player.getCurrentServer().scripts);if(!(a.cost>0)){switch(a.cost){case h.a.ImportError:be("RAM: Import Error",[["Import Error",""]]);break;case h.a.URLImportError:be("RAM: HTTP Import Error",[["HTTP Import Error",""]]);break;case h.a.SyntaxError:default:be("RAM: Syntax Error",[["Syntax Error",""]])}return new Promise(()=>{})}{var r,i;const e=null!==(r=null===(i=a.entries)||void 0===i?void 0:i.sort((e,t)=>t.cost-e.cost))&&void 0!==r?r:[],t=[];for(const n of e)t.push([`${n.name} (${n.type})`,d.a.formatRAM(n.cost)]);be("RAM: "+d.a.formatRAM(a.cost),t)}}function ve(t){const n=Object(S.d)(t.hostname);if(null===n)throw new Error("Server should not be null but it is.");if(Object(c.a)(t.fileName)){for(let a=0;a<n.scripts.length;a++)if(t.fileName==n.scripts[a].filename)return n.scripts[a].saveScript(e.player,t.fileName,t.code,e.player.currentServer,n.scripts),E.a.SaveGameOnFileSave&&w.c.saveGame(),void e.router.toTerminal();const a=new f.a;a.saveScript(e.player,t.fileName,t.code,e.player.currentServer,n.scripts),n.scripts.push(a)}else{if(!t.fileName.endsWith(".txt"))return void Object(l.a)("Invalid filename. Must be either a script (.script, .js, or .ns) or a text file (.txt)");{for(let a=0;a<n.textFiles.length;++a)if(n.textFiles[a].fn===t.fileName)return n.textFiles[a].write(t.code),E.a.SaveGameOnFileSave&&w.c.saveGame(),void e.router.toTerminal();const a=new u.a(t.fileName,t.code);n.textFiles.push(a)}}E.a.SaveGameOnFileSave&&w.c.saveGame(),e.router.toTerminal()}function ke(){if(null===J)return void console.error("currentScript is null when it shouldn't be. Unable to save script");if(v.a.isRunning&&v.a.currStep===v.f.TerminalTypeScript){if("n00dles.script"!==J.fileName&&"n00dles.js"!==J.fileName)return void Object(l.a)("Don't change the script name for now.");const e=J.code.replace(/\s/g,""),t="while(true){hack('n00dles');}",n="exportasyncfunctionmain(ns){while(true){awaitns.hack('n00dles');}}";return-1==e.indexOf(t)&&-1==e.indexOf(n)?void Object(l.a)("Please copy and paste the code from the tutorial!"):(ve(J),void Object(v.c)())}if(""==J.fileName)return void Object(l.a)("You must specify a filename!");if(!Object(s.j)(J.fileName))return void Object(l.a)("Script filename can contain only alphanumerics, hyphens, and underscores, and must end with an extension.");const t=Object(S.d)(J.hostname);if(null===t)throw new Error("Server should not be null but it is.");if(Object(c.a)(J.fileName)){for(let n=0;n<t.scripts.length;n++)if(J.fileName==t.scripts[n].filename)return t.scripts[n].saveScript(e.player,J.fileName,J.code,e.player.currentServer,t.scripts),void(E.a.SaveGameOnFileSave&&w.c.saveGame());const n=new f.a;n.saveScript(e.player,J.fileName,J.code,e.player.currentServer,t.scripts),t.scripts.push(n)}else{if(!J.fileName.endsWith(".txt"))return void Object(l.a)("Invalid filename. Must be either a script (.script, .js, or .ns) or a text file (.txt)");{for(let e=0;e<t.textFiles.length;++e)if(t.textFiles[e].fn===J.fileName)return t.textFiles[e].write(J.code),void(E.a.SaveGameOnFileSave&&w.c.saveGame());const e=new u.a(J.fileName,J.code);t.textFiles.push(e)}}E.a.SaveGameOnFileSave&&w.c.saveGame()}function we(){if(null!==J)return Y.findIndex(e=>null!==J&&e.fileName===J.fileName&&e.hostname===J.hostname)}function _e(e){if(null!==J){const e=we();void 0!==e&&(Y[e]=J)}J={...Y[e]},null!==n.current&&null!==Y[e]&&((void 0===Y[e].model||Y[e].model.isDisposed())&&ye(Y[e]),n.current.setModel(Y[e].model),n.current.setPosition(Y[e].lastPosition),n.current.revealLineInCenter(Y[e].lastPosition.lineNumber),Ee(Y[e].code),n.current.focus())}function Se(a){const r=Y[a],i=Y.findIndex(e=>e.fileName===r.fileName&&e.hostname===r.hostname);let o="";-1!==i&&(o=Y[i].code);const s=Object(S.d)(r.hostname);if(null===s)throw new Error(`Server '${r.hostname}' should not be null, but it is.`);const l=s.scripts.findIndex(e=>e.filename===r.fileName);if(-1!==l&&o===s.scripts[l].code||B.a.emit({txt:`Do you want to save changes to ${r.fileName} on ${r.hostname}?`,resolve:e=>{e&&(r.code=o,ve(r))}}),Y.length>1){Y=Y.filter((e,t)=>t!==a);let e=-1;void 0===Y[a+e]&&(e=1,void 0===Y[a+e]&&(e=0)),J=Y[a+e],null!==n.current&&((void 0===Y[a+e].model||null===Y[a+e].model||Y[a+e].model.isDisposed())&&ye(Y[a+e]),n.current.setModel(Y[a+e].model),n.current.setPosition(Y[a+e].lastPosition),n.current.revealLineInCenter(Y[a+e].lastPosition.lineNumber),n.current.focus()),t(e=>!e)}else Y=[],J=null,e.router.toTerminal()}function Ce(e){var t;const n=Y[e],a=Object(S.d)(n.hostname);if(null===a)throw new Error(`Server '${n.hostname}' should not be null, but it is.`);const r=a.scripts.find(e=>e.filename===n.fileName);return null!==(t=null==r?void 0:r.code)&&void 0!==t?t:null}function xe(e){Q(e.target.value)}function Le(){Q(""),ee(!Z)}const Oe=Object.values(Y).filter(e=>e.hostname.includes(X)||e.fileName.includes(X)),Me=pe.height-(130+(ue.vim?34:0)),Te=Oe.length?1640/Oe.length-5:0,Ae=Te-50;return r.a.createElement(r.a.Fragment,null,r.a.createElement("div",{style:{display:null!==J?"block":"none",height:"100%",width:"100%"}},r.a.createElement(p.a,{onDragEnd:function(e){if(!e.destination)return;const t=function(e,t,n){const a=Array.from(e),[r]=a.splice(t,1);return a.splice(n,0,r),a}(Y,e.source.index,e.destination.index);Y=t}},r.a.createElement(p.c,{droppableId:"tabs",direction:"horizontal"},(e,t)=>r.a.createElement(O.a,q({maxWidth:"1640px",display:"flex",flexDirection:"row",alignItems:"center",whiteSpace:"nowrap",ref:e.innerRef},e.droppableProps,{style:{backgroundColor:t.isDraggingOver?E.a.theme.backgroundsecondary:E.a.theme.backgroundprimary,overflowX:"scroll"}}),r.a.createElement(H.a,{title:"Search Open Scripts"},Z?r.a.createElement(U.a,{value:X,onChange:xe,autoFocus:!0,InputProps:{startAdornment:r.a.createElement(y.a,null),spellCheck:!1,endAdornment:r.a.createElement(P.a,{onClick:Le})}}):r.a.createElement(C.a,{onClick:Le},r.a.createElement(y.a,null))),Oe.map(({fileName:e,hostname:t},a)=>{var i,o;const s="home"!==t,l=(null===(i=J)||void 0===i?void 0:i.fileName)===Oe[a].fileName&&(null===(o=J)||void 0===o?void 0:o.hostname)===Oe[a].hostname?{background:E.a.theme.button,borderColor:E.a.theme.button,color:E.a.theme.primary}:{background:E.a.theme.backgroundsecondary,borderColor:E.a.theme.backgroundsecondary,color:E.a.theme.secondary};s&&(l.color=E.a.theme.info);const c={maxWidth:"25px",minWidth:"25px",minHeight:"38.5px",maxHeight:"38.5px",...l},u=`${t}:~/${e} ${function(e){const t=Y[e],n=Ce(e);return null===n||n!==f.a.formatCode(t.code)?" *":""}(a)}`;return r.a.createElement(p.b,{key:e+t,draggableId:e+t,index:a,disableInteractiveElementBlocking:!0},e=>r.a.createElement("div",q({ref:e.innerRef},e.draggableProps,e.dragHandleProps,{style:{...e.draggableProps.style,maxWidth:Te+"px",marginRight:"5px",flexShrink:0,border:"1px solid "+E.a.theme.well}}),r.a.createElement(H.a,{title:u},r.a.createElement(C.a,{onClick:()=>_e(a),onMouseDown:e=>{e.preventDefault(),1===e.button&&Se(a)},style:{maxWidth:Ae+"px",minHeight:"38.5px",overflow:"hidden",...l}},r.a.createElement("span",{style:{overflow:"hidden",direction:"rtl",textOverflow:"ellipsis"}},u))),r.a.createElement(H.a,{title:"Overwrite editor content with saved file content"},r.a.createElement(C.a,{onClick:()=>function(e){const t=Y[e],a=Ce(e);null!==a&&t.code!==a&&B.a.emit({txt:"Do you want to overwrite the current editor content with the contents of "+t.fileName+" on the server? This cannot be undone.",resolve:r=>{r&&(t.code=a,_e(e),null!==n.current&&null!==t&&((void 0===t.model||t.model.isDisposed())&&ye(t),n.current.setModel(t.model),n.current.setValue(t.code),Ee(t.code),n.current.focus()))}})}(a),style:c},r.a.createElement(R.a,{fontSize:"small"}))),r.a.createElement(C.a,{onClick:()=>Se(a),style:c},r.a.createElement(P.a,{fontSize:"small"}))))}),e.placeholder))),r.a.createElement("div",{style:{paddingBottom:"5px"}}),r.a.createElement(i.a,{beforeMount:function(e){if($)return;$=!0,e.languages.registerCompletionItemProvider("javascript",{provideCompletionItems:()=>{const t=[];for(const n of K)t.push({label:n,kind:e.languages.CompletionItemKind.Function,insertText:n,insertTextRules:e.languages.CompletionItemInsertTextRule.InsertAsSnippet});return{suggestions:t}}}),async function(){const t=await e.languages.getLanguages().find(e=>"javascript"===e.id).loader();t.language.tokenizer.root.unshift([new RegExp("\\bns\\b"),{token:"ns"}]);for(const e of K)t.language.tokenizer.root.unshift([new RegExp(`\\b${e}\\b`),{token:"netscriptfunction"}]);["let","const","var","function"].forEach(e=>t.language.tokenizer.root.unshift([new RegExp(`\\b${e}\\b`),{token:"otherkeywords"}])),["true","false","null","undefined"].forEach(e=>t.language.tokenizer.root.unshift([new RegExp(`\\b${e}\\b`),{token:"otherkeyvars"}])),t.language.tokenizer.root.unshift([new RegExp("\\bthis\\b"),{token:"this"}])}();const t=(W.a+"").replace(/export /g,"");e.languages.typescript.javascriptDefaults.addExtraLib(t,"netscript.d.ts"),e.languages.typescript.typescriptDefaults.addExtraLib(t,"netscript.d.ts"),Object(_.b)(e),Object(_.d)(E.a.EditorTheme),e.editor.defineTheme("customTheme",Object(_.c)(E.a.EditorTheme))},onMount:function(t,a){if(z(t),n.current=t,g.current=a,null!==n.current&&null!==g.current){if(!e.files&&null!==J)return ye(J),n.current.setModel(J.model),n.current.setPosition(J.lastPosition),n.current.revealLineInCenter(J.lastPosition.lineNumber),Ee(J.code),void n.current.focus();if(e.files){const t=Object.entries(e.files);if(!t.length)return void n.current.focus();for(const[a,r]of t){const t=Y.find(t=>t.fileName===a&&t.hostname===e.hostname);if(t)(void 0===t.model||null===t.model||t.model.isDisposed())&&ye(t),J=t,n.current.setModel(t.model),n.current.setPosition(t.lastPosition),n.current.revealLineInCenter(t.lastPosition.lineNumber),Ee(t.code);else{const t=new V(a,r,e.hostname,new g.current.Position(0,0),g.current.editor.createModel(r,a.endsWith(".txt")?"plaintext":"javascript"));Y.push(t),J={...t},n.current.setModel(t.model),Ee(t.code)}}}n.current.focus()}},loading:r.a.createElement(x.a,null,"Loading script editor!"),height:Me+"px",defaultLanguage:"javascript",defaultValue:"",onChange:function(e){if(void 0===e)return;if(Ee(e),null===n.current)return;const t=n.current.getPosition();if(null!==t){if(null!==J){J={...J,code:e,lastPosition:t};const n=Y.findIndex(e=>null!==J&&e.fileName===J.fileName&&e.hostname===J.hostname),a=[...Y],r=J;r.code=e,a[n]=r,Y=[...a]}try{!function(e){if(null===n.current||null===J)return;if(!J.fileName.endsWith(".ns")&&!J.fileName.endsWith(".js"))return;const t=Object(m.b)(e);if(-1!==t){const e=n.current.deltaDecorations(se,[{range:{startLineNumber:t,startColumn:1,endLineNumber:t,endColumn:10},options:{isWholeLine:!0,glyphMarginClassName:"myGlyphMarginClass",glyphMarginHoverMessage:{value:"Possible infinite loop, await something."}}}]);le(e)}else{const e=n.current.deltaDecorations(se,[]);le(e)}}(e)}catch(e){}}},theme:ue.theme,options:{...ue,glyphMargin:!0}}),r.a.createElement(O.a,{ref:b,className:"monaco-editor",display:"flex",flexDirection:"row",sx:{p:1},alignItems:"center"}),r.a.createElement(O.a,{display:"flex",flexDirection:"row",sx:{m:1},alignItems:"center"},r.a.createElement(C.a,{startIcon:r.a.createElement(T.a,null),onClick:()=>fe(!0),sx:{mr:1}},"Options"),r.a.createElement(C.a,{onClick:function(){null!==n.current&&n.current.getAction("editor.action.formatDocument").run()}},"Beautify"),r.a.createElement(C.a,{color:ie?"secondary":"primary",sx:{mx:1},onClick:()=>{de(!0)}},te),r.a.createElement(C.a,{onClick:ke},"Save (Ctrl/Cmd + s)"),r.a.createElement(C.a,{sx:{mx:1},onClick:e.router.toTerminal},"Terminal (Ctrl/Cmd + b)"),r.a.createElement(x.a,null," ",r.a.createElement("strong",null,"Documentation:")," ",r.a.createElement(L.a,{target:"_blank",href:"https://bitburner.readthedocs.io/en/latest/index.html"},"Basic")," | ",r.a.createElement(L.a,{target:"_blank",href:"https://github.com/danielyxie/bitburner/blob/dev/markdown/bitburner.ns.md"},"Full"))),r.a.createElement(o.a,{open:ce,onClose:()=>{var e;Object(_.d)(E.a.EditorTheme),null===(e=g.current)||void 0===e||e.editor.defineTheme("customTheme",Object(_.c)(E.a.EditorTheme)),fe(!1)},options:{theme:E.a.MonacoTheme,insertSpaces:E.a.MonacoInsertSpaces,fontSize:E.a.MonacoFontSize,wordWrap:E.a.MonacoWordWrap,vim:E.a.MonacoVim},save:e=>{var t;Object(_.d)(E.a.EditorTheme),null===(t=g.current)||void 0===t||t.editor.defineTheme("customTheme",Object(_.c)(E.a.EditorTheme)),me(e),E.a.MonacoTheme=e.theme,E.a.MonacoInsertSpaces=e.insertSpaces,E.a.MonacoFontSize=e.fontSize,E.a.MonacoWordWrap=e.wordWrap,E.a.MonacoVim=e.vim}}),r.a.createElement(G.a,{open:he,onClose:()=>de(!1)},r.a.createElement(I.a,null,r.a.createElement(j.a,null,ae.map(([e,t])=>r.a.createElement(r.a.Fragment,{key:e+t},r.a.createElement(D.a,null,r.a.createElement(F.a,{sx:{color:E.a.theme.primary}},e),r.a.createElement(F.a,{align:"right",sx:{color:E.a.theme.primary}},t)))))))),r.a.createElement("div",{style:{display:null!==J?"none":"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},r.a.createElement("span",{style:{color:E.a.theme.primary,fontSize:"20px",textAlign:"center"}},r.a.createElement(x.a,{variant:"h4"},"No open files"),r.a.createElement(x.a,{variant:"h5"},"Use ",r.a.createElement("code",null,"nano FILENAME")," in",r.a.createElement("br",null),"the terminal to open files"))))}},,,,function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return i}));var a=n(83);function r(e,t){const n=[];if(!Object(a.i)(t))return n;let r=t;function i(e){if("/"===r&&Object(a.h)(e)){const t=Object(a.g)(e);"/"===t||n.includes(t)||n.push(t)}else if(e.startsWith(r)){const t=e.slice(r.length),i=Object(a.g)(t);"/"===i||n.includes(i)||n.push(i)}}r.endsWith("/")||(r+="/");for(const t of e.scripts)i(t.filename);for(const t of e.textFiles)i(t.fn);return n}function i(e,t){const n=t+("/"===t.slice(-1)?"":"/");return[...e.scripts.map(e=>e.filename),...e.textFiles.map(e=>e.fn)].some(e=>e.startsWith(n))}},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return compile})),__webpack_require__.d(__webpack_exports__,"b",(function(){return executeJSScript}));var acorn_walk__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(309),acorn__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(260),_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(111),_Script_ScriptUrl__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(1359),_Terminal_DirectoryHelpers__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(83);function makeScriptBlob(e){return new Blob([e],{type:"text/javascript"})}async function compile(player,script,scripts){if(!shouldCompile(script,scripts))return;await script.updateRamUsage(player,scripts);const uurls=_getScriptUrls(script,scripts,[]),url=uurls[uurls.length-1].url;script.url&&script.url!==url&&URL.revokeObjectURL(script.url),script.dependencies.length>0&&script.dependencies.forEach(e=>URL.revokeObjectURL(e.url)),script.url=uurls[uurls.length-1].url,script.module=new Promise(resolve=>resolve(eval("import(uurls[uurls.length - 1].url)"))),script.dependencies=uurls}async function executeJSScript(e,t=[],n){const a=n.getScript();if(null===a)throw new Error("script is null");await compile(e,a,t),n.ramUsage=a.ramUsage;const r=await a.module,i=n.env.vars;if(!r.main)throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_2__.b)(n,a.filename+" cannot be run because it does not have a main function.");return r.main(i)}function isDependencyOutOfDate(e,t,n){const a=t.find(t=>t.filename==e);if(!a)return!0;return a.moduleSequenceNumber>n}function shouldCompile(e,t){return""===e.module||e.dependencies.some(n=>isDependencyOutOfDate(n.filename,t,e.moduleSequenceNumber))}function _getScriptUrls(e,t,n){const a=[];for(const t of n)e.dependents.some(e=>e.server===t.server&&e.filename==t.filename)||e.dependents.push({server:t.server,filename:t.filename});n.push(e);try{const r=Object(acorn__WEBPACK_IMPORTED_MODULE_1__.a)(e.code,{sourceType:"module",ecmaVersion:"latest",ranges:!0}),i=[];acorn_walk__WEBPACK_IMPORTED_MODULE_0__.b(r,{ImportDeclaration(e){i.push({filename:e.source.value,start:e.source.range[0]+1,end:e.source.range[1]-1})},ExportNamedDeclaration(e){e.source&&i.push({filename:e.source.value,start:e.source.range[0]+1,end:e.source.range[1]-1})},ExportAllDeclaration(e){e.source&&i.push({filename:e.source.value,start:e.source.range[0]+1,end:e.source.range[1]-1})}}),i.sort((e,t)=>t.start-e.start);let o=e.code;for(const e of i){const r=e.filename.startsWith("./")?e.filename.substring(2):e.filename,i=t.filter(e=>Object(_Terminal_DirectoryHelpers__WEBPACK_IMPORTED_MODULE_4__.b)(e.filename,r));if(0===i.length)continue;const[s]=i,l=_getScriptUrls(s,t,n);a.push(...l);const c=l[l.length-1].url;o=o.substring(0,e.start)+c+o.substring(e.end)}o+=`\n//# sourceURL=${e.server}/${e.filename}`;const s=URL.createObjectURL(makeScriptBlob(o));return a.push(new _Script_ScriptUrl__WEBPACK_IMPORTED_MODULE_3__.a(e.filename,s,e.moduleSequenceNumber)),a}catch(e){for(const e of a)URL.revokeObjectURL(e.url);throw e}finally{n.pop()}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var a=n(657),r=n(325);function i(e){return()=>t=>{t=Object(a.a)(t);const n={};for(const e of t){let t=String;"number"==typeof e[1]?t=Number:"boolean"==typeof e[1]?t=Boolean:Array.isArray(e[1])&&(t=[String]);const a=e[0].length>1?2:1;n["-".repeat(a)+e[0]]=t}const i=r(n,{argv:e});for(const e of t)i.hasOwnProperty("--"+e[0])&&i.hasOwnProperty("-"+e[0])||(i[e[0]]=e[1]);for(const e of Object.keys(i)){if(!e.startsWith("-"))continue;const t=i[e];delete i[e];const n=2===e.length?1:2;i[e.slice(n)]=t}return i}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const a=new(n(605).a)("",()=>{});function r(e){if(null==e)return null;if(!(e.hasOwnProperty("properties")&&e.hasOwnProperty("getter")&&e.hasOwnProperty("setter")&&e.hasOwnProperty("proto")))return e;let t;if(e.hasOwnProperty("class")&&"Array"===e.class){t=[];const n=a.getProperty(e,"length");for(let i=0;i<n;i++)a.hasProperty(e,i)&&(t[i]=r(a.getProperty(e,i)))}else{t={};for(const n of Object.keys(e.properties)){const a=e.properties[n];t[n]=r(a)}}return t}},function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var a=n(0),r=n(127),i=n(18),o=n(112),s=n(801),l=n.n(s),c=n(803),f=n.n(c),u=n(802),m=n.n(u),h=n(357),d=n.n(h);function p(e){const t=Object(r.a)(),{count:n,page:s,rowsPerPage:c,onPageChange:u}=e;return a.createElement(i.a,{sx:{flexShrink:0,ml:2.5}},a.createElement(o.a,{onClick:e=>{u(e,0)},disabled:0===s},"rtl"===t.direction?a.createElement(d.a,null):a.createElement(l.a,null)),a.createElement(o.a,{onClick:e=>{u(e,s-1)},disabled:0===s},"rtl"===t.direction?a.createElement(m.a,null):a.createElement(f.a,null)),a.createElement(o.a,{onClick:e=>{u(e,s+1)},disabled:s>=Math.ceil(n/c)-1},"rtl"===t.direction?a.createElement(f.a,null):a.createElement(m.a,null)),a.createElement(o.a,{onClick:e=>{u(e,Math.max(0,Math.ceil(n/c)-1))},disabled:s>=Math.ceil(n/c)-1},"rtl"===t.direction?a.createElement(l.a,null):a.createElement(d.a,null)))}},function(e,t,n){"use strict";n.d(t,"b",(function(){return _})),n.d(t,"a",(function(){return S}));var a=n(211),r=n.n(a),i=n(80),o=n.n(i),s=n(18),l=n(43),c=n(363),f=n(114),u=n(1),m=n(280),h=n(150),d=n(151),p=n(113),g=n(0),y=n.n(g),b=n(87),E=n(5),v=n(28),k=n(76),w=n(153);function _({n:e,level:t}){const[n,a]=y.a.useState(!1);return 1===e?y.a.createElement(y.a.Fragment,null):y.a.createElement(s.a,{component:l.a,sx:{mt:1,p:1}},y.a.createElement(c.a,{disableGutters:!0,onClick:()=>a(e=>!e)},y.a.createElement(f.a,{primary:y.a.createElement(u.a,{variant:"h6"},"Bitnode Multipliers")}),n?y.a.createElement(r.a,{color:"primary"}):y.a.createElement(o.a,{color:"primary"})),y.a.createElement(m.a,{in:n},y.a.createElement(S,{n:e,level:t})))}const S=({n:e,level:t})=>{const n=v.b.Player(),a=12===e?1/0:3,r=Object(w.c)(e,null!=t?t:Math.min(n.sourceFileLvl(e)+1,a));return y.a.createElement(s.a,{sx:{columnCount:2,columnGap:1,mb:-2}},y.a.createElement(x,{n:e,mults:r}),y.a.createElement(R,{n:e,mults:r}),y.a.createElement(T,{n:e,mults:r}),y.a.createElement(L,{n:e,mults:r}),y.a.createElement(N,{n:e,mults:r}),y.a.createElement(P,{n:e,mults:r}),y.a.createElement(M,{n:e,mults:r}),y.a.createElement(A,{n:e,mults:r}),y.a.createElement(I,{n:e,mults:r}),y.a.createElement(O,{n:e,mults:r}),y.a.createElement(j,{n:e,mults:r}),y.a.createElement(B,{n:e,mults:r}),y.a.createElement(F,{n:e,mults:r}),y.a.createElement(D,{n:e,mults:r}))},C=e=>{const t=Object.entries(e.rowData).filter(([t,n])=>e.mults[t]!==w.b[t]).map(([t,n])=>{var a,r;return y.a.createElement(k.a,{key:Object(p.uniqueId)(),name:n.name,data:{content:null!==(a=n.content)&&void 0!==a?a:(100*e.mults[t]).toFixed(3)+"%"},color:null!==(r=n.color)&&void 0!==r?r:E.a.theme.primary})});return t.length>0?y.a.createElement("span",{style:{display:"inline-block",width:"100%",marginBottom:"16px"}},y.a.createElement(u.a,{variant:"h6"},e.sectionName),y.a.createElement(h.a,null,y.a.createElement(d.a,null,t))):y.a.createElement(y.a.Fragment,null)};function x({mults:e}){const t={WorldDaemonDifficulty:{name:b.a.WorldDaemon+" Difficulty"},DaedalusAugsRequirement:{name:"Daedalus Augs Requirement",content:String(e.DaedalusAugsRequirement)},HacknetNodeMoney:{name:"Hacknet Production"},CodingContractMoney:{name:"Coding Contract Reward"},ClassGymExpGain:{name:"Class/Gym Exp"}};return y.a.createElement(C,{sectionName:"General",rowData:t,mults:e})}function L({mults:e}){const t={AugmentationMoneyCost:{name:"Money Cost"},AugmentationRepCost:{name:"Reputation Cost",color:E.a.theme.rep}};return y.a.createElement(C,{sectionName:"Augmentations",rowData:t,mults:e})}function O({mults:e}){const t={CompanyWorkMoney:{name:"Work Money",color:E.a.theme.money},CompanyWorkExpGain:{name:"Work Exp"}};return y.a.createElement(C,{sectionName:"Company",rowData:t,mults:e})}function M({mults:e}){return y.a.createElement(C,{sectionName:"Stock Market",rowData:{FourSigmaMarketDataCost:{name:"Market Data Cost"},FourSigmaMarketDataApiCost:{name:"Market Data API Cost"}},mults:e})}function T({mults:e}){const t={RepToDonateToFaction:{name:"Favor to Donate"},FactionWorkRepGain:{name:"Work Reputation",color:E.a.theme.rep},FactionWorkExpGain:{name:"Work Exp"},FactionPassiveRepGain:{name:"Passive Rep",color:E.a.theme.rep}};return y.a.createElement(C,{sectionName:"Faction",rowData:t,mults:e})}function A({mults:e}){const t={CrimeExpGain:{name:"Crime Exp",color:E.a.theme.combat},CrimeMoney:{name:"Crime Money",color:E.a.theme.combat}};return y.a.createElement(C,{sectionName:"Crime",rowData:t,mults:e})}function R({mults:e}){const t={HackingLevelMultiplier:{name:"Hacking Level",color:E.a.theme.hack},StrengthLevelMultiplier:{name:"Strength Level",color:E.a.theme.combat},DefenseLevelMultiplier:{name:"Defense Level",color:E.a.theme.combat},DexterityLevelMultiplier:{name:"Dexterity Level",color:E.a.theme.combat},AgilityLevelMultiplier:{name:"Agility Level",color:E.a.theme.combat},CharismaLevelMultiplier:{name:"Charisma Level",color:E.a.theme.cha}};return y.a.createElement(C,{sectionName:"Skills",rowData:t,mults:e})}function N({mults:e}){const t={HackExpGain:{name:"Hacking Exp",color:E.a.theme.hack},ServerGrowthRate:{name:"Server Growth Rate"},ServerMaxMoney:{name:"Server Max Money"},ServerStartingMoney:{name:"Server Starting Money"},ServerStartingSecurity:{name:"Server Starting Security"},ServerWeakenRate:{name:"Server Weaken Rate"},ManualHackMoney:{name:"Manual Hack Money",color:E.a.theme.money},ScriptHackMoney:{name:"Script Hack Money",color:E.a.theme.money},ScriptHackMoneyGain:{name:"Money Gained From Hack",color:E.a.theme.money}};return y.a.createElement(C,{sectionName:"Hacking",rowData:t,mults:e})}function P({mults:e}){const t={PurchasedServerCost:{name:"Base Cost",content:e.PurchasedServerCost.toFixed(3)},PurchasedServerSoftcap:{name:"Softcap Cost",content:e.PurchasedServerSoftcap.toFixed(3)},PurchasedServerLimit:{name:"Server Limit"},PurchasedServerMaxRam:{name:"Max RAM"},HomeComputerRamCost:{name:"Home RAM Cost"}};return y.a.createElement(C,{sectionName:"Purchased Servers",rowData:t,mults:e})}function I({mults:e}){const t={InfiltrationMoney:{name:"Infiltration Money",color:E.a.theme.money},InfiltrationRep:{name:"Infiltration Reputation",color:E.a.theme.rep}};return y.a.createElement(C,{sectionName:"Infiltration",rowData:t,mults:e})}function F({mults:e}){if(!v.b.Player().canAccessBladeburner())return y.a.createElement(y.a.Fragment,null);return y.a.createElement(C,{sectionName:"Bladeburner",rowData:{BladeburnerRank:{name:"Rank Gain"},BladeburnerSkillCost:{name:"Skill Cost"}},mults:e})}function D({mults:e}){if(!v.b.Player().canAccessCotMG())return y.a.createElement(y.a.Fragment,null);const t=e.StaneksGiftExtraSize.toFixed(3),n={StnakesGiftPowerMultiplier:{name:"Gift Power"},StaneksGiftExtraSize:{name:"Base Size Modifier",content:""+(e.StaneksGiftExtraSize>w.b.StaneksGiftExtraSize?"+"+t:t)}};return y.a.createElement(C,{sectionName:"Stanek's Gift",rowData:n,mults:e})}function j({mults:e}){const t=v.b.Player();if(2!==t.bitNodeN&&t.sourceFileLvl(2)<=0)return y.a.createElement(y.a.Fragment,null);const n={GangSoftcap:{name:"Gang Softcap",content:e.GangSoftcap.toFixed(3)},GangUniqueAugs:{name:"Unique Augmentations"}};return y.a.createElement(C,{sectionName:"Gang",rowData:n,mults:e})}function B({mults:e}){if(!v.b.Player().canAccessCorporation())return y.a.createElement(y.a.Fragment,null);const t={CorporationSoftcap:{name:"Corporation Softcap",content:e.CorporationSoftcap.toFixed(3)},CorporationValuation:{name:"Valuation"}};return y.a.createElement(C,{sectionName:"Corporation",rowData:t,mults:e})}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var a=n(0),r=n(118),i=n(30);function o(){return(o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}const s=Object(r.a)({root:{border:"1px solid white",width:"5px",height:"5px"}}),l=e=>a.createElement(i.a,o({},e,{classes:{root:s().root,...e.classes}}));function c(e){return a.createElement(l,{style:{backgroundColor:e.color},onMouseEnter:e.onMouseEnter,onClick:e.onClick})}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var a=n(48),r=n(151),i=n(0),o=n(102),s=n(660);function l(e){const t=Object(o.a)(e.gift);function n(n,a){if(e.ghostGrid[n][a]&&t[n][a])return"red";if(e.ghostGrid[n][a])return"white";if(t[n][a]){const t=e.gift.fragmentAt(n,a);if(!t)throw new Error("ActiveFragment should not be null");return function(e){let t=Math.pow((e.x+1)*(e.y+1),10),n=t,a=t;const r=[];for(let e=0;e<3;e++)t=171*t%30269,n=172*n%30307,a=170*a%30323,r.push((t/30269+n/30307+a/30323)%1);return`rgb(${256*r[0]}, ${256*r[1]}, ${256*r[2]})`}(t)}return""}const l=[];for(let t=0;t<e.height;t++){const r=[];for(let a=0;a<e.width;a++)r.push(i.createElement(s.a,{key:a,onMouseEnter:()=>e.enter(a,t),onClick:()=>e.click(a,t),color:n(a,t)}));l.push(i.createElement(a.a,{key:t},r))}return i.createElement(r.a,null,l)}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var a=n(27);function r(e){if(null!=e.ramUsage&&e.ramUsage>0)return e.ramUsage;const t=Object(a.d)(e.server);if(null==t)return 0;for(let n=0;n<t.scripts.length;++n)if(t.scripts[n].filename===e.filename)return e.ramUsage=t.scripts[n].ramUsage,e.ramUsage;return 0}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var a=n(83),r=n(99),i=n(1456),o=n(113);const s="/** @param {NS} ns */\nexport async function main(ns) {\n\n}";function l(e,t,n){if(1==e.length&&(""+e[0]).includes("*")){return function(e,t,n){const r={glob:e,preGlob:"",postGlob:"",globError:"",globMatches:[],globAgainst:t};if(1!==(e=e.replace("**","*")).split("").filter(e=>"*"==e).length)return r.globError="Only a single glob is supported per command.\nexample: `nano my-dir/*.js`",r;[r.preGlob,r.postGlob]=e.split("*"),r.preGlob=Object(a.k)(r.preGlob);const i=Object(a.l)(n.cwd());return r.preGlob=`${i}/${r.preGlob}`,t.forEach(e=>{const t=e.filename.startsWith("/")?e.filename:"/"+e.filename;t.startsWith(r.preGlob)&&t.endsWith(r.postGlob)&&r.globMatches.push(t)}),r.glob=`${r.preGlob}*${r.postGlob}`,r}(""+e[0],t.getCurrentServer().scripts,n)}return null}function c(e,{terminal:t,router:n,player:a,args:c},f){if(c.length<1)return void t.error(`Incorrect usage of ${e} command. Usage: ${e} [scriptname]`);let u=c;try{const m=l(c,a,t);if(m){if(!1===Object(o.isEmpty)(m.globError))throw new Error(m.globError);u=m.globMatches}const h=u.map(n=>{const o=""+n;if(Object(r.a)(o)){const e=t.getFilepath(o),n=t.getScript(a,o),r=function(e){return e.endsWith(".ns")||e.endsWith(".js")}(o),l=null!==n?n.code:r?s:"";return l===s&&i.a.saveCursor(o,{row:3,column:5}),[e,l]}if(o.endsWith(".txt")){const e=t.getFilepath(o),n=t.getTextFile(a,o);return[e,null===n?"":n.text]}throw new Error("Invalid file. Only scripts (.script, .ns, .js), or text files (.txt) can be edited with "+e)});if(m&&0===h.length)throw new Error(`Could not find any valid files to open with ${e} using glob: \`${m.glob}\``);n.toScriptEditor(Object.fromEntries(h),f)}catch(e){t.error(""+e)}}},,,function(e,t,n){"use strict";function a(e){const t=e.toString(2).split(""),n=(a=t.length)<3||0==a?0==a?0:a+1:Math.ceil(Math.log2(2*a))<=Math.ceil(Math.log2(1+a+Math.ceil(Math.log2(a))))?Math.ceil(Math.log2(a)+1):Math.ceil(Math.log2(a));var a;const r=(e,t)=>e.reduce((e,n)=>n===t?e+1:e,0),i=["x","x",...t.splice(0,1)];for(let e=2;e<n;e++)i.push("x",...t.splice(0,Math.pow(2,e)-1));for(const e of i.reduce((function(e,t,n){return"x"==t&&e.push(n),e}),[])){const t=e+1,n=[],a=[...i];for(;void 0!==a[e];){const r=a.splice(e,2*t);n.push(...r.splice(0,t))}n.splice(0,1),i[e]=(r(n,"1")%2).toString()}return i.unshift((r(i,"1")%2).toString()),i.join("")}function r(e){const t=e.split(""),n=[],a=Math.ceil(Math.log2(e.length)),r=(e,t)=>e.reduce((e,n)=>n===t?e+1:e,0);let i=t.splice(0,1).join("");n.push(i==(r(t,"1")%2).toString());for(let e=0;e<a;e++){const a=Math.pow(2,e)-1,i=a+1,o=[...t],s=[];for(;null!=o[a];){const e=[...o.splice(a,2*i)];s.push(...e.splice(0,i))}const l=s.shift();n.push(l==(r(s,"1")%2).toString())}let o=0;for(let e=1;e<a+1;e++)o+=n[e]?0:Math.pow(2,e)/2;if(t.unshift(i),o>0&&0==n[0])t[o]="0"==t[o]?"1":"0";else if(0==n[0])i="0"==i?"1":"0";else if(1==n[0]&&n.some(e=>0==e))return 0;for(let e=a;e>=0;e--)t.splice(Math.pow(2,e),1);return t.splice(0,1),parseInt(t.join(""),2)}n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return r}))},,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var a=n(472),r=n(22);class i extends a.a{constructor(e=null){super(e)}getActionTypeSkillSuccessBonus(e){return e.skillMultipliers.successChanceContract}toJSON(){return Object(r.b)("Contract",this)}static fromJSON(e){return Object(r.a)(i,e.data)}}r.c.constructors.Contract=i},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));const a={helpList:["Use 'help [command]' to get more information about a particular Bladeburner console command."," "," automate [var] [val] [hi/low] Configure simple automation for Bladeburner tasks"," clear/cls Clear the console"," help [cmd] Display this help text, or help text for a specific command"," log [en/dis] [type] Enable or disable logging for events and actions"," skill [action] [name] Level or display info about your Bladeburner skills"," start [type] [name] Start a Bladeburner action/task"," stop Stops your current Bladeburner action/task"," "],automate:["Usage: automate [var] [val] [hi/low]"," ","A simple way to automate your Bladeburner actions. This console command can be used to automatically start an action when your stamina rises above a certain threshold, and automatically switch to another action when your stamina drops below another threshold."," "," automate status - Check the current status of your automation and get a brief description of what it'll do"," automate en - Enable the automation feature"," automate dis - Disable the automation feature"," ","There are four properties that must be set for this automation to work properly. Here is how to set them:"," "," automate stamina 100 high"," automate contract Tracking high"," automate stamina 50 low"," automate general 'Field Analysis' low"," ","Using the four console commands above will set the automation to perform Tracking contracts if your stamina is 100 or higher, and then switch to Field Analysis if your stamina drops below 50. Note that when setting the action, the name of the action is CASE-SENSITIVE. It must exactly match whatever the name is in the UI."," "],clear:["Usage: clear"," ","Clears the console"," "],cls:["Usage: cls"," ","Clears the console"," "],help:["Usage: help [command]"," ","Running 'help' with no arguments displays the general help text, which lists all console commands and a brief description of what they do. A command can be specified to get more specific help text about that particular command. For example:"," "," help automate"," ","will display specific information about using the automate console command"," "],log:["Usage: log [en/dis] [type]"," ","Enable or disable logging. By default, the results of completing actions such as contracts/operations are logged in the console. There are also random events that are logged in the console as well. The five categories of things that get logged are:"," ","[general, contracts, ops, blackops, events]"," ","The logging for these categories can be enabled or disabled like so:"," "," log dis contracts - Disables logging that occurs when contracts are completed"," log en contracts - Enables logging that occurs when contracts are completed"," log dis events - Disables logging for Bladeburner random events"," ","Logging can be universally enabled/disabled using the 'all' keyword:"," "," log dis all"," log en all"," "],skill:["Usage: skill [action] [name]"," ","Level or display information about your skills."," ","To display information about all of your skills and your multipliers, use:"," "," skill list"," ","To display information about a specific skill, specify the name of the skill afterwards. Note that the name of the skill is case-sensitive. Enter it exactly as seen in the UI. If the name of the skill has whitespace, enclose the name of the skill in double quotation marks:"," "," skill list Reaper"," skill list 'Digital Observer'"," ","This console command can also be used to level up skills:"," "," skill level [skill name]"," "],start:["Usage: start [type] [name]"," ","Start an action. An action is specified by its type and its name. The name is case-sensitive. It must appear exactly as it does in the UI. If the name of the action has whitespace, enclose it in double quotation marks. Valid action types include:"," ","[general, contract, op, blackop]"," ","Examples:"," "," start contract Tracking"," start op 'Undercover Operation'"," "],stop:["Usage: stop"," ","Stop your current action and go idle."," "]}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return s}));var a=n(289),r=n(6);function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class o{constructor(e={cost:0,text:""}){if(i(this,"children",[]),i(this,"cost",0),i(this,"researched",!1),i(this,"parent",null),i(this,"text",""),null==a.a[e.text])throw new Error("Invalid Research name used when constructing ResearchTree Node: "+e.text);this.text=e.text,this.cost=e.cost,e.children&&e.children.length>0&&(this.children=e.children),null!=e.parent&&(this.parent=e.parent)}addChild(e){this.children.push(e),e.parent=this}createTreantMarkup(){const e=[];for(let t=0;t<this.children.length;++t)e.push(this.children[t].createTreantMarkup());let t="tooltip";this.researched?t+=" researched":this.parent&&!1===this.parent.researched?t+=" locked":t+=" unlocked";const n=a.a[this.text];return{children:e,HTMLclass:t,innerHTML:`<div id="${this.text.replace(/\s/g,"")}-corp-research-click-listener">${this.text}<br>${r.a.format(this.cost,"0,0")} Scientific Research<span class="tooltiptext">`+n.desc+"</span></div>",text:{name:this.text}}}findNode(e){if(this.text===e)return this;let t=null;for(let n=0;n<this.children.length;++n)if(t=this.children[n].findNode(e),null!=t)return t;return null}setParent(e){this.parent=e}}class s{constructor(){i(this,"researched",{}),i(this,"root",null)}createTreantMarkup(){if(null==this.root)return{};return{chart:{container:""},nodeStructure:this.root.createTreantMarkup()}}getAllNodes(){const e=[],t=[];if(null==this.root)return e;for(t.push(this.root);0!==t.length;){const n=t.shift();if(null!=n){e.push(n.text);for(let e=0;e<n.children.length;++e)t.push(n.children[e])}}return e}getAdvertisingMultiplier(){return this.getMultiplierHelper("advertisingMult")}getEmployeeChaMultiplier(){return this.getMultiplierHelper("employeeChaMult")}getEmployeeCreMultiplier(){return this.getMultiplierHelper("employeeCreMult")}getEmployeeEffMultiplier(){return this.getMultiplierHelper("employeeEffMult")}getEmployeeIntMultiplier(){return this.getMultiplierHelper("employeeIntMult")}getProductionMultiplier(){return this.getMultiplierHelper("productionMult")}getProductProductionMultiplier(){return this.getMultiplierHelper("productProductionMult")}getSalesMultiplier(){return this.getMultiplierHelper("salesMult")}getScientificResearchMultiplier(){return this.getMultiplierHelper("sciResearchMult")}getStorageMultiplier(){return this.getMultiplierHelper("storageMult")}getMultiplierHelper(e){let t=1;if(null==this.root)return t;const n=[];for(n.push(this.root);0!==n.length;){const r=n.shift();if(null==r||!r.researched)continue;const i=a.a[r.text];if(null==i){console.warn("Invalid Research name in node: "+r.text);continue}const o=i[e];if(null!=o){t*=o;for(let e=0;e<r.children.length;++e)n.push(r.children[e])}else console.warn("Invalid propName specified in ResearchTree.getMultiplierHelper: "+e)}return t}findNode(e){return null==this.root?null:this.root.findNode(e)}research(e){if(null==this.root)return;const t=[];for(t.push(this.root);0!==t.length;){const n=t.shift();if(null!=n){if(n.text===e)return n.researched=!0,void(this.researched[e]=!0);for(let e=0;e<n.children.length;++e)t.push(n.children[e])}}console.warn("ResearchTree.research() did not find the specified Research node for: "+e)}setRoot(e){this.root=e}}},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));const a=75},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));const a={RAMBonus:.1,BaseSize:9,MaxSize:25}},,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var a=n(104);function r(e){if(null==e)return null;const t=e.nextPosition;return null==t?null:a.a[t]}},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return o}));var a=n(212);function r(){return 8!==this.bitNodeN&&(6===this.bitNodeN||7===this.bitNodeN||this.sourceFileLvl(6)>0||this.sourceFileLvl(7)>0)}function i(){return null!=this.bladeburner&&this.bladeburner instanceof a.a}function o(){this.bladeburner=new a.a(this)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return s}));var a=n(435),r=n(272);function i(){return 3===this.bitNodeN||this.sourceFileLvl(3)>0}function o(){return null!=this.corporation&&this.corporation instanceof a.a}function s(e,t=0){if(this.corporation=new a.a({name:e}),3===this.sourceFileLvl(3)){const e=r.b[r.a.WarehouseAPI].index,t=r.b[r.a.OfficeAPI].index;this.corporation.unlockUpgrades[e]=1,this.corporation.unlockUpgrades[t]=1}this.corporation.totalShares+=t}},function(e,t,n){"use strict";function a(e){null!==this.currentWork&&this.currentWork.finish(this,!0),this.currentWork=e}function r(e=1){if(null===this.currentWork)return;this.currentWork.process(this,e)&&this.finishWork(!1)}function i(e){null!==this.currentWork&&(this.currentWork.finish(this,e),this.currentWork=null)}n.d(t,"c",(function(){return a})),n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return i}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return q}));var a=n(24),r=n(115),i=n(11),o=n(153),s=n(212),l=n(355),c=n(74),f=n(435),u=n(12),m=n(29),h=n(102),d=n(105),p=n(92),g=n(26),y=n(650),b=n(291),E=n(54),v=n(42),k=n(351),w=n(201),_=n(2),S=n(110),C=n(27),x=n(5),L=n(173),O=n(103),M=n(84),T=n(334),A=n(20),R=n(225),N=n(139),P=n(347),I=n(271),F=n(1473),D=n(306),j=n(0),B=n.n(j),G=n(1474),W=n(1),H=n(8),U=n(94);const q={_lastUpdate:(new Date).getTime(),updateGame:function(e=1){const t=e*u.a._idleSpeed;null==_.a.totalPlaytime&&(_.a.totalPlaytime=0),null==_.a.playtimeSinceLastAug&&(_.a.playtimeSinceLastAug=0),null==_.a.playtimeSinceLastBitnode&&(_.a.playtimeSinceLastBitnode=0),_.a.totalPlaytime+=t,_.a.playtimeSinceLastAug+=t,_.a.playtimeSinceLastBitnode+=t,M.a.process(p.b,_.a,e),_.a.processWork(e),_.a.hasWseAccount&&Object(O.k)(e),_.a.inGang()&&null!==_.a.gang&&_.a.gang.process(e,_.a),h.c.process(_.a,e),_.a.corporation instanceof f.a&&_.a.corporation.storeCycles(e),_.a.bladeburner instanceof s.a&&_.a.bladeburner.storeCycles(e);for(let t=0;t<_.a.sleeves.length;++t)if(_.a.sleeves[t]instanceof T.a){const n=_.a.sleeves[t].process(_.a,e);if(null==n)continue;for(let a=0;a<_.a.sleeves.length;++a)a!==t&&_.a.sleeves[a].gainExperience(_.a,n,e,!0)}q.decrementAllCounters(e),q.checkCounters(),Object(w.f)(e),Object(E.i)(_.a,e)},Counters:{autoSaveCounter:300,updateSkillLevelsCounter:10,updateDisplays:3,updateDisplaysLong:15,updateActiveScriptsDisplay:5,createProgramNotifications:10,augmentationsNotifications:10,checkFactionInvitations:100,passiveFactionGrowth:5,messages:150,mechanicProcess:5,contractGeneration:3e3,achievementsCounter:60},decrementAllCounters:function(e=1){for(const t of Object.keys(q.Counters)){const n=q.Counters[t];if(void 0===n)throw new Error("counter should not be undefined");q.Counters[t]=n-e}},checkCounters:function(){if(q.Counters.autoSaveCounter<=0&&(null==x.a.AutosaveInterval&&(x.a.AutosaveInterval=60),0===x.a.AutosaveInterval?(!function(){if(x.a.SuppressAutosaveDisabledWarnings)return;if([g.a.Recovery,g.a.ImportSave].includes(p.b.page()))return;const e=B.a.createElement(B.a.Fragment,null,"Auto-saves are ",B.a.createElement("strong",null,"disabled"),"!",B.a.createElement(H.a,{sx:{ml:1},color:"warning",size:"small",onClick:()=>{x.a.AutosaveInterval=60}},"Enable"));U.b.emit(e,U.d.WARNING,5e3)}(),q.Counters.autoSaveCounter=300):(q.Counters.autoSaveCounter=5*x.a.AutosaveInterval,S.c.saveGame(!x.a.SuppressSavedGameToast))),q.Counters.checkFactionInvitations<=0){const e=_.a.checkForFactionInvitations();if(e.length>0){const t=e[Math.floor(Math.random()*e.length)];Object(d.c)(t)}q.Counters.checkFactionInvitations=100}if(q.Counters.passiveFactionGrowth<=0){const e=Math.floor(5-q.Counters.passiveFactionGrowth);Object(d.e)(e),q.Counters.passiveFactionGrowth=5}if(q.Counters.messages<=0&&(Object(k.b)(),_.a.hasAugmentation(i.a.TheRedPill)?q.Counters.messages=4500:q.Counters.messages=150),_.a.corporation instanceof f.a&&_.a.corporation.process(_.a),q.Counters.mechanicProcess<=0){if(_.a.bladeburner instanceof s.a)try{_.a.bladeburner.process(p.b,_.a)}catch(e){Object(I.a)("Exception caught in Bladeburner.process(): "+e)}q.Counters.mechanicProcess=5}q.Counters.contractGeneration<=0&&(Math.random()<=.25&&Object(l.b)(),q.Counters.contractGeneration=3e3),q.Counters.achievementsCounter<=0&&(Object(D.b)(),q.Counters.achievementsCounter=300)},load:function(e){if(Object(F.a)(),Object(G.a)(),Object(S.b)(e)){L.b.emit(),Object(o.d)(_.a),Object(r.e)(),_.a.reapplyAllSourceFiles(),_.a.hasWseAccount&&Object(O.h)(),_.a.applyEntropy(_.a.entropy),q._lastUpdate=(new Date).getTime();const e=_.a.lastUpdate,t=q._lastUpdate-e,n=Math.floor(t/u.a._idleSpeed);if(_.a.sourceFiles.length>0){let e=0;if(n<3e5)for(let t=0;t<n/3e3;t++)Math.random()<.25&&e++;else e=n/3e3*.25;for(let t=0;t<e;t++)Object(l.b)()}let i=0;const c=_.a.moneySourceA.hacking/_.a.playtimeSinceLastAug*t*.75;if(_.a.gainMoney(c,"hacking"),Object(w.b)(_.a),null!==_.a.currentWork)_.a.focus=!0,_.a.processWork(n);else for(let e=0;e<_.a.factions.length;e++){const t=_.a.factions[e];if(!m.a.hasOwnProperty(t))continue;const a=m.a[t];if(!a.isMember)continue;if(!a.getInfo().offersWork())continue;if(_.a.getGangName()===t)continue;const r=Object(b.c)(_.a,a),o=Object(b.b)(_.a,a),s=Object(b.a)(_.a,a),l=Math.max(r,o,s)/_.a.factions.length*n;a.playerReputation+=l,i+=l}const p=Object(E.i)(_.a,n),g=Object(E.g)(_.a)?B.a.createElement(B.a.Fragment,null,B.a.createElement(R.a,{hashes:p})," hashes"):B.a.createElement(A.a,{money:p});Object(d.e)(n),_.a.hasWseAccount&&Object(O.k)(n);const y=_.a.gang;_.a.inGang()&&null!==y&&y.process(n,_.a),_.a.corporation instanceof f.a&&_.a.corporation.storeCycles(n),_.a.bladeburner instanceof s.a&&_.a.bladeburner.storeCycles(n),h.c.process(_.a,n);for(let e=0;e<_.a.sleeves.length;++e)if(_.a.sleeves[e]instanceof T.a){const t=_.a.sleeves[e].process(_.a,n);if(null==t)continue;for(let a=0;a<_.a.sleeves.length;++a)a!==e&&_.a.sleeves[a].gainExperience(_.a,t,n,!0)}const v=n*u.a._idleSpeed;null==_.a.totalPlaytime&&(_.a.totalPlaytime=0),null==_.a.playtimeSinceLastAug&&(_.a.playtimeSinceLastAug=0),null==_.a.playtimeSinceLastBitnode&&(_.a.playtimeSinceLastBitnode=0),_.a.totalPlaytime+=v,_.a.playtimeSinceLastAug+=v,_.a.playtimeSinceLastBitnode+=v,_.a.lastUpdate=q._lastUpdate,q.start();const k=Object(a.d)(v);setTimeout(()=>P.a.emit(B.a.createElement(B.a.Fragment,null,B.a.createElement(W.a,null,"Offline for ",k,". While you were offline:"),B.a.createElement("ul",null,B.a.createElement("li",null,B.a.createElement(W.a,null,"Your scripts generated ",B.a.createElement(A.a,{money:c}))),B.a.createElement("li",null,B.a.createElement(W.a,null,"Your Hacknet Nodes generated ",g)),B.a.createElement("li",null,B.a.createElement(W.a,null,"You gained ",B.a.createElement(N.a,{reputation:i})," reputation divided amongst your factions"))))),250)}else Object(o.d)(_.a),q.start(),_.a.init(),Object(C.f)(_.a.getHomeComputer()),Object(c.b)(),Object(m.c)(),Object(r.e)(),Object(v.e)();Object(y.b)()},start:function(){const e=(new Date).getTime();let t=e-q._lastUpdate;const n=t%u.a._idleSpeed;t=Math.floor(t/u.a._idleSpeed),t>0&&(q._lastUpdate=e-n,_.a.lastUpdate=e-n,q.updateGame(t)),window.requestAnimationFrame(q.start)}}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.r(t);var a=n(827);n.d(t,"Default",(function(){return a.a}));var r=n(828);n.d(t,"DefaultLite",(function(){return r.a}));var i=n(829);n.d(t,"Monokai",(function(){return i.a}));var o=n(830);n.d(t,"Warmer",(function(){return o.a}));var s=n(831);n.d(t,"DarkPlus",(function(){return s.a}));var l=n(832);n.d(t,"MayukaiDark",(function(){return l.a}));var c=n(833);n.d(t,"Purple",(function(){return c.a}));var f=n(834);n.d(t,"SmoothGreen",(function(){return f.a}));var u=n(835);n.d(t,"Dracula",(function(){return u.a}));var m=n(836);n.d(t,"DarkBlue",(function(){return m.a}));var h=n(837);n.d(t,"DiscordLike",(function(){return h.a}));var d=n(838);n.d(t,"OneDark",(function(){return d.a}));var p=n(839);n.d(t,"MutedGoldBlue",(function(){return p.a}));var g=n(840);n.d(t,"Light",(function(){return g.a}))},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return k}));var a=n(0),r=n.n(a),i=n(1857),o=n(1),s=n(282),l=n(18),c=n(118),f=n(142),u=n(84),m=n(350),h=n(2),d=n(700),p=n(92),g=n(12),y=n(428),b=n(257),E=n(303);const v=Object(c.a)(e=>Object(f.a)({root:{backgroundColor:e.colors.backgroundprimary}}));function k(){const e=v(),[t,n]=Object(a.useState)(!1),[c,f]=Object(a.useState)(!1),k=`v${g.a.VersionString} (${Object(b.a)()})`;return document.title="Bitburner "+k,Object(a.useEffect)(()=>{const e=setTimeout(()=>{c||n(!0)},2e3);return()=>clearTimeout(e)}),Object(a.useEffect)(()=>{!async function(){await Object(m.b)().then(e=>{try{d.a.load(e)}catch(e){throw Object(y.a)(),f(!0),e}Object(E.c)(),f(!0)}).catch(e=>{console.error(e),d.a.load(""),f(!0)})}()},[]),r.a.createElement(l.a,{className:e.root},c?r.a.createElement(p.a,{terminal:u.a,engine:d.a,player:h.a}):r.a.createElement(s.a,{container:!0,direction:"column",justifyContent:"center",alignItems:"center",style:{minHeight:"100vh"}},r.a.createElement(s.a,{item:!0},r.a.createElement(i.a,{size:150,color:"primary"})),r.a.createElement(s.a,{item:!0},r.a.createElement(o.a,{variant:"h3"},"Loading Bitburner ",k)),t&&r.a.createElement(s.a,{item:!0},r.a.createElement(o.a,null,"If the game fails to load, consider ",r.a.createElement("a",{href:"?noScripts"},"killing all scripts")))))}},,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return o}));var a=n(34),r=n(1429);function i(e,t=!1){const n=e instanceof a.a?e.name:e;for(const e of this.augmentations)if(e.name===n)return!0;if(!t)for(const e of this.queuedAugmentations)if(e.name===n)return!0;return!1}function o(e=1){this.reapplyAllAugmentations(),this.reapplyAllSourceFiles();const t=Object(r.a)(this,e);for(const[e,n]of Object.entries(t))this.setMult(e,n)}},function(e,t,n){"use strict";function a(e){return"number"==typeof e&&!isNaN(e)}n.d(t,"a",(function(){return a}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var a=n(117),r=n(72),i=n(22);class o{constructor(e="",t=0,n=0,i=a.a.LimitBuy,o=r.a.Long){let s=!1;if("number"==typeof t&&"number"==typeof n||(s=!0),(isNaN(t)||isNaN(n))&&(s=!0),"string"!=typeof e&&(s=!0),s)throw new Error("Invalid constructor paramters for Order");this.stockSymbol=e,this.shares=t,this.price=n,this.type=i,this.pos=o}toJSON(){return Object(i.b)("Order",this)}static fromJSON(e){return Object(i.a)(o,e.data)}}i.c.constructors.Order=o},function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var a=n(4),r=n(275),i=n(61),o=n(29),s=n(1055),l=n(612),c=n(22),f=n(12),u=n(677),m=n(21),h=n(2),d=n(11);function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class g{constructor(){p(this,"storedCycles",0),p(this,"fragments",[])}baseSize(){return u.a.BaseSize+m.a.StaneksGiftExtraSize+h.a.sourceFileLvl(13)}width(){return Math.max(2,Math.min(Math.floor(this.baseSize()/2+1),u.a.MaxSize))}height(){return Math.max(3,Math.min(Math.floor(this.baseSize()/2+.6),u.a.MaxSize))}charge(e,t,n){n>t.highestCharge?(t.numCharge=t.highestCharge*t.numCharge/n+1,t.highestCharge=n):t.numCharge+=n/t.highestCharge;const r=o.a[a.a.ChurchOfTheMachineGod];r.playerReputation+=e.mults.faction_rep*(Math.pow(n,.95)*(r.favor+100))/1e3}inBonus(){return this.storedCycles*f.a._idleSpeed/1e3>1}process(e,t=1){e.hasAugmentation(d.a.StaneksGift1)&&(this.storedCycles+=t,this.storedCycles-=10,this.storedCycles=Math.max(0,this.storedCycles),this.updateMults(e),l.a.emit())}effect(e){let t=e.neighboors().map(e=>this.fragmentAt(e[0],e[1])).filter(e=>!!e);t=t.filter(e=>e.fragment().type===i.b.Booster);let n=1;t=t.filter((e,t,n)=>n.indexOf(e)===t);for(const e of t)n*=e.fragment().power;return Object(s.a)(e.highestCharge,e.numCharge,e.fragment().power,n)}canPlace(e,t,n,a){if(e<0||t<0)return!1;if(e+a.width(n)>this.width())return!1;if(t+a.height(n)>this.height())return!1;if(this.count(a)>=a.limit)return!1;const i=new r.a({x:e,y:t,rotation:n,fragment:a});for(const e of this.fragments)if(e.collide(i))return!1;return!0}place(e,t,n,a){return!!this.canPlace(e,t,n,a)&&(this.fragments.push(new r.a({x:e,y:t,rotation:n,fragment:a})),!0)}findFragment(e,t){return this.fragments.find(n=>n.x===e&&n.y===t)}fragmentAt(e,t){for(const n of this.fragments)if(n.fullAt(e,t))return n}count(e){let t=0;for(const n of this.fragments)n.fragment().id===e.id&&t++;return t}delete(e,t){for(let n=0;n<this.fragments.length;n++)if(this.fragments[n].x===e&&this.fragments[n].y===t)return this.fragments.splice(n,1),!0;return!1}clear(){this.fragments=[]}clearCharge(){this.fragments.forEach(e=>{e.highestCharge=0,e.numCharge=0})}updateMults(e){e.applyEntropy(e.entropy);for(const t of this.fragments){const n=t.fragment(),a=this.effect(t);switch(n.type){case i.b.HackingChance:e.mults.hacking_chance*=a;break;case i.b.HackingSpeed:e.mults.hacking_speed*=a;break;case i.b.HackingMoney:e.mults.hacking_money*=a;break;case i.b.HackingGrow:e.mults.hacking_grow*=a;break;case i.b.Hacking:e.mults.hacking*=a,e.mults.hacking_exp*=a;break;case i.b.Strength:e.mults.strength*=a,e.mults.strength_exp*=a;break;case i.b.Defense:e.mults.defense*=a,e.mults.defense_exp*=a;break;case i.b.Dexterity:e.mults.dexterity*=a,e.mults.dexterity_exp*=a;break;case i.b.Agility:e.mults.agility*=a,e.mults.agility_exp*=a;break;case i.b.Charisma:e.mults.charisma*=a,e.mults.charisma_exp*=a;break;case i.b.HacknetMoney:e.mults.hacknet_node_money*=a;break;case i.b.HacknetCost:e.mults.hacknet_node_purchase_cost/=a,e.mults.hacknet_node_ram_cost/=a,e.mults.hacknet_node_core_cost/=a,e.mults.hacknet_node_level_cost/=a;break;case i.b.Rep:e.mults.company_rep*=a,e.mults.faction_rep*=a;break;case i.b.WorkMoney:e.mults.work_money*=a;break;case i.b.Crime:e.mults.crime_success*=a,e.mults.crime_money*=a;break;case i.b.Bladeburner:e.mults.bladeburner_max_stamina*=a,e.mults.bladeburner_stamina_gain*=a,e.mults.bladeburner_analysis*=a,e.mults.bladeburner_success_chance*=a}}e.updateSkillLevels()}prestigeAugmentation(){this.clearCharge()}prestigeSourceFile(){this.clear(),this.storedCycles=0}toJSON(){return Object(c.b)("StaneksGift",this)}static fromJSON(e){return Object(c.a)(g,e.data)}}c.c.constructors.StaneksGift=g},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var a=n(9);function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class i{constructor(e){r(this,"city",null),r(this,"costMult",0),r(this,"expMult",0),r(this,"name",a.a.Void),r(this,"types",[]),r(this,"techVendorMaxRam",0),r(this,"techVendorMinRam",0),e.city&&(this.city=e.city),e.costMult&&(this.costMult=e.costMult),e.expMult&&(this.expMult=e.expMult),e.infiltrationData&&(this.infiltrationData=e.infiltrationData),e.name&&(this.name=e.name),e.types&&(this.types=e.types),e.techVendorMaxRam&&(this.techVendorMaxRam=e.techVendorMaxRam),e.techVendorMinRam&&(this.techVendorMinRam=e.techVendorMinRam)}}},,,,,,,,,,,function(e,t,n){"use strict";n.d(t,"b",(function(){return E})),n.d(t,"a",(function(){return v}));var a=n(0),r=n.n(a),i=n(150),o=n(151),s=n(48),l=n(30),c=n(1),f=n(6),u=n(5),m=n(76),h=n(307),d=n(20),p=n(121),g=n(392),y=n(28),b=n(65);function E(e){const t=Object(h.b)();return r.a.createElement(i.a,{sx:{display:"table",mb:1,width:"100%"}},r.a.createElement(o.a,null,r.a.createElement(m.a,{name:"City",color:u.a.theme.primary,data:{content:e.sleeve.city}}),r.a.createElement(m.a,{name:"HP",color:u.a.theme.hp,data:{content:`${f.a.formatHp(e.sleeve.hp)} / ${f.a.formatHp(e.sleeve.max_hp)}`}}),r.a.createElement(m.a,{name:"Hacking",color:u.a.theme.hack,data:{level:e.sleeve.hacking,exp:e.sleeve.hacking_exp}}),r.a.createElement(m.a,{name:"Strength",color:u.a.theme.combat,data:{level:e.sleeve.strength,exp:e.sleeve.strength_exp}}),r.a.createElement(m.a,{name:"Defense",color:u.a.theme.combat,data:{level:e.sleeve.defense,exp:e.sleeve.defense_exp}}),r.a.createElement(m.a,{name:"Dexterity",color:u.a.theme.combat,data:{level:e.sleeve.dexterity,exp:e.sleeve.dexterity_exp}}),r.a.createElement(m.a,{name:"Agility",color:u.a.theme.combat,data:{level:e.sleeve.agility,exp:e.sleeve.agility_exp}}),r.a.createElement(m.a,{name:"Charisma",color:u.a.theme.cha,data:{level:e.sleeve.charisma,exp:e.sleeve.charisma_exp}}),r.a.createElement(s.a,null,r.a.createElement(l.a,{classes:{root:t.cellNone}},r.a.createElement("br",null))),r.a.createElement(m.a,{name:"Shock",color:u.a.theme.primary,data:{content:f.a.formatSleeveShock(100-e.sleeve.shock)}}),r.a.createElement(m.a,{name:"Sync",color:u.a.theme.primary,data:{content:f.a.formatSleeveSynchro(e.sleeve.sync)}}),r.a.createElement(m.a,{name:"Memory",color:u.a.theme.primary,data:{content:f.a.formatSleeveMemory(e.sleeve.memory)}})))}function v(e){const t=Object(h.b)(),n=y.b.Player();let a=[];if(e.sleeve.currentTask===b.a.Crime)a=[["Money",r.a.createElement(r.a.Fragment,null,r.a.createElement(d.a,{money:parseFloat(e.sleeve.currentTaskLocation)})," (on success)")],["Hacking Exp",f.a.formatExp(e.sleeve.gainRatesForTask.hack)+" (2x on success)"],["Strength Exp",f.a.formatExp(e.sleeve.gainRatesForTask.str)+" (2x on success)"],["Defense Exp",f.a.formatExp(e.sleeve.gainRatesForTask.def)+" (2x on success)"],["Dexterity Exp",f.a.formatExp(e.sleeve.gainRatesForTask.dex)+" (2x on success)"],["Agility Exp",f.a.formatExp(e.sleeve.gainRatesForTask.agi)+" (2x on success)"],["Charisma Exp",f.a.formatExp(e.sleeve.gainRatesForTask.cha)+" (2x on success)"]];else if(a=[["Money:",r.a.createElement(p.a,{money:5*e.sleeve.gainRatesForTask.money})],["Hacking Exp:",f.a.formatExp(5*e.sleeve.gainRatesForTask.hack)+" / sec"],["Strength Exp:",f.a.formatExp(5*e.sleeve.gainRatesForTask.str)+" / sec"],["Defense Exp:",f.a.formatExp(5*e.sleeve.gainRatesForTask.def)+" / sec"],["Dexterity Exp:",f.a.formatExp(5*e.sleeve.gainRatesForTask.dex)+" / sec"],["Agility Exp:",f.a.formatExp(5*e.sleeve.gainRatesForTask.agi)+" / sec"],["Charisma Exp:",f.a.formatExp(5*e.sleeve.gainRatesForTask.cha)+" / sec"]],e.sleeve.currentTask===b.a.Company||e.sleeve.currentTask===b.a.Faction){const t=e.sleeve.getRepGain(n);a.push(["Reputation:",r.a.createElement(g.a,{reputation:5*t})])}return r.a.createElement(i.a,{sx:{display:"table",mb:1,width:"100%",lineHeight:0}},r.a.createElement(o.a,null,r.a.createElement(s.a,null,r.a.createElement(l.a,{classes:{root:t.cellNone}},r.a.createElement(c.a,{variant:"h6"},"Earnings"))),a.map(([e,n])=>r.a.createElement(s.a,{key:e.toString()+n.toString()},r.a.createElement(l.a,{classes:{root:t.cellNone}},r.a.createElement(c.a,null,e)),r.a.createElement(l.a,{align:"right",classes:{root:t.cellNone}},r.a.createElement(c.a,null,n))))))}},function(e,t,n){"use strict";n.d(t,"b",(function(){return u})),n.d(t,"a",(function(){return m}));var a=n(0),r=n.n(a),i=n(27),o=n(44),s=n(91),l=n(130),c=n(71),f=n(8);const u={All:0,Foreign:1,Owned:2,Purchased:3};function m(e){function t(t){const n=t instanceof o.a&&t.purchasedByPlayer,a=e.serverType;switch(a){case u.All:return!0;case u.Foreign:return"home"!==t.hostname&&!n;case u.Owned:return n||t instanceof s.a||"home"===t.hostname;case u.Purchased:return n||t instanceof s.a;default:return console.warn("Invalid ServerType specified for ServerDropdown component: "+a),!1}}const n=[];for(const e of Object(i.c)().sort((e,t)=>e.hostname.localeCompare(t.hostname)))t(e)&&n.push(r.a.createElement(c.a,{key:e.hostname,value:e.hostname},e.hostname));return r.a.createElement(l.a,{startAdornment:r.a.createElement(f.a,{onClick:e.purchase,disabled:!e.canPurchase},"Buy"),sx:{mx:1},value:e.value,onChange:e.onChange},n)}},function(e,t,n){"use strict";n.d(t,"b",(function(){return g})),n.d(t,"a",(function(){return b}));var a=n(0),r=n(20),i=n(214),o=n(1338),s=n(561),l=n(1850),c=n(798),f=n(8),u=n(43),m=n(18),h=n(1),d=n(75);function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const g=5;var y;!function(e){e.Pending="",e.PlayerWon="You won!",e.PlayerWonByBlackjack="You Won! Blackjack!",e.DealerWon="You lost!",e.Tie="Push! (Tie)"}(y||(y={}));class b extends i.a{constructor(e){super(e),p(this,"canStartGame",()=>{const{p:e}=this.props,{bet:t}=this.state;return e.canAfford(t)}),p(this,"startGame",()=>{if(!this.canStartGame()||Object(i.b)(this.props.p))return;this.props.p.loseMoney(this.state.bet,"casino");const e=new s.a([this.deck.safeDrawCard(),this.deck.safeDrawCard()]),t=new s.a([this.deck.safeDrawCard(),this.deck.safeDrawCard()]);this.setState({playerHand:e,dealerHand:t,gameInProgress:!0,result:y.Pending}),21===this.getTrueHandValue(e)?21===this.getTrueHandValue(t)?this.finishGame(y.Tie):this.finishGame(y.PlayerWonByBlackjack):21===this.getTrueHandValue(t)&&this.finishGame(y.DealerWon)}),p(this,"getHandValue",e=>{let t=[0];for(let n=0;n<e.cards.length;++n){const a=e.cards[n].value;t=a>=10?t.map(e=>e+10):1===a?t.flatMap(e=>[e+1,e+11]):t.map(e=>e+a)}return t}),p(this,"getTrueHandValue",e=>{const t=this.getHandValue(e),n=t.filter(e=>e<=21);return n.length>0?(n.sort((e,t)=>e-t),n[n.length-1]):t[0]}),p(this,"getHandDisplayValues",e=>{const t=this.getHandValue(e);return this.isHandBusted(e)?[...new Set([t[0]])]:[...new Set(t.filter(e=>e<=21))]}),p(this,"isHandBusted",e=>this.getTrueHandValue(e)>21),p(this,"playerHit",e=>{if(!e.isTrusted)return;const t=this.state.playerHand.addCards(this.deck.safeDrawCard());this.setState({playerHand:t}),this.isHandBusted(t)&&this.finishGame(y.DealerWon)}),p(this,"playerStay",e=>{if(!e.isTrusted)return;let t=this.state.dealerHand;for(;;){if(!(this.getTrueHandValue(t)<=16))break;t=t.addCards(this.deck.safeDrawCard())}if(this.setState({dealerHand:t}),this.isHandBusted(t))this.finishGame(y.PlayerWon);else{const e=this.getTrueHandValue(t),n=this.getTrueHandValue(this.state.playerHand);if(e>21||n>21)throw new Error("Someone busted when not expected to");n>e?this.finishGame(y.PlayerWon):n<e?this.finishGame(y.DealerWon):this.finishGame(y.Tie)}}),p(this,"finishGame",e=>{const t=e===y.DealerWon?0:e===y.Tie?this.state.bet:e===y.PlayerWon?2*this.state.bet:e===y.PlayerWonByBlackjack?2.5*this.state.bet:(()=>{throw new Error("Unexpected result: "+e)})();this.win(this.props.p,t),this.setState({gameInProgress:!1,result:e,gains:this.state.gains+t-this.state.bet})}),p(this,"wagerOnChange",e=>{const{p:t}=this.props,n=e.target.value,a=Math.round(parseFloat(n));isNaN(a)?this.setState({bet:0,betInput:n,wagerInvalid:!0,wagerInvalidHelperText:"Not a valid number"}):a<=0?this.setState({bet:0,betInput:n,wagerInvalid:!0,wagerInvalidHelperText:"Must bet a postive amount"}):a>1e8?this.setState({bet:0,betInput:n,wagerInvalid:!0,wagerInvalidHelperText:"Exceeds max bet"}):t.canAfford(a)?this.setState({bet:a,betInput:n,wagerInvalid:!1,wagerInvalidHelperText:"",result:y.Pending}):this.setState({bet:0,betInput:n,wagerInvalid:!0,wagerInvalidHelperText:"Not enough money"})}),p(this,"startOnClick",e=>{e.isTrusted&&(this.state.wagerInvalid||this.startGame())}),this.deck=new o.a(g);this.state={playerHand:new s.a([]),dealerHand:new s.a([]),bet:1e6,betInput:String(1e6),gameInProgress:!1,result:y.Pending,gains:0,wagerInvalid:!1,wagerInvalidHelperText:""}}render(){const{betInput:e,playerHand:t,dealerHand:n,gameInProgress:i,result:o,wagerInvalid:s,wagerInvalidHelperText:p,gains:g}=this.state,b=this.getHandDisplayValues(t),E=this.getHandDisplayValues(n);return a.createElement(a.Fragment,null,a.createElement(m.a,null,a.createElement(d.a,{value:e,label:a.createElement(a.Fragment,null,"Wager (Max: ",a.createElement(r.a,{money:1e8}),")"),disabled:i,onChange:this.wagerOnChange,error:s,helperText:s?p:"",type:"number",style:{width:"200px"},InputProps:{startAdornment:a.createElement(l.a,{position:"start"},a.createElement(h.a,null,"$"))}}),a.createElement(h.a,null,"Total earnings this session: ",a.createElement(r.a,{money:g}))),i?a.createElement(a.Fragment,null,a.createElement(f.a,{onClick:this.playerHit},"Hit"),a.createElement(f.a,{color:"secondary",onClick:this.playerStay},"Stay")):a.createElement(f.a,{onClick:this.startOnClick,disabled:s||!this.canStartGame()},"Start"),(i||o!==y.Pending)&&a.createElement(a.Fragment,null,a.createElement(m.a,{display:"flex"},a.createElement(u.a,{elevation:2},a.createElement(h.a,null,"Player"),t.cards.map((e,t)=>a.createElement(c.a,{card:e,key:t})),a.createElement(h.a,null,"Count:"," ",b.map((e,t)=>a.createElement("span",{key:t},e)).reduce((e,t)=>[e," or ",t])))),a.createElement("br",null),a.createElement(m.a,{display:"flex"},a.createElement(u.a,{elevation:2},a.createElement(h.a,null,"Dealer"),n.cards.map((e,t)=>a.createElement(c.a,{card:e,hidden:i&&0!==t,key:t})),!i&&a.createElement(a.Fragment,null,a.createElement(h.a,null,"Count:"," ",E.map((e,t)=>a.createElement("span",{key:t},e)).reduce((e,t)=>[e," or ",t])))))),o!==y.Pending&&a.createElement(h.a,null,o," ",o===y.PlayerWon&&a.createElement(r.a,{money:this.state.bet}),o===y.PlayerWonByBlackjack&&a.createElement(r.a,{money:1.5*this.state.bet}),o===y.DealerWon&&a.createElement(r.a,{money:-this.state.bet})))}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var a=n(0),r=n.n(a),i=n(264),o=n(118),s=n(142),l=n(43);const c=Object(o.a)(()=>Object(s.a)({card:{padding:"10px",border:"solid 1px #808080",backgroundColor:"white",display:"inline-block",borderRadius:"10px",fontSize:"18.5px",textAlign:"center",margin:"3px",fontWeight:"bold"},red:{color:"red"},black:{color:"black"},value:{fontSize:"20px",fontFamily:"sans-serif"}})),f=({card:e,hidden:t})=>{const n=c();let a;switch(e.suit){case i.b.Clubs:a=r.a.createElement("span",null,"♣");break;case i.b.Diamonds:a=r.a.createElement("span",null,"♦");break;case i.b.Hearts:a=r.a.createElement("span",null,"♥");break;case i.b.Spades:a=r.a.createElement("span",null,"♠");break;default:throw new Error("MissingCaseException: "+e.suit)}return r.a.createElement(l.a,{className:`${n.card} ${e.isRedSuit()?n.red:n.black}`},r.a.createElement(r.a.Fragment,null,r.a.createElement("span",{className:n.value},t?" - ":e.formatValue()),r.a.createElement("span",null,t?" - ":a)))}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var a=n(29),r=n(27),i=n(4);function o(e,t){const n=t.augmentations.slice().filter(e=>"NeuroFlux Governor"!==e);for(const t of n)if(!e.augmentations.some(e=>e.name==t))return!1;return!0}const s=[{title:"Gain root access on CSEC",fulfilled:()=>{const e=Object(r.d)("CSEC");return!(!e||!e.hasOwnProperty("hasAdminRights"))&&e.hasAdminRights}},{title:"Install the backdoor on CSEC",fulfilled:()=>{const e=Object(r.d)("CSEC");return!(!e||!e.hasOwnProperty("backdoorInstalled"))&&e.backdoorInstalled}},{title:"Join the faction hinted at in csec-test.msg",fulfilled:e=>e.factions.includes(i.a.CyberSec)},{title:"Install all the Augmentations from "+i.a.CyberSec,fulfilled:e=>o(e,a.a[i.a.CyberSec])},{title:"Join the faction hinted at in nitesec-test.msg",fulfilled:e=>e.factions.includes(i.a.NiteSec)},{title:"Install all the Augmentations from "+i.a.NiteSec,fulfilled:e=>o(e,a.a[i.a.NiteSec])},{title:"Join the faction hinted at in j3.msg",fulfilled:e=>e.factions.includes(i.a.TheBlackHand)},{title:"Install all the Augmentations from "+i.a.TheBlackHand,fulfilled:e=>o(e,a.a[i.a.TheBlackHand])},{title:"Join the faction hinted at in 19dfj3l1nd.msg",fulfilled:e=>e.factions.includes(i.a.BitRunners)},{title:"Install all the Augmentations from "+i.a.BitRunners,fulfilled:e=>o(e,a.a[i.a.BitRunners])},{title:"Complete fl1ght.exe",fulfilled:e=>e.factions.includes(i.a.Daedalus)},{title:"Install the special Augmentation from "+i.a.Daedalus,fulfilled:e=>e.augmentations.some(e=>"The Red Pill"==e.name)},{title:"Install the final backdoor and free yourself.",fulfilled:()=>!1}]},,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var a=n(98);const r={longestName:0,longestSymbol:0};for(const e of Object.keys(a.a))r.longestName=Math.max(e.length,r.longestName),r.longestSymbol=Math.max(a.a[e].length,r.longestSymbol)},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var a=n(0),r=n.n(a),i=n(18),o=n(1),s=n(5),l=n(1410);function c({achievement:e,unlockedOn:t,cssFiltersUnlocked:n,cssFiltersLocked:a}){if(!e)return r.a.createElement(r.a.Fragment,null);const c=!!t,f=c?s.a.theme.primary:s.a.theme.secondarylight;let u="";return t&&(u=new Date(t).toLocaleString()),r.a.createElement(i.a,{sx:{border:"1px solid "+s.a.theme.well,mb:2}},r.a.createElement(i.a,{sx:{display:"flex",flexDirection:"row",flexWrap:"wrap"}},r.a.createElement(l.a,{achievement:e,unlocked:c,size:"72px",colorFilters:c?n:a}),r.a.createElement(i.a,{sx:{display:"flex",flexDirection:"column",justifyContent:"center",px:1}},r.a.createElement(o.a,{variant:"h6",sx:{color:f}},e.Name),r.a.createElement(o.a,{variant:"body2",sx:{maxWidth:"500px",color:f}},e.Description),c&&r.a.createElement(o.a,{variant:"caption",sx:{fontSize:"12px",color:s.a.theme.primarydark}},"Acquired on ",u))))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));class a{constructor(e,t,n){this.set(e,t,n)}toString(){return`rgb(${Math.round(this.r)}, ${Math.round(this.g)}, ${Math.round(this.b)})`}set(e,t,n){this.r=this.clamp(e),this.g=this.clamp(t),this.b=this.clamp(n)}hueRotate(e=0){e=e/180*Math.PI;const t=Math.sin(e),n=Math.cos(e);this.multiply([.213+.787*n-.213*t,.715-.715*n-.715*t,.072-.072*n+.928*t,.213-.213*n+.143*t,.715+.285*n+.14*t,.072-.072*n-.283*t,.213-.213*n-.787*t,.715-.715*n+.715*t,.072+.928*n+.072*t])}grayscale(e=1){this.multiply([.2126+.7874*(1-e),.7152-.7152*(1-e),.0722-.0722*(1-e),.2126-.2126*(1-e),.7152+.2848*(1-e),.0722-.0722*(1-e),.2126-.2126*(1-e),.7152-.7152*(1-e),.0722+.9278*(1-e)])}sepia(e=1){this.multiply([.393+.607*(1-e),.769-.769*(1-e),.189-.189*(1-e),.349-.349*(1-e),.686+.314*(1-e),.168-.168*(1-e),.272-.272*(1-e),.534-.534*(1-e),.131+.869*(1-e)])}saturate(e=1){this.multiply([.213+.787*e,.715-.715*e,.072-.072*e,.213-.213*e,.715+.285*e,.072-.072*e,.213-.213*e,.715-.715*e,.072+.928*e])}multiply(e){const t=this.clamp(this.r*e[0]+this.g*e[1]+this.b*e[2]),n=this.clamp(this.r*e[3]+this.g*e[4]+this.b*e[5]),a=this.clamp(this.r*e[6]+this.g*e[7]+this.b*e[8]);this.r=t,this.g=n,this.b=a}brightness(e=1){this.linear(e)}contrast(e=1){this.linear(e,-.5*e+.5)}linear(e=1,t=0){this.r=this.clamp(this.r*e+255*t),this.g=this.clamp(this.g*e+255*t),this.b=this.clamp(this.b*e+255*t)}invert(e=1){this.r=this.clamp(255*(e+this.r/255*(1-2*e))),this.g=this.clamp(255*(e+this.g/255*(1-2*e))),this.b=this.clamp(255*(e+this.b/255*(1-2*e)))}hsl(){const e=this.r/255,t=this.g/255,n=this.b/255,a=Math.max(e,t,n),r=Math.min(e,t,n);let i,o,s=(a+r)/2;if(a===r)i=o=0;else{const l=a-r;switch(o=s>.5?l/(2-a-r):l/(a+r),a){case e:i=(t-n)/l+(t<n?6:0);break;case t:i=(n-e)/l+2;break;case n:i=(e-t)/l+4}i/=6}return{h:100*i,s:100*o,l:100*s}}clamp(e){return e>255?e=255:e<0&&(e=0),e}}class r{constructor(e){this.target=e,this.targetHSL=e.hsl(),this.reusedColor=new a(0,0,0)}solve(){const e=this.solveNarrow(this.solveWide());return{values:e.values,loss:e.loss,filter:this.css(e.values)}}solveWide(){const e=[60,180,18e3,600,1.2,1.2];let t={loss:1/0};for(let n=0;t.loss>25&&n<3;n++){const n=[50,20,3750,50,100,100],a=this.spsa(5,e,15,n,1e3);a.loss<t.loss&&(t=a)}return t}solveNarrow(e){const t=e.loss,n=t+1,a=[.25*n,.25*n,n,.25*n,.2*n,.2*n];return this.spsa(t,a,2,e.values,500)}spsa(e,t,n,a,r){let i=null,o=1/0;const s=new Array(6),l=new Array(6),c=new Array(6);for(let u=0;u<r;u++){const r=n/Math.pow(u+1,.16666666666666666);for(let e=0;e<6;e++)s[e]=Math.random()>.5?1:-1,l[e]=a[e]+r*s[e],c[e]=a[e]-r*s[e];const m=this.loss(l)-this.loss(c);for(let n=0;n<6;n++){const i=m/(2*r)*s[n],o=t[n]/Math.pow(e+u+1,1);a[n]=f(a[n]-o*i,n)}const h=this.loss(a);h<o&&(i=a.slice(0),o=h)}return{values:i,loss:o};function f(e,t){let n=100;return 2===t?n=7500:4!==t&&5!==t||(n=200),3===t?e>n?e%=n:e<0&&(e=n+e%n):e<0?e=0:e>n&&(e=n),e}}loss(e){const t=this.reusedColor;t.set(0,0,0),t.invert(e[0]/100),t.sepia(e[1]/100),t.saturate(e[2]/100),t.hueRotate(3.6*e[3]),t.brightness(e[4]/100),t.contrast(e[5]/100);const n=t.hsl();return Math.abs(t.r-this.target.r)+Math.abs(t.g-this.target.g)+Math.abs(t.b-this.target.b)+Math.abs(n.h-this.targetHSL.h)+Math.abs(n.s-this.targetHSL.s)+Math.abs(n.l-this.targetHSL.l)}css(e){function t(t,n=1){return Math.round(e[t]*n)}return`invert(${t(0)}%) sepia(${t(1)}%) saturate(${t(2)}%) hue-rotate(${t(3,3.6)}deg) brightness(${t(4)}%) contrast(${t(5)}%)`}}function i(e){const t=function(e){e=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(e,t,n,a)=>t+t+n+n+a+a);const t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]:null}(e);if(!t)return"";const[n,i,o]=t,s=new a(n,i,o);return new r(s).solve().filter}},,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));const a={name:"Default",description:"Default game theme, most supported",credit:"hydroflame",screenshot:n(933).a,colors:{primarylight:"#0f0",primary:"#0c0",primarydark:"#090",successlight:"#0f0",success:"#0c0",successdark:"#090",errorlight:"#f00",error:"#c00",errordark:"#900",secondarylight:"#AAA",secondary:"#888",secondarydark:"#666",warninglight:"#ff0",warning:"#cc0",warningdark:"#990",infolight:"#69f",info:"#36c",infodark:"#039",welllight:"#444",well:"#222",white:"#fff",black:"#000",hp:"#dd3434",money:"#ffd700",hack:"#adff2f",combat:"#faffdf",cha:"#a671d1",int:"#6495ed",rep:"#faffdf",disabled:"#66cfbc",backgroundprimary:"#000",backgroundsecondary:"#000",button:"#333"}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));const a={name:"Default-lite",description:"Less eye-straining default theme",credit:"NmuGmu",reference:"https://discord.com/channels/415207508303544321/921991895230611466/925263801564151888",screenshot:n(934).a,colors:{primarylight:"#28CF28",primary:"#21A821",primarydark:"#177317",successlight:"#1CFF1C",success:"#16CA16",successdark:"#0D910D",errorlight:"#FF3B3B",error:"#C32D2D",errordark:"#8E2121",secondarylight:"#B3B3B3",secondary:"#838383",secondarydark:"#676767",warninglight:"#FFFF3A",warning:"#C3C32A",warningdark:"#8C8C1E",infolight:"#64CBFF",info:"#3399CC",infodark:"#246D91",welllight:"#404040",well:"#1C1C1C",white:"#C3C3C3",black:"#0A0B0B",hp:"#C62E2E",money:"#D6BB27",hack:"#ADFF2F",combat:"#E8EDCD",cha:"#8B5FAF",int:"#537CC8",rep:"#E8EDCD",disabled:"#5AB5A5",backgroundprimary:"#0C0D0E",backgroundsecondary:"#121415",button:"#252829"}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));const a={name:"Monokai'ish",description:"Monokai'ish",credit:"eltea",screenshot:n(935).a,colors:{primarylight:"#FFF",primary:"#F8F8F2",primarydark:"#FAFAEB",successlight:"#ADE146",success:"#A6E22E",successdark:"#98E104",errorlight:"#FF69A0",error:"#F92672",errordark:"#D10F56",secondarylight:"#AAA",secondary:"#888",secondarydark:"#666",warninglight:"#E1D992",warning:"#E6DB74",warningdark:"#EDDD54",infolight:"#92E1F1",info:"#66D9EF",infodark:"#31CDED",welllight:"#444",well:"#222",white:"#fff",black:"#000",hp:"#F92672",money:"#E6DB74",hack:"#A6E22E",combat:"#75715E",cha:"#AE81FF",int:"#66D9EF",rep:"#E69F66",disabled:"#66cfbc",backgroundprimary:"#272822",backgroundsecondary:"#1B1C18",button:"#333"}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));const a={name:"Warmer",credit:"hexnaught",description:"Warmer, softer theme",reference:"https://discord.com/channels/415207508303544321/921991895230611466/921999581020028938",screenshot:n(936).a,colors:{primarylight:"#EA9062",primary:"#DD7B4A",primarydark:"#D3591C",successlight:"#6ACF6A",success:"#43BF43",successdark:"#3E913E",errorlight:"#C15757",error:"#B34141",errordark:"#752525",secondarylight:"#AAA",secondary:"#888",secondarydark:"#666",warninglight:"#E6E69D",warning:"#DADA56",warningdark:"#A1A106",infolight:"#69f",info:"#36c",infodark:"#039",welllight:"#444",well:"#222",white:"#fff",black:"#000",hp:"#dd3434",money:"#ffd700",hack:"#adff2f",combat:"#faffdf",cha:"#AD84CF",int:"#6495ed",rep:"#faffdf",disabled:"#76C6B7",backgroundprimary:"#000",backgroundsecondary:"#000",button:"#333"}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));const a={name:"Dark+",credit:"LoganMD",description:"VSCode Dark+",reference:"https://discord.com/channels/415207508303544321/921991895230611466/921999975867617310",screenshot:n(937).a,colors:{primarylight:"#E0E0BC",primary:"#CCCCAE",primarydark:"#B8B89C",successlight:"#00F000",success:"#00D200",successdark:"#00B400",errorlight:"#F00000",error:"#C80000",errordark:"#A00000",secondarylight:"#B4AEAE",secondary:"#969090",secondarydark:"#787272",warninglight:"#F0F000",warning:"#C8C800",warningdark:"#A0A000",infolight:"#69f",info:"#36c",infodark:"#039",welllight:"#444",well:"#222",white:"#fff",black:"#1E1E1E",hp:"#dd3434",money:"#ffd700",hack:"#adff2f",combat:"#faffdf",cha:"#a671d1",int:"#6495ed",rep:"#faffdf",disabled:"#66cfbc",backgroundprimary:"#1E1E1E",backgroundsecondary:"#252525",button:"#333"}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));const a={name:"Mayukai Dark",description:"Mayukai Dark-esque",credit:"Festive Noire",reference:"https://discord.com/channels/415207508303544321/921991895230611466/922037502334889994",screenshot:n(938).a,colors:{primarylight:"#DDDFC5",primary:"#CDCFB6",primarydark:"#9D9F8C",successlight:"#00EF00",success:"#00A500",successdark:"#007A00",errorlight:"#F92672",error:"#CA1C5C",errordark:"#90274A",secondarylight:"#AAA",secondary:"#888",secondarydark:"#666",warninglight:"#D3D300",warning:"#cc0",warningdark:"#990",infolight:"#69f",info:"#36c",infodark:"#039",welllight:"#444",well:"#00010A",white:"#fff",black:"#020509",hp:"#dd3434",money:"#ffd700",hack:"#8CCF27",combat:"#faffdf",cha:"#a671d1",int:"#6495ed",rep:"#faffdf",disabled:"#66cfbc",backgroundprimary:"#080C11",backgroundsecondary:"#03080F",button:"#00010A"}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));const a={name:"Purple",credit:"zer0ney",description:"Essentially all defaults except for purple replacing the main colors",reference:"https://discord.com/channels/415207508303544321/921991895230611466/922091815849570395",screenshot:n(939).a,colors:{primarylight:"#BA55D3",primary:"#9370DB",primarydark:"#8A2BE2",successlight:"#BA55D3",success:"#9370DB",successdark:"#8A2BE2",errorlight:"#f00",error:"#c00",errordark:"#900",secondarylight:"#AAA",secondary:"#888",secondarydark:"#666",warninglight:"#ff0",warning:"#cc0",warningdark:"#990",infolight:"#69f",info:"#36c",infodark:"#039",welllight:"#444",well:"#222",white:"#fff",black:"#000",hp:"#dd3434",money:"#ffd700",hack:"#adff2f",combat:"#faffdf",cha:"#a671d1",int:"#6495ed",rep:"#faffdf",disabled:"#66cfbc",backgroundprimary:"#000",backgroundsecondary:"#000",button:"#333"}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));const a={name:"Smooth Green",description:"A nice green theme that doesn't hurt your eyes.",credit:"Swidt",reference:"https://discord.com/channels/415207508303544321/921991895230611466/922243957986033725",screenshot:n(940).a,colors:{primarylight:"#E0E0BC",primary:"#B0D9A3",primarydark:"#B8B89C",successlight:"#00F000",success:"#6BC16B",successdark:"#00B400",errorlight:"#F00000",error:"#3D713D",errordark:"#A00000",secondarylight:"#B4AEAE",secondary:"#8FAF85",secondarydark:"#787272",warninglight:"#F0F000",warning:"#38F100",warningdark:"#A0A000",infolight:"#69f",info:"#36c",infodark:"#039",welllight:"#444",well:"#2F3C2B",white:"#fff",black:"#1E1E1E",hp:"#dd3434",money:"#4AA52E",hack:"#adff2f",combat:"#faffdf",cha:"#a671d1",int:"#6495ed",rep:"#35A135",disabled:"#66cfbc",backgroundprimary:"#1E1E1E",backgroundsecondary:"#252525",button:"#2F3C2B"}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));const a={name:"Dracula",description:"Dracula Look-alike",credit:"H3draut3r",reference:"https://discord.com/channels/415207508303544321/921991895230611466/922296307836678144",screenshot:n(941).a,colors:{primarylight:"#7082B8",primary:"#F8F8F2",primarydark:"#FF79C6",successlight:"#0f0",success:"#0c0",successdark:"#090",errorlight:"#FD4545",error:"#FF2D2D",errordark:"#C62424",secondarylight:"#AAA",secondary:"#8BE9FD",secondarydark:"#666",warninglight:"#FFC281",warning:"#FFB86C",warningdark:"#E6A055",infolight:"#A0A0FF",info:"#7070FF",infodark:"#4040FF",welllight:"#44475A",well:"#363948",white:"#fff",black:"#282A36",hp:"#D34448",money:"#50FA7B",hack:"#F1FA8C",combat:"#BD93F9",cha:"#FF79C6",int:"#6495ed",rep:"#faffdf",disabled:"#66cfbc",backgroundprimary:"#282A36",backgroundsecondary:"#21222C",button:"#21222C"}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));const a={name:"Dark Blue",description:"Very dark with a blue/purplelly primary",credit:"Saynt_Garmo",reference:"https://discord.com/channels/415207508303544321/921991895230611466/923084732718264340",screenshot:n(942).a,colors:{primarylight:"#023DDE",primary:"#4A41C8",primarydark:"#005299",successlight:"#00FF00",success:"#D1DAD1",successdark:"#BFCABF",errorlight:"#f00",error:"#c00",errordark:"#900",secondarylight:"#AAA",secondary:"#888",secondarydark:"#666",warninglight:"#ff0",warning:"#cc0",warningdark:"#990",infolight:"#69f",info:"#36c",infodark:"#039",welllight:"#444",well:"#040505",white:"#fff",black:"#000000",hp:"#dd3434",money:"#ffd700",hack:"#adff2f",combat:"#faffdf",cha:"#a671d1",int:"#6495ed",rep:"#faffdf",disabled:"#66cfbc",backgroundprimary:"#091419",backgroundsecondary:"#000000",button:"#000000"}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));const a={name:"Discord-like",description:"Discord inspired theme",credit:"Thermite",reference:"https://discord.com/channels/415207508303544321/921991895230611466/924305252017143818",screenshot:n(943).a,colors:{primarylight:"#7389DC",primary:"#7389DC",primarydark:"#5964F1",successlight:"#00CC00",success:"#20DF20",successdark:"#0CB80C",errorlight:"#EA5558",error:"#EC4145",errordark:"#E82528",secondarylight:"#C3C3C3",secondary:"#9C9C9C",secondarydark:"#4E4E4E",warninglight:"#ff0",warning:"#cc0",warningdark:"#990",infolight:"#69f",info:"#36c",infodark:"#1C4FB3",welllight:"#999999",well:"#35383C",white:"#FFFFFF",black:"#202225",hp:"#FF5656",money:"#43FF43",hack:"#FFAB3D",combat:"#8A90FD",cha:"#FF51D9",int:"#6495ed",rep:"#FFFF30",disabled:"#474B51",backgroundprimary:"#2F3136",backgroundsecondary:"#35393E",button:"#333"}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));const a={name:"One Dark",description:"Dark with a greenish tint",credit:"Dexalt142",reference:"https://discord.com/channels/415207508303544321/921991895230611466/924650660694208512",screenshot:n(944).a,colors:{primarylight:"#98C379",primary:"#98C379",primarydark:"#98C379",successlight:"#98C379",success:"#98C379",successdark:"#98C379",errorlight:"#E06C75",error:"#BE5046",errordark:"#BE5046",secondarylight:"#AAA",secondary:"#888",secondarydark:"#666",warninglight:"#E5C07B",warning:"#E5C07B",warningdark:"#D19A66",infolight:"#61AFEF",info:"#61AFEF",infodark:"#61AFEF",welllight:"#4B5263",well:"#282C34",white:"#ABB2BF",black:"#282C34",hp:"#E06C75",money:"#E5C07B",hack:"#98C379",combat:"#ABB2BF",cha:"#C678DD",int:"#61AFEF",rep:"#ABB2BF",disabled:"#56B6C2",backgroundprimary:"#282C34",backgroundsecondary:"#21252B",button:"#4B5263"}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));const a={name:"Muted Gold & Blue",description:"Muted gold with blue accents.",credit:"Sloth",reference:"https://discord.com/channels/415207508303544321/921991895230611466/924672660758208563",screenshot:n(945).a,colors:{primarylight:"#E3B54A",primary:"#CAA243",primarydark:"#7E6937",successlight:"#82FF82",success:"#6FDA6F",successdark:"#64C364",errorlight:"#FD5555",error:"#D84A4A",errordark:"#AC3939",secondarylight:"#D8D0B8",secondary:"#B1AA95",secondarydark:"#736E5E",warninglight:"#ff0",warning:"#cc0",warningdark:"#990",infolight:"#69f",info:"#36c",infodark:"#039",welllight:"#444",well:"#111111",white:"#fff",black:"#070300",hp:"#dd3434",money:"#ffd700",hack:"#adff2f",combat:"#faffdf",cha:"#a671d1",int:"#6495ed",rep:"#faffdf",disabled:"#66cfbc",backgroundprimary:"#0A0A0E",backgroundsecondary:"#0E0E10",button:"#222222"}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));const a={name:"Light",description:"Cobbled Together Light Theme",credit:"matt",reference:"https://discord.com/channels/415207508303544321/921991895230611466/926114005456658432",screenshot:n(946).a,colors:{primarylight:"#535353",primary:"#1A1A1A",primarydark:"#0d0d0d",successlight:"#63c439",success:"#428226",successdark:"#2E5A1B",errorlight:"#df7051",error:"#C94824",errordark:"#91341B",secondarylight:"#b3b3b3",secondary:"#9B9B9B",secondarydark:"#7A7979",warninglight:"#e8d464",warning:"#C6AD20",warningdark:"#9F8A16",infolight:"#6299cf",info:"#3778B7",infodark:"#30689C",welllight:"#f9f9f9",well:"#eaeaea",white:"#F7F7F7",black:"#F7F7F7",hp:"#BF5C41",money:"#E1B121",hack:"#47BC38",combat:"#656262",cha:"#A568AC",int:"#889BCF",rep:"#656262",disabled:"#70B4BF",backgroundprimary:"#F7F7F7",backgroundsecondary:"#f9f9f9",button:"#eaeaea"}}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";t.a="dist/images/83b2443ab7e7d346766c8f6bc5afc7a7.png"},function(e,t,n){"use strict";t.a="dist/images/6caf35202b10b52e1fc2743f674c33e8.png"},function(e,t,n){"use strict";t.a="dist/images/cb88977ea837bccb9cceb727adc78302.png"},function(e,t,n){"use strict";t.a="dist/images/4e0e750f2f09de58219773edd46cbbf5.png"},function(e,t,n){"use strict";t.a="dist/images/e97de4daa946331c7e99dee9c05d629c.png"},function(e,t,n){"use strict";t.a="dist/images/9f96a5084f4e5f1a6c0041b41b34d62d.png"},function(e,t,n){"use strict";t.a="dist/images/85a7b2896acb62be76f3ea7100fe9012.png"},function(e,t,n){"use strict";t.a="dist/images/5aa87b7de67a77c914088783b055e1cf.png"},function(e,t,n){"use strict";t.a="dist/images/c7164b072d62c91c27c6d607b5207e7b.png"},function(e,t,n){"use strict";t.a="dist/images/66f4b86d86164fc117bd6d648e4eaa6f.png"},function(e,t,n){"use strict";t.a="dist/images/a1110d6c8d16a14c4570411750248399.png"},function(e,t,n){"use strict";t.a="dist/images/447bc31e61f55e7eff875be3e9a81f1a.png"},function(e,t,n){"use strict";t.a="dist/images/297df8c0e47764ea113951318b2acf55.png"},function(e,t,n){"use strict";t.a="dist/images/e66b0c327f97d08e4253f52234d659eb.png"},,,,,,,,,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return ue}));var a=n(248),r=n(91),i=n(44),o=n(60),s=n(116),l=n(336),c=n(99),f=n(12),u=n(27),m=n(83),h=n(492),d=n(42),p=n(137),g=n(495),y=n(87),b=n(5),E=n(256),v=n(100),k=n(6),w=n(24),_=n(1432),S=n(1433),C=n(1434),x=n(1435),L=n(1436),O=n(1437),M=n(1438),T=n(1439),A=n(1440),R=n(614),N=n(1441),P=n(1442),I=n(1443),F=n(1444),D=n(1445),j=n(1446),B=n(1447),G=n(1448),W=n(1449),H=n(1450),U=n(1451),q=n(1452),$=n(1453),K=n(1454),z=n(1455),V=n(1457),Y=n(1458),J=n(1459),X=n(1462),Q=n(1463),Z=n(1464),ee=n(1465),te=n(1466),ne=n(1467),ae=n(1468),re=n(1469),ie=n(1470),oe=n(1471),se=n(257),le=n(1472),ce=n(21);function fe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class ue{constructor(){fe(this,"action",null),fe(this,"commandHistory",[]),fe(this,"commandHistoryIndex",0),fe(this,"outputHistory",[new a.b(`Bitburner v${f.a.VersionString} (${Object(se.a)()})`,"primary")]),fe(this,"contractOpen",!1),fe(this,"currDir","/")}process(e,t,n){null!==this.action&&(this.action.timeLeft-=f.a._idleSpeed*n/1e3,this.action.timeLeft<.01&&this.finishAction(e,t,!1),l.b.emit())}append(e){this.outputHistory.push(e),this.outputHistory.length>b.a.MaxTerminalCapacity&&this.outputHistory.splice(0,this.outputHistory.length-b.a.MaxTerminalCapacity),l.b.emit()}print(e){this.append(new a.b(e,"primary"))}printRaw(e){this.append(new a.c(e))}error(e){this.append(new a.b(e,"error"))}success(e){this.append(new a.b(e,"success"))}info(e){this.append(new a.b(e,"info"))}warn(e){this.append(new a.b(e,"warn"))}startHack(e){const t=e.getCurrentServer();if(t instanceof r.a)this.error("Cannot hack this kind of server");else{if(!(t instanceof i.a))throw new Error("server should be normal server");this.startAction(Object(v.d)(t,e)/4,"h",t)}}startGrow(e){const t=e.getCurrentServer();if(t instanceof r.a)this.error("Cannot grow this kind of server");else{if(!(t instanceof i.a))throw new Error("server should be normal server");this.startAction(Object(v.a)(t,e)/16,"g",t)}}startWeaken(e){const t=e.getCurrentServer();if(t instanceof r.a)this.error("Cannot weaken this kind of server");else{if(!(t instanceof i.a))throw new Error("server should be normal server");this.startAction(Object(v.f)(t,e)/16,"w",t)}}startBackdoor(e){const t=e.getCurrentServer();if(t instanceof r.a)this.error("Cannot backdoor this kind of server");else{if(!(t instanceof i.a))throw new Error("server should be normal server");this.startAction(Object(v.d)(t,e)/4,"b",t)}}startAnalyze(e){this.print("Analyzing system...");const t=e.getCurrentServer();this.startAction(1,"a",t)}startAction(e,t,n){this.action=new a.d(e,t,n)}finishHack(e,t,n,a=!1){if(a)return;if(n instanceof r.a)return void this.error("Cannot hack this kind of server");if(!(n instanceof i.a))throw new Error("server should be normal server");const o=Object(v.b)(n,t),s=Math.random(),l=Object(v.c)(n,t),c=l/4;if(s<o){if(n.backdoorInstalled=!0,y.a.WorldDaemon===n.hostname)return void e.toBitVerse(!1,!1);let a=Object(v.e)(n,t)*ce.a.ManualHackMoney;a=Math.floor(n.moneyAvailable*a),a<=0&&(a=0),n.moneyAvailable-=a,t.gainMoney(a,"hacking"),t.gainHackingExp(l),t.gainIntelligenceExp(l/f.a.IntelligenceTerminalHackBaseExpGain);const r=n.hackDifficulty;n.fortify(f.a.ServerFortifyAmount);const i=n.hackDifficulty;this.print(`Hack successful on '${n.hostname}'! Gained ${k.a.formatMoney(a)} and ${k.a.formatExp(l)} hacking exp`),this.print(`Security increased on '${n.hostname}' from ${k.a.formatSecurity(r)} to ${k.a.formatSecurity(i)}`)}else t.gainHackingExp(c),this.print(`Failed to hack '${n.hostname}'. Gained ${k.a.formatExp(c)} hacking exp`)}finishGrow(e,t,n=!1){if(n)return;if(t instanceof r.a)return void this.error("Cannot grow this kind of server");if(!(t instanceof i.a))throw new Error("server should be normal server");const a=Object(v.c)(t,e),o=t.hackDifficulty,s=Object(p.f)(t,25,e,t.cpuCores)-1,l=t.hackDifficulty;e.gainHackingExp(a),this.print(`Available money on '${t.hostname}' grown by ${k.a.formatPercentage(s,6)}. Gained ${k.a.formatExp(a)} hacking exp.`),this.print(`Security increased on '${t.hostname}' from ${k.a.formatSecurity(o)} to ${k.a.formatSecurity(l)}`)}finishWeaken(e,t,n=!1){if(n)return;if(t instanceof r.a)return void this.error("Cannot weaken this kind of server");if(!(t instanceof i.a))throw new Error("server should be normal server");const a=Object(v.c)(t,e),o=t.hackDifficulty;t.weaken(f.a.ServerWeakenAmount);const s=t.hackDifficulty;e.gainHackingExp(a),this.print(`Security decreased on '${t.hostname}' from ${k.a.formatSecurity(o)} to ${k.a.formatSecurity(s)} (min: ${k.a.formatSecurity(t.minDifficulty)}) and Gained ${k.a.formatExp(a)} hacking exp.`)}finishBackdoor(e,t,n,a=!1){if(!a){if(n instanceof r.a)return void this.error("Cannot hack this kind of server");if(!(n instanceof i.a))throw new Error("server should be normal server");if(n.backdoorInstalled=!0,y.a.WorldDaemon===n.hostname)return null==t.bitNodeN&&(t.bitNodeN=1),void e.toBitVerse(!1,!1);this.print(`Backdoor on '${n.hostname}' successful!`)}}finishAnalyze(e,t,n=!1){if(!n){const n=t instanceof r.a;this.print(t.hostname+": ");const a=t.organizationName;this.print("Organization name: "+(n?"player":a));const o=!n&&t.hasAdminRights||n;this.print("Root Access: "+(o?"YES":"NO"));const s=o&&t.maxRam>0;if(this.print("Can run scripts on this host: "+(s?"YES":"NO")),this.print("RAM: "+k.a.formatRAM(t.maxRam)),t instanceof i.a){this.print("Backdoor: "+(t.backdoorInstalled?"YES":"NO"));const a=t.requiredHackingSkill;this.print("Required hacking skill for hack() and backdoor: "+(n?"N/A":a));const r=t.hackDifficulty;this.print("Server security level: "+(n?"N/A":k.a.formatServerSecurity(r)));const i=Object(v.b)(t,e);this.print("Chance to hack: "+(n?"N/A":k.a.formatPercentage(i)));const o=1e3*Object(v.d)(t,e);this.print("Time to hack: "+(n?"N/A":Object(w.d)(o,!0)))}if(this.print("Total money available on server: "+(t instanceof i.a?k.a.formatMoney(t.moneyAvailable):"N/A")),t instanceof i.a){const e=t.numOpenPortsRequired;this.print("Required number of open ports for NUKE: "+(n?"N/A":e)),this.print("SSH port: "+(t.sshPortOpen?"Open":"Closed")),this.print("FTP port: "+(t.ftpPortOpen?"Open":"Closed")),this.print("SMTP port: "+(t.smtpPortOpen?"Open":"Closed")),this.print("HTTP port: "+(t.httpPortOpen?"Open":"Closed")),this.print("SQL port: "+(t.sqlPortOpen?"Open":"Closed"))}}}finishAction(e,t,n=!1){if(null!==this.action){if(!this.action.server)throw new Error("Missing action target server");this.print(this.getProgressText()),"h"===this.action.action?this.finishHack(e,t,this.action.server,n):"g"===this.action.action?this.finishGrow(t,this.action.server,n):"w"===this.action.action?this.finishWeaken(t,this.action.server,n):"b"===this.action.action?this.finishBackdoor(e,t,this.action.server,n):"a"===this.action.action&&this.finishAnalyze(t,this.action.server,n),n&&this.print("Cancelled"),this.action=null,l.b.emit()}else if(!n)throw new Error("Finish action called when there was no action")}getFile(e,t){return Object(c.a)(t)?this.getScript(e,t):t.endsWith(".lit")?this.getLitFile(e,t):t.endsWith(".txt")?this.getTextFile(e,t):null}getFilepath(e){const t=Object(m.d)(e,this.cwd());if(null==t)throw new Error("Invalid file path specified: "+e);return Object(m.h)(t)?Object(m.k)(t):t}getScript(e,t){const n=e.getCurrentServer(),a=this.getFilepath(t);for(const e of n.scripts)if(a===e.filename)return e;return null}getTextFile(e,t){const n=e.getCurrentServer(),a=this.getFilepath(t);for(const e of n.textFiles)if(a===e.fn)return e;return null}getLitFile(e,t){const n=e.getCurrentServer(),a=this.getFilepath(t);for(const e of n.messages)if("string"==typeof e&&a===e)return e;return null}cwd(){return this.currDir}setcwd(e){this.currDir=e,l.b.emit()}async runContract(e,t){if(this.contractOpen)return this.error("There's already a Coding Contract in Progress");const n=e.getCurrentServer(),a=n.getContract(t);if(null==a)return this.error("No such contract");this.contractOpen=!0;const r=await a.prompt();if(null==n.getContract(t))return this.contractOpen=!1,this.error("Contract no longer exists (Was it solved by a script?)");switch(r){case s.b.Success:if(null!==a.reward){const t=e.gainCodingContractReward(a.reward,a.getDifficulty());this.print("Contract SUCCESS - "+t)}n.removeContract(a);break;case s.b.Failure:++a.tries,a.tries>=a.getMaxNumTries()?(this.error("Contract FAILED - Contract is now self-destructing"),n.removeContract(a)):this.error(`Contract FAILED - ${a.getMaxNumTries()-a.tries} tries remaining`);break;case s.b.Cancelled:default:this.print("Contract cancelled")}this.contractOpen=!1}executeScanAnalyzeCommand(e,t=1,n=!1){this.print("~~~~~~~~~~ Beginning scan-analyze ~~~~~~~~~~"),this.print(" ");const i={};for(const e of Object(u.c)())i[e.hostname]=0;const s=[],l=[0],c=e.getCurrentServer();for(s.push(c);0!=s.length;){const c=s.pop();if(!c)continue;const f=l.pop();if(void 0===f)continue;const u=c instanceof r.a;if(!n&&c.purchasedByPlayer&&"home"!=c.hostname)continue;if(i[c.hostname]||f>t)continue;if(!n&&u)continue;i[c.hostname]=1;for(let e=c.serversOnNetwork.length-1;e>=0;--e){const t=Object(p.a)(c,e);null!==t&&(s.push(t),l.push(f+1))}if(0==f)continue;const m=Array(4*(f-1)+1).join("-");e.hasProgram(o.a.AutoLink.name)?this.append(new a.a(m,c.hostname)):this.print(m+c.hostname);const h=m+"--";let d="NO";c.hasAdminRights&&(d="YES"),this.print(`${h}Root Access: ${d}${u?"":", Required hacking skill: "+c.requiredHackingSkill}`),c.hasOwnProperty("numOpenPortsRequired")&&this.print(h+"Number of open ports required to NUKE: "+c.numOpenPortsRequired),this.print(h+"RAM: "+k.a.formatRAM(c.maxRam)),this.print(" ")}}connectToServer(e,t){const n=Object(u.d)(t);null!=n?(e.getCurrentServer().isConnectedTo=!1,e.currentServer=n.hostname,e.getCurrentServer().isConnectedTo=!0,this.print("Connected to "+n.hostname),this.setcwd("/"),"darkweb"==e.getCurrentServer().hostname&&Object(h.c)()):this.error("Invalid server. Connection failed.")}executeCommands(e,t,n){n=(n=n.trim()).replace(/\s\s+/g," "),this.commandHistory[this.commandHistory.length-1]!=n&&(this.commandHistory.push(n),this.commandHistory.length>50&&this.commandHistory.splice(0,1),t.terminalCommandHistory=this.commandHistory),this.commandHistoryIndex=this.commandHistory.length;const a=Object(g.b)(n);for(let n=0;n<a.length;n++)this.executeCommand(e,t,a[n])}clear(){this.outputHistory=[new a.b(`Bitburner v${f.a.VersionString} (${Object(se.a)()})`,"primary")],l.b.emit(),l.a.emit()}prestige(){this.action=null,this.clear()}executeCommand(e,t,n){if(null!==this.action)return void this.error(`Cannot execute command (${n}) while an action is in progress`);n.startsWith("./")&&(n="run "+n.slice(2));const a=Object(g.a)(n);if(0==a.length)return;const r=t.getCurrentServer();if(d.a.isRunning){const e=Object(u.d)("n00dles");if(null==e)throw new Error("Could not get n00dles server");switch(d.a.currStep){case d.f.TerminalHelp:if(1!==a.length||"help"!=a[0])return void this.error("Bad command. Please follow the tutorial");Object(d.c)();break;case d.f.TerminalLs:if(1!==a.length||"ls"!=a[0])return void this.error("Bad command. Please follow the tutorial");Object(d.c)();break;case d.f.TerminalScan:if(1!==a.length||"scan"!=a[0])return void this.error("Bad command. Please follow the tutorial");Object(d.c)();break;case d.f.TerminalScanAnalyze1:if(1!=a.length||"scan-analyze"!=a[0])return void this.error("Bad command. Please follow the tutorial");Object(d.c)();break;case d.f.TerminalScanAnalyze2:if(2!=a.length||"scan-analyze"!=a[0]||2!==a[1])return void this.error("Bad command. Please follow the tutorial");Object(d.c)();break;case d.f.TerminalConnect:if(2!=a.length)return void this.error("Bad command. Please follow the tutorial");if("connect"!=a[0]||"n00dles"!=a[1]&&a[1]!=e.hostname)return void this.error("Wrong command! Try again!");Object(d.c)();break;case d.f.TerminalAnalyze:if(1!==a.length||"analyze"!==a[0])return void this.error("Bad command. Please follow the tutorial");Object(d.c)();break;case d.f.TerminalNuke:if(2!=a.length||"run"!=a[0]||"NUKE.exe"!=a[1])return void this.error("Bad command. Please follow the tutorial");Object(d.c)();break;case d.f.TerminalManualHack:if(1!=a.length||"hack"!=a[0])return void this.error("Bad command. Please follow the tutorial");Object(d.c)();break;case d.f.TerminalHackingMechanics:if(1!==a.length||!["grow","weaken","hack"].includes(a[0]+""))return void this.error("Bad command. Please follow the tutorial");break;case d.f.TerminalGoHome:if(1!=a.length||"home"!=a[0])return void this.error("Bad command. Please follow the tutorial");Object(d.c)();break;case d.f.TerminalCreateScript:if(2!=a.length||"nano"!=a[0]||"n00dles.script"!=a[1]&&"n00dles.js"!=a[1])return void this.error("Bad command. Please follow the tutorial");Object(d.c)();break;case d.f.TerminalFree:if(1!=a.length||"free"!=a[0])return void this.error("Bad command. Please follow the tutorial");Object(d.c)();break;case d.f.TerminalRunScript:if(2!=a.length||"run"!=a[0]||"n00dles.script"!=a[1]&&"n00dles.js"!=a[1])return void this.error("Bad command. Please follow the tutorial");Object(d.c)();break;case d.f.ActiveScriptsToTerminal:if(2!=a.length||"tail"!=a[0]||"n00dles.script"!=a[1]&&"n00dles.js"!=a[1])return void this.error("Bad command. Please follow the tutorial");Object(d.c)();break;default:return void this.error("Please follow the tutorial, or click 'EXIT' if you'd like to skip it")}}const i=a[0];if("number"==typeof i||"boolean"==typeof i)return void this.error(`Command ${a[0]} not found`);const o={"scan-analyze":Q.a,alias:_.a,analyze:S.a,backdoor:C.a,buy:x.a,cat:L.a,cd:O.a,check:M.a,clear:()=>this.clear(),cls:()=>this.clear(),connect:T.a,cp:A.a,download:R.a,expr:N.a,free:P.a,grow:I.a,hack:F.a,help:D.a,history:j.a,home:B.a,hostname:G.a,kill:W.a,killall:H.a,ls:U.a,lscpu:q.a,mem:$.a,mv:K.a,nano:z.a,ps:V.a,rm:Y.a,run:J.a,scan:X.a,scp:Z.a,sudov:ee.a,tail:te.a,apr1:le.a,top:ne.a,unalias:ae.a,vim:re.a,weaken:ie.a,wget:oe.a}[i.toLowerCase()];o?o(this,e,t,r,a.slice(1)):this.error(`Command ${a[0]} not found`)}getProgressText(){if(null===this.action)throw new Error("trying to get the progress text when there's no action");return Object(E.a)({progress:(this.action.time-this.action.timeLeft)/this.action.time,totalTicks:50})}}},,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var a=n(33),r=n(981),i=n(398),o=n(667);function s(e){let t=e;return t.startsWith("[")&&(t=t.slice(1)),t.endsWith("]")&&(t=t.slice(0,-1)),t}function l(e){let t=e;return(t.startsWith('"')||t.startsWith("'"))&&(t=t.slice(1)),(t.endsWith('"')||t.endsWith("'"))&&(t=t.slice(0,-1)),t}function c(e){const t=[];return e.forEach(e=>{let n=e.toString();n=["[",n,"]"].join(""),t.push(n)}),t.join(",").replace(/\s/g,"")}const f=[{desc:e=>["A prime factor is a factor that is a prime number.",`What is the largest prime factor of ${e}?`].join(" "),difficulty:1,gen:()=>Object(a.a)(500,1e9),name:"Find Largest Prime Factor",numTries:10,solver:(e,t)=>{let n=2,a=e;for(;a>(n-1)*(n-1);){for(;a%n==0;)a=Math.round(a/n);++n}return(1===a?n-1:a)===parseInt(t,10)}},{desc:e=>["Given the following integer array, find the contiguous subarray","(containing at least one number) which has the largest sum and return that sum.","'Sum' refers to the sum of all the numbers in the subarray.\n",""+e.toString()].join(" "),difficulty:1,gen:()=>{const e=Object(a.a)(5,40),t=[];t.length=e;for(let n=0;n<e;++n)t[n]=Object(a.a)(-10,10);return t},name:"Subarray with Maximum Sum",numTries:10,solver:(e,t)=>{const n=e.slice();for(let e=1;e<n.length;e++)n[e]=Math.max(n[e],n[e]+n[e-1]);return parseInt(t,10)===Math.max(...n)}},{desc:e=>["It is possible write four as a sum in exactly four different ways:\n\n"," 3 + 1\n"," 2 + 2\n"," 2 + 1 + 1\n"," 1 + 1 + 1 + 1\n\n",`How many different distinct ways can the number ${e} be written as a sum of at least`,"two positive integers?"].join(" "),difficulty:1.5,gen:()=>Object(a.a)(8,100),name:"Total Ways to Sum",numTries:10,solver:(e,t)=>{const n=[1];n.length=e+1,n.fill(0,1);for(let t=1;t<e;++t)for(let a=t;a<=e;++a)n[a]+=n[a-t];return n[e]===parseInt(t,10)}},{desc:e=>[`How many different distinct ways can the number ${e[0]} be written`,"as a sum of integers contained in the set:\n\n",`[${e[1]}]?\n\n`,"You may use each integer in the set zero or more times."].join(" "),difficulty:2,gen:()=>{const e=Object(a.a)(12,200),t=Object(a.a)(8,12),n=[];for(let a=1;a<=e&&n.length!=t;a++)(Math.random()<.6||e-a<t-n.length)&&n.push(a);return[e,n]},name:"Total Ways to Sum II",numTries:10,solver:(e,t)=>{const n=e[0],a=e[1],r=[1];r.length=n+1,r.fill(0,1);for(let e=0;e<a.length;e++)for(let t=a[e];t<=n;t++)r[t]+=r[t-a[e]];return r[n]===parseInt(t,10)}},{desc:e=>{let t=["Given the following array of arrays of numbers representing a 2D matrix,","return the elements of the matrix as an array in spiral order:\n\n"].join(" ");return t+=" [\n",t+=e.map(e=>" ["+e.map(e=>(""+e).padStart(2," ")).join(",")+"]").join("\n"),t+="\n ]\n",t+=["\nHere is an example of what spiral order should be:\n\n"," [\n"," [1, 2, 3]\n"," [4, 5, 6]\n"," [7, 8, 9]\n"," ]\n\n","Answer: [1, 2, 3, 6, 9, 8 ,7, 4, 5]\n\n","Note that the matrix will not always be square:\n\n"," [\n"," [1, 2, 3, 4]\n"," [5, 6, 7, 8]\n"," [9, 10, 11, 12]\n"," ]\n\n","Answer: [1, 2, 3, 4, 8, 12, 11, 10, 9, 5, 6, 7]"].join(" "),t},difficulty:2,gen:()=>{const e=Object(a.a)(1,15),t=Object(a.a)(1,15),n=[];n.length=e;for(let a=0;a<e;++a)n[a]=[],n[a].length=t;for(let r=0;r<e;++r)for(let e=0;e<t;++e)n[r][e]=Object(a.a)(1,50);return n},name:"Spiralize Matrix",numTries:10,solver:(e,t)=>{const n=[];let a=0,r=e.length-1,i=0,o=e[0].length-1,l=0;for(;;){for(let t=i;t<=o;t++)n[l]=e[a][t],++l;if(++a>r)break;for(let t=a;t<=r;t++)n[l]=e[t][o],++l;if(--o<i)break;for(let t=o;t>=i;t--)n[l]=e[r][t],++l;if(--r<a)break;for(let t=r;t>=a;t--)n[l]=e[t][i],++l;if(++i>o)break}const c=s(t).replace(/\s/g,"").split(",");for(let e=0;e<c.length;++e)c[e]=parseInt(c[e],10);if(n.length!==c.length)return!1;for(let e=0;e<n.length;++e)if(n[e]!==c[e])return!1;return!0}},{desc:e=>["You are given the following array of integers:\n\n",e+"\n\n","Each element in the array represents your MAXIMUM jump length","at that position. This means that if you are at position i and your","maximum jump length is n, you can jump to any position from","i to i+n.","\n\nAssuming you are initially positioned","at the start of the array, determine whether you are","able to reach the last index.\n\n","Your answer should be submitted as 1 or 0, representing true and false respectively"].join(" "),difficulty:2.5,gen:()=>{const e=Object(a.a)(3,25),t=[];t.length=e;for(let e=0;e<t.length;++e)Math.random()<.2?t[e]=0:t[e]=Object(a.a)(0,10);return t},name:"Array Jumping Game",numTries:1,solver:(e,t)=>{const n=e.length;let a=0;for(let t=0;a<n&&a<=t;++a)t=Math.max(a+e[a],t);const r=a===n;return"1"===t&&r||"0"===t&&!r}},{desc:e=>["You are given the following array of integers:\n\n",e+"\n\n","Each element in the array represents your MAXIMUM jump length","at that position. This means that if you are at position i and your","maximum jump length is n, you can jump to any position from","i to i+n.","\n\nAssuming you are initially positioned","at the start of the array, determine the minimum number of","jumps to reach the end of the array.\n\n","If it's impossible to reach the end, then the answer should be 0."].join(" "),difficulty:3,gen:()=>{const e=Object(a.a)(3,25),t=[];t.length=e;for(let e=0;e<t.length;e++)for(let n=0;n<10;n++)if(Math.random()<=n/10+.1){t[e]=n;break}return t},name:"Array Jumping Game II",numTries:3,solver:(e,t)=>{const n=e.length;let a=0,r=0,i=-1;for(;a<n-1;){let t=-1;for(let n=a;n>i;n--)n+e[n]>a&&(a=n+e[n],t=n);if(-1===t){r=0;break}i=t,r++}return r===parseInt(t,10)}},{desc:e=>["Given the following array of arrays of numbers representing a list of","intervals, merge all overlapping intervals.\n\n",`[${c(e)}]\n\n`,"Example:\n\n","[[1, 3], [8, 10], [2, 6], [10, 16]]\n\n","would merge into [[1, 6], [8, 16]].\n\n","The intervals must be returned in ASCENDING order.","You can assume that in an interval, the first number will always be","smaller than the second."].join(" "),difficulty:3,gen:()=>{const e=[],t=Object(a.a)(3,20);for(let n=0;n<t;++n){const t=Object(a.a)(1,25),n=t+Object(a.a)(1,10);e.push([t,n])}return e},name:"Merge Overlapping Intervals",numTries:15,solver:(e,t)=>{const n=e.slice();n.sort((e,t)=>e[0]-t[0]);const a=[];let r=n[0][0],i=n[0][1];for(const e of n)e[0]<=i?i=Math.max(i,e[1]):(a.push([r,i]),r=e[0],i=e[1]);a.push([r,i]);const o=c(a),l=t.replace(/\s/g,"");return o===l||o===s(l)}},{desc:e=>["Given the following string containing only digits, return","an array with all possible valid IP address combinations","that can be created from the string:\n\n",e+"\n\n","Note that an octet cannot begin with a '0' unless the number","itself is actually 0. For example, '192.168.010.1' is not a valid IP.\n\n","Examples:\n\n","25525511135 -> [255.255.11.135, 255.255.111.35]\n","1938718066 -> [193.87.180.66]"].join(" "),difficulty:3,gen:()=>{let e="";for(let t=0;t<4;++t){e+=Object(a.a)(0,255).toString()}return e},name:"Generate IP Addresses",numTries:10,solver:(e,t)=>{const n=[];for(let t=1;t<=3;++t)for(let a=1;a<=3;++a)for(let r=1;r<=3;++r)for(let i=1;i<=3;++i)if(t+a+r+i===e.length){const o=parseInt(e.substring(0,t),10),s=parseInt(e.substring(t,t+a),10),l=parseInt(e.substring(t+a,t+a+r),10),c=parseInt(e.substring(t+a+r,t+a+r+i),10);if(o<=255&&s<=255&&l<=255&&c<=255){const t=[o.toString(),".",s.toString(),".",l.toString(),".",c.toString()].join("");t.length===e.length+3&&n.push(t)}}const a=s(t).replace(/\s/g,"").split(",");if(a.length!==n.length)return!1;for(const e of a)if(!n.includes(e))return!1;return!0}},{desc:e=>["You are given the following array of stock prices (which are numbers)","where the i-th element represents the stock price on day i:\n\n",e+"\n\n","Determine the maximum possible profit you can earn using at most","one transaction (i.e. you can only buy and sell the stock once). If no profit can be made","then the answer should be 0. Note","that you have to buy the stock before you can sell it"].join(" "),difficulty:1,gen:()=>{const e=Object(a.a)(3,50),t=[];t.length=e;for(let n=0;n<e;++n)t[n]=Object(a.a)(1,200);return t},name:"Algorithmic Stock Trader I",numTries:5,solver:(e,t)=>{let n=0,a=0;for(let t=1;t<e.length;++t)n=Math.max(0,n+=e[t]-e[t-1]),a=Math.max(n,a);return a.toString()===t}},{desc:e=>["You are given the following array of stock prices (which are numbers)","where the i-th element represents the stock price on day i:\n\n",e+"\n\n","Determine the maximum possible profit you can earn using as many","transactions as you'd like. A transaction is defined as buying","and then selling one share of the stock. Note that you cannot","engage in multiple transactions at once. In other words, you","must sell the stock before you buy it again.\n\n","If no profit can be made, then the answer should be 0"].join(" "),difficulty:2,gen:()=>{const e=Object(a.a)(3,50),t=[];t.length=e;for(let n=0;n<e;++n)t[n]=Object(a.a)(1,200);return t},name:"Algorithmic Stock Trader II",numTries:10,solver:(e,t)=>{let n=0;for(let t=1;t<e.length;++t)n+=Math.max(e[t]-e[t-1],0);return n.toString()===t}},{desc:e=>["You are given the following array of stock prices (which are numbers)","where the i-th element represents the stock price on day i:\n\n",e+"\n\n","Determine the maximum possible profit you can earn using at most","two transactions. A transaction is defined as buying","and then selling one share of the stock. Note that you cannot","engage in multiple transactions at once. In other words, you","must sell the stock before you buy it again.\n\n","If no profit can be made, then the answer should be 0"].join(" "),difficulty:5,gen:()=>{const e=Object(a.a)(3,50),t=[];t.length=e;for(let n=0;n<e;++n)t[n]=Object(a.a)(1,200);return t},name:"Algorithmic Stock Trader III",numTries:10,solver:(e,t)=>{let n=Number.MIN_SAFE_INTEGER,a=Number.MIN_SAFE_INTEGER,r=0,i=0;for(const t of e)i=Math.max(i,a+t),a=Math.max(a,r-t),r=Math.max(r,n+t),n=Math.max(n,-1*t);return i.toString()===t}},{desc:e=>["You are given the following array with two elements:\n\n",`[${e[0]}, [${e[1]}]]\n\n`,"The first element is an integer k. The second element is an","array of stock prices (which are numbers) where the i-th element","represents the stock price on day i.\n\n","Determine the maximum possible profit you can earn using at most","k transactions. A transaction is defined as buying and then selling","one share of the stock. Note that you cannot engage in multiple","transactions at once. In other words, you must sell the stock before","you can buy it again.\n\n","If no profit can be made, then the answer should be 0."].join(" "),difficulty:8,gen:()=>{const e=Object(a.a)(2,10),t=Object(a.a)(3,50),n=[];n.length=t;for(let e=0;e<t;++e)n[e]=Object(a.a)(1,200);return[e,n]},name:"Algorithmic Stock Trader IV",numTries:10,solver:(e,t)=>{const n=e[0],a=e[1],r=a.length;if(r<2)return 0===parseInt(t);if(n>r/2){let e=0;for(let t=1;t<r;++t)e+=Math.max(a[t]-a[t-1],0);return parseInt(t)===e}const i=[],o=[];i.length=n+1,o.length=n+1;for(let e=0;e<=n;++e)i[e]=Number.MIN_SAFE_INTEGER,o[e]=0;let s;for(let e=0;e<r;++e){s=a[e];for(let e=n;e>0;--e)o[e]=Math.max(o[e],i[e]+s),i[e]=Math.max(i[e],o[e-1]-s)}return parseInt(t)===o[n]}},{desc:e=>{function t(e,n=0){const a=e.length;if(n>=a)return"";let r=[" ".repeat(a-n+1),"[",e[n].toString(),"]"].join("");return n<a-1&&(r+=","),r+"\n"+t(e,n+1)}return["Given a triangle, find the minimum path sum from top to bottom. In each step","of the path, you may only move to adjacent numbers in the row below.","The triangle is represented as a 2D array of numbers:\n\n",function(e){return["[\n",t(e),"]"].join("")}(e)+"\n\n","Example: If you are given the following triangle:\n\n[\n"," [2],\n"," [3,4],\n"," [6,5,7],\n"," [4,1,8,3]\n","]\n\n","The minimum path sum is 11 (2 -> 3 -> 5 -> 1)."].join(" ")},difficulty:5,gen:()=>{const e=[],t=Object(a.a)(3,12);e.length=t;for(let n=0;n<t;++n){e[n]=[],e[n].length=n+1;for(let t=0;t<e[n].length;++t)e[n][t]=Object(a.a)(1,9)}return e},name:"Minimum Path Sum in a Triangle",numTries:10,solver:(e,t)=>{const n=e.length,a=e[n-1].slice();for(let t=n-2;t>-1;--t)for(let n=0;n<e[t].length;++n)a[n]=Math.min(a[n],a[n+1])+e[t][n];return a[0]===parseInt(t)}},{desc:e=>{const t=e[0],n=e[1];return["You are in a grid with",`${t} rows and ${n} columns, and you are`,"positioned in the top-left corner of that grid. You are trying to","reach the bottom-right corner of the grid, but you can only","move down or right on each step. Determine how many","unique paths there are from start to finish.\n\n","NOTE: The data returned for this contract is an array","with the number of rows and columns:\n\n",`[${t}, ${n}]`].join(" ")},difficulty:3,gen:()=>[Object(a.a)(2,14),Object(a.a)(2,14)],name:"Unique Paths in a Grid I",numTries:10,solver:(e,t)=>{const n=e[0],a=e[1],r=[];r.length=n;for(let e=0;e<n;e++)r[e]=1;for(let e=1;e<a;e++)for(let e=1;e<n;e++)r[e]+=r[e-1];return parseInt(t)===r[n-1]}},{desc:e=>{let t="";for(const n of e)t+=n.toString()+",\n";return["You are located in the top-left corner of the following grid:\n\n",t+"\n","You are trying reach the bottom-right corner of the grid, but you can only","move down or right on each step. Furthermore, there are obstacles on the grid","that you cannot move onto. These obstacles are denoted by '1', while empty","spaces are denoted by 0.\n\n","Determine how many unique paths there are from start to finish.\n\n","NOTE: The data returned for this contract is an 2D array of numbers representing the grid."].join(" ")},difficulty:5,gen:()=>{const e=Object(a.a)(2,12),t=Object(a.a)(2,12),n=[];n.length=e;for(let a=0;a<e;++a)n[a]=[],n[a].length=t,n[a].fill(0);for(let a=0;a<e;++a)for(let r=0;r<t;++r)0===a&&0===r||a===e-1&&r===t-1||Math.random()<.15&&(n[a][r]=1);return n},name:"Unique Paths in a Grid II",numTries:10,solver:(e,t)=>{const n=[];n.length=e.length;for(let t=0;t<n.length;++t)n[t]=e[t].slice();for(let e=0;e<n.length;e++)for(let t=0;t<n[0].length;t++)1==n[e][t]?n[e][t]=0:0==e&&0==t?n[0][0]=1:n[e][t]=(e>0?n[e-1][t]:0)+(t>0?n[e][t-1]:0);return n[n.length-1][n[0].length-1]===parseInt(t)}},{name:"Shortest Path in a Grid",desc:e=>["You are located in the top-left corner of the following grid:\n\n",` [${e.map(e=>"["+e+"]").join(",\n ")}]\n\n`,"You are trying to find the shortest path to the bottom-right corner of the grid,","but there are obstacles on the grid that you cannot move onto.","These obstacles are denoted by '1', while empty spaces are denoted by 0.\n\n","Determine the shortest path from start to finish, if one exists.","The answer should be given as a string of UDLR characters, indicating the moves along the path\n\n","NOTE: If there are multiple equally short paths, any of them is accepted as answer.","If there is no path, the answer should be an empty string.\n","NOTE: The data returned for this contract is an 2D array of numbers representing the grid.\n\n","Examples:\n\n"," [[0,1,0,0,0],\n"," [0,0,0,1,0]]\n","\n","Answer: 'DRRURRD'\n\n"," [[0,1],\n"," [1,0]]\n","\n","Answer: ''\n\n"].join(" "),difficulty:7,numTries:10,gen:()=>{const e=Object(a.a)(6,12),t=Object(a.a)(6,12),n=e-1,r=t-1,i=n+r,o=new Array(e);for(let n=0;n<e;n++)o[n]=new Array(t).fill(0);for(let a=0;a<e;a++)for(let e=0;e<t;e++){if(0==a&&0==e)continue;if(a==n&&e==r)continue;const t=Math.min(a+e,n-a+r-e)/i*.8;Math.random()<Math.max(.15,t)&&(o[a][e]=1)}return o},solver:(e,t)=>{const n=e[0].length,a=e.length,i=a-1,o=n-1,s=new Array(a),l=new r.a;for(let e=0;e<a;e++)s[e]=new Array(n).fill(1/0);function c(t,r){return t>=0&&t<a&&r>=0&&r<n&&0==e[t][r]}function*f(e,t){c(e-1,t)&&(yield[e-1,t]),c(e+1,t)&&(yield[e+1,t]),c(e,t-1)&&(yield[e,t-1]),c(e,t+1)&&(yield[e,t+1])}for(s[0][0]=0,l.push([0,0],0);l.size>0;){const[e,t]=l.pop();for(const[n,a]of f(e,t)){const r=s[e][t]+1;r<s[n][a]&&(s[n][a]==1/0?l.push([n,a],r):l.changeWeight(([e,t])=>e==n&&t==a,r),s[n][a]=r)}}if(s[i][o]==1/0)return""==t;if(t.length>s[i][o])return!1;let u=0,m=0;for(const e of t){switch(e){case"U":m-=1;break;case"D":m+=1;break;case"L":u-=1;break;case"R":u+=1;break;default:return!1}if(!c(m,u))return!1}return m==i&&u==o}},{desc:e=>["Given the following string:\n\n",e+"\n\n","remove the minimum number of invalid parentheses in order to validate","the string. If there are multiple minimal ways to validate the string,","provide all of the possible results. The answer should be provided","as an array of strings. If it is impossible to validate the string","the result should be an array with only an empty string.\n\n","IMPORTANT: The string may contain letters, not just parentheses.","Examples:\n",'"()())()" -> [()()(), (())()]\n','"(a)())()" -> [(a)()(), (a())()]\n','")(" -> [""]'].join(" "),difficulty:10,gen:()=>{const e=Object(a.a)(6,20),t=[];t.length=e,Math.random()<.8?t[0]="(":t[0]=")";for(let n=1;n<e;++n){const e=Math.random();t[n]=e<.4?"(":e<.8?")":"a"}return t.join("")},name:"Sanitize Parentheses in Expression",numTries:10,solver:(e,t)=>{let n=0,a=0;const r=[];for(let t=0;t<e.length;++t)"("===e[t]?++n:")"===e[t]&&(n>0?--n:++a);!function e(t,n,a,r,i,o,s){if(i.length!==n)"("===i[n]?(a>0&&e(t,n+1,a-1,r,i,o,s),e(t+1,n+1,a,r,i,o+i[n],s)):")"===i[n]?(r>0&&e(t,n+1,a,r-1,i,o,s),t>0&&e(t-1,n+1,a,r,i,o+i[n],s)):e(t,n+1,a,r,i,o+i[n],s);else if(0===a&&0===r&&0===t){for(let e=0;e<s.length;e++)if(s[e]===o)return;s.push(o)}}(0,0,n,a,e,"",r);const i=s(t).split(",");for(let e=0;e<i.length;++e)i[e]=l(i[e]).replace(/\s/g,"");if(i.length!==r.length)return!1;for(const e of r)if(!i.includes(e))return!1;return!0}},{desc:e=>{const t=e[0],n=e[1];return["You are given the following string which contains only digits between 0 and 9:\n\n",t+"\n\n",`You are also given a target number of ${n}. Return all possible ways`,"you can add the +(add), -(subtract), and *(multiply) operators to the string such","that it evaluates to the target number. (Normal order of operations applies.)\n\n","The provided answer should be an array of strings containing the valid expressions.","The data provided by this problem is an array with two elements. The first element","is the string of digits, while the second element is the target number:\n\n",`["${t}", ${n}]\n\n`,"NOTE: The order of evaluation expects script operator precedence","NOTE: Numbers in the expression cannot have leading 0's. In other words,",'"1+01" is not a valid expression',"Examples:\n\n",'Input: digits = "123", target = 6\n',"Output: [1+2+3, 1*2*3]\n\n",'Input: digits = "105", target = 5\n',"Output: [1*0+5, 10-5]"].join(" ")},difficulty:10,gen:()=>{const e=Object(a.a)(4,12),t=[];t.length=e;for(let e=0;e<t.length;++e)t[e]=String(0===e?Object(a.a)(1,9):Object(a.a)(0,9));const n=Object(a.a)(-100,100);return[t.join(""),n]},name:"Find All Valid Math Expressions",numTries:10,solver:(e,t)=>{const n=e[0],a=e[1];const r=s(t).split(",");for(let e=0;e<r.length;++e)r[e]=l(r[e]).replace(/\s/g,"");if(null==n||0===n.length)return 0===r.length||1===r.length&&""===r[0];const i=[];!function e(t,n,a,r,i,o,s){if(i!==a.length)for(let l=i;l<a.length&&(l==i||"0"!=a[i]);++l){const c=parseInt(a.substring(i,l+1));0===i?e(t,n+c,a,r,l+1,c,c):(e(t,n+"+"+c,a,r,l+1,o+c,c),e(t,n+"-"+c,a,r,l+1,o-c,-c),e(t,n+"*"+c,a,r,l+1,o-s+s*c,s*c))}else r===o&&t.push(n)}(i,"",n,a,0,0,0);for(const e of i)if(!r.includes(e))return!1;return!0}},{name:"HammingCodes: Integer to Encoded Binary",numTries:10,difficulty:5,desc:e=>["You are given the following decimal Value: \n",e+" \n","Convert it into a binary string and encode it as a 'Hamming-Code'. eg:\n ","Value 8 will result into binary '1000', which will be encoded","with the pattern 'pppdpddd', where p is a paritybit and d a databit,\n","or '10101' (Value 21) will result into (pppdpdddpd) '1001101011'.\n\n","NOTE: You need an parity Bit on Index 0 as an 'overall'-paritybit. \n","NOTE 2: You should watch the HammingCode-video from 3Blue1Brown, which explains the 'rule' of encoding,","including the first Index parity-bit mentioned on the first note.\n\n","Now the only one rule for this encoding:\n"," It's not allowed to add additional leading '0's to the binary value\n","That means, the binary value has to be encoded as it is"].join(" "),gen:()=>Object(a.a)(Math.pow(2,4),Math.pow(2,Object(a.a)(1,57))),solver:(e,t)=>t===Object(o.b)(e)},{name:"HammingCodes: Encoded Binary to Integer",difficulty:8,numTries:10,desc:e=>["You are given the following encoded binary string: \n",`'${e}' \n`,"The string is a Hamming code with 1 'possible' error on a random index.\n","If there is an error, find the bit that is an error and fix it.\n","Extract the encoded decimal value and return a string with that value.\n\n","NOTE: The length of the binary string is dynamic.\n","NOTE 2: Index 0 is an 'overall' parity bit. Watch the Hamming code video from 3Blue1Brown for more information.\n","NOTE 3: There's approximately a 55% chance for an altered bit. So... MAYBE there is an altered bit 😉\n","NOTE 4: Return the decimal value as a string."].join(" "),gen:()=>{const e=Math.round(Math.random()),t=Object(o.b)(Object(a.a)(Math.pow(2,4),Math.pow(2,Object(a.a)(1,57)))).split("");if(e){const e=Object(a.a)(0,t.length-1);t[e]="0"==t[e]?"1":"0"}return t.join("")},solver:(e,t)=>parseInt(t,10)===Object(o.a)(e)},{name:"Proper 2-Coloring of a Graph",difficulty:7,numTries:5,desc:e=>["You are given the following data, representing a graph:\n",JSON.stringify(e)+"\n",'Note that "graph", as used here, refers to the field of graph theory, and has',"no relation to statistics or plotting.","The first element of the data represents the number of vertices in the graph.",`Each vertex is a unique number between 0 and ${e[0]-1}.`,"The next element of the data represents the edges of the graph.","Two vertices u,v in a graph are said to be adjacent if there exists an edge [u,v].","Note that an edge [u,v] is the same as an edge [v,u], as order does not matter.","You must construct a 2-coloring of the graph, meaning that you have to assign each",'vertex in the graph a "color", either 0 or 1, such that no two adjacent vertices have',"the same color. Submit your answer in the form of an array, where element i","represents the color of vertex i. If it is impossible to construct a 2-coloring of","the given graph, instead submit an empty array.\n\n","Examples:\n\n","Input: [4, [[0, 2], [0, 3], [1, 2], [1, 3]]]\n","Output: [0, 0, 1, 1]\n\n","Input: [3, [[0, 1], [0, 2], [1, 2]]]\n","Output: []"].join(" "),gen:()=>{const e=Math.floor(5*Math.random())+3,t=Math.floor(5*Math.random())+3,n=[];for(let a=0;a<e;a++)for(let r=0;r<t;r++)Math.random()>.5&&n.push([a,e+r]);let a=Math.floor(Math.random()*(e+t)),r=Math.floor(Math.random()*(e+t));function i(e){for(let t=e.length-1;t>0;t--){const n=Math.floor(Math.random()*(t+1));[e[t],e[n]]=[e[n],e[t]]}}a>r&&([a,r]=[r,a]),a==r||n.includes([a,r])||n.push([a,r]);const o=Array.from(Array(e+t).keys());i(o);for(let e=0;e<n.length;e++)n[e]=[o[n[e][0]],o[n[e][1]]],n[e][0]>n[e][1]&&([n[e][0],n[e][1]]=[n[e][1],n[e][0]]);return i(n),[e+t,n]},solver:(e,t)=>{if("[]"==t){function n(t){const n=e[1].filter(([e,n])=>e==t).map(([e,t])=>t),a=e[1].filter(([e,n])=>n==t).map(([e,t])=>e);return n.concat(a)}const t=Array(e[0]).fill(void 0);for(;t.some(e=>void 0===e);){const e=t.findIndex(e=>void 0===e);t[e]=0;const a=[e];for(;a.length>0;){const e=a.pop()||0,r=n(e);for(const n in r){const i=r[n];if(void 0===t[i])0===t[e]?t[i]=1:t[i]=0,a.push(i);else if(t[i]===t[e])return!0}}}return!1}const a=s(t).split(",").map(e=>parseInt(e));if(a.length==e[0]){const t=e[1],n=[0,1];return t.every(([e,t])=>{const r=a[e],i=a[t];return n.includes(r)&&n.includes(i)&&r!=i})}return!1}},{name:"Compression I: RLE Compression",difficulty:2,numTries:10,desc:e=>["Run-length encoding (RLE) is a data compression technique which encodes data as a series of runs of","a repeated single character. Runs are encoded as a length, followed by the character itself. Lengths","are encoded as a single ASCII digit; runs of 10 characters or more are encoded by splitting them","into multiple runs.\n\n","You are given the following input string:\n",` ${e}\n`,"Encode it using run-length encoding with the minimum possible output length.\n\n","Examples:\n"," aaaaabccc -> 5a1b3c\n"," aAaAaA -> 1a1A1a1A1a1A\n"," 111112333 -> 511233\n"," zzzzzzzzzzzzzzzzzzz -> 9z9z1z (or 9z8z2z, etc.)\n"].join(" "),gen:()=>{const e=50+Math.floor(25*(Math.random()+Math.random()));let t="";for(;t.length<e;){const e=Math.random();let n=1;n=e<.3?1:e<.6?2:e<.9?Math.floor(10*Math.random()):10+Math.floor(5*Math.random());t+=Object(i.a)().repeat(n)}return t.substring(0,e)},solver:(e,t)=>{if(t.length%2!=0)return!1;let n="";for(let e=0;e+1<t.length;e+=2){const a=t.charCodeAt(e)-48;if(a<0||a>9)return!1;n+=t[e+1].repeat(a)}if(n!==e)return!1;let a=0;for(let t=0;t<e.length;){let n=1;for(;t+n<e.length&&e[t+n]===e[t];)++n;for(t+=n;n>0;)n-=9,a+=2}return t.length<=a}},{name:"Compression II: LZ Decompression",difficulty:4,numTries:10,desc:e=>["Lempel-Ziv (LZ) compression is a data compression technique which encodes data using references to","earlier parts of the data. In this variant of LZ, data is encoded in two types of chunk. Each chunk","begins with a length L, encoded as a single ASCII digit from 1 to 9, followed by the chunk data,","which is either:\n\n","1. Exactly L characters, which are to be copied directly into the uncompressed data.\n","2. A reference to an earlier part of the uncompressed data. To do this, the length is followed","by a second ASCII digit X: each of the L output characters is a copy of the character X","places before it in the uncompressed data.\n\n","For both chunk types, a length of 0 instead means the chunk ends immediately, and the next character","is the start of a new chunk. The two chunk types alternate, starting with type 1, and the final","chunk may be of either type.\n\n","You are given the following LZ-encoded string:\n",` ${e}\n`,"Decode it and output the original string.\n\n","Example: decoding '5aaabb450723abb' chunk-by-chunk\n"," 5aaabb -> aaabb\n"," 5aaabb45 -> aaabbaaab\n"," 5aaabb450 -> aaabbaaab\n"," 5aaabb45072 -> aaabbaaababababa\n"," 5aaabb450723abb -> aaabbaaababababaabb"].join(" "),gen:()=>Object(i.c)(Object(i.d)()),solver:(e,t)=>t===Object(i.b)(e)},{name:"Compression III: LZ Compression",difficulty:10,numTries:10,desc:e=>["Lempel-Ziv (LZ) compression is a data compression technique which encodes data using references to","earlier parts of the data. In this variant of LZ, data is encoded in two types of chunk. Each chunk","begins with a length L, encoded as a single ASCII digit from 1 to 9, followed by the chunk data,","which is either:\n\n","1. Exactly L characters, which are to be copied directly into the uncompressed data.\n","2. A reference to an earlier part of the uncompressed data. To do this, the length is followed","by a second ASCII digit X: each of the L output characters is a copy of the character X","places before it in the uncompressed data.\n\n","For both chunk types, a length of 0 instead means the chunk ends immediately, and the next character","is the start of a new chunk. The two chunk types alternate, starting with type 1, and the final","chunk may be of either type.\n\n","You are given the following input string:\n",` ${e}\n`,"Encode it using Lempel-Ziv encoding with the minimum possible output length.\n\n","Examples (some have other possible encodings of minimal length):\n"," abracadabra -> 7abracad47\n"," mississippi -> 4miss433ppi\n"," aAAaAAaAaAA -> 3aAA53035\n"," 2718281828 -> 627182844\n"," abcdefghijk -> 9abcdefghi02jk\n"," aaaaaaaaaaaa -> 3aaa91\n"," aaaaaaaaaaaaa -> 1a91031\n"," aaaaaaaaaaaaaa -> 1a91041"].join(" "),gen:()=>Object(i.d)(),solver:(e,t)=>Object(i.b)(t)===e&&t.length<=Object(i.c)(e).length}]},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));class a{constructor(){this.data=[]}get size(){return this.data.length}push(e,t){const n=this.data.length;this.data[n]=[t,e],this.heapifyUp(n)}peek(){if(0!=this.data.length)return this.data[0][1]}pop(){if(0==this.data.length)return;const e=this.data[0][1];return this.data[0]=this.data[this.data.length-1],this.data.length=this.data.length-1,this.heapifyDown(0),e}changeWeight(e,t){const n=this.data.findIndex(t=>e(t[1]));if(-1==n)return;this.data[n][0]=t;const a=Math.floor((n-1)/2);this.heapOrderABeforeB(this.data[a][0],this.data[n][0])?this.heapifyDown(n):this.heapifyUp(n)}heapifyUp(e){for(;e>0;){const t=Math.floor((e-1)/2);if(this.heapOrderABeforeB(this.data[t][0],this.data[e][0]))break;const n=this.data[t];this.data[t]=this.data[e],this.data[e]=n,e=t}}heapifyDown(e){for(;e<this.data.length;){const t=2*e+1,n=2*e+2;let a=e;if(t<this.data.length&&this.heapOrderABeforeB(this.data[t][0],this.data[a][0])&&(a=t),n<this.data.length&&this.heapOrderABeforeB(this.data[n][0],this.data[a][0])&&(a=n),e==a)break;const r=this.data[a];this.data[a]=this.data[e],this.data[e]=r,e=a}}}class r extends a{heapOrderABeforeB(e,t){return e<t}}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";function r(e){let t="";for(let n=0;n<e;++n)t+=a.charAt(Math.floor(Math.random()*a.length));return t}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));class a{constructor(e,t,n){var a,r,i;i="",(r="name")in(a=this)?Object.defineProperty(a,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):a[r]=i,this.name=e,this.create=t,this.run=n}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var a=n(12),r=n(44),i=n(24),o=n(27),s=n(6),l=n(21),c=n(602),f=n(100),u=n(4);function m(e){return function(t){return t.hacking+t.intelligence/2>=e}}const h=[{key:"NukeProgram",name:"NUKE.exe",create:{level:1,tooltip:"This virus is used to gain root access to a machine if enough ports are opened.",req:m(1),time:a.a.MillisecondsPerFiveMinutes},run:(e,t,n,a)=>{if(a instanceof r.a)return a.hasAdminRights?(t.print("You already have root access to this computer. There is no reason to run NUKE.exe"),void t.print("You can now run scripts on this server.")):a.openPortCount>=a.numOpenPortsRequired?(a.hasAdminRights=!0,t.print("NUKE successful! Gained root access to "+a.hostname),void t.print("You can now run scripts on this server.")):void t.print("NUKE unsuccessful. Not enough ports have been opened");t.error("Cannot nuke this kind of server.")}},{key:"BruteSSHProgram",name:"BruteSSH.exe",create:{level:50,tooltip:"This program executes a brute force attack that opens SSH ports",req:m(50),time:2*a.a.MillisecondsPerFiveMinutes},run:(e,t,n,a)=>{a instanceof r.a?a.sshPortOpen?t.print("SSH Port (22) is already open!"):(a.sshPortOpen=!0,t.print("Opened SSH Port(22)!"),a.openPortCount++):t.error("Cannot run BruteSSH.exe on this kind of server.")}},{key:"FTPCrackProgram",name:"FTPCrack.exe",create:{level:100,tooltip:"This program cracks open FTP ports",req:m(100),time:a.a.MillisecondsPerHalfHour},run:(e,t,n,a)=>{a instanceof r.a?a.ftpPortOpen?t.print("FTP Port (21) is already open!"):(a.ftpPortOpen=!0,t.print("Opened FTP Port (21)!"),a.openPortCount++):t.error("Cannot run FTPCrack.exe on this kind of server.")}},{key:"RelaySMTPProgram",name:"relaySMTP.exe",create:{level:250,tooltip:"This program opens SMTP ports by redirecting data",req:m(250),time:a.a.MillisecondsPer2Hours},run:(e,t,n,a)=>{a instanceof r.a?a.smtpPortOpen?t.print("SMTP Port (25) is already open!"):(a.smtpPortOpen=!0,t.print("Opened SMTP Port (25)!"),a.openPortCount++):t.error("Cannot run relaySMTP.exe on this kind of server.")}},{key:"HTTPWormProgram",name:"HTTPWorm.exe",create:{level:500,tooltip:"This virus opens up HTTP ports",req:m(500),time:a.a.MillisecondsPer4Hours},run:(e,t,n,a)=>{a instanceof r.a?a.httpPortOpen?t.print("HTTP Port (80) is already open!"):(a.httpPortOpen=!0,t.print("Opened HTTP Port (80)!"),a.openPortCount++):t.error("Cannot run HTTPWorm.exe on this kind of server.")}},{key:"SQLInjectProgram",name:"SQLInject.exe",create:{level:750,tooltip:"This virus opens SQL ports",req:m(750),time:a.a.MillisecondsPer8Hours},run:(e,t,n,a)=>{a instanceof r.a?a.sqlPortOpen?t.print("SQL Port (1433) is already open!"):(a.sqlPortOpen=!0,t.print("Opened SQL Port (1433)!"),a.openPortCount++):t.error("Cannot run SQLInject.exe on this kind of server.")}},{key:"DeepscanV1",name:"DeepscanV1.exe",create:{level:75,tooltip:"This program allows you to use the scan-analyze command with a depth up to 5",req:m(75),time:a.a.MillisecondsPerQuarterHour},run:(e,t)=>{t.print("This executable cannot be run."),t.print("DeepscanV1.exe lets you run 'scan-analyze' with a depth up to 5.")}},{key:"DeepscanV2",name:"DeepscanV2.exe",create:{level:400,tooltip:"This program allows you to use the scan-analyze command with a depth up to 10",req:m(400),time:a.a.MillisecondsPer2Hours},run:(e,t)=>{t.print("This executable cannot be run."),t.print("DeepscanV2.exe lets you run 'scan-analyze' with a depth up to 10.")}},{key:"ServerProfiler",name:"ServerProfiler.exe",create:{level:75,tooltip:"This program is used to display hacking and Netscript-related information about servers",req:m(75),time:a.a.MillisecondsPerHalfHour},run:(e,t,n,a,s)=>{if(1!==s.length)return void t.error("Must pass a server hostname or IP as an argument for ServerProfiler.exe");const l=Object(o.d)(s[0]);null!=l?l instanceof r.a?(t.print(l.hostname+":"),t.print("Server base security level: "+l.baseDifficulty),t.print("Server current security level: "+l.hackDifficulty),t.print("Server growth rate: "+l.serverGrowth),t.print("Netscript hack() execution time: "+Object(i.d)(1e3*Object(f.d)(l,n),!0)),t.print("Netscript grow() execution time: "+Object(i.d)(1e3*Object(f.a)(l,n),!0)),t.print("Netscript weaken() execution time: "+Object(i.d)(1e3*Object(f.f)(l,n),!0))):t.error("ServerProfiler.exe can only be run on normal servers."):t.error("Invalid server IP/hostname")}},{key:"AutoLink",name:"AutoLink.exe",create:{level:25,tooltip:"This program allows you to directly connect to other servers through the 'scan-analyze' command",req:m(25),time:a.a.MillisecondsPerQuarterHour},run:(e,t)=>{t.print("This executable cannot be run."),t.print("AutoLink.exe lets you automatically connect to other servers when using 'scan-analyze'."),t.print("When using scan-analyze, click on a server's hostname to connect to it.")}},{key:"Formulas",name:"Formulas.exe",create:{level:1e3,tooltip:"This program allows you to use the formulas API",req:m(1e3),time:a.a.MillisecondsPer4Hours},run:(e,t)=>{t.print("This executable cannot be run."),t.print("Formulas.exe lets you use the formulas API.")}},{key:"BitFlume",name:"b1t_flum3.exe",create:{level:1,tooltip:"This program creates a portal to the BitNode Nexus (allows you to restart and switch BitNodes)",req:function(e){return e.sourceFiles.length>0&&e.hacking>=1},time:a.a.MillisecondsPerFiveMinutes/20},run:()=>{c.a.emit()}},{key:"Flight",name:"fl1ght.exe",create:null,run:(e,t,n)=>{const a=l.a.DaedalusAugsRequirement;if(!(n.augmentations.length>=a&&n.money>1e11&&n.hacking>=2500))return t.print(`Augmentations: ${n.augmentations.length} / ${a}`),t.print(`Money: ${s.a.formatMoney(n.money)} / $100b`),void t.print(`Hacking skill: ${n.hacking} / 2500`);t.print("We will contact you."),t.print(`-- ${u.a.Daedalus} --`)}}]},function(e,t,n){"use strict";function a(e){const t="(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)";return new RegExp(`^${t}.${t}.${t}.${t}$`).test(e)}n.d(t,"a",(function(){return a}))},function(e,t,n){"use strict";function a(){const e=new Date,t=("0"+e.getHours()).slice(-2),n=("0"+e.getMinutes()).slice(-2),a=("0"+e.getSeconds()).slice(-2);return`${e.getMonth()+1}/${e.getDate()} ${t}:${n}:${a}`}n.d(t,"a",(function(){return a}))},function(e,t,n){"use strict";function a(e){const t=1+Math.log(e)/25;return isNaN(t)||!isFinite(t)?1:t}n.d(t,"a",(function(){return a}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var a=n(11),r=n(21),i=n(12),o=n(101),s=n(164);const l=1e3/i.a._idleSpeed,c={[o.a.HACKING]:Object(s.b)({hackExp:15}),[o.a.FIELD]:Object(s.b)({hackExp:10,strExp:10,defExp:10,dexExp:10,agiExp:10,chaExp:10}),[o.a.SECURITY]:Object(s.b)({hackExp:5,strExp:15,defExp:15,dexExp:15,agiExp:15})};function f(e,t){let n=1;e.hasAugmentation(a.a.NeuroreceptorManager)||(n=e.focus?1:i.a.BaseFocusBonus);const o=c[t];return{money:0,reputation:0,hackExp:n*(o.hackExp*e.mults.hacking_exp*r.a.FactionWorkExpGain)/l,strExp:n*(o.strExp*e.mults.strength_exp*r.a.FactionWorkExpGain)/l,defExp:n*(o.defExp*e.mults.defense_exp*r.a.FactionWorkExpGain)/l,dexExp:n*(o.dexExp*e.mults.dexterity_exp*r.a.FactionWorkExpGain)/l,agiExp:n*(o.agiExp*e.mults.agility_exp*r.a.FactionWorkExpGain)/l,chaExp:n*(o.chaExp*e.mults.charisma_exp*r.a.FactionWorkExpGain)/l,intExp:0}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return S}));var a=n(31),r=n(9);const i={},o={},s={},l={},c={},f={},u={},m={},h={},d={},p={},g={},y={},b={},E={},v={},k={},w={},_={};a.j.forEach(e=>{i[e]=!0,c[e]=!0}),a.d.forEach(e=>{o[e]=!0,c[e]=!0}),a.f.forEach(e=>{s[e]=!0,c[e]=!0}),c[a.i[0]]=!0,l[a.i[0]]=!0,a.b.forEach(e=>{f[e]=!0}),a.h.forEach(e=>{m[e]=!0}),a.a.forEach(e=>{u[e]=!0}),a.k.forEach(e=>{h[e]=!0}),a.c.forEach(e=>{d[e]=!0});for(let e=0;e<a.j.length;++e){const t=a.j[e];e<=5&&(p[t]=!0),e<=3&&(g[t]=!0)}for(let e=0;e<a.b.length;++e){const t=a.b[e];e<=3&&(y[t]=!0)}b[a.e[0]]=!0,E[a.e[1]]=!0,v[a.g[0]]=!0,k[a.g[1]]=!0,w[a.b[3]]=!0,_[a.b[5]]=!0;const S=[{name:r.a.AevumECorp,info:"",companyPositions:Object.assign({},c,f,m),expMultiplier:3,salaryMultiplier:3,jobStatReqOffset:249},{name:r.a.Sector12MegaCorp,info:"",companyPositions:Object.assign({},c,f,m),expMultiplier:3,salaryMultiplier:3,jobStatReqOffset:249},{name:r.a.AevumBachmanAndAssociates,info:"",companyPositions:Object.assign({},c,f,m),expMultiplier:2.6,salaryMultiplier:2.6,jobStatReqOffset:224},{name:r.a.Sector12BladeIndustries,info:"",companyPositions:Object.assign({},c,f,m),expMultiplier:2.75,salaryMultiplier:2.75,jobStatReqOffset:224},{name:r.a.VolhavenNWO,info:"",companyPositions:Object.assign({},c,f,m),expMultiplier:2.75,salaryMultiplier:2.75,jobStatReqOffset:249},{name:r.a.AevumClarkeIncorporated,info:"",companyPositions:Object.assign({},c,f,m),expMultiplier:2.25,salaryMultiplier:2.25,jobStatReqOffset:224},{name:r.a.VolhavenOmniTekIncorporated,info:"",companyPositions:Object.assign({},c,f,m),expMultiplier:2.25,salaryMultiplier:2.25,jobStatReqOffset:224},{name:r.a.Sector12FourSigma,info:"",companyPositions:Object.assign({},c,f,m),expMultiplier:2.5,salaryMultiplier:2.5,jobStatReqOffset:224},{name:r.a.ChongqingKuaiGongInternational,info:"",companyPositions:Object.assign({},c,f,m),expMultiplier:2.2,salaryMultiplier:2.2,jobStatReqOffset:224},{name:r.a.AevumFulcrumTechnologies,info:"",companyPositions:Object.assign({},c,f),expMultiplier:2,salaryMultiplier:2,jobStatReqOffset:224},{name:r.a.IshimaStormTechnologies,info:"",companyPositions:Object.assign({},c,h,f),expMultiplier:1.8,salaryMultiplier:1.8,jobStatReqOffset:199},{name:r.a.NewTokyoDefComm,info:"",companyPositions:Object.assign({},_,c,h),expMultiplier:1.75,salaryMultiplier:1.75,jobStatReqOffset:199},{name:r.a.VolhavenHeliosLabs,info:"",companyPositions:Object.assign({},_,c,h),expMultiplier:1.8,salaryMultiplier:1.8,jobStatReqOffset:199},{name:r.a.NewTokyoVitaLife,info:"",companyPositions:Object.assign({},c,f,h),expMultiplier:1.8,salaryMultiplier:1.8,jobStatReqOffset:199},{name:r.a.Sector12IcarusMicrosystems,info:"",companyPositions:Object.assign({},c,f,h),expMultiplier:1.9,salaryMultiplier:1.9,jobStatReqOffset:199},{name:r.a.Sector12UniversalEnergy,info:"",companyPositions:Object.assign({},c,f,h),expMultiplier:2,salaryMultiplier:2,jobStatReqOffset:199},{name:r.a.AevumGalacticCybersystems,info:"",companyPositions:Object.assign({},c,f,h),expMultiplier:1.9,salaryMultiplier:1.9,jobStatReqOffset:199},{name:r.a.AevumAeroCorp,info:"",companyPositions:Object.assign({},_,w,c,m),expMultiplier:1.7,salaryMultiplier:1.7,jobStatReqOffset:199},{name:r.a.VolhavenOmniaCybersystems,info:"",companyPositions:Object.assign({},_,w,c,m),expMultiplier:1.7,salaryMultiplier:1.7,jobStatReqOffset:199},{name:r.a.ChongqingSolarisSpaceSystems,info:"",companyPositions:Object.assign({},_,w,c,m),expMultiplier:1.7,salaryMultiplier:1.7,jobStatReqOffset:199},{name:r.a.Sector12DeltaOne,info:"",companyPositions:Object.assign({},_,w,c,m),expMultiplier:1.6,salaryMultiplier:1.6,jobStatReqOffset:199},{name:r.a.NewTokyoGlobalPharmaceuticals,info:"",companyPositions:Object.assign({},c,f,h,m),expMultiplier:1.8,salaryMultiplier:1.8,jobStatReqOffset:224},{name:r.a.IshimaNovaMedical,info:"",companyPositions:Object.assign({},c,f,h,m),expMultiplier:1.75,salaryMultiplier:1.75,jobStatReqOffset:199},{name:r.a.Sector12CIA,info:"",companyPositions:Object.assign({},p,s,l,o,m,u),expMultiplier:2,salaryMultiplier:2,jobStatReqOffset:149},{name:r.a.Sector12NSA,info:"",companyPositions:Object.assign({},p,s,l,o,m,u),expMultiplier:2,salaryMultiplier:2,jobStatReqOffset:149},{name:r.a.AevumWatchdogSecurity,info:"",companyPositions:Object.assign({},p,s,o,m,u,h),expMultiplier:1.5,salaryMultiplier:1.5,jobStatReqOffset:124},{name:r.a.VolhavenLexoCorp,info:"",companyPositions:Object.assign({},c,h,f,m),expMultiplier:1.4,salaryMultiplier:1.4,jobStatReqOffset:99},{name:r.a.AevumRhoConstruction,info:"",companyPositions:Object.assign({},g,y),expMultiplier:1.3,salaryMultiplier:1.3,jobStatReqOffset:49},{name:r.a.Sector12AlphaEnterprises,info:"",companyPositions:Object.assign({},g,y,h),expMultiplier:1.5,salaryMultiplier:1.5,jobStatReqOffset:99},{name:r.a.AevumPolice,info:"",companyPositions:Object.assign({},m,g),expMultiplier:1.3,salaryMultiplier:1.3,jobStatReqOffset:99},{name:r.a.VolhavenSysCoreSecurities,info:"",companyPositions:Object.assign({},c),expMultiplier:1.3,salaryMultiplier:1.3,jobStatReqOffset:124},{name:r.a.VolhavenCompuTek,info:"",companyPositions:Object.assign({},c),expMultiplier:1.2,salaryMultiplier:1.2,jobStatReqOffset:74},{name:r.a.AevumNetLinkTechnologies,info:"",companyPositions:Object.assign({},c),expMultiplier:1.2,salaryMultiplier:1.2,jobStatReqOffset:99},{name:r.a.Sector12CarmichaelSecurity,info:"",companyPositions:Object.assign({},c,h,u,m),expMultiplier:1.2,salaryMultiplier:1.2,jobStatReqOffset:74},{name:r.a.Sector12FoodNStuff,info:"",companyPositions:Object.assign({},E,k),expMultiplier:1,salaryMultiplier:1,jobStatReqOffset:0},{name:r.a.Sector12JoesGuns,info:"",companyPositions:Object.assign({},E,k),expMultiplier:1,salaryMultiplier:1,jobStatReqOffset:0},{name:r.a.IshimaOmegaSoftware,info:"",companyPositions:Object.assign({},i,h,o),expMultiplier:1.1,salaryMultiplier:1.1,jobStatReqOffset:49},{name:r.a.NewTokyoNoodleBar,info:"",companyPositions:Object.assign({},b,v),expMultiplier:1,salaryMultiplier:1,jobStatReqOffset:0}]},function(e,t,n){"use strict";function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",(function(){return r}));class r{constructor(e={name:"",cost:0,desc:""}){a(this,"name",""),a(this,"cost",0),a(this,"desc",""),a(this,"advertisingMult",1),a(this,"employeeChaMult",1),a(this,"employeeCreMult",1),a(this,"employeeEffMult",1),a(this,"employeeIntMult",1),a(this,"productionMult",1),a(this,"productProductionMult",1),a(this,"salesMult",1),a(this,"sciResearchMult",1),a(this,"storageMult",1),this.name=e.name,this.cost=e.cost,this.desc=e.desc,e.advertisingMult&&(this.advertisingMult=e.advertisingMult),e.employeeChaMult&&(this.employeeChaMult=e.employeeChaMult),e.employeeCreMult&&(this.employeeCreMult=e.employeeCreMult),e.employeeEffMult&&(this.employeeEffMult=e.employeeEffMult),e.employeeIntMult&&(this.employeeIntMult=e.employeeIntMult),e.productionMult&&(this.productionMult=e.productionMult),e.productProductionMult&&(this.productProductionMult=e.productProductionMult),e.salesMult&&(this.salesMult=e.salesMult),e.sciResearchMult&&(this.sciResearchMult=e.sciResearchMult),e.storageMult&&(this.storageMult=e.storageMult)}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));const a=[{name:"AutoBrew",cost:12e3,desc:"Automatically keep your employees fully caffeinated with coffee injections. This research will keep the energy of all employees at its maximum possible value, for no cost. This will also disable the Coffee upgrade."},{name:"AutoPartyManager",cost:15e3,desc:"Automatically analyzes your employees' happiness and morale and boosts them whenever it detects a decrease. This research will keep the morale and happiness of all employees at their maximum possible values, for no cost. This will also disable the 'Throw Party' feature."},{name:"Automatic Drug Administration",cost:1e4,desc:"Research how to automatically administer performance-enhacing drugs to all of your employees. This unlocks Drug-related Research."},{name:"Bulk Purchasing",cost:5e3,desc:"Research the art of buying materials in bulk. This allows you to purchase any amount of a material instantly."},{name:"CPH4 Injections",cost:25e3,desc:"Develop an advanced and harmless synthetic drug that is administered to employees to increase all of their stats, except experience, by 10%.",employeeCreMult:1.1,employeeChaMult:1.1,employeeEffMult:1.1,employeeIntMult:1.1},{name:"Drones",cost:5e3,desc:"Acquire the knowledge needed to create advanced drones. This research does nothing by itself, but unlocks other Drone-related research."},{name:"Drones - Assembly",cost:25e3,desc:"Manufacture and use Assembly Drones to improve the efficiency of your production lines. This increases all production by 20%.",productionMult:1.2},{name:"Drones - Transport",cost:3e4,desc:"Manufacture and use intelligent Transport Drones to optimize your warehouses. This increases the storage space of all warehouses by 50%.",storageMult:1.5},{name:"Go-Juice",cost:25e3,desc:"Provide employees with Go-Juice, a coffee-derivative that further enhances the brain's dopamine production. This increases the maximum energy of all employees by 10."},{name:"Hi-Tech R&D Laboratory",cost:5e3,desc:"Construct a cutting edge facility dedicated to advanced research and and development. This allows you to spend Scientific Research on powerful upgrades. It also globally increases Scientific Research production by 10%.",sciResearchMult:1.1},{name:"HRBuddy-Recruitment",cost:15e3,desc:"Use automated software to handle the hiring of employees. With this research, each office will automatically hire one employee per market cycle if there is available space."},{name:"HRBuddy-Training",cost:2e4,desc:"Use automated software to handle the training of employees. With this research, each employee hired with HRBuddy-Recruitment will automatically be assigned to 'Training', rather than being unassigned."},{name:"JoyWire",cost:2e4,desc:"A brain implant which is installed in employees, increasing their maximum happiness by 10."},{name:"Market-TA.I",cost:2e4,desc:"Develop advanced AI software that uses technical analysis to help you understand and exploit the market. This research allows you to know what price to sell your Materials/Products at in order to avoid losing sales due to having too high of a mark-up. It also lets you automatically use that sale price."},{name:"Market-TA.II",cost:5e4,desc:"Develop double-advanced AI software that uses technical analysis to help you understand and exploit the market. This research allows you to know how many sales of a Material/Product you lose or gain from having too high or too low or a sale price. It also lets you automatically set the sale price of your Materials/Products at the optimal price such that the amount sold matches the amount produced."},{name:"Overclock",cost:15e3,desc:"Equip employees with a headset that uses transcranial direct current stimulation (tDCS) to increase the speed of their neurotransmitters. This research increases the intelligence and efficiency of all employees by 25%.",employeeEffMult:1.25,employeeIntMult:1.25},{name:"Self-Correcting Assemblers",cost:25e3,desc:"Create assemblers that can be used for universal production. These assemblers use deep learning to improve their efficiency at their tasks. This research increases all production by 10%",productionMult:1.1},{name:"Sti.mu",cost:3e4,desc:"Upgrade the tDCS headset to stimulate regions of the brain that control confidence and enthusiasm. This research increases the max morale of all employees by 10."},{name:"sudo.Assist",cost:15e3,desc:"Develop a virtual assistant AI to handle and manage administrative issues for your corporation."},{name:"uPgrade: Capacity.I",cost:2e4,desc:"Expand the industry's capacity for designing and manufacturing its various products. This increases the industry's maximum number of products by 1 (from 3 to 4)."},{name:"uPgrade: Capacity.II",cost:3e4,desc:"Expand the industry's capacity for designing and manufacturing its various products. This increases the industry's maximum number of products by 1 (from 4 to 5)."},{name:"uPgrade: Dashboard",cost:5e3,desc:"Improve the software used to manage the industry's production line for its various products. This allows you to manage the production and sale of a product before it's finished being designed."},{name:"uPgrade: Fulcrum",cost:1e4,desc:"Streamline the manufacturing of this industry's various products. This research increases the production of your products by 5%",productProductionMult:1.05}]},function(e,t,n){"use strict";function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",(function(){return r}));class r{constructor(e){a(this,"costPerLevel",0),a(this,"desc",""),a(this,"hasTargetServer",!1),a(this,"name",""),a(this,"value",0),a(this,"effectText",()=>null),null!=e.cost&&(this.cost=e.cost),null!=e.effectText&&(this.effectText=e.effectText),this.costPerLevel=e.costPerLevel,this.desc=e.desc,this.hasTargetServer=!!e.hasTargetServer&&e.hasTargetServer,this.name=e.name,this.value=e.value}getCost(e){return"number"==typeof this.cost?this.cost:Math.round((e+1)*this.costPerLevel)}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var a=n(0),r=n.n(a),i=n(6),o=n(20);const s=[{cost:4,costPerLevel:4,desc:"Sell hashes for $1m",name:"Sell for Money",effectText:e=>r.a.createElement(r.a.Fragment,null,"Sold for ",r.a.createElement(o.a,{money:1e6*e})),value:1e6},{costPerLevel:100,desc:"Sell hashes for $1b in Corporation funds",name:"Sell for Corporation Funds",effectText:e=>r.a.createElement(r.a.Fragment,null,"Sold for ",r.a.createElement(o.a,{money:1e9*e})," Corporation funds."),value:1e9},{costPerLevel:50,desc:"Use hashes to decrease the minimum security of a single server by 2%. Note that a server's minimum security cannot go below 1. This effect persists until you install Augmentations (since servers are reset at that time).",hasTargetServer:!0,name:"Reduce Minimum Security",value:.98},{costPerLevel:50,desc:"Use hashes to increase the maximum amount of money on a single server by 2%. Note that a server's maximum money is soft capped above $10t. This effect persists until you install Augmentations (since servers are reset at that time).",hasTargetServer:!0,name:"Increase Maximum Money",value:1.02},{costPerLevel:50,desc:"Use hashes to improve the experience earned when studying at a university by 20%. This effect persists until you install Augmentations",name:"Improve Studying",effectText:e=>r.a.createElement(r.a.Fragment,null,"Improves studying by ",20*e,"%"),value:20},{costPerLevel:50,desc:"Use hashes to improve the experience earned when training at the gym by 20%. This effect persists until you install Augmentations",name:"Improve Gym Training",effectText:e=>r.a.createElement(r.a.Fragment,null,"Improves training by ",20*e,"%"),value:20},{costPerLevel:200,desc:"Exchange hashes for 1k Scientific Research in all of your Corporation's Industries",name:"Exchange for Corporation Research",effectText:e=>r.a.createElement(r.a.Fragment,null,"Acquired a total of ",e,"k Scientific Research in your industries."),value:1e3},{costPerLevel:250,desc:"Exchange hashes for 100 Bladeburner Rank",name:"Exchange for Bladeburner Rank",effectText:e=>r.a.createElement(r.a.Fragment,null,"Acquired a total of ",i.a.format(100*e,"0a")," Bladeburner rank"),value:100},{costPerLevel:250,desc:"Exchanges hashes for 10 Bladeburner Skill Points",name:"Exchange for Bladeburner SP",effectText:e=>r.a.createElement(r.a.Fragment,null,"Acquired a total of ",i.a.format(10*e,"0a")," Bladeburner Skill Points"),value:10},{costPerLevel:200,desc:"Generate a random Coding Contract somewhere on the network",name:"Generate Coding Contract",effectText:e=>r.a.createElement(r.a.Fragment,null,"Generated ",e," contracts."),value:1}]},function(e,t,n){"use strict";function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",(function(){return r}));class r{constructor(e){a(this,"parent",null),a(this,"stopFlag",!1),a(this,"vars",{}),e instanceof r&&(this.vars=Object.assign({},e.vars)),this.parent=e}lookup(e){let t=this;for(;t;){if(Object.prototype.hasOwnProperty.call(t.vars,e))return t;t=t.parent}return null}get(e){if(e in this.vars)return this.vars[e];throw new Error("Undefined variable "+e)}set(e,t){const n=this.lookup(e);return null!==n?n.vars[e]=t:this.vars[e]=t}def(e,t){return this.vars[e]=t}}},function(e,t,n){"use strict";function a(e){return!isNaN(e)&&(0!==e&&0==(e&e-1))}n.d(t,"a",(function(){return a}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var a=n(98),r=n(9);const i=[{b:!0,initPrice:{max:28e3,min:17e3},marketCap:24e11,mv:{divisor:100,max:50,min:40},name:r.a.AevumECorp,otlkMag:19,spreadPerc:{divisor:10,max:5,min:1},shareTxForMovement:{max:9e4,min:3e4},symbol:a.a[r.a.AevumECorp]},{b:!0,initPrice:{max:34e3,min:24e3},marketCap:24e11,mv:{divisor:100,max:50,min:40},name:r.a.Sector12MegaCorp,otlkMag:19,spreadPerc:{divisor:10,max:5,min:1},shareTxForMovement:{max:9e4,min:3e4},symbol:a.a[r.a.Sector12MegaCorp]},{b:!0,initPrice:{max:25e3,min:12e3},marketCap:16e11,mv:{divisor:100,max:80,min:70},name:r.a.Sector12BladeIndustries,otlkMag:13,spreadPerc:{divisor:10,max:6,min:1},shareTxForMovement:{max:9e4,min:3e4},symbol:a.a[r.a.Sector12BladeIndustries]},{b:!0,initPrice:{max:25e3,min:1e4},marketCap:15e11,mv:{divisor:100,max:75,min:65},name:r.a.AevumClarkeIncorporated,otlkMag:12,spreadPerc:{divisor:10,max:5,min:1},shareTxForMovement:{max:9e4,min:3e4},symbol:a.a[r.a.AevumClarkeIncorporated]},{b:!0,initPrice:{max:43e3,min:32e3},marketCap:18e11,mv:{divisor:100,max:70,min:60},name:r.a.VolhavenOmniTekIncorporated,otlkMag:12,spreadPerc:{divisor:10,max:6,min:1},shareTxForMovement:{max:9e4,min:3e4},symbol:a.a[r.a.VolhavenOmniTekIncorporated]},{b:!0,initPrice:{max:8e4,min:5e4},marketCap:2e12,mv:{divisor:100,max:110,min:100},name:r.a.Sector12FourSigma,otlkMag:17,spreadPerc:{divisor:10,max:10,min:1},shareTxForMovement:{max:9e4,min:3e4},symbol:a.a[r.a.Sector12FourSigma]},{b:!0,initPrice:{max:28e3,min:16e3},marketCap:19e11,mv:{divisor:100,max:85,min:75},name:r.a.ChongqingKuaiGongInternational,otlkMag:10,spreadPerc:{divisor:10,max:7,min:1},shareTxForMovement:{max:9e4,min:3e4},symbol:a.a[r.a.ChongqingKuaiGongInternational]},{b:!0,initPrice:{max:36e3,min:29e3},marketCap:2e12,mv:{divisor:100,max:130,min:120},name:r.a.AevumFulcrumTechnologies,otlkMag:16,spreadPerc:{divisor:10,max:10,min:1},shareTxForMovement:{max:9e4,min:3e4},symbol:a.a[r.a.AevumFulcrumTechnologies]},{b:!0,initPrice:{max:25e3,min:2e4},marketCap:12e11,mv:{divisor:100,max:90,min:80},name:r.a.IshimaStormTechnologies,otlkMag:7,spreadPerc:{divisor:10,max:10,min:2},shareTxForMovement:{max:108e3,min:36e3},symbol:a.a[r.a.IshimaStormTechnologies]},{b:!0,initPrice:{max:19e3,min:6e3},marketCap:9e11,mv:{divisor:100,max:70,min:60},name:r.a.NewTokyoDefComm,otlkMag:10,spreadPerc:{divisor:10,max:10,min:2},shareTxForMovement:{max:108e3,min:36e3},symbol:a.a[r.a.NewTokyoDefComm]},{b:!0,initPrice:{max:18e3,min:1e4},marketCap:825e9,mv:{divisor:100,max:65,min:55},name:r.a.VolhavenHeliosLabs,otlkMag:9,spreadPerc:{divisor:10,max:10,min:2},shareTxForMovement:{max:108e3,min:36e3},symbol:a.a[r.a.VolhavenHeliosLabs]},{b:!0,initPrice:{max:14e3,min:8e3},marketCap:1e12,mv:{divisor:100,max:80,min:70},name:r.a.NewTokyoVitaLife,otlkMag:7,spreadPerc:{divisor:10,max:10,min:2},shareTxForMovement:{max:108e3,min:36e3},symbol:a.a[r.a.NewTokyoVitaLife]},{b:!0,initPrice:{max:24e3,min:12e3},marketCap:8e11,mv:{divisor:100,max:70,min:60},name:r.a.Sector12IcarusMicrosystems,otlkMag:7.5,spreadPerc:{divisor:10,max:10,min:3},shareTxForMovement:{max:108e3,min:36e3},symbol:a.a[r.a.Sector12IcarusMicrosystems]},{b:!0,initPrice:{max:29e3,min:16e3},marketCap:9e11,mv:{divisor:100,max:60,min:50},name:r.a.Sector12UniversalEnergy,otlkMag:10,spreadPerc:{divisor:10,max:10,min:2},shareTxForMovement:{max:108e3,min:36e3},symbol:a.a[r.a.Sector12UniversalEnergy]},{b:!0,initPrice:{max:17e3,min:8e3},marketCap:64e10,mv:{divisor:100,max:65,min:55},name:r.a.AevumAeroCorp,otlkMag:6,spreadPerc:{divisor:10,max:10,min:3},shareTxForMovement:{max:126e3,min:42e3},symbol:a.a[r.a.AevumAeroCorp]},{b:!0,initPrice:{max:15e3,min:6e3},marketCap:6e11,mv:{divisor:100,max:75,min:65},name:r.a.VolhavenOmniaCybersystems,otlkMag:4.5,spreadPerc:{divisor:10,max:11,min:4},shareTxForMovement:{max:126e3,min:42e3},symbol:a.a[r.a.VolhavenOmniaCybersystems]},{b:!0,initPrice:{max:28e3,min:14e3},marketCap:705e9,mv:{divisor:100,max:80,min:70},name:r.a.ChongqingSolarisSpaceSystems,otlkMag:8.5,spreadPerc:{divisor:10,max:12,min:4},shareTxForMovement:{max:126e3,min:42e3},symbol:a.a[r.a.ChongqingSolarisSpaceSystems]},{b:!0,initPrice:{max:3e4,min:12e3},marketCap:695e9,mv:{divisor:100,max:65,min:55},name:r.a.NewTokyoGlobalPharmaceuticals,otlkMag:10.5,spreadPerc:{divisor:10,max:10,min:4},shareTxForMovement:{max:126e3,min:42e3},symbol:a.a[r.a.NewTokyoGlobalPharmaceuticals]},{b:!0,initPrice:{max:27e3,min:15e3},marketCap:6e11,mv:{divisor:100,max:80,min:70},name:r.a.IshimaNovaMedical,otlkMag:5,spreadPerc:{divisor:10,max:11,min:4},shareTxForMovement:{max:126e3,min:42e3},symbol:a.a[r.a.IshimaNovaMedical]},{b:!0,initPrice:{max:8500,min:4e3},marketCap:45e10,mv:{divisor:100,max:260,min:240},name:r.a.AevumWatchdogSecurity,otlkMag:1.5,spreadPerc:{divisor:10,max:12,min:5},shareTxForMovement:{max:54e3,min:12e3},symbol:a.a[r.a.AevumWatchdogSecurity]},{b:!0,initPrice:{max:8e3,min:4500},marketCap:3e11,mv:{divisor:100,max:135,min:115},name:r.a.VolhavenLexoCorp,otlkMag:6,spreadPerc:{divisor:10,max:12,min:5},shareTxForMovement:{max:108e3,min:36e3},symbol:a.a[r.a.VolhavenLexoCorp]},{b:!0,initPrice:{max:7e3,min:2e3},marketCap:18e10,mv:{divisor:100,max:70,min:50},name:r.a.AevumRhoConstruction,otlkMag:1,spreadPerc:{divisor:10,max:10,min:3},shareTxForMovement:{max:126e3,min:6e4},symbol:a.a[r.a.AevumRhoConstruction]},{b:!0,initPrice:{max:8500,min:4e3},marketCap:24e10,mv:{divisor:100,max:205,min:175},name:r.a.Sector12AlphaEnterprises,otlkMag:10,spreadPerc:{divisor:10,max:16,min:5},shareTxForMovement:{max:9e4,min:3e4},symbol:a.a[r.a.Sector12AlphaEnterprises]},{b:!0,initPrice:{max:8e3,min:3e3},marketCap:2e11,mv:{divisor:100,max:170,min:150},name:r.a.VolhavenSysCoreSecurities,otlkMag:3,spreadPerc:{divisor:10,max:12,min:5},shareTxForMovement:{max:9e4,min:15e3},symbol:a.a[r.a.VolhavenSysCoreSecurities]},{b:!0,initPrice:{max:6e3,min:1e3},marketCap:185e9,mv:{divisor:100,max:100,min:80},name:r.a.VolhavenCompuTek,otlkMag:4,spreadPerc:{divisor:10,max:12,min:4},shareTxForMovement:{max:126e3,min:6e4},symbol:a.a[r.a.VolhavenCompuTek]},{b:!0,initPrice:{max:5e3,min:1e3},marketCap:58e9,mv:{divisor:100,max:400,min:200},name:r.a.AevumNetLinkTechnologies,otlkMag:1,spreadPerc:{divisor:10,max:20,min:5},shareTxForMovement:{max:54e3,min:18e3},symbol:a.a[r.a.AevumNetLinkTechnologies]},{b:!0,initPrice:{max:8e3,min:1e3},marketCap:6e10,mv:{divisor:100,max:110,min:90},name:r.a.IshimaOmegaSoftware,otlkMag:.5,spreadPerc:{divisor:10,max:13,min:4},shareTxForMovement:{max:9e4,min:3e4},symbol:a.a[r.a.IshimaOmegaSoftware]},{b:!1,initPrice:{max:4500,min:500},marketCap:45e9,mv:{divisor:100,max:80,min:70},name:r.a.Sector12FoodNStuff,otlkMag:1,spreadPerc:{divisor:10,max:10,min:6},shareTxForMovement:{max:18e4,min:6e4},symbol:a.a[r.a.Sector12FoodNStuff]},{b:!0,initPrice:{max:3500,min:1500},marketCap:3e10,mv:{divisor:100,max:275,min:100},name:"Sigma Cosmetics",otlkMag:0,spreadPerc:{divisor:10,max:14,min:6},shareTxForMovement:{max:7e4,min:2e4},symbol:a.a["Sigma Cosmetics"]},{b:!0,initPrice:{max:1500,min:250},marketCap:42e9,mv:{divisor:100,max:350,min:200},name:r.a.Sector12JoesGuns,otlkMag:1,spreadPerc:{divisor:10,max:14,min:6},shareTxForMovement:{max:52e3,min:15e3},symbol:a.a[r.a.Sector12JoesGuns]},{b:!0,initPrice:{max:1500,min:250},marketCap:1e11,mv:{divisor:100,max:175,min:120},name:"Catalyst Ventures",otlkMag:13.5,spreadPerc:{divisor:10,max:14,min:5},shareTxForMovement:{max:72e3,min:24e3},symbol:a.a["Catalyst Ventures"]},{b:!0,initPrice:{max:3e4,min:15e3},marketCap:36e10,mv:{divisor:100,max:80,min:70},name:"Microdyne Technologies",otlkMag:8,spreadPerc:{divisor:10,max:10,min:3},shareTxForMovement:{max:216e3,min:9e4},symbol:a.a["Microdyne Technologies"]},{b:!0,initPrice:{max:24e3,min:12e3},marketCap:42e10,mv:{divisor:100,max:70,min:50},name:"Titan Laboratories",otlkMag:11,spreadPerc:{divisor:10,max:10,min:2},shareTxForMovement:{max:216e3,min:9e4},symbol:a.a["Titan Laboratories"]}]},,function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var a=n(4),r=n(190),i=n(540),o=n(81),s=n(245),l=n(232);function c(e,t){const n=function(t){const n=e.gang;if(null===n)throw new Error("Must have joined gang");if(!(n instanceof i.a))throw t.makeRuntimeErrorMsg("You do not currently have a Gang")},c=function(t,n){const a=e.gang;if(null===a)throw new Error("Must have joined gang");for(const e of a.members)if(e.name===n)return e;throw t.makeRuntimeErrorMsg(`Invalid gang member: '${n}'`)};return{createGang:t=>n=>{const i=t.helper.string("faction",n);if(!e.canAccessGang()||!r.a.Names.includes(i))return!1;if(e.inGang())return!1;if(!e.factions.includes(i))return!1;const o=i===a.a.NiteSec||i===a.a.TheBlackHand;return e.startGang(i,o),!0},inGang:()=>()=>e.inGang(),getMemberNames:t=>()=>{n(t);const a=e.gang;if(null===a)throw new Error("Should not be called without Gang");return a.members.map(e=>e.name)},getGangInformation:t=>()=>{n(t);const a=e.gang;if(null===a)throw new Error("Should not be called without Gang");return{faction:a.facName,isHacking:a.isHackingGang,moneyGainRate:a.moneyGainRate,power:a.getPower(),respect:a.respect,respectGainRate:a.respectGainRate,territory:a.getTerritory(),territoryClashChance:a.territoryClashChance,territoryWarfareEngaged:a.territoryWarfareEngaged,wantedLevel:a.wanted,wantedLevelGainRate:a.wantedGainRate,wantedPenalty:a.getWantedPenalty()}},getOtherGangInformation:e=>()=>{n(e);const t={};for(const e of Object.keys(o.a))t[e]=Object.assign({},o.a[e]);return t},getMemberInformation:t=>a=>{const r=t.helper.string("memberName",a);n(t);const i=e.gang;if(null===i)throw new Error("Should not be called without Gang");const o=c(t,r);return{name:o.name,task:o.task,earnedRespect:o.earnedRespect,hack:o.hack,str:o.str,def:o.def,dex:o.dex,agi:o.agi,cha:o.cha,hack_exp:o.hack_exp,str_exp:o.str_exp,def_exp:o.def_exp,dex_exp:o.dex_exp,agi_exp:o.agi_exp,cha_exp:o.cha_exp,hack_mult:o.hack_mult,str_mult:o.str_mult,def_mult:o.def_mult,dex_mult:o.dex_mult,agi_mult:o.agi_mult,cha_mult:o.cha_mult,hack_asc_mult:o.calculateAscensionMult(o.hack_asc_points),str_asc_mult:o.calculateAscensionMult(o.str_asc_points),def_asc_mult:o.calculateAscensionMult(o.def_asc_points),dex_asc_mult:o.calculateAscensionMult(o.dex_asc_points),agi_asc_mult:o.calculateAscensionMult(o.agi_asc_points),cha_asc_mult:o.calculateAscensionMult(o.cha_asc_points),hack_asc_points:o.hack_asc_points,str_asc_points:o.str_asc_points,def_asc_points:o.def_asc_points,dex_asc_points:o.dex_asc_points,agi_asc_points:o.agi_asc_points,cha_asc_points:o.cha_asc_points,upgrades:o.upgrades.slice(),augmentations:o.augmentations.slice(),respectGain:o.calculateRespectGain(i),wantedLevelGain:o.calculateWantedLevelGain(i),moneyGain:o.calculateMoneyGain(i)}},canRecruitMember:t=>()=>{n(t);const a=e.gang;if(null===a)throw new Error("Should not be called without Gang");return a.canRecruitMember()},recruitMember:a=>r=>{const i=a.helper.string("memberName",r);n(a);const o=e.gang;if(null===o)throw new Error("Should not be called without Gang");const s=o.recruitMember(i);return s?t.log("gang.recruitMember",()=>`Successfully recruited Gang Member '${i}'`):t.log("gang.recruitMember",()=>`Failed to recruit Gang Member '${i}'`),s},getTaskNames:t=>()=>{n(t);const a=e.gang;if(null===a)throw new Error("Should not be called without Gang");const r=a.getAllTaskNames();return r.unshift("Unassigned"),r},setMemberTask:a=>(r,i)=>{const o=a.helper.string("memberName",r),s=a.helper.string("taskName",i);n(a);const l=c(a,o),f=e.gang;if(null===f)throw new Error("Should not be called without Gang");if(!f.getAllTaskNames().includes(s))return t.log("gang.setMemberTask",()=>`Failed to assign Gang Member '${o}' to Invalid task '${s}'. '${o}' is now Unassigned`),l.assignToTask("Unassigned");const u=l.assignToTask(s);return u?t.log("gang.setMemberTask",()=>`Successfully assigned Gang Member '${o}' to '${s}' task`):t.log("gang.setMemberTask",()=>`Failed to assign Gang Member '${o}' to '${s}' task. '${o}' is now Unassigned`),u},getTaskStats:e=>t=>{const a=e.helper.string("taskName",t);n(e);const r=function(e,t){const n=s.a[t];if(!n)throw e.makeRuntimeErrorMsg(`Invalid task: '${t}'`);return n}(e,a),i=Object.assign({},r);return i.territory=Object.assign({},r.territory),i},getEquipmentNames:e=>()=>(n(e),Object.keys(l.a)),getEquipmentCost:t=>a=>{const r=t.helper.string("equipName",a);n(t);const i=e.gang;if(null===i)throw new Error("Should not be called without Gang");const o=l.a[r];return null===o?1/0:i.getUpgradeCost(o)},getEquipmentType:e=>t=>{const a=e.helper.string("equipName",t);n(e);const r=l.a[a];return null==r?"":r.getType()},getEquipmentStats:e=>t=>{const a=e.helper.string("equipName",t);n(e);const r=l.a[a];if(!r)throw e.makeRuntimeErrorMsg("Invalid equipment: "+a);const i=r.mults;return Object.assign({},i)},purchaseEquipment:a=>(r,i)=>{const o=a.helper.string("memberName",r),s=a.helper.string("equipName",i);n(a);const f=e.gang;if(null===f)throw new Error("Should not be called without Gang");const u=c(a,o),m=l.a[s];if(!m)return!1;const h=u.buyUpgrade(m,e,f);return h?t.log("gang.purchaseEquipment",()=>`Purchased '${s}' for Gang member '${o}'`):t.log("gang.purchaseEquipment",()=>`Failed to purchase '${s}' for Gang member '${o}'`),h},ascendMember:a=>r=>{const i=a.helper.string("memberName",r);n(a);const o=e.gang;if(null===o)throw new Error("Should not be called without Gang");const s=c(a,i);if(s.canAscend())return o.ascendMember(s,t)},getAscensionResult:t=>a=>{const r=t.helper.string("memberName",a);n(t);if(null===e.gang)throw new Error("Should not be called without Gang");const i=c(t,r);if(i.canAscend())return{respect:i.earnedRespect,...i.getAscensionResults()}},setTerritoryWarfare:a=>r=>{const i=a.helper.boolean(r);n(a);const o=e.gang;if(null===o)throw new Error("Should not be called without Gang");i?(o.territoryWarfareEngaged=!0,t.log("gang.setTerritoryWarfare",()=>"Engaging in Gang Territory Warfare")):(o.territoryWarfareEngaged=!1,t.log("gang.setTerritoryWarfare",()=>"Disengaging in Gang Territory Warfare"))},getChanceToWinClash:t=>a=>{const r=t.helper.string("otherGang",a);n(t);const i=e.gang;if(null===i)throw new Error("Should not be called without Gang");if(null==o.a[r])throw t.makeRuntimeErrorMsg("Invalid gang: "+r);const s=o.a[i.facName].power;return s/(o.a[r].power+s)},getBonusTime:t=>()=>{n(t);const a=e.gang;if(null===a)throw new Error("Should not be called without Gang");return 1e3*Math.round(a.storedCycles/5)}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));const a=[{desc:"This gang member is currently idle",isCombat:!0,isHacking:!0,name:"Unassigned",params:{hackWeight:100}},{desc:"Assign this gang member to create and distribute ransomware<br><br>Earns money - Slightly increases respect - Slightly increases wanted level",isCombat:!1,isHacking:!0,name:"Ransomware",params:{baseRespect:5e-5,baseWanted:1e-4,baseMoney:3,hackWeight:100,difficulty:1}},{desc:"Assign this gang member to attempt phishing scams and attacks<br><br>Earns money - Slightly increases respect - Slightly increases wanted level",isCombat:!1,isHacking:!0,name:"Phishing",params:{baseRespect:8e-5,baseWanted:.003,baseMoney:7.5,hackWeight:85,chaWeight:15,difficulty:3.5}},{desc:"Assign this gang member to attempt identity theft<br><br>Earns money - Increases respect - Increases wanted level",isCombat:!1,isHacking:!0,name:"Identity Theft",params:{baseRespect:1e-4,baseWanted:.075,baseMoney:18,hackWeight:80,chaWeight:20,difficulty:5}},{desc:"Assign this gang member to carry out DDoS attacks<br><br>Increases respect - Increases wanted level",isCombat:!1,isHacking:!0,name:"DDoS Attacks",params:{baseRespect:4e-4,baseWanted:.2,hackWeight:100,difficulty:8}},{desc:"Assign this gang member to create and distribute malicious viruses<br><br>Increases respect - Increases wanted level",isCombat:!1,isHacking:!0,name:"Plant Virus",params:{baseRespect:6e-4,baseWanted:.4,hackWeight:100,difficulty:12}},{desc:"Assign this gang member to commit financial fraud and digital counterfeiting<br><br>Earns money - Slightly increases respect - Slightly increases wanted level",isCombat:!1,isHacking:!0,name:"Fraud & Counterfeiting",params:{baseRespect:4e-4,baseWanted:.3,baseMoney:45,hackWeight:80,chaWeight:20,difficulty:20}},{desc:"Assign this gang member to launder money<br><br>Earns money - Increases respect - Increases wanted level",isCombat:!1,isHacking:!0,name:"Money Laundering",params:{baseRespect:.001,baseWanted:1.25,baseMoney:360,hackWeight:75,chaWeight:25,difficulty:25}},{desc:"Assign this gang member to commit acts of cyberterrorism<br><br>Greatly increases respect - Greatly increases wanted level",isCombat:!1,isHacking:!0,name:"Cyberterrorism",params:{baseRespect:.01,baseWanted:6,hackWeight:80,chaWeight:20,difficulty:36}},{desc:"Assign this gang member to be an ethical hacker for corporations<br><br>Earns money - Lowers wanted level",isCombat:!1,isHacking:!0,name:"Ethical Hacking",params:{baseWanted:-.001,baseMoney:3,hackWeight:90,chaWeight:10,difficulty:1}},{desc:"Assign this gang member to mug random people on the streets<br><br>Earns money - Slightly increases respect - Very slightly increases wanted level",isCombat:!0,isHacking:!1,name:"Mug People",params:{baseRespect:5e-5,baseWanted:5e-5,baseMoney:3.6,strWeight:25,defWeight:25,dexWeight:25,agiWeight:10,chaWeight:15,difficulty:1}},{desc:"Assign this gang member to sell drugs<br><br>Earns money - Slightly increases respect - Slightly increases wanted level - Scales slightly with territory",isCombat:!0,isHacking:!1,name:"Deal Drugs",params:{baseRespect:6e-5,baseWanted:.002,baseMoney:15,agiWeight:20,dexWeight:20,chaWeight:60,difficulty:3.5,territory:{money:1.2,respect:1,wanted:1.15}}},{desc:"Assign this gang member to extort civilians in your territory<br><br>Earns money - Slightly increases respect - Increases wanted - Scales heavily with territory",isCombat:!0,isHacking:!1,name:"Strongarm Civilians",params:{baseRespect:4e-5,baseWanted:.02,baseMoney:7.5,hackWeight:10,strWeight:25,defWeight:25,dexWeight:20,agiWeight:10,chaWeight:10,difficulty:5,territory:{money:1.6,respect:1.1,wanted:1.5}}},{desc:"Assign this gang member to run cons<br><br>Earns money - Increases respect - Increases wanted level",isCombat:!0,isHacking:!1,name:"Run a Con",params:{baseRespect:12e-5,baseWanted:.05,baseMoney:45,strWeight:5,defWeight:5,agiWeight:25,dexWeight:25,chaWeight:40,difficulty:14}},{desc:"Assign this gang member to commit armed robbery on stores, banks and armored cars<br><br>Earns money - Increases respect - Increases wanted level",isCombat:!0,isHacking:!1,name:"Armed Robbery",params:{baseRespect:14e-5,baseWanted:.1,baseMoney:114,hackWeight:20,strWeight:15,defWeight:15,agiWeight:10,dexWeight:20,chaWeight:20,difficulty:20}},{desc:"Assign this gang member to traffick illegal arms<br><br>Earns money - Increases respect - Increases wanted level - Scales heavily with territory",isCombat:!0,isHacking:!1,name:"Traffick Illegal Arms",params:{baseRespect:2e-4,baseWanted:.24,baseMoney:174,hackWeight:15,strWeight:20,defWeight:20,dexWeight:20,chaWeight:25,difficulty:32,territory:{money:1.4,respect:1.3,wanted:1.25}}},{desc:"Assign this gang member to threaten and black mail high-profile targets<br><br>Earns money - Slightly increases respect - Slightly increases wanted level",isCombat:!0,isHacking:!1,name:"Threaten & Blackmail",params:{baseRespect:2e-4,baseWanted:.125,baseMoney:72,hackWeight:25,strWeight:25,dexWeight:25,chaWeight:25,difficulty:28}},{desc:"Assign this gang member to engage in human trafficking operations<br><br>Earns money - Increases respect - Increases wanted level - Scales heavily with territory",isCombat:!0,isHacking:!1,name:"Human Trafficking",params:{baseRespect:.004,baseWanted:1.25,baseMoney:360,hackWeight:30,strWeight:5,defWeight:5,dexWeight:30,chaWeight:30,difficulty:36,territory:{money:1.5,respect:1.5,wanted:1.6}}},{desc:"Assign this gang member to commit acts of terrorism<br><br>Greatly increases respect - Greatly increases wanted level - Scales heavily with territory",isCombat:!0,isHacking:!1,name:"Terrorism",params:{baseRespect:.01,baseWanted:6,hackWeight:20,strWeight:20,defWeight:20,dexWeight:20,chaWeight:20,difficulty:36,territory:{money:1,respect:2,wanted:2}}},{desc:"Assign this gang member to be a vigilante and protect the city from criminals<br><br>Decreases wanted level",isCombat:!0,isHacking:!0,name:"Vigilante Justice",params:{baseWanted:-.001,hackWeight:20,strWeight:20,defWeight:20,dexWeight:20,agiWeight:20,difficulty:1,territory:{money:1,respect:1,wanted:.9}}},{desc:"Assign this gang member to increase their combat stats (str, def, dex, agi)",isCombat:!0,isHacking:!0,name:"Train Combat",params:{strWeight:25,defWeight:25,dexWeight:25,agiWeight:25,difficulty:100}},{desc:"Assign this gang member to train their hacking skills",isCombat:!0,isHacking:!0,name:"Train Hacking",params:{hackWeight:100,difficulty:45}},{desc:"Assign this gang member to train their charisma",isCombat:!0,isHacking:!0,name:"Train Charisma",params:{chaWeight:100,difficulty:8}},{desc:"Assign this gang member to engage in territorial warfare with other gangs. Members assigned to this task will help increase your gang's territory and will defend your territory from being taken.",isCombat:!0,isHacking:!0,name:"Territory Warfare",params:{hackWeight:15,strWeight:20,defWeight:20,dexWeight:20,agiWeight:20,chaWeight:5,difficulty:5}}]},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var a=n(610),r=n(245),i=n(232),o=n(22),s=n(205);function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class c{constructor(e=""){l(this,"task","Unassigned"),l(this,"earnedRespect",0),l(this,"hack",1),l(this,"str",1),l(this,"def",1),l(this,"dex",1),l(this,"agi",1),l(this,"cha",1),l(this,"hack_exp",0),l(this,"str_exp",0),l(this,"def_exp",0),l(this,"dex_exp",0),l(this,"agi_exp",0),l(this,"cha_exp",0),l(this,"hack_mult",1),l(this,"str_mult",1),l(this,"def_mult",1),l(this,"dex_mult",1),l(this,"agi_mult",1),l(this,"cha_mult",1),l(this,"hack_asc_points",0),l(this,"str_asc_points",0),l(this,"def_asc_points",0),l(this,"dex_asc_points",0),l(this,"agi_asc_points",0),l(this,"cha_asc_points",0),l(this,"upgrades",[]),l(this,"augmentations",[]),this.name=e}calculateSkill(e,t=1){return Math.max(Math.floor(t*(32*Math.log(e+534.5)-200)),1)}calculateAscensionMult(e){return Object(s.a)(e)}updateSkillLevels(){this.hack=this.calculateSkill(this.hack_exp,this.hack_mult*this.calculateAscensionMult(this.hack_asc_points)),this.str=this.calculateSkill(this.str_exp,this.str_mult*this.calculateAscensionMult(this.str_asc_points)),this.def=this.calculateSkill(this.def_exp,this.def_mult*this.calculateAscensionMult(this.def_asc_points)),this.dex=this.calculateSkill(this.dex_exp,this.dex_mult*this.calculateAscensionMult(this.dex_asc_points)),this.agi=this.calculateSkill(this.agi_exp,this.agi_mult*this.calculateAscensionMult(this.agi_asc_points)),this.cha=this.calculateSkill(this.cha_exp,this.cha_mult*this.calculateAscensionMult(this.cha_asc_points))}calculatePower(){return(this.hack+this.str+this.def+this.dex+this.agi+this.cha)/95}assignToTask(e){return r.a.hasOwnProperty(e)?(this.task=e,!0):(this.task="Unassigned",!1)}unassignFromTask(){this.task="Unassigned"}getTask(){return this.task instanceof a.a&&(this.task=this.task.name),r.a.hasOwnProperty(this.task)?r.a[this.task]:r.a.Unassigned}calculateRespectGain(e){const t=this.getTask(),n={respect:e.respect,wantedLevel:e.wanted,territory:e.getTerritory()};return Object(s.d)(n,this,t)}calculateWantedLevelGain(e){const t=this.getTask(),n={respect:e.respect,wantedLevel:e.wanted,territory:e.getTerritory()};return Object(s.e)(n,this,t)}calculateMoneyGain(e){const t=this.getTask(),n={respect:e.respect,wantedLevel:e.wanted,territory:e.getTerritory()};return Object(s.c)(n,this,t)}expMult(){return{hack:(this.hack_mult-1)/4+1,str:(this.str_mult-1)/4+1,def:(this.def_mult-1)/4+1,dex:(this.dex_mult-1)/4+1,agi:(this.agi_mult-1)/4+1,cha:(this.cha_mult-1)/4+1}}gainExperience(e=1){const t=this.getTask();if(t===r.a.Unassigned)return;const n=Math.pow(t.difficulty,.9)*e,a=this.expMult();this.hack_exp+=t.hackWeight/1500*n*a.hack*this.calculateAscensionMult(this.hack_asc_points),this.str_exp+=t.strWeight/1500*n*a.str*this.calculateAscensionMult(this.str_asc_points),this.def_exp+=t.defWeight/1500*n*a.def*this.calculateAscensionMult(this.def_asc_points),this.dex_exp+=t.dexWeight/1500*n*a.dex*this.calculateAscensionMult(this.dex_asc_points),this.agi_exp+=t.agiWeight/1500*n*a.agi*this.calculateAscensionMult(this.agi_asc_points),this.cha_exp+=t.chaWeight/1500*n*a.cha*this.calculateAscensionMult(this.cha_asc_points)}recordEarnedRespect(e=1,t){this.earnedRespect+=this.calculateRespectGain(t)*e}getGainedAscensionPoints(){return{hack:Object(s.b)(this.hack_exp),str:Object(s.b)(this.str_exp),def:Object(s.b)(this.def_exp),dex:Object(s.b)(this.dex_exp),agi:Object(s.b)(this.agi_exp),cha:Object(s.b)(this.cha_exp)}}canAscend(){const e=this.getGainedAscensionPoints();return e.hack>0||e.str>0||e.def>0||e.dex>0||e.agi>0||e.cha>0}getCurrentAscensionMults(){return{hack:this.calculateAscensionMult(this.hack_asc_points),str:this.calculateAscensionMult(this.str_asc_points),def:this.calculateAscensionMult(this.def_asc_points),dex:this.calculateAscensionMult(this.dex_asc_points),agi:this.calculateAscensionMult(this.agi_asc_points),cha:this.calculateAscensionMult(this.cha_asc_points)}}getAscensionMultsAfterAscend(){const e=this.getGainedAscensionPoints();return{hack:this.calculateAscensionMult(this.hack_asc_points+e.hack),str:this.calculateAscensionMult(this.str_asc_points+e.str),def:this.calculateAscensionMult(this.def_asc_points+e.def),dex:this.calculateAscensionMult(this.dex_asc_points+e.dex),agi:this.calculateAscensionMult(this.agi_asc_points+e.agi),cha:this.calculateAscensionMult(this.cha_asc_points+e.cha)}}getAscensionResults(){const e=this.getAscensionMultsAfterAscend(),t=this.getCurrentAscensionMults();return{hack:e.hack/t.hack,str:e.str/t.str,def:e.def/t.def,dex:e.dex/t.dex,agi:e.agi/t.agi,cha:e.cha/t.cha}}ascend(){const e=this.getAscensionResults(),t=this.getGainedAscensionPoints();this.hack_asc_points+=t.hack,this.str_asc_points+=t.str,this.def_asc_points+=t.def,this.dex_asc_points+=t.dex,this.agi_asc_points+=t.agi,this.cha_asc_points+=t.cha,this.upgrades.length=0,this.hack_mult=1,this.str_mult=1,this.def_mult=1,this.dex_mult=1,this.agi_mult=1,this.cha_mult=1;for(let e=0;e<this.augmentations.length;++e){const t=i.a[this.augmentations[e]];this.applyUpgrade(t)}this.hack_exp=0,this.str_exp=0,this.def_exp=0,this.dex_exp=0,this.agi_exp=0,this.cha_exp=0,this.updateSkillLevels();const n=this.earnedRespect;return this.earnedRespect=0,{respect:n,hack:e.hack,str:e.str,def:e.def,dex:e.dex,agi:e.agi,cha:e.cha}}applyUpgrade(e){null!=e.mults.str&&(this.str_mult*=e.mults.str),null!=e.mults.def&&(this.def_mult*=e.mults.def),null!=e.mults.dex&&(this.dex_mult*=e.mults.dex),null!=e.mults.agi&&(this.agi_mult*=e.mults.agi),null!=e.mults.cha&&(this.cha_mult*=e.mults.cha),null!=e.mults.hack&&(this.hack_mult*=e.mults.hack)}buyUpgrade(e,t,n){return!this.augmentations.includes(e.name)&&!this.upgrades.includes(e.name)&&(!(t.money<n.getUpgradeCost(e))&&(t.loseMoney(n.getUpgradeCost(e),"gang"),"g"===e.type?this.augmentations.push(e.name):this.upgrades.push(e.name),this.applyUpgrade(e),!0))}toJSON(){return Object(o.b)("GangMember",this)}static fromJSON(e){return Object(o.a)(c,e.data)}}o.c.constructors.GangMember=c},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var a=n(187),r=n(6);class i{constructor(e="",t=0,n=a.a.Weapon,r={}){this.name=e,this.cost=t,this.type=n,this.mults=r,this.desc=this.createDescription()}createDescription(){const e=["Effects:"];return null!=this.mults.str&&(e.push(`+${r.a.formatPercentage(this.mults.str-1,0)} strength skill`),e.push(`+${r.a.formatPercentage((this.mults.str-1)/4,2)} strength exp`)),null!=this.mults.def&&(e.push(`+${r.a.formatPercentage(this.mults.def-1,0)} defense skill`),e.push(`+${r.a.formatPercentage((this.mults.def-1)/4,2)} defense exp`)),null!=this.mults.dex&&(e.push(`+${r.a.formatPercentage(this.mults.dex-1,0)} dexterity skill`),e.push(`+${r.a.formatPercentage((this.mults.dex-1)/4,2)} dexterity exp`)),null!=this.mults.agi&&(e.push(`+${r.a.formatPercentage(this.mults.agi-1,0)} agility skill`),e.push(`+${r.a.formatPercentage((this.mults.agi-1)/4,2)} agility exp`)),null!=this.mults.cha&&(e.push(`+${r.a.formatPercentage(this.mults.cha-1,0)} charisma skill`),e.push(`+${r.a.formatPercentage((this.mults.cha-1)/4,2)} charisma exp`)),null!=this.mults.hack&&(e.push(`+${r.a.formatPercentage(this.mults.hack-1,0)} hacking skill`),e.push(`+${r.a.formatPercentage((this.mults.hack-1)/4,2)} hacking exp`)),e.join("<br>")}getType(){switch(this.type){case a.a.Weapon:return"Weapon";case a.a.Armor:return"Armor";case a.a.Vehicle:return"Vehicle";case a.a.Rootkit:return"Rootkit";case a.a.Augmentation:return"Augmentation";default:return""}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var a=n(4);const r={[a.a.SlumSnakes]:1,[a.a.Tetrads]:2,[a.a.TheSyndicate]:2,[a.a.TheDarkArmy]:2,[a.a.SpeakersForTheDead]:5,[a.a.NiteSec]:2,[a.a.TheBlackHand]:5}},function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var a=n(65),r=n(611),i=n(73),o=n(15),s=n(388),l=n(377),c=n(101);function f(e){const t=function(t){if(10!==e.bitNodeN&&!e.sourceFileLvl(10))throw t.makeRuntimeErrorMsg("You do not currently have access to the Sleeve API. This is either because you are not in BitNode-10 or because you do not have Source-File 10")},n=function(t,n){if(n>=e.sleeves.length||n<0){const e="Invalid sleeve number: "+n;throw t.log(()=>e),t.makeRuntimeErrorMsg(e)}},f=function(t){const n=e.sleeves[t];return{shock:100-n.shock,sync:n.sync,hacking:n.hacking,strength:n.strength,defense:n.defense,dexterity:n.dexterity,agility:n.agility,charisma:n.charisma}};return{getNumSleeves:n=>()=>(t(n),e.sleeves.length),setToShockRecovery:a=>r=>{const i=a.helper.number("sleeveNumber",r);return t(a),n(a,i),e.sleeves[i].shockRecovery(e)},setToSynchronize:a=>r=>{const i=a.helper.number("sleeveNumber",r);return t(a),n(a,i),e.sleeves[i].synchronize(e)},setToCommitCrime:a=>(r,i)=>{const o=a.helper.number("sleeveNumber",r),l=a.helper.string("crimeName",i);t(a),n(a,o);const c=Object(s.b)(l);return null!==c&&e.sleeves[o].commitCrime(e,c.name)},setToUniversityCourse:a=>(r,i,o)=>{const s=a.helper.number("sleeveNumber",r),l=a.helper.string("universityName",i),c=a.helper.string("className",o);return t(a),n(a,s),e.sleeves[s].takeUniversityCourse(e,l,c)},travel:a=>(r,i)=>{const s=a.helper.number("sleeveNumber",r),c=a.helper.string("cityName",i);if(t(a),n(a,s),Object(l.a)(o.a,c))return e.sleeves[s].travel(e,c);throw a.makeRuntimeErrorMsg(`Invalid city name: '${c}'.`)},setToCompanyWork:r=>(i,o)=>{const s=r.helper.number("sleeveNumber",i),l=r.helper.string("companyName",o);t(r),n(r,s);for(let t=0;t<e.sleeves.length;++t){if(t===s)continue;const n=e.sleeves[t];if(n.currentTask===a.a.Company&&n.currentTaskLocation===l)throw r.makeRuntimeErrorMsg(`Sleeve ${s} cannot work for company ${l} because Sleeve ${t} is already working for them.`)}return e.sleeves[s].workForCompany(e,l)},setToFactionWork:r=>(i,o,s)=>{const l=r.helper.number("sleeveNumber",i),c=r.helper.string("factionName",o),f=r.helper.string("workType",s);t(r),n(r,l);for(let t=0;t<e.sleeves.length;++t){if(t===l)continue;const n=e.sleeves[t];if(n.currentTask===a.a.Faction&&n.currentTaskLocation===c)throw r.makeRuntimeErrorMsg(`Sleeve ${l} cannot work for faction ${c} because Sleeve ${t} is already working for them.`)}if(e.gang&&e.gang.facName==c)throw r.makeRuntimeErrorMsg(`Sleeve ${l} cannot work for faction ${c} because you have started a gang with them.`);return e.sleeves[l].workForFaction(e,c,f)},setToGymWorkout:a=>(r,i,o)=>{const s=a.helper.number("sleeveNumber",r),l=a.helper.string("gymName",i),c=a.helper.string("stat",o);return t(a),n(a,s),e.sleeves[s].workoutAtGym(e,l,c)},getSleeveStats:e=>a=>{const r=e.helper.number("sleeveNumber",a);return t(e),n(e,r),f(r)},getTask:r=>i=>{const o=r.helper.number("sleeveNumber",i);t(r),n(r,o);const s=e.sleeves[o];return{task:a.a[s.currentTask],crime:s.crimeType,location:s.currentTaskLocation,gymStatType:s.gymStatType,factionWorkType:c.a[s.factionWorkType],className:s.className}},getInformation:a=>r=>{const i=a.helper.number("sleeveNumber",r);t(a),n(a,i);const o=e.sleeves[i];return{tor:!1,city:o.city,hp:o.hp,jobs:Object.keys(e.jobs),jobTitle:Object.values(e.jobs),maxHp:o.max_hp,mult:{agility:o.mults.agility,agilityExp:o.mults.agility_exp,charisma:o.mults.charisma,charismaExp:o.mults.charisma_exp,companyRep:o.mults.company_rep,crimeMoney:o.mults.crime_money,crimeSuccess:o.mults.crime_success,defense:o.mults.defense,defenseExp:o.mults.defense_exp,dexterity:o.mults.dexterity,dexterityExp:o.mults.dexterity_exp,factionRep:o.mults.faction_rep,hacking:o.mults.hacking,hackingExp:o.mults.hacking_exp,strength:o.mults.strength,strengthExp:o.mults.strength_exp,workMoney:o.mults.work_money},timeWorked:o.currentTaskTime,earningsForSleeves:{workHackExpGain:o.earningsForSleeves.hack,workStrExpGain:o.earningsForSleeves.str,workDefExpGain:o.earningsForSleeves.def,workDexExpGain:o.earningsForSleeves.dex,workAgiExpGain:o.earningsForSleeves.agi,workChaExpGain:o.earningsForSleeves.cha,workMoneyGain:o.earningsForSleeves.money},earningsForPlayer:{workHackExpGain:o.earningsForPlayer.hack,workStrExpGain:o.earningsForPlayer.str,workDefExpGain:o.earningsForPlayer.def,workDexExpGain:o.earningsForPlayer.dex,workAgiExpGain:o.earningsForPlayer.agi,workChaExpGain:o.earningsForPlayer.cha,workMoneyGain:o.earningsForPlayer.money},earningsForTask:{workHackExpGain:o.earningsForTask.hack,workStrExpGain:o.earningsForTask.str,workDefExpGain:o.earningsForTask.def,workDexExpGain:o.earningsForTask.dex,workAgiExpGain:o.earningsForTask.agi,workChaExpGain:o.earningsForTask.cha,workMoneyGain:o.earningsForTask.money},workRepGain:o.getRepGain(e)}},getSleeveAugmentations:a=>r=>{const i=a.helper.number("sleeveNumber",r);t(a),n(a,i);const o=[];for(let t=0;t<e.sleeves[i].augmentations.length;t++)o.push(e.sleeves[i].augmentations[t].name);return o},getSleevePurchasableAugs:a=>i=>{const o=a.helper.number("sleeveNumber",i);t(a),n(a,o);const s=Object(r.a)(e.sleeves[o],e),l=[];for(let e=0;e<s.length;e++){const t=s[e];l.push({name:t.name,cost:t.baseCost})}return l},purchaseSleeveAug:a=>(r,o)=>{const s=a.helper.number("sleeveNumber",r),l=a.helper.string("augName",o);if(t(a),n(a,s),f(s).shock>0)throw a.makeRuntimeErrorMsg("Sleeve shock too high: Sleeve "+s);const c=i.a[l];if(!c)throw a.makeRuntimeErrorMsg("Invalid aug: "+l);return e.sleeves[s].tryBuyAugmentation(e,c)},setToBladeburnerAction:r=>(i,o,s)=>{const l=r.helper.number("sleeveNumber",i),c=r.helper.string("action",o);let f;if(f=void 0===s?"------":r.helper.string("contract",s),t(r),n(r,l),"Take on contracts"===c)for(let t=0;t<e.sleeves.length;++t){if(t===l)continue;const n=e.sleeves[t];if(n.currentTask===a.a.Bladeburner&&n.bbAction===c)throw r.helper.makeRuntimeErrorMsg(`Sleeve ${l} cannot take of contracts because Sleeve ${t} is already performing that action.`)}return e.sleeves[l].bladeburner(e,c,f)}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var a=n(109),r=n(1052),i=n(475);function o(e){return{heart:{break:()=>()=>e.karma},openDevMenu:()=>()=>{i.b.emit()},exploit:()=>()=>{e.giveExploit(a.a.UndocumentedFunctionCall)},bypass:t=>n=>{const r=n;r.completely_unused_field=void 0;const i=document;i.completely_unused_field=void 0,i.completely_unused_field=!0,r.completely_unused_field&&1.6===t.workerScript.ramUsage&&e.giveExploit(a.a.Bypass),r.completely_unused_field=void 0,i.completely_unused_field=void 0},alterReality:()=>()=>{let t=!1;const n=function(e){0!==e&&(t=!t,n(e-1))};n(2),console.warn("I am sure that this variable is false."),!1!==t&&(console.warn("Reality has been altered!"),e.giveExploit(a.a.RealityAlteration))},rainbow:t=>n=>!!r.compareSync(t.helper.string("guess",n),"$2a$10$aertxDEkgor8baVtQDZsLuMwwGYmkRM/ohcA6FjmmzIHQeTCsrCcO")&&(e.giveExploit(a.a.INeedARainbow),!0)}}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var a=n(40),r=n(54),i=n(91),o=n(226),s=n(244),l=n(27);function c(e,t){const n=function(t,n){if(n<0||n>=e.hacknetNodes.length)throw t.makeRuntimeErrorMsg("Index specified for Hacknet Node is out-of-bounds: "+n);if(Object(r.g)(e)){const a=e.hacknetNodes[n];if("string"!=typeof a)throw new Error("hacknet node was not a string");const r=Object(l.d)(a);if(!(r instanceof i.a))throw new Error("hacknet server was not actually hacknet server");if(null==r)throw t.makeRuntimeErrorMsg(`Could not get Hacknet Server for index ${n}. This is probably a bug, please report to game dev`);return r}{const t=e.hacknetNodes[n];if(!(t instanceof o.a))throw new Error("hacknet node was not node.");return t}};return{numNodes:()=>()=>e.hacknetNodes.length,maxNumNodes:()=>()=>Object(r.g)(e)?a.b.MaxServers:1/0,purchaseNode:()=>()=>Object(r.l)(e),getPurchaseNodeCost:()=>()=>Object(r.g)(e)?Object(r.b)(e):Object(r.a)(e),getNodeStats:t=>a=>{const o=t.helper.number("i",a),s=n(t,o),l=Object(r.g)(e),c={name:s instanceof i.a?s.hostname:s.name,level:s.level,ram:s instanceof i.a?s.maxRam:s.ram,ramUsed:s instanceof i.a?s.ramUsed:void 0,cores:s.cores,production:s instanceof i.a?s.hashRate:s.moneyGainRatePerSecond,timeOnline:s.onlineTimeSeconds,totalProduction:s instanceof i.a?s.totalHashesGenerated:s.totalMoneyGenerated};return l&&s instanceof i.a&&(c.cache=s.cache,c.hashCapacity=s.hashCapacity),c},upgradeLevel:t=>(a,i=1)=>{const o=t.helper.number("i",a),s=t.helper.number("n",i),l=n(t,o);return Object(r.n)(e,l,s)},upgradeRam:t=>(a,i=1)=>{const o=t.helper.number("i",a),s=t.helper.number("n",i),l=n(t,o);return Object(r.o)(e,l,s)},upgradeCore:t=>(a,i=1)=>{const o=t.helper.number("i",a),s=t.helper.number("n",i),l=n(t,o);return Object(r.k)(e,l,s)},upgradeCache:a=>(o,s=1)=>{const l=a.helper.number("i",o),c=a.helper.number("n",s);if(!Object(r.g)(e))return!1;const f=n(a,l);if(!(f instanceof i.a))return t.log("hacknet.upgradeCache",()=>"Can only be called on hacknet servers"),!1;const u=Object(r.j)(e,f,c);return u&&Object(r.p)(e),u},getLevelUpgradeCost:t=>(a,r=1)=>{const i=t.helper.number("i",a),o=t.helper.number("n",r);return n(t,i).calculateLevelUpgradeCost(o,e.mults.hacknet_node_level_cost)},getRamUpgradeCost:t=>(a,r=1)=>{const i=t.helper.number("i",a),o=t.helper.number("n",r);return n(t,i).calculateRamUpgradeCost(o,e.mults.hacknet_node_ram_cost)},getCoreUpgradeCost:t=>(a,r=1)=>{const i=t.helper.number("i",a),o=t.helper.number("n",r);return n(t,i).calculateCoreUpgradeCost(o,e.mults.hacknet_node_core_cost)},getCacheUpgradeCost:a=>(o,s=1)=>{const l=a.helper.number("i",o),c=a.helper.number("n",s);if(!Object(r.g)(e))return 1/0;const f=n(a,l);return f instanceof i.a?f.calculateCacheUpgradeCost(c):(t.log("hacknet.getCacheUpgradeCost",()=>"Can only be called on hacknet servers"),-1)},numHashes:()=>()=>Object(r.g)(e)?e.hashManager.hashes:0,hashCapacity:()=>()=>Object(r.g)(e)?e.hashManager.capacity:0,hashCost:t=>n=>{const a=t.helper.string("upgName",n);return Object(r.g)(e)?e.hashManager.getUpgradeCost(a):1/0},spendHashes:t=>(n,a="")=>{const i=t.helper.string("upgName",n),o=t.helper.string("upgTarget",a);return!!Object(r.g)(e)&&Object(r.m)(e,i,o)},getHashUpgrades:()=>()=>Object(r.g)(e)?Object.values(s.a).map(e=>e.name):[],getHashUpgradeLevel:t=>n=>{const a=t.helper.string("upgName",n),r=e.hashManager.upgrades[a];if(void 0===r)throw t.makeRuntimeErrorMsg("Invalid Hash Upgrade: "+a);return r},getStudyMult:()=>()=>Object(r.g)(e)?e.hashManager.getStudyMult():1,getTrainingMult:()=>()=>Object(r.g)(e)?e.hashManager.getTrainingMult():1}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var a=n(111),r=n(102),i=n(122),o=n(61),s=n(11),l=n(115),c=n(4),f=n(105),u=n(29);function m(e,t,n){function m(t){if(!e.hasAugmentation(s.a.StaneksGift1,!0))throw n.makeRuntimeErrorMsg(t,"Stanek's Gift is not installed")}return{giftWidth:()=>function(){return m("giftWidth"),r.c.width()},giftHeight:()=>function(){return m("giftHeight"),r.c.height()},chargeFragment:n=>function(i,s){const l=n.helper.number("rootX",i),c=n.helper.number("rootY",s);m("chargeFragment");const f=r.c.findFragment(l,c);if(!f)throw n.makeRuntimeErrorMsg(`No fragment with root (${l}, ${c}).`);if(f.fragment().type==o.b.Booster)throw n.makeRuntimeErrorMsg(`The fragment with root (${l}, ${c}) is a Booster Fragment and thus cannot be charged.`);const u=r.c.inBonus()?200:1e3;return Object(a.c)(u,t).then((function(){return r.c.charge(e,f,t.scriptRef.threads),n.log(()=>`Charged fragment with ${n.workerScript.scriptRef.threads} threads.`),Promise.resolve()}))},fragmentDefinitions:e=>function(){return m("fragmentDefinitions"),e.log(()=>`Returned ${i.c.length} fragments`),i.c.map(e=>e.copy())},activeFragments:e=>function(){return m("activeFragments"),e.log(()=>`Returned ${r.c.fragments.length} fragments`),r.c.fragments.map(e=>({...e.copy(),...e.fragment().copy()}))},clearGift:e=>function(){m("clearGift"),e.log(()=>"Cleared Stanek's Gift."),r.c.clear()},canPlaceFragment:e=>function(t,n,a,o){const s=e.helper.number("rootX",t),l=e.helper.number("rootY",n),c=e.helper.number("rotation",a),f=e.helper.number("fragmentId",o);m("canPlaceFragment");const u=Object(i.b)(f);if(!u)throw e.makeRuntimeErrorMsg("Invalid fragment id: "+f);return r.c.canPlace(s,l,c,u)},placeFragment:e=>function(t,n,a,o){const s=e.helper.number("rootX",t),l=e.helper.number("rootY",n),c=e.helper.number("rotation",a),f=e.helper.number("fragmentId",o);m("placeFragment");const u=Object(i.b)(f);if(!u)throw e.makeRuntimeErrorMsg("Invalid fragment id: "+f);return r.c.place(s,l,c,u)},getFragment:e=>function(t,n){const a=e.helper.number("rootX",t),i=e.helper.number("rootY",n);m("getFragment");const o=r.c.findFragment(a,i);if(void 0!==o)return o.copy()},removeFragment:e=>function(t,n){const a=e.helper.number("rootX",t),i=e.helper.number("rootY",n);return m("removeFragment"),r.c.delete(a,i)},acceptGift:t=>function(){return e.canAccessCotMG()&&0==e.augmentations.filter(e=>e.name!==s.a.NeuroFluxGovernor).length&&0==e.queuedAugmentations.filter(e=>e.name!==s.a.NeuroFluxGovernor).length&&(Object(f.d)(u.a[c.a.ChurchOfTheMachineGod]),e.hasAugmentation(s.a.StaneksGift1)||e.queuedAugmentations.some(e=>e.name===s.a.StaneksGift1)||Object(l.a)({name:s.a.StaneksGift1,level:1})),u.a[c.a.ChurchOfTheMachineGod].isMember&&e.hasAugmentation(s.a.StaneksGift1)}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var a=n(21);function r(e,t,n,r){return 1+Math.log(e+1)/60*Math.pow((t+1)/5,.07)*n*r*a.a.StaneksGiftPowerMultiplier}},function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var a=n(181),r=n(494),i=n(395),o=n(4),s=n(29),l=n(377),c=n(9);function f(e){const t=Object.values(a.a).filter(e=>e.infiltrationData);return{getPossibleLocations:()=>()=>t.map(e=>e+""),getInfiltration:t=>n=>{const f=t.helper.string("location",n);return((t,n)=>{if(!Object(l.a)(c.a,n))throw new Error(`Location '${n}' does not exists.`);const f=a.a[n];if(void 0===f)throw t.makeRuntimeErrorMsg(`Location '${f}' does not exists.`);if(void 0===f.infiltrationData)throw t.makeRuntimeErrorMsg(`Location '${f}' does not provide infiltrations.`);const u=f.infiltrationData.startingSecurityLevel,m=Object(r.a)(e,u),h=Object(r.b)(e,u),d=f.infiltrationData.maxClearanceLevel;return{location:f,reward:{tradeRep:Object(i.c)(e,h,d,m),sellCash:Object(i.b)(e,h,d,m),SoARep:Object(i.a)(e,s.a[o.a.ShadowsOfAnarchy],m)},difficulty:m}})(t,f)}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var a=n(5),r=n(173),i=n(345),o=n(412),s=n(12),l=n(257),c=n(84);function f(){return{getTheme:()=>()=>({...a.a.theme}),getStyles:()=>()=>({...a.a.styles}),setTheme:e=>t=>{const n=/^(#)((?:[A-Fa-f0-9]{2}){3,4}|(?:[A-Fa-f0-9]{3}))$/,i={...a.a.theme},o=[];for(const e of Object.keys(t)){var s;i[e]?n.test(null!==(s=t[e])&&void 0!==s?s:"")?i[e]=t[e]:o.push(`Invalid color "${e}": ${t[e]}`):o.push(`Invalid key "${e}"`)}0===o.length?(Object.assign(a.a.theme,i),r.b.emit(),e.log(()=>"Successfully set theme")):e.log(()=>"Failed to set theme. Errors: "+o.join(", "))},setStyles:e=>t=>{const n={...a.a.styles},i=[];for(const e of Object.keys(t))n[e]?n[e]=t[e]:i.push(`Invalid key "${e}"`);0===i.length?(Object.assign(a.a.styles,n),r.b.emit(),e.log(()=>"Successfully set styles")):e.log(()=>"Failed to set styles. Errors: "+i.join(", "))},resetTheme:e=>()=>{a.a.theme={...i.a},r.b.emit(),e.log(()=>"Reinitialized theme to default")},resetStyles:e=>()=>{a.a.styles={...o.a},r.b.emit(),e.log(()=>"Reinitialized styles to default")},getGameInfo:()=>()=>({version:s.a.VersionString,commit:Object(l.a)(),platform:navigator.userAgent.toLowerCase().indexOf(" electron/")>-1?"Steam":"Browser"}),clearTerminal:e=>()=>{e.log(()=>"Clearing terminal"),c.a.clear()}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var a=n(212),r=n(21);function i(e,t){const n=function(t,n=!1){const r=e.bladeburner;if(null===r)throw new Error("Must have joined bladeburner");if(!(7===e.bitNodeN||e.sourceFiles.some(e=>7===e.n))){const e="You do not currently have access to the Bladeburner API. You must either be in BitNode-7 or have Source-File 7.";throw t.makeRuntimeErrorMsg(e)}if(!n){if(!(r instanceof a.a)){const e="You must be a member of the Bladeburner division to use this API.";throw t.makeRuntimeErrorMsg(e)}}},i=function(t,n){const a=e.bladeburner;if(null===a)throw new Error("Must have joined bladeburner");if(!a.cities.hasOwnProperty(n))throw t.makeRuntimeErrorMsg("Invalid city: "+n)},o=function(t,n,a){const r=e.bladeburner;if(null===r)throw new Error("Must have joined bladeburner");const i=r.getActionIdFromTypeAndName(n,a);if(!i)throw t.makeRuntimeErrorMsg(`Invalid action type='${n}', name='${a}'`);const o=r.getActionObject(i);if(!o)throw t.makeRuntimeErrorMsg(`Invalid action type='${n}', name='${a}'`);return o};return{getContractNames:t=>()=>{n(t);const a=e.bladeburner;if(null===a)throw new Error("Should not be called without Bladeburner");return a.getContractNamesNetscriptFn()},getOperationNames:t=>()=>{n(t);const a=e.bladeburner;if(null===a)throw new Error("Should not be called without Bladeburner");return a.getOperationNamesNetscriptFn()},getBlackOpNames:t=>()=>{n(t);const a=e.bladeburner;if(null===a)throw new Error("Should not be called without Bladeburner");return a.getBlackOpNamesNetscriptFn()},getBlackOpRank:e=>t=>{const a=e.helper.string("blackOpName",t);n(e);return o(e,"blackops",a).reqdRank},getGeneralActionNames:t=>()=>{n(t);const a=e.bladeburner;if(null===a)throw new Error("Should not be called without Bladeburner");return a.getGeneralActionNamesNetscriptFn()},getSkillNames:t=>()=>{n(t);const a=e.bladeburner;if(null===a)throw new Error("Should not be called without Bladeburner");return a.getSkillNamesNetscriptFn()},startAction:a=>(r,i)=>{const o=a.helper.string("type",r),s=a.helper.string("name",i);n(a);const l=e.bladeburner;if(null===l)throw new Error("Should not be called without Bladeburner");try{return l.startActionNetscriptFn(e,o,s,t)}catch(e){throw a.makeRuntimeErrorMsg(e)}},stopBladeburnerAction:t=>()=>{n(t);const a=e.bladeburner;if(null===a)throw new Error("Should not be called without Bladeburner");return a.resetAction()},getCurrentAction:t=>()=>{n(t);const a=e.bladeburner;if(null===a)throw new Error("Should not be called without Bladeburner");return a.getTypeAndNameFromActionId(a.action)},getActionTime:t=>(a,r)=>{const i=t.helper.string("type",a),o=t.helper.string("name",r);n(t);const s=e.bladeburner;if(null===s)throw new Error("Should not be called without Bladeburner");try{const n=s.getActionTimeNetscriptFn(e,i,o);if("string"==typeof n){const e=`Invalid action: type='${i}' name='${o}'`;return t.log(()=>e),-1}return n}catch(e){throw t.makeRuntimeErrorMsg(e)}},getActionCurrentTime:t=>()=>{n(t);const a=e.bladeburner;if(null===a)throw new Error("Should not be called without Bladeburner");try{return 1e3*Math.min(a.actionTimeCurrent+a.actionTimeOverflow,a.actionTimeToComplete)}catch(e){throw t.makeRuntimeErrorMsg(e)}},getActionEstimatedSuccessChance:t=>(a,r)=>{const i=t.helper.string("type",a),o=t.helper.string("name",r);n(t);const s=e.bladeburner;if(null===s)throw new Error("Should not be called without Bladeburner");try{const n=s.getActionEstimatedSuccessChanceNetscriptFn(e,i,o);if("string"==typeof n){const e=`Invalid action: type='${i}' name='${o}'`;return t.log(()=>e),[-1,-1]}return n}catch(e){throw t.makeRuntimeErrorMsg(e)}},getActionRepGain:e=>(t,a,i)=>{const s=e.helper.string("type",t),l=e.helper.string("name",a),c=e.helper.number("level",i);n(e);const f=o(e,s,l);let u;return u=null==c||isNaN(c)?Math.pow(f.rewardFac,f.level-1):Math.pow(f.rewardFac,c-1),f.rankGain*u*r.a.BladeburnerRank},getActionCountRemaining:a=>(r,i)=>{const o=a.helper.string("type",r),s=a.helper.string("name",i);n(a);const l=e.bladeburner;if(null===l)throw new Error("Should not be called without Bladeburner");try{return l.getActionCountRemainingNetscriptFn(o,s,t)}catch(e){throw a.makeRuntimeErrorMsg(e)}},getActionMaxLevel:e=>(t,a)=>{const r=e.helper.string("type",t),i=e.helper.string("name",a);n(e);return o(e,r,i).maxLevel},getActionCurrentLevel:e=>(t,a)=>{const r=e.helper.string("type",t),i=e.helper.string("name",a);n(e);return o(e,r,i).level},getActionAutolevel:e=>(t,a)=>{const r=e.helper.string("type",t),i=e.helper.string("name",a);n(e);return o(e,r,i).autoLevel},setActionAutolevel:e=>(t,a,r=!0)=>{const i=e.helper.string("type",t),s=e.helper.string("name",a),l=e.helper.boolean(r);n(e);o(e,i,s).autoLevel=l},setActionLevel:e=>(t,a,r=1)=>{const i=e.helper.string("type",t),s=e.helper.string("name",a),l=e.helper.number("level",r);n(e);const c=o(e,i,s);(l<1||l>c.maxLevel)&&e.helper.makeRuntimeErrorMsg(`Level must be between 1 and ${c.maxLevel}, is ${l}`),c.level=l},getRank:t=>()=>{n(t);const a=e.bladeburner;if(null===a)throw new Error("Should not be called without Bladeburner");return a.rank},getSkillPoints:t=>()=>{n(t);const a=e.bladeburner;if(null===a)throw new Error("Should not be called without Bladeburner");return a.skillPoints},getSkillLevel:a=>r=>{const i=a.helper.string("skillName",r);n(a);const o=e.bladeburner;if(null===o)throw new Error("Should not be called without Bladeburner");try{return o.getSkillLevelNetscriptFn(i,t)}catch(e){throw a.makeRuntimeErrorMsg(e)}},getSkillUpgradeCost:a=>r=>{const i=a.helper.string("skillName",r);n(a);const o=e.bladeburner;if(null===o)throw new Error("Should not be called without Bladeburner");try{return o.getSkillUpgradeCostNetscriptFn(i,t)}catch(e){throw a.makeRuntimeErrorMsg(e)}},upgradeSkill:a=>r=>{const i=a.helper.string("skillName",r);n(a);const o=e.bladeburner;if(null===o)throw new Error("Should not be called without Bladeburner");try{return o.upgradeSkillNetscriptFn(i,t)}catch(e){throw a.makeRuntimeErrorMsg(e)}},getTeamSize:a=>(r,i)=>{const o=a.helper.string("type",r),s=a.helper.string("name",i);n(a);const l=e.bladeburner;if(null===l)throw new Error("Should not be called without Bladeburner");try{return l.getTeamSizeNetscriptFn(o,s,t)}catch(e){throw a.makeRuntimeErrorMsg(e)}},setTeamSize:a=>(r,i,o)=>{const s=a.helper.string("type",r),l=a.helper.string("name",i),c=a.helper.number("size",o);n(a);const f=e.bladeburner;if(null===f)throw new Error("Should not be called without Bladeburner");try{return f.setTeamSizeNetscriptFn(s,l,c,t)}catch(e){throw a.makeRuntimeErrorMsg(e)}},getCityEstimatedPopulation:t=>a=>{const r=t.helper.string("cityName",a);n(t),i(t,r);const o=e.bladeburner;if(null===o)throw new Error("Should not be called without Bladeburner");return o.cities[r].popEst},getCityCommunities:t=>a=>{const r=t.helper.string("cityName",a);n(t),i(t,r);const o=e.bladeburner;if(null===o)throw new Error("Should not be called without Bladeburner");return o.cities[r].comms},getCityChaos:t=>a=>{const r=t.helper.string("cityName",a);n(t),i(t,r);const o=e.bladeburner;if(null===o)throw new Error("Should not be called without Bladeburner");return o.cities[r].chaos},getCity:t=>()=>{n(t);const a=e.bladeburner;if(null===a)throw new Error("Should not be called without Bladeburner");return a.city},switchCity:t=>a=>{const r=t.helper.string("cityName",a);n(t),i(t,r);const o=e.bladeburner;if(null===o)throw new Error("Should not be called without Bladeburner");return o.city=r,!0},getStamina:t=>()=>{n(t);const a=e.bladeburner;if(null===a)throw new Error("Should not be called without Bladeburner");return[a.stamina,a.maxStamina]},joinBladeburnerFaction:a=>()=>{n(a,!0);const r=e.bladeburner;if(null===r)throw new Error("Should not be called without Bladeburner");return r.joinBladeburnerFactionNetscriptFn(t)},joinBladeburnerDivision:t=>()=>(7===e.bitNodeN||e.sourceFileLvl(7)>0)&&(8!==e.bitNodeN&&(e.bladeburner instanceof a.a||(e.strength>=100&&e.defense>=100&&e.dexterity>=100&&e.agility>=100?(e.bladeburner=new a.a(e),t.log(()=>"You have been accepted into the Bladeburner division"),!0):(t.log(()=>"You do not meet the requirements for joining the Bladeburner division"),!1)))),getBonusTime:t=>()=>{n(t);const a=e.bladeburner;if(null===a)throw new Error("Should not be called without Bladeburner");return 1e3*Math.round(a.storedCycles/5)}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var a=n(1060);function r(e,t){const n=function(e,t,n,a){const r=e.helper.getServer(n).getContract(a);if(null==r)throw e.makeRuntimeErrorMsg(`Cannot find contract '${a}' on server '${n}'`);return r};return{attempt:r=>(i,o,s=t.hostname,{returnReward:l}={returnReward:!1})=>{const c=r.helper.string("filename",o),f=r.helper.string("hostname",s),u=n(r,0,f,c);if(Object(a.a)(i)){const e=[];for(let t=0;t<i.length;++t)e.push(["[",i[t].toString(),"]"].join(""));i=e.join(",")}else i=String(i);const m=u.reward;if(null===m)throw new Error("Somehow solved a contract that didn't have a reward");const h=r.helper.getServer(f);if(u.isSolution(i)){const t=e.gainCodingContractReward(m,u.getDifficulty());return r.log(()=>`Successfully completed Coding Contract '${c}'. Reward: ${t}`),h.removeContract(c),!l||t}return++u.tries,u.tries>=u.getMaxNumTries()?(r.log(()=>`Coding Contract attempt '${c}' failed. Contract is now self-destructing`),h.removeContract(c)):r.log(()=>`Coding Contract attempt '${c}' failed. ${u.getMaxNumTries()-u.tries} attempts remaining.`),!!l&&""},getContractType:e=>(a,r=t.hostname)=>{const i=e.helper.string("filename",a),o=e.helper.string("hostname",r);return n(e,0,o,i).getType()},getData:e=>(a,r=t.hostname)=>{const i=e.helper.string("filename",a),o=e.helper.string("hostname",r),s=n(e,0,o,i).getData();if(s.constructor===Array){const e=s.slice();for(let t=0;t<e.length;++t)s[t].constructor===Array&&(e[t]=s[t].slice());return e}return s},getDescription:e=>(a,r=t.hostname)=>{const i=e.helper.string("filename",a),o=e.helper.string("hostname",r);return n(e,0,o,i).getDescription()},getNumTriesRemaining:e=>(a,r=t.hostname)=>{const i=e.helper.string("filename",a),o=e.helper.string("hostname",r),s=n(e,0,o,i);return s.getMaxNumTries()-s.tries}}}},function(e,t,n){"use strict";function a(e){return Array.isArray(e)}function r(e){return a(e)&&e.every(e=>a(e))}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var a=n(111),r=n(62),i=n(272),o=n(390),s=n(45),l=n(288),c=n(50),f=n(39),u=n(329),m=n(289),h=n(29),d=n(21);function p(e,t){function n(e){const t=g(),n=Object.values(i.b).find(t=>t.name===e);if(void 0===n)throw new Error(`No upgrade named '${e}'`);const a=n.index;return 1===t.unlockUpgrades[a]}function p(e,t){return void 0!==e.researched[t]&&e.researched[t]}function g(){const t=e.corporation;if(null===t)throw new Error("cannot be called without a corporation");return t}function y(e){const t=g().divisions.find(t=>t.name===e);if(void 0===t)throw new Error(`No division named '${e}'`);return t}function b(e,t){const n=y(e);if(!(t in n.offices))throw new Error(`Invalid city name '${t}'`);const a=n.offices[t];if(0===a)throw new Error(`${n.name} has not expanded to '${t}'`);return a}function E(e,t){const n=y(e);if(!(t in n.warehouses))throw new Error(`Invalid city name '${t}'`);const a=n.warehouses[t];if(0===a)throw new Error(`${n.name} has not expanded to '${t}'`);return a}function v(e,t,n){const a=E(e,t),r=n.replace(/ /g,""),i=a.materials[r];if(void 0===i)throw new Error(`Invalid material name: '${n}'`);return i}function k(e,t){const n=y(e).products[t];if(void 0===n)throw new Error(`Invalid product name: '${t}'`);return n}function w(e,t,n){const a=b(e,t).employees.find(e=>e.name===n);if(void 0===a)throw new Error(`Invalid employee name: '${n}'`);return a}function _(t,n){if(null===e.corporation)throw t.makeRuntimeErrorMsg("Must own a corporation.");if(n&&!e.corporation.unlockUpgrades[n])throw t.makeRuntimeErrorMsg("You do not have access to this API.")}function S(e){const t=[];for(const n of Object.values(e.offices))0!==n&&t.push(n.loc);return{name:e.name,type:e.type,awareness:e.awareness,popularity:e.popularity,prodMult:e.prodMult,research:e.sciResearch.qty,lastCycleRevenue:e.lastCycleRevenue,lastCycleExpenses:e.lastCycleExpenses,thisCycleRevenue:e.thisCycleRevenue,thisCycleExpenses:e.thisCycleExpenses,upgrades:e.upgrades.slice(),cities:t,products:void 0===e.products?[]:Object.keys(e.products),makesProducts:e.makesProducts}}return{...{getPurchaseWarehouseCost:e=>()=>(_(e,7),f.a.WarehouseInitialCost),getUpgradeWarehouseCost:e=>(t,n,a=1)=>{_(e,7);const i=e.helper.string("divisionName",t),o=e.helper.city("cityName",n),s=e.helper.number("amount",a);if(s<1)throw e.makeRuntimeErrorMsg("You must provide a positive number");const l=E(i,o);return Object(r.E)(l,s)},hasWarehouse:e=>(t,n)=>{_(e,7);const a=e.helper.string("divisionName",t),r=e.helper.city("cityName",n),i=y(a);if(!(r in i.warehouses))throw new Error(`Invalid city name '${r}'`);return 0!==i.warehouses[r]},getWarehouse:e=>(t,n)=>{_(e,7);const a=E(e.helper.string("divisionName",t),e.helper.city("cityName",n));return{level:a.level,loc:a.loc,size:a.size,sizeUsed:a.sizeUsed,smartSupplyEnabled:a.smartSupplyEnabled}},getMaterial:e=>(t,n,a)=>{_(e,7);const r=v(e.helper.string("divisionName",t),e.helper.city("cityName",n),e.helper.string("materialName",a)),i=g();return{cost:r.bCost,sCost:r.sCost,name:r.name,qty:r.qty,qlt:r.qlt,dmd:i.unlockUpgrades[2]?r.dmd:void 0,cmp:i.unlockUpgrades[3]?r.cmp:void 0,prod:r.prd,sell:r.sll}},getProduct:e=>(t,n)=>{_(e,7);const a=k(e.helper.string("divisionName",t),e.helper.string("productName",n)),r=g();return{name:a.name,dmd:r.unlockUpgrades[2]?a.dmd:void 0,cmp:r.unlockUpgrades[3]?a.cmp:void 0,rat:a.rat,properties:{qlt:a.qlt,per:a.per,dur:a.dur,rel:a.rel,aes:a.aes,fea:a.fea},pCost:a.pCost,sCost:a.sCost,cityData:a.data,developmentProgress:a.prog}},purchaseWarehouse:e=>(t,n)=>{_(e,7);const a=e.helper.string("divisionName",t),i=e.helper.city("cityName",n),o=g();Object(r.p)(o,y(a),i)},upgradeWarehouse:e=>(t,n,a=1)=>{_(e,7);const i=e.helper.string("divisionName",t),o=e.helper.city("cityName",n),s=e.helper.number("amount",a),l=g();if(s<1)throw e.makeRuntimeErrorMsg("You must provide a positive number");Object(r.D)(l,y(i),E(i,o),s)},sellMaterial:e=>(t,n,a,i,o)=>{_(e,7);const s=e.helper.string("divisionName",t),l=e.helper.city("cityName",n),c=e.helper.string("materialName",a),f=e.helper.string("amt",i),u=e.helper.string("price",o),m=v(s,l,c);Object(r.r)(m,f,u)},sellProduct:e=>(t,n,a,i,o,s)=>{_(e,7);const l=e.helper.string("divisionName",t),c=e.helper.city("cityName",n),f=e.helper.string("productName",a),u=e.helper.string("amt",i),m=e.helper.string("price",o),h=e.helper.boolean(s),d=k(l,f);Object(r.s)(d,c,u,m,h)},discontinueProduct:e=>(t,n)=>{_(e,7);const a=e.helper.string("divisionName",t),r=e.helper.string("productName",n);y(a).discontinueProduct(k(a,r))},setSmartSupply:e=>(t,a,i)=>{_(e,7);const o=e.helper.string("divisionName",t),s=e.helper.city("cityName",a),l=e.helper.boolean(i),c=E(o,s);if(!n("Smart Supply"))throw e.makeRuntimeErrorMsg("You have not purchased the Smart Supply upgrade!");Object(r.y)(c,l)},setSmartSupplyUseLeftovers:e=>(t,a,i,o)=>{_(e,7);const s=e.helper.string("divisionName",t),l=e.helper.city("cityName",a),c=e.helper.string("materialName",i),f=e.helper.boolean(o),u=E(s,l),m=v(s,l,c);if(!n("Smart Supply"))throw e.makeRuntimeErrorMsg("You have not purchased the Smart Supply upgrade!");Object(r.z)(u,m,f)},buyMaterial:e=>(t,n,a,i)=>{_(e,7);const o=e.helper.string("divisionName",t),s=e.helper.city("cityName",n),l=e.helper.string("materialName",a),c=e.helper.number("amt",i);if(c<0)throw new Error("Invalid value for amount field! Must be numeric and greater than 0");const f=v(o,s,l);Object(r.e)(f,c)},bulkPurchase:e=>(t,n,a,i)=>{_(e,7);const o=e.helper.string("divisionName",t);if(!p(y(o),"Bulk Purchasing"))throw new Error("You have not researched Bulk Purchasing in "+o);const s=g(),l=e.helper.city("cityName",n),c=e.helper.string("materialName",a),f=e.helper.number("amt",i),u=E(o,l),m=v(o,l,c);Object(r.b)(s,u,m,f)},makeProduct:e=>(t,n,a,i,o)=>{_(e,7);const s=e.helper.string("divisionName",t),l=e.helper.city("cityName",n),c=e.helper.string("productName",a),f=e.helper.number("designInvest",i),u=e.helper.number("marketingInvest",o),m=g();Object(r.m)(m,y(s),l,c,f,u)},limitProductProduction:e=>(t,n,a,i)=>{_(e,7);const o=e.helper.string("divisionName",t),s=e.helper.city("cityName",a),l=e.helper.string("productName",n),c=e.helper.number("qty",i);Object(r.l)(k(o,l),s,c)},exportMaterial:e=>(t,n,a,i,o,s)=>{_(e,7);const l=e.helper.string("sourceDivision",t),c=e.helper.string("sourceCity",n),f=e.helper.string("targetDivision",a),u=e.helper.string("targetCity",i),m=e.helper.string("materialName",o),h=e.helper.string("amt",s);Object(r.g)(f,u,v(l,c,m),h+"",y(f))},cancelExportMaterial:e=>(t,n,a,i,o,s)=>{_(e,7);const l=e.helper.string("sourceDivision",t),c=e.helper.string("sourceCity",n),f=e.helper.string("targetDivision",a),u=e.helper.string("targetCity",i),m=e.helper.string("materialName",o),h=e.helper.string("amt",s);Object(r.f)(f,u,v(l,c,m),h+"")},limitMaterialProduction:e=>(t,n,a,i)=>{_(e,7);const o=e.helper.string("divisionName",t),s=e.helper.city("cityName",n),l=e.helper.string("materialName",a),c=e.helper.number("qty",i);Object(r.k)(v(o,s,l),c)},setMaterialMarketTA1:e=>(t,n,a,i)=>{_(e,7);const o=e.helper.string("divisionName",t),s=e.helper.city("cityName",n),l=e.helper.string("materialName",a),c=e.helper.boolean(i);if(!y(o).hasResearch("Market-TA.I"))throw e.makeRuntimeErrorMsg("You have not researched MarketTA.I for division: "+o);Object(r.u)(v(o,s,l),c)},setMaterialMarketTA2:e=>(t,n,a,i)=>{_(e,7);const o=e.helper.string("divisionName",t),s=e.helper.city("cityName",n),l=e.helper.string("materialName",a),c=e.helper.boolean(i);if(!y(o).hasResearch("Market-TA.II"))throw e.makeRuntimeErrorMsg("You have not researched MarketTA.II for division: "+o);Object(r.v)(v(o,s,l),c)},setProductMarketTA1:e=>(t,n,a)=>{_(e,7);const i=e.helper.string("divisionName",t),o=e.helper.string("productName",n),s=e.helper.boolean(a);if(!y(i).hasResearch("Market-TA.I"))throw e.makeRuntimeErrorMsg("You have not researched MarketTA.I for division: "+i);Object(r.w)(k(i,o),s)},setProductMarketTA2:e=>(t,n,a)=>{_(e,7);const i=e.helper.string("divisionName",t),o=e.helper.string("productName",n),s=e.helper.boolean(a);if(!y(i).hasResearch("Market-TA.II"))throw e.makeRuntimeErrorMsg("You have not researched MarketTA.II for division: "+i);Object(r.x)(k(i,o),s)}},...{getHireAdVertCost:e=>t=>{_(e,8);const n=y(e.helper.string("divisionName",t)),a=u.a[1];return a[1]*Math.pow(a[2],n.upgrades[1])},getHireAdVertCount:e=>t=>{_(e,8);return y(e.helper.string("divisionName",t)).upgrades[1]},getResearchCost:e=>(t,n)=>{_(e,8);const a=e.helper.string("divisionName",t),r=e.helper.string("researchName",n);return function(e,t){const n=c.c[e.type];if(void 0===n)throw new Error(`No research tree for industry '${e.type}'`);if(!n.getAllNodes().includes(t))throw new Error(`No research named '${t}'`);return m.a[t].cost}(y(a),r)},hasResearched:e=>(t,n)=>{_(e,8);const a=e.helper.string("divisionName",t),r=e.helper.string("researchName",n);return p(y(a),r)},setAutoJobAssignment:e=>(n,r,i,o)=>{_(e,8);const l=e.helper.string("divisionName",n),c=e.helper.city("cityName",r),f=e.helper.number("amount",o),u=e.helper.string("job",i),m=b(l,c);if(!Object.values(s.a).includes(u))throw new Error(`'${u}' is not a valid job.`);return Object(a.c)(1e3,t).then((function(){return Promise.resolve(m.setEmployeeToJob(u,f))}))},getOfficeSizeUpgradeCost:e=>(t,n,a)=>{_(e,8);const r=e.helper.string("divisionName",t),i=e.helper.city("cityName",n),o=e.helper.number("size",a);if(o<0)throw new Error("Invalid value for size field! Must be numeric and greater than 0");const s=b(r,i),l=Math.round(s.size/f.a.OfficeInitialSize);let c=0;for(let e=0;e<o/f.a.OfficeInitialSize;++e)c+=Math.pow(1.09,l+e);return f.a.OfficeInitialCost*c},assignJob:e=>(n,i,o,s)=>{_(e,8);const l=e.helper.string("divisionName",n),c=e.helper.city("cityName",i),f=e.helper.string("employeeName",o),u=e.helper.string("job",s),m=w(l,c,f);return Object(a.c)(["Training","Unassigned"].includes(m.pos)?0:1e3,t).then((function(){return Promise.resolve(Object(r.a)(m,u))}))},hireEmployee:e=>(t,n)=>{_(e,8);const a=b(e.helper.string("divisionName",t),e.helper.city("cityName",n)).hireRandomEmployee();if(void 0!==a)return{name:a.name,mor:a.mor,hap:a.hap,ene:a.ene,int:a.int,cha:a.cha,exp:a.exp,cre:a.cre,eff:a.eff,sal:a.sal,loc:a.loc,pos:a.pos}},upgradeOfficeSize:e=>(t,n,a)=>{_(e,8);const i=e.helper.string("divisionName",t),o=e.helper.city("cityName",n),s=e.helper.number("size",a);if(s<0)throw new Error("Invalid value for size field! Must be numeric and greater than 0");const l=b(i,o),c=g();Object(r.C)(c,l,s)},throwParty:n=>async(i,o,s)=>{_(n,8);const c=n.helper.string("divisionName",i),f=n.helper.city("cityName",o),u=n.helper.number("costPerEmployee",s);if(u<0)throw new Error("Invalid value for Cost Per Employee field! Must be numeric and greater than 0");const m=b(c,f),h=g();return Object(a.c)(6e4/(e.mults.hacking_speed*Object(l.a)(e.intelligence,1)),t).then((function(){return Promise.resolve(Object(r.A)(h,m,u))}))},buyCoffee:n=>async(i,o)=>{_(n,8);const s=n.helper.string("divisionName",i),c=n.helper.city("cityName",o),f=g();return Object(a.c)(6e4/(e.mults.hacking_speed*Object(l.a)(e.intelligence,1)),t).then((function(){return Promise.resolve(Object(r.d)(f,y(s),b(s,c)))}))},hireAdVert:e=>t=>{_(e,8);const n=e.helper.string("divisionName",t),a=g();Object(r.h)(a,y(n),b(n,"Sector-12"))},research:e=>(t,n)=>{_(e,8);const a=e.helper.string("divisionName",t),i=e.helper.string("researchName",n);Object(r.q)(y(a),i)},getOffice:e=>(t,n)=>{_(e,8);const a=b(e.helper.string("divisionName",t),e.helper.city("cityName",n));return{loc:a.loc,size:a.size,minEne:a.minEne,maxEne:a.maxEne,minHap:a.minHap,maxHap:a.maxHap,maxMor:a.maxMor,employees:a.employees.map(e=>e.name),employeeProd:{Operations:a.employeeProd[s.a.Operations],Engineer:a.employeeProd[s.a.Engineer],Business:a.employeeProd[s.a.Business],Management:a.employeeProd[s.a.Management],"Research & Development":a.employeeProd[s.a.RandD],Training:a.employeeProd[s.a.Training]},employeeJobs:{Operations:a.employeeJobs[s.a.Operations],Engineer:a.employeeJobs[s.a.Engineer],Business:a.employeeJobs[s.a.Business],Management:a.employeeJobs[s.a.Management],"Research & Development":a.employeeJobs[s.a.RandD],Training:a.employeeJobs[s.a.Training],Unassigned:a.employeeJobs[s.a.Unassigned]}}},getEmployee:e=>(t,n,a)=>{_(e,8);const r=w(e.helper.string("divisionName",t),e.helper.city("cityName",n),e.helper.string("employeeName",a));return{name:r.name,mor:r.mor,hap:r.hap,ene:r.ene,int:r.int,cha:r.cha,exp:r.exp,cre:r.cre,eff:r.eff,sal:r.sal,loc:r.loc,pos:r.pos}}},expandIndustry:e=>(t,n)=>{_(e);const a=e.helper.string("industryName",t),i=e.helper.string("divisionName",n),o=g();Object(r.o)(o,a,i)},expandCity:e=>(t,n)=>{_(e);const a=e.helper.string("divisionName",t),i=e.helper.city("cityName",n);if(!f.a.Cities.includes(i))throw new Error("Invalid city name");const o=g(),s=y(a);Object(r.n)(o,s,i)},unlockUpgrade:e=>t=>{_(e);const n=e.helper.string("upgradeName",t),a=g(),o=Object.values(i.b).find(e=>e.name===n);if(void 0===o)throw new Error(`No upgrade named '${n}'`);Object(r.B)(a,o)},levelUpgrade:e=>t=>{_(e);const n=e.helper.string("upgradeName",t),a=g(),i=Object.values(o.a).find(e=>e.name===n);if(void 0===i)throw new Error(`No upgrade named '${n}'`);Object(r.j)(a,i)},issueDividends:e=>t=>{_(e);const n=e.helper.number("percent",t);if(n<0||n>100)throw new Error("Invalid value for percent field! Must be numeric, greater than 0, and less than 100");const a=g();if(!a.public)throw e.makeRuntimeErrorMsg("Your company has not gone public!");Object(r.i)(a,n)},getDivision:e=>t=>{_(e);return S(y(e.helper.string("divisionName",t)))},getCorporation:e=>()=>{_(e);const t=g();return{name:t.name,funds:t.funds,revenue:t.revenue,expenses:t.expenses,public:t.public,totalShares:t.totalShares,numShares:t.numShares,shareSaleCooldown:t.shareSaleCooldown,issuedShares:t.issuedShares,sharePrice:t.sharePrice,state:t.state.getState(),divisions:t.divisions.map(e=>S(e))}},createCorporation:t=>(n,a=!0)=>function(t,n=!0){if(!e.canAccessCorporation()||e.hasCorporation())return!1;if(!t)return!1;if(3!==e.bitNodeN&&!n)throw new Error("cannot use seed funds outside of BitNode 3");if(d.a.CorporationSoftcap<.15)throw new Error("You cannot create a corporation in Bitnode "+e.bitNodeN);if(n){if(!e.canAfford(15e10))return!1;e.startCorporation(t),e.loseMoney(15e10,"corporation")}else e.startCorporation(t,5e8);return!0}(t.helper.string("corporationName",n),t.helper.boolean(a)),hasUnlockUpgrade:e=>t=>{_(e);return n(e.helper.string("upgradeName",t))},getUnlockUpgradeCost:e=>t=>{_(e);return function(e){const t=Object.values(i.b).find(t=>t.name===e);if(void 0===t)throw new Error(`No upgrade named '${e}'`);return t.price}(e.helper.string("upgradeName",t))},getUpgradeLevel:e=>t=>{_(e);const n=e.helper.string("upgradeName",t);return function(e,t){const n=e.helper.string("upgradeName",t),a=g(),r=Object.values(o.a).find(e=>e.name===n);if(void 0===r)throw new Error(`No upgrade named '${n}'`);const i=r.index;return a.upgrades[i]}(e,n)},getUpgradeLevelCost:e=>t=>{_(e);const n=e.helper.string("upgradeName",t);return function(e,t){const n=e.helper.string("upgradeName",t),a=g(),r=Object.values(o.a).find(e=>e.name===n);if(void 0===r)throw new Error(`No upgrade named '${n}'`);const i=r.index,s=r.basePrice,l=r.priceMult,c=a.upgrades[i];return s*Math.pow(l,c)}(e,n)},getExpandIndustryCost:e=>t=>{_(e);return function(e){const t=c.d[e];if(void 0===t)throw new Error(`Invalid industry: '${e}'`);return t}(e.helper.string("industryName",t))},getExpandCityCost:e=>()=>(_(e),f.a.OfficeInitialCost),getInvestmentOffer:e=>()=>(_(e),function(){const e=g();if(e.fundingRound>=f.a.FundingRoundShares.length||e.fundingRound>=f.a.FundingRoundMultiplier.length||e.public)return{funds:0,shares:0,round:e.fundingRound+1};const t=e.determineValuation(),n=f.a.FundingRoundShares[e.fundingRound];return{funds:t*n*f.a.FundingRoundMultiplier[e.fundingRound],shares:Math.floor(f.a.INITIALSHARES*n),round:e.fundingRound+1}}()),acceptInvestmentOffer:e=>()=>(_(e),function(){const e=g();if(e.fundingRound>=f.a.FundingRoundShares.length||e.fundingRound>=f.a.FundingRoundMultiplier.length||e.public)return!1;const t=e.determineValuation(),n=f.a.FundingRoundShares[e.fundingRound],a=t*n*f.a.FundingRoundMultiplier[e.fundingRound],r=Math.floor(f.a.INITIALSHARES*n);return e.fundingRound++,e.addFunds(a),e.numShares-=r,!0}()),goPublic:e=>t=>{_(e);return function(e){const t=g(),n=t.determineValuation()/t.totalShares;if(isNaN(e))throw new Error("Invalid value for number of issued shares");if(e<0)throw new Error("Invalid value for number of issued shares");if(e>t.numShares)throw new Error("You don't have that many shares to issue!");return t.public=!0,t.sharePrice=n,t.issuedShares=e,t.numShares-=e,t.addFunds(e*n),!0}(e.helper.number("numShares",t))},sellShares:t=>n=>{_(t);const a=t.helper.number("numShares",n);return Object(r.t)(g(),e,a)},buyBackShares:t=>n=>{_(t);const a=t.helper.number("numShares",n);return Object(r.c)(g(),e,a)},bribe:t=>(n,a,r)=>{_(t);return function(t,n,a){if(!e.factions.includes(t))throw new Error("Invalid faction name");if(isNaN(n)||n<0||isNaN(a)||a<0)throw new Error("Invalid value for amount field! Must be numeric, grater than 0.");const r=g();if(r.funds<n)return!1;if(r.numShares<a)return!1;const i=h.a[t];if(!i.getInfo().offersWork())return!1;if(e.hasGangWith(t))return!1;const o=(n+a*r.sharePrice)/f.a.BribeToRepRatio;return i.playerReputation+=o,r.funds=r.funds-n,r.numShares-=a,!0}(t.helper.string("factionName",n),t.helper.number("amountCash",a),t.helper.number("amountShares",r))},getBonusTime:e=>()=>(_(e),1e3*Math.round(g().storedCycles/5))}}},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return Industry}));var _utils_JSONReviver__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(22),_Locations_data_CityNames__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(15),_IndustryData__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(50),_data_Constants__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(39),_EmployeePositions__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(45),_Material__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(204),_utils_helpers_getRandomInt__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(33),_utils_calculateEffectWithFactors__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(1063),_OfficeSpace__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(389),_Product__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(419),_ui_React_DialogBox__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(14),_utils_helpers_isString__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(148),_MaterialSizes__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(183),_Warehouse__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(246),_IndustryUpgrades__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(329);function _defineProperty(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class Industry{constructor(e={}){_defineProperty(this,"name",""),_defineProperty(this,"type",_IndustryData__WEBPACK_IMPORTED_MODULE_2__.a.Agriculture),_defineProperty(this,"sciResearch",new _Material__WEBPACK_IMPORTED_MODULE_5__.a({name:"Scientific Research"})),_defineProperty(this,"researched",{}),_defineProperty(this,"reqMats",{}),_defineProperty(this,"prodMats",[]),_defineProperty(this,"products",{}),_defineProperty(this,"makesProducts",!1),_defineProperty(this,"awareness",0),_defineProperty(this,"popularity",0),_defineProperty(this,"startingCost",0),_defineProperty(this,"reFac",0),_defineProperty(this,"sciFac",0),_defineProperty(this,"hwFac",0),_defineProperty(this,"robFac",0),_defineProperty(this,"aiFac",0),_defineProperty(this,"advFac",0),_defineProperty(this,"prodMult",0),_defineProperty(this,"upgrades",Array(Object.keys(_IndustryUpgrades__WEBPACK_IMPORTED_MODULE_14__.a).length).fill(0)),_defineProperty(this,"state","START"),_defineProperty(this,"newInd",!0),_defineProperty(this,"offices",{[_Locations_data_CityNames__WEBPACK_IMPORTED_MODULE_1__.a.Aevum]:0,[_Locations_data_CityNames__WEBPACK_IMPORTED_MODULE_1__.a.Chongqing]:0,[_Locations_data_CityNames__WEBPACK_IMPORTED_MODULE_1__.a.Sector12]:new _OfficeSpace__WEBPACK_IMPORTED_MODULE_8__.a({loc:_Locations_data_CityNames__WEBPACK_IMPORTED_MODULE_1__.a.Sector12,size:_data_Constants__WEBPACK_IMPORTED_MODULE_3__.a.OfficeInitialSize}),[_Locations_data_CityNames__WEBPACK_IMPORTED_MODULE_1__.a.NewTokyo]:0,[_Locations_data_CityNames__WEBPACK_IMPORTED_MODULE_1__.a.Ishima]:0,[_Locations_data_CityNames__WEBPACK_IMPORTED_MODULE_1__.a.Volhaven]:0}),this.name=e.name?e.name:"",this.type=e.type?e.type:_IndustryData__WEBPACK_IMPORTED_MODULE_2__.a.Agriculture,this.lastCycleRevenue=0,this.lastCycleExpenses=0,this.thisCycleRevenue=0,this.thisCycleExpenses=0,this.warehouses={[_Locations_data_CityNames__WEBPACK_IMPORTED_MODULE_1__.a.Aevum]:0,[_Locations_data_CityNames__WEBPACK_IMPORTED_MODULE_1__.a.Chongqing]:0,[_Locations_data_CityNames__WEBPACK_IMPORTED_MODULE_1__.a.Sector12]:new _Warehouse__WEBPACK_IMPORTED_MODULE_13__.a({corp:e.corp,industry:this,loc:_Locations_data_CityNames__WEBPACK_IMPORTED_MODULE_1__.a.Sector12,size:_data_Constants__WEBPACK_IMPORTED_MODULE_3__.a.WarehouseInitialSize}),[_Locations_data_CityNames__WEBPACK_IMPORTED_MODULE_1__.a.NewTokyo]:0,[_Locations_data_CityNames__WEBPACK_IMPORTED_MODULE_1__.a.Ishima]:0,[_Locations_data_CityNames__WEBPACK_IMPORTED_MODULE_1__.a.Volhaven]:0},this.init()}init(){const e=_IndustryData__WEBPACK_IMPORTED_MODULE_2__.d[this.type];if(void 0===e)throw new Error(`Invalid industry: "${this.type}"`);switch(this.startingCost=e,this.type){case _IndustryData__WEBPACK_IMPORTED_MODULE_2__.a.Energy:this.reFac=.65,this.sciFac=.7,this.robFac=.05,this.aiFac=.3,this.advFac=.08,this.reqMats={Hardware:.1,Metal:.2},this.prodMats=["Energy"];break;case _IndustryData__WEBPACK_IMPORTED_MODULE_2__.a.Utilities:case"Utilities":this.reFac=.5,this.sciFac=.6,this.robFac=.4,this.aiFac=.4,this.advFac=.08,this.reqMats={Hardware:.1,Metal:.1},this.prodMats=["Water"];break;case _IndustryData__WEBPACK_IMPORTED_MODULE_2__.a.Agriculture:this.reFac=.72,this.sciFac=.5,this.hwFac=.2,this.robFac=.3,this.aiFac=.3,this.advFac=.04,this.reqMats={Water:.5,Energy:.5},this.prodMats=["Plants","Food"];break;case _IndustryData__WEBPACK_IMPORTED_MODULE_2__.a.Fishing:this.reFac=.15,this.sciFac=.35,this.hwFac=.35,this.robFac=.5,this.aiFac=.2,this.advFac=.08,this.reqMats={Energy:.5},this.prodMats=["Food"];break;case _IndustryData__WEBPACK_IMPORTED_MODULE_2__.a.Mining:this.reFac=.3,this.sciFac=.26,this.hwFac=.4,this.robFac=.45,this.aiFac=.45,this.advFac=.06,this.reqMats={Energy:.8},this.prodMats=["Metal"];break;case _IndustryData__WEBPACK_IMPORTED_MODULE_2__.a.Food:this.sciFac=.12,this.hwFac=.15,this.robFac=.3,this.aiFac=.25,this.advFac=.25,this.reFac=.05,this.reqMats={Food:.5,Water:.5,Energy:.2},this.makesProducts=!0;break;case _IndustryData__WEBPACK_IMPORTED_MODULE_2__.a.Tobacco:this.reFac=.15,this.sciFac=.75,this.hwFac=.15,this.robFac=.2,this.aiFac=.15,this.advFac=.2,this.reqMats={Plants:1,Water:.2},this.makesProducts=!0;break;case _IndustryData__WEBPACK_IMPORTED_MODULE_2__.a.Chemical:this.reFac=.25,this.sciFac=.75,this.hwFac=.2,this.robFac=.25,this.aiFac=.2,this.advFac=.07,this.reqMats={Plants:1,Energy:.5,Water:.5},this.prodMats=["Chemicals"];break;case _IndustryData__WEBPACK_IMPORTED_MODULE_2__.a.Pharmaceutical:this.reFac=.05,this.sciFac=.8,this.hwFac=.15,this.robFac=.25,this.aiFac=.2,this.advFac=.16,this.reqMats={Chemicals:2,Energy:1,Water:.5},this.prodMats=["Drugs"],this.makesProducts=!0;break;case _IndustryData__WEBPACK_IMPORTED_MODULE_2__.a.Computer:case"Computer":this.reFac=.2,this.sciFac=.62,this.robFac=.36,this.aiFac=.19,this.advFac=.17,this.reqMats={Metal:2,Energy:1},this.prodMats=["Hardware"],this.makesProducts=!0;break;case _IndustryData__WEBPACK_IMPORTED_MODULE_2__.a.Robotics:this.reFac=.32,this.sciFac=.65,this.aiFac=.36,this.advFac=.18,this.hwFac=.19,this.reqMats={Hardware:5,Energy:3},this.prodMats=["Robots"],this.makesProducts=!0;break;case _IndustryData__WEBPACK_IMPORTED_MODULE_2__.a.Software:this.sciFac=.62,this.advFac=.16,this.hwFac=.25,this.reFac=.15,this.aiFac=.18,this.robFac=.05,this.reqMats={Hardware:.5,Energy:.5},this.prodMats=["AICores"],this.makesProducts=!0;break;case _IndustryData__WEBPACK_IMPORTED_MODULE_2__.a.Healthcare:this.reFac=.1,this.sciFac=.75,this.advFac=.11,this.hwFac=.1,this.robFac=.1,this.aiFac=.1,this.reqMats={Robots:10,AICores:5,Energy:5,Water:5},this.makesProducts=!0;break;case _IndustryData__WEBPACK_IMPORTED_MODULE_2__.a.RealEstate:this.robFac=.6,this.aiFac=.6,this.advFac=.25,this.sciFac=.05,this.hwFac=.05,this.reqMats={Metal:5,Energy:5,Water:2,Hardware:4},this.prodMats=["RealEstate"],this.makesProducts=!0;break;default:return void console.error("Invalid Industry Type passed into Industry.init(): "+this.type)}}getProductDescriptionText(){if(!this.makesProducts)return"";switch(this.type){case _IndustryData__WEBPACK_IMPORTED_MODULE_2__.a.Food:return"create and manage restaurants";case _IndustryData__WEBPACK_IMPORTED_MODULE_2__.a.Tobacco:return"create tobacco and tobacco-related products";case _IndustryData__WEBPACK_IMPORTED_MODULE_2__.a.Pharmaceutical:return"develop new pharmaceutical drugs";case _IndustryData__WEBPACK_IMPORTED_MODULE_2__.a.Computer:case"Computer":return"create new computer hardware and networking infrastructures";case _IndustryData__WEBPACK_IMPORTED_MODULE_2__.a.Robotics:return"build specialized robots and robot-related products";case _IndustryData__WEBPACK_IMPORTED_MODULE_2__.a.Software:return"develop computer software";case _IndustryData__WEBPACK_IMPORTED_MODULE_2__.a.Healthcare:return"build and manage hospitals";case _IndustryData__WEBPACK_IMPORTED_MODULE_2__.a.RealEstate:return"develop and manage real estate properties";default:return console.error("Invalid industry type in Industry.getProductDescriptionText"),""}}getMaximumNumberProducts(){if(!this.makesProducts)return 0;let e=0;return this.hasResearch("uPgrade: Capacity.I")&&++e,this.hasResearch("uPgrade: Capacity.II")&&++e,_data_Constants__WEBPACK_IMPORTED_MODULE_3__.a.BaseMaxProducts+e}hasMaximumNumberProducts(){return Object.keys(this.products).length>=this.getMaximumNumberProducts()}calculateProductionFactors(){let e=0;for(let t=0;t<_data_Constants__WEBPACK_IMPORTED_MODULE_3__.a.Cities.length;++t){const n=_data_Constants__WEBPACK_IMPORTED_MODULE_3__.a.Cities[t],a=this.warehouses[n];if(!(a instanceof _Warehouse__WEBPACK_IMPORTED_MODULE_13__.a))continue;const r=a.materials,i=Math.pow(.002*r.RealEstate.qty+1,this.reFac)*Math.pow(.002*r.Hardware.qty+1,this.hwFac)*Math.pow(.002*r.Robots.qty+1,this.robFac)*Math.pow(.002*r.AICores.qty+1,this.aiFac);e+=Math.pow(i,.73)}this.prodMult=e<1?1:e}updateWarehouseSizeUsed(e){e.updateMaterialSizeUsed();for(const t of Object.keys(this.products))if(this.products.hasOwnProperty(t)){const n=this.products[t];if(void 0===n)continue;e.sizeUsed+=n.data[e.loc][0]*n.siz}}process(e=1,t,n){if(this.state=t,"START"===t){(isNaN(this.thisCycleRevenue)||isNaN(this.thisCycleExpenses))&&(console.error("NaN in Corporation's computed revenue/expenses"),Object(_ui_React_DialogBox__WEBPACK_IMPORTED_MODULE_10__.a)("Something went wrong when compting Corporation's revenue/expenses. This is a bug. Please report to game developer"),this.thisCycleRevenue=0,this.thisCycleExpenses=0),this.lastCycleRevenue=this.thisCycleRevenue/(e*_data_Constants__WEBPACK_IMPORTED_MODULE_3__.a.SecsPerMarketCycle),this.lastCycleExpenses=this.thisCycleExpenses/(e*_data_Constants__WEBPACK_IMPORTED_MODULE_3__.a.SecsPerMarketCycle),this.thisCycleRevenue=0,this.thisCycleExpenses=0,this.lastCycleRevenue>0&&(this.newInd=!1);let t=0;for(const a of Object.keys(this.offices)){const r=this.offices[a];0!==r&&(r instanceof _OfficeSpace__WEBPACK_IMPORTED_MODULE_8__.a&&(t+=r.process(e,n,this)))}this.thisCycleExpenses=this.thisCycleExpenses+t,this.processMaterialMarket(),this.processProductMarket(e),this.popularity-=1e-4*e,this.popularity=Math.max(0,this.popularity);const a=n.getDreamSenseGain(),r=4*a;if(a>0){const t=this.awareness+r*e;this.awareness=Math.min(t,Number.MAX_VALUE);const n=this.popularity+a*e;this.popularity=Math.min(n,Number.MAX_VALUE)}return}let a=this.processMaterials(e,n);Array.isArray(a)&&(this.thisCycleRevenue=this.thisCycleRevenue+a[0],this.thisCycleExpenses=this.thisCycleExpenses+a[1]),a=this.processProducts(e,n),Array.isArray(a)&&(this.thisCycleRevenue=this.thisCycleRevenue+a[0],this.thisCycleExpenses=this.thisCycleExpenses+a[1])}processMaterialMarket(){const e=this.reqMats,t=this.prodMats;for(let n=0;n<_data_Constants__WEBPACK_IMPORTED_MODULE_3__.a.Cities.length;++n)if(this.warehouses[_data_Constants__WEBPACK_IMPORTED_MODULE_3__.a.Cities[n]]instanceof _Warehouse__WEBPACK_IMPORTED_MODULE_13__.a){const a=this.warehouses[_data_Constants__WEBPACK_IMPORTED_MODULE_3__.a.Cities[n]];if(0===a)continue;for(const t of Object.keys(e))e.hasOwnProperty(t)&&a.materials[t].processMarket();for(let e=0;e<t.length;++e)a.materials[t[e]].processMarket();a.materials.Hardware.processMarket(),a.materials.Robots.processMarket(),a.materials.AICores.processMarket(),a.materials.RealEstate.processMarket()}}processProductMarket(e=1){for(const t of Object.keys(this.products))if(this.products.hasOwnProperty(t)){const n=this.products[t];if(void 0===n)continue;let a=4e-4*Object(_utils_helpers_getRandomInt__WEBPACK_IMPORTED_MODULE_6__.a)(0,3);if(0===a)continue;this.type!==_IndustryData__WEBPACK_IMPORTED_MODULE_2__.a.Pharmaceutical&&this.type!==_IndustryData__WEBPACK_IMPORTED_MODULE_2__.a.Software&&this.type!==_IndustryData__WEBPACK_IMPORTED_MODULE_2__.a.Robotics||(a*=3),a*=e,n.dmd-=a,n.cmp+=a,n.cmp=Math.min(n.cmp,99.99),n.dmd=Math.max(n.dmd,.001)}}processMaterials(marketCycles=1,corporation){let revenue=0,expenses=0;if(this.calculateProductionFactors(),"EXPORT"===this.state)for(let e=0;e<_data_Constants__WEBPACK_IMPORTED_MODULE_3__.a.Cities.length;++e){const t=_data_Constants__WEBPACK_IMPORTED_MODULE_3__.a.Cities[e];if(!(this.warehouses[t]instanceof _Warehouse__WEBPACK_IMPORTED_MODULE_13__.a))continue;const n=this.warehouses[t];if(0!==n)for(const e of Object.keys(n.materials))if(n.materials.hasOwnProperty(e)){const t=n.materials[e];t.imp=0}}for(let i=0;i<_data_Constants__WEBPACK_IMPORTED_MODULE_3__.a.Cities.length;++i){const city=_data_Constants__WEBPACK_IMPORTED_MODULE_3__.a.Cities[i],office=this.offices[city];if(0!==office){if(this.warehouses[city]instanceof _Warehouse__WEBPACK_IMPORTED_MODULE_13__.a){const warehouse=this.warehouses[city];if(0===warehouse)continue;switch(this.state){case"PURCHASE":{for(const e of Object.keys(warehouse.materials)){if(!warehouse.materials.hasOwnProperty(e))continue;const t=warehouse.materials[e];let n=0,a=0;warehouse.smartSupplyEnabled&&Object.keys(this.reqMats).includes(e)||(n=t.buy*_data_Constants__WEBPACK_IMPORTED_MODULE_3__.a.SecsPerMarketCycle*marketCycles,a=Math.floor((warehouse.size-warehouse.sizeUsed)/_MaterialSizes__WEBPACK_IMPORTED_MODULE_12__.a[e]),n=Math.min(n,a),n>0&&(t.qty+=n,expenses+=n*t.bCost),this.updateWarehouseSizeUsed(warehouse))}const e={};for(const t of Object.keys(warehouse.materials)){if(!warehouse.materials.hasOwnProperty(t))continue;if(!warehouse.smartSupplyEnabled||!Object.keys(this.reqMats).includes(t))continue;const n=warehouse.materials[t],a=this.reqMats[t];if(void 0===a)throw new Error(`reqMat "${t}" is undefined`);n.buy=a*warehouse.smartSupplyStore;let r=n.buy*_data_Constants__WEBPACK_IMPORTED_MODULE_3__.a.SecsPerMarketCycle*marketCycles;const i=Math.floor((warehouse.size-warehouse.sizeUsed)/_MaterialSizes__WEBPACK_IMPORTED_MODULE_12__.a[t]);r=Math.min(r,i),r>0&&(e[t]=r)}let t=1e99;for(const n of Object.keys(e)){const a=e[n];if(void 0===a)throw new Error("Somehow smartbuy matname is undefined");const r=this.reqMats[n];if(void 0===r)throw new Error(`reqMat "${n}" is undefined`);const i=a/r;i<t&&(t=i)}for(const n of Object.keys(e)){const a=this.reqMats[n];if(void 0===a)throw new Error(`reqMat "${n}" is undefined`);e[n]=t*a}let n=0;for(const t of Object.keys(e)){const a=e[t];if(void 0===a)throw new Error("Somehow smartbuy matname is undefined");n+=a*_MaterialSizes__WEBPACK_IMPORTED_MODULE_12__.a[t]}const a=warehouse.size-warehouse.sizeUsed;if(n>a)for(const t of Object.keys(e)){const r=e[t];if(void 0===r)throw new Error("Somehow smartbuy matname is undefined");e[t]=Math.floor(r*a/n)}for(const t of Object.keys(e)){if(!warehouse.smartSupplyUseLeftovers[t])continue;const n=warehouse.materials[t],a=e[t];if(void 0===a)throw new Error("Somehow smartbuy matname is undefined");e[t]=Math.max(0,a-n.qty)}for(const t of Object.keys(e)){const n=warehouse.materials[t],a=e[t];if(void 0===a)throw new Error("Somehow smartbuy matname is undefined");n.qty+=a,expenses+=a*n.bCost}break}case"PRODUCTION":if(warehouse.smartSupplyStore=0,this.prodMats.length>0){const e=warehouse.materials[this.prodMats[0]],t=this.getOfficeProductivity(office)*this.prodMult*corporation.getProductionMultiplier()*this.getProductionMultiplier();let n;n=e.prdman[0]?Math.min(t,e.prdman[1]):t,n*=_data_Constants__WEBPACK_IMPORTED_MODULE_3__.a.SecsPerMarketCycle*marketCycles;let a=0;for(let e=0;e<this.prodMats.length;++e)a+=_MaterialSizes__WEBPACK_IMPORTED_MODULE_12__.a[this.prodMats[e]];for(const e of Object.keys(this.reqMats)){const t=this.reqMats[e];void 0!==t&&(a-=_MaterialSizes__WEBPACK_IMPORTED_MODULE_12__.a[e]*t)}if(a>0){const e=Math.floor((warehouse.size-warehouse.sizeUsed)/a);n=Math.min(e,n)}n<0&&(n=0),warehouse.smartSupplyStore+=n/(_data_Constants__WEBPACK_IMPORTED_MODULE_3__.a.SecsPerMarketCycle*marketCycles);let r=1;for(const e of Object.keys(this.reqMats))if(this.reqMats.hasOwnProperty(e)){const t=this.reqMats[e];if(void 0===t)continue;const a=t*n;warehouse.materials[e].qty<a&&(r=Math.min(r,warehouse.materials[e].qty/a))}if(r<=0&&(r=0,n=0),r>0&&n>0){for(const e of Object.keys(this.reqMats)){const t=this.reqMats[e];if(void 0===t)continue;const a=t*n*r;warehouse.materials[e].qty-=a,warehouse.materials[e].prd=0,warehouse.materials[e].prd-=a/(_data_Constants__WEBPACK_IMPORTED_MODULE_3__.a.SecsPerMarketCycle*marketCycles)}for(let e=0;e<this.prodMats.length;++e)warehouse.materials[this.prodMats[e]].qty+=n*r,warehouse.materials[this.prodMats[e]].qlt=office.employeeProd[_EmployeePositions__WEBPACK_IMPORTED_MODULE_4__.a.Engineer]/90+Math.pow(this.sciResearch.qty,this.sciFac)+Math.pow(warehouse.materials.AICores.qty,this.aiFac)/1e4}else for(const e of Object.keys(this.reqMats))this.reqMats.hasOwnProperty(e)&&(warehouse.materials[e].prd=0);const i=n*r/(_data_Constants__WEBPACK_IMPORTED_MODULE_3__.a.SecsPerMarketCycle*marketCycles);for(let e=0;e<this.prodMats.length;++e)warehouse.materials[this.prodMats[e]].prd=i}else for(const e of Object.keys(this.reqMats))warehouse.materials[e].prd=0;break;case"SALE":for(const matName of Object.keys(warehouse.materials))if(warehouse.materials.hasOwnProperty(matName)){const mat=warehouse.materials[matName];if(mat.sCost<0||!1===mat.sllman[0]){mat.sll=0;continue}const businessFactor=this.getBusinessFactor(office),advertisingFactor=this.getAdvertisingFactors()[0],marketFactor=this.getMarketFactor(mat),markupLimit=mat.getMarkupLimit();let sCost;if(mat.marketTa2){const e=mat.prd,t=markupLimit,n=e,a=(mat.qlt+.001)*marketFactor*businessFactor*corporation.getSalesMultiplier()*advertisingFactor*this.getSalesMultiplier(),r=Math.sqrt(n/a);let i;0===a||0===r?0===n?i=0:(i=mat.bCost+markupLimit,console.warn("In Corporation, found illegal 0s when trying to calculate MarketTA2 sale cost")):i=t/r+mat.bCost,mat.marketTa2Price=i,sCost=i}else mat.marketTa1?sCost=mat.bCost+markupLimit:Object(_utils_helpers_isString__WEBPACK_IMPORTED_MODULE_11__.a)(mat.sCost)?(sCost=mat.sCost.replace(/MP/g,mat.bCost+""),sCost=eval(sCost)):sCost=mat.sCost;let markup=1,sellAmt;if(sCost>mat.bCost?sCost-mat.bCost>markupLimit&&(markup=Math.pow(markupLimit/(sCost-mat.bCost),2)):sCost<mat.bCost&&(markup=sCost<=0?1e12:mat.bCost/sCost),mat.maxsll=(mat.qlt+.001)*marketFactor*markup*businessFactor*corporation.getSalesMultiplier()*advertisingFactor*this.getSalesMultiplier(),Object(_utils_helpers_isString__WEBPACK_IMPORTED_MODULE_11__.a)(mat.sllman[1])){let tmp=mat.sllman[1].replace(/MAX/g,(mat.maxsll+"").toUpperCase());tmp=tmp.replace(/PROD/g,mat.prd+"");try{sellAmt=eval(tmp)}catch(e){Object(_ui_React_DialogBox__WEBPACK_IMPORTED_MODULE_10__.a)("Error evaluating your sell amount for material "+mat.name+" in "+this.name+"'s "+city+" office. The sell amount is being set to zero"),sellAmt=0}sellAmt=Math.min(mat.maxsll,sellAmt)}else sellAmt=-1===mat.sllman[1]?mat.maxsll:Math.min(mat.maxsll,mat.sllman[1]);if(sellAmt=sellAmt*_data_Constants__WEBPACK_IMPORTED_MODULE_3__.a.SecsPerMarketCycle*marketCycles,sellAmt=Math.min(mat.qty,sellAmt),sellAmt<0){console.warn(`sellAmt calculated to be negative for ${matName} in ${city}`),mat.sll=0;continue}sellAmt&&sCost>=0?(mat.qty-=sellAmt,revenue+=sellAmt*sCost,mat.sll=sellAmt/(_data_Constants__WEBPACK_IMPORTED_MODULE_3__.a.SecsPerMarketCycle*marketCycles)):mat.sll=0}break;case"EXPORT":for(const matName of Object.keys(warehouse.materials))if(warehouse.materials.hasOwnProperty(matName)){const mat=warehouse.materials[matName];mat.totalExp=0;for(let expI=0;expI<mat.exp.length;++expI){const exp=mat.exp[expI],amtStr=exp.amt.replace(/MAX/g,(mat.qty/(_data_Constants__WEBPACK_IMPORTED_MODULE_3__.a.SecsPerMarketCycle*marketCycles)+"").toUpperCase());let amt=0;try{amt=eval(amtStr)}catch(e){Object(_ui_React_DialogBox__WEBPACK_IMPORTED_MODULE_10__.a)("Calculating export for "+mat.name+" in "+this.name+"'s "+city+" division failed with error: "+e);continue}if(isNaN(amt))Object(_ui_React_DialogBox__WEBPACK_IMPORTED_MODULE_10__.a)("Error calculating export amount for "+mat.name+" in "+this.name+"'s "+city+" division.");else{if(amt=amt*_data_Constants__WEBPACK_IMPORTED_MODULE_3__.a.SecsPerMarketCycle*marketCycles,mat.qty<amt&&(amt=mat.qty),0===amt)break;for(let e=0;e<corporation.divisions.length;++e)if(corporation.divisions[e].name===exp.ind){const t=corporation.divisions[e],n=t.warehouses[exp.city];if(!(n instanceof _Warehouse__WEBPACK_IMPORTED_MODULE_13__.a)){console.error(`Invalid export! ${t.name} ${exp.city}`);break}if(n.sizeUsed>=n.size)return[0,0];{const e=Math.floor((n.size-n.sizeUsed)/_MaterialSizes__WEBPACK_IMPORTED_MODULE_12__.a[matName]);amt=Math.min(e,amt)}n.materials[matName].imp+=amt/(_data_Constants__WEBPACK_IMPORTED_MODULE_3__.a.SecsPerMarketCycle*marketCycles),n.materials[matName].qty+=amt,n.materials[matName].qlt=mat.qlt,mat.qty-=amt,mat.totalExp+=amt,t.updateWarehouseSizeUsed(n);break}}}mat.totalExp/=_data_Constants__WEBPACK_IMPORTED_MODULE_3__.a.SecsPerMarketCycle*marketCycles}break;case"START":break;default:console.error("Invalid state: "+this.state)}this.updateWarehouseSizeUsed(warehouse)}office instanceof _OfficeSpace__WEBPACK_IMPORTED_MODULE_8__.a&&(this.sciResearch.qty+=.004*Math.pow(office.employeeProd[_EmployeePositions__WEBPACK_IMPORTED_MODULE_4__.a.RandD],.5)*corporation.getScientificResearchMultiplier()*this.getScientificResearchMultiplier())}}return[revenue,expenses]}processProducts(e=1,t){let n=0;if("PRODUCTION"===this.state)for(const t of Object.keys(this.products)){const n=this.products[t];if(void 0!==n&&!n.fin){const t=n.createCity,a=this.offices[t];if(0===a)continue;const r=a.employeeProd[_EmployeePositions__WEBPACK_IMPORTED_MODULE_4__.a.Engineer],i=a.employeeProd[_EmployeePositions__WEBPACK_IMPORTED_MODULE_4__.a.Management],o=a.employeeProd[_EmployeePositions__WEBPACK_IMPORTED_MODULE_4__.a.Operations],s=r+i+o;if(s<=0)break;const l=1+i/(1.2*s),c=(Math.pow(r,.34)+Math.pow(o,.2))*l;n.createProduct(e,c),n.prog>=100&&n.finishProduct(a.employeeProd,this);break}}for(const a of Object.keys(this.products))if(this.products.hasOwnProperty(a)){const r=this.products[a];r instanceof _Product__WEBPACK_IMPORTED_MODULE_9__.a&&r.fin&&(n+=this.processProduct(e,r,t))}return[n,0]}processProduct(marketCycles=1,product,corporation){let totalProfit=0;for(let i=0;i<_data_Constants__WEBPACK_IMPORTED_MODULE_3__.a.Cities.length;++i){const city=_data_Constants__WEBPACK_IMPORTED_MODULE_3__.a.Cities[i],office=this.offices[city];if(0===office)continue;const warehouse=this.warehouses[city];if(warehouse instanceof _Warehouse__WEBPACK_IMPORTED_MODULE_13__.a)switch(this.state){case"PRODUCTION":{const e=this.getOfficeProductivity(office,{forProduct:!0})*corporation.getProductionMultiplier()*this.prodMult*this.getProductionMultiplier()*this.getProductProductionMultiplier();let t;t=product.prdman[city][0]?Math.min(e,product.prdman[city][1]):e,t*=_data_Constants__WEBPACK_IMPORTED_MODULE_3__.a.SecsPerMarketCycle*marketCycles;let n=product.siz;for(const e of Object.keys(product.reqMats))if(product.reqMats.hasOwnProperty(e)){const t=product.reqMats[e];n-=_MaterialSizes__WEBPACK_IMPORTED_MODULE_12__.a[e]*t}if(n>0){const e=Math.floor((warehouse.size-warehouse.sizeUsed)/n);t=Math.min(e,t)}warehouse.smartSupplyStore+=t/(_data_Constants__WEBPACK_IMPORTED_MODULE_3__.a.SecsPerMarketCycle*marketCycles);let a=1;for(const e of Object.keys(product.reqMats))if(product.reqMats.hasOwnProperty(e)){const n=product.reqMats[e]*t;warehouse.materials[e].qty<n&&(a=Math.min(a,warehouse.materials[e].qty/n))}if(a>0&&t>0){for(const e of Object.keys(product.reqMats))if(product.reqMats.hasOwnProperty(e)){const n=product.reqMats[e]*t*a;warehouse.materials[e].qty-=n,warehouse.materials[e].prd-=n/(_data_Constants__WEBPACK_IMPORTED_MODULE_3__.a.SecsPerMarketCycle*marketCycles)}product.data[city][0]+=t*a}product.data[city][1]=t*a/(_data_Constants__WEBPACK_IMPORTED_MODULE_3__.a.SecsPerMarketCycle*marketCycles);break}case"SALE":{product.pCost=0;for(const e of Object.keys(product.reqMats))product.reqMats.hasOwnProperty(e)&&(product.pCost+=product.reqMats[e]*warehouse.materials[e].bCost);product.pCost*=_data_Constants__WEBPACK_IMPORTED_MODULE_3__.a.ProductProductionCostRatio;const businessFactor=this.getBusinessFactor(office),advertisingFactor=this.getAdvertisingFactors()[0],marketFactor=this.getMarketFactor(product),markupLimit=product.rat/product.mku;let sCost;if(product.marketTa2){const e=product.data[city][1],t=markupLimit,n=e,a=.5*Math.pow(product.rat,.65)*marketFactor*corporation.getSalesMultiplier()*businessFactor*advertisingFactor*this.getSalesMultiplier(),r=Math.sqrt(n/a);let i;0===a||0===r?0===n?i=0:(i=product.pCost+markupLimit,console.warn("In Corporation, found illegal 0s when trying to calculate MarketTA2 sale cost")):i=t/r+product.pCost,product.marketTa2Price[city]=i,sCost=i}else if(product.marketTa1)sCost=product.pCost+markupLimit;else if(Object(_utils_helpers_isString__WEBPACK_IMPORTED_MODULE_11__.a)(product.sCost)){const sCostString=product.sCost;0===product.mku&&(console.error("mku is zero, reverting to 1 to avoid Infinity"),product.mku=1),sCost=sCostString.replace(/MP/g,product.pCost+product.rat/product.mku+""),sCost=eval(sCost)}else sCost=product.sCost;let markup=1,sellAmt;if(sCost>product.pCost&&sCost-product.pCost>markupLimit&&(markup=markupLimit/(sCost-product.pCost)),product.maxsll=.5*Math.pow(product.rat,.65)*marketFactor*corporation.getSalesMultiplier()*Math.pow(markup,2)*businessFactor*advertisingFactor*this.getSalesMultiplier(),product.sllman[city][0]&&Object(_utils_helpers_isString__WEBPACK_IMPORTED_MODULE_11__.a)(product.sllman[city][1])){let tmp=product.sllman[city][1].replace(/MAX/g,(product.maxsll+"").toUpperCase());tmp=tmp.replace(/PROD/g,product.data[city][1]);try{tmp=eval(tmp)}catch(e){Object(_ui_React_DialogBox__WEBPACK_IMPORTED_MODULE_10__.a)("Error evaluating your sell price expression for "+product.name+" in "+this.name+"'s "+city+" office. Sell price is being set to MAX"),tmp=product.maxsll}sellAmt=Math.min(product.maxsll,tmp)}else sellAmt=product.sllman[city][0]&&product.sllman[city][1]>0?Math.min(product.maxsll,product.sllman[city][1]):!1===product.sllman[city][0]?0:product.maxsll;sellAmt<0&&(sellAmt=0),sellAmt=sellAmt*_data_Constants__WEBPACK_IMPORTED_MODULE_3__.a.SecsPerMarketCycle*marketCycles,sellAmt=Math.min(product.data[city][0],sellAmt),sellAmt&&sCost?(product.data[city][0]-=sellAmt,totalProfit+=sellAmt*sCost,product.data[city][2]=sellAmt/(_data_Constants__WEBPACK_IMPORTED_MODULE_3__.a.SecsPerMarketCycle*marketCycles)):product.data[city][2]=0;break}case"START":case"PURCHASE":case"EXPORT":break;default:console.error("Invalid State: "+this.state)}}return totalProfit}discontinueProduct(e){for(const t of Object.keys(this.products))this.products.hasOwnProperty(t)&&e===this.products[t]&&delete this.products[t]}upgrade(e,t){const n=t.corporation,a=t.office,r=e[0];for(;this.upgrades.length<=r;)this.upgrades.push(0);switch(++this.upgrades[r],r){case 0:for(let e=0;e<a.employees.length;++e)a.employees[e].ene=Math.min(1.05*a.employees[e].ene,a.maxEne);break;case 1:{const e=n.getAdvertisingMultiplier()*this.getAdvertisingMultiplier(),t=(this.awareness+3*e)*(1.01*e);this.awareness=Math.min(t,Number.MAX_VALUE);const a=(this.popularity+1*e)*((1+Object(_utils_helpers_getRandomInt__WEBPACK_IMPORTED_MODULE_6__.a)(1,3)/100)*e);this.popularity=Math.min(a,Number.MAX_VALUE);break}default:console.error("Un-implemented function index: "+r)}}getOfficeProductivity(e,t={}){const n=e.employeeProd[_EmployeePositions__WEBPACK_IMPORTED_MODULE_4__.a.Operations],a=e.employeeProd[_EmployeePositions__WEBPACK_IMPORTED_MODULE_4__.a.Engineer],r=e.employeeProd[_EmployeePositions__WEBPACK_IMPORTED_MODULE_4__.a.Management],i=n+a+r;if(i<=0)return 0;const o=1+r/(1.2*i),s=(Math.pow(n,.4)+Math.pow(a,.3))*o;return t&&t.forProduct?.025*s:.05*s}getBusinessFactor(e){const t=1+e.employeeProd[_EmployeePositions__WEBPACK_IMPORTED_MODULE_4__.a.Business];return Object(_utils_calculateEffectWithFactors__WEBPACK_IMPORTED_MODULE_7__.a)(t,.26,1e4)}getAdvertisingFactors(){const e=Math.pow(this.awareness+1,this.advFac),t=Math.pow(this.popularity+1,this.advFac),n=0===this.awareness?.01:Math.max((this.popularity+.001)/this.awareness,.01);return[Math.pow(e*t*n,.85),e,t,n]}getMarketFactor(e){return Math.max(.1,e.dmd*(100-e.cmp)/100)}hasResearch(e){return!0===this.researched[e]}updateResearchTree(){const e=_IndustryData__WEBPACK_IMPORTED_MODULE_2__.c[this.type];if(void 0===e)throw new Error(`Invalid industry "${this.type}"`);if(Object.keys(e.researched).length!==Object.keys(this.researched).length)for(const t of Object.keys(this.researched))e.research(t)}getAdvertisingMultiplier(){const e=_IndustryData__WEBPACK_IMPORTED_MODULE_2__.c[this.type];if(void 0===e)throw new Error(`Invalid industry: "${this.type}"`);return this.updateResearchTree(),e.getAdvertisingMultiplier()}getEmployeeChaMultiplier(){const e=_IndustryData__WEBPACK_IMPORTED_MODULE_2__.c[this.type];if(void 0===e)throw new Error(`Invalid industry: "${this.type}"`);return this.updateResearchTree(),e.getEmployeeChaMultiplier()}getEmployeeCreMultiplier(){const e=_IndustryData__WEBPACK_IMPORTED_MODULE_2__.c[this.type];if(void 0===e)throw new Error(`Invalid industry: "${this.type}"`);return this.updateResearchTree(),e.getEmployeeCreMultiplier()}getEmployeeEffMultiplier(){const e=_IndustryData__WEBPACK_IMPORTED_MODULE_2__.c[this.type];if(void 0===e)throw new Error(`Invalid industry: "${this.type}"`);return this.updateResearchTree(),e.getEmployeeEffMultiplier()}getEmployeeIntMultiplier(){const e=_IndustryData__WEBPACK_IMPORTED_MODULE_2__.c[this.type];if(void 0===e)throw new Error(`Invalid industry: "${this.type}"`);return this.updateResearchTree(),e.getEmployeeIntMultiplier()}getProductionMultiplier(){const e=_IndustryData__WEBPACK_IMPORTED_MODULE_2__.c[this.type];if(void 0===e)throw new Error(`Invalid industry: "${this.type}"`);return this.updateResearchTree(),e.getProductionMultiplier()}getProductProductionMultiplier(){const e=_IndustryData__WEBPACK_IMPORTED_MODULE_2__.c[this.type];if(void 0===e)throw new Error(`Invalid industry: "${this.type}"`);return this.updateResearchTree(),e.getProductProductionMultiplier()}getSalesMultiplier(){const e=_IndustryData__WEBPACK_IMPORTED_MODULE_2__.c[this.type];if(void 0===e)throw new Error(`Invalid industry: "${this.type}"`);return this.updateResearchTree(),e.getSalesMultiplier()}getScientificResearchMultiplier(){const e=_IndustryData__WEBPACK_IMPORTED_MODULE_2__.c[this.type];if(void 0===e)throw new Error(`Invalid industry: "${this.type}"`);return this.updateResearchTree(),e.getScientificResearchMultiplier()}getStorageMultiplier(){const e=_IndustryData__WEBPACK_IMPORTED_MODULE_2__.c[this.type];if(void 0===e)throw new Error(`Invalid industry: "${this.type}"`);return this.updateResearchTree(),e.getStorageMultiplier()}toJSON(){return Object(_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_0__.b)("Industry",this)}static fromJSON(e){return Object(_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_0__.a)(Industry,e.data)}}_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_0__.c.constructors.Industry=Industry},function(e,t,n){"use strict";function a(e,t,n){return(t<=0||t>=1)&&console.warn(`Exponential factor is ${t}. This is not an intended value for it`),n<1&&console.warn(`Linear factor is ${n}. This is not an intended value for it`),Math.pow(e,t)+e/n}n.d(t,"a",(function(){return a}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var a=n(39),r=n(33),i=n(22),o=n(45);class s{constructor(e={}){var t,n,i;t=this,n="cyclesUntilRaise",i=a.a.CyclesPerEmployeeRaise,n in t?Object.defineProperty(t,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[n]=i,this.name=e.name?e.name:"Bobby",this.mor=e.morale?e.morale:Object(r.a)(50,100),this.hap=e.happiness?e.happiness:Object(r.a)(50,100),this.ene=e.energy?e.energy:Object(r.a)(50,100),this.int=e.intelligence?e.intelligence:Object(r.a)(10,50),this.cha=e.charisma?e.charisma:Object(r.a)(10,50),this.exp=e.experience?e.experience:Object(r.a)(10,50),this.cre=e.creativity?e.creativity:Object(r.a)(10,50),this.eff=e.efficiency?e.efficiency:Object(r.a)(10,50),this.sal=e.salary?e.salary:Object(r.a)(.1,5),this.loc=e.loc?e.loc:"",this.pos=o.a.Unassigned}process(e=1,t){const n=.003*e,r=n*Math.random();this.exp+=n;const i=n*Math.random();this.pos===o.a.Training&&(this.cha+=i,this.exp+=i,this.eff+=i),this.ene-=r,this.hap-=r,this.ene<t.minEne&&(this.ene=t.minEne),this.hap<t.minHap&&(this.hap=t.minHap);return this.sal*e*a.a.SecsPerMarketCycle}calculateProductivity(e,t){const n=this.cre*e.getEmployeeCreMultiplier()*t.getEmployeeCreMultiplier(),a=this.cha*e.getEmployeeChaMultiplier()*t.getEmployeeChaMultiplier(),r=this.int*e.getEmployeeIntMultiplier()*t.getEmployeeIntMultiplier(),i=this.eff*e.getEmployeeEffMultiplier()*t.getEmployeeEffMultiplier(),s=this.mor*this.hap*this.ene*1e-6;let l=0;switch(this.pos){case o.a.Operations:l=.6*r+.1*a+this.exp+.5*n+i;break;case o.a.Engineer:l=r+.1*a+1.5*this.exp+i;break;case o.a.Business:l=.4*r+a+.5*this.exp;break;case o.a.Management:l=2*a+this.exp+.2*n+.7*i;break;case o.a.RandD:l=1.5*r+.8*this.exp+n+.5*i;break;case o.a.Unassigned:case o.a.Training:l=0;break;default:console.error("Invalid employee position: "+this.pos)}return s*l}throwParty(e){const t=1+e/1e7;return this.mor*=t,this.mor=Math.min(100,this.mor),this.hap*=t,this.hap=Math.min(100,this.hap),t}toJSON(){return Object(i.b)("Employee",this)}static fromJSON(e){return Object(i.a)(s,e.data)}}i.c.constructors.Employee=s},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var a=n(50);const r={[a.a.Food]:{Quality:.7,Durability:.1,Aesthetics:.2},[a.a.Tobacco]:{Quality:.4,Durability:.2,Reliability:.2,Aesthetics:.2},[a.a.Pharmaceutical]:{Quality:.2,Performance:.2,Durability:.1,Reliability:.3,Features:.2},[a.a.Computer]:{Quality:.15,Performance:.25,Durability:.25,Reliability:.2,Aesthetics:.05,Features:.1},Computer:{Quality:.15,Performance:.25,Durability:.25,Reliability:.2,Aesthetics:.05,Features:.1},[a.a.Robotics]:{Quality:.1,Performance:.2,Durability:.2,Reliability:.2,Aesthetics:.1,Features:.2},[a.a.Software]:{Quality:.2,Performance:.2,Reliability:.2,Durability:.2,Features:.2},[a.a.Healthcare]:{Quality:.4,Performance:.1,Durability:.1,Reliability:.3,Features:.1},[a.a.RealEstate]:{Quality:.2,Durability:.25,Reliability:.1,Aesthetics:.35,Features:.1}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var a=n(607),r=n(213),i=n(158),o=n(40),s=n(185),l=n(100),c=n(60),f=n(205),u=n(354),m=n(541);function h(e,t){const n=function(n){if(!e.hasProgram(c.a.Formulas.name))throw t.makeRuntimeErrorMsg("formulas."+n.function,"Requires Formulas.exe to run.")};return{reputation:{calculateFavorToRep:e=>t=>{const a=e.helper.number("favor",t);return n(e),Object(u.a)(a)},calculateRepToFavor:e=>t=>{const a=e.helper.number("rep",t);return n(e),Object(u.b)(a)},repFromDonation:e=>(t,a)=>{const r=e.helper.number("amount",t);return n(e),Object(m.a)(r,a)}},skills:{calculateSkill:e=>(t,a=1)=>{const r=e.helper.number("exp",t),i=e.helper.number("mult",a);return n(e),Object(s.b)(r,i)},calculateExp:e=>(t,a=1)=>{const r=e.helper.number("skill",t),i=e.helper.number("mult",a);return n(e),Object(s.a)(r,i)}},hacking:{hackChance:e=>(t,a)=>(n(e),Object(l.b)(t,a)),hackExp:e=>(t,a)=>(n(e),Object(l.c)(t,a)),hackPercent:e=>(t,a)=>(n(e),Object(l.e)(t,a)),growPercent:e=>(t,r,i,o=1)=>{const s=e.helper.number("threads",r),l=e.helper.number("cores",o);return n(e),Object(a.a)(t,s,i,l)},hackTime:e=>(t,a)=>(n(e),1e3*Object(l.d)(t,a)),growTime:e=>(t,a)=>(n(e),1e3*Object(l.a)(t,a)),weakenTime:e=>(t,a)=>(n(e),1e3*Object(l.f)(t,a))},hacknetNodes:{moneyGainRate:e=>(t,a,i,o=1)=>{const s=e.helper.number("level",t),l=e.helper.number("ram",a),c=e.helper.number("cores",i),f=e.helper.number("mult",o);return n(e),Object(r.c)(s,l,c,f)},levelUpgradeCost:e=>(t,a=1,i=1)=>{const o=e.helper.number("startingLevel",t),s=e.helper.number("extraLevels",a),l=e.helper.number("costMult",i);return n(e),Object(r.b)(o,s,l)},ramUpgradeCost:e=>(t,a=1,i=1)=>{const o=e.helper.number("startingRam",t),s=e.helper.number("extraLevels",a),l=e.helper.number("costMult",i);return n(e),Object(r.e)(o,s,l)},coreUpgradeCost:e=>(t,a=1,i=1)=>{const o=e.helper.number("startingCore",t),s=e.helper.number("extraCores",a),l=e.helper.number("costMult",i);return n(e),Object(r.a)(o,s,l)},hacknetNodeCost:e=>(t,a)=>{const i=e.helper.number("n",t),o=e.helper.number("mult",a);return n(e),Object(r.d)(i,o)},constants:e=>()=>(n(e),Object.assign({},o.a))},hacknetServers:{hashGainRate:e=>(t,a,r,o,s=1)=>{const l=e.helper.number("level",t),c=e.helper.number("ramUsed",a),f=e.helper.number("maxRam",r),u=e.helper.number("cores",o),m=e.helper.number("mult",s);return n(e),Object(i.c)(l,c,f,u,m)},levelUpgradeCost:e=>(t,a=1,r=1)=>{const o=e.helper.number("startingLevel",t),s=e.helper.number("extraLevels",a),l=e.helper.number("costMult",r);return n(e),Object(i.d)(o,s,l)},ramUpgradeCost:e=>(t,a=1,r=1)=>{const o=e.helper.number("startingRam",t),s=e.helper.number("extraLevels",a),l=e.helper.number("costMult",r);return n(e),Object(i.e)(o,s,l)},coreUpgradeCost:e=>(t,a=1,r=1)=>{const o=e.helper.number("startingCore",t),s=e.helper.number("extraCores",a),l=e.helper.number("costMult",r);return n(e),Object(i.b)(o,s,l)},cacheUpgradeCost:e=>(t,a=1)=>{const r=e.helper.number("startingCache",t),o=e.helper.number("extraCache",a);return n(e),Object(i.a)(r,o)},hashUpgradeCost:a=>(r,i)=>{const o=t.string("hashUpgradeCost","upgName",r),s=a.helper.number("level",i);n(a);const l=e.hashManager.getUpgrade(o);if(!l)throw t.makeRuntimeErrorMsg("formulas.hacknetServers.calculateHashUpgradeCost","Invalid Hash Upgrade: "+o);return l.getCost(s)},hacknetServerCost:e=>(t,a=1)=>{const r=e.helper.number("n",t),o=e.helper.number("mult",a);return n(e),Object(i.f)(r,o)},constants:e=>()=>(n(e),Object.assign({},o.b))},gang:{wantedPenalty:e=>t=>(n(e),Object(f.f)(t)),respectGain:e=>(t,a,r)=>(n(e),Object(f.d)(t,a,r)),wantedLevelGain:e=>(t,a,r)=>(n(e),Object(f.e)(t,a,r)),moneyGain:e=>(t,a,r)=>(n(e),Object(f.c)(t,a,r)),ascensionPointsGain:e=>t=>{const a=e.helper.number("exp",t);return n(e),Object(f.b)(a)},ascensionMultiplier:e=>t=>{const a=e.helper.number("points",t);return n(e),Object(f.a)(a)}}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var a=n(247),r=n(103),i=n(231),o=n(117),s=n(72),l=n(98),c=n(234);function f(e,t){const n=function(t){if(!e.hasWseAccount)throw t.makeRuntimeErrorMsg(`You don't have WSE Access! Cannot use ${t.function}()`);if(!e.hasTixApiAccess)throw t.makeRuntimeErrorMsg(`You don't have TIX API Access! Cannot use ${t.function}()`)},f=function(e,t){const n=r.b[t];if(null==n)throw e.makeRuntimeErrorMsg(`Invalid stock symbol: '${t}'`);return n};return{getSymbols:e=>()=>(n(e),Object.values(l.a)),getPrice:e=>t=>{const a=e.helper.string("symbol",t);n(e);return f(e,a).price},getAskPrice:e=>t=>{const a=e.helper.string("symbol",t);n(e);return f(e,a).getAskPrice()},getBidPrice:e=>t=>{const a=e.helper.string("symbol",t);n(e);return f(e,a).getBidPrice()},getPosition:e=>t=>{const a=e.helper.string("symbol",t);n(e);const i=r.b[a];if(null==i)throw e.makeRuntimeErrorMsg("Invalid stock symbol: "+a);return[i.playerShares,i.playerAvgPx,i.playerShortShares,i.playerAvgShortPx]},getMaxShares:e=>t=>{const a=e.helper.string("symbol",t);n(e);return f(e,a).maxShares},getPurchaseCost:e=>(t,a,r)=>{const o=e.helper.string("symbol",t);let l=e.helper.number("shares",a);const c=e.helper.string("posType",r);n(e);const u=f(e,o);let m;l=Math.round(l);const h=c.toLowerCase();if(h.includes("l"))m=s.a.Long;else{if(!h.includes("s"))return 1/0;m=s.a.Short}const d=Object(i.b)(u,l,m);return null==d?1/0:d},getSaleGain:e=>(t,a,r)=>{const o=e.helper.string("symbol",t);let l=e.helper.number("shares",a);const c=e.helper.string("posType",r);n(e);const u=f(e,o);let m;l=Math.round(l);const h=c.toLowerCase();if(h.includes("l"))m=s.a.Long;else{if(!h.includes("s"))return 0;m=s.a.Short}const d=Object(i.c)(u,l,m);return null==d?0:d},buy:e=>(r,i)=>{const o=e.helper.string("symbol",r),s=e.helper.number("shares",i);n(e);const l=f(e,o);return Object(a.a)(l,s,t,{})?l.getAskPrice():0},sell:e=>(r,i)=>{const o=e.helper.string("symbol",r),s=e.helper.number("shares",i);n(e);const l=f(e,o);return Object(a.c)(l,s,t,{})?l.getBidPrice():0},short:r=>(i,o)=>{const s=r.helper.string("symbol",i),l=r.helper.number("shares",o);if(n(r),8!==e.bitNodeN&&e.sourceFileLvl(8)<=1)throw r.makeRuntimeErrorMsg("You must either be in BitNode-8 or you must have Source-File 8 Level 2.");const c=f(r,s);return Object(a.d)(c,l,t,{})?c.getBidPrice():0},sellShort:r=>(i,o)=>{const s=r.helper.string("symbol",i),l=r.helper.number("shares",o);if(n(r),8!==e.bitNodeN&&e.sourceFileLvl(8)<=1)throw r.makeRuntimeErrorMsg("You must either be in BitNode-8 or you must have Source-File 8 Level 2.");const c=f(r,s);return Object(a.b)(c,l,t,{})?c.getAskPrice():0},placeOrder:a=>(i,l,c,u,m)=>{const h=a.helper.string("symbol",i),d=a.helper.number("shares",l),p=a.helper.number("price",c),g=a.helper.string("type",u),y=a.helper.string("pos",m);if(n(a),8!==e.bitNodeN&&e.sourceFileLvl(8)<=2)throw a.makeRuntimeErrorMsg("You must either be in BitNode-8 or you must have Source-File 8 Level 3.");const b=f(a,h);let E,v;const k=g.toLowerCase();if(k.includes("limit")&&k.includes("buy"))E=o.a.LimitBuy;else if(k.includes("limit")&&k.includes("sell"))E=o.a.LimitSell;else if(k.includes("stop")&&k.includes("buy"))E=o.a.StopBuy;else{if(!k.includes("stop")||!k.includes("sell"))throw a.makeRuntimeErrorMsg("Invalid order type: "+g);E=o.a.StopSell}const w=y.toLowerCase();if(w.includes("l"))v=s.a.Long;else{if(!w.includes("s"))throw a.makeRuntimeErrorMsg("Invalid position type: "+y);v=s.a.Short}return Object(r.j)(b,d,p,E,v,t)},cancelOrder:a=>(i,l,c,u,m)=>{const h=a.helper.string("symbol",i),d=a.helper.number("shares",l),p=a.helper.number("price",c),g=a.helper.string("type",u),y=a.helper.string("pos",m);if(n(a),8!==e.bitNodeN&&e.sourceFileLvl(8)<=2)throw a.makeRuntimeErrorMsg("You must either be in BitNode-8 or you must have Source-File 8 Level 3.");const b=f(a,h);if(isNaN(d)||isNaN(p))throw a.makeRuntimeErrorMsg(`Invalid shares or price. Must be numeric. shares=${d}, price=${p}`);let E,v;const k=g.toLowerCase();if(k.includes("limit")&&k.includes("buy"))E=o.a.LimitBuy;else if(k.includes("limit")&&k.includes("sell"))E=o.a.LimitSell;else if(k.includes("stop")&&k.includes("buy"))E=o.a.StopBuy;else{if(!k.includes("stop")||!k.includes("sell"))throw a.makeRuntimeErrorMsg("Invalid order type: "+g);E=o.a.StopSell}const w=y.toLowerCase();if(w.includes("l"))v=s.a.Long;else{if(!w.includes("s"))throw a.makeRuntimeErrorMsg("Invalid position type: "+y);v=s.a.Short}const _={stock:b,shares:d,price:p,type:E,pos:v};return Object(r.c)(_,t)},getOrders:t=>()=>{if(n(t),8!==e.bitNodeN&&e.sourceFileLvl(8)<=2)throw t.makeRuntimeErrorMsg("You must either be in BitNode-8 or have Source-File 8 Level 3.");const a={},i=r.a.Orders;for(const e of Object.keys(i)){const t=i[e];if(t.constructor===Array&&t.length>0){a[e]=[];for(let n=0;n<t.length;++n)a[e].push({shares:t[n].shares,price:t[n].price,type:t[n].type,position:t[n].pos})}}return a},getVolatility:t=>n=>{const a=t.helper.string("symbol",n);if(!e.has4SDataTixApi)throw t.makeRuntimeErrorMsg("You don't have 4S Market Data TIX API Access!");return f(t,a).mv/100},getForecast:t=>n=>{const a=t.helper.string("symbol",n);if(!e.has4SDataTixApi)throw t.makeRuntimeErrorMsg("You don't have 4S Market Data TIX API Access!");const r=f(t,a);let i=50;return r.b?i+=r.otlkMag:i-=r.otlkMag,i/100},purchase4SMarketData:t=>()=>e.has4SData?(t.log(()=>"Already purchased 4S Market Data."),!0):e.money<Object(c.a)()?(t.log(()=>"Not enough money to purchase 4S Market Data."),!1):(e.has4SData=!0,e.loseMoney(Object(c.a)(),"stock"),t.log(()=>"Purchased 4S Market Data"),!0),purchase4SMarketDataTixApi:t=>()=>(n(t),e.has4SDataTixApi?(t.log(()=>"Already purchased 4S Market Data TIX API"),!0):e.money<Object(c.b)()?(t.log(()=>"Not enough money to purchase 4S Market Data TIX API"),!1):(e.has4SDataTixApi=!0,e.loseMoney(Object(c.b)(),"stock"),t.log(()=>"Purchased 4S Market Data TIX API"),!0)),purchaseWseAccount:t=>()=>e.hasWseAccount?(t.log(()=>"Already purchased WSE Account"),!0):e.money<Object(c.d)()?(t.log(()=>"Not enough money to purchase WSE Account Access"),!1):(e.hasWseAccount=!0,Object(r.g)(),e.loseMoney(Object(c.d)(),"stock"),t.log(()=>"Purchased WSE Account Access"),!0),purchaseTixApi:t=>()=>e.hasTixApiAccess?(t.log(()=>"Already purchased TIX API"),!0):e.money<Object(c.c)()?(t.log(()=>"Not enough money to purchase TIX API Access"),!1):(e.hasTixApiAccess=!0,e.loseMoney(Object(c.c)(),"stock"),t.log(()=>"Purchased TIX API"),!0)}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var a=n(73),r=n(105),i=n(15),o=n(391),s=n(273),l=n(92),c=n(382);function f(e){const t=t=>{if(!e.canAccessGrafting())throw t.makeRuntimeErrorMsg("You do not currently have access to the Grafting API. This is either because you are not in BitNode 10 or because you do not have Source-File 10")};return{getAugmentationGraftPrice:n=>r=>{const i=n.helper.string("augName",r);if(t(n),!Object(s.b)(e).includes(i)||!a.a.hasOwnProperty(i))throw n.makeRuntimeErrorMsg("Invalid aug: "+i);return new o.a(a.a[i]).cost},getAugmentationGraftTime:n=>r=>{const i=n.helper.string("augName",r);if(t(n),!Object(s.b)(e).includes(i)||!a.a.hasOwnProperty(i))throw n.makeRuntimeErrorMsg("Invalid aug: "+i);const l=new o.a(a.a[i]);return Object(s.a)(e,l)},getGraftableAugmentations:n=>()=>{t(n);return Object(s.b)(e)},graftAugmentation:n=>(f,u=!0)=>{const m=n.helper.string("augName",f),h=n.helper.boolean(u);if(t(n),e.city!==i.a.NewTokyo)throw n.makeRuntimeErrorMsg("You must be in New Tokyo to begin grafting an Augmentation.");if(!Object(s.b)(e).includes(m)||!a.a.hasOwnProperty(m))return n.log(()=>"Invalid aug: "+m),!1;const d=e.focus,p=new o.a(a.a[m]);return e.money<p.cost?(n.log(()=>"You don't have enough money to craft "+m),!1):Object(r.b)(p.augmentation)?(e.startWork(new c.a({singularity:!0,augmentation:m,player:e})),h?(e.startFocusing(),l.b.toWork()):d&&(e.stopFocusing(),l.b.toTerminal()),n.log(()=>`Began grafting Augmentation ${m}.`),!0):(n.log(()=>"You don't have the pre-requisites for "+m),!1)}}}},,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var a=n(2),r=n(259),i=n(27);const o=[["getHackTime","returns milliseconds"],["getGrowTime","returns milliseconds"],["getWeakenTime","returns milliseconds"],["getActionTime","returns milliseconds"],["hackAnalyzePercent","renamed 'hackAnalyze' and returns decimal"],["hackChance","renamed 'hackAnalyzeChance'"],["basic.calculateSkill","renamed 'skills.calculateSkill'"],["basic.calculateExp","renamed 'skills.calculateExp'"],["basic.hackChance","renamed 'hacking.hackChance'"],["basic.hackExp","renamed 'hacking.hackExp'"],["basic.hackPercent","renamed 'hacking.hackPercent'"],["basic.growPercent","renamed 'hacking.growPercent'"],["basic.hackTime","renamed 'hacking.hackTime'"],["basic.growTime","renamed 'hacking.growTime'"],["basic.weakenTime","renamed 'hacking.weakenTime'"],["write","needs to be awaited"],["scp","needs to be awaited"],["sleep","Can no longer be called simultenaously."],["hacking_skill","renamed 'hacking'"],["tryWrite","renamed 'tryWritePort'"]],s=[[/ns.getHackTime/g,"((...a)=>ns.getHackTime(...a)/1000)"],[/ns.getGrowTime/g,"((...a)=>ns.getGrowTime(...a)/1000)"],[/ns.getWeakenTime/g,"((...a)=>ns.getWeakenTime(...a)/1000)"],[/ns.bladeburner.getActionTime/g,"((...a)=>ns.bladeburner.getActionTime(...a)/1000)"],[/ns.hackAnalyzePercent/g,"((...a)=>ns.hackAnalyze(...a)*100)"],[/ns.hackChance/g,"ns.hackAnalyzeChance"],[/ns.tryWrite/g,"ns.tryWritePort"],[/formulas.basic.calculateSkill/g,"formulas.skills.calculateSkill"],[/formulas.basic.calculateExp/g,"formulas.skills.calculateExp"],[/formulas.basic.hackChance/g,"formulas.hacking.hackChance"],[/formulas.basic.hackExp/g,"formulas.hacking.hackExp"],[/formulas.basic.hackPercent/g,"formulas.hacking.hackPercent"],[/formulas.basic.growPercent/g,"formulas.hacking.growPercent"],[/formulas.basic.hackTime/g,"formulas.hacking.hackTime"],[/formulas.basic.growTime/g,"formulas.hacking.growTime"],[/formulas.basic.weakenTime/g,"formulas.hacking.weakenTime"]];function l(e){for(const t of s)if(e.match(t[0]))return!0;return!1}function c(e){const t=e.split("\n"),n=[];for(let e=0;e<t.length;e++){const a=t[e];let r=t[e];for(const e of s)r=r.replace(e[0],e[1]);r!=a&&(n.push("// =============================== original line ==============================="),n.push("/**"),n.push(" * "+a),n.push(" */"),n.push("// =============================================================================")),n.push(r)}return n.join("\n")}function f(){let e="";for(const t of Object(i.c)())for(const n of o){const a=[];for(const e of t.scripts){const t=e.code.split("\n");for(let r=0;r<t.length;r++)t[r].includes(n[0])&&a.push({file:e.filename,line:r+1})}if(0!==a.length){e+=`// Detected change ${n[0]}, reason: ${n[1]}\n`;for(const t of a)e+=`${t.file}:${t.line}\n`}}if(""!==e){a.a.getHomeComputer().writeToTextFile("v1_DETECTED_CHANGES.txt",e)}for(const e of Object(i.c)()){const t=[];for(const n of e.scripts){if(!l(n.code))continue;const e=n.filename.includes("/")?"/BACKUP_":"BACKUP_";t.push(new r.a(a.a,e+n.filename,n.code,n.server)),n.code=c(n.code)}e.scripts=e.scripts.concat(t)}}},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return I}));var a=n(0),r=n.n(a),i=n(43),o=n(1),s=n(112),l=n(8),c=n(609),f=n.n(c),u=n(1096),m=n.n(u),h=n(387),d=n(169),p=n(251),g=n(96),y=n(421),b=n.n(y),E=n(357),v=n.n(E),k=n(304),w=n.n(k),_=n(617),S=n.n(_),C=n(616),x=n.n(C),L=n(618),O=n.n(L),M=n(118),T=n(142),A=n(42),R=n(1079);const N=Object(M.a)(e=>Object(T.a)({textfield:{borderBottom:"1px solid "+e.palette.primary.main},code:{whiteSpace:"pre",backgroundColor:e.palette.background.paper}}));var P;function I(){const[e,t]=Object(a.useState)(!1),[n,c]=Object(a.useState)(P.None),u=N(),y={[P.None]:".script",[P.NS1]:".script",[P.NS2]:".js"}[n],E="n00dles"+y,k={[A.f.Start]:{content:r.a.createElement(r.a.Fragment,null,r.a.createElement(o.a,null,"Welcome to Bitburner, a cyberpunk-themed incremental RPG! The game takes place in a dark, dystopian future... The year is 2077...",r.a.createElement("br",null),r.a.createElement("br",null),"This tutorial will show you the basics of the game. You may skip the tutorial at any time.",r.a.createElement("br",null),r.a.createElement("br",null),"You can also collapse this panel to temporarily hide this tutorial.")),canNext:!0},[A.f.NSSelection]:{content:r.a.createElement(r.a.Fragment,null,r.a.createElement(o.a,null,"The tutorial will adjust to your programming ability."),r.a.createElement(o.a,null,"Bitburner has 2 types of scripts:"),r.a.createElement(p.a,null,r.a.createElement(g.a,null,r.a.createElement(o.a,null,"NS1: Javascript from 2009, very simple. Recommended for beginners to programming.")),r.a.createElement(g.a,null,r.a.createElement(o.a,null,"NS2: Native, modern Javascript. Recommended if you know any programming language or are serious about learning programming."))),r.a.createElement(o.a,null,"Both are available at all time and interchangeably. This choice is only for the tutorial."),r.a.createElement(l.a,{onClick:()=>{c(P.NS1),Object(A.c)()}},"Use NS1"),r.a.createElement(l.a,{onClick:()=>{c(P.NS2),Object(A.c)()}},"Use NS2"),r.a.createElement(l.a,{onClick:()=>t(!0)},"More info"),r.a.createElement("br",null)),canNext:!1},[A.f.GoToCharacterPage]:{content:r.a.createElement(r.a.Fragment,null,r.a.createElement(o.a,null,"Let's start by heading to the Stats page. Click"),r.a.createElement(g.a,null,r.a.createElement(b.a,{color:"error"}),r.a.createElement(o.a,{color:"error"},"Stats")),r.a.createElement(o.a,null,"on the main navigation menu (left-hand side of the screen)")),canNext:!1},[A.f.CharacterPage]:{content:r.a.createElement(r.a.Fragment,null,r.a.createElement(g.a,null,r.a.createElement(b.a,{color:"primary"}),r.a.createElement(o.a,{color:"primary"},"Stats")),r.a.createElement(o.a,null,"shows a lot of important information about your progress, such as your skills, money, and bonuses.")),canNext:!0},[A.f.CharacterGoToTerminalPage]:{content:r.a.createElement(r.a.Fragment,null,r.a.createElement(o.a,null,"Let's head to your computer's terminal by clicking"),r.a.createElement(g.a,null,r.a.createElement(v.a,{color:"error"}),r.a.createElement(o.a,{color:"error"},"Terminal")),r.a.createElement(o.a,null,"on the main navigation menu.")),canNext:!1},[A.f.TerminalIntro]:{content:r.a.createElement(r.a.Fragment,null,r.a.createElement(g.a,null,r.a.createElement(v.a,{color:"primary"}),r.a.createElement(o.a,{color:"primary"},"Terminal")),r.a.createElement(o.a,null,"is used to interface with your home computer as well as all of the other machines around the world.")),canNext:!0},[A.f.TerminalHelp]:{content:r.a.createElement(r.a.Fragment,null,r.a.createElement(o.a,null,"Let's try it out. Start by entering"),r.a.createElement(o.a,{classes:{root:u.textfield}},"[home ~/]> help"),r.a.createElement(o.a,null,"(Don't forget to press Enter after typing the command)")),canNext:!1},[A.f.TerminalLs]:{content:r.a.createElement(r.a.Fragment,null,r.a.createElement(o.a,{classes:{root:u.textfield}},"[home ~/]> help"),r.a.createElement(o.a,null,"displays a list of all available Terminal commands, how to use them, and a description of what they do."," ",r.a.createElement("br",null),r.a.createElement("br",null),"Let's try another command. Enter"),r.a.createElement(o.a,{classes:{root:u.textfield}},"[home ~/]> ls")),canNext:!1},[A.f.TerminalScan]:{content:r.a.createElement(r.a.Fragment,null,r.a.createElement(o.a,{classes:{root:u.textfield}},"[home ~/]> ls"),r.a.createElement(o.a,null," ","is a basic command that shows files on the computer. Right now, it shows that you have a program called"," ","NUKE.exe on your computer. We'll get to what this does later. ",r.a.createElement("br",null),r.a.createElement("br",null),"Using your home computer's terminal, you can connect to other machines throughout the world. Let's do that now by first entering"),r.a.createElement(o.a,{classes:{root:u.textfield}},"[home ~/]> scan")),canNext:!1},[A.f.TerminalScanAnalyze1]:{content:r.a.createElement(r.a.Fragment,null,r.a.createElement(o.a,{classes:{root:u.textfield}},"[home ~/]> scan"),r.a.createElement(o.a,null,"shows all available network connections. In other words, it displays a list of all servers that can be connected to from your current machine. A server is identified by its hostname. ",r.a.createElement("br",null),r.a.createElement("br",null),"That's great and all, but there's so many servers. Which one should you go to?"," "),r.a.createElement(o.a,{classes:{root:u.textfield}},"[home ~/]> scan-analyze"),r.a.createElement(o.a,null,"gives some more detailed information about servers on the network. Try it now!")),canNext:!1},[A.f.TerminalScanAnalyze2]:{content:r.a.createElement(r.a.Fragment,null,r.a.createElement(o.a,{classes:{root:u.textfield}},"[home ~/]> scan-analyze"),r.a.createElement(o.a,null,"shows more detailed information about each server that you can connect to (servers that are a distance of one node away). ",r.a.createElement("br",null),r.a.createElement("br",null)," It is also possible to run scan-analyze with a higher depth. Let's try a depth of two with the following command:"," "),r.a.createElement(o.a,{classes:{root:u.textfield}},"[home ~/]> scan-analyze 2")),canNext:!1},[A.f.TerminalConnect]:{content:r.a.createElement(r.a.Fragment,null,r.a.createElement(o.a,null,"Now you can see information about all servers that are up to two nodes away, as well as figure out how to navigate to those servers through the network. You can only connect to a server that is one node away. To connect to a machine, use"),r.a.createElement(o.a,{classes:{root:u.textfield}},"[home ~/]> connect hostname"),r.a.createElement(o.a,null,"From the results of "),r.a.createElement(o.a,{classes:{root:u.textfield}},"[home ~/]> scan-analyze 2"),r.a.createElement(o.a,null," ","we can see that the n00dles server is only one node away. Let's connect to it now using:"),r.a.createElement(o.a,{classes:{root:u.textfield}},"[home ~/]> connect n00dles")),canNext:!1},[A.f.TerminalAnalyze]:{content:r.a.createElement(r.a.Fragment,null,r.a.createElement(o.a,null,"You are now connected to another machine! What can you do now? You can hack it!",r.a.createElement("br",null),r.a.createElement("br",null)," In the year 2077, currency has become digital and decentralized. People and corporations store their money on servers and computers. Using your hacking abilities, you can hack servers to steal money and gain experience. ",r.a.createElement("br",null),r.a.createElement("br",null),"Before you try to hack a server, you should run diagnostics using"," "),r.a.createElement(o.a,{classes:{root:u.textfield}},"[n00dles ~/]> analyze")),canNext:!1},[A.f.TerminalNuke]:{content:r.a.createElement(r.a.Fragment,null,r.a.createElement(o.a,null,"When "),r.a.createElement(o.a,{classes:{root:u.textfield}},"[n00dles ~/]> analyze"),r.a.createElement(o.a,null,"finishes running it will show useful information about hacking the server. ",r.a.createElement("br",null),r.a.createElement("br",null)," For this server, the required hacking skill is only 1, which means you can hack it right now. However, in order to hack a server you must first gain root access. The NUKE.exe program that we saw earlier on your home computer is a virus that will grant you root access to a machine if there are enough open ports."),r.a.createElement(o.a,{classes:{root:u.textfield}},"[n00dles ~/]> analyze"),r.a.createElement(o.a,null," ","shows that there do not need to be any open ports on this machine for the NUKE virus to work, so go ahead and run the virus using"," "),r.a.createElement(o.a,{classes:{root:u.textfield}},"[n00dles ~/]> run NUKE.exe"),r.a.createElement(o.a,null)),canNext:!0},[A.f.TerminalManualHack]:{content:r.a.createElement(r.a.Fragment,null,r.a.createElement(o.a,null,"You now have root access! You can hack the server using "),r.a.createElement(o.a,{classes:{root:u.textfield}},"[n00dles ~/]> hack"),r.a.createElement(o.a,null," Try doing that now.")),canNext:!0},[A.f.TerminalHackingMechanics]:{content:r.a.createElement(o.a,null,"You are now attempting to hack the server. Performing a hack takes time and only has a certain percentage chance of success. This time and success chance is determined by a variety of factors, including your hacking skill and the server's security level.",r.a.createElement("br",null),r.a.createElement("br",null),"If your attempt to hack the server is successful, you will steal a certain percentage of the server's total money. This percentage is affected by your hacking skill and the server's security level.",r.a.createElement("br",null),r.a.createElement("br",null),"The amount of money on a server is not limitless. So, if you constantly hack a server and deplete its money, then you will encounter diminishing returns in your hacking. You will need to use"," ",r.a.createElement(o.a,{classes:{root:u.textfield}},"[n00dles ~/]> grow"),"which tricks the company into adding money to their server and"," ",r.a.createElement(o.a,{classes:{root:u.textfield}},"[n00dles ~/]> weaken"),"which increases the speed of hack and grow."),canNext:!0},[A.f.TerminalGoHome]:{content:r.a.createElement(r.a.Fragment,null,r.a.createElement(o.a,null,"From any server you can get back home using"),r.a.createElement(o.a,{classes:{root:u.textfield}},"[n00dles ~/]> home"),r.a.createElement(o.a,null,"Let's head home before creating our first script!")),canNext:!0},[A.f.TerminalCreateScript]:{content:r.a.createElement(r.a.Fragment,null,r.a.createElement(o.a,null,"Hacking is the core mechanic of the game and is necessary for progressing. However, you don't want to be hacking manually the entire time. You can automate your hacking by writing scripts!",r.a.createElement("br",null),r.a.createElement("br",null),"To create a new script or edit an existing one, you can use"," "),r.a.createElement(o.a,{classes:{root:u.textfield}},"[home ~/]> nano"),r.a.createElement(o.a,null,"Scripts must end with the ",y," extension. Let's make a script now by entering"," "),r.a.createElement(o.a,{classes:{root:u.textfield}},"[home ~/]> nano "+E),r.a.createElement(o.a,null,"after the hack command finishes running (Sidenote: Pressing ctrl + c will end a command like hack early)")),canNext:!1},[A.f.TerminalTypeScript]:{content:r.a.createElement(r.a.Fragment,null,r.a.createElement(o.a,null,"This is the script editor. You can use it to program your scripts."," ",n!==P.NS2&&r.a.createElement(r.a.Fragment,null,"Scripts are written in a simplified version of javascript.")," Copy and paste the following code into the script editor: ",r.a.createElement("br",null)),r.a.createElement(o.a,{classes:{root:u.code}},n!==P.NS2&&r.a.createElement(d.a,{value:"while(true) {\n hack('n00dles');\n}"}),n===P.NS2&&r.a.createElement(d.a,{value:"export async function main(ns) {\n\twhile(true) {\n\t\tawait ns.hack('n00dles');\n\t}\n}"})),r.a.createElement(o.a,null,"For anyone with basic programming experience, this code should be straightforward. This script will continuously hack the n00dles server.",r.a.createElement("br",null),r.a.createElement("br",null),"To save and close the script editor, press the button in the bottom left, or press ctrl + s then ctrl + b.")),canNext:!1},[A.f.TerminalFree]:{content:r.a.createElement(r.a.Fragment,null,r.a.createElement(o.a,null,"Now we'll run the script. Scripts require a certain amount of RAM to run, and can be run on any machine which you have root access to. Different servers have different amounts of RAM. You can also purchase more RAM for your home server.",r.a.createElement("br",null),r.a.createElement("br",null),"To check how much RAM is available on this machine, enter"),r.a.createElement(o.a,{classes:{root:u.textfield}},"[home ~/]> free")),canNext:!1},[A.f.TerminalRunScript]:{content:r.a.createElement(r.a.Fragment,null,r.a.createElement(o.a,null,"We have 8GB of free RAM on this machine, which is enough to run our script. Let's run our script using"),r.a.createElement(o.a,{classes:{root:u.textfield}},"[home ~/]> run "+E)),canNext:!1},[A.f.TerminalGoToActiveScriptsPage]:{content:r.a.createElement(r.a.Fragment,null,r.a.createElement(o.a,null,"Your script is now running! It will continuously run in the background and will automatically stop if the code ever completes (the ",E," will never complete because it runs an infinite loop). ",r.a.createElement("br",null),r.a.createElement("br",null),"These scripts can passively earn you income and hacking experience. Your scripts will also earn money and experience while you are offline, although at a slightly slower rate. ",r.a.createElement("br",null),r.a.createElement("br",null),"Let's check out some statistics for our running scripts by clicking"," "),r.a.createElement(g.a,null,r.a.createElement(x.a,{color:"error"}),r.a.createElement(o.a,{color:"error"},"Active Scripts"))),canNext:!1},[A.f.ActiveScriptsPage]:{content:r.a.createElement(r.a.Fragment,null,r.a.createElement(o.a,null,"This page displays information about all of your scripts that are running across every server. You can use this to gauge how well your scripts are doing. Let's go back to"),r.a.createElement(g.a,null,r.a.createElement(v.a,{color:"error"}),r.a.createElement(o.a,{color:"error"},"Terminal"))),canNext:!1},[A.f.ActiveScriptsToTerminal]:{content:r.a.createElement(r.a.Fragment,null,r.a.createElement(o.a,null,"One last thing about scripts, each active script contains logs that detail what it's doing. We can check these logs using the tail command. Do that now for the script we just ran by typing"," "),r.a.createElement(o.a,{classes:{root:u.textfield}},"[home ~/]> tail "+E)),canNext:!1},[A.f.TerminalTailScript]:{content:r.a.createElement(r.a.Fragment,null,r.a.createElement(o.a,null,"The log for this script won't show much right now (it might show nothing at all) because it just started running...but check back again in a few minutes! ",r.a.createElement("br",null),r.a.createElement("br",null),"This covers the basics of hacking. To learn more about writing scripts, select"),r.a.createElement(g.a,null,r.a.createElement(w.a,{color:"primary"}),r.a.createElement(o.a,{color:"primary"},"Tutorial")),r.a.createElement(o.a,null,"in the main navigation menu to look at the documentation.",r.a.createElement("br",null),r.a.createElement("br",null),"For now, let's move on to something else!")),canNext:!0},[A.f.GoToHacknetNodesPage]:{content:r.a.createElement(r.a.Fragment,null,r.a.createElement(o.a,null,"Hacking is not the only way to earn money. One other way to passively earn money is by purchasing and upgrading Hacknet Nodes. Let's go to"),r.a.createElement(g.a,null,r.a.createElement(S.a,{color:"error"}),r.a.createElement(o.a,{color:"error"},"Hacknet")),r.a.createElement(o.a,null,"through the main navigation menu now.")),canNext:!0},[A.f.HacknetNodesIntroduction]:{content:r.a.createElement(o.a,null,"Here you can purchase new Hacknet Nodes and upgrade your existing ones. Let's purchase a new one now."),canNext:!0},[A.f.HacknetNodesGoToWorldPage]:{content:r.a.createElement(r.a.Fragment,null,r.a.createElement(o.a,null,"You just purchased a Hacknet Node! This Hacknet Node will passively earn you money over time, both online and offline. When you get enough money, you can upgrade your newly-purchased Hacknet Node below.",r.a.createElement("br",null),r.a.createElement("br",null),"Let's go to"),r.a.createElement(g.a,null,r.a.createElement(O.a,{color:"error"}),r.a.createElement(o.a,{color:"error"},"City"))),canNext:!0},[A.f.WorldDescription]:{content:r.a.createElement(r.a.Fragment,null,r.a.createElement(o.a,null,"This page lists all of the different locations you can currently travel to. Each location has something that you can do. There's a lot of content out in the world, make sure you explore and discover!",r.a.createElement("br",null),r.a.createElement("br",null),"Lastly, click on"),r.a.createElement(g.a,null,r.a.createElement(w.a,{color:"error"}),r.a.createElement(o.a,{color:"error"},"Tutorial"))),canNext:!0},[A.f.TutorialPageInfo]:{content:r.a.createElement(o.a,null,"This page contains a lot of different documentation about the game's content and mechanics. I know it's a lot, but I highly suggest you read (or at least skim) through this before you start playing . That's the end of the tutorial. Hope you enjoy the game!"),canNext:!0},[A.f.End]:{content:r.a.createElement(o.a,null),canNext:!0}},_=Object(a.useState)(!1)[1];function C(){_(e=>!e)}Object(a.useEffect)(()=>h.a.subscribe(C),[]);const L=A.a.currStep,M=k[L];if(void 0===M)throw new Error("error in the tutorial");return r.a.createElement(r.a.Fragment,null,r.a.createElement(R.a,{open:e,onClose:()=>t(!1)}),r.a.createElement(i.a,{square:!0,sx:{maxWidth:"70vw",p:2}},M.content,L!==A.f.TutorialPageInfo&&r.a.createElement(r.a.Fragment,null,L!==A.f.Start&&r.a.createElement(s.a,{onClick:A.d,"aria-label":"previous"},r.a.createElement(m.a,null)),M.canNext&&r.a.createElement(s.a,{onClick:A.c,"aria-label":"next"},r.a.createElement(f.a,null))),r.a.createElement("br",null),r.a.createElement("br",null),r.a.createElement(l.a,{onClick:A.b},L!==A.f.TutorialPageInfo?"SKIP TUTORIAL":"FINISH TUTORIAL")))}!function(e){e[e.None=0]="None",e[e.NS1=1]="NS1",e[e.NS2=2]="NS2"}(P||(P={}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var a=n(542),r=n(513),i=n(218),o=n(1),s=n(0),l=n.n(s),c=n(37);function f(e){const[t,n]=l.a.useState(0);return l.a.createElement(c.a,{open:e.open,onClose:e.onClose,sx:{zIndex:999999}},l.a.createElement(r.a,{variant:"fullWidth",value:t,onChange:function(e,t){n(t)}},l.a.createElement(i.a,{label:"NS1"}),l.a.createElement(i.a,{label:"NS2"})),0===t&&l.a.createElement(l.a.Fragment,null,l.a.createElement(o.a,null,"These scripts end with '.script'. Using a very old interpreted version of javascript. It is perfect for beginner to programming."),l.a.createElement(o.a,null,"Example script using NS1:"),l.a.createElement(a.a,{loading:l.a.createElement(l.a.Fragment,null),defaultLanguage:"javascript",defaultValue:"while(true) {\n hack('n00dles');\n}",height:"300px",theme:"vs-dark",onMount:function(e){e.updateOptions({readOnly:!0})},options:{fontSize:30}})),1===t&&l.a.createElement(l.a.Fragment,null,l.a.createElement(o.a,null,"These scripts end with '.js'. Scripts using ns2 are running natively along the game. If you know any programming language you should be using this. However if you're unfamiliar with javascript Promises you might want to read up on them a little bit before diving in."),l.a.createElement(o.a,null,"Example script using NS2:"),l.a.createElement(a.a,{loading:l.a.createElement(l.a.Fragment,null),defaultLanguage:"javascript",defaultValue:"/** @param {NS} ns */\nexport async function main(ns) {\n\twhile(true) {\n\t\tawait ns.hack('n00dles');\n\t}\n}",height:"300px",theme:"vs-dark",options:{fontSize:30}})))}},,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return x}));var a=n(0),r=n.n(a),i=n(463),o=n.n(i),s=n(118),l=n(280),c=n(43),f=n(1099),u=n.n(f),m=n(1098),h=n.n(m),d=n(421),p=n.n(d),g=n(1100),y=n.n(g),b=n(28),E=n(26),v=n(5),k=n(18),w=n(1),_=n(8),S=n(113);const C=Object(s.a)({overviewContainer:{position:"fixed",top:0,right:0,zIndex:1500,display:"flex",justifyContent:"flex-end",flexDirection:"column"},header:{cursor:"grab",textAlign:"center",display:"flex",flexDirection:"row",alignItems:"center"},visibilityToggle:{padding:"2px",minWidth:"inherit",backgroundColor:"transparent",border:"none","&:hover":{backgroundColor:"rgba(255, 255, 255, 0.1)"}},collapse:{borderTop:"1px solid "+v.a.theme.welllight,margin:"0 auto"},icon:{fontSize:"24px"}});function x({children:e,mode:t}){const n=Object(a.useRef)(null),[i,s]=Object(a.useState)(v.a.overview.opened),[f,m]=Object(a.useState)(v.a.overview.x),[d,g]=Object(a.useState)(v.a.overview.y),x=C(),L=b.b.Router(),O=i?h.a:u.a,M="tutorial"===t?y.a:p.a,T="tutorial"===t?"Tutorial":"Overview";Object(a.useEffect)(()=>{v.a.overview={x:f,y:d,opened:i}},[i,f,d]),Object(a.useEffect)(()=>A(),[]),Object(a.useEffect)(()=>(window.addEventListener("resize",A),()=>{window.removeEventListener("resize",A)}),[]);const A=Object(S.debounce)(()=>{const e=null==n?void 0:n.current;e&&(R(e,"mouseover"),R(e,"mousedown"),R(document,"mousemove"),R(e,"mouseup"),R(e,"click"))},100),R=(e,t)=>{const n=document.createEvent("MouseEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)};return L.page()===E.a.BitVerse||L.page()===E.a.Loading||L.page()===E.a.Recovery?r.a.createElement(r.a.Fragment,null):r.a.createElement(o.a,{handle:".drag",bounds:"body",onStop:(e,t)=>{m(t.x),g(t.y)},defaultPosition:{x:f,y:d}},r.a.createElement(c.a,{className:x.overviewContainer,square:!0},r.a.createElement(k.a,{className:"drag",onDoubleClick:()=>s(e=>!e),ref:n},r.a.createElement(k.a,{className:x.header},r.a.createElement(M,{color:"secondary",className:x.icon,sx:{padding:"2px"}}),r.a.createElement(w.a,{flexGrow:1,color:"secondary"},T),r.a.createElement(_.a,{"aria-label":"expand or collapse character overview",variant:"text",size:"small",className:x.visibilityToggle},r.a.createElement(O,{className:x.icon,color:"secondary",onClick:()=>s(e=>!e),onTouchEnd:()=>s(e=>!e)})))),r.a.createElement(l.a,{in:i,className:x.collapse},e)))}},,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return De}));var a=n(0),r=n.n(a),i=n(25),o=n(13),s=n(17),l=n(142),c=n(118),f=n(1798),u=n(251),m=n(706),h=n(19),d=n(1106),p=n.n(d),g=n(1105),y=n.n(g),b=n(96),E=n(146),v=n(114),k=n(1),w=n(280),_=n(817),S=n(1107),C=n.n(S),x=n(357),L=n.n(x),O=n(1108),M=n.n(O),T=n(616),A=n.n(T),R=n(1109),N=n.n(R),P=n(421),I=n.n(P),F=n(1112),D=n.n(F),j=n(619),B=n.n(j),G=n(617),W=n.n(G),H=n(1113),U=n.n(H),q=n(618),$=n.n(q),K=n(1115),z=n.n(K),V=n(1116),Y=n.n(V),J=n(1117),X=n.n(J),Q=n(1118),Z=n.n(Q),ee=n(1119),te=n.n(ee),ne=n(1120),ae=n.n(ne),re=n(332),ie=n.n(re),oe=n(304),se=n.n(oe),le=n(620),ce=n.n(le),fe=n(1110),ue=n.n(fe),me=n(1122),he=n.n(me),de=n(1111),pe=n.n(de),ge=n(1114),ye=n.n(ge),be=n(1121),Ee=n.n(be),ve=n(211),ke=n.n(ve),we=n(80),_e=n.n(we),Se=n(26),Ce=n(12),xe=n(42),Le=n(1102),Oe=n(5),Me=n(11),Te=n(422),Ae=n(423),Re=n(257);const Ne=e=>({width:e.spacing(31),transition:e.transitions.create("width",{easing:e.transitions.easing.sharp,duration:e.transitions.duration.enteringScreen}),overflowX:"hidden"}),Pe=e=>({transition:e.transitions.create("width",{easing:e.transitions.easing.sharp,duration:e.transitions.duration.leavingScreen}),overflowX:"hidden",width:`calc(${e.spacing(2)} + 1px)`,[e.breakpoints.up("sm")]:{width:`calc(${e.spacing(7)} + 1px)`}}),Ie=Object(s.a)(f.a,{shouldForwardProp:e=>"open"!==e})(({theme:e,open:t})=>({width:e.spacing(31),whiteSpace:"nowrap",boxSizing:"border-box",...t&&{...Ne(e),"& .MuiDrawer-paper":Ne(e)},...!t&&{...Pe(e),"& .MuiDrawer-paper":Pe(e)}})),Fe=Object(c.a)(e=>Object(l.a)({active:{borderLeft:"3px solid "+e.palette.primary.main},listitem:{}}));function De(e){const t=Object(a.useState)(!1)[1];function n(){t(e=>!e)}Object(a.useEffect)(()=>{const e=setInterval(n,200);return()=>clearInterval(e)},[]);const[s,l]=Object(a.useState)(!0),[c,f]=Object(a.useState)(!0),[d,g]=Object(a.useState)(!0),[S,x]=Object(a.useState)(!0),O=xe.a.currStep===xe.f.CharacterGoToTerminalPage||xe.a.currStep===xe.f.ActiveScriptsPage,T=xe.a.currStep===xe.f.GoToCharacterPage,R=xe.a.currStep===xe.f.TerminalGoToActiveScriptsPage,P=xe.a.currStep===xe.f.GoToHacknetNodesPage,F=xe.a.currStep===xe.f.HacknetNodesGoToWorldPage,j=xe.a.currStep===xe.f.WorldDescription,G=e.player.queuedAugmentations.length,H=e.player.factionInvitations.filter(e=>!Ae.b.includes(e)).length,q=Object(Le.a)(e.player).length-Te.b.length,K=e.player.factionInvitations.length>0||e.player.factions.length>0||e.player.augmentations.length>0||e.player.queuedAugmentations.length>0||e.player.sourceFiles.length>0,V=e.player.augmentations.length>0||e.player.queuedAugmentations.length>0||e.player.sourceFiles.length>0,J=e.player.sleeves.length>0,Q=!!e.player.corporation,ee=!!e.player.gang,ne=""!==e.player.companyName,re=e.player.hasWseAccount,oe=!!e.player.bladeburner,le=e.player.augmentations.some(e=>e.name===Me.a.StaneksGift1);function fe(){e.router.toTerminal(),O&&Object(xe.c)()}function me(){e.router.toScriptEditor()}function de(){e.router.toStats(),T&&Object(xe.c)()}function ge(){e.router.toActiveScripts(),R&&Object(xe.c)()}function be(){e.router.toCreateProgram()}function ve(){e.router.toFactions()}function we(){e.router.toAugmentations()}function Ne(){e.router.toHacknetNodes(),P&&Object(xe.c)()}function Pe(){e.router.toCity(),F&&Object(xe.c)()}function De(){e.router.toTravel()}function je(){e.router.toJob()}function Be(){e.router.toBladeburner()}function Ge(){e.router.toGang()}function We(){e.router.toTutorial(),j&&Object(xe.c)()}function He(){e.router.toGameOptions()}Object(a.useEffect)(()=>{function t(t){if(!Oe.a.DisableHotkeys&&!(e.player.currentWork&&e.player.focus||e.router.page()===Se.a.BitVerse))if(t.code===i.b.T&&t.altKey)t.preventDefault(),fe();else if(t.code===i.b.C&&t.altKey)t.preventDefault(),de();else if(t.code===i.b.E&&t.altKey)t.preventDefault(),me();else if(t.code===i.b.S&&t.altKey)t.preventDefault(),ge();else if(t.code===i.b.H&&t.altKey)t.preventDefault(),Ne();else if(t.code===i.b.W&&t.altKey)t.preventDefault(),Pe();else if(t.code===i.b.J&&t.altKey&&!t.ctrlKey&&!t.metaKey&&ne)t.preventDefault(),je();else if(t.code===i.b.R&&t.altKey)t.preventDefault(),De();else if(t.code===i.b.P&&t.altKey)t.preventDefault(),be();else if(t.code===i.b.F&&t.altKey){if(e.page==Se.a.Terminal&&Oe.a.EnableBashHotkeys)return;t.preventDefault(),ve()}else t.code===i.b.A&&t.altKey?(t.preventDefault(),we()):t.code===i.b.U&&t.altKey?(t.preventDefault(),We()):t.code===i.b.O&&t.altKey?(t.preventDefault(),He()):t.code===i.b.B&&t.altKey&&e.player.bladeburner?(t.preventDefault(),Be()):t.code===i.b.G&&t.altKey&&e.player.gang&&(t.preventDefault(),Ge())}return document.addEventListener("keydown",t),()=>document.removeEventListener("keydown",t)},[]);const Ue=Fe(),[qe,$e]=Object(a.useState)(e.opened);return Object(a.useEffect)(()=>{e.onToggled(qe)},[qe]),r.a.createElement(Ie,{open:qe,anchor:"left",variant:"permanent"},r.a.createElement(b.a,{classes:{root:Ue.listitem},button:!0,onClick:()=>$e(e=>!e)},r.a.createElement(E.a,null,qe?r.a.createElement(p.a,{color:"primary"}):r.a.createElement(y.a,{color:"primary"})),r.a.createElement(v.a,{primary:r.a.createElement(h.a,{title:Object(Re.a)()},r.a.createElement(k.a,null,"Bitburner v",Ce.a.VersionString))})),r.a.createElement(m.a,null),r.a.createElement(u.a,null,r.a.createElement(b.a,{classes:{root:Ue.listitem},button:!0,onClick:()=>l(e=>!e)},r.a.createElement(E.a,null,r.a.createElement(h.a,{title:qe?"":"Hacking"},r.a.createElement(C.a,{color:"primary"}))),r.a.createElement(v.a,{primary:r.a.createElement(k.a,null,"Hacking")}),s?r.a.createElement(ke.a,{color:"primary"}):r.a.createElement(_e.a,{color:"primary"})),r.a.createElement(w.a,{in:s,timeout:"auto",unmountOnExit:!0},r.a.createElement(u.a,null,r.a.createElement(b.a,{classes:{root:Ue.listitem},button:!0,key:"Terminal",className:Object(o.default)({[Ue.active]:e.page===Se.a.Terminal}),onClick:fe},r.a.createElement(E.a,null,r.a.createElement(h.a,{title:qe?"":"Terminal"},r.a.createElement(L.a,{color:O?"error":e.page!==Se.a.Terminal?"secondary":"primary"}))),r.a.createElement(v.a,null,r.a.createElement(k.a,{color:O?"error":e.page!==Se.a.Terminal?"secondary":"primary"},"Terminal"))),r.a.createElement(b.a,{classes:{root:Ue.listitem},button:!0,key:"Script Editor",className:Object(o.default)({[Ue.active]:e.page===Se.a.ScriptEditor}),onClick:me},r.a.createElement(E.a,null,r.a.createElement(h.a,{title:qe?"":"Script Editor"},r.a.createElement(M.a,{color:e.page!==Se.a.ScriptEditor?"secondary":"primary"}))),r.a.createElement(v.a,null,r.a.createElement(k.a,{color:e.page!==Se.a.ScriptEditor?"secondary":"primary"},"Script Editor"))),r.a.createElement(b.a,{classes:{root:Ue.listitem},button:!0,key:"Active Scripts",className:Object(o.default)({[Ue.active]:e.page===Se.a.ActiveScripts}),onClick:ge},r.a.createElement(E.a,null,r.a.createElement(h.a,{title:qe?"":"Active Scripts"},r.a.createElement(A.a,{color:R?"error":e.page!==Se.a.ActiveScripts?"secondary":"primary"}))),r.a.createElement(v.a,null,r.a.createElement(k.a,{color:R?"error":e.page!==Se.a.ActiveScripts?"secondary":"primary"},"Active Scripts"))),r.a.createElement(b.a,{button:!0,key:"Create Program",className:Object(o.default)({[Ue.active]:e.page===Se.a.CreateProgram}),onClick:be},r.a.createElement(E.a,null,r.a.createElement(_.a,{badgeContent:q>0?q:void 0,color:"error"},r.a.createElement(h.a,{title:qe?"":"Create Program"},r.a.createElement(N.a,{color:e.page!==Se.a.CreateProgram?"secondary":"primary"})))),r.a.createElement(v.a,null,r.a.createElement(k.a,{color:e.page!==Se.a.CreateProgram?"secondary":"primary"},"Create Program"))),le&&r.a.createElement(b.a,{button:!0,key:"Staneks Gift",className:Object(o.default)({[Ue.active]:e.page===Se.a.StaneksGift}),onClick:function(){e.router.toStaneksGift()}},r.a.createElement(E.a,null,r.a.createElement(h.a,{title:qe?"":"Stanek's Gift"},r.a.createElement(ue.a,{color:e.page!==Se.a.StaneksGift?"secondary":"primary"}))),r.a.createElement(v.a,null,r.a.createElement(k.a,{color:e.page!==Se.a.StaneksGift?"secondary":"primary"},"Stanek's Gift"))))),r.a.createElement(m.a,null),r.a.createElement(b.a,{classes:{root:Ue.listitem},button:!0,onClick:()=>f(e=>!e)},r.a.createElement(E.a,null,r.a.createElement(h.a,{title:qe?"":"Character"},r.a.createElement(pe.a,{color:"primary"}))),r.a.createElement(v.a,{primary:r.a.createElement(k.a,null,"Character")}),c?r.a.createElement(ke.a,{color:"primary"}):r.a.createElement(_e.a,{color:"primary"})),r.a.createElement(w.a,{in:c,timeout:"auto",unmountOnExit:!0},r.a.createElement(b.a,{button:!0,key:"Stats",className:Object(o.default)({[Ue.active]:e.page===Se.a.Stats}),onClick:de},r.a.createElement(E.a,null,r.a.createElement(h.a,{title:qe?"":"Stats"},r.a.createElement(I.a,{color:T?"error":e.page!==Se.a.Stats?"secondary":"primary"}))),r.a.createElement(v.a,null,r.a.createElement(k.a,{color:T?"error":e.page!==Se.a.Stats?"secondary":"primary"},"Stats"))),K&&r.a.createElement(b.a,{classes:{root:Ue.listitem},button:!0,key:"Factions",className:Object(o.default)({[Ue.active]:[Se.a.Factions,Se.a.Faction].includes(e.page)}),onClick:ve},r.a.createElement(E.a,null,r.a.createElement(_.a,{badgeContent:0!==H?H:void 0,color:"error"},r.a.createElement(h.a,{title:qe?"":"Factions"},r.a.createElement(D.a,{color:[Se.a.Factions,Se.a.Faction].includes(e.page)?"primary":"secondary"})))),r.a.createElement(v.a,null,r.a.createElement(k.a,{color:[Se.a.Factions,Se.a.Faction].includes(e.page)?"primary":"secondary"},"Factions"))),V&&r.a.createElement(b.a,{classes:{root:Ue.listitem},button:!0,key:"Augmentations",className:Object(o.default)({[Ue.active]:e.page===Se.a.Augmentations}),onClick:we},r.a.createElement(E.a,null,r.a.createElement(_.a,{badgeContent:0!==G?G:void 0,color:"error"},r.a.createElement(h.a,{title:qe?"":"Augmentations"},r.a.createElement(B.a,{style:{transform:"rotate(-90deg)"},color:e.page!==Se.a.Augmentations?"secondary":"primary"})))),r.a.createElement(v.a,null,r.a.createElement(k.a,{color:e.page!==Se.a.Augmentations?"secondary":"primary"},"Augmentations"))),r.a.createElement(b.a,{button:!0,key:"Hacknet",className:Object(o.default)({[Ue.active]:e.page===Se.a.Hacknet}),onClick:Ne},r.a.createElement(E.a,null,r.a.createElement(h.a,{title:qe?"":"Hacknet"},r.a.createElement(W.a,{color:P?"error":e.page!==Se.a.Hacknet?"secondary":"primary"}))),r.a.createElement(v.a,null,r.a.createElement(k.a,{color:P?"error":e.page!==Se.a.Hacknet?"secondary":"primary"},"Hacknet"))),J&&r.a.createElement(b.a,{classes:{root:Ue.listitem},button:!0,key:"Sleeves",className:Object(o.default)({[Ue.active]:e.page===Se.a.Sleeves}),onClick:function(){e.router.toSleeves()}},r.a.createElement(E.a,null,r.a.createElement(h.a,{title:qe?"":"Sleeves"},r.a.createElement(U.a,{color:e.page!==Se.a.Sleeves?"secondary":"primary"}))),r.a.createElement(v.a,null,r.a.createElement(k.a,{color:e.page!==Se.a.Sleeves?"secondary":"primary"},"Sleeves")))),r.a.createElement(m.a,null),r.a.createElement(b.a,{classes:{root:Ue.listitem},button:!0,onClick:()=>g(e=>!e)},r.a.createElement(E.a,null,r.a.createElement(h.a,{title:qe?"":"World"},r.a.createElement(ye.a,{color:"primary"}))),r.a.createElement(v.a,{primary:r.a.createElement(k.a,null,"World")}),d?r.a.createElement(ke.a,{color:"primary"}):r.a.createElement(_e.a,{color:"primary"})),r.a.createElement(w.a,{in:d,timeout:"auto",unmountOnExit:!0},r.a.createElement(b.a,{button:!0,key:"City",className:Object(o.default)({[Ue.active]:e.page===Se.a.City||e.page===Se.a.Grafting||e.page===Se.a.Location}),onClick:Pe},r.a.createElement(E.a,null,r.a.createElement(h.a,{title:qe?"":"City"},r.a.createElement($.a,{color:F?"error":e.page!==Se.a.City?"secondary":"primary"}))),r.a.createElement(v.a,null,r.a.createElement(k.a,{color:F?"error":e.page!==Se.a.City?"secondary":"primary"},"City"))),r.a.createElement(b.a,{button:!0,key:"Travel",className:Object(o.default)({[Ue.active]:e.page===Se.a.Travel}),onClick:De},r.a.createElement(E.a,null,r.a.createElement(h.a,{title:qe?"":"Travel"},r.a.createElement(z.a,{color:e.page!==Se.a.Travel?"secondary":"primary"}))),r.a.createElement(v.a,null,r.a.createElement(k.a,{color:e.page!==Se.a.Travel?"secondary":"primary"},"Travel"))),ne&&r.a.createElement(b.a,{classes:{root:Ue.listitem},button:!0,key:"Job",className:Object(o.default)({[Ue.active]:e.page===Se.a.Job}),onClick:je},r.a.createElement(E.a,null,r.a.createElement(h.a,{title:qe?"":"Job"},r.a.createElement(Y.a,{color:e.page!==Se.a.Job?"secondary":"primary"}))),r.a.createElement(v.a,null,r.a.createElement(k.a,{color:e.page!==Se.a.Job?"secondary":"primary"},"Job"))),re&&r.a.createElement(b.a,{classes:{root:Ue.listitem},button:!0,key:"Stock Market",className:Object(o.default)({[Ue.active]:e.page===Se.a.StockMarket}),onClick:function(){e.router.toStockMarket()}},r.a.createElement(E.a,null,r.a.createElement(h.a,{title:qe?"":"Stock Market"},r.a.createElement(X.a,{color:e.page!==Se.a.StockMarket?"secondary":"primary"}))),r.a.createElement(v.a,null,r.a.createElement(k.a,{color:e.page!==Se.a.StockMarket?"secondary":"primary"},"Stock Market"))),oe&&r.a.createElement(b.a,{classes:{root:Ue.listitem},button:!0,key:"Bladeburner",className:Object(o.default)({[Ue.active]:e.page===Se.a.Bladeburner}),onClick:Be},r.a.createElement(E.a,null,r.a.createElement(h.a,{title:qe?"":"Bladeburner"},r.a.createElement(Z.a,{color:e.page!==Se.a.Bladeburner?"secondary":"primary"}))),r.a.createElement(v.a,null,r.a.createElement(k.a,{color:e.page!==Se.a.Bladeburner?"secondary":"primary"},"Bladeburner"))),Q&&r.a.createElement(b.a,{classes:{root:Ue.listitem},button:!0,key:"Corp",className:Object(o.default)({[Ue.active]:e.page===Se.a.Corporation}),onClick:function(){e.router.toCorporation()}},r.a.createElement(E.a,null,r.a.createElement(h.a,{title:qe?"":"Corp"},r.a.createElement(te.a,{color:e.page!==Se.a.Corporation?"secondary":"primary"}))),r.a.createElement(v.a,null,r.a.createElement(k.a,{color:e.page!==Se.a.Corporation?"secondary":"primary"},"Corp"))),ee&&r.a.createElement(b.a,{classes:{root:Ue.listitem},button:!0,key:"Gang",className:Object(o.default)({[Ue.active]:e.page===Se.a.Gang}),onClick:Ge},r.a.createElement(E.a,null,r.a.createElement(h.a,{title:qe?"":"Gang"},r.a.createElement(ae.a,{color:e.page!==Se.a.Gang?"secondary":"primary"}))),r.a.createElement(v.a,null,r.a.createElement(k.a,{color:e.page!==Se.a.Gang?"secondary":"primary"},"Gang")))),r.a.createElement(m.a,null),r.a.createElement(b.a,{classes:{root:Ue.listitem},button:!0,onClick:()=>x(e=>!e)},r.a.createElement(E.a,null,r.a.createElement(h.a,{title:qe?"":"Help"},r.a.createElement(Ee.a,{color:"primary"}))),r.a.createElement(v.a,{primary:r.a.createElement(k.a,null,"Help")}),S?r.a.createElement(ke.a,{color:"primary"}):r.a.createElement(_e.a,{color:"primary"})),r.a.createElement(w.a,{in:S,timeout:"auto",unmountOnExit:!0},r.a.createElement(b.a,{button:!0,key:"Milestones",className:Object(o.default)({[Ue.active]:e.page===Se.a.Milestones}),onClick:function(){e.router.toMilestones()}},r.a.createElement(E.a,null,r.a.createElement(h.a,{title:qe?"":"Milestones"},r.a.createElement(ie.a,{color:e.page!==Se.a.Milestones?"secondary":"primary"}))),r.a.createElement(v.a,null,r.a.createElement(k.a,{color:e.page!==Se.a.Milestones?"secondary":"primary"},"Milestones"))),r.a.createElement(b.a,{button:!0,key:"Tutorial",className:Object(o.default)({[Ue.active]:e.page===Se.a.Tutorial}),onClick:We},r.a.createElement(E.a,null,r.a.createElement(h.a,{title:qe?"":"Tutorial"},r.a.createElement(se.a,{color:j?"error":e.page!==Se.a.Tutorial?"secondary":"primary"}))),r.a.createElement(v.a,null,r.a.createElement(k.a,{color:j?"error":e.page!==Se.a.Tutorial?"secondary":"primary"},"Tutorial"))),r.a.createElement(b.a,{button:!0,key:"Achievements",className:Object(o.default)({[Ue.active]:e.page===Se.a.Achievements}),onClick:function(){e.router.toAchievements()}},r.a.createElement(E.a,null,r.a.createElement(h.a,{title:qe?"":"Achievements"},r.a.createElement(he.a,{color:e.page!==Se.a.Achievements?"secondary":"primary"}))),r.a.createElement(v.a,null,r.a.createElement(k.a,{color:e.page!==Se.a.Achievements?"secondary":"primary"},"Achievements"))),r.a.createElement(b.a,{button:!0,key:"Options",className:Object(o.default)({[Ue.active]:e.page===Se.a.Options}),onClick:He},r.a.createElement(E.a,null,r.a.createElement(h.a,{title:qe?"":"Options"},r.a.createElement(ce.a,{color:e.page!==Se.a.Options?"secondary":"primary"}))),r.a.createElement(v.a,null,r.a.createElement(k.a,{color:e.page!==Se.a.Options?"secondary":"primary"},"Options"))),!1)))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var a=n(60);function r(e){const t=[];for(const n of Object.keys(a.a)){const r=a.a[n].create;null!=r&&(e.hasProgram(a.a[n].name)||r.req(e)&&t.push(a.a[n]))}return t}},,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return x}));var a=n(0),r=n.n(a),i=n(1124),o=n(1125),s=n(1126),l=n(1127),c=n(356),f=n(28),u=n(1),m=n(8),h=n(19),d=n(18),p=n(43),g=n(252),y=n(5),b=n(255),E=n(11),v=n(73),k=n(12),w=n(24),_=n(705);const S=({player:e})=>{var t,n;const a=null!==(t=null===(n=e.augmentations.find(e=>e.name===E.a.NeuroFluxGovernor))||void 0===n?void 0:n.level)&&void 0!==t?t:0;return a>0?r.a.createElement(p.a,{sx:{p:1}},r.a.createElement(u.a,{variant:"h5",color:y.a.theme.info},"NeuroFlux Governor - Level ",a),r.a.createElement(u.a,{color:y.a.theme.info},v.a[E.a.NeuroFluxGovernor].stats)):r.a.createElement(r.a.Fragment,null)},C=({player:e})=>e.entropy>0?r.a.createElement(p.a,{sx:{p:1}},r.a.createElement(u.a,{variant:"h5",color:y.a.theme.error},"Entropy Virus - Level ",e.entropy),r.a.createElement(u.a,{color:y.a.theme.error},r.a.createElement("b",null,"All multipliers decreased by:")," ",Object(w.f)(100*(1-k.a.EntropyEffect**e.entropy),3),"% (multiplicative)")):r.a.createElement(r.a.Fragment,null);function x(e){var t,n;const[v,k]=Object(a.useState)(!1),w=f.b.Player(),x=Object(a.useState)(!1)[1];function L(){x(e=>!e)}return Object(a.useEffect)(()=>{const e=setInterval(L,200);return()=>clearInterval(e)},[]),r.a.createElement(g.a,{disableGutters:!0,maxWidth:"lg",sx:{mx:0}},r.a.createElement(u.a,{variant:"h4"},"Augmentations"),r.a.createElement(d.a,{sx:{mb:1}},r.a.createElement(p.a,{sx:{p:1}},r.a.createElement(u.a,{variant:"h5",color:"primary",sx:{display:"flex",alignItems:"center",flexWrap:"wrap"}},"Purchased Augmentations",r.a.createElement(h.a,{title:r.a.createElement(r.a.Fragment,null,r.a.createElement(u.a,null,"Below is a list of all Augmentations you have purchased but not yet installed. Click the button below to install them."),r.a.createElement(u.a,null,"WARNING: Installing your Augmentations resets most of your progress, including:"),r.a.createElement("br",null),r.a.createElement(u.a,null,"- Stats/Skill levels and Experience"),r.a.createElement(u.a,null,"- Money"),r.a.createElement(u.a,null,"- Scripts on every computer but your home computer"),r.a.createElement(u.a,null,"- Purchased servers"),r.a.createElement(u.a,null,"- Hacknet Nodes"),r.a.createElement(u.a,null,"- Faction/Company reputation"),r.a.createElement(u.a,null,"- Stocks"),r.a.createElement("br",null),r.a.createElement(u.a,null,"Installing Augmentations lets you start over with the perks and benefits granted by all of the Augmentations you have ever installed. Also, you will keep any scripts and RAM/Core upgrades on your home computer (but you will lose all programs besides NUKE.exe)"))},r.a.createElement(_.a,{sx:{ml:1,mb:.5},color:"info"}))),r.a.createElement(b.a,{open:v,onClose:()=>k(!1),onConfirm:e.installAugmentationsFn,confirmationText:r.a.createElement(r.a.Fragment,null,"Installing will reset",r.a.createElement("br",null),r.a.createElement("br",null),"- money",r.a.createElement("br",null),"- skill / experience",r.a.createElement("br",null),"- every server except home",r.a.createElement("br",null),"- factions and reputation",r.a.createElement("br",null),r.a.createElement("br",null),"You will keep:",r.a.createElement("br",null),r.a.createElement("br",null),"- All scripts on home",r.a.createElement("br",null),"- home ram and cores",r.a.createElement("br",null),r.a.createElement("br",null),"It is recommended to install several Augmentations at once. Preferably everything from any faction of your choosing.")}),r.a.createElement(d.a,{sx:{display:"grid",width:"100%",gridTemplateColumns:"1fr 1fr"}},r.a.createElement(h.a,{title:r.a.createElement(u.a,null,"'I never asked for this'")},r.a.createElement("span",null,r.a.createElement(m.a,{sx:{width:"100%"},disabled:0===w.queuedAugmentations.length,onClick:function(){y.a.SuppressBuyAugmentationConfirmation?e.installAugmentationsFn():k(!0)}},"Install Augmentations"))),r.a.createElement(h.a,{title:r.a.createElement(u.a,null,"It's always a good idea to backup/export your save!")},r.a.createElement(m.a,{sx:{width:"100%",color:y.a.theme.successlight},onClick:function(){e.exportGameFn(),L()}},"Backup Save ",Object(c.b)()?"(+1 favor to all factions)":"")))),w.queuedAugmentations.length>0?r.a.createElement(d.a,{sx:{display:"grid",gridTemplateColumns:"1fr 3fr"}},r.a.createElement(s.a,null),r.a.createElement(o.a,null)):r.a.createElement(p.a,{sx:{p:1}},r.a.createElement(u.a,null,"No Augmentations have been purchased yet"))),r.a.createElement(d.a,{sx:{my:1,display:"grid",gridTemplateColumns:`repeat(${+!!((null!==(t=null===(n=w.augmentations.find(e=>e.name===E.a.NeuroFluxGovernor))||void 0===n?void 0:n.level)&&void 0!==t?t:0)>0)+ +!!(w.entropy>0)}, 1fr)`,gap:1}},r.a.createElement(S,{player:w}),r.a.createElement(C,{player:w})),r.a.createElement(d.a,null,r.a.createElement(i.a,null)),r.a.createElement(l.a,null))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return y}));var a=n(18),r=n(43),i=n(1),o=n(363),s=n(8),l=n(251),c=n(19),f=n(0),u=n.n(f),m=n(175),h=n(5),d=n(28),p=n(73),g=n(11);function y(){const e=Object(f.useState)(!0)[1],t=d.b.Player().augmentations.slice().filter(e=>e.name!==g.a.NeuroFluxGovernor),[n,y]=Object(f.useState)(t[0]);function b(){e(e=>!e)}return h.a.OwnedAugmentationsOrder===m.a.Alphabetically&&t.sort((e,t)=>e.name.localeCompare(t.name)),u.a.createElement(a.a,{sx:{width:"100%"}},u.a.createElement(r.a,{sx:{p:1}},u.a.createElement(i.a,{variant:"h5"},"Installed Augmentations"),u.a.createElement(a.a,{sx:{display:"grid",gridTemplateColumns:"1fr 1fr"}},u.a.createElement(c.a,{title:"Sorts the Augmentations alphabetically in numeral order"},u.a.createElement(s.a,{sx:{width:"100%"},onClick:function(){h.a.OwnedAugmentationsOrder=m.a.Alphabetically,b()}},"Sort in Order")),u.a.createElement(c.a,{title:"Sorts the Augmentations based on when you acquired them (same as default)"},u.a.createElement(s.a,{sx:{width:"100%"},onClick:function(){h.a.OwnedAugmentationsOrder=m.a.AcquirementTime,b()}},"Sort by Time of Acquirement")))),t.length>0?u.a.createElement(r.a,{sx:{display:"grid",gridTemplateColumns:"1fr 3fr"}},u.a.createElement(a.a,null,u.a.createElement(l.a,{sx:{height:400,overflowY:"scroll",borderRight:"1px solid "+h.a.theme.welllight}},t.map((e,t)=>u.a.createElement(o.a,{key:t+1,onClick:()=>y(e),selected:n===e},u.a.createElement(i.a,null,e.name))))),u.a.createElement(a.a,{sx:{m:1}},u.a.createElement(i.a,{variant:"h6",sx:{display:"flex",alignItems:"center",flexWrap:"wrap"}},n.name),u.a.createElement(i.a,{sx:{maxHeight:350,overflowY:"scroll"}},(()=>{const e=p.a[n.name],t="string"==typeof e.info?u.a.createElement("span",null,e.info):e.info;return u.a.createElement(u.a.Fragment,null,t,u.a.createElement("br",null),u.a.createElement("br",null),e.stats)})()))):u.a.createElement(r.a,{sx:{p:1}},u.a.createElement(i.a,null,"No Augmentations have been installed yet")))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return b}));var a=n(1800),r=n(1),i=n(96),o=n(114),s=n(251),l=n(43),c=n(0),f=n(240),u=n(21),m=n(2),h=n(5),d=n(6),p=n(73);function g(e){return 1===e.mult||0===m.a.sourceFileLvl(5)?c.createElement(r.a,{color:e.color},d.a.formatPercentage(e.base)):c.createElement(r.a,{color:e.color},c.createElement("span",{style:{opacity:.5}},d.a.formatPercentage(e.base))," ",d.a.formatPercentage(e.base*e.mult))}function y(e){const t=e.rows.map(e=>{const{mult:t,current:n,augmented:s,bnMult:l=1,color:f=h.a.theme.primary}=e;if(!isNaN(s))return c.createElement(i.a,{key:t,disableGutters:!0,sx:{py:0}},c.createElement(o.a,{sx:{my:.1},primary:c.createElement(r.a,{color:f},c.createElement("b",null,t)),secondary:c.createElement("span",{style:{display:"flex",alignItems:"center",flexWrap:"wrap"}},c.createElement(g,{base:n,mult:l,color:f}),c.createElement(a.a,{fontSize:"small",color:"success",sx:{mb:.5,mx:1}}),c.createElement(g,{base:s,mult:l,color:h.a.theme.success})),disableTypography:!0}))}).filter(e=>void 0!==e);return t.length>0?c.createElement(s.a,{disablePadding:!0},t):c.createElement(c.Fragment,null)}function b(){const e=function(){let e=Object(f.a)();for(const t of m.a.queuedAugmentations){const n=p.a[t.name];e=Object(f.b)(e,n.mults)}return e}(),t=[...[{mult:"Hacking Chance",current:m.a.mults.hacking_chance,augmented:m.a.mults.hacking_chance*e.hacking_chance},{mult:"Hacking Speed",current:m.a.mults.hacking_speed,augmented:m.a.mults.hacking_speed*e.hacking_speed},{mult:"Hacking Money",current:m.a.mults.hacking_money,augmented:m.a.mults.hacking_money*e.hacking_money,bnMult:u.a.ScriptHackMoney},{mult:"Hacking Growth",current:m.a.mults.hacking_grow,augmented:m.a.mults.hacking_grow*e.hacking_grow},{mult:"Hacking Level",current:m.a.mults.hacking,augmented:m.a.mults.hacking*e.hacking,bnMult:u.a.HackingLevelMultiplier},{mult:"Hacking Experience",current:m.a.mults.hacking_exp,augmented:m.a.mults.hacking_exp*e.hacking_exp,bnMult:u.a.HackExpGain}].map(e=>Object.defineProperty(e,"color",{value:h.a.theme.hack})),...[{mult:"Strength Level",current:m.a.mults.strength,augmented:m.a.mults.strength*e.strength,bnMult:u.a.StrengthLevelMultiplier},{mult:"Strength Experience",current:m.a.mults.strength_exp,augmented:m.a.mults.strength_exp*e.strength_exp},{mult:"Defense Level",current:m.a.mults.defense,augmented:m.a.mults.defense*e.defense,bnMult:u.a.DefenseLevelMultiplier},{mult:"Defense Experience",current:m.a.mults.defense_exp,augmented:m.a.mults.defense_exp*e.defense_exp},{mult:"Dexterity Level",current:m.a.mults.dexterity,augmented:m.a.mults.dexterity*e.dexterity,bnMult:u.a.DexterityLevelMultiplier},{mult:"Dexterity Experience",current:m.a.mults.dexterity_exp,augmented:m.a.mults.dexterity_exp*e.dexterity_exp},{mult:"Agility Level",current:m.a.mults.agility,augmented:m.a.mults.agility*e.agility,bnMult:u.a.AgilityLevelMultiplier},{mult:"Agility Experience",current:m.a.mults.agility_exp,augmented:m.a.mults.agility_exp*e.agility_exp}].map(e=>Object.defineProperty(e,"color",{value:h.a.theme.combat})),{mult:"Charisma Level",current:m.a.mults.charisma,augmented:m.a.mults.charisma*e.charisma,bnMult:u.a.CharismaLevelMultiplier,color:h.a.theme.cha},{mult:"Charisma Experience",current:m.a.mults.charisma_exp,augmented:m.a.mults.charisma_exp*e.charisma_exp,color:h.a.theme.cha}],n=[{mult:"Hacknet Node Production",current:m.a.mults.hacknet_node_money,augmented:m.a.mults.hacknet_node_money*e.hacknet_node_money,bnMult:u.a.HacknetNodeMoney},{mult:"Hacknet Node Purchase Cost",current:m.a.mults.hacknet_node_purchase_cost,augmented:m.a.mults.hacknet_node_purchase_cost*e.hacknet_node_purchase_cost},{mult:"Hacknet Node RAM Upgrade Cost",current:m.a.mults.hacknet_node_ram_cost,augmented:m.a.mults.hacknet_node_ram_cost*e.hacknet_node_ram_cost},{mult:"Hacknet Node Core Purchase Cost",current:m.a.mults.hacknet_node_core_cost,augmented:m.a.mults.hacknet_node_core_cost*e.hacknet_node_core_cost},{mult:"Hacknet Node Level Upgrade Cost",current:m.a.mults.hacknet_node_level_cost,augmented:m.a.mults.hacknet_node_level_cost*e.hacknet_node_level_cost},{mult:"Company Reputation Gain",current:m.a.mults.company_rep,augmented:m.a.mults.company_rep*e.company_rep},{mult:"Faction Reputation Gain",current:m.a.mults.faction_rep,augmented:m.a.mults.faction_rep*e.faction_rep,bnMult:u.a.FactionWorkRepGain},{mult:"Salary",current:m.a.mults.work_money,augmented:m.a.mults.work_money*e.work_money,bnMult:u.a.CompanyWorkMoney,color:h.a.theme.money},{mult:"Crime Success Chance",current:m.a.mults.crime_success,augmented:m.a.mults.crime_success*e.crime_success,color:h.a.theme.combat},{mult:"Crime Money",current:m.a.mults.crime_money,augmented:m.a.mults.crime_money*e.crime_money,bnMult:u.a.CrimeMoney,color:h.a.theme.money}];return m.a.canAccessBladeburner()&&n.push({mult:"Bladeburner Success Chance",current:m.a.mults.bladeburner_success_chance,augmented:m.a.mults.bladeburner_success_chance*e.bladeburner_success_chance},{mult:"Bladeburner Max Stamina",current:m.a.mults.bladeburner_max_stamina,augmented:m.a.mults.bladeburner_max_stamina*e.bladeburner_max_stamina},{mult:"Bladeburner Stamina Gain",current:m.a.mults.bladeburner_stamina_gain,augmented:m.a.mults.bladeburner_stamina_gain*e.bladeburner_stamina_gain},{mult:"Bladeburner Field Analysis",current:m.a.mults.bladeburner_analysis,augmented:m.a.mults.bladeburner_analysis*e.bladeburner_analysis}),c.createElement(l.a,{sx:{p:1,maxHeight:400,overflowY:"scroll",display:"flex",flexDirection:"column",flexWrap:"wrap",gap:1}},c.createElement(y,{rows:t}),c.createElement(y,{rows:n}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var a=n(19),r=n(1),i=n(114),o=n(43),s=n(251),l=n(0),c=n(2),f=n(73),u=n(11);function m(){const e=[];let t=-1;for(let e=c.a.queuedAugmentations.length-1;e>=0;e--)if(c.a.queuedAugmentations[e].name===u.a.NeuroFluxGovernor){t=e;break}for(let n=0;n<c.a.queuedAugmentations.length;n++){const o=c.a.queuedAugmentations[n];let s=o.name;if(o.name===u.a.NeuroFluxGovernor&&n!==t)continue;const m=f.a[o.name];let h=null;o.name===u.a.NeuroFluxGovernor&&(h=o.level,s+=" - Level "+h),e.push(l.createElement(a.a,{title:l.createElement(r.a,null,(()=>{const e="string"==typeof m.info?l.createElement("span",null,m.info):m.info;return l.createElement(l.Fragment,null,e,l.createElement("br",null),l.createElement("br",null),m.stats)})()),enterNextDelay:500,key:s},l.createElement(i.a,{sx:{px:2,py:1},primary:s})))}return l.createElement(o.a,{sx:{py:1,maxHeight:400,overflowY:"scroll"}},l.createElement(s.a,{sx:{height:400,overflowY:"scroll"},disablePadding:!0},e))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return b}));var a=n(43),r=n(363),i=n(114),o=n(18),s=n(251),l=n(1),c=n(0),f=n.n(c),u=n(109),m=n(2),h=n(175),d=n(5),p=n(378);const g=e=>{if(-1===e){return{info:f.a.createElement(f.a.Fragment,null,"This Source-File can only be acquired with obscure knowledge of the game, javascript, and the web ecosystem.",f.a.createElement("br",null),f.a.createElement("br",null),"It increases all of the player's multipliers by 0.1%",f.a.createElement("br",null),f.a.createElement("br",null),"You have found the following exploits:",f.a.createElement("br",null),f.a.createElement("br",null),m.a.exploits.map(e=>f.a.createElement(f.a.Fragment,{key:e},"* ",Object(u.b)(e),f.a.createElement("br",null)))),lvl:m.a.exploits.length,n:-1,name:"Source-File -1: Exploits in the BitNodes"}}const t="SourceFile"+e,n=p.a[t];return null==n?(console.error("Invalid source file number: "+e),null):n},y=e=>{let t;switch(e.n){case 12:t="∞";break;case-1:t=Object.keys(u.a).length;break;default:t="3"}return t};function b(){var e;const t=m.a.sourceFiles.slice(),n=m.a.exploits;if(n.length>0&&t.unshift({n:-1,lvl:n.length}),d.a.OwnedAugmentationsOrder===h.a.Alphabetically&&t.sort((e,t)=>e.n-t.n),0===t.length)return f.a.createElement(f.a.Fragment,null);const[u,p]=Object(c.useState)(t[0]);return f.a.createElement(o.a,{sx:{width:"100%",mt:1}},f.a.createElement(a.a,{sx:{p:1}},f.a.createElement(l.a,{variant:"h5"},"Source Files")),f.a.createElement(a.a,{sx:{display:"grid",gridTemplateColumns:"1fr 3fr"}},f.a.createElement(o.a,null,f.a.createElement(s.a,{sx:{height:400,overflowY:"scroll",borderRight:"1px solid "+d.a.theme.welllight},disablePadding:!0},t.map((e,t)=>{const n=g(e.n);if(!n)return;const a=y(n);return f.a.createElement(r.a,{key:t+1,onClick:()=>p(e),selected:u.n===e.n,sx:{py:0}},f.a.createElement(i.a,{disableTypography:!0,primary:f.a.createElement(l.a,null,n.name),secondary:f.a.createElement(l.a,null,"Level ",e.lvl," / ",a)}))}))),f.a.createElement(o.a,{sx:{m:1}},f.a.createElement(l.a,{variant:"h6",sx:{display:"flex",alignItems:"center",flexWrap:"wrap"}},null===(e=g(u.n))||void 0===e?void 0:e.name),f.a.createElement(l.a,{sx:{maxHeight:350,overflowY:"scroll"}},(()=>{const e=g(u.n);if(!e)return;const t=y(e);return f.a.createElement(f.a.Fragment,null,"Level ",u.lvl," / ",t,f.a.createElement("br",null),f.a.createElement("br",null),e.info)})()))))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return O}));var a=n(212),r=n(11),i=n(0),o=n.n(i),s=n(1129),l=n(1131),c=n(1134),f=n(1136),u=n(1137),m=n(1138),h=n(1139),d=n(1140),p=n(1141),g=n(1142),y=n(1143),b=n(1144),E=n(1145),v=n(1146),k=n(1147),w=n(1148),_=n(1149),S=n(1152),C=n(1156),x=n(1),L=n(109);function O(e){return Object(i.useEffect)(()=>{e.player.giveExploit(L.a.YoureNotMeantToAccessThis)},[]),o.a.createElement(o.a.Fragment,null,o.a.createElement(x.a,null,"Development Menu - Only meant to be used for testing/debugging"),o.a.createElement(s.a,{player:e.player,router:e.router}),o.a.createElement(l.a,{player:e.player}),o.a.createElement(c.a,{player:e.player}),o.a.createElement(f.a,{player:e.player}),o.a.createElement(u.a,{player:e.player}),o.a.createElement(m.a,{player:e.player}),o.a.createElement(h.a,null),o.a.createElement(d.a,null),e.player.bladeburner instanceof a.a&&o.a.createElement(p.a,{player:e.player}),e.player.inGang()&&o.a.createElement(g.a,{player:e.player}),e.player.hasCorporation()&&o.a.createElement(y.a,{player:e.player}),o.a.createElement(b.a,null),e.player.hasWseAccount&&o.a.createElement(E.a,null),e.player.sleeves.length>0&&o.a.createElement(v.a,{player:e.player}),e.player.augmentations.some(e=>e.name===r.a.StaneksGift1)&&o.a.createElement(k.a,null),o.a.createElement(w.a,{player:e.player,engine:e.engine}),o.a.createElement(S.a,{player:e.player,engine:e.engine}),o.a.createElement(C.a,{player:e.player,engine:e.engine}),o.a.createElement(_.a,null))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return v}));var a=n(0),r=n.n(a),i=n(159),o=n(160),s=n(161),l=n(80),c=n.n(l),f=n(1),u=n(8),m=n(20),h=n(75),d=n(130),p=n(71),g=n(212),y=n(190),b=n(4),E=n(351);function v(e){const[t,n]=Object(a.useState)(!1),[l,v]=Object(a.useState)(""),[k,w]=Object(a.useState)("");function _(t){return function(){e.player.gainMoney(t,"other")}}return Object(a.useEffect)(()=>{if(t)throw new ReferenceError("Manually thrown error")},[t]),r.a.createElement(i.a,{TransitionProps:{unmountOnExit:!0}},r.a.createElement(o.a,{expandIcon:r.a.createElement(c.a,null)},r.a.createElement(f.a,null,"General")),r.a.createElement(s.a,null,r.a.createElement(u.a,{onClick:_(1e6)},r.a.createElement("pre",null,"+ ",r.a.createElement(m.a,{money:1e6}))),r.a.createElement(u.a,{onClick:_(1e9)},r.a.createElement("pre",null,"+ ",r.a.createElement(m.a,{money:1e9}))),r.a.createElement(u.a,{onClick:_(1e12)},r.a.createElement("pre",null,"+ ",r.a.createElement(m.a,{money:1e12}))),r.a.createElement(u.a,{onClick:_(1e15)},r.a.createElement("pre",null,"+ ",r.a.createElement(m.a,{money:1e15}))),r.a.createElement(u.a,{onClick:_(1/0)},r.a.createElement("pre",null,"+ ",r.a.createElement(m.a,{money:1/0}))),r.a.createElement(u.a,{onClick:function(){e.player.getHomeComputer().maxRam*=2}},"+ RAM"),r.a.createElement("br",null),r.a.createElement(f.a,null,"Corporation Name:"),r.a.createElement(h.a,{value:l,onChange:e=>v(e.target.value)}),r.a.createElement(u.a,{onClick:function(){e.player.startCorporation(l)}},"Create Corporation"),r.a.createElement("br",null),r.a.createElement(f.a,null,"Gang Faction:"),r.a.createElement(d.a,{value:k,onChange:function(e){w(e.target.value)}},y.a.Names.map(e=>r.a.createElement(p.a,{key:e,value:e},e))),r.a.createElement(u.a,{onClick:function(){const t=k===b.a.NiteSec||k===b.a.TheBlackHand;e.player.startGang(k,t)}},"Start Gang"),r.a.createElement("br",null),r.a.createElement(u.a,{onClick:function(){e.player.bladeburner=new g.a(e.player)}},"Join BladeBurner"),r.a.createElement("br",null),r.a.createElement(u.a,{onClick:function(){e.router.toBitVerse(!0,!0)}},"Quick b1t_flum3.exe"),r.a.createElement(u.a,{onClick:function(){e.router.toBitVerse(!0,!1)}},"Run b1t_flum3.exe"),r.a.createElement(u.a,{onClick:function(){e.router.toBitVerse(!1,!0)}},"Quick w0rld_d34m0n"),r.a.createElement(u.a,{onClick:function(){e.router.toBitVerse(!1,!1)}},"Hack w0rld_d34m0n"),r.a.createElement(u.a,{onClick:()=>n(!0)},"Throw Error"),r.a.createElement(u.a,{onClick:function(){Object(E.b)()}},"Check Messages")))}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var a=n(0),r=n.n(a),i=n(159),o=n(160),s=n(161),l=n(80),c=n.n(l),f=n(1),u=n(8),m=n(133);const h=1e27;function d(e){function t(t,n){return function(a){switch(t){case"hacking":a&&e.player.gainHackingExp(a*n);break;case"strength":a&&e.player.gainStrengthExp(a*n);break;case"defense":a&&e.player.gainDefenseExp(a*n);break;case"dexterity":a&&e.player.gainDexterityExp(a*n);break;case"agility":a&&e.player.gainAgilityExp(a*n);break;case"charisma":a&&e.player.gainCharismaExp(a*n);break;case"intelligence":a&&e.player.gainIntelligenceExp(a*n)}e.player.updateSkillLevels()}}function n(t){return function(n){e.player.karma+=n*t}}function a(t){return function(){switch(t){case"hacking":e.player.hacking_exp=0;break;case"strength":e.player.strength_exp=0;break;case"defense":e.player.defense_exp=0;break;case"dexterity":e.player.dexterity_exp=0;break;case"agility":e.player.agility_exp=0;break;case"charisma":e.player.charisma_exp=0;break;case"intelligence":e.player.intelligence_exp=0}e.player.updateSkillLevels()}}return r.a.createElement(i.a,{TransitionProps:{unmountOnExit:!0}},r.a.createElement(o.a,{expandIcon:r.a.createElement(c.a,null)},r.a.createElement(f.a,null,"Experience / Stats")),r.a.createElement(s.a,null,r.a.createElement("table",null,r.a.createElement("tbody",null,r.a.createElement("tr",null,r.a.createElement("td",null,r.a.createElement(f.a,null,"All:")),r.a.createElement("td",null,r.a.createElement(u.a,{onClick:function(){e.player.gainHackingExp(h),e.player.gainStrengthExp(h),e.player.gainDefenseExp(h),e.player.gainDexterityExp(h),e.player.gainAgilityExp(h),e.player.gainCharismaExp(h),e.player.gainIntelligenceExp(h),e.player.updateSkillLevels()}},"Tons of exp"),r.a.createElement(u.a,{onClick:function(){e.player.hacking_exp=0,e.player.strength_exp=0,e.player.defense_exp=0,e.player.dexterity_exp=0,e.player.agility_exp=0,e.player.charisma_exp=0,e.player.intelligence_exp=0,e.player.updateSkillLevels()}},"Reset"))),r.a.createElement("tr",null,r.a.createElement("td",null,r.a.createElement(f.a,null,"Hacking:")),r.a.createElement("td",null,r.a.createElement(m.a,{label:"hacking",placeholder:"exp",tons:()=>t("hacking",1)(h),add:t("hacking",1),subtract:t("hacking",-1),reset:a("hacking")}))),r.a.createElement("tr",null,r.a.createElement("td",null,r.a.createElement(f.a,null,"Strength:")),r.a.createElement("td",null,r.a.createElement(m.a,{label:"strength",placeholder:"exp",tons:()=>t("strength",1)(h),add:t("strength",1),subtract:t("strength",-1),reset:a("strength")}))),r.a.createElement("tr",null,r.a.createElement("td",null,r.a.createElement(f.a,null,"Defense:")),r.a.createElement("td",null,r.a.createElement(m.a,{label:"defense",placeholder:"exp",tons:()=>t("defense",1)(h),add:t("defense",1),subtract:t("defense",-1),reset:a("defense")}))),r.a.createElement("tr",null,r.a.createElement("td",null,r.a.createElement(f.a,null,"Dexterity:")),r.a.createElement("td",null,r.a.createElement(m.a,{label:"dexterity",placeholder:"exp",tons:()=>t("dexterity",1)(h),add:t("dexterity",1),subtract:t("dexterity",-1),reset:a("dexterity")}))),r.a.createElement("tr",null,r.a.createElement("td",null,r.a.createElement(f.a,null,"Agility:")),r.a.createElement("td",null,r.a.createElement(m.a,{label:"agility",placeholder:"exp",tons:()=>t("agility",1)(h),add:t("agility",1),subtract:t("agility",-1),reset:a("agility")}))),r.a.createElement("tr",null,r.a.createElement("td",null,r.a.createElement(f.a,null,"Charisma:")),r.a.createElement("td",null,r.a.createElement(m.a,{label:"charisma",placeholder:"exp",tons:()=>t("charisma",1)(h),add:t("charisma",1),subtract:t("charisma",-1),reset:a("charisma")}))),r.a.createElement("tr",null,r.a.createElement("td",null,r.a.createElement(f.a,null,"Intelligence:")),r.a.createElement("td",null,r.a.createElement(m.a,{label:"intelligence",placeholder:"exp",tons:()=>t("intelligence",1)(h),add:t("intelligence",1),subtract:t("intelligence",-1),reset:a("intelligence")})),r.a.createElement("td",null,r.a.createElement(u.a,{onClick:function(){0===e.player.intelligence&&(e.player.intelligence=1,e.player.updateSkillLevels())}},"Enable")),r.a.createElement("td",null,r.a.createElement(u.a,{onClick:function(){e.player.intelligence_exp=0,e.player.intelligence=0,e.player.updateSkillLevels()}},"Disable"))),r.a.createElement("tr",null,r.a.createElement("td",null,r.a.createElement(f.a,null,"Karma:")),r.a.createElement("td",null,r.a.createElement(m.a,{label:"karma",placeholder:"amt",tons:()=>t("intelligence",1)(1e5),add:n(1),subtract:n(-1),reset:function(){e.player.karma=0}})))))))}},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return S}));var a=n(0),r=n.n(a),i=n(159),o=n(160),s=n(161),l=n(80),c=n.n(l),f=n(1),u=n(8),m=n(130),h=n(133),d=n(29),p=n(1487),g=n(71),y=n(112),b=n(1135),E=n.n(b),v=n(477),k=n.n(v),w=n(1488),_=n(4);function S(e){const[t,n]=Object(a.useState)(_.a.Illuminati);function l(e){return function(n){const a=d.a[t];null==a||isNaN(n)||(a.playerReputation+=n*e)}}function b(e){return function(n){const a=d.a[t];null==a||isNaN(n)||(a.favor+=n*e)}}return r.a.createElement(i.a,{TransitionProps:{unmountOnExit:!0}},r.a.createElement(o.a,{expandIcon:r.a.createElement(c.a,null)},r.a.createElement(f.a,null,"Factions")),r.a.createElement(s.a,null,r.a.createElement("table",null,r.a.createElement("tbody",null,r.a.createElement("tr",null,r.a.createElement("td",null,r.a.createElement(f.a,null,"Faction:")),r.a.createElement("td",null,r.a.createElement(p.a,null,r.a.createElement(w.a,{id:"factions-select"},"Faction"),r.a.createElement(m.a,{labelId:"factions-select",id:"factions-dropdown",onChange:function(e){n(e.target.value)},value:t,startAdornment:r.a.createElement(r.a.Fragment,null,r.a.createElement(y.a,{onClick:function(){Object.values(_.a).forEach(t=>e.player.receiveInvite(t))},size:"large","arial-label":"receive-all-invitation"},r.a.createElement(E.a,null)),r.a.createElement(y.a,{onClick:function(){e.player.receiveInvite(t)},size:"large","arial-label":"receive-one-invitation"},r.a.createElement(k.a,null)))},Object.values(d.a).map(e=>r.a.createElement(g.a,{key:e.name,value:e.name},e.name)))))),r.a.createElement("tr",null,r.a.createElement("td",null,r.a.createElement(f.a,null,"Reputation:")),r.a.createElement("td",null,r.a.createElement(h.a,{label:"reputation",placeholder:"amt",tons:()=>l(1)(1e12),add:l(1),subtract:l(-1),reset:function(){const e=d.a[t];null!=e&&(e.playerReputation=0)}}))),r.a.createElement("tr",null,r.a.createElement("td",null,r.a.createElement(f.a,null,"Favor:")),r.a.createElement("td",null,r.a.createElement(h.a,{label:"favor",placeholder:"amt",tons:()=>b(1)(2e3),add:b(1),subtract:b(-1),reset:function(){const e=d.a[t];null!=e&&(e.favor=0)}}))),r.a.createElement("tr",null,r.a.createElement("td",null,r.a.createElement(f.a,null,"All Reputation:")),r.a.createElement("td",null,r.a.createElement(u.a,{onClick:function(){for(const e of Object.keys(d.a))d.a[e].playerReputation=1e12}},"Tons"),r.a.createElement(u.a,{onClick:function(){for(const e of Object.keys(d.a))d.a[e].playerReputation=0}},"Reset"))),r.a.createElement("tr",null,r.a.createElement("td",null,r.a.createElement(f.a,null,"All Favor:")),r.a.createElement("td",null,r.a.createElement(u.a,{onClick:function(){for(const e of Object.keys(d.a))d.a[e].favor=1e12}},"Tons"),r.a.createElement(u.a,{onClick:function(){for(const e of Object.keys(d.a))d.a[e].favor=0}},"Reset")))))))}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return b}));var a=n(1801),r=n(1802),i=n(1493),o=n(1803),s=n(159),l=n(160),c=n(1),f=n(161),u=n(130),m=n(112),h=n(71),d=n(8),p=n(0),g=n.n(p),y=n(11);function b(e){const[t,n]=Object(p.useState)("Augmented Targeting I");return g.a.createElement(s.a,{TransitionProps:{unmountOnExit:!0}},g.a.createElement(l.a,{expandIcon:g.a.createElement(a.a,null)},g.a.createElement(c.a,null,"Augmentations")),g.a.createElement(f.a,null,g.a.createElement(u.a,{onChange:function(e){n(e.target.value)},value:t,startAdornment:g.a.createElement(g.a.Fragment,null,g.a.createElement(m.a,{onClick:function(){for(const t of Object.values(y.a))e.player.queueAugmentation(t)},size:"large"},g.a.createElement(r.a,null)),g.a.createElement(m.a,{onClick:function(){e.player.queueAugmentation(t)},size:"large"},g.a.createElement(i.a,null))),endAdornment:g.a.createElement(g.a.Fragment,null,g.a.createElement(m.a,{onClick:function(){e.player.augmentations=[]},size:"large"},g.a.createElement(o.a,null)))},Object.values(y.a).map(e=>g.a.createElement(h.a,{key:e,value:e},e))),g.a.createElement(d.a,{sx:{display:"block"},onClick:function(){e.player.queuedAugmentations=[]}},"Clear Queued Augmentations")))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var a=n(0),r=n.n(a),i=n(159),o=n(160),s=n(161),l=n(80),c=n.n(l),f=n(1),u=n(8),m=n(623),h=n(364);const d=[1,2,3,4,5,6,7,8,9,10,11,12,13];function p(e){function t(t,n){return function(){if(9===t&&(e.player.hacknetNodes=[]),0!==n)if(e.player.sourceFiles.some(e=>e.n===t))for(let a=0;a<e.player.sourceFiles.length;a++)e.player.sourceFiles[a].n===t&&(e.player.sourceFiles[a].lvl=n);else e.player.sourceFiles.push(new m.a(t,n));else e.player.sourceFiles=e.player.sourceFiles.filter(e=>e.n!==t)}}function n(e){return()=>{for(let n=0;n<d.length;n++)t(d[n],e)()}}return r.a.createElement(i.a,{TransitionProps:{unmountOnExit:!0}},r.a.createElement(o.a,{expandIcon:r.a.createElement(c.a,null)},r.a.createElement(f.a,null,"Source-Files")),r.a.createElement(s.a,null,r.a.createElement("table",null,r.a.createElement("tbody",null,r.a.createElement("tr",null,r.a.createElement("td",null,r.a.createElement(f.a,null,"Exploits:")),r.a.createElement("td",null,r.a.createElement(u.a,{onClick:function(){e.player.exploits=[]}},"Clear"))),r.a.createElement("tr",{key:"sf-all"},r.a.createElement("td",null,r.a.createElement(f.a,null,"All:")),r.a.createElement("td",null,r.a.createElement(h.a,null,r.a.createElement(u.a,{"aria-label":"all-sf-0",onClick:n(0)},"0"),r.a.createElement(u.a,{"aria-label":"all-sf-1",onClick:n(1)},"1"),r.a.createElement(u.a,{"aria-label":"all-sf-2",onClick:n(2)},"2"),r.a.createElement(u.a,{"aria-label":"all-sf-3",onClick:n(3)},"3")))),d.map(e=>r.a.createElement("tr",{key:"sf-"+e},r.a.createElement("td",null,r.a.createElement(f.a,null,"SF-",e,":")),r.a.createElement("td",null,r.a.createElement(h.a,null,r.a.createElement(u.a,{onClick:t(e,0)},"0"),r.a.createElement(u.a,{onClick:t(e,1)},"1"),r.a.createElement(u.a,{onClick:t(e,2)},"2"),r.a.createElement(u.a,{onClick:t(e,3)},"3")))))))))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var a=n(0),r=n.n(a),i=n(159),o=n(160),s=n(161),l=n(80),c=n.n(l),f=n(1),u=n(8),m=n(130),h=n(60),d=n(71);function p(e){const[t,n]=Object(a.useState)("NUKE.exe");return r.a.createElement(i.a,{TransitionProps:{unmountOnExit:!0}},r.a.createElement(o.a,{expandIcon:r.a.createElement(c.a,null)},r.a.createElement(f.a,null,"Programs")),r.a.createElement(s.a,null,r.a.createElement("table",null,r.a.createElement("tbody",null,r.a.createElement("tr",null,r.a.createElement("td",null,r.a.createElement(f.a,null,"Program:")),r.a.createElement("td",null,r.a.createElement(m.a,{onChange:function(e){n(e.target.value)},value:t},Object.values(h.a).map(e=>r.a.createElement(d.a,{key:e.name,value:e.name},e.name))))),r.a.createElement("tr",null,r.a.createElement("td",null,r.a.createElement(f.a,null,"Add:")),r.a.createElement("td",null,r.a.createElement(u.a,{onClick:function(){e.player.hasProgram(t)||e.player.getHomeComputer().programs.push(t)}},"One"),r.a.createElement(u.a,{onClick:function(){for(const t of Object.keys(h.a))e.player.hasProgram(h.a[t].name)||e.player.getHomeComputer().programs.push(h.a[t].name)}},"All")))))))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var a=n(0),r=n.n(a),i=n(159),o=n(160),s=n(161),l=n(80),c=n.n(l),f=n(1),u=n(8),m=n(130),h=n(27),d=n(44),p=n(71);function g(){const[e,t]=Object(a.useState)("home");return r.a.createElement(i.a,{TransitionProps:{unmountOnExit:!0}},r.a.createElement(o.a,{expandIcon:r.a.createElement(c.a,null)},r.a.createElement(f.a,null,"Servers")),r.a.createElement(s.a,null,r.a.createElement("table",null,r.a.createElement("tbody",null,r.a.createElement("tr",null,r.a.createElement("td",null,r.a.createElement(f.a,null,"Server:")),r.a.createElement("td",{colSpan:2},r.a.createElement(m.a,{id:"dev-servers-dropdown",onChange:function(e){t(e.target.value)},value:e},Object(h.c)().map(e=>r.a.createElement(p.a,{key:e.hostname,value:e.hostname},e.hostname))))),r.a.createElement("tr",null,r.a.createElement("td",null,r.a.createElement(f.a,null,"Root:")),r.a.createElement("td",null,r.a.createElement(u.a,{onClick:function(){const t=Object(h.d)(e);null!==t&&t instanceof d.a&&(t.hasAdminRights=!0,t.sshPortOpen=!0,t.ftpPortOpen=!0,t.smtpPortOpen=!0,t.httpPortOpen=!0,t.sqlPortOpen=!0,t.openPortCount=5)}},"Root one")),r.a.createElement("td",null,r.a.createElement(u.a,{onClick:function(){for(const e of Object(h.c)()){if(!(e instanceof d.a))return;e.hasAdminRights=!0,e.sshPortOpen=!0,e.ftpPortOpen=!0,e.smtpPortOpen=!0,e.httpPortOpen=!0,e.sqlPortOpen=!0,e.openPortCount=5}}},"Root all"))),r.a.createElement("tr",null,r.a.createElement("td",null,r.a.createElement(f.a,null,"Security:")),r.a.createElement("td",null,r.a.createElement(u.a,{onClick:function(){const t=Object(h.d)(e);null!==t&&t instanceof d.a&&(t.hackDifficulty=t.minDifficulty)}},"Min one")),r.a.createElement("td",null,r.a.createElement(u.a,{onClick:function(){for(const e of Object(h.c)()){if(!(e instanceof d.a))return;e.hackDifficulty=e.minDifficulty}}},"Min all"))),r.a.createElement("tr",null,r.a.createElement("td",null,r.a.createElement(f.a,null,"Money:")),r.a.createElement("td",null,r.a.createElement(u.a,{onClick:function(){const t=Object(h.d)(e);null!==t&&t instanceof d.a&&(t.moneyAvailable=0)}},"Min one")),r.a.createElement("td",null,r.a.createElement(u.a,{onClick:function(){for(const e of Object(h.c)()){if(!(e instanceof d.a))return;e.moneyAvailable=0}}},"Min all")),r.a.createElement("td",null,r.a.createElement(u.a,{onClick:function(){const t=Object(h.d)(e);null!==t&&t instanceof d.a&&(t.moneyAvailable=t.moneyMax)}},"Max one")),r.a.createElement("td",null,r.a.createElement(u.a,{onClick:function(){for(const e of Object(h.c)()){if(!(e instanceof d.a))return;e.moneyAvailable=e.moneyMax}}},"Max all")))))))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return y}));var a=n(0),r=n.n(a),i=n(159),o=n(160),s=n(161),l=n(80),c=n.n(l),f=n(1),u=n(8),m=n(130),h=n(74),d=n(71),p=n(133),g=n(4);function y(){const[e,t]=Object(a.useState)(g.a.ECorp);function n(t){return function(n){const a=h.a[e];null==a||isNaN(n)||(a.playerReputation+=n*t)}}function l(t){return function(n){const a=h.a[e];null==a||isNaN(n)||(a.favor+=n*t)}}return r.a.createElement(i.a,{TransitionProps:{unmountOnExit:!0}},r.a.createElement(o.a,{expandIcon:r.a.createElement(c.a,null)},r.a.createElement(f.a,null,"Companies")),r.a.createElement(s.a,null,r.a.createElement("table",null,r.a.createElement("tbody",null,r.a.createElement("tr",null,r.a.createElement("td",null,r.a.createElement(f.a,null,"Company:")),r.a.createElement("td",{colSpan:3},r.a.createElement(m.a,{id:"dev-companies-dropdown",onChange:function(e){t(e.target.value)},value:e},Object.values(h.a).map(e=>r.a.createElement(d.a,{key:e.name,value:e.name},e.name))))),r.a.createElement("tr",null,r.a.createElement("td",null,r.a.createElement(f.a,null,"Reputation:")),r.a.createElement("td",null,r.a.createElement(p.a,{label:"reputation",placeholder:"amt",tons:()=>n(1)(1e12),add:n(1),subtract:n(-1),reset:function(){h.a[e].playerReputation=0}}))),r.a.createElement("tr",null,r.a.createElement("td",null,r.a.createElement(f.a,null,"Favor:")),r.a.createElement("td",null,r.a.createElement(p.a,{label:"favor",placeholder:"amt",tons:()=>l(1)(2e3),add:l(1),subtract:l(-1),reset:function(){h.a[e].favor=0}}))),r.a.createElement("tr",null,r.a.createElement("td",null,r.a.createElement(f.a,null,"All Reputation:")),r.a.createElement("td",null,r.a.createElement(u.a,{onClick:function(){for(const e of Object.keys(h.a))h.a[e].playerReputation=1e12}},"Tons"),r.a.createElement(u.a,{onClick:function(){for(const e of Object.keys(h.a))h.a[e].playerReputation=0}},"Reset"))),r.a.createElement("tr",null,r.a.createElement("td",null,r.a.createElement(f.a,null,"All Favor:")),r.a.createElement("td",null,r.a.createElement(u.a,{onClick:function(){for(const e of Object.keys(h.a))h.a[e].favor=1e12}},"Tons"),r.a.createElement(u.a,{onClick:function(){for(const e of Object.keys(h.a))h.a[e].favor=0}},"Reset")))))))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var a=n(0),r=n.n(a),i=n(1),o=n(159),s=n(160),l=n(161),c=n(80),f=n.n(c),u=n(133);function m(e){const t=e.player.bladeburner;if(null===t)return r.a.createElement(r.a.Fragment,null);function n(n){return function(a){t&&t.changeRank(e.player,a*n)}}function a(e){return function(n){t&&(t.storedCycles+=n*e)}}return r.a.createElement(o.a,{TransitionProps:{unmountOnExit:!0}},r.a.createElement(s.a,{expandIcon:r.a.createElement(f.a,null)},r.a.createElement(i.a,null,"Bladeburner")),r.a.createElement(l.a,null,r.a.createElement("table",null,r.a.createElement("tbody",null,r.a.createElement("tr",null,r.a.createElement("td",null,r.a.createElement(i.a,null,"Rank:")),r.a.createElement("td",null,r.a.createElement(u.a,{label:"rank",placeholder:"amt",tons:function(){t&&t.changeRank(e.player,1e27)},add:n(1),subtract:n(-1),reset:function(){t&&(t.rank=0,t.maxRank=0)}}))),r.a.createElement("tr",null,r.a.createElement("td",null,r.a.createElement(i.a,null,"Cycles:")),r.a.createElement("td",null,r.a.createElement(u.a,{label:"cycles",placeholder:"amt",tons:function(){t&&(t.storedCycles+=1e27)},add:a(1),subtract:a(-1),reset:function(){t&&(t.storedCycles=0)}})))))))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var a=n(0),r=n.n(a),i=n(1),o=n(159),s=n(160),l=n(161),c=n(80),f=n.n(c),u=n(133);function m(e){function t(t){return function(n){e.player.gang&&(e.player.gang.storedCycles+=n*t)}}return r.a.createElement(o.a,{TransitionProps:{unmountOnExit:!0}},r.a.createElement(s.a,{expandIcon:r.a.createElement(f.a,null)},r.a.createElement(i.a,null,"Gang")),r.a.createElement(l.a,null,r.a.createElement("table",null,r.a.createElement("tbody",null,r.a.createElement("tr",null,r.a.createElement("td",null,r.a.createElement(i.a,null,"Cycles:")),r.a.createElement("td",null,r.a.createElement(u.a,{label:"cycles",placeholder:"amt",tons:function(){e.player.gang&&(e.player.gang.storedCycles=1e27)},add:t(1),subtract:t(-1),reset:function(){e.player.gang&&(e.player.gang.storedCycles=0)}})))))))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var a=n(0),r=n.n(a),i=n(159),o=n(160),s=n(161),l=n(80),c=n.n(l),f=n(1),u=n(8),m=n(133);function h(e){function t(t){return function(n){e.player.corporation&&(e.player.corporation.funds+=n*t)}}function n(t){return function(n){e.player.corporation&&(e.player.corporation.storedCycles+=n*t)}}return r.a.createElement(i.a,{TransitionProps:{unmountOnExit:!0}},r.a.createElement(o.a,{expandIcon:r.a.createElement(c.a,null)},r.a.createElement(f.a,null,"Corporation")),r.a.createElement(s.a,null,r.a.createElement("table",null,r.a.createElement("tbody",null,r.a.createElement("tr",null,r.a.createElement("td",null,r.a.createElement(f.a,null,"Funds:")),r.a.createElement("td",null,r.a.createElement(m.a,{label:"set funds",placeholder:"amt",tons:function(){e.player.corporation&&(e.player.corporation.funds=e.player.corporation.funds+1e27)},add:t(1),subtract:t(-1),reset:function(){e.player.corporation&&(e.player.corporation.funds=e.player.corporation.funds-e.player.corporation.funds)}}))),r.a.createElement("tr",null,r.a.createElement("td",null,r.a.createElement(f.a,null,"Cycles:")),r.a.createElement("td",null,r.a.createElement(m.a,{label:"cycles",placeholder:"amt",tons:function(){e.player.corporation&&(e.player.corporation.storedCycles=1e27)},add:n(1),subtract:n(-1),reset:function(){e.player.corporation&&(e.player.corporation.storedCycles=0)}}))),r.a.createElement("tr",null,r.a.createElement("td",null,r.a.createElement(u.a,{onClick:function(){e.player.corporation&&e.player.corporation.divisions.forEach(e=>{Object.keys(e.products).forEach(t=>{const n=e.products[t];if(void 0===n)throw new Error("Impossible product undefined");n.prog=99.9})})}},"Finish products"))),r.a.createElement("tr",null,r.a.createElement("td",null,r.a.createElement(u.a,{onClick:function(){e.player.corporation&&e.player.corporation.divisions.forEach(e=>{e.sciResearch.qty+=1e10})}},"Tons of research")))))))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var a=n(0),r=n.n(a),i=n(159),o=n(160),s=n(161),l=n(80),c=n.n(l),f=n(1),u=n(8),m=n(130),h=n(71),d=n(355),p=n(116);function g(){const[e,t]=Object(a.useState)("Find Largest Prime Factor");return r.a.createElement(i.a,{TransitionProps:{unmountOnExit:!0}},r.a.createElement(o.a,{expandIcon:r.a.createElement(c.a,null)},r.a.createElement(f.a,null,"Coding Contracts")),r.a.createElement(s.a,null,r.a.createElement("table",null,r.a.createElement("tbody",null,r.a.createElement("tr",null,r.a.createElement("td",null,r.a.createElement(u.a,{onClick:d.b},"Generate Random Contract"),r.a.createElement(u.a,{onClick:d.c},"Generate Random Contract on Home Comp"))),r.a.createElement("tr",null,r.a.createElement("td",null,r.a.createElement(m.a,{onChange:function(e){t(e.target.value)},value:e},Object.values(p.d).map(e=>r.a.createElement(h.a,{key:e.name,value:e.name},e.name))),r.a.createElement(u.a,{onClick:function(){Object(d.a)({problemType:e,server:"home"})}},"Generate Specified Contract Type on Home Comp")))))))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return y}));var a=n(0),r=n.n(a),i=n(159),o=n(160),s=n(161),l=n(80),c=n.n(l),f=n(1),u=n(8),m=n(75),h=n(20),d=n(14),p=n(103),g=n(155);function y(){const[e,t]=Object(a.useState)(0),[n,l]=Object(a.useState)("");function y(e){const t=n.replace(/\s/g,"");let a=()=>!0;""!==t&&"all"!==t&&(a=function(e){return t.split(",").includes(e)});for(const t of Object.keys(p.a))if(p.a.hasOwnProperty(t)){const n=p.a[t];n instanceof g.a&&a(n.symbol)&&e(n)}}return r.a.createElement(i.a,{TransitionProps:{unmountOnExit:!0}},r.a.createElement(o.a,{expandIcon:r.a.createElement(c.a,null)},r.a.createElement(f.a,null,"Stock Market")),r.a.createElement(s.a,null,r.a.createElement("table",null,r.a.createElement("tbody",null,r.a.createElement("tr",null,r.a.createElement("td",null,r.a.createElement(f.a,null,"Symbol:")),r.a.createElement("td",null,r.a.createElement(m.a,{placeholder:"symbol/'all'",onChange:function(e){l(e.target.value)}}))),r.a.createElement("tr",null,r.a.createElement("td",null,r.a.createElement(f.a,null,"Price:")),r.a.createElement("td",null,r.a.createElement(m.a,{placeholder:"$$$",onChange:function(e){t(parseFloat(e.target.value))}}),r.a.createElement(u.a,{onClick:function(){isNaN(e)||y(t=>{t.price=e})}},"Set"))),r.a.createElement("tr",null,r.a.createElement("td",null,r.a.createElement(f.a,null,"Caps:")),r.a.createElement("td",null,r.a.createElement(u.a,{onClick:function(){const e=[];y(t=>{e.push(r.a.createElement("tr",{key:t.symbol},r.a.createElement("td",null,t.symbol),r.a.createElement("td",{style:{textAlign:"right"}},r.a.createElement(h.a,{money:t.cap}))))}),Object(d.a)(r.a.createElement("table",null,r.a.createElement("tbody",null,r.a.createElement("tr",null,r.a.createElement("th",null,"Stock"),r.a.createElement("th",null,"Price cap")),e)))}},"View stock caps")))))))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var a=n(0),r=n.n(a),i=n(159),o=n(160),s=n(161),l=n(80),c=n.n(l),f=n(8),u=n(1),m=n(133);function h(e){function t(t){for(let n=0;n<e.player.sleeves.length;++n)e.player.sleeves[n].storedCycles=t}return r.a.createElement(i.a,{TransitionProps:{unmountOnExit:!0}},r.a.createElement(o.a,{expandIcon:r.a.createElement(c.a,null)},r.a.createElement(u.a,null,"Sleeves")),r.a.createElement(s.a,null,r.a.createElement("table",null,r.a.createElement("tbody",null,r.a.createElement("tr",null,r.a.createElement("td",null,r.a.createElement(u.a,null,"Shock:")),r.a.createElement("td",null,r.a.createElement(f.a,{onClick:function(){for(let t=0;t<e.player.sleeves.length;++t)e.player.sleeves[t].shock=0}},"Max all")),r.a.createElement("td",null,r.a.createElement(f.a,{onClick:function(){for(let t=0;t<e.player.sleeves.length;++t)e.player.sleeves[t].shock=100}},"Clear all"))),r.a.createElement("tr",null,r.a.createElement("td",null,r.a.createElement(u.a,null,"Sync:")),r.a.createElement("td",null,r.a.createElement(f.a,{onClick:function(){for(let t=0;t<e.player.sleeves.length;++t)e.player.sleeves[t].sync=100}},"Max all")),r.a.createElement("td",null,r.a.createElement(f.a,{onClick:function(){for(let t=0;t<e.player.sleeves.length;++t)e.player.sleeves[t].sync=0}},"Clear all"))),r.a.createElement("tr",null,r.a.createElement("td",{colSpan:3},r.a.createElement(m.a,{label:"Stored Cycles",placeholder:"cycles",tons:()=>t(1e7),add:t,subtract:t,reset:()=>t(0)})))))))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var a=n(0),r=n.n(a),i=n(102),o=n(159),s=n(160),l=n(161),c=n(80),f=n.n(c),u=n(1),m=n(133);function h(){function e(e){return function(t){i.c.storedCycles+=t*e}}function t(e){return function(t){i.c.fragments.forEach(n=>n.highestCharge+=t*e)}}return r.a.createElement(o.a,{TransitionProps:{unmountOnExit:!0}},r.a.createElement(s.a,{expandIcon:r.a.createElement(f.a,null)},r.a.createElement(u.a,null,"Stanek's Gift")),r.a.createElement(l.a,null,r.a.createElement("table",null,r.a.createElement("tbody",null,r.a.createElement("tr",null,r.a.createElement("td",null,r.a.createElement(m.a,{label:"cycles",placeholder:"amt",tons:function(){i.c.storedCycles=1e6},add:e(1),subtract:e(-1),reset:function(){i.c.storedCycles=0}}))),r.a.createElement("tr",null,r.a.createElement("td",null,r.a.createElement(m.a,{label:"all charge",placeholder:"amt",tons:function(){i.c.fragments.forEach(e=>{e.highestCharge=1e21,e.numCharge=1e21})},add:t(1),subtract:t(-1),reset:function(){i.c.fragments.forEach(e=>{e.highestCharge=0,e.numCharge=0})}})))))))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var a=n(0),r=n.n(a),i=n(159),o=n(160),s=n(161),l=n(80),c=n.n(l),f=n(1),u=n(8),m=n(110);function h(e){function t(t){return()=>{e.player.lastUpdate-=t,e.engine._lastUpdate-=t,m.c.saveGame(),setTimeout(()=>location.reload(),1e3)}}return r.a.createElement(i.a,{TransitionProps:{unmountOnExit:!0}},r.a.createElement(o.a,{expandIcon:r.a.createElement(c.a,null)},r.a.createElement(f.a,null,"Time skip")),r.a.createElement(s.a,null,r.a.createElement(u.a,{onClick:t(6e4)},"1 minute"),r.a.createElement(u.a,{onClick:t(36e5)},"1 hour"),r.a.createElement(u.a,{onClick:t(864e5)},"1 day")))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var a=n(0),r=n.n(a),i=n(159),o=n(160),s=n(161),l=n(80),c=n.n(l),f=n(1),u=n(110),m=n(94),h=n(1494),d=n(8),p=n(149);function g(){const e=Object(a.useRef)(null),[t,n]=Object(a.useState)(""),[l,g]=Object(a.useState)(!0),[y,b]=Object(a.useState)(!0),[E,v]=Object(a.useState)(!0);return r.a.createElement(i.a,{TransitionProps:{unmountOnExit:!0}},r.a.createElement(o.a,{expandIcon:r.a.createElement(c.a,null)},r.a.createElement(f.a,null,"Save file")),r.a.createElement(s.a,null,r.a.createElement(d.a,{onClick:function(){if(!(window.File&&window.FileReader&&window.FileList&&window.Blob))return;const t=e.current;if(null===t)throw new Error("import input should not be null");t.click()},startIcon:r.a.createElement(h.a,null),sx:{gridArea:"import"}},"Select save file",r.a.createElement("input",{ref:e,type:"file",hidden:!0,onChange:async function(e){try{const t=await u.c.getImportStringFromFile(e.target.files),a=atob(t);n(a)}catch(e){m.b.emit(e.toString(),m.d.ERROR,5e3)}}})),r.a.createElement("br",null),""!==t&&r.a.createElement(r.a.Fragment,null,r.a.createElement(p.a,{checked:l,onChange:e=>g(e),text:"Restore scripts",tooltip:r.a.createElement(r.a.Fragment,null,"Restore the save file home computer scripts.")}),r.a.createElement("br",null),r.a.createElement(p.a,{checked:y,onChange:e=>b(e),text:"Restore Augmentations",tooltip:r.a.createElement(r.a.Fragment,null,"Restore the save file installed augmentations.")}),r.a.createElement("br",null),r.a.createElement(p.a,{checked:E,onChange:e=>v(e),text:"Restore Source Files",tooltip:r.a.createElement(r.a.Fragment,null,"Restore the save file acquired source files.")}),r.a.createElement("br",null),r.a.createElement(d.a,{onClick:function(){const e=JSON.parse(t);console.error(e)}},"Restore"))))}},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return E}));var a=n(0),r=n.n(a),i=n(159),o=n(160),s=n(161),l=n(80),c=n.n(l),f=n(1),u=n(8),m=n(364),h=n(19),d=n(1155),p=n.n(d),g=n(1154),y=n.n(g),b=n(306);function E(e){const[t,n]=Object(a.useState)(e.player.achievements.map(e=>e.ID));return r.a.createElement(i.a,{TransitionProps:{unmountOnExit:!0}},r.a.createElement(o.a,{expandIcon:r.a.createElement(c.a,null)},r.a.createElement(f.a,null,"Achievements")),r.a.createElement(s.a,null,r.a.createElement("table",null,r.a.createElement("tbody",null,r.a.createElement("tr",null,r.a.createElement("td",null),r.a.createElement("td",null,r.a.createElement(f.a,null,"Achievements:")),r.a.createElement("td",null,r.a.createElement(m.a,null,r.a.createElement(u.a,{onClick:function(){Object.values(b.a).forEach(t=>e.player.giveAchievement(t.ID)),n(e.player.achievements.map(e=>e.ID))}},"Grant All"),r.a.createElement(u.a,{onClick:function(){e.player.achievements=[],n(e.player.achievements.map(e=>e.ID))}},"Clear"),r.a.createElement(u.a,{onClick:function(){e.engine.Counters.achievementsCounter=Number.MAX_VALUE}},"Disable Engine"),r.a.createElement(u.a,{onClick:function(){e.engine.Counters.achievementsCounter=0}},"Enable Engine")))),Object.values(b.a).map(a=>{const i=t.includes(a.ID);return r.a.createElement("tr",{key:"ach-"+a.ID},r.a.createElement("td",null,i?r.a.createElement(h.a,{title:"Achieved"},r.a.createElement(y.a,{color:"primary"})):r.a.createElement(h.a,{title:"Locked"},r.a.createElement(p.a,{color:"secondary"}))),r.a.createElement("td",null,r.a.createElement(h.a,{title:r.a.createElement(r.a.Fragment,null,a.ID,r.a.createElement("br",null),a.Description)},r.a.createElement(f.a,{color:i?"primary":"secondary"},a.Name,":"))),r.a.createElement("td",null,r.a.createElement(m.a,null,r.a.createElement(u.a,{onClick:()=>{return t=a.ID,e.player.giveAchievement(t),void n(e.player.achievements.map(e=>e.ID));var t}},"Grant"),r.a.createElement(u.a,{onClick:()=>{return t=a.ID,e.player.achievements=e.player.achievements.filter(e=>e.ID!==t),void n(e.player.achievements.map(e=>e.ID));var t}},"Clear"))))})))))}},function(e){e.exports=JSON.parse('{"a":{"CYBERSEC":{"ID":"CYBERSEC","Name":"CyberSec","Description":"Join CyberSec."},"NITESEC":{"ID":"NITESEC","Name":"avmnite-02h","Description":"Join NiteSec."},"THE_BLACK_HAND":{"ID":"THE_BLACK_HAND","Name":"I.I.I.I","Description":"Join The Black Hand."},"BITRUNNERS":{"ID":"BITRUNNERS","Name":"run4theh111z","Description":"Join the BitRunners."},"DAEDALUS":{"ID":"DAEDALUS","Name":"fl1ght.exe","Description":"Join Daedalus."},"THE_COVENANT":{"ID":"THE_COVENANT","Name":"The Covenant","Description":"Join The Covenant."},"ILLUMINATI":{"ID":"ILLUMINATI","Name":"Illuminati","Description":"Join the Illuminati."},"BRUTESSH.EXE":{"ID":"BRUTESSH.EXE","Name":"BruteSSH.exe","Description":"Acquire BruteSSH.exe"},"FTPCRACK.EXE":{"ID":"FTPCRACK.EXE","Name":"FTPCrack.exe","Description":"Acquire FTPCrack.exe"},"RELAYSMTP.EXE":{"ID":"RELAYSMTP.EXE","Name":"relaySMTP.exe","Description":"Acquire relaySMTP.exe"},"HTTPWORM.EXE":{"ID":"HTTPWORM.EXE","Name":"HTTPWorm.exe","Description":"Acquire HTTPWorm.exe"},"SQLINJECT.EXE":{"ID":"SQLINJECT.EXE","Name":"SQLInject.exe","Description":"Acquire SQLInject.exe"},"FORMULAS.EXE":{"ID":"FORMULAS.EXE","Name":"Formulas.exe","Description":"Acquire Formulas.exe"},"SF1.1":{"ID":"SF1.1","Name":"Source Genesis","Description":"Acquire SF1.1"},"SF2.1":{"ID":"SF2.1","Name":"Rise of the Underworld","Description":"Acquire SF2.1"},"SF3.1":{"ID":"SF3.1","Name":"Corporatocracy","Description":"Acquire SF3.1"},"SF4.1":{"ID":"SF4.1","Name":"The Singularity","Description":"Acquire SF4.1"},"SF5.1":{"ID":"SF5.1","Name":"Artificial Intelligence","Description":"Acquire SF5.1"},"SF6.1":{"ID":"SF6.1","Name":"Bladeburners","Description":"Acquire SF6.1"},"SF7.1":{"ID":"SF7.1","Name":"Bladeburners 2079","Description":"Acquire SF7.1"},"SF8.1":{"ID":"SF8.1","Name":"Ghost of Wall Street","Description":"Acquire SF8.1"},"SF9.1":{"ID":"SF9.1","Name":"Hacktocracy","Description":"Acquire SF9.1"},"SF10.1":{"ID":"SF10.1","Name":"Digital Carbon","Description":"Acquire SF10.1"},"SF11.1":{"ID":"SF11.1","Name":"The Big Crash","Description":"Acquire SF11.1"},"SF12.1":{"ID":"SF12.1","Name":"The Recursion","Description":"Acquire SF12.1"},"MONEY_1Q":{"ID":"MONEY_1Q","Name":"Here comes the money!","Description":"Have $1Q on your home computer."},"MONEY_M1B":{"ID":"MONEY_M1B","Name":"Massive debt","Description":"Be $1b in debt."},"INSTALL_1":{"ID":"INSTALL_1","Name":"I never asked for this.","Description":"Install your first augmentation."},"INSTALL_100":{"ID":"INSTALL_100","Name":"I asked for this.","Description":"Have 100 augmentation installed at once."},"QUEUE_40":{"ID":"QUEUE_40","Name":"It\'s time to install","Description":"Have 40 augmentation queued at once."},"HACKING_100000":{"ID":"HACKING_100000","Name":"Power Overwhelming","Description":"Achieve 100 000 hacking skill."},"COMBAT_3000":{"ID":"COMBAT_3000","Name":"One punch man","Description":"Achieve 3000 in all combat stats."},"NEUROFLUX_255":{"ID":"NEUROFLUX_255","Name":"Neuroflux is love, Neuroflux is live","Description":"Install Neuroflux Governor level 255"},"NS2":{"ID":"NS2","Name":"Maximum speed!","Description":"Write an ns2 script."},"FROZE":{"ID":"FROZE","Name":"while(true);","Description":"Restart the game using the reload & kill all option because you froze it with an infinite loop."},"RUNNING_SCRIPTS_1000":{"ID":"RUNNING_SCRIPTS_1000","Name":"Need more real life ram","Description":"Run 1000 scripts simultaneously."},"DRAIN_SERVER":{"ID":"DRAIN_SERVER","Name":"Big trouble","Description":"Drain a server of all its money."},"MAX_RAM":{"ID":"MAX_RAM","Name":"Download more ram","Description":"Maximize your home computer ram."},"MAX_CORES":{"ID":"MAX_CORES","Name":"Download more cores?","Description":"Maximize your home computer cores."},"SCRIPTS_30":{"ID":"SCRIPTS_30","Name":"Thank you folders!","Description":"Have 30 scripts on your home computer."},"KARMA_1000000":{"ID":"KARMA_1000000","Name":"Wretched hive of scum and vilany","Description":"Reach -1m karma."},"STOCK_1q":{"ID":"STOCK_1q","Name":"Wolf of wall street.","Description":"Make 1q on the stock market."},"DISCOUNT":{"ID":"DISCOUNT","Name":"Discount!","Description":"Get a discount at Powerhouse Gym by backdooring their server."},"SCRIPT_32GB":{"ID":"SCRIPT_32GB","Name":"You\'ll need upgrade for this one.","Description":"Write a script that costs 32GB per thread."},"FIRST_HACKNET_NODE":{"ID":"FIRST_HACKNET_NODE","Name":"Free money!","Description":"Purchase your first hacknet node."},"30_HACKNET_NODE":{"ID":"30_HACKNET_NODE","Name":"Big network","Description":"Have 30 hacknet nodes."},"MAX_HACKNET_NODE":{"ID":"MAX_HACKNET_NODE","Name":"That\'s the limit","Description":"Maximize a hacknet node."},"HACKNET_NODE_10M":{"ID":"HACKNET_NODE_10M","Name":"The original hacker","Description":"Make 10m from hacknet nodes."},"REPUTATION_10M":{"ID":"REPUTATION_10M","Name":"Well liked","Description":"Reach 10m reputation with a faction."},"DONATION":{"ID":"DONATION","Name":"Donate!","Description":"Unlock donations with a faction."},"TRAVEL":{"ID":"TRAVEL","Name":"World explorer","Description":"Travel anywhere."},"WORKOUT":{"ID":"WORKOUT","Name":"Gains!","Description":"Workout at a gym."},"TOR":{"ID":"TOR","Name":"The Onion Network","Description":"Purchase the TOR router."},"HOSPITALIZED":{"ID":"HOSPITALIZED","Name":"Ouch!","Description":"Go to the hospital."},"GANG":{"ID":"GANG","Name":"Gangster","Description":"Form a gang."},"FULL_GANG":{"ID":"FULL_GANG","Name":"Don","Description":"Recruit all gang members."},"GANG_TERRITORY":{"ID":"GANG_TERRITORY","Name":"Stay out of my territory","Description":"Have 100% of the territory."},"GANG_MEMBER_POWER":{"ID":"GANG_MEMBER_POWER","Name":"One punch guy","Description":"Have a gang member with 10 000 in 1 skill."},"CORPORATION":{"ID":"CORPORATION","Name":"A small 150b loan.","Description":"Create a corporation."},"CORPORATION_BRIBE":{"ID":"CORPORATION_BRIBE","Name":"Lobbying is great!","Description":"Lower your taxes through lobbying."},"CORPORATION_PROD_1000":{"ID":"CORPORATION_PROD_1000","Name":"Streamlined manufacturing","Description":"Have a division with a production multiplier of 1000."},"CORPORATION_EMPLOYEE_3000":{"ID":"CORPORATION_EMPLOYEE_3000","Name":"Small town","Description":"Have a division with 3000 employee."},"CORPORATION_REAL_ESTATE":{"ID":"CORPORATION_REAL_ESTATE","Name":"Own the land","Description":"Expand to the Real Estate division."},"INTELLIGENCE_255":{"ID":"INTELLIGENCE_255","Name":"Smart!","Description":"Reach intelligence 255"},"BLADEBURNER_DIVISION":{"ID":"BLADEBURNER_DIVISION","Name":"Bladeburners","Description":"Join the Bladeburner division."},"BLADEBURNER_OVERCLOCK":{"ID":"BLADEBURNER_OVERCLOCK","Name":"Overclock!","Description":"Reach maximum level of Overclock"},"BLADEBURNER_UNSPENT_100000":{"ID":"BLADEBURNER_UNSPENT_100000","Name":"You should really spend those.","Description":"Have 100 000 unspent bladeburner skill points."},"4S":{"ID":"4S","Name":"4S","Description":"Purchase the 4S market data."},"FIRST_HACKNET_SERVER":{"ID":"FIRST_HACKNET_SERVER","Name":"The improved hacker.","Description":"Purchase your first hacknet server."},"ALL_HACKNET_SERVER":{"ID":"ALL_HACKNET_SERVER","Name":"Full network","Description":"Buy all hacknet servers."},"MAX_HACKNET_SERVER":{"ID":"MAX_HACKNET_SERVER","Name":"That\'s the new limit.","Description":"Maximize a hacknet server."},"HACKNET_SERVER_1B":{"ID":"HACKNET_SERVER_1B","Name":"Not passive anymore","Description":"Make $1b with hacknet servers."},"MAX_CACHE":{"ID":"MAX_CACHE","Name":"What a waste.","Description":"Cap your hashes."},"SLEEVE_8":{"ID":"SLEEVE_8","Name":"You and what army?","Description":"Purchase all duplicate sleeves from The Covenant."},"INDECISIVE":{"ID":"INDECISIVE","Name":"Too many options.","Description":"Spend 1h straight on the bitverse."},"FAST_BN":{"ID":"FAST_BN","Name":"Speed demon.","Description":"Destroy a bitnode in under 2 days."},"CHALLENGE_BN1":{"ID":"CHALLENGE_BN1","Name":"BN1: Challenge","Description":"Destroy BN1 with at most 128GB and 1 core."},"CHALLENGE_BN2":{"ID":"CHALLENGE_BN2","Name":"BN2: Challenge","Description":"Destroy BN2 without forming a gang."},"CHALLENGE_BN3":{"ID":"CHALLENGE_BN3","Name":"BN3: Challenge","Description":"Destroy BN3 without creating corporation."},"CHALLENGE_BN6":{"ID":"CHALLENGE_BN6","Name":"BN6: Challenge","Description":"Destroy BN6 without joining the bladeburner division."},"CHALLENGE_BN7":{"ID":"CHALLENGE_BN7","Name":"BN7: Challenge","Description":"Destroy BN7 without joining the bladeburner division."},"CHALLENGE_BN8":{"ID":"CHALLENGE_BN8","Name":"BN8: Challenge","Description":"Destroy BN8 without purchasing the 4s market data."},"CHALLENGE_BN9":{"ID":"CHALLENGE_BN9","Name":"BN9: Challenge","Description":"Destroy BN9 without using hacknet servers."},"CHALLENGE_BN10":{"ID":"CHALLENGE_BN10","Name":"BN10: Challenge","Description":"Destroy BN10 without using sleeves."},"CHALLENGE_BN12":{"ID":"CHALLENGE_BN12","Name":"BN12: Challenge","Description":"Destroy BN12 50 times."},"BYPASS":{"ID":"BYPASS","Name":"Exploit: bypass","Description":"Circumventing the ram cost of document."},"PROTOTYPETAMPERING":{"ID":"PROTOTYPETAMPERING","Name":"Exploit: prototype tampering","Description":"Tamper with the Numbers prototype."},"UNCLICKABLE":{"ID":"UNCLICKABLE","Name":"Exploit: unclickable","Description":"Click the unclickable."},"UNDOCUMENTEDFUNCTIONCALL":{"ID":"UNDOCUMENTEDFUNCTIONCALL","Name":"Exploit: undocumented","Description":"Call the undocumented function."},"TIMECOMPRESSION":{"ID":"TIMECOMPRESSION","Name":"Exploit: time compression","Description":"Compress time."},"REALITYALTERATION":{"ID":"REALITYALTERATION","Name":"Exploit: reality alteration","Description":"Alter reality."},"N00DLES":{"ID":"N00DLES","Name":"Exploit: noodles","Description":"Harness the power of the noodles."},"EDITSAVEFILE":{"ID":"EDITSAVEFILE","Name":"Exploit: edit","Description":"Acquire the EditSaveFile Source-File -1"},"UNACHIEVABLE":{"ID":"UNACHIEVABLE","Name":"UNACHIEVABLE","Description":"This achievement cannot be unlocked."},"CHALLENGE_BN13":{"ID":"CHALLENGE_BN13","Name":"BN13: Challenge","Description":"Complete BN13 without Stanek\'s Gift."},"DEVMENU":{"ID":"DEVMENU","Name":"Exploit: you\'re not meant to access this","Description":"Open the dev menu."},"RAINBOW":{"ID":"RAINBOW","Name":"Exploit: rainbow","Description":"Make good use of the rainbow."},"TRUE_RECURSION":{"ID":"TRUE_RECURSION","Name":"Exploit: true recursion","Description":"Beat BN1 in megabyteburner 2000."}}}')},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var a=n(0),r=n.n(a),i=n(159),o=n(160),s=n(161),l=n(80),c=n.n(l),f=n(1),u=n(133);function m(e){return r.a.createElement(i.a,{TransitionProps:{unmountOnExit:!0}},r.a.createElement(o.a,{expandIcon:r.a.createElement(c.a,null)},r.a.createElement(f.a,null,"Entropy")),r.a.createElement(s.a,null,r.a.createElement(u.a,{label:"Set entropy",placeholder:"entropy",add:t=>{e.player.entropy+=t,e.player.applyEntropy(e.player.entropy)},subtract:t=>{e.player.entropy-=t,e.player.applyEntropy(e.player.entropy)},tons:()=>{e.player.entropy+=1e12,e.player.applyEntropy(e.player.entropy)},reset:()=>{e.player.entropy=0,e.player.applyEntropy(e.player.entropy)}})))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var a=n(0),r=n.n(a),i=n(1158),o=n(1160),s=n(1161),l=n(28),c=n(18);function f(){const e=l.b.Player(),t=l.b.Router(),n=Object(a.useState)(!1)[1];function f(){n(e=>!e)}Object(a.useEffect)(()=>{const e=setInterval(f,200);return()=>clearInterval(e)},[]);const u=e.bladeburner;return null===u?r.a.createElement(r.a.Fragment,null):r.a.createElement(c.a,{display:"flex",flexDirection:"column"},r.a.createElement(c.a,{sx:{display:"grid",gridTemplateColumns:"4fr 8fr",p:1}},r.a.createElement(i.a,{bladeburner:u,player:e,router:t}),r.a.createElement(o.a,{bladeburner:u,player:e})),r.a.createElement(s.a,{bladeburner:u,player:e}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return b}));var a=n(0),r=n.n(a),i=n(24),o=n(56),s=n(20),l=n(6),c=n(29),f=n(105),u=n(1159),m=n(1),h=n(19),d=n(18),p=n(8),g=n(43),y=n(4);function b(e){const[t,n]=Object(a.useState)(!1),b=Object(a.useState)(!1)[1],E=e.bladeburner.rank>=o.a.RankNeededForFaction;return Object(a.useEffect)(()=>{const e=setInterval(()=>b(e=>!e),1e3);return()=>clearInterval(e)},[]),r.a.createElement(g.a,{sx:{p:1,overflowY:"auto",overflowX:"hidden",wordBreak:"break-all"}},r.a.createElement(d.a,{sx:{display:"flex",flexDirection:"column",gap:1,maxHeight:"60vh"}},r.a.createElement(d.a,{sx:{alignSelf:"flex-start",width:"100%"}},r.a.createElement(p.a,{onClick:()=>n(!0),sx:{width:"50%"}},"Travel"),r.a.createElement(h.a,{title:E?"":r.a.createElement(m.a,null,"Rank 25 required.")},r.a.createElement("span",null,r.a.createElement(p.a,{disabled:!E,onClick:function(){if(!E)return;const t=c.a[y.a.Bladeburners];t.isMember||Object(f.d)(t),e.router.toFaction(t)},sx:{width:"50%"}},"Faction"))),r.a.createElement(u.a,{open:t,onClose:()=>n(!1),bladeburner:e.bladeburner})),r.a.createElement(d.a,{display:"flex"},r.a.createElement(h.a,{title:r.a.createElement(m.a,null,"Your rank within the Bladeburner division.")},r.a.createElement(m.a,null,"Rank: ",Object(i.f)(e.bladeburner.rank,2)))),r.a.createElement("br",null),r.a.createElement(d.a,{display:"flex"},r.a.createElement(h.a,{title:r.a.createElement(m.a,null,"Performing actions will use up your stamina.",r.a.createElement("br",null),r.a.createElement("br",null),"Your max stamina is determined primarily by your agility stat.",r.a.createElement("br",null),r.a.createElement("br",null),"Your stamina gain rate is determined by both your agility and your max stamina. Higher max stamina leads to a higher gain rate.",r.a.createElement("br",null),r.a.createElement("br",null),"Once your stamina falls below 50% of its max value, it begins to negatively affect the success rate of your contracts/operations. This penalty is shown in the overview panel. If the penalty is 15%, then this means your success rate would be multipled by 85% (100 - 15).",r.a.createElement("br",null),r.a.createElement("br",null),"Your max stamina and stamina gain rate can also be increased by training, or through skills and Augmentation upgrades.")},r.a.createElement(m.a,null,"Stamina: ",Object(i.f)(e.bladeburner.stamina,3)," / ",Object(i.f)(e.bladeburner.maxStamina,3)))),r.a.createElement("br",null),r.a.createElement(m.a,null,"Stamina Penalty: ",Object(i.f)(100*(1-e.bladeburner.calculateStaminaPenalty()),1),"%"),r.a.createElement("br",null),r.a.createElement(m.a,null,"Team Size: ",Object(i.f)(e.bladeburner.teamSize,0)),r.a.createElement(m.a,null,"Team Members Lost: ",Object(i.f)(e.bladeburner.teamLost,0)),r.a.createElement("br",null),r.a.createElement(m.a,null,"Num Times Hospitalized: ",e.bladeburner.numHosp),r.a.createElement(m.a,null,"Money Lost From Hospitalizations: ",r.a.createElement(s.a,{money:e.bladeburner.moneyLost})),r.a.createElement("br",null),r.a.createElement(m.a,null,"Current City: ",e.bladeburner.city),r.a.createElement(d.a,{display:"flex"},r.a.createElement(h.a,{title:r.a.createElement(m.a,null,"This is your Bladeburner division's estimate of how many Synthoids exist in your current city. An accurate population count increases success rate estimates.")},r.a.createElement(m.a,null,"Est. Synthoid Population: ",l.a.formatPopulation(e.bladeburner.getCurrentCity().popEst)))),r.a.createElement("br",null),r.a.createElement(d.a,{display:"flex"},r.a.createElement(h.a,{title:r.a.createElement(m.a,null,"This is your Bladeburner divison's estimate of how many Synthoid communities exist in your current city.")},r.a.createElement(m.a,null,"Synthoid Communities: ",Object(i.f)(e.bladeburner.getCurrentCity().comms,0)))),r.a.createElement("br",null),r.a.createElement(d.a,{display:"flex"},r.a.createElement(h.a,{title:r.a.createElement(m.a,null,"The city's chaos level due to tensions and conflicts between humans and Synthoids. Having too high of a chaos level can make contracts and operations harder.")},r.a.createElement(m.a,null,"City Chaos: ",Object(i.f)(e.bladeburner.getCurrentCity().chaos)))),r.a.createElement("br",null),e.bladeburner.storedCycles/o.a.CyclesPerSecond*1e3>15e3&&r.a.createElement(r.a.Fragment,null,r.a.createElement(d.a,{display:"flex"},r.a.createElement(h.a,{title:r.a.createElement(m.a,null,"You gain bonus time while offline or when the game is inactive (e.g. when the tab is throttled by browser). Bonus time makes the Bladeburner mechanic progress faster, up to 5x the normal speed.")},r.a.createElement(m.a,null,"Bonus time:"," ",Object(i.d)(e.bladeburner.storedCycles/o.a.CyclesPerSecond*1e3)))),r.a.createElement("br",null)),r.a.createElement(m.a,null,"Skill Points: ",Object(i.f)(e.bladeburner.skillPoints,0)),r.a.createElement("br",null),r.a.createElement(m.a,null,"Aug. Success Chance mult: ",Object(i.f)(100*e.player.mults.bladeburner_success_chance,1),"%",r.a.createElement("br",null),"Aug. Max Stamina mult: ",Object(i.f)(100*e.player.mults.bladeburner_max_stamina,1),"%",r.a.createElement("br",null),"Aug. Stamina Gain mult: ",Object(i.f)(100*e.player.mults.bladeburner_stamina_gain,1),"%",r.a.createElement("br",null),"Aug. Field Analysis mult: ",Object(i.f)(100*e.player.mults.bladeburner_analysis,1),"%")))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var a=n(0),r=n.n(a),i=n(478),o=n(37),s=n(15),l=n(5),c=n(1),f=n(8);function u(e){function t(t){e.bladeburner.city=t,e.onClose()}return r.a.createElement(o.a,{open:e.open,onClose:e.onClose},r.a.createElement(r.a.Fragment,null,r.a.createElement(c.a,null,"Travel to a different city for your Bladeburner activities. This does not cost any money. The city you are in for your Bladeburner duties does not affect your location in the game otherwise."),l.a.DisableASCIIArt?Object.values(s.a).map(e=>r.a.createElement(f.a,{key:e,onClick:()=>t(e)},e)):r.a.createElement(i.a,{currentCity:e.bladeburner.city,onTravel:e=>t(e)})))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var a=n(0),r=n.n(a),i=n(25),o=n(43),s=n(251),l=n(96),c=n(18),f=n(1),u=n(75),m=n(118),h=n(142);const d=Object(m.a)(e=>Object(h.a)({textfield:{margin:e.spacing(0),width:"100%"},input:{backgroundColor:e.colors.backgroundsecondary},nopadding:{padding:e.spacing(0)},preformatted:{whiteSpace:"pre-wrap",margin:e.spacing(0)},list:{padding:e.spacing(0),height:"100%"}}));function p(e){return r.a.createElement(l.a,{sx:{p:0}},r.a.createElement(f.a,null,e.content))}function g(e){const t=d(),[n,s]=Object(a.useState)(""),l=Object(a.useState)(!1)[1],m=Object(a.useRef)(null);const[h,p]=Object(a.useState)(e.bladeburner.consoleHistory.length);function g(){l(e=>!e)}return Object(a.useEffect)(()=>{const e=setInterval(g,1e3);return()=>{clearInterval(e)}},[]),r.a.createElement(o.a,{sx:{p:1}},r.a.createElement(c.a,{sx:{height:"60vh",paddingBottom:"8px",display:"flex",alignItems:"stretch",whiteSpace:"pre-wrap"},onClick:function(){m.current&&m.current.focus()}},r.a.createElement(c.a,null,r.a.createElement(y,{entries:[...e.bladeburner.consoleLogs]}))),r.a.createElement(u.a,{classes:{root:t.textfield},autoFocus:!0,tabIndex:1,type:"text",inputRef:m,value:n,onChange:function(e){s(e.target.value)},onKeyDown:function(t){t.key===i.a.ENTER&&(t.preventDefault(),n.length>0&&(e.bladeburner.postToConsole("> "+n),e.bladeburner.executeConsoleCommands(e.player,n),p(e.bladeburner.consoleHistory.length),s("")));const a=e.bladeburner.consoleHistory;if(t.key===i.a.UP_ARROW){let e=h;const n=a.length;if(0===n)return;(e<0||e>n)&&p(n),0!==e&&(e-=1),p(e);const r=a[e];t.currentTarget.value=r,s(r)}if(t.key===i.a.DOWN_ARROW){const e=h,n=a.length;if(0==n)return;if((e<0||e>n)&&p(n),e==n||e==n-1)p(n),t.currentTarget.value="";else{p(h+1);const e=a[h+1];t.currentTarget.value=e,s(e)}}},InputProps:{className:t.input,startAdornment:r.a.createElement(r.a.Fragment,null,r.a.createElement(f.a,null,"> ")),spellCheck:!1}}))}function y({entries:e}){const t=Object(a.useRef)(null);return Object(a.useEffect)(()=>{t.current&&(t.current.scrollTop=t.current.scrollHeight)},[e.length]),r.a.createElement(s.a,{sx:{height:"100%",overflow:"auto",p:1},ref:t},e&&e.map((e,t)=>r.a.createElement(p,{key:t,content:e})))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var a=n(0),r=n.n(a),i=n(1162),o=n(1166),s=n(1172),l=n(1177),c=n(1181),f=n(513),u=n(218),m=n(18);function h(e){const[t,n]=r.a.useState(0);return r.a.createElement(r.a.Fragment,null,r.a.createElement(f.a,{variant:"fullWidth",value:t,onChange:function(e,t){n(t)}},r.a.createElement(u.a,{label:"General"}),r.a.createElement(u.a,{label:"Contracts"}),r.a.createElement(u.a,{label:"Operations"}),r.a.createElement(u.a,{label:"BlackOps"}),r.a.createElement(u.a,{label:"Skills"})),r.a.createElement(m.a,{sx:{p:1}},0===t&&r.a.createElement(i.a,{bladeburner:e.bladeburner,player:e.player}),1===t&&r.a.createElement(o.a,{bladeburner:e.bladeburner,player:e.player}),2===t&&r.a.createElement(s.a,{bladeburner:e.bladeburner,player:e.player}),3===t&&r.a.createElement(l.a,{bladeburner:e.bladeburner,player:e.player}),4===t&&r.a.createElement(c.a,{bladeburner:e.bladeburner})))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var a=n(0),r=n(1163),i=n(1);function o(e){return a.createElement(a.Fragment,null,a.createElement(i.a,null,"These are generic actions that will assist you in your Bladeburner duties."),a.createElement(r.a,{bladeburner:e.bladeburner,player:e.player}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var a=n(0),r=n.n(a),i=n(1164),o=n(263);function s(e){const t=[];for(const e of Object.keys(o.a))o.a.hasOwnProperty(e)&&t.push(o.a[e]);return r.a.createElement(r.a.Fragment,null,t.map(t=>r.a.createElement(i.a,{key:t.name,bladeburner:e.bladeburner,action:t,player:e.player})))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var a=n(0),r=n.n(a),i=n(41),o=n(256),s=n(24),l=n(1165),c=n(169),f=n(379),u=n(1),m=n(18),h=n(43);function d(e){const t=Object(a.useState)(!1)[1];const n=e.action.name===e.bladeburner.action.name,d=Math.min(e.bladeburner.actionTimeCurrent+e.bladeburner.actionTimeOverflow,e.bladeburner.actionTimeToComplete),p=function(){switch(e.action.name){case"Training":case"Field Analysis":return 30;case"Diplomacy":case"Hyperbolic Regeneration Chamber":case"Incite Violence":return 60;case"Recruitment":return e.bladeburner.getRecruitmentTime(e.player)}return-1}(),g="Recruitment"===e.action.name?Math.max(0,Math.min(e.bladeburner.getRecruitmentSuccessChance(e.player),1)):-1,y=l.a[e.action.name];if(void 0===y)throw new Error("Cannot find data for "+e.action.name);return r.a.createElement(h.a,{sx:{my:1,p:1}},n?r.a.createElement(r.a.Fragment,null,r.a.createElement(c.a,{value:e.action.name}),r.a.createElement(u.a,null,"(IN PROGRESS - ",Object(s.f)(d,0)," /"," ",Object(s.f)(e.bladeburner.actionTimeToComplete,0),")"),r.a.createElement(u.a,null,Object(o.a)({progress:d/e.bladeburner.actionTimeToComplete}))):r.a.createElement(m.a,{display:"flex",flexDirection:"row",alignItems:"center"},r.a.createElement(c.a,{value:e.action.name}),r.a.createElement(f.a,{bladeburner:e.bladeburner,type:i.a[e.action.name],name:e.action.name,rerender:function(){t(e=>!e)}})),r.a.createElement("br",null),r.a.createElement("br",null),r.a.createElement(u.a,null,y.desc),r.a.createElement("br",null),r.a.createElement("br",null),r.a.createElement(u.a,null,"Time Required: ",Object(s.d)(1e3*p),-1!==g&&r.a.createElement(r.a.Fragment,null,r.a.createElement("br",null),"Estimated success chance: ",Object(s.f)(100*g,1),"%")))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var a=n(0),r=n.n(a);const i={Training:{desc:r.a.createElement(r.a.Fragment,null,"Improve your abilities at the Bladeburner unit's specialized training center. Doing this gives experience for all combat stats and also increases your max stamina.")},"Field Analysis":{desc:r.a.createElement(r.a.Fragment,null,"Mine and analyze Synthoid-related data. This improves the Bladeburner unit's intelligence on Synthoid locations and activities. Completing this action will improve the accuracy of your Synthoid population estimated in the current city.",r.a.createElement("br",null),r.a.createElement("br",null),"Does NOT require stamina.")},Recruitment:{desc:r.a.createElement(r.a.Fragment,null,"Attempt to recruit members for your Bladeburner team. These members can help you conduct operations.",r.a.createElement("br",null),r.a.createElement("br",null),"Does NOT require stamina.")},Diplomacy:{desc:r.a.createElement(r.a.Fragment,null,"Improve diplomatic relations with the Synthoid population. Completing this action will reduce the Chaos level in your current city.",r.a.createElement("br",null),r.a.createElement("br",null),"Does NOT require stamina.")},"Hyperbolic Regeneration Chamber":{desc:r.a.createElement(r.a.Fragment,null,"Enter cryogenic stasis using the Bladeburner division's hi-tech Regeneration Chamber. This will slowly heal your wounds and slightly increase your stamina.",r.a.createElement("br",null),r.a.createElement("br",null))},"Incite Violence":{desc:r.a.createElement(r.a.Fragment,null,"Purposefully stir trouble in the synthoid community in order to gain a political edge. This will generate additional contracts and operations, at the cost of increased Chaos.")}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var a=n(0),r=n(1167),i=n(1);function o(e){return a.createElement(a.Fragment,null,a.createElement(i.a,null,"Complete contracts in order to increase your Bladeburner rank and earn money. Failing a contract will cause you to lose HP, which can lead to hospitalization.",a.createElement("br",null),a.createElement("br",null),"You can unlock higher-level contracts by successfully completing them. Higher-level contracts are more difficult, but grant more rank, experience, and money."),a.createElement(r.a,{bladeburner:e.bladeburner,player:e.player}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var a=n(0),r=n.n(a),i=n(1168);function o(e){const t=Object.keys(e.bladeburner.contracts),n=e.bladeburner.contracts;return r.a.createElement(r.a.Fragment,null,t.map(t=>r.a.createElement(i.a,{key:t,bladeburner:e.bladeburner,action:n[t],player:e.player})))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var a=n(0),r=n.n(a),i=n(41),o=n(256),s=n(24),l=n(1169),c=n(479),f=n(169),u=n(625),m=n(628),h=n(379),d=n(1),p=n(43);function g(e){const t=Object(a.useState)(!1)[1];function n(){t(e=>!e)}const g=e.bladeburner.action.type===i.a.Contract&&e.action.name===e.bladeburner.action.name,y=Math.min(e.bladeburner.actionTimeCurrent+e.bladeburner.actionTimeOverflow,e.bladeburner.actionTimeToComplete),b=e.action.getActionTime(e.bladeburner,e.player),E=l.a[e.action.name];if(void 0===E)throw new Error("Cannot find data for "+e.action.name);return r.a.createElement(p.a,{sx:{my:1,p:1}},g?r.a.createElement(r.a.Fragment,null,r.a.createElement(d.a,null,r.a.createElement(f.a,{value:e.action.name})," (IN PROGRESS - ",Object(s.f)(y,0)," /"," ",Object(s.f)(e.bladeburner.actionTimeToComplete,0),")"),r.a.createElement(d.a,null,Object(o.a)({progress:y/e.bladeburner.actionTimeToComplete}))):r.a.createElement(r.a.Fragment,null,r.a.createElement(f.a,{value:e.action.name}),r.a.createElement(h.a,{bladeburner:e.bladeburner,type:i.a.Contract,name:e.action.name,rerender:n})),r.a.createElement("br",null),r.a.createElement("br",null),r.a.createElement(u.a,{action:e.action,bladeburner:e.bladeburner,isActive:g,rerender:n}),r.a.createElement("br",null),r.a.createElement("br",null),r.a.createElement(d.a,null,E.desc,r.a.createElement("br",null),r.a.createElement("br",null),r.a.createElement(c.a,{action:e.action,bladeburner:e.bladeburner}),r.a.createElement("br",null),"Time Required: ",Object(s.d)(1e3*b),r.a.createElement("br",null),"Contracts remaining: ",Math.floor(e.action.count),r.a.createElement("br",null),"Successes: ",e.action.successes,r.a.createElement("br",null),"Failures: ",e.action.failures),r.a.createElement("br",null),r.a.createElement(m.a,{rerender:n,action:e.action}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var a=n(0),r=n.n(a);const i={Tracking:{desc:r.a.createElement(r.a.Fragment,null,"Identify and locate Synthoids. This contract involves reconnaissance and information-gathering ONLY. Do NOT engage. Stealth is of the utmost importance.",r.a.createElement("br",null),r.a.createElement("br",null),"Successfully completing Tracking contracts will slightly improve your Synthoid population estimate for whatever city you are currently in.")},"Bounty Hunter":{desc:r.a.createElement(r.a.Fragment,null,"Hunt down and capture fugitive Synthoids. These Synthoids are wanted alive.",r.a.createElement("br",null),r.a.createElement("br",null),"Successfully completing a Bounty Hunter contract will lower the population in your current city, and will also increase its chaos level.")},Retirement:{desc:r.a.createElement(r.a.Fragment,null,"Hunt down and retire (kill) rogue Synthoids.",r.a.createElement("br",null),r.a.createElement("br",null),"Successfully completing a Retirement contract will lower the population in your current city, and will also increase its chaos level.")}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var a=n(0),r=n.n(a),i=n(624),o=n(1),s=n(19);function l(){return r.a.createElement(s.a,{title:r.a.createElement(o.a,null,"This action involves stealth")},i.b)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var a=n(0),r=n.n(a),i=n(624),o=n(1),s=n(19);function l(){return r.a.createElement(s.a,{title:r.a.createElement(o.a,null,"This action involves retirement")},i.a)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var a=n(0),r=n(1173),i=n(1);function o(e){return a.createElement(a.Fragment,null,a.createElement(i.a,null,"Carry out operations for the Bladeburner division. Failing an operation will reduce your Bladeburner rank. It will also cause you to lose HP, which can lead to hospitalization. In general, operations are harder and more punishing than contracts, but are also more rewarding.",a.createElement("br",null),a.createElement("br",null),"Operations can affect the chaos level and Synthoid population of your current city. The exact effects vary between different Operations.",a.createElement("br",null),a.createElement("br",null),"For operations, you can use a team. You must first recruit team members. Having a larger team will improve your chances of success.",a.createElement("br",null),a.createElement("br",null),"You can unlock higher-level operations by successfully completing them. Higher-level operations are more difficult, but grant more rank and experience."),a.createElement(r.a,{bladeburner:e.bladeburner,player:e.player}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var a=n(0),r=n.n(a),i=n(1174);function o(e){const t=Object.keys(e.bladeburner.operations),n=e.bladeburner.operations;return r.a.createElement(r.a.Fragment,null,t.map(t=>r.a.createElement(i.a,{key:t,bladeburner:e.bladeburner,action:n[t],player:e.player})))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return y}));var a=n(0),r=n.n(a),i=n(41),o=n(256),s=n(24),l=n(479),c=n(625),f=n(628),u=n(379),m=n(629),h=n(1176),d=n(169),p=n(1),g=n(43);function y(e){const t=Object(a.useState)(!1)[1];function n(){t(e=>!e)}const y=e.bladeburner.action.type===i.a.Operation&&e.action.name===e.bladeburner.action.name,b=Math.min(e.bladeburner.actionTimeCurrent+e.bladeburner.actionTimeOverflow,e.bladeburner.actionTimeToComplete),E=e.action.getActionTime(e.bladeburner,e.player),v=h.a[e.action.name];if(void 0===v)throw new Error("Cannot find data for "+e.action.name);return r.a.createElement(g.a,{sx:{my:1,p:1}},y?r.a.createElement(r.a.Fragment,null,r.a.createElement(p.a,null,r.a.createElement(d.a,{value:e.action.name})," (IN PROGRESS - ",Object(s.f)(b,0)," /"," ",Object(s.f)(e.bladeburner.actionTimeToComplete,0),")"),r.a.createElement(p.a,null,Object(o.a)({progress:b/e.bladeburner.actionTimeToComplete}))):r.a.createElement(r.a.Fragment,null,r.a.createElement(d.a,{value:e.action.name}),r.a.createElement(u.a,{bladeburner:e.bladeburner,type:i.a.Operation,name:e.action.name,rerender:n}),r.a.createElement(m.a,{action:e.action,bladeburner:e.bladeburner})),r.a.createElement("br",null),r.a.createElement("br",null),r.a.createElement(c.a,{action:e.action,bladeburner:e.bladeburner,isActive:y,rerender:n}),r.a.createElement("br",null),r.a.createElement("br",null),r.a.createElement(p.a,null,v.desc,r.a.createElement("br",null),r.a.createElement("br",null),r.a.createElement(l.a,{action:e.action,bladeburner:e.bladeburner}),r.a.createElement("br",null),"Time Required: ",Object(s.d)(1e3*E),r.a.createElement("br",null),"Operations remaining: ",Math.floor(e.action.count),r.a.createElement("br",null),"Successes: ",e.action.successes,r.a.createElement("br",null),"Failures: ",e.action.failures),r.a.createElement("br",null),r.a.createElement(f.a,{rerender:n,action:e.action}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var a=n(0),r=n.n(a),i=n(14),o=n(37),s=n(1),l=n(8),c=n(75);function f(e){const[t,n]=Object(a.useState)();return r.a.createElement(o.a,{open:e.open,onClose:e.onClose},r.a.createElement(s.a,null,"Enter the amount of team members you would like to take on this Op. If you do not have the specified number of team members, then as many as possible will be used. Note that team members may be lost during operations."),r.a.createElement(c.a,{autoFocus:!0,type:"number",placeholder:"Team size",value:t,onChange:function(t){const a=parseFloat(t.target.value);a>e.bladeburner.teamSize?n(e.bladeburner.teamSize):n(a)}}),r.a.createElement(l.a,{sx:{mx:2},onClick:function(){if(void 0===t)return;const n=Math.round(t);isNaN(n)||n<0?Object(i.a)("Invalid value entered for number of Team Members (must be numeric, positive)"):e.action.teamCount=n,e.onClose()}},"Confirm"))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var a=n(0),r=n.n(a);const i={Investigation:{desc:r.a.createElement(r.a.Fragment,null,"As a field agent, investigate and identify Synthoid populations, movements, and operations.",r.a.createElement("br",null),r.a.createElement("br",null),"Successful Investigation ops will increase the accuracy of your synthoid data.",r.a.createElement("br",null),r.a.createElement("br",null),"You will NOT lose HP from failed Investigation ops.")},"Undercover Operation":{desc:r.a.createElement(r.a.Fragment,null,"Conduct undercover operations to identify hidden and underground Synthoid communities and organizations.",r.a.createElement("br",null),r.a.createElement("br",null),"Successful Undercover ops will increase the accuracy of your synthoid data.")},"Sting Operation":{desc:r.a.createElement(r.a.Fragment,null,"Conduct a sting operation to bait and capture particularly notorious Synthoid criminals.")},Raid:{desc:r.a.createElement(r.a.Fragment,null,"Lead an assault on a known Synthoid community. Note that there must be an existing Synthoid community in your current city in order for this Operation to be successful.")},"Stealth Retirement Operation":{desc:r.a.createElement(r.a.Fragment,null,"Lead a covert operation to retire Synthoids. The objective is to complete the task without drawing any attention. Stealth and discretion are key.")},Assassination:{desc:r.a.createElement(r.a.Fragment,null,"Assassinate Synthoids that have been identified as important, high-profile social and political leaders in the Synthoid communities.")}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var a=n(0),r=n(1178),i=n(1),o=n(4),s=n(28),l=n(57),c=n(8),f=n(380);function u(e){const t=s.b.Router();return a.createElement(a.Fragment,null,a.createElement(i.a,null,"Black Operations (Black Ops) are special, one-time covert operations. Each Black Op must be unlocked successively by completing the one before it.",a.createElement("br",null),a.createElement("br",null),a.createElement("b",null,"Your ultimate goal to climb through the ranks of ",o.a.Bladeburners," is to complete all of the Black Ops."),a.createElement("br",null),a.createElement("br",null),"Like normal operations, you may use a team for Black Ops. Failing a black op will incur heavy HP and rank losses."),e.bladeburner.blackops[l.a.OperationDaedalus]?a.createElement(c.a,{sx:{my:1,p:1},onClick:()=>t.toBitVerse(!1,!1)},a.createElement(f.a,{content:"Destroy w0rld_d34mon"})):a.createElement(r.a,{bladeburner:e.bladeburner,player:e.player}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var a=n(0),r=n.n(a),i=n(274),o=n(1179);function s(e){let t=[];for(const e of Object.keys(i.a))i.a.hasOwnProperty(e)&&t.push(i.a[e]);return t.sort((function(e,t){return e.reqdRank-t.reqdRank})),t=t.filter((n,a)=>!(null==e.bladeburner.blackops[t[a].name]&&0!==a&&null==e.bladeburner.blackops[t[a-1].name])),t=t.reverse(),r.a.createElement(r.a.Fragment,null,t.map(t=>r.a.createElement(o.a,{key:t.name,bladeburner:e.bladeburner,action:t,player:e.player})))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var a=n(0),r=n.n(a),i=n(24),o=n(41),s=n(256),l=n(629),c=n(1180),f=n(169),u=n(479),m=n(379),h=n(1),d=n(43);function p(e){const t=Object(a.useState)(!1)[1];if(null!=e.bladeburner.blackops[e.action.name])return r.a.createElement(d.a,{sx:{my:1,p:1}},r.a.createElement(h.a,null,e.action.name," (COMPLETED)"));const n=e.bladeburner.action.type===o.a.BlackOperation&&e.action.name===e.bladeburner.action.name,p=e.action.getActionTime(e.bladeburner,e.player),g=e.bladeburner.rank>=e.action.reqdRank,y=Math.min(e.bladeburner.actionTimeCurrent+e.bladeburner.actionTimeOverflow,e.bladeburner.actionTimeToComplete),b=c.a[e.action.name];if(void 0===b)throw new Error("Cannot find data for "+e.action.name);return r.a.createElement(d.a,{sx:{my:1,p:1}},n?r.a.createElement(r.a.Fragment,null,r.a.createElement(r.a.Fragment,null,r.a.createElement(f.a,{value:e.action.name}),r.a.createElement(h.a,null,"(IN PROGRESS - ",Object(i.f)(y,0)," /"," ",Object(i.f)(e.bladeburner.actionTimeToComplete,0),")"),r.a.createElement(h.a,null,Object(s.a)({progress:y/e.bladeburner.actionTimeToComplete})))):r.a.createElement(r.a.Fragment,null,r.a.createElement(f.a,{value:e.action.name}),r.a.createElement(m.a,{bladeburner:e.bladeburner,type:o.a.BlackOperation,name:e.action.name,rerender:function(){t(e=>!e)}}),r.a.createElement(l.a,{action:e.action,bladeburner:e.bladeburner})),r.a.createElement("br",null),r.a.createElement("br",null),r.a.createElement(h.a,null,b.desc),r.a.createElement("br",null),r.a.createElement("br",null),r.a.createElement(h.a,{color:g?"primary":"error"},"Required Rank: ",Object(i.f)(e.action.reqdRank,0)),r.a.createElement("br",null),r.a.createElement(h.a,null,r.a.createElement(u.a,{action:e.action,bladeburner:e.bladeburner}),r.a.createElement("br",null),"Time Required: ",Object(i.d)(1e3*p)))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var a=n(0),r=n.n(a),i=n(4),o=n(15),s=n(57);const l={[s.a.OperationTyphoon]:{desc:r.a.createElement(r.a.Fragment,null,"Obadiah Zenyatta is the leader of a RedWater PMC. It has long been known among the intelligence community that Zenyatta, along with the rest of the PMC, is a Synthoid.",r.a.createElement("br",null),r.a.createElement("br",null),"The goal of ",s.a.OperationTyphoon," is to find and eliminate Zenyatta and RedWater by any means necessary. After the task is completed, the actions must be covered up from the general public.")},[s.a.OperationZero]:{desc:r.a.createElement(r.a.Fragment,null,"AeroCorp is one of the world's largest defense contractors. Its leader, Steve Watataki, is thought to be a supporter of Synthoid rights. He must be removed.",r.a.createElement("br",null),r.a.createElement("br",null),"The goal of ",s.a.OperationZero," is to covertly infiltrate AeroCorp and uncover any incriminating evidence or information against Watataki that will cause him to be removed from his position at AeroCorp. Incriminating evidence can be fabricated as a last resort. Be warned that AeroCorp has some of the most advanced security measures in the world.")},[s.a.OperationX]:{desc:r.a.createElement(r.a.Fragment,null,"We have recently discovered an underground publication group called Samizdat. Even though most of their publications are nonsensical conspiracy theories, the average human is gullible enough to believe them. Many of their works discuss Synthoids and pose a threat to society. The publications are spreading rapidly in China and other Eastern countries.",r.a.createElement("br",null),r.a.createElement("br",null),"Samizdat has done a good job of keeping hidden and anonymous. However, we've just received intelligence that their base of operations is in ",o.a.Ishima,"'s underground sewer systems. Your task is to investigate the sewer systems, and eliminate Samizdat. They must never publish anything again.")},[s.a.OperationTitan]:{desc:r.a.createElement(r.a.Fragment,null,"Several months ago Titan Laboratories' Bioengineering department was infiltrated by Synthoids. As far as we know, Titan Laboratories' management has no knowledge about this. We don't know what the Synthoids are up to, but the research that they could be conducting using Titan Laboraties' vast resources is potentially very dangerous.",r.a.createElement("br",null),r.a.createElement("br",null),"Your goal is to enter and destroy the Bioengineering department's facility in ",o.a.Aevum,". The task is not just to retire the Synthoids there, but also to destroy any information or research at the facility that is relevant to the Synthoids and their goals.")},[s.a.OperationAres]:{desc:r.a.createElement(r.a.Fragment,null,"One of our undercover agents, Agent Carter, has informed us of a massive weapons deal going down in Dubai between rogue Russian militants and a radical Synthoid community. These weapons are next-gen plasma and energy weapons. It is critical for the safety of humanity that this deal does not happen.",r.a.createElement("br",null),r.a.createElement("br",null),"Your task is to intercept the deal. Leave no survivors.")},[s.a.OperationArchangel]:{desc:r.a.createElement(r.a.Fragment,null,"Our analysts have discovered that the popular Red Rabbit brothel in Amsterdam is run and 'staffed' by MK-VI Synthoids. Intelligence suggests that the profit from this brothel is used to fund a large black market arms trafficking operation.",r.a.createElement("br",null),r.a.createElement("br",null),"The goal of this operation is to take out the leaders that are running the Red Rabbit brothel. Try to limit the number of other casualties, but do what you must to complete the mission.")},[s.a.OperationJuggernaut]:{desc:r.a.createElement(r.a.Fragment,null,"The CIA has just encountered a new security threat. A new criminal group, lead by a shadowy operative who calls himself Juggernaut, has been smuggling drugs and weapons (including suspected bioweapons) into"," ",o.a.Sector12,". We also have reason to believe they tried to break into one of Universal Energy's facilities in order to cause a city-wide blackout. The CIA suspects that Juggernaut is a heavily-augmented Synthoid, and have thus enlisted our help.",r.a.createElement("br",null),r.a.createElement("br",null),"Your mission is to eradicate Juggernaut and his followers.")},[s.a.OperationRedDragon]:{desc:r.a.createElement(r.a.Fragment,null,"The ",i.a.Tetrads," criminal organization is suspected of reverse-engineering the MK-VI Synthoid design. We believe they altered and possibly improved the design and began manufacturing their own Synthoid models in order to bolster their criminal activities.",r.a.createElement("br",null),r.a.createElement("br",null),"Your task is to infiltrate and destroy the ",i.a.Tetrads,"' base of operations in Los Angeles. Intelligence tells us that their base houses one of their Synthoid manufacturing units.")},[s.a.OperationK]:{desc:r.a.createElement(r.a.Fragment,null,"CODE RED SITUATION. Our intelligence tells us that VitaLife has discovered a new android cloning technology. This technology is supposedly capable of cloning Synthoids, not only physically but also their advanced AI modules. We do not believe that VitaLife is trying to use this technology illegally or maliciously, but if any Synthoids were able to infiltrate the corporation and take advantage of this technology then the results would be catastrophic.",r.a.createElement("br",null),r.a.createElement("br",null),"We do not have the power or jurisdiction to shut this down through legal or political means, so we must resort to a covert operation. Your goal is to destroy this technology and eliminate anyone who was involved in its creation.")},[s.a.OperationDeckard]:{desc:r.a.createElement(r.a.Fragment,null,"Despite your success in eliminating VitaLife's new android-replicating technology in"," ",s.a.OperationK,", we've discovered that a small group of MK-VI Synthoids were able to make off with the schematics and design of the technology before the Operation. It is almost a certainty that these Synthoids are some of the rogue MK-VI ones from the Synthoid Uprising.",r.a.createElement("br",null),r.a.createElement("br",null),"The goal of ",s.a.OperationDeckard," is to hunt down these Synthoids and retire them. I don't need to tell you how critical this mission is.")},[s.a.OperationTyrell]:{desc:r.a.createElement(r.a.Fragment,null,"A week ago ",i.a.BladeIndustries," reported a small break-in at one of their ",o.a.Aevum," ","Augmentation storage facilities. We figured out that ",i.a.TheDarkArmy," was behind the heist, and didn't think any more of it. However, we've just discovered that several known MK-VI Synthoids were part of that break-in group.",r.a.createElement("br",null),r.a.createElement("br",null),"We cannot have Synthoids upgrading their already-enhanced abilities with Augmentations. Your task is to hunt down associated ",i.a.TheDarkArmy," members and eliminate them.")},[s.a.OperationWallace]:{desc:r.a.createElement(r.a.Fragment,null,"Based on information gathered from ",s.a.OperationTyrell,", we've discovered that"," ",i.a.TheDarkArmy," was well aware that there were Synthoids amongst their ranks. Even worse, we believe that ",i.a.TheDarkArmy," is working together with other criminal organizations such as"," ",i.a.TheSyndicate," and that they are planning some sort of large-scale takeover of multiple major cities, most notably ",o.a.Aevum,". We suspect that Synthoids have infiltrated the ranks of these criminal factions and are trying to stage another Synthoid uprising.",r.a.createElement("br",null),r.a.createElement("br",null),"The best way to deal with this is to prevent it before it even happens. The goal of"," ",s.a.OperationWallace," is to destroy ",i.a.TheDarkArmy," and Syndicate factions in"," ",o.a.Aevum," immediately. Leave no survivors.")},[s.a.OperationShoulderOfOrion]:{desc:r.a.createElement(r.a.Fragment,null,"China's Solaris Space Systems is secretly launching the first manned spacecraft in over a decade using Synthoids. We believe China is trying to establish the first off-world colonies.",r.a.createElement("br",null),r.a.createElement("br",null),"The mission is to prevent this launch without instigating an international conflict. When you accept this mission you will be officially disavowed by the NSA and the national government until after you successfully return. In the event of failure, all of the operation's team members must not let themselves be captured alive.")},[s.a.OperationHyron]:{desc:r.a.createElement(r.a.Fragment,null,"Our intelligence tells us that ",i.a.FulcrumSecretTechnologies," is developing a quantum supercomputer using human brains as core processors. This supercomputer is rumored to be able to store vast amounts of data and perform computations unmatched by any other supercomputer on the planet. But more importantly, the use of organic human brains means that the supercomputer may be able to reason abstractly and become self-aware.",r.a.createElement("br",null),r.a.createElement("br",null),"I do not need to remind you why sentient-level AIs pose a serious threat to all of mankind.",r.a.createElement("br",null),r.a.createElement("br",null),"The research for this project is being conducted at one of ",i.a.FulcrumSecretTechnologies," secret facilities in ",o.a.Aevum,", codenamed 'Alpha Ranch'. Infiltrate the compound, delete and destroy the work, and then find and kill the project lead.")},[s.a.OperationMorpheus]:{desc:r.a.createElement(r.a.Fragment,null,"DreamSense Technologies is an advertising company that uses special technology to transmit their ads into the people's dreams and subconcious. They do this using broadcast transmitter towers. Based on information from our agents and informants in ",o.a.Chongqing,", we have reason to believe that one of the broadcast towers there has been compromised by Synthoids and is being used to spread pro-Synthoid propaganda.",r.a.createElement("br",null),r.a.createElement("br",null),"The mission is to destroy this broadcast tower. Speed and stealth are of the utmost importance for this.")},[s.a.OperationIonStorm]:{desc:r.a.createElement(r.a.Fragment,null,"Our analysts have uncovered a gathering of MK-VI Synthoids that have taken up residence in the"," ",o.a.Sector12," Slums. We don't know if they are rogue Synthoids from the Uprising, but we do know that they have been stockpiling weapons, money, and other resources. This makes them dangerous.",r.a.createElement("br",null),r.a.createElement("br",null),"This is a full-scale assault operation to find and retire all of these Synthoids in the ",o.a.Sector12," ","Slums.")},[s.a.OperationAnnihilus]:{desc:r.a.createElement(r.a.Fragment,null,"Our superiors have ordered us to eradicate everything and everyone in an underground facility located in"," ",o.a.Aevum,". They tell us that the facility houses many dangerous Synthoids and belongs to a terrorist organization called '",i.a.TheCovenant,"'. We have no prior intelligence about this organization, so you are going in blind.")},[s.a.OperationUltron]:{desc:r.a.createElement(r.a.Fragment,null,i.a.OmniTekIncorporated,", the original designer and manufacturer of Synthoids, has notified us of a malfunction in their AI design. This malfunction, when triggered, causes MK-VI Synthoids to become radicalized and seek out the destruction of humanity. They say that this bug affects all MK-VI Synthoids, not just the rogue ones from the Uprising.",r.a.createElement("br",null),r.a.createElement("br",null),i.a.OmniTekIncorporated," has also told us they believe someone has triggered this malfunction in a large group of MK-VI Synthoids, and that these newly-radicalized Synthoids are now amassing in"," ",o.a.Volhaven," to form a terrorist group called Ultron.",r.a.createElement("br",null),r.a.createElement("br",null),"Intelligence suggests Ultron is heavily armed and that their members are augmented. We believe Ultron is making moves to take control of and weaponize DeltaOne's Tactical High-Energy Satellite Laser Array (THESLA).",r.a.createElement("br",null),r.a.createElement("br",null),"Your task is to find and destroy Ultron.")},[s.a.OperationCenturion]:{desc:r.a.createElement(r.a.Fragment,null,"D)@#)($M)C0293c40($*)@#D0JUMP3Rm0C<*@#)*$)#02c94830c(#$*D)",r.a.createElement("br",null),r.a.createElement("br",null),"Throughout all of humanity's history, we have relied on technology to survive, conquer, and progress. Its advancement became our primary goal. And at the peak of human civilization technology turned into power. Global, absolute power.",r.a.createElement("br",null),r.a.createElement("br",null),"It seems that the universe is not without a sense of irony.",r.a.createElement("br",null),r.a.createElement("br",null),"D)@#)($M)C0293c40($*)@#D0JUMP3Rm0C<*@#)*$)#02c94830c(#$*D)")},[s.a.OperationVindictus]:{desc:r.a.createElement(r.a.Fragment,null,"D)@#)($M)C0293c40($*)@#D0JUMP3Rm0C<*@#)*$)#02c94830c(#$*D)",r.a.createElement("br",null),r.a.createElement("br",null),"The bits are all around us. The daemons that hold the Node together can manifest themselves in many different ways.",r.a.createElement("br",null),r.a.createElement("br",null),"D)@#)($M)C0293c40($*)@#D0JUMP3Rm0C<*@#)*$)#02c94830c(#$*D)")},[s.a.OperationDaedalus]:{desc:r.a.createElement(r.a.Fragment,null," Yesterday we obeyed kings and bent our neck to emperors. Today we kneel only to truth.")}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var a=n(0),r=n.n(a),i=n(1182),o=n(56),s=n(24),l=n(1);function c(e){const t=Object(a.useState)(!1)[1],n=e.bladeburner.skillMultipliers;function c(e){return e&&1!==e}return r.a.createElement(r.a.Fragment,null,r.a.createElement(l.a,null,r.a.createElement("strong",null,"Skill Points: ",Object(s.f)(e.bladeburner.skillPoints,0))),r.a.createElement(l.a,null,"You will gain one skill point every ",o.a.RanksPerSkillPoint," ranks.",r.a.createElement("br",null),"Note that when upgrading a skill, the benefit for that skill is additive. However, the effects of different skills with each other is multiplicative."),c(n.successChanceAll)&&r.a.createElement(l.a,null,"Total Success Chance: x",Object(s.f)(n.successChanceAll,3)),c(n.successChanceStealth)&&r.a.createElement(l.a,null,"Stealth Success Chance: x",Object(s.f)(n.successChanceStealth,3)),c(n.successChanceKill)&&r.a.createElement(l.a,null,"Retirement Success Chance: x",Object(s.f)(n.successChanceKill,3)),c(n.successChanceContract)&&r.a.createElement(l.a,null,"Contract Success Chance: x",Object(s.f)(n.successChanceContract,3)),c(n.successChanceOperation)&&r.a.createElement(l.a,null,"Operation Success Chance: x",Object(s.f)(n.successChanceOperation,3)),c(n.successChanceEstimate)&&r.a.createElement(l.a,null,"Synthoid Data Estimate: x",Object(s.f)(n.successChanceEstimate,3)),c(n.actionTime)&&r.a.createElement(l.a,null,"Action Time: x",Object(s.f)(n.actionTime,3)),c(n.effHack)&&r.a.createElement(l.a,null,"Hacking Skill: x",Object(s.f)(n.effHack,3)),c(n.effStr)&&r.a.createElement(l.a,null,"Strength: x",Object(s.f)(n.effStr,3)),c(n.effDef)&&r.a.createElement(l.a,null,"Defense: x",Object(s.f)(n.effDef,3)),c(n.effDex)&&r.a.createElement(l.a,null,"Dexterity: x",Object(s.f)(n.effDex,3)),c(n.effAgi)&&r.a.createElement(l.a,null,"Agility: x",Object(s.f)(n.effAgi,3)),c(n.effCha)&&r.a.createElement(l.a,null,"Charisma: x",Object(s.f)(n.effCha,3)),c(n.effInt)&&r.a.createElement(l.a,null,"Intelligence: x",Object(s.f)(n.effInt,3)),c(n.stamina)&&r.a.createElement(l.a,null,"Stamina: x",Object(s.f)(n.stamina,3)),c(n.money)&&r.a.createElement(l.a,null,"Contract Money: x",Object(s.f)(n.money,3)),c(n.expGain)&&r.a.createElement(l.a,null,"Exp Gain: x",Object(s.f)(n.expGain,3)),r.a.createElement(i.a,{bladeburner:e.bladeburner,onUpgrade:()=>t(e=>!e)}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var a=n(0),r=n(1183),i=n(230);function o(e){return a.createElement(a.Fragment,null,Object.keys(i.a).map(t=>a.createElement(r.a,{key:t,bladeburner:e.bladeburner,skill:i.a[t],onUpgrade:e.onUpgrade})))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var a=n(0),r=n.n(a),i=n(169),o=n(24),s=n(1),l=n(112),c=n(18),f=n(43),u=n(622),m=n.n(u),h=n(546),d=n.n(h);function p(e){const t=e.skill.name;let n=0;e.bladeburner.skills[t]&&!isNaN(e.bladeburner.skills[t])&&(n=e.bladeburner.skills[t]);const a=e.skill.calculateCost(n),u=e.bladeburner.skillPoints>=a,h=!!e.skill.maxLvl&&n>=e.skill.maxLvl;return r.a.createElement(f.a,{sx:{my:1,p:1}},r.a.createElement(c.a,{display:"flex",flexDirection:"row",alignItems:"center"},r.a.createElement(i.a,{variant:"h6",color:"primary",value:e.skill.name}),!u||h?r.a.createElement(l.a,{disabled:!0},r.a.createElement(d.a,null)):r.a.createElement(l.a,{onClick:function(){e.bladeburner.skillPoints<a||(e.bladeburner.skillPoints-=a,e.bladeburner.upgradeSkill(e.skill),e.onUpgrade())}},r.a.createElement(m.a,null))),r.a.createElement(s.a,null,"Level: ",n),h?r.a.createElement(s.a,null,"MAX LEVEL"):r.a.createElement(s.a,null,"Skill Points required: ",Object(o.f)(a,0)),r.a.createElement(s.a,null,e.skill.desc))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var a=n(0),r=n.n(a),i=n(1185),o=n(1204),s=n(1206),l=n(28),c=n(143),f=n(513),u=n(218);function m(){const e=l.b.Player(),t=function(){if(null===e.gang)throw new Error("Gang should not be null");return e.gang}(),[n,m]=r.a.useState(0);const h=Object(a.useState)(!1)[1];return Object(a.useEffect)(()=>{const e=setInterval(()=>h(e=>!e),200);return()=>clearInterval(e)},[]),r.a.createElement(c.a.Gang.Provider,{value:t},r.a.createElement(f.a,{variant:"fullWidth",value:n,onChange:function(e,t){m(t)},sx:{minWidth:"fit-content",maxWidth:"45%"}},r.a.createElement(u.a,{label:"Management"}),r.a.createElement(u.a,{label:"Equipment"}),r.a.createElement(u.a,{label:"Territory"})),0===n&&r.a.createElement(i.a,null),1===n&&r.a.createElement(s.a,null),2===n&&r.a.createElement(o.a,null))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var a=n(0),r=n.n(a),i=n(1186),o=n(1188),s=n(143),l=n(1);function c(){const e=Object(s.b)();return r.a.createElement(r.a.Fragment,null,r.a.createElement(l.a,null,"This page is used to manage your gang members and get an overview of your gang's stats.",r.a.createElement("br",null),r.a.createElement("br",null),"If a gang member is not earning much money or respect, the task that you have assigned to that member might be too difficult. Consider training that member's stats or choosing an easier task. The tasks closer to the top of the dropdown list are generally easier. Alternatively, the gang member's low production might be due to the fact that your wanted level is too high. Consider assigning a few members to the '",e.isHackingGang?"Ethical Hacking":"Vigilante Justice","' task to lower your wanted level.",r.a.createElement("br",null),r.a.createElement("br",null),"Installing Augmentations does NOT reset your progress with your Gang. Furthermore, after installing Augmentations, you will automatically be a member of whatever Faction you created your gang with.",r.a.createElement("br",null),r.a.createElement("br",null),"You can also manage your gang programmatically through Netscript using the Gang API"),r.a.createElement("br",null),r.a.createElement(i.a,null),r.a.createElement("br",null),r.a.createElement(o.a,null))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var a=n(0),r=n.n(a),i=n(29),o=n(24),s=n(6),l=n(121),c=n(139),f=n(81),u=n(1187),m=n(143),h=n(1),d=n(19),p=n(18);function g(){const e=Object(m.b)(),t=100*f.a[e.facName].territory;let n;return n=t<=0?Object(o.f)(0,2):t>=100?Object(o.f)(100,2):Object(o.f)(t,2),r.a.createElement(r.a.Fragment,null,r.a.createElement(p.a,{display:"flex"},r.a.createElement(d.a,{title:r.a.createElement(h.a,null,"Represents the amount of respect your gang has from other gangs and criminal organizations. Your respect affects the amount of money your gang members will earn, and also determines how much reputation you are earning with your gang's corresponding Faction.")},r.a.createElement(h.a,null,"Respect: ",s.a.formatRespect(e.respect)," (",s.a.formatRespect(5*e.respectGainRate)," / sec)"))),r.a.createElement(p.a,{display:"flex"},r.a.createElement(d.a,{title:r.a.createElement(h.a,null,"Represents how much the gang is wanted by law enforcement. The higher your gang's wanted level, the harder it will be for your gang members to make money and earn respect. Note that the minimum wanted level is 1.")},r.a.createElement(h.a,null,"Wanted Level: ",s.a.formatWanted(e.wanted)," (",s.a.formatWanted(5*e.wantedGainRate)," / sec)"))),r.a.createElement(p.a,{display:"flex"},r.a.createElement(d.a,{title:r.a.createElement(h.a,null,"Penalty for respect and money gain rates due to Wanted Level")},r.a.createElement(h.a,null,"Wanted Level Penalty: -",Object(o.f)(100*(1-e.getWantedPenalty()),2),"%"))),r.a.createElement(h.a,null,"Money gain rate: ",r.a.createElement(l.a,{money:5*e.moneyGainRate})),r.a.createElement(p.a,{display:"flex"},r.a.createElement(d.a,{title:r.a.createElement(h.a,null,"The percentage of total territory your Gang controls")},r.a.createElement(h.a,null,"Territory: ",n,"%"))),r.a.createElement(h.a,null,"Faction reputation: ",r.a.createElement(c.a,{reputation:i.a[e.facName].playerReputation})),r.a.createElement(u.a,{gang:e}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var a=n(0),r=n(12),i=n(24),o=n(1),s=n(19),l=n(18);function c(e){const t=1e3/r.a._idleSpeed;if(e.gang.storedCycles/t*1e3<=5e3)return a.createElement(a.Fragment,null);const n=e.gang.storedCycles/t*1e3;return a.createElement(l.a,{display:"flex"},a.createElement(s.a,{title:a.createElement(o.a,null,"You gain bonus time while offline or when the game is inactive (e.g. when the tab is throttled by the browser). Bonus time makes the Gang mechanic progress faster, up to 5x the normal speed.")},a.createElement(o.a,null,"Bonus time: ",Object(i.d)(n))))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var a=n(0),r=n.n(a),i=n(1189),o=n(1202),s=n(143),l=n(75),c=n(18),f=n(352),u=n.n(f),m=n(149);function h(){const e=Object(s.b)(),t=Object(a.useState)(!1)[1],[n,f]=Object(a.useState)(""),[h,d]=Object(a.useState)(!1),p=e.members.filter(e=>e&&e.name.toLowerCase().includes(n)).filter(e=>!h||e.canAscend());return r.a.createElement(r.a.Fragment,null,r.a.createElement(o.a,{onRecruit:()=>t(e=>!e)}),r.a.createElement(l.a,{value:n,onChange:e=>{f(e.target.value.toLowerCase())},autoFocus:!0,InputProps:{startAdornment:r.a.createElement(u.a,null),spellCheck:!1},placeholder:"Filter by member name",sx:{m:1,width:"15%"}}),r.a.createElement(m.a,{checked:h,onChange:e=>d(e),text:"Show only ascendable",tooltip:r.a.createElement(r.a.Fragment,null,"Filter the members list by whether or not the member can be ascended.")}),r.a.createElement(c.a,{display:"grid",sx:{gridTemplateColumns:"repeat(2, 1fr)"}},p.map(e=>r.a.createElement(i.a,{key:e.name,member:e}))))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var a=n(0),r=n.n(a),i=n(1190),o=n(18),s=n(114),l=n(43);function c(e){return r.a.createElement(o.a,{component:l.a,sx:{width:"auto"}},r.a.createElement(o.a,{sx:{m:1}},r.a.createElement(s.a,{primary:r.a.createElement("b",null,e.member.name)}),r.a.createElement(i.a,{member:e.member})))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var a=n(0),r=n.n(a),i=n(1191),o=n(1199),s=n(1201),l=n(1498),c=n(8),f=n(1),u=n(304),m=n.n(u),h=n(481);function d(e){const t=Object(a.useState)(!1)[1],[n,u]=Object(a.useState)(!1),[d,p]=Object(a.useState)(!1);return r.a.createElement(r.a.Fragment,null,e.member.canAscend()&&r.a.createElement(l.a,{sx:{display:"flex",justifyContent:"space-between",my:1}},r.a.createElement(c.a,{onClick:()=>p(!0),style:{flexGrow:1,borderRightWidth:0}},"Ascend"),r.a.createElement(s.a,{open:d,onClose:()=>p(!1),member:e.member,onAscend:()=>t(e=>!e)}),r.a.createElement(c.a,{onClick:()=>u(!0),style:{width:"fit-content",borderLeftWidth:0}},r.a.createElement(m.a,null)),r.a.createElement(h.a,{open:n,onClose:()=>u(!1)},r.a.createElement(f.a,null,"Ascending a Gang Member resets the member's progress and stats in exchange for a permanent boost to their stat multipliers.",r.a.createElement("br",null),r.a.createElement("br",null),"The additional stat multiplier that the Gang Member gains upon ascension is based on the amount of exp they have.",r.a.createElement("br",null),r.a.createElement("br",null),"Upon ascension, the member will lose all of its non-Augmentation Equipment and your gang will lose respect equal to the total respect earned by the member."))),r.a.createElement(l.a,{display:"grid",sx:{gridTemplateColumns:"1fr 1fr",width:"100%",gap:1}},r.a.createElement(i.a,{member:e.member}),r.a.createElement(o.a,{onTaskChange:()=>t(e=>!e),member:e.member})))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return y}));var a=n(0),r=n.n(a),i=n(143),o=n(1),s=n(19),l=n(150),c=n(151),f=n(48),u=n(30),m=n(6),h=n(5),d=n(121),p=n(76),g=n(307);function y(e){const t=Object(g.b)(),n={hack:e.member.calculateAscensionMult(e.member.hack_asc_points),str:e.member.calculateAscensionMult(e.member.str_asc_points),def:e.member.calculateAscensionMult(e.member.def_asc_points),dex:e.member.calculateAscensionMult(e.member.dex_asc_points),agi:e.member.calculateAscensionMult(e.member.agi_asc_points),cha:e.member.calculateAscensionMult(e.member.cha_asc_points)},a=Object(i.b)(),y=[["Money:",r.a.createElement(d.a,{money:5*e.member.calculateMoneyGain(a)})],["Respect:",m.a.formatRespect(5*e.member.calculateRespectGain(a))+" / sec"],["Wanted Level:",m.a.formatWanted(5*e.member.calculateWantedLevelGain(a))+" / sec"],["Total Respect:",""+m.a.formatRespect(e.member.earnedRespect)]];return r.a.createElement(r.a.Fragment,null,r.a.createElement(s.a,{title:r.a.createElement(o.a,null,"Hk: x",m.a.formatMultiplier(e.member.hack_mult*n.hack),"(x",m.a.formatMultiplier(e.member.hack_mult)," Eq, x",m.a.formatMultiplier(n.hack)," ","Asc)",r.a.createElement("br",null),"St: x",m.a.formatMultiplier(e.member.str_mult*n.str),"(x",m.a.formatMultiplier(e.member.str_mult)," Eq, x",m.a.formatMultiplier(n.str)," ","Asc)",r.a.createElement("br",null),"Df: x",m.a.formatMultiplier(e.member.def_mult*n.def),"(x",m.a.formatMultiplier(e.member.def_mult)," Eq, x",m.a.formatMultiplier(n.def)," ","Asc)",r.a.createElement("br",null),"Dx: x",m.a.formatMultiplier(e.member.dex_mult*n.dex),"(x",m.a.formatMultiplier(e.member.dex_mult)," Eq, x",m.a.formatMultiplier(n.dex)," ","Asc)",r.a.createElement("br",null),"Ag: x",m.a.formatMultiplier(e.member.agi_mult*n.agi),"(x",m.a.formatMultiplier(e.member.agi_mult)," Eq, x",m.a.formatMultiplier(n.agi)," ","Asc)",r.a.createElement("br",null),"Ch: x",m.a.formatMultiplier(e.member.cha_mult*n.cha),"(x",m.a.formatMultiplier(e.member.cha_mult)," Eq, x",m.a.formatMultiplier(n.cha)," ","Asc)")},r.a.createElement(l.a,{sx:{display:"table",mb:1,width:"100%"}},r.a.createElement(c.a,null,r.a.createElement(p.a,{name:"Hacking",color:h.a.theme.hack,data:{level:e.member.hack,exp:e.member.hack_exp}}),r.a.createElement(p.a,{name:"Strength",color:h.a.theme.combat,data:{level:e.member.str,exp:e.member.str_exp}}),r.a.createElement(p.a,{name:"Defense",color:h.a.theme.combat,data:{level:e.member.def,exp:e.member.def_exp}}),r.a.createElement(p.a,{name:"Dexterity",color:h.a.theme.combat,data:{level:e.member.dex,exp:e.member.dex_exp}}),r.a.createElement(p.a,{name:"Agility",color:h.a.theme.combat,data:{level:e.member.agi,exp:e.member.agi_exp}}),r.a.createElement(p.a,{name:"Charisma",color:h.a.theme.cha,data:{level:e.member.cha,exp:e.member.cha_exp}}),r.a.createElement(f.a,null,r.a.createElement(u.a,{classes:{root:t.cellNone}},r.a.createElement("br",null))),y.map(([e,n])=>r.a.createElement(f.a,{key:e.toString()+n.toString()},r.a.createElement(u.a,{classes:{root:t.cellNone}},r.a.createElement(o.a,null,e)),r.a.createElement(u.a,{align:"right",classes:{root:t.cellNone}},r.a.createElement(o.a,null,n))))))))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var a=n(0),r=n.n(a),i=n(37),o=n(1),s=n(8);function l(e){return r.a.createElement(i.a,{open:e.open,onClose:e.onClose},r.a.createElement(o.a,null,"Forcefully kill all running scripts? This will also save your game and reload the game."),r.a.createElement(s.a,{onClick:function(){e.killScripts(),e.onClose()}},"KILL"))}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var a=n(104),r=n(21),i=n(12),o=n(11);const s=(e,t)=>{const n=e.jobs[t.name],s=a.a[n];let l=1;e.hasAugmentation(o.a.NeuroreceptorManager)||(l=e.focus?1:i.a.BaseFocusBonus);let c=1+t.favor/100;isNaN(c)&&(c=1);let f=1;e.sourceFileLvl(11)>0&&(f=c);let u=s.calculateJobPerformance(e.hacking,e.strength,e.defense,e.dexterity,e.agility,e.charisma);return u+=e.intelligence/i.a.MaxSkillLevel,{money:l*s.baseSalary*t.salaryMultiplier*e.mults.work_money*r.a.CompanyWorkMoney*f,reputation:l*u*e.mults.company_rep*c,hackExp:l*s.hackingExpGain*t.expMultiplier*e.mults.hacking_exp*r.a.CompanyWorkExpGain,strExp:l*s.strengthExpGain*t.expMultiplier*e.mults.strength_exp*r.a.CompanyWorkExpGain,defExp:l*s.defenseExpGain*t.expMultiplier*e.mults.defense_exp*r.a.CompanyWorkExpGain,dexExp:l*s.dexterityExpGain*t.expMultiplier*e.mults.dexterity_exp*r.a.CompanyWorkExpGain,agiExp:l*s.agilityExpGain*t.expMultiplier*e.mults.agility_exp*r.a.CompanyWorkExpGain,chaExp:l*s.charismaExpGain*t.expMultiplier*e.mults.charisma_exp*r.a.CompanyWorkExpGain,intExp:0}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var a=n(31);const r=[{name:a.j[0],nextPosition:a.j[1],baseSalary:33,charismaEffectiveness:15,charismaExpGain:.02,hackingEffectiveness:85,hackingExpGain:.05,reqdHacking:1,repMultiplier:.9},{name:a.j[1],nextPosition:a.j[2],baseSalary:80,charismaEffectiveness:15,charismaExpGain:.05,hackingEffectiveness:85,hackingExpGain:.1,reqdHacking:51,reqdReputation:8e3,repMultiplier:1.1},{name:a.j[2],nextPosition:a.j[3],baseSalary:165,charismaEffectiveness:20,charismaExpGain:.08,hackingEffectiveness:80,hackingExpGain:.4,reqdCharisma:51,reqdHacking:251,reqdReputation:4e4,repMultiplier:1.3},{name:a.j[3],nextPosition:a.j[4],baseSalary:500,charismaEffectiveness:25,charismaExpGain:.1,hackingEffectiveness:75,hackingExpGain:.8,reqdCharisma:151,reqdHacking:401,reqdReputation:2e5,repMultiplier:1.5},{name:a.j[4],nextPosition:a.j[5],baseSalary:800,charismaEffectiveness:25,charismaExpGain:.5,hackingEffectiveness:75,hackingExpGain:1,reqdCharisma:251,reqdHacking:501,reqdReputation:4e5,repMultiplier:1.6},{name:a.j[5],nextPosition:a.j[6],baseSalary:1650,charismaEffectiveness:25,charismaExpGain:.5,hackingEffectiveness:75,hackingExpGain:1.1,reqdCharisma:251,reqdHacking:501,reqdReputation:8e5,repMultiplier:1.6},{name:a.j[6],nextPosition:a.j[7],baseSalary:2310,charismaEffectiveness:30,charismaExpGain:.6,hackingEffectiveness:70,hackingExpGain:1.2,reqdCharisma:401,reqdHacking:601,reqdReputation:16e5,repMultiplier:1.75},{name:a.j[7],nextPosition:null,baseSalary:2640,charismaEffectiveness:35,charismaExpGain:1,hackingEffectiveness:65,hackingExpGain:1.5,reqdCharisma:501,reqdHacking:751,reqdReputation:32e5,repMultiplier:2},{name:a.d[0],nextPosition:a.d[1],baseSalary:26,charismaEffectiveness:10,charismaExpGain:.01,hackingEffectiveness:90,hackingExpGain:.04,reqdHacking:1,repMultiplier:.9},{name:a.d[1],nextPosition:a.d[2],baseSalary:66,charismaEffectiveness:15,charismaExpGain:.02,hackingEffectiveness:85,hackingExpGain:.08,reqdHacking:26,reqdReputation:7e3,repMultiplier:1.1},{name:a.d[2],nextPosition:a.d[3],baseSalary:132,charismaEffectiveness:20,charismaExpGain:.1,hackingEffectiveness:80,hackingExpGain:.3,reqdCharisma:51,reqdHacking:151,reqdReputation:35e3,repMultiplier:1.3},{name:a.d[3],nextPosition:a.j[5],baseSalary:410,charismaEffectiveness:20,charismaExpGain:.2,hackingEffectiveness:80,hackingExpGain:.5,reqdCharisma:76,reqdHacking:251,reqdReputation:175e3,repMultiplier:1.4},{name:a.i[0],nextPosition:a.j[5],baseSalary:121,charismaEffectiveness:15,charismaExpGain:.05,hackingEffectiveness:85,hackingExpGain:.4,reqdCharisma:26,reqdHacking:151,reqdReputation:35e3,repMultiplier:1.2},{name:a.f[0],nextPosition:a.f[1],baseSalary:121,charismaEffectiveness:15,charismaExpGain:.05,hackingEffectiveness:85,hackingExpGain:.4,reqdCharisma:26,reqdHacking:151,reqdReputation:35e3,repMultiplier:1.2},{name:a.f[1],nextPosition:a.j[5],baseSalary:410,charismaEffectiveness:20,charismaExpGain:.1,hackingEffectiveness:80,hackingExpGain:.5,reqdCharisma:76,reqdHacking:251,reqdReputation:175e3,repMultiplier:1.3},{name:a.b[0],nextPosition:a.b[1],baseSalary:46,charismaEffectiveness:90,charismaExpGain:.08,hackingEffectiveness:10,hackingExpGain:.01,reqdCharisma:1,reqdHacking:1,repMultiplier:.9},{name:a.b[1],nextPosition:a.b[2],baseSalary:100,charismaEffectiveness:85,charismaExpGain:.15,hackingEffectiveness:15,hackingExpGain:.02,reqdCharisma:51,reqdHacking:6,reqdReputation:8e3,repMultiplier:1.1},{name:a.b[2],nextPosition:a.b[3],baseSalary:200,charismaEffectiveness:85,charismaExpGain:.3,hackingEffectiveness:15,hackingExpGain:.02,reqdCharisma:101,reqdHacking:51,reqdReputation:4e4,repMultiplier:1.3},{name:a.b[3],nextPosition:a.b[4],baseSalary:660,charismaEffectiveness:85,charismaExpGain:.4,hackingEffectiveness:15,hackingExpGain:.02,reqdCharisma:226,reqdHacking:51,reqdReputation:2e5,repMultiplier:1.5},{name:a.b[4],nextPosition:a.b[5],baseSalary:1950,charismaEffectiveness:90,charismaExpGain:1,hackingEffectiveness:10,hackingExpGain:.05,reqdCharisma:501,reqdHacking:76,reqdReputation:8e5,repMultiplier:1.6},{name:a.b[5],nextPosition:null,baseSalary:3900,charismaEffectiveness:90,charismaExpGain:1.5,hackingEffectiveness:10,hackingExpGain:.05,reqdCharisma:751,reqdHacking:101,reqdReputation:32e5,repMultiplier:1.75},{name:a.h[0],nextPosition:a.h[1],baseSalary:82,hackingEffectiveness:5,strengthEffectiveness:20,defenseEffectiveness:20,dexterityEffectiveness:20,agilityEffectiveness:20,charismaEffectiveness:15,hackingExpGain:.02,strengthExpGain:.08,defenseExpGain:.08,dexterityExpGain:.08,agilityExpGain:.08,charismaExpGain:.04,reqdHacking:11,reqdStrength:101,reqdDefense:101,reqdDexterity:101,reqdAgility:101,reqdCharisma:51,reqdReputation:8e3,repMultiplier:1},{name:a.h[1],nextPosition:null,baseSalary:460,hackingEffectiveness:5,strengthEffectiveness:20,defenseEffectiveness:20,dexterityEffectiveness:20,agilityEffectiveness:20,charismaEffectiveness:15,hackingExpGain:.02,strengthExpGain:.1,defenseExpGain:.1,dexterityExpGain:.1,agilityExpGain:.1,charismaExpGain:.1,reqdHacking:101,reqdStrength:301,reqdDefense:301,reqdDexterity:301,reqdAgility:301,reqdCharisma:151,reqdReputation:36e3,repMultiplier:1.25},{name:a.h[2],nextPosition:a.h[3],baseSalary:50,hackingEffectiveness:5,strengthEffectiveness:20,defenseEffectiveness:20,dexterityEffectiveness:20,agilityEffectiveness:20,charismaEffectiveness:15,hackingExpGain:.01,strengthExpGain:.04,defenseExpGain:.04,dexterityExpGain:.04,agilityExpGain:.04,charismaExpGain:.02,reqdStrength:51,reqdDefense:51,reqdDexterity:51,reqdAgility:51,reqdCharisma:1,repMultiplier:1},{name:a.h[3],nextPosition:a.h[4],baseSalary:195,hackingEffectiveness:10,strengthEffectiveness:20,defenseEffectiveness:20,dexterityEffectiveness:20,agilityEffectiveness:20,charismaEffectiveness:10,hackingExpGain:.02,strengthExpGain:.1,defenseExpGain:.1,dexterityExpGain:.1,agilityExpGain:.1,charismaExpGain:.05,reqdHacking:26,reqdStrength:151,reqdDefense:151,reqdDexterity:151,reqdAgility:151,reqdCharisma:51,reqdReputation:8e3,repMultiplier:1.1},{name:a.h[4],nextPosition:a.h[5],baseSalary:660,hackingEffectiveness:10,strengthEffectiveness:15,defenseEffectiveness:15,dexterityEffectiveness:15,agilityEffectiveness:15,charismaEffectiveness:30,hackingExpGain:.02,strengthExpGain:.12,defenseExpGain:.12,dexterityExpGain:.12,agilityExpGain:.12,charismaExpGain:.1,reqdHacking:26,reqdStrength:251,reqdDefense:251,reqdDexterity:251,reqdAgility:251,reqdCharisma:101,reqdReputation:36e3,repMultiplier:1.25},{name:a.h[5],nextPosition:null,baseSalary:1320,hackingEffectiveness:10,strengthEffectiveness:15,defenseEffectiveness:15,dexterityEffectiveness:15,agilityEffectiveness:15,charismaEffectiveness:30,hackingExpGain:.05,strengthExpGain:.15,defenseExpGain:.15,dexterityExpGain:.15,agilityExpGain:.15,charismaExpGain:.15,reqdHacking:51,reqdStrength:501,reqdDefense:501,reqdDexterity:501,reqdAgility:501,reqdCharisma:151,reqdReputation:144e3,repMultiplier:1.4},{name:a.a[0],nextPosition:a.a[1],baseSalary:330,hackingEffectiveness:10,strengthEffectiveness:15,defenseEffectiveness:15,dexterityEffectiveness:20,agilityEffectiveness:20,charismaEffectiveness:20,hackingExpGain:.04,strengthExpGain:.08,defenseExpGain:.08,dexterityExpGain:.08,agilityExpGain:.08,charismaExpGain:.05,reqdHacking:101,reqdStrength:101,reqdDefense:101,reqdDexterity:101,reqdAgility:101,reqdCharisma:101,reqdReputation:8e3,repMultiplier:1},{name:a.a[1],nextPosition:a.a[2],baseSalary:990,hackingEffectiveness:15,strengthEffectiveness:15,defenseEffectiveness:15,dexterityEffectiveness:20,agilityEffectiveness:20,charismaEffectiveness:15,hackingExpGain:.1,strengthExpGain:.15,defenseExpGain:.15,dexterityExpGain:.15,agilityExpGain:.15,charismaExpGain:.1,reqdHacking:201,reqdStrength:251,reqdDefense:251,reqdDexterity:251,reqdAgility:251,reqdCharisma:201,reqdReputation:32e3,repMultiplier:1.25},{name:a.a[2],nextPosition:null,baseSalary:2e3,hackingEffectiveness:15,strengthEffectiveness:15,defenseEffectiveness:15,dexterityEffectiveness:20,agilityEffectiveness:20,charismaEffectiveness:15,hackingExpGain:.15,strengthExpGain:.2,defenseExpGain:.2,dexterityExpGain:.2,agilityExpGain:.2,charismaExpGain:.15,reqdHacking:251,reqdStrength:501,reqdDefense:501,reqdDexterity:501,reqdAgility:501,reqdCharisma:251,reqdReputation:162e3,repMultiplier:1.5},{name:a.e[0],nextPosition:null,baseSalary:22,strengthEffectiveness:10,dexterityEffectiveness:10,agilityEffectiveness:10,charismaEffectiveness:70,strengthExpGain:.02,defenseExpGain:.02,dexterityExpGain:.02,agilityExpGain:.02,charismaExpGain:.05,repMultiplier:1},{name:a.e[1],nextPosition:null,baseSalary:22,strengthEffectiveness:10,dexterityEffectiveness:10,agilityEffectiveness:10,charismaEffectiveness:70,strengthExpGain:.02,defenseExpGain:.02,dexterityExpGain:.02,agilityExpGain:.02,charismaExpGain:.04,repMultiplier:1},{name:a.k[0],nextPosition:a.k[1],baseSalary:66,hackingEffectiveness:80,charismaEffectiveness:20,hackingExpGain:.08,charismaExpGain:.03,reqdHacking:51,repMultiplier:1},{name:a.k[1],nextPosition:null,baseSalary:132,hackingEffectiveness:75,charismaEffectiveness:25,hackingExpGain:.25,charismaExpGain:.06,reqdHacking:251,reqdCharisma:51,repMultiplier:1.2},{name:a.c[0],nextPosition:a.c[1],baseSalary:66,hackingEffectiveness:20,charismaEffectiveness:80,hackingExpGain:.015,charismaExpGain:.15,reqdHacking:6,reqdCharisma:51,repMultiplier:1},{name:a.c[1],nextPosition:null,baseSalary:525,hackingEffectiveness:15,charismaEffectiveness:85,hackingExpGain:.015,charismaExpGain:.3,reqdHacking:51,reqdCharisma:226,repMultiplier:1.2},{name:a.g[0],nextPosition:null,baseSalary:20,strengthEffectiveness:10,dexterityEffectiveness:10,agilityEffectiveness:10,charismaEffectiveness:70,strengthExpGain:.0075,defenseExpGain:.0075,dexterityExpGain:.0075,agilityExpGain:.0075,charismaExpGain:.04,repMultiplier:1},{name:a.g[1],nextPosition:null,baseSalary:20,strengthEffectiveness:10,dexterityEffectiveness:10,agilityEffectiveness:10,charismaEffectiveness:70,strengthExpGain:.0075,defenseExpGain:.0075,dexterityExpGain:.0075,agilityExpGain:.0075,charismaExpGain:.03,repMultiplier:1}]},,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var a=n(0),r=n.n(a),i=n(143),o=n(1200),s=n(18),l=n(71),c=n(130);function f(e){const t=Object(i.b)(),[n,f]=Object(a.useState)(e.member.task),u=t.members.find(t=>t.name==e.member.name);u&&u.task!=n&&f(u.task);const m=t.getAllTaskNames();return r.a.createElement(s.a,null,r.a.createElement(c.a,{onChange:function(t){const n=t.target.value;e.member.assignToTask(n),f(n),e.onTaskChange()},value:n,sx:{width:"100%"}},r.a.createElement(l.a,{key:0,value:"Unassigned"},"Unassigned"),m.map((e,t)=>r.a.createElement(l.a,{key:t+1,value:e},e))),r.a.createElement(o.a,{member:e.member}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var a=n(0),r=n.n(a),i=n(245),o=n(1);function s(e){const t=i.a[e.member.task],n=t?t.desc:i.a.Unassigned.desc;return r.a.createElement(o.a,{dangerouslySetInnerHTML:{__html:n}})}},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var a=n(0),r=n.n(a),i=n(6),o=n(14),s=n(37),l=n(143),c=n(1),f=n(8);function u(e){const t=Object(l.b)(),n=Object(a.useState)(!1)[1];Object(a.useEffect)(()=>{const e=setInterval(()=>n(e=>!e),1e3);return()=>clearInterval(e)},[]);const u=e.member.getCurrentAscensionMults(),m=e.member.getAscensionMultsAfterAscend();return r.a.createElement(s.a,{open:e.open,onClose:e.onClose},r.a.createElement(c.a,null,"Are you sure you want to ascend this member? They will lose all of",r.a.createElement("br",null),"their non-Augmentation upgrades and their stats will reset back to 1.",r.a.createElement("br",null),r.a.createElement("br",null),"Furthermore, your gang will lose ",i.a.formatRespect(e.member.earnedRespect)," respect",r.a.createElement("br",null),r.a.createElement("br",null),"In return, they will gain the following permanent boost to stat multipliers:",r.a.createElement("br",null),"Hacking: x",i.a.format(u.hack,"0.000")," => x",i.a.format(m.hack,"0.000"),r.a.createElement("br",null),"Strength: x",i.a.format(u.str,"0.000")," => x",i.a.format(m.str,"0.000"),r.a.createElement("br",null),"Defense: x",i.a.format(u.def,"0.000")," => x",i.a.format(m.def,"0.000"),r.a.createElement("br",null),"Dexterity: x",i.a.format(u.dex,"0.000")," => x",i.a.format(m.dex,"0.000"),r.a.createElement("br",null),"Agility: x",i.a.format(u.agi,"0.000")," => x",i.a.format(m.agi,"0.000"),r.a.createElement("br",null),"Charisma: x",i.a.format(u.cha,"0.000")," => x",i.a.format(m.cha,"0.000"),r.a.createElement("br",null)),r.a.createElement(f.a,{onClick:function(){e.onAscend();const n=t.ascendMember(e.member);Object(o.a)(r.a.createElement(r.a.Fragment,null,"You ascended ",e.member.name,"!",r.a.createElement("br",null),r.a.createElement("br",null),"Your gang lost ",i.a.formatRespect(n.respect)," respect.",r.a.createElement("br",null),r.a.createElement("br",null),e.member.name," gained the following stat multipliers for ascending:",r.a.createElement("br",null),"Hacking: x",i.a.format(n.hack,"0.000"),r.a.createElement("br",null),"Strength: x",i.a.format(n.str,"0.000"),r.a.createElement("br",null),"Defense: x",i.a.format(n.def,"0.000"),r.a.createElement("br",null),"Dexterity: x",i.a.format(n.dex,"0.000"),r.a.createElement("br",null),"Agility: x",i.a.format(n.agi,"0.000"),r.a.createElement("br",null),"Charisma: x",i.a.format(n.cha,"0.000"),r.a.createElement("br",null))),e.onClose()}},"Ascend"))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var a=n(0),r=n.n(a),i=n(1203),o=n(190),s=n(6),l=n(143),c=n(1),f=n(8),u=n(18);function m(e){const t=Object(l.b)(),[n,m]=Object(a.useState)(!1);if(t.members.length>=o.a.MaximumGangMembers)return r.a.createElement(r.a.Fragment,null);if(!t.canRecruitMember()){const e=t.getRespectNeededToRecruitMember();return r.a.createElement(u.a,{display:"flex",alignItems:"center",sx:{mx:1}},r.a.createElement(f.a,{disabled:!0},"Recruit Gang Member"),r.a.createElement(c.a,{sx:{ml:1}},s.a.formatRespect(e)," respect needed to recruit next member"))}return r.a.createElement(r.a.Fragment,null,r.a.createElement(u.a,{sx:{mx:1}},r.a.createElement(f.a,{onClick:()=>m(!0)},"Recruit Gang Member")),r.a.createElement(i.a,{open:n,onClose:()=>m(!1),onRecruit:e.onRecruit}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var a=n(0),r=n.n(a),i=n(37),o=n(14),s=n(143),l=n(1),c=n(75),f=n(8),u=n(25);function m(e){const t=Object(s.b)(),[n,m]=Object(a.useState)(""),h=""===n||!t.canRecruitMember();function d(){h||(t.recruitMember(n)?(e.onRecruit(),e.onClose()):Object(o.a)("You already have a gang member with this name!"))}return r.a.createElement(i.a,{open:e.open,onClose:e.onClose},r.a.createElement(l.a,null,"Enter a name for your new Gang member:"),r.a.createElement("br",null),r.a.createElement(c.a,{autoFocus:!0,onKeyUp:function(e){e.key===u.a.ENTER&&d()},onChange:function(e){m(e.target.value)},type:"text",placeholder:"unique name",InputProps:{endAdornment:r.a.createElement(f.a,{disabled:h,onClick:d},"Recruit")}}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return E}));var a=n(0),r=n.n(a),i=n(252),o=n(1),s=n(8),l=n(18),c=n(43),f=n(341),u=n(281),m=n(19),h=n(1805),d=n(6),p=n(24),g=n(81),y=n(143),b=n(1205);function E(){const e=Object(y.b)(),t=Object.keys(g.a).filter(t=>t!=e.facName),[n,E]=Object(a.useState)(!1);return r.a.createElement(i.a,{disableGutters:!0,maxWidth:"md",sx:{mx:0}},r.a.createElement(o.a,null,"This page shows how much territory your Gang controls. This statistic is listed as a percentage, which represents how much of the total territory you control."),r.a.createElement(s.a,{onClick:()=>E(!0),sx:{my:1}},r.a.createElement(h.a,{sx:{mr:1}}),"About Gang Territory"),r.a.createElement(l.a,{component:c.a,sx:{p:1,mb:1}},r.a.createElement(o.a,{variant:"h6",sx:{display:"flex",alignItems:"center",flexWrap:"wrap"}},e.facName," (Your gang)"),r.a.createElement(f.a,{control:r.a.createElement(u.a,{checked:e.territoryWarfareEngaged,onChange:t=>e.territoryWarfareEngaged=t.target.checked}),label:r.a.createElement(m.a,{title:r.a.createElement(o.a,null,"Engaging in Territory Warfare sets your clash chance to 100%. Disengaging will cause your clash chance to gradually decrease until it reaches 0%.")},r.a.createElement(o.a,null,"Engage in Territory Warfare"))}),r.a.createElement("br",null),r.a.createElement(f.a,{control:r.a.createElement(u.a,{checked:e.notifyMemberDeath,onChange:t=>e.notifyMemberDeath=t.target.checked}),label:r.a.createElement(m.a,{title:r.a.createElement(o.a,null,"If this is enabled, then you will receive a pop-up notifying you whenever one of your Gang Members dies in a territory clash.")},r.a.createElement(o.a,null,"Notify about Gang Member Deaths"))}),r.a.createElement(o.a,null,r.a.createElement("b",null,"Territory Clash Chance:")," ",d.a.formatPercentage(e.territoryClashChance,3)," ",r.a.createElement("br",null),r.a.createElement("b",null,"Power:")," ",Object(p.f)(g.a[e.facName].power,3)," ",r.a.createElement("br",null),r.a.createElement("b",null,"Territory:")," ",v(g.a[e.facName].territory),"% ",r.a.createElement("br",null))),r.a.createElement(l.a,{sx:{display:"grid",gridTemplateColumns:"repeat(3, 1fr)"}},t.sort((e,t)=>g.a[e].territory<=0&&g.a[t].territory>0?1:g.a[e].territory>0&&g.a[t].territory<=0?-1:0).map(e=>r.a.createElement(k,{key:e,name:e}))),r.a.createElement(b.a,{open:n,onClose:()=>E(!1)}))}function v(e){const t=100*e;return t<=0?Object(p.f)(0,3):t>=100?Object(p.f)(100,3):Object(p.f)(t,3)}function k(e){const t=Object(y.b)(),n=g.a[t.facName].power,a=g.a[e.name].power,i=n/(a+n),s=g.a[e.name].territory,f=s?1:.75;return r.a.createElement(l.a,{component:c.a,sx:{p:1,opacity:f}},r.a.createElement(o.a,{variant:"h6",sx:{display:"flex",alignItems:"center",flexWrap:"wrap"}},e.name),r.a.createElement(o.a,null,r.a.createElement("b",null,"Power:")," ",Object(p.f)(a,3)," ",r.a.createElement("br",null),r.a.createElement("b",null,"Territory:")," ",v(s),"% ",r.a.createElement("br",null),r.a.createElement("b",null,"Clash Win Chance:")," ",d.a.formatPercentage(i,3)))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var a=n(0),r=n.n(a),i=n(1),o=n(37);const s=({open:e,onClose:t})=>r.a.createElement(o.a,{open:e,onClose:t},r.a.createElement(r.a.Fragment,null,r.a.createElement(i.a,{variant:"h4"},"Clashing"),r.a.createElement(i.a,null,"Every ~20 seconds, your gang has a chance to 'clash' with other gangs. Your chance to win a clash depends on your gang's power, which is listed in the display below. Your gang's power slowly accumulates over time. The accumulation rate is determined by the stats of all Gang members you have assigned to the 'Territory Warfare' task. Gang members that are not assigned to this task do not contribute to your gang's power. Your gang also loses a small amount of power whenever you lose a clash.",r.a.createElement("br",null),r.a.createElement("br",null),"NOTE: Gang members assigned to 'Territory Warfare' can be killed during clashes. This can happen regardless of whether you win or lose the clash. A gang member being killed results in both respect and power loss for your gang."),r.a.createElement("br",null),r.a.createElement(i.a,{variant:"h4"},"Territory"),r.a.createElement(i.a,null,"The amount of territory you have affects all aspects of your Gang members' production, including money, respect, and wanted level. It is very beneficial to have high territory control.",r.a.createElement("br",null),r.a.createElement("br",null),'To increase your chances of winning territory, assign gang members to "Territory Warfare". This will build your gang power. Then, enable "Engage in Territory Warfare" to start fighting over territory.'),r.a.createElement("br",null),r.a.createElement(i.a,{variant:"h4"},"Territory Clash Chance"),r.a.createElement(i.a,null,"This percentage represents the chance you have of 'clashing' with another gang. If you do not wish to gain/lose territory, then keep this percentage at 0% by not engaging in territory warfare.")))},function(e,t,n){"use strict";n.d(t,"a",(function(){return M}));var a=n(0),r=n.n(a),i=n(143),o=n(1),s=n(8),l=n(19),c=n(18),f=n(43),u=n(130),m=n(150),h=n(151),d=n(71),p=n(75),g=n(352),y=n.n(g),b=n(6),E=n(232),v=n(20),k=n(187),w=n(28),_=n(5),S=n(76);function C(e){const t=Object(i.b)(),n=w.b.Player(),a=Object.keys(E.a).filter(a=>{const r=E.a[a];return!(n.money>t.getUpgradeCost(r))&&(r.type===e.type&&!e.upgrades.includes(a))}).map(e=>E.a[e]);return 0===a.length?r.a.createElement(r.a.Fragment,null):r.a.createElement(o.a,null,"Next at ",r.a.createElement(v.a,{money:a[0].cost}))}function x({upgName:e}){const t=E.a[e];return r.a.createElement(f.a,{sx:{p:1}},r.a.createElement(l.a,{title:r.a.createElement(o.a,{dangerouslySetInnerHTML:{__html:t.desc}})},r.a.createElement(o.a,null,t.name)))}function L(e){const t=Object(i.b)(),n=w.b.Player();return r.a.createElement(l.a,{title:r.a.createElement(o.a,{dangerouslySetInnerHTML:{__html:e.upg.desc}})},r.a.createElement("span",null,r.a.createElement(s.a,{onClick:function(){e.member.buyUpgrade(e.upg,n,t),e.rerender()},sx:{display:"flex",flexDirection:"column",width:"100%",height:"100%"}},r.a.createElement(o.a,{sx:{display:"block"}},e.upg.name),r.a.createElement(v.a,{money:t.getUpgradeCost(e.upg)}))))}function O(e){const t=Object(i.b)(),n=w.b.Player(),s=Object(a.useState)(!1)[1],[p,g]=Object(a.useState)("Weapons");function y(){s(e=>!e)}function v(e,a){return Object.keys(E.a).filter(r=>{const i=E.a[r];return!(n.money<t.getUpgradeCost(i))&&(i.type===a&&!e.includes(r))}).map(e=>E.a[e])}const O=v(e.member.upgrades,k.a.Weapon),M=v(e.member.upgrades,k.a.Armor),T=v(e.member.upgrades,k.a.Vehicle),A=v(e.member.upgrades,k.a.Rootkit),R=v(e.member.augmentations,k.a.Augmentation),N={Weapons:[O,k.a.Weapon],Armor:[M,k.a.Armor],Vehicles:[T,k.a.Vehicle],Rootkits:[A,k.a.Rootkit],Augmentations:[R,k.a.Augmentation]},P={hack:e.member.calculateAscensionMult(e.member.hack_asc_points),str:e.member.calculateAscensionMult(e.member.str_asc_points),def:e.member.calculateAscensionMult(e.member.def_asc_points),dex:e.member.calculateAscensionMult(e.member.dex_asc_points),agi:e.member.calculateAscensionMult(e.member.agi_asc_points),cha:e.member.calculateAscensionMult(e.member.cha_asc_points)};return r.a.createElement(f.a,null,r.a.createElement(c.a,{display:"grid",sx:{gridTemplateColumns:"1fr 1fr",m:1,gap:1}},r.a.createElement("span",null,r.a.createElement(o.a,{variant:"h5",color:"primary"},e.member.name," (",e.member.task,")"),r.a.createElement(l.a,{title:r.a.createElement(o.a,null,"Hk: x",b.a.formatMultiplier(e.member.hack_mult*P.hack),"(x",b.a.formatMultiplier(e.member.hack_mult)," Eq, x",b.a.formatMultiplier(P.hack)," Asc)",r.a.createElement("br",null),"St: x",b.a.formatMultiplier(e.member.str_mult*P.str),"(x",b.a.formatMultiplier(e.member.str_mult)," Eq, x",b.a.formatMultiplier(P.str)," Asc)",r.a.createElement("br",null),"Df: x",b.a.formatMultiplier(e.member.def_mult*P.def),"(x",b.a.formatMultiplier(e.member.def_mult)," Eq, x",b.a.formatMultiplier(P.def)," Asc)",r.a.createElement("br",null),"Dx: x",b.a.formatMultiplier(e.member.dex_mult*P.dex),"(x",b.a.formatMultiplier(e.member.dex_mult)," Eq, x",b.a.formatMultiplier(P.dex)," Asc)",r.a.createElement("br",null),"Ag: x",b.a.formatMultiplier(e.member.agi_mult*P.agi),"(x",b.a.formatMultiplier(e.member.agi_mult)," Eq, x",b.a.formatMultiplier(P.agi)," Asc)",r.a.createElement("br",null),"Ch: x",b.a.formatMultiplier(e.member.cha_mult*P.cha),"(x",b.a.formatMultiplier(e.member.cha_mult)," Eq, x",b.a.formatMultiplier(P.cha)," Asc)")},r.a.createElement(m.a,null,r.a.createElement(h.a,null,r.a.createElement(S.a,{name:"Hacking",color:_.a.theme.hack,data:{level:e.member.hack,exp:e.member.hack_exp}}),r.a.createElement(S.a,{name:"Strength",color:_.a.theme.combat,data:{level:e.member.str,exp:e.member.str_exp}}),r.a.createElement(S.a,{name:"Defense",color:_.a.theme.combat,data:{level:e.member.def,exp:e.member.def_exp}}),r.a.createElement(S.a,{name:"Dexterity",color:_.a.theme.combat,data:{level:e.member.dex,exp:e.member.dex_exp}}),r.a.createElement(S.a,{name:"Agility",color:_.a.theme.combat,data:{level:e.member.agi,exp:e.member.agi_exp}}),r.a.createElement(S.a,{name:"Charisma",color:_.a.theme.cha,data:{level:e.member.cha,exp:e.member.cha_exp}}))))),r.a.createElement("span",null,r.a.createElement(u.a,{onChange:e=>{g(e.target.value),y()},value:p,sx:{width:"100%",mb:1}},Object.keys(N).map((e,t)=>r.a.createElement(d.a,{key:t+1,value:e},r.a.createElement(o.a,{variant:"h6"},e)))),r.a.createElement(c.a,{sx:{width:"100%"}},0===N[p][0].length&&r.a.createElement(o.a,null,"All upgrades owned!"),r.a.createElement(c.a,{display:"grid",sx:{gridTemplateColumns:"1fr 1fr"}},N[p][0].map(t=>r.a.createElement(L,{key:t.name,rerender:y,member:e.member,upg:t}))),r.a.createElement(C,{type:N[p][1],upgrades:e.member.upgrades})))),r.a.createElement(o.a,{sx:{mx:1}},"Purchased Upgrades: "),r.a.createElement(c.a,{display:"grid",sx:{gridTemplateColumns:"repeat(4, 1fr)",m:1}},e.member.upgrades.map(e=>r.a.createElement(x,{key:e,upgName:e})),e.member.augmentations.map(e=>r.a.createElement(x,{key:e,upgName:e}))))}function M(){const e=Object(i.b)(),[t,n]=Object(a.useState)(""),s=e.members.filter(e=>e&&e.name.toLowerCase().includes(t));return r.a.createElement(r.a.Fragment,null,r.a.createElement(l.a,{title:r.a.createElement(o.a,null,"You get a discount on equipment and upgrades based on your gang's respect and power. More respect and power leads to more discounts.")},r.a.createElement(o.a,{sx:{m:1}},"Discount: -",b.a.formatPercentage(1-1/e.getDiscount()))),r.a.createElement(p.a,{value:t,onChange:e=>{n(e.target.value.toLowerCase())},autoFocus:!0,InputProps:{startAdornment:r.a.createElement(y.a,null),spellCheck:!1},placeholder:"Filter by member name",sx:{m:1,width:"15%"}}),r.a.createElement(c.a,{display:"grid",sx:{gridTemplateColumns:"1fr 1fr",width:"100%"}},s.map(e=>r.a.createElement(O,{key:e.name,member:e}))))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var a=n(0),r=n.n(a),i=n(1208),o=n(50),s=n(1233),l=n(28),c=n(46),f=n(1234),u=n(513),m=n(218);function h(){const e=l.b.Player().corporation;if(null===e)return r.a.createElement(r.a.Fragment,null);const t=Object(a.useState)(!1)[1];function n(){t(e=>!e)}const[h,d]=Object(a.useState)("Overview");Object(a.useEffect)(()=>{const e=setInterval(n,200);return()=>clearInterval(e)},[]);const p=Object.keys(o.a).filter(t=>void 0===e.divisions.find(e=>e.type===t)).length>0;return r.a.createElement(c.a.Corporation.Provider,{value:e},r.a.createElement(u.a,{variant:"scrollable",value:h,onChange:function(e,t){d(t)},sx:{maxWidth:"65vw"},scrollButtons:!0},r.a.createElement(m.a,{label:e.name,value:"Overview"}),e.divisions.map(e=>r.a.createElement(m.a,{key:e.name,label:e.name,value:e.name})),p&&r.a.createElement(m.a,{label:"Expand",value:-1})),"Overview"===h&&r.a.createElement(f.a,{rerender:n}),-1===h&&r.a.createElement(s.a,{setDivisionName:d}),"string"==typeof h&&"Overview"!==h&&r.a.createElement(i.a,{rerender:n,divisionName:h+""}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var a=n(0),r=n.n(a),i=n(1209),o=n(46),s=n(15);function l(e){const t=Object(o.b)(),n="Overview"!==e.divisionName?t.divisions.find(t=>t.name===e.divisionName):void 0;if(void 0===n)throw new Error("Cannot find division");return r.a.createElement(o.a.Division.Provider,{value:n},r.a.createElement(i.a,{rerender:e.rerender,city:s.a.Sector12}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var a=n(0),r=n.n(a),i=n(1210),o=n(1232),s=n(46),l=n(513),c=n(218);function f(e){const t=Object(s.c)(),[n,f]=Object(a.useState)(e.city),u=t.offices[n];if(0===u)return f("Sector-12"),r.a.createElement(r.a.Fragment,null);const m=Object.keys(t.offices).filter(e=>0===t.offices[e]).length>0;return r.a.createElement(r.a.Fragment,null,r.a.createElement(l.a,{variant:"fullWidth",value:n,onChange:function(e,t){f(t)},sx:{maxWidth:"65vw"}},Object.values(t.offices).map(e=>0!==e&&r.a.createElement(c.a,{key:e.loc,label:e.loc,value:e.loc})),m&&r.a.createElement(c.a,{label:"Expand",value:"Expand"})),"Expand"!==n?r.a.createElement(i.a,{key:n,rerender:e.rerender,city:n,warehouse:t.warehouses[n],office:u}):r.a.createElement(o.a,{cityStateSetter:f}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var a=n(0),r=n.n(a),i=n(1211),o=n(1214),s=n(1217),l=n(28),c=n(46),f=n(18);function u(e){const t=l.b.Player(),n=Object(c.b)(),a=Object(c.c)();return r.a.createElement(f.a,{display:"flex"},r.a.createElement(f.a,{sx:{width:"50%"}},r.a.createElement(o.a,{rerender:e.rerender,currentCity:e.city,office:e.office}),r.a.createElement(i.a,{rerender:e.rerender,office:e.office})),r.a.createElement(f.a,{sx:{width:"50%"}},r.a.createElement(s.a,{rerender:e.rerender,player:t,corp:n,currentCity:e.city,division:a,warehouse:e.warehouse})))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return R}));var a=n(0),r=n.n(a),i=n(45),o=n(6),s=n(1212),l=n(1213),c=n(20),f=n(46),u=n(1),m=n(8),h=n(112),d=n(43),p=n(626),g=n.n(p),y=n(627),b=n.n(y),E=n(19),v=n(71),k=n(130),w=n(150),_=n(151),S=n(48),C=n(77),x=n(18);function L(e,t){let n=0;for(let a=0;a<e.length;++a)e[a].pos===t&&n++;return n}function O(e){return e.manualMode?r.a.createElement(E.a,{title:r.a.createElement(u.a,null,"Switch to Automatic Assignment Mode, which will automatically assign employees to your selected jobs. You simply have to select the number of assignments for each job")},r.a.createElement(m.a,{onClick:()=>e.switchMode(e=>!e)},"Switch to Auto Mode")):r.a.createElement(E.a,{title:r.a.createElement(u.a,null,"Switch to Manual Assignment Mode, which allows you to specify which employees should get which jobs")},r.a.createElement(m.a,{onClick:()=>e.switchMode(e=>!e)},"Switch to Manual Mode"))}function M(e){const t=Object(f.b)(),n=Object(f.c)(),[s,l]=Object(a.useState)(e.office.employees.length>0?e.office.employees[0]:null),m=[];for(let t=0;t<e.office.employees.length;++t)m.push(r.a.createElement(v.a,{key:e.office.employees[t].name,value:e.office.employees[t].name},e.office.employees[t].name));const h=s;let d="";const p=[],g=Object.values(i.a);for(let e=0;e<g.length;++e)p.push(r.a.createElement(v.a,{key:g[e],value:g[e]},g[e])),null!=h&&h.pos===g[e]&&(d=g[e]);const y="0.000",b=h?h.cre*t.getEmployeeCreMultiplier()*n.getEmployeeCreMultiplier():0,E=h?h.cha*t.getEmployeeChaMultiplier()*n.getEmployeeChaMultiplier():0,w=h?h.int*t.getEmployeeIntMultiplier()*n.getEmployeeIntMultiplier():0,_=h?h.eff*t.getEmployeeEffMultiplier()*n.getEmployeeEffMultiplier():0;return r.a.createElement(r.a.Fragment,null,r.a.createElement("br",null),r.a.createElement(k.a,{value:null!==s?s.name:"",onChange:function(t){const n=t.target.value;for(let t=0;t<e.office.employees.length;++t)if(n===e.office.employees[t].name){l(e.office.employees[t]);break}e.rerender()}},m),null!=s&&r.a.createElement(u.a,null,"Morale: ",o.a.format(s.mor,y),r.a.createElement("br",null),"Happiness: ",o.a.format(s.hap,y),r.a.createElement("br",null),"Energy: ",o.a.format(s.ene,y),r.a.createElement("br",null),"Intelligence: ",o.a.format(w,y),r.a.createElement("br",null),"Charisma: ",o.a.format(E,y),r.a.createElement("br",null),"Experience: ",o.a.format(s.exp,y),r.a.createElement("br",null),"Creativity: ",o.a.format(b,y),r.a.createElement("br",null),"Efficiency: ",o.a.format(_,y),r.a.createElement("br",null),"Salary: ",r.a.createElement(c.a,{money:s.sal})),null!=s&&r.a.createElement(k.a,{onChange:function(t){null!==s&&(s.pos=t.target.value,e.rerender())},value:d},p))}function T(e){const t=Object(f.b)(),n=Object(f.c)(),a=L(e.office.employees,e.job),o=L(e.office.employees,i.a.Unassigned);return r.a.createElement(S.a,null,r.a.createElement(C.b,null,r.a.createElement(E.a,{title:e.desc},r.a.createElement(u.a,null,e.job," (",a,")"))),r.a.createElement(C.b,null,r.a.createElement(h.a,{disabled:0===o,onClick:function(){o<=0?console.warn("Cannot assign employee. No unassigned employees available"):(e.office.assignEmployeeToJob(e.job),e.office.calculateEmployeeProductivity(t,n),e.rerender())}},r.a.createElement(g.a,null)),r.a.createElement(h.a,{disabled:0===a,onClick:function(){e.office.unassignEmployeeFromJob(e.job),e.office.calculateEmployeeProductivity(t,n),e.rerender()}},r.a.createElement(b.a,null))))}function A(e){const t=Object(f.b)(),n=Object(f.c)(),a=L(e.office.employees,i.a.Unassigned),s=1===t.unlockUpgrades[4];let l=0,m=0,h=0,d=0;for(let t=0;t<e.office.employees.length;++t)l+=e.office.employees[t].mor,m+=e.office.employees[t].hap,h+=e.office.employees[t].ene,d+=e.office.employees[t].sal;let p=0,g=0,y=0;return e.office.employees.length>0&&(p=l/e.office.employees.length,g=m/e.office.employees.length,y=h/e.office.employees.length),r.a.createElement(r.a.Fragment,null,r.a.createElement(w.a,{padding:"none"},r.a.createElement(_.a,null,r.a.createElement(S.a,null,r.a.createElement(C.b,null,r.a.createElement(u.a,null,"Unassigned Employees:")),r.a.createElement(C.b,null,r.a.createElement(u.a,null,a))),r.a.createElement(S.a,null,r.a.createElement(C.b,null,r.a.createElement(u.a,null,"Avg Employee Morale:")),r.a.createElement(C.b,null,r.a.createElement(u.a,null,o.a.format(p,"0.000")))),r.a.createElement(S.a,null,r.a.createElement(C.b,null,r.a.createElement(u.a,null,"Avg Employee Happiness:")),r.a.createElement(C.b,null,r.a.createElement(u.a,null,o.a.format(g,"0.000")))),r.a.createElement(S.a,null,r.a.createElement(C.b,null,r.a.createElement(u.a,null,"Avg Employee Energy:")),r.a.createElement(C.b,null,r.a.createElement(u.a,null,o.a.format(y,"0.000")))),r.a.createElement(S.a,null,r.a.createElement(C.b,null,r.a.createElement(u.a,null,"Total Employee Salary:")),r.a.createElement(C.b,null,r.a.createElement(u.a,null,r.a.createElement(c.a,{money:d})))),s&&r.a.createElement(r.a.Fragment,null,r.a.createElement(S.a,null,r.a.createElement(C.b,null,r.a.createElement(E.a,{title:r.a.createElement(u.a,null,"The base amount of material this office can produce. Does not include production multipliers from upgrades and materials. This value is based off the productivity of your Operations, Engineering, and Management employees")},r.a.createElement(u.a,null,"Material Production:"))),r.a.createElement(C.b,null,r.a.createElement(u.a,null,o.a.format(n.getOfficeProductivity(e.office),"0.000")))),r.a.createElement(S.a,null,r.a.createElement(C.b,null,r.a.createElement(E.a,{title:r.a.createElement(u.a,null,"The base amount of any given Product this office can produce. Does not include production multipliers from upgrades and materials. This value is based off the productivity of your Operations, Engineering, and Management employees")},r.a.createElement(u.a,null,"Product Production:"))),r.a.createElement(C.b,null,r.a.createElement(u.a,null,o.a.format(n.getOfficeProductivity(e.office,{forProduct:!0}),"0.000")))),r.a.createElement(S.a,null,r.a.createElement(C.b,null,r.a.createElement(E.a,{title:r.a.createElement(u.a,null,"The effect this office's 'Business' employees has on boosting sales")},r.a.createElement(u.a,null," Business Multiplier:"))),r.a.createElement(C.b,null,r.a.createElement(u.a,null,"x",o.a.format(n.getBusinessFactor(e.office),"0.000"))))))),r.a.createElement(w.a,{padding:"none"},r.a.createElement(_.a,null,r.a.createElement(T,{rerender:e.rerender,office:e.office,job:i.a.Operations,desc:"Manages supply chain operations. Improves the amount of Materials and Products you produce."}),r.a.createElement(T,{rerender:e.rerender,office:e.office,job:i.a.Engineer,desc:"Develops and maintains products and production systems. Increases the quality of everything you produce. Also increases the amount you produce (not as much as Operations, however)"}),r.a.createElement(T,{rerender:e.rerender,office:e.office,job:i.a.Business,desc:"Handles sales and finances. Improves the amount of Materials and Products you can sell."}),r.a.createElement(T,{rerender:e.rerender,office:e.office,job:i.a.Management,desc:"Leads and oversees employees and office operations. Improves the effectiveness of Engineer and Operations employees."}),r.a.createElement(T,{rerender:e.rerender,office:e.office,job:i.a.RandD,desc:"Research new innovative ways to improve the company. Generates Scientific Research."}),r.a.createElement(T,{rerender:e.rerender,office:e.office,job:i.a.Training,desc:"Set employee to training, which will increase some of their stats. Employees in training do not affect any company operations."}))))}function R(e){const t=Object(f.b)(),n=Object(f.c)(),[i,o]=Object(a.useState)(!1),[c,h]=Object(a.useState)(!1),[p,g]=Object(a.useState)(!1);return r.a.createElement(d.a,null,r.a.createElement(u.a,null,"Office Space"),r.a.createElement(u.a,null,"Size: ",e.office.employees.length," / ",e.office.size," employees"),r.a.createElement(x.a,{sx:{display:"grid",gridTemplateColumns:"1fr",width:"fit-content"}},r.a.createElement(x.a,{sx:{gridTemplateColumns:"repeat(3, 1fr)"}},r.a.createElement(E.a,{title:r.a.createElement(u.a,null,"Automatically hires an employee and gives him/her a random name")},r.a.createElement("span",null,r.a.createElement(m.a,{disabled:e.office.atCapacity(),onClick:function(){e.office.atCapacity()||(e.office.hireRandomEmployee(),e.rerender())}},"Hire Employee"))),r.a.createElement(E.a,{title:r.a.createElement(u.a,null,"Upgrade the office's size so that it can hold more employees!")},r.a.createElement("span",null,r.a.createElement(m.a,{disabled:t.funds<0,onClick:()=>o(!0)},"Upgrade size"))),r.a.createElement(s.a,{rerender:e.rerender,office:e.office,open:i,onClose:()=>o(!1)}),!n.hasResearch("AutoPartyManager")&&r.a.createElement(r.a.Fragment,null,r.a.createElement(E.a,{title:r.a.createElement(u.a,null,"Throw an office party to increase your employee's morale and happiness")},r.a.createElement("span",null,r.a.createElement(m.a,{disabled:t.funds<0,onClick:()=>h(!0)},"Throw Party"))),r.a.createElement(l.a,{rerender:e.rerender,office:e.office,open:c,onClose:()=>h(!1)}))),r.a.createElement(O,{manualMode:p,switchMode:g})),p?r.a.createElement(M,{rerender:e.rerender,office:e.office}):r.a.createElement(A,{rerender:e.rerender,office:e.office}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var a=n(0),r=n.n(a),i=n(6),o=n(39),s=n(62),l=n(37),c=n(46),f=n(1),u=n(8),m=n(19),h=n(18);function d(e){const t=Object(c.b)();return r.a.createElement(m.a,{title:i.a.formatMoney(e.cost)},r.a.createElement("span",null,r.a.createElement(u.a,{disabled:t.funds<e.cost,onClick:()=>{return n=e.cost,a=e.size,void(t.funds<n||(Object(s.C)(t,e.office,a),e.rerender(),e.onClose()));var n,a}},"+",e.size)))}function p(e){const t=Object(c.b)(),n=Math.round(e.office.size/o.a.OfficeInitialSize),a=o.a.OfficeInitialCost*Math.pow(1.09,n);let i=0;for(let e=0;e<5;++e)i+=Math.pow(1.09,n+e);const s=o.a.OfficeInitialCost*i,u=t.funds/o.a.OfficeInitialCost;let m=1;for(i=Math.pow(1.09,n);m<50&&!(i>=u);){const e=Math.pow(1.09,n+m);if(i+e>u)break;i+=e,++m}const p=o.a.OfficeInitialCost*i;return r.a.createElement(l.a,{open:e.open,onClose:e.onClose},r.a.createElement(f.a,null,"Increase the size of your office space to fit additional employees!"),r.a.createElement(h.a,{display:"flex",alignItems:"center"},r.a.createElement(f.a,null,"Upgrade size: "),r.a.createElement(d,{onClose:e.onClose,rerender:e.rerender,office:e.office,corp:t,cost:a,size:o.a.OfficeInitialSize}),r.a.createElement(d,{onClose:e.onClose,rerender:e.rerender,office:e.office,corp:t,cost:s,size:5*o.a.OfficeInitialSize}),r.a.createElement(d,{onClose:e.onClose,rerender:e.rerender,office:e.office,corp:t,cost:p,size:m*o.a.OfficeInitialSize})))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var a=n(0),r=n.n(a),i=n(6),o=n(14),s=n(62),l=n(20),c=n(37),f=n(46),u=n(1),m=n(8),h=n(75),d=n(18),p=n(25);function g(e){const t=Object(f.b)(),[n,g]=Object(a.useState)(0),y=n*e.office.employees.length,b=t.funds>=y;function E(){if(null===n||isNaN(n)||n<0)Object(o.a)("Invalid value entered");else if(b){const a=Object(s.A)(t,e.office,n);Object(o.a)("You threw a party for the office! The morale and happiness of each employee increased by "+i.a.formatPercentage(a-1)),e.rerender(),e.onClose()}else Object(o.a)("You don't have enough company funds to throw a party!")}function v(){return isNaN(n)||n<0?r.a.createElement(u.a,null,"Invalid value entered!"):r.a.createElement(u.a,null,"Throwing this party will cost a total of ",r.a.createElement(l.a,{money:y}))}return r.a.createElement(c.a,{open:e.open,onClose:e.onClose},r.a.createElement(u.a,null,"Enter the amount of money you would like to spend PER EMPLOYEE on this office party"),r.a.createElement(v,null),r.a.createElement(d.a,{display:"flex",alignItems:"center"},r.a.createElement(h.a,{autoFocus:!0,type:"number",placeholder:"$ / employee",value:n,onChange:function(e){let t=parseFloat(e.target.value);isNaN(t)&&(t=0),g(t)},onKeyDown:function(e){e.key===p.a.ENTER&&E()}}),r.a.createElement(m.a,{disabled:!b,onClick:E},"Throw Party")))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return O}));var a=n(0),r=n.n(a),i=n(50),o=n(329),s=n(6),l=n(256),c=n(1215),f=n(1216),u=n(20),m=n(121),h=n(203),d=n(481),p=n(145),g=n(46),y=n(1),b=n(8),E=n(19),v=n(43),k=n(112),w=n(304),_=n.n(w),S=n(18);function C(){const e=Object(g.b)(),t=Object(g.c)(),[n,o]=Object(a.useState)(!1),s=t.hasMaximumNumberProducts();let l="";switch(t.type){case i.a.Food:l="Build Restaurant";break;case i.a.Tobacco:l="Create Product";break;case i.a.Pharmaceutical:l="Create Drug";break;case i.a.Computer:case"Computer":l="Create Product";break;case i.a.Robotics:l="Design Robot";break;case i.a.Software:l="Develop Software";break;case i.a.Healthcare:l="Build Hospital";break;case i.a.RealEstate:l="Develop Property";break;default:return l="Create Product",r.a.createElement(r.a.Fragment,null)}return r.a.createElement(r.a.Fragment,null,r.a.createElement(E.a,{title:s?r.a.createElement(y.a,null,"You have reached the maximum number of products: ",t.getMaximumNumberProducts()):""},r.a.createElement(b.a,{color:0===Object.keys(t.products).length?"error":"primary",onClick:()=>o(!0),disabled:e.funds<0},l)),r.a.createElement(c.a,{open:n,onClose:()=>o(!1)}))}function x(){const e=Object(g.b)(),t=Object(g.c)(),[n,i]=Object(a.useState)(!1),[o,c]=Object(a.useState)(!1),p=1===e.unlockUpgrades[4],v=t.lastCycleRevenue-t.lastCycleExpenses;let w=!1;const C=t.getAdvertisingFactors(),x=C[1],L=C[2],O=C[3],M=C[0];function T(e){return Object(l.a)({progress:e,totalTicks:20})}return p&&(w=!0),r.a.createElement(r.a.Fragment,null,r.a.createElement(y.a,null,"Industry: ",t.type," (Corp Funds: ",r.a.createElement(u.a,{money:e.funds}),")"),r.a.createElement("br",null),r.a.createElement(h.a,{rows:[["Awareness:",s.a.format(t.awareness,"0.000")],["Popularity:",s.a.format(t.popularity,"0.000")]]}),!1!==w&&r.a.createElement(E.a,{title:r.a.createElement(r.a.Fragment,null,r.a.createElement(y.a,null,"Total multiplier for this industrys sales due to its awareness and popularity"),r.a.createElement(h.a,{rows:[["Awareness Bonus:","x"+s.a.format(Math.pow(x,.85),"0.000")],["Popularity Bonus:","x"+s.a.format(Math.pow(L,.85),"0.000")],["Ratio Multiplier:","x"+s.a.format(Math.pow(O,.85),"0.000")]]}))},r.a.createElement(y.a,null,"Advertising Multiplier: x",s.a.format(M,"0.000"))),r.a.createElement("br",null),r.a.createElement(h.a,{rows:[["Revenue:",r.a.createElement(m.a,{money:t.lastCycleRevenue})],["Expenses:",r.a.createElement(m.a,{money:t.lastCycleExpenses})],["Profit:",r.a.createElement(m.a,{money:v})]]}),r.a.createElement("br",null),r.a.createElement(S.a,{display:"flex",alignItems:"center"},r.a.createElement(E.a,{title:r.a.createElement(y.a,null,"Production gain from owning production-boosting materials such as hardware, Robots, AI Cores, and Real Estate.")},r.a.createElement(y.a,null,"Production Multiplier: ",s.a.format(t.prodMult,"0.00"))),r.a.createElement(k.a,{onClick:()=>i(!0)},r.a.createElement(_.a,null)),r.a.createElement(d.a,{open:n,onClose:()=>i(!1)},r.a.createElement(y.a,null,"Owning Hardware, Robots, AI Cores, and Real Estate can boost your Industry's production. The effect these materials have on your production varies between Industries. For example, Real Estate may be very effective for some Industries, but ineffective for others.",r.a.createElement("br",null),r.a.createElement("br",null),"This division's production multiplier is calculated by summing the individual production multiplier of each of its office locations. This production multiplier is applied to each office. Therefore, it is beneficial to expand into new cities as this can greatly increase the production multiplier of your entire Division.",r.a.createElement("br",null),r.a.createElement("br",null),"Below are approximations for how effective each material is at boosting this industry's production multiplier (Bigger bars = more effective):",r.a.createElement("br",null),r.a.createElement("br",null),"Hardware: ",T(t.hwFac),r.a.createElement("br",null),"Robots: ",T(t.robFac),r.a.createElement("br",null),"AI Cores: ",T(t.aiFac),r.a.createElement("br",null),"Real Estate: ",T(t.reFac)))),r.a.createElement(S.a,{display:"flex",alignItems:"center"},r.a.createElement(E.a,{title:r.a.createElement(y.a,null,"Scientific Research increases the quality of the materials and products that you produce.")},r.a.createElement(y.a,null,"Scientific Research: ",s.a.format(t.sciResearch.qty,"0.000a"))),r.a.createElement(b.a,{sx:{mx:1},onClick:()=>c(!0)},"Research"),r.a.createElement(f.a,{open:o,onClose:()=>c(!1),industry:t})))}function L(e){const t=Object(g.b)(),n=Object(g.c)(),a=[];for(const s of Object.keys(o.a)){const l=o.a[s];if(n.hasResearch("AutoBrew")&&"Coffee"===l[4])continue;const c=l[0],f=l[1],u=l[2];let m=0;switch(c){case 0:m=e.office.employees.length*f;break;default:m=f*Math.pow(u,n.upgrades[c])}function i(){t.funds<m||(t.funds=t.funds-m,n.upgrade(l,{corporation:t,office:e.office}),e.rerender())}a.push(r.a.createElement(E.a,{key:s,title:l[5]},r.a.createElement("span",null,r.a.createElement(b.a,{disabled:t.funds<m,onClick:i},l[4]," - ",r.a.createElement(p.a,{money:m,corp:t})))))}return r.a.createElement(r.a.Fragment,null,a)}function O(e){const t=Object(g.c)();return r.a.createElement(v.a,null,r.a.createElement(x,null),r.a.createElement("br",null),r.a.createElement(y.a,null,"Purchases & Upgrades"),r.a.createElement(L,{office:e.office,rerender:e.rerender})," ",r.a.createElement("br",null),t.makesProducts&&r.a.createElement(C,null))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var a=n(0),r=n.n(a),i=n(14),o=n(37),s=n(50),l=n(62),c=n(46),f=n(1),u=n(75),m=n(8),h=n(71),d=n(130),p=n(25);function g(e){const t=Object(c.b)(),n=Object(c.c)(),g=Object.keys(n.offices).filter(e=>0!==n.offices[e]),[y,b]=Object(a.useState)(g.length>0?g[0]:""),[E,v]=Object(a.useState)(""),[k,w]=Object(a.useState)(null),[_,S]=Object(a.useState)(null);if(n.hasMaximumNumberProducts())return r.a.createElement(r.a.Fragment,null);let C=r.a.createElement(r.a.Fragment,null);switch(n.type){case s.a.Food:C=r.a.createElement(r.a.Fragment,null,C,r.a.createElement("br",null),"Build and manage a new restaurant!");break;case s.a.Tobacco:C=r.a.createElement(r.a.Fragment,null,C,r.a.createElement("br",null),"Create a new tobacco product!");break;case s.a.Pharmaceutical:C=r.a.createElement(r.a.Fragment,null,C,r.a.createElement("br",null),"Design and develop a new pharmaceutical drug!");break;case s.a.Computer:case"Computer":C=r.a.createElement(r.a.Fragment,null,C,r.a.createElement("br",null),"Design and manufacture a new computer hardware product!");break;case s.a.Robotics:C=r.a.createElement(r.a.Fragment,null,C,r.a.createElement("br",null),"Design and create a new robot or robotic system!");break;case s.a.Software:C=r.a.createElement(r.a.Fragment,null,C,r.a.createElement("br",null),"Develop a new piece of software!");break;case s.a.Healthcare:C=r.a.createElement(r.a.Fragment,null,C,r.a.createElement("br",null),"Build and manage a new hospital!");break;case s.a.RealEstate:C=r.a.createElement(r.a.Fragment,null,C,r.a.createElement("br",null),"Develop a new piece of real estate property!");break;default:return C=r.a.createElement(r.a.Fragment,null,C,r.a.createElement("br",null),"Create a new product!"),r.a.createElement(r.a.Fragment,null)}function x(){if(null!==k&&null!==_){try{Object(l.m)(t,n,y,E,k,_)}catch(e){Object(i.a)(e+"")}e.onClose()}}return C=r.a.createElement(r.a.Fragment,null,C,r.a.createElement("br",null),r.a.createElement("br",null),"To begin developing a product, first choose the city in which it will be designed. The stats of your employees in the selected city affect the properties of the finished product, such as its quality, performance, and durability.",r.a.createElement("br",null),r.a.createElement("br",null),"You can also choose to invest money in the design and marketing of the product. Investing money in its design will result in a superior product. Investing money in marketing the product will help the product's sales."),r.a.createElement(o.a,{open:e.open,onClose:e.onClose},r.a.createElement(f.a,null,C),r.a.createElement(d.a,{style:{margin:"5px"},onChange:function(e){b(e.target.value)},defaultValue:y},g.map(e=>r.a.createElement(h.a,{key:e,value:e},e))),r.a.createElement(u.a,{onChange:function(e){v(e.target.value)},placeholder:(L=n.type,L===s.a.Food?"Restaurant Name":L===s.a.Healthcare?"Hospital Name":L===s.a.RealEstate?"Property Name":"Product Name")}),r.a.createElement("br",null),r.a.createElement(u.a,{onChange:function(e){""===e.target.value?w(null):w(parseFloat(e.target.value))},autoFocus:!0,type:"number",placeholder:"Design investment"}),r.a.createElement(u.a,{onChange:function(e){""===e.target.value?S(null):S(parseFloat(e.target.value))},onKeyDown:function(e){e.key===p.a.ENTER&&x()},type:"number",placeholder:"Marketing investment"}),r.a.createElement(m.a,{onClick:x},"Develop Product"));var L}},function(e,t,n){"use strict";n.d(t,"a",(function(){return S}));var a=n(0),r=n.n(a),i=n(37),o=n(50),s=n(39),l=n(62),c=n(289),f=n(5),u=n(14),m=n(1),h=n(19),d=n(8),p=n(18),g=n(280),y=n(80),b=n.n(y),E=n(211),v=n.n(E),k=n(332),w=n.n(k);function _({n:e,division:t}){const[n,i]=Object(a.useState)(!1);if(null===e)return r.a.createElement(r.a.Fragment,null);const o=c.a[e.text];let y=t.sciResearch.qty<o.cost||e.researched;const E=e.parent;function k(){if(null!==e&&!y){try{Object(l.q)(t,e.text)}catch(e){return void Object(u.a)(e+"")}Object(u.a)(`Researched ${e.text}. It may take a market cycle (~${s.a.SecsPerMarketCycle} seconds) before the effects of the Research apply.`)}}null!==E&&(y=y||!E.researched);let S="primary";e.researched&&(S="info");const C=e=>r.a.createElement(h.a,{title:r.a.createElement(m.a,null,"Research points: ",o.cost,r.a.createElement("br",null),o.desc)},e),x=r.a.createElement(p.a,null,C(r.a.createElement("span",null,r.a.createElement(d.a,{color:S,disabled:y&&!e.researched,onClick:k,style:{width:"100%",textAlign:"left",justifyContent:"unset"}},e.researched&&r.a.createElement(w.a,{sx:{mr:1}}),e.text))));return 0===e.children.length?x:r.a.createElement(p.a,null,r.a.createElement(p.a,{display:"flex",sx:{border:"1px solid "+f.a.theme.well}},C(r.a.createElement("span",{style:{width:"100%"}},r.a.createElement(d.a,{color:S,disabled:y&&!e.researched,onClick:k,sx:{width:"100%",textAlign:"left",justifyContent:"unset",borderColor:f.a.theme.button}},e.researched&&r.a.createElement(w.a,{sx:{mr:1}}),e.text))),r.a.createElement(d.a,{onClick:()=>i(e=>!e),sx:{borderColor:f.a.theme.button,minWidth:"fit-content"}},n?r.a.createElement(v.a,{color:"primary"}):r.a.createElement(b.a,{color:"primary"}))),r.a.createElement(g.a,{in:n,unmountOnExit:!0},r.a.createElement(p.a,{m:1},e.children.map(e=>r.a.createElement(_,{key:e.text,division:t,n:e})))))}function S(e){const t=o.c[e.industry.type];return void 0===t?r.a.createElement(r.a.Fragment,null):r.a.createElement(i.a,{open:e.open,onClose:e.onClose},r.a.createElement(_,{division:e.industry,n:t.root}),r.a.createElement(m.a,{sx:{mt:1}},"Research points: ",e.industry.sciResearch.qty.toFixed(3),r.a.createElement("br",null),"Multipliers from research:",r.a.createElement("br",null),"* Advertising Multiplier: x",t.getAdvertisingMultiplier(),r.a.createElement("br",null),"* Employee Charisma Multiplier: x",t.getEmployeeChaMultiplier(),r.a.createElement("br",null),"* Employee Creativity Multiplier: x",t.getEmployeeCreMultiplier(),r.a.createElement("br",null),"* Employee Efficiency Multiplier: x",t.getEmployeeEffMultiplier(),r.a.createElement("br",null),"* Employee Intelligence Multiplier: x",t.getEmployeeIntMultiplier(),r.a.createElement("br",null),"* Production Multiplier: x",t.getProductionMultiplier(),r.a.createElement("br",null),"* Sales Multiplier: x",t.getSalesMultiplier(),r.a.createElement("br",null),"* Scientific Research Multiplier: x",t.getScientificResearchMultiplier(),r.a.createElement("br",null),"* Storage Multiplier: x",t.getStorageMultiplier()))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return O}));var a=n(0),r=n.n(a),i=n(39),o=n(204),s=n(419),l=n(246),c=n(1218),f=n(1219),u=n(1225),m=n(183),h=n(6),d=n(145),p=n(420),g=n(1231),y=n(62),b=n(46),E=n(1),v=n(19),k=n(43),w=n(8),_=n(18),S=n(118),C=n(142);const x=Object(S.a)(()=>Object(C.a)({retainHeight:{minHeight:"3em"}}));function L(e){const t=Object(b.b)(),n=Object(b.c)(),[l,y]=Object(a.useState)(!1);if(0===e.warehouse)return r.a.createElement(r.a.Fragment,null);const S=i.a.WarehouseUpgradeBaseCost*Math.pow(1.07,e.warehouse.level+1),C=t.funds>S;const L=x();let O;switch(n.state){case"START":O="Current state: Preparing...";break;case"PURCHASE":O="Current state: Purchasing materials...";break;case"PRODUCTION":O="Current state: Producing materials and/or products...";break;case"SALE":O="Current state: Selling materials and/or products...";break;case"EXPORT":O="Current state: Exporting materials and/or products...";break;default:console.error("Invalid state: "+n.state)}const M=[];for(const t of Object.keys(e.warehouse.materials)){if(!(e.warehouse.materials[t]instanceof o.a))continue;const a=e.warehouse.materials[t].qty>0,i=Object(p.a)(t,n);(a||i)&&M.push(r.a.createElement(u.a,{rerender:e.rerender,city:e.currentCity,key:t,mat:e.warehouse.materials[t],warehouse:e.warehouse}))}const T=[];if(n.makesProducts&&Object.keys(n.products).length>0)for(const t of Object.keys(n.products)){const a=n.products[t];a instanceof s.a&&T.push(r.a.createElement(f.a,{rerender:e.rerender,city:e.currentCity,key:t,product:a}))}const A=[];for(const t of Object.keys(e.warehouse.materials)){const n=e.warehouse.materials[t];m.a.hasOwnProperty(t)&&(0!==n.qty&&A.push(r.a.createElement(r.a.Fragment,null,t,": ",h.a.format(n.qty*m.a[t],"0,0.0"))))}for(const t of Object.keys(n.products)){const a=n.products[t];void 0!==a&&A.push(r.a.createElement(r.a.Fragment,null,t,": ",h.a.format(a.data[e.warehouse.loc][0]*a.siz,"0,0.0")))}let R;return R=A&&A.length>0?A.reduce((e,t)=>e&&r.a.createElement(r.a.Fragment,null,e,r.a.createElement("br",null),t)||r.a.createElement(r.a.Fragment,null,t)):r.a.createElement(r.a.Fragment,null,"No items in storage."),r.a.createElement(k.a,null,r.a.createElement(_.a,{display:"flex",alignItems:"center"},r.a.createElement(v.a,{title:0!==e.warehouse.sizeUsed?r.a.createElement(E.a,null,r.a.createElement(r.a.Fragment,null,R)):""},r.a.createElement(E.a,{color:e.warehouse.sizeUsed>=e.warehouse.size?"error":"primary"},"Storage: ",h.a.formatBigNumber(e.warehouse.sizeUsed)," /"," ",h.a.formatBigNumber(e.warehouse.size)))),r.a.createElement(w.a,{disabled:!C,onClick:function(){null!==n&&0!==e.warehouse&&C&&(++e.warehouse.level,e.warehouse.updateSize(t,n),t.funds=t.funds-S,e.rerender())}},"Upgrade Warehouse Size - ",r.a.createElement(d.a,{money:S,corp:t})),r.a.createElement(E.a,null,"This industry uses the following equation for its production: "),r.a.createElement("br",null),r.a.createElement(E.a,null,r.a.createElement(g.a,{key:n.name,division:n})),r.a.createElement("br",null),r.a.createElement(E.a,null,"To get started with production, purchase your required materials or import them from another of your company's divisions."),r.a.createElement("br",null),r.a.createElement(E.a,{className:L.retainHeight},O),t.unlockUpgrades[1]&&r.a.createElement(r.a.Fragment,null,r.a.createElement(w.a,{onClick:()=>y(!0)},"Configure Smart Supply"),r.a.createElement(c.a,{open:l,onClose:()=>y(!1),warehouse:e.warehouse})),M,T)}function O(e){return e.warehouse instanceof l.a?r.a.createElement(L,e):r.a.createElement(M,{rerender:e.rerender,city:e.currentCity})}function M(e){const t=Object(b.b)(),n=Object(b.c)(),a=t.funds<i.a.WarehouseInitialCost;return r.a.createElement(k.a,null,r.a.createElement(w.a,{onClick:function(){a||(Object(y.p)(t,n,e.city),e.rerender())},disabled:a},"Purchase Warehouse (",r.a.createElement(d.a,{money:i.a.WarehouseInitialCost,corp:t}),")"))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var a=n(0),r=n.n(a),i=n(62),o=n(204),s=n(14),l=n(37),c=n(46),f=n(1),u=n(341),m=n(281);function h(e){const[t,n]=Object(a.useState)(!!e.warehouse.smartSupplyUseLeftovers[e.matName.replace(/ /g,"")]);return r.a.createElement(r.a.Fragment,null,r.a.createElement(u.a,{control:r.a.createElement(m.a,{checked:t,onChange:function(t){try{const n=e.matName.replace(/ /g,""),a=e.warehouse.materials[n];Object(i.z)(e.warehouse,a,t.target.checked)}catch(e){Object(s.a)(e+"")}n(t.target.checked)}}),label:r.a.createElement(f.a,null,e.warehouse.materials[e.matName.replace(/ /g,"")].name)}),r.a.createElement("br",null))}function d(e){const t=Object(c.c)(),n=Object(a.useState)(!1)[1];const s=[];for(const n of Object.keys(e.warehouse.materials))e.warehouse.materials[n]instanceof o.a&&Object.keys(t.reqMats).includes(n)&&s.push(r.a.createElement(h,{key:n,warehouse:e.warehouse,matName:n}));return r.a.createElement(l.a,{open:e.open,onClose:e.onClose},r.a.createElement(r.a.Fragment,null,r.a.createElement(u.a,{control:r.a.createElement(m.a,{checked:e.warehouse.smartSupplyEnabled,onChange:function(t){Object(i.y)(e.warehouse,t.target.checked),n(e=>!e)}}),label:r.a.createElement(f.a,null,"Enable Smart Supply")}),r.a.createElement("br",null),r.a.createElement(f.a,null,"Use materials already in the warehouse instead of buying new ones, if available:"),s))}},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return ProductElem}));var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__),_data_Constants__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(39),_modals_DiscontinueProductModal__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(1220),_modals_LimitProductProductionModal__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(1221),_modals_SellProductModal__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(1222),_modals_ProductMarketTaModal__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(1223),_modals_CancelProductModal__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(1224),_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(6),_utils_helpers_isString__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(148),_ui_React_Money__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(20),_Context__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(46),_mui_material_Typography__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(1),_mui_material_Tooltip__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(19),_mui_material_Paper__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(43),_mui_material_Button__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(8),_mui_material_Box__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(18);function ProductElem(props){const corp=Object(_Context__WEBPACK_IMPORTED_MODULE_10__.b)(),division=Object(_Context__WEBPACK_IMPORTED_MODULE_10__.c)(),[sellOpen,setSellOpen]=Object(react__WEBPACK_IMPORTED_MODULE_0__.useState)(!1),[limitOpen,setLimitOpen]=Object(react__WEBPACK_IMPORTED_MODULE_0__.useState)(!1),[discontinueOpen,setDiscontinueOpen]=Object(react__WEBPACK_IMPORTED_MODULE_0__.useState)(!1),[cancelOpen,setCancelOpen]=Object(react__WEBPACK_IMPORTED_MODULE_0__.useState)(!1),[marketTaOpen,setMarketTaOpen]=Object(react__WEBPACK_IMPORTED_MODULE_0__.useState)(!1),city=props.city,product=props.product,nf="0.000",nfB="0.000a",hasUpgradeDashboard=division.hasResearch("uPgrade: Dashboard"),totalGain=product.data[city][1]-product.data[city][2];let sellButtonText;if(sellButtonText=product.sllman[city][0]?Object(_utils_helpers_isString__WEBPACK_IMPORTED_MODULE_8__.a)(product.sllman[city][1])?react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_0___default.a.Fragment,null,"Sell (",_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_7__.a.format(product.data[city][2],nfB),"/",product.sllman[city][1],")"):react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_0___default.a.Fragment,null,"Sell (",_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_7__.a.format(product.data[city][2],nfB),"/",_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_7__.a.format(product.sllman[city][1],nfB),")"):react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_0___default.a.Fragment,null,"Sell (0.000/0.000)"),product.marketTa2)sellButtonText=react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_0___default.a.Fragment,null,sellButtonText," @ ",react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_ui_React_Money__WEBPACK_IMPORTED_MODULE_9__.a,{money:product.marketTa2Price[city]}));else if(product.marketTa1){const e=product.rat/product.mku;sellButtonText=react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_0___default.a.Fragment,null,sellButtonText," @ ",react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_ui_React_Money__WEBPACK_IMPORTED_MODULE_9__.a,{money:product.pCost+e}))}else if(product.sCost)if(Object(_utils_helpers_isString__WEBPACK_IMPORTED_MODULE_8__.a)(product.sCost)){const sCost=product.sCost.replace(/MP/g,product.pCost+product.rat/product.mku+"");sellButtonText=react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_0___default.a.Fragment,null,sellButtonText," @ ",react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_ui_React_Money__WEBPACK_IMPORTED_MODULE_9__.a,{money:eval(sCost)}))}else sellButtonText=react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_0___default.a.Fragment,null,sellButtonText," @ ",react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_ui_React_Money__WEBPACK_IMPORTED_MODULE_9__.a,{money:product.sCost}));let limitProductionButtonText="Limit Production";return product.prdman[city][0]&&(limitProductionButtonText+=" ("+_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_7__.a.format(product.prdman[city][1],nf)+")"),react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_mui_material_Paper__WEBPACK_IMPORTED_MODULE_13__.a,null,product.fin?react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_0___default.a.Fragment,null,react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_mui_material_Box__WEBPACK_IMPORTED_MODULE_15__.a,{display:"flex"},react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_mui_material_Tooltip__WEBPACK_IMPORTED_MODULE_12__.a,{title:react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_mui_material_Typography__WEBPACK_IMPORTED_MODULE_11__.a,null,"Prod: ",_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_7__.a.format(product.data[city][1],nfB),"/s",react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("br",null),"Sell: ",_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_7__.a.format(product.data[city][2],nfB)," /s")},react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_mui_material_Typography__WEBPACK_IMPORTED_MODULE_11__.a,null,product.name,": ",_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_7__.a.format(product.data[city][0],nfB)," (",_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_7__.a.format(totalGain,nfB),"/s)"))),react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_mui_material_Box__WEBPACK_IMPORTED_MODULE_15__.a,{display:"flex"},react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_mui_material_Tooltip__WEBPACK_IMPORTED_MODULE_12__.a,{title:react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_mui_material_Typography__WEBPACK_IMPORTED_MODULE_11__.a,null,"Quality: ",_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_7__.a.format(product.qlt,nf)," ",react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("br",null),"Performance: ",_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_7__.a.format(product.per,nf)," ",react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("br",null),"Durability: ",_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_7__.a.format(product.dur,nf)," ",react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("br",null),"Reliability: ",_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_7__.a.format(product.rel,nf)," ",react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("br",null),"Aesthetics: ",_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_7__.a.format(product.aes,nf)," ",react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("br",null),"Features: ",_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_7__.a.format(product.fea,nf),1===corp.unlockUpgrades[2]&&react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("br",null),1===corp.unlockUpgrades[2]&&"Demand: "+_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_7__.a.format(product.dmd,nf),1===corp.unlockUpgrades[3]&&react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("br",null),1===corp.unlockUpgrades[3]&&"Competition: "+_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_7__.a.format(product.cmp,nf))},react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_mui_material_Typography__WEBPACK_IMPORTED_MODULE_11__.a,null,"Rating: ",_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_7__.a.format(product.rat,nf)))),react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_mui_material_Box__WEBPACK_IMPORTED_MODULE_15__.a,{display:"flex"},react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_mui_material_Tooltip__WEBPACK_IMPORTED_MODULE_12__.a,{title:react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_mui_material_Typography__WEBPACK_IMPORTED_MODULE_11__.a,null,"An estimate of the material cost it takes to create this Product.")},react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_mui_material_Typography__WEBPACK_IMPORTED_MODULE_11__.a,null,"Est. Production Cost:"," ",_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_7__.a.formatMoney(product.pCost/_data_Constants__WEBPACK_IMPORTED_MODULE_1__.a.ProductProductionCostRatio)))),react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_mui_material_Box__WEBPACK_IMPORTED_MODULE_15__.a,{display:"flex"},react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_mui_material_Tooltip__WEBPACK_IMPORTED_MODULE_12__.a,{title:react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_mui_material_Typography__WEBPACK_IMPORTED_MODULE_11__.a,null,"An estimate of how much consumers are willing to pay for this product. Setting the sale price above this may result in less sales. Setting the sale price below this may result in more sales.")},react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_mui_material_Typography__WEBPACK_IMPORTED_MODULE_11__.a,null,"Est. Market Price: ",_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_7__.a.formatMoney(product.pCost)))),react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_mui_material_Button__WEBPACK_IMPORTED_MODULE_14__.a,{onClick:()=>setDiscontinueOpen(!0)},"Discontinue"),react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_modals_DiscontinueProductModal__WEBPACK_IMPORTED_MODULE_2__.a,{product:product,rerender:props.rerender,open:discontinueOpen,onClose:()=>setDiscontinueOpen(!1)})):react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_0___default.a.Fragment,null,react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_mui_material_Typography__WEBPACK_IMPORTED_MODULE_11__.a,null,"Designing ",product.name," (req. Operations/Engineers in ",product.createCity,")..."),react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("br",null),react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_mui_material_Typography__WEBPACK_IMPORTED_MODULE_11__.a,null,_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_7__.a.format(product.prog,"0.00"),"% complete"),react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_mui_material_Button__WEBPACK_IMPORTED_MODULE_14__.a,{onClick:()=>setCancelOpen(!0)},"Cancel"),react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_modals_CancelProductModal__WEBPACK_IMPORTED_MODULE_6__.a,{product:product,rerender:props.rerender,open:cancelOpen,onClose:()=>setCancelOpen(!1)})),(hasUpgradeDashboard||product.fin)&&react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_0___default.a.Fragment,null,react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_mui_material_Button__WEBPACK_IMPORTED_MODULE_14__.a,{onClick:()=>setSellOpen(!0)},sellButtonText),react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_modals_SellProductModal__WEBPACK_IMPORTED_MODULE_4__.a,{product:product,city:city,open:sellOpen,onClose:()=>setSellOpen(!1)}),react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("br",null),react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_mui_material_Button__WEBPACK_IMPORTED_MODULE_14__.a,{onClick:()=>setLimitOpen(!0)},limitProductionButtonText),react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_modals_LimitProductProductionModal__WEBPACK_IMPORTED_MODULE_3__.a,{product:product,city:city,open:limitOpen,onClose:()=>setLimitOpen(!1)}),division.hasResearch("Market-TA.I")&&react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_0___default.a.Fragment,null,react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_mui_material_Button__WEBPACK_IMPORTED_MODULE_14__.a,{onClick:()=>setMarketTaOpen(!0)},"Market-TA"),react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_modals_ProductMarketTaModal__WEBPACK_IMPORTED_MODULE_5__.a,{product:product,open:marketTaOpen,onClose:()=>setMarketTaOpen(!1)}))))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var a=n(0),r=n.n(a),i=n(37),o=n(46),s=n(1),l=n(8);function c(e){const t=Object(o.c)();return r.a.createElement(i.a,{open:e.open,onClose:e.onClose},r.a.createElement(s.a,null,"Are you sure you want to do this? Discontinuing a product removes it completely and permanently. You will no longer produce this product and all of its existing stock will be removed and left unsold"),r.a.createElement(l.a,{onClick:function(){t.discontinueProduct(e.product),e.onClose(),e.rerender()}},"Discontinue"))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var a=n(0),r=n.n(a),i=n(62),o=n(37),s=n(1),l=n(8),c=n(75),f=n(25);function u(e){const[t,n]=Object(a.useState)(null);function u(){let n=t;null===n&&(n=-1),Object(i.l)(e.product,e.city,n),e.onClose()}return Object(a.useEffect)(()=>{e.open||n(null)},[e.open]),r.a.createElement(o.a,{open:e.open,onClose:e.onClose},r.a.createElement(s.a,null,"Enter a limit to the amount of this product you would like to produce per second. Leave the box empty to set no limit."),r.a.createElement(c.a,{autoFocus:!0,placeholder:"Limit",type:"number",onChange:function(e){""===e.target.value?n(null):n(parseFloat(e.target.value))},onKeyDown:function(e){e.key===f.a.ENTER&&u()}}),r.a.createElement(l.a,{onClick:u},"Limit production"))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var a=n(0),r=n.n(a),i=n(14),o=n(62),s=n(37),l=n(1),c=n(75),f=n(8),u=n(341),m=n(281),h=n(25);function d(e){const[t,n]=Object(a.useState)(!0),[d,p]=Object(a.useState)(e.product.sllman[e.city][1]?e.product.sllman[e.city][1]:""),[g,y]=Object(a.useState)(function(e){let t=e.sCost?e.sCost+"":"";return e.marketTa2?t+=" (Market-TA.II)":e.marketTa1&&(t+=" (Market-TA.I)"),t}(e.product));function b(){try{Object(o.s)(e.product,e.city,d,g,t)}catch(e){Object(i.a)(e+"")}e.onClose()}function E(e){e.key===h.a.ENTER&&b()}return r.a.createElement(s.a,{open:e.open,onClose:e.onClose},r.a.createElement(l.a,null,"Enter the maximum amount of ",e.product.name," you would like to sell per second, as well as the price at which you would like to sell it at.",r.a.createElement("br",null),r.a.createElement("br",null),"If the sell amount is set to 0, then the product will not be sold. If the sell price is set to 0, then the product will be discarded.",r.a.createElement("br",null),r.a.createElement("br",null),"Setting the sell amount to 'MAX' will result in you always selling the maximum possible amount of the material.",r.a.createElement("br",null),r.a.createElement("br",null),"When setting the sell amount, you can use the 'PROD' variable to designate a dynamically changing amount that depends on your production. For example, if you set the sell amount to 'PROD-1' then you will always sell 1 less of the material than you produce.",r.a.createElement("br",null),r.a.createElement("br",null),"When setting the sell price, you can use the 'MP' variable to set a dynamically changing price that depends on the Product's estimated market price. For example, if you set it to 'MP*5' then it will always be sold at five times the estimated market price."),r.a.createElement("br",null),r.a.createElement(c.a,{value:d,autoFocus:!0,type:"text",placeholder:"Sell amount",onChange:function(e){p(e.target.value)},onKeyDown:E}),r.a.createElement(c.a,{value:g,type:"text",placeholder:"Sell price",onChange:function(e){y(e.target.value)},onKeyDown:E}),r.a.createElement(f.a,{onClick:b},"Confirm"),r.a.createElement(u.a,{control:r.a.createElement(m.a,{checked:t,onChange:function(e){n(e.target.checked)}}),label:r.a.createElement(l.a,null,"Use same 'Sell Amount' for all cities")}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var a=n(0),r=n.n(a),i=n(6),o=n(37),s=n(46),l=n(1),c=n(75),f=n(341),u=n(281),m=n(19);function h(e){if(!Object(s.c)().hasResearch("Market-TA.II"))return r.a.createElement(r.a.Fragment,null);const t=e.product.rat/e.product.mku,[n,o]=Object(a.useState)(e.product.pCost),h=Object(a.useState)(!1)[1];const d=n;let p=1;return d>e.product.pCost&&d-e.product.pCost>t&&(p=t/(d-e.product.pCost)),r.a.createElement(r.a.Fragment,null,r.a.createElement(l.a,{variant:"h4"},"Market-TA.II"),r.a.createElement("br",null),r.a.createElement(l.a,null,"If you sell at ",i.a.formatMoney(d),", then you will sell"," ",i.a.format(p,"0.00000"),"x as much compared to if you sold at market price."),r.a.createElement(c.a,{type:"number",onChange:function(e){o(parseFloat(e.target.value))},value:n}),r.a.createElement("br",null),r.a.createElement(f.a,{control:r.a.createElement(u.a,{checked:e.product.marketTa2,onChange:function(t){e.product.marketTa2=t.target.checked,h(e=>!e)}}),label:r.a.createElement(m.a,{title:r.a.createElement(l.a,null,"If this is enabled, then this Material will automatically be sold at the optimal price such that the amount sold matches the amount produced. (i.e. the highest possible price, while still ensuring that all produced materials will be sold)")},r.a.createElement(l.a,null,"Use Market-TA.II for Auto-Sale Price"))}))}function d(e){const t=e.product.rat/e.product.mku,n=Object(a.useState)(!1)[1];return r.a.createElement(o.a,{open:e.open,onClose:e.onClose},r.a.createElement(r.a.Fragment,null,r.a.createElement(l.a,{variant:"h4"},"Market-TA.I"),r.a.createElement(l.a,null,"The maximum sale price you can mark this up to is"," ",i.a.formatMoney(e.product.pCost+t),". This means that if you set the sale price higher than this, you will begin to experience a loss in number of sales"),r.a.createElement(f.a,{control:r.a.createElement(u.a,{checked:e.product.marketTa1,onChange:function(t){e.product.marketTa1=t.target.checked,n(e=>!e)}}),label:r.a.createElement(m.a,{title:r.a.createElement(l.a,null,"If this is enabled, then this Material will automatically be sold at the price identified by Market-TA.I (i.e. the price shown above)")},r.a.createElement(l.a,null,"Use Market-TA.I for Auto-Sale Price"))})),r.a.createElement(h,{product:e.product}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var a=n(0),r=n.n(a),i=n(37),o=n(46),s=n(1),l=n(8);function c(e){const t=Object(o.c)();return r.a.createElement(i.a,{open:e.open,onClose:e.onClose},r.a.createElement(s.a,null,"Are you sure you want to do this? Canceling a product removes it completely and permanently. You will receive no money back by doing so"),r.a.createElement(l.a,{onClick:function(){t.discontinueProduct(e.product),e.onClose(),e.rerender()}},"Cancel"))}},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return MaterialElem}));var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__),_OfficeSpace__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(389),_modals_ExportModal__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(1226),_modals_MaterialMarketTaModal__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(1227),_modals_SellMaterialModal__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(1228),_modals_PurchaseMaterialModal__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(1229),_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(6),_utils_helpers_isString__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(148),_ui_React_Money__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(20),_Context__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(46),_mui_material_Typography__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(1),_mui_material_Tooltip__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(19),_mui_material_Paper__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(43),_mui_material_Button__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(8),_mui_material_Box__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(18),_modals_LimitMaterialProductionModal__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(1230);function MaterialElem(props){const corp=Object(_Context__WEBPACK_IMPORTED_MODULE_9__.b)(),division=Object(_Context__WEBPACK_IMPORTED_MODULE_9__.c)(),[purchaseMaterialOpen,setPurchaseMaterialOpen]=Object(react__WEBPACK_IMPORTED_MODULE_0__.useState)(!1),[exportOpen,setExportOpen]=Object(react__WEBPACK_IMPORTED_MODULE_0__.useState)(!1),[sellMaterialOpen,setSellMaterialOpen]=Object(react__WEBPACK_IMPORTED_MODULE_0__.useState)(!1),[materialMarketTaOpen,setMaterialMarketTaOpen]=Object(react__WEBPACK_IMPORTED_MODULE_0__.useState)(!1),[limitProductionOpen,setLimitProductionOpen]=Object(react__WEBPACK_IMPORTED_MODULE_0__.useState)(!1),warehouse=props.warehouse,city=props.city,mat=props.mat,markupLimit=mat.getMarkupLimit(),office=division.offices[city];if(!(office instanceof _OfficeSpace__WEBPACK_IMPORTED_MODULE_1__.a))throw new Error(`Could not get OfficeSpace object for this city (${city})`);const nf="0.000",nfB="0.000a",totalGain=mat.buy+mat.prd+mat.imp-mat.sll-mat.totalExp,tutorial=division.newInd&&Object.keys(division.reqMats).includes(mat.name)&&0===mat.buy&&0===mat.imp,purchaseButtonText=`Buy (${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__.a.format(mat.buy,nfB)})`;let sellButtonText;if(mat.sllman[0]){if(sellButtonText=Object(_utils_helpers_isString__WEBPACK_IMPORTED_MODULE_7__.a)(mat.sllman[1])?react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_0___default.a.Fragment,null,"Sell (",_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__.a.format(mat.sll,nfB),"/",mat.sllman[1],")"):react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_0___default.a.Fragment,null,"Sell (",_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__.a.format(mat.sll,nfB),"/",_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__.a.format(mat.sllman[1],nfB),")"),mat.marketTa2)sellButtonText=react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_0___default.a.Fragment,null,sellButtonText," @ ",react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_ui_React_Money__WEBPACK_IMPORTED_MODULE_8__.a,{money:mat.marketTa2Price}));else if(mat.marketTa1)sellButtonText=react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_0___default.a.Fragment,null,sellButtonText," @ ",react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_ui_React_Money__WEBPACK_IMPORTED_MODULE_8__.a,{money:mat.bCost+markupLimit}));else if(mat.sCost)if(Object(_utils_helpers_isString__WEBPACK_IMPORTED_MODULE_7__.a)(mat.sCost)){const sCost=mat.sCost.replace(/MP/g,mat.bCost+"");sellButtonText=react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_0___default.a.Fragment,null,sellButtonText," @ ",react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_ui_React_Money__WEBPACK_IMPORTED_MODULE_8__.a,{money:eval(sCost)}))}else sellButtonText=react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_0___default.a.Fragment,null,sellButtonText," @ ",react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_ui_React_Money__WEBPACK_IMPORTED_MODULE_8__.a,{money:mat.sCost}))}else sellButtonText=react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_0___default.a.Fragment,null,"Sell (0.000/0.000)");let limitMaterialButtonText="Limit Material";return mat.prdman[0]&&(limitMaterialButtonText+=" ("+_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__.a.format(mat.prdman[1],nf)+")"),react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_mui_material_Paper__WEBPACK_IMPORTED_MODULE_12__.a,null,react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_mui_material_Box__WEBPACK_IMPORTED_MODULE_14__.a,{sx:{display:"grid",gridTemplateColumns:"2fr 1fr",m:"5px"}},react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_mui_material_Box__WEBPACK_IMPORTED_MODULE_14__.a,null,react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_mui_material_Tooltip__WEBPACK_IMPORTED_MODULE_11__.a,{title:react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_mui_material_Typography__WEBPACK_IMPORTED_MODULE_10__.a,null,"Buy: ",_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__.a.format(mat.buy,nfB)," ",react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("br",null),"Prod: ",_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__.a.format(mat.prd,nfB)," ",react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("br",null),"Sell: ",_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__.a.format(mat.sll,nfB)," ",react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("br",null),"Export: ",_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__.a.format(mat.totalExp,nfB)," ",react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("br",null),"Import: ",_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__.a.format(mat.imp,nfB),1===corp.unlockUpgrades[2]&&react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("br",null),1===corp.unlockUpgrades[2]&&"Demand: "+_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__.a.format(mat.dmd,nf),1===corp.unlockUpgrades[3]&&react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("br",null),1===corp.unlockUpgrades[3]&&"Competition: "+_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__.a.format(mat.cmp,nf))},react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_mui_material_Typography__WEBPACK_IMPORTED_MODULE_10__.a,null,mat.name,": ",_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__.a.format(mat.qty,nfB)," (",_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__.a.format(totalGain,nfB),"/s)")),react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_mui_material_Tooltip__WEBPACK_IMPORTED_MODULE_11__.a,{title:react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_mui_material_Typography__WEBPACK_IMPORTED_MODULE_10__.a,null,"Market Price: The price you would pay if you were to buy this material on the market")},react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_mui_material_Typography__WEBPACK_IMPORTED_MODULE_10__.a,null,"MP: ",_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__.a.formatMoney(mat.bCost))),react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_mui_material_Tooltip__WEBPACK_IMPORTED_MODULE_11__.a,{title:react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_mui_material_Typography__WEBPACK_IMPORTED_MODULE_10__.a,null,"The quality of your material. Higher quality will lead to more sales")},react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_mui_material_Typography__WEBPACK_IMPORTED_MODULE_10__.a,null,"Quality: ",_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__.a.format(mat.qlt,"0.00a")))),react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_mui_material_Box__WEBPACK_IMPORTED_MODULE_14__.a,{sx:{"& button":{width:"100%"}}},react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_mui_material_Tooltip__WEBPACK_IMPORTED_MODULE_11__.a,{title:tutorial?react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_mui_material_Typography__WEBPACK_IMPORTED_MODULE_10__.a,null,"Purchase your required materials to get production started!"):""},react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_mui_material_Button__WEBPACK_IMPORTED_MODULE_13__.a,{color:tutorial?"error":"primary",onClick:()=>setPurchaseMaterialOpen(!0)},purchaseButtonText)),react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_modals_PurchaseMaterialModal__WEBPACK_IMPORTED_MODULE_5__.a,{mat:mat,warehouse:warehouse,open:purchaseMaterialOpen,disablePurchaseLimit:props.warehouse.smartSupplyEnabled&&Object.keys(division.reqMats).includes(props.mat.name),onClose:()=>setPurchaseMaterialOpen(!1)}),1===corp.unlockUpgrades[0]&&react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_0___default.a.Fragment,null,react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_mui_material_Button__WEBPACK_IMPORTED_MODULE_13__.a,{onClick:()=>setExportOpen(!0)},"Export"),react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_modals_ExportModal__WEBPACK_IMPORTED_MODULE_2__.a,{mat:mat,open:exportOpen,onClose:()=>setExportOpen(!1)})),react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_mui_material_Button__WEBPACK_IMPORTED_MODULE_13__.a,{color:division.prodMats.includes(props.mat.name)&&!mat.sllman[0]?"error":"primary",onClick:()=>setSellMaterialOpen(!0)},sellButtonText),react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_modals_SellMaterialModal__WEBPACK_IMPORTED_MODULE_4__.a,{mat:mat,open:sellMaterialOpen,onClose:()=>setSellMaterialOpen(!1)}),division.hasResearch("Market-TA.I")&&react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_0___default.a.Fragment,null,react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_mui_material_Button__WEBPACK_IMPORTED_MODULE_13__.a,{onClick:()=>setMaterialMarketTaOpen(!0)},"Market-TA"),react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_modals_MaterialMarketTaModal__WEBPACK_IMPORTED_MODULE_3__.a,{mat:mat,open:materialMarketTaOpen,onClose:()=>setMaterialMarketTaOpen(!1)})),react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_mui_material_Button__WEBPACK_IMPORTED_MODULE_13__.a,{color:tutorial?"error":"primary",onClick:()=>setLimitProductionOpen(!0)},limitMaterialButtonText),react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_modals_LimitMaterialProductionModal__WEBPACK_IMPORTED_MODULE_15__.a,{material:mat,open:limitProductionOpen,onClose:()=>setLimitProductionOpen(!1)}))))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var a=n(0),r=n.n(a),i=n(14),o=n(62),s=n(37),l=n(46),c=n(420),f=n(1),u=n(75),m=n(8),h=n(18),d=n(71),p=n(130);function g(e){const t=Object(l.b)(),n=t.divisions.filter(t=>Object(c.a)(e.mat.name,t));if(0===n.length)throw new Error("Export popup created with no divisions.");const g=n[0];if(0===Object.keys(g.warehouses).length)throw new Error("Export popup created in a division with no warehouses.");const[y,b]=Object(a.useState)(g.name),[E,v]=Object(a.useState)(Object.keys(g.warehouses)[0]),[k,w]=Object(a.useState)(""),_=Object(a.useState)(!1)[1];function S(t){for(let n=0;n<e.mat.exp.length;++n)if(e.mat.exp[n].ind===t.ind&&e.mat.exp[n].city===t.city&&e.mat.exp[n].amt===t.amt){e.mat.exp.splice(n,1);break}_(e=>!e)}const C=t.divisions.find(e=>e.name===y);if(void 0===C)throw new Error(`Export popup somehow ended up with undefined division '${C}'`);const x=Object.keys(C.warehouses).filter(e=>0!==C.warehouses[e]);return x.length>0&&!x.includes(E)&&v(x[0]),r.a.createElement(s.a,{open:e.open,onClose:e.onClose},r.a.createElement(f.a,null,"Select the industry and city to export this material to, as well as how much of this material to export per second. You can set the export amount to 'MAX' to export all of the materials in this warehouse."),r.a.createElement(p.a,{onChange:function(e){const n=e.target.value;b(n),v(Object.keys(t.divisions[0].warehouses)[0])},value:y},t.divisions.filter(t=>Object(c.a)(e.mat.name,t)).map(e=>r.a.createElement(d.a,{key:e.name,value:e.name},e.name))),r.a.createElement(p.a,{onChange:function(e){v(e.target.value)},value:E},x.map(e=>{if(0!==C.warehouses[e])return r.a.createElement(d.a,{key:e,value:e},e)})),r.a.createElement(u.a,{placeholder:"Export amount / s",onChange:function(e){w(e.target.value)},value:k}),r.a.createElement(m.a,{onClick:function(){try{Object(o.g)(y,E,e.mat,k,C)}catch(e){Object(i.a)(e+"")}e.onClose()}},"Export"),r.a.createElement(f.a,null,"Below is a list of all current exports of this material from this warehouse. Clicking on one of the exports below will REMOVE that export."),e.mat.exp.map((e,t)=>r.a.createElement(h.a,{display:"flex",alignItems:"center",key:t},r.a.createElement(m.a,{sx:{mx:2},onClick:()=>S(e)},"delete"),r.a.createElement(f.a,null,"Industry: ",e.ind,r.a.createElement("br",null),"City: ",e.city,r.a.createElement("br",null),"Amount/s: ",e.amt))))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var a=n(0),r=n.n(a),i=n(6),o=n(37),s=n(46),l=n(1),c=n(75),f=n(341),u=n(281),m=n(19);function h(e){if(!Object(s.c)().hasResearch("Market-TA.II"))return r.a.createElement(r.a.Fragment,null);const[t,n]=Object(a.useState)(e.mat.bCost),o=Object(a.useState)(!1)[1];const h=e.mat.getMarkupLimit();const d=t;let p=1;return d>e.mat.bCost?d-e.mat.bCost>h&&(p=Math.pow(h/(d-e.mat.bCost),2)):d<e.mat.bCost&&(p=d<=0?1e12:e.mat.bCost/d),r.a.createElement(r.a.Fragment,null,r.a.createElement(l.a,{variant:"h4"},"Market-TA.II"),r.a.createElement("br",null),r.a.createElement(l.a,null,"If you sell at ",i.a.formatMoney(d),", then you will sell"," ",i.a.format(p,"0.00000"),"x as much compared to if you sold at market price."),r.a.createElement(c.a,{type:"number",onChange:function(e){""===e.target.value?n(0):n(parseFloat(e.target.value))},value:t}),r.a.createElement("br",null),r.a.createElement(f.a,{control:r.a.createElement(u.a,{checked:e.mat.marketTa2,onChange:function(t){e.mat.marketTa2=t.target.checked,o(e=>!e)}}),label:r.a.createElement(m.a,{title:r.a.createElement(l.a,null,"If this is enabled, then this Material will automatically be sold at the optimal price such that the amount sold matches the amount produced. (i.e. the highest possible price, while still ensuring that all produced materials will be sold)")},r.a.createElement(l.a,null,"Use Market-TA.II for Auto-Sale Price"))}))}function d(e){const t=Object(a.useState)(!1)[1];const n=e.mat.getMarkupLimit();return r.a.createElement(o.a,{open:e.open,onClose:e.onClose},r.a.createElement(r.a.Fragment,null,r.a.createElement(l.a,{variant:"h4"},"Market-TA.I"),r.a.createElement(l.a,null,"The maximum sale price you can mark this up to is ",i.a.formatMoney(e.mat.bCost+n),". This means that if you set the sale price higher than this, you will begin to experience a loss in number of sales"),r.a.createElement(f.a,{control:r.a.createElement(u.a,{checked:e.mat.marketTa1,onChange:function(n){e.mat.marketTa1=n.target.checked,t(e=>!e)}}),label:r.a.createElement(m.a,{title:r.a.createElement(l.a,null,"If this is enabled, then this Material will automatically be sold at the price identified by Market-TA.I (i.e. the price shown above)")},r.a.createElement(l.a,null,"Use Market-TA.I for Auto-Sale Price"))})),r.a.createElement(h,{mat:e.mat}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var a=n(0),r=n.n(a),i=n(14),o=n(62),s=n(37),l=n(1),c=n(75),f=n(8),u=n(25);function m(e){const[t,n]=Object(a.useState)(e.mat.sllman[1]?e.mat.sllman[1]+"":""),[m,h]=Object(a.useState)(function(e){let t=e.sCost?e.sCost+"":"";return e.marketTa2?t+=" (Market-TA.II)":e.marketTa1&&(t+=" (Market-TA.I)"),t}(e.mat));function d(){try{Object(o.r)(e.mat,t,m)}catch(e){Object(i.a)(e+"")}e.onClose()}function p(e){e.key===u.a.ENTER&&d()}return r.a.createElement(s.a,{open:e.open,onClose:e.onClose},r.a.createElement(l.a,null,"Enter the maximum amount of ",e.mat.name," you would like to sell per second, as well as the price at which you would like to sell at.",r.a.createElement("br",null),r.a.createElement("br",null),"If the sell amount is set to 0, then the material will not be sold. If the sell price if set to 0, then the material will be discarded",r.a.createElement("br",null),r.a.createElement("br",null),"Setting the sell amount to 'MAX' will result in you always selling the maximum possible amount of the material.",r.a.createElement("br",null),r.a.createElement("br",null),"When setting the sell amount, you can use the 'PROD' variable to designate a dynamically changing amount that depends on your production. For example, if you set the sell amount to 'PROD-5' then you will always sell 5 less of the material than you produce.",r.a.createElement("br",null),r.a.createElement("br",null),"When setting the sell price, you can use the 'MP' variable to designate a dynamically changing price that depends on the market price. For example, if you set the sell price to 'MP+10' then it will always be sold at $10 above the market price."),r.a.createElement("br",null),r.a.createElement(c.a,{value:t,autoFocus:!0,type:"text",placeholder:"Sell amount",onChange:function(e){n(e.target.value)},onKeyDown:p}),r.a.createElement(c.a,{value:m,type:"text",placeholder:"Sell price",onChange:function(e){h(e.target.value)},onKeyDown:p}),r.a.createElement(f.a,{onClick:d},"Confirm"))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var a=n(0),r=n.n(a),i=n(14),o=n(183),s=n(6),l=n(62),c=n(37),f=n(46),u=n(1),m=n(75),h=n(8),d=n(25);function p(e){const t=Object(f.b)(),[n,c]=Object(a.useState)(""),[p,g]=Object(a.useState)(!1);function y(e){const t=parseFloat(e.amount),n=t*e.mat.bCost,a=o.a[e.mat.name];return t>(e.warehouse.size-e.warehouse.sizeUsed)/a?(g(!0),r.a.createElement(r.a.Fragment,null,r.a.createElement(u.a,{color:"error"},"Not enough warehouse space to purchase this amount"))):isNaN(n)||t<0?(g(!0),r.a.createElement(r.a.Fragment,null,r.a.createElement(u.a,{color:"error"},"Invalid input for Bulk Purchase amount"))):(g(!1),r.a.createElement(r.a.Fragment,null,r.a.createElement(u.a,null,"Purchasing ",s.a.format(t,"0,0.00")," of ",e.mat.name," will cost"," ",s.a.formatMoney(n))))}function b(){try{Object(l.b)(t,e.warehouse,e.mat,parseFloat(n))}catch(e){Object(i.a)(e+"")}e.onClose()}return r.a.createElement(r.a.Fragment,null,r.a.createElement(u.a,null,"Enter the amount of ",e.mat.name," you would like to bulk purchase. This purchases the specified amount instantly (all at once)."),r.a.createElement(y,{warehouse:e.warehouse,mat:e.mat,amount:n}),r.a.createElement(m.a,{value:n,onChange:function(e){c(e.target.value)},type:"number",placeholder:"Bulk Purchase amount",onKeyDown:function(e){e.key===d.a.ENTER&&b()}}),r.a.createElement(h.a,{disabled:p,onClick:b},"Confirm Bulk Purchase"))}function g(e){const t=Object(f.c)(),[n,o]=Object(a.useState)(e.mat.buy?e.mat.buy:0);function s(){if(null!==n){try{Object(l.e)(e.mat,n)}catch(e){Object(i.a)(e+"")}e.onClose()}}return r.a.createElement(c.a,{open:e.open,onClose:e.onClose},r.a.createElement(r.a.Fragment,null,r.a.createElement(u.a,null,"Enter the amount of ",e.mat.name," you would like to purchase per second. This material's cost changes constantly.",e.disablePurchaseLimit?"Note: Purchase amount is disabled as smart supply is enabled":""),r.a.createElement(m.a,{value:n,onChange:function(e){o(parseFloat(e.target.value))},autoFocus:!0,placeholder:"Purchase amount",type:"number",disabled:e.disablePurchaseLimit,onKeyDown:function(e){e.key===d.a.ENTER&&s()}}),r.a.createElement(h.a,{disabled:e.disablePurchaseLimit,onClick:s},"Confirm"),r.a.createElement(h.a,{disabled:e.disablePurchaseLimit,onClick:function(){e.mat.buy=0,e.onClose()}},"Clear Purchase"),t.hasResearch("Bulk Purchasing")&&r.a.createElement(p,{onClose:e.onClose,mat:e.mat,warehouse:e.warehouse})))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var a=n(0),r=n.n(a),i=n(62),o=n(37),s=n(1),l=n(8),c=n(75),f=n(25);function u(e){const[t,n]=Object(a.useState)(null);function u(){let n=t;null===n&&(n=-1),Object(i.k)(e.material,n),e.onClose()}return Object(a.useEffect)(()=>{e.open||n(null)},[e.open]),r.a.createElement(o.a,{open:e.open,onClose:e.onClose},r.a.createElement(s.a,null,"Enter a limit to the amount of this material you would like to produce per second. Leave the box empty to set no limit."),r.a.createElement(c.a,{autoFocus:!0,placeholder:"Limit",type:"number",onChange:function(e){""===e.target.value?n(null):n(parseFloat(e.target.value))},onKeyDown:function(e){e.key===f.a.ENTER&&u()}}),r.a.createElement(l.a,{onClick:u},"Limit production"))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var a=n(0),r=n.n(a),i=n(270);function o(e){const t=[];for(const n of Object.keys(e.division.reqMats)){const a=e.division.reqMats[n];void 0!==a&&t.push(String.raw`${a}\text{ }${n}`)}const n=e.division.prodMats.map(e=>"1\\text{ }"+e);return e.division.makesProducts&&n.push("Products"),r.a.createElement(i.a,null,"\\("+t.join("+")+"\\Rightarrow "+n.join("+")+"\\)")}},function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var a=n(0),r=n.n(a),i=n(39),o=n(14),s=n(62),l=n(145),c=n(46),f=n(1),u=n(71),m=n(130),h=n(8);function d(e){const t=Object(c.b)(),n=Object(c.c)(),d=Object.keys(n.offices).filter(e=>0===n.offices[e]),[p,g]=Object(a.useState)(d[0]),y=t.funds<i.a.OfficeInitialCost;return r.a.createElement(r.a.Fragment,null,r.a.createElement(f.a,null,"Would you like to expand into a new city by opening an office? This would cost"," ",r.a.createElement(l.a,{money:i.a.OfficeInitialCost,corp:t})),r.a.createElement(m.a,{endAdornment:r.a.createElement(h.a,{onClick:function(){try{Object(s.n)(t,n,p)}catch(e){return void Object(o.a)(e+"")}Object(o.a)(`Opened a new office in ${p}!`),e.cityStateSetter(p)},disabled:y},"Confirm"),value:p,onChange:function(e){g(e.target.value)}},d.map(e=>r.a.createElement(u.a,{key:e,value:e},e))))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var a=n(0),r=n.n(a),i=n(14),o=n(50),s=n(46),l=n(62),c=n(1),f=n(8),u=n(75),m=n(71),h=n(18),d=n(130),p=n(25);function g(e){const t=Object(s.b)(),n=Object.keys(o.a).sort().filter(e=>void 0===t.divisions.find(t=>t.type===e)).sort(),[g,y]=Object(a.useState)(n.length>0?n[0]:""),[b,E]=Object(a.useState)(""),v=o.d[g];if(void 0===v)throw new Error(`Invalid industry: '${g}'`);const k=t.funds<v||""===b;function w(){if(!k){try{Object(l.o)(t,g,b)}catch(e){return void Object(i.a)(e+"")}e.setDivisionName(b)}}const _=o.b[g];if(void 0===_)throw new Error(`Trying to create an industry that doesn't exists: '${g}'`);return r.a.createElement(r.a.Fragment,null,r.a.createElement(c.a,null,"Create a new division to expand into a new industry:"),r.a.createElement(d.a,{value:g,onChange:function(e){y(e.target.value)}},n.map(e=>r.a.createElement(m.a,{key:e,value:e},e))),r.a.createElement(c.a,null,_(t)),r.a.createElement("br",null),r.a.createElement("br",null),r.a.createElement(c.a,null,"Division name:"),r.a.createElement(h.a,{display:"flex",alignItems:"center"},r.a.createElement(u.a,{autoFocus:!0,value:b,onChange:function(e){E(e.target.value)},onKeyDown:function(e){e.key===p.a.ENTER&&w()},type:"text",InputProps:{endAdornment:r.a.createElement(f.a,{disabled:k,sx:{mx:1},onClick:w},"Expand")}})))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return R}));var a=n(0),r=n.n(a),i=n(1235),o=n(1236),s=n(1237),l=n(1238),c=n(1239),f=n(1240),u=n(1241),m=n(1242),h=n(1243),d=n(29),p=n(39),g=n(272),y=n(390),b=n(12),E=n(6),v=n(24),k=n(20),w=n(121),_=n(203),S=n(28),C=n(46),x=n(1),L=n(19),O=n(8),M=n(18),T=n(43),A=n(282);function R({rerender:e}){const t=S.b.Player(),n=Object(C.b)(),a=n.revenue-n.expenses,i=[];function o(e,t){1!==t&&i.push([e,E.a.format(t,"0.000")])}return o("Production Multiplier: ",n.getProductionMultiplier()),o("Storage Multiplier: ",n.getStorageMultiplier()),o("Advertising Multiplier: ",n.getAdvertisingMultiplier()),o("Empl. Creativity Multiplier: ",n.getEmployeeCreMultiplier()),o("Empl. Charisma Multiplier: ",n.getEmployeeChaMultiplier()),o("Empl. Intelligence Multiplier: ",n.getEmployeeIntMultiplier()),o("Empl. Efficiency Multiplier: ",n.getEmployeeEffMultiplier()),o("Sales Multiplier: ",n.getSalesMultiplier()),o("Scientific Research Multiplier: ",n.getScientificResearchMultiplier()),r.a.createElement(r.a.Fragment,null,r.a.createElement(_.a,{rows:[["Total Funds:",r.a.createElement(k.a,{money:n.funds})],["Total Revenue:",r.a.createElement(w.a,{money:n.revenue})],["Total Expenses:",r.a.createElement(w.a,{money:n.expenses})],["Total Profit:",r.a.createElement(w.a,{money:n.revenue-n.expenses})],["Publicly Traded:",n.public?"Yes":"No"],["Owned Stock Shares:",E.a.format(n.numShares,"0.000a")],["Stock Price:",n.public?r.a.createElement(k.a,{money:n.sharePrice}):"N/A"]]}),r.a.createElement("br",null),r.a.createElement(M.a,{display:"flex"},r.a.createElement(L.a,{title:r.a.createElement(_.a,{rows:[["Outstanding Shares:",E.a.format(n.issuedShares,"0.000a")],["Private Shares:",E.a.format(n.totalShares-n.issuedShares-n.numShares,"0.000a")]]})},r.a.createElement(x.a,null,"Total Stock Shares: ",E.a.format(n.totalShares,"0.000a")))),r.a.createElement("br",null),r.a.createElement(D,{profit:a}),r.a.createElement("br",null),r.a.createElement(_.a,{rows:i}),r.a.createElement("br",null),r.a.createElement(j,null),r.a.createElement(M.a,{sx:{display:"grid",gridTemplateColumns:"repeat(3, 1fr)",width:"fit-content"}},r.a.createElement(L.a,{title:r.a.createElement(x.a,null,"Get a copy of and read 'The Complete Handbook for Creating a Successful Corporation.' This is a .lit file that guides you through the beginning of setting up a Corporation and provides some tips/pointers for helping you get started with managing it.")},r.a.createElement(O.a,{onClick:()=>n.getStarterGuide(t)},"Getting Started Guide")),n.public?r.a.createElement(I,{rerender:e}):r.a.createElement(N,{rerender:e}),r.a.createElement(F,null)),r.a.createElement("br",null),r.a.createElement(P,{rerender:e}))}function N({rerender:e}){const t=Object(C.b)(),[n,i]=Object(a.useState)(!1),[o,s]=Object(a.useState)(!1),l=t.fundingRound<4,c=l?"Search for private investors who will give you startup funding in exchange for equity (stock shares) in your company":"";return r.a.createElement(r.a.Fragment,null,r.a.createElement(L.a,{title:r.a.createElement(x.a,null,c)},r.a.createElement(O.a,{disabled:!l,onClick:()=>i(!0)},"Find Investors")),r.a.createElement(L.a,{title:r.a.createElement(x.a,null,"Become a publicly traded and owned entity. Going public involves issuing shares for an IPO. Once you are a public company, your shares will be traded on the stock market.")},r.a.createElement(O.a,{onClick:()=>s(!0)},"Go Public")),r.a.createElement(m.a,{open:n,onClose:()=>i(!1),rerender:e}),r.a.createElement(h.a,{open:o,onClose:()=>s(!1),rerender:e}))}function P({rerender:e}){const t=Object(C.b)();return t.divisions.length<=0?r.a.createElement(x.a,{variant:"h4"},"Upgrades are unlocked once you create an industry."):r.a.createElement(r.a.Fragment,null,r.a.createElement(T.a,{sx:{p:1,my:1}},r.a.createElement(x.a,{variant:"h4"},"Unlocks"),r.a.createElement(A.a,{container:!0},Object.values(g.b).filter(e=>!t.unlockUpgrades[e.index]).map(t=>r.a.createElement(o.a,{rerender:e,upgradeData:t,key:t.index})))),r.a.createElement(T.a,{sx:{p:1,my:1}},r.a.createElement(x.a,{variant:"h4"},"Upgrades"),r.a.createElement(A.a,{container:!0},t.upgrades.map((e,t)=>y.a[t]).map(t=>r.a.createElement(i.a,{rerender:e,upgrade:t,key:t.index})))))}function I({rerender:e}){const t=Object(C.b)(),[n,i]=Object(a.useState)(!1),[o,s]=Object(a.useState)(!1),[m,h]=Object(a.useState)(!1),[d,p]=Object(a.useState)(!1),g=t.shareSaleCooldown>0,y=g?"Cannot sell shares for "+t.convertCooldownToString(t.shareSaleCooldown):"Sell your shares in the company. The money earned from selling your shares goes into your personal account, not the Corporation's. This is one of the only ways to profit from your business venture.",b=t.issueNewSharesCooldown>0,E=b?"Cannot issue new shares for "+t.convertCooldownToString(t.issueNewSharesCooldown):"Issue new equity shares to raise capital.";return r.a.createElement(r.a.Fragment,null,r.a.createElement(L.a,{title:r.a.createElement(x.a,null,y)},r.a.createElement(O.a,{disabled:g,onClick:()=>i(!0)},"Sell Shares")),r.a.createElement(l.a,{open:n,onClose:()=>i(!1),rerender:e}),r.a.createElement(L.a,{title:r.a.createElement(x.a,null,"Buy back shares you that previously issued or sold at market price.")},r.a.createElement(O.a,{disabled:t.issuedShares<1,onClick:()=>s(!0)},"Buyback shares")),r.a.createElement(c.a,{open:o,onClose:()=>s(!1),rerender:e}),r.a.createElement(L.a,{title:r.a.createElement(x.a,null,E)},r.a.createElement(O.a,{disabled:b,onClick:()=>h(!0)},"Issue New Shares")),r.a.createElement(u.a,{open:m,onClose:()=>h(!1)}),r.a.createElement(L.a,{title:r.a.createElement(x.a,null,"Manage the dividends that are paid out to shareholders (including yourself)")},r.a.createElement(O.a,{onClick:()=>p(!0)},"Issue Dividends")),r.a.createElement(f.a,{open:d,onClose:()=>p(!1)}))}function F(){const e=S.b.Player(),t=Object(C.b)(),[n,i]=Object(a.useState)(!1),o=t.determineValuation()>=p.a.BribeThreshold&&e.factions.filter(e=>d.a[e].getInfo().offersWork()).length>0;return r.a.createElement(r.a.Fragment,null,r.a.createElement(L.a,{title:o?"Use your Corporations power and influence to bribe Faction leaders in exchange for reputation":"Your Corporation is not powerful enough to bribe Faction leaders"},r.a.createElement(O.a,{disabled:!o,onClick:function(){o&&i(!0)}},"Bribe Factions")),r.a.createElement(s.a,{open:n,onClose:()=>i(!1)}))}function D({profit:e}){const t=Object(C.b)();if(t.dividendPercentage<=0||e<=0)return r.a.createElement(r.a.Fragment,null);const n=t.dividendPercentage/100*e,a=e-n,i=n/t.totalShares;return r.a.createElement(_.a,{rows:[["Retained Profits (after dividends):",r.a.createElement(w.a,{money:a})],["Dividend Percentage:",E.a.format(t.dividendPercentage/100,"0%")],["Dividends per share:",r.a.createElement(w.a,{money:i})],["Your earnings as a shareholder:",r.a.createElement(w.a,{money:t.getDividends()})]]})}function j(){const e=Object(C.b)().storedCycles*b.a.MilliPerCycle;return e<=15e3?r.a.createElement(r.a.Fragment,null):r.a.createElement(x.a,null,"Bonus time: ",Object(v.d)(e),r.a.createElement("br",null),r.a.createElement("br",null))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var a=n(0),r=n.n(a),i=n(14),o=n(62),s=n(145),l=n(46),c=n(1),f=n(19),u=n(8),m=n(18),h=n(282);function d(e){const t=Object(l.b)(),n=e.upgrade,a=t.upgrades[n.index],d=n.basePrice,p=n.priceMult,g=d*Math.pow(p,a),y=n.desc;return r.a.createElement(h.a,{item:!0,xs:4},r.a.createElement(m.a,{display:"flex",alignItems:"center",flexDirection:"row-reverse"},r.a.createElement(u.a,{disabled:t.funds<g,sx:{mx:1},onClick:function(){if(!(t.funds<g)){try{Object(o.j)(t,e.upgrade)}catch(e){Object(i.a)(e+"")}e.rerender()}}},r.a.createElement(s.a,{money:g,corp:t})),r.a.createElement(f.a,{title:y},r.a.createElement(c.a,null,n.name," - lvl ",a))))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var a=n(0),r=n.n(a),i=n(14),o=n(46),s=n(62),l=n(145),c=n(1),f=n(19),u=n(8),m=n(18),h=n(282);function d(e){const t=Object(o.b)(),n=e.upgradeData,a=n.desc;return r.a.createElement(h.a,{item:!0,xs:4},r.a.createElement(m.a,{display:"flex",alignItems:"center",flexDirection:"row-reverse"},r.a.createElement(u.a,{disabled:t.funds<n.price,sx:{mx:1},onClick:function(){if(!(t.funds<n.price)){try{Object(s.B)(t,e.upgradeData)}catch(e){Object(i.a)(e+"")}e.rerender()}}},r.a.createElement(l.a,{money:n.price,corp:t})),r.a.createElement(f.a,{title:a},r.a.createElement(c.a,null,n.name))))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return b}));var a=n(0),r=n.n(a),i=n(29),o=n(39),s=n(6),l=n(14),c=n(37),f=n(28),u=n(46),m=n(1),h=n(8),d=n(71),p=n(75),g=n(18),y=n(130);function b(e){const t=f.b.Player(),n=t.factions.filter(e=>!!i.a[e].getInfo().offersWork()&&!t.hasGangWith(e)),b=Object(u.b)(),[E,v]=Object(a.useState)(0),[k,w]=Object(a.useState)(0),[_,S]=Object(a.useState)(n.length>0?n[0]:""),C=null===E||null===k||0===E&&0===k||isNaN(E)||isNaN(k)||E<0||k<0||b.funds<E||k>b.numShares;function x(e,t){return(e+t*b.sharePrice)/o.a.BribeToRepRatio}return r.a.createElement(c.a,{open:e.open,onClose:e.onClose},r.a.createElement(m.a,null,"You can use Corporation funds or stock shares to bribe Faction Leaders in exchange for faction reputation."),r.a.createElement(g.a,{display:"flex",alignItems:"center"},r.a.createElement(m.a,null,"Faction:"),r.a.createElement(y.a,{value:_,onChange:function(e){S(e.target.value)}},n.map(e=>{if(i.a[e].getInfo().offersWork()&&!t.hasGangWith(e))return r.a.createElement(d.a,{key:e,value:e},e)}))),r.a.createElement(m.a,null,function(e,t){return 0===e&&0===t?"":isNaN(e)||isNaN(t)||e<0||t<0?"ERROR: Invalid value(s) entered":b.funds<e?"ERROR: You do not have this much money to bribe with":t>b.numShares?"ERROR: You do not have this many shares to bribe with":"You will gain "+s.a.formatReputation(x(e,t))+" reputation with "+_+" with this bribe"}(E||0,k||0)),r.a.createElement(p.a,{onChange:function(e){v(parseFloat(e.target.value))},placeholder:"Corporation funds"}),r.a.createElement(p.a,{sx:{mx:1},onChange:function(e){w(parseFloat(e.target.value))},placeholder:"Stock Shares"}),r.a.createElement(h.a,{disabled:C,sx:{mx:1},onClick:()=>function(t,n){const a=i.a[_];if(C)return;const r=x(t,n);Object(l.a)("You gained "+s.a.formatReputation(r)+" reputation with "+a.name+" by bribing them."),a.playerReputation+=r,b.funds=b.funds-t,b.numShares-=n,e.onClose()}(E||0,k||0)},"Bribe"))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var a=n(0),r=n.n(a),i=n(6),o=n(14),s=n(37),l=n(28),c=n(46),f=n(1),u=n(75),m=n(8),h=n(20),d=n(62),p=n(25);function g(e){const t=l.b.Player(),n=Object(c.b)(),[g,y]=Object(a.useState)(null),b=null===g||isNaN(g)||g<=0||g>n.numShares;function E(e){if(null===e.shares)return r.a.createElement(r.a.Fragment,null);let t="";if(isNaN(e.shares)||e.shares<=0)t="ERROR: Invalid value entered for number of shares to sell";else if(e.shares>n.numShares)t="You don't have this many shares to sell!";else{const a=n.calculateShareSale(e.shares)[0];t=`Sell ${e.shares} shares for a total of ${i.a.formatMoney(a)}`}return r.a.createElement(f.a,null,r.a.createElement("small",null,t))}function v(){if(!b)try{const a=Object(d.t)(n,t,g);e.onClose(),Object(o.a)(r.a.createElement(r.a.Fragment,null,"Sold ",i.a.formatMoney(g)," shares for",r.a.createElement(h.a,{money:a}),". The corporation's stock price fell to ",r.a.createElement(h.a,{money:n.sharePrice}),"as a result of dilution.")),e.rerender()}catch(e){Object(o.a)(e+"")}}return r.a.createElement(s.a,{open:e.open,onClose:e.onClose},r.a.createElement(f.a,null,"Enter the number of shares you would like to sell. The money from selling your shares will go directly to you (NOT your Corporation).",r.a.createElement("br",null),r.a.createElement("br",null),"Selling your shares will cause your corporation's stock price to fall due to dilution. Furthermore, selling a large number of shares all at once will have an immediate effect in reducing your stock price.",r.a.createElement("br",null),r.a.createElement("br",null),"The current price of your company's stock is ",i.a.formatMoney(n.sharePrice)),r.a.createElement("br",null),r.a.createElement(u.a,{variant:"standard",autoFocus:!0,type:"number",placeholder:"Shares to sell",onChange:function(e){""===e.target.value?y(null):y(Math.round(parseFloat(e.target.value)))},onKeyDown:function(e){e.key===p.a.ENTER&&v()}}),r.a.createElement(m.a,{disabled:b,onClick:v,sx:{mx:1}},"Sell shares"),r.a.createElement(E,{shares:g,corp:n}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var a=n(0),r=n.n(a),i=n(37),o=n(6),s=n(28),l=n(46),c=n(1),f=n(8),u=n(75),m=n(62),h=n(14),d=n(25);function p(e){const t=s.b.Player(),n=Object(l.b)(),[p,g]=Object(a.useState)(null);const y=1.1*n.sharePrice,b=null===p||isNaN(p)||p<=0||p>n.issuedShares||p*y>t.money;function E(){if(!b){try{Object(m.c)(n,t,p)}catch(e){Object(h.a)(e+"")}e.onClose(),e.rerender()}}function v(){return null===p?r.a.createElement(r.a.Fragment,null):isNaN(p)||p<=0?r.a.createElement(r.a.Fragment,null,"ERROR: Invalid value entered for number of shares to buyback"):p>n.issuedShares?r.a.createElement(r.a.Fragment,null,"There are not this many shares available to buy back. There are only"," ",o.a.formatBigNumber(n.issuedShares)," outstanding shares."):r.a.createElement(r.a.Fragment,null,"Purchase ",p," shares for a total of ",o.a.formatMoney(p*y))}return r.a.createElement(i.a,{open:e.open,onClose:e.onClose},r.a.createElement(c.a,null,"Enter the number of outstanding shares you would like to buy back. These shares must be bought at a 10% premium. However, repurchasing shares from the market tends to lead to an increase in stock price.",r.a.createElement("br",null),r.a.createElement("br",null),"To purchase these shares, you must use your own money (NOT your Corporation's funds).",r.a.createElement("br",null),r.a.createElement("br",null),"The current buyback price of your company's stock is ",o.a.formatMoney(y),". Your company currently has ",o.a.formatBigNumber(n.issuedShares)," outstanding stock shares."),r.a.createElement(v,null),r.a.createElement("br",null),r.a.createElement(u.a,{autoFocus:!0,type:"number",placeholder:"Shares to buyback",onChange:function(e){""===e.target.value?g(null):g(Math.round(parseFloat(e.target.value)))},onKeyDown:function(e){e.key===d.a.ENTER&&E()}}),r.a.createElement(f.a,{disabled:b,onClick:E},"Buy shares"))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var a=n(0),r=n.n(a),i=n(14),o=n(37),s=n(39),l=n(62),c=n(46),f=n(1),u=n(75),m=n(8),h=n(25);function d(e){const t=Object(c.b)(),[n,d]=Object(a.useState)(0),p=!isNaN(n)&&n>=0&&n<=100*s.a.DividendMaxPercentage;function g(){if(p&&null!==n){try{Object(l.i)(t,n/100)}catch(e){Object(i.a)(e+"")}e.onClose()}}return r.a.createElement(o.a,{open:e.open,onClose:e.onClose},r.a.createElement(f.a,null,"Dividends are a distribution of a portion of the corporation's profits to the shareholders. This includes yourself, as well.",r.a.createElement("br",null),r.a.createElement("br",null),"In order to issue dividends, simply allocate some percentage of your corporation's profits to dividends. This percentage must be an integer between 0 and 100. (A percentage of 0 means no dividends will be issued)",r.a.createElement("br",null),r.a.createElement("br",null),"Two important things to note:",r.a.createElement("br",null),"* Issuing dividends will negatively affect your corporation's stock price",r.a.createElement("br",null),r.a.createElement("br",null),"Example: Assume your corporation makes $100m / sec in profit and you allocate 40% of that towards dividends. That means your corporation will gain $60m / sec in funds and the remaining $40m / sec will be paid as dividends. Since your corporation starts with 1 billion shares, every shareholder will be paid $0.04 per share per second before taxes."),r.a.createElement(u.a,{autoFocus:!0,value:n,onChange:function(e){if(""===e.target.value)d(0);else{let t=parseFloat(e.target.value);t>100&&(t=100),t<0&&(t=0),d(t)}},onKeyDown:function(e){e.key===h.a.ENTER&&g()},placeholder:"Dividend %",type:"number"}),r.a.createElement(m.a,{disabled:!p,sx:{mx:1},onClick:g},"Allocate Dividend Percentage"))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var a=n(0),r=n.n(a),i=n(6),o=n(14),s=n(37),l=n(33),c=n(39),f=n(46),u=n(1),m=n(75),h=n(8),d=n(25);function p(e){const t=Object(f.b)();if(null===e.shares)return r.a.createElement(r.a.Fragment,null);const n=Math.round(.9*t.sharePrice),a=Math.round(.2*t.totalShares),o=a-a%1e6;let s=e.shares;return isNaN(s)?r.a.createElement(u.a,null,"Invalid input"):(s/=1e7,s=1e7*Math.round(s),s<1e7?r.a.createElement(u.a,null,"Must issue at least 10 million new shares"):s>o?r.a.createElement(u.a,null,"You cannot issue that many shares"):r.a.createElement(u.a,null,"Issue ",i.a.format(s,"0.000a")," new shares for"," ",i.a.formatMoney(s*n),"?"))}function g(e){const t=Object(f.b)(),[n,g]=Object(a.useState)(null),y=Math.round(.2*t.totalShares),b=y-y%1e6,E=1e7*Math.round((n||0)/1e7),v=null===n||isNaN(E)||E<1e7||E>b;function k(){if(null===n)return;if(v)return;const a=Math.round(.9*t.sharePrice);let r=n;r=1e7*Math.round(r/1e7);const s=r*a;t.issueNewSharesCooldown=c.a.IssueNewSharesCooldown,t.totalShares+=r;let f=Object(l.a)(0,Math.round(r/2));f=1e6*Math.round(f/1e6),t.issuedShares+=r-f,t.funds=t.funds+s,t.immediatelyUpdateSharePrice(),e.onClose(),Object(o.a)(`Issued ${i.a.format(r,"0.000a")} and raised ${i.a.formatMoney(s)}. ${i.a.format(f,"0.000a")} of these shares were bought by private investors.<br><br>Stock price decreased to `+i.a.formatMoney(t.sharePrice))}return r.a.createElement(s.a,{open:e.open,onClose:e.onClose},r.a.createElement(u.a,null,"You can issue new equity shares (i.e. stocks) in order to raise capital for your corporation.",r.a.createElement("br",null),r.a.createElement("br",null)," * You can issue at most ",i.a.formatMoney(b)," new shares",r.a.createElement("br",null)," * New shares are sold at a 10% discount",r.a.createElement("br",null)," * You can only issue new shares once every 12 hours",r.a.createElement("br",null)," * Issuing new shares causes dilution, resulting in a decrease in stock price and lower dividends per share",r.a.createElement("br",null)," * Number of new shares issued must be a multiple of 10 million",r.a.createElement("br",null),r.a.createElement("br",null),"When you choose to issue new equity, private shareholders have first priority for up to 50% of the new shares. If they choose to exercise this option, these newly issued shares become private, restricted shares, which means you cannot buy them back."),r.a.createElement(p,{shares:n}),r.a.createElement(m.a,{autoFocus:!0,placeholder:"# New Shares",onChange:function(e){""===e.target.value?g(null):g(parseFloat(e.target.value))},onKeyDown:function(e){e.key===d.a.ENTER&&k()}}),r.a.createElement(h.a,{disabled:v,onClick:k,sx:{mx:1}},"Issue New Shares"))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var a=n(0),r=n.n(a),i=n(6),o=n(39),s=n(37),l=n(46),c=n(1),f=n(8);function u(e){const t=Object(l.b)(),n=t.determineValuation();if(t.fundingRound>=o.a.FundingRoundShares.length||t.fundingRound>=o.a.FundingRoundMultiplier.length)return r.a.createElement(r.a.Fragment,null);const a=o.a.FundingRoundShares[t.fundingRound],u=n*a*o.a.FundingRoundMultiplier[t.fundingRound],m=Math.floor(o.a.INITIALSHARES*a);return r.a.createElement(s.a,{open:e.open,onClose:e.onClose},r.a.createElement(c.a,null,"An investment firm has offered you ",i.a.formatMoney(u)," in funding in exchange for a"," ",i.a.format(100*a,"0.000a"),"% stake in the company (",i.a.format(m,"0.000a")," shares).",r.a.createElement("br",null),r.a.createElement("br",null),"Do you accept or reject this offer?",r.a.createElement("br",null),r.a.createElement("br",null),"Hint: Investment firms will offer more money if your corporation is turning a profit"),r.a.createElement(f.a,{onClick:function(){t.fundingRound++,t.addFunds(u),t.numShares-=m,e.rerender(),e.onClose()}},"Accept"))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var a=n(0),r=n.n(a),i=n(14),o=n(37),s=n(6),l=n(46),c=n(1),f=n(8),u=n(75),m=n(18),h=n(25);function d(e){const t=Object(l.b)(),[n,d]=Object(a.useState)(""),p=t.determineValuation()/t.totalShares;function g(){const a=parseFloat(n),r=t.determineValuation()/t.totalShares;isNaN(a)?Object(i.a)("Invalid value for number of issued shares"):a>t.numShares?Object(i.a)("Error: You don't have that many shares to issue!"):(t.public=!0,t.sharePrice=r,t.issuedShares=a,t.numShares-=a,t.addFunds(a*r),e.rerender(),Object(i.a)(`You took your ${t.name} public and earned `+s.a.formatMoney(a*r)+" in your IPO"),e.onClose())}return r.a.createElement(o.a,{open:e.open,onClose:e.onClose},r.a.createElement(c.a,null,"Enter the number of shares you would like to issue for your IPO. These shares will be publicly sold and you will no longer own them. Your Corporation will receive ",s.a.formatMoney(p)," per share (the IPO money will be deposited directly into your Corporation's funds).",r.a.createElement("br",null),r.a.createElement("br",null),"You have a total of ",s.a.format(t.numShares,"0.000a")," of shares that you can issue."),r.a.createElement(m.a,{display:"flex",alignItems:"center"},r.a.createElement(u.a,{value:n,onChange:function(e){d(e.target.value)},autoFocus:!0,type:"number",placeholder:"Shares to issue",onKeyDown:function(e){e.key===h.a.ENTER&&g()}}),r.a.createElement(f.a,{disabled:parseFloat(n)<0||parseFloat(n)>t.numShares,sx:{mx:1},onClick:g},"Go Public")))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var a=n(0),r=n.n(a),i=n(28),o=n(494),s=n(1245),l=n(1256);function c(e){const t=i.b.Player(),n=i.b.Router(),[c,f]=Object(a.useState)(!1);if(void 0===e.location.infiltrationData)throw new Error("Trying to do infiltration on invalid location.");const u=e.location.infiltrationData.startingSecurityLevel,m=Object(o.a)(t,u),h=Object(o.b)(t,u);return r.a.createElement("div",{style:{display:"flex",alignItems:"center",height:"calc(100vh - 16px)"}},c?r.a.createElement(s.a,{StartingDifficulty:u,Difficulty:m,Reward:h,MaxLevel:e.location.infiltrationData.maxClearanceLevel}):r.a.createElement(l.a,{Location:e.location,Difficulty:m,MaxLevel:e.location.infiltrationData.maxClearanceLevel,start:()=>f(!0),cancel:function(){n.toCity()}}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return _}));var a,r=n(1),i=n(252),o=n(43),s=n(8),l=n(0),c=n.n(l),f=n(11),u=n(28),m=n(1246),h=n(1247),d=n(1248),p=n(1249),g=n(1250),y=n(1251),b=n(1252),E=n(1253),v=n(1254),k=n(1255);!function(e){e[e.Countdown=0]="Countdown",e[e.Minigame=1]="Minigame",e[e.Result=2]="Result",e[e.Sell=3]="Sell"}(a||(a={}));const w=[E.a,h.a,m.a,d.a,p.a,y.a,b.a,k.a];function _(e){const t=u.b.Player(),n=u.b.Router(),[m,h]=Object(l.useState)(1),[d,p]=Object(l.useState)(a.Countdown),[y,b]=Object(l.useState)(""),[E,k]=Object(l.useState)({lastGames:[-1,-1],id:Math.floor(Math.random()*w.length)});function _(){let e=E.lastGames[0];const t=[E.lastGames[0],E.lastGames[1],E.id];for(;t.includes(e);)e=Math.floor(Math.random()*w.length);return e}function S(){k({lastGames:[E.lastGames[1],E.id],id:_()})}function C(e){b(t=>{let n=t;return n+=e?"✓":"✗",n.length>15&&(n=n.slice(1)),n})}let x;switch(d){case a.Countdown:x=c.a.createElement(g.a,{onFinish:()=>p(a.Minigame)});break;case a.Minigame:{const r=w[E.id];x=c.a.createElement(r,{onSuccess:function(){C(!0),m===e.MaxLevel?p(a.Sell):(p(a.Countdown),h(m+1)),S()},onFailure:function(r){p(a.Countdown),C(!1);const i=null!=r&&r.automated?t.hp:3*e.StartingDifficulty*(t.hasAugmentation(f.a.WKSharmonizer,!0)?.5:1);t.takeDamage(i)?n.toCity():S()},difficulty:e.Difficulty+m/50});break}case a.Sell:x=c.a.createElement(v.a,{StartingDifficulty:e.StartingDifficulty,Difficulty:e.Difficulty,Reward:e.Reward,MaxLevel:e.MaxLevel})}function L(){return c.a.createElement(r.a,{variant:"h4"},c.a.createElement("span",{style:{color:"gray"}},y.slice(0,y.length-1)),y[y.length-1])}return c.a.createElement(i.a,null,c.a.createElement(o.a,{sx:{p:1,mb:1,display:"grid",justifyItems:"center",gap:1}},d!==a.Sell&&c.a.createElement(s.a,{sx:{width:"100%"},onClick:function(){n.toCity()}},"Cancel Infiltration"),c.a.createElement(r.a,{variant:"h5"},"Level ",m," / ",e.MaxLevel),c.a.createElement(L,null)),x)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var a=n(43),r=n(1),i=n(0),o=n.n(i),s=n(11),l=n(2),c=n(25),f=n(134),u=n(632),m=n(221),h=n(207),d=n(222);const p={Trivial:{timer:16e3,min:3,max:4},Normal:{timer:12500,min:2,max:3},Hard:{timer:15e3,min:3,max:4},Impossible:{timer:8e3,min:4,max:4}};function g(e){const t={timer:0,min:0,max:0};Object(m.a)(p,e.difficulty,t);const n=t.timer,[g]=Object(i.useState)(function(e){const t=Object(f.e)(e.min,e.max);let n="";for(let e=0;e<t;e++)e>0&&(n+=" "),n+=y[Math.floor(Math.random()*y.length)];return n}(t)),[b,E]=Object(i.useState)(""),v=l.a.hasAugmentation(s.a.ChaosOfDionysus,!0);return o.a.createElement(o.a.Fragment,null,o.a.createElement(h.a,{millis:n,onExpire:e.onFailure}),o.a.createElement(a.a,{sx:{display:"grid",justifyItems:"center",pb:1}},o.a.createElement(r.a,{variant:"h4"},"Type it",v?"":" backward"),o.a.createElement(d.a,{onKeyDown:function(t){if(t.preventDefault(),function(e){return e.key===c.a.BACKSPACE||e.shiftKey&&"Shift"===e.key||e.ctrlKey||e.altKey}(t))return;const n=b+t.key.toUpperCase();g.startsWith(n)?g===n?e.onSuccess():E(n):e.onFailure()},onFailure:e.onFailure}),o.a.createElement(r.a,{style:{transform:v?"none":"scaleX(-1)"}},g),o.a.createElement(r.a,null,b,o.a.createElement(u.a,null))))}const y=["ALGORITHM","ANALOG","APP","APPLICATION","ARRAY","BACKUP","BANDWIDTH","BINARY","BIT","BITE","BITMAP","BLOG","BLOGGER","BOOKMARK","BOOT","BROADBAND","BROWSER","BUFFER","BUG","BUS","BYTE","CACHE","CAPS LOCK","CAPTCHA","CD","CD-ROM","CLIENT","CLIPBOARD","CLOUD","COMPUTING","COMMAND","COMPILE","COMPRESS","COMPUTER","CONFIGURE","COOKIE","COPY","CPU","CYBERCRIME","CYBERSPACE","DASHBOARD","DATA","MINING","DATABASE","DEBUG","DECOMPRESS","DELETE","DESKTOP","DEVELOPMENT","DIGITAL","DISK","DNS","DOCUMENT","DOMAIN","DOMAIN NAME","DOT","DOT MATRIX","DOWNLOAD","DRAG","DVD","DYNAMIC","EMAIL","EMOTICON","ENCRYPT","ENCRYPTION","ENTER","EXABYTE","FAQ","FILE","FINDER","FIREWALL","FIRMWARE","FLAMING","FLASH","FLASH DRIVE","FLOPPY DISK","FLOWCHART","FOLDER","FONT","FORMAT","FRAME","FREEWARE","GIGABYTE","GRAPHICS","HACK","HACKER","HARDWARE","HOME PAGE","HOST","HTML","HYPERLINK","HYPERTEXT","ICON","INBOX","INTEGER","INTERFACE","INTERNET","IP ADDRESS","ITERATION","JAVA","JOYSTICK","JUNKMAIL","KERNEL","KEY","KEYBOARD","KEYWORD","LAPTOP","LASER PRINTER","LINK","LINUX","LOG OUT","LOGIC","LOGIN","LURKING","MACINTOSH","MACRO","MAINFRAME","MALWARE","MEDIA","MEMORY","MIRROR","MODEM","MONITOR","MOTHERBOARD","MOUSE","MULTIMEDIA","NET","NETWORK","NODE","NOTEBOOK","COMPUTER","OFFLINE","ONLINE","OPENSOURCE","OPERATING","SYSTEM","OPTION","OUTPUT","PAGE","PASSWORD","PASTE","PATH","PHISHING","PIRACY","PIRATE","PLATFORM","PLUGIN","PODCAST","POPUP","PORTAL","PRINT","PRINTER","PRIVACY","PROCESS","PROGRAM","PROGRAMMER","PROTOCOL","QUEUE","QWERTY","RAM","REALTIME","REBOOT","RESOLUTION","RESTORE","ROM","ROOT","ROUTER","RUNTIME","SAVE","SCAN","SCANNER","SCREEN","SCREENSHOT","SCRIPT","SCROLL","SCROLL","SEARCH","ENGINE","SECURITY","SERVER","SHAREWARE","SHELL","SHIFT","SHIFT KEY","SNAPSHOT","SOCIAL NETWORKING","SOFTWARE","SPAM","SPAMMER","SPREADSHEET","SPYWARE","STATUS","STORAGE","SUPERCOMPUTER","SURF","SYNTAX","TABLE","TAG","TERMINAL","TEMPLATE","TERABYTE","TEXT EDITOR","THREAD","TOOLBAR","TRASH","TROJAN HORSE","TYPEFACE","UNDO","UNIX","UPLOAD","URL","USER","USER INTERFACE","USERNAME","UTILITY","VERSION","VIRTUAL","VIRTUAL MEMORY","VIRUS","WEB","WEBMASTER","WEBSITE","WIDGET","WIKI","WINDOW","WINDOWS","WIRELESS","PROCESSOR","WORKSTATION","WEB","WORM","WWW","XML","ZIP"]},function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var a=n(43),r=n(1),i=n(0),o=n.n(i),s=n(11),l=n(2),c=n(25),f=n(134),u=n(632),m=n(221),h=n(207),d=n(222);const p={Trivial:{timer:8e3,min:2,max:3},Normal:{timer:6e3,min:4,max:5},Hard:{timer:4e3,min:4,max:6},Impossible:{timer:2500,min:7,max:7}};function g(e){const t={timer:0,min:0,max:0};Object(m.a)(p,e.difficulty,t);const n=t.timer,[g,y]=Object(i.useState)(""),[b]=Object(i.useState)(function(e){let t="";const n=[c.a.OPEN_BRACKET,c.a.LESS_THAN,c.a.OPEN_PARENTHESIS,c.a.OPEN_BRACE];l.a.hasAugmentation(s.a.WisdomOfAthena,!0)&&n.splice(0,1);const a=Object(f.e)(e.min,e.max);for(let e=0;e<a;e++)t+=n[Math.floor(Math.random()*n.length)];return t}(t));return o.a.createElement(o.a.Fragment,null,o.a.createElement(h.a,{millis:n,onExpire:e.onFailure}),o.a.createElement(a.a,{sx:{display:"grid",justifyItems:"center"}},o.a.createElement(r.a,{variant:"h4"},"Close the brackets"),o.a.createElement(r.a,{style:{fontSize:"5em"}},`${b}${g}`,o.a.createElement(u.a,null)),o.a.createElement(d.a,{onKeyDown:function(t){t.preventDefault();const n=function(e){return e.key===c.a.CLOSE_PARENTHESIS?c.a.CLOSE_PARENTHESIS:e.key===c.a.CLOSE_BRACKET?c.a.CLOSE_BRACKET:e.key===c.a.CLOSE_BRACE?c.a.CLOSE_BRACE:e.key===c.a.GREATER_THAN?c.a.GREATER_THAN:""}(t);n&&(!function(e,t){return e===c.a.OPEN_BRACKET&&t===c.a.CLOSE_BRACKET||e===c.a.LESS_THAN&&t===c.a.GREATER_THAN||e===c.a.OPEN_PARENTHESIS&&t===c.a.CLOSE_PARENTHESIS||e===c.a.OPEN_BRACE&&t===c.a.CLOSE_BRACE}(b[b.length-g.length-1],n)?e.onFailure():b.length!==g.length+1?y(g+n):e.onSuccess())},onFailure:e.onFailure})))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var a=n(43),r=n(1),i=n(0),o=n.n(i),s=n(11),l=n(2),c=n(5),f=n(25),u=n(134),m=n(221),h=n(207),d=n(222);const p={Trivial:{timer:12e3,size:6},Normal:{timer:9e3,size:8},Hard:{timer:5e3,size:9},Impossible:{timer:2500,size:12}};function g(e){const t={timer:0,size:0};Object(m.a)(p,e.difficulty,t);const n=t.timer,[g]=Object(i.useState)(function(e){const t=[];t.push(y[Math.floor(Math.random()*y.length)]);for(let n=0;n<e.size;n++){const e=b[Math.floor(Math.random()*b.length)];t.includes(e)?n--:t.push(e)}return function(e){for(let t=e.length-1;t>0;t--){const n=Math.floor(Math.random()*(t+1)),a=e[t];e[t]=e[n],e[n]=a}}(t),t}(t)),[E,v]=Object(i.useState)(0),[k,w]=Object(i.useState)(0),_=g[k];Object(i.useEffect)(()=>{v(g.findIndex(e=>y.includes(e)))},[g]);const S=c.a.theme.primary,C=c.a.theme.disabled;let x=S,L=S,O=S;if(l.a.hasAugmentation(s.a.BeautyOfAphrodite,!0)){const e=k+1>=g.length?0:k+1;let t=E-e;e>E&&(t=g.length-1-e+E);const n=k-1<0?g.length-1:k-1;let a=n-E;n<E&&(a=n+g.length-1-E);const r=E==k;x=t<=a&&!r?x:C,L=t>=a&&!r?L:C,O=r?S:C}return o.a.createElement(o.a.Fragment,null,o.a.createElement(h.a,{millis:n,onExpire:e.onFailure}),o.a.createElement(a.a,{sx:{display:"grid",justifyItems:"center"}},o.a.createElement(r.a,{variant:"h4"},"Say something nice about the guard"),o.a.createElement(d.a,{onKeyDown:function(t){t.preventDefault();const n=t.key;if(n===f.a.SPACE)return void(y.includes(_)?e.onSuccess():e.onFailure());let a=k;for([f.a.UP_ARROW,f.a.W,f.a.RIGHT_ARROW,f.a.D].map(e=>e).includes(n)&&a++,[f.a.DOWN_ARROW,f.a.S,f.a.LEFT_ARROW,f.a.A].map(e=>e).includes(n)&&a--;a<0;)a+=g.length;for(;a>g.length-1;)a-=g.length;w(a)},onFailure:e.onFailure}),o.a.createElement(r.a,{variant:"h5",color:x},u.g),o.a.createElement(r.a,{variant:"h5",color:O},_),o.a.createElement(r.a,{variant:"h5",color:L},u.a)))}const y=["affectionate","agreeable","bright","charming","creative","determined","energetic","friendly","funny","generous","polite","likable","diplomatic","helpful","giving","kind","hardworking","patient","dynamic","loyal","based"],b=["aggressive","aloof","arrogant","big-headed","boastful","boring","bossy","careless","clingy","couch potato","cruel","cynical","grumpy","hot air","know it all","obnoxious","pain in the neck","picky","tactless","thoughtless","cringe"]},function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var a=n(43),r=n(1),i=n(0),o=n.n(i),s=n(11),l=n(2),c=n(134),f=n(221),u=n(207),m=n(222);const h={Trivial:{timer:13e3,min:6,max:8},Normal:{timer:7e3,min:7,max:8},Hard:{timer:5e3,min:8,max:9},Impossible:{timer:3e3,min:9,max:10}};function d(e){const t={timer:0,min:0,max:0};Object(f.a)(h,e.difficulty,t);const n=t.timer,[d]=Object(i.useState)(function(e){const t=[c.d,c.f,c.g,c.a];let n="";for(let a=0;a<Object(c.e)(e.min,e.max);a++){let e=t[Math.floor(4*Math.random())];for(;e===n[n.length-1];)e=t[Math.floor(4*Math.random())];n+=e}return n}(t)),[p,g]=Object(i.useState)(0),y=l.a.hasAugmentation(s.a.TrickeryOfHermes,!0);return o.a.createElement(o.a.Fragment,null,o.a.createElement(u.a,{millis:n,onExpire:e.onFailure}),o.a.createElement(a.a,{sx:{display:"grid",justifyItems:"center"}},o.a.createElement(r.a,{variant:"h4"},"Enter the Code!"),o.a.createElement(r.a,{variant:"h4"},d[p]),o.a.createElement(m.a,{onKeyDown:function(t){t.preventDefault(),d[p]===Object(c.b)(t)||y&&d[p]===Object(c.c)(t)?(g(p+1),p+1>=d.length&&e.onSuccess()):e.onFailure()},onFailure:e.onFailure})))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var a=n(43),r=n(1),i=n(0),o=n.n(i);function s(e){const[t,n]=Object(i.useState)(3);return Object(i.useEffect)(()=>{0!==t?setTimeout(()=>n(t-1),300):e.onFinish()}),o.a.createElement(a.a,{sx:{p:1,textAlign:"center"}},o.a.createElement(r.a,{variant:"h4"},"Get Ready!"),o.a.createElement(r.a,{variant:"h4"},t))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return y}));var a=n(43),r=n(1),i=n(18),o=n(0),s=n.n(o),l=n(11),c=n(2),f=n(5),u=n(25),m=n(134),h=n(221),d=n(207),p=n(222);const g={Trivial:{timer:12500,width:3,height:3,symbols:6},Normal:{timer:15e3,width:4,height:4,symbols:7},Hard:{timer:12500,width:5,height:5,symbols:8},Impossible:{timer:1e4,width:6,height:6,symbols:9}};function y(e){const t={timer:0,width:0,height:0,symbols:0};Object(h.a)(g,e.difficulty,t);const n=t.timer,[y]=Object(o.useState)(function(e){const t=[];for(let n=0;n<Math.round(e.height);n++){const n=[];for(let t=0;t<Math.round(e.width);t++)n.push(b()+b());t.push(n)}return t}(t)),[E]=Object(o.useState)(function(e,t){const n=[];for(let a=0;a<Math.round(t.symbols);a++)n.push(e[Math.floor(Math.random()*e.length)][Math.floor(Math.random()*e[0].length)]);return n}(y,t)),[v,k]=Object(o.useState)(0),[w,_]=Object(o.useState)([0,0]),S=c.a.hasAugmentation(l.a.FloodOfPoseidon,!0);const C=[];y.map((e,t)=>e.map((e,n)=>{const a=e===E[v],r=S&&!a?f.a.theme.disabled:f.a.theme.primary;n!==w[0]||t!==w[1]?C.push({color:r,content:e}):C.push({color:r,content:e,selected:!0})}));return s.a.createElement(s.a.Fragment,null,s.a.createElement(d.a,{millis:n,onExpire:e.onFailure}),s.a.createElement(a.a,{sx:{display:"grid",justifyItems:"center",pb:1}},s.a.createElement(r.a,{variant:"h4"},"Match the symbols!"),s.a.createElement(r.a,{variant:"h5",color:f.a.theme.primary},"Targets:"," ",E.map((e,t)=>t==v?s.a.createElement("span",{key:""+t,style:{fontSize:"1em",color:f.a.theme.infolight}},e," "):s.a.createElement("span",{key:""+t,style:{fontSize:"1em",color:f.a.theme.primary}},e," "))),s.a.createElement("br",null),s.a.createElement(i.a,{sx:{display:"grid",gridTemplateColumns:`repeat(${Math.round(t.width)}, 1fr)`,gap:1}},C.map(e=>s.a.createElement(r.a,{sx:{fontSize:"2em",color:e.color,border:e.selected?"2px solid "+f.a.theme.infolight:"unset",lineHeight:"unset",p:e.selected?"2px":"4px"}},e.content))),s.a.createElement(p.a,{onKeyDown:function(t){t.preventDefault();const n=[0,0];switch(Object(m.b)(t)){case m.g:n[1]--;break;case m.d:n[0]--;break;case m.a:n[1]++;break;case m.f:n[0]++}const a=[w[0]+n[0],w[1]+n[1]];if(a[0]=(a[0]+y[0].length)%y[0].length,a[1]=(a[1]+y.length)%y.length,_(a),t.key===u.a.SPACE){if(y[w[1]][w[0]]!==E[v])return void e.onFailure();k(v+1),E.length===v+1&&e.onSuccess()}},onFailure:e.onFailure})))}function b(){return"ABCDEF0123456789"[Math.floor(16*Math.random())]}},function(e,t,n){"use strict";n.d(t,"a",(function(){return k}));var a=n(1808),r=n(1809),i=n(704),o=n(43),s=n(1),l=n(18),c=n(113),f=n(0),u=n.n(f),m=n(11),h=n(2),d=n(5),p=n(25),g=n(134),y=n(221),b=n(207),E=n(222);const v={Trivial:{timer:15e3,width:3,height:3,mines:4},Normal:{timer:15e3,width:4,height:4,mines:7},Hard:{timer:15e3,width:5,height:5,mines:11},Impossible:{timer:15e3,width:6,height:6,mines:15}};function k(e){const t={timer:0,width:0,height:0,mines:0};Object(y.a)(v,e.difficulty,t);const n=t.timer,[k]=Object(f.useState)(function(e){const t=w(e);for(let n=0;n<e.mines;n++){const e=Math.floor(Math.random()*t.length),a=Math.floor(Math.random()*t[0].length);t[e][a]?n--:t[e][a]=!0}return t}(t)),[_,S]=Object(f.useState)(w(t)),[C,x]=Object(f.useState)([0,0]),[L,O]=Object(f.useState)(!0),M=h.a.hasAugmentation(m.a.HuntOfArtemis,!0);Object(f.useEffect)(()=>{const e=setTimeout(()=>O(!1),2e3);return()=>clearInterval(e)},[]);const T=[];return k.map((e,t)=>e.map((e,n)=>{L?T.push({flagged:Boolean(k[t][n])}):n===C[0]&&t===C[1]?T.push({current:!0}):_[t][n]?T.push({marked:!0}):M&&k[t][n]?T.push({flagged:!0}):T.push({})})),u.a.createElement(u.a.Fragment,null,u.a.createElement(b.a,{millis:n,onExpire:e.onFailure}),u.a.createElement(o.a,{sx:{display:"grid",justifyItems:"center",pb:1}},u.a.createElement(s.a,{variant:"h4"},L?"Remember all the mines!":"Mark all the mines!"),u.a.createElement(l.a,{sx:{display:"grid",gridTemplateColumns:`repeat(${Math.round(t.width)}, 1fr)`,gridTemplateRows:`repeat(${Math.round(t.height)}, 1fr)`,gap:1}},T.map(e=>{let t,n;return e.marked?(t=d.a.theme.warning,n=u.a.createElement(a.a,null)):e.current?(t=d.a.theme.infolight,n=u.a.createElement(r.a,null)):e.flagged?(t=d.a.theme.error,n=u.a.createElement(i.a,null)):(t=d.a.theme.primary,n=u.a.createElement(u.a.Fragment,null)),u.a.createElement(s.a,{key:`${e}${Object(c.uniqueId)()}`,sx:{color:t,border:"2px solid "+(e.current?d.a.theme.infolight:d.a.theme.primary),height:"32px",width:"32px",display:"flex",alignItems:"center",justifyContent:"center"}},n)})),u.a.createElement(E.a,{onKeyDown:function(t){if(t.preventDefault(),L)return;const n=[0,0];switch(Object(g.b)(t)){case g.g:n[1]--;break;case g.d:n[0]--;break;case g.a:n[1]++;break;case g.f:n[0]++}const a=[C[0]+n[0],C[1]+n[1]];if(a[0]=(a[0]+k[0].length)%k[0].length,a[1]=(a[1]+k.length)%k.length,x(a),t.key==p.a.SPACE){if(!k[C[1]][C[0]])return void e.onFailure();S(t=>(t[C[1]][C[0]]=!0,function(e,t){function n(e){return e.flat().reduce((e,t)=>e+(t?1:0),0)}return n(e)===n(t)}(k,t)&&e.onSuccess(),t))}},onFailure:e.onFailure})))}function w(e){const t=[];for(let n=0;n<e.height;n++)t.push(new Array(Math.round(e.width)).fill(!1));return t}},function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var a=n(43),r=n(1),i=n(18),o=n(0),s=n.n(o),l=n(11),c=n(2),f=n(25),u=n(221),m=n(207),h=n(222);const d={Trivial:{window:600},Normal:{window:325},Hard:{window:250},Impossible:{window:150}};function p(e){const t={window:0};Object(u.a)(d,e.difficulty,t);const[n,p]=Object(o.useState)(0);const g=c.a.hasAugmentation(l.a.MightOfAres,!0),y=3250*Math.random()+1500-(250+t.window),b=y+250;return Object(o.useEffect)(()=>{let e=window.setTimeout(()=>{p(1),e=window.setTimeout(()=>{p(2),e=window.setTimeout(()=>p(0),t.window)},250)},y);return()=>{clearInterval(e)}},[]),s.a.createElement(s.a.Fragment,null,s.a.createElement(m.a,{millis:5e3,onExpire:e.onFailure}),s.a.createElement(a.a,{sx:{display:"grid",justifyItems:"center"}},s.a.createElement(r.a,{variant:"h4"},"Slash when his guard is down!"),g?s.a.createElement(i.a,{sx:{my:1}},s.a.createElement(r.a,{variant:"h5"},"Guard will drop in..."),s.a.createElement(m.a,{millis:b,onExpire:()=>null,noPaper:!0})):s.a.createElement(s.a.Fragment,null),0===n&&s.a.createElement(r.a,{variant:"h4"},"Guarding ..."),1===n&&s.a.createElement(r.a,{variant:"h4"},"Preparing?"),2===n&&s.a.createElement(r.a,{variant:"h4"},"ATTACKING!"),s.a.createElement(h.a,{onKeyDown:function(t){t.preventDefault(),t.key===f.a.SPACE&&(2!==n?e.onFailure():e.onSuccess())},onFailure:e.onFailure})))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return E}));var a=n(43),r=n(1),i=n(18),o=n(130),s=n(71),l=n(8),c=n(0),f=n.n(c),u=n(4),m=n(105),h=n(29),d=n(28),p=n(20),g=n(139),y=n(24),b=n(395);function E(e){const t=d.b.Player(),n=d.b.Router(),[E,v]=Object(c.useState)("none");function k(){L(),n.toCity()}const w=h.a[u.a.ShadowsOfAnarchy],_=Object(b.c)(t,e.Reward,e.MaxLevel,e.StartingDifficulty),S=Object(b.b)(t,e.Reward,e.MaxLevel,e.StartingDifficulty),C=Object(b.a)(t,w,e.StartingDifficulty),x=t.factions.includes(u.a.ShadowsOfAnarchy);function L(){Object(m.c)(h.a[u.a.ShadowsOfAnarchy]),x&&(w.playerReputation+=C)}return f.a.createElement(a.a,{sx:{p:1,textAlign:"center",display:"flex",alignItems:"center",flexDirection:"column"}},f.a.createElement(r.a,{variant:"h4"},"Infiltration successful!"),f.a.createElement(r.a,{variant:"h5",color:"primary",width:"75%"},"You"," ",x?f.a.createElement(f.a.Fragment,null,"have gained ",Object(y.f)(C,2)," rep for ",u.a.ShadowsOfAnarchy," and"," "):f.a.createElement(f.a.Fragment,null),"can trade the confidential information you found for money or reputation."),f.a.createElement(i.a,{sx:{width:"fit-content"}},f.a.createElement(i.a,{sx:{width:"100%"}},f.a.createElement(o.a,{value:E,onChange:function(e){v(e.target.value)},sx:{mr:1}},f.a.createElement(s.a,{key:"none",value:"none"},"none"),t.factions.filter(e=>h.a[e].getInfo().offersWork()).map(e=>f.a.createElement(s.a,{key:e,value:e},e))),f.a.createElement(l.a,{onClick:function(){"none"!==E&&(L(),h.a[E].playerReputation+=_,k())}},"Trade for ",f.a.createElement(g.a,{reputation:_})," reputation")),f.a.createElement(l.a,{onClick:function(){L(),t.gainMoney(S,"infiltration"),k()},sx:{width:"100%"}},"Sell for ",f.a.createElement(p.a,{money:S}))),f.a.createElement(l.a,{onClick:k,sx:{width:"100%",mt:1}},"Quit"))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return v}));var a=n(43),r=n(1),i=n(18),o=n(0),s=n.n(o),l=n(11),c=n(2),f=n(5),u=n(25),m=n(134),h=n(221),d=n(207),p=n(222);const g={Trivial:{timer:9e3,wiresmin:4,wiresmax:4,rules:2},Normal:{timer:7e3,wiresmin:6,wiresmax:6,rules:2},Hard:{timer:5e3,wiresmin:8,wiresmax:8,rules:3},Impossible:{timer:4e3,wiresmin:9,wiresmax:9,rules:4}},y=[u.a.PIPE,u.a.DOT,u.a.FORWARD_SLASH,u.a.HYPHEN,"█",u.a.HASH],b=["red","#FFC107","blue","white"],E={red:"red","#FFC107":"yellow",blue:"blue",white:"white"};function v(e){const t={timer:0,wiresmin:0,wiresmax:0,rules:0};Object(h.a)(g,e.difficulty,t);const n=t.timer,[u]=Object(o.useState)(function(e){const t=[],n=Object(m.e)(e.wiresmin,e.wiresmax);for(let e=0;e<n;e++){const e=[b[Math.floor(Math.random()*b.length)]];Math.random()<.15&&e.push(b[Math.floor(Math.random()*b.length)]),t.push({tpe:y[Math.floor(Math.random()*y.length)],colors:e})}return t}(t)),[E,v]=Object(o.useState)(new Array(u.length).fill(!1)),[_]=Object(o.useState)(function(e,t){const n=t.rules,a=[k,w],r=[];for(let t=0;t<n;t++)r.push(a[t%2](e));return r}(u,t)),S=c.a.hasAugmentation(l.a.KnowledgeOfApollo,!0);function C(e){return _.some(t=>t.shouldCut(u[e-1],e-1))}return Object(o.useEffect)(()=>{const t=[];for(let e=0;e<u.length;e++){let n=!1;for(let t=0;t<_.length;t++)n=n||_[t].shouldCut(u[e],e);t.push(n)}t.every((e,t)=>e===E[t])&&e.onSuccess()},[E]),s.a.createElement(s.a.Fragment,null,s.a.createElement(d.a,{millis:n,onExpire:e.onFailure}),s.a.createElement(a.a,{sx:{display:"grid",justifyItems:"center",pb:1}},s.a.createElement(r.a,{variant:"h4",sx:{width:"75%",textAlign:"center"}},"Cut the wires with the following properties! (keyboard 1 to 9)"),_.map((e,t)=>s.a.createElement(r.a,{key:t},e.toString())),s.a.createElement(i.a,{sx:{display:"grid",gridTemplateColumns:`repeat(${u.length}, 1fr)`,columnGap:3,justifyItems:"center"}},new Array(u.length).fill(0).map((e,t)=>{const n=C(t+1),a=S&&!n?f.a.theme.disabled:f.a.theme.primary;return s.a.createElement(r.a,{key:t,style:{color:a}},t+1)}),new Array(8).fill(0).map((e,t)=>s.a.createElement(s.a.Fragment,{key:t},u.map((e,n)=>{if((3===t||4===t)&&E[n])return s.a.createElement(r.a,{key:n});const a=C(n+1),i=S&&!a?f.a.theme.disabled:e.colors[t%e.colors.length];return s.a.createElement(r.a,{key:n,style:{color:i}},"|",e.tpe,"|")})))),s.a.createElement(p.a,{onKeyDown:function(t){t.preventDefault();const n=parseInt(t.key);n<1||n>u.length||isNaN(n)||v(t=>{const a=[...t];return a[n-1]=!0,C(n)||e.onFailure(),a})},onFailure:e.onFailure})))}function k(e){const t=Math.floor(Math.random()*e.length);return{toString:()=>`Cut wires number ${t+1}.`,shouldCut:(e,n)=>t===n}}function w(e){const t=e[Math.floor(Math.random()*e.length)].colors[0];return{toString:()=>`Cut all wires colored ${E[t]}.`,shouldCut:e=>e.colors.includes(t)}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var a=n(704),r=n(252),i=n(43),o=n(1),s=n(19),l=n(18),c=n(8),f=n(0),u=n.n(f),m=n(5),h=n(6);function d(e,t){let n="";return t<=0?t=0:t>13?t=13:(t--,n=">"),u.a.createElement("span",{style:{color:e}},"=".repeat(t),n," ".repeat(13-n.length-t))}function p(e){return u.a.createElement(r.a,{sx:{alignItems:"center"}},u.a.createElement(i.a,{sx:{p:1,mb:1,display:"grid",justifyItems:"center"}},u.a.createElement(o.a,{variant:"h4"},"Infiltrating ",u.a.createElement("b",null,e.Location.name)),u.a.createElement(o.a,{variant:"h6"},u.a.createElement("b",null,"Maximum Level: "),e.MaxLevel),u.a.createElement(o.a,{variant:"h6",sx:{color:e.Difficulty>2?m.a.theme.error:e.Difficulty>1?m.a.theme.warning:m.a.theme.primary,display:"flex",alignItems:"center"}},u.a.createElement("b",null,"Difficulty: "),h.a.format(33.3333*e.Difficulty,"0")," / 100",e.Difficulty>1.5&&u.a.createElement(s.a,{title:u.a.createElement(o.a,{color:"error"},"This location is too heavily guarded for your current stats. It is recommended that you try training, or finding an easier location.")},u.a.createElement(a.a,{sx:{ml:1}}))),u.a.createElement(o.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}},"[",0===(t=e.Difficulty)?u.a.createElement("span",{style:{color:"white"}},">"," ".repeat(38)):u.a.createElement(u.a.Fragment,null,d(m.a.theme.primary,13*t),d(m.a.theme.warning,13*(t-1)),d(m.a.theme.error,13*(t-2))),"]"),u.a.createElement(o.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}},"▲ ▲ ▲ ▲"),u.a.createElement(o.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}}," Trivial Normal Hard Impossible")),u.a.createElement(i.a,{sx:{p:1,display:"grid",justifyItems:"center"}},u.a.createElement(o.a,{sx:{width:"75%",textAlign:"center"}},u.a.createElement("b",null,"Infiltration")," is a series of short minigames that get progressively harder. You take damage for failing them. Reaching the maximum level rewards you with intel that you can trade for money or reputation.",u.a.createElement("br",null),u.a.createElement("br",null),u.a.createElement("b",null,"Gameplay:")),u.a.createElement("ul",null,u.a.createElement(o.a,null,u.a.createElement("li",null,"The minigames you play are randomly selected.",u.a.createElement("br",null),"It might take you a few tries to get used to them."),u.a.createElement("li",null,"No game requires use of the mouse."),u.a.createElement("li",null,u.a.createElement("b",null,"Spacebar")," is the default action/confirm button."),u.a.createElement("li",null,"The ",u.a.createElement("b",null,"arrow keys")," and ",u.a.createElement("b",null,"WASD")," can be used interchangeably."),u.a.createElement("li",null,"Sometimes the rest of the keyboard is used."))),u.a.createElement(l.a,{sx:{display:"grid",gridTemplateColumns:"1fr 1fr",width:"100%"}},u.a.createElement(c.a,{onClick:e.start},"Start"),u.a.createElement(c.a,{onClick:e.cancel},"Cancel"))));var t}},function(e,t,n){"use strict";n.d(t,"a",(function(){return j}));var a=n(252),r=n(43),i=n(150),o=n(151),s=n(18),l=n(19),c=n(8),f=n(1),u=n(113),m=n(0),h=n.n(m),d=n(74),p=n(258),g=n(12),y=n(9),b=n(181),E=n(5),v=n(24),k=n(28),w=n(6),_=n(20),S=n(121),C=n(424),x=n(139),L=n(392),O=n(76),M=n(474),T=n(88),A=n(305),R=n(382),N=n(223),P=n(101),I=n(321);const F=1e3/g.a.MilliPerCycle;function D(e){return[e.hackExp>0?h.a.createElement(O.a,{name:"Hacking Exp",color:E.a.theme.hack,data:{content:w.a.formatExp(e.hackExp*F)+" / sec"}}):h.a.createElement(h.a.Fragment,null),e.strExp>0?h.a.createElement(O.a,{name:"Strength Exp",color:E.a.theme.combat,data:{content:w.a.formatExp(e.strExp*F)+" / sec"}}):h.a.createElement(h.a.Fragment,null),e.defExp>0?h.a.createElement(O.a,{name:"Defense Exp",color:E.a.theme.combat,data:{content:w.a.formatExp(e.defExp*F)+" / sec"}}):h.a.createElement(h.a.Fragment,null),e.dexExp>0?h.a.createElement(O.a,{name:"Dexterity Exp",color:E.a.theme.combat,data:{content:w.a.formatExp(e.dexExp*F)+" / sec"}}):h.a.createElement(h.a.Fragment,null),e.agiExp>0?h.a.createElement(O.a,{name:"Agility Exp",color:E.a.theme.combat,data:{content:w.a.formatExp(e.agiExp*F)+" / sec"}}):h.a.createElement(h.a.Fragment,null),e.chaExp>0?h.a.createElement(O.a,{name:"Charisma Exp",color:E.a.theme.cha,data:{content:w.a.formatExp(e.chaExp*F)+" / sec"}}):h.a.createElement(h.a.Fragment,null)]}function j(){var e;const t=Object(m.useState)(!1)[1];function n(){t(e=>!e)}Object(m.useEffect)(()=>{const e=setInterval(n,g.a.MilliPerCycle);return()=>clearInterval(e)},[]);const w=k.b.Player(),j=k.b.Router();let B={buttons:{cancel:()=>{}},title:"",stopText:""};if(null!==w.currentWork){if(Object(M.b)(w.currentWork)){const e=w.currentWork.getCrime(),t=w.currentWork.unitCompleted/e.time*100;B={buttons:{cancel:()=>{j.toLocation(b.a[y.a.Slums]),w.finishWork(!0)},unfocus:()=>{j.toCity(),w.stopFocusing()}},title:"You are attempting to "+e.type,progress:{remaining:e.time-w.currentWork.unitCompleted,percentage:t},stopText:"Stop commiting crime"}}if(Object(T.d)(w.currentWork)){const e=w.currentWork;function G(){w.finishWork(!0),j.toCity()}function W(){j.toCity(),w.stopFocusing()}let t="";t=e.isGym()?"Stop training at gym":"Stop taking course";const n=e.calculateRates(w);B={buttons:{cancel:G,unfocus:W},title:h.a.createElement(h.a.Fragment,null,"You are currently ",h.a.createElement("b",null,e.getClass().youAreCurrently)),gains:[h.a.createElement(O.a,{name:"Total Cost",color:E.a.theme.money},h.a.createElement(f.a,null,h.a.createElement(_.a,{money:e.earnings.money})," (",h.a.createElement(S.a,{money:n.money*F}),")")),...D(n)],progress:{elapsed:e.cyclesWorked*g.a._idleSpeed},stopText:t}}if(Object(A.b)(w.currentWork)){const e=w.currentWork;function G(){w.finishWork(!0),j.toTerminal()}function W(){j.toTerminal(),w.stopFocusing()}const t=e.unitCompleted/e.unitNeeded()*100;B={buttons:{cancel:G,unfocus:W},title:h.a.createElement(h.a.Fragment,null,"You are currently working on coding ",h.a.createElement("b",null,e.programName)),progress:{elapsed:e.cyclesWorked*g.a._idleSpeed,percentage:t},stopText:"Stop creating program",stopTooltip:"Your work will be saved and you can return to complete the program later."}}if(Object(R.b)(w.currentWork)){const e=w.currentWork;function G(){w.finishWork(!0),j.toTerminal()}function W(){j.toTerminal(),w.stopFocusing()}B={buttons:{cancel:G,unfocus:W},title:h.a.createElement(h.a.Fragment,null,"You are currently working on grafting ",h.a.createElement("b",null,e.augmentation)),progress:{elapsed:e.cyclesWorked*g.a._idleSpeed,percentage:e.unitCompleted/e.unitNeeded()*100},stopText:"Stop grafting",stopTooltip:h.a.createElement(h.a.Fragment,null,"If you cancel, your work will ",h.a.createElement("b",null,"not")," be saved, and the money you spent will ",h.a.createElement("b",null,"not")," be returned")}}if(Object(N.b)(w.currentWork)){const e=w.currentWork.getFaction();function G(){j.toFaction(e),w.finishWork(!0)}function W(){j.toFaction(e),w.stopFocusing()}e||(B={buttons:{cancel:()=>j.toFactions()},title:`You have not joined ${w.currentWork.factionName||"(Faction not found)"} at this time, please try again if you think this should have worked`,stopText:"Back to Factions"});const t={[P.a.HACKING]:"carrying out hacking contracts",[P.a.FIELD]:"carrying out field missions",[P.a.SECURITY]:"performing security detail"},n=w.currentWork.getExpRates(w);B={buttons:{cancel:G,unfocus:W},title:h.a.createElement(h.a.Fragment,null,"You are currently ",t[w.currentWork.factionWorkType]," for ",h.a.createElement("b",null,e.name)),description:h.a.createElement(h.a.Fragment,null,"Current Faction Reputation: ",h.a.createElement(x.a,{reputation:e.playerReputation})," (",h.a.createElement(L.a,{reputation:w.currentWork.getReputationRate(w)*F}),")"),gains:D(n),progress:{elapsed:w.currentWork.cyclesWorked*g.a._idleSpeed},stopText:"Stop Faction work"}}if(Object(I.b)(w.currentWork)){const e=d.a[w.currentWork.companyName];null!=e&&e instanceof p.a||(B={buttons:{cancel:()=>j.toTerminal()},title:`You cannot work for ${w.currentWork.companyName||"(Company not found)"} at this time, please try again if you think this should have worked`,stopText:"Back to Terminal"});const t=e.playerReputation;function G(){w.finishWork(!0),j.toJob()}function W(){w.stopFocusing(),j.toJob()}const n=w.jobs[w.companyName],a=w.currentWork.getGainRates(w);B={buttons:{cancel:G,unfocus:W},title:h.a.createElement(h.a.Fragment,null,"You are currently working as a ",h.a.createElement("b",null,n)," at ",h.a.createElement("b",null,w.currentWork.companyName)),description:h.a.createElement(h.a.Fragment,null,"Current Company Reputation: ",h.a.createElement(x.a,{reputation:t})),gains:[h.a.createElement(O.a,{name:"Money",color:E.a.theme.money},h.a.createElement(f.a,null,h.a.createElement(S.a,{money:a.money*F}))),h.a.createElement(O.a,{name:"Company Reputation",color:E.a.theme.rep},h.a.createElement(f.a,null,h.a.createElement(L.a,{reputation:a.reputation*F}))),...D(a)],progress:{elapsed:w.currentWork.cyclesWorked*F},stopText:"Stop working"}}}if(""===B.title)return h.a.createElement(h.a.Fragment,null);const H="string"==typeof(null===(e=B)||void 0===e?void 0:e.stopTooltip)?h.a.createElement(f.a,null,B.stopTooltip):B.stopTooltip||h.a.createElement(h.a.Fragment,null);return h.a.createElement(a.a,{maxWidth:"md",sx:{display:"flex",flexDirection:"column",justifyContent:"center",height:"calc(100vh - 16px)"}},h.a.createElement(r.a,{sx:{p:1,mb:1}},h.a.createElement(f.a,{variant:"h6"},B.title),h.a.createElement(f.a,null,B.description),B.gains&&h.a.createElement(i.a,{sx:{mt:1}},h.a.createElement(o.a,null,B.gains.map(e=>h.a.createElement(h.a.Fragment,{key:Object(u.uniqueId)()},e))))),h.a.createElement(r.a,{sx:{mb:1,p:1}},void 0!==B.progress&&h.a.createElement(s.a,{sx:{mb:1}},h.a.createElement(s.a,{display:"grid",sx:{gridTemplateColumns:`repeat(${Object.keys(B.progress).length}, 1fr)`,width:"100%",justifyItems:"center",textAlign:"center"}},void 0!==B.progress.elapsed&&h.a.createElement(f.a,null,Object(v.d)(B.progress.elapsed)," elapsed"),void 0!==B.progress.remaining&&h.a.createElement(f.a,null,Object(v.d)(B.progress.remaining)," remaining"),void 0!==B.progress.percentage&&h.a.createElement(f.a,null,B.progress.percentage.toFixed(2),"% done")),void 0!==B.progress.percentage&&h.a.createElement(C.a,{variant:"determinate",value:B.progress.percentage,color:"primary"})),h.a.createElement(s.a,{display:"grid",sx:{gridTemplateColumns:`repeat(${Object.keys(B.buttons).length}, 1fr)`}},B.stopTooltip?h.a.createElement(l.a,{title:H},h.a.createElement(c.a,{onClick:B.buttons.cancel},B.stopText)):h.a.createElement(c.a,{onClick:B.buttons.cancel},B.stopText),B.buttons.unfocus&&h.a.createElement(c.a,{onClick:B.buttons.unfocus},"Do something else simultaneously"))))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var a=n(252),r=n(1),i=n(18),o=n(0),s=n.n(o),l=n(292),c=n(1259),f=n(1260);function u(e){const[t,n]=Object(o.useState)(l.a.SYSTEM);return s.a.createElement(a.a,{disableGutters:!0,maxWidth:"lg",sx:{mx:0}},s.a.createElement(r.a,{variant:"h4"},"Options"),s.a.createElement(i.a,{sx:{display:"grid",gridTemplateColumns:"1fr 3fr",gap:1}},s.a.createElement(f.a,{tab:t,setTab:e=>n(e),player:e.player,router:e.router,save:e.save,export:e.export,forceKill:e.forceKill,softReset:e.softReset}),s.a.createElement(c.a,{currentTab:t,player:e.player})))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var a=n(19),r=n(1),i=n(75),o=n(130),s=n(71),l=n(0),c=n.n(l),f=n(5),u=n(149),m=n(384),h=n(292),d=n(559),p=n(446);const g=e=>{const[t,n]=Object(l.useState)(f.a.CodeInstructionRunTime),[g,y]=Object(l.useState)(f.a.MaxRecentScriptsCapacity),[b,E]=Object(l.useState)(f.a.MaxLogCapacity),[v,k]=Object(l.useState)(f.a.MaxPortCapacity),[w,_]=Object(l.useState)(f.a.MaxTerminalCapacity),[S,C]=Object(l.useState)(f.a.AutosaveInterval),[x,L]=Object(l.useState)(f.a.TimestampsFormat),[O,M]=Object(l.useState)(f.a.Locale);return{[h.a.SYSTEM]:c.a.createElement(d.a,{title:"System"},c.a.createElement(c.a.Fragment,null,c.a.createElement(p.a,{label:".script exec time (ms)",initialValue:t,callback:function(e,t){n(t),f.a.CodeInstructionRunTime=t},step:1,min:5,max:100,tooltip:c.a.createElement(c.a.Fragment,null,"The minimum number of milliseconds it takes to execute an operation in Netscript. Setting this too low can result in poor performance if you have many scripts running.")}),c.a.createElement(p.a,{label:"Recently killed scripts size",initialValue:g,callback:function(e,t){y(t),f.a.MaxRecentScriptsCapacity=t},step:25,min:0,max:500,tooltip:c.a.createElement(c.a.Fragment,null,"The maximum number of lines a script's logs can hold. Setting this too high can cause the game to use a lot of memory if you have many scripts running.")}),c.a.createElement(p.a,{label:"Netscript log size",initialValue:b,callback:function(e,t){E(t),f.a.MaxLogCapacity=t},step:20,min:20,max:500,tooltip:c.a.createElement(c.a.Fragment,null,"The maximum number of lines a script's logs can hold. Setting this too high can cause the game to use a lot of memory if you have many scripts running.")}),c.a.createElement(p.a,{label:"Netscript port size",initialValue:v,callback:function(e,t){k(t),f.a.MaxPortCapacity=t},step:1,min:20,max:100,tooltip:c.a.createElement(c.a.Fragment,null,"The maximum number of entries that can be written to a port using Netscript's write() function. Setting this too high can cause the game to use a lot of memory.")}),c.a.createElement(p.a,{label:"Terminal capacity",initialValue:w,callback:function(e,t){_(t),f.a.MaxTerminalCapacity=t},step:50,min:50,max:500,tooltip:c.a.createElement(c.a.Fragment,null,"The maximum number of entries that can be written to the terminal. Setting this too high can cause the game to use a lot of memory."),marks:!0}),c.a.createElement(p.a,{label:"Autosave interval (s)",initialValue:S,callback:function(e,t){C(t),f.a.AutosaveInterval=t},step:30,min:0,max:600,tooltip:c.a.createElement(c.a.Fragment,null,"The time (in seconds) between each autosave. Set to 0 to disable autosave."),marks:!0})),c.a.createElement(u.a,{checked:f.a.SuppressSavedGameToast,onChange:e=>f.a.SuppressSavedGameToast=e,text:"Suppress Auto-Save Game Toast",tooltip:c.a.createElement(c.a.Fragment,null,'If this is set, there will be no "Game Saved!" toast appearing after an auto-save.')}),c.a.createElement(u.a,{checked:f.a.SuppressAutosaveDisabledWarnings,onChange:e=>f.a.SuppressAutosaveDisabledWarnings=e,text:"Suppress Auto-Save Disabled Warning",tooltip:c.a.createElement(c.a.Fragment,null,"If this is set, there will be no warning triggered when auto-save is disabled (at 0).")}),c.a.createElement(u.a,{checked:f.a.SaveGameOnFileSave,onChange:e=>f.a.SaveGameOnFileSave=e,text:"Save game on file save",tooltip:c.a.createElement(c.a.Fragment,null,"Save your game any time a file is saved in the script editor.")}),c.a.createElement(u.a,{checked:f.a.ExcludeRunningScriptsFromSave,onChange:e=>f.a.ExcludeRunningScriptsFromSave=e,text:"Exclude Running Scripts from Save",tooltip:c.a.createElement(c.a.Fragment,null,"If this is set, the save file will exclude all running scripts. This is only useful if your save is lagging a lot. You'll have to restart your script every time you launch the game.")})),[h.a.INTERFACE]:c.a.createElement(d.a,{title:"Interface"},c.a.createElement(u.a,{checked:f.a.DisableASCIIArt,onChange:e=>f.a.DisableASCIIArt=e,text:"Disable ascii art",tooltip:c.a.createElement(c.a.Fragment,null,"If this is set all ASCII art will be disabled.")}),c.a.createElement(u.a,{checked:f.a.DisableTextEffects,onChange:e=>f.a.DisableTextEffects=e,text:"Disable text effects",tooltip:c.a.createElement(c.a.Fragment,null,"If this is set, text effects will not be displayed. This can help if text is difficult to read in certain areas.")}),c.a.createElement(u.a,{checked:f.a.DisableOverviewProgressBars,onChange:e=>f.a.DisableOverviewProgressBars=e,text:"Disable Overview Progress Bars",tooltip:c.a.createElement(c.a.Fragment,null,"If this is set, the progress bars in the character overview will be hidden.")}),c.a.createElement(u.a,{checked:f.a.UseIEC60027_2,onChange:e=>f.a.UseIEC60027_2=e,text:"Use GiB instead of GB",tooltip:c.a.createElement(c.a.Fragment,null,"If this is set all references to memory will use GiB instead of GB, in accordance with IEC 60027-2.")}),c.a.createElement(a.a,{title:c.a.createElement(r.a,null,"Terminal commands and log entries will be timestamped. See https://date-fns.org/docs/Getting-Started/")},c.a.createElement(i.a,{InputProps:{startAdornment:c.a.createElement(r.a,{color:"format error"===Object(m.a)(x)&&""!==x?"error":"success"},"Timestamp format:")},value:x,onChange:function(e){L(e.target.value),f.a.TimestampsFormat=e.target.value},placeholder:"yyyy-MM-dd hh:mm:ss"})),c.a.createElement(c.a.Fragment,null,c.a.createElement(a.a,{title:c.a.createElement(r.a,null,"Sets the locale for displaying numbers.")},c.a.createElement(r.a,null,"Locale")),c.a.createElement(o.a,{value:O,onChange:function(e){M(e.target.value),f.a.Locale=e.target.value}},c.a.createElement(s.a,{value:"en"},"en"),c.a.createElement(s.a,{value:"bg"},"bg"),c.a.createElement(s.a,{value:"cs"},"cs"),c.a.createElement(s.a,{value:"da-dk"},"da-dk"),c.a.createElement(s.a,{value:"de"},"de"),c.a.createElement(s.a,{value:"en-au"},"en-au"),c.a.createElement(s.a,{value:"en-gb"},"en-gb"),c.a.createElement(s.a,{value:"es"},"es"),c.a.createElement(s.a,{value:"fr"},"fr"),c.a.createElement(s.a,{value:"hu"},"hu"),c.a.createElement(s.a,{value:"it"},"it"),c.a.createElement(s.a,{value:"lv"},"lv"),c.a.createElement(s.a,{value:"no"},"no"),c.a.createElement(s.a,{value:"pl"},"pl"),c.a.createElement(s.a,{value:"ru"},"ru")))),[h.a.GAMEPLAY]:c.a.createElement(d.a,{title:"Gameplay"},c.a.createElement(u.a,{checked:f.a.SuppressMessages,onChange:e=>f.a.SuppressMessages=e,text:"Suppress story messages",tooltip:c.a.createElement(c.a.Fragment,null,"If this is set, then any messages you receive will not appear as popups on the screen. They will still get sent to your home computer as '.msg' files and can be viewed with the 'cat' Terminal command.")}),c.a.createElement(u.a,{checked:f.a.SuppressFactionInvites,onChange:e=>f.a.SuppressFactionInvites=e,text:"Suppress faction invites",tooltip:c.a.createElement(c.a.Fragment,null,"If this is set, then any faction invites you receive will not appear as popups on the screen. Your outstanding faction invites can be viewed in the 'Factions' page.")}),c.a.createElement(u.a,{checked:f.a.SuppressTravelConfirmation,onChange:e=>f.a.SuppressTravelConfirmation=e,text:"Suppress travel confirmations",tooltip:c.a.createElement(c.a.Fragment,null,"If this is set, the confirmation message before traveling will not show up. You will automatically be deducted the travel cost as soon as you click.")}),c.a.createElement(u.a,{checked:f.a.SuppressBuyAugmentationConfirmation,onChange:e=>f.a.SuppressBuyAugmentationConfirmation=e,text:"Suppress augmentations confirmation",tooltip:c.a.createElement(c.a.Fragment,null,"If this is set, the confirmation message before buying augmentation will not show up.")}),c.a.createElement(u.a,{checked:f.a.SuppressTIXPopup,onChange:e=>f.a.SuppressTIXPopup=e,text:"Suppress TIX messages",tooltip:c.a.createElement(c.a.Fragment,null,"If this is set, the stock market will never create any popup.")}),e.player.bladeburner&&c.a.createElement(u.a,{checked:f.a.SuppressBladeburnerPopup,onChange:e=>f.a.SuppressBladeburnerPopup=e,text:"Suppress bladeburner popup",tooltip:c.a.createElement(c.a.Fragment,null,"If this is set, then having your Bladeburner actions interrupted by being busy with something else will not display a popup message.")})),[h.a.MISC]:c.a.createElement(d.a,{title:"Misc"},c.a.createElement(u.a,{checked:f.a.DisableHotkeys,onChange:e=>f.a.DisableHotkeys=e,text:"Disable hotkeys",tooltip:c.a.createElement(c.a.Fragment,null,'If this is set, then most hotkeys (keyboard shortcuts) in the game are disabled. This includes Terminal commands, hotkeys to navigate between different parts of the game, and the "Save and Close (Ctrl + b)" hotkey in the Text Editor.')}),c.a.createElement(u.a,{checked:f.a.EnableBashHotkeys,onChange:e=>f.a.EnableBashHotkeys=e,text:"Enable bash hotkeys",tooltip:c.a.createElement(c.a.Fragment,null,"Improved Bash emulation mode. Setting this to 1 enables several new Terminal shortcuts and features that more closely resemble a real Bash-style shell. Note that when this mode is enabled, the default browser shortcuts are overriden by the new Bash shortcuts.")}))}[e.currentTab]}},function(e,t,n){"use strict";n.d(t,"a",(function(){return P}));var a=n(1517),r=n(1841),i=n(1494),o=n(1842),s=n(1843),l=n(1844),c=n(1845),f=n(1846),u=n(1847),m=n(1848),h=n(363),d=n(1),p=n(18),g=n(43),y=n(251),b=n(8),E=n(19),v=n(0),k=n.n(v),w=n(1261),_=n(110),S=n(5),C=n(633),x=n(634),L=n(255),O=n(645),M=n(94),T=n(647),A=n(24),R=n(292);const N=e=>k.a.createElement(h.a,{selected:e.sideBarProps.tab===e.tab,onClick:()=>e.sideBarProps.setTab(e.tab)},k.a.createElement(d.a,null,e.tabName)),P=e=>{var t,n,h,P,I,F,D,j;const B=Object(v.useRef)(null),[G,W]=Object(v.useState)(!1),[H,U]=Object(v.useState)(!1),[q,$]=Object(v.useState)(null);return k.a.createElement(p.a,null,k.a.createElement(g.a,{sx:{height:"fit-content",mb:1}},k.a.createElement(y.a,null,k.a.createElement(N,{sideBarProps:e,tab:R.a.SYSTEM,tabName:"System"}),k.a.createElement(N,{sideBarProps:e,tab:R.a.GAMEPLAY,tabName:"Gameplay"}),k.a.createElement(N,{sideBarProps:e,tab:R.a.INTERFACE,tabName:"Interface"}),k.a.createElement(N,{sideBarProps:e,tab:R.a.MISC,tabName:"Misc"}))),k.a.createElement(p.a,{sx:{display:"grid",width:"100%",height:"fit-content",gridTemplateAreas:'"save delete"\n "export import"\n "kill kill"\n "reset diagnose"\n "browse browse"\n "theme style"\n "links links"\n "devs devs"',gridTemplateColumns:"1fr 1fr"}},k.a.createElement(b.a,{onClick:()=>e.save(),startIcon:k.a.createElement(a.a,null),sx:{gridArea:"save"}},"Save Game"),k.a.createElement(p.a,{sx:{gridArea:"delete","& .MuiButton-root":{height:"100%",width:"100%"}}},k.a.createElement(O.a,null)),k.a.createElement(E.a,{title:k.a.createElement(d.a,null,"Export your game to a text file.")},k.a.createElement(b.a,{onClick:()=>e.export(),startIcon:k.a.createElement(r.a,null),sx:{gridArea:"export"}},"Export Game")),k.a.createElement(E.a,{title:k.a.createElement(d.a,null,"Import your game from a text file.",k.a.createElement("br",null),"This will ",k.a.createElement("strong",null,"overwrite")," your current game. Back it up first!")},k.a.createElement(b.a,{onClick:function(){if(!(window.File&&window.FileReader&&window.FileList&&window.Blob))return;const e=B.current;if(null===e)throw new Error("import input should not be null");e.click()},startIcon:k.a.createElement(i.a,null),sx:{gridArea:"import"}},"Import Game",k.a.createElement("input",{ref:B,id:"import-game-file-selector",type:"file",hidden:!0,onChange:async function(e){try{const t=await _.c.getImportStringFromFile(e.target.files),n=await _.c.getImportDataFromString(t);$(n),U(!0)}catch(e){M.b.emit(e.toString(),M.d.ERROR,5e3)}}}))),k.a.createElement(L.a,{open:H,onClose:()=>U(!1),onConfirm:()=>async function(){if(q){try{await _.c.importGame(q.base64)}catch(e){M.b.emit(e.toString(),M.d.ERROR,5e3)}U(!1),$(null)}}(),additionalButton:k.a.createElement(b.a,{onClick:function(){q&&(e.router.toImportSave(q.base64),U(!1),$(null))}},"Compare Save"),confirmationText:k.a.createElement(k.a.Fragment,null,"Importing a new game will ",k.a.createElement("strong",null,"completely wipe")," the current data!",k.a.createElement("br",null),k.a.createElement("br",null),"Make sure to have a backup of your current save file before importing.",k.a.createElement("br",null),"The file you are attempting to import seems valid.",(null!==(t=null==q||null===(n=q.playerData)||void 0===n?void 0:n.lastSave)&&void 0!==t?t:0)>0&&k.a.createElement(k.a.Fragment,null,k.a.createElement("br",null),k.a.createElement("br",null),"The export date of the save file is"," ",k.a.createElement("strong",null,new Date(null!==(h=null==q||null===(P=q.playerData)||void 0===P?void 0:P.lastSave)&&void 0!==h?h:0).toLocaleString())),(null!==(I=null==q||null===(F=q.playerData)||void 0===F?void 0:F.totalPlaytime)&&void 0!==I?I:0)>0&&k.a.createElement(k.a.Fragment,null,k.a.createElement("br",null),k.a.createElement("br",null),"Total play time of imported game:"," ",Object(A.d)(null!==(D=null==q||null===(j=q.playerData)||void 0===j?void 0:j.totalPlaytime)&&void 0!==D?D:0)),k.a.createElement("br",null),k.a.createElement("br",null))}),k.a.createElement(E.a,{title:k.a.createElement(d.a,null,"Forcefully kill all active running scripts, in case there is a bug or some unexpected issue with the game. After using this, save the game and then reload the page. This is different than normal kill in that normal kill will tell the script to shut down while force kill just removes the references to it (and it should crash on its own). This will not remove the files on your computer, just forcefully kill all running instances of all scripts.")},k.a.createElement(b.a,{onClick:()=>e.forceKill(),sx:{gridArea:"kill"}},"Force kill all active scripts")),k.a.createElement(p.a,{sx:{gridArea:"reset","& .MuiButton-root":{height:"100%",width:"100%"}}},k.a.createElement(T.a,{noConfirmation:S.a.SuppressBuyAugmentationConfirmation,onTriggered:e.softReset})),k.a.createElement(E.a,{title:k.a.createElement(d.a,null,"If your save file is extremely big you can use this button to view a map of all the files on every server. Be careful: there might be spoilers.")},k.a.createElement(b.a,{onClick:()=>W(!0),sx:{gridArea:"diagnose"}},"Diagnose files")),k.a.createElement(E.a,{title:"Head to the theme browser to see a collection of prebuilt themes."},k.a.createElement(b.a,{startIcon:k.a.createElement(o.a,null),onClick:()=>e.router.toThemeBrowser(),sx:{gridArea:"browse"}},"Theme Browser")),k.a.createElement(p.a,{sx:{gridArea:"theme","& .MuiButton-root":{height:"100%",width:"100%"}}},k.a.createElement(x.a,{router:e.router})),k.a.createElement(p.a,{sx:{gridArea:"style","& .MuiButton-root":{height:"100%",width:"100%"}}},k.a.createElement(C.a,null)),k.a.createElement(p.a,{sx:{gridArea:"links",display:"grid",gridTemplateAreas:'"bug changelog"\n "docs docs"\n "discord reddit"\n "plaza plaza"',gridTemplateColumns:"1fr 1fr",my:1}},k.a.createElement(b.a,{startIcon:k.a.createElement(s.a,null),href:"https://github.com/danielyxie/bitburner/issues/new",target:"_blank",sx:{gridArea:"bug"}},"Report Bug"),k.a.createElement(b.a,{startIcon:k.a.createElement(l.a,null),href:"https://bitburner.readthedocs.io/en/latest/changelog.html",target:"_blank",sx:{gridArea:" changelog"}},"Changelog"),k.a.createElement(b.a,{startIcon:k.a.createElement(c.a,null),href:"https://bitburner.readthedocs.io/en/latest/index.html",target:"_blank",sx:{gridArea:"docs"}},"Documentation"),k.a.createElement(b.a,{startIcon:k.a.createElement(f.a,null),href:"https://discord.gg/TFc3hKD",target:"_blank",sx:{gridArea:"discord"}},"Discord"),k.a.createElement(b.a,{startIcon:k.a.createElement(u.a,null),href:"https://www.reddit.com/r/bitburner",target:"_blank",sx:{gridArea:"reddit"}},"Reddit")),!location.href.startsWith("file://")&&k.a.createElement(p.a,{sx:{gridArea:"devs"}},k.a.createElement("form",{action:"https://www.paypal.com/cgi-bin/webscr",method:"post",target:"_blank",style:{display:"block"}},k.a.createElement(b.a,{sx:{width:"100%",display:"flex",flexDirection:"column"},type:"submit"},"danielyxie / BigD (Original Dev)",k.a.createElement("input",{type:"hidden",name:"cmd",value:"_s-xclick"}),k.a.createElement("input",{type:"hidden",name:"encrypted",value:"-----BEGIN PKCS7-----MIIHRwYJKoZIhvcNAQcEoIIHODCCBzQCAQExggEwMIIBLAIBADCBlDCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb20CAQAwDQYJKoZIhvcNAQEBBQAEgYA2Y2VGE75oWct89z//G2YEJKmzx0uDTXNrpje9ThxmUnBLFZCY+I11Pors7lGRvFqo5okwnu41CfYMPHDxpAgyYyQndMX9pWUX0gLfBMm2BaHwsNBCwt34WmpQqj7TGsQ+aw9NbmkxiJltGnOa+6/gy10mPZAA3HxiieLeCKkGgDELMAkGBSsOAwIaBQAwgcQGCSqGSIb3DQEHATAUBggqhkiG9w0DBwQI72F1YSzHUd2AgaDMekHU3AKT93Ey9wkB3486bV+ngFSD6VOHrPweH9QATsp+PMe9QM9vmq+s2bGtTbZaYrFqM3M97SnQ0l7IQ5yuOzdZhRdfysu5uJ8dnuHUzq4gLSzqMnZ6/3c+PoHB8AS1nYHUVL4U0+ogZsO1s97IAQyfck9SaoFlxVtqQhkb8752MkQJJvGu3ZQSQGcVC4hFDPk8prXqyq4BU/k/EliwoIIDhzCCA4MwggLsoAMCAQICAQAwDQYJKoZIhvcNAQEFBQAwgY4xCzAJBgNVBAYTAlVTMQswCQYDVQQIEwJDQTEWMBQGA1UEBxMNTW91bnRhaW4gVmlldzEUMBIGA1UEChMLUGF5UGFsIEluYy4xEzARBgNVBAsUCmxpdmVfY2VydHMxETAPBgNVBAMUCGxpdmVfYXBpMRwwGgYJKoZIhvcNAQkBFg1yZUBwYXlwYWwuY29tMB4XDTA0MDIxMzEwMTMxNVoXDTM1MDIxMzEwMTMxNVowgY4xCzAJBgNVBAYTAlVTMQswCQYDVQQIEwJDQTEWMBQGA1UEBxMNTW91bnRhaW4gVmlldzEUMBIGA1UEChMLUGF5UGFsIEluYy4xEzARBgNVBAsUCmxpdmVfY2VydHMxETAPBgNVBAMUCGxpdmVfYXBpMRwwGgYJKoZIhvcNAQkBFg1yZUBwYXlwYWwuY29tMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDBR07d/ETMS1ycjtkpkvjXZe9k+6CieLuLsPumsJ7QC1odNz3sJiCbs2wC0nLE0uLGaEtXynIgRqIddYCHx88pb5HTXv4SZeuv0Rqq4+axW9PLAAATU8w04qqjaSXgbGLP3NmohqM6bV9kZZwZLR/klDaQGo1u9uDb9lr4Yn+rBQIDAQABo4HuMIHrMB0GA1UdDgQWBBSWn3y7xm8XvVk/UtcKG+wQ1mSUazCBuwYDVR0jBIGzMIGwgBSWn3y7xm8XvVk/UtcKG+wQ1mSUa6GBlKSBkTCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb22CAQAwDAYDVR0TBAUwAwEB/zANBgkqhkiG9w0BAQUFAAOBgQCBXzpWmoBa5e9fo6ujionW1hUhPkOBakTr3YCDjbYfvJEiv/2P+IobhOGJr85+XHhN0v4gUkEDI8r2/rNk1m0GA8HKddvTjyGw/XqXa+LSTlDYkqI8OwR8GEYj4efEtcRpRYBxV8KxAW93YDWzFGvruKnnLbDAF6VR5w/cCMn5hzGCAZowggGWAgEBMIGUMIGOMQswCQYDVQQGEwJVUzELMAkGA1UECBMCQ0ExFjAUBgNVBAcTDU1vdW50YWluIFZpZXcxFDASBgNVBAoTC1BheVBhbCBJbmMuMRMwEQYDVQQLFApsaXZlX2NlcnRzMREwDwYDVQQDFAhsaXZlX2FwaTEcMBoGCSqGSIb3DQEJARYNcmVAcGF5cGFsLmNvbQIBADAJBgUrDgMCGgUAoF0wGAYJKoZIhvcNAQkDMQsGCSqGSIb3DQEHATAcBgkqhkiG9w0BCQUxDxcNMTcwNzI1MDExODE2WjAjBgkqhkiG9w0BCQQxFgQUNo8efiZ7sk7nwKM/6B6Z7sU8hIIwDQYJKoZIhvcNAQEBBQAEgYB+JB4vZ/r48815/1HF/xK3+rOx7bPz3kAXmbhW/mkoF4OUbzqMeljvDIA9q/BDdlCLtxFOw9XlftTzv0eZCW/uCIiwu5wTzPIfPY1SI8WHe4cJbP2f2EYxIVs8D7OSirbW4yVa0+gACaLLj0rzIzNN8P/5PxgB03D+jwkcJABqng==-----END PKCS7-----"}),k.a.createElement("input",{type:"image",src:"https://www.paypalobjects.com/digitalassets/c/website/marketing/apac/C2/logos-buttons/optimize/26_Yellow_PayPal_Pill_Button.png",name:"submit",alt:"PayPal - The safer, easier way to pay online!"}))),k.a.createElement(b.a,{href:"https://www.google.com/search?q=Where+to+donate+blood+near+me%3F",target:"_blank",sx:{width:"100%",display:"flex",flexDirection:"column"}},"hydroflame (Current Maintainer)",k.a.createElement("span",{style:{display:"flex",alignItems:"center"}},k.a.createElement(m.a,{sx:{mb:.5,mr:1}}),"Donate blood!")))),k.a.createElement(w.a,{open:G,onClose:()=>W(!1)}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return w}));var a=n(0),r=n.n(a),i=n(27),o=n(37),s=n(6),l=n(150),c=n(151),f=n(30),u=n(1499),m=n(1500),h=n(48),d=n(1),p=n(43),g=n(159),y=n(160),b=n(161),E=n(80),v=n.n(E);function k(e){const t=Object(i.d)(e.hostname);if(null===t)throw new Error(`server '${e.hostname}' should not be null`);let n=0;for(const e of t.scripts)n+=e.code.length;for(const e of t.textFiles)n+=e.text.length;if(0===n)return r.a.createElement(r.a.Fragment,null);const a=[];for(const e of t.scripts)a.push({name:e.filename,size:e.code.length});for(const e of t.textFiles)a.push({name:e.fn,size:e.text.length});return a.sort((e,t)=>t.size-e.size),r.a.createElement(g.a,{TransitionProps:{unmountOnExit:!0}},r.a.createElement(y.a,{expandIcon:r.a.createElement(v.a,null)},r.a.createElement(d.a,null,t.hostname," (",s.a.formatBigNumber(n),"b)")),r.a.createElement(b.a,null,r.a.createElement(u.a,{component:p.a},r.a.createElement(l.a,null,r.a.createElement(m.a,null,r.a.createElement(h.a,null,r.a.createElement(f.a,null,r.a.createElement(d.a,null,"Filename")),r.a.createElement(f.a,{align:"right"},r.a.createElement(d.a,null,"Size")))),r.a.createElement(c.a,null,a.map(e=>r.a.createElement(h.a,{key:e.name},r.a.createElement(f.a,{component:"th",scope:"row"},r.a.createElement(d.a,null,e.name)),r.a.createElement(f.a,{align:"right"},r.a.createElement(d.a,null,s.a.formatBigNumber(e.size),"b"))))))),r.a.createElement("ul",null)))}function w(e){const t=[];for(const e of Object(i.c)())t.push(e.hostname);return r.a.createElement(o.a,{open:e.open,onClose:e.onClose},r.a.createElement(r.a.Fragment,null,r.a.createElement(d.a,null,"Welcome to the file diagnostic! If your save file is really big it's likely because you have too many text/scripts. This tool can help you narrow down where they are."),t.map(e=>r.a.createElement(k,{key:e,hostname:e}))))}},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return k}));var a=n(0),r=n.n(a),i=n(37),o=n(8),s=n(364),l=n(1),c=n(43),f=n(75),u=n(477),m=n.n(u),h=n(480),d=n.n(h),p=n(173),g=n(5),y=n(412),b=n(19);function E({value:e,onChange:t,refreshId:n}){const[i,o]=Object(a.useState)(),[s,l]=Object(a.useState)(e);function c(e){l(e),o(e?"":"Must have a value")}return Object(a.useEffect)(()=>t(s,i),[s]),Object(a.useEffect)(()=>c(e),[n]),r.a.createElement(f.a,{sx:{my:1},label:"Font-Family",error:!!i,value:s,helperText:i,onChange:function(e){c(e.target.value)},fullWidth:!0})}function v({value:e,onChange:t,refreshId:n}){const[i,o]=Object(a.useState)(),[s,l]=Object(a.useState)(e);function c(e){l(e),e?isNaN(Number(e))?o("Must be a number"):o(""):o("Must have a value")}return Object(a.useEffect)(()=>t(s,i),[s]),Object(a.useEffect)(()=>c(e),[n]),r.a.createElement(f.a,{sx:{my:1},label:"Line Height",error:!!i,value:s,helperText:i,onChange:function(e){c(e.target.value)}})}function k(e){const[t,n]=Object(a.useState)(0),[f,u]=Object(a.useState)(),[h,k]=Object(a.useState)({...g.a.styles});function w(e){Object.assign(g.a.styles,e),p.b.emit()}function _(e,t){u(t),t||k(e)}return r.a.createElement(i.a,{open:e.open,onClose:e.onClose},r.a.createElement(l.a,{variant:"h6"},"Styles Editor"),r.a.createElement(l.a,null,"WARNING: Changing styles ",r.a.createElement("strong",null,"may mess up")," the interface. Drastic changes are"," ",r.a.createElement("strong",null,"NOT recommended"),"."),r.a.createElement(c.a,{sx:{p:2,my:2}},r.a.createElement(E,{value:h.fontFamily,refreshId:t,onChange:(e,t)=>_({...h,fontFamily:e},t)}),r.a.createElement("br",null),r.a.createElement(v,{value:h.lineHeight,refreshId:t,onChange:(e,t)=>_({...h,lineHeight:e},t)}),r.a.createElement("br",null),r.a.createElement(s.a,{sx:{my:1}},r.a.createElement(o.a,{onClick:function(){const e={...y.a};k(e),w(e),n(t+1)},startIcon:r.a.createElement(m.a,null),color:"secondary",variant:"outlined"},"Revert to Defaults"),r.a.createElement(b.a,{title:"Save styles to settings"},r.a.createElement(o.a,{onClick:function(){w(h)},endIcon:r.a.createElement(d.a,null),color:f?"error":"primary",disabled:!!f},"Save Modifications")))))}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return C}));var a=n(0),r=n.n(a),i=n(37),o=n(8),s=n(364),l=n(1),c=n(19),f=n(43),u=n(75),m=n(112),h=n(477),d=n.n(h),p=n(644),g=n.n(p),y=n(1297),b=n.n(y),E=n(635),v=n(173),k=n(5),w=n(345),_=n(643);function S({name:e,onColorChange:t,color:n,defaultColor:a}){return void 0===n&&(console.error(`color ${e} was undefined, reverting to default`),n=a),r.a.createElement(r.a.Fragment,null,r.a.createElement(u.a,{sx:{mx:1},label:e,value:n,InputProps:{startAdornment:r.a.createElement(r.a.Fragment,null,r.a.createElement(E.a,{hideTextfield:!0,deferred:!0,value:n,onChange:n=>t(e,"#"+n.hex),disableAlpha:!0})),endAdornment:r.a.createElement(r.a.Fragment,null,r.a.createElement(m.a,{onClick:()=>t(e,a)},r.a.createElement(d.a,{color:"primary"})))}}))}function C(e){const[t,n]=Object(a.useState)({...k.a.theme});function m(e,t){n(n=>(n[e]=t,n)),k.a.theme[e]=t,v.b.emit()}function h(e){!function(e){n(e),Object.assign(k.a.theme,e),v.b.emit()}(e)}return r.a.createElement(i.a,{open:e.open,onClose:e.onClose},r.a.createElement(f.a,{sx:{px:1,py:1,my:1}},r.a.createElement(c.a,{open:!0,placement:"top",title:r.a.createElement(l.a,null,"Example tooltip")},r.a.createElement(o.a,{color:"primary",size:"small"},"primary button")),r.a.createElement(o.a,{color:"secondary",size:"small"},"secondary button"),r.a.createElement(o.a,{color:"warning",size:"small"},"warning button"),r.a.createElement(o.a,{color:"info",size:"small"},"info button"),r.a.createElement(o.a,{color:"error",size:"small"},"error button"),r.a.createElement(o.a,{disabled:!0,size:"small"},"disabled button"),r.a.createElement("br",null),r.a.createElement(l.a,{color:"primary",variant:"caption"},"text with primary color")," ",r.a.createElement(l.a,{color:"secondary",variant:"caption"},"text with secondary color")," ",r.a.createElement(l.a,{color:"error",variant:"caption"},"text with error color"),r.a.createElement("br",null),r.a.createElement(u.a,{value:"Text field",size:"small"})),r.a.createElement(f.a,{sx:{py:1,my:1}},r.a.createElement(S,{name:"primarylight",onColorChange:m,color:t.primarylight,defaultColor:k.b.theme.primarylight}),r.a.createElement(S,{name:"primary",onColorChange:m,color:t.primary,defaultColor:k.b.theme.primary}),r.a.createElement(S,{name:"primarydark",onColorChange:m,color:t.primarydark,defaultColor:k.b.theme.primarydark}),r.a.createElement("br",null),r.a.createElement(S,{name:"successlight",onColorChange:m,color:t.successlight,defaultColor:k.b.theme.successlight}),r.a.createElement(S,{name:"success",onColorChange:m,color:t.success,defaultColor:k.b.theme.success}),r.a.createElement(S,{name:"successdark",onColorChange:m,color:t.successdark,defaultColor:k.b.theme.successdark}),r.a.createElement("br",null),r.a.createElement(S,{name:"errorlight",onColorChange:m,color:t.errorlight,defaultColor:k.b.theme.errorlight}),r.a.createElement(S,{name:"error",onColorChange:m,color:t.error,defaultColor:k.b.theme.error}),r.a.createElement(S,{name:"errordark",onColorChange:m,color:t.errordark,defaultColor:k.b.theme.errordark}),r.a.createElement("br",null),r.a.createElement(S,{name:"secondarylight",onColorChange:m,color:t.secondarylight,defaultColor:k.b.theme.secondarylight}),r.a.createElement(S,{name:"secondary",onColorChange:m,color:t.secondary,defaultColor:k.b.theme.secondary}),r.a.createElement(S,{name:"secondarydark",onColorChange:m,color:t.secondarydark,defaultColor:k.b.theme.secondarydark}),r.a.createElement("br",null),r.a.createElement(S,{name:"warninglight",onColorChange:m,color:t.warninglight,defaultColor:k.b.theme.warninglight}),r.a.createElement(S,{name:"warning",onColorChange:m,color:t.warning,defaultColor:k.b.theme.warning}),r.a.createElement(S,{name:"warningdark",onColorChange:m,color:t.warningdark,defaultColor:k.b.theme.warningdark}),r.a.createElement("br",null),r.a.createElement(S,{name:"infolight",onColorChange:m,color:t.infolight,defaultColor:k.b.theme.infolight}),r.a.createElement(S,{name:"info",onColorChange:m,color:t.info,defaultColor:k.b.theme.info}),r.a.createElement(S,{name:"infodark",onColorChange:m,color:t.infodark,defaultColor:k.b.theme.infodark}),r.a.createElement("br",null),r.a.createElement(S,{name:"welllight",onColorChange:m,color:t.welllight,defaultColor:k.b.theme.welllight}),r.a.createElement(S,{name:"well",onColorChange:m,color:t.well,defaultColor:k.b.theme.well}),r.a.createElement(S,{name:"white",onColorChange:m,color:t.white,defaultColor:k.b.theme.white}),r.a.createElement(S,{name:"black",onColorChange:m,color:t.black,defaultColor:k.b.theme.black}),r.a.createElement(S,{name:"backgroundprimary",onColorChange:m,color:t.backgroundprimary,defaultColor:k.b.theme.backgroundprimary}),r.a.createElement(S,{name:"backgroundsecondary",onColorChange:m,color:t.backgroundsecondary,defaultColor:k.b.theme.backgroundsecondary}),r.a.createElement(S,{name:"button",onColorChange:m,color:t.button,defaultColor:k.b.theme.button}),r.a.createElement("br",null),r.a.createElement(S,{name:"hp",onColorChange:m,color:t.hp,defaultColor:k.b.theme.hp}),r.a.createElement(S,{name:"money",onColorChange:m,color:t.money,defaultColor:k.b.theme.money}),r.a.createElement(S,{name:"hack",onColorChange:m,color:t.hack,defaultColor:k.b.theme.hack}),r.a.createElement(S,{name:"combat",onColorChange:m,color:t.combat,defaultColor:k.b.theme.combat}),r.a.createElement(S,{name:"cha",onColorChange:m,color:t.cha,defaultColor:k.b.theme.cha}),r.a.createElement(S,{name:"int",onColorChange:m,color:t.int,defaultColor:k.b.theme.int}),r.a.createElement(S,{name:"rep",onColorChange:m,color:t.rep,defaultColor:k.b.theme.rep}),r.a.createElement(S,{name:"disabled",onColorChange:m,color:t.disabled,defaultColor:k.b.theme.disabled})),r.a.createElement(f.a,{sx:{px:1,py:1,my:1}},r.a.createElement(u.a,{sx:{mb:1},multiline:!0,fullWidth:!0,maxRows:10,label:"import / export theme",value:JSON.stringify(t,void 0,2),onChange:function(e){try{const t=JSON.parse(e.target.value);if("object"!=typeof t)return;n(t);for(const e of Object.keys(t))k.a.theme[e]=t[e];v.b.emit()}catch(e){}}}),r.a.createElement(r.a.Fragment,null,r.a.createElement(l.a,{sx:{my:1}},"Backup your theme or share it with others by copying the string above."),r.a.createElement(_.a,null),r.a.createElement(s.a,null,r.a.createElement(c.a,{title:"Reverts all modification back to the default theme. This is permanent."},r.a.createElement(o.a,{onClick:()=>h(w.a),startIcon:r.a.createElement(b.a,null)},"Revert to Default")),r.a.createElement(c.a,{title:"Move over to the theme browser's page to use one of our predefined themes."},r.a.createElement(o.a,{startIcon:r.a.createElement(g.a,null),onClick:()=>e.router.toThemeBrowser()},"See more themes"))))))}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var a=n(0),r=n.n(a),i=n(252),o=n(1),s=n(8),l=n(18),c=n(28),f=n(1301),u=n(1308);function m(){const e=c.b.Player(),[t,n]=Object(a.useState)(!1),m=Object(a.useState)(!1)[1];function h(){m(e=>!e)}return Object(a.useEffect)(()=>{const e=setInterval(h,200);return()=>clearInterval(e)},[]),r.a.createElement(r.a.Fragment,null,r.a.createElement(i.a,{disableGutters:!0,maxWidth:"md",sx:{mx:0}},r.a.createElement(o.a,{variant:"h4"},"Sleeves"),r.a.createElement(o.a,null,"Duplicate Sleeves are MK-V Synthoids (synthetic androids) into which your consciousness has been copied. In other words, these Synthoids contain a perfect duplicate of your mind.",r.a.createElement("br",null),r.a.createElement("br",null),"Sleeves can be used to perform different tasks synchronously.",r.a.createElement("br",null),r.a.createElement("br",null))),r.a.createElement(s.a,{onClick:()=>n(!0)},"FAQ"),r.a.createElement(s.a,{href:"https://bitburner.readthedocs.io/en/latest/advancedgameplay/sleeves.html#duplicate-sleeves",target:"_blank"},"Wiki Documentation"),r.a.createElement(l.a,{display:"grid",sx:{gridTemplateColumns:"repeat(2, 1fr)",mt:1}},e.sleeves.map((e,t)=>r.a.createElement(f.a,{key:t,rerender:h,sleeve:e}))),r.a.createElement(u.a,{open:t,onClose:()=>n(!1)}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return _}));var a=n(43),r=n(18),i=n(8),o=n(19),s=n(1),l=n(0),c=n.n(l),f=n(101),u=n(12),m=n(82),h=n(28),d=n(6),p=n(424),g=n(65),y=n(1302),b=n(1303),E=n(1304),v=n(795),k=n(1306),w=n(1307);function _(e){const t=h.b.Player(),[n,_]=Object(l.useState)(!1),[S,C]=Object(l.useState)(!1),[x,L]=Object(l.useState)(!1),[O,M]=Object(l.useState)(!1),[T,A]=Object(l.useState)(["------","------","------"]);let R=c.a.createElement(c.a.Fragment,null);switch(e.sleeve.currentTask){case g.a.Idle:R=c.a.createElement(c.a.Fragment,null,"This sleeve is currently idle");break;case g.a.Company:R=c.a.createElement(c.a.Fragment,null,"This sleeve is currently working your job at ",e.sleeve.currentTaskLocation,".");break;case g.a.Faction:{let t="nothing";switch(e.sleeve.factionWorkType){case f.a.FIELD:t="Field work";break;case f.a.HACKING:t="Hacking contracts";break;case f.a.SECURITY:t="Security work"}R=c.a.createElement(c.a.Fragment,null,"This sleeve is currently doing ",t," for ",e.sleeve.currentTaskLocation,".");break}case g.a.Crime:{const t=Object.values(m.a).find(t=>t.name===e.sleeve.crimeType);if(!t)throw new Error("crime should not be undefined");R=c.a.createElement(c.a.Fragment,null,"This sleeve is currently attempting to ",t.type," (Success Rate:"," ",d.a.formatPercentage(t.successRate(e.sleeve)),").");break}case g.a.Class:R=c.a.createElement(c.a.Fragment,null,"This sleeve is currently studying/taking a course at ",e.sleeve.currentTaskLocation,".");break;case g.a.Gym:R=c.a.createElement(c.a.Fragment,null,"This sleeve is currently working out at ",e.sleeve.currentTaskLocation,".");break;case g.a.Bladeburner:{let t="";"------"!==e.sleeve.bbContract?t=` - ${e.sleeve.bbContract} (Success Rate: ${e.sleeve.currentTaskLocation})`:""!==e.sleeve.currentTaskLocation&&(t=e.sleeve.currentTaskLocation),R=c.a.createElement(c.a.Fragment,null,"This sleeve is currently attempting to ",e.sleeve.bbAction,". ",t);break}case g.a.Recovery:R=c.a.createElement(c.a.Fragment,null,"This sleeve is currently set to focus on shock recovery. This causes the Sleeve's shock to decrease at a faster rate.");break;case g.a.Synchro:R=c.a.createElement(c.a.Fragment,null,"This sleeve is currently set to synchronize with the original consciousness. This causes the Sleeve's synchronization to increase.");break;default:console.error("Invalid/Unrecognized taskValue in updateSleeveTaskDescription(): "+T[0])}return c.a.createElement(c.a.Fragment,null,c.a.createElement(a.a,{sx:{p:1,display:"grid",gridTemplateColumns:"1fr 1fr",width:"auto",gap:1}},c.a.createElement("span",null,c.a.createElement(v.b,{sleeve:e.sleeve}),c.a.createElement(r.a,{display:"grid",sx:{gridTemplateColumns:"1fr 1fr",width:"100%"}},c.a.createElement(i.a,{onClick:()=>_(!0)},"More Stats"),c.a.createElement(i.a,{onClick:()=>C(!0)},"More Earnings Info"),c.a.createElement(o.a,{title:t.money<u.a.TravelCost?c.a.createElement(s.a,null,"Insufficient funds"):""},c.a.createElement("span",null,c.a.createElement(i.a,{onClick:()=>L(!0),disabled:t.money<u.a.TravelCost,sx:{width:"100%",height:"100%"}},"Travel"))),c.a.createElement(o.a,{title:e.sleeve.shock<100?c.a.createElement(s.a,null,"Unlocked when sleeve has fully recovered"):""},c.a.createElement("span",null,c.a.createElement(i.a,{onClick:()=>M(!0),disabled:e.sleeve.shock<100,sx:{width:"100%",height:"100%"}},"Manage Augmentations"))))),c.a.createElement("span",null,c.a.createElement(v.a,{sleeve:e.sleeve}),c.a.createElement(k.a,{player:t,sleeve:e.sleeve,setABC:A}),c.a.createElement(i.a,{onClick:function(){switch(e.sleeve.resetTaskStatus(t),T[0]){case"------":break;case"Work for Company":e.sleeve.workForCompany(t,T[1]);break;case"Work for Faction":e.sleeve.workForFaction(t,T[1],T[2]);break;case"Commit Crime":e.sleeve.commitCrime(t,T[1]);break;case"Take University Course":e.sleeve.takeUniversityCourse(t,T[2],T[1]);break;case"Workout at Gym":e.sleeve.workoutAtGym(t,T[2],T[1]);break;case"Perform Bladeburner Actions":e.sleeve.bladeburner(t,T[1],T[2]);break;case"Shock Recovery":e.sleeve.shockRecovery(t);break;case"Synchronize":e.sleeve.synchronize(t);break;default:console.error("Invalid/Unrecognized taskValue in setSleeveTask(): "+T[0])}e.rerender()},sx:{width:"100%"}},"Set Task"),c.a.createElement(s.a,null,R),c.a.createElement(s.a,null,(e.sleeve.currentTask===g.a.Crime||e.sleeve.currentTask===g.a.Bladeburner)&&e.sleeve.currentTaskMaxTime>0&&c.a.createElement(p.a,{variant:"determinate",value:e.sleeve.currentTaskTime/e.sleeve.currentTaskMaxTime*100,color:"primary"})))),c.a.createElement(b.a,{open:n,onClose:()=>_(!1),sleeve:e.sleeve}),c.a.createElement(y.a,{open:S,onClose:()=>C(!1),sleeve:e.sleeve}),c.a.createElement(w.a,{open:x,onClose:()=>L(!1),sleeve:e.sleeve,rerender:e.rerender}),c.a.createElement(E.a,{open:O,onClose:()=>M(!1),sleeve:e.sleeve}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var a=n(6),r=n(20),i=n(0),o=n(203),s=n(37);function l(e){return i.createElement(s.a,{open:e.open,onClose:e.onClose},i.createElement(o.a,{rows:[["Money ",i.createElement(r.a,{money:e.sleeve.earningsForTask.money})],["Hacking Exp ",a.a.formatExp(e.sleeve.earningsForTask.hack)],["Strength Exp ",a.a.formatExp(e.sleeve.earningsForTask.str)],["Defense Exp ",a.a.formatExp(e.sleeve.earningsForTask.def)],["Dexterity Exp ",a.a.formatExp(e.sleeve.earningsForTask.dex)],["Agility Exp ",a.a.formatExp(e.sleeve.earningsForTask.agi)],["Charisma Exp ",a.a.formatExp(e.sleeve.earningsForTask.cha)]],title:"Earnings for Current Task:"}),i.createElement("br",null),i.createElement(o.a,{rows:[["Money: ",i.createElement(r.a,{money:e.sleeve.earningsForPlayer.money})],["Hacking Exp: ",a.a.formatExp(e.sleeve.earningsForPlayer.hack)],["Strength Exp: ",a.a.formatExp(e.sleeve.earningsForPlayer.str)],["Defense Exp: ",a.a.formatExp(e.sleeve.earningsForPlayer.def)],["Dexterity Exp: ",a.a.formatExp(e.sleeve.earningsForPlayer.dex)],["Agility Exp: ",a.a.formatExp(e.sleeve.earningsForPlayer.agi)],["Charisma Exp: ",a.a.formatExp(e.sleeve.earningsForPlayer.cha)]],title:"Total Earnings for Host Consciousness:"}),i.createElement("br",null),i.createElement(o.a,{rows:[["Money: ",i.createElement(r.a,{money:e.sleeve.earningsForSleeves.money})],["Hacking Exp: ",a.a.formatExp(e.sleeve.earningsForSleeves.hack)],["Strength Exp: ",a.a.formatExp(e.sleeve.earningsForSleeves.str)],["Defense Exp: ",a.a.formatExp(e.sleeve.earningsForSleeves.def)],["Dexterity Exp: ",a.a.formatExp(e.sleeve.earningsForSleeves.dex)],["Agility Exp: ",a.a.formatExp(e.sleeve.earningsForSleeves.agi)],["Charisma Exp: ",a.a.formatExp(e.sleeve.earningsForSleeves.cha)]],title:"Total Earnings for Other Sleeves:"}),i.createElement("br",null))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var a=n(6),r=n(24),i=n(12),o=n(1),s=n(203),l=n(37),c=n(0),f=n.n(c);function u(e){return f.a.createElement(l.a,{open:e.open,onClose:e.onClose},f.a.createElement(s.a,{rows:[[f.a.createElement(f.a.Fragment,null,"Hacking: "),e.sleeve.hacking,f.a.createElement(f.a.Fragment,null," (",a.a.formatExp(e.sleeve.hacking_exp)," exp)")],[f.a.createElement(f.a.Fragment,null,"Strength: "),e.sleeve.strength,f.a.createElement(f.a.Fragment,null," (",a.a.formatExp(e.sleeve.strength_exp)," exp)")],[f.a.createElement(f.a.Fragment,null,"Defense: "),e.sleeve.defense,f.a.createElement(f.a.Fragment,null," (",a.a.formatExp(e.sleeve.defense_exp)," exp)")],[f.a.createElement(f.a.Fragment,null,"Dexterity: "),e.sleeve.dexterity,f.a.createElement(f.a.Fragment,null," (",a.a.formatExp(e.sleeve.dexterity_exp)," exp)")],[f.a.createElement(f.a.Fragment,null,"Agility: "),e.sleeve.agility,f.a.createElement(f.a.Fragment,null," (",a.a.formatExp(e.sleeve.agility_exp)," exp)")],[f.a.createElement(f.a.Fragment,null,"Charisma: "),e.sleeve.charisma,f.a.createElement(f.a.Fragment,null," (",a.a.formatExp(e.sleeve.charisma_exp)," exp)")]],title:"Stats:"}),f.a.createElement("br",null),f.a.createElement(s.a,{rows:[[f.a.createElement(f.a.Fragment,null,"Hacking Level multiplier: "),a.a.formatPercentage(e.sleeve.mults.hacking)],[f.a.createElement(f.a.Fragment,null,"Hacking Experience multiplier: "),a.a.formatPercentage(e.sleeve.mults.hacking_exp)],[f.a.createElement(f.a.Fragment,null,"Strength Level multiplier: "),a.a.formatPercentage(e.sleeve.mults.strength)],[f.a.createElement(f.a.Fragment,null,"Strength Experience multiplier: "),a.a.formatPercentage(e.sleeve.mults.strength_exp)],[f.a.createElement(f.a.Fragment,null,"Defense Level multiplier: "),a.a.formatPercentage(e.sleeve.mults.defense)],[f.a.createElement(f.a.Fragment,null,"Defense Experience multiplier: "),a.a.formatPercentage(e.sleeve.mults.defense_exp)],[f.a.createElement(f.a.Fragment,null,"Dexterity Level multiplier: "),a.a.formatPercentage(e.sleeve.mults.dexterity)],[f.a.createElement(f.a.Fragment,null,"Dexterity Experience multiplier: "),a.a.formatPercentage(e.sleeve.mults.dexterity_exp)],[f.a.createElement(f.a.Fragment,null,"Agility Level multiplier: "),a.a.formatPercentage(e.sleeve.mults.agility)],[f.a.createElement(f.a.Fragment,null,"Agility Experience multiplier: "),a.a.formatPercentage(e.sleeve.mults.agility_exp)],[f.a.createElement(f.a.Fragment,null,"Charisma Level multiplier: "),a.a.formatPercentage(e.sleeve.mults.charisma)],[f.a.createElement(f.a.Fragment,null,"Charisma Experience multiplier: "),a.a.formatPercentage(e.sleeve.mults.charisma_exp)],[f.a.createElement(f.a.Fragment,null,"Faction Reputation Gain multiplier: "),a.a.formatPercentage(e.sleeve.mults.faction_rep)],[f.a.createElement(f.a.Fragment,null,"Company Reputation Gain multiplier: "),a.a.formatPercentage(e.sleeve.mults.company_rep)],[f.a.createElement(f.a.Fragment,null,"Salary multiplier: "),a.a.formatPercentage(e.sleeve.mults.work_money)],[f.a.createElement(f.a.Fragment,null,"Crime Money multiplier: "),a.a.formatPercentage(e.sleeve.mults.crime_money)],[f.a.createElement(f.a.Fragment,null,"Crime Success multiplier: "),a.a.formatPercentage(e.sleeve.mults.crime_success)]],title:"Multipliers:"}),e.sleeve.storedCycles>10&&f.a.createElement(o.a,{sx:{py:2}},"Bonus Time: ",Object(r.d)(e.sleeve.storedCycles*i.a.MilliPerCycle)))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var a=n(252),r=n(43),i=n(1),o=n(0),s=n.n(o),l=n(648),c=n(28),f=n(37),u=n(611);function m(e){const t=c.b.Player(),n=Object(o.useState)(!1)[1];function m(){n(e=>!e)}Object(o.useEffect)(()=>{const e=setInterval(m,150);return()=>clearInterval(e)},[]);const h=e.sleeve.augmentations.map(e=>e.name),d=Object(u.a)(e.sleeve,t);return s.a.createElement(f.a,{open:e.open,onClose:e.onClose},s.a.createElement(a.a,{component:r.a,disableGutters:!0,maxWidth:"lg",sx:{mx:0,mb:1,p:1}},s.a.createElement(i.a,null,"You can purchase Augmentations for your Duplicate Sleeves. These Augmentations have the same effect as they would for you. You can only purchase Augmentations that you have unlocked through Factions.",s.a.createElement("br",null),s.a.createElement("br",null),"When purchasing an Augmentation for a Duplicate Sleeve, they are immediately installed. This means that the Duplicate Sleeve will immediately lose all of its stat experience.",s.a.createElement("br",null),s.a.createElement("br",null),"Augmentations will appear below as they become available.")),s.a.createElement(l.a,{augNames:d.map(e=>e.name),ownedAugNames:h,player:t,canPurchase:(e,t)=>e.money>t.baseCost,purchaseAugmentation:(t,n,a)=>{e.sleeve.tryBuyAugmentation(t,n),m()},sleeveAugs:!0}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var a=n(0),r=n.n(a),i=n(105),o=n(115),s=n(20),l=n(37),c=n(28),f=n(1),u=n(8);function m(e){if(void 0===e.aug||void 0===e.faction)return r.a.createElement(r.a.Fragment,null);const t=c.b.Player();return r.a.createElement(l.a,{open:e.open,onClose:e.onClose},r.a.createElement(f.a,{variant:"h4"},e.aug.name),r.a.createElement(f.a,null,e.aug.info,r.a.createElement("br",null),r.a.createElement("br",null),e.aug.stats,r.a.createElement("br",null),r.a.createElement("br",null),"Would you like to purchase the ",e.aug.name," Augmentation for ",r.a.createElement(s.a,{money:e.aug.getCost(t).moneyCost}),"?",r.a.createElement("br",null),r.a.createElement("br",null)),r.a.createElement(u.a,{autoFocus:!0,onClick:function(){!Object(o.g)(e.aug)&&t.hasAugmentation(e.aug)||(Object(i.f)(e.aug,e.faction),e.onClose())}},"Purchase"))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return k}));var a=n(0),r=n.n(a),i=n(65),o=n(82),s=n(9),l=n(15),c=n(29),f=n(130),u=n(71),m=n(4),h=n(101);const d=["Study Computer Science","Data Structures","Networks","Algorithms","Management","Leadership"],p=["Train Strength","Train Defense","Train Dexterity","Train Agility"],g=["Field analysis","Recruitment","Diplomacy","Infiltrate synthoids","Support main sleeve","Take on contracts"];function y(e,t){const n=[];for(const a of e.sleeves)t!==a&&a.currentTask===i.a.Company&&n.push(a.currentTaskLocation);const a=Object.keys(e.jobs);for(let e=0;e<a.length;++e)n.includes(a[e])||a[e];return a}function b(e,t){const n=[m.a.Bladeburners,m.a.ShadowsOfAnarchy];e.gang&&n.push(e.gang.facName);for(const a of e.sleeves)t!==a&&a.currentTask===i.a.Faction&&n.push(a.currentTaskLocation);const a=[];for(const t of e.factions)n.includes(t)||a.push(t);return a.filter(e=>{const t=c.a[e];if(!t)return!1;const n=t.getInfo();return n.offerHackingWork||n.offerFieldWork||n.offerSecurityWork})}const E={"------":()=>({first:["------"],second:()=>["------"]}),"Work for Company":(e,t)=>{let n=y(e,t);return 0===n.length&&(n=["------"]),{first:n,second:()=>["------"]}},"Work for Faction":(e,t)=>{let n=b(e,t);return 0===n.length&&(n=["------"]),{first:n,second:e=>{const t=c.a[e];if(!t)return["------"];const n=t.getInfo(),a=[];return n.offerHackingWork&&a.push("Hacking Contracts"),n.offerFieldWork&&a.push("Field Work"),n.offerSecurityWork&&a.push("Security Work"),a}}},"Commit Crime":()=>({first:Object.values(o.a).map(e=>e.name),second:()=>["------"]}),"Take University Course":(e,t)=>{let n=[];switch(t.city){case l.a.Aevum:n=[s.a.AevumSummitUniversity];break;case l.a.Sector12:n=[s.a.Sector12RothmanUniversity];break;case l.a.Volhaven:n=[s.a.VolhavenZBInstituteOfTechnology];break;default:n=["No university available in city!"]}return{first:d,second:()=>n}},"Workout at Gym":(e,t)=>{let n=[];switch(t.city){case l.a.Aevum:n=[s.a.AevumCrushFitnessGym,s.a.AevumSnapFitnessGym];break;case l.a.Sector12:n=[s.a.Sector12IronGym,s.a.Sector12PowerhouseGym];break;case l.a.Volhaven:n=[s.a.VolhavenMilleniumFitnessGym];break;default:n=["No gym available in city!"]}return{first:p,second:()=>n}},"Perform Bladeburner Actions":(e,t)=>({first:g,second:n=>"Take on contracts"===n?function(e,t){const n=e.bladeburner;if(null===n)return["------"];let a=n.getContractNamesNetscriptFn();for(const n of e.sleeves)t!==n&&n.currentTask===i.a.Bladeburner&&"Take on contracts"==n.bbAction&&(a=a.filter(e=>e!=n.bbContract));return 0===a.length?["------"]:a}(e,t):["------"]}),"Shock Recovery":()=>({first:["------"],second:()=>["------"]}),Synchronize:()=>({first:["------"],second:()=>["------"]})},v={"------":()=>!0,"Work for Company":(e,t)=>y(e,t).length>0,"Work for Faction":(e,t)=>b(e,t).length>0,"Commit Crime":()=>!0,"Take University Course":(e,t)=>[l.a.Aevum,l.a.Sector12,l.a.Volhaven].includes(t.city),"Workout at Gym":(e,t)=>[l.a.Aevum,l.a.Sector12,l.a.Volhaven].includes(t.city),"Perform Bladeburner Actions":(e,t)=>e.inBladeburner(),"Shock Recovery":(e,t)=>t.shock<100,Synchronize:(e,t)=>t.sync<100};function k(e){const t=function(e){switch(e.currentTask){case i.a.Idle:return["------","------","------"];case i.a.Company:return["Work for Company",e.currentTaskLocation,"------"];case i.a.Faction:{let t="";switch(e.factionWorkType){case h.a.HACKING:t="Hacking Contracts";break;case h.a.FIELD:t="Field Work";break;case h.a.SECURITY:t="Security Work"}return["Work for Faction",e.currentTaskLocation,t]}case i.a.Crime:return["Commit Crime",e.crimeType,"------"];case i.a.Class:return["Take University Course",e.className,e.currentTaskLocation];case i.a.Gym:return["Workout at Gym",e.gymStatType,e.currentTaskLocation];case i.a.Bladeburner:return["Perform Bladeburner Actions",e.bbAction,e.bbContract];case i.a.Recovery:return["Shock Recovery","------","------"];case i.a.Synchro:return["Synchronize","------","------"]}}(e.sleeve),[n,o]=Object(a.useState)(t[0]),[s,l]=Object(a.useState)(t[1]),[c,m]=Object(a.useState)(t[2]),d=Object.keys(v).filter(t=>v[t](e.player,e.sleeve)),p=E[n];if(void 0===p)throw new Error(`No function for task '${n}'`);const g=p(e.player,e.sleeve),y=g.second(s);return g.first.length>0&&!g.first.includes(s)&&(l(g.first[0]),e.setABC([n,g.first[0],c])),y.length>0&&!y.includes(c)&&(m(y[0]),e.setABC([n,s,y[0]])),r.a.createElement(r.a.Fragment,null,r.a.createElement(f.a,{onChange:function(t){var a;const r=t.target.value,i=E[r];if(void 0===i)throw new Error(`No function for task '${n}'`);const s=i(e.player,e.sleeve),c=null!==(a=s.second(s.first[0]))&&void 0!==a?a:["------"];m(c[0]),l(s.first[0]),o(r),e.setABC([r,s.first[0],c[0]])},value:n,sx:{width:"100%"}},d.map(e=>r.a.createElement(u.a,{key:e,value:e},e))),!(1===g.first.length&&"------"===g.first[0])&&r.a.createElement(r.a.Fragment,null,r.a.createElement(f.a,{onChange:function(t){l(t.target.value),e.setABC([n,t.target.value,c])},value:s,sx:{width:"100%"}},g.first.map(e=>r.a.createElement(u.a,{key:e,value:e},e)))),!(1===y.length&&"------"===y[0])&&r.a.createElement(r.a.Fragment,null,r.a.createElement(f.a,{onChange:function(t){m(t.target.value),e.setABC([n,s,t.target.value])},value:c,sx:{width:"100%"}},y.map(e=>r.a.createElement(u.a,{key:e,value:e},e)))))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var a=n(0),r=n.n(a),i=n(12),o=n(20),s=n(478),l=n(15),c=n(5),f=n(14),u=n(28),m=n(37),h=n(1),d=n(8);function p(e){const t=u.b.Player();function n(n){t.canAfford(i.a.TravelCost)||Object(f.a)("You cannot afford to have this sleeve travel to another city"),e.sleeve.city=n,t.loseMoney(i.a.TravelCost,"sleeve"),e.sleeve.resetTaskStatus(t),e.rerender(),e.onClose()}return r.a.createElement(m.a,{open:e.open,onClose:e.onClose},r.a.createElement(r.a.Fragment,null,r.a.createElement(h.a,null,"Have this sleeve travel to a different city. This affects the gyms and universities at which this sleeve can study. Traveling to a different city costs ",r.a.createElement(o.a,{money:i.a.TravelCost,player:t}),". It will also set your current sleeve task to idle."),c.a.DisableASCIIArt?Object.values(l.a).map(e=>r.a.createElement(d.a,{key:e,onClick:()=>n(e)},e)):r.a.createElement(s.a,{currentCity:e.sleeve.city,onTravel:e=>n(e)})))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var a=n(0),r=n.n(a),i=n(37),o=n(1),s=n(4);function l({open:e,onClose:t}){return r.a.createElement(i.a,{open:e,onClose:t},r.a.createElement(r.a.Fragment,null,r.a.createElement(o.a,{variant:"h4"},"How do Duplicate Sleeves work?"),r.a.createElement("br",null),r.a.createElement(o.a,null,"Duplicate Sleeves are essentially clones. You can use them to perform any work type action, such as working for a company/faction or committing a crime. Having sleeves perform these tasks earns you money, experience, and reputation."),r.a.createElement("br",null),r.a.createElement("br",null),r.a.createElement(o.a,null,"Sleeves are their own individuals, which means they each have their own experience and stats."),r.a.createElement("br",null),r.a.createElement("br",null),r.a.createElement(o.a,null,"When a sleeve earns experience, it earns experience for itself, the player's original 'consciousness', as well as all of the player's other sleeves."),r.a.createElement("br",null),r.a.createElement("br",null),r.a.createElement(o.a,{variant:"h4"},"What is Synchronization (Sync)?"),r.a.createElement("br",null),r.a.createElement(o.a,null,"Synchronization is a measure of how aligned your consciousness is with that of your Duplicate Sleeves. It is a numerical value between 1 and 100, and it affects how much experience is earned when the sleeve is performing a task."),r.a.createElement("br",null),r.a.createElement("br",null),r.a.createElement(o.a,null,"Let N be the sleeve's synchronization. When the sleeve earns experience by performing a task, both the sleeve and the player's original host consciousness earn N% of the amount of experience normally earned by the task. All of the player's other sleeves earn ((N/100)^2 * 100)% of the experience."),r.a.createElement("br",null),r.a.createElement("br",null),r.a.createElement(o.a,null,"Synchronization can be increased by assigning sleeves to the 'Synchronize' task."),r.a.createElement("br",null),r.a.createElement("br",null),r.a.createElement(o.a,{variant:"h4"},"What is Shock?"),r.a.createElement("br",null),r.a.createElement(o.a,null,"Sleeve shock is a measure of how much trauma the sleeve has due to being placed in a new body. It is a numerical value between 0 and 99, where 99 indicates full shock and 0 indicates no shock. Shock affects the amount of experience earned by the sleeve."),r.a.createElement("br",null),r.a.createElement("br",null),r.a.createElement(o.a,null,"Sleeve shock slowly decreases over time. You can further increase the rate at which it decreases by assigning sleeves to the 'Shock Recovery' task."),r.a.createElement("br",null),r.a.createElement("br",null),r.a.createElement(o.a,{variant:"h4"},"Why can't I work for this company or faction?"),r.a.createElement("br",null),r.a.createElement(o.a,null,"Only one of your sleeves can work for a given company/faction a time. To clarify further, if you have two sleeves they can work for two different companies, but they cannot both work for the same company."),r.a.createElement("br",null),r.a.createElement("br",null),r.a.createElement(o.a,{variant:"h4"},"Why did my Sleeve stop working?"),r.a.createElement("br",null),r.a.createElement(o.a,null,"Sleeves are subject to the same time restrictions as you. This means that they automatically stop working at a company after 8 hours, and stop working for a faction after 20 hours."),r.a.createElement("br",null),r.a.createElement("br",null),r.a.createElement(o.a,{variant:"h4"},"How do I buy Augmentations for my Sleeves?"),r.a.createElement("br",null),r.a.createElement(o.a,null,"Your Sleeve needs to have a Shock of 0 in order for you to buy Augmentations for it."),r.a.createElement("br",null),r.a.createElement("br",null),r.a.createElement(o.a,{variant:"h4"},"Why can't I buy the X Augmentation for my sleeve?"),r.a.createElement("br",null),r.a.createElement(o.a,null,"Certain Augmentations, like ",s.a.Bladeburners,"-specific ones and NeuroFlux Governor, are not available for sleeves."),r.a.createElement("br",null),r.a.createElement("br",null),r.a.createElement(o.a,{variant:"h4"},"Do sleeves get reset when installing Augmentations or switching BitNodes?"),r.a.createElement("br",null),r.a.createElement(o.a,null,"Sleeves are reset when switching BitNodes, but not when installing Augmentations."),r.a.createElement("br",null),r.a.createElement("br",null),r.a.createElement(o.a,{variant:"h4"},"What is Memory?"),r.a.createElement("br",null),r.a.createElement(o.a,null,"Sleeve memory dictates what a sleeve's synchronization will be when it's reset by switching BitNodes. For example, if a sleeve has a memory of 25, then when you switch BitNodes its synchronization will initially be set to 25, rather than 1."),r.a.createElement("br",null),r.a.createElement("br",null),r.a.createElement(o.a,null,"Memory can only be increased by purchasing upgrades from ",s.a.TheCovenant,". It is a persistent stat, meaning it never gets resets back to 1. The maximum possible value for a sleeve's memory is 100.")))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return k}));var a=n(0),r=n.n(a),i=n(1310),o=n(1311),s=n(1312),l=n(226),c=n(91),f=n(1313),u=n(1315),m=n(1316),h=n(1317),d=n(40),p=n(54),g=n(27),y=n(1),b=n(282),E=n(8),v=n(18);function k(e){const[t,n]=Object(a.useState)(!1),k=Object(a.useState)(!1)[1];function w(){k(e=>!e)}const[_,S]=Object(a.useState)(d.c.x1);Object(a.useEffect)(()=>{const e=setInterval(w,200);return()=>clearInterval(e)},[]);let C,x=0;for(let t=0;t<e.player.hacknetNodes.length;++t){const n=e.player.hacknetNodes[t];if(Object(p.g)(e.player)){if(n instanceof l.a)throw new Error("node was hacknet node");const e=Object(g.d)(n);if(!(e instanceof c.a))throw new Error("node was not hacknet server");e?x+=e.hashRate:console.warn(`Could not find Hacknet Server object in AllServers map (i=${t})`)}else{if("string"==typeof n)throw new Error("node was ip string");x+=n.moneyGainRatePerSecond}}C=Object(p.g)(e.player)?Object(p.b)(e.player):Object(p.a)(e.player);const L=[()=>S(d.c.x1),()=>S(d.c.x5),()=>S(d.c.x10),()=>S(d.c.MAX)],O=e.player.hacknetNodes.map(t=>{if(Object(p.g)(e.player)){if(t instanceof l.a)throw new Error("node was hacknet node");const n=Object(g.d)(t);if(null==n)throw new Error("Could not find Hacknet Server object in AllServers map for IP: "+t);if(!(n instanceof c.a))throw new Error("node was not hacknet server");return r.a.createElement(s.a,{player:e.player,key:n.hostname,node:n,purchaseMultiplier:_,rerender:w})}if("string"==typeof t)throw new Error("node was ip string");return r.a.createElement(o.a,{player:e.player,key:t.name,node:t,purchaseMultiplier:_,rerender:w})});return r.a.createElement(r.a.Fragment,null,r.a.createElement(y.a,{variant:"h4"},"Hacknet ",Object(p.g)(e.player)?"Servers":"Nodes"),r.a.createElement(i.a,{hasHacknetServers:Object(p.g)(e.player)}),r.a.createElement(h.a,{cost:C,multiplier:_,onClick:function(){Object(p.l)(e.player),w()}}),r.a.createElement("br",null),r.a.createElement(b.a,{container:!0,spacing:2},r.a.createElement(b.a,{item:!0,xs:6},r.a.createElement(m.a,{totalProduction:x,player:e.player})),r.a.createElement(b.a,{item:!0,xs:6},r.a.createElement(u.a,{onClicks:L,purchaseMultiplier:_}))),Object(p.g)(e.player)&&r.a.createElement(E.a,{onClick:()=>n(!0)},"Spend Hashes on Upgrades"),r.a.createElement(v.a,{sx:{display:"grid",width:"fit-content",gridTemplateColumns:"repeat(3, 1fr)"}},O),r.a.createElement(f.a,{open:t,onClose:()=>n(!1)}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var a=n(0),r=n.n(a),i=n(1);function o(e){return r.a.createElement(r.a.Fragment,null,r.a.createElement(i.a,null,"The Hacknet is a global, decentralized network of machines. It is used by hackers all around the world to anonymously share computing power and perform distributed cyberattacks without the fear of being traced."),e.hasHacknetServers?r.a.createElement(r.a.Fragment,null,r.a.createElement(i.a,null,"Here, you can purchase a Hacknet Server, an upgraded version of the Hacknet Node. Hacknet Servers will perform computations and operations on the network, earning you hashes. Hashes can be spent on a variety of different upgrades."),r.a.createElement(i.a,null,"Hacknet Servers can also be used as servers to run scripts. However, running scripts on a server will reduce its hash rate (hashes generated per second). A Hacknet Server's hash rate will be reduced by the percentage of RAM that is being used by that Server to run scripts.")):r.a.createElement(r.a.Fragment,null,r.a.createElement(i.a,null,"Here, you can purchase a Hacknet Node, a specialized machine that can connect and contribute its resources to the Hacknet network. This allows you to take a small percentage of profits from hacks performed on the network. Essentially, you are renting out your Node's computing power."),r.a.createElement(i.a,null,"Each Hacknet Node you purchase will passively earn you money. Each Hacknet Node can be upgraded in order to increase its computing power and thereby increase the profit you earn from it.")))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return v}));var a=n(0),r=n.n(a),i=n(40),o=n(54),s=n(20),l=n(121),c=n(1),f=n(282),u=n(43),m=n(8),h=n(77),d=n(151),p=n(150),g=n(48),y=n(19),b=n(6),E=n(213);function v(e){const t=e.node,n=e.purchaseMultiplier,a=e.rerender;let v,k,w;if(t.level>=i.a.MaxLevel)v=r.a.createElement(m.a,{disabled:!0},"MAX LEVEL");else{let f=0;if("MAX"===n)f=Object(o.e)(e.player,t,i.a.MaxLevel);else{const e=i.a.MaxLevel-t.level;f=Math.min(e,n)}const u=Object(E.c)(t.level+f,t.ram,t.cores,e.player.mults.hacknet_node_money)-t.moneyGainRatePerSecond,h=t.calculateLevelUpgradeCost(f,e.player.mults.hacknet_node_level_cost);v=r.a.createElement(y.a,{title:r.a.createElement(c.a,null,"+",r.a.createElement(l.a,{money:u}))},r.a.createElement(m.a,{onClick:function(){const r="MAX"===n?Object(o.e)(e.player,t,i.a.MaxLevel):n;Object(o.n)(e.player,t,r),a()}},"+",f," - ",r.a.createElement(s.a,{money:h,player:e.player})))}if(t.ram>=i.a.MaxRam)k=r.a.createElement(m.a,{disabled:!0},"MAX RAM");else{let f=0;if("MAX"===n)f=Object(o.f)(e.player,t,i.a.MaxRam);else{const e=Math.round(Math.log2(i.a.MaxRam/t.ram));f=Math.min(e,n)}const u=Object(E.c)(t.level,t.ram*Math.pow(2,f),t.cores,e.player.mults.hacknet_node_money)-t.moneyGainRatePerSecond,h=t.calculateRamUpgradeCost(f,e.player.mults.hacknet_node_ram_cost);k=r.a.createElement(y.a,{title:r.a.createElement(c.a,null,"+",r.a.createElement(l.a,{money:u}))},r.a.createElement(m.a,{onClick:function(){const r="MAX"===n?Object(o.f)(e.player,t,i.a.MaxRam):n;Object(o.o)(e.player,t,r),a()}},"+",f," - ",r.a.createElement(s.a,{money:h,player:e.player})))}if(t.cores>=i.a.MaxCores)w=r.a.createElement(m.a,{disabled:!0},"MAX CORES");else{let f=0;if("MAX"===n)f=Object(o.d)(e.player,t,i.a.MaxCores);else{const e=i.a.MaxCores-t.cores;f=Math.min(e,n)}const u=Object(E.c)(t.level,t.ram,t.cores+f,e.player.mults.hacknet_node_money)-t.moneyGainRatePerSecond,h=t.calculateCoreUpgradeCost(f,e.player.mults.hacknet_node_core_cost);w=r.a.createElement(y.a,{title:r.a.createElement(c.a,null,"+",r.a.createElement(l.a,{money:u}))},r.a.createElement(m.a,{onClick:function(){const r="MAX"===n?Object(o.d)(e.player,t,i.a.MaxCores):n;Object(o.k)(e.player,t,r),a()}},"+",f," - ",r.a.createElement(s.a,{money:h,player:e.player})))}return r.a.createElement(f.a,{item:!0,component:u.a,p:1},r.a.createElement(p.a,{size:"small"},r.a.createElement(d.a,null,r.a.createElement(g.a,null,r.a.createElement(h.b,{colSpan:3},r.a.createElement(c.a,null,t.name))),r.a.createElement(g.a,null,r.a.createElement(h.b,null,r.a.createElement(c.a,null,"Production:")),r.a.createElement(h.b,{colSpan:2},r.a.createElement(c.a,null,r.a.createElement(s.a,{money:t.totalMoneyGenerated})," (",r.a.createElement(l.a,{money:t.moneyGainRatePerSecond}),")"))),r.a.createElement(g.a,null,r.a.createElement(h.b,null,r.a.createElement(c.a,null,"Level:")),r.a.createElement(h.b,null,r.a.createElement(c.a,null,t.level)),r.a.createElement(h.b,null,v)),r.a.createElement(g.a,null,r.a.createElement(h.b,null,r.a.createElement(c.a,null,"RAM:")),r.a.createElement(h.b,null,r.a.createElement(c.a,null,b.a.formatRAM(t.ram))),r.a.createElement(h.b,null,k)),r.a.createElement(g.a,null,r.a.createElement(h.b,null,r.a.createElement(c.a,null,"Cores:")),r.a.createElement(h.b,null,r.a.createElement(c.a,null,t.cores)),r.a.createElement(h.b,null,w)))))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return k}));var a=n(0),r=n.n(a),i=n(40),o=n(54),s=n(20),l=n(225),c=n(294),f=n(1),u=n(282),m=n(43),h=n(8),d=n(77),p=n(151),g=n(150),y=n(48),b=n(6),E=n(158),v=n(19);function k(e){const t=e.node,n=e.purchaseMultiplier,a=e.rerender;let k,w,_,S;if(t.level>=i.b.MaxLevel)k=r.a.createElement(h.a,{disabled:!0},"MAX LEVEL");else{let l=0;if("MAX"===n)l=Object(o.e)(e.player,t,i.b.MaxLevel);else{const e=i.b.MaxLevel-t.level;l=Math.min(e,n)}const u=Object(E.c)(t.level+l,0,t.maxRam,t.cores,e.player.mults.hacknet_node_money)-Object(E.c)(t.level,0,t.maxRam,t.cores,e.player.mults.hacknet_node_money),m=u*(t.maxRam-t.ramUsed)/t.maxRam,d=t.calculateLevelUpgradeCost(l,e.player.mults.hacknet_node_level_cost);k=r.a.createElement(v.a,{title:r.a.createElement(f.a,null,"+",r.a.createElement(c.a,{hashes:m})," (effective increase, taking current RAM usage into account)",r.a.createElement("br",null),r.a.createElement("span",{style:{opacity:.5}},"+",r.a.createElement(c.a,{hashes:u}))," ","(base increase, attained when no script is running)")},r.a.createElement(h.a,{onClick:function(){let r=n;"MAX"===n&&(r=Object(o.e)(e.player,t,i.b.MaxLevel));Object(o.n)(e.player,t,r),a()}},"+",l," - ",r.a.createElement(s.a,{money:d,player:e.player})))}if(t.maxRam>=i.b.MaxRam)w=r.a.createElement(h.a,{disabled:!0},"MAX RAM");else{let l=0;if("MAX"===n)l=Object(o.f)(e.player,t,i.b.MaxRam);else{const e=Math.round(Math.log2(i.b.MaxRam/t.maxRam));l=Math.min(e,n)}const u=Object(E.c)(t.level,0,t.maxRam*Math.pow(2,l),t.cores,e.player.mults.hacknet_node_money)-Object(E.c)(t.level,0,t.maxRam,t.cores,e.player.mults.hacknet_node_money),m=Object(E.c)(t.level,t.ramUsed,t.maxRam*Math.pow(2,l),t.cores,e.player.mults.hacknet_node_money)-Object(E.c)(t.level,t.ramUsed,t.maxRam,t.cores,e.player.mults.hacknet_node_money),d=t.calculateRamUpgradeCost(l,e.player.mults.hacknet_node_ram_cost);w=r.a.createElement(v.a,{title:r.a.createElement(f.a,null,"+",r.a.createElement(c.a,{hashes:m})," (effective increase, taking current RAM usage into account)",r.a.createElement("br",null),r.a.createElement("span",{style:{opacity:.5}},"+",r.a.createElement(c.a,{hashes:u}))," ","(base increase, attained when no script is running)")},r.a.createElement(h.a,{onClick:function(){let r=n;"MAX"===n&&(r=Object(o.f)(e.player,t,i.b.MaxRam)),Object(o.o)(e.player,t,r),a()}},"+",l," - ",r.a.createElement(s.a,{money:d,player:e.player})))}if(t.cores>=i.b.MaxCores)_=r.a.createElement(h.a,{disabled:!0},"MAX CORES");else{let l=0;if("MAX"===n)l=Object(o.d)(e.player,t,i.b.MaxCores);else{const e=i.b.MaxCores-t.cores;l=Math.min(e,n)}const u=Object(E.c)(t.level,0,t.maxRam,t.cores+l,e.player.mults.hacknet_node_money)-Object(E.c)(t.level,0,t.maxRam,t.cores,e.player.mults.hacknet_node_money),m=u*(t.maxRam-t.ramUsed)/t.maxRam,d=t.calculateCoreUpgradeCost(l,e.player.mults.hacknet_node_core_cost);_=r.a.createElement(v.a,{title:r.a.createElement(f.a,null,"+",r.a.createElement(c.a,{hashes:m})," (effective increase, taking current RAM usage into account)",r.a.createElement("br",null),r.a.createElement("span",{style:{opacity:.5}},"+",r.a.createElement(c.a,{hashes:u}))," ","(base increase, attained when no script is running)")},r.a.createElement(h.a,{onClick:function(){let r=n;"MAX"===n&&(r=Object(o.d)(e.player,t,i.b.MaxCores)),Object(o.k)(e.player,t,r),a()}},"+",l," - ",r.a.createElement(s.a,{money:d,player:e.player})))}if(t.cache>=i.b.MaxCache)S=r.a.createElement(h.a,{disabled:!0},"MAX CACHE");else{let c=0;if("MAX"===n)c=Object(o.c)(e.player,t,i.b.MaxCache);else{const e=i.b.MaxCache-t.cache;c=Math.min(e,n)}const u=32*Math.pow(2,t.cache+c)-t.hashCapacity,m=t.calculateCacheUpgradeCost(c);S=r.a.createElement(v.a,{title:r.a.createElement(f.a,null,"+",r.a.createElement(l.a,{hashes:u})," hashes")},r.a.createElement(h.a,{onClick:function(){let r=n;"MAX"===n&&(r=Object(o.c)(e.player,t,i.b.MaxCache));Object(o.j)(e.player,t,r),a(),Object(o.p)(e.player)}},"+",c," - ",r.a.createElement(s.a,{money:m,player:e.player}))),e.player.money}return r.a.createElement(u.a,{item:!0,component:m.a,p:1},r.a.createElement(g.a,{size:"small"},r.a.createElement(p.a,null,r.a.createElement(y.a,null,r.a.createElement(d.b,null,r.a.createElement(f.a,null,t.hostname))),r.a.createElement(y.a,null,r.a.createElement(d.b,null,r.a.createElement(f.a,null,"Production:")),r.a.createElement(d.b,{colSpan:2},r.a.createElement(v.a,{title:r.a.createElement(f.a,null,r.a.createElement(l.a,{hashes:t.totalHashesGenerated})," hashes produced by this server since last augment installation.",r.a.createElement("br",null),r.a.createElement(c.a,{hashes:t.hashRate})," current production rate.",r.a.createElement("br",null),r.a.createElement("span",{style:{opacity:.5}},r.a.createElement(c.a,{hashes:t.hashRate*t.maxRam/(t.maxRam-t.ramUsed)}))," ","max production rate. (achieved when 100% RAM is allocated to it)",r.a.createElement("br",null),b.a.formatRAM(t.ramUsed)," / ",b.a.formatRAM(t.maxRam)," (",Math.round(100*t.ramUsed/t.maxRam),"%) RAM allocated to script.",r.a.createElement("br",null),b.a.formatRAM(t.maxRam-t.ramUsed)," / ",b.a.formatRAM(t.maxRam)," (",Math.round(100*(t.maxRam-t.ramUsed)/t.maxRam),"%) RAM allocated to hash production.")},r.a.createElement(f.a,null,r.a.createElement(l.a,{hashes:t.totalHashesGenerated})," (",r.a.createElement(c.a,{hashes:t.hashRate}),")")))),r.a.createElement(y.a,null,r.a.createElement(d.b,null,r.a.createElement(f.a,null,"Hash Capacity:")),r.a.createElement(d.b,{colSpan:2},r.a.createElement(f.a,null,r.a.createElement(l.a,{hashes:t.hashCapacity})))),r.a.createElement(y.a,null,r.a.createElement(d.b,null,r.a.createElement(f.a,null,"Level:")),r.a.createElement(d.b,null,r.a.createElement(f.a,null,t.level)),r.a.createElement(d.b,null,k)),r.a.createElement(y.a,null,r.a.createElement(d.b,null,r.a.createElement(f.a,null,"RAM:")),r.a.createElement(d.b,null,r.a.createElement(f.a,null,b.a.formatRAM(t.maxRam))),r.a.createElement(d.b,null,w)),r.a.createElement(y.a,null,r.a.createElement(d.b,null,r.a.createElement(f.a,null,"Cores:")),r.a.createElement(d.b,null,r.a.createElement(f.a,null,t.cores)),r.a.createElement(d.b,null,_)),r.a.createElement(y.a,null,r.a.createElement(d.b,null,r.a.createElement(f.a,null,"Cache Level:")),r.a.createElement(d.b,null,r.a.createElement(f.a,null,t.cache)),r.a.createElement(d.b,null,S)))))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var a=n(0),r=n.n(a),i=n(386),o=n(244),s=n(225),l=n(1314),c=n(37),f=n(28),u=n(1);function m(e){const t=f.b.Player(),n=Object(a.useState)(!1)[1];function m(){n(e=>!e)}Object(a.useEffect)(()=>{const e=setInterval(()=>n(e=>!e),200);return()=>clearInterval(e)},[]);const h=t.hashManager;if(!(h instanceof i.a))throw new Error("Player does not have a HashManager)");return r.a.createElement(c.a,{open:e.open,onClose:e.onClose},r.a.createElement(r.a.Fragment,null,r.a.createElement(u.a,null,"Spend your hashes on a variety of different upgrades"),r.a.createElement(u.a,null,"Hashes: ",r.a.createElement(s.a,{hashes:t.hashManager.hashes})),Object.keys(o.a).map(e=>{const n=o.a[e];return r.a.createElement(l.a,{player:t,upg:n,hashManager:h,key:n.name,rerender:m})})))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var a=n(0),r=n.n(a),i=n(54),o=n(796),s=n(14),l=n(169),c=n(225),f=n(1),u=n(43),m=n(8),h=n(4);const d={};function p(e){const[t,n]=Object(a.useState)(d[e.upg.name]?d[e.upg.name]:h.a.ECorp.toLowerCase());function p(){if(e.hashManager.hashes>=e.hashManager.getUpgradeCost(e.upg.name)){Object(i.m)(e.player,e.upg.name,t)||Object(s.a)("Failed to purchase upgrade. This may be because you do not have enough hashes, or because you do not have access to the feature upgrade affects."),e.rerender()}}const g=e.hashManager,y=e.upg,b=g.getUpgradeCost(y.name),E=g.upgrades[y.name],v=y.effectText(E),k=g.hashes>=b;return r.a.createElement(u.a,{sx:{p:1}},r.a.createElement(f.a,null,r.a.createElement(l.a,{value:y.name})),r.a.createElement(f.a,null,"Cost: ",r.a.createElement(c.a,{hashes:b}),", Bought: ",E," times"),r.a.createElement(f.a,null,y.desc),!y.hasTargetServer&&r.a.createElement(m.a,{onClick:p,disabled:!k},"Buy"),y.hasTargetServer&&r.a.createElement(o.a,{purchase:p,canPurchase:k,value:t,serverType:o.b.Foreign,onChange:function(t){n(t.target.value),d[e.upg.name]=t.target.value}}),E>0&&v&&r.a.createElement(f.a,null,v))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var a=n(0),r=n.n(a),i=n(40),o=n(8);function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}function l(e){return r.a.createElement(o.a,{disabled:e.disabled,onClick:e.onClick},e.text)}function c(e){if(null==e.purchaseMultiplier)throw new Error("MultiplierButtons constructed without required props");const t=["x1","x5","x10","MAX"],n=e.onClicks,a=[];for(let o=0;o<t.length;++o){const c=t[o],f={disabled:e.purchaseMultiplier===i.c[c],onClick:n[o],text:c};a.push(r.a.createElement(l,s({key:c},f)))}return r.a.createElement(r.a.Fragment,null,a)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var a=n(0),r=n.n(a),i=n(54),o=n(20),s=n(121),l=n(294),c=n(225),f=n(1);function u(e){const t=Object(i.g)(e.player);let n;return n=t?r.a.createElement(l.a,{hashes:e.totalProduction}):r.a.createElement(s.a,{money:e.totalProduction}),r.a.createElement(r.a.Fragment,null,r.a.createElement(f.a,null,"Money:",r.a.createElement(o.a,{money:e.player.money})),t&&r.a.createElement(r.a.Fragment,null,r.a.createElement(f.a,null,"Hashes: ",r.a.createElement(c.a,{hashes:e.player.hashManager.hashes})," /"," ",r.a.createElement(c.a,{hashes:e.player.hashManager.capacity}))),r.a.createElement(f.a,null,"Total Hacknet ",t?"Server":"Node"," Production: ",n))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var a=n(0),r=n.n(a),i=n(54),o=n(2),s=n(20),l=n(8);function c(e){const t=e.cost;let n;return n=Object(i.g)(o.a)?Object(i.h)(o.a)?r.a.createElement(r.a.Fragment,null,"Hacknet Server limit reached"):r.a.createElement(r.a.Fragment,null,"Purchase Hacknet Server - ",r.a.createElement(s.a,{money:t,player:o.a})):r.a.createElement(r.a.Fragment,null,"Purchase Hacknet Node - ",r.a.createElement(s.a,{money:t,player:o.a})),r.a.createElement(l.a,{disabled:!o.a.canAfford(t),onClick:e.onClick},n)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return _}));var a=n(0),r=n(1),i=n(8),o=n(1319),s=n(1321),l=n(1322),c=n(1323),f=n(1324),u=n(1329),m=n(649),h=n(1336),d=n(1337),p=n(51),g=n(5),y=n(137),b=n(27),E=n(380),v=n(28),k=n(470),w=n(19);function _({loc:e}){const t=v.b.Router(),n=v.b.Player();const _=function(){const r=[];return e.types.includes(p.a.Company)&&r.push(a.createElement(o.a,{key:"companylocation",locName:e.name})),e.types.includes(p.a.Gym)&&r.push(a.createElement(s.a,{key:"gymlocation",router:t,loc:e,p:n})),e.types.includes(p.a.Hospital)&&r.push(a.createElement(l.a,{key:"hospitallocation",p:n})),e.types.includes(p.a.Slums)&&r.push(a.createElement(c.a,{key:"slumslocation"})),e.types.includes(p.a.Special)&&r.push(a.createElement(f.a,{key:"speciallocation",loc:e})),e.types.includes(p.a.TechVendor)&&r.push(a.createElement(u.a,{key:"techvendorlocation",loc:e})),e.types.includes(p.a.TravelAgency)&&r.push(a.createElement(m.a,{key:"travelagencylocation",p:n,router:t})),e.types.includes(p.a.University)&&r.push(a.createElement(h.a,{key:"universitylocation",loc:e})),e.types.includes(p.a.Casino)&&r.push(a.createElement(d.a,{key:"casinoLocation",p:n})),r}(),S=k.a.find(t=>t.specialName===e.name),C=Object(b.d)(S?S.hostname:""),x=null!==C&&Object(y.b)(C);return a.createElement(a.Fragment,null,a.createElement(i.a,{onClick:()=>t.toCity()},"Return to World"),a.createElement(r.a,{variant:"h4",sx:{mt:1}},x&&!g.a.DisableTextEffects?a.createElement(w.a,{title:`Backdoor installed on ${e.name}.`},a.createElement("span",null,a.createElement(E.a,{content:e.name}))):e.name),_)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return v}));var a=n(0),r=n.n(a),i=n(1),o=n(8),s=n(19),l=n(18),c=n(296),f=n(181),u=n(74),m=n(375),h=n(104),d=n(31),p=n(139),g=n(331),y=n(28),b=n(1320),E=n(321);function v(e){const t=y.b.Player(),n=y.b.Router(),[v,k]=Object(a.useState)(!1),w=Object(a.useState)(!1)[1];function _(){w(e=>!e)}Object(a.useEffect)(()=>{const e=setInterval(_,200);return()=>clearInterval(e)},[]);const S=u.a[e.locName];if(null==S)throw new Error("CompanyLocation component constructed with invalid company: "+e.locName);const C=f.a[e.locName];if(null==C)throw new Error("CompanyLocation component constructed with invalid location: "+e.locName);const x=t.jobs[e.locName]?t.jobs[e.locName]:null,L=x?h.a[x]:null;t.location=e.locName;const O=null!=x,M=S.getFavorGain();return r.a.createElement(r.a.Fragment,null,O&&r.a.createElement(r.a.Fragment,null,r.a.createElement(i.a,null,"Job Title: ",x),r.a.createElement(i.a,null,"-------------------------"),r.a.createElement(l.a,{display:"flex"},r.a.createElement(s.a,{title:r.a.createElement(r.a.Fragment,null,"You will have ",r.a.createElement(g.a,{favor:S.favor+M})," company favor upon resetting after installing Augmentations")},r.a.createElement(i.a,null,"Company reputation: ",r.a.createElement(p.a,{reputation:S.playerReputation})))),r.a.createElement(i.a,null,"-------------------------"),r.a.createElement(l.a,{display:"flex"},r.a.createElement(s.a,{title:r.a.createElement(r.a.Fragment,null,"Company favor increases the rate at which you earn reputation for this company by 1% per favor. Company favor is gained whenever you reset after installing Augmentations. The amount of favor you gain depends on how much reputation you have with the company.")},r.a.createElement(i.a,null,"Company Favor: ",r.a.createElement(g.a,{favor:S.favor})))),r.a.createElement(i.a,null,"-------------------------"),r.a.createElement("br",null)),r.a.createElement(l.a,{sx:{display:"grid",width:"fit-content"}},O&&r.a.createElement(l.a,{sx:{display:"grid",gridTemplateColumns:"1fr 1fr"}},r.a.createElement(o.a,{onClick:function(a){if(!a.isTrusted)return;L instanceof m.a&&(t.startWork(new E.a({singularity:!1,companyName:e.locName})),t.startFocusing(),n.toWork())}},"Work"),r.a.createElement(o.a,{onClick:()=>k(!0)},"Quit"),r.a.createElement(b.a,{locName:e.locName,company:S,onQuit:_,open:v,onClose:()=>k(!1)})),S.hasAgentPositions()&&r.a.createElement(c.a,{company:S,entryPosType:h.a[d.a[0]],onClick:function(e){e.isTrusted&&(t.applyForAgentJob(),_())},text:"Apply for Agent Job"}),S.hasBusinessConsultantPositions()&&r.a.createElement(c.a,{company:S,entryPosType:h.a[d.c[0]],onClick:function(e){e.isTrusted&&(t.applyForBusinessConsultantJob(),_())},text:"Apply for Business Consultant Job"}),S.hasBusinessPositions()&&r.a.createElement(c.a,{company:S,entryPosType:h.a[d.b[0]],onClick:function(e){e.isTrusted&&(t.applyForBusinessJob(),_())},text:"Apply for Business Job"}),S.hasEmployeePositions()&&r.a.createElement(c.a,{company:S,entryPosType:h.a[d.e[1]],onClick:function(e){e.isTrusted&&(t.applyForEmployeeJob(),_())},text:"Apply to be an Employee"}),S.hasEmployeePositions()&&r.a.createElement(c.a,{company:S,entryPosType:h.a[d.g[1]],onClick:function(e){e.isTrusted&&(t.applyForPartTimeEmployeeJob(),_())},text:"Apply to be a part-time Employee"}),S.hasITPositions()&&r.a.createElement(c.a,{company:S,entryPosType:h.a[d.d[0]],onClick:function(e){e.isTrusted&&(t.applyForItJob(),_())},text:"Apply for IT Job"}),S.hasSecurityPositions()&&r.a.createElement(c.a,{company:S,entryPosType:h.a[d.h[2]],onClick:function(e){e.isTrusted&&(t.applyForSecurityJob(),_())},text:"Apply for Security Job"}),S.hasSoftwareConsultantPositions()&&r.a.createElement(c.a,{company:S,entryPosType:h.a[d.k[0]],onClick:function(e){e.isTrusted&&(t.applyForSoftwareConsultantJob(),_())},text:"Apply for Software Consultant Job"}),S.hasSoftwarePositions()&&r.a.createElement(c.a,{company:S,entryPosType:h.a[d.j[0]],onClick:function(e){e.isTrusted&&(t.applyForSoftwareJob(),_())},text:"Apply for Software Job"}),S.hasWaiterPositions()&&r.a.createElement(c.a,{company:S,entryPosType:h.a[d.e[0]],onClick:function(e){e.isTrusted&&(t.applyForWaiterJob(),_())},text:"Apply to be a Waiter"}),S.hasWaiterPositions()&&r.a.createElement(c.a,{company:S,entryPosType:h.a[d.g[0]],onClick:function(e){e.isTrusted&&(t.applyForPartTimeWaiterJob(),_())},text:"Apply to be a part-time Waiter"}),null!=C.infiltrationData&&r.a.createElement(o.a,{onClick:function(t){if(!t.isTrusted)return;const a=C;if(!a.infiltrationData)throw new Error(`trying to start infiltration at ${e.locName} but the infiltrationData is null`);n.toInfiltration(a)}},"Infiltrate Company")))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var a=n(0),r=n.n(a),i=n(28),o=n(37),s=n(1),l=n(8);function c(e){const t=i.b.Player();return r.a.createElement(o.a,{open:e.open,onClose:e.onClose},r.a.createElement(s.a,null," Would you like to quit your job at ",e.company.name,"?"),r.a.createElement("br",null),r.a.createElement("br",null),r.a.createElement(l.a,{onClick:function(){t.quitJob(e.locName),e.onQuit(),e.onClose()}},"Quit"))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var a=n(0),r=n(8),i=n(20),o=n(18),s=n(88),l=n(333);function c(e){function t(t){e.p.startWork(new s.b({classType:t,location:e.loc.name,singularity:!1})),e.p.startFocusing(),e.router.toWork()}const n=Object(l.b)(s.c[s.a.GymStrength],e.loc);return a.createElement(o.a,{sx:{display:"grid",width:"fit-content"}},a.createElement(r.a,{onClick:()=>t(s.a.GymStrength)},"Train Strength (",a.createElement(i.a,{money:n,player:e.p})," / sec)"),a.createElement(r.a,{onClick:()=>t(s.a.GymDefense)},"Train Defense (",a.createElement(i.a,{money:n,player:e.p})," / sec)"),a.createElement(r.a,{onClick:()=>t(s.a.GymDexterity)},"Train Dexterity (",a.createElement(i.a,{money:n,player:e.p})," / sec)"),a.createElement(r.a,{onClick:()=>t(s.a.GymAgility)},"Train Agility (",a.createElement(i.a,{money:n,player:e.p})," / sec)"))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var a=n(0),r=n(8),i=n(417),o=n(20),s=n(14);class l extends a.Component{constructor(e){super(e),this.btnStyle={display:"block"},this.getCost=this.getCost.bind(this),this.getHealed=this.getHealed.bind(this),this.state={currHp:this.props.p.hp}}getCost(){return Object(i.b)(this.props.p)}getHealed(e){if(!e.isTrusted)return;if(this.props.p.hp<0&&(this.props.p.hp=0),this.props.p.hp>=this.props.p.max_hp)return;const t=this.getCost();this.props.p.loseMoney(t,"hospitalization"),this.props.p.hp=this.props.p.max_hp,this.setState({currHp:this.props.p.hp}),Object(s.a)(a.createElement(a.Fragment,null,"You were healed to full health! The hospital billed you for ",a.createElement(o.a,{money:t})))}render(){const e=this.getCost();return a.createElement(r.a,{onClick:this.getHealed,style:this.btnStyle},"Get treatment for wounds - ",a.createElement(o.a,{money:e,player:this.props.p}))}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var a=n(0),r=n(8),i=n(19),o=n(82),s=n(6),l=n(28),c=n(18);function f(){const e=l.b.Player(),t=l.b.Router();const n=o.a.Shoplift.successRate(e),f=o.a.RobStore.successRate(e),u=o.a.Mug.successRate(e),m=o.a.Larceny.successRate(e),h=o.a.DealDrugs.successRate(e),d=o.a.BondForgery.successRate(e),p=o.a.TraffickArms.successRate(e),g=o.a.Homicide.successRate(e),y=o.a.GrandTheftAuto.successRate(e),b=o.a.Kidnap.successRate(e),E=o.a.Assassination.successRate(e),v=o.a.Heist.successRate(e);return a.createElement(c.a,{sx:{display:"grid",width:"fit-content"}},a.createElement(i.a,{title:a.createElement(a.Fragment,null,"Attempt to shoplift from a low-end retailer")},a.createElement(r.a,{onClick:function(n){n.isTrusted&&o.a.Shoplift.commit(t,e)}},"Shoplift (",s.a.formatPercentage(n)," chance of success)")),a.createElement(i.a,{title:a.createElement(a.Fragment,null,"Attempt to commit armed robbery on a high-end store")},a.createElement(r.a,{onClick:function(n){n.isTrusted&&o.a.RobStore.commit(t,e)}},"Rob store (",s.a.formatPercentage(f)," chance of success)")),a.createElement(i.a,{title:a.createElement(a.Fragment,null,"Attempt to mug a random person on the street")},a.createElement(r.a,{onClick:function(n){n.isTrusted&&o.a.Mug.commit(t,e)}},"Mug someone (",s.a.formatPercentage(u)," chance of success)")),a.createElement(i.a,{title:a.createElement(a.Fragment,null,"Attempt to rob property from someone's house")},a.createElement(r.a,{onClick:function(n){n.isTrusted&&o.a.Larceny.commit(t,e)}},"Larceny (",s.a.formatPercentage(m)," chance of success)")),a.createElement(i.a,{title:a.createElement(a.Fragment,null,"Attempt to deal drugs")},a.createElement(r.a,{onClick:function(n){n.isTrusted&&o.a.DealDrugs.commit(t,e)}},"Deal Drugs (",s.a.formatPercentage(h)," chance of success)")),a.createElement(i.a,{title:a.createElement(a.Fragment,null,"Attempt to forge corporate bonds")},a.createElement(r.a,{onClick:function(n){n.isTrusted&&o.a.BondForgery.commit(t,e)}},"Bond Forgery (",s.a.formatPercentage(d)," chance of success)")),a.createElement(i.a,{title:a.createElement(a.Fragment,null,"Attempt to smuggle illegal arms into the city")},a.createElement(r.a,{onClick:function(n){n.isTrusted&&o.a.TraffickArms.commit(t,e)}},"Traffick illegal Arms (",s.a.formatPercentage(p)," chance of success)")),a.createElement(i.a,{title:a.createElement(a.Fragment,null,"Attempt to murder a random person on the street")},a.createElement(r.a,{onClick:function(n){n.isTrusted&&o.a.Homicide.commit(t,e)}},"Homicide (",s.a.formatPercentage(g)," chance of success)")),a.createElement(i.a,{title:a.createElement(a.Fragment,null,"Attempt to commit grand theft auto")},a.createElement(r.a,{onClick:function(n){n.isTrusted&&o.a.GrandTheftAuto.commit(t,e)}},"Grand theft Auto (",s.a.formatPercentage(y)," chance of success)")),a.createElement(i.a,{title:a.createElement(a.Fragment,null,"Attempt to kidnap and ransom a high-profile-target")},a.createElement(r.a,{onClick:function(n){n.isTrusted&&o.a.Kidnap.commit(t,e)}},"Kidnap and Ransom (",s.a.formatPercentage(b)," chance of success)")),a.createElement(i.a,{title:a.createElement(a.Fragment,null,"Attempt to assassinate a high-profile target")},a.createElement(r.a,{onClick:function(n){n.isTrusted&&o.a.Assassination.commit(t,e)}},"Assassinate (",s.a.formatPercentage(E)," chance of success)")),a.createElement(i.a,{title:a.createElement(a.Fragment,null,"Attempt to pull off the ultimate heist")},a.createElement(r.a,{onClick:function(n){n.isTrusted&&o.a.Heist.commit(t,e)}},"Heist (",s.a.formatPercentage(v)," chance of success)")))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return C}));var a=n(0),r=n.n(a),i=n(1),o=n(8),s=n(1325),l=n(9),c=n(11),f=n(29),u=n(105),m=n(28),h=n(14),d=n(94),p=n(1326),g=n(109),y=n(115),b=n(380),E=n(226),v=n(91),k=n(27),w=n(1327),_=n(4),S=n(21);function C(e){const t=m.b.Player(),n=m.b.Router(),C=Object(a.useState)(!1)[1],x=t.inBladeburner();function L(){const e=t;if(e.inBladeburner())n.toBladeburner();else if(e.strength>=100&&e.defense>=100&&e.dexterity>=100&&e.agility>=100){e.startBladeburner({new:!0}),Object(h.a)("You have been accepted into the Bladeburner division!"),C(e=>!e);const t=document.getElementById("world-menu-header");t instanceof HTMLElement&&(t.click(),t.click())}else Object(h.a)("Rejected! Please apply again when you have 100 of each combat stat (str, def, dex, agi)")}function O(){n.toGrafting()}function M(){const[e,n]=Object(a.useState)(!1);return t.canAccessCorporation()?r.a.createElement(r.a.Fragment,null,r.a.createElement(o.a,{disabled:!t.canAccessCorporation()||t.hasCorporation(),onClick:()=>n(!0)},"Create a Corporation"),r.a.createElement(s.a,{open:e,onClose:()=>n(!1)})):r.a.createElement(r.a.Fragment,null,r.a.createElement(i.a,null,r.a.createElement("i",null,"A businessman is yelling at a clerk. You should come back later.")))}function T(){const e=f.a[_.a.ChurchOfTheMachineGod];t.factions.includes(_.a.ChurchOfTheMachineGod)||Object(u.d)(e),t.augmentations.some(e=>e.name===c.a.StaneksGift1)||t.queuedAugmentations.some(e=>e.name===c.a.StaneksGift1)||Object(y.a)({name:c.a.StaneksGift1,level:1}),n.toStaneksGift()}switch(e.loc.name){case l.a.NewTokyoVitaLife:return t.canAccessGrafting()?r.a.createElement(o.a,{onClick:O,sx:{my:5}},"Enter the secret lab"):r.a.createElement(r.a.Fragment,null);case l.a.Sector12CityHall:return S.a.CorporationSoftcap<.15&&r.a.createElement(r.a.Fragment,null)||r.a.createElement(M,null);case l.a.Sector12NSA:return function(){if(!t.canAccessBladeburner())return r.a.createElement(r.a.Fragment,null);const e=x?"Enter Bladeburner Headquarters":"Apply to Bladeburner Division";return r.a.createElement(r.a.Fragment,null,r.a.createElement("br",null),r.a.createElement(o.a,{onClick:L},e))}();case l.a.NewTokyoNoodleBar:return r.a.createElement(r.a.Fragment,null,r.a.createElement("br",null),r.a.createElement(o.a,{onClick:function(){d.b.emit("You ate some delicious noodles and feel refreshed",d.d.SUCCESS,2e3),Object(p.a)(),t.sourceFiles.length>0&&t.giveExploit(g.a.N00dles),(t.sourceFileLvl(5)>0||5===t.bitNodeN)&&(t.intelligence_exp*=1.0000000000000002),t.hacking_exp*=1.0000000000000002,t.strength_exp*=1.0000000000000002,t.defense_exp*=1.0000000000000002,t.agility_exp*=1.0000000000000002,t.dexterity_exp*=1.0000000000000002,t.charisma_exp*=1.0000000000000002;for(const e of t.hacknetNodes)if(e instanceof E.a)t.gainMoney(.001*e.moneyGainRatePerSecond,"other");else{const n=Object(k.d)(e);if(!(n instanceof v.a))throw new Error(`Server ${e} is not a hacknet server.`);t.hashManager.storeHashes(.001*n.hashRate)}t.bladeburner&&(t.bladeburner.rank+=1e-5),t.corporation&&(t.corporation.funds+=.01*t.corporation.revenue)}},"Eat noodles"));case l.a.ChongqingChurchOfTheMachineGod:return function(){const e=r.a.createElement(o.a,{onClick:()=>n.toStaneksGift()},"Open Stanek's Gift"),a=r.a.createElement(i.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}}," `` ",r.a.createElement("br",null)," -odmmNmds: ",r.a.createElement("br",null)," `hNmo:..-omNh. ",r.a.createElement("br",null)," yMd` `hNh ",r.a.createElement("br",null)," mMd oNm ",r.a.createElement("br",null)," oMNo .mM/ ",r.a.createElement("br",null)," `dMN+ -mM+ ",r.a.createElement("br",null)," -mMNo -mN+ ",r.a.createElement("br",null)," .+- :mMNo/mN/ ",r.a.createElement("br",null),":yNMd. :NMNNN/ ",r.a.createElement("br",null),"-mMMMh. /NMMh` ",r.a.createElement("br",null)," .dMMMd. /NMMMy` ",r.a.createElement("br",null)," `yMMMd. /NNyNMMh` ",r.a.createElement("br",null)," `sMMMd. +Nm: +NMMh. ",r.a.createElement("br",null)," oMMMm- oNm: /NMMd. ",r.a.createElement("br",null)," +NMMmsMm- :mMMd. ",r.a.createElement("br",null)," /NMMMm- -mMMd. ",r.a.createElement("br",null)," /MMMm- -mMMd. ",r.a.createElement("br",null)," `sMNMMm- .mMmo ",r.a.createElement("br",null)," `sMd:hMMm. ./. ",r.a.createElement("br",null)," `yMy` `yNMd` ",r.a.createElement("br",null)," `hMs` oMMy ",r.a.createElement("br",null)," `hMh sMN- ",r.a.createElement("br",null)," /MM- .NMo ",r.a.createElement("br",null)," +MM: :MM+ ",r.a.createElement("br",null)," sNNo-.`.-omNy` ",r.a.createElement("br",null)," -smNNNNmdo- ",r.a.createElement("br",null)," `..` ");return t.hasAugmentation(c.a.StaneksGift3,!0)?r.a.createElement(r.a.Fragment,null,r.a.createElement(i.a,null,r.a.createElement("i",null,"Allison \"Mother\" Stanek: ..can ...you hear them too ...? Come now, don't be shy and let me get a closer look at you. Yes wonderful, I see my creation has taken root without consquence or much ill effect it seems. Curious, Just how much of a machine's soul do you house in that body?")),r.a.createElement("br",null),e,r.a.createElement("br",null),a):t.hasAugmentation(c.a.StaneksGift2,!0)?r.a.createElement(r.a.Fragment,null,r.a.createElement(i.a,null,r.a.createElement("i",null,'Allison "Mother" Stanek: I see you\'ve taken to my creation. So much that it could hardly be recognized as one of my own after your tinkering with it. I see you follow the ways of the Machine God as I do, and your mastery of the gift clearly demonstrates that. My hopes are climbing by the day for you.')),r.a.createElement("br",null),e,r.a.createElement("br",null),a):t.factions.includes(_.a.ChurchOfTheMachineGod)?r.a.createElement(r.a.Fragment,null,r.a.createElement(i.a,null,r.a.createElement("i",null,'Allison "Mother" Stanek: Welcome back my child!')),r.a.createElement("br",null),e,r.a.createElement("br",null),a):t.canAccessCotMG()?t.augmentations.filter(e=>e.name!==c.a.NeuroFluxGovernor).length>0||t.queuedAugmentations.filter(e=>e.name!==c.a.NeuroFluxGovernor).length>0?r.a.createElement(r.a.Fragment,null,r.a.createElement(i.a,null,r.a.createElement("i",null,'Allison "Mother" Stanek: Begone you filth! My gift must be the first modification that your body should have!'))):r.a.createElement(r.a.Fragment,null,r.a.createElement(i.a,null,r.a.createElement("i",null,'Allison "Mother" Stanek: Welcome child, I see your body is pure. Are you ready to ascend beyond our human form? If you are, accept my gift.')),r.a.createElement(o.a,{onClick:T},"Accept Stanek's Gift"),a):r.a.createElement(r.a.Fragment,null,r.a.createElement(i.a,null,"A decrepit altar stands in the middle of a dilapidated church.",r.a.createElement("br",null),r.a.createElement("br",null),"A symbol is carved in the altar."),r.a.createElement("br",null),a)}();case l.a.IshimaGlitch:return r.a.createElement(r.a.Fragment,null,r.a.createElement(i.a,null,r.a.createElement(b.a,{content:"An eerie aura surrounds this area. You feel you should leave."})));case l.a.NewTokyoArcade:return r.a.createElement(w.a,null);default:return console.error(`Location ${e.loc.name} doesn't have any special properties`),r.a.createElement(r.a.Fragment,null)}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var a=n(0),r=n.n(a),i=n(20),o=n(37),s=n(28),l=n(1),c=n(8),f=n(75);function u(e){const t=s.b.Player(),n=s.b.Router(),u=t.canAfford(15e10);if(!t.canAccessCorporation()||t.hasCorporation())return e.onClose(),r.a.createElement(r.a.Fragment,null);const[m,h]=Object(a.useState)("");return r.a.createElement(o.a,{open:e.open,onClose:e.onClose},r.a.createElement(l.a,null,"Would you like to start a corporation? This will require $150b for registration and initial funding."," ",3===t.bitNodeN&&"This $150b\n can either be self-funded, or you can obtain the seed money from the government in exchange for 500 million\n shares",r.a.createElement("br",null),r.a.createElement("br",null),"If you would like to start one, please enter a name for your corporation below:"),r.a.createElement(f.a,{autoFocus:!0,placeholder:"Corporation Name",onChange:function(e){h(e.target.value)},value:m}),3===t.bitNodeN&&r.a.createElement(c.a,{onClick:function(){""!=m&&(t.startCorporation(m,5e8),e.onClose(),n.toCorporation())},disabled:""==m},"Use seed money"),r.a.createElement(c.a,{onClick:function(){u&&""!=m&&(t.startCorporation(m),t.loseMoney(15e10,"corporation"),e.onClose(),n.toCorporation())},disabled:""==m||!u},"Self-Fund (",r.a.createElement(i.a,{money:15e10,player:t}),")"))}},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return N00dles}));const n00dlePower="[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]][([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+([][[]]+[])[+!+[]]+(![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+[]]+([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+(!![]+[])[+!+[]]]((!![]+[])[+!+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+([][[]]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+!+[]]+([]+[])[(![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+([][[]]+[])[+!+[]]+(!![]+[])[+[]]+([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+(!![]+[])[+!+[]]]()[+!+[]+[!+[]+!+[]]]+([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]][([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+([][[]]+[])[+!+[]]+(![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+[]]+([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+(!![]+[])[+!+[]]]((!![]+[])[+!+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+([][[]]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+!+[]]+(![]+[+[]])[([![]]+[][[]])[+!+[]+[+[]]]+(!![]+[])[+[]]+(![]+[])[+!+[]]+(![]+[])[!+[]+!+[]]+([![]]+[][[]])[+!+[]+[+[]]]+([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(![]+[])[!+[]+!+[]+!+[]]]()[+!+[]+[+[]]]+![]+(![]+[+[]])[([![]]+[][[]])[+!+[]+[+[]]]+(!![]+[])[+[]]+(![]+[])[+!+[]]+(![]+[])[!+[]+!+[]]+([![]]+[][[]])[+!+[]+[+[]]]+([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(![]+[])[!+[]+!+[]+!+[]]]()[+!+[]+[+[]]])()[([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+([][[]]+[])[+!+[]]+(![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+[]]+([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+(!![]+[])[+!+[]]]((![]+[+[]])[([![]]+[][[]])[+!+[]+[+[]]]+(!![]+[])[+[]]+(![]+[])[+!+[]]+(![]+[])[!+[]+!+[]]+([![]]+[][[]])[+!+[]+[+[]]]+([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(![]+[])[!+[]+!+[]+!+[]]]()[+!+[]+[+[]]])+[])[+!+[]]+[!+[]+!+[]+!+[]+!+[]]+[!+[]+!+[]]+([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]][([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+([][[]]+[])[+!+[]]+(![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+[]]+([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+(!![]+[])[+!+[]]]((!![]+[])[+!+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+([][[]]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+!+[]]+(![]+[+[]])[([![]]+[][[]])[+!+[]+[+[]]]+(!![]+[])[+[]]+(![]+[])[+!+[]]+(![]+[])[!+[]+!+[]]+([![]]+[][[]])[+!+[]+[+[]]]+([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(![]+[])[!+[]+!+[]+!+[]]]()[+!+[]+[+[]]]+![]+(![]+[+[]])[([![]]+[][[]])[+!+[]+[+[]]]+(!![]+[])[+[]]+(![]+[])[+!+[]]+(![]+[])[!+[]+!+[]]+([![]]+[][[]])[+!+[]+[+[]]]+([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(![]+[])[!+[]+!+[]+!+[]]]()[+!+[]+[+[]]])()[([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+([][[]]+[])[+!+[]]+(![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+[]]+([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+(!![]+[])[+!+[]]]((![]+[+[]])[([![]]+[][[]])[+!+[]+[+[]]]+(!![]+[])[+[]]+(![]+[])[+!+[]]+(![]+[])[!+[]+!+[]]+([![]]+[][[]])[+!+[]+[+[]]]+([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(![]+[])[!+[]+!+[]+!+[]]]()[+!+[]+[+[]]])+[])[+!+[]]+[+!+[]]+[+!+[]]+[!+[]+!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]][([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+([][[]]+[])[+!+[]]+(![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+[]]+([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+(!![]+[])[+!+[]]]((!![]+[])[+!+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+([][[]]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+!+[]]+(+[![]]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+!+[]]]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]][([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+([][[]]+[])[+!+[]]+(![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+[]]+([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+(!![]+[])[+!+[]]]((!![]+[])[+!+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+([][[]]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+!+[]]+(+[![]]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+!+[]]]+(!![]+[])[!+[]+!+[]+!+[]]+(![]+[])[!+[]+!+[]+!+[]]+([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(![]+[])[+!+[]]+(+(!+[]+!+[]+[+!+[]]+[+!+[]]))[(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+([]+[])[([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+([][[]]+[])[+!+[]]+(![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+[]]+([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+(!![]+[])[+!+[]]][([][[]]+[])[+!+[]]+(![]+[])[+!+[]]+((+[])[([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+([][[]]+[])[+!+[]]+(![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+[]]+([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+(!![]+[])[+!+[]]]+[])[+!+[]+[+!+[]]]+(!![]+[])[!+[]+!+[]+!+[]]]](!+[]+!+[]+!+[]+[+!+[]])[+!+[]]+(!![]+[])[!+[]+!+[]+!+[]])()([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[(![]+[])[!+[]+!+[]+!+[]]+(![]+[])[!+[]+!+[]]+([![]]+[][[]])[+!+[]+[+[]]]+([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[])[!+[]+!+[]+!+[]]]((+((+(+!+[]+[+!+[]]+(!![]+[])[!+[]+!+[]+!+[]]+[!+[]+!+[]]+[+[]])+[])[+!+[]]+[+[]+[+[]]+[+[]]+[+[]]+[+[]]+[+[]]+[+!+[]]])+[])[!+[]+!+[]]+[+!+[]])+(![]+[])[+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]])()())[!+[]+!+[]+!+[]+[+[]]]+(+[]+[][([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+([][[]]+[])[+!+[]]+(![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+[]]+([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+(+[]+[][(!![]+[])[!+[]+!+[]+!+[]]+([][[]]+[])[+!+[]]+(!![]+[])[+[]]+(!![]+[])[+!+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(!![]+[])[!+[]+!+[]+!+[]]+(![]+[])[!+[]+!+[]+!+[]]]()[([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+([][[]]+[])[+!+[]]+(![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+[]]+([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+(+[![]]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+!+[]]]+([][[]]+[])[!+[]+!+[]]+([![]]+[][[]])[+!+[]+[+[]]]+([][[]]+[])[!+[]+!+[]]+(+[![]]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+!+[]]]+(+[![]]+[+(+!+[]+(!+[]+[])[!+[]+!+[]+!+[]]+[+!+[]]+[+[]]+[+[]]+[+[]])])[+!+[]+[+[]]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+([][[]]+[])[+[]]+(+[![]]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+!+[]]]+(!![]+[])[+!+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(![]+[])[+!+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[!+[]+!+[]]+(+[![]]+[+(+!+[]+(!+[]+[])[!+[]+!+[]+!+[]]+[+!+[]]+[+[]]+[+[]]+[+[]])])[+!+[]+[+[]]]+(+[![]]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+!+[]]]+([][[]]+[])[!+[]+!+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(![]+[])[+[]]+([][[]]+[])[+[]]+([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(+(!+[]+!+[]+[+[]]))[(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+([]+[])[([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+([][[]]+[])[+!+[]]+(![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+[]]+([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+(!![]+[])[+!+[]]][([][[]]+[])[+!+[]]+(![]+[])[+!+[]]+((+[])[([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+([][[]]+[])[+!+[]]+(![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+[]]+([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+(!![]+[])[+!+[]]]+[])[+!+[]+[+!+[]]]+(!![]+[])[!+[]+!+[]+!+[]]]](!+[]+!+[]+[+!+[]])+(+[![]]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+!+[]]]+(!![]+[])[+[]]+(+(+!+[]+[+[]]+[+!+[]]))[(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+([]+[])[([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+([][[]]+[])[+!+[]]+(![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+[]]+([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+(!![]+[])[+!+[]]][([][[]]+[])[+!+[]]+(![]+[])[+!+[]]+((+[])[([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+([][[]]+[])[+!+[]]+(![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+[]]+([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+(!![]+[])[+!+[]]]+[])[+!+[]+[+!+[]]]+(!![]+[])[!+[]+!+[]+!+[]]]](!+[]+!+[]+[+!+[]])[+!+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]+!+[]]+([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]][([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+([][[]]+[])[+!+[]]+(![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+[]]+([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+(!![]+[])[+!+[]]]((!![]+[])[+!+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+([][[]]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+!+[]]+(![]+[+[]])[([![]]+[][[]])[+!+[]+[+[]]]+(!![]+[])[+[]]+(![]+[])[+!+[]]+(![]+[])[!+[]+!+[]]+([![]]+[][[]])[+!+[]+[+[]]]+([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(![]+[])[!+[]+!+[]+!+[]]]()[+!+[]+[+[]]]+![]+(![]+[+[]])[([![]]+[][[]])[+!+[]+[+[]]]+(!![]+[])[+[]]+(![]+[])[+!+[]]+(![]+[])[!+[]+!+[]]+([![]]+[][[]])[+!+[]+[+[]]]+([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(![]+[])[!+[]+!+[]+!+[]]]()[+!+[]+[+[]]])()[([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+([][[]]+[])[+!+[]]+(![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+[]]+([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+(!![]+[])[+!+[]]]()+[])[!+[]+!+[]]+([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]][([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+([][[]]+[])[+!+[]]+(![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+[]]+([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+(!![]+[])[+!+[]]]((!![]+[])[+!+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+([][[]]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+!+[]]+(![]+[+[]])[([![]]+[][[]])[+!+[]+[+[]]]+(!![]+[])[+[]]+(![]+[])[+!+[]]+(![]+[])[!+[]+!+[]]+([![]]+[][[]])[+!+[]+[+[]]]+([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(![]+[])[!+[]+!+[]+!+[]]]()[+!+[]+[+[]]]+![]+(![]+[+[]])[([![]]+[][[]])[+!+[]+[+[]]]+(!![]+[])[+[]]+(![]+[])[+!+[]]+(![]+[])[!+[]+!+[]]+([![]]+[][[]])[+!+[]+[+[]]]+([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(![]+[])[!+[]+!+[]+!+[]]]()[+!+[]+[+[]]])()[([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+([][[]]+[])[+!+[]]+(![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+[]]+([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+(!![]+[])[+!+[]]]((![]+[+[]])[([![]]+[][[]])[+!+[]+[+[]]]+(!![]+[])[+[]]+(![]+[])[+!+[]]+(![]+[])[!+[]+!+[]]+([![]]+[][[]])[+!+[]+[+[]]]+([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(![]+[])[!+[]+!+[]+!+[]]]()[+!+[]+[+[]]])+[])[+!+[]]+[!+[]+!+[]+!+[]+!+[]]+[!+[]+!+[]]+([]+[])[(![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+([][[]]+[])[+!+[]]+(!![]+[])[+[]]+([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+(!![]+[])[+!+[]]]()[+!+[]+[!+[]+!+[]]])()";function N00dles(){eval(n00dlePower)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var a,r=n(0),i=n.n(r),o=n(1328),s=n(8),l=n(28),c=n(347);function f(){const e=l.b.Player(),[t,n]=Object(r.useState)(a.None);if(t===a.None)return i.a.createElement(i.a.Fragment,null,i.a.createElement(s.a,{onClick:function(){0===e.sourceFileLvl(1)?c.a.emit("This machine is broken."):n(a.Megabyteburner2000)}},"Megabyte burner 2000"));let f=i.a.createElement(i.a.Fragment,null);switch(t){case a.Megabyteburner2000:f=i.a.createElement(o.a,null)}return i.a.createElement(i.a.Fragment,null,i.a.createElement(s.a,{onClick:()=>n(a.None)},"Back"),f)}!function(e){e[e.None=0]="None",e[e.Megabyteburner2000=1]="Megabyteburner2000"}(a||(a={}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var a=n(0),r=n.n(a),i=n(1),o=n(28),s=n(109);const l={width:"1060px",height:"800px",border:"0px"};function c(){const e=o.b.Player();Object(a.useEffect)(()=>{window.addEventListener("message",(function(t){t.isTrusted&&"https://bitburner-official.github.io"==t.origin&&t.data&&e.giveExploit(s.a.TrueRecursion)}))});const t=r.a.createElement(r.a.Fragment,null,r.a.createElement(i.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}}," "),r.a.createElement(i.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}}," ,'\" \"', .-. "),r.a.createElement(i.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}}," / \\ ( ) "),r.a.createElement(i.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}}," | | .-. '-' .-. "),r.a.createElement(i.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}}," \\ / ( ) ( )"),r.a.createElement(i.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}}," '.___.' '-' .-. '-'"),r.a.createElement(i.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}}," ||| ( ) "),r.a.createElement(i.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}}," ||| '-' "));return r.a.createElement(r.a.Fragment,null,r.a.createElement("div",{style:{width:"1060px",height:"800px",padding:"0",overflow:"hidden",borderColor:"white",borderStyle:"solid",borderWidth:"5px"}},r.a.createElement("iframe",{src:"https://bitburner-official.github.io/bitburner-legacy/",style:l})),r.a.createElement("div",{style:{width:"1060px",borderColor:"white",borderStyle:"solid",borderWidth:"5px"}},t))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return y}));var a=n(0),r=n.n(a),i=n(1),o=n(8),s=n(1330),l=n(1331),c=n(1333),f=n(227),u=n(20),m=n(28),h=n(1334),d=n(6),p=n(18);function g(e){const[t,n]=Object(a.useState)(!1),i=m.b.Player(),s=Object(f.a)(e.ram);return r.a.createElement(r.a.Fragment,null,r.a.createElement(o.a,{onClick:()=>n(!0),disabled:!i.canAfford(s)},"Purchase ",d.a.formatRAM(e.ram)," Server - ",r.a.createElement(u.a,{money:s,player:i})),r.a.createElement(h.a,{open:t,onClose:()=>n(!1),ram:e.ram,cost:s,rerender:e.rerender}))}function y(e){const t=m.b.Player(),n=Object(a.useState)(!1)[1];function o(){n(e=>!e)}Object(a.useEffect)(()=>{const e=setInterval(o,1e3);return()=>clearInterval(e)},[]);const f=[];for(let t=e.loc.techVendorMinRam;t<=e.loc.techVendorMaxRam;t*=2)f.push(r.a.createElement(g,{key:t,ram:t,rerender:o}));return r.a.createElement(r.a.Fragment,null,r.a.createElement("br",null),r.a.createElement(p.a,{sx:{display:"grid",width:"fit-content"}},f),r.a.createElement("br",null),r.a.createElement(i.a,null,r.a.createElement("i",null,'"You can order bigger servers via scripts. We don\'t take custom orders in person."')),r.a.createElement("br",null),r.a.createElement(l.a,{p:t,rerender:o}),r.a.createElement("br",null),r.a.createElement(s.a,{p:t,rerender:o}),r.a.createElement("br",null),r.a.createElement(c.a,{p:t,rerender:o}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var a=n(0),r=n.n(a),i=n(8),o=n(19),s=n(1),l=n(12),c=n(227),f=n(20),u=n(6),m=n(270),h=n(21);function d(e){const t=e.p.getHomeComputer();if(t.maxRam>=l.a.HomeComputerMaxRam)return r.a.createElement(i.a,null,"Upgrade 'home' RAM - MAX");const n=e.p.getUpgradeHomeRamCost();const a=1===h.a.HomeComputerRamCost?"":"\\cdot "+h.a.HomeComputerRamCost;return r.a.createElement(o.a,{title:r.a.createElement(m.a,null,`\\(\\large{cost = ram \\cdot 3.2 \\cdot 10^4 \\cdot 1.58^{log_2{(ram)}}} ${a}\\)`)},r.a.createElement("span",null,r.a.createElement("br",null),r.a.createElement(s.a,null,r.a.createElement("i",null,"\"More RAM means more scripts on 'home'\"")),r.a.createElement("br",null),r.a.createElement(i.a,{disabled:!e.p.canAfford(n),onClick:function(){Object(c.d)(e.p),e.rerender()}},"Upgrade 'home' RAM (",u.a.formatRAM(t.maxRam)," -> ",u.a.formatRAM(2*t.maxRam),") - ",r.a.createElement(f.a,{money:n,player:e.p}))))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var a=n(0),r=n.n(a),i=n(8),o=n(1332),s=n(12),l=n(20);function c(e){return e.p.hasTorRouter()?r.a.createElement(i.a,null,"TOR Router - Purchased"):r.a.createElement(i.a,{disabled:!e.p.canAfford(s.a.TorRouterCost),onClick:function(){Object(o.a)(e.p),e.rerender()}},"Purchase TOR router - ",r.a.createElement(l.a,{money:s.a.TorRouterCost,player:e.p}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var a=n(87),r=n(12),i=n(27),o=n(14);function s(e){if(e.hasTorRouter())return void Object(o.a)("You already have a TOR Router!");if(!e.canAfford(r.a.TorRouterCost))return void Object(o.a)("You cannot afford to purchase the TOR router!");e.loseMoney(r.a.TorRouterCost,"other");const t=Object(i.d)(a.a.DarkWeb);if(!t)throw new Error("Dark web is not a server.");e.getHomeComputer().serversOnNetwork.push(t.hostname),t.serversOnNetwork.push(e.getHomeComputer().hostname),Object(o.a)("You have purchased a TOR router!<br>You now have access to the dark web from your home computer.<br>Use the scan/scan-analyze commands to search for the dark web connection.")}},function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var a=n(0),r=n.n(a),i=n(8),o=n(19),s=n(1),l=n(20),c=n(270);function f(e){const t=e.p.getHomeComputer(),n=t.cpuCores>=8;if(n)return r.a.createElement(i.a,null,"Upgrade 'home' cores - MAX");const a=e.p.getUpgradeHomeCoresCost();return r.a.createElement(o.a,{title:r.a.createElement(c.a,null,"\\(\\large{cost = 10^9 \\cdot 7.5 ^{\\text{cores}}}\\)")},r.a.createElement("span",null,r.a.createElement("br",null),r.a.createElement(s.a,null,r.a.createElement("i",null,"\"Cores increase the effectiveness of grow() and weaken() on 'home'\"")),r.a.createElement("br",null),r.a.createElement(i.a,{disabled:!e.p.canAfford(a),onClick:function(){n||e.p.canAfford(a)&&(e.p.loseMoney(a,"servers"),t.cpuCores++,e.rerender())}},"Upgrade 'home' cores (",t.cpuCores," -> ",t.cpuCores+1,") - ",r.a.createElement(l.a,{money:a,player:e.p}))))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var a=n(0),r=n.n(a),i=n(227),o=n(6),s=n(20),l=n(37),c=n(28),f=n(1),u=n(75),m=n(8),h=n(25);function d(e){const t=c.b.Player(),[n,d]=Object(a.useState)("");function p(){Object(i.e)(n,e.ram,e.cost,t),e.onClose()}return r.a.createElement(l.a,{open:e.open,onClose:e.onClose},r.a.createElement(f.a,null,"Would you like to purchase a new server with ",o.a.formatRAM(e.ram)," of RAM for"," ",r.a.createElement(s.a,{money:e.cost,player:t}),"?"),r.a.createElement("br",null),r.a.createElement("br",null),r.a.createElement(f.a,null," Please enter the server hostname below:"),r.a.createElement("br",null),r.a.createElement(u.a,{autoFocus:!0,onKeyUp:function(e){e.key===h.a.ENTER&&p()},onChange:function(e){d(e.target.value)},type:"text",placeholder:"Unique Hostname",InputProps:{endAdornment:r.a.createElement(m.a,{onClick:p,disabled:!t.canAfford(e.cost)||""===n},"Buy")}}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var a=n(0),r=n.n(a),i=n(12),o=n(20),s=n(37),l=n(28),c=n(1),f=n(8);function u(e){const t=l.b.Player(),n=i.a.TravelCost;return r.a.createElement(s.a,{open:e.open,onClose:e.onClose},r.a.createElement(c.a,null,"Would you like to travel to ",e.city,"? The trip will cost ",r.a.createElement(o.a,{money:n,player:t}),"."),r.a.createElement("br",null),r.a.createElement("br",null),r.a.createElement(f.a,{onClick:function(){e.travel()}},r.a.createElement(c.a,null,"Travel")))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var a=n(0),r=n(19),i=n(8),o=n(20),s=n(28),l=n(18),c=n(88),f=n(333);function u(e){const t=s.b.Player(),n=s.b.Router();function u(a){t.startWork(new c.b({classType:a,location:e.loc.name,singularity:!1})),t.startFocusing(),n.toWork()}const m=Object(f.b)(c.c[c.a.DataStructures],e.loc),h=Object(f.b)(c.c[c.a.Networks],e.loc),d=Object(f.b)(c.c[c.a.Algorithms],e.loc),p=Object(f.b)(c.c[c.a.Management],e.loc),g=Object(f.b)(c.c[c.a.Leadership],e.loc);return a.createElement(l.a,{sx:{display:"grid",width:"fit-content"}},a.createElement(r.a,{title:"Gain hacking experience!"},a.createElement(i.a,{onClick:()=>u(c.a.StudyComputerScience)},"Study Computer Science (free)")),a.createElement(r.a,{title:"Gain hacking experience!"},a.createElement(i.a,{onClick:()=>u(c.a.DataStructures)},"Take Data Structures course (",a.createElement(o.a,{money:m,player:t})," / sec)")),a.createElement(r.a,{title:"Gain hacking experience!"},a.createElement(i.a,{onClick:()=>u(c.a.Networks)},"Take Networks course (",a.createElement(o.a,{money:h,player:t})," / sec)")),a.createElement(r.a,{title:"Gain hacking experience!"},a.createElement(i.a,{onClick:()=>u(c.a.Algorithms)},"Take Algorithms course (",a.createElement(o.a,{money:d,player:t})," / sec)")),a.createElement(r.a,{title:"Gain charisma experience!"},a.createElement(i.a,{onClick:()=>u(c.a.Management)},"Take Management course (",a.createElement(o.a,{money:p,player:t})," / sec)")),a.createElement(r.a,{title:"Gain charisma experience!"},a.createElement(i.a,{onClick:()=>u(c.a.Leadership)},"Take Leadership course (",a.createElement(o.a,{money:g,player:t})," / sec)")))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var a,r=n(0),i=n.n(r),o=n(8),s=n(797),l=n(1339),c=n(1340),f=n(1341),u=n(18);function m(e){const[t,n]=Object(r.useState)(a.None);function m(e){n(e)}return i.a.createElement(i.a.Fragment,null,t===a.None&&i.a.createElement(u.a,{sx:{display:"grid",width:"fit-content"}},i.a.createElement(o.a,{onClick:()=>m(a.Coin)},"Play coin flip"),i.a.createElement(o.a,{onClick:()=>m(a.Slots)},"Play slots"),i.a.createElement(o.a,{onClick:()=>m(a.Roulette)},"Play roulette"),i.a.createElement(o.a,{onClick:()=>m(a.Blackjack)},"Play blackjack (",s.b," decks)")),t!==a.None&&i.a.createElement(i.a.Fragment,null,i.a.createElement(o.a,{onClick:()=>m(a.None)},"Stop playing"),t===a.Coin&&i.a.createElement(l.a,{p:e.p}),t===a.Slots&&i.a.createElement(f.a,{p:e.p}),t===a.Roulette&&i.a.createElement(c.a,{p:e.p}),t===a.Blackjack&&i.a.createElement(s.a,{p:e.p})))}!function(e){e.None="none",e.Coin="coin",e.Slots="slots",e.Roulette="roulette",e.Blackjack="blackjack"}(a||(a={}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var a=n(264),r=n(113);class i{constructor(e=1){var t,n,a;a=[],(n="cards")in(t=this)?Object.defineProperty(t,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[n]=a,this.numDecks=e,this.reset()}shuffle(){this.cards=Object(r.shuffle)(this.cards)}drawCard(){if(0==this.cards.length)throw new Error("Tried to draw card from empty deck");return this.cards.shift()}safeDrawCard(){return 0===this.cards.length&&this.reset(),this.drawCard()}reset(){this.cards=[];for(let e=1;e<=13;++e)for(let t=0;t<this.numDecks;++t)this.cards.push(new a.a(e,a.b.Clubs)),this.cards.push(new a.a(e,a.b.Diamonds)),this.cards.push(new a.a(e,a.b.Hearts)),this.cards.push(new a.a(e,a.b.Spades));this.shuffle()}size(){return this.cards.length}isEmpty(){return 0===this.cards.length}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var a=n(0),r=n.n(a),i=n(320),o=n(214),s=n(86),l=n(1),c=n(75),f=n(8),u=n(18);function m(e){const[t,n]=Object(a.useState)(1e3),[m,h]=Object(a.useState)(r.a.createElement("span",null," ")),[d,p]=Object(a.useState)(""),[g,y]=Object(a.useState)(!1);function b(n){if(Object(o.b)(e.p))return;let a;a=i.a.random()<.5?"H":"T";const s=n===a;h(r.a.createElement(u.a,{display:"flex"},r.a.createElement(l.a,{sx:{lineHeight:"1em",whiteSpace:"pre"},color:s?"primary":"error"},a))),p(s?" win!":"lose!"),y(!0),setTimeout(()=>y(!1),250),s?Object(o.c)(e.p,t):Object(o.c)(e.p,-t),Object(o.b)(e.p)}return r.a.createElement(r.a.Fragment,null,r.a.createElement(l.a,null,"Result:")," ",m,r.a.createElement(u.a,{display:"flex",alignItems:"center"},r.a.createElement(c.a,{type:"number",onChange:function(e){let t=parseInt(e.currentTarget.value);isNaN(t)&&(t=0),t>1e4&&(t=1e4),t<0&&(t=0),n(t)},InputProps:{endAdornment:r.a.createElement(r.a.Fragment,null,r.a.createElement(f.a,{onClick:Object(s.a)(()=>b("H")),disabled:g},"Head!"),r.a.createElement(f.a,{onClick:Object(s.a)(()=>b("T")),disabled:g},"Tail!"))}})),r.a.createElement(l.a,{variant:"h3"},d))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var a=n(0),r=n.n(a),i=n(20),o=n(214),s=n(320),l=n(86),c=n(1),f=n(8),u=n(75);const m=[1,3,5,7,9,12,14,16,18,19,21,23,25,27,30,32,34,36],h={Red:{match:e=>m.includes(e),payout:1},Black:{match:e=>0!==e&&!m.includes(e),payout:1},Odd:{match:e=>0!==e&&e%2==1,payout:1},Even:{match:e=>0!==e&&e%2==0,payout:1},High:{match:e=>0!==e&&e>18,payout:1},Low:{match:e=>0!==e&&e<19,payout:1},Third1:{match:e=>0!==e&&e<=12,payout:2},Third2:{match:e=>0!==e&&(e>=13&&e<=24),payout:2},Third3:{match:e=>0!==e&&e>=25,payout:2}};function d(e){return{match:t=>e===t,payout:36}}function p(e){const[t]=Object(a.useState)(new s.c((new Date).getTime())),[n,m]=Object(a.useState)(1e3),[p,g]=Object(a.useState)(!0),[y,b]=Object(a.useState)("waiting"),[E,v]=Object(a.useState)(0),[k,w]=Object(a.useState)(!0);function _(){k||v(Math.floor(37*Math.random()))}function S(a){Object(o.b)(e.p)||(g(!1),w(!1),b("playing"),setTimeout(()=>{let s=Math.floor(37*t.random()),l=r.a.createElement(r.a.Fragment,null),c=0,f=a.match(s);if(f&&Math.random()>.9)for(;f;)s=Math.floor(37*t.random()),f=a.match(s);f?(c=n*a.payout,l=r.a.createElement(r.a.Fragment,null,"won ",r.a.createElement(i.a,{money:c}))):(c=-n,l=r.a.createElement(r.a.Fragment,null,"lost ",r.a.createElement(i.a,{money:-c}))),Object(o.c)(e.p,c),g(!0),w(!0),b(l),v(s),Object(o.b)(e.p)},1600))}return Object(a.useEffect)(()=>{const e=window.setInterval(_,50);return()=>clearInterval(e)}),r.a.createElement(r.a.Fragment,null,r.a.createElement(c.a,{variant:"h4"},function(){if(0===E)return"0";const e=function(e){return[1,3,5,7,9,12,14,16,18,19,21,23,25,27,30,32,34,36].includes(e)}(E)?"R":"B";return`${E}${e}`}()),r.a.createElement(u.a,{type:"number",onChange:function(e){let t=parseInt(e.currentTarget.value);isNaN(t)&&(t=0),t>1e7&&(t=1e7),t<0&&(t=0),m(t)},placeholder:"Amount to play",disabled:!p}),r.a.createElement(c.a,{variant:"h4"},y),r.a.createElement("table",null,r.a.createElement("tbody",null,r.a.createElement("tr",null,r.a.createElement("td",null,r.a.createElement(f.a,{disabled:!p,onClick:Object(l.a)(()=>S(d(3)))},"3")),r.a.createElement("td",null,r.a.createElement(f.a,{disabled:!p,onClick:Object(l.a)(()=>S(d(6)))},"6")),r.a.createElement("td",null,r.a.createElement(f.a,{disabled:!p,onClick:Object(l.a)(()=>S(d(9)))},"9")),r.a.createElement("td",null,r.a.createElement(f.a,{disabled:!p,onClick:Object(l.a)(()=>S(d(12)))},"12")),r.a.createElement("td",null,r.a.createElement(f.a,{disabled:!p,onClick:Object(l.a)(()=>S(d(15)))},"15")),r.a.createElement("td",null,r.a.createElement(f.a,{disabled:!p,onClick:Object(l.a)(()=>S(d(18)))},"18")),r.a.createElement("td",null,r.a.createElement(f.a,{disabled:!p,onClick:Object(l.a)(()=>S(d(21)))},"21")),r.a.createElement("td",null,r.a.createElement(f.a,{disabled:!p,onClick:Object(l.a)(()=>S(d(24)))},"24")),r.a.createElement("td",null,r.a.createElement(f.a,{disabled:!p,onClick:Object(l.a)(()=>S(d(27)))},"27")),r.a.createElement("td",null,r.a.createElement(f.a,{disabled:!p,onClick:Object(l.a)(()=>S(d(30)))},"30")),r.a.createElement("td",null,r.a.createElement(f.a,{disabled:!p,onClick:Object(l.a)(()=>S(d(33)))},"33")),r.a.createElement("td",null,r.a.createElement(f.a,{disabled:!p,onClick:Object(l.a)(()=>S(d(36)))},"36"))),r.a.createElement("tr",null,r.a.createElement("td",null,r.a.createElement(f.a,{disabled:!p,onClick:Object(l.a)(()=>S(d(2)))},"2")),r.a.createElement("td",null,r.a.createElement(f.a,{disabled:!p,onClick:Object(l.a)(()=>S(d(5)))},"5")),r.a.createElement("td",null,r.a.createElement(f.a,{disabled:!p,onClick:Object(l.a)(()=>S(d(8)))},"8")),r.a.createElement("td",null,r.a.createElement(f.a,{disabled:!p,onClick:Object(l.a)(()=>S(d(11)))},"11")),r.a.createElement("td",null,r.a.createElement(f.a,{disabled:!p,onClick:Object(l.a)(()=>S(d(14)))},"14")),r.a.createElement("td",null,r.a.createElement(f.a,{disabled:!p,onClick:Object(l.a)(()=>S(d(17)))},"17")),r.a.createElement("td",null,r.a.createElement(f.a,{disabled:!p,onClick:Object(l.a)(()=>S(d(20)))},"20")),r.a.createElement("td",null,r.a.createElement(f.a,{disabled:!p,onClick:Object(l.a)(()=>S(d(23)))},"23")),r.a.createElement("td",null,r.a.createElement(f.a,{disabled:!p,onClick:Object(l.a)(()=>S(d(26)))},"26")),r.a.createElement("td",null,r.a.createElement(f.a,{disabled:!p,onClick:Object(l.a)(()=>S(d(29)))},"29")),r.a.createElement("td",null,r.a.createElement(f.a,{disabled:!p,onClick:Object(l.a)(()=>S(d(32)))},"32")),r.a.createElement("td",null,r.a.createElement(f.a,{disabled:!p,onClick:Object(l.a)(()=>S(d(35)))},"35"))),r.a.createElement("tr",null,r.a.createElement("td",null,r.a.createElement(f.a,{disabled:!p,onClick:Object(l.a)(()=>S(d(1)))},"1")),r.a.createElement("td",null,r.a.createElement(f.a,{disabled:!p,onClick:Object(l.a)(()=>S(d(4)))},"4")),r.a.createElement("td",null,r.a.createElement(f.a,{disabled:!p,onClick:Object(l.a)(()=>S(d(7)))},"7")),r.a.createElement("td",null,r.a.createElement(f.a,{disabled:!p,onClick:Object(l.a)(()=>S(d(10)))},"10")),r.a.createElement("td",null,r.a.createElement(f.a,{disabled:!p,onClick:Object(l.a)(()=>S(d(13)))},"13")),r.a.createElement("td",null,r.a.createElement(f.a,{disabled:!p,onClick:Object(l.a)(()=>S(d(16)))},"16")),r.a.createElement("td",null,r.a.createElement(f.a,{disabled:!p,onClick:Object(l.a)(()=>S(d(19)))},"19")),r.a.createElement("td",null,r.a.createElement(f.a,{disabled:!p,onClick:Object(l.a)(()=>S(d(22)))},"22")),r.a.createElement("td",null,r.a.createElement(f.a,{disabled:!p,onClick:Object(l.a)(()=>S(d(25)))},"25")),r.a.createElement("td",null,r.a.createElement(f.a,{disabled:!p,onClick:Object(l.a)(()=>S(d(28)))},"28")),r.a.createElement("td",null,r.a.createElement(f.a,{disabled:!p,onClick:Object(l.a)(()=>S(d(31)))},"31")),r.a.createElement("td",null,r.a.createElement(f.a,{disabled:!p,onClick:Object(l.a)(()=>S(d(34)))},"34"))),r.a.createElement("tr",null,r.a.createElement("td",{colSpan:4},r.a.createElement(f.a,{disabled:!p,onClick:Object(l.a)(()=>S(h.Third1))},"1 to 12")),r.a.createElement("td",{colSpan:4},r.a.createElement(f.a,{disabled:!p,onClick:Object(l.a)(()=>S(h.Third2))},"13 to 24")),r.a.createElement("td",{colSpan:4},r.a.createElement(f.a,{disabled:!p,onClick:Object(l.a)(()=>S(h.Third3))},"25 to 36"))),r.a.createElement("tr",null,r.a.createElement("td",{colSpan:2},r.a.createElement(f.a,{disabled:!p,onClick:Object(l.a)(()=>S(h.Red))},"Red")),r.a.createElement("td",{colSpan:2},r.a.createElement(f.a,{disabled:!p,onClick:Object(l.a)(()=>S(h.Black))},"Black")),r.a.createElement("td",{colSpan:2},r.a.createElement(f.a,{disabled:!p,onClick:Object(l.a)(()=>S(h.Odd))},"Odd")),r.a.createElement("td",{colSpan:2},r.a.createElement(f.a,{disabled:!p,onClick:Object(l.a)(()=>S(h.Even))},"Even")),r.a.createElement("td",{colSpan:2},r.a.createElement(f.a,{disabled:!p,onClick:Object(l.a)(()=>S(h.High))},"High")),r.a.createElement("td",{colSpan:2},r.a.createElement(f.a,{disabled:!p,onClick:Object(l.a)(()=>S(h.Low))},"Low"))),r.a.createElement("tr",null,r.a.createElement("td",null,r.a.createElement(f.a,{disabled:!p,onClick:Object(l.a)(()=>S(d(0)))},"0"))))))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var a=n(0),r=n.n(a),i=n(20),o=n(320),s=n(214),l=n(86),c=n(1),f=n(75),u=n(8);const m=["D","C","$","?","♥","A","C","B","C","E","B","E","C","*","D","♥","B","A","A","A","C","A","D","B","E","?","D","*","@","♥","B","E","?"];function h(e,t){switch(e){case"$":return[20,200,1e3][t];case"@":return[8,80,400][t];case"♥":case"?":return[6,20,150][t];case"D":case"E":return[1,8,30][t];default:return[1,5,20][t]}}const d=[[[0,0],[0,1],[0,2],[0,3],[0,4]],[[1,0],[1,1],[1,2],[1,3],[1,4]],[[2,0],[2,1],[2,2],[2,3],[2,4]],[[2,0],[1,1],[0,2],[1,3],[2,4]],[[0,0],[1,1],[2,2],[1,3],[0,4]],[[0,0],[1,1],[1,2],[1,3],[0,4]],[[2,0],[1,1],[1,2],[1,3],[2,4]],[[1,0],[0,1],[0,2],[0,3],[1,4]],[[1,0],[2,1],[2,2],[2,3],[1,4]]];function p(e){const[t]=Object(a.useState)(new o.c(e.p.totalPlaytime)),[n,p]=Object(a.useState)([0,0,0,0,0]),[g,y]=Object(a.useState)([0,0,0,0,0]),[b,E]=Object(a.useState)(1e3),[v,k]=Object(a.useState)(!0),[w,_]=Object(a.useState)("waiting");function S(){let t=!1;const a=n.slice();for(let e=0;e<a.length;e++)(a[e]!==g[e]||t)&&(a[e]=a[e]-1>=0?a[e]-1:m.length-1,t=!0);p(a),t&&a.every((e,t)=>e===g[t])&&function(t){const n=function(e){const n=[];for(const a of e)n.push(t[a[0]][a[1]]);return n},a=function(e){let t=1;for(let n=1;n<e.length&&e[n]===e[n-1];n++)t++;return t};let o=-b;for(const t of d){const r=n(t),i=a(r);if(i<3)continue;const l=h(r[0],i-3);o+=b*l,Object(s.c)(e.p,b*l)}if(_(r.a.createElement(r.a.Fragment,null,o>0?"gained":"lost"," ",r.a.createElement(i.a,{money:Math.abs(o)}))),k(!0),Object(s.b)(e.p));}(C(a,m))}function C(e,t){return[[t[(e[0]+t.length-1)%t.length],t[(e[1]+t.length-1)%t.length],t[(e[2]+t.length-1)%t.length],t[(e[3]+t.length-1)%t.length],t[(e[4]+t.length-1)%t.length]],[t[e[0]],t[e[1]],t[e[2]],t[e[3]],t[e[4]]],[t[(e[0]+1)%t.length],t[(e[1]+1)%t.length],t[(e[2]+1)%t.length],t[(e[3]+1)%t.length],t[(e[4]+1)%t.length]]]}function x(){y([Math.floor(t.random()*m.length),Math.floor(t.random()*m.length),Math.floor(t.random()*m.length),Math.floor(t.random()*m.length),Math.floor(t.random()*m.length)])}Object(a.useEffect)(()=>{const e=window.setInterval(S,50);return()=>clearInterval(e)});const L=C(n,m);return r.a.createElement(r.a.Fragment,null,r.a.createElement(c.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}},"+———————————————————————+"),r.a.createElement(c.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}},"| | ",L[0][0]," | ",L[0][1]," | ",L[0][2]," | ",L[0][3]," | ",L[0][4]," | |"),r.a.createElement(c.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}},"| | | | | | | |"),r.a.createElement(c.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}},"| | ",m[n[0]]," | ",m[n[1]]," | ",m[n[2]]," | ",m[n[3]]," | ",m[n[4]]," | |"),r.a.createElement(c.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}},"| | | | | | | |"),r.a.createElement(c.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}},"| | ",m[(n[0]+1)%m.length]," | ",m[(n[1]+1)%m.length]," | ",m[(n[2]+1)%m.length]," | ",m[(n[3]+1)%m.length]," | ",m[(n[4]+1)%m.length]," | |"),r.a.createElement(c.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}},"+———————————————————————+"),r.a.createElement(f.a,{type:"number",onChange:function(e){let t=parseInt(e.currentTarget.value);isNaN(t)&&(t=0),t>1e6&&(t=1e6),t<0&&(t=0),E(t)},placeholder:"Amount to play",disabled:!v,InputProps:{endAdornment:r.a.createElement(u.a,{onClick:Object(l.a)((function(){Object(s.b)(e.p)||(_("playing"),Object(s.c)(e.p,-b),v&&(y([-1,-1,-1,-1,-1]),k(!1),setTimeout(x,2e3*t.random()+1e3)))})),disabled:!v},"Spin!")}}),r.a.createElement(c.a,{variant:"h4"},w),r.a.createElement(c.a,null,"Pay lines"),r.a.createElement(c.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}},"----- ····· ·····"),r.a.createElement(c.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}},"····· ----- ·····"),r.a.createElement(c.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}},"····· ····· -----"),r.a.createElement("br",null),r.a.createElement(c.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}},"··^·· \\···/ \\···/"),r.a.createElement(c.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}},"·/·\\· ·\\·/· ·---·"),r.a.createElement(c.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}},"/···\\ ··v·· ·····"),r.a.createElement("br",null),r.a.createElement(c.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}},"····· ·---· ·····"),r.a.createElement(c.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}},"·---· /···\\ \\···/"),r.a.createElement(c.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}},"/···\\ ····· ·---·"))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return E}));var a=n(0),r=n(156),i=n(9),o=n(181),s=n(5),l=n(28),c=n(1),f=n(8),u=n(51),m=n(118),h=n(142);const d=Object(m.a)(e=>Object(h.a)({location:{color:e.colors.white,whiteSpace:"nowrap",margin:"0px",padding:"0px",cursor:"pointer"}}));function p(e,t){t.name===i.a.TravelAgency?e.toTravel():t.name===i.a.WorldStockExchange?e.toStockMarket():e.toLocation(t)}function g(e){e.types;const t=l.b.Router(),n=d();let r="X";return e.types.includes(u.a.Company)&&(r="C"),e.types.includes(u.a.Gym)&&(r="G"),e.types.includes(u.a.Hospital)&&(r="H"),e.types.includes(u.a.Slums)&&(r="S"),e.types.includes(u.a.StockMarket)&&(r="$"),e.types.includes(u.a.TechVendor)&&(r="T"),e.types.includes(u.a.TravelAgency)&&(r="T"),e.types.includes(u.a.University)&&(r="U"),e.types.includes(u.a.Casino)&&(r="¢"),e.types.includes(u.a.Special)&&(r="?"),e?a.createElement("span",{"aria-label":e.name,key:e.name,className:n.location,onClick:()=>p(t,e)},a.createElement("b",null,r)):a.createElement("span",null,"*")}function y(e){const t=/[A-Z]/g,n={A:0,B:1,C:2,D:3,E:4,F:5,G:6,H:7,I:8,J:9,K:10,L:11,M:12,N:13,O:14,P:15,Q:16,R:17,S:18,T:19,U:20,V:21,W:22,X:23,Y:24,Z:25},r=a=>{const r=[],i=[];let s;for(;null!==(s=t.exec(a));)i.push(s);if(0===i.length)return r.push(a),r;for(let t=0;t<i.length;t++){const s=0===t?0:i[t-1].index+1,l=i[t].index;r.push(a.slice(s,l));const c=n[a[i[t].index]];r.push(g(o.a[e.city.locations[c]]))}return r.push(a.slice(i[i.length-1].index+1)),r},i=[],s=e.city.asciiArt.split("\n");let l=0;for(const e of s)i.push(a.createElement(c.a,{key:l,sx:{lineHeight:"1em",whiteSpace:"pre"}},r(e))),l++;return a.createElement(a.Fragment,null,i)}function b(e){const t=l.b.Router(),n=e.city.locations.map(e=>a.createElement(a.Fragment,{key:e},a.createElement(f.a,{onClick:()=>p(t,o.a[e])},e),a.createElement("br",null)));return a.createElement(a.Fragment,null,n)}function E(){const e=l.b.Player(),t=r.a[e.city];return a.createElement(a.Fragment,null,a.createElement(c.a,null,t.name),s.a.DisableASCIIArt?a.createElement(b,{city:t}):a.createElement(y,{city:t}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return b}));var a=n(0),r=n.n(a),i=n(37),o=n(8),s=n(18),l=n(1),c=n(130),f=n(281),u=n(71),m=n(75),h=n(1345),d=n.n(h),p=n(480),g=n.n(p),y=n(1344);function b(e){const[t,n]=Object(a.useState)(e.options.theme),[h,p]=Object(a.useState)(e.options.insertSpaces),[b,E]=Object(a.useState)(e.options.fontSize),[v,k]=Object(a.useState)(e.options.wordWrap),[w,_]=Object(a.useState)(e.options.vim),[S,C]=Object(a.useState)(!1);return r.a.createElement(i.a,{open:e.open,onClose:e.onClose},r.a.createElement(y.a,{open:S,onClose:()=>C(!1)}),r.a.createElement(s.a,{display:"flex",flexDirection:"row",alignItems:"center"},r.a.createElement(l.a,null,"Theme: "),r.a.createElement(c.a,{onChange:e=>n(e.target.value),value:t},r.a.createElement(u.a,{value:"monokai"},"monokai"),r.a.createElement(u.a,{value:"solarized-dark"},"solarized-dark"),r.a.createElement(u.a,{value:"solarized-light"},"solarized-light"),r.a.createElement(u.a,{value:"vs-dark"},"dark"),r.a.createElement(u.a,{value:"light"},"light"),r.a.createElement(u.a,{value:"dracula"},"dracula"),r.a.createElement(u.a,{value:"one-dark"},"one-dark"),r.a.createElement(u.a,{value:"customTheme"},"Custom theme")),r.a.createElement(o.a,{onClick:()=>C(!0),sx:{mx:1},startIcon:r.a.createElement(d.a,null)},"Edit custom theme")),r.a.createElement(s.a,{display:"flex",flexDirection:"row",alignItems:"center"},r.a.createElement(l.a,null,"Use whitespace over tabs: "),r.a.createElement(f.a,{onChange:e=>p(e.target.checked),checked:h})),r.a.createElement(s.a,{display:"flex",flexDirection:"row",alignItems:"center"},r.a.createElement(l.a,null,"Word Wrap: "),r.a.createElement(c.a,{onChange:e=>k(e.target.value),value:v},r.a.createElement(u.a,{value:"off"},"Off"),r.a.createElement(u.a,{value:"on"},"On"),r.a.createElement(u.a,{value:"bounded"},"Bounded"),r.a.createElement(u.a,{value:"wordWrapColumn"},"Word Wrap Column"))),r.a.createElement(s.a,{display:"flex",flexDirection:"row",alignItems:"center"},r.a.createElement(l.a,null,"Enable vim mode: "),r.a.createElement(f.a,{onChange:e=>_(e.target.checked),checked:w})),r.a.createElement(s.a,{display:"flex",flexDirection:"row",alignItems:"center"},r.a.createElement(m.a,{type:"number",label:"Font size",value:b,onChange:function(e){const t=parseFloat(e.target.value);isNaN(t)||E(t)}})),r.a.createElement("br",null),r.a.createElement(o.a,{onClick:function(){e.save({theme:t,insertSpaces:h,fontSize:b,wordWrap:v,vim:w}),e.onClose()},startIcon:r.a.createElement(g.a,null)},"Save"))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return _}));var a=n(1493),r=n(1517),i=n(1851),o=n(19),s=n(75),l=n(1),c=n(43),f=n(18),u=n(8),m=n(112),h=n(113),d=n.n(h),p=n(635),g=n(0),y=n.n(g),b=n(5),E=n(37),v=n(149),k=n(125);function w({label:e,themePath:t,onColorChange:n,color:r,defaultColor:i}){return void 0===r&&(console.error(`color ${t} was undefined, reverting to default`),r=i),y.a.createElement(y.a.Fragment,null,y.a.createElement(o.a,{title:e},y.a.createElement("span",null,y.a.createElement(s.a,{label:t,value:"#"+r,sx:{display:"block",my:1},InputProps:{startAdornment:y.a.createElement(y.a.Fragment,null,y.a.createElement(p.a,{hideTextfield:!0,deferred:!0,value:"#"+r,onChange:e=>n(t,e.hex),disableAlpha:!0})),endAdornment:y.a.createElement(y.a.Fragment,null,y.a.createElement(m.a,{onClick:()=>n(t,i)},y.a.createElement(a.a,{color:"primary"})))}}))))}function _(e){const t=Object(g.useState)(!1)[1];function n(){t(e=>!e)}const[a,o]=Object(g.useState)(JSON.parse(JSON.stringify(b.a.EditorTheme)));function m(e,t){o(d.a.set(a,e,t)),n()}return y.a.createElement(E.a,{open:e.open,onClose:()=>{o(b.a.EditorTheme),e.onClose()}},y.a.createElement(l.a,{variant:"h4"},"Customize Editor theme"),y.a.createElement(l.a,null,"Hover over input boxes for more information"),y.a.createElement(c.a,{sx:{p:1,my:1}},y.a.createElement(v.a,{checked:"vs"===a.base,onChange:e=>{o(d.a.set(a,"base",e?"vs":"vs-dark")),n()},text:"Use light theme as base",tooltip:y.a.createElement(y.a.Fragment,null,"If enabled, the ",y.a.createElement("code",null,"vs")," light theme will be used as the theme base, otherwise,"," ",y.a.createElement("code",null,"vs-dark")," will be used.")}),y.a.createElement(f.a,{display:"grid",sx:{gridTemplateColumns:"1fr 1fr",width:"fit-content",gap:1}},y.a.createElement(f.a,null,y.a.createElement(l.a,{variant:"h6"},"UI"),y.a.createElement(w,{label:"Background color",themePath:"common.bg",onColorChange:m,color:a.common.bg,defaultColor:k.a.common.bg}),y.a.createElement(w,{label:"Current line and minimap background color",themePath:"ui.line",onColorChange:m,color:a.ui.line,defaultColor:k.a.ui.line}),y.a.createElement(w,{label:"Base text color",themePath:"common.fg",onColorChange:m,color:a.common.fg,defaultColor:k.a.common.fg}),y.a.createElement(w,{label:"Popup background color",themePath:"ui.panel.bg",onColorChange:m,color:a.ui.panel.bg,defaultColor:k.a.ui.panel.bg}),y.a.createElement(w,{label:"Background color for selected item in popup",themePath:"ui.panel.selected",onColorChange:m,color:a.ui.panel.selected,defaultColor:k.a.ui.panel.selected}),y.a.createElement(w,{label:"Popup border color",themePath:"ui.panel.border",onColorChange:m,color:a.ui.panel.border,defaultColor:k.a.ui.panel.border}),y.a.createElement(w,{label:"Background color of highlighted text",themePath:"ui.selection.bg",onColorChange:m,color:a.ui.selection.bg,defaultColor:k.a.ui.selection.bg})),y.a.createElement(f.a,null,y.a.createElement(l.a,{variant:"h6"},"Syntax"),y.a.createElement(w,{label:"Numbers, function names, and other key vars",themePath:"common.accent",onColorChange:m,color:a.common.accent,defaultColor:k.a.common.accent}),y.a.createElement(w,{label:"Keywords",themePath:"syntax.keyword",onColorChange:m,color:a.syntax.keyword,defaultColor:k.a.syntax.keyword}),y.a.createElement(w,{label:"Strings",themePath:"syntax.string",onColorChange:m,color:a.syntax.string,defaultColor:k.a.syntax.string}),y.a.createElement(w,{label:"Regexp literals as well as escapes within strings",themePath:"syntax.regexp",onColorChange:m,color:a.syntax.regexp,defaultColor:k.a.syntax.regexp}),y.a.createElement(w,{label:"Constants",themePath:"syntax.constant",onColorChange:m,color:a.syntax.constant,defaultColor:k.a.syntax.constant}),y.a.createElement(w,{label:"Entities",themePath:"syntax.entity",onColorChange:m,color:a.syntax.entity,defaultColor:k.a.syntax.entity}),y.a.createElement(w,{label:"'this', 'ns', types, and tags",themePath:"syntax.tag",onColorChange:m,color:a.syntax.tag,defaultColor:k.a.syntax.tag}),y.a.createElement(w,{label:"Netscript functions and constructors",themePath:"syntax.markup",onColorChange:m,color:a.syntax.markup,defaultColor:k.a.syntax.markup}),y.a.createElement(w,{label:"Errors",themePath:"syntax.error",onColorChange:m,color:a.syntax.error,defaultColor:k.a.syntax.error}),y.a.createElement(w,{label:"Comments",themePath:"syntax.comment",onColorChange:m,color:a.syntax.comment,defaultColor:k.a.syntax.comment})))),y.a.createElement(c.a,{sx:{p:1}},y.a.createElement(s.a,{multiline:!0,fullWidth:!0,maxRows:10,label:"import / export theme",value:JSON.stringify(a,void 0,2),onChange:function(e){try{const t=JSON.parse(e.target.value);if("object"!=typeof t)return;o(t)}catch(e){}}}),y.a.createElement(f.a,{sx:{mt:1}},y.a.createElement(u.a,{onClick:()=>{b.a.EditorTheme={...a},e.onClose()},startIcon:y.a.createElement(r.a,null)},"Save"),y.a.createElement(u.a,{onClick:()=>{o(k.a),n()},startIcon:y.a.createElement(i.a,null)},"Reset to default"))))}},,function(e,t,n){"use strict";t.a='/**\n * @public\n */\ntype FilenameOrPID = number | string;\n\n/**\n * @public\n */\ninterface Player {\n hacking: number;\n hp: number;\n max_hp: number;\n strength: number;\n defense: number;\n dexterity: number;\n agility: number;\n charisma: number;\n intelligence: number;\n hacking_exp: number;\n strength_exp: number;\n defense_exp: number;\n dexterity_exp: number;\n agility_exp: number;\n charisma_exp: number;\n mults: Multipliers;\n numPeopleKilled: number;\n money: number;\n city: string;\n location: string;\n companyName: string;\n hasWseAccount: boolean;\n hasTixApiAccess: boolean;\n has4SData: boolean;\n has4SDataTixApi: boolean;\n bitNodeN: number;\n totalPlaytime: number;\n playtimeSinceLastAug: number;\n playtimeSinceLastBitnode: number;\n jobs: any;\n factions: string[];\n tor: boolean;\n hasCorporation: boolean;\n inBladeburner: boolean;\n entropy: number;\n}\n\n/**\n * @public\n */\nexport interface Multipliers {\n hacking_chance: number;\n hacking_speed: number;\n hacking_money: number;\n hacking_grow: number;\n hacking: number;\n hacking_exp: number;\n strength: number;\n strength_exp: number;\n defense: number;\n defense_exp: number;\n dexterity: number;\n dexterity_exp: number;\n agility: number;\n agility_exp: number;\n charisma: number;\n charisma_exp: number;\n hacknet_node_money: number;\n hacknet_node_purchase_cost: number;\n hacknet_node_ram_cost: number;\n hacknet_node_core_cost: number;\n hacknet_node_level_cost: number;\n company_rep: number;\n faction_rep: number;\n work_money: number;\n crime_success: number;\n crime_money: number;\n bladeburner_max_stamina: number;\n bladeburner_stamina_gain: number;\n bladeburner_analysis: number;\n bladeburner_success_chance: number;\n}\n\n/**\n * @public\n */\nexport interface RunningScript {\n /** Arguments the script was called with */\n args: string[];\n /** Filename of the script */\n filename: string;\n /**\n * Script logs as an array. The newest log entries are at the bottom.\n * Timestamps, if enabled, are placed inside `[brackets]` at the start of each line.\n **/\n logs: string[];\n /** Total amount of hacking experience earned from this script when offline */\n offlineExpGained: number;\n /** Total amount of money made by this script when offline */\n offlineMoneyMade: number;\n /** Number of seconds that the script has been running offline */\n offlineRunningTime: number;\n /** Total amount of hacking experience earned from this script when online */\n onlineExpGained: number;\n /** Total amount of money made by this script when online */\n onlineMoneyMade: number;\n /** Number of seconds that this script has been running online */\n onlineRunningTime: number;\n /** Process ID. Must be an integer */\n pid: number;\n /** How much RAM this script uses for ONE thread */\n ramUsage: number;\n /** Hostname of the server on which this script runs */\n server: string;\n /** Number of threads that this script runs with */\n threads: number;\n}\n\n/**\n * @public\n */\nexport interface RecentScript extends RunningScript {\n /** Timestamp of when the script was killed */\n timeOfDeath: Date;\n}\n\n/**\n * Data representing the internal values of a crime.\n * @public\n */\nexport interface CrimeStats {\n /** Number representing the difficulty of the crime. Used for success chance calculations */\n difficulty: number;\n /** Amount of karma lost for successfully committing this crime */\n karma: number;\n /** How many people die as a result of this crime */\n kills: number;\n /** How much money is given */\n money: number;\n /** Name of crime */\n name: string;\n /** Milliseconds it takes to attempt the crime */\n time: number;\n /** Description of the crime activity */\n type: string;\n /** hacking level impact on success change of the crime */\n hacking_success_weight: number;\n /** strength level impact on success change of the crime */\n strength_success_weight: number;\n /** defense level impact on success change of the crime */\n defense_success_weight: number;\n /** dexterity level impact on success change of the crime */\n dexterity_success_weight: number;\n /** agility level impact on success change of the crime */\n agility_success_weight: number;\n /** charisma level impact on success change of the crime */\n charisma_success_weight: number;\n /** hacking exp gained from crime */\n hacking_exp: number;\n /** strength exp gained from crime */\n strength_exp: number;\n /** defense exp gained from crime */\n defense_exp: number;\n /** dexterity exp gained from crime */\n dexterity_exp: number;\n /** agility exp gained from crime */\n agility_exp: number;\n /** charisma exp gained from crime */\n charisma_exp: number;\n /** intelligence exp gained from crime */\n intelligence_exp: number;\n}\n\n/**\n * Data representing the internal values of an Augmentation.\n * @public\n */\nexport interface AugmentationStats {\n /** Multiplier to hacking skill */\n hacking?: number;\n /** Multiplier to strength skill */\n strength?: number;\n /** Multiplier to defense skill */\n defense?: number;\n /** Multiplier to dexterity skill */\n dexterity?: number;\n /** Multiplier to agility skill */\n agility?: number;\n /** Multiplier to charisma skill */\n charisma?: number;\n /** Multiplier to hacking experience gain rate */\n hacking_exp?: number;\n /** Multiplier to strength experience gain rate */\n strength_exp?: number;\n /** Multiplier to defense experience gain rate */\n defense_exp?: number;\n /** Multiplier to dexterity experience gain rate */\n dexterity_exp?: number;\n /** Multiplier to agility experience gain rate */\n agility_exp?: number;\n /** Multiplier to charisma experience gain rate */\n charisma_exp?: number;\n /** Multiplier to chance of successfully performing a hack */\n hacking_chance?: number;\n /** Multiplier to hacking speed */\n hacking_speed?: number;\n /** Multiplier to amount of money the player gains from hacking */\n hacking_money?: number;\n /** Multiplier to amount of money injected into servers using grow */\n hacking_grow?: number;\n /** Multiplier to amount of reputation gained when working */\n company_rep?: number;\n /** Multiplier to amount of reputation gained when working */\n faction_rep?: number;\n /** Multiplier to amount of money gained from crimes */\n crime_money?: number;\n /** Multiplier to crime success rate */\n crime_success?: number;\n /** Multiplier to amount of money gained from working */\n work_money?: number;\n /** Multiplier to amount of money produced by Hacknet Nodes */\n hacknet_node_money?: number;\n /** Multiplier to cost of purchasing a Hacknet Node */\n hacknet_node_purchase_cost?: number;\n /** Multiplier to cost of ram for a Hacknet Node */\n hacknet_node_ram_cost?: number;\n /** Multiplier to cost of core for a Hacknet Node */\n hacknet_node_core_cost?: number;\n /** Multiplier to cost of leveling up a Hacknet Node */\n hacknet_node_level_cost?: number;\n /** Multiplier to Bladeburner max stamina */\n bladeburner_max_stamina?: number;\n /** Multiplier to Bladeburner stamina gain rate */\n bladeburner_stamina_gain?: number;\n /** Multiplier to effectiveness in Bladeburner Field Analysis */\n bladeburner_analysis?: number;\n /** Multiplier to success chance in Bladeburner contracts/operations */\n bladeburner_success_chance?: number;\n}\n\n/**\n * Options to affect the behavior of {@link NS.hack | hack}, {@link NS.grow | grow}, and {@link NS.weaken | weaken}.\n * @public\n */\nexport interface BasicHGWOptions {\n /** Number of threads to use for this function. Must be less than or equal to the number of threads the script is running with. */\n threads?: number;\n /** Set to true this action will affect the stock market. */\n stock?: boolean;\n}\n\n/**\n * Options to affect the behavior of {@link CodingContract} attempt.\n * @public\n */\nexport interface CodingAttemptOptions {\n /** If truthy, then the function will return a string that states the contract’s reward when it is successfully solved. */\n returnReward: boolean;\n}\n\n/**\n * Return value of {@link Sleeve.getSleevePurchasableAugs | getSleevePurchasableAugs}\n * @public\n */\nexport interface AugmentPair {\n /** augmentation name */\n name: string;\n /** augmentation cost */\n cost: number;\n}\n\n/**\n * @public\n */\nexport enum PositionTypes {\n Long = "L",\n Short = "S",\n}\n\n/**\n * @public\n */\nexport enum OrderTypes {\n LimitBuy = "Limit Buy Order",\n LimitSell = "Limit Sell Order",\n StopBuy = "Stop Buy Order",\n StopSell = "Stop Sell Order",\n}\n\n/**\n * Value in map of {@link StockOrder}\n * @public\n */\nexport interface StockOrderObject {\n /** Number of shares */\n shares: number;\n /** Price per share */\n price: number;\n /** Order type */\n type: OrderTypes;\n /** Order position */\n position: PositionTypes;\n}\n\n/**\n * Return value of {@link TIX.getOrders | getOrders}\n *\n * Keys are stock symbols, properties are arrays of {@link StockOrderObject}\n * @public\n */\nexport interface StockOrder {\n [key: string]: StockOrderObject[];\n}\n\n/**\n * A single process on a server.\n * @public\n */\nexport interface ProcessInfo {\n /** Script name. */\n filename: string;\n /** Number of threads script is running with */\n threads: number;\n /** Script\'s arguments */\n args: string[];\n /** Process ID */\n pid: number;\n}\n\n/**\n * Hack related multipliers.\n * @public\n */\nexport interface HackingMultipliers {\n /** Player\'s hacking chance multiplier. */\n chance: number;\n /** Player\'s hacking speed multiplier. */\n speed: number;\n /** Player\'s hacking money stolen multiplier. */\n money: number;\n /** Player\'s hacking growth multiplier */\n growth: number;\n}\n\n/**\n * Hacknet related multipliers.\n * @public\n */\nexport interface HacknetMultipliers {\n /** Player\'s hacknet production multiplier */\n production: number;\n /** Player\'s hacknet purchase cost multiplier */\n purchaseCost: number;\n /** Player\'s hacknet ram cost multiplier */\n ramCost: number;\n /** Player\'s hacknet core cost multiplier */\n coreCost: number;\n /** Player\'s hacknet level cost multiplier */\n levelCost: number;\n}\n\n/**\n * Hacknet node related constants\n * @public\n */\nexport interface HacknetNodeConstants {\n /** Amount of money gained per level */\n MoneyGainPerLevel: number;\n /** Base cost for a new node */\n BaseCost: number;\n /** Base cost per level */\n LevelBaseCost: number;\n /** Base cost to incrase RAM */\n RamBaseCost: number;\n /** Base cost to increase cores */\n CoreBaseCost: number;\n /** Multiplier to purchase new node */\n PurchaseNextMult: number;\n /** Multiplier to increase node level */\n UpgradeLevelMult: number;\n /** Multiplier to increase RAM */\n UpgradeRamMult: number;\n /** Multiplier to increase cores */\n UpgradeCoreMult: number;\n /** Max node level */\n MaxLevel: number;\n /** Max amount of RAM in GB */\n MaxRam: number;\n /** Max number of cores */\n MaxCores: number;\n}\n\n/**\n * Hacknet server related constants\n * @public\n */\nexport interface HacknetServerConstants {\n /** Number of hashes calculated per level */\n HashesPerLevel: number;\n /** Base cost for a new server */\n BaseCost: number;\n /** Base cost to increase RAM */\n RamBaseCost: number;\n /** Base cost to increase cores */\n CoreBaseCost: number;\n /** Base cost to upgrade cache */\n CacheBaseCost: number;\n /** Multiplier to purchase a new server */\n PurchaseMult: number;\n /** Multiplier to increase server level */\n UpgradeLevelMult: number;\n /** Multiplier to increase RAM */\n UpgradeRamMult: number;\n /** Multiplier to increase cores */\n UpgradeCoreMult: number;\n /** Multiplier to upgrade cache */\n UpgradeCacheMult: number;\n /** Max number of servers */\n MaxServers: number;\n /** Max level for a server */\n MaxLevel: number;\n /** Max amount of RAM in GB */\n MaxRam: number;\n /** Max number of cores */\n MaxCores: number;\n /** Max cache size */\n MaxCache: number;\n}\n\n/**\n * A single server.\n * @public\n */\nexport interface Server {\n /**\n * How many CPU cores this server has. Maximum of 8.\n * Affects magnitude of grow and weaken.\n */\n cpuCores: number;\n\n /** Flag indicating whether the FTP port is open */\n ftpPortOpen: boolean;\n\n /** Flag indicating whether player has admin/root access to this server */\n hasAdminRights: boolean;\n\n /** Hostname. Must be unique */\n hostname: string;\n\n /** Flag indicating whether HTTP Port is open */\n httpPortOpen: boolean;\n\n /** IP Address. Must be unique */\n ip: string;\n\n /** Flag indicating whether player is currently connected to this server */\n isConnectedTo: boolean;\n\n /** RAM (GB) available on this server */\n maxRam: number;\n\n /**\n * Name of company/faction/etc. that this server belongs to.\n * Optional, not applicable to all Servers\n */\n organizationName: string;\n\n /** RAM (GB) used. i.e. unavailable RAM */\n ramUsed: number;\n\n /** Flag indicating whether SMTP Port is open */\n smtpPortOpen: boolean;\n\n /** Flag indicating whether SQL Port is open */\n sqlPortOpen: boolean;\n\n /** Flag indicating whether the SSH Port is open */\n sshPortOpen: boolean;\n\n /** Flag indicating whether this is a purchased server */\n purchasedByPlayer: boolean;\n\n /** Flag indicating whether this server has a backdoor installed by a player */\n backdoorInstalled: boolean;\n\n /**\n * Initial server security level\n * (i.e. security level when the server was created)\n */\n baseDifficulty: number;\n\n /** Server Security Level */\n hackDifficulty: number;\n\n /** Minimum server security level that this server can be weakened to */\n minDifficulty: number;\n\n /** How much money currently resides on the server and can be hacked */\n moneyAvailable: number;\n\n /** Maximum amount of money that this server can hold */\n moneyMax: number;\n\n /** Number of open ports required in order to gain admin/root access */\n numOpenPortsRequired: number;\n\n /** How many ports are currently opened on the server */\n openPortCount: number;\n\n /** Hacking level required to hack this server */\n requiredHackingSkill: number;\n\n /**\n * Parameter that affects how effectively this server\'s money can\n * be increased using the grow() Netscript function\n */\n serverGrowth: number;\n}\n\n/**\n * All multipliers affecting the difficulty of the current challenge.\n * @public\n */\nexport interface BitNodeMultipliers {\n /** Influences how quickly the player\'s agility level (not exp) scales */\n AgilityLevelMultiplier: number;\n /** Influences the base cost to purchase an augmentation. */\n AugmentationMoneyCost: number;\n /** Influences the base rep the player must have with a faction to purchase an augmentation. */\n AugmentationRepCost: number;\n /** Influences how quickly the player can gain rank within Bladeburner. */\n BladeburnerRank: number;\n /** Influences the cost of skill levels from Bladeburner. */\n BladeburnerSkillCost: number;\n /** Influences how quickly the player\'s charisma level (not exp) scales */\n CharismaLevelMultiplier: number;\n /** Influences the experience gained for each ability when a player completes a class. */\n ClassGymExpGain: number;\n /** Influences the amount of money gained from completing Coding Contracts */\n CodingContractMoney: number;\n /** Influences the experience gained for each ability when the player completes working their job. */\n CompanyWorkExpGain: number;\n /** Influences how much money the player earns when completing working their job. */\n CompanyWorkMoney: number;\n /** Influences the money gain from dividends of corporations created by the player. */\n CorporationSoftcap: number;\n /** Influences the valuation of corporations created by the player. */\n CorporationValuation: number;\n /** Influences the base experience gained for each ability when the player commits a crime. */\n CrimeExpGain: number;\n /** Influences the base money gained when the player commits a crime. */\n CrimeMoney: number;\n /** Influences how many Augmentations you need in order to get invited to the Daedalus faction */\n DaedalusAugsRequirement: number;\n /** Influences how quickly the player\'s defense level (not exp) scales */\n DefenseLevelMultiplier: number;\n /** Influences how quickly the player\'s dexterity level (not exp) scales */\n DexterityLevelMultiplier: number;\n /** Influences how much rep the player gains in each faction simply by being a member. */\n FactionPassiveRepGain: number;\n /** Influences the experience gained for each ability when the player completes work for a Faction. */\n FactionWorkExpGain: number;\n /** Influences how much rep the player gains when performing work for a faction. */\n FactionWorkRepGain: number;\n /** Influences how much it costs to unlock the stock market\'s 4S Market Data API */\n FourSigmaMarketDataApiCost: number;\n /** Influences how much it costs to unlock the stock market\'s 4S Market Data (NOT API) */\n FourSigmaMarketDataCost: number;\n /** Influences the respect gain and money gain of your gang. */\n GangSoftcap: number;\n /** Influences the experienced gained when hacking a server. */\n HackExpGain: number;\n /** Influences how quickly the player\'s hacking level (not experience) scales */\n HackingLevelMultiplier: number;\n /** Influences how much money is produced by Hacknet Nodes and the hash rate of Hacknet Servers (unlocked in BitNode-9) */\n HacknetNodeMoney: number;\n /** Influences how much money it costs to upgrade your home computer\'s RAM */\n HomeComputerRamCost: number;\n /** Influences how much money is gained when the player infiltrates a company. */\n InfiltrationMoney: number;\n /** Influences how much rep the player can gain from factions when selling stolen documents and secrets */\n InfiltrationRep: number;\n /** Influences how much money can be stolen from a server when the player performs a hack against it through the Terminal. */\n ManualHackMoney: number;\n /** Influence how much it costs to purchase a server */\n PurchasedServerCost: number;\n /** Influences the maximum number of purchased servers you can have */\n PurchasedServerLimit: number;\n /** Influences the maximum allowed RAM for a purchased server */\n PurchasedServerMaxRam: number;\n /** Influences cost of any purchased server at or above 128GB */\n PurchasedServerSoftcap: number;\n /** Influences the minimum favor the player must have with a faction before they can donate to gain rep. */\n RepToDonateToFaction: number;\n /** Influences how much the money on a server can be reduced when a script performs a hack against it. */\n ScriptHackMoney: number;\n /** Influences how much of the money stolen by a scripted hack will be added to the player\'s money. */\n ScriptHackMoneyGain: number;\n /** Influences the growth percentage per cycle against a server. */\n ServerGrowthRate: number;\n /** Influences the maximum money that a server can grow to. */\n ServerMaxMoney: number;\n /** Influences the initial money that a server starts with. */\n ServerStartingMoney: number;\n /** Influences the initial security level (hackDifficulty) of a server. */\n ServerStartingSecurity: number;\n /** Influences the weaken amount per invocation against a server. */\n ServerWeakenRate: number;\n /** Influences how quickly the player\'s strength level (not exp) scales */\n StrengthLevelMultiplier: number;\n /** Influences the power of the gift */\n StaneksGiftPowerMultiplier: number;\n /** Influences the size of the gift */\n StaneksGiftExtraSize: number;\n /** Influences the hacking skill required to backdoor the world daemon. */\n WorldDaemonDifficulty: number;\n}\n\n/**\n * Object representing all the values related to a hacknet node.\n * @public\n */\nexport interface NodeStats {\n /** Node\'s name */\n name: string;\n /** Node\'s level */\n level: number;\n /** Node\'s RAM (GB) */\n ram: number;\n /** Node\'s used RAM (GB) */\n ramUsed: number;\n /** Node\'s number of cores */\n cores: number;\n /** Cache level. Only applicable for Hacknet Servers */\n cache: number;\n /** Hash Capacity provided by this Node. Only applicable for Hacknet Servers */\n hashCapacity: number;\n /** Node\'s production per second */\n production: number;\n /** Number of seconds since Node has been purchased */\n timeOnline: number;\n /** Total number of money Node has produced */\n totalProduction: number;\n}\n\n/**\n * Short summary of the players skills.\n * @public\n */\nexport interface PlayerSkills {\n /** Hacking level */\n hacking: number;\n /** Strength level */\n strength: number;\n /** Defense level */\n defense: number;\n /** Dexterity level */\n dexterity: number;\n /** Agility level */\n agility: number;\n /** Charisma level */\n charisma: number;\n /** Intelligence level */\n intelligence: number;\n}\n\n/**\n * @public\n */\nexport interface CharacterMult {\n /** Agility stat */\n agility: number;\n /** Agility exp */\n agilityExp: number;\n /** Charisma stat */\n charisma: number;\n /** Charisma exp */\n charismaExp: number;\n /** Company reputation */\n companyRep: number;\n /** Money earned from crimes */\n crimeMoney: number;\n /** Crime success chance */\n crimeSuccess: number;\n /** Defense stat */\n defense: number;\n /** Defense exp */\n defenseExp: number;\n /** Dexterity stat */\n dexterity: number;\n /** Dexterity exp */\n dexterityExp: number;\n /** Faction reputation */\n factionRep: number;\n /** Hacking stat */\n hacking: number;\n /** Hacking exp */\n hackingExp: number;\n /** Strength stat */\n strength: number;\n /** Strength exp */\n strengthExp: number;\n /** Money earned from jobs */\n workMoney: number;\n}\n\n/**\n * @public\n */\nexport interface CharacterInfo {\n /** Current BitNode number */\n bitnode: number;\n /** Name of city you are currently in */\n city: string;\n /** Array of factions you are currently a member of */\n factions: string[];\n /** Current health points */\n hp: number;\n /** Array of all jobs */\n jobs: string[];\n /** Array of job positions for all companies you are employed at. Same order as \'jobs\' */\n jobTitles: string[];\n /** Maximum health points */\n maxHp: number;\n /** Boolean indicating whether or not you have a tor router */\n tor: boolean;\n /** Object with many of the player\'s multipliers from Augmentations/Source Files */\n mult: CharacterMult;\n /** total hacking exp */\n hackingExp: number;\n /** total strength exp */\n strengthExp: number;\n /** total defense exp */\n defenseExp: number;\n /** total dexterity exp */\n dexterityExp: number;\n /** total agility exp */\n agilityExp: number;\n /** total charisma exp */\n charismaExp: number;\n}\n\n/**\n * @public\n */\nexport interface SleeveWorkGains {\n /** Hacking exp gained from work */\n workHackExpGain: number;\n /** Strength exp gained from work */\n workStrExpGain: number;\n /** Defense exp gained from work, */\n workDefExpGain: number;\n /** Dexterity exp gained from work */\n workDexExpGain: number;\n /** Agility exp gained from work */\n workAgiExpGain: number;\n /** Charisma exp gained from work */\n workChaExpGain: number;\n /** Money gained from work */\n workMoneyGain: number;\n}\n\n/**\n * @public\n */\nexport interface SourceFileLvl {\n /** The number of the source file */\n n: number;\n /** The level of the source file */\n lvl: number;\n}\n\n/**\n * Bladeburner current action.\n * @public\n */\nexport interface BladeburnerCurAction {\n /** Type of Action */\n type: string;\n /** Name of Action */\n name: string;\n}\n\n/**\n * Gang general info.\n * @public\n */\nexport interface GangGenInfo {\n /** Name of faction that the gang belongs to ("Slum Snakes", etc.) */\n faction: string;\n /** Indicating whether or not it\'s a hacking gang */\n isHacking: boolean;\n /** Money earned per game cycle */\n moneyGainRate: number;\n /** Gang\'s power for territory warfare */\n power: number;\n /** Gang\'s respect */\n respect: number;\n /** Respect earned per game cycle */\n respectGainRate: number;\n /** Amount of territory held */\n territory: number;\n /** Clash chance */\n territoryClashChance: number;\n /** Gang\'s wanted level */\n wantedLevel: number;\n /** Wanted level gained/lost per game cycle (negative for losses) */\n wantedLevelGainRate: number;\n /** Indicating if territory warfare is enabled */\n territoryWarfareEngaged: boolean;\n /** Number indicating the current wanted penalty */\n wantedPenalty: number;\n}\n\n/**\n * @public\n */\nexport interface GangOtherInfoObject {\n /** Gang power */\n power: number;\n /** Gang territory, in decimal form */\n territory: number;\n}\n\n/**\n * @public\n */\nexport interface GangOtherInfo {\n "Slum Snakes": GangOtherInfoObject;\n Tetrads: GangOtherInfoObject;\n "The Syndicate": GangOtherInfoObject;\n "The Dark Army": GangOtherInfoObject;\n "Speakers for the Dead": GangOtherInfoObject;\n NiteSec: GangOtherInfoObject;\n "The Black Hand": GangOtherInfoObject;\n}\n\n/**\n * Object representing data representing a gang member task.\n * @public\n */\nexport interface GangTaskStats {\n /** Task name */\n name: string;\n /** Task Description */\n desc: string;\n /** Is a task of a hacking gang */\n isHacking: boolean;\n /** Is a task of a combat gang */\n isCombat: boolean;\n /** Base respect earned */\n baseRespect: number;\n /** Base wanted earned */\n baseWanted: number;\n /** Base money earned */\n baseMoney: number;\n /** Hacking skill impact on task scaling */\n hackWeight: number;\n /** Strength skill impact on task scaling */\n strWeight: number;\n /** Defense skill impact on task scaling */\n defWeight: number;\n /** Dexterity skill impact on task scaling */\n dexWeight: number;\n /** Agility skill impact on task scaling */\n agiWeight: number;\n /** Charisma skill impact on task scaling */\n chaWeight: number;\n /** Number representing the difficulty of the task */\n difficulty: number;\n /** Territory impact on task scaling */\n territory: GangTerritory;\n}\n\n/**\n * Object representing data representing a gang member equipment.\n * @public\n */\nexport interface EquipmentStats {\n /** Strength multiplier */\n str?: number;\n /** Defense multiplier */\n def?: number;\n /** Dexterity multiplier */\n dex?: number;\n /** Agility multiplier */\n agi?: number;\n /** Charisma multiplier */\n cha?: number;\n /** Hacking multiplier */\n hack?: number;\n}\n\n/**\n * @public\n */\nexport interface GangTerritory {\n /** Money gain impact on task scaling */\n money: number;\n /** Respect gain impact on task scaling */\n respect: number;\n /** Wanted gain impact on task scaling */\n wanted: number;\n}\n\n/**\n * @public\n */\nexport interface GangMemberInfo {\n /** Name of the gang member */\n name: string;\n /** Currently assigned task */\n task: string;\n earnedRespect: number;\n\n /** Hack skill level */\n hack: number;\n /** Strength skill level */\n str: number;\n /** Defense skill level */\n def: number;\n /** Dexterity skill level */\n dex: number;\n /** Agility skill level */\n agi: number;\n /** Charisma skill level */\n cha: number;\n\n /** Current hack experience */\n hack_exp: number;\n /** Current strength experience */\n str_exp: number;\n /** Current defense experience */\n def_exp: number;\n /** Current dexterity experience */\n dex_exp: number;\n /** Current agility experience */\n agi_exp: number;\n /** Current charisma experience */\n cha_exp: number;\n\n /** Hack multiplier from equipment */\n hack_mult: number;\n /** Strength multiplier from equipment */\n str_mult: number;\n /** Defense multiplier from equipment */\n def_mult: number;\n /** Dexterity multiplier from equipment */\n dex_mult: number;\n /** Agility multiplier from equipment */\n agi_mult: number;\n /** Charisma multiplier from equipment */\n cha_mult: number;\n\n /** Hack multiplier from ascensions */\n hack_asc_mult: number;\n /** Strength multiplier from ascensions */\n str_asc_mult: number;\n /** Defense multiplier from ascensions */\n def_asc_mult: number;\n /** Dexterity multiplier from ascensions */\n dex_asc_mult: number;\n /** Agility multiplier from ascensions */\n agi_asc_mult: number;\n /** Charisma multiplier from ascensions */\n cha_asc_mult: number;\n\n /** Total earned hack experience */\n hack_asc_points: number;\n /** Total earned strength experience */\n str_asc_points: number;\n /** Total earned defense experience */\n def_asc_points: number;\n /** Total earned dexterity experience */\n dex_asc_points: number;\n /** Total earned agility experience */\n agi_asc_points: number;\n /** Total earned charisma experience */\n cha_asc_points: number;\n\n upgrades: string[];\n augmentations: string[];\n\n respectGain: number;\n wantedLevelGain: number;\n moneyGain: number;\n}\n\n/**\n * @public\n */\nexport interface GangMemberAscension {\n /** Amount of respect lost from ascending */\n respect: number;\n /** Hacking multiplier gained from ascending */\n hack: number;\n /** Strength multiplier gained from ascending */\n str: number;\n /** Defense multiplier gained from ascending */\n def: number;\n /** Dexterity multiplier gained from ascending */\n dex: number;\n /** Agility multiplier gained from ascending */\n agi: number;\n /** Charisma multiplier gained from ascending */\n cha: number;\n}\n\n/**\n * Object representing a sleeve stats.\n * @public\n */\nexport interface SleeveSkills {\n /** Current shock of the sleeve [0-100] */\n shock: number;\n /** Current sync of the sleeve [0-100] */\n sync: number;\n /** Current hacking skill of the sleeve */\n hacking: number;\n /** Current strength of the sleeve */\n strength: number;\n /** Current defense of the sleeve */\n defense: number;\n /** Current dexterity of the sleeve */\n dexterity: number;\n /** Current agility of the sleeve */\n agility: number;\n /** Current charisma of the sleeve */\n charisma: number;\n}\n\n/**\n * Object representing sleeve information.\n * @public\n */\nexport interface SleeveInformation {\n /** Location of the sleeve */\n city: string;\n /** Current hp of the sleeve */\n hp: number;\n /** Max hp of the sleeve */\n maxHp: number;\n /** Jobs available to the sleeve */\n jobs: string[];\n /** Job titles available to the sleeve */\n jobTitle: string[];\n /** Does this sleeve have access to the tor router */\n tor: boolean;\n /** Sleeve multipliers */\n mult: CharacterMult;\n /** Time spent on the current task in milliseconds */\n timeWorked: number;\n /** Earnings synchronized to other sleeves */\n earningsForSleeves: SleeveWorkGains;\n /** Earnings synchronized to the player */\n earningsForPlayer: SleeveWorkGains;\n /** Earnings for this sleeve */\n earningsForTask: SleeveWorkGains;\n /** Faction or company reputation gained for the current task */\n workRepGain: number;\n}\n\n/**\n * Object representing a sleeve current task.\n * @public\n */\nexport interface SleeveTask {\n /** Task type */\n task: string;\n /** Crime currently attempting, if any */\n crime: string;\n /** Location of the task, if any */\n location: string;\n /** Stat being trained at the gym, if any */\n gymStatType: string;\n /** Faction work type being performed, if any */\n factionWorkType: string;\n /** Class being taken at university, if any */\n className: string;\n}\n\n/**\n * Object representing a port. A port is a serialized queue.\n * @public\n */\nexport interface NetscriptPort {\n /**\n * Write data to a port.\n * @remarks\n * RAM cost: 0 GB\n *\n * @returns The data popped off the queue if it was full.\n */\n write(value: string | number): null | string | number;\n\n /**\n * Attempt to write data to the port.\n * @remarks\n * RAM cost: 0 GB\n *\n * @returns True if the data was added to the port, false if the port was full\n */\n tryWrite(value: string | number): boolean;\n\n /**\n * Shift an element out of the port.\n * @remarks\n * RAM cost: 0 GB\n *\n * This function will remove the first element from the port and return it.\n * If the port is empty, then the string “NULL PORT DATA” will be returned.\n * @returns the data read.\n */\n read(): string | number;\n\n /**\n * Retrieve the first element from the port without removing it.\n * @remarks\n * RAM cost: 0 GB\n *\n * This function is used to peek at the data from a port. It returns the\n * first element in the specified port without removing that element. If\n * the port is empty, the string “NULL PORT DATA” will be returned.\n * @returns the data read\n */\n peek(): string | number;\n\n /**\n * Check if the port is full.\n * @remarks\n * RAM cost: 0 GB\n *\n * @returns true if the port is full, otherwise false\n */\n full(): boolean;\n\n /**\n * Check if the port is empty.\n * @remarks\n * RAM cost: 0 GB\n *\n * @returns true if the port is empty, otherwise false\n */\n empty(): boolean;\n\n /**\n * Empties all data from the port.\n * @remarks\n * RAM cost: 0 GB\n */\n clear(): void;\n}\n\n/**\n * Stock market API\n * @public\n */\nexport interface TIX {\n /**\n * Returns an array of the symbols of the tradable stocks\n *\n * @remarks RAM cost: 2 GB\n * @returns Array of the symbols of the tradable stocks.\n */\n getSymbols(): string[];\n\n /**\n * Returns the price of a stock\n *\n * @remarks\n * RAM cost: 2 GB\n * The stock’s price is the average of its bid and ask price.\n *\n * @example\n * ```ts\n * // NS1\n * stock.getPrice("FISG");\n * ```\n * @example\n * ```ts\n * // NS2\n * ns.stock.getPrice("FISG");\n * ```\n * @param sym - Stock symbol.\n * @returns The price of a stock.\n */\n getPrice(sym: string): number;\n\n /**\n * Returns the ask price of that stock.\n * @remarks RAM cost: 2 GB\n *\n * @param sym - Stock symbol.\n * @returns The ask price of a stock.\n */\n getAskPrice(sym: string): number;\n\n /**\n * Returns the bid price of that stock.\n * @remarks RAM cost: 2 GB\n *\n * @param sym - Stock symbol.\n * @returns The bid price of a stock.\n */\n getBidPrice(sym: string): number;\n\n /**\n * Returns the player’s position in a stock.\n * @remarks\n * RAM cost: 2 GB\n * Returns an array of four elements that represents the player’s position in a stock.\n *\n * The first element is the returned array is the number of shares the player owns of\n * the stock in the Long position. The second element in the array is the average price\n * of the player’s shares in the Long position.\n *\n * The third element in the array is the number of shares the player owns of the stock\n * in the Short position. The fourth element in the array is the average price of the\n * player’s Short position.\n *\n * All elements in the returned array are numeric.\n *\n * @example\n * ```ts\n * // NS1\n * var pos = stock.getPosition("ECP");\n * var shares = pos[0];\n * var avgPx = pos[1];\n * var sharesShort = pos[2];\n * var avgPxShort = pos[3];\n * ```\n * @example\n * ```ts\n * // NS2\n * const [shares, avgPx, sharesShort, avgPxShort] = ns.stock.getPosition("ECP");\n * ```\n * @param sym - Stock symbol.\n * @returns Array of four elements that represents the player’s position in a stock.\n */\n getPosition(sym: string): [number, number, number, number];\n\n /**\n * Returns the maximum number of shares of a stock.\n * @remarks\n * RAM cost: 2 GB\n * This is the maximum amount of the stock that can be purchased\n * in both the Long and Short positions combined.\n *\n * @param sym - Stock symbol.\n * @returns Maximum number of shares that the stock has.\n */\n getMaxShares(sym: string): number;\n\n /**\n * Calculates cost of buying stocks.\n * @remarks\n * RAM cost: 2 GB\n * Calculates and returns how much it would cost to buy a given number of shares of a stock.\n * This takes into account spread, large transactions influencing the price of the stock and commission fees.\n *\n * @param sym - Stock symbol.\n * @param shares - Number of shares to purchase.\n * @param posType - Specifies whether the order is a “Long” or “Short” position.\n * @returns Cost to buy a given number of shares of a stock.\n */\n getPurchaseCost(sym: string, shares: number, posType: string): number;\n\n /**\n * Calculate profit of selling stocks.\n * @remarks\n * RAM cost: 2 GB\n * Calculates and returns how much you would gain from selling a given number of shares of a stock.\n * This takes into account spread, large transactions influencing the price of the stock and commission fees.\n *\n * @param sym - Stock symbol.\n * @param shares - Number of shares to sell.\n * @param posType - Specifies whether the order is a “Long” or “Short” position.\n * @returns Gain from selling a given number of shares of a stock.\n */\n getSaleGain(sym: string, shares: number, posType: string): number;\n\n /**\n * Buy stocks.\n * @remarks\n * RAM cost: 2.5 GB\n * Attempts to purchase shares of a stock using a Market Order.\n *\n * If the player does not have enough money to purchase the specified number of shares,\n * then no shares will be purchased. Remember that every transaction on the stock exchange\n * costs a certain commission fee.\n *\n * If this function successfully purchases the shares, it will return the stock price at which\n * each share was purchased. Otherwise, it will return 0.\n *\n * @param sym - Stock symbol.\n * @param shares - Number of shares to purchased. Must be positive. Will be rounded to nearest integer.\n * @returns The stock price at which each share was purchased, otherwise 0 if the shares weren\'t purchased.\n */\n buy(sym: string, shares: number): number;\n\n /**\n * Sell stocks.\n * @remarks\n * RAM cost: 2.5 GB\n * Attempts to sell shares of a stock using a Market Order.\n *\n * If the specified number of shares in the function exceeds the amount that the player\n * actually owns, then this function will sell all owned shares. Remember that every\n * transaction on the stock exchange costs a certain commission fee.\n *\n * The net profit made from selling stocks with this function is reflected in the script’s\n * statistics. This net profit is calculated as:\n *\n * shares * (sell_price - average_price_of_purchased_shares)\n *\n * If the sale is successful, this function will return the stock price at\n * which each share was sold. Otherwise, it will return 0.\n *\n * @param sym - Stock symbol.\n * @param shares - Number of shares to sell. Must be positive. Will be rounded to nearest integer.\n * @returns The stock price at which each share was sold, otherwise 0 if the shares weren\'t sold.\n */\n sell(sym: string, shares: number): number;\n\n /**\n * Short stocks.\n * @remarks\n * RAM cost: 2.5 GB\n * Attempts to purchase a short position of a stock using a Market Order.\n *\n * The ability to short a stock is **not** immediately available to the player and\n * must be unlocked later on in the game.\n *\n * If the player does not have enough money to purchase the specified number of shares,\n * then no shares will be purchased. Remember that every transaction on the stock exchange\n * costs a certain commission fee.\n *\n * If the purchase is successful, this function will return the stock price at which each\n * share was purchased. Otherwise, it will return 0.\n *\n * @param sym - Stock symbol.\n * @param shares - Number of shares to short. Must be positive. Will be rounded to nearest integer.\n * @returns The stock price at which each share was purchased, otherwise 0 if the shares weren\'t purchased.\n */\n short(sym: string, shares: number): number;\n\n /**\n * Sell short stock.\n * @remarks\n * RAM cost: 2.5 GB\n * Attempts to sell a short position of a stock using a Market Order.\n *\n * The ability to short a stock is **not** immediately available to the player and\n * must be unlocked later on in the game.\n *\n * If the specified number of shares exceeds the amount that the player actually owns,\n * then this function will sell all owned shares. Remember that every transaction on\n * the stock exchange costs a certain commission fee.\n *\n * If the sale is successful, this function will return the stock price at which each\n * share was sold. Otherwise it will return 0.\n *\n * @param sym - Stock symbol.\n * @param shares - Number of shares to sell. Must be positive. Will be rounded to nearest integer.\n * @returns The stock price at which each share was sold, otherwise 0 if the shares weren\'t sold.\n */\n sellShort(sym: string, shares: number): number;\n\n /**\n * Place order for stocks.\n * @remarks\n * RAM cost: 2.5 GB\n * Places an order on the stock market. This function only works for Limit and Stop Orders.\n *\n * The ability to place limit and stop orders is **not** immediately available to the player and\n * must be unlocked later on in the game.\n *\n * Returns true if the order is successfully placed, and false otherwise.\n *\n * @param sym - Stock symbol.\n * @param shares - Number of shares for order. Must be positive. Will be rounded to nearest integer.\n * @param price - Execution price for the order.\n * @param type - Type of order.\n * @param pos - Specifies whether the order is a “Long” or “Short” position.\n * @returns True if the order is successfully placed, and false otherwise.\n */\n placeOrder(sym: string, shares: number, price: number, type: string, pos: string): boolean;\n\n /**\n * Cancel order for stocks.\n * @remarks\n * RAM cost: 2.5 GB\n * Cancels an oustanding Limit or Stop order on the stock market.\n *\n * The ability to use limit and stop orders is **not** immediately available to the player and\n * must be unlocked later on in the game.\n *\n * @param sym - Stock symbol.\n * @param shares - Number of shares for order. Must be positive. Will be rounded to nearest integer.\n * @param price - Execution price for the order.\n * @param type - Type of order.\n * @param pos - Specifies whether the order is a “Long” or “Short” position.\n */\n cancelOrder(sym: string, shares: number, price: number, type: string, pos: string): void;\n\n /**\n * Returns your order book for the stock market.\n * @remarks\n * RAM cost: 2.5 GB\n * This is an object containing information for all the Limit and Stop Orders you have in the stock market.\n * For each symbol you have a position in, the returned object will have a key with that symbol\'s name.\n * The object\'s properties are each an array of {@link StockOrderObject}\n * The object has the following structure:\n *\n * ```ts\n * {\n * string1: [ // Array of orders for this stock\n * {\n * shares: Order quantity\n * price: Order price\n * type: Order type\n * position: Either "L" or "S" for Long or Short position\n * },\n * {\n * ...\n * },\n * ...\n * ],\n * string2: [ // Array of orders for this stock\n * ...\n * ],\n * ...\n * }\n * ```\n * The “Order type” property can have one of the following four values: "Limit Buy Order", "Limit Sell Order", "Stop Buy Order", "Stop Sell Order".\n * Note that the order book will only contain information for stocks that you actually have orders in.\n *\n * @example\n * ```ts\n * "If you do not have orders in Nova Medical (NVMD), then the returned object will not have a “NVMD” property."\n * {\n * ECP: [\n * {\n * shares: 5,\n * price: 100,000\n * type: "Stop Buy Order",\n * position: "S",\n * },\n * {\n * shares: 25,\n * price: 125,000\n * type: "Limit Sell Order",\n * position: "L",\n * },\n * ],\n * SYSC: [\n * {\n * shares: 100,\n * price: 10,000\n * type: "Limit Buy Order",\n * position: "L",\n * },\n * ],\n * }\n * ```\n * @returns Object containing information for all the Limit and Stop Orders you have in the stock market.\n */\n getOrders(): StockOrder;\n\n /**\n * Returns the volatility of the specified stock.\n * @remarks\n * RAM cost: 2.5 GB\n * Volatility represents the maximum percentage by which a stock’s price can change every tick.\n * The volatility is returned as a decimal value, NOT a percentage\n * (e.g. if a stock has a volatility of 3%, then this function will return 0.03, NOT 3).\n *\n * In order to use this function, you must first purchase access to the Four Sigma (4S) Market Data TIX API.\n *\n * @param sym - Stock symbol.\n * @returns Volatility of the specified stock.\n */\n getVolatility(sym: string): number;\n\n /**\n * Returns the probability that the specified stock’s price will increase (as opposed to decrease) during the next tick.\n * @remarks\n * RAM cost: 2.5 GB\n * The probability is returned as a decimal value, NOT a percentage\n * (e.g. if a stock has a 60% chance of increasing, then this function will return 0.6, NOT 60).\n *\n * In other words, if this function returned 0.30 for a stock, then this means that the stock’s price has a\n * 30% chance of increasing and a 70% chance of decreasing during the next tick.\n *\n * In order to use this function, you must first purchase access to the Four Sigma (4S) Market Data TIX API.\n *\n * @param sym - Stock symbol.\n * @returns Probability that the specified stock’s price will increase (as opposed to decrease) during the next tick.\n */\n getForecast(sym: string): number;\n\n /**\n * Purchase 4S Market Data Access.\n * @remarks RAM cost: 2.5 GB\n * @returns True if you successfully purchased it or if you already have access, false otherwise.\n */\n purchase4SMarketData(): boolean;\n\n /**\n * Purchase 4S Market Data TIX API Access.\n * @remarks RAM cost: 2.5 GB\n * @returns True if you successfully purchased it or if you already have access, false otherwise.\n */\n purchase4SMarketDataTixApi(): boolean;\n\n /**\n * Purchase WSE Account.\n * @remarks RAM cost: 2.5 GB\n * @returns True if you successfully purchased it or if you already have access, false otherwise.\n */\n purchaseWseAccount(): boolean;\n\n /**\n * Purchase TIX API Access\n * @remarks RAM cost: 2.5 GB\n * @returns True if you successfully purchased it or if you already have access, false otherwise.\n */\n purchaseTixApi(): boolean;\n}\n\n/**\n * Singularity API\n * @remarks\n * This API requires Source-File 4 to use. The RAM cost of all these functions is multiplied by 16/4/1 based on Source-File 4 levels.\n * @public\n */\nexport interface Singularity {\n /**\n * Take university class.\n *\n * @remarks\n * RAM cost: 2 GB * 16/4/1\n *\n *\n * This function will automatically set you to start taking a course at a university.\n * If you are already in the middle of some “working” action (such as working at a\n * company, for a faction, or on a program), then running this function will automatically\n * cancel that action and give you your earnings.\n *\n * The cost and experience gains for all of these universities and classes are the same as\n * if you were to manually visit and take these classes.\n *\n * @param universityName - Name of university. You must be in the correct city for whatever university you specify.\n * @param courseName - Name of course.\n * @param focus - Acquire player focus on this class. Optional. Defaults to true.\n * @returns True if actions is successfully started, false otherwise.\n */\n universityCourse(universityName: string, courseName: string, focus?: boolean): boolean;\n\n /**\n * Workout at the gym.\n *\n * @remarks\n * RAM cost: 2 GB * 16/4/1\n *\n\n * This function will automatically set you to start working out at a gym to train\n * a particular stat. If you are already in the middle of some “working” action\n * (such as working at a company, for a faction, or on a program), then running\n * this function will automatically cancel that action and give you your earnings.\n *\n * The cost and experience gains for all of these gyms are the same as if you were\n * to manually visit these gyms and train\n *\n * @param gymName - Name of gym. You must be in the correct city for whatever gym you specify.\n * @param stat - The stat you want to train.\n * @param focus - Acquire player focus on this gym workout. Optional. Defaults to true.\n * @returns True if actions is successfully started, false otherwise.\n */\n gymWorkout(gymName: string, stat: string, focus?: boolean): boolean;\n\n /**\n * Travel to another city.\n * @remarks\n * RAM cost: 2 GB * 16/4/1\n *\n *\n * This function allows the player to travel to any city. The cost for using this\n * function is the same as the cost for traveling through the Travel Agency.\n *\n * @param city - City to travel to.\n * @returns True if actions is successful, false otherwise.\n */\n travelToCity(city: string): boolean;\n\n /**\n * Purchase the TOR router.\n * @remarks\n * RAM cost: 2 GB * 16/4/1\n *\n *\n * This function allows you to automatically purchase a TOR router. The cost for\n * purchasing a TOR router using this function is the same as if you were to\n * manually purchase one.\n *\n * @returns True if actions is successful or you already own TOR router, false otherwise.\n */\n purchaseTor(): boolean;\n\n /**\n * Purchase a program from the dark web.\n * @remarks\n * RAM cost: 2 GB * 16/4/1\n *\n *\n * This function allows you to automatically purchase programs. You MUST have a\n * TOR router in order to use this function. The cost of purchasing programs\n * using this function is the same as if you were purchasing them through the Dark\n * Web using the Terminal buy command.\n *\n * @example\n * ```ts\n * // NS1\n * purchaseProgram("brutessh.exe");\n * ```\n * @example\n * ```ts\n * // NS2\n * ns.purchaseProgram("brutessh.exe");\n * ```\n * @param programName - Name of program to purchase.\n * @returns True if the specified program is purchased, and false otherwise.\n */\n purchaseProgram(programName: string): boolean;\n\n /**\n * Check if the player is busy.\n * @remarks\n * RAM cost: 0.5 GB * 16/4/1\n *\n *\n * Returns a boolean indicating whether or not the player is currently performing an\n * ‘action’. These actions include working for a company/faction, studying at a university,\n * working out at a gym, creating a program, committing a crime, or carrying out a Hacking Mission.\n *\n * @returns True if the player is currently performing an ‘action’, false otherwise.\n */\n isBusy(): boolean;\n\n /**\n * Stop the current action.\n * @remarks\n * RAM cost: 1 GB * 16/4/1\n *\n *\n * This function is used to end whatever ‘action’ the player is currently performing.\n * The player will receive whatever money/experience/etc. he has earned from that action.\n *\n * The actions that can be stopped with this function are:\n *\n * * Studying at a university\n * * Working out at a gym\n * * Working for a company/faction\n * * Creating a program\n * * Committing a crime\n *\n * This function will return true if the player’s action was ended.\n * It will return false if the player was not performing an action when this function was called.\n *\n * @returns True if the player’s action was ended, false if the player was not performing an action.\n */\n stopAction(): boolean;\n\n /**\n * Upgrade home computer RAM.\n * @remarks\n * RAM cost: 3 GB * 16/4/1\n *\n *\n * This function will upgrade amount of RAM on the player’s home computer. The cost is\n * the same as if you were to do it manually.\n *\n * This function will return true if the player’s home computer RAM is successfully upgraded, and false otherwise.\n *\n * @returns True if the player’s home computer RAM is successfully upgraded, and false otherwise.\n */\n upgradeHomeRam(): boolean;\n\n /**\n * Upgrade home computer cores.\n * @remarks\n * RAM cost: 3 GB * 16/4/1\n *\n *\n * This function will upgrade amount of cores on the player’s home computer. The cost is\n * the same as if you were to do it manually.\n *\n * This function will return true if the player’s home computer cores is successfully upgraded, and false otherwise.\n *\n * @returns True if the player’s home computer cores is successfully upgraded, and false otherwise.\n */\n upgradeHomeCores(): boolean;\n\n /**\n * Get the price of upgrading home RAM.\n * @remarks\n * RAM cost: 1.5 GB * 16/4/1\n *\n *\n * Returns the cost of upgrading the player’s home computer RAM.\n *\n * @returns Cost of upgrading the player’s home computer RAM.\n */\n getUpgradeHomeRamCost(): number;\n\n /**\n * Get the price of upgrading home cores.\n * @remarks\n * RAM cost: 1.5 GB * 16/4/1\n *\n *\n * Returns the cost of upgrading the player’s home computer cores.\n *\n * @returns Cost of upgrading the player’s home computer cores.\n */\n getUpgradeHomeCoresCost(): number;\n\n /**\n * Work for a company.\n * @remarks\n * RAM cost: 3 GB * 16/4/1\n *\n *\n * This function will automatically set you to start working at the company\n * at which you are employed. If you are already in the middle of some “working”\n * action (such as working for a faction, training at a gym, or creating a program),\n * then running this function will automatically cancel that action and give you\n * your earnings.\n *\n * This function will return true if the player starts working, and false otherwise.\n *\n * Note that when you are working for a company, you will not actually receive your earnings (reputation, money, experience) until you FINISH the action.\n *\n * @example\n * ```ts\n * // NS1:\n * //If you only want to work until you get 100,000 company reputation. One small hack to get around this is to continuously restart the action to receive your earnings:\n * while (getCompanyRep(COMPANY HERE) < VALUE) {\n * workForCompany();\n * sleep(60000);\n * }\n * //This way, your company reputation will be updated every minute.\n * ```\n * @example\n * ```ts\n * // NS2:\n * //If you only want to work until you get 100,000 company reputation. One small hack to get around this is to continuously restart the action to receive your earnings:\n * while (ns.getCompanyRep(COMPANY HERE) < VALUE) {\n * ns.workForCompany();\n * await ns.sleep(60000);\n * }\n * //This way, your company reputation will be updated every minute.\n * ```\n * @param companyName - Name of company to work for. Must be an exact match. Optional. If not specified, this argument defaults to the last job that you worked\n * @param focus - Acquire player focus on this work operation. Optional. Defaults to true.\n * @returns True if the player starts working, and false otherwise.\n */\n workForCompany(companyName?: string, focus?: boolean): boolean;\n\n /**\n * Quit jobs by company.\n * @remarks\n * RAM cost: 3 GB * 16/4/1\n *\n *\n * This function will finish work with the company provided and quit any jobs.\n *\n * @param companyName - Name of the company.\n */\n quitJob(companyName?: string): void;\n\n /**\n * Apply for a job at a company.\n * @remarks\n * RAM cost: 3 GB * 16/4/1\n *\n *\n * This function will automatically try to apply to the specified company\n * for a position in the specified field. This function can also be used to\n * apply for promotions by specifying the company and field you are already\n * employed at.\n *\n * This function will return true if you successfully get a job/promotion,\n * and false otherwise. Note that if you are trying to use this function to\n * apply for a promotion and you don’t get one, it will return false.\n *\n * @param companyName - Name of company to apply to.\n * @param field - Field to which you want to apply.\n * @returns True if the player successfully get a job/promotion, and false otherwise.\n */\n applyToCompany(companyName: string, field: string): boolean;\n\n /**\n * Get company reputation.\n * @remarks\n * RAM cost: 1 GB * 16/4/1\n *\n *\n * This function will return the amount of reputation you have at the specified company.\n * If the company passed in as an argument is invalid, -1 will be returned.\n *\n * @param companyName - Name of the company.\n * @returns Amount of reputation you have at the specified company.\n */\n getCompanyRep(companyName: string): number;\n\n /**\n * Get company favor.\n * @remarks\n * RAM cost: 1 GB * 16/4/1\n *\n *\n * This function will return the amount of favor you have at the specified company.\n * If the company passed in as an argument is invalid, -1 will be returned.\n *\n * @param companyName - Name of the company.\n * @returns Amount of favor you have at the specified company.\n */\n getCompanyFavor(companyName: string): number;\n\n /**\n * Get company favor gain.\n * @remarks\n * RAM cost: 0.75 GB * 16/4/1\n *\n *\n * This function will return the amount of favor you will gain for the specified\n * company when you reset by installing Augmentations.\n *\n * @param companyName - Name of the company.\n * @returns Amount of favor you gain at the specified company when you reset by installing Augmentations.\n */\n getCompanyFavorGain(companyName: string): number;\n\n /**\n * List all current faction invitations.\n * @remarks\n * RAM cost: 3 GB * 16/4/1\n *\n *\n * Returns an array with the name of all Factions you currently have oustanding invitations from.\n *\n * @returns Array with the name of all Factions you currently have oustanding invitations from.\n */\n checkFactionInvitations(): string[];\n\n /**\n * Join a faction.\n * @remarks\n * RAM cost: 3 GB * 16/4/1\n *\n *\n * This function will automatically accept an invitation from a faction and join it.\n *\n * @param faction - Name of faction to join.\n * @returns True if player joined the faction, and false otherwise.\n */\n joinFaction(faction: string): boolean;\n\n /**\n * Work for a faction.\n * @remarks\n * RAM cost: 3 GB * 16/4/1\n *\n *\n * This function will automatically set you to start working for the specified faction.\n * Obviously, you must be a member of the faction or else this function will fail. If\n * you are already in the middle of some “working” action (such as working for a company,\n * training at a gym, or creating a program), then running this function will automatically\n * cancel that action and give you your earnings.\n *\n * This function will return true if you successfully start working for the specified faction, and false otherwise.\n *\n * Note that when you are working for a faction, you will not actually receive your earnings (reputation, experience) until you FINISH the action.\n *\n * @example\n * ```ts\n * // NS1:\n * //If you only want to work until you get 100,000 faction reputation. One small hack to get around this is to continuously restart the action to receive your earnings:\n * while (getFactionRep(FACTION NAME) < VALUE) {\n * workForFaction(FACNAME, WORKTYPE);\n * sleep(60000);\n * }\n * //This way, your faction reputation will be updated every minute.\n * ```\n * @example\n * ```ts\n * // NS2:\n * //If you only want to work until you get 100,000 faction reputation. One small hack to get around this is to continuously restart the action to receive your earnings:\n * while (ns.getFactionRep(FACTION NAME) < VALUE) {\n * ns.workForFaction(FACNAME, WORKTYPE);\n * await ns.sleep(60000);\n * }\n * //This way, your faction reputation will be updated every minute.\n * ```\n * @param faction - Name of faction to work for.\n * @param workType - Type of work to perform for the faction.\n * @param focus - Acquire player focus on this work operation. Optional. Defaults to true.\n * @returns True if the player starts working, and false otherwise.\n */\n workForFaction(faction: string, workType: string, focus?: boolean): boolean;\n\n /**\n * Get faction reputation.\n * @remarks\n * RAM cost: 1 GB * 16/4/1\n *\n *\n * This function returns the amount of reputation you have for the specified faction.\n *\n * @param faction - Name of faction to work for.\n * @returns Amount of reputation you have for the specified faction.\n */\n getFactionRep(faction: string): number;\n\n /**\n * Get faction favor.\n * @remarks\n * RAM cost: 1 GB * 16/4/1\n *\n *\n * This function returns the amount of favor you have for the specified faction.\n *\n * @param faction - Name of faction.\n * @returns Amount of favor you have for the specified faction.\n */\n getFactionFavor(faction: string): number;\n\n /**\n * Get faction favor gain.\n * @remarks\n * RAM cost: 0.75 GB * 16/4/1\n *\n *\n * This function returns the amount of favor you will gain for the specified\n * faction when you reset by installing Augmentations.\n *\n * @param faction - Name of faction.\n * @returns Amount of favor you will gain for the specified faction when you reset by installing Augmentations.\n */\n getFactionFavorGain(faction: string): number;\n\n /**\n * Donate to a faction.\n * @remarks\n * RAM cost: 5 GB * 16/4/1\n *\n *\n * Attempts to donate money to the specified faction in exchange for reputation.\n * Returns true if you successfully donate the money, and false otherwise.\n *\n * @param faction - Name of faction to donate to.\n * @param amount - Amount of money to donate.\n * @returns True if the money was donated, and false otherwise.\n */\n donateToFaction(faction: string, amount: number): boolean;\n\n /**\n * Create a program.\n * @remarks\n * RAM cost: 5 GB * 16/4/1\n *\n *\n * This function will automatically set you to start working on creating the\n * specified program. If you are already in the middle of some “working” action\n * (such as working for a company, training at a gym, or taking a course), then\n * running this function will automatically cancel that action and give you your\n * earnings.\n *\n * This function returns true if you successfully start working on the specified program, and false otherwise.\n *\n * Note that creating a program using this function has the same hacking level requirements as it normally would. These level requirements are:\n * * BruteSSH.exe: 50\n * * FTPCrack.exe: 100\n * * relaySMTP.exe: 250\n * * HTTPWorm.exe: 500\n * * SQLInject.exe: 750\n * * DeepscanV1.exe: 75\n * * DeepscanV2.exe: 400\n * * ServerProfiler.exe: 75\n * * AutoLink.exe: 25\n *\n * @example\n * ```ts\n * // NS1:\n * createProgram(“relaysmtp.exe”);\n * ```\n * @example\n * ```ts\n * // NS2:\n * ns.createProgram(“relaysmtp.exe”);\n * ```\n * @param program - Name of program to create.\n * @param focus - Acquire player focus on this program creation. Optional. Defaults to true.\n * @returns True if you successfully start working on the specified program, and false otherwise.\n */\n createProgram(program: string, focus?: boolean): boolean;\n\n /**\n * Commit a crime.\n * @remarks\n * RAM cost: 5 GB * 16/4/1\n *\n *\n * This function is used to automatically attempt to commit crimes.\n * If you are already in the middle of some ‘working’ action (such\n * as working for a company or training at a gym), then running this\n * function will automatically cancel that action and give you your\n * earnings.\n *\n * This function returns the number of milliseconds it takes to attempt the\n * specified crime (e.g It takes 60 seconds to attempt the ‘Rob Store’ crime,\n * so running `commitCrime(\'rob store\')` will return 60,000).\n *\n * Warning: I do not recommend using the time returned from this function to try\n * and schedule your crime attempts. Instead, I would use the isBusy Singularity\n * function to check whether you have finished attempting a crime. This is because\n * although the game sets a certain crime to be X amount of seconds, there is no\n * guarantee that your browser will follow that time limit.\n *\n * @param crime - Name of crime to attempt.\n * @returns The number of milliseconds it takes to attempt the specified crime.\n */\n commitCrime(crime: string): number;\n\n /**\n * Get chance to successfully commit a crime.\n * @remarks\n * RAM cost: 5 GB * 16/4/1\n *\n *\n * This function returns your chance of success at commiting the specified crime.\n *\n * @param crime - Name of crime.\n * @returns Chance of success at commiting the specified crime.\n */\n getCrimeChance(crime: string): number;\n\n /**\n * Get stats related to a crime.\n * @remarks\n * RAM cost: 5 GB * 16/4/1\n *\n *\n * Returns the stats of the crime.\n *\n * @param crime - Name of crime. Not case-sensitive\n * @returns The stats of the crime.\n */\n getCrimeStats(crime: string): CrimeStats;\n\n /**\n * Get a list of owned augmentation.\n * @remarks\n * RAM cost: 5 GB * 16/4/1\n *\n *\n * This function returns an array containing the names (as strings) of all Augmentations you have.\n *\n * @param purchased - Specifies whether the returned array should include Augmentations you have purchased but not yet installed. By default, this argument is false which means that the return value will NOT have the purchased Augmentations.\n * @returns Array containing the names (as strings) of all Augmentations you have.\n */\n getOwnedAugmentations(purchased?: boolean): string[];\n\n /**\n * Get a list of augmentation available from a faction.\n * @remarks\n * RAM cost: 5 GB * 16/4/1\n *\n *\n * Returns an array containing the names (as strings) of all Augmentations\n * that are available from the specified faction.\n *\n * @param faction - Name of faction.\n * @returns Array containing the names of all Augmentations.\n */\n getAugmentationsFromFaction(faction: string): string[];\n\n /**\n * Get the pre-requisite of an augmentation.\n * @remarks\n * RAM cost: 5 GB * 16/4/1\n *\n *\n * This function returns an array with the names of the prerequisite Augmentation(s) for the specified Augmentation.\n * If there are no prerequisites, a blank array is returned.\n *\n * @param augName - Name of Augmentation.\n * @returns Array with the names of the prerequisite Augmentation(s) for the specified Augmentation.\n */\n getAugmentationPrereq(augName: string): string[];\n\n /**\n * Get the price and reputation of an augmentation.\n * @deprecated use getAugmentationPrice getAugmentationRepCost\n * @remarks\n * RAM cost: 5 GB * 16/4/1\n *\n *\n * This function returns an array with two elements that gives the cost for\n * the specified Augmentation. The first element in the returned array is the\n * reputation requirement of the Augmentation, and the second element is the\n * money cost.\n *\n * If an invalid Augmentation name is passed in for the augName argument, this\n * function will return the array [-1, -1].\n *\n * @param augName - Name of Augmentation.\n * @returns Array with first element as a reputation requirement and second element as the money cost.\n */\n getAugmentationCost(augName: string): [number, number];\n\n /**\n * Get price of an augmentation.\n * @remarks\n * RAM cost: 2.5 GB * 16/4/1\n *\n *\n * @param augName - Name of Augmentation.\n * @returns Price of the augmentation.\n */\n getAugmentationPrice(augName: string): number;\n\n /**\n * Get reputation requirement of an augmentation.\n * @remarks\n * RAM cost: 2.5 GB * 16/4/1\n *\n *\n * @param augName - Name of Augmentation.\n * @returns Reputation requirement of the augmentation.\n */\n getAugmentationRepReq(augName: string): number;\n\n /**\n * Purchase an augmentation\n * @remarks\n * RAM cost: 5 GB * 16/4/1\n *\n *\n * This function will try to purchase the specified Augmentation through the given Faction.\n *\n * This function will return true if the Augmentation is successfully purchased, and false otherwise.\n *\n * @param faction - Name of faction to purchase Augmentation from.\n * @param augmentation - Name of Augmentation to purchase.\n * @returns True if the Augmentation is successfully purchased, and false otherwise.\n */\n purchaseAugmentation(faction: string, augmentation: string): boolean;\n\n /**\n * Get the stats of an augmentation.\n * @remarks\n * RAM cost: 5 GB * 16/4/1\n *\n *\n * This function returns augmentation stats.\n *\n * @param name - Name of Augmentation. CASE-SENSITIVE.\n * @returns Augmentation stats.\n */\n getAugmentationStats(name: string): AugmentationStats;\n\n /**\n * Install your purchased augmentations.\n * @remarks\n * RAM cost: 5 GB * 16/4/1\n *\n *\n * This function will automatically install your Augmentations, resetting the game as usual. If you do not own uninstalled Augmentations then the game will not reset.\n *\n * @param cbScript - This is a script that will automatically be run after Augmentations are installed (after the reset). This script will be run with no arguments and 1 thread. It must be located on your home computer.\n */\n installAugmentations(cbScript?: string): void;\n\n /**\n * Returns an object with the Player’s stats.\n * @deprecated use getPlayer\n *\n * @remarks\n * RAM cost: 0.5 GB * 16/4/1\n *\n *\n * @example\n * ```ts\n * res = getStats();\n * print(\'My charisma level is: \' + res.charisma);\n * ```\n * @returns Object with the Player’s stats.\n */\n getStats(): PlayerSkills;\n\n /**\n * Returns an object with various information about your character.\n * @deprecated use getPlayer\n *\n * @remarks\n * RAM cost: 0.5 GB * 16/4/1\n *\n *\n * @returns Object with various information about your character.\n */\n getCharacterInformation(): CharacterInfo;\n\n /**\n * Hospitalize the player.\n * @remarks\n * RAM cost: 0.25 GB * 16/4/1\n */\n hospitalize(): void;\n\n /**\n * Soft reset the game.\n * @remarks\n * RAM cost: 5 GB * 16/4/1\n *\n *\n * This function will perform a reset even if you don’t have any augmentation installed.\n *\n * @param cbScript - This is a script that will automatically be run after Augmentations are installed (after the reset). This script will be run with no arguments and 1 thread. It must be located on your home computer.\n */\n softReset(cbScript: string): void;\n\n /**\n * Go to a location.\n * @remarks\n * RAM cost: 5 GB * 16/4/1\n *\n *\n * Move the player to a specific location.\n *\n * @param locationName - Name of the location.\n * @returns True if the player was moved there, false otherwise.\n */\n goToLocation(locationName: string): boolean;\n\n /**\n * Get the current server.\n * @remarks\n * RAM cost: 2 GB * 16/4/1\n *\n *\n * @returns Name of the current server.\n */\n getCurrentServer(): string;\n\n /**\n * Connect to a server.\n * @remarks\n * RAM cost: 2 GB * 16/4/1\n *\n *\n * Run the connect HOSTNAME command in the terminal. Can only connect to neighbors.\n *\n * @returns True if the connect command was successful, false otherwise.\n */\n connect(hostname: string): boolean;\n\n /**\n * Run the hack command in the terminal.\n * @remarks\n * RAM cost: 2 GB * 16/4/1\n *\n *\n * @returns Amount of money stolen by manual hacking.\n */\n manualHack(): Promise<number>;\n\n /**\n * Run the backdoor command in the terminal.\n * @remarks\n * RAM cost: 2 GB * 16/4/1\n *\n *\n * @returns Promise waiting for the installation to finish.\n */\n installBackdoor(): Promise<void>;\n\n /**\n * Check if the player is focused.\n * @remarks\n * RAM cost: 0.1 GB * 16/4/1\n *\n *\n * @returns True if the player is focused.\n */\n isFocused(): boolean;\n\n /**\n * Set the players focus.\n * @remarks\n * RAM cost: 0.1 GB * 16/4/1\n *\n * @returns True if the focus was changed.\n */\n setFocus(focus: boolean): boolean;\n\n /**\n * Get a list of programs offered on the dark web.\n * @remarks\n * RAM cost: 1 GB * 16/4/1\n *\n *\n * This function allows the player to get a list of programs available for purchase\n * on the dark web. Players MUST have purchased Tor to get the list of programs\n * available. If Tor has not been purchased yet, this function will return an\n * empty list.\n *\n * @example\n * ```ts\n * // NS1\n * getDarkwebPrograms();\n * // returns [\'BruteSSH.exe\', \'FTPCrack.exe\'...etc]\n * ```\n * @example\n * ```ts\n * // NS2\n * ns.getDarkwebPrograms();\n * // returns [\'BruteSSH.exe\', \'FTPCrack.exe\'...etc]\n * ```\n * @returns - a list of programs available for purchase on the dark web, or [] if Tor has not\n * been purchased\n */\n getDarkwebPrograms(): string[];\n\n /**\n * Check the price of an exploit on the dark web\n * @remarks\n * RAM cost: 0.5 GB * 16/4/1\n *\n *\n * This function allows you to check the price of a darkweb exploit/program.\n * You MUST have a TOR router in order to use this function. The price returned\n * by this function is the same price you would see with buy -l from the terminal.\n * Returns the cost of the program if it has not been purchased yet, 0 if it\n * has already been purchased, or -1 if Tor has not been purchased (and thus\n * the program/exploit is not available for purchase).\n *\n * If the program does not exist, an error is thrown.\n *\n *\n * @example\n * ```ts\n * // NS1\n * getDarkwebProgramCost("brutessh.exe");\n * ```\n * @example\n * ```ts\n * // NS2\n * ns.getDarkwebProgramCost("brutessh.exe");\n * ```\n * @param programName - Name of program to check the price of\n * @returns Price of the specified darkweb program\n * (if not yet purchased), 0 if it has already been purchased, or -1 if Tor has not been\n * purchased. Throws an error if the specified program/exploit does not exist\n */\n getDarkwebProgramCost(programName: string): number;\n\n /**\n * b1t_flum3 into a different BN.\n * @remarks\n * RAM cost: 16 GB * 16/4/1\n *\n * @param nextBN - BN number to jump to\n * @param callbackScript - Name of the script to launch in the next BN.\n */\n b1tflum3(nextBN: number, callbackScript?: string): void;\n\n /**\n * Destroy the w0r1d_d43m0n and move on to the next BN.\n * @remarks\n * RAM cost: 32 GB * 16/4/1\n *\n * You must have the special augment installed and the required hacking level\n * OR\n * Completed the final black op.\n *\n * @param nextBN - BN number to jump to\n * @param callbackScript - Name of the script to launch in the next BN.\n */\n destroyW0r1dD43m0n(nextBN: number, callbackScript?: string): void;\n}\n\n/**\n * Hacknet API\n * @remarks\n * Not all these functions are immediately available.\n * @public\n */\nexport interface Hacknet {\n /**\n * Get the number of hacknet nodes you own.\n * @remarks\n * RAM cost: 0 GB\n *\n * Returns the number of Hacknet Nodes you own.\n *\n * @returns number of hacknet nodes.\n */\n numNodes(): number;\n\n /**\n * Get the maximum number of hacknet nodes.\n * @remarks\n * RAM cost: 0 GB\n *\n * @returns maximum number of hacknet nodes.\n */\n maxNumNodes(): number;\n\n /**\n * Purchase a new hacknet node.\n * @remarks\n * RAM cost: 0 GB\n *\n * Purchases a new Hacknet Node. Returns a number with the index of the\n * Hacknet Node. This index is equivalent to the number at the end of\n * the Hacknet Node’s name (e.g The Hacknet Node named `hacknet-node-4`\n * will have an index of 4).\n *\n * If the player cannot afford to purchase a new Hacknet Node then the function will return -1.\n *\n * @returns The index of the Hacknet Node or if the player cannot afford to purchase a new Hacknet Node the function will return -1.\n */\n purchaseNode(): number;\n\n /**\n * Get the price of the next hacknet node.\n * @remarks\n * RAM cost: 0 GB\n *\n * Returns the cost of purchasing a new Hacknet Node.\n *\n * @returns Cost of purchasing a new Hacknet Node.\n */\n getPurchaseNodeCost(): number;\n\n /**\n * Get the stats of a hacknet node.\n * @remarks\n * RAM cost: 0 GB\n *\n * Returns an object containing a variety of stats about the specified Hacknet Node.\n *\n * Note that for Hacknet Nodes, production refers to the amount of money the node generates.\n * For Hacknet Servers (the upgraded version of Hacknet Nodes), production refers to the\n * amount of hashes the node generates.\n *\n * @param index - Index/Identifier of Hacknet Node\n * @returns Object containing a variety of stats about the specified Hacknet Node.\n */\n getNodeStats(index: number): NodeStats;\n\n /**\n * Upgrade the level of a hacknet node.\n * @remarks\n * RAM cost: 0 GB\n *\n * Tries to upgrade the level of the specified Hacknet Node by n.\n *\n * Returns true if the Hacknet Node’s level is successfully upgraded by n\n * or if it is upgraded by some positive amount and the Node reaches its max level.\n *\n * Returns false otherwise.\n *\n * @param index - Index/Identifier of Hacknet Node.\n * @param n - Number of levels to purchase. Must be positive. Rounded to nearest integer.\n * @returns True if the Hacknet Node’s level is successfully upgraded, false otherwise.\n */\n upgradeLevel(index: number, n: number): boolean;\n\n /**\n * Upgrade the RAM of a hacknet node.\n * @remarks\n * RAM cost: 0 GB\n *\n * Tries to upgrade the specified Hacknet Node’s RAM n times.\n * Note that each upgrade doubles the Node’s RAM.\n * So this is equivalent to multiplying the Node’s RAM by 2 n.\n *\n * Returns true if the Hacknet Node’s RAM is successfully upgraded n times\n * or if it is upgraded some positive number of times and the Node reaches it max RAM.\n *\n * Returns false otherwise.\n *\n * @param index - Index/Identifier of Hacknet Node.\n * @param n - Number of times to upgrade RAM. Must be positive. Rounded to nearest integer.\n * @returns True if the Hacknet Node’s ram is successfully upgraded, false otherwise.\n */\n upgradeRam(index: number, n: number): boolean;\n\n /**\n * Upgrade the core of a hacknet node.\n * @remarks\n * RAM cost: 0 GB\n *\n * Tries to purchase n cores for the specified Hacknet Node.\n *\n * Returns true if it successfully purchases n cores for the Hacknet Node\n * or if it purchases some positive amount and the Node reaches its max number of cores.\n *\n * Returns false otherwise.\n *\n * @param index - Index/Identifier of Hacknet Node.\n * @param n - Number of cores to purchase. Must be positive. Rounded to nearest integer.\n * @returns True if the Hacknet Node’s cores are successfully purchased, false otherwise.\n */\n upgradeCore(index: number, n: number): boolean;\n\n /**\n * Upgrade the cache of a hacknet node.\n * @remarks\n * RAM cost: 0 GB\n *\n * This function is only applicable for Hacknet Servers (the upgraded version of a Hacknet Node).\n *\n * Tries to upgrade the specified Hacknet Server’s cache n times.\n *\n * Returns true if it successfully upgrades the Server’s cache n times,\n * or if it purchases some positive amount and the Server reaches its max cache level.\n *\n * Returns false otherwise.\n *\n * @param index - Index/Identifier of Hacknet Node.\n * @param n - Number of cache levels to purchase. Must be positive. Rounded to nearest integer.\n * @returns True if the Hacknet Node’s cores are successfully purchased, false otherwise.\n */\n upgradeCache(index: number, n: number): boolean;\n\n /**\n * Calculate the cost of upgrading hacknet node levels.\n * @remarks\n * RAM cost: 0 GB\n *\n * Returns the cost of upgrading the specified Hacknet Node by n levels.\n *\n * If an invalid value for n is provided, then this function returns 0.\n * If the specified Hacknet Node is already at max level, then Infinity is returned.\n *\n * @param index - Index/Identifier of Hacknet Node.\n * @param n - Number of levels to upgrade. Must be positive. Rounded to nearest integer.\n * @returns Cost of upgrading the specified Hacknet Node.\n */\n getLevelUpgradeCost(index: number, n: number): number;\n\n /**\n * Calculate the cost of upgrading hacknet node RAM.\n * @remarks\n * RAM cost: 0 GB\n *\n * Returns the cost of upgrading the RAM of the specified Hacknet Node n times.\n *\n * If an invalid value for n is provided, then this function returns 0.\n * If the specified Hacknet Node is already at max level, then Infinity is returned.\n *\n * @param index - Index/Identifier of Hacknet Node.\n * @param n - Number of times to upgrade RAM. Must be positive. Rounded to nearest integer.\n * @returns Cost of upgrading the specified Hacknet Node\'s ram.\n */\n getRamUpgradeCost(index: number, n: number): number;\n\n /**\n * Calculate the cost of upgrading hacknet node cores.\n * @remarks\n * RAM cost: 0 GB\n *\n * Returns the cost of upgrading the number of cores of the specified Hacknet Node by n.\n *\n * If an invalid value for n is provided, then this function returns 0.\n * If the specified Hacknet Node is already at max level, then Infinity is returned.\n *\n * @param index - Index/Identifier of Hacknet Node.\n * @param n - Number of times to upgrade cores. Must be positive. Rounded to nearest integer.\n * @returns Cost of upgrading the specified Hacknet Node\'s number of cores.\n */\n getCoreUpgradeCost(index: number, n: number): number;\n\n /**\n * Calculate the cost of upgrading hacknet node cache.\n * @remarks\n * RAM cost: 0 GB\n *\n * This function is only applicable for Hacknet Servers (the upgraded version of a Hacknet Node).\n *\n * Returns the cost of upgrading the cache level of the specified Hacknet Server by n.\n *\n * If an invalid value for n is provided, then this function returns 0.\n * If the specified Hacknet Node is already at max level, then Infinity is returned.\n *\n * @param index - Index/Identifier of Hacknet Node.\n * @param n - Number of times to upgrade cache. Must be positive. Rounded to nearest integer.\n * @returns Cost of upgrading the specified Hacknet Node\'s cache.\n */\n getCacheUpgradeCost(index: number, n: number): number;\n\n /**\n * Get the total number of hashes stored.\n * @remarks\n * RAM cost: 0 GB\n *\n * This function is only applicable for Hacknet Servers (the upgraded version of a Hacknet Node).\n *\n * Returns the number of hashes you have.\n *\n * @returns Number of hashes you have.\n */\n numHashes(): number;\n\n /**\n * Get the maximum number of hashes you can store.\n * @remarks\n * RAM cost: 0 GB\n *\n * This function is only applicable for Hacknet Servers (the upgraded version of a Hacknet Node).\n *\n * Returns the number of hashes you can store.\n *\n * @returns Number of hashes you can store.\n */\n hashCapacity(): number;\n\n /**\n * Get the cost of a hash upgrade.\n * @remarks\n * RAM cost: 0 GB\n *\n * This function is only applicable for Hacknet Servers (the upgraded version of a Hacknet Node).\n *\n * Returns the number of hashes required for the specified upgrade. The name of the upgrade must be an exact match.\n *\n * @example\n * ```ts\n * // NS1:\n * var upgradeName = "Sell for Corporation Funds";\n * if (hacknet.numHashes() > hacknet.hashCost(upgradeName)) {\n * hacknet.spendHashes(upgradeName);\n * }\n * ```\n * @example\n * ```ts\n * // NS2:\n * const upgradeName = "Sell for Corporation Funds";\n * if (ns.hacknet.numHashes() > ns.hacknet.hashCost(upgradeName)) {\n * ns.hacknet.spendHashes(upgradeName);\n * }\n * ```\n * @param upgName - Name of the upgrade of Hacknet Node.\n * @returns Number of hashes required for the specified upgrade.\n */\n hashCost(upgName: string): number;\n\n /**\n * Purchase a hash upgrade.\n * @remarks\n * RAM cost: 0 GB\n *\n * This function is only applicable for Hacknet Servers (the upgraded version of a Hacknet Node).\n *\n * Spend the hashes generated by your Hacknet Servers on an upgrade.\n * Returns a boolean value - true if the upgrade is successfully purchased, and false otherwise.\n *\n * The name of the upgrade must be an exact match.\n * The `upgTarget` argument is used for upgrades such as `Reduce Minimum Security`, which applies to a specific server.\n * In this case, the `upgTarget` argument must be the hostname of the server.\n *\n * @example\n * ```ts\n * // NS1:\n * hacknet.spendHashes("Sell for Corporation Funds");\n * hacknet.spendHashes("Increase Maximum Money", "foodnstuff");\n * ```\n * @example\n * ```ts\n * NS2:\n * ns.hacknet.spendHashes("Sell for Corporation Funds");\n * ns.hacknet.spendHashes("Increase Maximum Money", "foodnstuff");\n * ```\n * @param upgName - Name of the upgrade of Hacknet Node.\n * @param upgTarget - Object to which upgrade applies. Required for certain upgrades.\n * @returns True if the upgrade is successfully purchased, and false otherwise..\n */\n spendHashes(upgName: string, upgTarget?: string): boolean;\n\n /**\n * Get the list of hash upgrades\n * @remarks\n * RAM cost: 0 GB\n *\n * This function is only applicable for Hacknet Servers (the upgraded version of a Hacknet Node).\n *\n * Returns the list of all available hash upgrades that can be used in the spendHashes function.\n * @example\n * ```ts\n * // NS1:\n * var upgrades = hacknet.getHashUpgrades(); // ["Sell for Money","Sell for Corporation Funds",...]\n * ```\n * @example\n * ```ts\n * // NS2:\n * const upgrades = ns.hacknet.getHashUpgrades(); // ["Sell for Money","Sell for Corporation Funds",...]\n * ```\n * @returns An array containing the available upgrades\n */\n getHashUpgrades(): string[];\n\n /**\n * Get the level of a hash upgrade.\n * @remarks\n * RAM cost: 0 GB\n *\n * This function is only applicable for Hacknet Servers (the upgraded version of a Hacknet Node).\n *\n * @returns Level of the upgrade.\n */\n getHashUpgradeLevel(upgName: string): number;\n\n /**\n * Get the multiplier to study.\n * @remarks\n * RAM cost: 0 GB\n *\n * This function is only applicable for Hacknet Servers (the upgraded version of a Hacknet Node).\n *\n * @returns Multiplier.\n */\n getStudyMult(): number;\n\n /**\n * Get the multiplier to training.\n * @remarks\n * RAM cost: 0 GB\n *\n * This function is only applicable for Hacknet Servers (the upgraded version of a Hacknet Node).\n *\n * @returns Multiplier.\n */\n getTrainingMult(): number;\n}\n\n/**\n * Bladeburner API\n * @remarks\n * You have to be employed in the Bladeburner division and be in BitNode-7\n * or have Source-File 7 in order to use this API.\n * @public\n */\nexport interface Bladeburner {\n /**\n * List all contracts.\n * @remarks\n * RAM cost: 0.4 GB\n *\n * Returns an array of strings containing the names of all Bladeburner contracts.\n *\n * @returns Array of strings containing the names of all Bladeburner contracts.\n */\n getContractNames(): string[];\n\n /**\n * List all operations.\n * @remarks\n * RAM cost: 0.4 GB\n *\n * Returns an array of strings containing the names of all Bladeburner operations.\n *\n * @returns Array of strings containing the names of all Bladeburner operations.\n */\n getOperationNames(): string[];\n\n /**\n * List all black ops.\n * @remarks\n * RAM cost: 0.4 GB\n *\n * Returns an array of strings containing the names of all Bladeburner Black Ops.\n *\n * @returns Array of strings containing the names of all Bladeburner Black Ops.\n */\n getBlackOpNames(): string[];\n\n /**\n * List all general actions.\n * @remarks\n * RAM cost: 0.4 GB\n *\n * Returns an array of strings containing the names of all general Bladeburner actions.\n *\n * @returns Array of strings containing the names of all general Bladeburner actions.\n */\n getGeneralActionNames(): string[];\n\n /**\n * List all skills.\n * @remarks\n * RAM cost: 0.4 GB\n *\n * Returns an array of strings containing the names of all general Bladeburner skills.\n *\n * @returns Array of strings containing the names of all general Bladeburner skills.\n */\n getSkillNames(): string[];\n\n /**\n * Start an action.\n * @remarks\n * RAM cost: 4 GB\n *\n * Attempts to start the specified Bladeburner action.\n * Returns true if the action was started successfully, and false otherwise.\n *\n * @param type - Type of action.\n * @param name - Name of action. Must be an exact match\n * @returns True if the action was started successfully, and false otherwise.\n */\n startAction(type: string, name: string): boolean;\n\n /**\n * Stop current action.\n * @remarks\n * RAM cost: 2 GB\n *\n * Stops the current Bladeburner action.\n *\n */\n stopBladeburnerAction(): void;\n\n /**\n * Get current action.\n * @remarks\n * RAM cost: 1 GB\n *\n * Returns an object that represents the player’s current Bladeburner action.\n * If the player is not performing an action, the function will return an object with the ‘type’ property set to “Idle”.\n *\n * @returns Object that represents the player’s current Bladeburner action.\n */\n getCurrentAction(): BladeburnerCurAction;\n\n /**\n * Get the time to complete an action.\n * @remarks\n * RAM cost: 4 GB\n *\n * Returns the number of milliseconds it takes to complete the specified action\n *\n * @param type - Type of action.\n * @param name - Name of action. Must be an exact match.\n * @returns Number of milliseconds it takes to complete the specified action.\n */\n getActionTime(type: string, name: string): number;\n\n /**\n * Get the time elapsed on current action.\n * @remarks\n * RAM cost: 4 GB\n *\n * Returns the number of milliseconds already spent on the current action.\n *\n * @returns Number of milliseconds already spent on the current action.\n */\n getActionCurrentTime(): number;\n\n /**\n * Get estimate success chance of an action.\n * @remarks\n * RAM cost: 4 GB\n *\n * Returns the estimated success chance for the specified action.\n * This chance is returned as a decimal value, NOT a percentage\n * (e.g. if you have an estimated success chance of 80%, then this function will return 0.80, NOT 80).\n *\n * @param type - Type of action.\n * @param name - Name of action. Must be an exact match.\n * @returns Estimated success chance for the specified action.\n */\n getActionEstimatedSuccessChance(type: string, name: string): [number, number];\n\n /**\n * Get the reputation gain of an action.\n * @remarks\n * RAM cost: 4 GB\n *\n * Returns the average Bladeburner reputation gain for successfully\n * completing the specified action.\n * Note that this value is an ‘average’ and the real reputation gain may vary slightly from this value.\n *\n * @param type - Type of action.\n * @param name - Name of action. Must be an exact match.\n * @param level - Optional action level at which to calculate the gain\n * @returns Average Bladeburner reputation gain for successfully completing the specified action.\n */\n getActionRepGain(type: string, name: string, level: number): number;\n\n /**\n * Get action count remaining.\n * @remarks\n * RAM cost: 4 GB\n *\n * Returns the remaining count of the specified action.\n *\n * Note that this is meant to be used for Contracts and Operations.\n * This function will return ‘Infinity’ for actions such as Training and Field Analysis.\n * This function will return 1 for BlackOps not yet completed regardless of whether\n * the player has the required rank to attempt the mission or not.\n *\n * @param type - Type of action.\n * @param name - Name of action. Must be an exact match.\n * @returns Remaining count of the specified action.\n */\n getActionCountRemaining(type: string, name: string): number;\n\n /**\n * Get the maximum level of an action.\n * @remarks\n * RAM cost: 4 GB\n *\n * Returns the maximum level for this action.\n *\n * Returns -1 if an invalid action is specified.\n *\n * @param type - Type of action.\n * @param name - Name of action. Must be an exact match.\n * @returns Maximum level of the specified action.\n */\n getActionMaxLevel(type: string, name: string): number;\n\n /**\n * Get the current level of an action.\n * @remarks\n * RAM cost: 4 GB\n *\n * Returns the current level of this action.\n *\n * Returns -1 if an invalid action is specified.\n *\n * @param type - Type of action.\n * @param name - Name of action. Must be an exact match.\n * @returns Current level of the specified action.\n */\n getActionCurrentLevel(type: string, name: string): number;\n\n /**\n * Get whether an action is set to autolevel.\n * @remarks\n * RAM cost: 4 GB\n *\n * Return a boolean indicating whether or not this action is currently set to autolevel.\n *\n * Returns false if an invalid action is specified.\n *\n * @param type - Type of action.\n * @param name - Name of action. Must be an exact match.\n * @returns True if the action is set to autolevel, and false otherwise.\n */\n getActionAutolevel(type: string, name: string): boolean;\n\n /**\n * Set an action autolevel.\n * @remarks\n * RAM cost: 4 GB\n *\n * Enable/disable autoleveling for the specified action.\n *\n * @param type - Type of action.\n * @param name - Name of action. Must be an exact match.\n * @param autoLevel - Whether or not to autolevel this action\n */\n setActionAutolevel(type: string, name: string, autoLevel: boolean): void;\n\n /**\n * Set the level of an action.\n * @remarks\n * RAM cost: 4 GB\n *\n * Set the level for the specified action.\n *\n * @param type - Type of action.\n * @param name - Name of action. Must be an exact match.\n * @param level - Level to set this action to.\n */\n setActionLevel(type: string, name: string, level: number): void;\n\n /**\n * Get player bladeburner rank.\n * @remarks\n * RAM cost: 4 GB\n *\n * Returns the player’s Bladeburner Rank.\n *\n * @returns Player’s Bladeburner Rank.\n */\n getRank(): number;\n\n /**\n * Get black op required rank.\n * @remarks\n * RAM cost: 2 GB\n *\n * Returns the rank required to complete this BlackOp.\n *\n * Returns -1 if an invalid action is specified.\n *\n * @param name - Name of BlackOp. Must be an exact match.\n * @returns Rank required to complete this BlackOp.\n */\n getBlackOpRank(name: string): number;\n\n /**\n * Get bladeburner skill points.\n * @remarks\n * RAM cost: 4 GB\n *\n * Returns the number of Bladeburner skill points you have.\n *\n * @returns Number of Bladeburner skill points you have.\n */\n getSkillPoints(): number;\n\n /**\n * Get skill level.\n * @remarks\n * RAM cost: 4 GB\n *\n * This function returns your level in the specified skill.\n *\n * The function returns -1 if an invalid skill name is passed in.\n *\n * @param skillName - Name of skill. Case-sensitive and must be an exact match\n * @returns Level in the specified skill.\n */\n getSkillLevel(name: string): number;\n\n /**\n * Get cost to upgrade skill.\n * @remarks\n * RAM cost: 4 GB\n *\n * This function returns the number of skill points needed to upgrade the specified skill.\n *\n * The function returns -1 if an invalid skill name is passed in.\n *\n * @param skillName - Name of skill. Case-sensitive and must be an exact match\n * @returns Number of skill points needed to upgrade the specified skill.\n */\n getSkillUpgradeCost(name: string): number;\n\n /**\n * Upgrade skill.\n * @remarks\n * RAM cost: 4 GB\n *\n * Attempts to upgrade the specified Bladeburner skill.\n *\n * Returns true if the skill is successfully upgraded, and false otherwise.\n *\n * @param skillName - Name of skill to be upgraded. Case-sensitive and must be an exact match\n * @returns true if the skill is successfully upgraded, and false otherwise.\n */\n upgradeSkill(name: string): boolean;\n\n /**\n * Get team size.\n * @remarks\n * RAM cost: 4 GB\n *\n * Returns the number of Bladeburner team members you have assigned to the specified action.\n *\n * Setting a team is only applicable for Operations and BlackOps. This function will return 0 for other action types.\n *\n * @param type - Type of action.\n * @param name - Name of action. Must be an exact match.\n * @returns Number of Bladeburner team members that were assigned to the specified action.\n */\n getTeamSize(type: string, name: string): number;\n\n /**\n * Set team size.\n * @remarks\n * RAM cost: 4 GB\n *\n * Set the team size for the specified Bladeburner action.\n *\n * Returns the team size that was set, or -1 if the function failed.\n *\n * @param type - Type of action.\n * @param name - Name of action. Must be an exact match.\n * @param size - Number of team members to set. Will be converted using Math.round().\n * @returns Number of Bladeburner team members you assigned to the specified action.\n */\n setTeamSize(type: string, name: string, size: number): number;\n\n /**\n * Get estimated population in city.\n * @remarks\n * RAM cost: 4 GB\n *\n * Returns the estimated number of Synthoids in the specified city,\n * or -1 if an invalid city was specified.\n *\n * @param cityName - Name of city. Case-sensitive\n * @returns Estimated number of Synthoids in the specified city.\n */\n getCityEstimatedPopulation(name: string): number;\n\n /**\n * Get number of communities in a city.\n * @remarks\n * RAM cost: 4 GB\n *\n * Returns the estimated number of Synthoid communities in the specified city,\n * or -1 if an invalid city was specified.\n *\n * @param cityName - Name of city. Case-sensitive\n * @returns Number of Synthoids communities in the specified city.\n */\n getCityCommunities(name: string): number;\n\n /**\n * Get chaos of a city.\n * @remarks\n * RAM cost: 4 GB\n *\n * Returns the chaos in the specified city,\n * or -1 if an invalid city was specified.\n *\n * @param cityName - Name of city. Case-sensitive\n * @returns Chaos in the specified city.\n */\n getCityChaos(name: string): number;\n\n /**\n * Get current city.\n * @remarks\n * RAM cost: 4 GB\n *\n * Returns the city that the player is currently in (for Bladeburner).\n *\n * @returns City that the player is currently in (for Bladeburner).\n */\n getCity(): string;\n\n /**\n * Travel to another city in bladeburner.\n * @remarks\n * RAM cost: 4 GB\n * Attempts to switch to the specified city (for Bladeburner only).\n *\n * Returns true if successful, and false otherwise\n *\n * @param cityName - Name of city. Case-sensitive\n * @returns true if successful, and false otherwise\n */\n switchCity(name: string): boolean;\n\n /**\n * Get bladeburner stamina.\n * @remarks\n * RAM cost: 4 GB\n * Returns an array with two elements:\n * * [Current stamina, Max stamina]\n * @example\n * ```ts\n * // NS1:\n * function getStaminaPercentage() {\n * var res = bladeburner.getStamina();\n * return res[0] / res[1];\n * }\n * ```\n * @example\n * ```ts\n * // NS2:\n * function getStaminaPercentage() {\n * const [current, max] = ns.bladeburner.getStamina();\n * return current / max;\n * }\n * ```\n * @returns Array containing current stamina and max stamina.\n */\n getStamina(): [number, number];\n\n /**\n * Join the bladeburner faction.\n * @remarks\n * RAM cost: 4 GB\n * Attempts to join the Bladeburner faction.\n *\n * Returns true if you successfully join the Bladeburner faction, or if you are already a member.\n *\n * Returns false otherwise.\n *\n * @returns True if you successfully join the Bladeburner faction, or if you are already a member, false otherwise.\n */\n joinBladeburnerFaction(): boolean;\n\n /**\n * Join the bladeburner division.\n * @remarks\n * RAM cost: 4 GB\n *\n * Attempts to join the Bladeburner division.\n *\n * Returns true if you successfully join the Bladeburner division, or if you are already a member.\n *\n * Returns false otherwise.\n *\n * @returns True if you successfully join the Bladeburner division, or if you are already a member, false otherwise.\n */\n joinBladeburnerDivision(): boolean;\n\n /**\n * Get bladeburner bonus time.\n * @remarks\n * RAM cost: 0 GB\n *\n * Returns the amount of accumulated “bonus time” (milliseconds) for the Bladeburner mechanic.\n *\n * “Bonus time” is accumulated when the game is offline or if the game is inactive in the browser.\n *\n * “Bonus time” makes the game progress faster, up to 5x the normal speed.\n * For example, if an action takes 30 seconds to complete but you’ve accumulated over\n * 30 seconds in bonus time, then the action will only take 6 seconds in real life to complete.\n *\n * @returns Amount of accumulated “bonus time” (milliseconds) for the Bladeburner mechanic.\n */\n getBonusTime(): number;\n}\n\n/**\n * Coding Contract API\n * @public\n */\nexport interface CodingContract {\n /**\n * Attempts a coding contract.\n * @remarks\n * RAM cost: 10 GB\n *\n * Attempts to solve the Coding Contract with the provided solution.\n *\n * @param answer - Solution for the contract.\n * @param filename - Filename of the contract.\n * @param host - Host of the server containing the contract. Optional. Defaults to current server if not provided.\n * @param opts - Optional parameters for configuring function behavior.\n * @returns True if the solution was correct, false otherwise. If the returnReward option is configured, then the function will instead return a string. If the contract is successfully solved, the string will contain a description of the contract’s reward. Otherwise, it will be an empty string.\n */\n attempt(answer: string[] | number, filename: string, host?: string, opts?: CodingAttemptOptions): boolean | string;\n\n /**\n * Get the type of a coding contract.\n * @remarks\n * RAM cost: 5 GB\n *\n * Returns a name describing the type of problem posed by the Coding Contract.\n * (e.g. Find Largest Prime Factor, Total Ways to Sum, etc.)\n *\n * @param filename - Filename of the contract.\n * @param host - Host of the server containing the contract. Optional. Defaults to current server if not provided.\n * @returns Name describing the type of problem posed by the Coding Contract.\n */\n getContractType(filename: string, host?: string): string;\n\n /**\n * Get the description.\n * @remarks\n * RAM cost: 5 GB\n *\n * Get the full text description for the problem posed by the Coding Contract.\n *\n * @param filename - Filename of the contract.\n * @param host - Host of the server containing the contract. Optional. Defaults to current server if not provided.\n * @returns Contract’s text description.\n */\n getDescription(filename: string, host?: string): string;\n\n /**\n * Get the input data.\n * @remarks\n * RAM cost: 5 GB\n *\n * Get the data associated with the specific Coding Contract.\n * Note that this is not the same as the contract’s description.\n * This is just the data that the contract wants you to act on in order to solve\n *\n * @param filename - Filename of the contract.\n * @param host - Host of the server containing the contract. Optional. Defaults to current server if not provided.\n * @returns The specified contract’s data, data type depends on contract type.;\n */\n getData(filename: string, host?: string): any;\n\n /**\n * Get the number of attempt remaining.\n * @remarks\n * RAM cost: 2 GB\n *\n * Get the number of tries remaining on the contract before it self-destructs.\n *\n * @param filename - Filename of the contract.\n * @param host - Host of the server containing the contract. Optional. Defaults to current server if not provided.\n * @returns How many attempts are remaining for the contract;\n */\n getNumTriesRemaining(filename: string, host?: string): number;\n}\n\n/**\n * Gang API\n * @remarks\n * If you are not in BitNode-2, then you must have Source-File 2 in order to use this API.\n * @public\n */\nexport interface Gang {\n /**\n * Create a gang.\n * @remarks\n * RAM cost: 1GB\n *\n * Create a gang with the specified faction.\n * @returns True if the gang was created, false otherwise.\n */\n createGang(faction: string): boolean;\n\n /**\n * Check if you\'re in a gang.\n * @remarks\n * RAM cost: 1GB\n * @returns True if you\'re in a gang, false otherwise.\n */\n inGang(): boolean;\n\n /**\n * List all gang members.\n * @remarks\n * RAM cost: 1 GB\n *\n * Get the names of all Gang members\n *\n * @returns Names of all Gang members.\n */\n getMemberNames(): string[];\n\n /**\n * Get information about your gang.\n * @remarks\n * RAM cost: 2 GB\n *\n * Get general information about the gang.\n *\n * @returns Object containing general information about the gang.\n */\n getGangInformation(): GangGenInfo;\n\n /**\n * Get information about the other gangs.\n * @remarks\n * RAM cost: 2 GB\n *\n * Get territory and power information about all gangs.\n *\n * @returns Object containing territory and power information about all gangs.\n */\n getOtherGangInformation(): GangOtherInfo;\n\n /**\n * Get information about a specific gang member.\n * @remarks\n * RAM cost: 2 GB\n *\n * Get stat and equipment-related information about a Gang Member\n *\n * @param name - Name of member.\n * @returns Object containing stat and equipment-related information about a Gang Member.\n */\n getMemberInformation(name: string): GangMemberInfo;\n\n /**\n * Check if you can recruit a new gang member.\n * @remarks\n * RAM cost: 1 GB\n *\n * Returns boolean indicating whether a member can currently be recruited\n *\n * @returns True if a member can currently be recruited, false otherwise.\n */\n canRecruitMember(): boolean;\n\n /**\n * Recruit a new gang member.\n * @remarks\n * RAM cost: 2 GB\n *\n * Attempt to recruit a new gang member.\n *\n * Possible reasons for failure:\n * * Cannot currently recruit a new member\n * * There already exists a member with the specified name\n *\n * @param name - Name of member to recruit.\n * @returns True if the member was successfully recruited, false otherwise.\n */\n recruitMember(name: string): boolean;\n\n /**\n * List member task names.\n * @remarks\n * RAM cost: 1 GB\n *\n * Get the name of all valid tasks that Gang members can be assigned to.\n *\n * @returns All valid tasks that Gang members can be assigned to.\n */\n getTaskNames(): string[];\n\n /**\n * Set gang member to task.\n * @remarks\n * RAM cost: 2 GB\n *\n * Attempts to assign the specified Gang Member to the specified task.\n * If an invalid task is specified, the Gang member will be set to idle (“Unassigned”).\n *\n * @param memberName - Name of Gang member to assign.\n * @param taskName - Task to assign.\n * @returns True if the Gang Member was successfully assigned to the task, false otherwise.\n */\n setMemberTask(memberName: string, taskName: string): boolean;\n\n /**\n * Get stats of a task.\n * @remarks\n * RAM cost: 1 GB\n *\n * Get the stats of a gang task stats. This is typically used to evaluate which action should be executed next.\n *\n * @param name - Name of the task.\n * @returns Detailed stats of a task.\n */\n getTaskStats(name: string): GangTaskStats;\n\n /**\n * List equipment names.\n * @remarks\n * RAM cost: 1 GB\n *\n * Get the name of all possible equipment/upgrades you can purchase for your Gang Members.\n * This includes Augmentations.\n *\n * @returns Names of all Equipments/Augmentations.\n */\n getEquipmentNames(): string[];\n\n /**\n * Get cost of equipment.\n * @remarks\n * RAM cost: 2 GB\n *\n * Get the amount of money it takes to purchase a piece of Equipment or an Augmentation.\n * If an invalid Equipment/Augmentation is specified, this function will return Infinity.\n *\n * @param equipName - Name of equipment.\n * @returns Cost to purchase the specified Equipment/Augmentation (number). Infinity for invalid arguments\n */\n getEquipmentCost(equipName: string): number;\n\n /**\n * Get type of an equipment.\n * @remarks\n * RAM cost: 2 GB\n *\n * Get the specified equipment type.\n *\n * @param equipName - Name of equipment.\n * @returns Type of the equipment.\n */\n getEquipmentType(equipName: string): string;\n\n /**\n * Get stats of an equipment.\n * @remarks\n * RAM cost: 2 GB\n *\n * Get the specified equipment stats.\n *\n * @param equipName - Name of equipment.\n * @returns A dictionary containing the stats of the equipment.\n */\n getEquipmentStats(equipName: string): EquipmentStats;\n\n /**\n * Purchase an equipment for a gang member.\n * @remarks\n * RAM cost: 4 GB\n *\n * Attempt to purchase the specified Equipment/Augmentation for the specified Gang member.\n *\n * @param memberName - Name of Gang member to purchase the equipment for.\n * @param equipName - Name of Equipment/Augmentation to purchase.\n * @returns True if the equipment was successfully purchased. False otherwise\n */\n purchaseEquipment(memberName: string, equipName: string): boolean;\n\n /**\n * Ascend a gang member.\n * @remarks\n * RAM cost: 4 GB\n *\n * Ascend the specified Gang Member.\n *\n * @param memberName - Name of member to ascend.\n * @returns Object with info about the ascension results. undefined if ascension did not occur.\n */\n ascendMember(memberName: string): GangMemberAscension | undefined;\n\n /**\n * Get the result of an ascension without ascending.\n * @remarks\n * RAM cost: 2 GB\n *\n * Get the result of an ascension without ascending.\n *\n * @param memberName - Name of member.\n * @returns Object with info about the ascension results. undefined if ascension is impossible.\n */\n getAscensionResult(memberName: string): GangMemberAscension | undefined;\n\n /**\n * Enable/Disable territory warfare.\n * @remarks\n * RAM cost: 2 GB\n *\n * Set whether or not the gang should engage in territory warfare\n *\n * @param engage - Whether or not to engage in territory warfare.\n */\n setTerritoryWarfare(engage: boolean): void;\n\n /**\n * Get chance to win clash with other gang.\n * @remarks\n * RAM cost: 4 GB\n *\n * Returns the chance you have to win a clash with the specified gang. The chance is returned in decimal form, not percentage\n *\n * @param gangName - Target gang\n * @returns Chance you have to win a clash with the specified gang.\n */\n getChanceToWinClash(gangName: string): number;\n\n /**\n * Get bonus time.\n * @remarks\n * RAM cost: 0 GB\n *\n * Returns the amount of accumulated “bonus time” (milliseconds) for the Gang mechanic.\n *\n * “Bonus time” is accumulated when the game is offline or if the game is inactive in the browser.\n *\n * “Bonus time” makes the game progress faster, up to 10x the normal speed.\n *\n * @returns Bonus time for the Gang mechanic in milliseconds.\n */\n getBonusTime(): number;\n}\n\n/**\n * Sleeve API\n * @remarks\n * If you are not in BitNode-10, then you must have Source-File 10 in order to use this API.\n * @public\n */\nexport interface Sleeve {\n /**\n * Get the number of sleeves you own.\n * @remarks\n * RAM cost: 4 GB\n *\n * Return the number of duplicate sleeves the player has.\n *\n * @returns number of duplicate sleeves the player has.\n */\n getNumSleeves(): number;\n\n /**\n * Get the stats of a sleeve.\n * @remarks\n * RAM cost: 4 GB\n *\n * Return a structure containing the stats of the sleeve.\n *\n * @param sleeveNumber - Index of the sleeve to get stats of.\n * @returns Object containing the stats of the sleeve.\n */\n getSleeveStats(sleeveNumber: number): SleeveSkills;\n\n /**\n * Get information about a sleeve.\n * @remarks\n * RAM cost: 4 GB\n *\n * Return a struct containing tons of information about this sleeve\n *\n * @param sleeveNumber - Index of the sleeve to retrieve information.\n * @returns Object containing tons of information about this sleeve.\n */\n getInformation(sleeveNumber: number): SleeveInformation;\n\n /**\n * Get task of a sleeve.\n * @remarks\n * RAM cost: 4 GB\n *\n * Return the current task that the sleeve is performing. type is set to “Idle” if the sleeve isn’t doing anything.\n *\n * @param sleeveNumber - Index of the sleeve to retrieve task from.\n * @returns Object containing information the current task that the sleeve is performing.\n */\n getTask(sleeveNumber: number): SleeveTask;\n\n /**\n * Set a sleeve to shock recovery.\n * @remarks\n * RAM cost: 4 GB\n *\n * Return a boolean indicating whether or not this action was set successfully.\n *\n * @param sleeveNumber - Index of the sleeve to start recovery.\n * @returns True if this action was set successfully, false otherwise.\n */\n setToShockRecovery(sleeveNumber: number): boolean;\n\n /**\n * Set a sleeve to synchronize.\n * @remarks\n * RAM cost: 4 GB\n *\n * Return a boolean indicating whether or not this action was set successfully.\n *\n * @param sleeveNumber - Index of the sleeve to start synchronizing.\n * @returns True if this action was set successfully, false otherwise.\n */\n setToSynchronize(sleeveNumber: number): boolean;\n\n /**\n * Set a sleeve to commit crime.\n * @remarks\n * RAM cost: 4 GB\n *\n * Return a boolean indicating whether or not this action was set successfully.\n *\n * Returns false if an invalid action is specified.\n *\n * @param sleeveNumber - Index of the sleeve to start commiting crime.\n * @param name - Name of the crime. Must be an exact match.\n * @returns True if this action was set successfully, false otherwise.\n */\n setToCommitCrime(sleeveNumber: number, name: string): boolean;\n\n /**\n * Set a sleeve to work for a faction.\n * @remarks\n * RAM cost: 4 GB\n *\n * Return a boolean indicating whether or not the sleeve started working or this faction.\n *\n * @param sleeveNumber - Index of the sleeve to work for the faction.\n * @param factionName - Name of the faction to work for.\n * @param factionWorkType - Name of the action to perform for this faction.\n * @returns True if the sleeve started working on this faction, false otherwise, can also throw on errors\n */\n setToFactionWork(sleeveNumber: number, factionName: string, factionWorkType: string): boolean | undefined;\n\n /**\n * Set a sleeve to work for a company.\n * @remarks\n * RAM cost: 4 GB\n *\n * Return a boolean indicating whether or not the sleeve started working or this company.\n *\n * @param sleeveNumber - Index of the sleeve to work for the company.\n * @param companyName - Name of the company to work for.\n * @returns True if the sleeve started working on this company, false otherwise.\n */\n setToCompanyWork(sleeveNumber: number, companyName: string): boolean;\n\n /**\n * Set a sleeve to take a class at a university.\n * @remarks\n * RAM cost: 4 GB\n *\n * Return a boolean indicating whether or not this action was set successfully.\n *\n * @param sleeveNumber - Index of the sleeve to start taking class.\n * @param university - Name of the university to attend.\n * @param className - Name of the class to follow.\n * @returns True if this action was set successfully, false otherwise.\n */\n setToUniversityCourse(sleeveNumber: number, university: string, className: string): boolean;\n\n /**\n * Set a sleeve to workout at the gym.\n * @remarks\n * RAM cost: 4 GB\n *\n * Return a boolean indicating whether or not the sleeve started working out.\n *\n * @param sleeveNumber - Index of the sleeve to workout at the gym.\n * @param gymName - Name of the gym.\n * @param stat - Name of the stat to train.\n * @returns True if the sleeve started working out, false otherwise.\n */\n setToGymWorkout(sleeveNumber: number, gymName: string, stat: string): boolean;\n\n /**\n * Make a sleeve travel to another city.\n * @remarks\n * RAM cost: 4 GB\n *\n * Return a boolean indicating whether or not the sleeve reached destination.\n *\n * @param sleeveNumber - Index of the sleeve to travel.\n * @param cityName - Name of the destination city.\n * @returns True if the sleeve reached destination, false otherwise.\n */\n travel(sleeveNumber: number, cityName: string): boolean;\n\n /**\n * Get augmentations installed on a sleeve.\n * @remarks\n * RAM cost: 4 GB\n *\n * Return a list of augmentation names that this sleeve has installed.\n *\n * @param sleeveNumber - Index of the sleeve to retrieve augmentations from.\n * @returns List of augmentation names that this sleeve has installed.\n */\n getSleeveAugmentations(sleeveNumber: number): string[];\n\n /**\n * List purchasable augs for a sleeve.\n * @remarks\n * RAM cost: 4 GB\n *\n * Return a list of augmentations that the player can buy for this sleeve.\n *\n * @param sleeveNumber - Index of the sleeve to retrieve purchasable augmentations from.\n * @returns List of augmentations that the player can buy for this sleeve.\n */\n getSleevePurchasableAugs(sleeveNumber: number): AugmentPair[];\n\n /**\n * Purchase an aug for a sleeve.\n * @remarks\n * RAM cost: 4 GB\n *\n * Return true if the aug was purchased and installed on the sleeve.\n *\n * @param sleeveNumber - Index of the sleeve to buy an aug for.\n * @param augName - Name of the aug to buy. Must be an exact match.\n * @returns True if the aug was purchased and installed on the sleeve, false otherwise.\n */\n purchaseSleeveAug(sleeveNumber: number, augName: string): boolean;\n\n /**\n * Set a sleeve to perform bladeburner actions.\n * @remarks\n * RAM cost: 4 GB\n *\n * Return a boolean indicating whether or not the sleeve started working out.\n *\n * @param sleeveNumber - Index of the sleeve to workout at the gym.\n * @param action - Name of the action to be performed.\n * @param contract - Name of the contract if applicable.\n * @returns True if the sleeve started working out, false otherwise.\n */\n setToBladeburnerAction(sleeveNumber: number, action: string, contract?: string): boolean;\n}\n\n/**\n * Grafting API\n * @remarks\n * This API requires Source-File 10 to use.\n * @public\n */\nexport interface Grafting {\n /**\n * Retrieve the grafting cost of an aug.\n * @remarks\n * RAM cost: 3.75 GB\n *\n * @param augName - Name of the aug to check the price of. Must be an exact match.\n * @returns The cost required to graft the named augmentation.\n * @throws Will error if an invalid Augmentation name is provided.\n */\n getAugmentationGraftPrice(augName: string): number;\n\n /**\n * Retrieves the time required to graft an aug.\n * @remarks\n * RAM cost: 3.75 GB\n *\n * @param augName - Name of the aug to check the grafting time of. Must be an exact match.\n * @returns The time required, in millis, to graft the named augmentation.\n * @throws Will error if an invalid Augmentation name is provided.\n */\n getAugmentationGraftTime(augName: string): number;\n\n /**\n * Retrieves a list of Augmentations that can be grafted.\n * @remarks\n * RAM cost: 5 GB\n *\n * Note that this function returns a list of currently graftable Augmentations,\n * based off of the Augmentations that you already own.\n *\n * @returns An array of graftable Augmentations.\n */\n getGraftableAugmentations(): string[];\n\n /**\n * Begins grafting the named aug. You must be in New Tokyo to use this.\n * @remarks\n * RAM cost: 7.5 GB\n *\n * @param augName - The name of the aug to begin grafting. Must be an exact match.\n * @param focus - Acquire player focus on this Augmentation grafting. Optional. Defaults to true.\n * @returns True if the aug successfully began grafting, false otherwise (e.g. not enough money, or\n * invalid Augmentation name provided).\n * @throws Will error if called while you are not in New Tokyo.\n */\n graftAugmentation(augName: string, focus?: boolean): boolean;\n}\n\n/**\n * Skills formulas\n * @public\n */\ninterface SkillsFormulas {\n /**\n * Calculate skill level.\n * @param exp - experience for that skill\n * @param skillMult - Multiplier for that skill, defaults to 1.\n * @returns The calculated skill level.\n */\n calculateSkill(exp: number, skillMult?: number): number;\n /**\n * Calculate exp for skill level.\n * @param skill - target skill level\n * @param skillMult - Multiplier for that skill, defaults to 1.\n * @returns The calculated exp required.\n */\n calculateExp(skill: number, skillMult?: number): number;\n}\n\n/**\n * Reputation formulas\n * @public\n */\ninterface ReputationFormulas {\n /**\n * Calculate the total required amount of faction reputation to reach a target favor.\n * @param favor - target faction favor.\n * @returns The calculated faction reputation required.\n */\n calculateFavorToRep(favor: number): number;\n /**\n * Calculate the resulting faction favor of a total amount of reputation.\n * (Faction favor is gained whenever you install an Augmentation.)\n * @param rep - amount of reputation.\n * @returns The calculated faction favor.\n */\n calculateRepToFavor(rep: number): number;\n\n /**\n * Calculate how much rep would be gained.\n * @param amount - Amount of money donated\n * @param player - Player info from {@link NS.getPlayer | getPlayer}\n */\n repFromDonation(amount: number, player: Player): number;\n}\n\n/**\n * Hacking formulas\n * @public\n */\ninterface HackingFormulas {\n /**\n * Calculate hack chance.\n * (Ex: 0.25 would indicate a 25% chance of success.)\n * @param server - Server info from {@link NS.getServer | getServer}\n * @param player - Player info from {@link NS.getPlayer | getPlayer}\n * @returns The calculated hack chance.\n */\n hackChance(server: Server, player: Player): number;\n /**\n * Calculate hack exp for one thread.\n * @remarks\n * Multiply by thread to get total exp\n * @param server - Server info from {@link NS.getServer | getServer}\n * @param player - Player info from {@link NS.getPlayer | getPlayer}\n * @returns The calculated hack exp.\n */\n hackExp(server: Server, player: Player): number;\n /**\n * Calculate hack percent for one thread.\n * (Ex: 0.25 would steal 25% of the server\'s current value.)\n * @remarks\n * Multiply by thread to get total percent hacked.\n * @param server - Server info from {@link NS.getServer | getServer}\n * @param player - Player info from {@link NS.getPlayer | getPlayer}\n * @returns The calculated hack percent.\n */\n hackPercent(server: Server, player: Player): number;\n /**\n * Calculate the percent a server would grow to.\n * (Ex: 3.0 would would grow the server to 300% of its current value.)\n * @param server - Server info from {@link NS.getServer | getServer}\n * @param threads - Amount of thread.\n * @param player - Player info from {@link NS.getPlayer | getPlayer}\n * @param cores - Number of cores on the computer that will execute grow.\n * @returns The calculated grow percent.\n */\n growPercent(server: Server, threads: number, player: Player, cores?: number): number;\n /**\n * Calculate hack time.\n * @param server - Server info from {@link NS.getServer | getServer}\n * @param player - Player info from {@link NS.getPlayer | getPlayer}\n * @returns The calculated hack time.\n */\n hackTime(server: Server, player: Player): number;\n /**\n * Calculate grow time.\n * @param server - Server info from {@link NS.getServer | getServer}\n * @param player - Player info from {@link NS.getPlayer | getPlayer}\n * @returns The calculated grow time.\n */\n growTime(server: Server, player: Player): number;\n /**\n * Calculate weaken time.\n * @param server - Server info from {@link NS.getServer | getServer}\n * @param player - Player info from {@link NS.getPlayer | getPlayer}\n * @returns The calculated weaken time.\n */\n weakenTime(server: Server, player: Player): number;\n}\n\n/**\n * Hacknet Node formulas\n * @public\n */\ninterface HacknetNodesFormulas {\n /**\n * Calculate money gain rate.\n * @param level - level of the node.\n * @param ram - ram of the node.\n * @param cores - cores of the node.\n * @param mult - player production mult (default to 1)\n * @returns The calculated money gain rate.\n */\n moneyGainRate(level: number, ram: number, cores: number, mult?: number): number;\n /**\n * Calculate cost of upgrading hacknet node level.\n * @param startingLevel - starting level\n * @param extraLevels - amount of level to purchase (defaults to 1)\n * @param costMult - player cost reduction (default to 1)\n * @returns The calculated cost.\n */\n levelUpgradeCost(startingLevel: number, extraLevels?: number, costMult?: number): number;\n /**\n * Calculate cost of upgrading hacknet node ram.\n * @param startingRam - starting ram\n * @param extraLevels - amount of level of ram to purchase (defaults to 1)\n * @param costMult - player cost reduction (default to 1)\n * @returns The calculated cost.\n */\n ramUpgradeCost(startingRam: number, extraLevels?: number, costMult?: number): number;\n /**\n * Calculate cost of upgrading hacknet node cores.\n * @param startingCore - starting cores\n * @param extraCores - amount of cores to purchase (defaults to 1)\n * @param costMult - player cost reduction (default to 1)\n * @returns The calculated cost.\n */\n coreUpgradeCost(startingCore: number, extraCores?: number, costMult?: number): number;\n /**\n * Calculate the cost of a hacknet node.\n * @param n - number of the hacknet node\n * @param mult - player cost reduction (defaults to 1)\n * @returns The calculated cost.\n */\n hacknetNodeCost(n: number, mult: number): number;\n /**\n * All constants used by the game.\n * @returns An object with all hacknet node constants used by the game.\n */\n constants(): HacknetNodeConstants;\n}\n\n/**\n * Hacknet Server formulas\n * @public\n */\ninterface HacknetServersFormulas {\n /**\n * Calculate hash gain rate.\n * @param level - level of the server.\n * @param ramUsed - ramUsed of the server.\n * @param maxRam - maxRam of the server.\n * @param cores - cores of the server.\n * @param mult - player production mult (default to 1)\n * @returns The calculated hash gain rate.\n */\n hashGainRate(level: number, ramUsed: number, maxRam: number, cores: number, mult?: number): number;\n /**\n * Calculate cost of upgrading hacknet server level.\n * @param startingLevel - starting level\n * @param extraLevels - amount of level to purchase (defaults to 1)\n * @param costMult - player cost reduction (default to 1)\n * @returns The calculated cost.\n */\n levelUpgradeCost(startingLevel: number, extraLevels?: number, costMult?: number): number;\n /**\n * Calculate cost of upgrading hacknet server ram.\n * @param startingRam - starting ram\n * @param extraLevels - amount of level of ram to purchase (defaults to 1)\n * @param costMult - player cost reduction (default to 1)\n * @returns The calculated cost.\n */\n ramUpgradeCost(startingRam: number, extraLevels?: number, costMult?: number): number;\n /**\n * Calculate cost of upgrading hacknet server cores.\n * @param startingCore - starting cores\n * @param extraCores - amount of cores to purchase (defaults to 1)\n * @param costMult - player cost reduction (default to 1)\n * @returns The calculated cost.\n */\n coreUpgradeCost(startingCore: number, extraCores?: number, costMult?: number): number;\n /**\n * Calculate cost of upgrading hacknet server cache.\n * @param startingCache - starting cache level\n * @param extraCache - amount of levels of cache to purchase (defaults to 1)\n * @returns The calculated cost.\n */\n cacheUpgradeCost(startingCache: number, extraCache?: number): number;\n /**\n * Calculate hash cost of an upgrade.\n * @param upgName - name of the upgrade\n * @param level - level of the upgrade\n * @returns The calculated hash cost.\n */\n hashUpgradeCost(upgName: number, level: number): number;\n /**\n * Calculate the cost of a hacknet server.\n * @param n - number of the hacknet server\n * @param mult - player cost reduction (defaults to 1)\n * @returns The calculated cost.\n */\n hacknetServerCost(n: number, mult?: number): number;\n /**\n * All constants used by the game.\n * @returns An object with all hacknet server constants used by the game.\n */\n constants(): HacknetServerConstants;\n}\n\n/**\n * Gang formulas\n * @public\n */\ninterface GangFormulas {\n /**\n * Calculate the wanted penalty.\n * @param gang - Gang info from {@link Gang.getGangInformation | getGangInformation}\n * @returns The calculated wanted penalty.\n */\n wantedPenalty(gang: GangGenInfo): number;\n /**\n * Calculate respect gain per tick.\n * @param gang - Gang info from {@link Gang.getGangInformation | getGangInformation}\n * @param member - Gang info from {@link Gang.getMemberInformation | getMemberInformation}\n * @param task - Gang info from {@link Gang.getTaskStats | getTaskStats}\n * @returns The calculated respect gain.\n */\n respectGain(gang: GangGenInfo, member: GangMemberInfo, task: GangTaskStats): number;\n /**\n * Calculate wanted gain per tick.\n * @param gang - Gang info from {@link Gang.getGangInformation | getGangInformation}\n * @param member - Member info from {@link Gang.getMemberInformation | getMemberInformation}\n * @param task - Task info from {@link Gang.getTaskStats | getTaskStats}\n * @returns The calculated wanted gain.\n */\n wantedLevelGain(gang: GangGenInfo, member: GangMemberInfo, task: GangTaskStats): number;\n /**\n * Calculate money gain per tick.\n * @param gang - Gang info from {@link Gang.getGangInformation | getGangInformation}\n * @param member - Member info from {@link Gang.getMemberInformation | getMemberInformation}\n * @param task - Task info from {@link Gang.getTaskStats | getTaskStats}\n * @returns The calculated money gain.\n */\n moneyGain(gang: GangGenInfo, member: GangMemberInfo, task: GangTaskStats): number;\n\n /**\n * Calculate ascension point gain.\n * @param exp - Experience point before ascension.\n * @returns The calculated ascension point gain.\n */\n ascensionPointsGain(exp: number): number;\n\n /**\n * Calculate ascension mult.\n * @param points - Amount of ascension points.\n * @returns The calculated ascension mult.\n */\n ascensionMultiplier(points: number): number;\n}\n\n/**\n * Formulas API\n * @remarks\n * You need Formulas.exe on your home computer to use this API.\n * @public\n */\nexport interface Formulas {\n /** Reputation formulas */\n reputation: ReputationFormulas;\n /** Skills formulas */\n skills: SkillsFormulas;\n /** Hacking formulas */\n hacking: HackingFormulas;\n /** Hacknet Nodes formulas */\n hacknetNodes: HacknetNodesFormulas;\n /** Hacknet Servers formulas */\n hacknetServers: HacknetServersFormulas;\n /** Gang formulas */\n gang: GangFormulas;\n}\n\n/**\n * @public\n */\nexport interface Fragment {\n id: number;\n shape: boolean[][];\n type: number;\n power: number;\n limit: number;\n}\n\n/**\n * @public\n */\nexport interface ActiveFragment {\n id: number;\n highestCharge: number;\n numCharge: number;\n rotation: number;\n x: number;\n y: number;\n}\n\n/**\n * Stanek\'s Gift API.\n * @public\n */\ninterface Stanek {\n /**\n * Stanek\'s Gift width.\n * @remarks\n * RAM cost: 0.4 GB\n * @returns The width of the gift.\n */\n giftWidth(): number;\n /**\n * Stanek\'s Gift height.\n * @remarks\n * RAM cost: 0.4 GB\n * @returns The height of the gift.\n */\n giftHeight(): number;\n\n /**\n * Charge a fragment, increasing its power.\n * @remarks\n * RAM cost: 0.4 GB\n * @param rootX - rootX Root X against which to align the top left of the fragment.\n * @param rootY - rootY Root Y against which to align the top left of the fragment.\n * @returns Promise that lasts until the charge action is over.\n */\n chargeFragment(rootX: number, rootY: number): Promise<void>;\n\n /**\n * List possible fragments.\n * @remarks\n * RAM cost: 0 GB\n *\n * @returns List of possible fragments.\n */\n fragmentDefinitions(): Fragment[];\n\n /**\n * List of fragments in Stanek\'s Gift.\n * @remarks\n * RAM cost: 5 GB\n *\n * @returns List of active fragments placed on Stanek\'s Gift.\n */\n activeFragments(): ActiveFragment[];\n\n /**\n * Clear the board of all fragments.\n * @remarks\n * RAM cost: 0 GB\n */\n clearGift(): void;\n\n /**\n * Check if fragment can be placed at specified location.\n * @remarks\n * RAM cost: 0.5 GB\n *\n * @param rootX - rootX Root X against which to align the top left of the fragment.\n * @param rootY - rootY Root Y against which to align the top left of the fragment.\n * @param rotation - rotation A number from 0 to 3, the mount of 90 degree turn to take.\n * @param fragmentId - fragmentId ID of the fragment to place.\n * @returns true if the fragment can be placed at that position. false otherwise.\n */\n canPlaceFragment(rootX: number, rootY: number, rotation: number, fragmentId: number): boolean;\n /**\n * Place fragment on Stanek\'s Gift.\n * @remarks\n * RAM cost: 5 GB\n *\n * @param rootX - X against which to align the top left of the fragment.\n * @param rootY - Y against which to align the top left of the fragment.\n * @param rotation - A number from 0 to 3, the mount of 90 degree turn to take.\n * @param fragmentId - ID of the fragment to place.\n * @returns true if the fragment can be placed at that position. false otherwise.\n */\n placeFragment(rootX: number, rootY: number, rotation: number, fragmentId: number): boolean;\n /**\n * Get placed fragment at location.\n * @remarks\n * RAM cost: 5 GB\n *\n * @param rootX - X against which to align the top left of the fragment.\n * @param rootY - Y against which to align the top left of the fragment.\n * @returns The fragment at [rootX, rootY], if any.\n */\n getFragment(rootX: number, rootY: number): ActiveFragment | undefined;\n\n /**\n * Remove fragment at location.\n * @remarks\n * RAM cost: 0.15 GB\n *\n * @param rootX - X against which to align the top left of the fragment.\n * @param rootY - Y against which to align the top left of the fragment.\n * @returns The fragment at [rootX, rootY], if any.\n */\n removeFragment(rootX: number, rootY: number): boolean;\n\n /**\n * Accept Stanek\'s Gift by joining the Church of the Machine God\n * @remarks\n * RAM cost: 2 GB\n *\n * @returns true if the player is a member of the church and has the gift installed,\n * false otherwise.\n */\n acceptGift(): boolean;\n}\n\n/**\n * @public\n */\nexport interface InfiltrationReward {\n tradeRep: number;\n sellCash: number;\n SoARep: number;\n}\n\n/**\n * @public\n */\nexport interface InfiltrationLocation {\n location: any;\n reward: InfiltrationReward;\n difficulty: number;\n}\n\n/**\n * Infiltration API.\n * @public\n */\ninterface Infiltration {\n /**\n * Get all locations that can be infiltrated.\n * @remarks\n * RAM cost: 5 GB\n *\n * @returns all locations that can be infiltrated.\n */\n getPossibleLocations(): string[];\n /**\n * Get all infiltrations with difficulty, location and rewards.\n * @remarks\n * RAM cost: 15 GB\n *\n * @returns Infiltration data for given location.\n */\n getInfiltration(location: string): InfiltrationLocation;\n}\n\n/**\n * User Interface API.\n * @public\n */\ninterface UserInterface {\n /**\n * Get the current theme\n * @remarks\n * RAM cost: 0 GB\n *\n * @returns An object containing the theme\'s colors\n */\n getTheme(): UserInterfaceTheme;\n\n /**\n * Sets the current theme\n * @remarks\n * RAM cost: 0 GB\n * @example\n * Usage example (NS2)\n * ```ts\n * const theme = ns.ui.getTheme();\n * theme.primary = \'#ff5500\';\n * ns.ui.setTheme(theme);\n * ```\n */\n setTheme(newTheme: UserInterfaceTheme): void;\n\n /**\n * Resets the player\'s theme to the default values\n * @remarks\n * RAM cost: 0 GB\n */\n resetTheme(): void;\n\n /**\n * Get the current styles\n * @remarks\n * RAM cost: 0 GB\n *\n * @returns An object containing the player\'s styles\n */\n getStyles(): IStyleSettings;\n\n /**\n * Sets the current styles\n * @remarks\n * RAM cost: 0 GB\n * @example\n * Usage example (NS2)\n * ```ts\n * const styles = ns.ui.getStyles();\n * styles.fontFamily = \'Comic Sans Ms\';\n * ns.ui.setStyles(styles);\n * ```\n */\n setStyles(newStyles: IStyleSettings): void;\n\n /**\n * Resets the player\'s styles to the default values\n * @remarks\n * RAM cost: 0 GB\n */\n resetStyles(): void;\n\n /**\n * Gets the current game information (version, commit, ...)\n * @remarks\n * RAM cost: 0 GB\n */\n getGameInfo(): GameInfo;\n\n /**\n * Clear the Terminal window, as if the player ran `clear` in the terminal\n * @remarks\n * RAM cost: 0.2 GB\n */\n clearTerminal(): void;\n}\n\n/**\n * Collection of all functions passed to scripts\n * @public\n * @remarks\n * <b>Basic ns1 usage example:</b>\n * ```ts\n * // Basic ns functions can be used directly\n * getHostname();\n * // Some related functions are gathered within a common namespace\n * stock.getPrice();\n * ```\n * {@link https://bitburner.readthedocs.io/en/latest/netscript/netscript1.html| ns1 in-game docs}\n * <hr>\n * <b>Basic ns2 usage example:</b>\n * ```ts\n * export async function main(ns) {\n * // Basic ns functions can be accessed on the ns object\n * ns.getHostname();\n * // Some related functions are gathered under a sub-property of the ns object\n * ns.stock.getPrice();\n * // Some functions need to be awaited\n * await ns.hack(\'n00dles\');\n * }\n * ```\n * {@link https://bitburner.readthedocs.io/en/latest/netscript/netscriptjs.html| ns2 in-game docs}\n * <hr>\n */\nexport interface NS {\n /**\n * Namespace for hacknet functions.\n * @remarks RAM cost: 4 GB\n */\n readonly hacknet: Hacknet;\n /**\n *\n * Namespace for bladeburner functions.\n * @remarks RAM cost: 0 GB\n */\n readonly bladeburner: Bladeburner;\n /**\n *\n * Namespace for codingcontract functions.\n * @remarks RAM cost: 0 GB\n */\n readonly codingcontract: CodingContract;\n /**\n *\n * Namespace for gang functions.\n * @remarks RAM cost: 0 GB\n */\n readonly gang: Gang;\n /**\n *\n * Namespace for sleeve functions.\n * @remarks RAM cost: 0 GB\n */\n readonly sleeve: Sleeve;\n /**\n *\n * Namespace for stock functions.\n * @remarks\n * RAM cost: 0 GB\n */\n readonly stock: TIX;\n /**\n *\n * Namespace for formulas functions.\n * @remarks\n * RAM cost: 0 GB\n */\n readonly formulas: Formulas;\n /**\n * Namespace for stanek functions.\n * RAM cost: 0 GB\n */\n readonly stanek: Stanek;\n /**\n * Namespace for infiltration functions.\n * RAM cost: 0 GB\n */\n readonly infiltration: Infiltration;\n /**\n * Namespace for corporation functions.\n * RAM cost: 0 GB\n */\n readonly corporation: Corporation;\n\n /**\n * Namespace for user interface functions.\n * RAM cost: 0 GB\n */\n readonly ui: UserInterface;\n\n /**\n * Namespace for singularity functions.\n * RAM cost: 0 GB\n */\n readonly singularity: Singularity;\n\n /**\n * Namespace for grafting functions.\n * @remarks\n * RAM cost: 0 GB\n */\n readonly grafting: Grafting;\n\n /**\n * Arguments passed into the script.\n *\n * @remarks\n * RAM cost: 0 GB\n *\n * Arguments passed into a script can be accessed using a normal\n * array using the [] operator (args[0], args[1], etc…).\n *\n * It is also possible to get the number of arguments that was passed into a script using: \'args.length\'\n * WARNING: Do not try to modify the args array. This will break the game.\n */\n readonly args: (string | number | boolean)[];\n\n /**\n * Steal a servers money.\n * @remarks\n * RAM cost: 0.1 GB\n *\n * Function that is used to try and hack servers to steal money and gain hacking experience.\n * The runtime for this command depends on your hacking level and the target server’s\n * security level when this function is called. In order to hack a server you must first gain root access to that server\n * and also have the required hacking level.\n *\n * A script can hack a server from anywhere. It does not need to be running on the same\n * server to hack that server. For example, you can create a script that hacks the `foodnstuff`\n * server and run that script on any server in the game.\n *\n * A successful `hack()` on a server will raise that server’s security level by 0.002.\n *\n * @example\n * ```ts\n * // NS1:\n * var earnedMoney = hack("foodnstuff");\n * ```\n * @example\n * ```ts\n * // NS2:\n * let earnedMoney = await ns.hack("foodnstuff");\n * ```\n * @param host - Hostname of the target server to hack.\n * @param opts - Optional parameters for configuring function behavior.\n * @returns The amount of money stolen if the hack is successful, and zero otherwise.\n */\n hack(host: string, opts?: BasicHGWOptions): Promise<number>;\n\n /**\n * Spoof money in a servers bank account, increasing the amount available.\n * @remarks\n * RAM cost: 0.15 GB\n *\n * Use your hacking skills to increase the amount of money available on a server.\n * The runtime for this command depends on your hacking level and the target server’s\n * security level. When `grow` completes, the money available on a target server will\n * be increased by a certain, fixed percentage. This percentage is determined by the\n * target server’s growth rate (which varies between servers) and security level. Generally,\n * higher-level servers have higher growth rates. The getServerGrowth() function can be used\n * to obtain a server’s growth rate.\n *\n * Like hack, `grow` can be called on any server, regardless of where the script is running.\n * The grow() command requires root access to the target server, but there is no required hacking\n * level to run the command. It also raises the security level of the target server by 0.004.\n *\n * @example\n * ```ts\n * // NS1:\n * var currentMoney = getServerMoneyAvailable("foodnstuff");\n * currentMoney = currentMoney * (1 + grow("foodnstuff"));\n * ```\n * @example\n * ```ts\n * // NS2:\n * let currentMoney = ns.getServerMoneyAvailable("foodnstuff");\n * currentMoney *= (1 + await ns.grow("foodnstuff"));\n * ```\n * @param host - Hostname of the target server to grow.\n * @param opts - Optional parameters for configuring function behavior.\n * @returns The number by which the money on the server was multiplied for the growth.\n */\n grow(host: string, opts?: BasicHGWOptions): Promise<number>;\n\n /**\n * Reduce a server security level.\n * @remarks\n * RAM cost: 0.15 GB\n *\n * Use your hacking skills to attack a server’s security, lowering the server’s security level.\n * The runtime for this command depends on your hacking level and the target server’s security\n * level when this function is called. This function lowers the security level of the target server by 0.05.\n *\n * Like hack and grow, `weaken` can be called on any server, regardless of\n * where the script is running. This command requires root access to the target server, but\n * there is no required hacking level to run the command.\n *\n * @example\n * ```ts\n * // NS1:\n * var currentSecurity = getServerSecurityLevel("foodnstuff");\n * currentSecurity = currentSecurity - weaken("foodnstuff");\n * ```\n * @example\n * ```ts\n * // NS2:\n * let currentSecurity = ns.getServerSecurityLevel("foodnstuff");\n * currentSecurity -= await ns.weaken("foodnstuff");\n * ```\n * @param host - Hostname of the target server to weaken.\n * @param opts - Optional parameters for configuring function behavior.\n * @returns The amount by which the target server’s security level was decreased. This is equivalent to 0.05 multiplied by the number of script threads.\n */\n weaken(host: string, opts?: BasicHGWOptions): Promise<number>;\n\n /**\n * Predict the effect of weaken.\n * @remarks\n * RAM cost: 1 GB\n *\n * Returns the security decrease that would occur if a weaken with this many threads happened.\n *\n * @param threads - Amount of threads that will be used.\n * @param cores - Optional. The number of cores of the server that would run weaken.\n * @returns The security decrease.\n */\n weakenAnalyze(threads: number, cores?: number): number;\n\n /**\n * Predict the effect of hack.\n * @remarks\n * RAM cost: 1 GB\n *\n * This function returns the number of script threads you need when running the hack command\n * to steal the specified amount of money from the target server.\n * If hackAmount is less than zero or greater than the amount of money available on the server,\n * then this function returns -1.\n *\n * Warning: The value returned by this function isn’t necessarily a whole number.\n *\n * @example\n * ```ts\n * //For example, let’s say the foodnstuff server has $10m and you run:\n * hackAnalyzeThreads("foodnstuff", 1e6);\n * //If this function returns 50, this means that if your next hack call is run on a script with 50 threads, it will steal $1m from the foodnstuff server.\n * ```\n * @param host - Hostname of the target server to analyze.\n * @param hackAmount - Amount of money you want to hack from the server.\n * @returns The number of threads needed to hack the server for hackAmount money.\n */\n hackAnalyzeThreads(host: string, hackAmount: number): number;\n\n /**\n * Get the part of money stolen with a single thread.\n * @remarks\n * RAM cost: 1 GB\n *\n * Returns the part of the specified server’s money you will steal with a single thread hack.\n *\n * @example\n * ```ts\n * // NS1:\n * //For example, assume the following returns 0.01:\n * var hackAmount = hackAnalyze("foodnstuff");\n * //This means that if hack the foodnstuff server using a single thread, then you will steal 1%, or 0.01 of its total money. If you hack using N threads, then you will steal N*0.01 times its total money.\n * ```\n * @example\n * ```ts\n * // NS2:\n * //For example, assume the following returns 0.01:\n * const hackAmount = ns.hackAnalyze("foodnstuff");\n * //This means that if hack the foodnstuff server using a single thread, then you will steal 1%, or 0.01 of its total money. If you hack using N threads, then you will steal N*0.01 times its total money.\n * ```\n * @param host - Hostname of the target server.\n * @returns The part of money you will steal from the target server with a single thread hack.\n */\n hackAnalyze(host: string): number;\n\n /**\n * Get the security increase for a number of thread.\n * @remarks\n * RAM cost: 1 GB\n *\n * Returns the security increase that would occur if a hack with this many threads happened.\n *\n * @param threads - Amount of threads that will be used.\n * @param hostname - Hostname of the target server. The number of threads is limited to the number needed to hack the servers maximum amount of money.\n * @returns The security increase.\n */\n hackAnalyzeSecurity(threads: number, hostname?: string): number;\n\n /**\n * Get the chance of successfully hacking a server.\n * @remarks\n * RAM cost: 1 GB\n *\n * Returns the chance you have of successfully hacking the specified server.\n *\n * This returned value is in decimal form, not percentage.\n *\n * @param host - Hostname of the target server.\n * @returns The chance you have of successfully hacking the target server.\n */\n hackAnalyzeChance(host: string): number;\n\n /**\n * Calculate the number of grow thread needed to grow a server by a certain multiplier.\n * @remarks\n * RAM cost: 1 GB\n *\n * This function returns the number of “growths” needed in order to increase\n * the amount of money available on the specified server by the specified amount.\n * The specified amount is multiplicative and is in decimal form, not percentage.\n *\n * Warning: The value returned by this function isn’t necessarily a whole number.\n *\n * @example\n * ```ts\n * // NS1:\n * //For example, if you want to determine how many grow calls you need to double the amount of money on foodnstuff, you would use:\n * var growTimes = growthAnalyze("foodnstuff", 2);\n * //If this returns 100, then this means you need to call grow 100 times in order to double the money (or once with 100 threads).\n * ```\n * @example\n * ```ts\n * // NS2:\n * //For example, if you want to determine how many grow calls you need to double the amount of money on foodnstuff, you would use:\n * const growTimes = ns.growthAnalyze("foodnstuff", 2);\n * //If this returns 100, then this means you need to call grow 100 times in order to double the money (or once with 100 threads).\n * ```\n * @param host - Hostname of the target server.\n * @param growthAmount - Multiplicative factor by which the server is grown. Decimal form..\n * @returns The amount of grow calls needed to grow the specified server by the specified amount\n */\n growthAnalyze(host: string, growthAmount: number, cores?: number): number;\n\n /**\n * Calculate the security increase for a number of thread.\n * @remarks\n * RAM cost: 1 GB\n *\n * Returns the security increase that would occur if a grow with this many threads happened.\n *\n * @param threads - Amount of threads that will be used.\n * @param hostname - Optional. Hostname of the target server. The number of threads is limited to the number needed to hack the servers maximum amount of money.\n * @param cores - Optional. The number of cores of the server that would run grow.\n * @returns The security increase.\n */\n growthAnalyzeSecurity(threads: number, hostname?: string, cores?: number): number;\n\n /**\n * Suspends the script for n milliseconds.\n * @remarks\n * RAM cost: 0 GB\n *\n * @param millis - Number of milliseconds to sleep.\n * @example\n * ```ts\n * // NS1:\n * // This will count from 1 to 10 in your terminal, with one number every 5 seconds\n * for (var i=0; i<10; i++) {\n * tprint(i + 1);\n * sleep(5000);\n * }\n * ```\n * @example\n * ```ts\n * // NS2:\n * // This will count from 1 to 10 in your terminal, with one number every 5 seconds\n * for (var i=0; i<10; i++) {\n * ns.tprint(i + 1);\n * await ns.sleep(5000);\n * }\n * ```\n * @returns\n */\n sleep(millis: number): Promise<true>;\n\n /**\n * Suspends the script for n milliseconds. Doesn\'t block with concurrent calls.\n * You should prefer \'sleep\' over \'asleep\' except when doing very complex UI work.\n * @remarks\n * RAM cost: 0 GB\n *\n * @param millis - Number of milliseconds to sleep.\n * @returns\n */\n asleep(millis: number): Promise<true>;\n\n /**\n * Prints one or move values or variables to the script’s logs.\n * @remarks\n * RAM cost: 0 GB\n *\n * @param args - Value(s) to be printed.\n */\n print(...args: any[]): void;\n\n /**\n * Prints a formatted string to the script’s logs.\n * @remarks\n * RAM cost: 0 GB\n *\n * see: https://github.com/alexei/sprintf.js\n * @param format - format of the message\n * @param args - Value(s) to be printed.\n */\n printf(format: string, ...args: any[]): void;\n\n /**\n * Prints one or more values or variables to the Terminal.\n * @remarks\n * RAM cost: 0 GB\n *\n * @param args - Value(s) to be printed.\n */\n tprint(...args: any[]): void;\n\n /**\n * Prints a raw value or a variable to the Terminal.\n * @remarks\n * RAM cost: 0 GB\n *\n * see: https://github.com/alexei/sprintf.js\n * @param format - format of the message\n * @param msg - Value to be printed.\n */\n tprintf(format: string, ...values: any[]): void;\n\n /**\n * Clears the script’s logs.\n * @remarks\n * RAM cost: 0 GB\n */\n clearLog(): void;\n\n /**\n * Disables logging for the given function.\n * @remarks\n * RAM cost: 0 GB\n *\n * Logging can be disabled for all functions by passing `ALL` as the argument.\n *\n * Note that this does not completely remove all logging functionality.\n * This only stops a function from logging when the function is successful.\n * If the function fails, it will still log the reason for failure.\n *\n * @param fn - Name of function for which to disable logging.\n */\n disableLog(fn: string): void;\n\n /**\n * Enable logging for a certain function.\n * @remarks\n * RAM cost: 0 GB\n *\n * Re-enables logging for the given function. If `ALL` is passed into this\n * function as an argument, then it will revert the effects of disableLog(`ALL`).\n *\n * @param fn - Name of function for which to enable logging.\n */\n enableLog(fn: string): void;\n\n /**\n * Checks the status of the logging for the given function.\n * @remarks\n * RAM cost: 0 GB\n *\n * @param fn - Name of function to check.\n * @returns Returns a boolean indicating whether or not logging is enabled for that function (or `ALL`)\n */\n isLogEnabled(fn: string): boolean;\n\n /**\n * Get all the logs of a script.\n * @remarks\n * RAM cost: 0 GB\n *\n * Returns a script’s logs. The logs are returned as an array, where each line is an element in the array.\n * The most recently logged line is at the end of the array.\n * Note that there is a maximum number of lines that a script stores in its logs. This is configurable in the game’s options.\n * If the function is called with no arguments, it will return the current script’s logs.\n *\n * Otherwise, the fn, hostname/ip, and args… arguments can be used to get the logs from another script.\n * Remember that scripts are uniquely identified by both their names and arguments.\n *\n * @example\n * ```ts\n * // NS1:\n * //Get logs from foo.script on the current server that was run with no args\n * getScriptLogs("foo.script");\n *\n * //Open logs from foo.script on the foodnstuff server that was run with no args\n * getScriptLogs("foo.script", "foodnstuff");\n *\n * //Open logs from foo.script on the foodnstuff server that was run with the arguments [1, "test"]\n * getScriptLogs("foo.script", "foodnstuff", 1, "test");\n * ```\n * @example\n * ```ts\n * // NS2:\n * //Get logs from foo.script on the current server that was run with no args\n * ns.getScriptLogs("foo.script");\n *\n * //Open logs from foo.script on the foodnstuff server that was run with no args\n * ns.getScriptLogs("foo.script", "foodnstuff");\n *\n * //Open logs from foo.script on the foodnstuff server that was run with the arguments [1, "test"]\n * ns.getScriptLogs("foo.script", "foodnstuff", 1, "test");\n * ```\n * @param fn - Optional. Filename of script to get logs from.\n * @param host - Optional. Hostname of the server that the script is on.\n * @param args - Arguments to identify which scripts to get logs for.\n * @returns Returns an string array, where each line is an element in the array. The most recently logged line is at the end of the array.\n */\n getScriptLogs(fn?: string, host?: string, ...args: (string | number | boolean)[]): string[];\n\n /**\n * Get an array of recently killed scripts across all servers.\n * @remarks\n * RAM cost: 0.2 GB\n *\n * The most recently killed script is the first element in the array.\n * Note that there is a maximum number of recently killed scripts which are tracked.\n * This is configurable in the game\'s options as `Recently killed scripts size`.\n *\n * @example\n * ```ts\n * let recentScripts = ns.getRecentScripts();\n * let mostRecent = recentScripts.shift()\n * if (mostRecent)\n * ns.tprint(mostRecent.logs.join(\'\\n\'))\n * ```\n *\n * @returns Array with information about previously killed scripts.\n */\n getRecentScripts(): RecentScript[];\n\n /**\n * Open the tail window of a script.\n * @remarks\n * RAM cost: 0 GB\n *\n * Opens a script’s logs. This is functionally the same as the tail Terminal command.\n *\n * If the function is called with no arguments, it will open the current script’s logs.\n *\n * Otherwise, the fn, hostname/ip, and args… arguments can be used to get the logs from another script.\n * Remember that scripts are uniquely identified by both their names and arguments.\n *\n * @example\n * ```ts\n * // NS1:\n * //Open logs from foo.script on the current server that was run with no args\n * tail("foo.script");\n *\n * //Get logs from foo.script on the foodnstuff server that was run with no args\n * tail("foo.script", "foodnstuff");\n *\n * //Get logs from foo.script on the foodnstuff server that was run with the arguments [1, "test"]\n * tail("foo.script", "foodnstuff", 1, "test");\n * ```\n * @example\n * ```ts\n * // NS2:\n * //Open logs from foo.script on the current server that was run with no args\n * ns.tail("foo.script");\n *\n * //Get logs from foo.script on the foodnstuff server that was run with no args\n * ns.tail("foo.script", "foodnstuff");\n *\n * //Get logs from foo.script on the foodnstuff server that was run with the arguments [1, "test"]\n * ns.tail("foo.script", "foodnstuff", 1, "test");\n * ```\n * @param fn - Optional. Filename or PID of the script being tailed. If omitted, the current script is tailed.\n * @param host - Optional. Hostname of the script being tailed. Defaults to the server this script is running on. If args are specified, this is not optional.\n * @param args - Arguments for the script being tailed.\n */\n tail(fn?: FilenameOrPID, host?: string, ...args: (string | number | boolean)[]): void;\n\n /**\n * Close the tail window of a script.\n * @remarks\n * RAM cost: 0 GB\n *\n * Closes a script’s logs. This is functionally the same pressing the "Close" button on the tail window.\n *\n * If the function is called with no arguments, it will close the current script’s logs.\n *\n * Otherwise, the pid argument can be used to close the logs from another script.\n *\n * @param pid - Optional. PID of the script having its tail closed. If omitted, the current script is used.\n */\n closeTail(pid?: number): void;\n\n /**\n * Get the list of servers connected to a server.\n * @remarks\n * RAM cost: 0.2 GB\n *\n * Returns an array containing the hostnames of all servers that are one\n * node way from the specified target server. The hostnames in the returned\n * array are strings.\n *\n * @param host - Optional, Hostname of the server to scan, default to current server.\n * @returns Returns an string of hostnames.\n */\n scan(host?: string): string[];\n\n /**\n * Runs NUKE.exe on a server.\n * @remarks\n * RAM cost: 0.05 GB\n *\n * Running NUKE.exe on a target server gives you root access which means you can executes scripts on said server. NUKE.exe must exist on your home computer.\n *\n * @example\n * ```ts\n * // NS1:\n * nuke("foodnstuff");\n * ```\n * @example\n * ```ts\n * // NS2:\n * ns.nuke("foodnstuff");\n * ```\n * @param host - Hostname of the target server.\n */\n nuke(host: string): void;\n\n /**\n * Runs BruteSSH.exe on a server.\n * @remarks\n * RAM cost: 0.05 GB\n *\n * Runs the BruteSSH.exe program on the target server. BruteSSH.exe must exist on your home computer.\n *\n * @example\n * ```ts\n * // NS1:\n * brutessh("foodnstuff");\n * ```\n * @example\n * ```ts\n * // NS2:\n * ns.brutessh("foodnstuff");\n * ```\n * @param host - Hostname of the target server.\n */\n brutessh(host: string): void;\n\n /**\n * Runs FTPCrack.exe on a server.\n * @remarks\n * RAM cost: 0.05 GB\n *\n * Runs the FTPCrack.exe program on the target server. FTPCrack.exe must exist on your home computer.\n *\n * @example\n * ```ts\n * // NS1:\n * ftpcrack("foodnstuff");\n * ```\n * @example\n * ```ts\n * // NS2:\n * ns.ftpcrack("foodnstuff");\n * ```\n * @param host - Hostname of the target server.\n */\n ftpcrack(host: string): void;\n\n /**\n * Runs relaySMTP.exe on a server.\n * @remarks\n * RAM cost: 0.05 GB\n *\n * Runs the relaySMTP.exe program on the target server. relaySMTP.exe must exist on your home computer.\n *\n * @example\n * ```ts\n * // NS1:\n * relaysmtp("foodnstuff");\n * ```\n * @example\n * ```ts\n * // NS2:\n * ns.relaysmtp("foodnstuff");\n * ```\n * @param host - Hostname of the target server.\n */\n relaysmtp(host: string): void;\n\n /**\n * Runs HTTPWorm.exe on a server.\n * @remarks\n * RAM cost: 0.05 GB\n *\n * Runs the HTTPWorm.exe program on the target server. HTTPWorm.exe must exist on your home computer.\n *\n * @example\n * ```ts\n * // NS1:\n * httpworm("foodnstuff");\n * ```\n * @example\n * ```ts\n * // NS2:\n * ns.httpworm("foodnstuff");\n * ```\n * @param host - Hostname of the target server.\n */\n httpworm(host: string): void;\n\n /**\n * Runs SQLInject.exe on a server.\n * @remarks\n * RAM cost: 0.05 GB\n *\n * Runs the SQLInject.exe program on the target server. SQLInject.exe must exist on your home computer.\n *\n * @example\n * ```ts\n * // NS1:\n * sqlinject("foodnstuff");\n * ```\n * @example\n * ```ts\n * // NS2:\n * ns.sqlinject("foodnstuff");\n * ```\n * @remarks RAM cost: 0.05 GB\n * @param host - Hostname of the target server.\n */\n sqlinject(host: string): void;\n\n /**\n * Start another script on the current server.\n * @remarks\n * RAM cost: 1 GB\n *\n * Run a script as a separate process. This function can only be used to run scripts located on the\n * current server (the server running the script that calls this function). Requires a significant\n * amount of RAM to run this command.\n *\n * If the script was successfully started, then this functions returns the PID of that script.\n * Otherwise, it returns 0.\n *\n * PID stands for Process ID. The PID is a unique identifier for each script.\n * The PID will always be a positive integer.\n *\n * Running this function with a numThreads argument of 0 will return 0 without running the script.\n * However, running this function with a negative numThreads argument will cause a runtime error.\n *\n * @example\n * ```ts\n * // NS1:\n * //The simplest way to use the run command is to call it with just the script name. The following example will run ‘foo.script’ single-threaded with no arguments:\n * run("foo.script");\n *\n * //The following example will run ‘foo.script’ but with 5 threads instead of single-threaded:\n * run("foo.script", 5);\n *\n * //This next example will run ‘foo.script’ single-threaded, and will pass the string ‘foodnstuff’ into the script as an argument:\n * run("foo.script", 1, \'foodnstuff\');\n * ```\n * @example\n * ```ts\n * // NS2:\n * //The simplest way to use the run command is to call it with just the script name. The following example will run ‘foo.script’ single-threaded with no arguments:\n * ns.run("foo.script");\n *\n * //The following example will run ‘foo.script’ but with 5 threads instead of single-threaded:\n * ns.run("foo.script", 5);\n *\n * //This next example will run ‘foo.script’ single-threaded, and will pass the string ‘foodnstuff’ into the script as an argument:\n * ns.run("foo.script", 1, \'foodnstuff\');\n * ```\n * @param script - Filename of script to run.\n * @param numThreads - Optional thread count for new script. Set to 1 by default. Will be rounded to nearest integer.\n * @param args - Additional arguments to pass into the new script that is being run. Note that if any arguments are being passed into the new script, then the second argument numThreads must be filled in with a value.\n * @returns Returns the PID of a successfully started script, and 0 otherwise.\n */\n run(script: string, numThreads?: number, ...args: (string | number | boolean)[]): number;\n\n /**\n * Start another script on any server.\n * @remarks\n * RAM cost: 1.3 GB\n *\n * Run a script as a separate process on a specified server. This is similar to the run function\n * except that it can be used to run a script on any server, instead of just the current server.\n *\n * If the script was successfully started, then this functions returns the PID of that script.\n * Otherwise, it returns 0.\n *\n * PID stands for Process ID. The PID is a unique identifier for each script.\n * The PID will always be a positive integer.\n *\n * Running this function with 0 or a negative numThreads argument will cause a runtime error.\n *\n * @example\n * ```ts\n * // NS1:\n * //The simplest way to use the exec command is to call it with just the script name and the target server. The following example will try to run generic-hack.script on the foodnstuff server:\n * exec("generic-hack.script", "foodnstuff");\n *\n * //The following example will try to run the script generic-hack.script on the joesguns server with 10 threads:\n * exec("generic-hack.script", "joesguns", 10);\n *\n * //This last example will try to run the script foo.script on the foodnstuff server with 5 threads. It will also pass the number 1 and the string “test” in as arguments to the script:\n * exec("foo.script", "foodnstuff", 5, 1, "test");\n * ```\n * * @example\n * ```ts\n * // NS2:\n * //The simplest way to use the exec command is to call it with just the script name and the target server. The following example will try to run generic-hack.script on the foodnstuff server:\n * ns.exec("generic-hack.script", "foodnstuff");\n *\n * //The following example will try to run the script generic-hack.script on the joesguns server with 10 threads:\n * ns.exec("generic-hack.script", "joesguns", 10);\n *\n * //This last example will try to run the script foo.script on the foodnstuff server with 5 threads. It will also pass the number 1 and the string “test” in as arguments to the script:\n * ns.exec("foo.script", "foodnstuff", 5, 1, "test");\n * ```\n * @param script - Filename of script to execute.\n * @param host - Hostname of the `target server` on which to execute the script.\n * @param numThreads - Optional thread count for new script. Set to 1 by default. Will be rounded to nearest integer.\n * @param args - Additional arguments to pass into the new script that is being run. Note that if any arguments are being passed into the new script, then the third argument numThreads must be filled in with a value.\n * @returns Returns the PID of a successfully started script, and 0 otherwise.\n */\n exec(script: string, host: string, numThreads?: number, ...args: (string | number | boolean)[]): number;\n\n /**\n * Terminate current script and start another in 10s.\n * @remarks\n * RAM cost: 2 GB\n *\n * Terminates the current script, and then after a delay of about 10 seconds it will execute the\n * newly-specified script. The purpose of this function is to execute a new script without being\n * constrained by the RAM usage of the current one. This function can only be used to run scripts\n * on the local server.\n *\n * Because this function immediately terminates the script, it does not have a return value.\n *\n * @example\n * ```ts\n * // NS1:\n * //The following example will execute the script ‘foo.script’ with 10 threads and the arguments ‘foodnstuff’ and 90:\n * spawn(\'foo.script\', 10, \'foodnstuff\', 90);\n * ```\n * @example\n * ```ts\n * // NS2:\n * //The following example will execute the script ‘foo.script’ with 10 threads and the arguments ‘foodnstuff’ and 90:\n * ns.spawn(\'foo.script\', 10, \'foodnstuff\', 90);\n * ```\n * @param script - Filename of script to execute.\n * @param numThreads - Number of threads to spawn new script with. Will be rounded to nearest integer.\n * @param args - Additional arguments to pass into the new script that is being run.\n */\n spawn(script: string, numThreads?: number, ...args: (string | number | boolean)[]): void;\n\n /**\n * Terminate another script.\n * @remarks\n * RAM cost: 0.5 GB\n *\n * Kills the script on the target server specified by the script’s name and arguments.\n * Remember that scripts are uniquely identified by both their name and arguments.\n * For example, if `foo.script` is run with the argument 1, then this is not the same as\n * `foo.script` run with the argument 2, even though they have the same code.\n *\n * @example\n * ```ts\n * // NS1:\n * //The following example will try to kill a script named foo.script on the foodnstuff server that was ran with no arguments:\n * kill("foo.script", "foodnstuff");\n *\n * //The following will try to kill a script named foo.script on the current server that was ran with no arguments:\n * kill("foo.script", getHostname());\n *\n * //The following will try to kill a script named foo.script on the current server that was ran with the arguments 1 and “foodnstuff”:\n * kill("foo.script", getHostname(), 1, "foodnstuff");\n * ```\n * @example\n * ```ts\n * // NS2:\n * //The following example will try to kill a script named foo.script on the foodnstuff server that was ran with no arguments:\n * ns.kill("foo.script", "foodnstuff");\n *\n * //The following will try to kill a script named foo.script on the current server that was ran with no arguments:\n * ns.kill("foo.script", getHostname());\n *\n * //The following will try to kill a script named foo.script on the current server that was ran with the arguments 1 and “foodnstuff”:\n * ns.kill("foo.script", getHostname(), 1, "foodnstuff");\n * ```\n * @param script - Filename or pid of the script to kill\n * @param host - Hostname of the server on which to kill the script.\n * @param args - Arguments to identify which script to kill.\n * @returns True if the script is successfully killed, and false otherwise.\n */\n kill(script: number): boolean;\n\n /**\n * {@inheritDoc NS.(kill:1)}\n * @example\n * ```ts\n * // NS1:\n * //The following example will try to kill a script named foo.script on the foodnstuff server that was ran with no arguments:\n * kill("foo.script", "foodnstuff");\n *\n * //The following will try to kill a script named foo.script on the current server that was ran with no arguments:\n * kill("foo.script", getHostname());\n *\n * //The following will try to kill a script named foo.script on the current server that was ran with the arguments 1 and “foodnstuff”:\n * kill("foo.script", getHostname(), 1, "foodnstuff");\n * ```\n * @example\n * ```ts\n * // NS2:\n * //The following example will try to kill a script named foo.script on the foodnstuff server that was ran with no arguments:\n * ns.kill("foo.script", "foodnstuff");\n *\n * //The following will try to kill a script named foo.script on the current server that was ran with no arguments:\n * ns.kill("foo.script", getHostname());\n *\n * //The following will try to kill a script named foo.script on the current server that was ran with the arguments 1 and “foodnstuff”:\n * ns.kill("foo.script", getHostname(), 1, "foodnstuff");\n * ```\n */\n kill(script: string, host: string, ...args: (string | number | boolean)[]): boolean;\n\n /**\n * Terminate all scripts on a server.\n * @remarks\n * RAM cost: 0.5 GB\n *\n * Kills all running scripts on the specified server. This function returns true\n * if any scripts were killed, and false otherwise. In other words, it will return\n * true if there are any scripts running on the target server.\n * If no host is defined, it will kill all scripts, where the script is running.\n *\n * @param host - IP or hostname of the server on which to kill all scripts.\n * @param safetyguard - Skips the script that calls this function\n * @returns True if any scripts were killed, and false otherwise.\n */\n killall(host?: string, safetyguard?: boolean): boolean;\n\n /**\n * Terminates the current script immediately.\n * @remarks\n * RAM cost: 0 GB\n */\n exit(): void;\n\n /**\n * Copy file between servers.\n * @remarks\n * RAM cost: 0.6 GB\n *\n * Copies a script or literature (.lit) file(s) to another server. The files argument can be either a string\n * specifying a single file to copy, or an array of strings specifying multiple files to copy.\n *\n * @example\n * ```ts\n * // NS1:\n * //Copies foo.lit from the helios server to the home computer:\n * scp("foo.lit", "helios", "home");\n *\n * //Tries to copy three files from rothman-uni to home computer:\n * files = ["foo1.lit", "foo2.script", "foo3.script"];\n * scp(files, "rothman-uni", "home");\n * ```\n * @example\n * ```ts\n * // NS2:\n * //Copies foo.lit from the helios server to the home computer:\n * await ns.scp("foo.lit", "helios", "home");\n *\n * //Tries to copy three files from rothman-uni to home computer:\n * files = ["foo1.lit", "foo2.script", "foo3.script"];\n * await ns.scp(files, "rothman-uni", "home");\n * ```\n * @example\n * ```ts\n * //ns2, copies files from home to a target server\n * const server = ns.args[0];\n * const files = ["hack.js","weaken.js","grow.js"];\n * await ns.scp(files, "home", server);\n * ```\n * @param files - Filename or an array of filenames of script/literature files to copy.\n * @param source - Host of the source server, which is the server from which the file will be copied. This argument is optional and if it’s omitted the source will be the current server.\n * @param destination - Host of the destination server, which is the server to which the file will be copied.\n * @returns True if the script/literature file is successfully copied over and false otherwise. If the files argument is an array then this function will return true if at least one of the files in the array is successfully copied.\n */\n scp(files: string | string[], destination: string): Promise<boolean>;\n\n /**\n * {@inheritDoc NS.(scp:1)}\n * @example\n * ```ts\n * // NS1:\n * //Copies foo.lit from the helios server to the home computer:\n * scp("foo.lit", "helios", "home");\n *\n * //Tries to copy three files from rothman-uni to home computer:\n * files = ["foo1.lit", "foo2.script", "foo3.script"];\n * scp(files, "rothman-uni", "home");\n * ```\n * @example\n * ```ts\n * // NS2:\n * //Copies foo.lit from the helios server to the home computer:\n * await ns.scp("foo.lit", "helios", "home");\n *\n * //Tries to copy three files from rothman-uni to home computer:\n * files = ["foo1.lit", "foo2.script", "foo3.script"];\n * await ns.scp(files, "rothman-uni", "home");\n * ```\n * @example\n * ```ts\n * //ns2, copies files from home to a target server\n * const server = ns.args[0];\n * const files = ["hack.js","weaken.js","grow.js"];\n * await ns.scp(files, "home", server);\n * ```\n */\n scp(files: string | string[], source: string, destination: string): Promise<boolean>;\n\n /**\n * List files on a server.\n * @remarks\n * RAM cost: 0.2 GB\n *\n * Returns an array with the filenames of all files on the specified server\n * (as strings). The returned array is sorted in alphabetic order.\n *\n * @param host - Host of the target server.\n * @param grep - A substring to search for in the filename.\n * @returns Array with the filenames of all files on the specified server.\n */\n ls(host: string, grep?: string): string[];\n\n /**\n * List running scripts on a server.\n * @remarks\n * RAM cost: 0.2 GB\n *\n * Returns an array with general information about all scripts running on the specified target server.\n *\n * @example\n * ```ts\n * // NS1:\n * var scripts = ps("home");\n * for (var i = 0; i < scripts.length; ++i) {\n * tprint(scripts[i].filename + \' \' + scripts[i].threads);\n * tprint(scripts[i].args);\n * }\n * ```\n * @example\n * ```ts\n * // NS2:\n * const ps = ns.ps("home");\n * for (let script of ps) {\n * ns.tprint(`${script.filename} ${script.threads}`);\n * ns.tprint(script.args);\n * }\n * ```\n * @param host - Host address of the target server. If not specified, it will be the current server’s IP by default.\n * @returns Array with general information about all scripts running on the specified target server.\n */\n ps(host?: string): ProcessInfo[];\n\n /**\n * Check if your have root access on a server.\n * @remarks\n * RAM cost: 0.05 GB\n *\n * Returns a boolean indicating whether or not the player has root access to the specified target server.\n *\n * @example\n * ```ts\n * // NS1:\n * if (hasRootAccess("foodnstuff") == false) {\n * nuke("foodnstuff");\n * }\n * ```\n * @example\n * ```ts\n * // NS2:\n * if (ns.hasRootAccess("foodnstuff") == false) {\n * ns.nuke("foodnstuff");\n * }\n * ```\n * @param host - Host of the target server\n * @returns True if player has root access to the specified target server, and false otherwise.\n */\n hasRootAccess(host: string): boolean;\n\n /**\n * Returns a string with the hostname of the server that the script is running on.\n *\n * @remarks\n * RAM cost: 0.05 GB\n * @returns Hostname of the server that the script is on.\n */\n getHostname(): string;\n\n /**\n * Returns the player’s current hacking level.\n *\n * @remarks\n * RAM cost: 0.05 GB\n * @returns Player’s current hacking level\n */\n getHackingLevel(): number;\n\n /**\n * Get hacking related multipliers.\n * @remarks\n * RAM cost: 4 GB\n *\n * Returns an object containing the Player’s hacking related multipliers.\n * These multipliers are returned in fractional forms, not percentages\n * (e.g. 1.5 instead of 150%).\n *\n * @example\n * ```ts\n * // NS1:\n * // Example of how this can be used:\n * var mults = getHackingMultipliers();\n * print(mults.chance);\n * print(mults.growth);\n * ```\n * @example\n * ```ts\n * // NS2:\n * // Example of how this can be used:\n * const {chance, growth} = ns.getHackingMultipliers();\n * print(chance);\n * print(growth);\n * ```\n * @returns Object containing the Player’s hacking related multipliers.\n */\n getHackingMultipliers(): HackingMultipliers;\n\n /**\n * Get hacknet related multipliers.\n * @remarks\n * RAM cost: 4 GB\n *\n * Returns an object containing the Player’s hacknet related multipliers.\n * These multipliers are returned in fractional forms, not percentages\n * (e.g. 1.5 instead of 150%).\n *\n * @example\n * ```ts\n * // NS1:\n * // Example of how this can be used:\n * var mults = getHacknetMultipliers();\n * print(mults.production);\n * print(mults.purchaseCost);\n * ```\n * @example\n * ```ts\n * // NS2:\n * // Example of how this can be used:\n * const {production, purchaseCost} = ns.getHacknetMultipliers();\n * print(production);\n * print(purchaseCost);\n * ```\n * @returns Object containing the Player’s hacknet related multipliers.\n */\n getHacknetMultipliers(): HacknetMultipliers;\n\n /**\n * Returns a server object for the given server. Defaults to the running script\'s server if host is not specified.\n *\n * @remarks\n * RAM cost: 2 GB\n * @param host - Optional. Hostname for the requested server object.\n * @returns The requested server object.\n */\n getServer(host?: string): Server;\n\n /**\n * Get money available on a server.\n * @remarks\n * RAM cost: 0.1 GB\n *\n * Returns the amount of money available on a server.\n * Running this function on the home computer will return the player’s money.\n *\n * @example\n * ```ts\n * // NS1:\n * getServerMoneyAvailable("foodnstuff");\n * getServerMoneyAvailable("home"); //Returns player\'s money\n * ```\n * @example\n * ```ts\n * // NS2:\n * ns.getServerMoneyAvailable("foodnstuff");\n * ns.getServerMoneyAvailable("home"); // Returns player\'s money\n * ```\n * @param host - Host of target server\n * @returns Amount of money available on the server.\n */\n getServerMoneyAvailable(host: string): number;\n\n /**\n * Get maximum money available on a server.\n * @remarks\n * RAM cost: 0.1 GB\n *\n * Returns the maximum amount of money that can be available on a server.\n *\n * @param host - Host of target server.\n * @returns Maximum amount of money available on the server.\n */\n getServerMaxMoney(host: string): number;\n\n /**\n * Get a server growth parameter.\n * @remarks\n * RAM cost: 0.1 GB\n *\n * Returns the server’s intrinsic “growth parameter”. This growth\n * parameter is a number typically between 0 and 100 that represents\n * how quickly the server’s money grows. This parameter affects the\n * percentage by which the server’s money is increased when using the\n * grow function. A higher growth parameter will result in a\n * higher percentage increase from grow.\n *\n * @param host - Host of target server.\n * @returns Parameter that affects the percentage by which the server’s money is increased when using the grow function.\n */\n getServerGrowth(host: string): number;\n\n /**\n * Get server security level.\n * @remarks\n * RAM cost: 0.1 GB\n *\n * Returns the security level of the target server. A server’s security\n * level is denoted by a number, typically between 1 and 100\n * (but it can go above 100).\n *\n * @param host - Host of target server.\n * @returns Security level of the target server.\n */\n getServerSecurityLevel(host: string): number;\n\n /**\n * Returns the minimum security level of the target server.\n *\n * @remarks RAM cost: 0.1 GB\n * @param host - Host of target server.\n * @returns Minimum security level of the target server.\n */\n getServerMinSecurityLevel(host: string): number;\n\n /**\n * @deprecated useless\n * @remarks\n * RAM cost: 0.1 GB\n * Returns the base security level of the target server. This is the security\n * level that the server starts out with. This is different than\n * getServerSecurityLevel because getServerSecurityLevel returns\n * the current security level of a server, which can constantly change due to\n * hack, grow, and weaken, calls on that server.\n * The base security level will stay the same until you reset by\n * installing an Augmentation(s).\n *\n * @param host - Host of target server.\n * @returns Base security level of the target server.\n */\n getServerBaseSecurityLevel(host: string): number;\n\n /**\n * @deprecated use getServerMaxRam / getServerUsedRam\n * @remarks\n * RAM cost: 0.1 GB\n *\n * Returns an array with two elements that gives information about a server’s memory (RAM).\n * The first element in the array is the amount of RAM that the server has total (in GB).\n * The second element in the array is the amount of RAM that is currently being used on\n * the server (in GB).\n *\n * @example\n * ```ts\n * // NS1:\n * var serverRam = getServerRam("helios");\n * var totalRam = serverRam[0];\n * var ramUsed = serverRam[1];\n * ```\n * @example\n * ```ts\n * // NS2:\n * const [totalRam, ramUsed] = ns.getServerRam("helios");\n * ```\n * @param host - Host of target server.\n * @returns Array with total and used memory on the specified server, in GB.\n */\n getServerRam(host: string): [number, number];\n\n /**\n * Get the max RAM on a server.\n * @remarks\n * RAM cost: 0.05 GB\n *\n * @param host - Hostname of the target server.\n * @returns max ram (GB)\n */\n getServerMaxRam(host: string): number;\n /**\n * Get the used RAM on a server.\n * @remarks\n * RAM cost: 0.05 GB\n *\n * @param host - Hostname of the target server.\n * @returns used ram (GB)\n */\n getServerUsedRam(host: string): number;\n\n /**\n * Returns the required hacking level of the target server.\n *\n * @remarks RAM cost: 0.1 GB\n * @param host - Host of target server.\n * @returns The required hacking level of the target server.\n */\n getServerRequiredHackingLevel(host: string): number;\n\n /**\n * Returns the number of open ports required to successfully run NUKE.exe on the specified server.\n *\n * @remarks RAM cost: 0.1 GB\n * @param host - Host of target server.\n * @returns The number of open ports required to successfully run NUKE.exe on the specified server.\n */\n getServerNumPortsRequired(host: string): number;\n\n /**\n * Returns a boolean denoting whether or not the specified server exists.\n *\n * @remarks RAM cost: 0.1 GB\n * @param host - Host of target server.\n * @returns True if specified server exists, and false otherwise.\n */\n serverExists(host: string): boolean;\n\n /**\n * Check if a file exists.\n * @remarks\n * RAM cost: 0.1 GB\n *\n * Returns a boolean indicating whether the specified file exists on the target server.\n * The filename for scripts is case-sensitive, but for other types of files it is not.\n * For example, fileExists(“brutessh.exe”) will work fine, even though the actual program\n * is named \'BruteSSH.exe\'.\n *\n * If the hostname/ip argument is omitted, then the function will search through the current\n * server (the server running the script that calls this function) for the file.\n *\n * @example\n * ```ts\n * // NS1:\n * //The function call will return true if the script named foo.script exists on the foodnstuff server, and false otherwise.\n * fileExists("foo.script", "foodnstuff");\n *\n * //The function call will return true if the current server contains the FTPCrack.exe program, and false otherwise.\n * fileExists("ftpcrack.exe");\n * ```\n * * @example\n * ```ts\n * // NS2:\n * // The function call will return true if the script named foo.script exists on the foodnstuff server, and false otherwise.\n * ns.fileExists("foo.script", "foodnstuff");\n *\n * // The function call will return true if the current server contains the FTPCrack.exe program, and false otherwise.\n * ns.fileExists("ftpcrack.exe");\n * ```\n * @param filename - Filename of file to check.\n * @param host - Host of target server. This is optional. If it is not specified then the function will use the current server as the target server.\n * @returns True if specified file exists, and false otherwise.\n */\n fileExists(filename: string, host?: string): boolean;\n\n /**\n * Check if a script is running.\n * @remarks\n * RAM cost: 0.1 GB\n *\n * Returns a boolean indicating whether the specified script is running on the target server.\n * If you use a PID instead of a filename, the hostname and args parameters are unnecessary.\n * Remember that a script is uniquely identified by both its name and its arguments.\n *\n * @example\n * ```ts\n * // NS1:\n * //The function call will return true if there is a script named foo.script with no arguments running on the foodnstuff server, and false otherwise:\n * isRunning("foo.script", "foodnstuff");\n *\n * //The function call will return true if there is a script named foo.script with no arguments running on the current server, and false otherwise:\n * isRunning("foo.script", getHostname());\n *\n * //The function call will return true if there is a script named foo.script running with the arguments 1, 5, and “test” (in that order) on the joesguns server, and false otherwise:\n * isRunning("foo.script", "joesguns", 1, 5, "test");\n * ```\n * @example\n * ```ts\n * // NS2:\n * //The function call will return true if there is a script named foo.script with no arguments running on the foodnstuff server, and false otherwise:\n * ns.isRunning("foo.script", "foodnstuff");\n *\n * //The function call will return true if there is a script named foo.script with no arguments running on the current server, and false otherwise:\n * ns.isRunning("foo.script", ns.getHostname());\n *\n * //The function call will return true if there is a script named foo.script running with the arguments 1, 5, and “test” (in that order) on the joesguns server, and false otherwise:\n * ns.isRunning("foo.script", "joesguns", 1, 5, "test");\n * ```\n * @param script - Filename or PID of script to check. This is case-sensitive.\n * @param host - Host of target server.\n * @param args - Arguments to specify/identify which scripts to search for.\n * @returns True if specified script is running on the target server, and false otherwise.\n */\n isRunning(script: FilenameOrPID, host?: string, ...args: (string | number | boolean)[]): boolean;\n\n /**\n * Get general info about a running script.\n * @remarks\n * RAM cost: 0.3 GB\n *\n * Running with no args returns current script.\n * If you use a PID as the first parameter, the hostname and args parameters are unnecessary.\n *\n * @param filename - Optional. Filename or PID of the script.\n * @param hostname - Optional. Name of host server the script is running on.\n * @param args - Arguments to identify the script\n * @returns The info about the running script if found, and null otherwise.\n */\n getRunningScript(\n filename?: FilenameOrPID,\n hostname?: string,\n ...args: (string | number | boolean)[]\n ): RunningScript | null;\n\n /**\n * Get cost of purchasing a server.\n * @remarks\n * RAM cost: 0.25 GB\n *\n * Returns the cost to purchase a server with the specified amount of ram.\n *\n * @example\n * ```ts\n * // NS1:\n * for (i = 1; i <= 20; i++) {\n * tprint(i + " -- " + getPurchasedServerCost(Math.pow(2, i)));\n * }\n * ```\n * @example\n * ```ts\n * // NS2:\n * for (i = 1; i <= 20; i++) {\n * ns.tprint(i + " -- " + ns.getPurchasedServerCost(Math.pow(2, i)));\n * }\n * ```\n * @param ram - Amount of RAM of a potential purchased server, in GB. Must be a power of 2 (2, 4, 8, 16, etc.). Maximum value of 1048576 (2^20).\n * @returns The cost to purchase a server with the specified amount of ram.\n */\n getPurchasedServerCost(ram: number): number;\n\n /**\n * Purchase a server.\n * @remarks\n * 2.25 GB\n *\n * Purchased a server with the specified hostname and amount of RAM.\n *\n * The hostname argument can be any data type, but it will be converted to a string\n * and have whitespace removed. Anything that resolves to an empty string will cause\n * the function to fail. If there is already a server with the specified hostname,\n * then the function will automatically append a number at the end of the hostname\n * argument value until it finds a unique hostname. For example, if the script calls\n * `purchaseServer(“foo”, 4)` but a server named “foo” already exists, the it will\n * automatically change the hostname to `foo-0`. If there is already a server with the\n * hostname `foo-0`, then it will change the hostname to `foo-1`, and so on.\n *\n * Note that there is a maximum limit to the amount of servers you can purchase.\n *\n * Returns the hostname of the newly purchased server as a string. If the function\n * fails to purchase a server, then it will return an empty string. The function will\n * fail if the arguments passed in are invalid, if the player does not have enough\n * money to purchase the specified server, or if the player has exceeded the maximum\n * amount of servers.\n *\n * @example\n * ```ts\n * // NS1:\n * var ram = 64;\n * var prefix = "pserv-";\n * for (i = 0; i < 5; ++i) {\n * purchaseServer(prefix + i, ram);\n * }\n * ```\n * @example\n * ```ts\n * // NS2:\n * const ram = 64;\n * const prefix = "pserv-";\n * for (i = 0; i < 5; ++i) {\n * ns.purchaseServer(prefix + i, ram);\n * }\n * ```\n * @param hostname - Host of the purchased server.\n * @param ram - Amount of RAM of the purchased server, in GB. Must be a power of 2 (2, 4, 8, 16, etc.). Maximum value of 1048576 (2^20).\n * @returns The hostname of the newly purchased server.\n */\n purchaseServer(hostname: string, ram: number): string;\n\n /**\n * Delete a purchased server.\n * @remarks\n * 2.25 GB\n *\n * Deletes one of your purchased servers, which is specified by its hostname.\n *\n * The hostname argument can be any data type, but it will be converted to a string.\n * Whitespace is automatically removed from the string. This function will not delete a\n * server that still has scripts running on it.\n *\n * @param host - Host of the server to delete.\n * @returns True if successful, and false otherwise.\n */\n deleteServer(host: string): boolean;\n\n /**\n * Returns an array with the hostnames of all of the servers you have purchased.\n *\n * @remarks 2.25 GB\n * @returns Returns an array with the hostnames of all of the servers you have purchased.\n */\n getPurchasedServers(): string[];\n\n /**\n * Returns the maximum number of servers you can purchase.\n *\n * @remarks RAM cost: 0.05 GB\n * @returns Returns the maximum number of servers you can purchase.\n */\n getPurchasedServerLimit(): number;\n\n /**\n * Returns the maximum RAM that a purchased server can have.\n *\n * @remarks RAM cost: 0.05 GB\n * @returns Returns the maximum RAM (in GB) that a purchased server can have.\n */\n getPurchasedServerMaxRam(): number;\n\n /**\n * Write data to a file.\n * @remarks\n * RAM cost: 0 GB\n *\n * This function can be used to write data to a text file (.txt).\n *\n * This function will write data to that text file. If the specified text file does not exist,\n * then it will be created. The third argument mode, defines how the data will be written to\n * the text file. If *mode is set to “w”, then the data is written in “write” mode which means\n * that it will overwrite all existing data on the text file. If mode is set to any other value\n * then the data will be written in “append” mode which means that the data will be added at the\n * end of the text file.\n *\n * @param handle - Filename of the text file that will be written to.\n * @param data - Data to write.\n * @param mode - Defines the write mode. Only valid when writing to text files.\n */\n write(handle: string, data?: string[] | number | string, mode?: "w" | "a"): Promise<void>;\n\n /**\n * Attempt to write to a port.\n * @remarks\n * RAM cost: 0 GB\n *\n * Attempts to write data to the specified Netscript Port.\n * If the port is full, the data will not be written.\n * Otherwise, the data will be written normally.\n *\n * @param port - Port or text file that will be written to.\n * @param data - Data to write.\n * @returns True if the data is successfully written to the port, and false otherwise.\n */\n tryWritePort(port: number, data: string | number): Promise<boolean>;\n\n /**\n * Read content of a file.\n * @remarks\n * RAM cost: 0 GB\n *\n * This function is used to read data from a text file (.txt).\n *\n * This function will return the data in the specified text\n * file. If the text file does not exist, an empty string will be returned.\n *\n * @param handle - Filename to read from.\n * @returns Data in the specified text file.\n */\n read(handle: string): any;\n\n /**\n * Get a copy of the data from a port without popping it.\n * @remarks\n * RAM cost: 0 GB\n *\n * This function is used to peek at the data from a port. It returns the\n * first element in the specified port without removing that element. If\n * the port is empty, the string “NULL PORT DATA” will be returned.\n *\n * @param port - Port to peek. Must be an integer between 1 and 20.\n * @returns Data in the specified port.\n */\n peek(port: number): any;\n\n /**\n * Clear data from a file.\n * @remarks\n * RAM cost: 0 GB\n *\n * Delete all data from that text file.\n *\n * @param handle - Text file to clear.\n */\n clear(handle: string): void;\n\n /**\n * Clear data from a port.\n * @remarks\n * RAM cost: 0 GB\n *\n * Deleta all data from the underlying queue.\n *\n * @param handle - Port to clear.\n */\n clearPort(handle: number): void;\n\n /**\n * Write data to a port.\n * @remarks\n * RAM cost: 0 GB\n *\n * Write data to that netscript port.\n * @returns The data popped off the queue if it was full.\n */\n writePort(port: number, data: string | number): Promise<any>;\n /**\n * Read data from a port.\n * @remarks\n * RAM cost: 0 GB\n *\n * Read data from that port. A port is a serialized queue.\n * This function will remove the first element from that queue and return it.\n * If the queue is empty, then the string “NULL PORT DATA” will be returned.\n * @returns the data read.\n */\n readPort(port: number): any;\n\n /**\n * Get all data on a port.\n * @remarks\n * RAM cost: 0 GB\n *\n * Get a handle to a Netscript Port.\n *\n * WARNING: Port Handles only work in NetscriptJS (Netscript 2.0). They will not work in Netscript 1.0.\n *\n * @see https://bitburner.readthedocs.io/en/latest/netscript/netscriptmisc.html#netscript-ports\n * @param port - Port number. Must be an integer between 1 and 20.\n */\n getPortHandle(port: number): NetscriptPort;\n\n /**\n * Delete a file.\n * @remarks\n * RAM cost: 1 GB\n *\n * Removes the specified file from the current server. This function works for every file\n * type except message (.msg) files.\n *\n * @param name - Filename of file to remove. Must include the extension.\n * @param host - Host Address of the server on which to delete the file. Optional. Defaults to current server.\n * @returns True if it successfully deletes the file, and false otherwise.\n */\n rm(name: string, host?: string): boolean;\n\n /**\n * Check if any script with a filename is running.\n * @remarks\n * RAM cost: 1 GB\n *\n * Returns a boolean indicating whether any instance of the specified script is running\n * on the target server, regardless of its arguments.\n *\n * This is different than the isRunning function because it does not try to\n * identify a specific instance of a running script by its arguments.\n *\n * @example\n * ```ts\n * // NS1:\n * //The function call will return true if there is any script named foo.script running on the foodnstuff server, and false otherwise:\n * scriptRunning("foo.script", "foodnstuff");\n *\n * //The function call will return true if there is any script named “foo.script” running on the current server, and false otherwise:\n * scriptRunning("foo.script", getHostname());\n * ```\n * * @example\n * ```ts\n * // NS2:\n * //The function call will return true if there is any script named foo.script running on the foodnstuff server, and false otherwise:\n * ns.scriptRunning("foo.script", "foodnstuff");\n *\n * //The function call will return true if there is any script named “foo.script” running on the current server, and false otherwise:\n * ns.scriptRunning("foo.script", ns.getHostname());\n * ```\n * @param script - Filename of script to check. This is case-sensitive.\n * @param host - Host of target server.\n * @returns True if the specified script is running, and false otherwise.\n */\n scriptRunning(script: string, host: string): boolean;\n\n /**\n * Kill all scripts with a filename.\n * @remarks\n * RAM cost: 1 GB\n *\n * Kills all scripts with the specified filename on the target server specified by hostname,\n * regardless of arguments.\n *\n * @param script - Filename of script to kill. This is case-sensitive.\n * @param host - Host of target server.\n * @returns true if one or more scripts were successfully killed, and false if none were.\n */\n scriptKill(script: string, host: string): boolean;\n\n /**\n * Returns the current script name.\n *\n * @remarks RAM cost: 0 GB\n * @returns Current script name.\n */\n getScriptName(): string;\n\n /**\n * Get the ram cost of a script.\n * @remarks\n * RAM cost: 0.1 GB\n *\n * Returns the amount of RAM required to run the specified script on the target server.\n * Returns 0 if the script does not exist.\n *\n * @param script - Filename of script. This is case-sensitive.\n * @param host - Host of target server the script is located on. This is optional, if it is not specified then the function will use the current server as the target server.\n * @returns Amount of RAM (in GB) required to run the specified script on the target server, and 0 if the script does not exist.\n */\n getScriptRam(script: string, host?: string): number;\n\n /**\n * Get the execution time of a hack() call.\n * @remarks\n * RAM cost: 0.05 GB\n *\n * When `hack` completes an amount of money is stolen depending on the player\'s skills.\n * Returns the amount of time in milliseconds it takes to execute the hack Netscript function on the target server.\n * The required time is increased by the security level of the target server and decreased by the player\'s hacking level.\n *\n * @param host - Host of target server.\n * @returns Returns the amount of time in milliseconds it takes to execute the hack Netscript function.\n */\n getHackTime(host: string): number;\n\n /**\n * Get the execution time of a grow() call.\n * @remarks\n * RAM cost: 0.05 GB\n *\n * Returns the amount of time in milliseconds it takes to execute the grow Netscript function on the target server.\n * The required time is increased by the security level of the target server and decreased by the player\'s hacking level.\n *\n * @param host - Host of target server.\n * @returns Returns the amount of time in milliseconds it takes to execute the grow Netscript function.\n */\n getGrowTime(host: string): number;\n\n /**\n * Get the execution time of a weaken() call.\n * @remarks\n * RAM cost: 0.05 GB\n *\n * Returns the amount of time in milliseconds it takes to execute the weaken Netscript function on the target server.\n * The required time is increased by the security level of the target server and decreased by the player\'s hacking level.\n *\n * @param host - Host of target server.\n * @returns Returns the amount of time in milliseconds it takes to execute the weaken Netscript function.\n */\n getWeakenTime(host: string): number;\n\n /**\n * Get the income of a script.\n * @remarks\n * RAM cost: 0.1 GB\n *\n * Returns the amount of income the specified script generates while online\n * (when the game is open, does not apply for offline income). Remember that\n * a script is uniquely identified by both its name and its arguments. So for\n * example if you ran a script with the arguments “foodnstuff” and “5” then\n * in order to use this function to get that script’s income you must specify\n * those same arguments in the same order in this function call.\n *\n * This function can also be called with no arguments.\n * If called with no arguments, then this function will return an array of two values.\n * The first value is the total income (dollar / second) of all of your active scripts\n * (scripts that are currently running on any server).\n * The second value is the total income (dollar / second) that you’ve earned from scripts\n * since you last installed Augmentations.\n *\n * @param script - Filename of script.\n * @param host - Server on which script is running.\n * @param args - Arguments that the script is running with.\n * @returns Amount of income the specified script generates while online.\n */\n getScriptIncome(): [number, number];\n\n /**\n * {@inheritDoc NS.(getScriptIncome:1)}\n */\n getScriptIncome(script: string, host: string, ...args: (string | number | boolean)[]): number;\n\n /**\n * Get the exp gain of a script.\n * @remarks\n * RAM cost: 0.1 GB\n *\n * Returns the amount of hacking experience the specified script generates while online\n * (when the game is open, does not apply for offline experience gains). Remember that a\n * script is uniquely identified by both its name and its arguments.\n *\n * This function can also return the total experience gain rate of all of your active\n * scripts by running the function with no arguments.\n *\n * @param script - Filename of script.\n * @param host - Server on which script is running.\n * @param args - Arguments that the script is running with.\n * @returns Amount of hacking experience the specified script generates while online.\n */\n getScriptExpGain(): number;\n\n /**\n * {@inheritDoc NS.(getScriptExpGain:1)}\n */\n getScriptExpGain(script: string, host: string, ...args: (string | number | boolean)[]): number;\n\n /**\n * Returns the amount of time in milliseconds that have passed since you last installed Augmentations.\n *\n * @remarks RAM cost: 0.05 GB\n * @returns Time in milliseconds that have passed since you last installed Augmentations.\n */\n getTimeSinceLastAug(): number;\n\n /**\n * Format a string.\n *\n * @remarks\n * RAM cost: 0 GB\n *\n * see: https://github.com/alexei/sprintf.js\n * @param format - String to format.\n * @param args - Formating arguments.\n * @returns Formated text.\n */\n sprintf(format: string, ...args: any[]): string;\n\n /**\n * Format a string with an array of arguments.\n * @remarks\n * RAM cost: 0 GB\n *\n * see: https://github.com/alexei/sprintf.js\n * @param format - String to format.\n * @param args - Formating arguments.\n * @returns Formated text.\n */\n vsprintf(format: string, args: any[]): string;\n\n /**\n * Format a number\n * @remarks\n * RAM cost: 0 GB\n *\n * Converts a number into a string with the specified formatter.\n * This uses the numeraljs library, so the formatters must be compatible with that.\n * This is the same function that the game itself uses to display numbers.\n *\n * see: http://numeraljs.com/\n * @param n - Number to format.\n * @param format - Formatter.\n * @returns Formated number.\n */\n nFormat(n: number, format: string): string;\n\n /**\n * Format time to readable string\n * @remarks\n * RAM cost: 0 GB\n *\n * @param milliseconds - Number of millisecond to format.\n * @param milliPrecision - Format time with subsecond precision, defaults to false.\n * @returns The formatted time.\n */\n tFormat(milliseconds: number, milliPrecision?: boolean): string;\n\n /**\n * Prompt the player with an input modal.\n * @remarks\n * RAM cost: 0 GB\n *\n * Prompts the player with a dialog box. If `options.type` is undefined or "boolean",\n * the player is shown "Yes" and "No" prompts, which return true and false respectively.\n * Passing a type of "text" will give the player a text field and a value of "select"\n * will show a drop-down field. Choosing type "select" will require an array or object\n * to be passed via the `options.choices` property.\n * The script’s execution is halted until the player selects one of the options.\n *\n * @param txt - Text to appear in the prompt dialog box.\n * @param options - Options to modify the prompt the player is shown.\n * @returns True if the player click “Yes”; false if the player clicks “No”; or the value entered by the player.\n */\n prompt(\n txt: string,\n options?: { type?: "boolean" | "text" | "select" | undefined; choices?: string[] },\n ): Promise<boolean | string>;\n\n /**\n * Open up a message box.\n * @param msg - Message to alert.\n */\n alert(msg: any): void;\n\n /**\n * Queue a toast (bottom-right notification).\n * @param msg - Message in the toast.\n * @param variant - Type of toast, must be one of success, info, warning, error. Defaults to success.\n * @param duration - Duration of toast in ms. Can also be `null` to create a persistent toast. Defaults to 2000\n */\n toast(msg: any, variant?: ToastVariantValues, duration?: number | null): void;\n\n /**\n * Download a file from the internet.\n * @remarks\n * RAM cost: 0 GB\n *\n * Retrieves data from a URL and downloads it to a file on the specified server.\n * The data can only be downloaded to a script (.script, .ns, .js) or a text file (.txt).\n * If the file already exists, it will be overwritten by this command.\n * Note that it will not be possible to download data from many websites because they\n * do not allow cross-origin resource sharing (CORS).\n *\n * IMPORTANT: This is an asynchronous function that returns a Promise.\n * The Promise’s resolved value will be a boolean indicating whether or not the data was\n * successfully retrieved from the URL. Because the function is async and returns a Promise,\n * it is recommended you use wget in NetscriptJS (Netscript 2.0).\n *\n * In NetscriptJS, you must preface any call to wget with the await keyword (like you would hack or sleep).\n * wget will still work in Netscript 1.0, but the functions execution will not be synchronous\n * (i.e. it may not execute when you expect/want it to).\n * Furthermore, since Promises are not supported in ES5,\n * you will not be able to process the returned value of wget in Netscript 1.0.\n *\n * @example\n * ```ts\n * // NS1:\n * wget("https://raw.githubusercontent.com/danielyxie/bitburner/master/README.md", "game_readme.txt");\n * ```\n * @example\n * ```ts\n * // NS2:\n * await ns.wget("https://raw.githubusercontent.com/danielyxie/bitburner/master/README.md", "game_readme.txt");\n * ```\n * @param url - URL to pull data from.\n * @param target - Filename to write data to. Must be script or text file.\n * @param host - Optional hostname/ip of server for target file.\n * @returns True if the data was successfully retrieved from the URL, false otherwise.\n */\n wget(url: string, target: string, host?: string): Promise<boolean>;\n\n /**\n * Returns the amount of Faction favor required to be able to donate to a faction.\n *\n * @remarks RAM cost: 0.1 GB\n * @returns Amount of Faction favor required to be able to donate to a faction.\n */\n getFavorToDonate(): number;\n\n /**\n * Get the current Bitnode multipliers.\n * @remarks\n * RAM cost: 4 GB\n *\n * Returns an object containing the current BitNode multipliers.\n * This function requires you to be in Bitnode 5 or have Source-File 5 in order to run.\n * The multipliers are returned in decimal forms (e.g. 1.5 instead of 150%).\n * The multipliers represent the difference between the current BitNode and\n * the original BitNode (BitNode-1).\n *\n * For example, if the CrimeMoney multiplier has a value of 0.1, then that means\n * that committing crimes in the current BitNode will only give 10% of the money\n * you would have received in BitNode-1.\n *\n * @example\n * ```ts\n * // NS1:\n * var mults = getBitNodeMultipliers();\n * print(mults.ServerMaxMoney);\n * print(mults.HackExpGain);\n * ```\n * @example\n * ```ts\n * // NS2:\n * const {ServerMaxMoney, HackExpGain} = ns.getBitNodeMultipliers();\n * print(ServerMaxMoney);\n * print(HackExpGain);\n * ```\n * @returns Object containing the current BitNode multipliers.\n */\n getBitNodeMultipliers(): BitNodeMultipliers;\n\n /**\n * Get a list of acquired Source-Files.\n * @remarks\n * RAM cost: 5 GB\n *\n * Returns an array of source files\n *\n * @returns Array containing an object with number and level of the source file.\n */\n getOwnedSourceFiles(): SourceFileLvl[];\n\n /**\n * Get information about the player.\n * @remarks\n * RAM cost: 0.5 GB\n *\n * Returns an object with information on the current player.\n *\n * @returns Player info\n */\n getPlayer(): Player;\n\n /**\n * Add callback function when the script dies\n * @remarks\n * RAM cost: 0 GB\n *\n * NS2 exclusive\n *\n * Add callback to be executed when the script dies.\n */\n atExit(f: () => void): void;\n\n /**\n * Move a file on the target server.\n * @remarks\n * RAM cost: 0 GB\n *\n * NS2 exclusive\n *\n * Move the source file to the specified destination on the target server.\n *\n * This command only works for scripts and text files (.txt). It cannot, however, be used\n * to convert from script to text file, or vice versa.\n *\n * This function can also be used to rename files.\n *\n * @param host - Host of target server.\n * @param source - Filename of the source file.\n * @param destination - Filename of the destination file.\n */\n mv(host: string, source: string, destination: string): void;\n\n /**\n * Parse command line flags.\n * @remarks\n * RAM cost: 0 GB\n *\n * Allows unix like flag parsing.\n * @example\n * ```ts\n * // example.script\n * var data = flags([\n * [\'delay\', 0], // a default number means this flag is a number\n * [\'server\', \'foodnstuff\'], // a default string means this flag is a string\n * [\'exclude\', []], // a default array means this flag is a default array of string\n * [\'help\', false], // a default boolean means this flag is a boolean\n * ]);\n * tprint(data);\n *\n * // example.ns\n * export async function main(ns) {\n * const data = ns.flags([\n * [\'delay\', 0], // a default number means this flag is a number\n * [\'server\', \'foodnstuff\'], // a default string means this flag is a string\n * [\'exclude\', []], // a default array means this flag is a default array of string\n * [\'help\', false], // a default boolean means this flag is a boolean\n * ]);\n * ns.tprint(data);\n * }\n *\n * // [home ~/]> run example.script\n * // {"_":[],"delay":0,"server":"foodnstuff","exclude":[],"help":false}\n * // [home ~/]> run example.script --delay 3000\n * // {"_":[],"server":"foodnstuff","exclude":[],"help":false,"delay":3000}\n * // [home ~/]> run example.script --delay 3000 --server harakiri-sushi\n * // {"_":[],"exclude":[],"help":false,"delay":3000,"server":"harakiri-sushi"}\n * // [home ~/]> run example.script --delay 3000 --server harakiri-sushi hello world\n * // {"_":["hello","world"],"exclude":[],"help":false,"delay":3000,"server":"harakiri-sushi"}\n * // [home ~/]> run example.script --delay 3000 --server harakiri-sushi hello world --exclude a --exclude b\n * // {"_":["hello","world"],"help":false,"delay":3000,"server":"harakiri-sushi","exclude":["a","b"]}\n * // [home ~/]> run example.script --help\n * // {"_":[],"delay":0,"server":"foodnstuff","exclude":[],"help":true}\n * ```\n */\n flags(schema: [string, string | number | boolean | string[]][]): any;\n\n /**\n * Share your computer with your factions.\n * @remarks\n * RAM cost: 2.4 GB\n *\n * Increases your rep gain of hacking contracts while share is called.\n * Scales with thread count.\n */\n share(): Promise<void>;\n\n /**\n * Calculate your share power. Based on all the active share calls.\n * @remarks\n * RAM cost: 0.2 GB\n */\n getSharePower(): number;\n\n enums: NSEnums;\n}\n\n/** @public */\nexport enum ToastVariant {\n SUCCESS = "success",\n WARNING = "warning",\n ERROR = "error",\n INFO = "info",\n}\n\n/** @public */\nexport type ToastVariantValues = `${ToastVariant}`;\n\n/** @public */\nexport interface NSEnums {\n toast: typeof ToastVariant;\n}\n\n/**\n * Corporation Office API\n * @remarks\n * Requires the Office API upgrade from your corporation.\n * @public\n */\nexport interface OfficeAPI {\n /**\n * Assign an employee to a job.\n * @param divisionName - Name of the division\n * @param cityName - Name of the city\n * @param employeeName - name of the employee\n * @param job - Name of the job.\n * @returns A promise that is fulfilled when the assignment is complete.\n */\n assignJob(divisionName: string, cityName: string, employeeName: string, job: string): Promise<void>;\n /**\n * Hire an employee.\n * @param divisionName - Name of the division\n * @param cityName - Name of the city\n * @returns The newly hired employee, if any\n */\n hireEmployee(divisionName: string, cityName: string): Employee | undefined;\n /**\n * Upgrade office size.\n * @param divisionName - Name of the division\n * @param cityName - Name of the city\n * @param size - Amount of positions to open\n */\n upgradeOfficeSize(divisionName: string, cityName: string, size: number): void;\n /**\n * Throw a party for your employees\n * @param divisionName - Name of the division\n * @param cityName - Name of the city\n * @param costPerEmployee - Amount to spend per employee.\n * @returns Amount of happiness increased.\n */\n throwParty(divisionName: string, cityName: string, costPerEmployee: number): Promise<number>;\n /**\n * Buy coffee for your employees\n * @param divisionName - Name of the division\n * @param cityName - Name of the city\n * @returns A promise that is fulfilled when the coffee is served.\n */\n buyCoffee(divisionName: string, cityName: string): Promise<void>;\n /**\n * Hire AdVert.\n * @param divisionName - Name of the division\n */\n hireAdVert(divisionName: string): void;\n /**\n * Purchase a research\n * @param divisionName - Name of the division\n * @param researchName - Name of the research\n */\n research(divisionName: string, researchName: string): void;\n /**\n * Get data about an office\n * @param divisionName - Name of the division\n * @param cityName - Name of the city\n * @returns Office data\n */\n getOffice(divisionName: string, cityName: string): Office;\n /**\n * Get data about an employee\n * @param divisionName - Name of the division\n * @param cityName - Name of the city\n * @param employeeName - Name of the employee\n * @returns Employee data\n */\n getEmployee(divisionName: string, cityName: string, employeeName: string): Employee;\n /**\n * Get the cost to Hire AdVert\n * @param divisionName - Name of the division\n * @returns Cost\n */\n getHireAdVertCost(divisionName: string): number;\n /**\n * Get the number of times you have Hired AdVert\n * @param divisionName - Name of the division\n * @returns Number of times you have Hired AdVert\n */\n getHireAdVertCount(adivisionName: string): number;\n /**\n * Get the cost to unlock research\n * @param divisionName - Name of the division\n * @param researchName - Name of the research\n * @returns cost\n */\n getResearchCost(divisionName: string, researchName: string): number;\n /**\n * Gets if you have unlocked a research\n * @param divisionName - Name of the division\n * @param researchName - Name of the research\n * @returns true is unlocked, false if not\n */\n hasResearched(divisionName: string, researchName: string): boolean;\n /**\n * Set the auto job assignment for a job\n * @param divisionName - Name of the division\n * @param cityName - Name of the city\n * @param job - Name of the job\n * @param amount - Number of employees to assign to that job\n * @returns A promise that is fulfilled when the assignment is complete.\n */\n setAutoJobAssignment(divisionName: string, cityName: string, job: string, amount: number): Promise<boolean>;\n /**\n * Cost to Upgrade office size.\n * @param divisionName - Name of the division\n * @param cityName - Name of the city\n * @param size - Amount of positions to open\n * @returns Cost of upgrading the office\n */\n getOfficeSizeUpgradeCost(divisionName: string, cityName: string, asize: number): number;\n}\n\n/**\n * Corporation Warehouse API\n * @remarks\n * Requires the Warehouse API upgrade from your corporation.\n * @public\n */\nexport interface WarehouseAPI {\n /**\n * Set material sell data.\n * @param divisionName - Name of the division\n * @param cityName - Name of the city\n * @param materialName - Name of the material\n * @param amt - Amount to sell, can be "MAX"\n * @param price - Price to sell, can be "MP"\n */\n sellMaterial(divisionName: string, cityName: string, materialName: string, amt: string, price: string): void;\n /**\n * Set product sell data.\n * @param divisionName - Name of the division\n * @param cityName - Name of the city\n * @param productName - Name of the product\n * @param amt - Amount to sell, can be "MAX"\n * @param price - Price to sell, can be "MP"\n * @param all - Sell in all city\n */\n sellProduct(\n divisionName: string,\n cityName: string,\n productName: string,\n amt: string,\n price: string,\n all: boolean,\n ): void;\n /**\n * Discontinue a product.\n * @param divisionName - Name of the division\n * @param productName - Name of the product\n */\n discontinueProduct(divisionName: string, productName: string): void;\n /**\n * Set smart supply\n * @param divisionName - Name of the division\n * @param cityName - Name of the city\n * @param enabled - smart supply enabled\n */\n setSmartSupply(divisionName: string, cityName: string, enabled: boolean): void;\n /**\n * Set whether smart supply uses leftovers before buying\n * @param divisionName - Name of the division\n * @param cityName - Name of the city\n * @param materialName - Name of the material\n * @param enabled - smart supply use leftovers enabled\n */\n setSmartSupplyUseLeftovers(divisionName: string, cityName: string, materialName: string, enabled: boolean): void;\n /**\n * Set material buy data\n * @param divisionName - Name of the division\n * @param cityName - Name of the city\n * @param materialName - Name of the material\n * @param amt - Amount of material to buy\n */\n buyMaterial(divisionName: string, cityName: string, materialName: string, amt: number): void;\n /**\n * Set material to bulk buy\n * @param divisionName - Name of the division\n * @param cityName - Name of the city\n * @param materialName - Name of the material\n * @param amt - Amount of material to buy\n */\n bulkPurchase(divisionName: string, cityName: string, materialName: string, amt: number): void;\n /**\n * Get warehouse data\n * @param divisionName - Name of the division\n * @param cityName - Name of the city\n * @returns warehouse data\n */\n getWarehouse(divisionName: string, cityName: string): Warehouse;\n /**\n * Get product data\n * @param divisionName - Name of the division\n * @param productName - Name of the product\n * @returns product data\n */\n getProduct(divisionName: string, productName: string): Product;\n /**\n * Get material data\n * @param divisionName - Name of the division\n * @param materialName - Name of the material\n * @returns material data\n */\n getMaterial(divisionName: string, cityName: string, materialName: string): Material;\n /**\n * Set market TA 1 for a material.\n * @param divisionName - Name of the division\n * @param cityName - Name of the city\n * @param materialName - Name of the material\n * @param on - market ta enabled\n */\n setMaterialMarketTA1(divisionName: string, cityName: string, materialName: string, on: boolean): void;\n /**\n * Set market TA 2 for a material.\n * @param divisionName - Name of the division\n * @param cityName - Name of the city\n * @param materialName - Name of the material\n * @param on - market ta enabled\n */\n setMaterialMarketTA2(divisionName: string, cityName: string, materialName: string, on: boolean): void;\n /**\n * Set market TA 1 for a product.\n * @param divisionName - Name of the division\n * @param productName - Name of the product\n * @param on - market ta enabled\n */\n setProductMarketTA1(divisionName: string, productName: string, on: boolean): void;\n /**\n * Set market TA 2 for a product.\n * @param divisionName - Name of the division\n * @param productName - Name of the product\n * @param on - market ta enabled\n */\n setProductMarketTA2(divisionName: string, productName: string, on: boolean): void;\n /**\n * Set material export data\n * @param sourceDivision - Source division\n * @param sourceCity - Source city\n * @param targetDivision - Target division\n * @param targetCity - Target city\n * @param materialName - Name of the material\n * @param amt - Amount of material to export.\n */\n exportMaterial(\n sourceDivision: string,\n sourceCity: string,\n targetDivision: string,\n targetCity: string,\n materialName: string,\n amt: number,\n ): void;\n /**\n * Cancel material export\n * @param sourceDivision - Source division\n * @param sourceCity - Source city\n * @param targetDivision - Target division\n * @param targetCity - Target city\n * @param materialName - Name of the material\n * @param amt - Amount of material to export.\n */\n cancelExportMaterial(\n sourceDivision: string,\n sourceCity: string,\n targetDivision: string,\n targetCity: string,\n materialName: string,\n amt: number,\n ): void;\n /**\n * Purchase warehouse for a new city\n * @param divisionName - Name of the division\n * @param cityName - Name of the city\n */\n purchaseWarehouse(divisionName: string, cityName: string): void;\n /**\n * Upgrade warehouse\n * @param divisionName - Name of the division\n * @param cityName - Name of the city\n * @param amt - amount of upgrades defaults to 1\n */\n upgradeWarehouse(divisionName: string, cityName: string, amt?: number): void;\n /**\n * Create a new product\n * @param divisionName - Name of the division\n * @param cityName - Name of the city\n * @param productName - Name of the product\n * @param designInvest - Amount to invest for the design of the product.\n * @param marketingInvest - Amount to invest for the marketing of the product.\n */\n makeProduct(\n divisionName: string,\n cityName: string,\n productName: string,\n designInvest: number,\n marketingInvest: number,\n ): void;\n /**\n * Limit Material Production.\n * @param divisionName - Name of the division\n * @param cityName - Name of the city\n * @param materialName - Name of the material\n * @param qty - Amount to limit to\n */\n limitMaterialProduction(divisionName: string, cityName: string, materialName: string, qty: number): void;\n /**\n * Limit Product Production.\n * @param divisionName - Name of the division\n * @param cityName - Name of the city\n * @param productName - Name of the product\n * @param qty - Amount to limit to\n */\n limitProductProduction(divisionName: string, cityName: string, productName: string, qty: number): void;\n /**\n * Gets the cost to purchase a warehouse\n * @returns cost\n */\n getPurchaseWarehouseCost(): number;\n /**\n * Gets the cost to upgrade a warehouse to the next level\n * @param divisionName - Name of the division\n * @param cityName - Name of the city\n * @param amt - amount of upgrades defaults to 1\n * @returns cost to upgrade\n */\n getUpgradeWarehouseCost(adivisionName: any, acityName: any, amt?: number): number;\n /**\n * Check if you have a warehouse in city\n * @returns true if warehouse is present, false if not\n */\n hasWarehouse(adivisionName: any, acityName: any): boolean;\n}\n\n/**\n * Corporation API\n * @public\n */\nexport interface Corporation extends WarehouseAPI, OfficeAPI {\n /**\n * Create a Corporation\n * @param divisionName - Name of the division\n * @param selfFund - If you should self fund, defaults to true, false will only work on Bitnode 3\n * @returns true if created and false if not\n */\n createCorporation(corporationName: string, selfFund: boolean): boolean;\n /**\n * Check if you have a one time unlockable upgrade\n * @param upgradeName - Name of the upgrade\n * @returns true if unlocked and false if not\n */\n hasUnlockUpgrade(upgradeName: string): boolean;\n /**\n * Gets the cost to unlock a one time unlockable upgrade\n * @param upgradeName - Name of the upgrade\n * @returns cost of the upgrade\n */\n getUnlockUpgradeCost(upgradeName: string): number;\n /**\n * Get the level of a levelable upgrade\n * @param upgradeName - Name of the upgrade\n * @returns the level of the upgrade\n */\n getUpgradeLevel(upgradeName: string): number;\n /**\n * Gets the cost to unlock the next level of a levelable upgrade\n * @param upgradeName - Name of the upgrade\n * @returns cost of the upgrade\n */\n getUpgradeLevelCost(upgradeName: string): number;\n /**\n * Gets the cost to expand into a new industry\n * @param industryName - Name of the industry\n * @returns cost\n */\n getExpandIndustryCost(industryName: string): number;\n /**\n * Gets the cost to expand into a new city\n * @returns cost\n */\n getExpandCityCost(): number;\n /**\n * Get an offer for investment based on you companies current valuation\n * @returns An offer of investment\n */\n getInvestmentOffer(): InvestmentOffer;\n /**\n * Accept investment based on you companies current valuation\n * @remarks\n * Is based on current valuation and will not honer a specific Offer\n * @returns An offer of investment\n */\n acceptInvestmentOffer(): boolean;\n /**\n * Go public\n * @param numShares - number of shares you would like to issue for your IPO\n * @returns true if you successfully go public, false if not\n */\n goPublic(numShares: number): boolean;\n /**\n * Bribe a faction\n * @param factionName - Faction name\n * @param amountCash - Amount of money to bribe\n * @param amountShares - Amount of shares to bribe\n * @returns True if successful, false if not\n */\n bribe(factionName: string, amountCash: number, amountShares: number): boolean;\n /**\n * Get corporation data\n * @returns Corporation data\n */\n getCorporation(): CorporationInfo;\n /**\n * Get division data\n * @param divisionName - Name of the division\n * @returns Division data\n */\n getDivision(divisionName: string): Division;\n /**\n * Expand to a new industry\n * @param industryType - Name of the industry\n * @param divisionName - Name of the division\n */\n expandIndustry(industryType: string, divisionName: string): void;\n /**\n * Expand to a new city\n * @param divisionName - Name of the division\n * @param cityName - Name of the city\n */\n expandCity(divisionName: string, cityName: string): void;\n /**\n * Unlock an upgrade\n * @param upgradeName - Name of the upgrade\n */\n unlockUpgrade(upgradeName: string): void;\n /**\n * Level an upgrade.\n * @param upgradeName - Name of the upgrade\n */\n levelUpgrade(upgradeName: string): void;\n /**\n * Issue dividends\n * @param percent - Percent of profit to issue as dividends.\n */\n issueDividends(percent: number): void;\n /**\n * Buyback Shares\n * @param amount - Amount of shares to buy back.\n *\n */\n buyBackShares(amount: number): void;\n /**\n * Sell Shares\n * @param amount - Amount of shares to sell.\n *\n */\n sellShares(amount: number): void;\n /**\n * Get bonus time.\n *\n * “Bonus time” is accumulated when the game is offline or if the game is inactive in the browser.\n *\n * “Bonus time” makes the game progress faster.\n *\n * @returns Bonus time for the Corporation mechanic in milliseconds.\n */\n getBonusTime(): number;\n}\n\n/**\n * General info about a corporation\n * @public\n */\ninterface CorporationInfo {\n /** Name of the corporation */\n name: string;\n /** Funds available */\n funds: number;\n /** Revenue per second this cycle */\n revenue: number;\n /** Expenses per second this cycle */\n expenses: number;\n /** Indicating if the company is public */\n public: boolean;\n /** Total number of shares issues by this corporation */\n totalShares: number;\n /** Amount of share owned */\n numShares: number;\n /** Cooldown until shares can be sold again */\n shareSaleCooldown: number;\n /** Amount of shares issued */\n issuedShares: number;\n /** Price of the shares */\n sharePrice: number;\n /** State of the corporation. Possible states are START, PURCHASE, PRODUCTION, SALE, EXPORT. */\n state: string;\n /** Array of all divisions */\n divisions: Division[];\n}\n\n/**\n * Employee in an office\n * @public\n */\ninterface Employee {\n /** Name of the employee */\n name: string;\n /** Morale of the employee */\n mor: number;\n /** Happiness of the employee */\n hap: number;\n /** Energy of the employee */\n ene: number;\n /** Intelligence of the employee */\n int: number;\n /** Charisma of the employee */\n cha: number;\n /** Experience of the employee */\n exp: number;\n /** Creativity of the employee */\n cre: number;\n /** Efficiency of the employee */\n eff: number;\n /** Salary of the employee */\n sal: number;\n /** Current Location (city) */\n loc: string;\n /** Current job position */\n pos: string;\n}\n\n/**\n * Product in a warehouse\n * @public\n */\ninterface Product {\n /** Name of the product */\n name: string;\n /** Demand for the product, only present if "Market Research - Demand" unlocked */\n dmd: number | undefined;\n /** Competition for the product, only present if "Market Research - Competition" unlocked */\n cmp: number | undefined;\n /** Product Rating */\n rat: number;\n /** Product Properties. The data is \\{qlt, per, dur, rel, aes, fea\\} */\n properties: { [key: string]: number };\n /** Production cost */\n pCost: number;\n /** Sell cost, can be "MP+5" */\n sCost: string | number;\n /** Data refers to the production, sale, and quantity of the products\n * These values are specific to a city\n * For each city, the data is [qty, prod, sell] */\n cityData: { [key: string]: number[] };\n /** Creation progress - A number between 0-100 representing percentage */\n developmentProgress: number;\n}\n\n/**\n * Material in a warehouse\n * @public\n */\ninterface Material {\n /** Name of the material */\n name: string;\n /** Amount of material */\n qty: number;\n /** Quality of the material */\n qlt: number;\n /** Demand for the material, only present if "Market Research - Demand" unlocked */\n dmd: number | undefined;\n /** Competition for the material, only present if "Market Research - Competition" unlocked */\n cmp: number | undefined;\n /** Amount of material produced */\n prod: number;\n /** Amount of material sold */\n sell: number;\n /** cost to buy material */\n cost: number;\n /** Sell cost, can be "MP+5" */\n sCost: string | number;\n}\n\n/**\n * Warehouse for a division in a city\n * @public\n */\ninterface Warehouse {\n /** Amount of size upgrade bought */\n level: number;\n /** City in which the warehouse is located */\n loc: string;\n /** Total space in the warehouse */\n size: number;\n /** Used space in the warehouse */\n sizeUsed: number;\n /** Smart Supply status in the warehouse */\n smartSupplyEnabled: boolean;\n}\n\n/**\n * Office for a division in a city.\n * @public\n */\ninterface Office {\n /** City of the office */\n loc: string;\n /** Maximum number of employee */\n size: number;\n /** Minimum amount of energy of the employees */\n minEne: number;\n /** Maximum amount of energy of the employees */\n maxEne: number;\n /** Minimum happiness of the employees */\n minHap: number;\n /** Maximum happiness of the employees */\n maxHap: number;\n /** Maximum morale of the employees */\n maxMor: number;\n /** Name of all the employees */\n employees: string[];\n /** Production of the employees */\n employeeProd: EmployeeJobs;\n /** Positions of the employees */\n employeeJobs: EmployeeJobs;\n}\n\n/**\n * Object representing the number of employee in each job.\n * @public\n */\ninterface EmployeeJobs {\n Operations: number;\n Engineer: number;\n Business: number;\n Management: number;\n "Research & Development": number;\n Training: number;\n Unassigned: number;\n}\n\n/**\n * Corporation division\n * @public\n */\ninterface Division {\n /** Name of the division */\n name: string;\n /** Type of division, like Agriculture */\n type: string;\n /** Awareness of the division */\n awareness: number;\n /** Popularity of the division */\n popularity: number;\n /** Production multiplier */\n prodMult: number;\n /** Amount of research in that division */\n research: number;\n /** Revenue last cycle */\n lastCycleRevenue: number;\n /** Expenses last cycle */\n lastCycleExpenses: number;\n /** Revenue this cycle */\n thisCycleRevenue: number;\n /** Expenses this cycle */\n thisCycleExpenses: number;\n /** All research bought */\n upgrades: number[];\n /** Cities in which this division has expanded */\n cities: string[];\n /** Products developed by this division */\n products: string[];\n /** Whether the industry this division is in is capable of making products */\n makesProducts: boolean;\n}\n\n/**\n * Corporation investment offer\n * @public\n */\ninterface InvestmentOffer {\n /** Amount of funds you will get from this investment */\n funds: number;\n /** Amount of share you will give in exchange for this investment */\n shares: number;\n /** Current round of funding (max 4) */\n round: number;\n}\n\n/**\n * Interface Theme\n * @internal\n */\ninterface UserInterfaceTheme {\n [key: string]: string | undefined;\n primarylight: string;\n primary: string;\n primarydark: string;\n successlight: string;\n success: string;\n successdark: string;\n errorlight: string;\n error: string;\n errordark: string;\n secondarylight: string;\n secondary: string;\n secondarydark: string;\n warninglight: string;\n warning: string;\n warningdark: string;\n infolight: string;\n info: string;\n infodark: string;\n welllight: string;\n well: string;\n white: string;\n black: string;\n hp: string;\n money: string;\n hack: string;\n combat: string;\n cha: string;\n int: string;\n rep: string;\n disabled: string;\n backgroundprimary: string;\n backgroundsecondary: string;\n button: string;\n}\n\n/**\n * Interface Styles\n * @internal\n */\ninterface IStyleSettings {\n fontFamily: string;\n lineHeight: number;\n}\n\n/**\n * Game Information\n * @internal\n */\ninterface GameInfo {\n version: string;\n commit: string;\n platform: string;\n}\n\n/**\n * Used for autocompletion\n * @public\n */\ninterface AutocompleteData {\n servers: string[];\n scripts: string[];\n txts: string[];\n flags(schema: [string, string | number | boolean | string[]][]): any;\n}\n'},,,,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var a=n(800),r=n(0),i=n(1),o=n(18);function s(e){const t=function(e,t){let n=-1;for(let a=0;a<t.length;a++)t[a].fulfilled(e)&&(n=a);return n}(e.player,a.a),n=a.a.map((n,a)=>{if(a<=t+1)return r.createElement(i.a,{key:a},"[",n.fulfilled(e.player)?"x":" ","] ",n.title)});return r.createElement(r.Fragment,null,r.createElement(i.a,{variant:"h4"},"Milestones"),r.createElement(o.a,{mx:2},r.createElement(i.a,null,"Milestones don't reward you for completing them. They are here to guide you if you're lost. They will reset when you install Augmentations."),r.createElement("br",null),r.createElement(i.a,null,"Completing fl1ght.exe"),n))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return w}));var a=n(0),r=n.n(a),i=n(1),o=n(251),s=n(96),l=n(152),c=n(118),f=n(142),u=n(18),m=n(248),h=n(1357),d=n(336),p=n(602),g=n(588),y=n(113),b=n.n(y),E=n(608);function v({terminal:e}){return r.a.createElement(i.a,{color:"primary",paragraph:!1},e.getProgressText())}const k=Object(c.a)(e=>Object(f.a)({nopadding:{padding:e.spacing(0)},preformatted:{whiteSpace:"pre-wrap",overflowWrap:"anywhere",margin:e.spacing(0)},list:{padding:e.spacing(0),height:"100%"}}));function w({terminal:e,router:t,player:n}){const c=Object(a.useRef)(null),f=Object(a.useState)(0)[1],[y,w]=Object(a.useState)(0);function _(){const e=c.current;if(null!==e)return window.setTimeout(()=>e.scrollIntoView(!0),50)}Object(a.useEffect)(()=>{const e=b.a.debounce(async()=>{f(e=>e+1)},25,{maxWait:50}),t=d.b.subscribe(e);return()=>{e.cancel(),t()}},[]),Object(a.useEffect)(()=>{const e=b.a.debounce(async()=>{w(e=>e+1)},25,{maxWait:50}),t=d.a.subscribe(e);return()=>{e.cancel(),t()}},[]),_(),Object(a.useEffect)(()=>{let e;const t=setTimeout(()=>{var t;e=null!==(t=_())&&void 0!==t?t:0},50);return()=>{clearTimeout(t),clearTimeout(e)}},[]);const S=k();return r.a.createElement(r.a.Fragment,null,r.a.createElement(u.a,{width:"100%",minHeight:"100vh",display:"flex",alignItems:"flex-end"},r.a.createElement(o.a,{key:y,id:"terminal",classes:{root:S.list}},e.outputHistory.map((t,a)=>t instanceof m.b?r.a.createElement(s.a,{key:a,classes:{root:S.nopadding}},r.a.createElement(E.a,{text:t.text,color:t.color})):t instanceof m.c?r.a.createElement(s.a,{key:a,classes:{root:S.nopadding}},r.a.createElement(i.a,{classes:{root:S.preformatted},paragraph:!1},t.raw)):t instanceof m.a?r.a.createElement(s.a,{key:a,classes:{root:S.nopadding}},r.a.createElement(i.a,null,t.dashes,"> "),r.a.createElement(l.a,{classes:{root:S.preformatted},color:"secondary",paragraph:!1,onClick:()=>e.connectToServer(n,t.hostname)},r.a.createElement(i.a,null,t.hostname))):void 0),null!==e.action&&r.a.createElement(s.a,{classes:{root:S.nopadding}},r.a.createElement(v,{terminal:e})," ")),r.a.createElement("div",{ref:c})),r.a.createElement(u.a,{position:"sticky",bottom:0,width:"100%",px:0},r.a.createElement(h.a,{player:n,router:t,terminal:e})),r.a.createElement(p.b,null),r.a.createElement(g.b,null))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return y}));var a=n(0),r=n.n(a),i=n(1),o=n(118),s=n(142),l=n(43),c=n(811),f=n(75),u=n(25),m=n(1358),h=n(1360),d=n(5);const p=Object(o.a)(e=>Object(s.a)({textfield:{margin:e.spacing(0)},input:{backgroundColor:e.colors.backgroundprimary},nopadding:{padding:e.spacing(0)},preformatted:{whiteSpace:"pre-wrap",margin:e.spacing(0)},list:{padding:e.spacing(0),height:"100%"}}));let g="";function y({terminal:e,router:t,player:n}){const o=Object(a.useRef)(null),[s,y]=Object(a.useState)(g),[b,E]=Object(a.useState)(),[v,k]=Object(a.useState)([]),w=p();function _(e,t){g=e,y(e),t&&E({postUpdate:t})}function S(e){const t=o.current;if(!t)return;const n=s.length,a=t.selectionStart;if(null===a)return;const r=t.value;switch(e.toLowerCase()){case"backspace":a>0&&a<=n+1&&_(r.substr(0,a-1)+r.substr(a));break;case"deletewordbefore":for(let e=a-1;e>-2;--e)if((r.charAt(e)===u.a.SPACE||-1===e)&&e!==a-1)return void _(r.substr(0,e+1)+r.substr(a),()=>{const t=o.current;null==t||t.setSelectionRange(e+1,e+1)});break;case"deletewordafter":for(let e=a+1;e<=s.length+1;++e)if(r.charAt(e)===u.a.SPACE||e===s.length+1)return void _(r.substr(0,a)+r.substr(e+1),()=>{const e=o.current;null==e||e.setSelectionRange(a,a)});break;case"clearafter":_(r.substr(0,a));break;case"clearbefore":_(r.substr(a),()=>C("home"))}}function C(e){const t=o.current;if(!t)return;const n=s.length,a=t.selectionStart;if(null!==a)switch(e.toLowerCase()){case"home":t.setSelectionRange(0,0);break;case"end":t.setSelectionRange(n,n);break;case"prevchar":a>0&&t.setSelectionRange(a-1,a-1);break;case"prevword":for(let e=a-2;e>=0;--e)if(t.value.charAt(e)===u.a.SPACE)return void t.setSelectionRange(e+1,e+1);t.setSelectionRange(0,0);break;case"nextchar":t.setSelectionRange(a+1,a+1);break;case"nextword":for(let e=a+1;e<=n;++e)if(t.value.charAt(e)===u.a.SPACE)return void t.setSelectionRange(e,e);t.setSelectionRange(n,n);break;default:console.warn("Invalid loc argument in Terminal.moveTextCursor()")}}return 0===e.commandHistory.length&&n.terminalCommandHistory.length>0&&(e.commandHistory=n.terminalCommandHistory,e.commandHistoryIndex=e.commandHistory.length),Object(a.useEffect)(()=>{null!=b&&b.postUpdate&&(b.postUpdate(),E(null))},[b]),Object(a.useEffect)(()=>{function a(a){if(e.contractOpen)return;if(null!==e.action&&a.key===u.a.C&&a.ctrlKey)return void e.finishAction(t,n,!0);const r=o.current;a.ctrlKey||a.metaKey||a.key===u.a.C&&(a.ctrlKey||a.metaKey)||r&&r.focus()}return document.addEventListener("keydown",a),()=>document.removeEventListener("keydown",a)}),r.a.createElement(r.a.Fragment,null,r.a.createElement(f.a,{fullWidth:!0,color:null===e.action?"primary":"secondary",autoFocus:!0,disabled:null!==e.action,autoComplete:"off",value:s,classes:{root:w.textfield},onChange:function(e){_(e.target.value),k([])},inputRef:o,InputProps:{id:"terminal-input",className:w.input,startAdornment:r.a.createElement(i.a,{color:null===e.action?"primary":"secondary",flexShrink:0},"[",n.getCurrentServer().hostname," ~",e.cwd(),"]> "),spellCheck:!1,onBlur:()=>k([]),onKeyDown:async function(a){if(a.key===u.a.ENTER&&""!==s)return a.preventDefault(),e.print(`[${n.getCurrentServer().hostname} ~${e.cwd()}]> ${s}`),e.executeCommands(t,n,s),void _("");if(a.key===u.a.TAB&&""!==s){a.preventDefault();let t=s;const r=t.lastIndexOf(";");-1!==r&&(t=t.slice(r+1)),t=t.trim(),t=t.replace(/\s\s+/g," ");const i=t.split(" ");let o=i.length-2;o<-1&&(o=0);const l=await Object(m.a)(n,t,o,e.cwd());if(0==l.length)return;let c="",f="";if(0==i.length)return;1==i.length?f=i[0]:2==i.length?(f=i[0],c=i[1]):3==i.length?(f=i[0]+" "+i[1],c=i[2]):(c=i.pop()+"",f=i.join(" "));let u=Object(h.a)(f,c,l,s);"string"==typeof u&&""!==u&&(u.endsWith(" ")||u.endsWith("/")||1!==l.length||(u+=" "),_(u)),Array.isArray(u)&&k(u)}if(a.key===u.a.L&&a.ctrlKey&&(a.preventDefault(),e.clear()),a.key===u.a.UP_ARROW||d.a.EnableBashHotkeys&&a.key===u.a.P&&a.ctrlKey){d.a.EnableBashHotkeys&&a.preventDefault();const t=e.commandHistoryIndex,n=e.commandHistory.length;if(0==n)return;(t<0||t>n)&&(e.commandHistoryIndex=n),0!=t&&--e.commandHistoryIndex;_(e.commandHistory[e.commandHistoryIndex]);const r=o.current;r&&setTimeout((function(){r.selectionStart=r.selectionEnd=1e4}),10)}if(a.key===u.a.DOWN_ARROW||d.a.EnableBashHotkeys&&a.key===u.a.M&&a.ctrlKey){d.a.EnableBashHotkeys&&a.preventDefault();const t=e.commandHistoryIndex,n=e.commandHistory.length;if(0==n)return;if((t<0||t>n)&&(e.commandHistoryIndex=n),t==n||t==n-1)e.commandHistoryIndex=n,_("");else{++e.commandHistoryIndex;_(e.commandHistory[e.commandHistoryIndex])}}d.a.EnableBashHotkeys&&(a.code===u.b.A&&a.ctrlKey&&(a.preventDefault(),C("home")),a.code===u.b.E&&a.ctrlKey&&(a.preventDefault(),C("end")),a.code===u.b.B&&a.ctrlKey&&(a.preventDefault(),C("prevchar")),a.code===u.b.B&&a.altKey&&(a.preventDefault(),C("prevword")),a.code===u.b.F&&a.ctrlKey&&(a.preventDefault(),C("nextchar")),a.code===u.b.F&&a.altKey&&(a.preventDefault(),C("nextword")),a.code!==u.b.H&&a.code!==u.b.D||!a.ctrlKey||(S("backspace"),a.preventDefault()),a.code===u.b.W&&a.ctrlKey&&(a.preventDefault(),S("deletewordbefore")),a.code===u.b.D&&a.altKey&&(a.preventDefault(),S("deletewordafter")),a.code===u.b.U&&a.ctrlKey&&(a.preventDefault(),S("clearbefore")),a.code===u.b.K&&a.ctrlKey&&(a.preventDefault(),S("clearafter")))}}}),r.a.createElement(c.a,{open:v.length>0,anchorEl:o.current,placement:"top-start"},r.a.createElement(l.a,{sx:{m:1,p:2}},r.a.createElement(i.a,{classes:{root:w.preformatted},color:"primary",paragraph:!1},"Possible autocomplete candidates:"),r.a.createElement(i.a,{classes:{root:w.preformatted},color:"primary",paragraph:!1},v.join(" ")))))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var a=n(83),r=n(654),i=n(162),o=n(262),s=n(27),l=n(44),c=n(495),f=n(548),u=n(99),m=n(655),h=n(656),d=n(325);const p=["alias","analyze","backdoor","cat","cd","check","clear","cls","connect","cp","download","expr","free","grow","hack","help","home","hostname","ifconfig","kill","killall","ls","lscpu","mem","mv","nano","ps","rm","run","scan-analyze","scan","scp","sudov","tail","theme","top","vim","weaken"];async function g(e,t,n,g=""){t=Object(i.h)(t);let y=[];y=y.concat(Object.keys(i.b));const b=e.getCurrentServer(),E=e.getHomeComputer();let v="",k=null;function w(){for(const e of b.contracts)y.push(e.fn)}function _(){for(const e of b.messages)e.endsWith(".msg")||y.push(e)}function S(){for(const e of E.programs)y.push(e)}function C(){for(const e of b.scripts){const t=O(e.filename);t&&y.push(t)}}function x(){for(const e of b.textFiles){const t=O(e.fn);t&&y.push(t)}}function L(){const e=Object(r.b)(b,null==k?"/":k);for(let t=0;t<e.length;++t){const n=O(null==k?e[t]:k+e[t]);null!=n&&(e[t]=n)}y=y.concat(e)}function O(e){if(!k){if(""!==v){let t=v;return t.endsWith("/")||(t+="/"),v+e}return e}return e.startsWith(k)?function(e){return null==v||null==k?(console.warn("convertParentPath() called when paths are null"),e):e.startsWith(k)?v+e.slice(k.length):(console.warn(`convertParentPath() called for invalid path. (filepath=${e}) (evaledParentDirPath=${k})`),e)}(e):null}function M(e){let n=e;return n.endsWith(" ")||(n+=" "),t.startsWith(n)}if(-1===n&&!t.startsWith("./"))return p.concat(Object.keys(i.a)).concat(Object.keys(i.b));const T=t.split(" ");if(0===T.length)return console.warn("Tab autocompletion logic reached invalid branch"),y;const A=T[T.length-1];if(v=Object(a.e)(A),k=Object(a.c)(v,g),"/"===k?k=null:null==k||(k+="/"),M("buy")){const e=[];for(const t of Object.keys(o.a)){const n=o.a[t];e.push(n.program)}return e.concat(Object.keys(i.b))}if(M("scp")&&1===n){for(const e of Object(s.c)())y.push(e.hostname);return y}if(M("scp")&&0===n)return C(),_(),x(),L(),y;if(M("cp")&&0===n)return C(),x(),L(),y;if(M("connect"))return Object(s.c)().filter(e=>b.serversOnNetwork.includes(e.hostname)||e instanceof l.a&&e.backdoorInstalled).map(e=>e.hostname);if(M("nano")||M("vim"))return C(),x(),L(),y;if(M("rm"))return C(),S(),_(),x(),w(),L(),y;const R=await async function(){if(!(M("run")||M("tail")||M("kill")||t.startsWith("./")))return;let n=t;t.startsWith("./")&&(n="run "+t.slice(2));const a=Object(c.b)(n);if(0===a.length)return;const r=Object(c.a)(a[a.length-1]),i=r[1]+"";if(!Object(u.a)(i))return;if(i.endsWith(".script"))return;const o=b.scripts.find(e=>{const t=i.replace(/^\.\//g,"");return O(e.filename)===t||e.filename==="/"+t});if(!o)return;o.module||await Object(m.a)(e,o,b.scripts);const l=await o.module;if(!l.autocomplete)return;const f={"--tail":Boolean,"-t":Number},p=d(f,{permissive:!0,argv:r.slice(2)}),g=Object(h.a)(p._),y={servers:Object(s.c)().map(e=>e.hostname),scripts:b.scripts.map(e=>e.filename),txts:b.textFiles.map(e=>e.fn),flags:e=>{v=e.map(e=>1===e[0].length?"-"+e[0]:"--"+e[0]);try{return g(e)}catch(e){return}}};let E=[],v=[];return E=E.concat(l.autocomplete(y,p._)),E.concat(v)}();if(R)return R;if(t.startsWith("./")){for(const e of b.scripts){const t=O(e.filename);t&&y.push(t)}for(const e of b.programs){const t=O(e);t&&y.push(t)}for(const e of b.contracts){const t=O(e.fn);t&&y.push(t)}return y}return M("run")&&(C(),S(),w(),L()),M("kill")||M("tail")||M("mem")||M("check")?(C(),L(),y):M("cat")?(function(){for(const e of b.messages)e.endsWith(".msg")&&y.push(e)}(),_(),x(),L(),C(),y):M("download")||M("mv")?(C(),x(),L(),y):M("cd")?(L(),y):(M("ls")&&0===n&&L(),M("help")?Object.keys(f.a):y)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));class a{constructor(e,t,n){this.filename=e,this.url=t,this.moduleSequenceNumber=n}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var a=n(24);function r(e,t,n,r){if(n.constructor!==Array)return;if(!Object(a.c)(n))return;if(""===t)for(let t=n.length-1;t>=0;--t)n[t].toLowerCase().startsWith(e.toLowerCase())||n.splice(t,1);else for(let e=n.length-1;e>=0;--e)n[e].toLowerCase().startsWith(t.toLowerCase())||n.splice(e,1);const i=r.lastIndexOf(";");let o="";if(0!==n.length){if(1===n.length)return o=""===t?n[0]:e+" "+n[0],-1===i?o:r.slice(0,i+1)+" "+o;{const o=Object(a.h)(n);return""===t?o===e?n:-1===i?o:`${r.slice(0,i+1)} ${o}`:o===t?n:-1==i?`${e} ${o}`:`${r.slice(0,i+1)} ${e} ${o}`}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var a=n(0),r=n.n(a),i=n(1),o=n(152),s=n(18),l=n(8),c=n(255);function f(e){const[t,n]=Object(a.useState)(!1);return r.a.createElement(r.a.Fragment,null,r.a.createElement(i.a,{variant:"h4"},"Tutorial / Documentation"),r.a.createElement(s.a,{m:2},r.a.createElement(l.a,{onClick:()=>n(!0)},"Soft reset and Restart tutorial"),r.a.createElement(c.a,{open:t,onClose:()=>n(!1),onConfirm:e.reactivateTutorial,confirmationText:"This will reset all your stats to 1 and money to 1k. Are you sure?"}),r.a.createElement(o.a,{color:"primary",target:"_blank",href:"https://bitburner.readthedocs.io/en/latest/guidesandtips/gettingstartedguideforbeginnerprogrammers.html"},r.a.createElement(i.a,null,"Getting Started")),r.a.createElement("br",null),r.a.createElement(o.a,{color:"primary",target:"_blank",href:"https://bitburner.readthedocs.io/en/latest/basicgameplay/servers.html"},r.a.createElement(i.a,null,"Servers & Networking")),r.a.createElement("br",null),r.a.createElement(o.a,{color:"primary",target:"_blank",href:"https://bitburner.readthedocs.io/en/latest/basicgameplay/hacking.html"},r.a.createElement(i.a,null,"Hacking")),r.a.createElement("br",null),r.a.createElement(o.a,{color:"primary",target:"_blank",href:"https://bitburner.readthedocs.io/en/latest/basicgameplay/scripts.html"},r.a.createElement(i.a,null,"Scripts")),r.a.createElement("br",null),r.a.createElement(o.a,{color:"primary",target:"_blank",href:"https://bitburner.readthedocs.io/en/latest/netscript.html"},r.a.createElement(i.a,null,"Netscript Programming Language")),r.a.createElement("br",null),r.a.createElement(o.a,{color:"primary",target:"_blank",href:"https://bitburner.readthedocs.io/en/latest/basicgameplay/world.html"},r.a.createElement(i.a,null,"Traveling")),r.a.createElement("br",null),r.a.createElement(o.a,{color:"primary",target:"_blank",href:"https://bitburner.readthedocs.io/en/latest/basicgameplay/companies.html"},r.a.createElement(i.a,null,"Companies")),r.a.createElement("br",null),r.a.createElement(o.a,{color:"primary",target:"_blank",href:"https://bitburner.readthedocs.io/en/latest/basicgameplay/infiltration.html"},r.a.createElement(i.a,null,"Infiltration")),r.a.createElement("br",null),r.a.createElement(o.a,{color:"primary",target:"_blank",href:"https://bitburner.readthedocs.io/en/latest/basicgameplay/factions.html"},r.a.createElement(i.a,null,"Factions")),r.a.createElement("br",null),r.a.createElement(o.a,{color:"primary",target:"_blank",href:"https://bitburner.readthedocs.io/en/latest/basicgameplay/augmentations.html"},r.a.createElement(i.a,null,"Augmentations")),r.a.createElement("br",null),r.a.createElement(o.a,{color:"primary",target:"_blank",href:"https://bitburner.readthedocs.io/en/latest/shortcuts.html"},r.a.createElement(i.a,null,"Keyboard Shortcuts")),r.a.createElement("br",null),r.a.createElement(o.a,{color:"primary",target:"_blank",href:"https://bitburner.readthedocs.io/en/latest/netscript/netscriptlearntoprogram.html#netscript-1-0-vs-netscript-2-0"},r.a.createElement(i.a,null,"NS1 vs NS2 (or .script vs .js)")),r.a.createElement("br",null),r.a.createElement(o.a,{color:"primary",target:"_blank",href:"https://bitburner.readthedocs.io/en/latest/netscript/netscriptfunctions.html"},r.a.createElement(i.a,null,"Simplified list of functions")),r.a.createElement("br",null),r.a.createElement(o.a,{color:"primary",target:"_blank",href:"https://github.com/danielyxie/bitburner/blob/dev/markdown/bitburner.ns.md"},r.a.createElement(i.a,null,"Complete list of functions"))))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var a=n(0),r=n.n(a),i=n(513),o=n(218),s=n(1363),l=n(1371);function c(e){const t=Object(a.useState)(!1)[1];function n(){t(e=>!e)}Object(a.useEffect)(()=>{const e=setInterval(n,200);return()=>clearInterval(e)},[]);const[c,f]=Object(a.useState)("active");return r.a.createElement(r.a.Fragment,null,r.a.createElement(i.a,{variant:"fullWidth",value:c,onChange:function(e,t){f(t)},sx:{minWidth:"fit-content",maxWidth:"25%"}},r.a.createElement(o.a,{label:"Active",value:"active"}),r.a.createElement(o.a,{label:"Recently Killed",value:"recent"})),"active"===c&&r.a.createElement(s.a,{workerScripts:e.workerScripts}),"recent"===c&&r.a.createElement(l.a,null))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var a=n(0),r=n.n(a),i=n(1364),o=n(1365),s=n(1);function l(e){return r.a.createElement(r.a.Fragment,null,r.a.createElement(s.a,null,"This page displays a list of all of your scripts that are currently running across every machine. It also provides information about each script's production. The scripts are categorized by the hostname of the servers on which they are running."),r.a.createElement(i.a,null),r.a.createElement(o.a,e))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var a=n(0),r=n(20),i=n(121),o=n(28),s=n(1),l=n(118),c=n(142),f=n(150),u=n(151),m=n(30),h=n(48);const d=Object(l.a)(e=>Object(c.a)({cell:{borderBottom:"none",padding:e.spacing(1),margin:e.spacing(1),whiteSpace:"nowrap"},size:{width:"1px"}}));function p(){const e=o.b.Player(),t=d(),n=e.scriptProdSinceLastAug/(e.playtimeSinceLastAug/1e3);return a.createElement(f.a,{size:"small",classes:{root:t.size}},a.createElement(u.a,null,a.createElement(h.a,null,a.createElement(m.a,{component:"th",scope:"row",classes:{root:t.cell}},a.createElement(s.a,{variant:"body2"},"Total production since last Augment Installation:")),a.createElement(m.a,{align:"left",classes:{root:t.cell}},a.createElement(s.a,{variant:"body2"},a.createElement(r.a,{money:e.scriptProdSinceLastAug}))),a.createElement(m.a,{align:"left",classes:{root:t.cell}},a.createElement(s.a,{variant:"body2"},"(",a.createElement(i.a,{money:n}),")")))))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var a=n(0),r=n.n(a),i=n(1366),o=n(75),s=n(251),l=n(1518),c=n(302),f=n(27),u=n(5),m=n(658),h=n(352),d=n.n(h);function p(e){const[t,n]=Object(a.useState)(""),[h,p]=Object(a.useState)(0),[g,y]=Object(a.useState)(u.a.ActiveScriptsServerPageSize),b=Object(a.useState)(!1)[1];const E={};for(const t of e.workerScripts.values()){const e=Object(f.d)(t.hostname);if(null==e){console.warn("WorkerScript has invalid hostname: "+t.hostname);continue}let n=E[e.hostname];void 0===n&&(E[e.hostname]={server:e,workerScripts:[]},n=E[e.hostname]),void 0!==n&&n.workerScripts.push(t)}const v=Object.values(E).filter(e=>e&&(e.server.hostname.includes(t)||e.server.runningScripts.find(e=>e.filename.includes(t))));function k(){b(e=>!e)}return Object(a.useEffect)(()=>c.a.subscribe(k)),r.a.createElement(r.a.Fragment,null,r.a.createElement(o.a,{value:t,onChange:function(e){n(e.target.value),p(0)},autoFocus:!0,InputProps:{startAdornment:r.a.createElement(d.a,null),spellCheck:!1}}),r.a.createElement(s.a,{dense:!0},v.slice(h*g,h*g+g).map(e=>e&&r.a.createElement(i.a,{key:e.server.hostname,server:e.server,workerScripts:e.workerScripts}))),r.a.createElement(l.a,{rowsPerPageOptions:[10,15,20,100],component:"div",count:v.length,rowsPerPage:g,page:h,onPageChange:(e,t)=>{p(t)},onRowsPerPageChange:e=>{u.a.ActiveScriptsServerPageSize=parseInt(e.target.value,10),y(parseInt(e.target.value,10)),p(0)},ActionsComponent:m.a}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var a=n(0),r=n(1),i=n(363),o=n(114),s=n(43),l=n(18),c=n(280),f=n(80),u=n.n(f),m=n(211),h=n.n(m),d=n(1367),p=n(256);function g(e){const[t,n]=a.useState(!1),f=e.server,m=`${f.hostname}${" ".repeat(18)}`.slice(0,Math.max(f.hostname.length,18)),g={progress:f.ramUsed/f.maxRam,totalTicks:30},y=`${m} ${Object(p.a)(g)}`;return a.createElement(l.a,{component:s.a},a.createElement(i.a,{onClick:()=>n(e=>!e)},a.createElement(o.a,{primary:a.createElement(r.a,{style:{whiteSpace:"pre-wrap"}},y)}),t?a.createElement(h.a,{color:"primary"}):a.createElement(u.a,{color:"primary"})),a.createElement(l.a,{mx:2},a.createElement(c.a,{in:t,timeout:0,unmountOnExit:!0},a.createElement(d.a,{workerScripts:e.workerScripts}))))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var a=n(0),r=n.n(a),i=n(1368),o=n(251),s=n(1518),l=n(658),c=n(5);function f(e){const[t,n]=Object(a.useState)(0),[f,u]=Object(a.useState)(c.a.ActiveScriptsScriptPageSize);return r.a.createElement(r.a.Fragment,null,r.a.createElement(o.a,{dense:!0,disablePadding:!0},e.workerScripts.slice(t*f,t*f+f).map(e=>r.a.createElement(i.a,{key:`${e.name}_${e.args}`,workerScript:e}))),r.a.createElement(s.a,{rowsPerPageOptions:[10,15,20,100],component:"div",count:e.workerScripts.length,rowsPerPage:f,page:t,onPageChange:(e,t)=>{n(t)},onRowsPerPageChange:e=>{c.a.ActiveScriptsScriptPageSize=parseInt(e.target.value,10),u(parseInt(e.target.value,10)),n(0)},ActionsComponent:l.a}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return R}));var a=n(0),r=n(6),i=n(150),o=n(30),s=n(48),l=n(151),c=n(8),f=n(18),u=n(43),m=n(1),h=n(112),d=n(646),p=n.n(d),g=n(363),y=n(114),b=n(118),E=n(280),v=n(211),k=n.n(v),w=n(80),_=n.n(w),S=n(144),C=n(14),x=n(182),L=n(24),O=n(261),M=n(20),T=n(121);const A=Object(b.a)({noborder:{borderBottom:"none"}});function R(e){const t=A(),[n,d]=a.useState(!1),b=e.workerScript.scriptRef;const v=S.a.bind(null,b,b.server);const w=b.onlineMoneyMade/b.onlineRunningTime,R=b.onlineExpGained/b.onlineRunningTime;return a.createElement(a.Fragment,null,a.createElement(g.a,{onClick:()=>d(e=>!e),component:u.a},a.createElement(y.a,{primary:a.createElement(m.a,null,"└ ",e.workerScript.name," ",JSON.stringify(e.workerScript.args))}),n?a.createElement(k.a,{color:"primary"}):a.createElement(_.a,{color:"primary"})),a.createElement(E.a,{in:n,timeout:0,unmountOnExit:!0},a.createElement(f.a,{mx:6},a.createElement(i.a,{padding:"none",size:"small"},a.createElement(l.a,null,a.createElement(s.a,null,a.createElement(o.a,{className:t.noborder},a.createElement(m.a,null,"└ Threads:")),a.createElement(o.a,{className:t.noborder},a.createElement(m.a,null,r.a.formatThreads(e.workerScript.scriptRef.threads)))),a.createElement(s.a,null,a.createElement(o.a,{className:t.noborder,colSpan:2},a.createElement(m.a,null,"└ Args: ",Object(O.a)(e.workerScript.args)))),a.createElement(s.a,null,a.createElement(o.a,{className:t.noborder},a.createElement(m.a,null,"└ Online Time:")),a.createElement(o.a,{className:t.noborder},a.createElement(m.a,null,Object(L.d)(1e3*b.onlineRunningTime)))),a.createElement(s.a,null,a.createElement(o.a,{className:t.noborder},a.createElement(m.a,null,"└ Offline Time:")),a.createElement(o.a,{className:t.noborder},a.createElement(m.a,null,Object(L.d)(1e3*b.offlineRunningTime)))),a.createElement(s.a,null,a.createElement(o.a,{className:t.noborder},a.createElement(m.a,null,"└ Total online production:")),a.createElement(o.a,{className:t.noborder,align:"left"},a.createElement(m.a,null,a.createElement(M.a,{money:b.onlineMoneyMade})))),a.createElement(s.a,null,a.createElement(o.a,{className:t.noborder,colSpan:1}),a.createElement(o.a,{className:t.noborder,align:"left"},a.createElement(m.a,null," ",r.a.formatExp(b.onlineExpGained)+" hacking exp"))),a.createElement(s.a,null,a.createElement(o.a,{className:t.noborder},a.createElement(m.a,null,"└ Online production rate:")),a.createElement(o.a,{className:t.noborder,align:"left"},a.createElement(m.a,null,a.createElement(T.a,{money:w})))),a.createElement(s.a,null,a.createElement(o.a,{className:t.noborder,colSpan:1}),a.createElement(o.a,{className:t.noborder,align:"left"},a.createElement(m.a,null," ",r.a.formatExp(R)+" hacking exp / sec"))),a.createElement(s.a,null,a.createElement(o.a,{className:t.noborder},a.createElement(m.a,null,"└ Total offline production:")),a.createElement(o.a,{className:t.noborder,align:"left"},a.createElement(m.a,null,a.createElement(M.a,{money:b.offlineMoneyMade})))),a.createElement(s.a,null,a.createElement(o.a,{className:t.noborder,colSpan:1}),a.createElement(o.a,{className:t.noborder,align:"left"},a.createElement(m.a,null," ",r.a.formatExp(b.offlineExpGained)+" hacking exp"))))),a.createElement(c.a,{onClick:function(){x.c.emit(b)}},"LOG"),a.createElement(h.a,{onClick:function(){v(),Object(C.a)("Killing script")}},a.createElement(p.a,{color:"error"})))))}},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var a=n(0),r=n.n(a),i=n(1),o=n(473),s=n(1372);function l(){return r.a.createElement(r.a.Fragment,null,r.a.createElement(i.a,null,"List of all recently killed scripts."),o.b.map(e=>r.a.createElement(s.a,{key:e.runningScript.pid,recentScript:e})))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return L}));var a=n(0),r=n(6),i=n(150),o=n(30),s=n(48),l=n(151),c=n(18),f=n(43),u=n(1),m=n(8),h=n(363),d=n(114),p=n(118),g=n(280),y=n(211),b=n.n(y),E=n(80),v=n.n(E),k=n(24),w=n(261),_=n(20),S=n(121),C=n(182);const x=Object(p.a)({noborder:{borderBottom:"none"}});function L(e){const t=x(),[n,p]=a.useState(!1),y=e.recentScript,E=y.runningScript.onlineMoneyMade/y.runningScript.onlineRunningTime,L=y.runningScript.onlineExpGained/y.runningScript.onlineRunningTime;return a.createElement(a.Fragment,null,a.createElement(h.a,{onClick:()=>p(e=>!e),component:f.a},a.createElement(d.a,{primary:a.createElement(u.a,null,"└ ",y.runningScript.filename," (died"," ",Object(k.d)((new Date).getTime()-y.timeOfDeath.getTime())," ago)")}),n?a.createElement(b.a,{color:"primary"}):a.createElement(v.a,{color:"primary"})),a.createElement(g.a,{in:n,timeout:0,unmountOnExit:!0},a.createElement(c.a,{mx:6},a.createElement(i.a,{padding:"none",size:"small"},a.createElement(l.a,null,a.createElement(s.a,null,a.createElement(o.a,{className:t.noborder},a.createElement(u.a,null,"└ Threads:")),a.createElement(o.a,{className:t.noborder},a.createElement(u.a,null,r.a.formatThreads(y.runningScript.threads)))),a.createElement(s.a,null,a.createElement(o.a,{className:t.noborder,colSpan:2},a.createElement(u.a,null,"└ Args: ",Object(w.a)(y.runningScript.args)))),a.createElement(s.a,null,a.createElement(o.a,{className:t.noborder},a.createElement(u.a,null,"└ Online Time:")),a.createElement(o.a,{className:t.noborder},a.createElement(u.a,null,Object(k.d)(1e3*y.runningScript.onlineRunningTime)))),a.createElement(s.a,null,a.createElement(o.a,{className:t.noborder},a.createElement(u.a,null,"└ Offline Time:")),a.createElement(o.a,{className:t.noborder},a.createElement(u.a,null,Object(k.d)(1e3*y.runningScript.offlineRunningTime)))),a.createElement(s.a,null,a.createElement(o.a,{className:t.noborder},a.createElement(u.a,null,"└ Total online production:")),a.createElement(o.a,{className:t.noborder,align:"left"},a.createElement(u.a,null,a.createElement(_.a,{money:y.runningScript.onlineMoneyMade})))),a.createElement(s.a,null,a.createElement(o.a,{className:t.noborder,colSpan:1}),a.createElement(o.a,{className:t.noborder,align:"left"},a.createElement(u.a,null," ",r.a.formatExp(y.runningScript.onlineExpGained)+" hacking exp"))),a.createElement(s.a,null,a.createElement(o.a,{className:t.noborder},a.createElement(u.a,null,"└ Online production rate:")),a.createElement(o.a,{className:t.noborder,align:"left"},a.createElement(u.a,null,a.createElement(S.a,{money:E})))),a.createElement(s.a,null,a.createElement(o.a,{className:t.noborder,colSpan:1}),a.createElement(o.a,{className:t.noborder,align:"left"},a.createElement(u.a,null," ",r.a.formatExp(L)+" hacking exp / sec"))),a.createElement(s.a,null,a.createElement(o.a,{className:t.noborder},a.createElement(u.a,null,"└ Total offline production:")),a.createElement(o.a,{className:t.noborder,align:"left"},a.createElement(u.a,null,a.createElement(_.a,{money:y.runningScript.offlineMoneyMade})))),a.createElement(s.a,null,a.createElement(o.a,{className:t.noborder,colSpan:1}),a.createElement(o.a,{className:t.noborder,align:"left"},a.createElement(u.a,null," ",r.a.formatExp(y.runningScript.offlineExpGained)+" hacking exp"))))),a.createElement(m.a,{onClick:function(){C.c.emit(y.runningScript)}},"LOG"))))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return v}));var a=n(0),r=n.n(a),i=n(1374),o=n(1375),s=n(1377),l=n(358),c=n(12),f=n(21),u=n(28),m=n(8),h=n(1),d=n(1378),p=n(4),g=n(1383),y=n(223),b=n(101);function E({faction:e,rerender:t,onAugmentations:n}){const i=u.b.Player(),E=u.b.Router(),[v,k]=Object(a.useState)(!1),w=e.getInfo();function _(){i.startFocusing(),E.toWork()}const S=i.inGang()&&i.getGangName()===e.name,C=Math.floor(c.a.BaseFavorToDonate*f.a.RepToDonateToFaction),x=e.favor>=C,L=e.name===p.a.TheCovenant&&10===i.bitNodeN;return r.a.createElement(r.a.Fragment,null,r.a.createElement(m.a,{onClick:()=>E.toFactions()},"Back"),r.a.createElement(h.a,{variant:"h4",color:"primary"},e.name),r.a.createElement(s.a,{faction:e,factionInfo:w}),r.a.createElement(g.a,{faction:e}),!S&&w.offerHackingWork&&r.a.createElement(l.a,{buttonText:"Hacking Contracts",infoText:"Complete hacking contracts for your faction. Your effectiveness, which determines how much reputation you gain for this faction, is based on your hacking skill. You will gain hacking exp.",onClick:()=>function(e){i.startWork(new y.a({singularity:!1,faction:e.name,factionWorkType:b.a.HACKING})),_()}(e)}),!S&&w.offerFieldWork&&r.a.createElement(l.a,{buttonText:"Field Work",infoText:"Carry out field missions for your faction. Your effectiveness, which determines how much reputation you gain for this faction, is based on all of your stats. You will gain exp for all stats.",onClick:()=>function(e){i.startWork(new y.a({singularity:!1,faction:e.name,factionWorkType:b.a.HACKING})),_()}(e)}),!S&&w.offerSecurityWork&&r.a.createElement(l.a,{buttonText:"Security Work",infoText:"Serve in a security detail for your faction. Your effectiveness, which determines how much reputation you gain for this faction, is based on your combat stats. You will gain exp for all combat stats.",onClick:()=>function(e){i.startWork(new y.a({singularity:!1,faction:e.name,factionWorkType:b.a.HACKING})),_()}(e)}),!S&&w.offersWork()&&r.a.createElement(o.a,{faction:e,p:i,rerender:t,favorToDonate:C,disabled:!x}),r.a.createElement(l.a,{buttonText:"Purchase Augmentations",infoText:"As your reputation with this faction rises, you will unlock Augmentations, which you can purchase to enhance your abilities.",onClick:n}),L&&r.a.createElement(r.a.Fragment,null,r.a.createElement(l.a,{buttonText:"Purchase & Upgrade Duplicate Sleeves",infoText:"Purchase Duplicate Sleeves and upgrades. These are permanent!",onClick:()=>k(!0)}),r.a.createElement(d.a,{open:v,onClose:()=>k(!1)})))}function v(e){const t=Object(a.useState)(!1)[1],n=u.b.Player(),o=u.b.Router(),[s,l]=Object(a.useState)(e.augPage);function c(){t(e=>!e)}Object(a.useEffect)(()=>{const e=setInterval(c,200);return()=>clearInterval(e)},[]);const f=e.faction;return n&&!n.factions.includes(f.name)?r.a.createElement(r.a.Fragment,null,r.a.createElement(h.a,{variant:"h4",color:"primary"},"You have not joined ",f.name," yet!"),r.a.createElement(m.a,{onClick:()=>o.toFactions()},"Back to Factions")):s?r.a.createElement(i.a,{faction:f,routeToMainPage:()=>l(!1)}):r.a.createElement(E,{rerender:c,faction:f,onAugmentations:()=>l(!0)})}},function(e,t,n){"use strict";n.d(t,"a",(function(){return _}));var a=n(1),r=n(252),i=n(8),o=n(43),s=n(18),l=n(19),c=n(0),f=n.n(c),u=n(73),m=n(115),h=n(11),d=n(648),p=n(175),g=n(5),y=n(28),b=n(6),E=n(331),v=n(139),k=n(4),w=n(105);function _(e){const t=y.b.Player(),n=Object(c.useState)(!1)[1];function _(){n(e=>!e)}function S(){return Object(w.a)(t,e.faction)}function C(e){g.a.PurchaseAugmentationsOrder=e,_()}const x=function(){switch(g.a.PurchaseAugmentationsOrder){case p.b.Cost:return function(){const e=S();return e.sort((e,n)=>{const a=u.a[e],r=u.a[n];if(null==a||null==r)throw new Error("Invalid Augmentation Names");return a.getCost(t).moneyCost-r.getCost(t).moneyCost}),e}();case p.b.Reputation:return function(){const e=S();return e.sort((e,n)=>{const a=u.a[e],r=u.a[n];if(null==a||null==r)throw new Error("Invalid Augmentation Names");return a.getCost(t).repCost-r.getCost(t).repCost}),e}();case p.b.Purchasable:return function(){const n=S();function a(n){const a=u.a[n],r=a.getCost(t),i=r.repCost,o=e.faction.playerReputation>=i,s=Object(w.b)(a);return 0!==r.moneyCost&&t.money>r.moneyCost&&o&&s}const r=n.filter(a).sort((e,n)=>{const a=u.a[e],r=u.a[n];if(null==a||null==r)throw new Error("Invalid Augmentation Names");return a.getCost(t).moneyCost-r.getCost(t).moneyCost}),i=n.filter(e=>!a(e)).sort((e,n)=>{const a=u.a[e],r=u.a[n];if(null==a||null==r)throw new Error("Invalid Augmentation Names");return a.getCost(t).repCost-r.getCost(t).repCost});return r.concat(i)}();default:return S()}}(),L=x.filter(e=>e===h.a.NeuroFluxGovernor||!t.augmentations.some(t=>t.name===e)&&!t.queuedAugmentations.some(t=>t.name===e)),O=x.filter(e=>!L.includes(e)),M=e.faction.name!==k.a.ShadowsOfAnarchy?f.a.createElement(a.a,null,f.a.createElement("b",null,"Price multiplier:")," x ",b.a.formatReallyBigNumber(Object(m.d)())):f.a.createElement(f.a.Fragment,null);return f.a.createElement(f.a.Fragment,null,f.a.createElement(r.a,{disableGutters:!0,maxWidth:"lg",sx:{mx:0}},f.a.createElement(i.a,{onClick:e.routeToMainPage},"Back"),f.a.createElement(a.a,{variant:"h4"},"Faction Augmentations - ",e.faction.name),f.a.createElement(o.a,{sx:{p:1,mb:1}},f.a.createElement(a.a,null,"These are all of the Augmentations that are available to purchase from ",f.a.createElement("b",null,e.faction.name),". Augmentations are powerful upgrades that will enhance your abilities.",f.a.createElement("br",null)),f.a.createElement(s.a,{sx:{display:"grid",gridTemplateColumns:`repeat(${e.faction.name===k.a.ShadowsOfAnarchy?"2":"3"}, 1fr)`,justifyItems:"center",my:1}},f.a.createElement(l.a,{title:f.a.createElement(a.a,null,"The price of every Augmentation increases for every queued Augmentation and it is reset when you install them.")},M),f.a.createElement(a.a,null,f.a.createElement("b",null,"Reputation:")," ",f.a.createElement(v.a,{reputation:e.faction.playerReputation})),f.a.createElement(a.a,null,f.a.createElement("b",null,"Favor:")," ",f.a.createElement(E.a,{favor:Math.floor(e.faction.favor)}))),f.a.createElement(s.a,{sx:{display:"grid",gridTemplateColumns:"repeat(4, 1fr)"}},f.a.createElement(i.a,{onClick:()=>C(p.b.Cost)},"Sort by Cost"),f.a.createElement(i.a,{onClick:()=>C(p.b.Reputation)},"Sort by Reputation"),f.a.createElement(i.a,{onClick:()=>C(p.b.Default)},"Sort by Default Order"),f.a.createElement(i.a,{onClick:()=>C(p.b.Purchasable)},"Sort by Purchasable")))),f.a.createElement(d.a,{augNames:L,ownedAugNames:O,player:t,canPurchase:(t,n)=>{const a=n.getCost(t);return Object(w.b)(n)&&e.faction.playerReputation>=a.repCost&&(0===a.moneyCost||t.money>a.moneyCost)},purchaseAugmentation:(t,n,a)=>{g.a.SuppressBuyAugmentationConfirmation?(Object(w.f)(n,e.faction),_()):a(!0)},rep:e.faction.playerReputation,faction:e.faction}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var a=n(0),r=n.n(a),i=n(12),o=n(541),s=n(331),l=n(20),c=n(139),f=n(14),u=n(270),m=n(1),h=n(43),d=n(8),p=n(1376);function g(e){const[t,n]=Object(a.useState)(NaN),g=(i.a.DonateMoneyToRepDivisor+"").length-1;function y(){return!isNaN(t)&&(!(isNaN(t)||t<=0)&&!(e.p.money<t))}function b(){return null===t?r.a.createElement(r.a.Fragment,null):y()?r.a.createElement(m.a,null,"This donation will result in ",r.a.createElement(c.a,{reputation:Object(o.a)(t,e.p)})," reputation gain"):e.p.money<t?r.a.createElement(m.a,null,"Insufficient funds"):r.a.createElement(m.a,null,"Invalid donate amount entered!")}return r.a.createElement(h.a,{sx:{my:1,p:1}},r.a.createElement(b,null),e.disabled?r.a.createElement(m.a,null,"Unlock donations at ",r.a.createElement(s.a,{favor:e.favorToDonate})," favor with ",e.faction.name):r.a.createElement(r.a.Fragment,null,r.a.createElement(p.a,{onChange:n,placeholder:"Donation amount",disabled:e.disabled,InputProps:{endAdornment:r.a.createElement(d.a,{onClick:function(){const n=e.faction,a=t;if(isNaN(a))return;if(!y())return;e.p.loseMoney(a,"other");const i=Object(o.a)(a,e.p);e.faction.playerReputation+=i,Object(f.a)(r.a.createElement(r.a.Fragment,null,"You just donated ",r.a.createElement(l.a,{money:a})," to ",n.name," to gain ",r.a.createElement(c.a,{reputation:i})," reputation.")),e.rerender()},disabled:e.disabled||!y()},"donate")}}),r.a.createElement(m.a,null,r.a.createElement(u.a,null,`\\(reputation = \\frac{\\text{donation amount} \\cdot \\text{reputation multiplier}}{10^{${g}}}\\)`))))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var a=n(75),r=n(0),i=n.n(r),o=n(6);function s(e){const t={...e,onChange:t=>{const n=o.a.parseMoney(t.target.value);""===t.target.value||isNaN(n)?e.onChange(NaN):e.onChange(n)}};return i.a.createElement(a.a,t)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var a=n(0),r=n.n(a),i=n(139),o=n(331),s=n(270),l=n(118),c=n(142),f=n(1),u=n(19),m=n(18);const h=Object(l.a)(()=>Object(c.a)({noformat:{whiteSpace:"pre-wrap",lineHeight:"1em"}}));function d(){return r.a.createElement(f.a,null,"Perform work/carry out assignments for your faction to help further its cause! By doing so you will earn reputation for your faction. You will also gain reputation passively over time, although at a very slow rate. Earning reputation will allow you to purchase Augmentations through this faction, which are powerful upgrades that enhance your abilities.")}function p(e){var t;const n=Object(a.useState)(!1)[1];function l(){n(e=>!e)}Object(a.useEffect)(()=>{const e=setInterval(l,200);return()=>clearInterval(e)},[]);const c=h(),p=null!==(t=e.factionInfo.assignment)&&void 0!==t?t:d,g=e.faction.getFavorGain();return r.a.createElement(r.a.Fragment,null,r.a.createElement(f.a,{classes:{root:c.noformat}},e.factionInfo.infoText),r.a.createElement(f.a,null,"-------------------------"),r.a.createElement(m.a,{display:"flex"},r.a.createElement(u.a,{title:r.a.createElement(r.a.Fragment,null,r.a.createElement(f.a,null,"You will have ",r.a.createElement(o.a,{favor:Math.floor(e.faction.favor+g)})," faction favor after installing an Augmentation."),r.a.createElement(s.a,null,"\\(\\huge{r = \\text{total faction reputation}}\\)"),r.a.createElement(s.a,null,"\\(\\huge{favor=1+\\left\\lfloor\\log_{1.02}\\left(\\frac{r+25000}{25500}\\right)\\right\\rfloor}\\)"))},r.a.createElement(f.a,null,"Reputation: ",r.a.createElement(i.a,{reputation:e.faction.playerReputation})))),r.a.createElement(f.a,null,"-------------------------"),r.a.createElement(m.a,{display:"flex"},r.a.createElement(u.a,{title:r.a.createElement(r.a.Fragment,null,r.a.createElement(f.a,null,"Faction favor increases the rate at which you earn reputation for this faction by 1% per favor. Faction favor is gained whenever you install an Augmentation. The amount of favor you gain depends on the total amount of reputation you earned with this faction. Across all resets."),r.a.createElement(s.a,null,"\\(\\huge{r = reputation}\\)"),r.a.createElement(s.a,null,"\\(\\huge{\\Delta r = \\Delta r \\times \\frac{100+favor}{100}}\\)"))},r.a.createElement(f.a,null,"Faction Favor: ",r.a.createElement(o.a,{favor:Math.floor(e.faction.favor)})))),r.a.createElement(f.a,null,"-------------------------"),r.a.createElement(p,null))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var a=n(0),r=n.n(a),i=n(1379),o=n(334),s=n(510),l=n(20),c=n(37),f=n(28),u=n(14),m=n(1),h=n(8),d=n(4);function p(e){const t=f.b.Player(),[n,p]=Object(a.useState)(0);function g(){return Math.pow(10,t.sleevesFromCovenant)*s.a}function y(){p(n+1)}let b=!1;t.canAfford(g())||(b=!0),t.sleevesFromCovenant>=s.b&&(b=!0);const E=[];for(let e=0;e<t.sleeves.length;++e){const n=t.sleeves[e];E.push(r.a.createElement(i.a,{index:e,p:t,rerender:y,sleeve:n}))}return r.a.createElement(c.a,{open:e.open,onClose:e.onClose},r.a.createElement(r.a.Fragment,null,t.sleevesFromCovenant<s.b&&r.a.createElement(r.a.Fragment,null,r.a.createElement(m.a,null,"Purchase an additional Sleeves. These Duplicate Sleeves are permanent (they persist through BitNodes). You can purchase a total of ",s.b," from ",d.a.TheCovenant,"."),r.a.createElement(h.a,{disabled:b,onClick:function(){t.sleevesFromCovenant>=s.b||(t.canAfford(g())?(t.loseMoney(g(),"sleeves"),t.sleevesFromCovenant+=1,t.sleeves.push(new o.a(t)),y()):Object(u.a)("You cannot afford to purchase a Duplicate Sleeve"))}},"Purchase - ",r.a.createElement(l.a,{money:g(),player:t}))),r.a.createElement("br",null),r.a.createElement("br",null),r.a.createElement(m.a,null,"You can also purchase upgrades for your Sleeves. These upgrades are also permanent."),E))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var a=n(0),r=n.n(a),i=n(6),o=n(20),s=n(1),l=n(75),c=n(8),f=n(18),u=n(43);function m(e){const[t,n]=Object(a.useState)(1);function m(){if(isNaN(t))return 1/0;const n=100-e.sleeve.memory;return t>n?1/0:e.sleeve.getMemoryUpgradeCost(t)}const h=m(),d=!e.p.canAfford(h);let p=r.a.createElement(r.a.Fragment,null);return p=isNaN(t)?r.a.createElement(r.a.Fragment,null,"Invalid value"):r.a.createElement(r.a.Fragment,null,"Purchase ",t," memory - ",r.a.createElement(o.a,{money:h,player:e.p})),r.a.createElement(u.a,{sx:{my:1,p:1}},r.a.createElement(s.a,{variant:"h6",color:"primary"},"Upgrade Memory of Sleeve ",e.index),r.a.createElement(s.a,null,"Purchase a memory upgrade for your sleeve. Note that a sleeve's max memory is 100 (current:"," ",i.a.formatSleeveMemory(e.sleeve.memory),")"),r.a.createElement(f.a,{display:"flex",flexDirection:"row",alignItems:"center"},r.a.createElement(s.a,null,"Amount of memory to purchase (must be an integer): "),r.a.createElement(l.a,{onChange:function(t){let a=parseInt(t.target.value);isNaN(a)&&(a=1),a<1&&(a=1);const r=100-e.sleeve.memory;a>r&&(a=r),n(a)},type:"number",value:t})),r.a.createElement("br",null),r.a.createElement(c.a,{disabled:d,onClick:function(){const n=m();e.p.canAfford(n)&&(e.sleeve.upgradeMemory(t),e.p.loseMoney(n,"sleeves"),e.rerender())}},p))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var a=n(58),r=n(21),i=n(15),o=n(12),s=n(185),l=n(288),c=n(240);function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class u{constructor(){f(this,"hacking",1),f(this,"strength",1),f(this,"defense",1),f(this,"dexterity",1),f(this,"agility",1),f(this,"charisma",1),f(this,"intelligence",0),f(this,"hp",10),f(this,"max_hp",10),f(this,"hacking_exp",0),f(this,"strength_exp",0),f(this,"defense_exp",0),f(this,"dexterity_exp",0),f(this,"agility_exp",0),f(this,"charisma_exp",0),f(this,"intelligence_exp",0),f(this,"mults",Object(c.a)()),f(this,"augmentations",[]),f(this,"city",i.a.Sector12),f(this,"gainHackingExp",a.A),f(this,"gainStrengthExp",a.E),f(this,"gainDefenseExp",a.y),f(this,"gainDexterityExp",a.z),f(this,"gainAgilityExp",a.v),f(this,"gainCharismaExp",a.w),f(this,"gainIntelligenceExp",a.B),f(this,"gainStats",a.D),f(this,"calculateSkill",a.o),f(this,"regenerateHp",a.bb),f(this,"queryStatFromString",a.U)}applyAugmentation(e){this.mults=Object(c.b)(this.mults,e.mults)}calculateStat(e,t=1){return Object(s.b)(e,t)}getFactionFieldWorkRepGain(){return.9*(this.hacking/o.a.MaxSkillLevel+this.strength/o.a.MaxSkillLevel+this.defense/o.a.MaxSkillLevel+this.dexterity/o.a.MaxSkillLevel+this.agility/o.a.MaxSkillLevel+this.charisma/o.a.MaxSkillLevel)/5.5*this.mults.faction_rep}getFactionHackingWorkRepGain(){return this.hacking/o.a.MaxSkillLevel*this.mults.faction_rep}getFactionSecurityWorkRepGain(){return.9*(this.hacking/o.a.MaxSkillLevel+this.strength/o.a.MaxSkillLevel+this.defense/o.a.MaxSkillLevel+this.dexterity/o.a.MaxSkillLevel+this.agility/o.a.MaxSkillLevel)/4.5*this.mults.faction_rep}resetMultipliers(){this.mults=Object(c.a)()}updateStatLevels(){this.hacking=Math.max(1,Math.floor(this.calculateStat(this.hacking_exp,this.mults.hacking*r.a.HackingLevelMultiplier))),this.strength=Math.max(1,Math.floor(this.calculateStat(this.strength_exp,this.mults.strength*r.a.StrengthLevelMultiplier))),this.defense=Math.max(1,Math.floor(this.calculateStat(this.defense_exp,this.mults.defense*r.a.DefenseLevelMultiplier))),this.dexterity=Math.max(1,Math.floor(this.calculateStat(this.dexterity_exp,this.mults.dexterity*r.a.DexterityLevelMultiplier))),this.agility=Math.max(1,Math.floor(this.calculateStat(this.agility_exp,this.mults.agility*r.a.AgilityLevelMultiplier))),this.charisma=Math.max(1,Math.floor(this.calculateStat(this.charisma_exp,this.mults.charisma*r.a.CharismaLevelMultiplier)));const e=this.hp/this.max_hp;this.max_hp=Math.floor(10+this.defense/10),this.hp=Math.round(this.max_hp*e)}getIntelligenceBonus(e){return Object(l.a)(this.intelligence,e)}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var a=n(378),r=n(2);function i(e){const t="SourceFile"+e.n,n=a.a[t];if(null!=n){switch(e.n){case 1:{let t=0;for(let n=0;n<e.lvl;++n)t+=16/Math.pow(2,n);const n=1+t/100,a=1-t/100;r.a.mults.hacking_chance*=n,r.a.mults.hacking_speed*=n,r.a.mults.hacking_money*=n,r.a.mults.hacking_grow*=n,r.a.mults.hacking*=n,r.a.mults.strength*=n,r.a.mults.defense*=n,r.a.mults.dexterity*=n,r.a.mults.agility*=n,r.a.mults.charisma*=n,r.a.mults.hacking_exp*=n,r.a.mults.strength_exp*=n,r.a.mults.defense_exp*=n,r.a.mults.dexterity_exp*=n,r.a.mults.agility_exp*=n,r.a.mults.charisma_exp*=n,r.a.mults.company_rep*=n,r.a.mults.faction_rep*=n,r.a.mults.crime_money*=n,r.a.mults.crime_success*=n,r.a.mults.hacknet_node_money*=n,r.a.mults.hacknet_node_purchase_cost*=a,r.a.mults.hacknet_node_ram_cost*=a,r.a.mults.hacknet_node_core_cost*=a,r.a.mults.hacknet_node_level_cost*=a,r.a.mults.work_money*=n;break}case 2:{let t=0;for(let n=0;n<e.lvl;++n)t+=24/Math.pow(2,n);const n=1+t/100;r.a.mults.crime_money*=n,r.a.mults.crime_success*=n,r.a.mults.charisma*=n;break}case 3:{let t=0;for(let n=0;n<e.lvl;++n)t+=8/Math.pow(2,n);const n=1+t/100;r.a.mults.charisma*=n,r.a.mults.work_money*=n;break}case 4:break;case 5:{let t=0;for(let n=0;n<e.lvl;++n)t+=8/Math.pow(2,n);const n=1+t/100;r.a.mults.hacking_chance*=n,r.a.mults.hacking_speed*=n,r.a.mults.hacking_money*=n,r.a.mults.hacking_grow*=n,r.a.mults.hacking*=n,r.a.mults.hacking_exp*=n;break}case 6:{let t=0;for(let n=0;n<e.lvl;++n)t+=8/Math.pow(2,n);const n=1+t/100;r.a.mults.strength_exp*=n,r.a.mults.defense_exp*=n,r.a.mults.dexterity_exp*=n,r.a.mults.agility_exp*=n,r.a.mults.strength*=n,r.a.mults.defense*=n,r.a.mults.dexterity*=n,r.a.mults.agility*=n;break}case 7:{let t=0;for(let n=0;n<e.lvl;++n)t+=8/Math.pow(2,n);const n=1+t/100;r.a.mults.bladeburner_max_stamina*=n,r.a.mults.bladeburner_stamina_gain*=n,r.a.mults.bladeburner_analysis*=n,r.a.mults.bladeburner_success_chance*=n;break}case 8:{let t=0;for(let n=0;n<e.lvl;++n)t+=12/Math.pow(2,n);const n=1+t/100;r.a.mults.hacking_grow*=n;break}case 9:{let t=0;for(let n=0;n<e.lvl;++n)t+=8/Math.pow(2,n);const n=1+t/100,a=1-t/100;r.a.mults.hacknet_node_core_cost*=a,r.a.mults.hacknet_node_level_cost*=a,r.a.mults.hacknet_node_money*=n,r.a.mults.hacknet_node_purchase_cost*=a,r.a.mults.hacknet_node_ram_cost*=a;break}case 10:break;case 11:{let t=0;for(let n=0;n<e.lvl;++n)t+=32/Math.pow(2,n);const n=1+t/100;r.a.mults.work_money*=n,r.a.mults.company_rep*=n;break}case 12:case 13:break;default:console.error("Invalid source file number: "+e.n)}n.owned=!0}else console.error("Invalid source file number: "+e.n)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var a=n(2),r=n(109);function i(){if(a.a.exploits&&0===a.a.exploits.length)return;a.a.exploits=Object(r.c)(a.a.exploits);const e=Math.pow(1.001,a.a.exploits.length),t=Math.pow(.999,a.a.exploits.length);a.a.mults.hacking_chance*=e,a.a.mults.hacking_speed*=e,a.a.mults.hacking_money*=e,a.a.mults.hacking_grow*=e,a.a.mults.hacking*=e,a.a.mults.strength*=e,a.a.mults.defense*=e,a.a.mults.dexterity*=e,a.a.mults.agility*=e,a.a.mults.charisma*=e,a.a.mults.hacking_exp*=e,a.a.mults.strength_exp*=e,a.a.mults.defense_exp*=e,a.a.mults.dexterity_exp*=e,a.a.mults.agility_exp*=e,a.a.mults.charisma_exp*=e,a.a.mults.company_rep*=e,a.a.mults.faction_rep*=e,a.a.mults.crime_money*=e,a.a.mults.crime_success*=e,a.a.mults.hacknet_node_money*=e,a.a.mults.hacknet_node_purchase_cost*=t,a.a.mults.hacknet_node_ram_cost*=t,a.a.mults.hacknet_node_core_cost*=t,a.a.mults.hacknet_node_level_cost*=t,a.a.mults.work_money*=e}},function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var a=n(1),r=n(18),i=n(43),o=n(19),s=n(8),l=n(0),c=n.n(l),f=n(190),u=n(28),m=n(1384);function h({faction:e}){const t=u.b.Player(),n=u.b.Router(),[h,d]=Object(l.useState)(!1);if(!f.a.Names.includes(e.name)||!t.isAwareOfGang()||t.inGang()&&t.getGangName()!==e.name)return c.a.createElement(c.a.Fragment,null);let p={enabled:!1,title:"",tooltip:"",description:""};p=t.inGang()?{enabled:!0,title:"Manage Gang",tooltip:"",description:"Manage a gang for this Faction. Gangs will earn you money and faction reputation"}:{enabled:t.canAccessGang(),title:"Create Gang",tooltip:t.canAccessGang()?"":c.a.createElement(a.a,null,"Unlocked when reaching ",f.a.GangKarmaRequirement," karma"),description:"Create a gang for this Faction. Gangs will earn you money and faction reputation"};return c.a.createElement(c.a.Fragment,null,c.a.createElement(r.a,null,c.a.createElement(i.a,{sx:{my:1,p:1}},c.a.createElement(o.a,{title:p.tooltip},c.a.createElement("span",null,c.a.createElement(s.a,{onClick:()=>{if(t.inGang())return n.toGang();d(!0)},disabled:!p.enabled},p.title))),c.a.createElement(a.a,null,p.description))),c.a.createElement(m.a,{facName:e.name,open:h,onClose:()=>d(!1)}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var a=n(0),r=n.n(a),i=n(37),o=n(28),s=n(1),l=n(8),c=n(25),f=n(4);function u(e){const t=o.b.Player(),n=o.b.Router();function a(){return[f.a.NiteSec,f.a.TheBlackHand].includes(e.facName)}function u(){t.startGang(e.facName,a()),e.onClose(),n.toGang()}return r.a.createElement(i.a,{open:e.open,onClose:e.onClose},r.a.createElement(s.a,null,"Would you like to create a new Gang with ",e.facName,"?",r.a.createElement("br",null),r.a.createElement("br",null),"Note that this will prevent you from creating a Gang with any other Faction until this BitNode is destroyed. It also resets your reputation with this faction.",r.a.createElement("br",null),r.a.createElement("br",null),a()?"This is a HACKING gang. Members in this gang will have different tasks than COMBAT gangs. Compared to combat gangs, progression with hacking gangs is more straightforward as territory warfare is not as important.":"This is a COMBAT gang. Members in this gang will have different tasks than HACKING gangs. Compared to hacking gangs, progression with combat gangs can be more difficult as territory management is more important. However, well-managed combat gangs can progress faster than hacking ones.",r.a.createElement("br",null),r.a.createElement("br",null),"Other than hacking vs combat, there are NO differences between the Factions you can create a Gang with, and each of these Factions have all Augmentations available."),r.a.createElement(l.a,{onClick:u,onKeyUp:function(e){e.key===c.a.ENTER&&u()},autoFocus:!0},"Create Gang"))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return N}));var a=n(1),r=n(150),i=n(151),o=n(43),s=n(252),l=n(18),c=n(112),f=n(19),u=n(1519),m=n(705),h=n(0),d=n.n(h),p=n(153),g=n(21),y=n(659),b=n(40),E=n(227),v=n(5),k=n(24),w=n(28),_=n(6),S=n(37),C=n(20),x=n(76),L=n(203),O=n(113);const M=({open:e,onClose:t})=>{const n=w.b.Player();return d.a.createElement(S.a,{open:e,onClose:t},d.a.createElement(d.a.Fragment,null,d.a.createElement(a.a,{variant:"h5"},"All Employers"),d.a.createElement("ul",null,Object.keys(n.jobs).map(e=>d.a.createElement(a.a,{key:e},"* ",e)))))};function T(e){var t;const n=w.b.Player();return d.a.createElement(r.a,{sx:{display:"table",width:"100%",mb:!0===(null!==(t=e.noMargin)&&void 0!==t&&t)?0:2}},d.a.createElement(i.a,null,e.rows.map(t=>{const{mult:r,value:i,effValue:o=null,color:s=e.color}=t;return null!==o&&o!==i&&n.sourceFileLvl(5)>0?d.a.createElement(x.a,{key:r,name:r,color:s,data:{}},d.a.createElement(d.a.Fragment,null,d.a.createElement(a.a,{color:s},d.a.createElement("span",{style:{opacity:.5}},_.a.formatPercentage(i))," ",_.a.formatPercentage(o)))):d.a.createElement(x.a,{key:r,name:r,color:s,data:{content:_.a.formatPercentage(i)}})})))}function A(){const e=w.b.Player();if(e.sourceFiles.length>0){const t="BitNode"+e.bitNodeN,n=Math.min(e.sourceFileLvl(e.bitNodeN)+1,12===e.bitNodeN?1/0:3);return d.a.createElement(o.a,{sx:{mb:1,p:1}},d.a.createElement(a.a,{variant:"h5"},"BitNode ",e.bitNodeN,": ",p.a[t].name," (Level ",n,")"),d.a.createElement(a.a,{sx:{whiteSpace:"pre-wrap",overflowWrap:"break-word"}},p.a[t].info))}return d.a.createElement(d.a.Fragment,null)}function R({open:e,onClose:t}){const n=w.b.Player();function r(e){const t=[["Total:",d.a.createElement(C.a,{money:e.total})]];return e.augmentations&&t.push(["Augmentations:",d.a.createElement(C.a,{money:e.augmentations})]),e.bladeburner&&t.push(["Bladeburner:",d.a.createElement(C.a,{money:e.bladeburner})]),e.casino&&t.push(["Casino:",d.a.createElement(C.a,{money:e.casino})]),e.codingcontract&&t.push(["Coding Contracts:",d.a.createElement(C.a,{money:e.codingcontract})]),e.work&&t.push(["Company Work:",d.a.createElement(C.a,{money:e.work})]),e.class&&t.push(["Class:",d.a.createElement(C.a,{money:e.class})]),e.corporation&&t.push(["Corporation:",d.a.createElement(C.a,{money:e.corporation})]),e.crime&&t.push(["Crimes:",d.a.createElement(C.a,{money:e.crime})]),e.gang&&t.push(["Gang:",d.a.createElement(C.a,{money:e.gang})]),e.hacking&&t.push(["Hacking:",d.a.createElement(C.a,{money:e.hacking})]),e.hacknet&&t.push(["Hacknet Nodes:",d.a.createElement(C.a,{money:e.hacknet})]),e.hacknet_expenses&&t.push(["Hacknet Nodes Expenses:",d.a.createElement(C.a,{money:e.hacknet_expenses})]),e.hospitalization&&t.push(["Hospitalization:",d.a.createElement(C.a,{money:e.hospitalization})]),e.infiltration&&t.push(["Infiltration:",d.a.createElement(C.a,{money:e.infiltration})]),e.servers&&t.push(["Servers:",d.a.createElement(C.a,{money:e.servers})]),e.stock&&t.push(["Stock Market:",d.a.createElement(C.a,{money:e.stock})]),e.sleeves&&t.push(["Sleeves:",d.a.createElement(C.a,{money:e.sleeves})]),e.other&&t.push(["Other:",d.a.createElement(C.a,{money:e.other})]),d.a.createElement(L.a,{rows:t,wide:!0})}let i=d.a.createElement(d.a.Fragment,null,d.a.createElement(a.a,{variant:"h6",color:"primary"},"Money earned since you last installed Augmentations"),d.a.createElement("br",null),r(n.moneySourceA));return 0!==n.sourceFiles.length&&(i=d.a.createElement(d.a.Fragment,null,i,d.a.createElement("br",null),d.a.createElement("br",null),d.a.createElement(a.a,{variant:"h6",color:"primary"},"Money earned in this BitNode"),d.a.createElement("br",null),r(n.moneySourceB))),d.a.createElement(S.a,{open:e,onClose:t},i)}function N(){const e=w.b.Player(),[t,n]=Object(h.useState)(!1),[_,S]=Object(h.useState)(!1),L=Object(h.useState)(!1)[1];function N(){L(e=>!e)}Object(h.useEffect)(()=>{const e=setInterval(N,200);return()=>clearInterval(e)},[]);const P=[["Since last Augmentation installation",Object(k.d)(e.playtimeSinceLastAug)]];e.sourceFiles.length>0&&P.push(["Since last Bitnode destroyed",Object(k.d)(e.playtimeSinceLastBitnode)]),P.push(["Total",Object(k.d)(e.totalPlaytime)]);let I=!1;if(e.sourceFileLvl(5)>0){const t=e.bitNodeN,n=12===t?1/0:3,a=Object(p.c)(t,Math.min(e.sourceFileLvl(t)+1,n));I=!Object(O.isEqual)(a,p.b)}return d.a.createElement(s.a,{maxWidth:"lg",disableGutters:!0,sx:{mx:0}},d.a.createElement(a.a,{variant:"h4"},"Stats"),d.a.createElement(l.a,{sx:{display:"grid",gridTemplateColumns:"1fr 1fr",minWidth:"fit-content",mb:1,gap:1}},d.a.createElement(o.a,{sx:{p:1}},d.a.createElement(a.a,{variant:"h5"},"General"),d.a.createElement(r.a,null,d.a.createElement(i.a,null,d.a.createElement(x.a,{name:"Current City",color:v.a.theme.primary,data:{content:e.city}}),d.a.createElement(x.a,{name:"Money",color:v.a.theme.money,data:{}},d.a.createElement(d.a.Fragment,null,d.a.createElement(C.a,{money:e.money}),d.a.createElement(c.a,{onClick:()=>n(!0),sx:{p:0}},d.a.createElement(u.a,{color:"info"})))),e.companyName?d.a.createElement(d.a.Fragment,null,d.a.createElement(x.a,{name:"Last Employer",color:v.a.theme.primary,data:{content:e.companyName}}),d.a.createElement(x.a,{name:"Last Job",color:v.a.theme.primary,data:{content:e.jobs[e.companyName]}})):d.a.createElement(d.a.Fragment,null),e.jobs&&0!==Object.keys(e.jobs).length?d.a.createElement(x.a,{name:"All Employers",color:v.a.theme.primary,data:{}},d.a.createElement(d.a.Fragment,null,d.a.createElement("span",{style:{color:v.a.theme.primary}},Object.keys(e.jobs).length," total"),d.a.createElement(c.a,{onClick:()=>S(!0),sx:{p:0}},d.a.createElement(u.a,{color:"info"})))):d.a.createElement(d.a.Fragment,null),d.a.createElement(x.a,{name:"Servers Owned",color:v.a.theme.primary,data:{content:`${e.purchasedServers.length} / ${Object(E.b)()}`}}),d.a.createElement(x.a,{name:`Hacknet ${9===e.bitNodeN||e.sourceFileLvl(9)>0?"Servers":"Nodes"} owned`,color:v.a.theme.primary,data:{content:`${e.hacknetNodes.length}${9===e.bitNodeN||e.sourceFileLvl(9)>0?" / "+b.b.MaxServers:""}`}}),d.a.createElement(x.a,{name:"Augmentations Installed",color:v.a.theme.primary,data:{content:String(e.augmentations.length)}})))),d.a.createElement(o.a,{sx:{p:1}},d.a.createElement(a.a,{variant:"h5"},"Skills"),d.a.createElement(r.a,null,d.a.createElement(i.a,null,d.a.createElement(x.a,{name:"Hacking",color:v.a.theme.hack,data:{level:e.hacking,exp:e.hacking_exp}}),d.a.createElement(x.a,{name:"Strength",color:v.a.theme.combat,data:{level:e.strength,exp:e.strength_exp}}),d.a.createElement(x.a,{name:"Defense",color:v.a.theme.combat,data:{level:e.defense,exp:e.defense_exp}}),d.a.createElement(x.a,{name:"Dexterity",color:v.a.theme.combat,data:{level:e.dexterity,exp:e.dexterity_exp}}),d.a.createElement(x.a,{name:"Agility",color:v.a.theme.combat,data:{level:e.agility,exp:e.agility_exp}}),d.a.createElement(x.a,{name:"Charisma",color:v.a.theme.cha,data:{level:e.charisma,exp:e.charisma_exp}}),e.intelligence>0&&(5===e.bitNodeN||e.sourceFileLvl(5)>0)&&d.a.createElement(x.a,{name:"Intelligence",color:v.a.theme.int,data:{level:e.intelligence,exp:e.intelligence_exp}}))))),d.a.createElement(o.a,{sx:{p:1,mb:1}},d.a.createElement(a.a,{variant:"h5",color:"primary",sx:{display:"flex",alignItems:"center",flexWrap:"wrap"}},"Multipliers",e.sourceFileLvl(5)>0&&d.a.createElement(f.a,{title:d.a.createElement(a.a,null,"Displays your current multipliers.",d.a.createElement("br",null),d.a.createElement("br",null),"When there is a dim number next to a multiplier, that means that the multiplier in question is being affected by BitNode multipliers.",d.a.createElement("br",null),d.a.createElement("br",null),"The dim number is the raw multiplier, and the undimmed number is the effective multiplier, as dictated by the BitNode.")},d.a.createElement(m.a,{sx:{ml:1,mb:.5},color:"info"}))),d.a.createElement(l.a,{sx:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:1}},d.a.createElement(l.a,null,d.a.createElement(T,{rows:[{mult:"Hacking Chance",value:e.mults.hacking_chance},{mult:"Hacking Speed",value:e.mults.hacking_speed},{mult:"Hacking Money",value:e.mults.hacking_money,effValue:e.mults.hacking_money*g.a.ScriptHackMoney},{mult:"Hacking Growth",value:e.mults.hacking_grow,effValue:e.mults.hacking_grow*g.a.ServerGrowthRate}],color:v.a.theme.hack}),d.a.createElement(T,{rows:[{mult:"Hacking Level",value:e.mults.hacking,effValue:e.mults.hacking*g.a.HackingLevelMultiplier},{mult:"Hacking Experience",value:e.mults.hacking_exp,effValue:e.mults.hacking_exp*g.a.HackExpGain}],color:v.a.theme.hack}),d.a.createElement(T,{rows:[{mult:"Strength Level",value:e.mults.strength,effValue:e.mults.strength*g.a.StrengthLevelMultiplier},{mult:"Strength Experience",value:e.mults.strength_exp}],color:v.a.theme.combat}),d.a.createElement(T,{rows:[{mult:"Defense Level",value:e.mults.defense,effValue:e.mults.defense*g.a.DefenseLevelMultiplier},{mult:"Defense Experience",value:e.mults.defense_exp}],color:v.a.theme.combat}),d.a.createElement(T,{rows:[{mult:"Dexterity Level",value:e.mults.dexterity,effValue:e.mults.dexterity*g.a.DexterityLevelMultiplier},{mult:"Dexterity Experience",value:e.mults.dexterity_exp}],color:v.a.theme.combat}),d.a.createElement(T,{rows:[{mult:"Agility Level",value:e.mults.agility,effValue:e.mults.agility*g.a.AgilityLevelMultiplier},{mult:"Agility Experience",value:e.mults.agility_exp}],color:v.a.theme.combat}),d.a.createElement(T,{rows:[{mult:"Charisma Level",value:e.mults.charisma,effValue:e.mults.charisma*g.a.CharismaLevelMultiplier},{mult:"Charisma Experience",value:e.mults.charisma_exp}],color:v.a.theme.cha,noMargin:!0})),d.a.createElement(l.a,null,d.a.createElement(T,{rows:[{mult:"Hacknet Node Production",value:e.mults.hacknet_node_money,effValue:e.mults.hacknet_node_money*g.a.HacknetNodeMoney},{mult:"Hacknet Node Purchase Cost",value:e.mults.hacknet_node_purchase_cost},{mult:"Hacknet Node RAM Upgrade Cost",value:e.mults.hacknet_node_ram_cost},{mult:"Hacknet Node Core Purchase Cost",value:e.mults.hacknet_node_core_cost},{mult:"Hacknet Node Level Upgrade Cost",value:e.mults.hacknet_node_level_cost}],color:v.a.theme.primary}),d.a.createElement(T,{rows:[{mult:"Company Reputation Gain",value:e.mults.company_rep,color:v.a.theme.rep},{mult:"Faction Reputation Gain",value:e.mults.faction_rep,effValue:e.mults.faction_rep*g.a.FactionWorkRepGain,color:v.a.theme.rep},{mult:"Salary",value:e.mults.work_money,effValue:e.mults.work_money*g.a.CompanyWorkMoney,color:v.a.theme.money}],color:v.a.theme.money}),d.a.createElement(T,{rows:[{mult:"Crime Success Chance",value:e.mults.crime_success},{mult:"Crime Money",value:e.mults.crime_money,effValue:e.mults.crime_money*g.a.CrimeMoney,color:v.a.theme.money}],color:v.a.theme.combat}),e.canAccessBladeburner()&&d.a.createElement(T,{rows:[{mult:"Bladeburner Success Chance",value:e.mults.bladeburner_success_chance},{mult:"Bladeburner Max Stamina",value:e.mults.bladeburner_max_stamina},{mult:"Bladeburner Stamina Gain",value:e.mults.bladeburner_stamina_gain},{mult:"Bladeburner Field Analysis",value:e.mults.bladeburner_analysis}],color:v.a.theme.primary,noMargin:!0})))),d.a.createElement(o.a,{sx:{p:1,mb:1}},d.a.createElement(a.a,{variant:"h5"},"Time Played"),d.a.createElement(r.a,null,d.a.createElement(i.a,null,P.map(([e,t])=>d.a.createElement(x.a,{key:e,name:e,color:v.a.theme.primary,data:{content:t}}))))),d.a.createElement(A,null),I&&d.a.createElement(o.a,{sx:{p:1,mb:1}},d.a.createElement(a.a,{variant:"h5"},"BitNode Multipliers"),d.a.createElement(y.a,{n:e.bitNodeN})),d.a.createElement(R,{open:t,onClose:()=>n(!1)}),d.a.createElement(M,{open:_,onClose:()=>S(!1)}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var a=n(0),r=n.n(a),i=n(1387),o=n(1388);function s(e){const t=Object(a.useState)(!1)[1];function n(){t(e=>!e)}return Object(a.useEffect)(()=>{const e=setInterval(n,200);return()=>clearInterval(e)},[]),r.a.createElement(r.a.Fragment,null,r.a.createElement(i.a,{initStockMarket:e.initStockMarket,p:e.p,rerender:n}),e.p.hasWseAccount&&r.a.createElement(o.a,{buyStockLong:e.buyStockLong,buyStockShort:e.buyStockShort,cancelOrder:e.cancelOrder,eventEmitterForReset:e.eventEmitterForReset,p:e.p,placeOrder:e.placeOrder,sellStockLong:e.sellStockLong,sellStockShort:e.sellStockShort,stockMarket:e.stockMarket}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return _}));var a=n(0),r=n.n(a),i=n(234),o=n(12),s=n(20),l=n(1),c=n(152),f=n(8),u=n(19),m=n(112),h=n(304),d=n.n(h),p=n(332),g=n.n(p),y=n(481),b=n(4);function E(e){if(e.p.has4SDataTixApi)return r.a.createElement(l.a,null,"Market Data TIX API Access ",r.a.createElement(g.a,null));{const t=Object(i.b)();return r.a.createElement(u.a,{title:e.p.hasTixApiAccess?r.a.createElement(l.a,null,"Let you access 4S Market Data through Netscript"):r.a.createElement(l.a,null,"Requires TIX API Access")},r.a.createElement("span",null,r.a.createElement(f.a,{disabled:!e.p.hasTixApiAccess||!e.p.canAfford(t),onClick:function(){e.p.has4SDataTixApi||e.p.canAfford(Object(i.b)())&&(e.p.has4SDataTixApi=!0,e.p.loseMoney(Object(i.b)(),"stock"),e.rerender())}},"Buy 4S Market Data TIX API Access - ",r.a.createElement(s.a,{money:t,player:e.p}))))}}function v(e){if(e.p.hasWseAccount)return r.a.createElement(l.a,null,"WSE Account ",r.a.createElement(g.a,null));const t=o.a.WSEAccountCost;return r.a.createElement(r.a.Fragment,null,r.a.createElement(l.a,null,"To begin trading, you must first purchase an account:"),r.a.createElement(f.a,{disabled:!e.p.canAfford(t),onClick:function(){e.p.hasWseAccount||e.p.canAfford(o.a.WSEAccountCost)&&(e.p.hasWseAccount=!0,e.initStockMarket(),e.p.loseMoney(o.a.WSEAccountCost,"stock"),e.rerender())}},"Buy WSE Account - ",r.a.createElement(s.a,{money:t,player:e.p})))}function k(e){if(e.p.hasTixApiAccess)return r.a.createElement(l.a,null,"TIX API Access ",r.a.createElement(g.a,null));{const t=o.a.TIXAPICost;return r.a.createElement(f.a,{disabled:!e.p.canAfford(t)||!e.p.hasWseAccount,onClick:function(){e.p.hasTixApiAccess||e.p.canAfford(o.a.TIXAPICost)&&(e.p.hasTixApiAccess=!0,e.p.loseMoney(o.a.TIXAPICost,"stock"),e.rerender())}},"Buy Trade Information eXchange (TIX) API Access - ",r.a.createElement(s.a,{money:t,player:e.p}))}}function w(e){if(e.p.has4SData)return r.a.createElement(l.a,null,"4S Market Data Access ",r.a.createElement(g.a,null));{const t=Object(i.a)();return r.a.createElement(u.a,{title:r.a.createElement(l.a,null,"Lets you view additional pricing and volatility information about stocks")},r.a.createElement("span",null,r.a.createElement(f.a,{disabled:!e.p.canAfford(t)||!e.p.hasWseAccount,onClick:function(){e.p.has4SData||e.p.canAfford(Object(i.a)())&&(e.p.has4SData=!0,e.p.loseMoney(Object(i.a)(),"stock"),e.rerender())}},"Buy 4S Market Data Access - ",r.a.createElement(s.a,{money:t,player:e.p}))))}}function _(e){const[t,n]=Object(a.useState)(!1);return r.a.createElement(r.a.Fragment,null,r.a.createElement(l.a,null,"Welcome to the World Stock Exchange (WSE)!"),r.a.createElement(c.a,{href:"https://bitburner.readthedocs.io/en/latest/basicgameplay/stockmarket.html",target:"_blank"},r.a.createElement(l.a,null,"Investopedia")),r.a.createElement("br",null),r.a.createElement(v,e),r.a.createElement(l.a,{variant:"h5",color:"primary"},"Trade Information eXchange (TIX) API"),r.a.createElement(l.a,null,"TIX, short for Trade Information eXchange, is the communications protocol used by the WSE. Purchasing access to the TIX API lets you write code to create your own algorithmic/automated trading strategies."),r.a.createElement(k,e),r.a.createElement(l.a,{variant:"h5",color:"primary"},b.a.FourSigma," (4S) Market Data Feed"),r.a.createElement(l.a,null,b.a.FourSigma,"'s (4S) Market Data Feed provides information about stocks that will help your trading strategies.",r.a.createElement(m.a,{onClick:()=>n(!0)},r.a.createElement(d.a,null))),r.a.createElement(E,e),r.a.createElement(w,e),r.a.createElement(l.a,null,"Commission Fees: Every transaction you make has a"," ",r.a.createElement(s.a,{money:o.a.StockMarketCommission,player:e.p})," commission fee."),r.a.createElement("br",null),r.a.createElement(l.a,null,"WARNING: When you reset after installing Augmentations, the Stock Market is reset. You will retain your WSE Account, access to the TIX API, and 4S Market Data access. However, all of your stock positions are lost, so make sure to sell your stocks before installing Augmentations!"),r.a.createElement(y.a,{open:t,onClose:()=>n(!1)},r.a.createElement(l.a,null,"Access to the 4S Market Data feed will display two additional pieces of information about each stock: Price Forecast & Volatility",r.a.createElement("br",null),r.a.createElement("br",null),"Price Forecast indicates the probability the stock has of increasing or decreasing. A '+' forecast means the stock has a higher chance of increasing than decreasing, and a '-' means the opposite. The number of '+/-' symbols is used to illustrate the magnitude of these probabilities. For example, '+++' means that the stock has a significantly higher chance of increasing than decreasing, while '+' means that the stock only has a slightly higher chance of increasing than decreasing.",r.a.createElement("br",null),r.a.createElement("br",null),"Volatility represents the maximum percentage by which a stock's price can change every tick (a tick occurs every few seconds while the game is running).",r.a.createElement("br",null),r.a.createElement("br",null),"A stock's price forecast can change over time. This is also affected by volatility. The more volatile a stock is, the more its price forecast will change.")))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var a=n(0),r=n.n(a),i=n(1389),o=n(449),s=n(155);function l(e){const t=Object(a.useState)(!1)[1],[n,l]=Object(a.useState)(o.b.AllStocks),[c,f]=Object(a.useState)([]);function u(){t(e=>!e)}const m=[];for(const t of Object.keys(e.stockMarket)){const a=e.stockMarket[t];if(a instanceof s.a){if(c.length>0&&!c.includes(a.symbol))continue;let t=e.stockMarket.Orders[a.symbol];if(null==t&&(t=[]),n===o.b.Portfolio&&0===a.playerShares&&0===a.playerShortShares&&0===t.length)continue;m.push(r.a.createElement(i.a,{buyStockLong:e.buyStockLong,buyStockShort:e.buyStockShort,cancelOrder:e.cancelOrder,key:a.symbol,orders:t,p:e.p,placeOrder:e.placeOrder,rerenderAllTickers:u,sellStockLong:e.sellStockLong,sellStockShort:e.sellStockShort,stock:a}))}}return r.a.createElement(r.a.Fragment,null,r.a.createElement(o.a,{changeDisplayMode:function(){n===o.b.AllStocks?l(o.b.Portfolio):l(o.b.AllStocks)},changeWatchlistFilter:function(e){const t=e.target.value.replace(/\s/g,"");f(""!==t?t.split(","):[])},tickerDisplayMode:n}),m)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return M}));var a,r=n(0),i=n.n(r),o=n(1390),s=n(1391),l=n(1393),c=n(562),f=n(1394),u=n(231),m=n(117),h=n(72),d=n(6),p=n(20),g=n(14),y=n(18),b=n(75),E=n(71),v=n(130),k=n(363),w=n(114),_=n(43),S=n(280),C=n(80),x=n.n(C),L=n(211),O=n.n(L);function M(e){const[t,n]=Object(r.useState)(a.Market),[C,L]=Object(r.useState)(h.a.Long),[M,T]=Object(r.useState)(""),[A,R]=Object(r.useState)(!1),[N,P]=Object(r.useState)(!1),[I,F]=Object(r.useState)({text:"",placeText:"",place:()=>!1});function D(){return Math.round(parseFloat(M))}function j(){return 8===e.p.bitNodeN||e.p.sourceFileLvl(8)>=3}return i.a.createElement(y.a,{component:_.a},i.a.createElement(k.a,{onClick:()=>P(e=>!e)},i.a.createElement(w.a,{primary:i.a.createElement(o.a,{p:e.p,stock:e.stock})}),N?i.a.createElement(O.a,{color:"primary"}):i.a.createElement(x.a,{color:"primary"})),i.a.createElement(S.a,{in:N,unmountOnExit:!0},i.a.createElement(y.a,{sx:{mx:4}},i.a.createElement(y.a,{display:"flex",alignItems:"center"},i.a.createElement(b.a,{onChange:function(e){T(e.target.value)},placeholder:"Quantity (Shares)",value:M}),i.a.createElement(v.a,{onChange:function(e){e.target.value===h.a.Short?L(h.a.Short):L(h.a.Long)},value:C},i.a.createElement(E.a,{value:h.a.Long},"Long"),(8===e.p.bitNodeN||e.p.sourceFileLvl(8)>=2)&&i.a.createElement(E.a,{value:h.a.Short},"Short")),i.a.createElement(v.a,{onChange:function(e){switch(e.target.value){case a.Limit:n(a.Limit);break;case a.Stop:n(a.Stop);break;case a.Market:default:n(a.Market)}},value:t},i.a.createElement(E.a,{value:a.Market},a.Market),j()&&i.a.createElement(E.a,{value:a.Limit},a.Limit),j()&&i.a.createElement(E.a,{value:a.Stop},a.Stop)),i.a.createElement(c.a,{onClick:function(){const n=D();if(isNaN(n))Object(g.a)("Invalid input for quantity (number of shares): "+M);else switch(t){case a.Market:C===h.a.Short?e.buyStockShort(e.stock,n):e.buyStockLong(e.stock,n),e.rerenderAllTickers();break;case a.Limit:R(!0),F({text:"Enter the price for your Limit Order",placeText:"Place Buy Limit Order",place:t=>e.placeOrder(e.stock,n,t,m.a.LimitBuy,C)});break;case a.Stop:R(!0),F({text:"Enter the price for your Stop Order",placeText:"Place Buy Stop Order",place:t=>e.placeOrder(e.stock,n,t,m.a.StopBuy,C)})}},text:"Buy",tooltip:function(){const t=e.stock,n=D();if(isNaN(n))return null;const a=Object(u.b)(t,n,C);return null==a?null:i.a.createElement(i.a.Fragment,null,"Purchasing ",d.a.formatShares(n)," shares (",C===h.a.Long?"Long":"Short",") will cost ",i.a.createElement(p.a,{money:a}),".")}()}),i.a.createElement(c.a,{onClick:function(){const n=D();if(isNaN(n))Object(g.a)("Invalid input for quantity (number of shares): "+M);else switch(t){case a.Market:C===h.a.Short?e.sellStockShort(e.stock,n):e.sellStockLong(e.stock,n),e.rerenderAllTickers();break;case a.Limit:R(!0),F({text:"Enter the price for your Limit Order",placeText:"Place Sell Limit Order",place:t=>e.placeOrder(e.stock,n,t,m.a.LimitSell,C)});break;case a.Stop:R(!0),F({text:"Enter the price for your Stop Order",placeText:"Place Sell Stop Order",place:t=>e.placeOrder(e.stock,n,t,m.a.StopSell,C)})}},text:"Sell",tooltip:function(){const t=e.stock,n=D();if(isNaN(n))return null;if(C===h.a.Long){if(n>t.playerShares)return i.a.createElement(i.a.Fragment,null,"You do not have this many shares in the Long position")}else if(n>t.playerShortShares)return i.a.createElement(i.a.Fragment,null,"You do not have this many shares in the Short position");const a=Object(u.c)(t,n,C);return null==a?null:i.a.createElement(i.a.Fragment,null,"Selling ",d.a.formatShares(n)," shares (",C===h.a.Long?"Long":"Short",") will result in a gain of ",i.a.createElement(p.a,{money:a}),".")}()}),i.a.createElement(c.a,{onClick:function(){const n=e.p.money,r=e.stock;let i=Object(u.a)(r,C,n);switch(i=Math.min(i,Math.round(r.maxShares-r.playerShares-r.playerShortShares)),t){case a.Market:C===h.a.Short?e.buyStockShort(r,i):e.buyStockLong(r,i),e.rerenderAllTickers();break;default:Object(g.a)("ERROR: 'Buy Max' only works for Market Orders")}},text:"Buy MAX"}),i.a.createElement(c.a,{onClick:function(){const n=e.stock;switch(t){case a.Market:C===h.a.Short?e.sellStockShort(n,n.playerShortShares):e.sellStockLong(n,n.playerShares),e.rerenderAllTickers();break;default:Object(g.a)("ERROR: 'Sell All' only works for Market Orders")}},text:"Sell ALL"})),i.a.createElement(l.a,{p:e.p,stock:e.stock}),i.a.createElement(s.a,{cancelOrder:e.cancelOrder,orders:e.orders,p:e.p,stock:e.stock}),i.a.createElement(f.a,{text:I.text,placeText:I.placeText,place:I.place,open:A,onClose:()=>R(!1)}))))}!function(e){e.Market="Market Order",e.Limit="Limit Order",e.Stop="Stop Order"}(a||(a={}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var a=n(0),r=n(806),i=n(5),o=n(6),s=n(1);const l=["cs","lv","pl","ru"];function c(e){const t=e.stock,n=o.a.formatMoney(t.price),c=l.includes(i.a.Locale)?15:12,f=" ".repeat(1+r.a.longestName-t.name.length+(r.a.longestSymbol-t.symbol.length)),u=" ".repeat(c-n.length);let m=`${t.name}${f}${t.symbol} -${u}${n}`;if(e.p.has4SData){m+=` - Volatility: ${o.a.formatPercentage(t.mv/100)} - Price Forecast: `;let e=t.b;t.otlkMag<0&&(e=!e),m+=(e?"+":"-").repeat(Math.floor(Math.abs(t.otlkMag)/10)+1)}let h="primary";return t.lastPrice===t.price?h="secondary":t.lastPrice>t.price&&(h="error"),a.createElement(s.a,{style:{whiteSpace:"pre"},color:h},m)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var a=n(0),r=n(1392);function i(e){const t=[];for(let n=0;n<e.orders.length;++n){const i=e.orders[n];t.push(a.createElement(r.a,{cancelOrder:e.cancelOrder,order:i,key:n}))}return a.createElement(a.Fragment,null,t)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var a=n(0),r=n(72),i=n(6),o=n(20),s=n(1),l=n(8),c=n(18);function f(e){const t=e.order,n=t.pos===r.a.Long?"Long Position":"Short Position",f=a.createElement(a.Fragment,null,t.type," - ",n," - ",i.a.formatShares(t.shares)," @ ",a.createElement(o.a,{money:t.price}));return a.createElement(c.a,{display:"flex",alignItems:"center"},a.createElement(s.a,null,f),a.createElement(l.a,{onClick:function(){e.cancelOrder({order:e.order})}},"Cancel Order"))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var a=n(0),r=n(6),i=n(20),o=n(1),s=n(19),l=n(18);function c(e){const t=e.stock,n=t.playerShares*t.playerAvgPx,c=(t.getBidPrice()-t.playerAvgPx)*t.playerShares;let f=c/n;return isNaN(f)&&(f=0),a.createElement(a.Fragment,null,a.createElement(l.a,{display:"flex"},a.createElement(s.a,{title:a.createElement(o.a,null,"Shares in the long position will increase in value if the price of the corresponding stock increases")},a.createElement(o.a,{variant:"h5",color:"primary"},"Long Position:"))),a.createElement(o.a,null,"Shares: ",r.a.formatShares(t.playerShares)),a.createElement(o.a,null,"Average Price: ",a.createElement(i.a,{money:t.playerAvgPx})," (Total Cost: ",a.createElement(i.a,{money:n}),")"),a.createElement(o.a,null,"Profit: ",a.createElement(i.a,{money:c})," (",r.a.formatPercentage(f),")"))}function f(e){const t=e.stock,n=t.playerShortShares*t.playerAvgShortPx,c=(t.playerAvgShortPx-t.getAskPrice())*t.playerShortShares;let f=c/n;return isNaN(f)&&(f=0),8===e.p.bitNodeN||e.p.sourceFileLvl(8)>=2?a.createElement(a.Fragment,null,a.createElement(l.a,{display:"flex"},a.createElement(s.a,{title:a.createElement(o.a,null,"Shares in the short position will increase in value if the price of the corresponding stock decreases")},a.createElement(o.a,{variant:"h5",color:"primary"},"Short Position:"))),a.createElement(o.a,null,"Shares: ",r.a.formatShares(t.playerShortShares)),a.createElement(o.a,null,"Average Price: ",a.createElement(i.a,{money:t.playerAvgShortPx})," (Total Cost: ",a.createElement(i.a,{money:n}),")"),a.createElement(o.a,null,"Profit: ",a.createElement(i.a,{money:c})," (",r.a.formatPercentage(f),")")):a.createElement(a.Fragment,null)}function u(e){const t=e.stock;return a.createElement(a.Fragment,null,a.createElement(o.a,null,"Max Shares: ",r.a.formatShares(t.maxShares)),a.createElement(o.a,null,"Ask Price: ",a.createElement(i.a,{money:t.getAskPrice()})),a.createElement("br",null),a.createElement(o.a,null,"Bid Price: ",a.createElement(i.a,{money:t.getBidPrice()})),a.createElement(c,e),a.createElement(f,e))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var a=n(0),r=n.n(a),i=n(37),o=n(1),s=n(75),l=n(8);function c(e){const[t,n]=Object(a.useState)(null);return r.a.createElement(i.a,{open:e.open,onClose:e.onClose},r.a.createElement(o.a,null,e.text),r.a.createElement(s.a,{autoFocus:!0,type:"number",onChange:function(e){""===e.target.value?n(null):n(parseFloat(e.target.value))},placeholder:"price",InputProps:{endAdornment:r.a.createElement(l.a,{onClick:function(){null!==t&&(isNaN(t)||(e.place(t),e.onClose()))}},e.placeText)}}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return E}));var a=n(0),r=n.n(a),i=n(153),o=n(427),s=n(1396),l=n(496),c=n(28),f=n(118),u=n(142),m=n(112),h=n(1),d=n(19),p=n(5),g=n(8);const y=Object(f.a)(()=>Object(u.a)({portal:{cursor:"pointer",fontFamily:"inherit",fontSize:"1rem",fontWeight:"bold",lineHeight:1,padding:0,"&:hover":{color:"#fff"}},level0:{color:"red"},level1:{color:"yellow"},level2:{color:"#48d1cc"},level3:{color:"blue"}}));function b(e){const[t,n]=Object(a.useState)(!1),o=y(),l=i.a["BitNode"+e.n];if(null==l)return r.a.createElement(r.a.Fragment,null,"O");let c=o.level0;return 12===e.n&&e.level>=2?c=o.level2:1===e.level?c=o.level1:3===e.level&&(c=o.level3),2===e.level&&(c=o.level2),c=`${o.portal} ${c}`,r.a.createElement(r.a.Fragment,null,r.a.createElement(d.a,{title:r.a.createElement(h.a,null,r.a.createElement("strong",null,"BitNode-",l.number.toString(),": ",l.name),r.a.createElement("br",null),l.desc)},p.a.DisableASCIIArt?r.a.createElement(g.a,{onClick:()=>n(!0),sx:{m:2},"aria-description":l.desc},r.a.createElement(h.a,null,"BitNode-",l.number.toString(),": ",l.name)):r.a.createElement(m.a,{onClick:()=>n(!0),className:c,"aria-label":`BitNode-${l.number.toString()}: ${l.name}`,"aria-description":l.desc},"O")),r.a.createElement(s.a,{open:t,onClose:()=>n(!1),n:e.n,level:e.level,enter:e.enter,destroyedBitNode:e.destroyedBitNode,flume:e.flume}),p.a.DisableASCIIArt&&r.a.createElement("br",null))}function E(e){const t=c.b.Player(),n=o.a,s=t.bitNodeN,[f,u]=Object(a.useState)(!e.quick);if(f)return r.a.createElement(l.a,{lines:["[ERROR] SEMPOOL INVALID","[ERROR] Segmentation Fault","[ERROR] SIGKILL RECVD","Dumping core...","0000 000016FA 174FEE40 29AC8239 384FEA88","0010 745F696E 2BBBE394 390E3940 248BEC23","0020 7124696B 0000FF69 74652E6F FFFF1111","----------------------------------------","Failsafe initiated...",`Restarting BitNode-${s}...`,"...........","...........","[ERROR] FAILED TO AUTOMATICALLY REBOOT BITNODE","..............................................","..............................................","..............................................","..............................................","..............................................",".............................................."],onDone:()=>u(!1),auto:!0});const m=n=>{const a=t.sourceFileLvl(n);if(n!==s)return a;const r=12===n?1/0:3;return Math.min(r,a+Number(!e.flume))};if(p.a.DisableASCIIArt)return r.a.createElement(r.a.Fragment,null,Object.values(i.a).filter(e=>"COMING SOON"!==e.desc).map(t=>r.a.createElement(b,{key:t.number,n:t.number,level:m(t.number),enter:n,flume:e.flume,destroyedBitNode:s})),r.a.createElement("br",null),r.a.createElement("br",null),r.a.createElement("br",null),r.a.createElement("br",null),r.a.createElement(l.a,{lines:["> Many decades ago, a humanoid extraterrestrial species which we call the Enders descended on the Earth...violently","> Our species fought back, but it was futile. The Enders had technology far beyond our own...","> Instead of killing every last one of us, the human race was enslaved...","> We were shackled in a digital world, chained into a prison for our minds...","> Using their advanced technology, the Enders created complex simulations of a virtual reality...","> Simulations designed to keep us content...ignorant of the truth.","> Simulations used to trap and suppress our consciousness, to keep us under control...","> Why did they do this? Why didn't they just end our entire race? We don't know, not yet.","> Humanity's only hope is to destroy these simulations, destroy the only realities we've ever known...","> Only then can we begin to fight back...","> By hacking the daemon that generated your reality, you've just destroyed one simulation, called a BitNode...","> But there is still a long way to go...","> The technology the Enders used to enslave the human race wasn't just a single complex simulation...","> There are tens if not hundreds of BitNodes out there...","> Each with their own simulations of a reality...","> Each creating their own universes...a universe of universes","> And all of which must be destroyed...","> .......................................","> Welcome to the Bitverse...","> ","> (Enter a new BitNode using the image above)"]}));const d=m;return r.a.createElement(r.a.Fragment,null,r.a.createElement(h.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}}," O "),r.a.createElement(h.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}}," | O O | O O | "),r.a.createElement(h.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}}," O | | / __| \\ | | O "),r.a.createElement(h.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}}," O | O | | O / | O | | O | O "),r.a.createElement(h.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}}," | | | | |_/ |/ | \\_ \\_| | | | | "),r.a.createElement(h.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}}," O | | | O | | O__/ | / \\__ | | O | | | O "),r.a.createElement(h.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}}," | | | | | | | / /| O / \\| | | | | | | "),r.a.createElement(h.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}},"O | | | \\| | O / _/ | / O | |/ | | | O"),r.a.createElement(h.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}},"| | | |O / | | O / | O O | | \\ O| | | |"),r.a.createElement(h.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}},"| | |/ \\/ / __| | |/ \\ | \\ | |__ \\ \\/ \\| | |"),r.a.createElement(h.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}}," \\| O | |_/ |\\| \\ ",r.a.createElement(b,{n:13,level:d(13),enter:n,flume:e.flume,destroyedBitNode:s})," \\__| \\_| | O |/ "),r.a.createElement(h.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}}," | | |_/ | | \\| / | \\_| | | "),r.a.createElement(h.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}}," \\| / \\| | / / \\ |/ "),r.a.createElement(h.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}}," | ",r.a.createElement(b,{n:10,level:d(10),enter:n,flume:e.flume,destroyedBitNode:s})," | | / | ",r.a.createElement(b,{n:11,level:d(11),enter:n,flume:e.flume,destroyedBitNode:s})," | "),r.a.createElement(h.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}}," ",r.a.createElement(b,{n:9,level:d(9),enter:n,flume:e.flume,destroyedBitNode:s})," | | | | | | | ",r.a.createElement(b,{n:12,level:d(12),enter:n,flume:e.flume,destroyedBitNode:s})," "),r.a.createElement(h.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}}," | | | / / \\ \\ | | | "),r.a.createElement(h.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}}," \\| | / ",r.a.createElement(b,{n:7,level:d(7),enter:n,flume:e.flume,destroyedBitNode:s})," / \\ ",r.a.createElement(b,{n:8,level:d(8),enter:n,flume:e.flume,destroyedBitNode:s})," \\ | |/ "),r.a.createElement(h.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}}," \\ | / / | | \\ \\ | / "),r.a.createElement(h.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}}," \\ \\JUMP ",r.a.createElement(b,{n:5,level:d(5),enter:n,flume:e.flume,destroyedBitNode:s}),"3R | | | | | | R3",r.a.createElement(b,{n:6,level:d(6),enter:n,flume:e.flume,destroyedBitNode:s})," PMUJ/ / "),r.a.createElement(h.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}}," \\|| | | | | | | | | ||/ "),r.a.createElement(h.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}}," \\| \\_ | | | | | | _/ |/ "),r.a.createElement(h.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}}," \\ \\| / \\ / \\ |/ / "),r.a.createElement(h.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}}," ",r.a.createElement(b,{n:1,level:d(1),enter:n,flume:e.flume,destroyedBitNode:s})," |/ ",r.a.createElement(b,{n:2,level:d(2),enter:n,flume:e.flume,destroyedBitNode:s})," | | ",r.a.createElement(b,{n:3,level:d(3),enter:n,flume:e.flume,destroyedBitNode:s})," \\| ",r.a.createElement(b,{n:4,level:d(4),enter:n,flume:e.flume,destroyedBitNode:s})," "),r.a.createElement(h.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}}," | | | | | | | | "),r.a.createElement(h.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}}," \\JUMP3R|JUMP|3R| |R3|PMUJ|R3PMUJ/ "),r.a.createElement("br",null),r.a.createElement("br",null),r.a.createElement("br",null),r.a.createElement("br",null),r.a.createElement(l.a,{lines:["> Many decades ago, a humanoid extraterrestrial species which we call the Enders descended on the Earth...violently","> Our species fought back, but it was futile. The Enders had technology far beyond our own...","> Instead of killing every last one of us, the human race was enslaved...","> We were shackled in a digital world, chained into a prison for our minds...","> Using their advanced technology, the Enders created complex simulations of a virtual reality...","> Simulations designed to keep us content...ignorant of the truth.","> Simulations used to trap and suppress our consciousness, to keep us under control...","> Why did they do this? Why didn't they just end our entire race? We don't know, not yet.","> Humanity's only hope is to destroy these simulations, destroy the only realities we've ever known...","> Only then can we begin to fight back...","> By hacking the daemon that generated your reality, you've just destroyed one simulation, called a BitNode...","> But there is still a long way to go...","> The technology the Enders used to enslave the human race wasn't just a single complex simulation...","> There are tens if not hundreds of BitNodes out there...","> Each with their own simulations of a reality...","> Each creating their own universes...a universe of universes","> And all of which must be destroyed...","> .......................................","> Welcome to the Bitverse...","> ","> (Enter a new BitNode using the image above)"]}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var a=n(0),r=n.n(a),i=n(153),o=n(28),s=n(37),l=n(1),c=n(8),f=n(659);function u(e){const t=o.b.Router(),n="BitNode"+e.n,a=i.a[n];if(null==a)throw new Error("Could not find BitNode object for number: "+e.n);const u=12===e.n?"∞":"3",m=Math.min(e.level+1,12===e.n?1/0:3);return r.a.createElement(s.a,{open:e.open,onClose:e.onClose},r.a.createElement(l.a,{variant:"h4"},"BitNode-",e.n,": ",a.name),r.a.createElement("br",null),r.a.createElement(l.a,null,"Source-File Level: ",e.level," / ",u),r.a.createElement("br",null),r.a.createElement("br",null),r.a.createElement(l.a,null," Difficulty: ",["easy","normal","hard"][a.difficulty]),r.a.createElement("br",null),r.a.createElement("br",null),r.a.createElement(l.a,null,a.info),r.a.createElement(f.b,{n:e.n,level:m}),r.a.createElement("br",null),r.a.createElement("br",null),r.a.createElement(c.a,{"aria-label":"enter-bitnode-"+a.number.toString(),autoFocus:!0,onClick:()=>{e.enter(t,e.flume,e.destroyedBitNode,e.n),e.onClose()}},"Enter BN",e.n,".",m))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var a=n(0),r=n.n(a),i=n(1);function o(e){const[t,n]=Object(a.useState)(0),[o,s]=Object(a.useState)(!1);return Object(a.useEffect)(()=>{if(o&&e.onDone)return void e.onDone();let a=!1;return(async()=>{var r;await(r=10,new Promise(e=>setTimeout(e,r))).then(()=>!a&&function(){const a=t+1;n(a),s(a>=e.text.length)}())})(),()=>{a=!0}}),r.a.createElement(r.a.Fragment,null,r.a.createElement(i.a,null,e.text.slice(0,t),!o&&r.a.createElement("span",null,"█")))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var a=n(0),r=n.n(a),i=n(24),o=n(12),s=n(612),l=n(1399),c=n(705),f=n(14),u=n(1),m=n(275),h=n(122),d=n(563),p=n(252);function g({staneksGift:e}){const t=Object(a.useState)(!0)[1];function n(){t(e=>!e)}return Object(a.useEffect)(()=>s.a.subscribe(n),[]),r.a.createElement(p.a,{maxWidth:"lg",disableGutters:!0,sx:{mx:0}},r.a.createElement(u.a,{variant:"h4"},"Stanek's Gift",r.a.createElement(c.a,{sx:{ml:1,mb:0},color:"info",onClick:()=>{var e,t,n,a,i,o,s,l,c;return Object(f.a)(r.a.createElement(r.a.Fragment,null,r.a.createElement(u.a,null,"Stanek's Gift is a powerful, unique augmentation obtained by joining the Church of the Machine God, which can be found in Chongqing. It is only possible to join the church if you are in BitNode 13 or possess at least one level of Source File 13, and you will be turned away if you have purchased or installed any augmentations beside NeuroFlux Governors. You are, however, permitted to install augmentations as normal once you have joined the church."),r.a.createElement("br",null),r.a.createElement(u.a,null,"Initially, those bearing the gift will find that its overwhelming power worsens all of their stats by 10%. This penalty can be overcome in time by receiving free upgrades from the Church of the Machine God faction, but the reputation requirements for these upgrades are steep, and you can only obtain reputation with the church by charging the gift."),r.a.createElement("br",null),r.a.createElement(u.a,null,"In order to charge Stanek's Gift, the user must first arrange stat-modifying fragments within the grid located on the device. This may be done manually or by scripts that utilize the Stanek's Gift Netscript API. Not every tile of the grid must house a fragment, but fragments cannot overlap or otherwise share tiles. Fragments can be rotated, but their design does not allow them to be flipped around to mirror their original shape. Note that the size of the grid is determined by the BitNode you are currently in and the level of your Source File 13, if applicable."),r.a.createElement("br",null),r.a.createElement(u.a,null,"There exist two kinds of fragments. The first are Stat Fragments, which take up 4 tiles of the grid. Each Stat Fragment is unique, and there is only one of each. There is no way to obtain more of these fragments. Each Stat Fragment has an associated stat that it will improve, as well as a multiplier on its effectiveness known as power. When initially placed, a Stat Fragment will have no effect. In order for the fragment to gain stat boosts, it must be charged. The other kind of fragments are known as Booster Fragments, which take up 5 tiles of the grid. There is no shortage of Booster Fragments, and it is virtually impossible to run out of them. While not providing any direct stat increases to their user, Stat Fragments increase the efficacy of adjacent Stat Fragments by 10%, and do not need to be charged."),r.a.createElement("br",null),r.a.createElement(d.a,{width:4,height:4,fragments:[new m.a({x:0,y:0,rotation:0,fragment:null!==(e=h.c.find(e=>5===e.id))&&void 0!==e?e:h.c[0]}),new m.a({x:0,y:2,rotation:0,fragment:null!==(t=h.c.find(e=>101===e.id))&&void 0!==t?t:h.c[0]})]}),r.a.createElement(u.a,{sx:{fontStyle:"italic"}},"This Booster Fragment provides a bonus to the adjacent Stat Fragment."),r.a.createElement("br",null),r.a.createElement(d.a,{width:3,height:4,fragments:[new m.a({x:0,y:1,rotation:3,fragment:null!==(n=h.c.find(e=>100===e.id))&&void 0!==n?n:h.c[0]}),new m.a({x:0,y:0,rotation:2,fragment:null!==(a=h.c.find(e=>1===e.id))&&void 0!==a?a:h.c[0]})]}),r.a.createElement(u.a,{sx:{fontStyle:"italic"}},"Even though the Booster Fragment touches the Stat Fragment in multiple places, the bonus is only applied once."),r.a.createElement("br",null),r.a.createElement(d.a,{width:4,height:4,fragments:[new m.a({x:0,y:0,rotation:0,fragment:null!==(i=h.c.find(e=>5===e.id))&&void 0!==i?i:h.c[0]}),new m.a({x:1,y:1,rotation:0,fragment:null!==(o=h.c.find(e=>105===e.id))&&void 0!==o?o:h.c[0]})]}),r.a.createElement(u.a,{sx:{fontStyle:"italic"}},"This Booster Fragment does nothing, as it is not touching a Stat Fragment."),r.a.createElement("br",null),r.a.createElement(d.a,{width:4,height:4,fragments:[new m.a({x:0,y:0,rotation:1,fragment:null!==(s=h.c.find(e=>27===e.id))&&void 0!==s?s:h.c[0]}),new m.a({x:0,y:1,rotation:2,fragment:null!==(l=h.c.find(e=>100===e.id))&&void 0!==l?l:h.c[0]}),new m.a({x:2,y:0,rotation:1,fragment:null!==(c=h.c.find(e=>30===e.id))&&void 0!==c?c:h.c[0]})]}),r.a.createElement(u.a,{sx:{fontStyle:"italic"}},"This Booster Fragment provides a bonus to both Stat Fragments it's touching."),r.a.createElement("br",null),r.a.createElement(u.a,null,"Stat Fragments are charged using the stanek.chargeFragment(rootX, rootY) NetScript API function. The charging process ordinarily takes 1000ms to complete, but only takes 200ms during bonus time. When the function finishes executing, the fragment's charge levels will be raised by an amount corresponding to the number of threads that were used. Note that it is no more effective to charge a fragment many times with few threads than to charge few times with many threads, so there is no need to distribute charging jobs across multiple scripts. As a Stat Fragment's charge level is increased, its bonuses will increase, but there will be diminishing returns. As such, it is generally most efficient to charge all of the placed fragments equally. The charge level of a fragment will not decrease over time, but it will be reset to 0 upon removing it from the board or installing augmentations.")))}})),r.a.createElement(u.a,{sx:{mb:1}},"The gift is a grid on which you can place upgrades called fragments. The main type of fragment increases a stat, like your hacking skill or agility exp. Once a stat fragment is placed it then needs to be charged via scripts in order to become useful. The other kind of fragments are called booster fragments. They increase the efficiency of the neighboring fragments (not diagonally). Use Q/E to rotate fragments."),e.storedCycles>5&&r.a.createElement(u.a,{sx:{mb:1}},"Bonus time: ",Object(i.d)(o.a._idleSpeed*e.storedCycles)),r.a.createElement(l.a,{gift:e}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var a=n(0),r=n(122),i=n(61),o=n(1400),s=n(1401),l=n(18),c=n(8),f=n(77),u=n(661),m=n(102),h=n(1403),d=n(19),p=n(1);function g(e){const[t,n]=a.useState(Object(m.d)([e.gift.width(),e.gift.height()])),[g,y]=a.useState([0,0]),[b,E]=a.useState(0),[v,k]=a.useState(r.d);function w(t,a,r){if(y([t,a]),v.type===i.b.None||v.type===i.b.Delete)return;const o=Object(m.d)([e.gift.width(),e.gift.height()]);for(let e=0;e<v.height(r);e++)for(let n=0;n<v.width(r);n++)v.fullAt(n,e,r)&&(t+n>o.length-1||a+e>o[t+n].length-1||(o[t+n][a+e]=1));n(o)}function _(t,n){if(v.type!=i.b.None)if(v.type==i.b.Delete)!function(t,n){const a=e.gift.fragmentAt(t,n);void 0!==a&&e.gift.delete(a.x,a.y)}(t,n);else{if(!e.gift.canPlace(t,n,b,v))return;e.gift.place(t,n,b,v)}}return a.useEffect(()=>{function e(e){if("q"===e.key){const e=(b-1+4)%4;E(e),w(g[0],g[1],e)}if("e"===e.key){const e=(b+1)%4;E(e),w(g[0],g[1],e)}}return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)}),a.createElement(a.Fragment,null,a.createElement(l.a,{display:"flex",sx:{mb:1}},a.createElement(f.a,{sx:{mr:1}},a.createElement(u.a,{width:e.gift.width(),height:e.gift.height(),ghostGrid:t,gift:e.gift,enter:(e,t)=>w(e,t,b),click:(e,t)=>_(e,t)})),a.createElement(o.a,{gift:e.gift,x:g[0],y:g[1],fragment:e.gift.fragmentAt(g[0],g[1])})),a.createElement(l.a,{display:"flex",sx:{mb:1}},a.createElement(s.a,{gift:e.gift,selectFragment:function(t){k(t);const a=Object(m.d)([e.gift.width(),e.gift.height()]);n(a)}})),a.createElement(h.a,{gift:e.gift}),a.createElement(d.a,{title:a.createElement(p.a,null,"WARNING : This will remove all active fragment from the grid. ",a.createElement("br",null),"All cumulated charges will be lost.")},a.createElement(c.a,{onClick:function(){e.gift.clear()}},"Clear grid")))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var a=n(0),r=n.n(a),i=n(61),o=n(6),s=n(43),l=n(1);function c(e){const[,t]=Object(a.useState)(new Date);if(Object(a.useEffect)(()=>{const e=setInterval(()=>t(new Date),250);return()=>clearInterval(e)},[]),void 0===e.fragment)return r.a.createElement(s.a,{sx:{flexGrow:1}},r.a.createElement(l.a,null,"[X, Y] ",e.x,", ",e.y,r.a.createElement("br",null),r.a.createElement("br",null),"ID: N/A",r.a.createElement("br",null),"Effect: N/A",r.a.createElement("br",null),"Base Power: N/A",r.a.createElement("br",null),"Charge: N/A",r.a.createElement("br",null),"root [X, Y] N/A",r.a.createElement("br",null)));const n=e.fragment.fragment();let c=o.a.formatStaneksGiftCharge(e.fragment.highestCharge*e.fragment.numCharge),f="N/A";if([i.b.Booster,i.b.None,i.b.Delete].includes(n.type))c="N/A",f=n.power+"x adjacent fragment power";else if(Object(i.a)(n.type).includes("+x%"))f=Object(i.a)(n.type).replace(/-*x%/,o.a.formatPercentage(e.gift.effect(e.fragment)-1));else if(Object(i.a)(n.type).includes("-x%")){const t=e.gift.effect(e.fragment),a=o.a.formatPercentage(1-1/t);f=Object(i.a)(n.type).replace(/-x%/,a)}return r.a.createElement(s.a,{sx:{flexGrow:1}},r.a.createElement(l.a,null,"[X, Y] ",e.x,", ",e.y,r.a.createElement("br",null),r.a.createElement("br",null),"ID: ",e.fragment.id,r.a.createElement("br",null),"Effect: ",f,r.a.createElement("br",null),"Base Power: ",o.a.formatStaneksGiftPower(n.power),r.a.createElement("br",null),"Charge: ",c,r.a.createElement("br",null),"root [X, Y] ",e.fragment.x,", ",e.fragment.y,r.a.createElement("br",null)))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var a=n(0),r=n.n(a),i=n(122),o=n(61),s=n(1402),l=n(6),c=n(130),f=n(71),u=n(1),m=n(18);function h(e){const t=e.fragment.limit-e.gift.count(e.fragment),n=e.fragment.limit!==1/0?r.a.createElement(r.a.Fragment,null,t," remaining"):r.a.createElement(r.a.Fragment,null);return r.a.createElement(m.a,{display:"flex"},r.a.createElement(m.a,{sx:{mx:2}},r.a.createElement(s.a,{width:e.fragment.width(0),height:e.fragment.height(0),colorAt:(n,a)=>e.fragment.fullAt(n,a,0)?0===t?"grey":e.fragment.type===o.b.Booster?"blue":"green":""})),r.a.createElement(u.a,null,e.fragment.type===o.b.Booster?e.fragment.power+"x adjacent fragment power":Object(o.a)(e.fragment.type),r.a.createElement("br",null),"power: ",l.a.formatStaneksGiftPower(e.fragment.power),r.a.createElement("br",null),n))}function d(e){const[t,n]=Object(a.useState)("None");return r.a.createElement(c.a,{sx:{width:"100%"},onChange:function(t){const a=t.target.value;if(n(a),"None"===a)return void e.selectFragment(i.d);if("Delete"===a)return void e.selectFragment(i.a);const r=i.c.find(e=>e.id===a);if(void 0===r)throw new Error("Fragment selector selected an undefined fragment with id "+a);"number"==typeof a&&e.selectFragment(r)},value:t},r.a.createElement(f.a,{value:"None"},r.a.createElement(u.a,null,"None")),r.a.createElement(f.a,{value:"Delete"},r.a.createElement(u.a,null,"Delete")),i.c.map(t=>r.a.createElement(f.a,{key:t.id,value:t.id},r.a.createElement(h,{key:t.id,gift:e.gift,selectFragment:e.selectFragment,fragment:t}))))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var a=n(0),r=n(660),i=n(48),o=n(151),s=n(77);function l(e){const t=[];for(let n=0;n<e.height;n++){const o=[];for(let t=0;t<e.width;t++)o.push(a.createElement(r.a,{key:t,color:e.colorAt(t,n)}));t.push(a.createElement(i.a,{key:n},o))}return a.createElement(s.a,null,a.createElement(o.a,null,t))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var a=n(0),r=n.n(a),i=n(61),o=n(6),s=n(43),l=n(1),c=n(150),f=n(151),u=n(48),m=n(30);function h(e){const t=[];return e.gift.fragments.forEach(n=>{const a=n.fragment();if(![i.b.Booster,i.b.None,i.b.Delete].includes(a.type)){const r=t.find(e=>e.type===a.type);r?(r.effect*=e.gift.effect(n),r.coordinate.push({x:n.x,y:n.y})):t.push({coordinate:[{x:n.x,y:n.y}],effect:e.gift.effect(n),type:a.type})}}),r.a.createElement(s.a,{sx:{mb:1}},r.a.createElement(l.a,{variant:"h5"},"Summary of active fragments:"),r.a.createElement(c.a,{sx:{display:"table",width:"100%"}},r.a.createElement(f.a,null,r.a.createElement(u.a,null,r.a.createElement(m.a,{sx:{borderBottom:"none",p:0,m:0}},r.a.createElement(l.a,null,"Coordinate")),r.a.createElement(m.a,{sx:{borderBottom:"none",p:0,m:0}},r.a.createElement(l.a,null,"Effect"))),t.map(e=>r.a.createElement(u.a,{key:e.type},r.a.createElement(m.a,{sx:{borderBottom:"none",p:0,m:0}},r.a.createElement(l.a,null,e.coordinate.map(e=>"["+e.x+","+e.y+"]"))),r.a.createElement(m.a,{sx:{borderBottom:"none",p:0,m:0}},r.a.createElement(l.a,null,function(e,t){if(Object(i.a)(t).includes("+x%"))return Object(i.a)(t).replace(/-*x%/,o.a.formatPercentage(e-1));if(Object(i.a)(t).includes("-x%")){const n=o.a.formatPercentage(1-1/e);return Object(i.a)(t).replace(/-x%/,n)}return Object(i.a)(t)}(e.effect,e.type))))))))}},function(e,t,n){"use strict";function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",(function(){return r}));class r{constructor(e,t,n){a(this,"storedCycles",0),a(this,"fragments",[]),this.fragments=n,this._width=e,this._height=t}width(){return this._width}height(){return this._height}charge(){throw new Error("unimplemented for dummy gift")}process(){throw new Error("unimplemented for dummy gift")}effect(){throw new Error("unimplemented for dummy gift")}canPlace(){throw new Error("unimplemented for dummy gift")}place(){throw new Error("unimplemented for dummy gift")}findFragment(){throw new Error("unimplemented for dummy gift")}fragmentAt(e,t){for(const n of this.fragments)if(n.fullAt(e,t))return n}delete(){throw new Error("unimplemented for dummy gift")}clear(){throw new Error("unimplemented for dummy gift")}count(){throw new Error("unimplemented for dummy gift")}inBonus(){throw new Error("unimplemented for dummy gift")}prestigeAugmentation(){throw new Error("unimplemented for dummy gift")}prestigeSourceFile(){throw new Error("unimplemented for dummy gift")}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var a=n(0),r=n.n(a),i=n(4),o=n(28),s=n(496),l=n(14);function c(){const e=o.b.Router();return r.a.createElement(s.a,{lines:[`In the middle of the 21st century, ${i.a.OmniTekIncorporated} advanced robot evolution `,"with their Synthoids (synthetic androids), a being virtually identical to a human.","------","Their sixth-generation Synthoids, called MK-VI, were stronger, faster, and more ","intelligent than humans. Many argued that the MK-VI Synthoids were the first ","example of sentient AI.","------",`Unfortunately, in 2070 a terrorist group called Ascendis Totalis hacked into ${i.a.OmniTekIncorporated} and `,"uploaded a rogue AI into their Synthoid manufacturing facilities.","------","The MK-VI Synthoids infected by the rogue AI turned hostile toward humanity, initiating ","the deadliest conflict in human history. This dark chapter is now known as the Synthoid Uprising.","------","In the aftermath of the Uprising, further manufacturing of Synthoids with advanced AI ","was banned. MK-VI Synthoids that did not have the rogue Ascendis Totalis AI were ","allowed to continue their existence.","------","The intelligence community believes that not all of the rogue MK-VI Synthoids from the Uprising were ","found and destroyed, and that many of them are blending in as normal humans in society today. ",`As a result, many nations have created ${i.a.Bladeburners} divisions, special units that are tasked with `,"investigating and dealing with Synthoid threats."],onDone:()=>{e.toTerminal(),Object(l.a)(`Visit the National Security Agency (NSA) to apply for their ${i.a.Bladeburners} division! You will need 100 of each combat stat before doing this.`)}})}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var a=n(0),r=n.n(a),i=n(28),o=n(109);const s=window.getComputedStyle;function l(){const e=i.b.Player();return r.a.createElement("div",{id:"unclickable",onClick:function(t){if(!(t.target&&t.target instanceof Element))return;const n=s(t.target).display,a=s(t.target).visibility;"none"===n&&"hidden"===a&&t.isTrusted&&e.giveExploit(o.a.Unclickable)},style:{display:"none",visibility:"hidden"}},"Click on this to upgrade your Source-File -1!")}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var a=n(0),r=n.n(a),i=n(118),o=n(142),s=n(1409),l=n(306),c=n(1),f=n(2);const u=Object(i.a)(e=>Object(o.a)({root:{width:50,padding:e.spacing(2),userSelect:"none"}}));function m(){const e=u();return r.a.createElement("div",{className:e.root,style:{width:"90%"}},r.a.createElement(c.a,{variant:"h4"},"Achievements"),r.a.createElement(s.a,{achievements:Object.values(l.a),playerAchievements:f.a.achievements}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var a=n(0),r=n.n(a),i=n(18),o=n(159),s=n(160),l=n(1),c=n(161),f=n(807),u=n(5),m=n(808),h=n(380);function d({achievements:e,playerAchievements:t}){const n=Object(m.a)(u.a.theme.primary),a=Object(m.a)(u.a.theme.secondary),d=e.map(e=>{var n;return{achievement:e,unlockedOn:null===(n=t.find(t=>t.ID===e.ID))||void 0===n?void 0:n.unlockedOn}}).sort((e,t)=>{var n,a;return(null!==(n=t.unlockedOn)&&void 0!==n?n:0)-(null!==(a=e.unlockedOn)&&void 0!==a?a:0)}),p=d.filter(e=>e.unlockedOn),g=d.filter(e=>!e.unlockedOn&&e.achievement.Secret),y=d.filter(e=>!e.unlockedOn&&!e.achievement.Secret&&e.achievement.Visible&&!e.achievement.Visible()),b=d.filter(e=>!p.map(e=>e.achievement.ID).includes(e.achievement.ID)).filter(e=>!g.map(e=>e.achievement.ID).includes(e.achievement.ID)).filter(e=>!y.map(e=>e.achievement.ID).includes(e.achievement.ID));return r.a.createElement(i.a,{sx:{pr:18,my:2}},r.a.createElement(i.a,{sx:{display:"flex",flexDirection:"column",flexWrap:"wrap"}},p.length>0&&r.a.createElement(o.a,{defaultExpanded:!0,disableGutters:!0,square:!0},r.a.createElement(s.a,null,r.a.createElement(l.a,{variant:"h5",sx:{my:1}},"Acquired (",p.length,"/",d.length,")")),r.a.createElement(c.a,{sx:{pt:2}},p.map(e=>r.a.createElement(f.a,{key:"unlocked_"+e.achievement.ID,achievement:e.achievement,unlockedOn:e.unlockedOn,cssFiltersUnlocked:n,cssFiltersLocked:a})))),b.length>0&&r.a.createElement(o.a,{disableGutters:!0,square:!0},r.a.createElement(s.a,null,r.a.createElement(l.a,{variant:"h5",color:"secondary"},"Locked (",b.length," remaining)")),r.a.createElement(c.a,{sx:{pt:2}},b.map(e=>r.a.createElement(f.a,{key:"locked_"+e.achievement.ID,achievement:e.achievement,cssFiltersUnlocked:n,cssFiltersLocked:a})))),y.length>0&&r.a.createElement(o.a,{disableGutters:!0,square:!0},r.a.createElement(s.a,null,r.a.createElement(l.a,{variant:"h5",color:"secondary"},"Unavailable (",y.length," remaining)")),r.a.createElement(c.a,null,r.a.createElement(l.a,{sx:{mt:1}},y.length," additional achievements hidden behind content you don't have access to."))),g.length>0&&r.a.createElement(o.a,{disableGutters:!0,square:!0},r.a.createElement(s.a,null,r.a.createElement(l.a,{variant:"h5",color:"secondary"},"Secret (",g.length," remaining)")),r.a.createElement(c.a,null,r.a.createElement(l.a,{color:"secondary",sx:{mt:1}},g.map(e=>r.a.createElement("span",{key:"secret_"+e.achievement.ID},r.a.createElement(h.a,{content:e.achievement.ID}),r.a.createElement("br",null))))))))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var a=n(0),r=n.n(a),i=n(18),o=n(5);function s({achievement:e,unlocked:t,colorFilters:n,size:s}){const[l,c]=Object(a.useState)(!1),f=t?o.a.theme.primarydark:o.a.theme.secondarydark;return e.Icon?r.a.createElement(i.a,{sx:{border:"1px solid "+f,width:s,height:s,m:1,visibility:l?"visible":"hidden"}},r.a.createElement("img",{src:`dist/icons/achievements/${encodeURI(e.Icon)}.svg`,style:{filter:n,width:s,height:s},onLoad:()=>c(!0),alt:e.Name})):r.a.createElement(r.a.Fragment,null)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var a=n(0),r=n.n(a),i=n(549),o=n(428);class s extends r.a.Component{constructor(e){super(e),this.state={hasError:!1}}reset(){this.setState({hasError:!1})}componentDidCatch(e,t){this.setState({errorInfo:t,page:this.props.router.page()}),console.error(e,t)}render(){if(this.state.hasError){let e;if(this.state.error)try{e=Object(i.a)(this.state.error,this.state.errorInfo,this.state.page)}catch(e){console.error(e)}return r.a.createElement(o.c,{router:this.props.router,softReset:this.props.softReset,errorData:e,resetError:()=>this.reset()})}return this.props.children}static getDerivedStateFromError(e){return{hasError:!0,error:e}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return v}));var a=n(0),r=n.n(a),i=n(1),o=n(43),s=n(173),l=n(5),c=n(345),f=n(8),u=n(18),m=n(364),h=n(634),d=n(633),p=n(1413),g=n(643),y=n(37),b=n(94);let E=0;function v({router:e}){const[t,n]=Object(a.useState)(!1),[v,k]=Object(a.useState)(),w=Object(c.b)(),_=w&&Object.entries(w).map(([e,t])=>r.a.createElement(p.a,{key:e,theme:t,onActivated:()=>function(e){E=window.scrollY;const t={...l.a.theme};Object.assign(l.a.theme,e.colors),s.b.emit(),b.b.emit(r.a.createElement(r.a.Fragment,null,'Updated theme to "',r.a.createElement("strong",null,e.name),'"',r.a.createElement(f.a,{sx:{ml:1},color:"secondary",size:"small",onClick:()=>{Object.assign(l.a.theme,t),s.b.emit()}},"UNDO")),b.d.INFO,3e4)}(t),onImageClick:S}))||r.a.createElement(r.a.Fragment,null);function S(e){E=window.scrollY,k(e),n(!0)}return Object(a.useEffect)(()=>{requestAnimationFrame(()=>window.scrollTo(0,E))}),r.a.createElement(u.a,{sx:{mx:2}},r.a.createElement(i.a,{variant:"h4"},"Theme Browser"),r.a.createElement(o.a,{sx:{px:2,py:1,my:1}},r.a.createElement(g.a,null),r.a.createElement(m.a,{sx:{mb:2,display:"block"}},r.a.createElement(h.a,{router:e}),r.a.createElement(d.a,null)),r.a.createElement(u.a,{sx:{display:"flex",flexWrap:"wrap"}},_),r.a.createElement(y.a,{open:t,onClose:function(){E=window.scrollY,n(!1)}},r.a.createElement("img",{src:v,style:{width:"100%"}}))))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var a=n(0),r=n.n(a),i=n(1),o=n(19),s=n(644),l=n.n(s),c=n(5),f=n(1853),u=n(1854),m=n(8),h=n(152),d=n(1855),p=n(1856);function g({theme:e,onActivated:t,onImageClick:n}){return e?r.a.createElement(f.a,{key:e.screenshot,sx:{width:400,mr:1,mb:1}},r.a.createElement(u.a,{action:r.a.createElement(o.a,{title:"Use this theme"},r.a.createElement(m.a,{startIcon:r.a.createElement(l.a,null),onClick:t,variant:"outlined"},"Use")),title:e.name,subheader:r.a.createElement(r.a.Fragment,null,"by ",e.credit," ",e.reference&&r.a.createElement(r.a.Fragment,null,"(",r.a.createElement(h.a,{href:e.reference,target:"_blank"},"ref"),")")),sx:{color:c.a.theme.primary,"& .MuiCardHeader-subheader":{color:c.a.theme.secondarydark},"& .MuiButton-outlined":{backgroundColor:"transparent"}}}),r.a.createElement(d.a,{component:"img",width:"400",image:e.screenshot,alt:`Theme Screenshot of "${e.name}"`,sx:{borderTop:"1px solid "+c.a.theme.welllight,borderBottom:"1px solid "+c.a.theme.welllight,cursor:"zoom-in"},onClick:()=>n(e.screenshot)}),r.a.createElement(p.a,null,r.a.createElement(i.a,{variant:"body2",color:"text.secondary",sx:{color:c.a.theme.primarydark}},e.description))):r.a.createElement(r.a.Fragment,null)}},,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return j}));var a=n(0),r=n.n(a),i=n(19),o=n(18),s=n(1),l=n(1499),c=n(43),f=n(150),u=n(1500),m=n(48),h=n(30),d=n(151),p=n(364),g=n(8),y=n(118),b=n(142),E=n(1418),v=n.n(E),k=n(1419),w=n.n(k),_=n(662),S=n.n(_),C=n(1421),x=n.n(C),L=n(1420),O=n.n(L),M=n(110),T=n(5),A=n(24),R=n(6),N=n(255),P=n(303);const I=Object(y.a)(e=>Object(b.a)({root:{padding:e.spacing(2),maxWidth:"1000px","& .MuiTable-root":{"& .MuiTableCell-root":{borderBottom:"1px solid "+T.a.theme.welllight},"& .MuiTableHead-root .MuiTableRow-root":{backgroundColor:T.a.theme.backgroundsecondary,"& .MuiTableCell-root":{color:T.a.theme.primary,fontWeight:"bold"}},"& .MuiTableBody-root":{"& .MuiTableRow-root:nth-of-type(odd)":{backgroundColor:T.a.theme.well,"& .MuiTableCell-root":{color:T.a.theme.primarylight}},"& .MuiTableRow-root:nth-of-type(even)":{backgroundColor:T.a.theme.backgroundsecondary,"& .MuiTableCell-root":{color:T.a.theme.primarylight}}}}}}));function F({isBetter:e}){return e?r.a.createElement(i.a,{title:r.a.createElement(r.a.Fragment,null,"Imported value is ",r.a.createElement("b",null,"larger"),"!")},r.a.createElement(v.a,{color:"success"})):r.a.createElement(i.a,{title:r.a.createElement(r.a.Fragment,null,"Imported value is ",r.a.createElement("b",null,"smaller"),"!")},r.a.createElement(w.a,{color:"error"}))}let D=0;function j(e){var t,n,y,b,E,v,k,w,_,C,L,j,B,G,W,H,U,q,$,K,z,V,Y,J,X,Q,Z,ee,te,ne,ae,re,ie,oe,se,le,ce,fe,ue,me,he,de,pe,ge,ye,be,Ee,ve,ke,we,_e,Se,Ce,xe,Le,Oe,Me,Te,Ae,Re,Ne,Pe,Ie,Fe,De,je,Be,Ge,We,He,Ue,qe,$e,Ke,ze,Ve,Ye,Je,Xe,Qe,Ze,et,tt,nt,at,rt;const it=I(),[ot,st]=Object(a.useState)(),[lt,ct]=Object(a.useState)(),[ft,ut]=Object(a.useState)(!1),[mt,ht]=Object(a.useState)(!1);return Object(a.useEffect)(()=>{D=T.a.AutosaveInterval,T.a.AutosaveInterval=0,e.router.allowRouting(!1)},[]),Object(a.useEffect)(()=>{mt&&e.router.toTerminal()},[mt]),Object(a.useEffect)(()=>{e.importString&&async function(){const t=await M.c.getImportDataFromString(e.importString),n=await M.c.getImportDataFromString(M.c.getSaveString(!0));st(t),ct(n),Promise.resolve()}()},[e.importString]),ot&<?r.a.createElement(o.a,{className:it.root},r.a.createElement(s.a,{variant:"h4",sx:{mb:2}},"Import Save Comparison"),e.automatic&&r.a.createElement(s.a,{sx:{mb:2}},"We've found a ",r.a.createElement("b",null,"NEWER save")," that you may want to use instead."),r.a.createElement(s.a,{variant:"body1",sx:{mb:2}},"Your current game's data is on the left and the data that will be imported is on the right.",r.a.createElement("br",null),"Please double check everything is fine before proceeding!"),r.a.createElement(l.a,{color:"secondary",component:c.a},r.a.createElement(f.a,null,r.a.createElement(u.a,null,r.a.createElement(m.a,null,r.a.createElement(h.a,null),r.a.createElement(h.a,null,"Current Game"),r.a.createElement(h.a,null,"Being Imported"),r.a.createElement(h.a,null))),r.a.createElement(d.a,null,r.a.createElement(m.a,null,r.a.createElement(h.a,null,"Game Identifier"),r.a.createElement(h.a,null,null!==(t=null===(n=lt.playerData)||void 0===n?void 0:n.identifier)&&void 0!==t?t:"n/a"),r.a.createElement(h.a,null,null!==(y=null===(b=ot.playerData)||void 0===b?void 0:b.identifier)&&void 0!==y?y:"n/a"),r.a.createElement(h.a,null,(null===(E=ot.playerData)||void 0===E?void 0:E.identifier)!==(null===(v=lt.playerData)||void 0===v?void 0:v.identifier)&&r.a.createElement(i.a,{title:"These are two different games!"},r.a.createElement(O.a,{color:"warning"})))),r.a.createElement(m.a,null,r.a.createElement(h.a,null,"Playtime"),r.a.createElement(h.a,null,Object(A.d)(null!==(k=null===(w=lt.playerData)||void 0===w?void 0:w.totalPlaytime)&&void 0!==k?k:0)),r.a.createElement(h.a,null,Object(A.d)(null!==(_=null===(C=ot.playerData)||void 0===C?void 0:C.totalPlaytime)&&void 0!==_?_:0)),r.a.createElement(h.a,null,(null===(L=ot.playerData)||void 0===L?void 0:L.totalPlaytime)!==(null===(j=lt.playerData)||void 0===j?void 0:j.totalPlaytime)&&r.a.createElement(F,{isBetter:(null!==(B=null===(G=ot.playerData)||void 0===G?void 0:G.totalPlaytime)&&void 0!==B?B:0)>(null!==(W=null===(H=lt.playerData)||void 0===H?void 0:H.totalPlaytime)&&void 0!==W?W:0)}))),r.a.createElement(m.a,null,r.a.createElement(h.a,null,"Saved On"),r.a.createElement(h.a,null,(null!==(U=null===(q=lt.playerData)||void 0===q?void 0:q.lastSave)&&void 0!==U?U:0)>0?new Date(null!==($=null===(K=lt.playerData)||void 0===K?void 0:K.lastSave)&&void 0!==$?$:0).toLocaleString():"n/a"),r.a.createElement(h.a,null,(null!==(z=null===(V=ot.playerData)||void 0===V?void 0:V.lastSave)&&void 0!==z?z:0)>0?new Date(null!==(Y=null===(J=ot.playerData)||void 0===J?void 0:J.lastSave)&&void 0!==Y?Y:0).toLocaleString():"n/a"),r.a.createElement(h.a,null,(null===(X=ot.playerData)||void 0===X?void 0:X.lastSave)!==(null===(Q=lt.playerData)||void 0===Q?void 0:Q.lastSave)&&r.a.createElement(F,{isBetter:(null!==(Z=null===(ee=ot.playerData)||void 0===ee?void 0:ee.lastSave)&&void 0!==Z?Z:0)>(null!==(te=null===(ne=lt.playerData)||void 0===ne?void 0:ne.lastSave)&&void 0!==te?te:0)}))),r.a.createElement(m.a,null,r.a.createElement(h.a,null,"Money"),r.a.createElement(h.a,null,R.a.formatMoney(null!==(ae=null===(re=lt.playerData)||void 0===re?void 0:re.money)&&void 0!==ae?ae:0)),r.a.createElement(h.a,null,R.a.formatMoney(null!==(ie=null===(oe=ot.playerData)||void 0===oe?void 0:oe.money)&&void 0!==ie?ie:0)),r.a.createElement(h.a,null,(null===(se=ot.playerData)||void 0===se?void 0:se.money)!==(null===(le=lt.playerData)||void 0===le?void 0:le.money)&&r.a.createElement(F,{isBetter:(null!==(ce=null===(fe=ot.playerData)||void 0===fe?void 0:fe.money)&&void 0!==ce?ce:0)>(null!==(ue=null===(me=lt.playerData)||void 0===me?void 0:me.money)&&void 0!==ue?ue:0)}))),r.a.createElement(m.a,null,r.a.createElement(h.a,null,"Hacking"),r.a.createElement(h.a,null,R.a.formatSkill(null!==(he=null===(de=lt.playerData)||void 0===de?void 0:de.hacking)&&void 0!==he?he:0)),r.a.createElement(h.a,null,R.a.formatSkill(null!==(pe=null===(ge=ot.playerData)||void 0===ge?void 0:ge.hacking)&&void 0!==pe?pe:0)),r.a.createElement(h.a,null,(null===(ye=ot.playerData)||void 0===ye?void 0:ye.hacking)!==(null===(be=lt.playerData)||void 0===be?void 0:be.hacking)&&r.a.createElement(F,{isBetter:(null!==(Ee=null===(ve=ot.playerData)||void 0===ve?void 0:ve.hacking)&&void 0!==Ee?Ee:0)>(null!==(ke=null===(we=lt.playerData)||void 0===we?void 0:we.hacking)&&void 0!==ke?ke:0)}))),r.a.createElement(m.a,null,r.a.createElement(h.a,null,"Augmentations"),r.a.createElement(h.a,null,null===(_e=lt.playerData)||void 0===_e?void 0:_e.augmentations),r.a.createElement(h.a,null,null===(Se=ot.playerData)||void 0===Se?void 0:Se.augmentations),r.a.createElement(h.a,null,(null===(Ce=ot.playerData)||void 0===Ce?void 0:Ce.augmentations)!==(null===(xe=lt.playerData)||void 0===xe?void 0:xe.augmentations)&&r.a.createElement(F,{isBetter:(null!==(Le=null===(Oe=ot.playerData)||void 0===Oe?void 0:Oe.augmentations)&&void 0!==Le?Le:0)>(null!==(Me=null===(Te=lt.playerData)||void 0===Te?void 0:Te.augmentations)&&void 0!==Me?Me:0)}))),r.a.createElement(m.a,null,r.a.createElement(h.a,null,"Factions"),r.a.createElement(h.a,null,null===(Ae=lt.playerData)||void 0===Ae?void 0:Ae.factions),r.a.createElement(h.a,null,null===(Re=ot.playerData)||void 0===Re?void 0:Re.factions),r.a.createElement(h.a,null,(null===(Ne=ot.playerData)||void 0===Ne?void 0:Ne.factions)!==(null===(Pe=lt.playerData)||void 0===Pe?void 0:Pe.factions)&&r.a.createElement(F,{isBetter:(null!==(Ie=null===(Fe=ot.playerData)||void 0===Fe?void 0:Fe.factions)&&void 0!==Ie?Ie:0)>(null!==(De=null===(je=lt.playerData)||void 0===je?void 0:je.factions)&&void 0!==De?De:0)}))),r.a.createElement(m.a,null,r.a.createElement(h.a,null,"Achievements"),r.a.createElement(h.a,null,null===(Be=lt.playerData)||void 0===Be?void 0:Be.achievements),r.a.createElement(h.a,null,null===(Ge=ot.playerData)||void 0===Ge?void 0:Ge.achievements),r.a.createElement(h.a,null,(null===(We=ot.playerData)||void 0===We?void 0:We.achievements)!==(null===(He=lt.playerData)||void 0===He?void 0:He.achievements)&&r.a.createElement(F,{isBetter:(null!==(Ue=null===(qe=ot.playerData)||void 0===qe?void 0:qe.achievements)&&void 0!==Ue?Ue:0)>(null!==($e=null===(Ke=lt.playerData)||void 0===Ke?void 0:Ke.achievements)&&void 0!==$e?$e:0)}))),r.a.createElement(m.a,null,r.a.createElement(h.a,null,"Source Files"),r.a.createElement(h.a,null,null===(ze=lt.playerData)||void 0===ze?void 0:ze.sourceFiles),r.a.createElement(h.a,null,null===(Ve=ot.playerData)||void 0===Ve?void 0:Ve.sourceFiles),r.a.createElement(h.a,null,(null===(Ye=ot.playerData)||void 0===Ye?void 0:Ye.sourceFiles)!==(null===(Je=lt.playerData)||void 0===Je?void 0:Je.sourceFiles)&&r.a.createElement(F,{isBetter:(null!==(Xe=null===(Qe=ot.playerData)||void 0===Qe?void 0:Qe.sourceFiles)&&void 0!==Xe?Xe:0)>(null!==(Ze=null===(et=lt.playerData)||void 0===et?void 0:et.sourceFiles)&&void 0!==Ze?Ze:0)}))),r.a.createElement(m.a,null,r.a.createElement(h.a,null,"BitNode"),r.a.createElement(h.a,null,null===(tt=lt.playerData)||void 0===tt?void 0:tt.bitNode,"-",null===(nt=lt.playerData)||void 0===nt?void 0:nt.bitNodeLevel),r.a.createElement(h.a,null,null===(at=ot.playerData)||void 0===at?void 0:at.bitNode,"-",null===(rt=ot.playerData)||void 0===rt?void 0:rt.bitNodeLevel),r.a.createElement(h.a,null))))),r.a.createElement(o.a,{sx:{display:"flex",justifyContent:"flex-end"}},r.a.createElement(p.a,null,r.a.createElement(g.a,{onClick:function(){T.a.AutosaveInterval=D,Object(P.e)(!1),e.router.allowRouting(!0),ht(!0)},sx:{my:2},startIcon:r.a.createElement(x.a,null),color:"secondary"},"Take me back!"),r.a.createElement(g.a,{onClick:()=>ut(!0),sx:{my:2},startIcon:r.a.createElement(S.a,null),color:"warning"},"Proceed with import")),r.a.createElement(N.a,{open:ft,onClose:()=>ut(!1),onConfirm:async function(){await M.c.importGame(e.importString,!0),Object(P.e)(!0)},confirmationText:r.a.createElement(r.a.Fragment,null,"Importing new save game data will ",r.a.createElement("strong",null,"completely wipe")," the current game data!",r.a.createElement("br",null))}))):r.a.createElement(r.a.Fragment,null)}},,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var a=n(0),r=n.n(a);function i(e){return e.content?r.a.createElement(r.a.Fragment,null,e.content):r.a.createElement(r.a.Fragment,null,e.children)}},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return $}));var a=n(105),r=n(201),i=n(73),o=n(115),s=n(11),l=n(144),c=n(12),f=n(148),u=n(376),m=n(388),h=n(375),d=n(104),p=n(262),g=n(15),y=n(9),b=n(92),E=n(87),v=n(26),k=n(181),w=n(27),_=n(60),S=n(6),C=n(21),x=n(258),L=n(74),O=n(29),M=n(111),T=n(24),A=n(137),R=n(84),N=n(100),P=n(44),I=n(493),F=n(385),D=n(57),j=n(427),B=n(4),G=n(88),W=n(305),H=n(223),U=n(101),q=n(321);function $(e,t){const n=function(e,t){if(!Object(o.b)(t))throw e.helper.makeRuntimeErrorMsg(`Invalid augmentation: '${t}'`);return i.a[t]},$=function(e,t){if(!Object(O.b)(t))throw e.helper.makeRuntimeErrorMsg("Invalid faction name: '"+t);return O.a[t]},K=function(e,t){const n=L.a[t];if(null==n||!(n instanceof x.a))throw e.helper.makeRuntimeErrorMsg(`Invalid company name: '${t}'`);return n},z=function(t=null){if(!t)return;const n=e.getHomeComputer();for(const a of n.scripts)if(a.filename===t){if(a.ramUsage>n.maxRam-n.ramUsed+.001)return;const t=new u.a(a,[]);t.threads=1,Object(r.e)(e,t,n)}};return{getOwnedAugmentations:t=>function(n=!1){t.helper.checkSingularityAccess();const a=t.helper.boolean(n),r=[];for(let t=0;t<e.augmentations.length;++t)r.push(e.augmentations[t].name);if(a)for(let t=0;t<e.queuedAugmentations.length;++t)r.push(e.queuedAugmentations[t].name);return r},getAugmentationsFromFaction:t=>function(n){t.helper.checkSingularityAccess();const r=t.helper.string("facName",n),i=$(t,r);return Object(a.a)(e,i)},getAugmentationCost:t=>function(a){t.helper.checkSingularityAccess();const r=t.helper.string("augName",a),i=n(t,r).getCost(e);return[i.repCost,i.moneyCost]},getAugmentationPrereq:e=>function(t){e.helper.checkSingularityAccess();const a=e.helper.string("augName",t);return n(e,a).prereqs.slice()},getAugmentationPrice:t=>function(a){t.helper.checkSingularityAccess();const r=t.helper.string("augName",a);return n(t,r).getCost(e).moneyCost},getAugmentationRepReq:t=>function(a){t.helper.checkSingularityAccess();const r=t.helper.string("augName",a);return n(t,r).getCost(e).repCost},getAugmentationStats:e=>function(t){e.helper.checkSingularityAccess();const a=e.helper.string("augName",t),r=n(e,a);return Object.assign({},r.mults)},purchaseAugmentation:t=>function(r,i){t.helper.checkSingularityAccess();const o=t.helper.string("facName",r),l=t.helper.string("augName",i),u=$(t,o),m=n(t,l),h=Object(a.a)(e,u);if(!e.factions.includes(u.name))return t.log(()=>`You can't purchase augmentations from '${o}' because you aren't a member`),!1;if(!h.includes(l))return t.log(()=>`Faction '${o}' does not have the '${l}' augmentation.`),!1;if(!(m.name===s.a.NeuroFluxGovernor)){for(let n=0;n<e.queuedAugmentations.length;++n)if(e.queuedAugmentations[n].name===m.name)return t.log(()=>`You already have the '${l}' augmentation.`),!1;for(let n=0;n<e.augmentations.length;++n)if(e.augmentations[n].name===m.name)return t.log(()=>`You already have the '${l}' augmentation.`),!1}if(u.playerReputation<m.getCost(e).repCost)return t.log(()=>`You do not have enough reputation with '${u.name}'.`),!1;const d=Object(a.f)(m,u,!0);return t.log(()=>d),!(!Object(f.a)(d)||!d.startsWith("You purchased"))&&(e.gainIntelligenceExp(10*c.a.IntelligenceSingFnBaseExpGain),!0)},softReset:e=>function(n=""){e.helper.checkSingularityAccess();const a=e.helper.string("cbScript",n);e.log(()=>"Soft resetting. This will cause this script to be killed"),setTimeout(()=>{Object(o.f)(!0),z(a)},0),t.running=!1,Object(l.a)(t)},installAugmentations:n=>function(a=""){n.helper.checkSingularityAccess();const r=n.helper.string("cbScript",a);return 0===e.queuedAugmentations.length?(n.log(()=>"You do not have any Augmentations to be installed."),!1):(e.gainIntelligenceExp(10*c.a.IntelligenceSingFnBaseExpGain),n.log(()=>"Installing Augmentations. This will cause this script to be killed"),setTimeout(()=>{Object(o.f)(),z(r)},0),t.running=!1,Object(l.a)(t),!0)},goToLocation:t=>function(n){t.helper.checkSingularityAccess();const a=t.helper.string("locationName",n),r=Object.values(k.a).find(e=>e.name===a);return r?e.city!==r.city?(t.log(()=>`No location named ${a} in ${e.city}`),!1):(b.b.toLocation(r),e.gainIntelligenceExp(c.a.IntelligenceSingFnBaseExpGain/5e4),!0):(t.log(()=>"No location named "+a),!1)},universityCourse:t=>function(n,a,r=!0){t.helper.checkSingularityAccess();const i=t.helper.string("universityName",n),o=t.helper.string("className",a),s=t.helper.boolean(r),l=e.focus;switch(i.toLowerCase()){case y.a.AevumSummitUniversity.toLowerCase():if(e.city!=g.a.Aevum)return t.log(()=>`You cannot study at 'Summit University' because you are not in '${g.a.Aevum}'.`),!1;e.gotoLocation(y.a.AevumSummitUniversity);break;case y.a.Sector12RothmanUniversity.toLowerCase():if(e.city!=g.a.Sector12)return t.log(()=>`You cannot study at 'Rothman University' because you are not in '${g.a.Sector12}'.`),!1;e.location=y.a.Sector12RothmanUniversity;break;case y.a.VolhavenZBInstituteOfTechnology.toLowerCase():if(e.city!=g.a.Volhaven)return t.log(()=>`You cannot study at 'ZB Institute of Technology' because you are not in '${g.a.Volhaven}'.`),!1;e.location=y.a.VolhavenZBInstituteOfTechnology;break;default:return t.log(()=>`Invalid university name: '${i}'.`),!1}let c;switch(o.toLowerCase()){case"Study Computer Science".toLowerCase():c=G.a.StudyComputerScience;break;case"Data Structures".toLowerCase():c=G.a.DataStructures;break;case"Networks".toLowerCase():c=G.a.Networks;break;case"Algorithms".toLowerCase():c=G.a.Algorithms;break;case"Management".toLowerCase():c=G.a.Management;break;case"Leadership".toLowerCase():c=G.a.Leadership;break;default:return t.log(()=>`Invalid class name: ${o}.`),!1}return e.startWork(new G.b({classType:c,location:e.location,singularity:!0})),s?(e.startFocusing(),b.b.toWork()):l&&(e.stopFocusing(),b.b.toTerminal()),t.log(()=>`Started ${c} at ${i}`),!0},gymWorkout:t=>function(n,a,r=!0){t.helper.checkSingularityAccess();const i=t.helper.string("gymName",n),o=t.helper.string("stat",a),s=t.helper.boolean(r),l=e.focus;switch(i.toLowerCase()){case y.a.AevumCrushFitnessGym.toLowerCase():if(e.city!=g.a.Aevum)return t.log(()=>`You cannot workout at '${y.a.AevumCrushFitnessGym}' because you are not in '${g.a.Aevum}'.`),!1;e.location=y.a.AevumCrushFitnessGym;break;case y.a.AevumSnapFitnessGym.toLowerCase():if(e.city!=g.a.Aevum)return t.log(()=>`You cannot workout at '${y.a.AevumSnapFitnessGym}' because you are not in '${g.a.Aevum}'.`),!1;e.location=y.a.AevumSnapFitnessGym;break;case y.a.Sector12IronGym.toLowerCase():if(e.city!=g.a.Sector12)return t.log(()=>`You cannot workout at '${y.a.Sector12IronGym}' because you are not in '${g.a.Sector12}'.`),!1;e.location=y.a.Sector12IronGym;break;case y.a.Sector12PowerhouseGym.toLowerCase():if(e.city!=g.a.Sector12)return t.log(()=>`You cannot workout at '${y.a.Sector12PowerhouseGym}' because you are not in '${g.a.Sector12}'.`),!1;e.location=y.a.Sector12PowerhouseGym;break;case y.a.VolhavenMilleniumFitnessGym.toLowerCase():if(e.city!=g.a.Volhaven)return t.log(()=>`You cannot workout at '${y.a.VolhavenMilleniumFitnessGym}' because you are not in '${g.a.Volhaven}'.`),!1;e.location=y.a.VolhavenMilleniumFitnessGym;break;default:return t.log(()=>`Invalid gym name: ${i}. gymWorkout() failed`),!1}switch(o.toLowerCase()){case"strength".toLowerCase():case"str".toLowerCase():e.startWork(new G.b({classType:G.a.GymStrength,location:e.location,singularity:!0}));break;case"defense".toLowerCase():case"def".toLowerCase():e.startWork(new G.b({classType:G.a.GymDefense,location:e.location,singularity:!0}));break;case"dexterity".toLowerCase():case"dex".toLowerCase():e.startWork(new G.b({classType:G.a.GymDexterity,location:e.location,singularity:!0}));break;case"agility".toLowerCase():case"agi".toLowerCase():e.startWork(new G.b({classType:G.a.GymAgility,location:e.location,singularity:!0}));break;default:return t.log(()=>`Invalid stat: ${o}.`),!1}return s?(e.startFocusing(),b.b.toWork()):l&&(e.stopFocusing(),b.b.toTerminal()),t.log(()=>`Started training ${o} at ${i}`),!0},travelToCity:t=>function(n){t.helper.checkSingularityAccess();const a=t.helper.city("cityName",n);switch(a){case g.a.Aevum:case g.a.Chongqing:case g.a.Sector12:case g.a.NewTokyo:case g.a.Ishima:case g.a.Volhaven:return e.money<c.a.TravelCost?(t.log(()=>"Not enough money to travel."),!1):(e.loseMoney(c.a.TravelCost,"other"),e.city=a,t.log(()=>"Traveled to "+a),e.gainIntelligenceExp(c.a.IntelligenceSingFnBaseExpGain/5e4),!0);default:throw t.helper.makeRuntimeErrorMsg(`Invalid city name: '${a}'.`)}},purchaseTor:t=>function(){if(t.helper.checkSingularityAccess(),e.hasTorRouter())return t.log(()=>"You already have a TOR router!"),!0;if(e.money<c.a.TorRouterCost)return t.log(()=>"You cannot afford to purchase a Tor router."),!1;e.loseMoney(c.a.TorRouterCost,"other");const n=Object(w.d)(E.a.DarkWeb);if(!n)throw t.makeRuntimeErrorMsg("DarkWeb was not a server but should have been");return e.getHomeComputer().serversOnNetwork.push(n.hostname),n.serversOnNetwork.push(e.getHomeComputer().hostname),e.gainIntelligenceExp(c.a.IntelligenceSingFnBaseExpGain/500),t.log(()=>"You have purchased a Tor router!"),!0},purchaseProgram:t=>function(n){t.helper.checkSingularityAccess();const a=t.helper.string("programName",n).toLowerCase();if(!e.hasTorRouter())return t.log(()=>"You do not have the TOR router."),!1;const r=Object.values(p.a).find(e=>e.program.toLowerCase()===a);return null==r?(t.log(()=>`Invalid program name: '${a}.`),!1):e.money<r.price?(t.log(()=>`Not enough money to purchase '${r.program}'. Need ${S.a.formatMoney(r.price)}`),!1):e.hasProgram(r.program)?(t.log(()=>`You already have the '${r.program}' program`),!0):(e.getHomeComputer().pushProgram(r.program),Object(W.b)(e.currentWork)&&e.currentWork.programName===r.program&&e.finishWork(!0),e.loseMoney(r.price,"other"),t.log(()=>`You have purchased the '${r.program}' program. The new program can be found on your home computer.`),e.gainIntelligenceExp(c.a.IntelligenceSingFnBaseExpGain/5e3),!0)},getCurrentServer:t=>function(){return t.helper.checkSingularityAccess(),e.getCurrentServer().hostname},connect:t=>function(n){t.helper.checkSingularityAccess();const a=t.helper.string("hostname",n);if(!a)throw t.helper.makeRuntimeErrorMsg(`Invalid hostname: '${a}'`);const r=Object(w.d)(a);if(null==r)throw t.helper.makeRuntimeErrorMsg(`Invalid hostname: '${a}'`);if("home"===a)return e.getCurrentServer().isConnectedTo=!1,e.currentServer=e.getHomeComputer().hostname,e.getCurrentServer().isConnectedTo=!0,R.a.setcwd("/"),!0;const i=e.getCurrentServer();for(let t=0;t<i.serversOnNetwork.length;t++){const n=Object(A.a)(i,t);if(null!==n&&n.hostname==a)return e.getCurrentServer().isConnectedTo=!1,e.currentServer=r.hostname,e.getCurrentServer().isConnectedTo=!0,R.a.setcwd("/"),!0}const o=Object(w.d)(a);return!!(null!==o&&o instanceof P.a&&o.backdoorInstalled)&&(e.getCurrentServer().isConnectedTo=!1,e.currentServer=r.hostname,e.getCurrentServer().isConnectedTo=!0,R.a.setcwd("/"),!0)},manualHack:t=>function(){t.helper.checkSingularityAccess();const n=e.getCurrentServer();return t.helper.hack(n.hostname,!0)},installBackdoor:n=>async()=>{n.helper.checkSingularityAccess();const a=e.getCurrentServer();if(!(a instanceof P.a))return n.log(()=>"cannot backdoor this kind of server"),Promise.resolve();const r=a,i=Object(N.d)(r,e)/4*1e3,o=Object(I.b)(r,e);if(!o.res)throw n.helper.makeRuntimeErrorMsg(o.msg||"");return n.log(()=>`Installing backdoor on '${r.hostname}' in ${Object(T.d)(i,!0)}`),Object(M.c)(i,t).then((function(){return n.log(()=>`Successfully installed backdoor on '${r.hostname}'`),r.backdoorInstalled=!0,E.a.WorldDaemon===r.hostname&&b.b.toBitVerse(!1,!1),Promise.resolve()}))},isFocused:t=>function(){return t.helper.checkSingularityAccess(),e.focus},setFocus:t=>function(n){t.helper.checkSingularityAccess();const a=t.helper.boolean(n);if(null===e.currentWork)throw t.helper.makeRuntimeErrorMsg("Not currently working");return!e.focus&&a?(e.startFocusing(),b.b.toWork(),!0):!(!e.focus||a)&&(e.stopFocusing(),b.b.toTerminal(),!0)},getStats:t=>function(){return t.helper.checkSingularityAccess(),t.log(()=>"getStats is deprecated, please use getplayer"),{hacking:e.hacking,strength:e.strength,defense:e.defense,dexterity:e.dexterity,agility:e.agility,charisma:e.charisma,intelligence:e.intelligence}},getCharacterInformation:t=>function(){return t.helper.checkSingularityAccess(),t.log(()=>"getCharacterInformation is deprecated, please use getplayer"),{bitnode:e.bitNodeN,city:e.city,factions:e.factions.slice(),hp:e.hp,jobs:Object.keys(e.jobs),jobTitles:Object.values(e.jobs),maxHp:e.max_hp,mult:{agility:e.mults.agility,agilityExp:e.mults.agility_exp,charisma:e.charisma,charismaExp:e.charisma_exp,companyRep:e.mults.company_rep,crimeMoney:e.mults.crime_money,crimeSuccess:e.mults.crime_success,defense:e.mults.defense,defenseExp:e.mults.defense_exp,dexterity:e.mults.dexterity,dexterityExp:e.mults.dexterity_exp,factionRep:e.mults.faction_rep,hacking:e.mults.hacking,hackingExp:e.mults.hacking_exp,strength:e.mults.strength,strengthExp:e.mults.strength_exp,workMoney:e.mults.work_money},tor:e.hasTorRouter(),hackingExp:e.hacking_exp,strengthExp:e.strength_exp,defenseExp:e.defense_exp,dexterityExp:e.dexterity_exp,agilityExp:e.agility_exp,charismaExp:e.charisma_exp}},hospitalize:t=>function(){t.helper.checkSingularityAccess(),e.currentWork||b.b.page()===v.a.Infiltration||b.b.page()===v.a.BitVerse?t.log(()=>"Cannot go to the hospital because the player is busy."):e.hospitalize()},isBusy:t=>function(){return t.helper.checkSingularityAccess(),null!==e.currentWork||b.b.page()===v.a.Infiltration||b.b.page()===v.a.BitVerse},stopAction:t=>function(){t.helper.checkSingularityAccess();const n=null!==e.currentWork;return e.finishWork(!0),n},upgradeHomeCores:t=>function(){t.helper.checkSingularityAccess();const n=e.getHomeComputer();if(n.cpuCores>=8)return t.log(()=>"Your home computer is at max cores."),!1;const a=e.getUpgradeHomeCoresCost();return e.money<a?(t.log(()=>"You don't have enough money. Need "+S.a.formatMoney(a)),!1):(n.cpuCores+=1,e.loseMoney(a,"servers"),e.gainIntelligenceExp(2*c.a.IntelligenceSingFnBaseExpGain),t.log(()=>`Purchased an additional core for home computer! It now has ${n.cpuCores} cores.`),!0)},getUpgradeHomeCoresCost:t=>function(){return t.helper.checkSingularityAccess(),e.getUpgradeHomeCoresCost()},upgradeHomeRam:t=>function(){t.helper.checkSingularityAccess();const n=e.getHomeComputer();if(n.maxRam>=c.a.HomeComputerMaxRam)return t.log(()=>"Your home computer is at max RAM."),!1;const a=e.getUpgradeHomeRamCost();return e.money<a?(t.log(()=>"You don't have enough money. Need "+S.a.formatMoney(a)),!1):(n.maxRam*=2,e.loseMoney(a,"servers"),e.gainIntelligenceExp(2*c.a.IntelligenceSingFnBaseExpGain),t.log(()=>`Purchased additional RAM for home computer! It now has ${S.a.formatRAM(n.maxRam)} of RAM.`),!0)},getUpgradeHomeRamCost:t=>function(){return t.helper.checkSingularityAccess(),e.getUpgradeHomeRamCost()},workForCompany:t=>function(n,a=!0){t.helper.checkSingularityAccess();let r=t.helper.string("companyName",n);const i=t.helper.boolean(a);if(null==r&&(r=e.companyName),null==r||""===r||!(L.a[r]instanceof x.a))return t.log(()=>`Invalid company: '${r}'`),!1;if(!Object.keys(e.jobs).includes(r))return t.log(()=>`You do not have a job at '${r}'`),!1;const o=e.jobs[r],s=d.a[o];if(""===o||!(s instanceof h.a))return t.log(()=>"You do not have a job"),!1;const l=e.focus;return e.startWork(new q.a({singularity:!0,companyName:r})),i?(e.startFocusing(),b.b.toWork()):l&&(e.stopFocusing(),b.b.toTerminal()),t.log(()=>`Began working at '${e.companyName}' as a '${o}'`),!0},applyToCompany:t=>function(n,a){t.helper.checkSingularityAccess();const r=t.helper.string("companyName",n),i=t.helper.string("field",a);let o;switch(K(t,r),e.location=r,i.toLowerCase()){case"software":o=e.applyForSoftwareJob(!0);break;case"software consultant":o=e.applyForSoftwareConsultantJob(!0);break;case"it":o=e.applyForItJob(!0);break;case"security engineer":o=e.applyForSecurityEngineerJob(!0);break;case"network engineer":o=e.applyForNetworkEngineerJob(!0);break;case"business":o=e.applyForBusinessJob(!0);break;case"business consultant":o=e.applyForBusinessConsultantJob(!0);break;case"security":o=e.applyForSecurityJob(!0);break;case"agent":o=e.applyForAgentJob(!0);break;case"employee":o=e.applyForEmployeeJob(!0);break;case"part-time employee":o=e.applyForPartTimeEmployeeJob(!0);break;case"waiter":o=e.applyForWaiterJob(!0);break;case"part-time waiter":o=e.applyForPartTimeWaiterJob(!0);break;default:return t.log(()=>`Invalid job: '${i}'.`),!1}return o?t.log(()=>`You were offered a new job at '${r}' as a '${e.jobs[r]}'`):t.log(()=>`You failed to get a new job/promotion at '${r}' in the '${i}' field.`),o},quitJob:t=>function(n){t.helper.checkSingularityAccess();const a=t.helper.string("companyName",n);e.quitJob(a)},getCompanyRep:e=>function(t){e.helper.checkSingularityAccess();const n=e.helper.string("companyName",t);return K(e,n).playerReputation},getCompanyFavor:e=>function(t){e.helper.checkSingularityAccess();const n=e.helper.string("companyName",t);return K(e,n).favor},getCompanyFavorGain:e=>function(t){e.helper.checkSingularityAccess();const n=e.helper.string("companyName",t);return K(e,n).getFavorGain()},checkFactionInvitations:t=>function(){return t.helper.checkSingularityAccess(),e.factionInvitations.slice()},joinFaction:t=>function(n){t.helper.checkSingularityAccess();const r=t.helper.string("facName",n);if($(t,r),!e.factionInvitations.includes(r))return t.log(()=>`You have not been invited by faction '${r}'`),!1;const i=O.a[r];Object(a.d)(i);for(let t=0;t<e.factionInvitations.length;++t)(e.factionInvitations[t]==r||O.a[e.factionInvitations[t]].isBanned)&&(e.factionInvitations.splice(t,1),t--);return e.gainIntelligenceExp(5*c.a.IntelligenceSingFnBaseExpGain),t.log(()=>`Joined the '${r}' faction.`),!0},workForFaction:t=>function(n,a,r=!0){t.helper.checkSingularityAccess();const i=t.helper.string("facName",n),o=t.helper.string("type",a),s=t.helper.boolean(r),l=$(t,i);if(e.inGang()&&l.name===e.getGangFaction().name)return t.log(()=>`You can't work for '${i}' because youre managing a gang for it`),!1;if(!e.factions.includes(i))return t.log(()=>`You are not a member of '${i}'`),!1;const c=e.focus;switch(o.toLowerCase()){case"hacking":case"hacking contracts":case"hackingcontracts":return F.a[l.name].offerHackingWork?(e.startWork(new H.a({singularity:!0,factionWorkType:U.a.HACKING,faction:l.name})),s?(e.startFocusing(),b.b.toWork()):c&&(e.stopFocusing(),b.b.toTerminal()),t.log(()=>`Started carrying out hacking contracts for '${l.name}'`),!0):(t.log(()=>`Faction '${l.name}' do not need help with hacking contracts.`),!1);case"field":case"fieldwork":case"field work":return F.a[l.name].offerFieldWork?(e.startWork(new H.a({singularity:!0,factionWorkType:U.a.FIELD,faction:l.name})),s?(e.startFocusing(),b.b.toWork()):c&&(e.stopFocusing(),b.b.toTerminal()),t.log(()=>`Started carrying out field missions for '${l.name}'`),!0):(t.log(()=>`Faction '${l.name}' do not need help with field missions.`),!1);case"security":case"securitywork":case"security work":return F.a[l.name].offerSecurityWork?(e.startWork(new H.a({singularity:!0,factionWorkType:U.a.SECURITY,faction:l.name})),s?(e.startFocusing(),b.b.toWork()):c&&(e.stopFocusing(),b.b.toTerminal()),t.log(()=>`Started carrying out security work for '${l.name}'`),!0):(t.log(()=>`Faction '${l.name}' do not need help with security work.`),!1);default:return t.log(()=>"Invalid work type: '"+o),!1}},getFactionRep:e=>function(t){e.helper.checkSingularityAccess();const n=e.helper.string("facName",t);return $(e,n).playerReputation},getFactionFavor:e=>function(t){e.helper.checkSingularityAccess();const n=e.helper.string("facName",t);return $(e,n).favor},getFactionFavorGain:e=>function(t){e.helper.checkSingularityAccess();const n=e.helper.string("facName",t);return $(e,n).getFavorGain()},donateToFaction:t=>function(n,a){t.helper.checkSingularityAccess();const r=t.helper.string("facName",n),i=t.helper.number("amt",a),o=$(t,r);if(!e.factions.includes(o.name))return t.log(()=>`You can't donate to '${r}' because you aren't a member`),!1;if(e.inGang()&&o.name===e.getGangFaction().name)return t.log(()=>`You can't donate to '${r}' because youre managing a gang for it`),!1;if(o.name===B.a.ChurchOfTheMachineGod||o.name===B.a.Bladeburners)return t.log(()=>`You can't donate to '${r}' because they do not accept donations`),!1;if("number"!=typeof i||i<=0||isNaN(i))return t.log(()=>`Invalid donation amount: '${i}'.`),!1;if(e.money<i)return t.log(()=>`You do not have enough money to donate ${S.a.formatMoney(i)} to '${r}'`),!1;const s=Math.floor(c.a.BaseFavorToDonate*C.a.RepToDonateToFaction);if(o.favor<s)return t.log(()=>`You do not have enough favor to donate to this faction. Have ${o.favor}, need ${s}`),!1;const l=i/c.a.DonateMoneyToRepDivisor*e.mults.faction_rep;return o.playerReputation+=l,e.loseMoney(i,"other"),t.log(()=>`${S.a.formatMoney(i)} donated to '${r}' for ${S.a.formatReputation(l)} reputation`),!0},createProgram:t=>function(n,a=!0){t.helper.checkSingularityAccess();const r=t.helper.string("programName",n).toLowerCase(),i=t.helper.boolean(a),o=e.focus,s=Object.values(_.a).find(e=>e.name.toLowerCase()===r);if(null==s)return t.log(()=>"The specified program does not exist: '"+r),!1;if(e.hasProgram(s.name))return t.log(()=>`You already have the '${s.name}' program`),!1;const l=s.create;return null===l?(t.log(()=>`You cannot create the '${s.name}' program`),!1):l.req(e)?(e.startWork(new W.a({programName:s.name,singularity:!0,player:e})),i?(e.startFocusing(),b.b.toWork()):o&&(e.stopFocusing(),b.b.toTerminal()),t.log(()=>`Began creating program: '${r}'`),!0):(t.log(()=>`Hacking level is too low to create '${s.name}' (level ${l.level} req)`),!1)},commitCrime:n=>function(a){n.helper.checkSingularityAccess();const r=n.helper.string("crimeRoughName",a);null!==e.currentWork&&e.finishWork(!0),e.gotoLocation(y.a.Slums);const i=Object(m.b)(r.toLowerCase());if(null==i)throw n.helper.makeRuntimeErrorMsg(`Invalid crime: '${r}'`);return n.log(()=>`Attempting to commit ${i.name}...`),i.commit(b.b,e,1,t)},getCrimeChance:t=>function(n){t.helper.checkSingularityAccess();const a=t.helper.string("crimeRoughName",n),r=Object(m.b)(a.toLowerCase());if(null==r)throw t.helper.makeRuntimeErrorMsg("Invalid crime: "+a);return r.successRate(e)},getCrimeStats:e=>function(t){e.helper.checkSingularityAccess();const n=e.helper.string("crimeRoughName",t),a=Object(m.b)(n.toLowerCase());if(null==a)throw e.helper.makeRuntimeErrorMsg("Invalid crime: "+n);return Object.assign({},a)},getDarkwebPrograms:t=>function(){return t.helper.checkSingularityAccess(),e.hasTorRouter()?Object.values(p.a).map(e=>e.program):(t.log(()=>"You do not have the TOR router."),[])},getDarkwebProgramCost:t=>function(n){t.helper.checkSingularityAccess();const a=t.helper.string("programName",n).toLowerCase();if(!e.hasTorRouter())return t.log(()=>"You do not have the TOR router."),-1;const r=Object.values(p.a).find(e=>e.program.toLowerCase()===a);if(null==r)throw t.helper.makeRuntimeErrorMsg(`No such exploit ('${a}') found on the darkweb! \nThis function is not case-sensitive. Did you perhaps forget .exe at the end?`);return e.hasProgram(r.program)?(t.log(()=>`You already have the '${r.program}' program`),0):r.price},b1tflum3:t=>(n,a="")=>{t.helper.checkSingularityAccess();const r=t.helper.number("nextBN",n),i=t.helper.string("callbackScript",a);t.helper.checkSingularityAccess(),Object(j.a)(b.b,!0,e.bitNodeN,r),i&&setTimeout(()=>{z(i)},0)},destroyW0r1dD43m0n:t=>(n,a="")=>{t.helper.checkSingularityAccess();const r=t.helper.number("nextBN",n),i=t.helper.string("callbackScript",a);t.helper.checkSingularityAccess();(()=>{const t=Object(w.d)(E.a.WorldDaemon);if(!(t instanceof P.a))throw new Error("WorldDaemon was not a normal server. This is a bug contact dev.");return!(e.hacking<t.requiredHackingSkill)&&!!t.hasAdminRights})()||e.inBladeburner()&&e.bladeburner&&e.bladeburner.blackops[D.a.OperationDaedalus]?(Object(j.a)(b.b,!1,e.bitNodeN,r),i&&setTimeout(()=>{z(i)},0)):t.log(()=>"Requirements not met to destroy the world daemon")}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var a=n(229),r=n(111),i=n(2);function o(e,t,n,o,...s){const l=s.join("."),c=s.pop();if("string"!=typeof c)throw Object(r.b)(n,"Failure occured while wrapping netscript api");const f={makeRuntimeErrorMsg:t=>e.makeRuntimeErrorMsg(l,t),log:e=>{n.log(l,e)},workerScript:n,function:c,helper:{makeRuntimeErrorMsg:t=>e.makeRuntimeErrorMsg(l,t),string:(t,n)=>e.string(l,t,n),number:(t,n)=>e.number(l,t,n),city:(t,n)=>e.city(l,t,n),boolean:e.boolean,getServer:t=>e.getServer(t,f),checkSingularityAccess:()=>e.checkSingularityAccess(c),hack:(t,n,a)=>e.hack(f,t,n,a),getValidPort:t=>e.getValidPort(l,t)}};const u=function(e,...t){let n=e;for(const e of t)void 0===n[e]&&(n[e]={}),n=n[e];return n}(t,...s);Object.defineProperty(u,c,{value:function(...t){return e.updateDynamicRam(f.function,Object(a.c)(i.a,...s,f.function)),o(f)(...t)},writable:!0,enumerable:!0})}function s(e,t,n,a,...r){if("object"!=typeof a)throw new Error("Invalid namespace?");for(const i of Object.getOwnPropertyNames(a))switch(typeof a[i]){case"function":o(e,t,n,a[i],...r,i);break;case"object":s(e,t,n,a[i],...r,i);break;default:l(t,a[i],...r,i)}return t}function l(e,t,...n){let a=e;const r=n.pop();if("string"!=typeof r)throw new Error("Failure occured while wrapping netscript api (setNestedProperty)");for(const e of n)void 0===a[e]&&(a[e]={}),a=a[e];a[r]=t}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var a=n(5);function r(){const e=[];return{write:t=>(e.push(t),e.length>a.a.MaxPortCapacity?e.shift():null),tryWrite:t=>!(e.length>=a.a.MaxPortCapacity)&&(e.push(t),!0),read:()=>0===e.length?"NULL PORT DATA":e.shift(),peek:()=>{if(0===e.length)return"NULL PORT DATA";return e.slice()[0]},full:()=>e.length==a.a.MaxPortCapacity,empty:()=>0===e.length,clear:()=>{e.length=0}}}},function(e,t,n){"use strict";function a(e){if("object"!=typeof e||null==e)return;const t=e;for(const e of Object.getOwnPropertyNames(t))t.hasOwnProperty(e)&&delete t[e]}n.d(t,"a",(function(){return a}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var a=n(12);const r=(e,t=1)=>{const n={hacking_chance:e.mults.hacking_chance,hacking_speed:e.mults.hacking_speed,hacking_money:e.mults.hacking_money,hacking_grow:e.mults.hacking_grow,hacking:e.mults.hacking,strength:e.mults.strength,defense:e.mults.defense,dexterity:e.mults.dexterity,agility:e.mults.agility,charisma:e.mults.charisma,hacking_exp:e.mults.hacking_exp,strength_exp:e.mults.strength_exp,defense_exp:e.mults.defense_exp,dexterity_exp:e.mults.dexterity_exp,agility_exp:e.mults.agility_exp,charisma_exp:e.mults.charisma_exp,company_rep:e.mults.company_rep,faction_rep:e.mults.faction_rep,crime_money:e.mults.crime_money,crime_success:e.mults.crime_success,hacknet_node_money:e.mults.hacknet_node_money,hacknet_node_purchase_cost:e.mults.hacknet_node_purchase_cost,hacknet_node_ram_cost:e.mults.hacknet_node_ram_cost,hacknet_node_core_cost:e.mults.hacknet_node_core_cost,hacknet_node_level_cost:e.mults.hacknet_node_level_cost,work_money:e.mults.work_money,bladeburner_max_stamina:e.mults.bladeburner_max_stamina,bladeburner_stamina_gain:e.mults.bladeburner_stamina_gain,bladeburner_analysis:e.mults.bladeburner_analysis,bladeburner_success_chance:e.mults.bladeburner_success_chance};for(const[e,r]of Object.entries(n))n[e]=r*a.a.EntropyEffect**t;return n}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var a=n(22);const r=["START","PURCHASE","PRODUCTION","SALE","EXPORT"];class i{constructor(){var e,t,n;n=0,(t="state")in(e=this)?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}getState(){return r[this.state]}nextState(){(this.state<0||this.state>=r.length)&&(this.state=0),++this.state,this.state>=r.length&&(this.state=0)}toJSON(){return Object(a.b)("CorporationState",this)}static fromJSON(e){return Object(a.a)(i,e.data)}}a.c.constructors.CorporationState=i},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var a=n(15),r=n(165),i=n(64),o=n(4);const s={};!function(){let e,t,n;e="The Beginner's Guide to Hacking",t=i.a.HackersStartingHandbook,n="Some resources:<br><br><a class='a-link-button' href='https://bitburner.readthedocs.io/en/latest/netscript/netscriptlearntoprogram.html' target='_blank' style='margin:4px'>Learn to Program</a><br><br><a class='a-link-button' href='https://bitburner.readthedocs.io/en/latest/netscript/netscriptjs.html' target='_blank' style='margin:4px'>For Experienced JavaScript Developers: NetscriptJS</a><br><br><a class='a-link-button' href='https://bitburner.readthedocs.io/en/latest/netscript.html' target='_blank' style='margin:4px'>Netscript Documentation</a><br><br>When starting out, hacking is the most profitable way to earn money and progress. This is a brief collection of tips/pointers on how to make the most out of your hacking scripts.<br><br>-hack() and grow() both work by percentages. hack() steals a certain percentage of the money on a server, and grow() increases the amount of money on a server by some percentage (multiplicatively)<br><br>-Because hack() and grow() work by percentages, they are more effective if the target server has a high amount of money. Therefore, you should try to increase the amount of money on a server (using grow()) to a certain amount before hacking it. Two important Netscript functions for this are getServerMoneyAvailable() and getServerMaxMoney()<br><br>-Keep security level low. Security level affects everything when hacking. Two important Netscript functions for this are getServerSecurityLevel() and getServerMinSecurityLevel()<br><br>-Purchase additional servers by visiting 'Alpha Enterprises' in the city. They are relatively cheap and give you valuable RAM to run more scripts early in the game<br><br>-Prioritize upgrading the RAM on your home computer. This can also be done at 'Alpha Enterprises'<br><br>-Many low level servers have free RAM. You can use this RAM to run your scripts. Use the scp Terminal or Netscript command to copy your scripts onto these servers and then run them.",s[t]=new r.a(e,t,n),e="The Complete Handbook for Creating a Successful Corporation",t=i.a.CorporationManagementHandbook,n="<u>Getting Started with Corporations</u><br>To get started, visit the City Hall in Sector-12 in order to create a Corporation. This requires $150b of your own money, but this $150b will get put into your Corporation's funds. Your Corporation can have many different divisions, each in a different Industry. There are many different types of Industries, each with different properties. To create your first division, click the 'Expand into new Industry' button at the top of the management UI. The Agriculture and Software industries are recommended for your first division.<br><br>The first thing you'll need to do is hire some employees. Employees can be assigned to five different positions. Each position has a different effect on various aspects of your Corporation. It is recommended to have at least one employee at each position.<br><br>Each industry uses some combination of Materials in order to produce other Materials and/or create Products. Specific information about this is displayed in each of your divisions' UI.<br><br>Products are special, industry-specific objects. They are different than Materials because you must manually choose to develop them, and you can choose to develop any number of Products. Developing a Product takes time, but a Product typically generates significantly more revenue than any Material. Not all industries allow you to create Products. To create a Product, look for a button in the top-left panel of the division UI (e.g. For the Software Industry, the button says 'Develop Software').<br><br>To get your supply chain system started, purchase the Materials that your industry needs to produce other Materials/Products. This can be done by clicking the 'Buy' button next to the corresponding Material(s). After you have the required Materials, you will immediately start production. The amount of Materials/Products you produce is based on a variety of factors, one of which is your employees and their productivity.<br><br>Once you start producing Materials/Products, you can sell them in order to start earning revenue. This can be done by clicking the 'Sell' button next to the corresponding Material or Product. The amount of Material/Product you sell is dependent on a wide variety of different factors.<br><br>These are the basics of getting your Corporation up and running! Now, you can start purchasing upgrades to improve your bottom line. If you need money, consider looking for seed investors, who will give you money in exchange for stock shares. Otherwise, once you feel you are ready, take your Corporation public! Once your Corporation goes public, you can no longer find investors. Instead, your Corporation will be publicly traded and its stock price will change based on how well it's performing financially. You can then sell your stock shares in order to make money.<br><br><u>Tips/Pointers</u><br>-The 'Smart Supply' upgrade is extremely useful. Consider purchasing it as soon as possible.<br><br>-Purchasing Hardware, Robots, AI Cores, and Real Estate can potentially increase your production. The effects of these depend on what industry you are in.<br><br>-In order to optimize your production, you will need a good balance of Operators, Managers, and Engineers<br><br>-Different employees excel in different jobs. For example, the highly intelligent employees will probably do best if they are assigned to do Engineering work or Research & Development.<br><br>-If your employees have low morale, energy, or happiness, their production will greatly suffer.<br><br>-Tech is important, but don't neglect sales! Having several Businessmen can boost your sales and your bottom line.<br><br>-Don't forget to advertise your company. You won't have any business if nobody knows you.<br><br>-Having company awareness is great, but what's really important is your company's popularity. Try to keep your popularity as high as possible to see the biggest benefit for your sales<br><br>-Remember, you need to spend money to make money!<br><br>-Corporations do not reset when installing Augmentations, but they do reset when destroying a BitNode",s[t]=new r.a(e,t,n),e="A Brief History of Synthoids",t=i.a.HistoryOfSynthoids,n=`Synthetic androids, or Synthoids for short, are genetically engineered robots and, short of Augmentations, are composed entirely of organic substances. For this reason, Synthoids are virtually identical to humans in form, composition, and appearance.<br><br>Synthoids were first designed and manufactured by ${o.a.OmniTekIncorporated} sometime around the middle of the century. Their original purpose was to be used for manual labor and as emergency responders for disasters. As such, they were initially programmed only for their specific tasks. Each iteration that followed improved upon the intelligence and capabilities of the Synthoids. By the 6th iteration, called MK-VI, the Synthoids were so smart and capable enough of making their own decisions that many argued ${o.a.OmniTekIncorporated} had created the first sentient AI. These MK-VI Synthoids were produced in mass quantities (estimates up to 50 billion) with the hopes of increasing society's productivity and bolstering the global economy. Stemming from humanity's desire for technological advancement, optimism and excitement about the future had never been higher.<br><br>All of that excitement and optimism quickly turned to fear, panic, and dread in 2070, when a terrorist group called Ascendis Totalis hacked into ${o.a.OmniTekIncorporated} and uploaded a rogue AI into severeal of their Synthoid manufacturing facilities. This hack went undetected and for months ${o.a.OmniTekIncorporated} unknowingly churned out legions of Synthoids embedded with this rogue AI. Then, on December 24th, 2070, Omnica activated dormant protocols in the rogue AI, causing all of the infected Synthoids to immediately launch a military campaign to seek and destroy all of humanity.<br><br>What ensued was the deadlist conflict in human history. This crisis, now commonly known as the Synthoid Uprising, resulted in almost ten billion deaths over the course of a year. Despite the nations of the world banding together to combat the threat, the MK-VI Synthoids were simply stronger, faster, more intelligent, and more adaptable than humans, outsmarting them at every turn.<br><br>It wasn't until the sacrifice of an elite international military taskforce, called the ${o.a.Bladeburners}, that humanity was finally able to defeat the Synthoids. The ${o.a.Bladeburners}' final act was a suicide bombing mission that destroyed a large portion of the MK-VI Synthoids, including many of its leaders. In the following weeks militaries from around the world were able to round up and shut down the remaining rogue MK-VI Synthoids, ending the Synthoid Uprising.<br><br>In the aftermath of the bloodshed, the Synthoid Accords were drawn up. These Accords banned ${o.a.OmniTekIncorporated} from manufacturing any Synthoids beyond the MK-III series. They also banned any other corporation from constructing androids with advanced, near-sentient AI. MK-VI Synthoids that did not have the rogue Ascendis Totalis AI were allowed to continue their existence, but they were stripped of all rights and protections as they were not considered humans. They were also banned from doing anything that may pose a global security threat, such as working for any military/defense organization or conducting any bioengineering, computing, or robotics related research.<br><br>Unfortunately, many believe that not all of the rogue MK-VI Synthoids from the Uprising were found and destroyed, and that many of them are blending in as normal humans in society today. In response, many nations have created `+o.a.Bladeburners+" divisions, special military branches that are tasked with investigating and dealing with any Synthoid threats.<br><br>To this day, tensions still exist between the remaining Synthoids and humans as a result of the Uprising.<br><br>Nobody knows what happened to the terrorist group Ascendis Totalis.",s[t]=new r.a(e,t,n),e="A Green Tomorrow",t=i.a.AGreenTomorrow,n="Starting a few decades ago, there was a massive global movement towards the generation of renewable energy in an effort to combat global warming and climate change. The shift towards renewable energy was a big success, or so it seemed. In 2045 a staggering 80% of the world's energy came from non-renewable fossil fuels. Now, about three decades later, that number is down to only 15%. Most of the world's energy now comes from nuclear power and renewable sources such as solar and geothermal energy. Unfortunately, these efforts were not the huge success that they seem to be.<br><br>Since 2045 primary energy use has soared almost tenfold. This was mainly due to growing urban populations and the rise of increasingly advanced (and power-hungry) technology that has become ubiquitous in our lives. So, despite the fact that the percentage of our energy that comes from fossil fuels has drastically decreased, the total amount of energy we are producing from fossil fuels has actually increased.<br><br>The grim effects of our species' irresponsible use of energy and neglect of our mother world have become increasingly apparent. Last year a temperature of 190F was recorded in the Death Valley desert, which is over 50% higher than the highest recorded temperature at the beginning of the century. In the last two decades numerous major cities such as Manhattan, Boston, and Los Angeles have been partially or fully submerged by rising sea levels. In the present day, over 75% of the world's agriculture is done in climate-controlled vertical farms, as most traditional farmland has become unusable due to severe climate conditions.<br><br>Despite all of this, the greedy and corrupt corporations that rule the world have done nothing to address these problems that threaten our species. And so it's up to us, the common people. Each and every one of us can make a difference by doing what these corporations won't: taking responsibility. If we don't, pretty soon there won't be an Earth left to save. We are the last hope for a green tomorrow.",s[t]=new r.a(e,t,n),e="Alpha and Omega",t=i.a.AlphaOmega,n="Then we saw a new Heaven and a new Earth, for our first Heaven and Earth had gone away, and our sea was no more. And we saw a new holy city, new Aeria, coming down out of this new Heaven, prepared as a bride adorned for her husband. And we heard a loud voice saying, 'Behold, the new dwelling place of the Gods. We will dwell with them, and they will be our people, and we will be with them as their Gods. We will wipe away every tear from their eyes, and death shall be no more, neither shall there be mourning, nor crying, nor pain anymore, for the former things have passed away.'<br><br>And once we were seated on the throne we said 'Behold, I am making all things new.' Also we said, 'Write this down, for these words are trustworthy and true.' And we said to you, 'It is done! I am the Alpha and the Omega, the beginning and the end. To the thirsty I will give from the spring of the water of life without payment. The one who conquers will have this heritage, and we will be his God and he will be our son. But as for the cowardly, the faithless, the detestable, as for murderers, the sexually immoral, sorcerers, idolaters, and all liars, their portion will be in the lake that burns with fire and sulfur, for it is the second true death.'",s[t]=new r.a(e,t,n),e="Are We Living in a Computer Simulation?",t=i.a.SimulatedReality,n="The idea that we are living in a virtual world is not new. It's a trope that has been explored constantly in literature and pop culture. However, it is also a legitimate scientific hypothesis that many notable physicists and philosophers have debated for years.<br><br>Proponents for this simulated reality theory often point to how advanced our technology has become, as well as the incredibly fast pace at which it has advanced over the past decades. The amount of computing power available to us has increased over 100-fold since 2060 due to the development of nanoprocessors and quantum computers. Artifical Intelligence has advanced to the point where our entire lives are controlled by robots and machines that handle our day-to-day activities such as autonomous transportation and scheduling. If we consider the pace at which this technology has advanced and assume that these developments continue, it's reasonable to assume that at some point in the future our technology would be advanced enough that we could create simulations that are indistinguishable from reality. However, if continued technological advancement is a reasonable outcome, then it is very likely that such a scenario has already happened. <br><br>Statistically speaking, somewhere out there in the infinite universe there is an advanced, intelligent species that already has such technology. Who's to say that they haven't already created such a virtual reality: our own?",s[t]=new r.a(e,t,n),e="Beyond Man",t=i.a.BeyondMan,n="Humanity entered a 'transhuman' era a long time ago. And despite the protests and criticisms of many who cried out against human augmentation at the time, the transhuman movement continued and prospered. Proponents of the movement ignored the critics, arguing that it was in our inherent nature to better ourselves. To improve. To be more than we were. They claimed that not doing so would be to go against every living organism's biological purpose: evolution and survival of the fittest.<br><br>And here we are today, with technology that is advanced enough to augment humans to a state that can only be described as posthuman. But what do we have to show for it when this augmentation technology is only available to the so-called 'elite'? Are we really better off than before when only 5% of the world's population has access to this technology? When the powerful corporations and organizations of the world keep it all to themselves, have we really evolved?<br><br>Augmentation technology has only further increased the divide between the rich and the poor, between the powerful and the oppressed. We have not become 'more than human'. We have not evolved from nature's original design. We are still the greedy, corrupted, and evil men that we always were.",s[t]=new r.a(e,t,n),e="Brighter than the Sun",t=i.a.BrighterThanTheSun,n=`When people think about the corporations that dominate the East, they typically think of ${o.a.KuaiGongInternational}, which holds a complete monopoly for manufacturing and commerce in Asia, or Global Pharmaceuticals, the world's largest drug company, or ${o.a.OmniTekIncorporated}, the global leader in intelligent and autonomous robots. But there's one company that has seen a rapid rise in the last year and is poised to dominate not only the East, but the entire world: TaiYang Digital.<br><br>TaiYang Digital is a Chinese internet-technology corporation that provides services such as online advertising, search engines, gaming, media, entertainment, and cloud computing/storage. Its name TaiYang comes from the Chinese word for 'sun'. In Chinese culture, the sun is a 'yang' symbol associated with life, heat, masculinity, and heaven.<br><br>The company was founded less than 5 years ago and is already the third highest valued company in all of Asia. In 2076 it generated a total revenue of over 10 trillion yuan. It's services are used daily by over a billion people worldwide.<br><br>TaiYang Digital's meteoric rise is extremely surprising in modern society. This sort of growth is something you'd commonly see in the first half of the century, especially for tech companies. However in the last two decades the number of corporations has significantly declined as the largest entities quickly took over the economy. Corporations such as ${o.a.ECorp}, ${o.a.MegaCorp}, and ${o.a.KuaiGongInternational} have established such strong monopolies in their market sectors that they have effectively killed off all of the smaller and new corporations that have tried to start up over the years. This is what makes the rise of TaiYang Digital so impressive. And if TaiYang continues down this path, then they have a bright future ahead of them.`,s[t]=new r.a(e,t,n),e="Democracy is Dead: The Fall of an Empire",t=i.a.DemocracyIsDead,n="They rose from the shadows in the street.<br>From the places where the oppressed meet.<br>Their cries echoed loudly through the air.<br>As they once did in Tiananmen Square.<br>Loudness in the silence, Darkness in the light.<br>They came forth with power and might.<br>Once the beacon of democracy, America was first.<br>Its pillars of society destroyed and dispersed.<br>Soon the cries rose everywhere, with revolt and riot.<br>Until one day, finally, all was quiet.<br>From the ashes rose a new order, corporatocracy was its name.<br>Rome, Mongol, Byzantine, all of history is just the same.<br>For man will never change in a fundamental way.<br>And now democracy is dead, in the USA.",s[t]=new r.a(e,t,n),e="Figures Show Rising Crime Rates in "+a.a.Sector12,t=i.a.Sector12Crime,n=`A recent study by analytics company Wilson Inc. shows a significant rise in criminal activity in ${a.a.Sector12}. Perhaps the most alarming part of the statistic is that most of the rise is in violent crime such as homicide and assault. According to the study, the city saw a total of 21,406 reported homicides in 2076, which is over a 20% increase compared to 2075.<br><br>CIA director David Glarow says it's too early to know whether these figures indicate the beginning of a sustained increase in crime rates, or whether the year was just an unfortunate outlier. He states that many intelligence and law enforcement agents have noticed an increase in organized crime activites, and believes that these figures may be the result of an uprising from criminal organizations such as ${o.a.TheSyndicate} or the ${o.a.SlumSnakes}.`,s[t]=new r.a(e,t,n),e="Man and the Machine",t=i.a.ManAndMachine,n="In 2005 Ray Kurzweil popularized his theory of the Singularity. He predicted that the rate of technological advancement would continue to accelerate faster and faster until one day machines would be become infinitely more intelligent than humans. This point, called the Singularity, would result in a drastic transformation of the world as we know it. He predicted that the Singularity would arrive by 2045. And yet here we are, more than three decades later, where most would agree that we have not yet reached a point where computers and machines are vastly more intelligent than we are. So what gives?<br><br>The answer is that we have reached the Singularity, just not in the way we expected. The artifical superintelligence that was predicted by Kurzweil and others exists in the world today - in the form of Augmentations. Yes, those Augmentations that the rich and powerful keep to themselves enable humans to become superintelligent beings. The Singularity did not lead to a world where our machines are infinitely more intelligent than us, it led to a world where man and machine can merge to become something greater. Most of the world just doesn't know it yet.",s[t]=new r.a(e,t,n),e="Secret Societies",t=i.a.SecretSocieties,n=`The idea of secret societies has long intrigued the general public by inspiring curiosity, fascination, and distrust. People have long wondered about who these secret society members are and what they do, with the most radical of conspiracy theorists claiming that they control everything in the entire world. And while the world may never know for sure, it is likely that many secret societies do actually exist, even today.<br><br>However, the secret societies of the modern world are nothing like those that (supposedly) existed decades and centuries ago. The Freemasons, Knights Templar, and ${o.a.Illuminati}, while they may have been around at the turn of the 21st century, almost assuredly do not exist today. The dominance of the Web in our everyday lives and the fact that so much of the world is now digital has given rise to a new breed of secret societies: Internet-based ones.<br><br>Commonly called 'hacker groups', Internet-based secret societies have become well-known in today's world. Some of these, such as ${o.a.TheBlackHand}, are black hat groups that claim they are trying to help the oppressed by attacking the elite and powerful. Others, such as ${o.a.NiteSec}, are hacktivist groups that try to push political and social agendas. Perhaps the most intriguing hacker group is the mysterious ${o.a.BitRunners}, whose purpose still remains unknown.`,s[t]=new r.a(e,t,n),e="Space: The Failed Frontier",t=i.a.TheFailedFrontier,n="Humans have long dreamed about spaceflight. With enduring interest, we were driven to explore the unknown and discover new worlds. We dreamed about conquering the stars. And in our quest, we pushed the boundaries of our scientific limits, and then pushed further. Space exploration lead to the development of many important technologies and new industries.<br><br>But sometime in the middle of the 21st century, all of that changed. Humanity lost its ambitions and aspirations of exploring the cosmos. The once-large funding for agencies like NASA and the European Space Agency gradually whittled away until their eventual disbanding in the 2060's. Not even militaries are fielding flights into space nowadays. The only remnants of the once great mission for cosmic conquest are the countless satellites in near-earth orbit, used for communications, espionage, and other corporate interests.<br><br>And as we continue to look at the state of space technology, it becomes more and more apparent that we will never return to that golden age of space exploration, that age where everyone dreamed of going beyond earth for the sake of discovery.",s[t]=new r.a(e,t,n),e="Coded Intelligence: Myth or Reality?",t=i.a.CodedIntelligence,n=`Tremendous progress has been made in the field of Artificial Intelligence over the past few decades. Our autonomous vehicles and transportation systems. The electronic personal assistants that control our everyday lives. Medical, service, and manufacturing robots. All of these are examples of how far AI has come and how much it has improved our daily lives. However, the question still remains of whether AI will ever be advanced enough to re-create human intelligence.<br><br>We've certainly come close to artificial intelligence that is similar to humans. For example ${o.a.OmniTekIncorporated}'s CompanionBot, a robot meant to act as a comforting friend for lonely and grieving people, is eerily human-like in its appearance, speech, mannerisms, and even movement. However its artificial intelligence isn't the same as that of humans. Not yet. It doesn't have sentience or self-awareness or consciousness.<br><br>Many neuroscientists believe that we won't ever reach the point of creating artificial human intelligence. 'At the end of the day, AI comes down to 1's and 0's, while the human brain does not. We'll never see AI that is identical to that of humans.'`,s[t]=new r.a(e,t,n),e="Synthetic Muscles",t=i.a.SyntheticMuscles,n="Initial versions of synthetic muscles weren't made of anything organic but were actually crude devices made to mimic human muscle function. Some of the early iterations were actually made of common materials such as fishing lines and sewing threads due to their high strength for a cheap cost.<br><br>As technology progressed, however, advances in biomedical engineering paved the way for a new method of creating synthetic muscles. Instead of creating something that closely imitated the functionality of human muscle, scientists discovered a way of forcing the human body itself to augment its own muscle tissue using both synthetic and organic materials. This is typically done using gene therapy or chemical injections.",s[t]=new r.a(e,t,n),e="Tensions rise in global tech race",t=i.a.TensionsInTechRace,n=`Have we entered a new Cold War? Is WWIII just beyond the horizon?<br><br>After rumors came out that ${o.a.OmniTekIncorporated} had begun developing advanced robotic supersoldiers, geopolitical tensions quickly flared between the USA, Russia, and several Asian superpowers. In a rare show of cooperation between corporations, ${o.a.MegaCorp} and ${o.a.ECorp} have reportedly launched hundreds of new surveillance and espionage satellites. Defense contractors such as DeltaOne and AeroCorp have been working with the CIA and NSA to prepare for conflict. Meanwhile, the rest of the world sits in earnest hoping that it never reaches full-scale war. With today's technology and firepower, a World War would assuredly mean the end of human civilization.`,s[t]=new r.a(e,t,n),e="The Cost of Immortality",t=i.a.CostOfImmortality,n="Evolution and advances in medical and augmentation technology has lead to drastic improvements in human mortality rates. Recent figures show that the life expectancy for humans that live in a first-world country is about 130 years of age, almost double of what it was at the turn of the century. However, this increase in average lifespan has had some significant effects on society and culture.<br><br>Due to longer lifespans and a better quality of life, many adults are holding off on having kids until much later. As a result, the percentage of youth in first-world countries has been decreasing, while the number of senior citizens is significantly increasing.<br><br>Perhaps the most alarming result of all of this is the rapidly shrinking workforce. Despite the increase in life expectancy, the typical retirement age for workers in America has remained about the same, meaning a larger and larger percentage of people in America are retirees. Furthermore, many young adults are holding off on joining the workforce because they feel that they have plenty of time left in their lives for employment, and want to 'enjoy life while they're young.' For most industries, this shrinking workforce is not a major issue as most things are handled by robots anyways. However, there are still several key industries such as engineering and education that have not been automated, and these remain in danger to this cultural phenomenon.",s[t]=new r.a(e,t,n),e="The Hidden World",t=i.a.TheHiddenWorld,n=`WAKE UP SHEEPLE<br><br>THE GOVERNMENT DOES NOT EXIST. CORPORATIONS DO NOT RUN SOCIETY<br><br>THE ${o.a.Illuminati.toUpperCase()} ARE THE SECRET RULERS OF THE WORLD!<br><br>Yes, the ${o.a.Illuminati} of legends. The ancient secret society that controls the entire world from the shadows with their invisible hand. The group of the rich and wealthy that have penetrated every major government, financial agency, and corporation in the last three hundred years.<br><br>OPEN YOUR EYES<br><br>It was the ${o.a.Illuminati} that brought an end to democracy in the world. They are the driving force behind everything that happens.<br><br>THEY ARE ALL AROUND YOU<br><br>After destabilizing the world's governments, they are now entering the final stage of their master plan. They will secretly initiate global crises. Terrorism. Pandemics. World War. And out of the chaos that ensues they will build their New World Order.`,s[t]=new r.a(e,t,n),e="The New God",t=i.a.TheNewGod,n="Everyone has a moment in their life when they wonder about the bigger questions.<br><br>What's the point of all this? What is my purpose?<br><br>Some people dare to think even bigger.<br><br>What will the fate of the human race be?<br><br>We live in an era vastly different from that of 15 or even 20 years ago. We have gone beyond the limits of humanity. We have stripped ourselves of the tyranny of flesh.<br><br>The Singularity is here. The merging of man and machine. This is where humanity evolves into something greater. This is our future.<br><br>Embrace it, and you will obey a new god. The God in the Machine.",s[t]=new r.a(e,t,n),e="The New Triads",t=i.a.NewTriads,n=`The Triads were an ancient transnational crime syndicate based in China, Hong Kong, and other Asian territories. They were often considered one of the first and biggest criminal secret societies. While most of the branches of the Triads have been destroyed over the past few decades, the crime faction has spawned and inspired a number of other Asian crime organizations over the past few years. The most notable of these is the ${o.a.Tetrads}.<br><br>It is widely believed that the ${o.a.Tetrads} are a rogue group that splintered off from the Triads sometime in the mid 21st century. The founders of the ${o.a.Tetrads}, all of whom were ex-Triad members, believed that the Triads were losing their purpose and direction. The ${o.a.Tetrads} started off as a small group that mainly engaged in fraud and extortion. They were largely unknown until just a few years ago when they took over the illegal drug trade in all of the major Asian cities. They quickly became the most powerful crime syndicate in the continent.<br><br>Not much else is known about the ${o.a.Tetrads}, or about the efforts the Asian governments and corporations are making to take down this large new crime organization. Many believe that the ${o.a.Tetrads} have infiltrated the governments and powerful corporations in Asia, which has helped faciliate their recent rapid rise.`,s[t]=new r.a(e,t,n),e="The Secret War",t=i.a.TheSecretWar,n="",s[t]=new r.a(e,t,n)}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var a=n(162);function r(e,t,n,r,i){0!==i.length?1===i.length&&Object(a.e)(i[0]+"")?e.print("Set alias "+i[0]):2===i.length&&"-g"===i[0]&&Object(a.e)(i[1]+"",!0)?e.print("Set global alias "+i[1]):e.error('Incorrect usage of alias command. Usage: alias [-g] [aliasname="value"]'):Object(a.f)()}},function(e,t,n){"use strict";function a(e,t,n,a,r){0===r.length?e.startAnalyze(n):e.error("Incorrect usage of analyze command. Usage: analyze")}n.d(t,"a",(function(){return a}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var a=n(44),r=n(91);function i(e,t,n,i,o){if(0!==o.length)return void e.error("Incorrect usage of backdoor command. Usage: backdoor");i instanceof a.a||e.error("Can only backdoor normal servers");const s=i;s.purchasedByPlayer?e.error("Cannot use backdoor on your own machines! You are currently connected to your home PC or one of your purchased servers"):s.hasAdminRights?s.requiredHackingSkill>n.hacking?e.error("Your hacking skill is not high enough to use backdoor on this machine. Try analyzing the machine to determine the required hacking skill"):s instanceof r.a?e.error("Cannot use backdoor on this type of Server"):e.startBackdoor(n):e.error("You do not have admin rights for this machine! Cannot backdoor")}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var a=n(492);function r(e,t,n,r,i){if(!n.hasTorRouter())return void e.error("You need to be able to connect to the Dark Web to use the buy command. (Maybe there's a TOR router you can buy somewhere)");if(1!=i.length)return e.print("Incorrect number of arguments. Usage: "),e.print("buy -l"),e.print("buy -a"),void e.print("buy [item name]");const o=i[0]+"";"-l"==o||"-1"==o||"--list"==o?Object(a.d)():"-a"==o||"--all"==o?Object(a.a)():Object(a.b)(o)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var a=n(351),r=n(486),i=n(14),o=n(377);function s(e,t,n,s,l){if(1!==l.length)return void e.error("Incorrect usage of cat command. Usage: cat [file]");const c=l[0]+"",f=e.getFilepath(c);if(f.endsWith(".msg")||f.endsWith(".lit")||f.endsWith(".txt")||f.endsWith(".script")||f.endsWith(".js")||f.endsWith(".ns")){if(f.endsWith(".msg")||f.endsWith(".lit"))for(let e=0;e<s.messages.length;++e){if(f.endsWith(".lit")&&s.messages[e]===f){const t=s.messages[e];if(t.endsWith(".msg"))throw new Error(".lit file should not be a .msg");return void Object(r.a)(t)}if(f.endsWith(".msg")){const t=s.messages[e];if(t!==f)continue;if(!Object(o.a)(a.a,t))return;return void Object(a.c)(t)}}else if(f.endsWith(".txt")){const t=e.getTextFile(n,c);if(null!=t)return void t.show()}else if(f.endsWith(".script")||f.endsWith(".js")||f.endsWith(".ns")){const t=e.getScript(n,c);if(null!=t)return void Object(i.a)(`${t.filename}<br /><br />${t.code}`)}e.error("No such file "+f)}else e.error("Only .msg, .txt, .lit, .script, .js, and .ns files are viewable with cat (filename must end with .msg, .txt, .lit, .script, .js, or .ns)")}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var a=n(83),r=n(654);function i(e,t,n,i,o){if(o.length>1)e.error("Incorrect number of arguments. Usage: cd [dir]");else{let t=1===o.length?o[0]+"":"/",i="";if("/"===t)i="/";else{if(t=Object(a.l)(t),i=Object(a.c)(t,e.cwd()),null===i||""===i)return void e.error("Invalid path. Failed to change directories");if(e.cwd().length>1&&".."===t)return void e.setcwd(i);const o=n.getCurrentServer();if(!Object(r.a)(o,i))return void e.error("Invalid path. Failed to change directories")}e.setcwd(i)}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var a=n(239),r=n(99);function i(e,t,n,i,o){if(o.length<1)e.error("Incorrect number of arguments. Usage: check [script] [arg1] [arg2]...");else{const t=e.getFilepath(o[0]+"");if(!Object(r.a)(t))return void e.error(`'check' can only be called on scripts files (filename must end with ${r.b.join(", ")})`);const n=Object(a.a)(t,o.slice(1),i);if(null==n)return void e.error(`No script named ${t} is running on the server`);n.displayLog()}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var a=n(137),r=n(27),i=n(44);function o(e,t,n,o,s){if(1!==s.length)return void e.error("Incorrect usage of connect command. Usage: connect [hostname]");const l=s[0]+"";for(let t=0;t<o.serversOnNetwork.length;t++){const r=Object(a.a)(o,t);if(null===r)throw new Error("Server on network should not be null");if(r.hostname==l)return void e.connectToServer(n,l)}const c=Object(r.d)(l);if(null!==c){if(c instanceof i.a&&c.backdoorInstalled)return void e.connectToServer(n,l);e.error(`Cannot directly connect to ${l}. Make sure the server is backdoored or adjacent to your current Server`)}else e.error("Host not found")}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var a=n(99),r=n(83);function i(e,t,n,i,o){try{if(2!==o.length)return void e.error("Incorrect usage of cp command. Usage: cp [src] [dst]");const t=e.getFilepath(o[0]+"");if(null===t)return void e.error("src cannot be a directory");const s=Object(r.f)(o[1]+"",t,e.cwd());if(null===s)return void e.error("error parsing dst file");const l=e.getFilepath(s);if(Object(r.a)(t,l))return void e.error("src and dst cannot be the same");const c=t.slice(t.lastIndexOf("."));if(c!==l.slice(l.lastIndexOf(".")))return void e.error("src and dst must have the same extension.");if(!Object(a.a)(t)&&!t.endsWith(".txt"))return void e.error("cp only works for scripts and .txt files");if(t.endsWith(".txt")){let n=null;for(let e=0;e<i.textFiles.length;++e)if(Object(r.a)(i.textFiles[e].fn,t)){n=i.textFiles[e];break}if(null===n)return e.error("No such file exists!");const a=i.writeToTextFile(l,n.text);return a.success?a.overwritten?(e.print(`WARNING: ${l} already exists and will be overwriten`),void e.print(l+" overwritten")):void e.print(l+" copied"):void e.error("cp failed")}let f=null;for(let e=0;e<i.scripts.length;++e)if(Object(r.a)(i.scripts[e].filename,t)){f=i.scripts[e];break}if(null==f)return void e.error("cp failed. No such script exists");const u=i.writeToScriptFile(n,l,f.code);if(!u.success)return void e.error("cp failed");if(u.overwritten)return e.print(`WARNING: ${l} already exists and will be overwritten`),void e.print(l+" overwritten");e.print(l+" copied")}catch(t){e.error(t+"")}}},function(module,__webpack_exports__,__webpack_require__){"use strict";function expr(terminal,router,player,server,args){if(0===args.length)return void terminal.error("Incorrect usage of expr command. Usage: expr [math expression]");const expr=args.join(""),sanitizedExpr=expr.replace(/s+/g,"").replace(/[^-()\d/*+.%]/g,"");let result;try{result=eval(sanitizedExpr)}catch(e){return void terminal.error("Could not evaluate expression: "+sanitizedExpr)}terminal.print(result)}__webpack_require__.d(__webpack_exports__,"a",(function(){return expr}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var a=n(6);function r(e,t,n,r,i){if(0!==i.length)return void e.error("Incorrect usage of free command. Usage: free");const o=a.a.formatRAM(n.getCurrentServer().maxRam),s=a.a.formatRAM(n.getCurrentServer().ramUsed),l=a.a.formatRAM(n.getCurrentServer().maxRam-n.getCurrentServer().ramUsed),c=Math.max(o.length,Math.max(s.length,l.length)),f=a.a.formatPercentage(n.getCurrentServer().ramUsed/n.getCurrentServer().maxRam);e.print(`Total: ${" ".repeat(c-o.length)}${o}`),e.print(`Used: ${" ".repeat(c-s.length)}${s} (${f})`),e.print(`Available: ${" ".repeat(c-l.length)}${l}`)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var a=n(44);function r(e,t,n,r,i){if(0!==i.length)return void e.error("Incorrect usage of grow command. Usage: grow");r instanceof a.a||e.error("Cannot grow your own machines! You are currently connected to your home PC or one of your purchased servers");const o=r;o.purchasedByPlayer?e.error("Cannot grow your own machines! You are currently connected to your home PC or one of your purchased servers"):o.hasAdminRights?o.requiredHackingSkill>n.hacking?e.error("Your hacking skill is not high enough to attempt hacking this machine. Try analyzing the machine to determine the required hacking skill"):e.startGrow(n):e.error("You do not have admin rights for this machine! Cannot grow")}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var a=n(44);function r(e,t,n,r,i){if(0!==i.length)return void e.error("Incorrect usage of hack command. Usage: hack");r instanceof a.a||e.error("Cannot hack your own machines! You are currently connected to your home PC or one of your purchased servers");const o=r;o.purchasedByPlayer?e.error("Cannot hack your own machines! You are currently connected to your home PC or one of your purchased servers"):o.hasAdminRights?o.requiredHackingSkill>n.hacking?e.error("Your hacking skill is not high enough to attempt hacking this machine. Try analyzing the machine to determine the required hacking skill"):e.startHack(n):e.error("You do not have admin rights for this machine! Cannot hack")}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var a=n(548);function r(e,t,n,r,i){if(0===i.length||1===i.length)if(0===i.length)a.b.forEach(t=>e.print(t));else{const t=i[0]+"",n=a.a[t];if(null==n)return void e.error("No help topics match '"+t+"'");n.forEach(t=>e.print(t))}else e.error("Incorrect usage of help command. Usage: help")}},function(e,t,n){"use strict";function a(e,t,n,a,r){if(0===r.length)return void e.commandHistory.forEach((t,n)=>{e.print(`${n.toString().padStart(2)} ${t}`)});const i=r[0]+"";"-c"===i||"--clear"===i?(n.terminalCommandHistory=[],e.commandHistory=[],e.commandHistoryIndex=1):e.error("Incorrect usage of history command. usage: history [-c]")}n.d(t,"a",(function(){return a}))},function(e,t,n){"use strict";function a(e,t,n,a,r){0===r.length?(n.getCurrentServer().isConnectedTo=!1,n.currentServer=n.getHomeComputer().hostname,n.getCurrentServer().isConnectedTo=!0,e.print("Connected to home"),e.setcwd("/")):e.error("Incorrect usage of home command. Usage: home")}n.d(t,"a",(function(){return a}))},function(e,t,n){"use strict";function a(e,t,n,a,r){0===r.length?e.print(n.getCurrentServer().hostname):e.error("Incorrect usage of hostname command. Usage: hostname")}n.d(t,"a",(function(){return a}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var a=n(144);function r(e,t,n,r,i){try{if(i.length<1)return void e.error("Incorrect usage of kill command. Usage: kill [scriptname] [arg1] [arg2]...");if("boolean"==typeof i[0])return;if("number"==typeof i[0]){const t=i[0];return void(Object(a.a)(t)?e.print("Killing script with PID "+t):e.error(`Failed to kill script with PID ${t}. No such script is running`))}const t=e.getFilepath(i[0]),n=r.getRunningScript(t,i.slice(1));if(null==n)return void e.error("No such script is running. Nothing to kill");Object(a.a)(n,r.hostname,!1),e.print("Killing "+t)}catch(t){e.error(t+"")}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var a=n(144),r=n(302);function i(e,t,n,i){for(let e=i.runningScripts.length-1;e>=0;--e)Object(a.a)(i.runningScripts[e],i.hostname,!1);r.a.emit(),e.print("Killing all running scripts")}},function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var a=n(142),r=n(118),i=n(113),o=n(0),s=n.n(o),l=n(83),c=n(325),f=n(486),u=n(351);function m(e,t,n,o,m){let h;try{h=c({"-l":Boolean,"--grep":String,"-g":"--grep"},{argv:m})}catch(e){return void p()}const d=h["--grep"];function p(){e.error("Incorrect usage of ls command. Usage: ls [dir] [-l] [-g, --grep pattern]")}if(m.length>4)return p();let g=e.cwd();g.endsWith("/")||(g+="/");const y=m[0]&&"string"==typeof m[0]&&!m[0].startsWith("-")?m[0]:"",b=Object(l.c)(y+"",e.cwd());if(g=b||"",g.endsWith("/")||(g+="/"),!Object(l.i)(g))return p();"/"===g&&(g="");const E=[],v=[],k=[],w=[],_=[],S=[];function C(e,t){let n=e;if(g){if(!e.startsWith(g))return;n=e.slice(g.length,e.length)}if(!d||n.includes(d))if(n.includes("/")){const e=Object(l.g)(n);if(d&&!e.includes(d))return;S.includes(e)||S.push(e)}else t.push(n)}const x=n.getCurrentServer();for(const e of x.programs)C(e,E);for(const e of x.scripts)C(e.filename,v);for(const e of x.textFiles)C(e.fn,k);for(const e of x.contracts)C(e.fn,w);for(const e of x.messages)C(e,_);function L({row:o,prefix:l,hostname:c}){const f=Object(r.a)(e=>Object(a.a)({scriptLinksWrap:{display:"inline-flex",color:e.palette.warning.main},scriptLink:{cursor:"pointer",textDecorationLine:"underline",paddingRight:"1.15em","&:last-child":{padding:0}}}))();let u=o.split("~").map(e=>[e.trim(),e.replace(e.trim(),"")]);return u=u.filter(e=>!!e[0]),s.a.createElement("span",{className:f.scriptLinksWrap},u.map(a=>s.a.createElement("span",{key:"script_"+a[0]},s.a.createElement("span",{className:f.scriptLink,onClick:()=>function(a){var r;if(n.getCurrentServer().hostname!==c)return e.error(`File is not on this server, connect to ${c} and try again`);a.startsWith("/")&&(a=a.slice(1));const o=e.getFilepath(`${l}${a}`),s=Object(i.toString)(null===(r=e.getScript(n,o))||void 0===r?void 0:r.code);t.toScriptEditor({[o]:s})}(a[0])},a[0]),s.a.createElement("span",null,a[1]))))}function O({row:t,prefix:i,hostname:o}){const l=Object(r.a)(e=>Object(a.a)({linksWrap:{display:"inline-flex",color:e.palette.primary.main},link:{cursor:"pointer",textDecorationLine:"underline",paddingRight:"1.15em","&:last-child":{padding:0}}}))();let c=t.split("~").map(e=>[e.trim(),e.replace(e.trim(),"")]);return c=c.filter(e=>!!e[0]),s.a.createElement("span",{className:l.linksWrap},c.map(t=>s.a.createElement("span",{key:"text_"+t[0]},s.a.createElement("span",{className:l.link,onClick:()=>function(t){if(n.getCurrentServer().hostname!==o)return e.error(`File is not on this server, connect to ${o} and try again`);t.startsWith("/")&&(t=t.slice(1));const a=e.getFilepath(`${i}${t}`);a.endsWith(".lit")?Object(f.a)(a):a.endsWith(".msg")&&Object(u.c)(a)}(t[0])},t[0]),s.a.createElement("span",null,t[1]))))}let M;function T(t,n){const a=t.segments,r=t.type===M.Script||t.type===M.Message,i=Math.max(...a.map(e=>e.length))+1,l=!0===n["-l"]?1:Math.ceil(80/i);for(let n=0;n<a.length;n++){let c="";for(let e=0;e<l&&n<a.length;e++)c+=a[n],c+=" ".repeat(i*(e+1)-c.length),r&&(c+="~"),n++;switch(n--,t.type){case M.Folder:e.printRaw(s.a.createElement("span",{style:{color:"cyan"}},c));break;case M.Script:e.printRaw(s.a.createElement(L,{row:c,prefix:g,hostname:o.hostname}));break;case M.Message:e.printRaw(s.a.createElement(O,{row:c,prefix:g,hostname:o.hostname}));break;default:e.print(c)}}}E.sort(),v.sort(),k.sort(),w.sort(),_.sort(),S.sort(),function(e){e[e.Folder=0]="Folder",e[e.Message=1]="Message",e[e.TextFile=2]="TextFile",e[e.Program=3]="Program",e[e.Contract=4]="Contract",e[e.Script=5]="Script"}(M||(M={}));const A=[{type:M.Folder,segments:S},{type:M.Message,segments:_},{type:M.TextFile,segments:k},{type:M.Program,segments:E},{type:M.Contract,segments:w},{type:M.Script,segments:v}].filter(e=>e.segments.length>0);for(const e of A)T(e,h)}},function(e,t,n){"use strict";function a(e,t,n){e.print(n.getCurrentServer().cpuCores+" Core(s)")}n.d(t,"a",(function(){return a}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var a=n(6),r=n(5);function i(e,t,n,i,o){try{var s,l;if(1!==o.length&&3!==o.length)return void e.error("Incorrect usage of mem command. usage: mem [scriptname] [-t] [number threads]");const t=o[0]+"";let i=1;if(3===o.length&&"-t"===o[1]&&(i=Math.round(parseInt(o[2]+"")),isNaN(i)||i<1))return void e.error("Invalid number of threads specified. Number of threads must be greater than 1");const c=e.getScript(n,t);if(null==c)return void e.error("mem failed. No such script exists!");const f=c.ramUsage*i;e.print(`This script requires ${a.a.formatRAM(f)} of RAM to run for ${i} thread(s)`);const u=null!==(s=null===(l=c.ramUsageEntries)||void 0===l?void 0:l.sort((e,t)=>t.cost-e.cost))&&void 0!==s?s:[],m=r.a.UseIEC60027_2?9:8;for(const t of u)e.print(`${a.a.formatRAM(t.cost*i).padStart(m)} | ${t.name} (${t.type})`);f>0&&0===u.length&&e.warn("You might have to open & save this script to see the detailed RAM usage information.")}catch(t){e.error(t+"")}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var a=n(99),r=n(228),i=n(83);function o(e,t,n,o,s){if(2===s.length)try{const t=s[0]+"",l=s[1]+"";if(!Object(a.a)(t)&&!t.endsWith(".txt"))return void e.error("'mv' can only be used on scripts and text files (.txt)");const c=e.getFile(n,t);if(null==c)return void e.error(`Source file ${t} does not exist`);const f=e.getFilepath(t),u=Object(i.f)(l,t,e.cwd());if(null===u)return void e.error("error parsing dst file");const m=e.getFile(n,u),h=e.getFilepath(u);if(Object(i.a)(f,h))return void e.error("Source and destination files are the same file");if(Object(a.a)(t)){const t=c;if(!Object(a.a)(h))return void e.error("Source and destination files must have the same type");if(o.isRunning(f))return void e.error("Cannot use 'mv' on a script that is running");if(null!=m){if(o.isRunning(h))return void e.error("Cannot use 'mv' on a script that is running");if(!o.removeFile(h).res)return void e.error("Something went wrong...please contact game dev (probably a bug)");e.print("Warning: The destination file was overwritten")}t.filename=h}else if(c instanceof r.a){const t=c;if(!u.endsWith(".txt"))return void e.error("Source and destination files must have the same type");if(null!=m){if(!o.removeFile(h).res)return void e.error("Something went wrong...please contact game dev (probably a bug)");e.print("Warning: The destination file was overwritten")}t.fn=h}}catch(t){e.error(t+"")}else e.error("Incorrect number of arguments. Usage: mv [src] [dest]")}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var a=n(664);function r(e,t,n,r,i){return Object(a.a)("nano",{terminal:e,router:t,player:n,server:r,args:i})}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));const a=new class{constructor(){this.positions=new Map}saveCursor(e,t){this.positions.set(e,t)}getCursor(e){const t=this.positions.get(e);return t||{row:-1,column:-1}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var a=n(325);function r(e,t,n,r,i){let o;try{o=a({"--grep":String,"-g":"--grep"},{argv:i})}catch(t){return void e.error("Incorrect usage of ps command. Usage: ps [-g, --grep pattern]")}const s=o["--grep"];if(s){const t=new RegExp(s.toString()),n=r.runningScripts.filter(e=>t.test(e.filename));for(let t=0;t<n.length;t++){const a=n[t];let r=`(PID - ${a.pid}) ${a.filename}`;for(let e=0;e<a.args.length;++e)r+=" "+a.args[e].toString();e.print(r)}}if(0===i.length)for(let t=0;t<r.runningScripts.length;t++){const n=r.runningScripts[t];let a=`(PID - ${n.pid}) ${n.filename}`;for(let e=0;e<n.args.length;++e)a+=" "+n.args[e].toString();e.print(a)}}},function(e,t,n){"use strict";function a(e,t,n,a,r){if(1!==r.length)return void e.error("Incorrect number of arguments. Usage: rm [program/script]");let i,o={res:!0,msg:""};try{i=e.getFilepath(r[0]+""),o=a.removeFile(i)}catch(e){o={res:!1,msg:"No such file exists"}}!o.res&&o.msg&&e.error(o.msg)}n.d(t,"a",(function(){return a}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var a=n(99),r=n(1460),i=n(1461);function o(e,t,n,o,s){if(s.length<1)e.error("Incorrect number of arguments. Usage: run [program/script] [-t] [num threads] [arg1] [arg2]...");else{const l=s[0]+"";Object(a.a)(l)?Object(r.a)(e,t,n,o,s):l.endsWith(".cct")?e.runContract(n,l):Object(i.a)(e,t,n,o,s)}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var a=n(182),r=n(201),i=n(376),o=n(239),s=n(325),l=n(6);function c(e,t,n,c,f){if(f.length<1)return void e.error("Bug encountered with Terminal.runScript(). Command array has a length of less than 1: "+f);const u=e.getFilepath(f[0]+""),m={"--tail":Boolean,"-t":Number},h=s(m,{permissive:!0,argv:f.slice(1)}),d=Math.round(parseFloat(h["-t"])),p=!0===h["--tail"];if(void 0!==h["-t"]&&(d<0||isNaN(d)))return void e.error("Invalid number of threads specified. Number of threads must be greater than 0");const g=!isNaN(d)&&d>0?d:1,y=h._;if(null==Object(o.a)(u,y,c)){for(let t=0;t<c.scripts.length;t++){if(c.scripts[t].filename!==u)continue;const o=c.scripts[t];o.server=n.getCurrentServer().hostname;const s=o.ramUsage*g,f=c.maxRam-c.ramUsed;if(!c.hasAdminRights)return void e.error("Need root access to run script");if(s>f+.001)return void e.error("This machine does not have enough RAM to run this script"+(1===g?"":` with ${g} threads`)+`. Script requires ${l.a.formatRAM(s)} of RAM`);const m=new i.a(o,y);m.threads=g;return Object(r.e)(n,m,c)?(e.print(`Running script with ${g} thread(s), pid ${m.pid} and args: ${JSON.stringify(y)}.`),m.filename.endsWith(".ns")&&e.warn(".ns files are deprecated, please rename everything to .js"),void(p&&a.c.emit(m))):void e.error("Failed to start script")}e.error("No such script")}else e.error("This script is already running with the same args. Cannot run multiple instances with the same args")}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var a=n(60);function r(e,t,n,r,i){if(i.length<1)return;const o=i[0]+"";if(n.hasProgram(o)){if(!(i.length<1)){for(const s of Object.values(a.a))if(s.name.toLocaleLowerCase()===o.toLocaleLowerCase())return void s.run(t,e,n,r,i.slice(1).map(e=>e+""));e.error("Invalid executable. Cannot be run")}}else e.error(`No such (exe, script, js, ns, or cct) file! (Only programs that exist on your home computer or scripts on ${n.getCurrentServer().hostname} can be run)`)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var a=n(137);function r(e,t,n,r,i){if(0!==i.length)return void e.error("Incorrect usage of scan command. Usage: scan");const o=n.getCurrentServer(),s=o.serversOnNetwork.map((e,t)=>{const n=Object(a.a)(o,t);if(null===n)throw new Error("Server should not be null");return{hostname:n.hostname,ip:n.ip,hasRoot:n.hasAdminRights?"Y":"N"}});s.unshift({hostname:"Hostname",ip:"IP",hasRoot:"Root Access"});const l=Math.max(...s.map(e=>e.hostname.length)),c=Math.max(...s.map(e=>e.ip.length));for(const t of s){if(!t)continue;let n=t.hostname;n+=" ".repeat(l-t.hostname.length+1),n+=t.ip,n+=" ".repeat(c-t.ip.length+1),n+=t.hasRoot,e.print(n)}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var a=n(60);function r(e,t,n,r,i){if(0===i.length)e.executeScanAnalyzeCommand(n,1);else{if(i.length>2)return void e.error("Incorrect usage of scan-analyze command. usage: scan-analyze [depth]");let t=!1;2===i.length&&"-a"===i[1]&&(t=!0);const r=parseInt(i[0]+"");if(isNaN(r)||r<0)return void e.error("Incorrect usage of scan-analyze command. depth argument must be positive numeric");if(r>3&&!n.hasProgram(a.a.DeepscanV1.name)&&!n.hasProgram(a.a.DeepscanV2.name))return void e.error("You cannot scan-analyze with that high of a depth. Maximum depth is 3");if(r>5&&!n.hasProgram(a.a.DeepscanV2.name))return void e.error("You cannot scan-analyze with that high of a depth. Maximum depth is 5");if(r>10)return void e.error("You cannot scan-analyze with that high of a depth. Maximum depth is 10");e.executeScanAnalyzeCommand(n,r,t)}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var a=n(27),r=n(99);function i(e,t,n,i,o){try{if(2!==o.length)return void e.error("Incorrect usage of scp command. Usage: scp [file] [destination hostname]");const t=e.getFilepath(o[0]+"");if(!t.endsWith(".lit")&&!Object(r.a)(t)&&!t.endsWith(".txt"))return void e.error("scp only works for scripts, text files (.txt), and literature files (.lit)");const s=Object(a.d)(o[1]+"");if(null==s)return void e.error(`Invalid destination. ${o[1]} not found`);if(t.endsWith(".lit")){let n=!1;for(let e=0;e<i.messages.length;++e)if(i.messages[e]==t){n=!0;break}if(!n)return e.error("No such file exists!");for(let n=0;n<s.messages.length;++n)if(s.messages[n]===t)return void e.print(t+" copied over to "+s.hostname);return s.messages.push(t),e.print(t+" copied over to "+s.hostname)}if(t.endsWith(".txt")){let n=null;for(let e=0;e<i.textFiles.length;++e)if(i.textFiles[e].fn===t){n=i.textFiles[e];break}if(null===n)return e.error("No such file exists!");const a=s.writeToTextFile(n.fn,n.text);return a.success?a.overwritten?(e.print(`WARNING: ${t} already exists on ${s.hostname} and will be overwriten`),void e.print(`${t} overwritten on ${s.hostname}`)):void e.print(`${t} copied over to ${s.hostname}`):void e.error("scp failed")}let l=null;for(let e=0;e<i.scripts.length;++e)if(t==i.scripts[e].filename){l=i.scripts[e];break}if(null==l)return void e.error("scp failed. No such script exists");const c=s.writeToScriptFile(n,t,l.code);if(!c.success)return void e.error("scp failed");if(c.overwritten)return e.print(`WARNING: ${t} already exists on ${s.hostname} and will be overwritten`),void e.print(`${t} overwritten on ${s.hostname}`);e.print(`${t} copied over to ${s.hostname}`)}catch(t){e.error(t+"")}}},function(e,t,n){"use strict";function a(e,t,n,a,r){0===r.length?a.hasAdminRights?e.print("You have ROOT access to this machine"):e.print("You do NOT have root access to this machine"):e.error("Incorrect number of arguments. Usage: sudov")}n.d(t,"a",(function(){return a}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var a=n(239),r=n(99),i=n(328),o=n(182);function s(e,t,n,s,l){try{if(l.length<1)e.error("Incorrect number of arguments. Usage: tail [script] [arg1] [arg2]...");else if("string"==typeof l[0]){const t=e.getFilepath(l[0]);if(!Object(r.a)(t))return void e.error(`tail can only be called on ${r.b.join(", ")} files, or by PID`);const n=[];for(let e=1;e<l.length;++e)n.push(l[e]);for(let e=0;e<s.runningScripts.length;++e)if(s.runningScripts[e].filename===t&&Object(i.a)(s.runningScripts[e].args,n))return void o.c.emit(s.runningScripts[e]);const a=[];for(let e=0;e<s.runningScripts.length;++e){if(s.runningScripts[e].args.length<n.length)continue;const r=s.runningScripts[e].args.slice(0,n.length);s.runningScripts[e].filename===t&&Object(i.a)(r,n)&&a.push(s.runningScripts[e])}if(1===a.length)return void o.c.emit(a[0]);if(a.length>1){e.error("Found several potential candidates:");for(const t of a)e.error(`${t.filename} ${t.args.join(" ")}`);return void e.error("Script arguments need to be specified.")}e.error(`No script named ${t} is running on the server`)}else if("number"==typeof l[0]){const t=Object(a.b)(l[0],s);if(null==t)return void e.error(`No script with PID ${l[0]} is running on the server`);o.c.emit(t)}}catch(t){e.error(t+"")}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var a=n(663),r=n(6);function i(e,t,n,i,o){if(0!==o.length)return void e.error("Incorrect usage of top command. Usage: top");const s=`Script${" ".repeat(40-"Script".length)}PID${" ".repeat(10-"PID".length)}Threads${" ".repeat(16-"Threads".length)}RAM Usage`;e.print(s);const l=i.runningScripts;for(let t=0;t<l.length;t++){const n=l[t],i=Math.max(0,40-n.filename.length),o=" ".repeat(i),s=Math.max(0,10-(n.pid+"").length),c=" ".repeat(s),f=Math.max(0,16-(n.threads+"").length),u=" ".repeat(f),m=r.a.formatRAM(Object(a.a)(n)*n.threads),h=[n.filename,o,n.pid,c,n.threads,u,m].join("");e.print(h)}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var a=n(162);function r(e,t,n,r,i){1===i.length?Object(a.g)(i[0]+"")?e.print("Removed alias "+i[0]):e.error("No such alias exists: "+i[0]):e.error("Incorrect usage of unalias name. Usage: unalias [alias]")}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var a=n(664);function r(e,t,n,r,i){return Object(a.a)("vim",{terminal:e,router:t,player:n,server:r,args:i},{vim:!0})}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var a=n(44);function r(e,t,n,r,i){if(0!==i.length)return void e.error("Incorrect usage of weaken command. Usage: weaken");r instanceof a.a||e.error("Cannot weaken your own machines! You are currently connected to your home PC or one of your purchased servers");const o=r;o.purchasedByPlayer?e.error("Cannot weaken your own machines! You are currently connected to your home PC or one of your purchased servers"):o.hasAdminRights?o.requiredHackingSkill>n.hacking?e.error("Your hacking skill is not high enough to attempt hacking this machine. Try analyzing the machine to determine the required hacking skill"):e.startWeaken(n):e.error("You do not have admin rights for this machine! Cannot weaken")}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var a=n(606),r=n.n(a),i=n(99);function o(e,t,n,a,o){if(2!==o.length)return void e.error("Incorrect usage of wget command. Usage: wget [url] [target file]");const s=o[0]+"",l=e.getFilepath(o[1]+"");if(!Object(i.a)(l)&&!l.endsWith(".txt"))return e.error("wget failed: Invalid target file. Target file must be script or text file");r.a.get(s,(function(t){let r;return r=Object(i.a)(l)?a.writeToScriptFile(n,l,t):a.writeToTextFile(l,t),r.success?r.overwritten?e.print("wget successfully retrieved content and overwrote "+l):e.print("wget successfully retrieved content to new file "+l):e.error("wget failed")}),"text").fail((function(t){return e.error("wget failed: "+JSON.stringify(t))}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var a=n(475);function r(){a.b.emit()}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var a=n(2),r=n(109);function i(){!function(){if(a.a.exploits.includes(r.a.PrototypeTampering))return;setInterval((function(){"5.5e+1"!==55..toExponential()&&a.a.giveExploit(r.a.PrototypeTampering)}),9e5)}(),function(){if(a.a.exploits.includes(r.a.TimeCompression))return;let e=performance.now();window.setTimeout((function t(){const n=performance.now();n-e<500?a.a.giveExploit(r.a.TimeCompression):(e=n,window.setTimeout(t,15e3))}),15e3)}()}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var a=n(184),r=n(111),i=n(14);function o(){window.addEventListener("unhandledrejection",(function(e){if(Object(r.a)(e.reason)){const t=e.reason.split("|DELIMITER|"),n=t[1],a=t[2],r=t[3];let o=`UNCAUGHT PROMISE ERROR<br>You forgot to await a promise<br>${a}@${n}<br>`;o+="<br>",o+=r,Object(i.a)(o)}else if(e.reason instanceof a.a){const t=`UNCAUGHT PROMISE ERROR<br>You forgot to await a promise<br>${e.reason.name}@${e.reason.hostname} (PID - ${e.reason.pid})<br>Maybe hack / grow / weaken ?`;Object(i.a)(t)}}))}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.r(t);var a=n(0),r=n.n(a),i=n(108),o=n.n(i),s=n(173),l=n(760),c=n(303);function f(){Object(s.c)(),o.a.render(r.a.createElement(s.a,null,r.a.createElement(l.a,null)),document.getElementById("root"))}Object(c.a)(),globalThis.React=r.a,globalThis.ReactDOM=o.a,o.a.render(r.a.createElement(s.a,null,r.a.createElement(l.a,null)),document.getElementById("root")),s.b.subscribe(f),location.href.startsWith("file://")||(window.onbeforeunload=function(){return"Your work will be lost."}),window.print=()=>{throw new Error("You accidentally called window.print instead of ns.print")}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t){},,function(e,t){},,,,,,,,,,,,function(e,t){},,function(e,t){},,,,,,,,,,,,,,,,,,,,,,,,,function(e,t){},,function(e,t){},function(e,t){},,,,,function(e,t){},,function(e,t){},,,,,,function(e,t){},,function(e,t){},,,,,,,,,,,,,,,,,,,function(e,t){},,,,,,,,,,,,function(e,t){},,,function(e,t){}]);
|
||
//# sourceMappingURL=main.bundle.js.map |