bitburner-src/dist/engine.bundle.js

20 lines
1.6 MiB
JavaScript
Raw Normal View History

2021-05-06 03:02:54 +02:00
!function(e){function t(t){for(var r,o,s=t[0],l=t[1],c=t[2],m=0,p=[];m<s.length;m++)o=s[m],a[o]&&p.push(a[o][0]),a[o]=0;for(r in l)Object.prototype.hasOwnProperty.call(l,r)&&(e[r]=l[r]);for(u&&u(t);p.length;)p.shift()();return i.push.apply(i,c||[]),n()}function n(){for(var e,t=0;t<i.length;t++){for(var n=i[t],r=!0,s=1;s<n.length;s++){var l=n[s];0!==a[l]&&(r=!1)}r&&(i.splice(t--,1),e=o(o.s=n[0]))}return e}var r={},a={2:0},i=[];function o(t){if(r[t])return r[t].exports;var n=r[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=r,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 r in e)o.d(n,r,function(t){return e[t]}.bind(null,r));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 u=l;i.push([17,0]),n()}([,function(e,t,n){"use strict";n.r(t),n.d(t,"Player",function(){return l}),n.d(t,"loadPlayer",function(){return c});var r=n(45),a=n(760),i=n(194),o=n(24),s=n(59);let l=new a.a;function c(e){if((l=JSON.parse(e,o.Reviver)).money=new s.a(l.money),l.corporation instanceof r.c){l.corporation.funds=new s.a(l.corporation.funds),l.corporation.revenue=new s.a(l.corporation.revenue),l.corporation.expenses=new s.a(l.corporation.expenses);for(var t=0;t<l.corporation.divisions.length;++t){var n=l.corporation.divisions[t];n.lastCycleRevenue=new s.a(n.lastCycleRevenue),n.lastCycleExpenses=new s.a(n.lastCycleExpenses),n.thisCycleRevenue=new s.a(n.thisCycleRevenue),n.thisCycleExpenses=new s.a(n.thisCycleExpenses)}}l.exploits=Object(i.sanitizeExploits)(l.exploits)}},,function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.numeralWrapper=void 0;const a=r(n(108));n(1192),n(1191),n(1190),n(1189),n(1188),n(1187),n(1186),n(1185),n(1184),n(1183),n(1182),n(1181),n(1180),n(1179);t.numeralWrapper=new class{constructor(){this.defaultLocale="en",this.defaultLocale="en"}updateLocale(e){return null!=a.default.locale(e)||(console.warn(`Invalid locale for numeral: ${e}`),a.default.locale(this.defaultLocale),!1)}format(e,t){Math.abs(e)<1e-6&&(e=0);const n=a.default(e).format(t);return"NaN"===n?`${e}`:n}formatBigNumber(e){return this.format(e,"0.000a")}formatHp(e){return this.format(e,"0")}formatMoney(e){return Math.abs(e)<1e3?this.format(e,"$0.00"):this.format(e,"$0.000a")}formatSkill(e){return this.format(e,"0,0")}formatExp(e){return this.format(e,"0.000a")}formatHashes(e){return this.format(e,"0.000a")}formatReputation(e){return this.format(e,"0.000a")}formatFavor(e){return this.format(e,"0,0")}formatRAM(e){return this.format(e,"0.00")+"GB"}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.format(e,"0.00000a")}formatWanted(e){return this.format(e,"0.00000a")}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.format(e,"0.000a")}formatInfiltrationSecurity(e){return this.format(e,"0.000a")}formatThreads(e){return this.format(e,"0,0")}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{val
/**
* @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.
2021-05-06 03:02:54 +02:00
*/a.PARSE_OPTIONS={ecmaVersion:5,locations:!0},a.READONLY_DESCRIPTOR={configurable:!0,enumerable:!0,writable:!1},a.NONENUMERABLE_DESCRIPTOR={configurable:!0,enumerable:!1,writable:!0},a.READONLY_NONENUMERABLE_DESCRIPTOR={configurable:!0,enumerable:!1,writable:!1},a.VARIABLE_DESCRIPTOR={configurable:!1,enumerable:!0,writable:!0},a.STEP_ERROR={},a.SCOPE_REFERENCE={},a.VALUE_IN_DESCRIPTOR={},a.toStringCycles_=[],a.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}},a.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)"},a.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=r.b(e,a.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},a.prototype.step=function(){var e=this.stateStack,t=e[e.length-1];if(!t)return!1;var n=t.node,r=n.type;if("Program"===r&&t.done)return!1;if(this.paused_)return!0;try{var i=this.stepFunctions_[r](e,t,n)}catch(e){if(e!==a.STEP_ERROR)throw e}return i&&e.push(i),!!n.end||this.step()},a.prototype.run=function(){for(;!this.paused_&&this.step(););return this.paused_},a.prototype.initGlobalScope=function(e){this.setProperty(e,"NaN",NaN,a.READONLY_DESCRIPTOR),this.setProperty(e,"Infinity",1/0,a.READONLY_DESCRIPTOR),this.setProperty(e,"undefined",void 0,a.READONLY_DESCRIPTOR),this.setProperty(e,"window",e,a.READONLY_DESCRIPTOR),this.setProperty(e,"this",e,a.READONLY_DESCRIPTOR),this.setProperty(e,"self",e),this.OBJECT_PROTO=new a.Object(null),this.FUNCTION_PROTO=new a.Object(this.OBJECT_PROTO),this.initFunction(e),this.initObject(e),e.proto=this.OBJECT_PROTO,this.setProperty(e,"constructor",this.OBJECT,a.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 r=[[escape,"escape"],[unescape,"unescape"],[decodeURI,"decodeURI"],[decodeURIComponent,"decodeURIComponent"],[encodeURI,"encodeURI"],[encodeURIComponent,"encodeURIComponent"]],i=0;i<r.length;i++){var o=function(e){return function(n){try{return e(n)}catch(e){t.throwException(t.URI_ERROR,e.message)}}}(r[i][0]);this.setProperty(e,r[i][1],this.createNativeFunction(o,!1),a.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)},a.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 u=l[c];i.test(u)||n.throwException(n.SYNTAX_ERROR,"Invalid functi
//# sourceMappingURL=engine.bundle.js.map