/* empty css */import"./vue.92681fcb.js";import{Zasb,laswi,aaasYe,tasD,ayasOn,arasAl,aEasJ,a0asF,aKasrl,a1asV,Oasw,aGashn,AasRi,_asve,a8ast,b6ashe,b8asgn,bsasJs,Casm,aqasBl,buasdn,bbasYn,Tasht,a7aso,uasNn,jasVt,bvasLn,qasbn,b1asqi,Gashi,aCasfs,wasnl,b2asAi,aoasWt,Iaspi,aNasbi,$asA,JasRe,aHaskl,aFasRl,zasul,alasvn,aLaszl,Hasvt,aJasCs,bnasjt,brasJt,beasft}from"./@vue.4ce677c2.js";import{casws}from"./nanoevents.1080beb7.js";import{LasMl}from"./lz-string.731cedc5.js";import{iasCt}from"./is-plain-object.906d88e8.js";import{Yaswt}from"./vue-next-select.a2bfab1d.js";import{sasOt,uasOs}from"./vue-toastification.6f567382.js";import{Dasgt}from"./vuedraggable.7949458c.js";import{pasYt}from"./vue-textarea-autosize.35804eaf.js";import{vasNt,nasXt}from"./workbox-window.8d14e8b7.js";import"./sortablejs.29100d8a.js";constMt=function(){consti=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(constaofdocument.querySelectorAll('link[rel="modulepreload"]'))s(a);newMutationObserver(a=>{for(constIofa)if(I.type==="childList")for(constdofI.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&s(d)}).observe(document,{childList:!0,subtree:!0});functionn(a){constI={};returna.integrity&&(I.integrity=a.integrity),a.referrerpolicy&&(I.referrerPolicy=a.referrerpolicy),a.crossorigin==="use-credentials"?I.credentials="include":a.crossorigin==="anonymous"?I.credentials="omit":I.credentials="same-origin",I}functions(a){if(a.ep)return;a.ep=!0;constI=n(a);fetch(a.href,I)}};Mt();constxt="modulepreload",os={},Gt="./",jn=function(i,n){return!n||n.length===0?i():Promise.all(n.map(s=>{if(s=`${Gt}${s}`,sinos)return;os[s]=!0;consta=s.endsWith(".css"),I=a?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${s}"]${I}`))return;constd=document.createElement("link");if(d.rel=a?"stylesheet":xt,a||(d.as="script",d.crossOrigin=""),d.href=s,document.head.appendChild(d),a)returnnewPromise((r,c)=>{d.addEventListener("load",r),d.addEventListener("error",()=>c(newError(`Unable to preload CSS for ${s}`)))})})).then(()=>i())},Ft="./projInfo-schema.json",zt="Advent Incremental",kt="An incremental game you play a day at a time, leading up to Christmas!",Rt="advent-incremental",St="thepaperpilot and friends",Ht="",Lt="",Qt="0.5",Tt="Initial Commit",Ut=!0,Et=!1,At=2,Bt=!0,Dt=null,_t="",Pt=["main"],qt=3600,$t=0,Kt=!0,ea="base64";varPe={$schema:Ft,title:zt,description:kt,id:Rt,author:St,discordName:Ht,discordLink:Lt,versionNumber:Qt,versionTitle:Tt,allowGoBack:Ut,defaultShowSmall:Et,defaultDecimalsShown:At,useHeader:Bt,banner:Dt,logo:_t,initialTabs:Pt,maxTickLength:qt,offlineLimit:$t,enablePausing:Kt,exportEncoding:ea};constFn=17,ia=9e15,la=Math.log10(9e15),na=1/9e15,sa=308,ta=-324,Is=5,aa=function(){conste=[];for(letn=ta+1;n<=sa;n++)e.push(Number("1e"+n));consti=323;returnfunction(n){returne[n+i]}}(),Tl=[2,Math.E,3,4,5,6,7,8,9,10],oa=[[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.167090535
`))||""}function xe(e){const i=wi(e)?e:D(e);i[_n]=i,i[Gl]=wi(e)?e.value:e,i[Cn]=Qa(),i[Ls]=!1;const n=b({get(){return i.value},set(s){i.value=s}});return n[Gl]=i[Gl],i[cn]=n,i[mn]=void 0,ml.length===0?console.warn("Creating a persistent ref outside of a layer. This is not officially supported",i,`
`+c[Cn]);return}ql[e.id].delete(c);const u=[e.id,...I,r];c[mn]!=null&&JSON.stringify(u)!==JSON.stringify(c[mn])&&console.error(`Persistentrefisbeingsavedto\`${u.join(".")}\` when it's already present at \`${c[mn].join(".")}\`. This can cause unexpected behavior when loading saves between updates.`,c),c[mn]=u;consth=I.reduce((W,y)=>(yinW||(W[y]={}),W[y]),i),v=h[r];h[r]=c[_n],Vt(h)?v!=null?h[r]=v:h[r]=c[Gl]:v!=null?h[r].value=v:h[r].value=c[Gl]}else!(cinstanceofl)&&!wi(c)&&!n.includes(c)&&(typeofc.type=="symbol"&&n.push(c),s(c,[...I,r])&&(Ln(c)&&!Ln(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.",Wiina?a[Wi]:a,r):d=!0))}),d};s(e[Wi]),ql[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,`
`)}]})},a={christmas1:b(()=>l.add(s.christmas.buyable.amount.value,1)),rainbow1:b(()=>l.pow(2,s.rainbow.buyable.amount.value)),jazzy1:b(()=>l.ln(l.add(l.ln(l.add(s.jazzy.buyable.amount.value,1)),1))),sunshine1:b(()=>l.add(s.sunshine.buyable.amount.value,1)),ocean1:b(()=>l.pow(1.5,s.ocean.buyable.amount.value)),beach1:b(()=>l.add(s.beach.buyable.amount.value,1))},I=yi(b(()=>Object.values(s).map(H=>H.buyable.amount.value).reduce(l.add,0)),"Total Wrapping Paper"),d=D(!1),r=j(()=>t(Oi,{modelValue:d.value,"onUpdate:modelValue":H=>d.value=H},{header:()=>t("h2",null,[e,o(" Modifiers")]),body:c})),[c,u]=al(()=>[]),{total:h,trackerDisplay:v}=Vl({resource:I,goal:1e20,name:e,day:wI,color:i,textColor:"var(--feature-foreground)",modal:{show:d,display:r},ignoreTotal:!0}),W=[6,12,18,24,30,36],y=X(()=>({display:{requirement:W[0]+" Total Wrapping Paper",effectDisplay:"Double primary colour dye gain"},shouldEarn:()=>l.gte(h.value,W[0]),visibility:()=>Z(!0)})),Y=X(()=>({display:{requirement:W[1]+" Total Wrapping Paper",effectDisplay:"Double secondary colour dye gain"},shouldEarn:()=>l.gte(h.value,W[1]),visibility:()=>Z(y.earned.value)})),x=X(()=>({display:{requirement:W[2]+" Total Wrapping Paper",effectDisplay:"Buy maximum primary colour dyes"},shouldEarn:()=>l.gte(h.value,W[2]),visibility:()=>Z(Y.earned.value)})),M=X(()=>({display:{requirement:W[3]+" Total Wrapping Paper",effectDisplay:"Secondary colour dyes don't spend primary colour dyes"},shouldEarn:()=>l.gte(h.value,W[3]),visibility:()=>Z(x.earned.value)})),B=X(()=>({display:{requirement:W[4]+" Total Wrapping Paper",effectDisplay:"Buy maximum secondary colour dyes"},shouldEarn:()=>l.gte(h.value,W[4]),visibility:()=>Z(M.earned.value)})),O=X(()=>({display:{requirement:W[5]+" Total Wrapping Paper",effectDisplay:"Unlock a new elf to help with dyes"},shouldEarn:()=>l.gte(h.value,W[5]),visibility:()=>Z(B.earned.value)})),f={primaryBoost:y,secondaryBoost:Y,buyMaxPrimary:x,secondaryNoReset:M,buyMaxSecondary:B,unlockDyeElf:O},{collapseMilestones:z,display:_}=nn(f);return{name:e,display:j(()=>t("div",{style:"width: 620px"},[ce(v),t(zi,{resource:I},null),ni(s.christmas.display,s.rainbow.display,s.jazzy.display),ni(s.christmas.buyable,s.rainbow.buyable,s.jazzy.buyable),t(We,null,null),ni(s.sunshine.display,s.ocean.display,s.beach.display),ni(s.sunshine.buyable,s.ocean.buyable,s.beach.buyable),t(We,null,null),o("button goes here"),t(We,null,null),_()])),wrappingPaper:s,totalWrappingPaper:h,generalTabCollapsed:u,boosts:a,milestones:f,collapseMilestones:z}}),OI="workshop",an=2,ai=Ti(OI,function(){const e="Workshop",i="#D66B02",n="#D66B02",s=yi(0,"foundation progress"),a=II(()=>({scaling:Zs(Zs(Kn(250,1.5),5387,1/1e10),1e20,3e8),baseResource:re.logs,gainResource:R(s),roundUpCost:!0,spend(ue,je){re.logs.value=l.sub(re.logs.value,je)},costModifier:$(()=>[p(()=>({multiplier:b(()=>ki.boosts.beach1.value),description:"Beach Wrapping Paper",enabled:b(()=>l.gt(ki.boosts.beach1.value,1))})),ll(()=>({exponent:.95,description:"Holly Level 5",enabled:N.elfTraining.cutterElfTraining.milestones[4].earned}))])})),I=Qi(()=>({display:j(()=>t(w,null,[t("b",{style:"font-size: x-large"},[o("Build "),ee(a.actualGain.value),o("% of the foundation")]),t("br",null,null),t("br",null,null),t("span",{style:"font-size: large"},[o("Cost:")," ",pn(re.logs,l.gte(a.actualGain.value,1)?a.currentAt.value:a.nextAt.value)," ",re.logs.displayName])])),visibility:()=>Z(l.lt(s.value,100)||N.elfTraining.expandersElfTraining.milestones[2].earned.value),canClick:()=>l.gte(re.logs.value,a.currentAt.value)&&(l.lt(s.value,100)||N.elfTraining.expandersElfTraining.milestones[2].earned.value),onClick(){!m(this.canClick)||a.convert()},style:"width: 600px; min-height: unset"})),d=Kl(()=>({key:"w",description:"Build part of the foundation.",onPress:()=>{I.canClick.value&&I.onClick()}})),r=b(()=>!Me.milestones[6].earned.value),c=X(()=>({display:{requirement:"1% Foundation Completed",effectDisplay:"Trees give 5% more logs for each % of foundation completed"},shouldEarn:()=>l.gte(s.value,1),showPopups:r})),u=X(()=>({display:{req
Cost:50${n.displayName}<br/>${fe(1e11)}${E.coal.displayName}`}})),K=S(()=>({resource:R(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:()=>Z(Ie.depthMilestones[4].earned.value)})),oe=ke(()=>({resource:R(n),cost(){let q=new l(this.amount.value);q=l.pow(.95,Q.books.metalBook.totalAmount.value).times(q);let te=l.pow(1.15,q).times(10);return N.elfTraining.clothElfTraining.milestones[4].earned.value&&(te=l.div(te,l.add(Ie.depth.value,1).sqrt())),te},display:{title:"Metal Drill",description:"An automated machine to help you mine more ore, faster",effectDisplay:j(()=>t(w,null,[o("Mine 2.5x faster. Increase ore mining amount by")," ",ge(oe.amount.value),o(" ore per operation")]))},visibility:()=>Z(l.gte(oe.amount.value,1)||l.div(I.value,r.value).plus(s.value).gte(10)),style:{width:"200px"}})),Ve=ke(()=>({resource:R(n),cost(){let q=new l(this.amount.value);q=l.pow(.95,Q.books.metalBook.totalAmount.value).times(q);let te=l.pow(1.15,l.times(q,10)).times(10);return N.elfTraining.clothElfTraining.milestones[4].earned.value&&(te=l.div(te,l.add(Ie.depth.value,1).sqrt())),te},display:{title:"Industrial Crucible",description:"A giant automated crucible furnace, letting you smelt ore faster",effectDisplay:j(()=>t(w,null,[o("Automatically smelts")," ",ge(l.times(Ve.amount.value,10)),o(" ore per second")]))},visibility:()=>Z(l.gte(Ve.amount.value,1)||l.gte(oe.amount.value,4)||l.gte(I.value,50)),style:{width:"200px"}})),Je=xe(!0),qe=ke(()=>({resource:E.coal,cost(){let q=new l(this.amount.value);q=l.pow(.95,Q.books.metalBook.totalAmount.value).times(q);let te=l.pow(10,q).times(1e12);return N.elfTraining.clothElfTraining.milestones[4].earned.value&&(te=l.div(te,l.add(Ie.depth.value,1).sqrt())),te},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:j(()=>t(w,null,[o("Gain "),ge(l.times(Ee.value,100)),o("% more metal per ore")]))},visibility:()=>Z(l.gte(qe.amount.value,1)||Ze.bought.value),style:{width:"200px"}})),Ee=b(()=>l.times(qe.amount.value,.25));Ii.on("update",q=>{z.value=l.times(q,f.value).plus(z.value);const te=z.value.trunc();z.value=z.value.minus(te),a.value=l.add(a.value,l.times(te,B.value)),Je.value&&x(l.min(y.value,l.times(u.value,q)),v.value)});const[$e,Be]=al(()=>[{title:"Auto Smelt Speed",modifier:c,base:0,unit:"/s",visible(){return l.gt(Ve.amount.value,0)}},{title:"Auto Smelt Multiplier",modifier:h,base:1,visible(){return l.gt(v.value,1)}},{title:"Metal per Ore",modifier:d,base:.1},{title:"Ore per Mining Operation",modifier:M,base:1},{title:"Mining Speed",modifier:O,base:.1,unit:"/s"}]),Ge=D(!1),Ke=j(()=>t(Oi,{modelValue:Ge.value,"onUpdate:modelValue":q=>Ge.value=q},{header:()=>t("h2",null,[e,o(" Modifiers")]),body:$e})),{total:Qe,trackerDisplay:se}=Vl({resource:n,goal:25e3,name:e,day:hs,color:i,modal:{show:Ge,display:Ke}});return{name:e,day:hs,color:i,ore:a,bestOre:I,oreProgress:z,metal:n,bestMetal:s,totalMetal:Qe,simplePickaxe:Ce,doublePickaxe:be,crucible:we,coalDrill:Ne,industrialFurnace:Ze,efficientDrill:K,oreDrill:oe,industrialCrucible:Ve,autoSmeltEnabled:Je,hotterForge:qe,generalTabCollapsed:Be,minWidth:700,display:j(()=>t(w,null,[ce(se),t(We,null,null),t(zi,{resource:n,color:i,style:"margin-bottom: 0",sticky:!1,productionDisplay:j(()=>t(w,null,[Je.value&&l.gte(Ve.amount.value,1)?`+${xs([[u.value,"smelting speed"],[ae.value,"ore gain"],[l.div(E.computedCoalGain.value,W),"coal gain"]],"/s",l.mul(r.value,v.value))}`:void 0]))},null),t(We,null,null),ce(Y),l.gte(Ve.amount.value,1)?t("div",{style:{width:"150px"}},[t(hl,{title:"Auto Smelt",modelValue:Je.value,"onUpdate:modelValue":q=>Je.value=q},null)]):void 0,t(We,null,null),t(zi,{resource:a,color:i,style:"margin-bottom: 0",sticky:!1,productionDisplay:j(()=>t(w,null,[Gs(je.value)]))},null),t(We,null,null),t("div",null,[o("Currently mining "),fe(B.value),o(" ore every")," ",fe(l.recip(f.value)),o(" seconds")]),ce(H),t(We,null,null),ni(Ce,be,we,N
margin:10px0;"/>${_}`:z,n.value=!0},onOpenLayer(){if(H.value=!1,window.matchMedia("(min-width:1468px)").matches)if(pe.tabs.includes(M!=null?M:"trees")){const T=pe.tabs.lastIndexOf(M!=null?M:"trees");pe.tabs.splice(T,1)}else pe.tabs.push(M!=null?M:"trees"),k.minimized.value=!0;else pe.tabs.splice(1,1/0,M!=null?M:"trees");xi[M!=null?M:"trees"].minimized.value=!1},onUnlockLayer(){M&&(O.value=!0,setTimeout(()=>{var T,ae;s.value=-1,a.value=m((ae=(T=xi[M!=null?M:"trees"])==null?void 0:T.name)!=null?ae:""),I.value=z,pe.autoPause&&(pe.devSpeed=null),n.value=!0},1e3))}}}}})}const r=[d(()=>({day:1,shouldNotify:!1,layer:"trees",symbol:$s,story:"Ohno!SantaforgotaboutChristmasandit's only 25 days away! He'saskedforyourhelpduetoyourhistorygettinglargequantitiesofthingsinshortamountsoftime.Unfortunatelyyou're really starting from scratch here - let'sstartwithgettingwood,whichyou'll need for everything from building workshops to wrapping paper to many of the toys themselves!",completedStory:"Santa looks at all the wood you'vegatheredandtellsyouyou've done well! He says you should take the rest of the day off so you'rerefreshedfortomorrow's work. Good Job!"})),d(()=>({day:2,shouldNotify:!1,layer:"workshop",symbol:Ks,story:"Santa looked over your tree farm and was impressed with how much you could accomplish in just one day. Today'sgoalistogetaworkshopbuiltupfortheelvestoworkin-andapparently,theyneedquitealotofspacetowork!",completedStory:"Theworkshopcomplete,Santaonceagaindismissesyoufortheday.Withastrongfoundation,thisworkshopshouldsufficeforsupportingfutureworktowardthisimpossiblemission.GoodJob!"})),d(()=>({day:3,shouldNotify:!1,layer:"coal",symbol:et,story:"Santatellsyouthatunfortunatelytherearequiteafewnaughtychildrenouttherethisyear,andhe'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'vegatheredandtellsyouyou've done well! He says you should take the rest of the day off so you'rerefreshedfortomorrow's work. Good Job!"})),d(()=>({day:4,shouldNotify:!1,layer:"elves",symbol:it,story:"Alright, it seems you finally have enough things set up to start bringing in the elves! Unfortunately, it seems they'llneedtoberetrainedonhowtohelp,sincethey'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!"})),d(()=>({day:5,shouldNotify:!1,layer:"paper",symbol:lt,story:"With the elves trained, we'realmostreadytostartworkingonthesepresents!Justacouplemorepre-reqsfirst,startingwithturningallthiswoodintowoodpulpandfinallyintopaper,whichwillberequiredforwrappingpaperlateronbutinthemeantimecanbeusedtohelpwriteguideswhichwillhelptheseelvescontinuetheireducation!",completedStory:"Youlookuponyourriversofbookpulpasyouhandoutstacksofpaperstoelvestoreadthrough.You've continued getting closer and closer to preparing for Christmas, and can go to bed satisfied with your progress. Good Job!"})),d(()=>({day:6,shouldNotify:!1,layer:"boxes",symbol:nt,story:"You watch all these elves carrying incredibly large loads just in their open elf-sized hands, and realize there'sprobablyabetterway.Youneedtoputthetoysinboxesanyways,sowhydon't we get started working on those so the workers can take advantage as well?",completedStory:"Wow, those boxes are really convenient! The workshop feels more and more proper with every day. You tick another requirement on your list and start looking towards tomorrow. Good Job!"})),d(()=>({day:7,shouldNotify:!1,layer:"metal",symbol:st,story:"You woke up ready to make some toys, before realizing most toys these days are made out of more than just wood! You'resureyou're close to really getting to work, but there'safewmorematerialsyou'regoingtoneed-likemetal!Lo
${f}`)}}return u[O]}qi(n,O=>{O&&Object.keys(u).forEach(f=>delete u[f])});const v=b(()=>ci.saves.reduce((O,f)=>(O[f]=h(f),O),{}));function W(O){let f;switch(pe.id===O?f=Ts(pe[Wi]):f=JSON.stringify(v.value[O]),Pe.exportEncoding){default:console.warn(`Unknownsaveencoding:${Pe.exportEncoding}.Defaultingtolz`);case"lz":f=Ml.compressToUTF16(f);break;case"base64":f=btoa(unescape(encodeURIComponent(f)));break;case"plain":break}const z=document.createElement("textarea");z.value=f,document.body.appendChild(z),z.select(),z.setSelectionRange(0,99999),document.execCommand("copy"),document.body.removeChild(z)}function y(O){pe.id===O&&Pi();const f={...v.value[O],id:Wn()};Pi(f),ci.saves.push(f.id)}function Y(O){ci.saves=ci.saves.filter(f=>f!==O),localStorage.removeItem(O),u[O]=void 0}function x(O){v.value[pe.id].time=pe.time,Pi(),u[pe.id]=void 0,El(v.value[O]),u[O]=void 0}function M(O){if(d.value=O,Al(()=>{d.value=null}),O[0]!=="{")if(O[0]==="e")O=decodeURIComponent(escape(atob(O)));else if(O[0]==="\u1BE1")O=Ml.decompressFromUTF16(O);else{console.warn("Unable to determine preset encoding",O);return}const f=JSON.parse(O);f.id=Wn(),Pi(f),ci.saves.push(f.id),x(f.id)}function B(O,f){const z=v.value[O];z&&(z.name=f,pe.id===O?(pe.name=f,Pi()):(Pi(z),u[O]=void 0))}return(O,f)=>(J(),ve(Oi,{modelValue:n.value,"onUpdate:modelValue":f[4]||(f[4]=z=>n.value=z),ref_key:"modal",ref:s},{header:he(()=>[Zd]),body:he(({shown:z})=>[z?(J(),ve(m(gt),{key:0,list:m(ci).saves,handle:".handle",itemKey:_=>_},{item:he(({element:_})=>[t(bd,{save:m(v)[_],onOpen:H=>x(_),onExport:H=>W(_),onEditName:H=>B(_,H),onDuplicate:H=>y(_),onDelete:H=>Y(_)},null,8,["save","onOpen","onExport","onEditName","onDuplicate","onDelete"])]),_:1},8,["list","itemKey"])):A("",!0)]),footer:he(()=>[V("div",pd,[t(ct,{modelValue:I.value,"onUpdate:modelValue":f[0]||(f[0]=z=>I.value=z),title:"Import Save",placeholder:"Paste your save here!",class:hi({importingFailed:a.value})},null,8,["modelValue","class"]),V("div",yd,[hd,V("div",Vd,[V("button",{class:"button",onClick:f[1]||(f[1]=z=>x(m($l)().id))},"New Game"),Object.keys(m(c)).length>0?(J(),ve(es,{key:0,options:m(c),modelValue:d.value,"onUpdate:modelValue":f[2]||(f[2]=z=>M(z)),closeOnSelect:"",placeholder:"Select preset",class:"presets"},null,8,["options","modelValue"])):A("",!0)])]),V("div",Wd,[vd,V("button",{class:"button modal-default-button",onClick:f[3]||(f[3]=z=>n.value=!1)}," Close ")])])]),_:1},8,["modelValue"]))}});var ut=si(jd,[["__scopeId","data-v-3b9991aa"]]);const $i=e=>(kl("data-v-8495e562"),e=e(),Rl(),e),Jd=["src","alt"],fd={key:1,class:"title"},Cd=$i(()=>V("div",{style:{"flex-grow":"1",cursor:"unset"}},null,-1)),wd={class:"discord"},Od={class:"discord-links"},gd={key:0},Yd=["href"],Nd=$i(()=>V("li",null,[V("a",{href:"https://discord.gg/WzejVAx",target:"_blank"},"The Paper Pilot Community")],-1)),Xd=$i(()=>V("li",null,[V("a",{href:"https://discord.gg/F3xveHV",target:"_blank"},"The Modding Tree")],-1)),Md={href:"https://forums.moddingtree.com/",target:"_blank"},xd=$i(()=>V("span",{class:"material-icons"},"forum",-1)),Gd=$i(()=>V("span",{class:"material-icons"},"info",-1)),Fd=$i(()=>V("span",{class:"material-icons"},"library_books",-1)),zd=$i(()=>V("span",{class:"material-icons"},"settings",-1)),kd=$i(()=>V("span",{class:"material-icons"},"library_books",-1)),Rd=$i(()=>V("span",{class:"material-icons"},"settings",-1)),Sd=$i(()=>V("span",{class:"material-icons"},"info",-1)),Hd={href:"https://forums.moddingtree.com/",target:"_blank"},Ld=$i(()=>V("span",{class:"material-icons"},"forum",-1)),Qd={class:"discord"},Td={class:"discord-links"},Ud={key:0},Ed=["href"],Ad=$i(()=>V("li",null,[V("a",{href:"https://discord.gg/WzejVAx",target:"_blank"},"The Paper Pilot Community")],-1)),Bd=$i(()=>V("li",null,[V("a",{href:"https://discord.gg/F3xveHV",target:"_blank"},"The Modding Tree")],-1)),Dd=Ye({__name:"Nav",setup(e){const i=D(null),n=D(null),s=D(null),a=D(null),{useHeader:I,banner:d,title:r,discordName:c,discordLink:u,versionNumber:h}=Pe;function v(){window.open(u,"mywindow")}return(W,y)=>(J(),F(w,null,[m(I)?(J(),F("div",Bl({key:0,class:
Learnmoreatwww.moddingtree.com`,"font-weight: bold; font-size: 24px; color: #A3BE8C; background: #2E3440; padding: 4px 8px; border-radius: 8px;","padding: 4px;"),await Ua();const{globalBus:e}=await jn(()=>Promise.resolve().then(function(){return Oa}),void 0),{startGameLoop:i}=await jn(()=>import("./gameLoop.2c7168f0.js"),["assets/gameLoop.2c7168f0.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=ft(Nr);e.emit("setupVue",n),n.mount("#app"),Al(()=>{const s=Os(),{updateServiceWorker:a}=Mr({onNeedRefresh(){s.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(){s.info("App ready to work offline")},onRegisterError:console.warn,onRegistered(I){I&&setInterval(()=>I.update(),60*60*1e3)}})}),i()});export{l as D,jn as _,fi as a,Pe as b,TI as c,Ii as g,Pn as l,pe as p,ci as s};