bitburner-src/main.bundle.js

20 lines
2.0 MiB
JavaScript
Raw Normal View History

2022-04-07 01:40:04 +02:00
!function(t){function e(e){for(var n,o,s=e[0],l=e[1],c=e[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(n in l)Object.prototype.hasOwnProperty.call(l,n)&&(t[n]=l[n]);for(f&&f(e);m.length;)m.shift()();return i.push.apply(i,c||[]),a()}function a(){for(var t,e=0;e<i.length;e++){for(var a=i[e],n=!0,s=1;s<a.length;s++){var l=a[s];0!==r[l]&&(n=!1)}n&&(i.splice(e--,1),t=o(o.s=a[0]))}return t}var n={},r={1:0},i=[];function o(e){if(n[e])return n[e].exports;var a=n[e]={i:e,l:!1,exports:{}};return t[e].call(a.exports,a,a.exports,o),a.l=!0,a.exports}o.m=t,o.c=n,o.d=function(t,e,a){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:a})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var a=Object.create(null);if(o.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)o.d(a,n,function(e){return t[e]}.bind(null,n));return a},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="";var s=window.webpackJsonp=window.webpackJsonp||[],l=s.push.bind(s);s.push=e,s=s.slice();for(var c=0;c<s.length;c++)e(s[c]);var f=l;i.push([1508,0]),a()}([,,function(t,e,a){"use strict";a.d(e,"a",(function(){return o})),a.d(e,"b",(function(){return s}));var n=a(576),r=a(106),i=a(25);let o=new n.a;function s(t){o=JSON.parse(t,i.c),o.money=parseFloat(o.money),o.exploits=Object(r.c)(o.exploits)}},,function(t,e,a){"use strict";a.d(e,"a",(function(){return f}));var n=a(180),r=a.n(n),i=(a(1517),a(1518),a(1519),a(1520),a(1521),a(1522),a(1523),a(1524),a(1525),a(1526),a(1527),a(1528),a(1529),a(1530),a(9));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 t,e,a;a="en",(e="defaultLocale")in(t=this)?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,this.defaultLocale="en"}updateLocale(t){return null!=r.a.locale(t)||(console.warn("Invalid locale for numeral: "+t),r.a.locale(this.defaultLocale),!1)}format(t,e){Math.abs(t)<1e-6&&(t=0);const a=r()(t).format(e);return"NaN"===a?""+t:a}formatBigNumber(t){return this.format(t,"0.000a")}formatReallyBigNumber(t,e=3){const a=Math.abs(t);if(t===1/0)return"∞";for(let n=0;n<o.length;n++)if(o[n]<a&&a<=1e3*o[n])return this.format(t/o[n],"0."+"0".repeat(e))+s[n];if(a<1e3)return this.format(t,"0."+"0".repeat(e));const n=this.format(t,"0."+"0".repeat(e)+"a");return"NaNt"===n?this.format(t,"0."+" ".repeat(e)+"e+0"):n}formatHp(t){return t<1e6?this.format(t,"0,0"):this.formatReallyBigNumber(t)}formatMoney(t){return"$"+this.formatReallyBigNumber(t)}formatSkill(t){return t<1e15?this.format(t,"0,0"):this.formatReallyBigNumber(t)}formatExp(t){return this.formatReallyBigNumber(t)}formatHashes(t){return this.formatReallyBigNumber(t)}formatReputation(t){return this.formatReallyBigNumber(t)}formatFavor(t){return this.format(t,"0,0")}formatSecurity(t){return t.toFixed(3)}formatRAM(t){return i.a.UseIEC60027_2?this.format(t*c,"0.00ib"):this.format(t*l,"0.00b")}formatPercentage(t,e=2){const a="0."+"0".repeat(e)+"%";return this.format(t,a)}formatServerSecurity(t){return this.format(t,"0,0.000")}formatRespect(t){return this.formatReallyBigNumber(t,5)}formatWanted(t){return this.formatReallyBigNumber(t,5)}formatMultiplier(t){return this.format(t,"0,0.00")}formatSleeveShock(t){return this.format(t,"0,0.000")}formatSleeveSynchro(t){return this.format(t,"0,0.000")}formatSleeveMemory(t){return this.format(t,"0")}formatPopulation(t){return this.format(t,"0.000a")}formatStamina(t){return this.format(t,"0.0")}formatShares(t){return t<1e3?this.format(t,"0"):this.formatReallyBigNumber(t)}formatInfiltrationSecurity(t){return this.formatReallyBigNumber(t)}formatThreads(t){return this.format(t,"0,0")}
2022-02-23 08:27:13 +01:00
/**
* @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.
2022-04-07 01:40:04 +02:00
*/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(t){var e=this.sourceCode;if(null==t||null==t.start)return NaN;try{return((e=e.substring(0,t.start)).match(/\n/g)||[]).length+1-this.sourceCodeLineOffset}catch(t){return NaN}},r.prototype.getErrorLineNumberMessage=function(t){return isNaN(t)?" (Unknown line number)":t<=0?" (Error occurred in an imported function)":" (Line Number "+t+". This line number is probably incorrect if your script is importing any functions. This is being worked on)"},r.prototype.appendCode=function(t){var e=this.stateStack[0];if(!e||"Program"!==e.node.type)throw Error("Expecting original AST to start with a Program node.");if("string"==typeof t&&(t=n.a(t,r.PARSE_OPTIONS)),!t||"Program"!==t.type)throw Error("Expecting new AST to start with a Program node.");this.populateScope_(t,e.scope);for(var a,i=0;a=t.body[i];i++)e.node.body.push(a);e.done=!1},r.prototype.step=function(){var t=this.stateStack,e=t[t.length-1];if(!e)return!1;var a=e.node,n=a.type;if("Program"===n&&e.done)return!1;if(this.paused_)return!0;try{var i=this.stepFunctions_[n](t,e,a)}catch(t){if(t!==r.STEP_ERROR)throw t}return i&&t.push(i),!!a.end||this.step()},r.prototype.run=function(){for(;!this.paused_&&this.step(););return this.paused_},r.prototype.initGlobalScope=function(t){this.setProperty(t,"NaN",NaN,r.READONLY_DESCRIPTOR),this.setProperty(t,"Infinity",1/0,r.READONLY_DESCRIPTOR),this.setProperty(t,"undefined",void 0,r.READONLY_DESCRIPTOR),this.setProperty(t,"window",t,r.READONLY_DESCRIPTOR),this.setProperty(t,"this",t,r.READONLY_DESCRIPTOR),this.setProperty(t,"self",t),this.OBJECT_PROTO=new r.Object(null),this.FUNCTION_PROTO=new r.Object(this.OBJECT_PROTO),this.initFunction(t),this.initObject(t),t.proto=this.OBJECT_PROTO,this.setProperty(t,"constructor",this.OBJECT,r.NONENUMERABLE_DESCRIPTOR),this.initArray(t),this.initString(t),this.initBoolean(t),this.initNumber(t),this.initDate(t),this.initRegExp(t),this.initError(t),this.initMath(t),this.initJSON(t);var e=this,a=this.createNativeFunction((function(t){throw EvalError("Can't happen")}),!1);a.eval=!0,this.setProperty(t,"eval",a),this.setProperty(t,"parseInt",this.createNativeFunction(parseInt,!1)),this.setProperty(t,"parseFloat",this.createNativeFunction(parseFloat,!1)),this.setProperty(t,"isNaN",this.createNativeFunction(isNaN,!1)),this.setProperty(t,"isFinite",this.createNativeFunction(isFinite,!1));for(var n=[[escape,"escape"],[unescape,"unescape"],[decodeURI,"decodeURI"],[decodeURIComponent,"decodeURIComponent"],[encodeURI,"encodeURI"],[encodeURIComponent,"encodeURIComponent"]],i=0;i<n.length;i++){var o=function(t){return function(a){try{return t(a)}catch(t){e.throwException(e.URI_ERROR,t.message)}}}(n[i][0]);this.setProperty(t,n[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,t)},r.prototype.initFunction=function(t){var e,a=this,i=/^[A-Za-z_$][\w$]*$/;(e=function(t){if(a.calledWithNew())var e=this;else e=a.createObjectProto(a.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)||a.throwException(a.SYNTAX_ERROR,"Invalid func
2022-02-23 08:27:13 +01:00
//# sourceMappingURL=main.bundle.js.map