36 lines
623 KiB
JavaScript
36 lines
623 KiB
JavaScript
|
/* empty css */import"./vue.92681fcb.js";import{Z as b,l as Ri,aa as Se,t as oe,ay as Un,ar as sn,aE as N,a0 as H,aK as Wl,a1 as f,O as C,aG as gn,A as Ui,_ as Fe,a8 as s,b6 as Ge,b8 as Dn,bs as Rs,C as d,aq as tn,bu as wn,bb as En,T as St,a7 as I,j as Ht,bv as kn,u as An,q as Vn,b1 as Jl,G as Oi,aC as Ss,w as rl,b2 as Bi,ao as Tt,I as Xi,aN as fi,$ as ne,z as jl,al as Rn,aL as Bl,H as Lt,aJ as Hs,J as _e,k as Qt,aH as Sl,aF as Hl,bn as Ut,br as Dt,be as Et}from"./@vue.4ce677c2.js";import{c as Ts}from"./nanoevents.1080beb7.js";import{L as Ul}from"./lz-string.731cedc5.js";import{i as At}from"./is-plain-object.906d88e8.js";import{Y as Bt}from"./vue-next-select.a2bfab1d.js";import{s as Pt,u as Ls}from"./vue-toastification.6f567382.js";import{D as _t}from"./vuedraggable.7949458c.js";import{p as qt}from"./vue-textarea-autosize.35804eaf.js";import{v as $t,n as Kt}from"./workbox-window.8d14e8b7.js";import"./sortablejs.29100d8a.js";const ea=function(){const l=document.createElement("link").relList;if(l&&l.supports&&l.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))t(a);new MutationObserver(a=>{for(const m of a)if(m.type==="childList")for(const c of m.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&t(c)}).observe(document,{childList:!0,subtree:!0});function n(a){const m={};return a.integrity&&(m.integrity=a.integrity),a.referrerpolicy&&(m.referrerPolicy=a.referrerpolicy),a.crossorigin==="use-credentials"?m.credentials="include":a.crossorigin==="anonymous"?m.credentials="omit":m.credentials="same-origin",m}function t(a){if(a.ep)return;a.ep=!0;const m=n(a);fetch(a.href,m)}};ea();const ia="modulepreload",Os={},la="./",Sn=function(l,n){return!n||n.length===0?l():Promise.all(n.map(t=>{if(t=`${la}${t}`,t in Os)return;Os[t]=!0;const a=t.endsWith(".css"),m=a?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${t}"]${m}`))return;const c=document.createElement("link");if(c.rel=a?"stylesheet":ia,a||(c.as="script",c.crossOrigin=""),c.href=t,document.head.appendChild(c),a)return new Promise((r,u)=>{c.addEventListener("load",r),c.addEventListener("error",()=>u(new Error(`Unable to preload CSS for ${t}`)))})})).then(()=>l())},na="./projInfo-schema.json",sa="Advent Incremental",ta="An incremental game you play a day at a time, leading up to Christmas!",aa="advent-incremental",Ia="thepaperpilot and friends",oa="",ma="",da="0.5",ca="Initial Commit",ra=!0,ua=!1,ba=2,Za=!0,ya=null,pa="",Va=["main"],Wa=3600,ha=0,Ja=!0,ja="base64";var ci={$schema:na,title:sa,description:ta,id:aa,author:Ia,discordName:oa,discordLink:ma,versionNumber:da,versionTitle:ca,allowGoBack:ra,defaultShowSmall:ua,defaultDecimalsShown:ba,useHeader:Za,banner:ya,logo:pa,initialTabs:Va,maxTickLength:Wa,offlineLimit:ha,enablePausing:Ja,exportEncoding:ja};const $n=17,va=9e15,Ca=Math.log10(9e15),wa=1/9e15,fa=308,Oa=-324,Ns=5,Na=function(){const e=[];for(let n=Oa+1;n<=fa;n++)e.push(Number("1e"+n));const l=323;return function(n){return e[n+l]}}(),Kl=[2,Math.E,3,4,5,6,7,8,9,10],Ma=[[1,1.0891168053867777,1.1789745164521264,1.2701428397304229,1.3632066654400328,1.4587804913784246,1.557523817412741,1.660158301473385,1.767487542936873,1.8804205225512542,2],[1,1.1121114330934,1.23103892493161,1.35838369631113,1.49605193039935,1.64635423375119,1.81213853570186,1.99697132461829,2.20538955455724,2.44325744833852,Math.E],[1,1.1187738849693603,1.2464963939368214,1.38527004705667,1.5376664685821402,1.7068895236551784,1.897001227148399,2.1132403089001035,2.362480153784171,2.6539010333870774,3],[1,1.1367350847096405,1.2889510672956703,1.4606478703324786,1.6570295196661111,1.8850062585672889,2.1539465047453485,2.476829779693097,2.872061932789197,3.3664204535587183,4],[1,1.1494592900767588,1.319708228183931,1.5166291280087583,1.748171114438024,2.0253263297298045,2.3636668498288547,2.7858359149579424,3.3257226212448145,4.035730287722532,5],[1,1.159225940787673,1.343712473580932,1.5611293155111927,1.8221199554561318,2.14183924486326,2.542468319282638,3.0574682501653316,3.7390572020926873,4.6719550537360774,6],[1,1
|
||
|
`).slice(3,5).map(l=>l.trim()).join(`
|
||
|
`))||""}function o(e){const l=Ri(e)?e:oe(e);l[ds]=l,l[El]=Ri(e)?e.value:e,l[Ln]=tI(),l[et]=!1;const n=b({get(){return l.value},set(t){l.value=t}});return n[El]=l[El],l[On]=n,l[Cn]=void 0,pl.length===0?console.warn("Creating a persistent ref outside of a layer. This is not officially supported",l,`
|
||
|
Created at:
|
||
|
`+l[Ln]):bn[pl[pl.length-1]].add(l),l}function it(e){return e&&typeof e=="object"&&ds in e}function P(e){return e[On]}pi.on("addLayer",(e,l)=>{const n=[],t=(a,m=[])=>{let c=!1;return Object.keys(a).forEach(r=>{let u=a[r];if(u&&typeof u=="object")if(gi in u&&(u=u[gi]),it(u)){if(c=!0,u[et]){console.warn("Deleted persistent ref present in returned object. Ignoring...",u,`
|
||
|
Created at:
|
||
|
`+u[Ln]);return}bn[e.id].delete(u);const Z=[e.id,...m,r];u[Cn]!=null&&JSON.stringify(Z)!==JSON.stringify(u[Cn])&&console.error(`Persistent ref is being saved to \`${Z.join(".")}\` when it's already present at \`${u[Cn].join(".")}\`. This can cause unexpected behavior when loading saves between updates.`,u),u[Cn]=Z;const J=m.reduce((O,h)=>(h in O||(O[h]={}),O[h]),l),W=J[r];J[r]=u[ds],Ht(J)?W!=null?J[r]=W:J[r]=u[El]:W!=null?J[r].value=W:J[r].value=u[El]}else!(u instanceof i)&&!Ri(u)&&!n.includes(u)&&(typeof u.type=="symbol"&&n.push(u),t(u,[...m,r])&&(kn(u)&&!kn(a)?console.warn("Found array that contains persistent values when adding layer. Keep in mind changing the order of elements in the array will mess with existing player saves.",gi in a?a[gi]:a,r):c=!0))}),c};t(e[gi]),bn[e.id].forEach(a=>{console.error(`Created persistent ref in ${e.id} without registering it to the layer! Make sure to include everything persistent in the returned object`,a,`
|
||
|
Created at:
|
||
|
`+a[Ln])}),bn[e.id].clear()});var zi=window.state=An({lastTenTicks:[],hasNaN:!1,NaNPath:[]});const lt=Vn({id:"",devSpeed:null,name:"",tabs:[],time:-1,autosave:!0,offlineProd:!0,offlineTime:null,timePlayed:0,keepGoing:!1,modID:"",modVersion:"",layers:{},autoPause:!0});function nt(e){return JSON.stringify(e,(l,n)=>d(n))}const st={get(e,l){var t;if(l===gi||l===un)return e[l];const n=e[gi][l];if(l!=="value"&&(At(n)||Array.isArray(n))){if(n!==((t=e[l])==null?void 0:t[gi])){const a=[...e[un],l];e[l]=new Proxy({[gi]:n,[un]:a},st)}return e[l]}return n},set(e,l,n,t){if(!zi.hasNaN&&(typeof n=="number"&&isNaN(n)||n instanceof i&&(isNaN(n.sign)||isNaN(n.layer)||isNaN(n.mag)))){const a=e[gi][l];if(!(typeof a=="number"&&isNaN(a)||a instanceof i&&(isNaN(a.sign)||isNaN(a.layer)||isNaN(a.mag))))throw lt.autosave=!1,zi.hasNaN=!0,zi.NaNPath=[...e[un],l],zi.NaNReceiver=t,console.error("Attempted to set NaN value",[...e[un],l],e[gi]),"Attempted to set NaN value. See above for details"}return e[gi][l]=n,!0},ownKeys(e){return Reflect.ownKeys(e[gi])},has(e,l){return Reflect.has(e[gi],l)},getOwnPropertyDescriptor(e,l){return Object.getOwnPropertyDescriptor(e[gi],l)}};var ge=window.player=new Proxy({[gi]:lt,[un]:["player"]},st);const cs=Symbol("RegisterNode"),rs=Symbol("UnregisterNode"),us=Symbol("Nodes"),bs=Symbol("Bounds"),oi=An({});window.layers=oi;const bn={},pl=[];function Di(e,l){return il(()=>{const n={},t=n.emitter=Ts();if(n.on=t.on.bind(t),n.emit=t.emit.bind(t),n.nodes=oe({}),n.id=e,pl.push(e),bn[e]=new Set,n.minimized=o(!1),Object.assign(n,l.call(n)),pl[pl.length-1]==null||pl[pl.length-1]!==e)throw`Adding layers stack in invalid state. This should not happen
|
||
|
Stack: ${pl}
|
||
|
Trying to pop ${n.id}`;return pl.pop(),Oe(n,"color"),Oe(n,"display"),Oe(n,"name"),Qi(n,"name",n.id),Oe(n,"minWidth"),Qi(n,"minWidth",600),Oe(n,"minimizable"),Qi(n,"minimizable",!0),Oe(n,"minimizedDisplay"),n})}function tt(e,l){if(console.info("Adding layer",e.id),oi[e.id]){console.error("Attempted to add layer with same ID as existing layer",e.id,oi[e.id]);return}Qi(l,"layers",{}),l.layers[e.id]==null&&(l.layers[e.id]={}),oi[e.id]=e,pi.emit("addLayer",e,l.layers[e.id])}function aI(e){return oi[e]}function at(e){console.info("Removing layer",e.id),pi.emit("removeLayer",e),oi[e.id]=void 0}function II(e){at(e),tt(e,ge)}function oI(e){const l=oe(!1);return{openModal:()=>l.value=!0,modal:v(()=>s(Gi,{modelValue:l.value,"onUpdate:modelValue":n=>l.value=n},{header:()=>s("h2",null,[d(e.name)]),body:d(e.display)}))}}pi.on("update",function(l){Object.values(oi).forEach(n=>{n==null||n.emit("preUpdate",l)}),Object.values(oi).forEach(n=>{n==null||n.emit("update",l)}),Object.values(oi).forEach(n=>{n==null||n.emit("postUpdate",l)})});var mI=Object.freeze(Object.defineProperty({__proto__:null,RegisterNodeInjectionKey:cs,UnregisterNodeInjectionKey:rs,NodesInjectionKey:us,BoundsInjectionKey:bs,layers:oi,persistentRefs:bn,addingLayers:pl,createLayer:Di,addLayer:tt,getLayer:aI,removeLayer:at,reloadLayer:II,setupLayerModal:oI},Symbol.toStringTag,{value:"Module"}));function It(e={}){return Object.assign({id:`${ci.id}-0`,name:"Default Save",tabs:ci.initialTabs.slice(),time:Date.now(),autosave:!0,offlineProd:!0,offlineTime:0,timePlayed:0,keepGoing:!1,modID:ci.id,modVersion:ci.versionNumber,layers:{}},e)}function Ki(e){const l=Ul.compressToUTF16(nt(e!=null?e:ge[gi]));return localStorage.setItem((e!=null?e:ge[gi]).id,l),l}async function dI(){rI();try{let e=localStorage.getItem(ji.active);if(e==null){await nn(Zn());return}if(e[0]!=="{")if(e[0]==="e")e=decodeURIComponent(escape(atob(e)));else if(e[0]==="\u1BE1")e=Ul.decompressFromUTF16(e);else throw"Unable to determine save encoding";const l=JSON.parse(e);if(l.modID!==ci.id){await nn(Zn());return}l.id=ji.active,await nn(l)}catch(e){console.error(`Failed to load save. Falling back to new save.
|
||
|
`,e),await nn(Zn())}}function Zn(){const e=Fn(),l=It({id:e});return Ki(l),ji.saves.push(e),l}function Fn(){let e,l=0;do e=`${ci.id}-${l++}`;while(localStorage.getItem(e));return e}const Zs=oe(!1);async function nn(e){console.info("Loading save",e),Zs.value=!0;const{layers:l,removeLayer:n,addLayer:t}=await Sn(()=>Promise.resolve().then(function(){return mI}),void 0),{fixOldSave:a,getInitialLayers:m}=await Sn(()=>Promise.resolve().then(function(){return Zm}),void 0);for(const c in l){const r=l[c];r&&n(r)}m(e).forEach(c=>t(c,e)),e=It(e),e.offlineProd&&e.time&&e.devSpeed!==0&&(e.offlineTime==null&&(e.offlineTime=0),e.offlineTime+=Math.min(e.offlineTime+(Date.now()-e.time)/1e3,ci.offlineLimit*3600)),e.time=Date.now(),e.modVersion!==ci.versionNumber&&(a(e.modVersion,e),e.modVersion=ci.versionNumber),Object.assign(ge,e),ji.active=ge.id,pi.emit("onLoad")}setInterval(()=>{ge.autosave&&oi.main.days[oi.main.day.value-1].opened.value&&Ki()},1e3);window.onbeforeunload=()=>{ge.autosave&&oi.main.days[oi.main.day.value-1].opened.value&&Ki()};window.save=Ki;const cI=window.hardReset=async()=>{await nn(Zn())},Nn=Vn({active:"",saves:[],showTPS:!0,theme:ms.Nordic,unthrottled:!1,usingLog:!1,alignUnits:!1});Jl(Nn,e=>{const l=Ul.compressToUTF16(JSON.stringify(e));localStorage.setItem(ci.id,l)},{deep:!0});var ji=window.settings=Nn;window.hardResetSettings=()=>{const e={active:"",saves:[],showTPS:!0,theme:ms.Nordic,usingLog:!1,alignUnits:!1};pi.emit("loadSettings",e),Object.assign(Nn,e),cI()};function rI(){try{let e=localStorage.getItem(ci.id);if(e!=null&&e!==""){if(e[0]!=="{")if(e[0]==="e")e=decodeURIComponent(escape(atob(e)));else if(e[0]==="\u1BE1")e=Ul.decompressFromUTF16(e);else{console.warn("Unable to determine settings encoding",e);return}const l=JSON.parse(e);typeof l=="object"&&Object.assign(Nn,l)}pi.emit("loadSettings",Nn)}catch{}}const ot=Vn([]);function uI(e){ot.push(e)}const mt=Vn([]);function bI(e){mt.push(e)}const ZI=Vn([]),yI={class:"table"},el=Se({__name:"Column",setup(e){const l=b(()=>hn[ji.theme].mergeAdjacent);return(n,t)=>(N(),H("div",yI,[f("div",{class:Oi(["col",{mergeAdjacent:d(l)}])},[Wl(n.$slots,"default")],2)]))}}),pI={class:"table"},pn=Se({__name:"Row",setup(e){const l=b(()=>hn[ji.theme].mergeAdjacent);return(n,t)=>(N(),H("div",pI,[f("div",{class:Oi(["row",{mergeAdjacent:d(l)}])},[Wl(n.$slots,"default")],2)]))}});function ys(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Tt(e)}function mi(e,l="span"){return typeof e=="function"?Se({render:e}):typeof e=="string"?e.length>0?(e=e.trim(),e.charAt(0)!=="<"&&(e=`<${l}>${e}</${l}>`),Se({template:e})):Se({render:()=>({})}):e}function ve(e){if(kl(e))return typeof e=="function"?e():mi(e);const l=e[Pl];return s(l,e[_l](),null)}function Zi(...e){let l;return s(pn,null,ys(l=e.map(ve))?l:{default:()=>[l]})}function ul(...e){let l;return s(el,null,ys(l=e.map(ve))?l:{default:()=>[l]})}function Ol(...e){return s("div",{class:"table-grid"},[e.map(l=>s("div",{class:{["row-grid"]:!0,mergeAdjacent:hn[ji.theme].mergeAdjacent}},[l.map(ve)]))])}function hl(e){if(kl(e))return typeof e=="function"?e():typeof e=="string"?s(C,null,[e]):s(e,null,null);const l=e[Pl];return s(l,e[_l](),null)}function VI(...e){let l;return s(el,null,ys(l=e.map(hl))?l:{default:()=>[l]})}function kl(e){return typeof e=="string"?!0:typeof e=="object"?e==null?!1:"render"in e||"component"in e:typeof e=="function"&&e[fn]===!0}function dt(e,l,n){const t=oe(null),a=oe(void 0);function m(u){t.value||(t.value=setInterval(r,250)),a.value=u,n&&(n.value=!0)}function c(){t.value&&(clearInterval(t.value),t.value=null),n&&(n.value=!1)}function r(){l&&l.value?l.value():e&&e.value&&e.value(a.value)}return Ss(c),{start:m,stop:c,handleHolding:r}}function WI(e,l){const n=b(()=>e.filter(t=>d(t.visibility)===wi.Visible&&l(t)));return{firstFeature:b(()=>n.value[0]),collapsedContent:v(()=>ul(...n.value.slice(1))),hasCollapsedContent:b(()=>n.value.length>1)}}function Qn(e,l="div"){const n=rl();return Bi(()=>{n.value=mi(Li(e),l)}),n}function Rl(e,l="div"){const n=rl(null);return Bi(()=>{const t=Li(e);n
|
||
|
x${Ie(d(a.christmas1))} to wood production
|
||
|
`)}]}),rainbow:n({name:"Rainbow Wrapping Paper",id:"rainbow",ratio:{red:{base:gl,exponent:Gl+.2},green:{base:xl,exponent:Fl+.1},blue:{base:gl,exponent:Gl+.2},yellow:{base:gl,exponent:Gl+.2},purple:{base:xl,exponent:Fl+.1},orange:{base:xl,exponent:Fl+.1}},background:"linear-gradient(135deg, rgba(255,0,0,1) 0%, rgba(255,0,0,1) 2%, rgba(255,155,0,1) 14%, rgba(255,155,0,1) 18%, rgba(255,254,0,1) 31%, rgba(255,254,0,1) 35%, rgba(100,244,61,1) 48%, rgba(100,244,61,1) 52%, rgba(70,218,234,1) 64%, rgba(70,218,234,1) 68%, rgba(205,0,210,1) 81%, rgba(205,0,210,1) 85%, rgba(255,0,0,1) 98%, rgba(255,0,0,1) 100%)",listedBoosts:[{desc:b(()=>`
|
||
|
/${Ie(d(a.rainbow1))} to coal buyable cost
|
||
|
`)}]}),jazzy:n({name:"Jazzy Wrapping Paper",id:"jazzy",ratio:{purple:{base:xl*3,exponent:Fl},orange:{base:xl*3,exponent:Fl}},background:"linear-gradient(90deg, rgba(255,177,0,1) 10.8%, rgba(189,69,255,1) 11.1%, rgba(189,69,255,1) 21.9%, rgba(255,177,0,1) 22.2%, rgba(255,177,0,1) 33.0%, rgba(189,69,255,1) 33.3%, rgba(189,69,255,1) 44.1%, rgba(255,177,0,1) 44.4%, rgba(255,177,0,1) 55.2%, rgba(189,69,255,1) 55.5%, rgba(189,69,255,1) 66.3%, rgba(255,177,0,1) 66.6%, rgba(255,177,0,1) 77.4%, rgba(189,69,255,1) 77.7%, rgba(189,69,255,1) 88.5%, rgba(255,177,0,1) 88.8%)",listedBoosts:[{desc:b(()=>`
|
||
|
x${Ie(d(a.jazzy1))} to auto-smelting speed
|
||
|
`)}]}),sunshine:n({name:"Sunshine Wrapping Paper",id:"sunshine",ratio:{red:{base:gl*2,exponent:Gl+.1},yellow:{base:gl*2,exponent:Gl+.1},orange:{base:xl*2,exponent:Fl+.05}},background:"radial-gradient(circle, rgba(238,250,0,1) 16%, rgba(250,157,0,1) 50%, rgba(255,76,76,1) 83%)",listedBoosts:[{desc:b(()=>`
|
||
|
x${Ie(d(a.sunshine1))} to paper production
|
||
|
`)}]}),ocean:n({name:"Ocean Wrapping Paper",id:"ocean",ratio:{blue:{base:gl*2,exponent:Gl+.1},green:{base:xl*2,exponent:Fl+.05},purple:{base:xl*2,exponent:Fl+.05}},background:"linear-gradient(20deg, rgba(0,183,250,0.6) 8%, rgba(0,223,62,0.6) 12%, rgba(0,183,250,0.6) 17%, rgba(0,183,250,0.6) 27%, rgba(124,109,230,0.6) 38%, rgba(0,183,250,0.6) 46%, rgba(0,183,250,0.6) 50%, rgba(0,223,62,0.6) 53%, rgba(0,183,250,0.6) 60%, rgba(124,109,230,0.6) 67%, rgba(0,183,250,0.6) 73%, rgba(0,183,250,0.6) 84%, rgba(0,223,62,0.6) 88%, rgba(0,183,250,0.6) 91%), linear-gradient(340deg, rgba(0,183,250,0.6) 8%, rgba(0,223,62,0.6) 12%, rgba(0,183,250,0.6) 17%, rgba(0,183,250,0.6) 27%, rgba(124,109,230,0.6) 38%, rgba(0,183,250,0.6) 46%, rgba(0,183,250,0.6) 50%, rgba(0,223,62,0.6) 53%, rgba(0,183,250,0.6) 60%, rgba(124,109,230,0.6) 67%, rgba(0,183,250,0.6) 73%, rgba(0,183,250,0.6) 84%, rgba(0,223,62,0.6) 88%, rgba(0,183,250,0.6) 91%)",listedBoosts:[{desc:b(()=>`
|
||
|
/${Ie(d(a.ocean1))} to box buyable cost
|
||
|
`)}]}),beach:n({name:"Beach Wrapping Paper",id:"beach",ratio:{yellow:{base:gl*3,exponent:Gl},blue:{base:gl*3,exponent:Gl}},background:"radial-gradient(circle at 80% 10%, rgba(255,255,76,1) 8%, rgba(0,0,0,0) 21%), linear-gradient(180deg, rgba(0,255,246,1) 60%, rgba(0,255,246,0) 61%), linear-gradient(215deg, rgba(0,93,255,0) 0%, rgba(0,93,255,0) 66%, rgba(255,255,76,1) 68%), linear-gradient(180deg, rgba(0,0,0,0) 68%, rgba(0,93,255,1) 70%), linear-gradient(205deg, rgba(0,255,246,1) 0%, rgba(0,255,246,1) 100%)",listedBoosts:[{desc:b(()=>`
|
||
|
/${Ie(d(a.beach1))} to workshop cost
|
||
|
`)}]})},a={christmas1:b(()=>V.isMastery.value?1:i.add(t.christmas.buyable.amount.value,1)),rainbow1:b(()=>V.isMastery.value?1:i.pow(2,t.rainbow.buyable.amount.value)),jazzy1:b(()=>V.isMastery.value?1:i.add(t.jazzy.buyable.amount.value,1)),sunshine1:b(()=>V.isMastery.value?1:i.add(t.sunshine.buyable.amount.value,1)),ocean1:b(()=>V.isMastery.value?1:i.pow(1.5,t.ocean.buyable.amount.value)),beach1:b(()=>V.isMastery.value?1:i.add(t.beach.buyable.amount.value,1).log10().add(1))},m=vi(b(()=>Object.values(t).map(J=>J.buyable.amount.value).reduce(i.add,0)),"Total Wrapping Paper"),c=x(()=>({display:{requirement:"80 Total Wrapping Paper",effectDisplay:"Unlock a new elf to help with dyes"},shouldEarn:()=>i.gte(m.value,80),onComplete(){V.days[3].recentlyUpdated.value=!0}})),r=b(()=>i.add(V.masteredDays.value,1).times(20).add(140).ceil()),u=Hi(()=>({display:()=>{var J;return{title:`${V.isMastery.value?"Stop Decorating":"Begin Decorating"} ${(J=Object.values(oi).find(W=>{var O;return d(W.mastered)===!1&&!["Elves","Management"].includes(d((O=W==null?void 0:W.name)!=null?O:""))}))==null?void 0:J.name}`,description:v(()=>s(C,null,[s("br",null,null),I("Decorating brings you to a separate version of each day that only allows layers that are decorated or being decorated to work. These days will have a new decoration effect that applies outside of decorating as well."),s("br",null,null),I("You can safely start and stop decorating without losing progress"),V.isMastery.value?null:s(C,null,[s("br",null,null),s("br",null,null),I("Requires "),Ve(r.value),I(" total wrapping paper")])]))}},visibility:()=>p(V.day.value===on),canClick(){return V.isMastery.value||i.gte(m.value,r.value)},onClick(){var W,O;if(!d(u.canClick))return;V.toggleMastery();const J=(O=(W=V.currentlyMastering.value)==null?void 0:W.id)!=null?O:"trees";ge.tabs.includes(J)||V.openDay(J),J==="paper"&&(ye.elves.cuttersElf.bought.value=!0,ye.elves.plantersElf.bought.value=!0,ye.elves.expandersElf.bought.value=!0,ye.elves.heatedCuttersElf.bought.value=!0,ye.elves.heatedPlantersElf.bought.value=!0,ye.elves.fertilizerElf.bought.value=!0)},style:{width:"300px",minHeight:"160px"}})),Z=Pi(()=>({direction:Ue.Right,width:600,height:25,fillStyle:"animation: 15s wrapping-paper-bar linear infinite",textStyle:"color: var(--feature-foreground)",progress:()=>V.day.value===on?i.div(V.masteredDays.value,6):1,display:v(()=>V.day.value===on?s(C,null,[V.masteredDays.value,I("/6 days decorated")]):"")}));return Bi(()=>{V.day.value===on&&i.gte(V.masteredDays.value,6)&&V.showLoreModal.value===!1&&V.completeDay()}),{name:e,day:on,color:l,display:v(()=>s("div",{style:"width: 620px"},[s("div",null,[V.day.value===on?"Decorate 6 previous days to complete the day":`${e} Complete!`]),ve(Z),s(ce,null,null),s(Ti,{resource:m},null),Zi(t.christmas.display,t.rainbow.display,t.jazzy.display),Zi(t.christmas.buyable,t.rainbow.buyable,t.jazzy.buyable),s(ce,null,null),Zi(t.sunshine.display,t.ocean.display,t.beach.display),Zi(t.sunshine.buyable,t.ocean.buyable,t.beach.buyable),s(ce,null,null),ve(u),s(ce,null,null),ve(c)])),wrappingPaper:t,boosts:a,unlockDyeElfMilestone:c,minWidth:700}}),So="workshop",mn=2,ui=Di(So,function(){const e="Workshop",l="#D66B02",n="#D66B02",t=vi(0,"foundation progress"),a=uo(()=>({scaling:bo(Fs(Fs(ps(250,1.5),5423,1/1e10),1e20,3e8),b(()=>j.elfTraining.expandersElfTraining.milestones[2].earned.value?1e3:100)),baseResource:Ne.logs,gainResource:P(t),roundUpCost:!0,spend(Je,ue){Ce.value||(Ne.logs.value=i.sub(Ne.logs.value,ue))},costModifier:Ze(()=>[y(()=>({multiplier:xi.boosts.beach1,description:"Beach Wrapping Paper",enabled:b(()=>i.gt(xi.boosts.beach1.value,1))})),sl(()=>({exponent:1/.99,description:"Holly Level 5",enabled:j.elfTraining.cutterElfTraining.milestones[4].earned}))])})),m=Hi(()=>({display:v(()=>s(C,null,[s("b",{style:"font-size: x-large"},[I("Build "),Ve(a.actualGain.value),I("% of the foundation")," ",s(zl,{hotkey:c},null)]),s("br",null,null),s("br",null,null),s("span",{style:"font-size: large"},[Ce.value?"Requirement":"Cost",I(":")," ",Yn(Ne.logs,i.gte(a.actual
|
||
|
<br/>
|
||
|
<br/>
|
||
|
Cost: 50 ${n.displayName}<br/>${Le(1e11)} ${le.coal.displayName}`}})),_=E(()=>({resource:P(n),cost:1e5,display:{title:"Efficient Drills",description:"Use metal and a bunch of R&D to make drilling stuff faster. Double coal and ore mining speed."},visibility:()=>p(be.depthMilestones[4].earned.value)})),g=De(()=>({resource:P(n),cost(){let ee=new i(this.amount.value);ee=i.pow(.95,k.books.metalBook.totalAmount.value).times(ee);let q=i.pow(1.15,ee).times(10);return j.elfTraining.metalElfTraining.milestones[4].earned.value&&(q=i.div(q,i.add(be.depth.value,1).sqrt())),j.elfTraining.metalElfTraining.milestones[3].earned.value&&(q=i.div(q,10)),q},inverseCost(ee){j.elfTraining.metalElfTraining.milestones[3].earned.value&&(ee=i.mul(ee,10)),j.elfTraining.metalElfTraining.milestones[4].earned.value&&(ee=i.mul(ee,i.add(be.depth.value,1).sqrt()));let q=i.div(ee,10).log(1.15);return q=q.div(i.pow(.95,k.books.metalBook.totalAmount.value)),i.isNaN(q)?i.dZero:q.floor().max(0)},display:{title:"Metal Drill",description:"An automated machine to help you mine more ore, faster",effectDisplay:v(()=>s(C,null,[I("Mine 2.5x faster. Increase ore mining amount by")," ",Re(g.amount.value),I(" ore per operation")]))},visibility:()=>p(i.gte(g.amount.value,1)||i.div(m.value,Z.value).plus(t.value).gte(10)),style:{width:"200px"}})),$=De(()=>({resource:P(n),cost(){let ee=new i(this.amount.value);ee=i.pow(.95,k.books.metalBook.totalAmount.value).times(ee);let q=i.pow(1.15,i.times(ee,10)).times(10);return j.elfTraining.metalElfTraining.milestones[4].earned.value&&(q=i.div(q,i.add(be.depth.value,1).sqrt())),j.elfTraining.metalElfTraining.milestones[3].earned.value&&(q=i.div(q,10)),q},inverseCost(ee){j.elfTraining.metalElfTraining.milestones[3].earned.value&&(ee=i.mul(ee,10)),j.elfTraining.metalElfTraining.milestones[4].earned.value&&(ee=i.mul(ee,i.add(be.depth.value,1).sqrt()));let q=i.div(ee,10).log(1.15).div(10);return q=q.div(i.pow(.95,k.books.metalBook.totalAmount.value)),i.isNaN(q)?i.dZero:q.floor().max(0)},display:{title:"Industrial Crucible",description:"A giant automated crucible furnace, letting you smelt ore faster",effectDisplay:v(()=>s(C,null,[I("Automatically smelts")," ",Re(i.times($.amount.value,10)),I(" ore per second")]))},visibility:()=>p(i.gte($.amount.value,1)||i.gte(g.amount.value,4)||i.gte(m.value,50)),style:{width:"200px"}})),de=o(!0),Ee=De(()=>({resource:le.coal,cost(){let ee=new i(this.amount.value);ee=i.pow(.95,k.books.metalBook.totalAmount.value).times(ee);let q=i.pow(10,ee).times(1e12);return j.elfTraining.metalElfTraining.milestones[4].earned.value&&(q=i.div(q,i.add(be.depth.value,1).sqrt())),j.elfTraining.metalElfTraining.milestones[3].earned.value&&(q=i.div(q,10)),q},inverseCost(ee){j.elfTraining.metalElfTraining.milestones[3].earned.value&&(ee=i.mul(ee,10)),j.elfTraining.metalElfTraining.milestones[4].earned.value&&(ee=i.mul(ee,i.add(be.depth.value,1).sqrt()));let q=i.div(ee,1e12).log(10);return q=q.div(i.pow(.95,k.books.metalBook.totalAmount.value)),i.isNaN(q)?i.dZero:q.floor().max(0)},display:{title:"Hotter Forges",description:"More coal makes the fires burn hotter, getting just a little more metal out of each bit of ore",effectDisplay:v(()=>s(C,null,[I("Gain "),Re(i.times(hi.value,100)),I("% more metal per ore")]))},visibility:()=>p(i.gte(Ee.amount.value,1)||Xe.bought.value),style:{width:"200px"}})),hi=b(()=>i.times(Ee.amount.value,.25));pi.on("update",ee=>{var ai;if(i.lt(V.day.value,ns)||V.isMastery.value&&!Wi.value&&((ai=V.currentlyMastering.value)==null?void 0:ai.name)!==e)return;const q=i.sub(i.times(he.value,F.value),i.sub(r.value,c.value).max(0)),Ke=i.sub(W.value,i.sub(c.value,r.value).max(0));c.value=i.isNaN(q)?0:q,r.value=i.isNaN(Ke)?0:Ke,T.value=i.times(ee,he.value).plus(T.value);const Ye=T.value.trunc();T.value=T.value.minus(Ye),a.value=i.add(a.value,i.times(Ye,F.value)),de.value&&z(i.min(G.value,i.times(W.value,ee)),h.value)});const[Ae,Qe]=tl(()=>[{title:"Auto Smelt Speed",modifier:J,base:0,unit:"/s",visible(){return i.gt($.amount.value,0)||We.value}},{title:"Auto Smelt Multiplier",modifier:O,base:1,vis
|
||
|
margin: 10px 0;"/>${ue}<hr style="
|
||
|
margin: 10px 0;"/>${qe}`:`${Je}<hr style="
|
||
|
margin: 10px 0;"/>${ue}`:Je,n.value=!0},onOpenLayer(){He.value=!1,O(L!=null?L:"trees")},onUnlockLayer(){L&&(re.value=!0,setTimeout(()=>{var g,$;t.value=-1,a.value=d(($=(g=oi[L!=null?L:"trees"])==null?void 0:g.name)!=null?$:""),m.value=Je,ge.autoPause&&(ge.devSpeed=null),n.value=!0},1e3))}}}}})}const X=[h(()=>({day:1,shouldNotify:!1,layer:"trees",symbol:Nt,story:"Oh no! Santa forgot about Christmas and it's only 25 days away! He's asked for your help due to your history getting large quantities of things in short amounts of time. Unfortunately you're really starting from scratch here - let's start with getting wood, which you'll need for everything from building workshops to wrapping paper to many of the toys themselves!",completedStory:"Santa looks at all the wood you've gathered and tells you you've done well! He says you should take the rest of the day off so you're refreshed for tomorrow's work. Good Job!",masteredStory:"As you repeat the basic actions again, you feel like you've learned something that you didn't know the first time around. Santa is impressed at your new knowledge and inspires you to attempt this with more jobs. Great Job!"})),h(()=>({day:2,shouldNotify:!1,layer:"workshop",symbol:Ot,story:"Santa looked over your tree farm and was impressed with how much you could accomplish in just one day. Today's goal is to get a workshop built up for the elves to work in - and apparently, they need quite a lot of space to work!",completedStory:"The workshop complete, Santa once again dismisses you for the day. With a strong foundation, this workshop should suffice for supporting future work toward this impossible mission. Good Job!",masteredStory:"As you attempt to build the workshop again with your newfound experiences and resources, you realize you could have built the workshop a little bit better. As you keep building and building, you realize that you could've built it without wasting any resources. Great Job!"})),h(()=>({day:3,shouldNotify:!1,layer:"coal",symbol:pt,story:"Santa tells you that unfortunately there are quite a few naughty children out there this year, and he's going to need you to gather as much coal as you can for him to give out.",completedStory:"Santa looks at all the coal you've gathered and tells you you've done well! He says you should take the rest of the day off so you're refreshed for tomorrow's work. Good Job!",masteredStory:"It's another typical day, attempting to redo your work again, but this time for coal. While doing this tedious task, an elf comes up to you. It gives you a improved blueprint on how to make small fires. You try it, and you realize that it's a lot more efficent than your old buildings designs. You thank the elf, and resume your work. Great Job!"})),h(()=>({day:4,shouldNotify:!1,layer:"elves",symbol:Wt,story:"Alright, it seems you finally have enough things set up to start bringing in the elves! Unfortunately, it seems they'll need to be retrained on how to help, since they've stopped practicing for 11 months!",completedStory:"The workshop now hums with the bustling elves working on everything. They can take it from here - you deserve a break after such a long day! Good Job!",masteredStory:"This place feels a lot more better, with less naughty elves who are more excited than ever before to do something! As you collapse into a chair thinking of all of your hard work, Santa comes by yet again to congratulate you on your hard work. You feel a pang of jealousy as Santa is taking all the credit for your work, but you decide that saving Christmas is worth it. Great Job!"})),h(()=>({day:5,shouldNotify:!1,layer:"paper",symbol:Ct,story:"With the elves trained, we're almost ready to start working on these presents! Just a couple more pre-reqs first, starting with turning all this wood into wood pulp and finally into paper, which will be required for wrapping paper later on but in the meantime can be used to help write guides which will help these elves continue their education!",completedStory:"You look upon your rivers of book pulp as you hand out
|
||
|
`,"./../../saves/Day 08 Complete.txt":"eyJpZCI6ImFkdmVudC1pbmNyZW1lbnRhbC0yIiwiZGV2U3BlZWQiOjAsIm5hbWUiOiJEZWZhdWx0IFNhdmUiLCJ0YWJzIjpbIm1haW4iLCJjbG90aCJdLCJ0aW1lIjoxNjcwOTY2MDM5MjIwLCJhdXRvc2F2ZSI6dHJ1ZSwib2ZmbGluZVByb2QiOnRydWUsIm9mZmxpbmVUaW1lIjowLCJ0aW1lUGxheWVkIjoxNDQ4MS43NzkwMDAwMDAxMzMsImtlZXBHb2luZyI6ZmFsc2UsIm1vZElEIjoiYWR2ZW50LWluY3JlbWVudGFsIiwibW9kVmVyc2lvbiI6IjAuNSIsImxheWVycyI6eyJtYWluIjp7Im1pbmltaXplZCI6ZmFsc2UsImRheXMiOnsiMCI6eyJvcGVuZWQiOnRydWUsInJlY2VudGx5VXBkYXRlZCI6ZmFsc2V9LCIxIjp7Im9wZW5lZCI6dHJ1ZSwicmVjZW50bHlVcGRhdGVkIjpmYWxzZX0sIjIiOnsib3BlbmVkIjp0cnVlLCJyZWNlbnRseVVwZGF0ZWQiOmZhbHNlfSwiMyI6eyJvcGVuZWQiOnRydWUsInJlY2VudGx5VXBkYXRlZCI6ZmFsc2V9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WxzZSwiY29hbCI6IjEuMTk4OTU3MzM0NjIxNDA0NmUzMiIsInRvdGFsQ29hbCI6IjEuMjUxNTEwMDAxODAxODUzNWUzMyIsImFzaCI6IjcuMDYxODA2ODk2OTU1NDQ3NWUxNiIsImFjdGl2ZUZpcmVzIjoiMCIsImJ1
|
||
|
${D}
|
||
|
${F}`)}}return Z[w]}Jl(n,w=>{w&&Object.keys(Z).forEach(F=>delete Z[F])});const W=b(()=>ji.saves.reduce((w,F)=>(w[F]=J(F),w),{}));function O(w){let F;switch(ge.id===w?F=nt(ge[gi]):F=JSON.stringify(W.value[w]),ci.exportEncoding){default:console.warn(`Unknown save encoding: ${ci.exportEncoding}. Defaulting to lz`);case"lz":F=Ul.compressToUTF16(F);break;case"base64":F=btoa(unescape(encodeURIComponent(F)));break;case"plain":break}const D=document.createElement("textarea");D.value=F,document.body.appendChild(D),D.select(),D.setSelectionRange(0,99999),document.execCommand("copy"),document.body.removeChild(D)}function h(w){ge.id===w&&Ki();const F={...W.value[w],id:Fn()};Ki(F),ji.saves.push(F.id)}function X(w){ji.saves=ji.saves.filter(F=>F!==w),localStorage.removeItem(w),Z[w]=void 0}function G(w){W.value[ge.id].time=ge.time,Ki(),Z[ge.id]=void 0,nn(W.value[w]),Z[w]=void 0}function U(w){if(c.value=w,sn(()=>{c.value=null}),w[0]!=="{")if(w[0]==="e")w=decodeURIComponent(escape(atob(w)));else if(w[0]==="\u1BE1")w=Ul.decompressFromUTF16(w);else{console.warn("Unable to determine preset encoding",w);return}const F=JSON.parse(w);F.id=Fn(),Ki(F),ji.saves.push(F.id),G(F.id)}function z(w,F){const D=W.value[w];D&&(D.name=F,ge.id===w?(ge.name=F,Ki()):(Ki(D),Z[w]=void 0))}return(w,F)=>(N(),Fe(Gi,{modelValue:n.value,"onUpdate:modelValue":F[4]||(F[4]=D=>n.value=D),ref_key:"modal",ref:t},{header:Ge(()=>[Dd]),body:Ge(({shown:D})=>[D?(N(),Fe(d(_t),{key:0,list:d(ji).saves,handle:".handle",itemKey:he=>he},{item:Ge(({element:he})=>[s(Ud,{save:d(W)[he],onOpen:T=>G(he),onExport:T=>O(he),onEditName:T=>z(he,T),onDuplicate:T=>h(he),onDelete:T=>X(he)},null,8,["save","onOpen","onExport","onEditName","onDuplicate","onDelete"])]),_:1},8,["list","itemKey"])):ne("",!0)]),footer:Ge(()=>[f("div",Ed,[s(xt,{modelValue:m.value,"onUpdate:modelValue":F[0]||(F[0]=D=>m.value=D),title:"Import Save",placeholder:"Paste your save here!",class:Oi({importingFailed:a.value})},null,8,["modelValue","class"]),f("div",Ad,[Bd,f("div",Pd,[f("button",{class:"button",onClick:F[1]||(F[1]=D=>G(d(Zn)().id))},"New Game"),Object.keys(d(u)).length>0?(N(),Fe(Ws,{key:0,options:d(u),modelValue:c.value,"onUpdate:modelValue":F[2]||(F[2]=D=>U(D)),closeOnSelect:"",placeholder:"Select preset",class:"presets"},null,8,["options","modelValue"])):ne("",!0)])]),f("div",_d,[qd,f("button",{class:"button modal-default-button",onClick:F[3]||(F[3]=D=>n.value=!1)}," Close ")])])]),_:1},8,["modelValue"]))}});var Gt=ri($d,[["__scopeId","data-v-3b9991aa"]]);const al=e=>(Sl("data-v-8495e562"),e=e(),Hl(),e),Kd=["src","alt"],ec={key:1,class:"title"},ic=al(()=>f("div",{style:{"flex-grow":"1",cursor:"unset"}},null,-1)),lc={class:"discord"},nc={class:"discord-links"},sc={key:0},tc=["href"],ac=al(()=>f("li",null,[f("a",{href:"https://discord.gg/WzejVAx",target:"_blank"},"The Paper Pilot Community")],-1)),Ic=al(()=>f("li",null,[f("a",{href:"https://discord.gg/F3xveHV",target:"_blank"},"The Modding Tree")],-1)),oc={href:"https://forums.moddingtree.com/",target:"_blank"},mc=al(()=>f("span",{class:"material-icons"},"forum",-1)),dc=al(()=>f("span",{class:"material-icons"},"info",-1)),cc=al(()=>f("span",{class:"material-icons"},"library_books",-1)),rc=al(()=>f("span",{class:"material-icons"},"settings",-1)),uc=al(()=>f("span",{class:"material-icons"},"library_books",-1)),bc=al(()=>f("span",{class:"material-icons"},"settings",-1)),Zc=al(()=>f("span",{class:"material-icons"},"info",-1)),yc={href:"https://forums.moddingtree.com/",target:"_blank"},pc=al(()=>f("span",{class:"material-icons"},"forum",-1)),Vc={class:"discord"},Wc={class:"discord-links"},hc={key:0},Jc=["href"],jc=al(()=>f("li",null,[f("a",{href:"https://discord.gg/WzejVAx",target:"_blank"},"The Paper Pilot Community")],-1)),vc=al(()=>f("li",null,[f("a",{href:"https://discord.gg/F3xveHV",target:"_blank"},"The Modding Tree")],-1)),Cc=Se({__name:"Nav",setup(e){const l=oe(null),n=oe(null),t=oe(null),a=oe(null),{useHeader:m,banner:c,title:r,discordName:u,discordLink:Z,versionNumber:J}=ci;function W(){window.open(Z,"mywindow")}return(O,h)=>(N(),H(C,null,[d(m)?(N(),H("div",t
|
||
|
Learn more at www.moddingtree.com`,"font-weight: bold; font-size: 24px; color: #A3BE8C; background: #2E3440; padding: 4px 8px; border-radius: 8px;","padding: 4px;"),await dI();const{globalBus:e}=await Sn(()=>Promise.resolve().then(function(){return Ba}),void 0),{startGameLoop:l}=await Sn(()=>import("./gameLoop.32f7e710.js"),["assets/gameLoop.32f7e710.js","assets/@fontsource.c175eac8.css","assets/vue.92681fcb.js","assets/lz-string.731cedc5.js","assets/@vue.4ce677c2.js","assets/nanoevents.1080beb7.js","assets/is-plain-object.906d88e8.js","assets/vue-next-select.a2bfab1d.js","assets/vue-next-select.9e6f4164.css","assets/vue-toastification.6f567382.js","assets/vue-toastification.4b5f8ac8.css","assets/vuedraggable.7949458c.js","assets/sortablejs.29100d8a.js","assets/vue-textarea-autosize.35804eaf.js","assets/workbox-window.8d14e8b7.js"]),n=window.vue=Et(ar);e.emit("setupVue",n),n.mount("#app"),sn(()=>{const t=Ls(),{updateServiceWorker:a}=or({onNeedRefresh(){t.info("New content available, click here to update.",{timeout:!1,closeOnClick:!1,draggable:!1,icon:{iconClass:"material-icons",iconChildren:"refresh",iconTag:"i"},rtl:!1,onClick(){a()}})},onOfflineReady(){t.info("App ready to work offline")},onRegisterError:console.warn,onRegistered(m){m&&setInterval(()=>m.update(),60*60*1e3)}})}),l()});export{i as D,Sn as _,zi as a,ci as b,Zm as c,pi as g,Zs as l,ge as p,ji as s};
|