pages/advent/assets/index.cd502768.js

17 lines
168 KiB
JavaScript
Raw Normal View History

/* empty css */import"./vue.92681fcb.js";import{Z as N,l as xe,u as En,q as pn,C as o,b1 as st,aa as G,aE as y,a0 as M,a1 as f,aK as rt,G as Ce,t as D,aC as gi,w as Ze,b2 as Oe,a8 as r,O as F,ao as rs,I as Se,ay as Bn,ar as Ut,aG as _n,A as Te,_ as Q,b6 as V,b8 as xn,bs as vi,aq as Vt,bu as un,bb as Pn,T as us,a7 as h,j as cs,bv as oi,J as W,$ as B,aH as vt,aF as yt,z as lt,aN as Ne,al as Cn,aL as St,H as ds,aJ as yi,bn as ms,br as fs,be as ps}from"./@vue.4ce677c2.js";import{i as hs}from"./is-plain-object.906d88e8.js";import{c as bi}from"./nanoevents.1080beb7.js";import{L as kt}from"./lz-string.731cedc5.js";import{Y as gs}from"./vue-next-select.a2bfab1d.js";import{s as vs,u as _i}from"./vue-toastification.6f567382.js";import{D as ys}from"./vuedraggable.7949458c.js";import{p as bs}from"./vue-textarea-autosize.35804eaf.js";import{v as _s,n as ws}from"./workbox-window.8d14e8b7.js";import"./sortablejs.29100d8a.js";const ks=function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))i(s);new MutationObserver(s=>{for(const a of s)if(a.type==="childList")for(const u of a.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&i(u)}).observe(document,{childList:!0,subtree:!0});function n(s){const a={};return s.integrity&&(a.integrity=s.integrity),s.referrerpolicy&&(a.referrerPolicy=s.referrerpolicy),s.crossorigin==="use-credentials"?a.credentials="include":s.crossorigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function i(s){if(s.ep)return;s.ep=!0;const a=n(s);fetch(s.href,a)}};ks();const Cs="modulepreload",ri={},Ns="./",Nn=function(t,n){return!n||n.length===0?t():Promise.all(n.map(i=>{if(i=`${Ns}${i}`,i in ri)return;ri[i]=!0;const s=i.endsWith(".css"),a=s?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${i}"]${a}`))return;const u=document.createElement("link");if(u.rel=s?"stylesheet":Cs,s||(u.as="script",u.crossOrigin=""),u.href=i,document.head.appendChild(u),s)return new Promise((c,m)=>{u.addEventListener("load",c),u.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>t())},Ss="./projInfo-schema.json",Ms="Advent Incremental",Is="An incremental game you play a day at a time, leading up to Christmas!",As="advent-incremental",Es="thepaperpilot and friends",Bs="",xs="",Ps="0.3",Fs="Initial Commit",Ts=!0,Rs=!1,$s=2,Ds=!0,Os=null,qs="",Us=["main"],Vs=3600,Ls=0,Gs=!0,Hs="base64";var se={$schema:Ss,title:Ms,description:Is,id:As,author:Es,discordName:Bs,discordLink:xs,versionNumber:Ps,versionTitle:Fs,allowGoBack:Ts,defaultShowSmall:Rs,defaultDecimalsShown:$s,useHeader:Ds,banner:Os,logo:qs,initialTabs:Us,maxTickLength:Vs,offlineLimit:Ls,enablePausing:Gs,exportEncoding:Hs};const Vn=17,Qs=9e15,zs=Math.log10(9e15),js=1/9e15,Ks=308,Ws=-324,ui=5,Js=function(){const e=[];for(let n=Ws+1;n<=Ks;n++)e.push(Number("1e"+n));const t=323;return function(n){return e[n+t]}}(),Rt=[2,Math.E,3,4,5,6,7,8,9,10],Xs=[[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.1670905356972
`,e),await Dt(Kt())}}function Kt(){const e=kn(),t=Pi({id:e});return tt(t),fe.saves.push(e),t}function kn(){let e,t=0;do e=`${se.id}-${t++}`;while(localStorage.getItem(e));return e}async function Dt(e){console.info("Loading save",e);const{layers:t,removeLayer:n,addLayer:i}=await Nn(()=>Promise.resolve().then(function(){return Hl}),void 0),{fixOldSave:s,getInitialLayers:a}=await Nn(()=>Promise.resolve().then(function(){return Zi}),void 0);for(const u in t){const c=t[u];c&&n(c)}a(e).forEach(u=>i(u,e)),e=Pi(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,se.offlineLimit*3600)),e.time=Date.now(),e.modVersion!==se.versionNumber&&s(e.modVersion,e),Object.assign(E,e),fe.active=E.id,ve.emit("onLoad")}setInterval(()=>{E.autosave&&tt()},1e3);window.onbeforeunload=()=>{E.autosave&&tt()};window.save=tt;const _l=window.hardReset=async()=>{await Dt(Kt())},dn=pn({active:"",saves:[],showTPS:!0,theme:Qn.Nordic,unthrottled:!1});st(dn,e=>{const t=kt.compressToUTF16(JSON.stringify(e));localStorage.setItem(se.id,t)},{deep:!0});var fe=window.settings=dn;window.hardResetSettings=()=>{const e={active:"",saves:[],showTPS:!0,theme:Qn.Nordic};ve.emit("loadSettings",e),Object.assign(dn,e),_l()};function wl(){try{let e=localStorage.getItem(se.id);if(e!=null&&e!==""){if(e[0]!=="{")if(e[0]==="e")e=decodeURIComponent(escape(atob(e)));else if(e[0]==="\u1BE1")e=kt.decompressFromUTF16(e);else{console.warn("Unable to determine settings encoding",e);return}const t=JSON.parse(e);typeof t=="object"&&Object.assign(dn,t)}ve.emit("loadSettings",dn)}catch{}}const Fi=pn([]);function kl(e){Fi.push(e)}const Ti=pn([]);function Cl(e){Ti.push(e)}const Nl=pn([]),Sl={class:"table"},Wt=G({__name:"Column",setup(e){const t=N(()=>hn[fe.theme].mergeAdjacent);return(n,i)=>(y(),M("div",Sl,[f("div",{class:Ce(["col",{mergeAdjacent:o(t)}])},[rt(n.$slots,"default")],2)]))}}),Ml={class:"table"},Ri=G({__name:"Row",setup(e){const t=N(()=>hn[fe.theme].mergeAdjacent);return(n,i)=>(y(),M("div",Ml,[f("div",{class:Ce(["row",{mergeAdjacent:o(t)}])},[rt(n.$slots,"default")],2)]))}});function zn(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!rs(e)}function ie(e,t="span"){return typeof e=="function"?G({render:e}):typeof e=="string"?e.length>0?(e=e.trim(),e.charAt(0)!=="<"&&(e=`<${t}>${e}</${t}>`),G({template:e})):G({render:()=>({})}):e}function ge(e){if(gt(e))return typeof e=="function"?e():ie(e);const t=e[Mt];return r(t,e[It](),null)}function $e(...e){let t;return r(Ri,null,zn(t=e.map(ge))?t:{default:()=>[t]})}function $i(...e){let t;return r(Wt,null,zn(t=e.map(ge))?t:{default:()=>[t]})}function it(e){if(gt(e))return typeof e=="function"?e():typeof e=="string"?r(F,null,[e]):r(e,null,null);const t=e[Mt];return r(t,e[It](),null)}function Il(...e){let t;return r(Wt,null,zn(t=e.map(it))?t:{default:()=>[t]})}function gt(e){return typeof e=="string"?!0:typeof e=="object"?e==null?!1:"render"in e||"component"in e:typeof e=="function"&&e[cn]===!0}function Di(e,t,n){const i=D(null),s=D(void 0);function a(m){i.value||(i.value=setInterval(c,250)),s.value=m,n&&(n.value=!0)}function u(){i.value&&(clearInterval(i.value),i.value=null),n&&(n.value=!1)}function c(){t&&t.value?t.value():e&&e.value&&e.value(s.value)}return gi(u),{start:a,stop:u,handleHolding:c}}function Al(e,t){const n=N(()=>e.filter(i=>o(i.visibility)===Me.Visible&&t(i)));return{firstFeature:N(()=>n.value[0]),collapsedContent:x(()=>$i(...n.value.slice(1))),hasCollapsedContent:N(()=>n.value.length>1)}}function In(e,t="div"){const n=Ze();return Oe(()=>{n.value=ie(Ie(e),t)}),n}function Lt(e,t="div"){const n=Ze(null);return Oe(()=>{const i=Ie(e);n.value=i==null?null:ie(i,t)}),n}function El(e){return N(()=>Ie(e))}function Ie(e){return o(o(e))}function R(...e){return e.includes(Object)||e.push(Object),e}const ke=G({__name:"Spacer",props:{width:{default:"8px"},height:{default:"17px"}},setup(e){return(t,n)=>(y(),M("div",{style:Se({width:e.width,height:e.height})},null,4))}});var ae=(e,t)=>{const n=e.__vccOpts||e;for(c
`).slice(3,5).map(t=>t.trim()).join(`
`))||""}function Fe(e){const t=xe(e)?e:D(e);return t[mn]=t,t[fn]=xe(e)?e.value:e,t[An]=Ul(),t[qi]=!1,nt.length===0?console.warn("Creating a persistent ref outside of a layer. This is not officially supported",t,`
Created at:
`+t[An]):Jt[nt[nt.length-1]].add(t),t}ve.on("addLayer",(e,t)=>{const n=[],i=(s,a=[])=>{let u=!1;return Object.keys(s).forEach(c=>{const m=s[c];if(m&&typeof m=="object")if(mn in m){if(u=!0,m[qi]){console.warn("Deleted persistent ref present in returned object. Ignoring...",m,`
Created at:
`+m[An]);return}Jt[e.id].delete(be in m?m[be]:m);const d=a.reduce((b,v)=>(v in b||(b[v]={}),b[v]),t),_=d[c];d[c]=m[mn],cs(d)?_!=null?d[c]=_:d[c]=m[fn]:_!=null?d[c].value=_:d[c].value=m[fn]}else!(m instanceof l)&&!xe(m)&&!n.includes(m)&&(typeof m.type=="symbol"&&n.push(m),i(m,[...a,c])&&(oi(m)&&!oi(s)?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.",be in s?s[be]:s,c):u=!0))}),u};i(e),Jt[e.id].forEach(s=>{console.error(`Created persistent ref in ${e.id} without registering it to the layer! Make sure to include everything persistent in the returned object`,s,`
Created at:
`+s[An])}),Jt[e.id].clear()});const jn=Symbol("RegisterNode"),Kn=Symbol("UnregisterNode"),Wn=Symbol("Nodes"),Jn=Symbol("Bounds"),De=En({});window.layers=De;const Jt={},nt=[];function At(e,t){return Ge(()=>{const n={},i=n.emitter=bi();if(n.on=i.on.bind(i),n.emit=i.emit.bind(i),n.nodes=D({}),n.id=e,nt.push(e),Jt[e]=new Set,n.minimized=Fe(!1),Object.assign(n,t.call(n)),nt[nt.length-1]==null||nt[nt.length-1]!==e)throw`Adding layers stack in invalid state. This should not happen
Stack: ${nt}
Trying to pop ${n.id}`;return nt.pop(),P(n,"color"),P(n,"display"),P(n,"name"),Pe(n,"name",n.id),P(n,"minWidth"),Pe(n,"minWidth",600),P(n,"minimizable"),Pe(n,"minimizable",!0),n})}function Ui(e,t){if(console.info("Adding layer",e.id),De[e.id]){console.error("Attempted to add layer with same ID as existing layer",e.id,De[e.id]);return}Pe(t,"layers",{}),t.layers[e.id]==null&&(t.layers[e.id]={}),De[e.id]=e,ve.emit("addLayer",e,t.layers[e.id])}function Vl(e){return De[e]}function Vi(e){console.info("Removing layer",e.id),ve.emit("removeLayer",e),De[e.id]=void 0}function Ll(e){Vi(e),Ui(e,E)}function Gl(e){const t=D(!1);return{openModal:()=>t.value=!0,modal:x(()=>r(at,{modelValue:t.value,"onUpdate:modelValue":n=>t.value=n},{header:()=>r("h2",null,[o(e.name)]),body:o(e.display)}))}}ve.on("update",function(t){Object.values(De).forEach(n=>{n==null||n.emit("preUpdate",t)}),Object.values(De).forEach(n=>{n==null||n.emit("update",t)}),Object.values(De).forEach(n=>{n==null||n.emit("postUpdate",t)})});var Hl=Object.freeze(Object.defineProperty({__proto__:null,RegisterNodeInjectionKey:jn,UnregisterNodeInjectionKey:Kn,NodesInjectionKey:Wn,BoundsInjectionKey:Jn,layers:De,persistentRefs:Jt,addingLayers:nt,createLayer:At,addLayer:Ui,getLayer:Vl,removeLayer:Vi,reloadLayer:Ll,setupLayerModal:Gl},Symbol.toStringTag,{value:"Module"}));const Ql={},zl={class:"notif"};function jl(e,t){return y(),M("div",zl,"!")}var fi=ae(Ql,[["render",jl],["__scopeId","data-v-66323fd4"]]);const Tn=e=>(vt("data-v-949cc93c"),e=e(),yt(),e),Kl={key:0,class:"day feature dontMerge opened"},Wl={class:"date"},Jl=h("Dec"),Xl=Tn(()=>f("br",null,null,-1)),Yl={class:"date"},Zl=h("Dec"),ea=Tn(()=>f("br",null,null,-1)),ta=Tn(()=>f("div",{class:"doors"},null,-1)),na={class:"date"},ia=h("Dec"),sa=Tn(()=>f("br",null,null,-1)),la={key:0,class:"material-icons lock"},aa=G({__name:"Day",props:{day:null,symbol:null,opened:null,shouldNotify:null},emits:["openLore","openLayer","unlockLayer"],setup(e,{emit:t}){const n=e,i=N(()=>l.gte(U.day.value,n.day)&&new Date().getMonth()===11&&new Date().getDate()>=n.day);function s(){i.value&&t("unlockLayer")}return(a,u)=>e.opened.value?(y(),M("div",Kl,[r(Pn,{appear:"",name:"door"},{default:V(()=>[f("div",{class:"doors",onClick:u[0]||(u[0]=c=>t("openLayer"))},[f("div",Wl,[Jl,Xl,h(W(e.day),1)]),f("div",Yl,[Zl,ea,h(W(e.day),1)])])]),_:1}),f("div",{class:"icon",style:Se({backgroundImage:`url(${e.symbol})`})},null,4),f("div",{class:"lore",onClick:u[1]||(u[1]=c=>t("openLore"))},"?"),o(e.shouldNotify)?(y(),Q(fi,{key:0})):B("",!0)])):(y(),M("div",{key:1,class:Ce(["day feature dontMerge",{can:o(i),locked:!o(i),canOpen:o(i)}]),onClick:s},[ta,f("div",na,[ia,sa,h(W(e.day),1)]),o(i)?B("",!0):(y(),M("div",la,"lock")),o(i)?(y(),Q(fi,{key:1})):B("",!0)],2))}});var oa=ae(aa,[["__scopeId","data-v-949cc93c"]]);const ra=G({__name:"Collapsible",props:{collapsed:null,display:null,content:null},setup(e){const t=e,n=In(lt(t,"display")),i=In(lt(t,"content"));return(s,a)=>(y(),Q(Wt,{class:"collapsible-container"},{default:V(()=>[f("button",{onClick:a[0]||(a[0]=u=>e.collapsed.value=!e.collapsed.value),class:"feature collapsible-toggle"},[(y(),Q(Ne(o(n))))]),e.collapsed.value?B("",!0):(y(),Q(Ne(o(i)),{key:0}))]),_:1}))}});var ua=ae(ra,[["__scopeId","data-v-a72c16aa"]]);const ca={key:0},da={key:0,class:"mark star"},ma=["src"],fa=G({__name:"MarkNode",props:{mark:{type:[Boolean,String]}},setup(e){return(t,n)=>e.mark?(y(),M("div",ca,[e.mark===!0?(y(),M("div",da)):(y(),M("img",{key:1,class:"mark",src:e.mark},null,8,ma))])):B("",!0)}});var Rn=ae(fa,[["__scopeId","data-v-2207999f"]]);const pa=G({__name:"Node",props:{id:null},setup(e){const n=Te(e),i=Cn(jn,()=>{}),s=Cn(Kn,()=>{}),a=Ze(null),u=N(()=>a.value&&a.value.parentElement);return st([u,n.id],([c,m],[d,_])=>{d&&s(o(_)),c&&i(m,c)}),gi(()=>s(o(n.id))),(c,m)=>(y(),M("div",{class:"node",ref_key:"node",ref:a},null,512))}});var gn=ae(pa,[["__scopeId","data-v-a48cb382"]]),ha=G({props:{display:{type:R(Object,String,Function),required:!0},visibility:{type:R(Number),required:!0},style:R(Object,String,Array),classes:R(Object),onClick:Func
margin: 10px 0;"/>${I}`:oe,t.value=!0},onOpenLayer(){if(window.matchMedia("(min-width: 1468px)").matches)if(E.tabs.includes(p!=null?p:"trees")){const k=E.tabs.lastIndexOf(p!=null?p:"trees");E.tabs.splice(k,1)}else E.tabs.push(p!=null?p:"trees"),U.minimized.value=!0;else E.tabs.splice(1,1/0,p!=null?p:"trees")},onUnlockLayer(){S.value=!0,setTimeout(()=>{var k,O;n.value=-1,i.value=o((O=(k=De[p!=null?p:"trees"])==null?void 0:k.name)!=null?O:""),s.value=oe,E.devSpeed=null,t.value=!0},1e3)}}}}})}const u=[a(()=>({day:1,shouldNotify:!1,layer:"trees",symbol:ji,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!"})),a(()=>({day:2,shouldNotify:!1,layer:"workshop",symbol:Ki,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!"})),a(()=>({day:3,shouldNotify:!1,layer:"coal",symbol:Wi,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!"})),a(()=>({day:4,shouldNotify:!1,layer:"elves",symbol:Ji,story:"Alright, it seems you finally have enough things setup to start bringing in the elves! Unfortunately, it seems they'll need to be retrained on how to help, since they're out of practice by 11 months!",completedStory:"The workshop now hums with the bustling elves working everything. They can take it from here - you deserve a break after such a long day! Good Job!"})),a(()=>({day:5,shouldNotify:!1,layer:"paper",symbol:Xi,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 to help these elves continue their education!",completedStory:"You look upon your rivers of book pulp as you hand out stacks of papers to elves to read through. You've continued getting closer and closer to preparing for Christmas, and can go to bed satisfied with your progress. Good Job!"})),a(()=>({day:6,shouldNotify:!1,layer:"boxes",symbol:Yi,story:"You watch all these elves carrying incredibly large loads just in their open elf-sized hands, and realize there's probably a better way. You need to put the toys in boxes anyways, so why don'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 of your list and start looking towards tomorrow. Good Job!"})),a(()=>({day:7,shouldNotify:!1,layer:null,symbol:"",story:"",completedStory:""})),a(()=>({day:8,shouldNotify:!1,layer:null,symbol:"",story:"",completedStory:""})),a(()=>({day:9,shouldNotify:!1,layer:null,symbol:"",story:"",completedStory:""})),a(()=>({day:10,shouldNotify:!1,layer:null,symbol:"",story:"",completedStory:""})),a(()=>({day:11,shouldNotify:!1,layer:null,symbol:"",story:"",compl
${O}
${k}`)}}return d[I]}st(n,I=>{I&&Object.keys(d).forEach(k=>delete d[k])});const b=N(()=>fe.saves.reduce((I,k)=>(I[k]=_(k),I),{}));function v(I){let k;switch(E.id===I?k=Bi(E[be]):k=JSON.stringify(b.value[I]),se.exportEncoding){default:console.warn(`Unknown save encoding: ${se.exportEncoding}. Defaulting to lz`);case"lz":k=kt.compressToUTF16(k);break;case"base64":k=btoa(unescape(encodeURIComponent(k)));break;case"plain":break}const O=document.createElement("textarea");O.value=k,document.body.appendChild(O),O.select(),O.setSelectionRange(0,99999),document.execCommand("copy"),document.body.removeChild(O)}function p(I){E.id===I&&tt();const k={...b.value[I],id:kn()};tt(k),fe.saves.push(k.id)}function w(I){fe.saves=fe.saves.filter(k=>k!==I),localStorage.removeItem(I),d[I]=void 0}function S(I){b.value[E.id].time=E.time,tt(),d[E.id]=void 0,Dt(b.value[I]),d[I]=void 0}function z(I){if(u.value=I,Ut(()=>{u.value=null}),I[0]!=="{")if(I[0]==="e")I=decodeURIComponent(escape(atob(I)));else if(I[0]==="\u1BE1")I=kt.decompressFromUTF16(I);else{console.warn("Unable to determine preset encoding",I);return}const k=JSON.parse(I);k.id=kn(),tt(k),fe.saves.push(k.id),S(k.id)}function oe(I,k){const O=b.value[I];O&&(O.name=k,E.id===I?(E.name=k,tt()):(tt(O),d[I]=void 0))}return(I,k)=>(y(),Q(at,{modelValue:n.value,"onUpdate:modelValue":k[4]||(k[4]=O=>n.value=O),ref_key:"modal",ref:i},{header:V(()=>[Nr]),body:V(({shown:O})=>[O?(y(),Q(o(ys),{key:0,list:o(fe).saves,handle:".handle",itemKey:J=>J},{item:V(({element:J})=>[r(Cr,{save:o(b)[J],onOpen:re=>S(J),onExport:re=>v(J),onEditName:re=>oe(J,re),onDuplicate:re=>p(J),onDelete:re=>w(J)},null,8,["save","onOpen","onExport","onEditName","onDuplicate","onDelete"])]),_:1},8,["list","itemKey"])):B("",!0)]),footer:V(()=>[f("div",Sr,[r(ns,{modelValue:a.value,"onUpdate:modelValue":k[0]||(k[0]=O=>a.value=O),title:"Import Save",placeholder:"Paste your save here!",class:Ce({importingFailed:s.value})},null,8,["modelValue","class"]),f("div",Mr,[Ir,f("div",Ar,[f("button",{class:"button",onClick:k[1]||(k[1]=O=>S(o(Kt)().id))},"New Game"),Object.keys(o(m)).length>0?(y(),Q(ei,{key:0,options:o(m),modelValue:u.value,"onUpdate:modelValue":k[2]||(k[2]=O=>z(O)),closeOnSelect:"",placeholder:"Select preset",class:"presets"},null,8,["options","modelValue"])):B("",!0)])]),f("div",Er,[Br,f("button",{class:"button modal-default-button",onClick:k[3]||(k[3]=O=>n.value=!1)}," Close ")])])]),_:1},8,["modelValue"]))}});var is=ae(xr,[["__scopeId","data-v-3b9991aa"]]);const je=e=>(vt("data-v-4a3f8425"),e=e(),yt(),e),Pr=["src","alt"],Fr={key:1,class:"title"},Tr=je(()=>f("div",{style:{"flex-grow":"1",cursor:"unset"}},null,-1)),Rr={class:"discord"},$r={class:"discord-links"},Dr={key:0},Or=["href"],qr=je(()=>f("li",null,[f("a",{href:"https://discord.gg/WzejVAx",target:"_blank"},"The Paper Pilot Community")],-1)),Ur=je(()=>f("li",null,[f("a",{href:"https://discord.gg/F3xveHV",target:"_blank"},"The Modding Tree")],-1)),Vr={href:"https://forums.moddingtree.com/",target:"_blank"},Lr=je(()=>f("span",{class:"material-icons"},"forum",-1)),Gr=je(()=>f("span",{class:"material-icons"},"info",-1)),Hr=je(()=>f("span",{class:"material-icons"},"library_books",-1)),Qr=je(()=>f("span",{class:"material-icons"},"settings",-1)),zr=je(()=>f("span",{class:"material-icons"},"library_books",-1)),jr=je(()=>f("span",{class:"material-icons"},"settings",-1)),Kr=je(()=>f("span",{class:"material-icons"},"info",-1)),Wr={href:"https://forums.moddingtree.com/",target:"_blank"},Jr=je(()=>f("span",{class:"material-icons"},"forum",-1)),Xr={class:"discord"},Yr={class:"discord-links"},Zr={key:0},eu=["href"],tu=je(()=>f("li",null,[f("a",{href:"https://discord.gg/WzejVAx",target:"_blank"},"The Paper Pilot Community")],-1)),nu=je(()=>f("li",null,[f("a",{href:"https://discord.gg/F3xveHV",target:"_blank"},"The Modding Tree")],-1)),iu=G({__name:"Nav",setup(e){const t=D(null),n=D(null),i=D(null),s=D(null),{useHeader:a,banner:u,title:c,discordName:m,discordLink:d,versionNumber:_}=se;function b(){window.open(d,"mywindow")}return(v,p)=>(y(),M(F,null,[o(a)?(y(),M("div",Vt({key:0,class:"nav"},v
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 bl();const{globalBus:e,startGameLoop:t}=await Nn(()=>Promise.resolve().then(function(){return yl}),void 0),n=window.vue=ps(qu);e.emit("setupVue",n),n.mount("#app"),Ut(()=>{const i=_i(),{updateServiceWorker:s}=Vu({onNeedRefresh(){i.info("New content available, click or reload to update.",{timeout:!1,closeOnClick:!1,draggable:!1,icon:{iconClass:"material-icons",iconChildren:"refresh",iconTag:"i"},rtl:!1,onClick(){s()}})},onOfflineReady(){i.info("App ready to work offline")},onRegisterError:console.warn,onRegistered(a){a&&setInterval(a.update,60*60*1e3)}})}),t()});